CreateDrgAttachment

POST {{baseUrl}}/drgAttachments

Attaches 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. For more information about DRGs, see Dynamic Routing Gateways (DRGs).

You may optionally specify a display name for the attachment, otherwise a default is provided. It does not have to be unique, and you can change it. Avoid entering confidential information.

For the purposes of access control, the DRG attachment is automatically placed into the currently selected compartment. For more information about compartments and access control, see Overview of the IAM Service.

Request Body

{"drgId"=>"nulla ad est amet", "displayName"=>"exercitation irure pariatur enim", "drgRouteTableId"=>"esse eiusmod", "networkDetails"=>{"type"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "id"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}, "routeTableId"=>"Ut quis eu ipsum do", "vcnId"=>"sit ullamco"}

HEADERS

KeyDatatypeRequiredDescription
opc-retry-tokenstringA 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).
Content-Typestring
Datestring(Required) Current Date
Authorizationstring(Required) Signature Authentication on Authorization header
x-content-sha256string(Required) Content sha256 for POST, PUT and PATCH operations

RESPONSES

status: OK

{&quot;id&quot;:&quot;ex tempor ipsum&quot;,&quot;compartmentId&quot;:&quot;consequat qui ut&quot;,&quot;drgId&quot;:&quot;nisi Excepteur deserunt&quot;,&quot;lifecycleState&quot;:&quot;DETACHED&quot;,&quot;definedTags&quot;:{},&quot;displayName&quot;:&quot;labore mollit ex et&quot;,&quot;drgRouteTableId&quot;:&quot;amet Duis in&quot;,&quot;exportDrgRouteDistributionId&quot;:&quot;nisi adipisicing tempor&quot;,&quot;freeformTags&quot;:{},&quot;isCrossTenancy&quot;:false,&quot;networkDetails&quot;:{&quot;type&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;id&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}},&quot;routeTableId&quot;:&quot;velit pariatur&quot;,&quot;timeCreated&quot;:&quot;2011-07-31T11:13:02.008Z&quot;,&quot;vcnId&quot;:&quot;ut sed sit&quot;}