DATASOURCE::VPC::Ipv4Gateways

DATASOURCE::VPC::Ipv4Gateways类型用于查询IPv4网关实例的列表信息。

语法

{
  "Type": "DATASOURCE::VPC::Ipv4Gateways",
  "Properties": {
    "Ipv4GatewayName": String,
    "VpcId": String,
    "Ipv4GatewayId": String
  }
}

属性

属性名称类型必须允许更新描述约束
Ipv4GatewayNameString要查询的IPv4网关实例的名称。名称长度为1~128个字符,不能以http://https://开头。
VpcIdString要查询的IPv4网关实例关联的VPC的ID。
Ipv4GatewayIdString要查询的IPv4网关实例的ID。

返回值

Fn::GetAtt

  • Ipv4GatewayIds:IPv4网关实例ID的列表信息。
  • Ipv4Gateways:IPv4网关实例详情的列表信息。
属性名称类型描述约束
Ipv4GatewayIdsListIPv4网关实例ID的列表信息。
Ipv4GatewaysListIPv4网关实例详情的列表信息。
StatusStringIPv4网关实例的状态。取值:
  • Creating:创建中。
  • Created:已创建,可用状态。
  • Modifying:修改中。
  • Deleting:删除中。
  • Deleted:已删除。
VpcIdStringIPv4网关实例关联的VPC的ID。
Ipv4GatewayIdStringIPv4网关的实例ID。
Ipv4GatewayDescriptionStringIPv4网关实例的描述信息。
EnabledBooleanIPv4网关实例是否已经激活。取值:
  • true:已激活。
  • false:未激活。
Ipv4GatewayNameStringIPv4网关实例的名称。
Ipv4GatewayRouteTableIdStringIPv4网关实例关联的路由表ID。
CreateTimeStringIPv4网关创建时间。

示例

  • YAML格式

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      VpcId:
        Type: String
        AssociationProperty: ALIYUN::ECS::VPC::VPCId
        Description: The ID of the VPC associated with the IPv4 Gateway.
    Resources:
      ExtensionDataSource:
        Type: DATASOURCE::VPC::Ipv4Gateways
        Properties:
          VpcId:
            Ref: VpcId
    Outputs:
      Ipv4GatewayIds:
        Description: The list of ipv4 gateway IDs.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - Ipv4GatewayIds
      Ipv4Gateways:
        Description: The list of ipv4 gateways.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - Ipv4Gateways
  • JSON格式

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "VpcId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::VPC::VPCId",
          "Description": "The ID of the VPC associated with the IPv4 Gateway."
        }
      },
      "Resources": {
        "ExtensionDataSource": {
          "Type": "DATASOURCE::VPC::Ipv4Gateways",
          "Properties": {
            "VpcId": {
              "Ref": "VpcId"
            }
          }
        }
      },
      "Outputs": {
        "Ipv4GatewayIds": {
          "Description": "The list of ipv4 gateway IDs.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "Ipv4GatewayIds"
            ]
          }
        },
        "Ipv4Gateways": {
          "Description": "The list of ipv4 gateways.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "Ipv4Gateways"
            ]
          }
        }
      }
    }