DATASOURCE::APIG::Gateways类型用于查询网关列表。
语法
{
  "Type": "DATASOURCE::APIG::Gateways",
  "Properties": {
    "GatewayName": String,
    "GatewayId": String,
    "ResourceGroupId": String,
    "RefreshOptions": String
  }
}属性
| 属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 | 
| GatewayName | String | 否 | 是 | 网关名称。 | 无 | 
| GatewayId | String | 否 | 是 | 网关 ID 。 | 无 | 
| ResourceGroupId | String | 否 | 是 | 资源组ID。 | 无 | 
| RefreshOptions | String | 否 | 是 | 当资源栈更新时,数据源资源的刷新策略。 | 有效值: 
 | 
返回值
Fn::GetAtt
- Gateways:网关详情列表。 
- GatewayIds:网关ID列表。 
| 属性名称 | 类型 | 描述 | 约束 | 
| GatewayIds | List | 网关ID列表。 | 无 | 
| Gateways | List | 网关详情列表。 | 无 | 
| Zones | List | 网关的可用区信息。 | 无 | 
| UpdateTime | String | 网关更新时间戳。 | 无 | 
| GatewayName | String | 网关名称。 | 无 | 
| Tags | List | 标签列表。 | 无 | 
| LoadBalancers | List | 网关的入口地址列表。 | 无 | 
| SecurityGroup | List | 网关安全组信息。 | 无 | 
| Spec | String | 网关规格。 | 无 | 
| ExpireTime | String | 网关包年包月到期时间戳。 | 无 | 
| PaymentType | String | 网关付费类型。 | 无 | 
| Version | String | 网关版本。 | 无 | 
| Vpc | List | 网关的 VPC 信息。 | 无 | 
| VSwitch | List | 虚拟交换机信息。 | 无 | 
| GatewayId | String | 网关ID。 | 无 | 
| ResourceGroupId | String | 资源组ID。 | 无 | 
| CreateTime | String | 网关创建时间戳。 | 无 | 
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  GatewayId:
    Type: String
    Description:
      en: Cloud-native API Gateway ID.
    Required: false
Resources:
  ExtensionDataSource:
    Type: DATASOURCE::APIG::Gateways
    Properties:
      GatewayId:
        Ref: GatewayId
Outputs:
  Gateways:
    Description: The list of gateways.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Gateways
  GatewayIds:
    Description: The list of gateway IDs.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - GatewayIds
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "GatewayId": {
      "Type": "String",
      "Description": {
        "en": "Cloud-native API Gateway ID."
      },
      "Required": false
    }
  },
  "Resources": {
    "ExtensionDataSource": {
      "Type": "DATASOURCE::APIG::Gateways",
      "Properties": {
        "GatewayId": {
          "Ref": "GatewayId"
        }
      }
    }
  },
  "Outputs": {
    "Gateways": {
      "Description": "The list of gateways.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Gateways"
        ]
      }
    },
    "GatewayIds": {
      "Description": "The list of gateway IDs.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "GatewayIds"
        ]
      }
    }
  }
}
                        该文章对您有帮助吗?