列出所有标签
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求语法
GET /api/v1/tag HTTP/1.1
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| RegionId |
string |
否 |
地域 id。 |
cn-hangzhou |
| tagsOnly |
boolean |
否 |
是否展示标签。 枚举值:
|
true |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| RequestId |
string |
Id of the request |
14E2358E-0499-509E-8E22-CA30EC474A9A |
| Success |
boolean |
请求是否成功,与业务无关。 枚举值:
|
true |
| ErrorCode |
string |
错误码。 |
404 |
| ErrorMessage |
string |
错误信息。 |
Internal server error. |
| HttpStatusCode |
string |
http 状态码。 |
200 |
| TagResources |
array<object> |
资源集合。 |
|
|
object |
|||
| ResourceId |
string |
实例 Id。 |
hgprecn-cn-0ju2uaanj001 |
| ResourceType |
string |
资源类型。 枚举值:
|
Instance |
| TagKey |
string |
标签键。 |
acs:rm:rgId |
| TagValue |
array |
同一个 tagKey 下的所有 tagValue 集合。 |
|
|
string |
标签值。 |
rg-acfm4lsp23l7jti |
示例
正常返回示例
JSON格式
{
"RequestId": "14E2358E-0499-509E-8E22-CA30EC474A9A",
"Success": true,
"ErrorCode": "404",
"ErrorMessage": "Internal server error.",
"HttpStatusCode": "200",
"TagResources": [
{
"ResourceId": "hgprecn-cn-0ju2uaanj001",
"ResourceType": "Instance",
"TagKey": "acs:rm:rgId",
"TagValue": [
"rg-acfm4lsp23l7jti"
]
}
]
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。