ALIYUN::SAG::SerialNumberBinding类型用于将智能接入网关硬件设备绑定到智能接入网关实例。
语法
{
  "Type": "ALIYUN::SAG::SerialNumberBinding",
  "Properties": {
    "SerialNumber": String,
    "SmartAGId": String
  }
}属性
| 属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 | 
|---|---|---|---|---|---|
| SerialNumber | String | 是 | 否 | 智能接入网关设备的SN号。 | 取值示例: sage62x021922****。 | 
| SmartAGId | String | 是 | 否 | 智能接入网关实例ID。 | 取值示例: sag-r79m060r6oy55******。 | 
返回值
Fn::GetAtt
SmartAGId:智能接入网关实例ID。
示例
JSON格式
                  
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "SerialNumber": {
      "Type": "String",
      "Description": "The serial number (SN) of the SAG device.",
      "Default": "sage62x021922****"
    },
    "SmartAGId": {
      "Type": "String",
      "Description": "The ID of the SAG instance.",
      "Default": "sag-r79m060r6oy55******"
    }
  },
  "Resources": {
    "SerialNumberBinding": {
      "Type": "ALIYUN::SAG::SerialNumberBinding",
      "Properties": {
        "SerialNumber": {
          "Ref": "SerialNumber"
        },
        "SmartAGId": {
          "Ref": "SmartAGId"
        }
      }
    }
  },
  "Outputs": {
    "SmartAGId": {
      "Description": "The ID of the SAG instance.",
      "Value": {
        "Fn::GetAtt": [
          "SerialNumberBinding",
          "SmartAGId"
        ]
      }
    }
  }
}