Todos os produtos
Search
Central de documentação

Resource Orchestration Service:ALIYUN::VPC::TrafficQos

Última atualização: Aug 27, 2026

Cria uma política de Quality of Service (QoS) de tráfego.

Sintaxe

{
  "Type": "ALIYUN::VPC::TrafficQos",
  "Properties": {
    "QosName": String,
    "QosDescription": String,
    "ResourceGroupId": String,
    "Tags": List
  }
}

Propriedades

Propriedade

Tipo

Obrigatório

Editável

Descrição

Restrições

QosDescription

String

Não

Sim

Descrição da política de QoS.

A descrição deve ter de 0 a 256 caracteres e não pode começar com http:// ou https://.

QosName

String

Não

Sim

Nome da política de QoS.

O nome deve ter de 0 a 128 caracteres e não pode começar com http:// ou https://.

ResourceGroupId

String

Não

Sim

ID do grupo de recursos.

Nenhuma

Tags

List

Não

Sim

Tags da política de QoS.

Limite de 20 tags. Para mais informações, consulte Tags Properties.

Sintaxe de Tags

"Tags": [
  {
    "Value": String,
    "Key": String
  }
]

Propriedades de Tags

Propriedade

Tipo

Obrigatório

Editável

Descrição

Restrições

Key

String

Sim

Não

Chave da tag.

Nenhuma

Value

String

Não

Não

Valor da tag.

Nenhuma

Valores de retorno

Fn::GetAtt

  • ResourceGroupId: ID do grupo de recursos.

  • QosId: ID da política de QoS.

  • QosName: Nome da política de QoS.

  • Tags: Tags da política de QoS.

  • Progressing: Progresso da configuração da política de QoS, de 0 a 100.

  • QosDescription: Descrição da política de QoS.

Exemplos

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  ResourceGroupId:
    Type: String
    Description:
      en: The ID of the resource group.
    AssociationProperty: ALIYUN::ECS::ResourceGroup::ResourceGroupId
    Default: Null
    Required: false
  Tags:
    Description:
      en: The tags of the TrafficQos resource.
    Required: false
    Default: Null
    Type: Json
    MaxLength: 20
    AssociationProperty: List[Parameters]
    AssociationPropertyMetadata:
      Parameters:
        Key:
          Type: String
          Required: true
        Value:
          Type: String
          Default: Null
          Required: false
      ListMetadata:
        Order:
          - Key
          - Value
  QosName:
    Type: String
    Description:
      en: |-
        The name of the QoS policy.
        The name must be 0 to 128 characters in length and cannot start with http:// or https://.
    MinLength: 0
    MaxLength: 128
    Default: Null
    Required: false
  QosDescription:
    Type: String
    Description:
      en: |-
        The description of the QoS policy.
        The description must be 0 to 256 characters in length and cannot start with http:// or https://.
    MinLength: 0
    MaxLength: 256
    Default: Null
    Required: false
Resources:
  ExtensionResource:
    Type: ALIYUN::VPC::TrafficQos
    Properties:
      ResourceGroupId:
        Ref: ResourceGroupId
      Tags:
        Ref: Tags
      QosName:
        Ref: QosName
      QosDescription:
        Ref: QosDescription
Outputs:
  Tags:
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - Tags
    Description: The tags of the QoS policy.
  Progressing:
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - Progressing
    Description: The configuration progress of the QoS policy, ranging from **0** to **100**.
  QosDescription:
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - QosDescription
    Description: The description of the QoS policy.
  ResourceGroupId:
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - ResourceGroupId
    Description: The ID of the resource group.
  QosName:
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - QosName
    Description: The name of the QoS policy.
  QosId:
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - QosId
    Description: The QoS policy ID.
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "ResourceGroupId": {
      "Type": "String",
      "Description": {
        "en": "The ID of the resource group."
      },
      "AssociationProperty": "ALIYUN::ECS::ResourceGroup::ResourceGroupId",
      "Default": null,
      "Required": false
    },
    "Tags": {
      "Description": {
        "en": "The tags of the TrafficQos resource."
      },
      "Required": false,
      "Default": null,
      "Type": "Json",
      "MaxLength": 20,
      "AssociationProperty": "List[Parameters]",
      "AssociationPropertyMetadata": {
        "Parameters": {
          "Key": {
            "Type": "String",
            "Required": true
          },
          "Value": {
            "Type": "String",
            "Default": null,
            "Required": false
          }
        },
        "ListMetadata": {
          "Order": [
            "Key",
            "Value"
          ]
        }
      }
    },
    "QosName": {
      "Type": "String",
      "Description": {
        "en": "The name of the QoS policy.\nThe name must be 0 to 128 characters in length and cannot start with http:// or https://."
      },
      "MinLength": 0,
      "MaxLength": 128,
      "Default": null,
      "Required": false
    },
    "QosDescription": {
      "Type": "String",
      "Description": {
        "en": "The description of the QoS policy.\nThe description must be 0 to 256 characters in length and cannot start with http:// or https://."
      },
      "MinLength": 0,
      "MaxLength": 256,
      "Default": null,
      "Required": false
    }
  },
  "Resources": {
    "ExtensionResource": {
      "Type": "ALIYUN::VPC::TrafficQos",
      "Properties": {
        "ResourceGroupId": {
          "Ref": "ResourceGroupId"
        },
        "Tags": {
          "Ref": "Tags"
        },
        "QosName": {
          "Ref": "QosName"
        },
        "QosDescription": {
          "Ref": "QosDescription"
        }
      }
    }
  },
  "Outputs": {
    "Tags": {
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "Tags"
        ]
      },
      "Description": "The tags of the QoS policy."
    },
    "Progressing": {
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "Progressing"
        ]
      },
      "Description": "The configuration progress of the QoS policy, ranging from **0** to **100**."
    },
    "QosDescription": {
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "QosDescription"
        ]
      },
      "Description": "The description of the QoS policy."
    },
    "ResourceGroupId": {
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "ResourceGroupId"
        ]
      },
      "Description": "The ID of the resource group."
    },
    "QosName": {
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "QosName"
        ]
      },
      "Description": "The name of the QoS policy."
    },
    "QosId": {
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "QosId"
        ]
      },
      "Description": "The QoS policy ID."
    }
  }
}