DATASOURCE::CLOUDFW::AddressBook

DATASOURCE::CLOUDFW::AddressBook类型用于查询云防火墙访问控制策略地址簿的详细信息。

语法

{
  "Type": "DATASOURCE::CLOUDFW::AddressBook",
  "Properties": {
    "GroupUuid": String,
    "RefreshOptions": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

GroupUuid

String

地址簿的唯一标识 ID。

RefreshOptions

String

当资源栈更新时,数据源资源的刷新策略。

取值:

  • Never(默认值):更新堆栈时,从不刷新数据源资源。

  • Always:更新堆栈时,始终刷新数据源资源。

返回值

Fn::GetAtt

  • GroupName:地址簿的名称。

  • Description:地址簿的描述信息。

  • TagRelation:多个 ECS 标签间的关系。

  • GroupType:地址簿的类型。

  • GroupUuid:地址簿的唯一标识 ID。

  • AddressListCount:地址簿中包含地址的个数。

  • AutoAddTagEcs:是否自动添加新匹配标签的 ECS(新购且完成标签设置的 ECS 或修改标签的 ECS)公网 IP 到地址簿。

  • AddressList:地址簿的地址列表。

  • Tags:地址簿支持自动添加的待匹配 ECS 标签信息。

  • ReferenceCount:地址簿被引用次数。

示例

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  GroupUuid:
    Type: String
    Description:
      en: The UUID of the address book.
    Required: true
Resources:
  ExtensionDataSource:
    Type: DATASOURCE::CLOUDFW::AddressBook
    Properties:
      GroupUuid:
        Ref: GroupUuid
Outputs:
  GroupName:
    Description: The name of the address book.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - GroupName
  Description:
    Description: The description of the address book.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Description
  TagRelation:
    Description: The logical relationship among ECS tags.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - TagRelation
  GroupType:
    Description: The type of the address book.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - GroupType
  GroupUuid:
    Description: The UUID of the address book.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - GroupUuid
  AddressListCount:
    Description: The number of addresses in the address book.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - AddressListCount
  AutoAddTagEcs:
    Description: Indicates whether the public IP addresses of ECS instances are automatically added to the address book if the instances match the specified tags.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - AutoAddTagEcs
  AddressList:
    Description: The addresses in the address book.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - AddressList
  Tags:
    Description: The details about the ECS tags that can be automatically added to the address book.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Tags
  ReferenceCount:
    Description: The number of times that the address book is referenced.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - ReferenceCount
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "GroupUuid": {
      "Type": "String",
      "Description": {
        "en": "The UUID of the address book."
      },
      "Required": true
    }
  },
  "Resources": {
    "ExtensionDataSource": {
      "Type": "DATASOURCE::CLOUDFW::AddressBook",
      "Properties": {
        "GroupUuid": {
          "Ref": "GroupUuid"
        }
      }
    }
  },
  "Outputs": {
    "GroupName": {
      "Description": "The name of the address book.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "GroupName"
        ]
      }
    },
    "Description": {
      "Description": "The description of the address book.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Description"
        ]
      }
    },
    "TagRelation": {
      "Description": "The logical relationship among ECS tags.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "TagRelation"
        ]
      }
    },
    "GroupType": {
      "Description": "The type of the address book.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "GroupType"
        ]
      }
    },
    "GroupUuid": {
      "Description": "The UUID of the address book.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "GroupUuid"
        ]
      }
    },
    "AddressListCount": {
      "Description": "The number of addresses in the address book.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "AddressListCount"
        ]
      }
    },
    "AutoAddTagEcs": {
      "Description": "Indicates whether the public IP addresses of ECS instances are automatically added to the address book if the instances match the specified tags.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "AutoAddTagEcs"
        ]
      }
    },
    "AddressList": {
      "Description": "The addresses in the address book.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "AddressList"
        ]
      }
    },
    "Tags": {
      "Description": "The details about the ECS tags that can be automatically added to the address book.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Tags"
        ]
      }
    },
    "ReferenceCount": {
      "Description": "The number of times that the address book is referenced.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ReferenceCount"
        ]
      }
    }
  }
}