CreateServiceGateway
POST {{baseUrl}}/serviceGateways
Creates a new service gateway in the specified compartment.
For the purposes of access control, you must provide the OCID of the compartment where you want the service gateway to reside. 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 service gateway, 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}}", "vcnId"=>"ocid1.vcn.oc1....", "services"=>[{"value"=>"<Error: Too many levels of nesting to fake this schema>"}], "displayName"=>"tempor esse", "routeTableId"=>"ut"}
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
{"compartmentId":"ut eu","id":"tempor anim","lifecycleState":"PROVISIONING","vcnId":"fugiat mollit Lorem","blockTraffic":false,"services":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}],"definedTags":{},"displayName":"irure Lorem sit reprehenderit","freeformTags":{},"routeTableId":"sunt ut","timeCreated":"1970-01-23T01:47:19.226Z"}