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
Key | Datatype | Required | Description |
---|---|---|---|
opc-retry-token | string | 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). | |||
Content-Type | string | ||
Date | string | (Required) Current Date | |
Authorization | string | (Required) Signature Authentication on Authorization header | |
x-content-sha256 | string | (Required) Content sha256 for POST, PUT and PATCH operations |
RESPONSES
status: OK
{"id":"ex tempor ipsum","compartmentId":"consequat qui ut","drgId":"nisi Excepteur deserunt","lifecycleState":"DETACHED","definedTags":{},"displayName":"labore mollit ex et","drgRouteTableId":"amet Duis in","exportDrgRouteDistributionId":"nisi adipisicing tempor","freeformTags":{},"isCrossTenancy":false,"networkDetails":{"type":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"id":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},"routeTableId":"velit pariatur","timeCreated":"2011-07-31T11:13:02.008Z","vcnId":"ut sed sit"}