打標籤介面
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
請求文法
POST /tags HTTP/1.1
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| body |
object |
否 |
請求體 |
|
| resourceType |
string |
是 |
資源類型 |
Service |
| resourceId |
array |
是 |
資源 ID 列表 |
|
|
string |
否 |
資源 ID |
test |
|
| tag |
array |
否 |
標籤。 最多可以綁定 20 個標籤 |
|
| Tag |
否 |
標籤 |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
Schema of Response |
||
| requestId |
string |
請求 ID |
3B311FD9-A60B-55E0-A896-A0C73********* |
樣本
正常返回樣本
JSON格式
{
"requestId": "3B311FD9-A60B-55E0-A896-A0C73*********"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | InvalidParameter.ResourceId | The ResourceId parameter is invalid. | |
| 400 | InvalidResourceId.NotFound | The specified ResourceIds are not found in our records. | |
| 400 | NumberExceed.ResourceIds | The maximum number of ResourceIds is exceeded. | |
| 400 | InvalidParameter.RegionId | The RegionId parameter is invalid. | |
| 400 | InvalidParameter.ResourceType | The ResourceType parameter is invalid. | |
| 400 | MissingParameter.ResourceIds | You must specify ResourceId.N. | |
| 400 | MissingParameter.ResourceType | You must specify ResourceType. | |
| 400 | MissingParameter.Tags | You must specify Tags. | |
| 400 | MissingParameter.TagKey | You must specify Tag.N.Key. | |
| 400 | MissingParameter.TagValue | You must specify Tag.N.Value. | |
| 400 | InvalidParameter.TagKey | The Tag.N.Key parameter is invalid. | |
| 400 | InvalidParameter.TagValue | The Tag.N.Value parameter is invalid. | |
| 400 | NumberExceed.Tags | The maximum number of Tags is exceeded. | |
| 400 | QuotaExceed.TagsPerResource | The maximum number of tags for each resource is exceeded. | |
| 400 | Duplicate.TagKey | The Tag.N.Key contains duplicate keys. | |
| 500 | InvalidOperation.ConcurrentModification | The resource is modified concurrently. | |
| 500 | InternalError | The request processing has failed due to some unknown error. | |
| 403 | NoPermission | The operator is not permission for this operate |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。