Queries the security group that is 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 that you want to query. You can call the DescribeRegions operation to query the most recent region list. |
cn-huhehaote |
| NextToken |
string |
No |
The pagination token that is used in the next request to retrieve a new page of results. Valid values:
|
caeba0bbb2be03f84eb48b699f0a4883 |
| MaxResults |
integer |
No |
The number of entries to return on each page. Valid values:1 to 50. Default value: 50. |
50 |
| EndpointId |
string |
Yes |
The ID of the endpoint that you want 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 information about the security groups. |
|
|
object |
The information about the array object. |
||
| SecurityGroupId |
string |
The ID of the security group that is associated with the endpoint. |
sg-hp33bw6ynvm2yb0e**** |
| SecurityGroupStatus |
string |
The associate status of the security group, valid values:
|
Attached |
| NextToken |
string |
The returned value of NextToken is a pagination token, which can be used in the next request to retrieve a new page of results. Valid values:
|
caeba0bbb2be03f84eb48b699f0a4883 |
| RequestId |
string |
The request ID. |
0ED8D006-F706-4D23-88ED-E11ED28DCAC0 |
| MaxResults |
integer |
The number of entries returned 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.