All Products
Search
Document Center

Function Compute:ListVpcBindings

Last Updated:Jun 02, 2023

Queries the list of VPCs.

Authorization information

There is currently no authorization information disclosed in the API.

Request syntax

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

Request parameters

ParameterTypeRequiredDescriptionExample
serviceNamestringNo

The name of the service.

serviceName
X-Fc-Account-IdstringNo

The time when Function Compute API is called. Specify the time in the yyyy-mm-ddhh:mm:ss format.

188077086902****
X-Fc-DatestringNo

Example 1

Wed, 11 May 2022 09:00:00 GMT
X-Fc-Trace-IdstringNo

Queries the list of VPCs.

rid281s******

Response parameters

ParameterTypeDescriptionExample
object

{"name":"ListVpcBindings","product":"FC-Open","version":"2021-04-06","path":"/2021-04-06/services/{serviceName}/bindings","deprecated":0,"method":"GET","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","description":"The name of the service. ","example":"serviceName"},{"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-01 12: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":"rid281s******"}]","response_headers":"[]","response":"{"type":"Object","children":[{"name":"vpcIds","required":false,"checkBlank":false,"visibility":"Public","deprecated":false,"type":"Array","subType":"String","example":"vpc-xxxx","description":"The ID of the VPC. "}],"title":"Schema of Response","description":"The returned data. "}","errors":"{}"}

Examples

Sample success responses

JSONformat

{
  "vpcIds": [
    "vpc-xxxx"
  ]
}

Error codes

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

Change history

Change timeSummary of changesOperation
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