CreateDrg

POST {{baseUrl}}/drgs

Creates a new dynamic routing gateway (DRG) in the specified compartment. For more information, see Dynamic Routing Gateways (DRGs).

For the purposes of access control, you must provide the OCID of the compartment where you want the DRG to reside. Notice that the DRG doesn't have to be in the same compartment as the VCN, the DRG attachment, or other Networking Service components. If you're not sure which compartment to use, put the DRG in the same compartment as the VCN. For more information about compartments and access control, see Overview of the IAM Service. For information about OCIDs, see Resource Identifiers.

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

Request Body

{"compartmentId"=>"{{compartment_ocid}}", "displayName"=>"fugiat proident dolore 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

{"compartmentId":"anim commodo","id":"voluptate consectetur","lifecycleState":"TERMINATED","defaultDrgRouteTables":{"ipsecTunnel":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"remotePeeringConnection":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"vcn":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"virtualCircuit":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},"defaultExportDrgRouteDistributionId":"ut culpa","definedTags":{},"displayName":"consequat sint","freeformTags":{},"timeCreated":"1955-10-18T10:38:01.076Z"}