Queries the resources that are associated with a prefix list.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
vpc:GetVpcPrefixListAssociations | get | *PrefixList acs:vpc:{#regionId}:{#accountId}:prefixlist/{#PrefixListId} |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
PrefixListId | string | Yes | The ID of the prefix list that you want to query. | pl-0b7hwu67**** |
NextToken | string | No | The pagination token that is used in the next request to retrieve a new page of results. Valid values:
| FFmyTO70tTpLG6I3FmYAXGKPd**** |
MaxResults | long | No | The number of entries per page. Valid values: 1 to 100. Default value: 20. | 20 |
RegionId | string | Yes | The region ID of the prefix list. You can call the DescribeRegions operation to query the most recent region list. | cn-hangzhou |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "4EC47282-1B74-4534-BD0E-403F3EE64CAF",
"NextToken": "FFmyTO70tTpLG6I3FmYAXGKPd****",
"TotalCount": 1,
"Count": 1,
"PrefixListAssociation": [
{
"PrefixListId": "pl-0b7hwu67****",
"ResourceId": "vtb-bp1drpcfz9srr393h****",
"ResourceType": "vpcRouteTable",
"OwnerId": "153460731706****",
"Status": "Success",
"Reason": "failed",
"RegionId": "cn-hangzhou",
"ResourceUid": "132193271328****"
}
]
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | IllegalParam.NextToken | The specified NextToken is invalid. | The specified NextToken is invalid. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|
No change history