Queries the resources that are associated with a port list, such as security groups.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecs:DescribePortRangeListAssociations |
list |
*PortRangeList
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID of the port list. You can call the DescribeRegions operation to query the most recent region list. |
cn-hangzhou |
| RegionId |
string |
Yes |
The region ID of the port list. You can call the DescribeRegions operation to query the most recent region list. |
cn-hangzhou |
| PortRangeListId |
string |
Yes |
The ID of the port list. |
prl-2ze9743**** |
| NextToken |
string |
No |
The pagination token that is used in the next request to retrieve a new page of results. You do not need to specify this parameter for the first request. You must specify the token that is obtained from the previous query as the value of |
AAAAARbaCuN6hiD08qrLdwJ9Fh15YZPnzqF7Vs2EB6Ix327v |
| MaxResults |
integer |
No |
The number of entries per page. Valid values: 1 to 100. Default value: 10. |
10 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The data returned. |
||
| RequestId |
string |
The request ID. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3**** |
| NextToken |
string |
A pagination token. It can be used in the next request to retrieve a new page of results. If the return value is empty, no more data is returned. |
caeba0bbb2be03f84eb48b699f0a4883 |
| PortRangeListAssociations |
array<object> |
The resources that are associated with the port list. |
|
|
object |
The resource that is associated with the port list. |
||
| ResourceId |
string |
The ID of the resource. |
sg-2zefu72**** |
| ResourceType |
string |
The type of the resource. Valid value: SecurityGroup. |
SecurityGroup |
Examples
Success response
JSON format
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3****",
"NextToken": "caeba0bbb2be03f84eb48b699f0a4883",
"PortRangeListAssociations": [
{
"ResourceId": "sg-2zefu72****",
"ResourceType": "SecurityGroup"
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidPortRangeListId.NotFound | The specified port range list was not found. | The specified port list was not found. |
| 400 | InvalidParameter | The specified parameter is not valid. | A specified parameter is invalid. |
| 404 | InvalidRegionId.NotFound | The specified parameter RegionId is not valid. | The specified RegionId parameter does not exist. Check whether the service is available in the specified region. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.