LocalPeeringGateway¶
- class oci.vn_monitoring.models.LocalPeeringGateway(**kwargs)¶
Bases:
objectA local peering gateway (LPG) is an object on a VCN that lets that VCN peer with another VCN in the same region. Peering means that the two VCNs can communicate using private IP addresses, but without the traffic traversing the internet or routing through your on-premises network. For more information, see VCN Peering.
To use any of the API operations, you must be authorized in an IAM policy. If you’re not authorized, talk to an administrator. If you’re an administrator who needs to write policies to give users access, see Getting Started with Policies.
Attributes:
A constant which can be used with the lifecycle_state property of a LocalPeeringGateway.
A constant which can be used with the lifecycle_state property of a LocalPeeringGateway.
A constant which can be used with the lifecycle_state property of a LocalPeeringGateway.
A constant which can be used with the lifecycle_state property of a LocalPeeringGateway.
A constant which can be used with the peering_status property of a LocalPeeringGateway.
A constant which can be used with the peering_status property of a LocalPeeringGateway.
A constant which can be used with the peering_status property of a LocalPeeringGateway.
A constant which can be used with the peering_status property of a LocalPeeringGateway.
A constant which can be used with the peering_status property of a LocalPeeringGateway.
[Required] Gets the compartment_id of this LocalPeeringGateway.
Gets the defined_tags of this LocalPeeringGateway.
[Required] Gets the display_name of this LocalPeeringGateway.
Gets the freeform_tags of this LocalPeeringGateway.
[Required] Gets the id of this LocalPeeringGateway.
[Required] Gets the is_cross_tenancy_peering of this LocalPeeringGateway.
[Required] Gets the lifecycle_state of this LocalPeeringGateway.
Gets the peer_advertised_cidr of this LocalPeeringGateway.
[Required] Gets the peering_status of this LocalPeeringGateway.
Gets the peering_status_details of this LocalPeeringGateway.
[Required] Gets the time_created of this LocalPeeringGateway.
[Required] Gets the vcn_id of this LocalPeeringGateway.
Methods:
__init__(**kwargs)Initializes a new LocalPeeringGateway object with values from keyword arguments.
- LIFECYCLE_STATE_AVAILABLE = 'AVAILABLE'¶
A constant which can be used with the lifecycle_state property of a LocalPeeringGateway. This constant has a value of “AVAILABLE”
- LIFECYCLE_STATE_PROVISIONING = 'PROVISIONING'¶
A constant which can be used with the lifecycle_state property of a LocalPeeringGateway. This constant has a value of “PROVISIONING”
- LIFECYCLE_STATE_TERMINATED = 'TERMINATED'¶
A constant which can be used with the lifecycle_state property of a LocalPeeringGateway. This constant has a value of “TERMINATED”
- LIFECYCLE_STATE_TERMINATING = 'TERMINATING'¶
A constant which can be used with the lifecycle_state property of a LocalPeeringGateway. This constant has a value of “TERMINATING”
- PEERING_STATUS_INVALID = 'INVALID'¶
A constant which can be used with the peering_status property of a LocalPeeringGateway. This constant has a value of “INVALID”
- PEERING_STATUS_NEW = 'NEW'¶
A constant which can be used with the peering_status property of a LocalPeeringGateway. This constant has a value of “NEW”
- PEERING_STATUS_PEERED = 'PEERED'¶
A constant which can be used with the peering_status property of a LocalPeeringGateway. This constant has a value of “PEERED”
- PEERING_STATUS_PENDING = 'PENDING'¶
A constant which can be used with the peering_status property of a LocalPeeringGateway. This constant has a value of “PENDING”
- PEERING_STATUS_REVOKED = 'REVOKED'¶
A constant which can be used with the peering_status property of a LocalPeeringGateway. This constant has a value of “REVOKED”
- __init__(**kwargs)¶
Initializes a new LocalPeeringGateway object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
compartment_id (str) – The value to assign to the compartment_id property of this LocalPeeringGateway.
defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this LocalPeeringGateway.
display_name (str) – The value to assign to the display_name property of this LocalPeeringGateway.
freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this LocalPeeringGateway.
id (str) – The value to assign to the id property of this LocalPeeringGateway.
is_cross_tenancy_peering (bool) – The value to assign to the is_cross_tenancy_peering property of this LocalPeeringGateway.
lifecycle_state (str) – The value to assign to the lifecycle_state property of this LocalPeeringGateway. Allowed values for this property are: “PROVISIONING”, “AVAILABLE”, “TERMINATING”, “TERMINATED”
peer_advertised_cidr (str) – The value to assign to the peer_advertised_cidr property of this LocalPeeringGateway.
peering_status (str) – The value to assign to the peering_status property of this LocalPeeringGateway. Allowed values for this property are: “INVALID”, “NEW”, “PEERED”, “PENDING”, “REVOKED”
peering_status_details (str) – The value to assign to the peering_status_details property of this LocalPeeringGateway.
time_created (datetime) – The value to assign to the time_created property of this LocalPeeringGateway.
vcn_id (str) – The value to assign to the vcn_id property of this LocalPeeringGateway.
- property compartment_id¶
[Required] Gets the compartment_id of this LocalPeeringGateway. The OCID of the compartment containing the LPG.
- Returns
The compartment_id of this LocalPeeringGateway.
- Return type
str
- property defined_tags¶
Gets the defined_tags of this LocalPeeringGateway. Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}
- Returns
The defined_tags of this LocalPeeringGateway.
- Return type
dict(str, dict(str, object))
- property display_name¶
[Required] Gets the display_name of this LocalPeeringGateway. A user-friendly name. Does not have to be unique, and it’s changeable. Avoid entering confidential information.
- Returns
The display_name of this LocalPeeringGateway.
- Return type
str
- property freeform_tags¶
Gets the freeform_tags of this LocalPeeringGateway. Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {“bar-key”: “value”}
- Returns
The freeform_tags of this LocalPeeringGateway.
- Return type
dict(str, str)
- property id¶
[Required] Gets the id of this LocalPeeringGateway. The LPG’s Oracle ID (OCID).
- Returns
The id of this LocalPeeringGateway.
- Return type
str
- property is_cross_tenancy_peering¶
[Required] Gets the is_cross_tenancy_peering of this LocalPeeringGateway. Whether the VCN at the other end of the peering is in a different tenancy.
Example: false
- Returns
The is_cross_tenancy_peering of this LocalPeeringGateway.
- Return type
bool
- property lifecycle_state¶
[Required] Gets the lifecycle_state of this LocalPeeringGateway. The LPG’s current lifecycle state.
Allowed values for this property are: “PROVISIONING”, “AVAILABLE”, “TERMINATING”, “TERMINATED”
- Returns
The lifecycle_state of this LocalPeeringGateway.
- Return type
str
- property peer_advertised_cidr¶
Gets the peer_advertised_cidr of this LocalPeeringGateway. The range of IP addresses available on the VCN at the other end of the peering from this LPG. The value is null if the LPG is not peered. You can use this as the destination CIDR for a route rule to route a subnet’s traffic to this LPG.
Example: 192.168.0.0/16
- Returns
The peer_advertised_cidr of this LocalPeeringGateway.
- Return type
str
- property peering_status¶
[Required] Gets the peering_status of this LocalPeeringGateway. Whether the LPG is peered with another LPG. NEW means the LPG has not yet been peered. PENDING means the peering is being established. REVOKED means the LPG at the other end of the peering has been deleted.
Allowed values for this property are: “INVALID”, “NEW”, “PEERED”, “PENDING”, “REVOKED”
- Returns
The peering_status of this LocalPeeringGateway.
- Return type
str
- property peering_status_details¶
Gets the peering_status_details of this LocalPeeringGateway. Additional information regarding the peering status, if applicable.
- Returns
The peering_status_details of this LocalPeeringGateway.
- Return type
str