ALIYUN::SAG::SmartAccessGateway類型用于創建智能接入網關實例。

語法

{
  "Type": "ALIYUN::SAG::SmartAccessGateway",
  "Properties": {
    "ReceiverCountry": String,
    "Description": String,
    "ReceiverZip": String,
    "BuyerMessage": String,
    "CidrBlock": String,
    "ReceiverTown": String,
    "HardWareSpec": String,
    "Name": String,
    "ReceiverPhone": String,
    "ReceiverCity": String,
    "RoutingStrategy": String,
    "SecurityLockThreshold": Integer,
    "ReceiverAddress": String,
    "AlreadyHaveSag": Boolean,
    "HaType": String,
    "Period": Integer,
    "MaxBandWidth": Integer,
    "AutoPay": Boolean,
    "ReceiverMobile": String,
    "ReceiverDistrict": String,
    "Activate": Boolean,
    "ChargeType": String,
    "ReceiverState": String,
    "ReceiverName": String,
    "ReceiverEmail": String
  }
}

屬性

屬性名稱 類型 必須 允許更新 描述 約束
ReceiverCountry String 智能接入網關設備的收貨國家。 取值示例:中國。
Description String 智能接入網關實例的描述信息。 長度為2~256個字符,以英文字母或漢字開頭,可包含英文字母、漢字、數字、半角句號(.)、下劃線(_)和短劃線(-)。
ReceiverZip String 智能接入網關設備的收貨省份郵編。
BuyerMessage String 買家留言信息。
CidrBlock String 私網網段。
ReceiverTown String 智能接入網關設備的收貨鄉鎮。
HardWareSpec String 智能接入網關實例的類型。 取值:
  • sag-100wm:智能接入網關硬件版實例,使用SAG-100WM設備,用于將門戶或小型分支機構接入阿里云。
  • sag-1000:智能接入網關硬件版實例,使用SAG-1000設備,支持安裝到工作臺和安裝到機柜兩種安裝模式。
  • sag-vcpe:智能接入網關vCPE版實例,如果部署在您網絡的宿主機中,可以使宿主機作為一個CPE(Customer-premises equipment)設備為您提供上云服務。
Name String 智能接入網關實例的名稱。 長度為2~128個字符,以英文字母或漢字開頭,可包含英文字母、漢字、數字、半角句號(.)、下劃線(_)和短劃線(-)。
ReceiverPhone String 智能接入網關設備的收貨人電話。
ReceiverCity String 智能接入網關設備的收貨城市。
RoutingStrategy String 智能接入網關設備的路由策略。
SecurityLockThreshold Integer 智能接入網關設備的離線鎖定的時間閾值。 單位:秒。
ReceiverAddress String 智能接入網關設備的收貨詳細地址。
AlreadyHaveSag Boolean 是否已擁有智能接入網關設備。 取值:
  • true:已擁有。
  • false(默認值):未擁有。
HaType String 智能接入網關設備的部署模式。 取值:
  • no_backup:只購買一臺智能接入網關設備接入阿里云。
  • cold_backup:購買兩臺智能接入網關設備共享帶寬,僅主設備在線。當主設備發生故障時,需手動切換至備設備。
  • warm_backup:購買兩臺智能接入網關設備共享帶寬,兩臺設備同時在線。當主設備故障時自動切換到備設備。
    說明 當HardWareSpec取值為sag-vcpe時,僅支持指定warm_backup。
Period Integer 智能接入網關實例的購買時長。 取值:1~9、12、24、36。

單位:月。

MaxBandWidth Integer 智能接入網關實例的帶寬。 取值范圍:
  • 當HardWareSpec取值為sag-100wm時:2~50。
  • 當HardWareSpec取值為sag-1000時:10~500。
  • 當HardWareSpec取值為sag-vcpe時:10~1000。

單位:Mbps。

AutoPay Boolean 是否自動支付預付費實例的賬單。 取值:
  • true:自動支付。
  • false(默認值):手動支付。
ReceiverMobile String 智能接入網關設備的收貨人手機號。
ReceiverDistrict String 智能接入網關設備的收貨街區。
Activate Boolean 是否激活智能接入網關實例。 取值:
  • true:激活。
  • false(默認值):不激活。
ChargeType String 智能接入網關實例的計費類型。 取值: PREPAY,表示預付費。
ReceiverState String 智能接入網關設備的收貨省份。
ReceiverName String 智能接入網關設備的收貨人姓名。
ReceiverEmail String 智能接入網關設備的收貨人電子郵箱。

返回值

Fn::GetAtt

  • OrderId:訂單ID。
  • SmartAGId:智能接入網關實例ID。

示例

JSON格式

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "ReceiverCountry": {
      "Type": "String",
      "Description": "The country of the recipient address.",
      "Default": "中國"
    },
    "ReceiverZip": {
      "Type": "String",
      "Description": "The postcode of the recipient address.",
      "Default": "310000"
    },
    "BuyerMessage": {
      "Type": "String",
      "Description": "The remarks left by the buyer.",
      "Default": "留言"
    },
    "ReceiverTown": {
      "Type": "String",
      "Description": "The town of the recipient address.",
      "Default": "轉塘"
    },
    "HardWareSpec": {
      "Type": "String",
      "Description": "The type of the SAG instance. Valid values:\nsag-100wm\nsag-1000\nsag-vcpe",
      "Default": "sag-100wm"
    },
    "Name": {
      "Type": "String",
      "Description": "The name of the SAG instance.\nThe name must be 2 to 128 characters in length and can contain digits, periods (.),\nunderscores (_), and hyphens (-). It must start with a letter.",
      "Default": "test"
    },
    "ReceiverCity": {
      "Type": "String",
      "Description": "The city of the recipient address.",
      "Default": "杭州"
    },
    "ReceiverAddress": {
      "Type": "String",
      "Description": "The detailed address of the recipient.",
      "Default": "XX號"
    },
    "HaType": {
      "Type": "String",
      "Description": "The deployment mode. Valid values:\nno_backup: You buy only one SAG device to connect private networks to Alibaba Cloud.\ncold_backup: You buy two SAG devices in active-standby mode. One SAG device serves as an active\ndevice and the other serves as a standby device. Only the active device is connected\nto Alibaba Cloud. If the active device is not working as expected, you must manually\nperform a switchover.\nwarm_backup: You buy two SAG devices in active-active mode. Both SAG devices are connected to\nAlibaba Cloud. If an active device is not working as expected, a failover is automatically\nperformed.\nNote If you want to create an SAG vCPE instance, set the value to warm_backup.",
      "AllowedValues": [
        "cold_backup",
        "no_backup",
        "warm_backup"
      ],
      "Default": "cold_backup"
    },
    "Period": {
      "Type": "Number",
      "Description": "The subscription period of the SAG instance. Unit: months.\nValid values: 1 to 9, 12, 24, and 36.",
      "Default": 12
    },
    "MaxBandWidth": {
      "Type": "Number",
      "Description": "The bandwidth of the SAG instance.\nIf you want to create an SAG CPE instance and the model is sag-100wm, valid values of this parameter are 2 to 50. Unit: Mbit/s.\nIf you want to create an SAG CPE instance and the model is sag-1000, valid values of this parameter are 10 to 500. Unit: Mbit/s.\nIf you want to create an SAG vCPE instance, valid values of this parameter are 10 to 1000. Unit: Mbit/s.",
      "Default": 12
    },
    "AutoPay": {
      "Type": "Boolean",
      "Description": "Specifies whether to enable auto-payment for the instance. Valid values:\ntrue: yes\nfalse: no\nIf you set the parameter to false, go to Billing Management to complete the payment\nafter you call this operation. After you complete the payment, the instance can be\ncreated.",
      "AllowedValues": [
        "True",
        "true",
        "False",
        "false"
      ],
      "Default": "false"
    },
    "ReceiverMobile": {
      "Type": "String",
      "Description": "The mobile phone number of the recipient.",
      "Default": "1884085****"
    },
    "ReceiverDistrict": {
      "Type": "String",
      "Description": "The district of the recipient address.",
      "Default": "西湖"
    },
    "Activate": {
      "Type": "Boolean",
      "Description": "Activate SAG or not. Default is False",
      "AllowedValues": [
        "True",
        "true",
        "False",
        "false"
      ],
      "Default": "true"
    },
    "ChargeType": {
      "Type": "String",
      "Description": "The billing method of the SAG instance. \nSet the value to PREPAY, which specifies the subscription billing method.",
      "Default": "PREPAY"
    },
    "ReceiverState": {
      "Type": "String",
      "Description": "The province of the recipient address.",
      "Default": "中國"
    },
    "ReceiverName": {
      "Type": "String",
      "Description": "The name of the recipient.",
      "Default": "張三"
    },
    "ReceiverEmail": {
      "Type": "String",
      "Description": "The email address of the recipient.",
      "Default": "xx@example.com"
    }
  },
  "Resources": {
    "SmartAccessGateway": {
      "Type": "ALIYUN::SAG::SmartAccessGateway",
      "Properties": {
        "ReceiverCountry": {
          "Ref": "ReceiverCountry"
        },
        "ReceiverZip": {
          "Ref": "ReceiverZip"
        },
        "BuyerMessage": {
          "Ref": "BuyerMessage"
        },
        "ReceiverTown": {
          "Ref": "ReceiverTown"
        },
        "HardWareSpec": {
          "Ref": "HardWareSpec"
        },
        "Name": {
          "Ref": "Name"
        },
        "ReceiverCity": {
          "Ref": "ReceiverCity"
        },
        "ReceiverAddress": {
          "Ref": "ReceiverAddress"
        },
        "HaType": {
          "Ref": "HaType"
        },
        "Period": {
          "Ref": "Period"
        },
        "MaxBandWidth": {
          "Ref": "MaxBandWidth"
        },
        "AutoPay": {
          "Ref": "AutoPay"
        },
        "ReceiverMobile": {
          "Ref": "ReceiverMobile"
        },
        "ReceiverDistrict": {
          "Ref": "ReceiverDistrict"
        },
        "Activate": {
          "Ref": "Activate"
        },
        "ChargeType": {
          "Ref": "ChargeType"
        },
        "ReceiverState": {
          "Ref": "ReceiverState"
        },
        "ReceiverName": {
          "Ref": "ReceiverName"
        },
        "ReceiverEmail": {
          "Ref": "ReceiverEmail"
        }
      }
    }
  },
  "Outputs": {
    "OrderId": {
      "Description": "The ID of the order.",
      "Value": {
        "Fn::GetAtt": [
          "SmartAccessGateway",
          "OrderId"
        ]
      }
    },
    "SmartAGId": {
      "Description": "The ID of the SAG instance.",
      "Value": {
        "Fn::GetAtt": [
          "SmartAccessGateway",
          "SmartAGId"
        ]
      }
    }
  }
}