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

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;compartmentId&quot;:&quot;ut eu&quot;,&quot;id&quot;:&quot;tempor anim&quot;,&quot;lifecycleState&quot;:&quot;PROVISIONING&quot;,&quot;vcnId&quot;:&quot;fugiat mollit Lorem&quot;,&quot;blockTraffic&quot;:false,&quot;services&quot;:[{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}],&quot;definedTags&quot;:{},&quot;displayName&quot;:&quot;irure Lorem sit reprehenderit&quot;,&quot;freeformTags&quot;:{},&quot;routeTableId&quot;:&quot;sunt ut&quot;,&quot;timeCreated&quot;:&quot;1970-01-23T01:47:19.226Z&quot;}