ALIYUN::SAG::QosCar類型用于創(chuàng)建QoS的限速規(guī)則。

語法

{
  "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
  }
}

屬性

屬性名稱 類型 必須 允許更新 描述 約束
MinBandwidthAbs Integer 最小帶寬。 當LimitType取值為Absolute時,必須指定該參數(shù)。
Description String QoS限速規(guī)則的描述。
MaxBandwidthPercent Integer 最大帶寬百分比。 當LimitType取值為Percent時,必須指定該參數(shù)。
Priority Integer 規(guī)則的優(yōu)先級。 取值范圍:1~7。

取值越小,優(yōu)先級越高。

MaxBandwidthAbs Integer 最大帶寬。 當LimitType取值為Absolute時,必須指定該參數(shù)。
QosId String QoS策略的實例ID。 關于QoS策略的更多信息,請參見什么是QoS策略
PercentSourceType String 按百分比限速時的帶寬類型。 取值:
  • CcnBandwidth:云連接網(wǎng)帶寬。
  • InternetUpBandwidth:公網(wǎng)上行帶寬。
MinBandwidthPercent Integer 最小帶寬百分比。 當LimitType取值為Percent時,必須指定該參數(shù)。
LimitType String 限速類型。 取值:
  • Absolute:按帶寬值。
  • Percent:按百分比。
Name String QoS限速規(guī)則名稱。 長度為2~128個字符,以英文字母或漢字開頭,可包含英文字母、漢字、數(shù)字、半角句號(.)、下劃線(_)和短劃線(-)。

返回值

Fn::GetAtt

QosCarId:QoS限速規(guī)則的實例ID。

示例

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"
        ]
      }
    }
  }
}