You need to enable JavaScript to run this app.
文档中心
资源管理

资源管理

复制全文
下载 pdf
标签操作
TagResources - 绑定标签
复制全文
下载 pdf
TagResources - 绑定标签
绑定标签​
调试​
API Explorer
您可以通过 API Explorer 在线发起调用,无需关注签名生成过程,快速获取调用结果。
​
请求参数​
下方仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。​
Action string 必选 示例值:TagResources​
要执行的操作,取值:TagResources。​
​
Version string 必选 示例值:2024-01-01​
API的版本,取值:2024-01-01。​
​
ResourceIds.N string[] 必选 示例值:rs-eqefqefq​
资源id​
​
ResourceType string 必选 示例值:resource_share​
资源类型​
​
Tags.N.Key string[] 必选 示例值:tagxxx​
标签键​
​
Tags.N.Value string[] 必选 示例值:huaifuq​
标签值​
​
​
​
返回参数​
本接口无特有的返回参数。更多信息请见返回结构。​
请求示例​
​
GET /?Action=TagResources&Version=2024-01-01&ResourceIds.1=rs-eqefqefq&ResourceType=resource_share HTTP/1.1​
Host: resource-share.volcengineapi.com​
X-Date: 20250905T084307Z​
Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20250905/cn-beijing/resource_share/request, SignedHeaders=host;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f​
​
​
​
返回示例​
​
{​
"ResponseMetadata": {​
"RequestId": "20250905164312051065155188EEF6E8",​
"Action": "TagResources",​
"Version": "2024-01-01",​
"Service": "resource_share",​
"Region": "cn-beijing"​
},​
"Result": {}​
}​
​
错误码​
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。​
​
状态码​
错误码​
错误信息​
说明​
400​
MissingParameter​
Required parameter[%v] is not found​
参数缺失,具体缺失的参数在会在Error Message中给出​
400​
InvalidParameter​
Parameter [%s] is invalid, error: %v​
无效的参数,具体无效的参数在会在Error Message中给出​
400​
SysTemTagConflict​
can not operate system tag, it is only for service​
不能操作系统标签​
400​
InvalidSystemTagKey​
system tag key [%s] is invalid, it must be sys:${ServiceName}:${variable}​
无效的系统标签,系统标签格式必须是:sys:${ServiceName}:$​
400​
SystemTagServiceConflict​
the service in system tag [%s] not match request service [%s]​
系统标签的服务与当前服务不匹配​
400​
CustomTagQuotaExceeded​
the resource [%s] custom tag quota exceed, it can add custom tag at most [%d]​
客户标签数超出quota限制​
400​
SystemTagQuotaExceeded​
the resource [%s] system tag quota exceed, it can add system tag at most [%d]​
系统标签数超出quota限制​
400​
NotSupportResourceType​
the resource type [%s] not support​
不支持的资源类型​
500​
InternalError​
Something went wrong in internal service, please try again later​
服务内部系统错误,往往是由服务内部组件异常、网络异常或服务自身bug导致,请及时联系相关管理员进行排查确认​
​
​
最近更新时间:2025.12.26 18:05:40
这个页面对您有帮助吗?
有用
有用
无用
无用