Queries a list of existing VPC connections.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
fc:ListVpcBindings |
get |
*All Resource
|
None | None |
Request syntax
GET /2021-04-06/services/{serviceName}/bindings HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| serviceName |
string |
Yes |
The name of the service. |
serviceName |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| X-Fc-Account-Id |
string |
No |
The ID of your Alibaba Cloud account. |
188077086902**** |
| X-Fc-Date |
string |
No |
The time when the function is invoked. The value is in the EEE,d MMM yyyy HH:mm:ss GMT format. |
Wed, 11 May 2022 09:00:00 GMT |
| X-Fc-Trace-Id |
string |
No |
The request ID. |
rid281s****** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Returns a list of IDs of bound VPCs. |
||
| vpcIds |
array |
The IDs of bound VPCs. |
|
|
string |
The IDs of bound VPCs. |
vpc-xxxx |
Examples
Success response
JSON format
{
"vpcIds": [
"vpc-xxxx"
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.