调用TagResources添加资源标签。
接口说明
单用户调用频率:100 次/秒。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
cdn:TagResources |
update |
*Domain
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| ResourceType |
string |
是 |
资源类型。固定值:DOMAIN。 |
DOMAIN |
| ResourceId |
array |
是 |
资源 ID 列表。列表元素数量最大:50。 |
1 |
|
string |
否 |
资源 ID(Cdn 为加速域名)。 |
example.com |
|
| Tag |
array<object> |
是 |
标签列表。列表元素数量最大:20。 |
|
|
object |
否 |
标签详情。 |
||
| Key |
string |
是 |
标签键。 |
env |
| Value |
string |
否 |
标签值。 |
value |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| RequestId |
string |
请求 ID。 |
97C68796-EB7F-4D41-9D5B-12B909D76508 |
示例
正常返回示例
JSON格式
{
"RequestId": "97C68796-EB7F-4D41-9D5B-12B909D76508"
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | InvalidRegionId.Malformed | The specified RegionId is invalid. | |
| 400 | Resource.NotExist | Resources does not exist. | |
| 400 | TagKeyIsInvalid | The specified TagKey is invalid. | |
| 400 | TooManyTags | Too many tags. | |
| 400 | InvalidTagKey | The key should not be null, start with "acs:" or "aliyun", contain "http://" or "https://" or have special symbols:.!@#$%?/^&*)(+={}[]",'<>~·`?;. | |
| 400 | InvalidTagValue | The tag value cannot contain these special symbols:http://, https:// | |
| 400 | ReservedTagKey | The tag key is used internally as a reserved field and is not allowed to be used. | 该标签键被用作内部保留字段,不允许使用。 |
| 400 | TagValueIsInvalid | The specified TagValue is invalid. | |
| 400 | TagKeyRepeated | The specified TagKey is duplicated. | |
| 400 | TagIsInvalid | The number of Tag exceeds 20. | |
| 400 | ResourceIdIsInvalid | The number of ResourceId exceeds 50. | ResourceId超过50个了。 |
| 400 | SystemTagIsInvalid | The number of System Tag exceeds 50. | |
| 400 | CustomTagIsInvalid | The number of Custom Tag exceeds 20. | Tag个数超过20个了。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。