Todos os produtos
Search
Central de documentação

Resource Orchestration Service:ALIYUN::SAG::QosCar

Última atualização: Jun 27, 2026

O recurso ALIYUN::SAG::QosCar cria uma regra de limitação de tráfego para uma política de qualidade de serviço (QoS).

Sintaxe

{
  "Type": "ALIYUN::SAG::QosCar",
  "Properties": {
    "MinBandwidthAbs": Integer,
    "Description": String,
    "MaxBandwidthPercent": Integer,
    "Priority": Integer,
    "MaxBandwidthAbs": Integer,
    "QosId": String,
    "PercentSourceType": String,
    "MinBandwidthPercent": Integer,
    "LimitType": String,
    "Name": String
  }
}

Propriedades

PropriedadeTipoObrigatórioEditávelDescriçãoRestrição
MinBandwidthAbsIntegerNãoSimLargura de banda mínima. Obrigatória se LimitType for Absolute.
DescriptionStringNãoSimDescrição da regra de limitação de tráfego. Nenhuma.
MaxBandwidthPercentIntegerNãoSimPorcentagem máxima de largura de banda. Obrigatória se LimitType for Percent.
PriorityIntegerSimSimPrioridade da regra de limitação de tráfego. Valores válidos: 1 a 7.

Quanto menor o valor, maior a prioridade.

MaxBandwidthAbsIntegerNãoSimLargura de banda máxima. Obrigatória se LimitType for Absolute.
QosIdStringSimNãoID da política de QoS. Para mais informações sobre políticas de QoS, consulte O que é uma política de QoS?.
PercentSourceTypeStringNãoSimTipo de largura de banda aplicado quando a limitação de tráfego usa uma faixa percentual específica. Valores válidos:
  • CcnBandwidth: largura de banda da Cloud Connect Network (CCN)
  • InternetUpBandwidth: largura de banda upstream da Internet
MinBandwidthPercentIntegerNãoSimPorcentagem mínima de largura de banda. Obrigatória se LimitType for Percent.
LimitTypeStringSimSimTipo da regra de limitação de tráfego. Valores válidos:
  • Absolute: limita o tráfego por uma faixa específica de largura de banda.
  • Percent: limita o tráfego por uma faixa específica de porcentagem de largura de banda.
NameStringNãoSimNome da regra de limitação de tráfego. Deve ter de 2 a 128 caracteres e pode conter letras, dígitos, pontos (.), sublinhados (_) e hifens (-). Deve começar com uma letra.

Valores de retorno

Fn::GetAtt

QosCarId: ID da regra de limitação de tráfego da política de QoS.

Exemplos

Formato JSON

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "MinBandwidthAbs": {
      "Type": "Number",
      "Description": "The minimum bandwidth. This parameter is required when LimitType is set to Absolute."
    },
    "Description": {
      "Type": "String",
      "Description": "The description of the traffic throttling policy."
    },
    "Priority": {
      "Type": "Number",
      "Description": "The priority of the traffic throttling policy. A smaller value represents a higher\npriority. If policies are assigned the same priority, the one applied the earliest\nprevails. Valid values: 1 to 7.",
      "MinValue": 1,
      "MaxValue": 7
    },
    "MaxBandwidthPercent": {
      "Type": "Number",
      "Description": "The maximum percentage that is based on the maximum upstream bandwidth of the SAG\ninstance.\nThis parameter is required when LimitType is set to Percent."
    },
    "MaxBandwidthAbs": {
      "Type": "Number",
      "Description": "The maximum bandwidth. This parameter is required when LimitType is set to Absolute."
    },
    "QosId": {
      "Type": "String",
      "Description": "The ID of the QoS policy."
    },
    "PercentSourceType": {
      "Type": "String",
      "Description": "If the policy throttles traffic based on a specified bandwidth percentage, the following\noptions are available:\nCcnBandwidth: Cloud Enterprise Network (CCN) bandwidth.\nInternetUpBandwidth: Internet upstream bandwidth.",
      "AllowedValues": [
        "CcnBandwidth",
        "InternetUpBandwidth"
      ]
    },
    "MinBandwidthPercent": {
      "Type": "Number",
      "Description": "The minimum percentage that is based on the maximum upstream bandwidth of the SAG\ninstance.\nThis parameter is required when LimitType is set to Percent."
    },
    "LimitType": {
      "Type": "String",
      "Description": "The type of the traffic throttling policy. Valid values:\nAbsolute: throttles traffic by a specific bandwidth range.\nPercent: throttles traffic by a specific range of bandwidth percentage.",
      "AllowedValues": [
        "Absolute",
        "Percent"
      ]
    },
    "Name": {
      "Type": "String",
      "Description": "The name of the traffic throttling policy. The name must be 2 to 128 characters in\nlength, and can contain Chinese characters, letters, digits, periods (.), underscores\n(_), and hyphens (-)."
    }
  },
  "Resources": {
    "QosCar": {
      "Type": "ALIYUN::SAG::QosCar",
      "Properties": {
        "MinBandwidthAbs": {
          "Ref": "MinBandwidthAbs"
        },
        "Description": {
          "Ref": "Description"
        },
        "Priority": {
          "Ref": "Priority"
        },
        "MaxBandwidthPercent": {
          "Ref": "MaxBandwidthPercent"
        },
        "MaxBandwidthAbs": {
          "Ref": "MaxBandwidthAbs"
        },
        "QosId": {
          "Ref": "QosId"
        },
        "PercentSourceType": {
          "Ref": "PercentSourceType"
        },
        "MinBandwidthPercent": {
          "Ref": "MinBandwidthPercent"
        },
        "LimitType": {
          "Ref": "LimitType"
        },
        "Name": {
          "Ref": "Name"
        }
      }
    }
  },
  "Outputs": {
    "QosCarId": {
      "Description": "The ID of the traffic throttling policy.",
      "Value": {
        "Fn::GetAtt": [
          "QosCar",
          "QosCarId"
        ]
      }
    }
  }
}