All Products
Search
Document Center

Virtual Private Cloud:DescribeTagKeysForExpressConnect

Last Updated:Aug 26, 2024

Queries the tags of an Express Connect circuit.

Debugging

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

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.
OperationAccess levelResource typeCondition keyAssociated operation
vpc:DescribeTagKeysForExpressConnectlist
  • PhysicalConnection
    acs:vpc:{#regionId}:{#AccountId}:physicalconnection/{#PhysicalConnectionId}
  • RouterInterface
    acs:vpc:{#regionId}:{#AccountId}:routerinterface/{#RouterInterfaceId}
  • VirtualBorderRouter
    acs:vpc:{#regionId}:{#AccountId}:virtualborderrouter/{#VbrId}
    none
none

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
TagKeysarray<object>

The tag keys.

object
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 code has changedView Change Details