O recurso ALIYUN::SAG::QosPolicy cria uma regra de classificação de tráfego para uma política de qualidade de serviço (QoS).
Sintaxe
{
"Type": "ALIYUN::SAG::QosPolicy",
"Properties": {
"Description": String,
"EndTime": String,
"SourcePortRange": String,
"SourceCidr": String,
"Priority": Integer,
"StartTime": String,
"DestPortRange": String,
"DpiGroupIds": List,
"Name": String,
"DestCidr": String,
"DpiSignatureIds": List,
"QosId": String,
"IpProtocol": String
}
}
Propriedades
Propriedade | Tipo | Obrigatória | Editável | Descrição | Restrição |
Description | String | Não | Sim | Descrição da regra de classificação de tráfego. | Deve ter de 1 a 512 caracteres e pode conter letras, dígitos, sublinhados (_) e hifens (-). Deve começar com uma letra. |
EndTime | String | Não | Sim | Horário em que a regra de classificação de tráfego perde a validade. | Especifique o horário no padrão ISO 8601, no formato |
SourcePortRange | String | Sim | Sim | Intervalo da porta de origem. | Valores válidos: -1 e de 1 a 65535. Exemplos:
|
SourceCidr | String | Sim | Sim | Bloco CIDR de origem. | Exemplo: 192.168.1.0/24. |
Priority | Integer | Sim | Sim | Prioridade da regra de limitação de tráfego à qual esta regra de classificação pertence. | Valores válidos: de 1 a 3. Um valor menor indica uma prioridade maior. |
StartTime | String | Não | Sim | Horário em que a regra de classificação de tráfego entra em vigor. | Especifique o horário no padrão ISO 8601, no formato |
DestPortRange | String | Sim | Sim | Intervalo da porta de destino. | Valores válidos: -1 e de 1 a 65535. Exemplos:
|
DpiGroupIds | List | Não | Sim | IDs dos grupos de aplicativos. | Valores válidos: de 1 a 100. Chame a operação ListDpiGroups para consultar os IDs dos grupos de aplicativos. |
Name | String | Não | Sim | Nome da regra de classificação de tráfego. | Deve ter de 2 a 100 caracteres e pode conter letras, dígitos, hifens (-) e sublinhados (_). Deve começar com uma letra. |
DestCidr | String | Sim | Sim | Bloco CIDR de destino. | Especifique um bloco CIDR para esta propriedade. Exemplo: 192.168.1.0/24. |
DpiSignatureIds | List | Não | Sim | ID do aplicativo. | Valores válidos: de 1 a 100. Chame a operação ListDpiSignatures para consultar os IDs dos aplicativos. |
QosId | String | Sim | Não | ID da política de QoS. | Nenhuma. |
IpProtocol | String | Sim | Sim | Tipo de protocolo aplicado à regra de classificação de tráfego. | Defina esta propriedade com base nos tipos de protocolo disponíveis no console SAG. |
Valores de retorno
Fn::GetAtt
QosPolicyId: ID da regra de classificação de tráfego.
Exemplos
Formato JSON
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"EndTime": {
"Type": "String",
"Description": "The time when the traffic classification rule becomes invalid.\nSpecify the time in the ISO 8601 standard in the YYYY-MM-DDThh:mm:ss+0800 format.\nThe time must be in UTC+8.",
"Default": "2019-09-14T16:41:33+0800"
},
"SourcePortRange": {
"Type": "String",
"Description": "The range of source ports.\nValid values: 1 to 65535 and -1.\nSet this parameter in one of the following formats:\n1/200: a port range from 1 to 200\n80/80: port 80\n-1/-1: all ports",
"Default": "80/80"
},
"SourceCidr": {
"Type": "String",
"Description": "The range of the source IP addresses.\nSpecify the value of this parameter in CIDR notation. Example: 192.168.1.0/24.",
"Default": "10.10.10.0/24"
},
"Priority": {
"Type": "Number",
"Description": "The priority of the traffic throttling policy to which the traffic classification\nrule belongs.",
"Default": 3
},
"StartTime": {
"Type": "String",
"Description": "The time when the traffic classification rule takes effect.\nSpecify the time in the ISO 8601 standard in the YYYY-MM-DDThh:mm:ss+0800 format.\nThe time must be in UTC+8.",
"Default": "2019-07-14T16:41:33+0800"
},
"DestPortRange": {
"Type": "String",
"Description": "The range of destination ports.\nValid values: 1 to 65535 and -1.\nSet this parameter in one of the following formats:\n1/200: a port range from 1 to 200\n80/80: port 80\n-1/-1: all ports",
"Default": "80/80"
},
"DpiGroupIds": {
"Type": "Json",
"Description": "The ID of the application group.\nYou can enter at most 100 application group IDs at a time.\nYou can call the ListDpiGroups operation to query application group IDs and information about the applications.",
"MaxLength": 100,
"Default": ["20"]
},
"Name": {
"Type": "String",
"Description": "The name of the traffic classification rule.\nThe name must be 2 to 100 characters in length, and can contain digits, underscores\n(_), and hyphens (-). It must start with a letter.",
"Default": "test"
},
"DestCidr": {
"Type": "String",
"Description": "The range of the destination IP addresses.\nSpecify the value of this parameter in CIDR notation. Example: 192.168.10.0/24.",
"Default": "10.10.20.0/24"
},
"DpiSignatureIds": {
"Type": "Json",
"Description": "The ID of the application.\nYou can enter at most 100 application IDs at a time.\nYou can call the ListDpiSignatures operation to query application IDs and information about the applications.",
"MaxLength": 100,
"Default": ["1"]
},
"QosId": {
"Type": "String",
"Description": "The ID of the QoS policy.",
"Default": "qos-xitd8690ucu8ro****"
},
"IpProtocol": {
"Type": "String",
"Description": "The type of the protocol that applies to the traffic classification rule.\nThe supported protocols provided in this topic are for reference only. The actual\nprotocols in the console shall prevail.",
"Default": "TCP"
}
},
"Resources": {
"QosPolicy": {
"Type": "ALIYUN::SAG::QosPolicy",
"Properties": {
"EndTime": {
"Ref": "EndTime"
},
"SourcePortRange": {
"Ref": "SourcePortRange"
},
"SourceCidr": {
"Ref": "SourceCidr"
},
"Priority": {
"Ref": "Priority"
},
"StartTime": {
"Ref": "StartTime"
},
"DestPortRange": {
"Ref": "DestPortRange"
},
"DpiGroupIds": {
"Ref": "DpiGroupIds"
},
"Name": {
"Ref": "Name"
},
"DestCidr": {
"Ref": "DestCidr"
},
"DpiSignatureIds": {
"Ref": "DpiSignatureIds"
},
"QosId": {
"Ref": "QosId"
},
"IpProtocol": {
"Ref": "IpProtocol"
}
}
}
},
"Outputs": {
"QosPolicyId": {
"Description": "The ID of the traffic classification rule.",
"Value": {
"Fn::GetAtt": [
"QosPolicy",
"QosPolicyId"
]
}
}
}
}