ALIYUN::SAG::App类型用于创建智能接入网关App。

语法

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

属性

属性名称 类型 必须 允许更新 描述 约束
ChargeType String 智能接入网关App实例的计费类型。 取值:PREPAY(预付费)。

用来标识智能接入网关App实例为先付费后使用的资源。

UserCount Integer 智能接入网关App实例的客户端账号数量规格。 客户端账号数量规格只能是5的倍数,比如:5、10、15等。
DataPlan Integer 系统每月赠送给每个客户端账号的流量套餐规格。 单位:GB。取值:5。
说明 目前仅支持每月赠送给每个客户端账号5 GB的流量套餐。
Period Integer 智能接入网关App实例的购买时长。 单位:月。

取值:1~9、12、24、36。

AutoPay Boolean 是否自动支付智能接入网关App实例的账单。 取值:
  • true:是。
  • false(默认值):否。

如果您不选择自动支付账单,在您调用本接口后,请前往控制台的订单中心完成支付,实例才能创建成功。

返回值

Fn::GetAtt

  • OrderId:购买智能接入网关App实例的订单号。
  • SmartAGId:智能接入网关App实例ID。

示例

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