Modifica o nome, a descrição, a largura de banda inter-regional e o valor de Differentiated Services Code Point (DSCP) de uma fila de qualidade de serviço (QoS).
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
cen:UpdateCenInterRegionTrafficQosQueueAttribute |
update |
*CenInstance
|
Nenhuma | Nenhuma |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| ClientToken |
string |
Não |
O token do cliente usado para garantir a idempotência da solicitação. Você pode usar o cliente para gerar o token, mas deve garantir que o token seja único entre diferentes solicitações. O token pode conter apenas caracteres ASCII e não pode exceder 64 caracteres. |
123e4567-e89b-12d3-a456-426655**** |
| DryRun |
boolean |
Não |
Especifica se deve ser realizado apenas um dry run, sem executar a solicitação real. Valores válidos:
|
false |
| QosQueueId |
string |
Sim |
O ID da fila. |
qos-queue-nv2vfzqkewhk4t**** |
| QosQueueName |
string |
Não |
O novo nome da fila. O nome deve ter de 1 a 128 caracteres e não pode começar com http:// ou https://. Você também pode deixar este parâmetro vazio. |
nametest |
| QosQueueDescription |
string |
Não |
A nova descrição da fila. A descrição deve ter de 1 a 256 caracteres e não pode começar com http:// ou https://. Você também pode deixar este parâmetro vazio. |
desctest |
| RemainBandwidthPercent |
string |
Não |
A porcentagem de largura de banda que pode ser alocada para a fila atual. Insira um número. Não é necessário inserir o sinal de porcentagem (%). |
1 |
| Bandwidth |
integer |
Não |
O valor absoluto de largura de banda que pode ser alocado para a fila atual. Unidade: Mbit/s. Insira um número. Não é necessário inserir uma unidade. |
1 |
| Dscps |
array |
Não |
O valor de differentiated services code point (DSCP) usado para corresponder pacotes na fila. |
|
|
integer |
Não |
O valor de DSCP usado para corresponder pacotes na fila. Valores válidos: 0 a 63. Você pode inserir até 20 valores de DSCP por vez. |
5 |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
Os parâmetros de resposta. |
||
| RequestId |
string |
O ID da solicitação. |
6DF9A765-BCD2-5C7E-8C32-C35C8A361A39 |
Exemplos
Resposta de sucesso
JSON formato
{
"RequestId": "6DF9A765-BCD2-5C7E-8C32-C35C8A361A39"
}
Códigos de erro
|
Código de status HTTP |
Código de erro |
Mensagem de erro |
Descrição |
|---|---|---|---|
| 400 | IncorrectStatus.TrafficQosPolicy | The status of TrafficQosPolicy is incorrect. | The error message returned because the status of the specified QoS policy does not support the operation. |
| 400 | InvalidTrafficQosQueueId.NotFound | The instance of TrafficQosQueueId is not found. | |
| 400 | IllegalParam.BandwidthGuaranteeModeMismatch | The BandwidthGuaranteeMode does not match the Bandwidth or RemainBandwidthPercent. | The BandwidthGuaranteeMode does not match the Bandwidth or RemainBandwidthPercent. |
| 400 | IllegalParam.AttachmentBandwidthExceed | The entered bandwidth causes the total QoS guaranteed bandwidth to exceed the cross-region bandwidth allocation value. | The entered bandwidth causes the total QoS guaranteed bandwidth to exceed the cross-region bandwidth allocation value. |
| 400 | IllegalParam.Bandwidth | Bandwidth is illegal | The error message returned because the specified bandwidth value is invalid. |
| 400 | IllegalParam.RemainBandwidthPercent | The specified RemainBandwidthPercent is invalid. | The error message returned because the RemainBandwidthPercent parameter is set to invalid value. |
| 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 | MissingParam.TrafficQosPolicyQueueId | The parameter TrafficQosPolicyQueueId is mandatory. | |
| 400 | ParamMismatch.QueueTypeAndBandwidthPercent | The parameters QueueType and BandwidthPercent are incompatible. | The parameters QueueType and BandwidthPercent are incompatible. |
| 400 | InvalidOperation.NotSupportLinkType | The operation is invalid because the specified queue link type is not supported. | The operation is invalid because the specified queue link type is not supported. |
| 400 | InvalidOperation.DefaultQueueOnlySupportSetLinkType | The operation is invalid because only the LinkType can be configured for the default queue in HierarchicalQoS. | The operation is invalid because only the LinkType can be configured for the default queue in HierarchicalQoS. |
| 400 | InvalidOperation.SetFlatQueueLinkType | The operation is invalid because the FlatQueuing QoS does not support setting the LinkType. | The operation is invalid because the FlatQueuing QoS does not support setting the LinkType. |
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.