You need to enable JavaScript to run this app.
导航
GetTagKeys - 获取标签键
最近更新时间:2023.11.03 11:34:11首次发布时间:2023.08.24 21:41:31

获取标签键

请求参数

名称
类型
是否必填
示例值
描述
Action
String

GetTagKeys

要执行的操作,取值:GetTagKeys

Version
String

2022-06-01

API的版本,取值:2022-06-01

NextToken
String

eyJOZXh0SW5mbyI6IntcIklEXCI6NzgzODg2MzV9IiwiU2lnblRpbWUiOjE2OTIyNjM3NDUsIlNpZ25hdHVyZSI6ImEyYzY5YTFiNDhjZDdjZmFiZGZjZTBjNTNmNThjNDE0ZThkNjQwNjJkMDkxMGY4MjBmYTAxODg1OWZjYTk0NzUifQ==

分页参数

MaxResults
Integer

10

获取的资源数量

响应数据

名称
类型
示例值
描述
TagKeys
Array of TagKey

{
"TagKey": "222",
"Category": "Custom"
}

标签键信息

NextToken
String

eyJOZXh0SW5mbyI6IntcIklEXCI6NzgzODg2MzV9IiwiU2lnblRpbWUiOjE2OTIyNjM3ODUsIlNpZ25hdHVyZSI6IjJiNmYwMmFlNTg3NmU0YzJhMGY2YTBmZGI2ZWY3NzBmZjdhMGJhMGQxOTUzYTZjYWEyODAxZWU4ZjFiN2YwYmUifQ==

分页参数

示例

请求

http://open.volcengineapi.com/?Action=GetTagKeys&Version=2022-06-01

响应

{
    "ResponseMetadata": {
        "RequestId": "202308011517312CB67EEB5AE7E901BE9F",
        "Action": "GetTagKeys",
        "Version": "2022-06-01",
        "Service": "tag",
        "Region": "cn-north-1"
    },
    "Result": {
        "TagKeys": [
            {
                "TagKey": "volc:vke:cluster-id-ccj3ps8d5ue15",
                "Category": "System"
            },       
           {
                "TagKey": "volc:vpn:createresource",
                "Category": "System"
            }
        ],
        "NextToken": "eyJOZXh0SW5mbyI6IntcIklEXCI6MTI4MDc4NDE3fSIsIlNpZ25UaW1lIjoxNjkwODc0MjUxLCJTaWduYXR1cmUiOiI0NWM3NzU2OTRhNmM5MTY0NzAwNWE0M2YxN2ZhNGViZjdhMTdmMDMxNjFmMTQwM2ZjMGU3MTE5YTllZDg5NjNlIn0="
    }
}

错误码

您可访问公共错误码,获取详细信息。