Create a DRG Attachment
post
/20160918/drgAttachments
Attach the specified DRG to the specified network resource. A VCN can be attached to only one DRG at a time, but a DRG can be attached to more than one VCN. The response includes a DrgAttachment object with its own OCID.
You can optionally specify a display name for the attachment. Otherwise a default display name is provided. The display name does not need to be unique, and you can change it. Avoid entering confidential information.
Request
Supported Media Types
- application/json
Header Parameters
-
opc-retry-token: string
Minimum Length:
1
Maximum Length:64
A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations (for example, if a resource has been deleted and purged from the system, then a retry of the original creation request may be rejected).
Details for creating a `DrgAttachment`.
Root Schema : CreateDrgAttachmentDetails
Type:
Show Source
object
-
definedTags:
object definedTags
Additional Properties Allowed: additionalPropertiesDefined tags for this resource. Each key is predefined and scoped to a namespace.
-
displayName:
string
Minimum Length:
1
Maximum Length:255
A user-friendly name. Does not need to be unique, and it is changeable. Avoid entering confidential information. -
drgId(required):
string
Minimum Length:
1
Maximum Length:255
The OCID of the DRG. -
drgRouteTableId:
string
Minimum Length:
1
Maximum Length:255
The OCID of the DRG route table that is assigned to this attachment. The DRG route table manages traffic inside the DRG. -
freeformTags:
object freeformTags
Additional Properties Allowed: additionalPropertiesFree-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. Example: {"Department": "Finance"}
-
id:
string
Minimum Length:
1
Maximum Length:255
Optional OCID supplied to create an internal resource backing a global resource. -
internalType:
string
Allowed Values:
[ "GDRG_SERVICE_RESOURCE", "GDRG_MESH_RPC" ]
STANDARD applies to all regional resources which are customer visible, GDRG_SERVICE_RESOURCE applies to internal resources created to back GlobalDRGAttachments, and GDRG_MESH_RPC applies to internal RPC Attachments used to facilitate GlobalDRG functionality. -
natPolicyId:
string
Minimum Length:
1
Maximum Length:255
The OCID of the DRG attachment's NAT policy. -
networkDetails:
object DrgAttachmentNetworkCreateDetails
Discriminator:
type
-
routeTableId:
string
Minimum Length:
1
Maximum Length:255
This field is deprecated. Instead, use the networkDetails field to view the OCID of the attached resource. The value of this field is the OCID of the route table the DRG attachment is using. Associate a route table with a DRG attachment to access multiple VCNs. -
transitiveTrafficEnabled:
string
Default Value:
DISABLED
Allowed Values:[ "DISABLED" ]
Indicates if transitive traffic is enabled for this DRG attachment. This field is only supported for VirtualCircuit and IPSec DRG attachments. -
vcnId:
string
Minimum Length:
1
Maximum Length:255
The OCID of the VCN. This field is deprecated. Instead, use the networkDetails field to specify the OCID of the attached resource. -
zprTags:
object zprTags
Additional Properties Allowed: additionalPropertieszprTags for this resource. This is unique to ZPR, and extends the defined tags to include a mode keyword as well Example: `{"Oracle-DataSecurity-ZPR": {"MaxEgressCount": {"value":"42","mode":"audit"}}}`
Nested Schema : definedTags
Type:
object
Additional Properties Allowed
Show Source
-
object additionalProperties
Additional Properties Allowed: additionalPropertiesKey-value pair representing a defined tag key and value, scoped to a namespace. Example: `{"CostCenter": "42"}`
Defined tags for this resource. Each key is predefined and scoped to a namespace.
Nested Schema : freeformTags
Type:
object
Additional Properties Allowed
Show Source
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. Example: {"Department": "Finance"}
Nested Schema : DrgAttachmentNetworkCreateDetails
Type:
object
Discriminator:
Show Source
type
-
id:
string
Minimum Length:
1
Maximum Length:255
The OCID of the network attached to the DRG. -
type(required):
string
Allowed Values:
[ "VCN", "VIRTUAL_CIRCUIT", "REMOTE_PEERING_CONNECTION", "IPSEC_TUNNEL", "LOOPBACK", "FLEX_TUNNEL", "INTERNET" ]
Nested Schema : zprTags
Type:
object
Additional Properties Allowed
Show Source
-
object additionalProperties
Additional Properties Allowed: additionalPropertiesKey-value pair representing a defined tag key and value, scoped to a namespace.
zprTags for this resource. This is unique to ZPR, and extends the defined tags to include a mode keyword as well Example: `{"Oracle-DataSecurity-ZPR": {"MaxEgressCount": {"value":"42","mode":"audit"}}}`
Nested Schema : additionalProperties
Type:
object
Additional Properties Allowed
Show Source
-
object additionalProperties
The value of the tag. Only the String type is supported.
Key-value pair representing a defined tag key and value, scoped to a namespace. Example: `{"CostCenter": "42"}`
Nested Schema : additionalProperties
Type:
object
The value of the tag. Only the String type is supported.
Nested Schema : additionalProperties
Type:
object
Additional Properties Allowed
Show Source
-
object additionalProperties
The value of the tag.
Key-value pair representing a defined tag key and value, scoped to a namespace.
Nested Schema : additionalProperties
Type:
object
The value of the tag.
Response
Supported Media Types
- application/json
200 Response
The DRG was attached.
Headers
-
etag: string
For optimistic concurrency control. See `if-match`.
-
opc-request-id: string
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : DrgAttachment
Type:
object
A DRG attachment serves as a link between a DRG and a network resource. A DRG can be attached to a VCN, IPSec tunnel, remote peering connection, or virtual circuit.
Show Source
-
compartmentId(required):
string
Minimum Length:
1
Maximum Length:255
The OCID of the compartment containing the DRG attachment. -
definedTags:
object definedTags
Additional Properties Allowed: additionalPropertiesDefined tags for this resource. Each key is predefined and scoped to a namespace.
-
displayName:
string
Minimum Length:
1
Maximum Length:255
A user-friendly name. Does not need to be unique, and it is changeable. Avoid entering confidential information. -
drgId(required):
string
Minimum Length:
1
Maximum Length:255
The OCID of the DRG. -
drgRouteTableId:
string
Minimum Length:
1
Maximum Length:255
The OCID of the DRG route table that is assigned to this attachment. The DRG route table manages traffic inside the DRG. -
exportDrgRouteDistributionId:
string
Minimum Length:
1
Maximum Length:255
The OCID of the export route distribution used to specify how routes in the assigned DRG route table are advertised to the attachment. If this value is null, no routes are advertised through this attachment. -
freeformTags:
object freeformTags
Additional Properties Allowed: additionalPropertiesFree-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. Example: {"Department": "Finance"}
-
id(required):
string
Minimum Length:
1
Maximum Length:255
The DRG attachment's OCID. -
internalType:
string
Allowed Values:
[ "GDRG_SERVICE_RESOURCE", "GDRG_MESH_RPC" ]
STANDARD applies to all regional resources which are customer visible, GDRG_SERVICE_RESOURCE applies to internal resources created to back GlobalDRGAttachments, and GDRG_MESH_RPC applies to internal RPC Attachments used to facilitate GlobalDRG functionality. -
isCrossTenancy:
boolean
Indicates whether the DRG attachment and attached network live in a different tenancy than the DRG.
-
lifecycleState(required):
string
Allowed Values:
[ "ATTACHING", "ATTACHED", "DETACHING", "DETACHED", "UPDATING" ]
The DRG attachment's current state. -
natPolicyId:
string
Minimum Length:
1
Maximum Length:255
The OCID of the DRG attachment's NAT policy. -
networkDetails:
object DrgAttachmentNetworkDetails
Discriminator:
type
-
routeTableId:
string
Minimum Length:
1
Maximum Length:255
This field is deprecated. Instead, use the networkDetails field to view the OCID of the attached resource. The value of this field is the OCID of the route table the DRG attachment is using. Associate a route table with a DRG attachment to access multiple VCNs. -
timeCreated:
string(date-time)
The date and time the DRG attachment was created, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Example: 2016-08-25T21:10:29.600Z
-
transitiveTrafficEnabled:
string
Allowed Values:
[ "ENABLED", "DISABLED" ]
Indicates if transitive traffic is enabled for this DRG attachment. This field is only supported for VirtualCircuit and IPSec DRG attachments. -
vcnId:
string
Minimum Length:
1
Maximum Length:255
The OCID of the VCN. This field is deprecated. Instead, use the networkDetails field to view the OCID of the attached resource. -
zprTags:
object zprTags
Additional Properties Allowed: additionalPropertieszprTags for this resource. This is unique to ZPR, and extends the defined tags to include a mode keyword as well Example: `{"Oracle-DataSecurity-ZPR": {"MaxEgressCount": {"value":"42","mode":"audit"}}}`
Nested Schema : definedTags
Type:
object
Additional Properties Allowed
Show Source
-
object additionalProperties
Additional Properties Allowed: additionalPropertiesKey-value pair representing a defined tag key and value, scoped to a namespace. Example: `{"CostCenter": "42"}`
Defined tags for this resource. Each key is predefined and scoped to a namespace.
Nested Schema : freeformTags
Type:
object
Additional Properties Allowed
Show Source
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. Example: {"Department": "Finance"}
Nested Schema : DrgAttachmentNetworkDetails
Type:
object
Discriminator:
Show Source
type
-
id:
string
Minimum Length:
1
Maximum Length:255
The OCID of the network attached to the DRG. -
type(required):
string
Allowed Values:
[ "VCN", "IPSEC_TUNNEL", "VIRTUAL_CIRCUIT", "REMOTE_PEERING_CONNECTION", "FLEX_TUNNEL", "LOOPBACK", "INTERNET" ]
Nested Schema : zprTags
Type:
object
Additional Properties Allowed
Show Source
-
object additionalProperties
Additional Properties Allowed: additionalPropertiesKey-value pair representing a defined tag key and value, scoped to a namespace.
zprTags for this resource. This is unique to ZPR, and extends the defined tags to include a mode keyword as well Example: `{"Oracle-DataSecurity-ZPR": {"MaxEgressCount": {"value":"42","mode":"audit"}}}`
Nested Schema : additionalProperties
Type:
object
Additional Properties Allowed
Show Source
-
object additionalProperties
The value of the tag. Only the String type is supported.
Key-value pair representing a defined tag key and value, scoped to a namespace. Example: `{"CostCenter": "42"}`
Nested Schema : additionalProperties
Type:
object
The value of the tag. Only the String type is supported.
Nested Schema : additionalProperties
Type:
object
Additional Properties Allowed
Show Source
-
object additionalProperties
The value of the tag.
Key-value pair representing a defined tag key and value, scoped to a namespace.
Nested Schema : additionalProperties
Type:
object
The value of the tag.
400 Response
Bad Request
Headers
-
opc-request-id: string
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
object
The properties that define an error.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing. See [API Errors](https://docs.us-phoenix-1.oraclecloud.com/Content/API/References/apierrors.htm).
-
message(required):
string
A human-readable error string.
401 Response
Unauthorized
Headers
-
opc-request-id: string
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
object
The properties that define an error.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing. See [API Errors](https://docs.us-phoenix-1.oraclecloud.com/Content/API/References/apierrors.htm).
-
message(required):
string
A human-readable error string.
404 Response
Not Found
Headers
-
opc-request-id: string
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
object
The properties that define an error.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing. See [API Errors](https://docs.us-phoenix-1.oraclecloud.com/Content/API/References/apierrors.htm).
-
message(required):
string
A human-readable error string.
409 Response
Conflict
Headers
-
opc-request-id: string
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
object
The properties that define an error.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing. See [API Errors](https://docs.us-phoenix-1.oraclecloud.com/Content/API/References/apierrors.htm).
-
message(required):
string
A human-readable error string.
500 Response
Internal Server Error
Headers
-
opc-request-id: string
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
object
The properties that define an error.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing. See [API Errors](https://docs.us-phoenix-1.oraclecloud.com/Content/API/References/apierrors.htm).
-
message(required):
string
A human-readable error string.
Default Response
An error has occurred.
Headers
-
opc-request-id: string
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
object
The properties that define an error.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing. See [API Errors](https://docs.us-phoenix-1.oraclecloud.com/Content/API/References/apierrors.htm).
-
message(required):
string
A human-readable error string.