Skip to content

Attach Service to VPC

POST/projects/{project_id}/services/{service_id}/attachToVPC

Associates a service with a VPC.

Path ParametersExpand Collapse
project_id: string
service_id: string
Body ParametersJSONExpand Collapse
vpc_id: string

The ID of the VPC to attach the service to.

ReturnsExpand Collapse
message: optional string

Attach Service to VPC

curl http://localhost:8080/projects/$PROJECT_ID/services/$SERVICE_ID/attachToVPC \
    -H 'Content-Type: application/json' \
    -H "Authorization: Bearer $TIGER_CLOUD_API_KEY" \
    -d '{
          "vpc_id": "1234567890"
        }'
{
  "message": "Action completed successfully."
}
Returns Examples
{
  "message": "Action completed successfully."
}