Binds a VPC.
Authorization information
Request syntax
POST /2021-04-06/services/{serviceName}/bindings
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
serviceName | string | Yes | The name of the service. | demo-service |
body | object | No | The ID of your Alibaba Cloud account. | |
vpcId | string | Yes | Example 1 | v-xxxx |
X-Fc-Account-Id | string | No | Binds a VPC. | 188077086902**** |
X-Fc-Date | string | No | {"name":"CreateVpcBinding","product":"FC-Open","version":"2021-04-06","path":"/2021-04-06/services/{serviceName}/bindings","deprecated":0,"method":"POST","protocol":"HTTP|HTTPS","hidden":0,"timeout":10000,"parameter_type":"Single","params":"[{"name":"serviceName","position":"Path","required":false,"checkBlank":false,"visibility":"Public","deprecated":false,"type":"String","title":"A short description of struct","description":"The name of the service. ","example":"demo-service"},{"name":"body","position":"Body","style":"json","required":false,"checkBlank":false,"visibility":"Public","deprecated":false,"type":"Object","params":[{"name":"vpcId","required":false,"checkBlank":false,"visibility":"Public","deprecated":false,"type":"String","description":"The ID of the VPC to be bound. ","example":"v-xxxx"}],"description":"The structure of the request. "},{"name":"X-Fc-Account-Id","position":"Header","required":false,"checkBlank":false,"visibility":"Public","deprecated":false,"type":"String","description":"The ID of your Alibaba Cloud account. ","example":"188077086902****"},{"name":"X-Fc-Date","position":"Header","required":false,"checkBlank":false,"visibility":"Public","deprecated":false,"type":"String","description":"The time when Function Compute API is called. Specify the time in the yyyy-mm-ddhh:mm:ss format. ","example":"2022-01-0112:00:00"},{"name":"X-Fc-Trace-Id","position":"Header","required":false,"checkBlank":false,"visibility":"Public","deprecated":false,"type":"String","description":"The custom request ID. ","example":"asdf****"}]","response_headers":"[]","response":"{}","body_style":"json","errors":"{}"} | Wed, 11 May 2022 09:00:00 GMT |
Response parameters
Examples
Sample success responses
JSON
format
{}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2022-11-28 | The internal configurations of the API operation change but you can still call the operation. | |||||||||||||||
| ||||||||||||||||
2021-06-30 | The input parameters of the API operation change. | |||||||||||||||
| ||||||||||||||||
2021-06-30 | The input parameters of the API operation change. | |||||||||||||||
| ||||||||||||||||
2021-06-30 | The input parameters of the API operation change. | |||||||||||||||
|