用於給ARMS資源執行個體打標籤。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
arms:TagResources |
update |
*Prometheus
*RetcodeApp
*TraceApp
*Environment
*GrafanaWorkspace
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| ResourceId |
array |
是 |
應用的 PID 或執行個體 ID,最多填寫 50 個。 |
|
|
string |
否 |
執行個體 ID。 |
uxqcr8b*** |
|
| Tag |
array<object> |
是 |
標籤列表,最多 20 個。 |
|
|
object |
否 |
標籤。 |
||
| Key |
string |
否 |
標籤鍵。 |
Key1 |
| Value |
string |
否 |
標籤值。 |
Test1 |
| ResourceType |
string |
是 |
需要修改標籤的 ARMS 資源類型。
|
APPLICATION |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
Schema of Response |
||
| RequestId |
string |
請求 ID。 |
05919CF2-B8A1-588D-B3DB-89B3******** |
| Data |
string |
是否建立成功。 |
success |
樣本
正常返回樣本
JSON格式
{
"RequestId": "05919CF2-B8A1-588D-B3DB-89B3********",
"Data": "success"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | DuplicateTagKey | Param tagKey is duplicate. | |
| 400 | NoPermissionKeyOperator | user is no permission for operating param tagKey. | |
| 400 | ResourceIdAndTagIsNull | resourceId or tag param must have one | |
| 400 | TagISNull | param tag must be not null. | 標籤不可為空 |
| 400 | TagNumOUT | the number of tag is out . | |
| 400 | ResourceIdIsNull | param resourceId must be not null. | |
| 400 | ResourceTypeIllegal | The ResourceType parameter is invalid. | 參數ResourceType非法。 |
| 400 | NoPermissionUSER | user no permission | |
| 400 | ScopeDisAgreement | Param scope is different from before. | |
| 400 | ParameterNextTokenIllegal | param nextToken is invalid. | |
| 400 | InvalidParameterTagKey | The specified TagKey is invalid. | 參數TagKey是非法的。 |
| 400 | InvalidParameterTagValue | The specified TagValue is invalid. | 參數TagValue是非法的。 |
| 400 | TagKeyIsIllegal | The specified TagKey is invalid. | 參數TagKey是非法的。 |
| 400 | TagValueIsIllegal | The specified TagValue is invalid. | 參數TagValue是非法的。 |
| 400 | ResourceIDOUT | The specified resourceId number is out of range. | 參數resourceId的個數超出了所規定的範圍。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。