All Products
Search
Document Center

Virtual Private Cloud:DescribeTagKeysForExpressConnect

Last Updated:Dec 02, 2023

Queries the tags of an Express Connect circuit.

debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

debugging

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
ResourceTypestringNo

The type of the resource. Set the value to PHYSICALCONNECTION, which specifies an Express Connect circuit.

PHYSICALCONNECTION
KeywordstringNo

The keyword of the tag. Fuzzy match is supported. You can specify a keyword to query all tags that contain the keyword.

keyword
RegionIdstringYes

The ID of the region to which the resource resides.

You can call the DescribeRegions operation to obtain the region ID.

cn-hangzhou
NextTokenstringNo

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

  • You do not need to specify this parameter for the first request.
  • You must specify the token that is obtained from the previous query as the value of NextToken.
FFmyTO70tTpLG6I3FmYAXGKPd****
MaxResultintegerNo

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

20
ResourceIdarrayNo

The IDs of the resources. You can specify up to 20 resource IDs.

stringNo

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

pc-bp16qjewdsunr41m1****

Response parameters

ParameterTypeDescriptionExample
object
NextTokenstring

A pagination token. It can be used in the next request to retrieve a new page of results.

  • If NextToken is empty, no next page exists.
  • If a value is returned for NextToken, the value can be used in the next request to retrieve a new page of results.
FFmyTO70tTpLG6I3FmYAXGKPd****
RequestIdstring

The request ID.

54B48E3D-DF70-471B-AA93-08E683A1B45
TagKeysobject []

The tag keys.

Typestring

The type of the resource. The value is set to PHYSICALCONNECTION, which indicates an Express Connect circuit.

PHYSICALCONNECTION
TagKeystring

The key of the tag.

FinanceDept

Examples

Sample success responses

JSONformat

{
  "NextToken": "FFmyTO70tTpLG6I3FmYAXGKPd****",
  "RequestId": "54B48E3D-DF70-471B-AA93-08E683A1B45",
  "TagKeys": {
    "TagKey": [
      {
        "Type": "PHYSICALCONNECTION",
        "TagKey": "FinanceDept"
      }
    ]
  }
}

Error codes

HTTP status codeError codeError messageDescription
400BothEmpty.TagsAndResourcesThe specified Tags and ResourcesIds are not allow to both empty.The tags and resource groups cannot be empty at the same time.
400MissingParameter.TagKeyThe input parameter TagKey that is mandatory for processing this request is not supplied.The TagKey parameter is not set.
400MissingParameter.TagValueThe input parameter TagValue that is mandatory for processing this request is not supplied.The TagValue parameter is not set.
400InvalidTagKeyThe tag keys are not valid.The tag index is invalid.
400InvalidTagValueThe tag values are not valid.The tag value is invalid.
400InvalidInstanceType.NotFoundThe instance type is not foundThe instance type is not found.
400InvalidInstanceIds.NotFoundThe instanceIds are not foundThe instance ID is not found.
400Forbidden.TagKeysThe request do not allow to operate the tag keysYou do not have the permissions to set the TagKeys parameter.
400QuotaExceeded.TagNumCustom Tags quota exceededThe upper limit is reached.
400Forbidden.TagKey.DuplicatedThe specified tag key already exists.The tag resources are duplicate.
400SizeLimitExceeded.ResourceIdThe maximum number of resource IDs is exceeded.The number of resource group IDs has reached the upper limit.
403ForbiddenUser not authorized to operate on the specified resource.You do not have the permissions to manage the specified resource. Apply for the permissions and try again.

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

Change history

Change timeSummary of changesOperation
2023-09-11API Description Update,The API operation is not deprecated.,The error codes of the API operation change.see changesets
Change itemChange content
API DescriptionAPI Description Update
API Deprecation DescriptionThe API operation is not deprecated.
Error CodesThe error codes of the API operation change.
    delete Error Codes: 400
    delete Error Codes: 403