All Products
Search
Document Center

Elastic Compute Service:DescribePrefixListAssociations

Last Updated:Mar 19, 2024

Queries the information of resources that are associated with a specific prefix list.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The ID of the prefix list.

cn-chengdu
PrefixListIdstringYes

The query token. Set the value to the NextToken value returned in the previous call to the DescribePrefixListAssociations operation. Leave this parameter empty the first time you call this operation.

pl-x1j1k5ykzqlixdcy****
NextTokenstringNo

The number of entries to return on each page.

Maximum value: 100.

Default value: 10.

AAAAAdDWBF2****
MaxResultsintegerNo

The query token that is returned in this call. If the return value is empty, no more data is returned.

10

Response parameters

ParameterTypeDescriptionExample
object
NextTokenstring

The ID of the request.

AAAAAdDWBF2****
RequestIdstring

Details about the resources that are associated with the prefix list.

38793DB8-A4B2-4AEC-BFD3-111234E9188D
PrefixListAssociationsobject []

The ID of the resource.

ResourceIdstring

The type of the resource.

sg-bp11ujym6xsff6l0****

Examples

Sample success responses

JSONformat

{
  "NextToken": "AAAAAdDWBF2****",
  "RequestId": "38793DB8-A4B2-4AEC-BFD3-111234E9188D",
  "PrefixListAssociations": {
    "PrefixListAssociation": [
      {
        "ResourceId": "sg-bp11ujym6xsff6l0****",
        "ResourceType": "securitygroup"
      }
    ]
  }
}

Error codes

HTTP status codeError codeError messageDescription
400InvalidParameter%sThe specified parameter is invalid.
400NotSupported.ResourceTypeThe specified resource type is not supported.The resource type is not supported.
404InvalidPrefixListId.NotFoundThe specified prefix list was not found.The prefix list does not exist.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2023-11-13The Error code has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    Error Codes 404 change
    delete Error Codes: 400