AttachService
POST {{baseUrl}}/serviceGateways/:serviceGatewayId/actions/attachService
Adds the specified Service to the list of enabled
Service objects for the specified gateway. You must also set up a route rule with the
cidrBlock of the Service as the rule's destination and the service gateway as the rule's
target. See Route Table.
Note: The AttachServiceId operation is an easy way to add an individual Service to
the service gateway. Compare it with
UpdateServiceGateway, which replaces
the entire existing list of enabled Service objects with the list that you provide in the
Update call.
Request Body
{"serviceId"=>"in"}
HEADERS
| Key | Datatype | Required | Description |
|---|---|---|---|
if-match | string | For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match | |
| parameter to the value of the etag from a previous GET or POST response for that resource. The resource | |||
| will be updated or deleted only if the etag you provide matches the resource's current etag value. | |||
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 esse consectetur","id":"eu ad anim","lifecycleState":"TERMINATING","vcnId":"ea culpa et Duis deserunt","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":"Lorem Excepteur mini","freeformTags":{},"routeTableId":"ex","timeCreated":"2015-12-17T16:51:12.199Z"}