Queries the resources associated with a specified 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 |
| PortRangeListId |
string |
Yes |
The ID of the port list. |
prl-2ze9743**** |
| NextToken |
string |
No |
The pagination token. Set the value to the |
AAAAARbaCuN6hiD08qrLdwJ9Fh15YZPnzqF7Vs2EB6Ix327v |
| MaxResults |
integer |
No |
The number of entries to return per page in a paging query. Maximum value: 100. Default value: 10. |
10 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3**** |
| NextToken |
string |
The pagination token returned by the current call. If this value is empty, no more data is returned. |
caeba0bbb2be03f84eb48b699f0a4883 |
| PortRangeListAssociations |
array<object> |
The array of resources associated with the port list. |
|
|
object |
The collection of resources associated with the port list. |
||
| ResourceId |
string |
The ID of the resource. |
sg-2zefu72**** |
| ResourceType |
string |
The type of the resource. Valid values: 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.