Queries information about resources that are associated with a prefix list, such as the resource IDs and types.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecs:DescribePrefixListAssociations |
get |
*PrefixList
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID of the prefix list. You can call the DescribeRegions operation to query the most recent region list. |
cn-chengdu |
| RegionId |
string |
Yes |
The region ID of the prefix list. You can call the DescribeRegions operation to query the most recent region list. |
cn-chengdu |
| PrefixListId |
string |
Yes |
The ID of the prefix list. |
pl-x1j1k5ykzqlixdcy**** |
| NextToken |
string |
No |
The query token. Set the value to the |
AAAAAdDWBF2**** |
| MaxResults |
integer |
No |
The maximum number of entries per page. Valid values: 1 to 100. Default value: 10. |
10 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| NextToken |
string |
The query token that is returned in this call. If the return value is empty, no more data is returned. |
AAAAAdDWBF2**** |
| RequestId |
string |
The ID of the request. |
38793DB8-A4B2-4AEC-BFD3-111234E9188D |
| PrefixListAssociations |
object |
||
| PrefixListAssociation |
array<object> |
Details about the resources that are associated with the prefix list. |
|
|
object |
|||
| ResourceId |
string |
The ID of the resource. |
sg-bp11ujym6xsff6l0**** |
| ResourceType |
string |
The type of the resource. |
securitygroup |
Examples
Success response
JSON format
{
"NextToken": "AAAAAdDWBF2****",
"RequestId": "38793DB8-A4B2-4AEC-BFD3-111234E9188D",
"PrefixListAssociations": {
"PrefixListAssociation": [
{
"ResourceId": "sg-bp11ujym6xsff6l0****",
"ResourceType": "securitygroup"
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | %s | The specified parameter is invalid. |
| 400 | NotSupported.ResourceType | The specified resource type is not supported. | The resource type is not supported. |
| 404 | InvalidPrefixListId.NotFound | The specified prefix list was not found. | The prefix list does not exist. |
| 404 | InvalidRegionId.NotFound | The specified RegionId does not exist. | The specified region ID does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.