All Products
Search
Document Center

Function Compute:CreateVpcBinding

Last Updated:Jun 02, 2023

Binds a VPC.

Authorization information

There is currently no authorization information disclosed in the API.

Request syntax

POST /2021-04-06/services/{serviceName}/bindings

Request parameters

ParameterTypeRequiredDescriptionExample
serviceNamestringYes

The name of the service.

demo-service
bodyobjectNo

The ID of your Alibaba Cloud account.

vpcIdstringYes

Example 1

v-xxxx
X-Fc-Account-IdstringNo

Binds a VPC.

188077086902****
X-Fc-DatestringNo

{"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

ParameterTypeDescriptionExample
The current API has no return parameters

Examples

Sample success responses

JSONformat

{}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2022-11-28The internal configurations of the API operation change but you can still call the operation.
Change itemChange content
The internal configurations of the API operation change but you can still call the operation.
2021-06-30The input parameters of the API operation change.
Change itemChange content
Input ParametersThe input parameters of the API operation change.
    Added Input Parameters: X-Fc-Account-Id
    Added Input Parameters: X-Fc-Code-Checksum
    Added Input Parameters: X-Fc-Log-Type
    Added Input Parameters: X-Fc-Invocation-Type
    Added Input Parameters: X-Fc-Date
    Added Input Parameters: X-Fc-Trace-Id
2021-06-30The input parameters of the API operation change.
Change itemChange content
Input ParametersThe input parameters of the API operation change.
    Added Input Parameters: X-Fc-Account-Id
2021-06-30The input parameters of the API operation change.
Change itemChange content
Input ParametersThe input parameters of the API operation change.
    delete Input Parameters: X-Fc-Account-Id