Todos os produtos
Search
Central de documentação

Resource Orchestration Service:ALIYUN::ECD::NetworkPackage

Última atualização: Jun 27, 2026

O recurso ALIYUN::ECD::NetworkPackage cria um plano de largura de banda premium para uma rede de escritório.

Sintaxe

{
  "Type": "ALIYUN::ECD::NetworkPackage",
  "Properties": {
    "OfficeSiteId": String,
    "PromotionId": String,
    "Bandwidth": Integer,
    "AutoRenew": Boolean,
    "Period": Integer,
    "AutoPay": Boolean,
    "PayType": String,
    "PeriodUnit": String,
    "InternetChargeType": String
  }
}

Propriedades

Propriedade

Tipo

Obrigatório

Editável

Descrição

Restrição

Bandwidth

Integer

Sim

Não

Largura de banda do plano premium.

Unidade: Mbit/s.

  • Se PayType for PrePaid: 2 a 1000.

  • Se PayType for PostPaid e InternetChargeType for PayByTraffic: 2 a 200.

  • Se PayType for PostPaid e InternetChargeType for PayByBandwidth: 2 a 1000.

OfficeSiteId

String

Sim

Não

ID da rede de escritório.

Nenhuma.

AutoPay

Boolean

Não

Não

Indica se o pagamento automático está ativado.

Valores válidos:

  • true (padrão): ativa o pagamento automático. Mantenha saldo suficiente na conta. Saldo insuficiente gera pedidos anormais.

  • false: desativa o pagamento automático. O sistema gera um pedido sem pagamento. Para pagar, faça login no console do Elastic Desktop Service (EDS), acesse a página Orders no console de Despesas e Custos e localize o pedido pelo ID correspondente.

AutoRenew

Boolean

Não

Não

Indica se a renovação automática está ativada.

Valores válidos:

  • true

  • false

InternetChargeType

String

Não

Não

Método de medição.

  • Se PayType for PrePaid:

    • PayByBandwidth

  • Se PayType for PostPaid:

    • PayByTraffic

    • PayByBandwidth

PayType

String

Não

Não

Método de faturamento.

Valores válidos:

  • PostPaid

  • PrePaid

Period

Integer

Não

Não

Duração da assinatura.

Unidade: definida por PeriodUnit. Obrigatório apenas se PayType for PrePaid. Se PeriodUnit for Month, valores válidos:

  • 1

  • 2

  • 3

  • 6

Se PeriodUnit for Year, valores válidos:

  • 1

  • 2

  • 3

  • 4

  • 5

PeriodUnit

String

Não

Não

Unidade da duração da assinatura.

Obrigatório apenas se PayType for PrePaid. Valores válidos:

  • Month

  • Year

  • Week

PromotionId

String

Não

Não

ID da promoção.

Nenhuma.

Valores de retorno

Fn::GetAtt

NetworkPackageId: ID do plano de largura de banda premium.

Exemplos

Formato YAML

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  OfficeSiteId:
    Type: String
    Description:
      en: The ID of the workspace..
    Required: true
  Bandwidth:
    Type: Number
    Description:
      en: |-
        The maximum public bandwidth. Unit: Mbit/s.
        Valid values for the pay-by-data-transfer type (PayByTraffic): 10 to 200. 
         Valid values for the pay-by-bandwith type (PayByBandwidth): 10 to 1000.
    Required: true
    MinValue: 2
    MaxValue: 1000
  PayType:
    Type: String
    Description:
      en: |-
        The billing method of the Internet access package. Enumeration Value:
        PostPaid
        PrePaid
    AllowedValues:
      - PostPaid
      - PrePaid
    Required: false
  InternetChargeType:
    AssociationPropertyMetadata:
      LocaleKey: InternetChargeType
    Type: String
    Description:
      en: |-
        The metering method of the pay-as-you-go Internet access package. Valid values: 
        PayByTraffic: pay-by-data-transfer.
        PayByBandwidth: pay-by-bandwidth. 
        Default value: PayByTraffic.
    AllowedValues:
      - PayByTraffic
      - PayByBandwidth
    Required: false
Resources:
  ExtensionResource:
    Type: ALIYUN::ECD::NetworkPackage
    Properties:
      OfficeSiteId:
        Ref: OfficeSiteId
      Bandwidth:
        Ref: Bandwidth
      PayType:
        Ref: PayType
      InternetChargeType:
        Ref: InternetChargeType
Outputs:
  NetworkPackageId:
    Description: The ID of the Internet access package.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - NetworkPackageId

Formato JSON

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "OfficeSiteId": {
      "Type": "String",
      "Description": {
        "en": "The ID of the workspace.."
      },
      "Required": true
    },
    "Bandwidth": {
      "Type": "Number",
      "Description": {
        "en": "The maximum public bandwidth. Unit: Mbit/s.\nValid values for the pay-by-data-transfer type (PayByTraffic): 10 to 200. \n Valid values for the pay-by-bandwith type (PayByBandwidth): 10 to 1000."
      },
      "Required": true,
      "MinValue": 2,
      "MaxValue": 1000
    },
    "PayType": {
      "Type": "String",
      "Description": {
        "en": "The billing method of the Internet access package. Enumeration Value:\nPostPaid\nPrePaid"
      },
      "AllowedValues": [
        "PostPaid",
        "PrePaid"
      ],
      "Required": false
    },
    "InternetChargeType": {
      "AssociationPropertyMetadata": {
        "LocaleKey": "InternetChargeType"
      },
      "Type": "String",
      "Description": {
        "en": "The metering method of the pay-as-you-go Internet access package. Valid values: \nPayByTraffic: pay-by-data-transfer.\nPayByBandwidth: pay-by-bandwidth. \nDefault value: PayByTraffic."
      },
      "AllowedValues": [
        "PayByTraffic",
        "PayByBandwidth"
      ],
      "Required": false
    }
  },
  "Resources": {
    "ExtensionResource": {
      "Type": "ALIYUN::ECD::NetworkPackage",
      "Properties": {
        "OfficeSiteId": {
          "Ref": "OfficeSiteId"
        },
        "Bandwidth": {
          "Ref": "Bandwidth"
        },
        "PayType": {
          "Ref": "PayType"
        },
        "InternetChargeType": {
          "Ref": "InternetChargeType"
        }
      }
    }
  },
  "Outputs": {
    "NetworkPackageId": {
      "Description": "The ID of the Internet access package.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "NetworkPackageId"
        ]
      }
    }
  }
}