DATASOURCE::MSE::Gateways类型用于查询网关列表信息。
语法
{
  "Type": "DATASOURCE::MSE::Gateways",
  "Properties": {
    "InstanceId": String,
    "Vpc": String,
    "GatewayType": String,
    "GatewayId": String,
    "Name": String,
    "RefreshOptions": String
  }
}属性
| 属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 | 
| InstanceId | String | 否 | 是 | 实例ID。 | 无 | 
| Vpc | String | 否 | 是 | 专有网络。 | 无 | 
| GatewayType | String | 否 | 是 | 网关类型。 | 无 | 
| GatewayId | String | 否 | 是 | 网关ID。 | 无 | 
| Name | String | 否 | 是 | 网关名称。 | 无 | 
| RefreshOptions | String | 否 | 是 | 当资源栈更新时,数据源资源的刷新策略。 | 有效值: 
 | 
返回数据(Fn::GetAtt)
- GatewayIds:网关ID列表。 
- Gateways:网关详情列表。 
| 属性名称 | 类型 | 描述 | 约束 | 
| GatewayIds | List | 网关ID列表。 | 无 | 
| Gateways | List | 网关详情列表。 | 无 | 
| GatewayId | String | 网关ID。 | 无 | 
| GmtModified | String | 修改时间。 | 按照ISO8601标准表示,并需要使用UTC时间,格式为yyyy-MM-ddTHH:mm:ssZ。 | 
| Slb | Map | SLB集合。 | 无 | 
| GatewayType | String | 网关类型。 | 无 | 
| Upgrade | Boolean | 升级。 | 无 | 
| Name | String | 网关名称。 | 无 | 
| AppVersion | String | 应用版本。 | 无 | 
| StatusDesc | String | 状态描述。 | 无 | 
| ArmsOn | Boolean | 是否开启ARMS。 | 取值: 
 | 
| InternetSlb | Map | 互联网SLB。 | 无 | 
| Status | String | 网关状态。 | 取值: 
 | 
| SupportWasm | Boolean | 是否支持WASM。 | 取值: 
 | 
| MustUpgrade | Boolean | 强制升级。 | 无 | 
| InstanceId | String | 实例ID。 | 无 | 
| AhasOn | Boolean | 是否开启AHAS。 | 取值: 
 | 
| GmtCreate | String | 创建时间。 | 按照ISO8601标准表示,并需要使用UTC时间,格式为yyyy-MM-ddTHH:mm:ssZ。 | 
| ChargeType | String | 付费类型。 | 取值: 
 | 
| Region | String | 地域。 | 无 | 
| PrimaryUser | String | 阿里云用户信息。 | 无 | 
| InitConfig | Map | 配置信息。 | 无 | 
| Id | String | 实例ID。 | 无 | 
| Spec | String | 规格。 | 无 | 
示例
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "InstanceId": {
      "Type": "String",
      "Description": "The instance ID of gateway."
    }
  },
  "Resources": {
    "Gateways": {
      "Type": "DATASOURCE::MSE::Gateways",
      "Properties": {
        "InstanceId": {
          "Ref": "InstanceId"
        }
      }
    }
  },
  "Outputs": {
    "Gateways": {
      "Description": "The list of gateways.",
      "Value": {
        "Fn::GetAtt": [
          "Gateways",
          "Gateways"
        ]
      }
    },
    "GatewayIds": {
      "Description": "The list of gateway IDs.",
      "Value": {
        "Fn::GetAtt": [
          "Gateways",
          "GatewayIds"
        ]
      }
    }
  }
}ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  InstanceId:
    Type: String
    Description: The instance ID of gateway.
Resources:
  Gateways:
    Type: DATASOURCE::MSE::Gateways
    Properties:
      InstanceId:
        Ref: InstanceId
Outputs:
  Gateways:
    Description: The list of gateways.
    Value:
      Fn::GetAtt:
        - Gateways
        - Gateways
  GatewayIds:
    Description: The list of gateway IDs.
    Value:
      Fn::GetAtt:
        - Gateways
        - GatewayIds