Remove tags de recursos.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
cen:UntagResources |
update |
*CenInstance
|
Nenhuma | Nenhuma |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| ResourceType |
string |
Sim |
Tipo de recurso. Valores válidos: Cen: Cloud Enterprise Network (CEN). BandwidthPackage: Pacote de largura de banda. TransitRouter: Roteador de trânsito. TransitRouterVpcAttachment: Anexo de VPC. TransitRouterVbrAttachment: Anexo de VBR. TransitRouterPeerAttachment: Anexo inter-região. TransitRouterVpnAttachment: Anexo de VPN. TransitRouterRouteTable: Tabela de rotas. Flowlog: Log de fluxo. TransitRouterMulticastDomain: Domínio de multicast. |
cen |
| All |
boolean |
Não |
Especifica se todas as tags devem ser excluídas. Valores válidos:
Nota
Este parâmetro só entra em vigor quando o parâmetro TagKey.N está vazio. |
false |
| ResourceId |
array |
Sim |
ID do recurso. O valor de N varia de 1 a 50. |
cen-7qthudw0ll6jmc**** |
|
string |
Não |
ID do recurso. O valor de N varia de 1 a 50. |
cen-7qthudw0ll6jmc**** |
|
| TagKey |
array |
Não |
Chave da tag. Uma chave de tag pode conter até 64 caracteres. Não pode começar com Se você especificar várias chaves de tag, a relação lógica entre essas chaves de tag será OR. Valores válidos de N: 1 a 20. |
FinanceDept |
|
string |
Não |
Chave da tag. Uma chave de tag pode conter até 64 caracteres. Não pode começar com Se você especificar várias chaves de tag, a relação lógica entre essas chaves de tag será OR. Valores válidos de N: 1 a 20. |
Name |
|
| RegionId |
string |
Não |
O ID da região. Este parâmetro não é obrigatório quando o tipo de recurso é Cen ou BandwidthPackage. Para todos os outros tipos de recurso, este parâmetro é obrigatório. |
cn-hangzhou |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
O resultado retornado. |
||
| RequestId |
string |
O ID da solicitação. |
C46FF5A8-C5F0-4024-8262-B16B639225A0 |
Exemplos
Resposta de sucesso
JSON formato
{
"RequestId": "C46FF5A8-C5F0-4024-8262-B16B639225A0\t"
}
Códigos de erro
|
Código de status HTTP |
Código de erro |
Mensagem de erro |
Descrição |
|---|---|---|---|
| 400 | InvalidTagKey | The tag keys are not valid. | The error message returned because the specified tag key is invalid. |
| 400 | InvalidTagValue | The tag values are not valid. | The error message returned because the specified tag value is invalid. |
| 400 | MissingParam | %s | |
| 400 | InvalidInstanceType.NotFound | The instance type is not found | The error message returned because the specified instance type does not exist. |
| 400 | InvalidInstanceIds.NotFound | The instanceIds are not found | The error message returned because the specified instance does not exist. |
| 400 | Forbidden.TagKeys | The request do not allow to operate the tag keys | The error message returned because you cannot manage the specified tag key. |
| 400 | QuotaExceeded.TagNum | Custom Tags quota exceeded | The error message returned because the number of tags has reached the upper limit. |
| 400 | InvalidTagScope.NotFound | The tag scope is not found | The error message returned because the specified tag scope is invalid. |
| 400 | Forbidden.NotAllowedCategary | The System tag is not valid | The error message returned because you cannot configure system tags. |
| 400 | SizeLimitExceeded.ResourceIdNum | The ResourceIds parameter's number is exceed , Valid : 20 | |
| 400 | IllegalParam.Region | The specified region is invalid. | |
| 400 | InvalidParameter | Invalid parameter. | The error message returned because the parameter is set to an invalid value. |
| 400 | Unauthorized | The AccessKeyId is unauthorized. | The error message returned because you do not have the permissions to perform this operation. |
| 400 | InvalidParameter.TagKeyOrAll | The specified parameter TagKey or All is invalid. | The specified parameter TagKey or All is invalid. |
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.