Tests the network connectivity between an API Gateway instance and a port on an Elastic Compute Service (ECS) or Server Load Balance (SLB) instance in a virtual private cloud (VPC) access authorization.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
apigateway:ValidateVpcConnectivity |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| VpcAccessId |
string |
Yes |
The ID of the VPC access authorization. |
5f1b3216f9********e2c1297b6741dc |
| InstanceId |
string |
Yes |
The ID of the API Gateway instance. |
apigateway-hz-72bc18****** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
9A591B5B-0EC2-5463-B8B8-1984AE3AEBF1 |
| Connected |
boolean |
Indicates whether the API Gateway instance is connected to the port. Valid values:
|
True |
| IpType |
string |
Indicates whether the instance in the authorization is an ECS instance or an SLB instance when the instance ID in the authorization is an IP address. Valid values:
|
ECS |
Examples
Success response
JSON format
{
"RequestId": "9A591B5B-0EC2-5463-B8B8-1984AE3AEBF1",
"Connected": true,
"IpType": "ECS"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.