Calls the ListVpcEndpointSecurityGroups operation to query the security groups that are associated with an endpoint.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
privatelink:ListVpcEndpointSecurityGroups |
get |
*VpcEndpoint
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID of the endpoint to query. You can call the DescribeRegions operation to obtain the region ID. |
cn-huhehaote |
| NextToken |
string |
No |
Specifies whether there is a next query token. Valid values:
|
caeba0bbb2be03f84eb48b699f0a4883 |
| MaxResults |
integer |
No |
The number of entries per page. Valid values: 1 to 50. Default value: 50. |
50 |
| EndpointId |
string |
Yes |
The ID of the endpoint to query. |
ep-hp33b2e43fays7s8**** |
| RegionId |
string |
Yes |
The region ID of the endpoint that you want to query. You can call the DescribeRegions operation to query the most recent region list. |
cn-huhehaote |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| SecurityGroups |
array<object> |
The security group information. |
|
|
object |
The security group information. |
||
| SecurityGroupId |
string |
The ID of the security group associated with the endpoint. |
sg-hp33bw6ynvm2yb0e**** |
| SecurityGroupStatus |
string |
The association status of the security group. Valid values:
|
Attached |
| NextToken |
string |
Indicates whether there is a next query token. Valid values:
|
caeba0bbb2be03f84eb48b699f0a4883 |
| RequestId |
string |
The request ID. |
0ED8D006-F706-4D23-88ED-E11ED28DCAC0 |
| MaxResults |
integer |
The number of entries per page. |
50 |
| TotalCount |
integer |
The total number of entries returned. |
12 |
Examples
Success response
JSON format
{
"SecurityGroups": [
{
"SecurityGroupId": "sg-hp33bw6ynvm2yb0e****",
"SecurityGroupStatus": "Attached"
}
],
"NextToken": "caeba0bbb2be03f84eb48b699f0a4883",
"RequestId": "0ED8D006-F706-4D23-88ED-E11ED28DCAC0",
"MaxResults": 50,
"TotalCount": 12
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | EndpointNotFound | The specified Endpoint does not exist. | The specified Endpoint does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.