查询资源标签
下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。
参数 | 类型 | 是否必填 | 示例值 | 描述 |
|---|---|---|---|---|
Action | String | 是 | ListTagsForResources | 要执行的操作,取值:ListTagsForResources。 |
Version | String | 是 | 2024-01-01 | API的版本,取值:2024-01-01。 |
ResourceIds.N | Array of String | 否 | rs-djqiofjq | 资源id |
ResourceType | String | 是 | resource_share | 资源类型 |
TagFilters.N.Key | Array of String | 否 | qdjqio | TagFilters标签筛选参数 |
TagFilters.N.Values.N | Array of String | 否 | ddqdkj | TagFilters标签值筛选参数 |
NextToken | String | 否 | dqoidhqwfuqhfijqbfoieqyfbqehfibeh | 请求下一页的Token餐宿 |
MaxResults | String | 否 | 100 | 查询最大返回结果数 |
下表仅列出本接口特有的返回参数。更多信息请参见返回结构。
参数 | 类型 | 示例值 | 描述 |
|---|---|---|---|
ResourceTags | Array of Object | [ | 资源标签数据 |
Total | Integer | 66 | 结果总数 |
NextToken | String | doiqfheiyfeyfewt | 请求下一页的Token |
GET /?Action=ListTagsForResources&Version=2024-01-01&ResourceIds.1=rs-djqiofjq&ResourceType=resource_share HTTP/1.1 Host: x.y.z X-Date: 20250905T090157Z Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20250905/cn-beijing/resource_share/request, SignedHeaders=host;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f
{ "ResponseMetadata": { "RequestId": "20250905172213108086118206C6B368", "Action": "ListTagsForResources", "Version": "2024-01-01", "Service": "resource_share", "Region": "cn-beijing" }, "Result": { "ResourceTags": [ { "ResourceType": "resource_share", "ResourceId": "rs-dqojidjq", "TagKey": "tagxx", "TagValue": "valuedadq" } ], "Total": 66, "NextToken": "doiqfheiyfeyfewt" } }
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。
状态码 | 错误码 | 说明 |
|---|---|---|
400 | ParamConflict | 请求参数不符合要求,两个参数不能同时传参 |
400 | InvalidParameter | 无效的参数,具体无效的参数在会在Error Message中给出 |
400 | MissingParameter | 参数缺失,具体缺失的参数在会在Error Message中给出 |
400 | MaxResultsExceeded | MaxResults超出传参范围 |
500 | InternalError | 服务内部系统错误,往往是由服务内部组件异常、网络异常或服务自身bug导致,请及时联系相关管理员进行排查确认 |