All Products
Search
Document Center

Anycast Elastic IP Address:ListTagResources

最終更新日:Mar 03, 2024

Queries Anycast elastic IP addresses (Anycast EIPs).

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
ResourceIdarrayNo

The resource IDs.

stringNo

The resource ID. You can specify up to 20 resource IDs.

Note You must specify ResourceId.N or Tag.N (Tag.N.Key or Tag.N.Value).
aeip-2zeerraiwb7ujsxdc****
ResourceTypestringYes

The resource type. Set the value to ANYCASTEIPADDRESS.

ANYCASTEIPADDRESS
Tagobject []No

The tag information.

KeystringNo

The key of tag N. You can specify up to 20 tag keys. The tag key cannot be an empty string.

The tag key can be a up to 128 characters in length and cannot contain http:// or https://. The tag key cannot start with acs: or aliyun.

Note You must specify ResourceId.N or Tag.N (Tag.N.Key or Tag.N.Value).
FinanceDept
ValuestringNo

The value of tag N. You can specify up to 20 tag values. The tag value can be an empty string.

It can be up to 128 characters in length and cannot start with acs: or aliyun. It cannot contain http:// or https://.

Note You must specify ResourceId.N or Tag.N (Tag.N.Key or Tag.N.Value).
FinanceJoshua
NextTokenstringNo

The pagination token that is used in the next request to retrieve a new page of results. Valid values:

  • If this is your first query or no next queries are to be sent, ignore this parameter.
  • You must specify the token that is obtained from the previous query as the value of NextToken.
FFmyTO70tTpLG6I3FmYAXGKPd****
MaxResultsstringNo

The number of entries per page. Valid values: 1 to 50. Default value: 50.

50

Response parameters

ParameterTypeDescriptionExample
object
NextTokenstring

The pagination token that is used in the next request to retrieve a new page of results. Valid values:

  • If NextToken is empty, no next page exists.
  • If a value is returned for NextToken, the value is the token that determines the start point of the next query.
FFmyTO70tTpLG6I3FmYAXGKPd****
RequestIdstring

The request ID.

DE65F6B7-7566-4802-9007-96F2494AC512
TagResourcesobject []

The resources to which the tags are added.

ResourceIdstring

The resource ID.

aeip-2zeerraiwb7ujsxdc****
ResourceTypestring

The resource type. Only ANYCASTEIPADDRESS may be returned.

ANYCASTEIPADDRESS
TagValuestring

The value of tag N.

FinanceJoshua
TagKeystring

The key of tag N.

FinanceDept

Examples

Sample success responses

JSONformat

{
  "NextToken": "FFmyTO70tTpLG6I3FmYAXGKPd****",
  "RequestId": "DE65F6B7-7566-4802-9007-96F2494AC512",
  "TagResources": [
    {
      "ResourceId": "aeip-2zeerraiwb7ujsxdc****",
      "ResourceType": "ANYCASTEIPADDRESS",
      "TagValue": "FinanceJoshua",
      "TagKey": "FinanceDept"
    }
  ]
}

Error codes

HTTP status codeError codeError message
400InvalidTagKeyThe tag keys are not valid.
400NumberExceed.TagsThe maximum number of tags is exceeded.
400NumberExceed.ResourceIdsThe maximum number of resource IDs is exceeded.
400Forbidden.TagKeysThe tag key cannot be operated by the request.
400Forbidden.TagKey.DuplicatedThe specified tag key already exists.
400InvalidInstanceIds.NotFoundThe instance IDs are not found.
400InvalidInstanceType.NotFoundThe instance type is not found.

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

Change history

Change timeSummary of changesOperation
No change history