用於刪除ARMS資源執行個體標籤。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| TagKey |
array |
否 |
需要刪除的標籤鍵列表,不超過 20 個。不填可通過 All 參數刪除所有標籤。 |
|
|
string |
否 |
標籤鍵。 |
Key1 |
|
| ResourceId |
array |
是 |
應用的 PID 或執行個體 ID,最多 50 個。 |
|
|
string |
否 |
執行個體 ID。 |
c7c13c449eea64fe89870ac658d****** |
|
| ResourceType |
string |
是 |
需要修改標籤的 ARMS 資源類型。
|
APPLICATION |
| All |
boolean |
否 |
是否全部刪除,只針對 TagKey.N 為空白時有效。取值範圍:
|
false |
| Tags |
array<object> |
否 |
標籤索引值對,當您未輸入 ResourceIds 參數時必填。取值說明如下:
區分大小寫。如果指定多個標籤,則會為指定資源同時建立並綁定多個標籤。同一個資源上的同一個標籤鍵只能對應一個標籤值。如果您嘗試添加已有標籤鍵,則對應的標籤值會更新為新值。不能以 |
|
|
object |
否 |
|||
| Key |
string |
否 |
標籤鍵。必填參數,不允許為空白字串。最多支援 128 個字元,不能以 |
TestTag |
| Value |
string |
否 |
執行個體的標籤值。 如果傳入該值,則允許為空白字串。最多支援 128 個字元,不能以 |
TestValue |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
Schema of Response |
||
| RequestId |
string |
請求 ID。 |
FC183B5E-C9AD-5E9E-937F-******* |
| Data |
string |
是否刪除成功。 |
success |
樣本
正常返回樣本
JSON格式
{
"RequestId": "FC183B5E-C9AD-5E9E-937F-*******",
"Data": "success"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | NoPermissionKeyOperator | user is no permission for operating param tagKey. | |
| 400 | DuplicateTagKey | Param tagKey is duplicate. | |
| 400 | NoPermissionUSER | user no permission | |
| 400 | ResourceIdAndTagIsNull | resourceId or tag param must have one | |
| 400 | TagISNull | param tag must be not null. | 標籤不可為空 |
| 400 | ScopeDisAgreement | Param scope is different from before. | |
| 400 | ParameterNextTokenIllegal | param nextToken is invalid. | |
| 400 | TagNumOUT | the number of tag is out . | |
| 400 | ResourceTypeIllegal | The ResourceType parameter is invalid. | 參數ResourceType非法。 |
| 400 | ResourceIdIsNull | param resourceId must be not null. | |
| 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的個數超出了所規定的範圍。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。