Drg¶
- class oci.vn_monitoring.models.Drg(**kwargs)¶
Bases:
objectA dynamic routing gateway (DRG) is a virtual router that provides a path for private network traffic between networks. You use it with other Networking Service components to create a connection to your on-premises network using Site-to-Site VPN or a connection that uses FastConnect. For more information, see Networking Overview.
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 Drg.
A constant which can be used with the lifecycle_state property of a Drg.
A constant which can be used with the lifecycle_state property of a Drg.
A constant which can be used with the lifecycle_state property of a Drg.
[Required] Gets the compartment_id of this Drg.
Gets the default_drg_route_tables of this Drg.
Gets the default_export_drg_route_distribution_id of this Drg.
Gets the defined_tags of this Drg.
Gets the display_name of this Drg.
Gets the freeform_tags of this Drg.
[Required] Gets the id of this Drg.
[Required] Gets the lifecycle_state of this Drg.
Gets the time_created of this Drg.
Methods:
__init__(**kwargs)Initializes a new Drg object with values from keyword arguments.
- LIFECYCLE_STATE_AVAILABLE = 'AVAILABLE'¶
A constant which can be used with the lifecycle_state property of a Drg. This constant has a value of “AVAILABLE”
- LIFECYCLE_STATE_PROVISIONING = 'PROVISIONING'¶
A constant which can be used with the lifecycle_state property of a Drg. This constant has a value of “PROVISIONING”
- LIFECYCLE_STATE_TERMINATED = 'TERMINATED'¶
A constant which can be used with the lifecycle_state property of a Drg. This constant has a value of “TERMINATED”
- LIFECYCLE_STATE_TERMINATING = 'TERMINATING'¶
A constant which can be used with the lifecycle_state property of a Drg. This constant has a value of “TERMINATING”
- __init__(**kwargs)¶
Initializes a new Drg 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 Drg.
defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this Drg.
display_name (str) – The value to assign to the display_name property of this Drg.
freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this Drg.
id (str) – The value to assign to the id property of this Drg.
lifecycle_state (str) – The value to assign to the lifecycle_state property of this Drg. Allowed values for this property are: “PROVISIONING”, “AVAILABLE”, “TERMINATING”, “TERMINATED”
time_created (datetime) – The value to assign to the time_created property of this Drg.
default_drg_route_tables (oci.vn_monitoring.models.DefaultDrgRouteTables) – The value to assign to the default_drg_route_tables property of this Drg.
default_export_drg_route_distribution_id (str) – The value to assign to the default_export_drg_route_distribution_id property of this Drg.
- property compartment_id¶
[Required] Gets the compartment_id of this Drg. The OCID of the compartment containing the DRG.
- Returns
The compartment_id of this Drg.
- Return type
str
- property default_drg_route_tables¶
Gets the default_drg_route_tables of this Drg.
- Returns
The default_drg_route_tables of this Drg.
- Return type
- property default_export_drg_route_distribution_id¶
Gets the default_export_drg_route_distribution_id of this Drg. The OCID of this DRG’s default export route distribution for the DRG attachments.
- Returns
The default_export_drg_route_distribution_id of this Drg.
- Return type
str
- property defined_tags¶
Gets the defined_tags of this Drg. 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 Drg.
- Return type
dict(str, dict(str, object))
- property display_name¶
Gets the display_name of this Drg. A user-friendly name. Does not have to be unique, and it’s changeable. Avoid entering confidential information.
- Returns
The display_name of this Drg.
- Return type
str
- property freeform_tags¶
Gets the freeform_tags of this Drg. 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 Drg.
- Return type
dict(str, str)
- property id¶
[Required] Gets the id of this Drg. The DRG’s Oracle ID (OCID).
- Returns
The id of this Drg.
- Return type
str
- property lifecycle_state¶
[Required] Gets the lifecycle_state of this Drg. The DRG’s current state.
Allowed values for this property are: “PROVISIONING”, “AVAILABLE”, “TERMINATING”, “TERMINATED”
- Returns
The lifecycle_state of this Drg.
- Return type
str