Todos os produtos
Search
Central de documentação

Resource Orchestration Service:ALIYUN::SAG::App

Última atualização: Jun 27, 2026

Cria uma instância de aplicativo Smart Access Gateway (SAG).

Sintaxe

{
  "Type": "ALIYUN::SAG::App",
  "Properties": {
    "ChargeType": String,
    "UserCount": Integer,
    "DataPlan": Integer,
    "Period": Integer,
    "AutoPay": Boolean
  }
}

Propriedades

Propriedade Tipo Obrigatória Editável Descrição Restrição
ChargeType String Não Não Método de faturamento da instância de aplicativo SAG. Defina o valor como PREPAY.

PREPAY indica uma instância por assinatura.

UserCount Integer Sim Não Número máximo de contas de cliente para a instância de aplicativo SAG. Deve ser um múltiplo positivo de 5, como 5, 10 ou 15.
DataPlan Integer Sim Não Cota mensal gratuita de transferência de dados por conta de cliente. Unidade: GB. Defina o valor como 5.
Nota Cada conta de cliente recebe 5 GB de transferência de dados gratuita por mês.
Period Integer Sim Não Duração da assinatura da instância de aplicativo SAG. Unidade: meses.

Valores válidos: 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24 e 36.

AutoPay Boolean Sim Não Indica se o pagamento da instância de aplicativo SAG é automático. Valores válidos:
  • true: paga a fatura automaticamente.
  • false (padrão): não paga a fatura automaticamente.

Se definido como false, acesse a página Orders no console Alibaba Cloud para concluir o pagamento. A instância será criada após a confirmação do pagamento.

Valores de retorno

Fn::GetAtt

  • OrderId: ID do pedido da instância de aplicativo SAG.

  • SmartAGId: ID da instância de aplicativo SAG.

Exemplos

Formato JSON

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "UserCount": {
      "Type": "Number",
      "Description": "The quota of client accounts for the SAG APP instance.\nNote The quota must be a positive multiple of 5, for example, 5, 10, and 15."
    },
    "DataPlan": {
      "Type": "Number",
      "Description": "The quota of the traffic plan that the system allows each client account to use for\nfree each month. Unit: GB. Set the value to 5.\nNote The system allows each client account to use 5 GB traffic plan for free."
    },
    "Period": {
      "Type": "Number",
      "Description": "The subscription period of the SAG APP instance. Unit: months.\nValid values: 1~9, 12, 24, and 36."
    },
    "AutoPay": {
      "Type": "Boolean",
      "Description": "Specifies whether to automatically pay the bills of SAG APP instances. Default value:\nfalse. Valid values:\ntrue: automatically pays the bills of SAG APP instances.\nfalse: does not automatically pay the bills of SAG APP instances.\nIf you set the parameter to false, after you call this operation, go to Billing Management\nof the SAG console to complete the payment, the instance can be created.",
      "AllowedValues": [
        "True",
        "true",
        "False",
        "false"
      ]
    }
  },
  "Resources": {
    "App": {
      "Type": "ALIYUN::SAG::App",
      "Properties": {
        "UserCount": {
          "Ref": "UserCount"
        },
        "DataPlan": {
          "Ref": "DataPlan"
        },
        "Period": {
          "Ref": "Period"
        },
        "AutoPay": {
          "Ref": "AutoPay"
        }
      }
    }
  },
  "Outputs": {
    "OrderId": {
      "Description": "The ID of the order that you placed to subscribe to the SAG APP instance.",
      "Value": {
        "Fn::GetAtt": [
          "App",
          "OrderId"
        ]
      }
    },
    "SmartAGId": {
      "Description": "The ID of the SAG APP instance.",
      "Value": {
        "Fn::GetAtt": [
          "App",
          "SmartAGId"
        ]
      }
    }
  }
}