文档

DATASOURCE::VPC::PrefixLists

更新时间:

DATASOURCE::VPC::PrefixLists类型用于查询前缀列表的列表信息。

语法

{
  "Type": "DATASOURCE::VPC::PrefixLists",
  "Properties": {
    "PrefixListName": String,
    "ResourceGroupId": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

PrefixListName

String

要查询的前缀列表的名称。

名称长度为1~128个字符,不能以http://https://开头。

ResourceGroupId

String

VPC所属的资源组ID。 

返回值

Fn::GetAtt

  • PrefixListIds:查询到的前缀列表ID的列表信息。

  • PrefixLists:查询到的前缀列表的列表信息。

属性名称

类型

描述

约束

PrefixListIds

List

查询到的前缀列表ID的列表信息。

PrefixLists

List

查询到的前缀列表的列表信息。

MaxEntries

Number

前缀列表中CIDR地址块的最大条目数。

Status

String

前缀列表的状态。

取值:

  • Created:已创建。

  • Deleted:已删除。

  • Modifying:修改中。

ShareType

String

前缀列表的共享类型。

取值:

  • Shared:表示该前缀列表为共享的前缀列表。

  • 空:表示该前缀列表不是共享的前缀列表。

PrefixListName

String

前缀列表的名称。

IpVersion

String

前缀列表的IP版本。

取值:

  • IPv4:IPv4版本。

  • IPv6:IPv6版本。

ResourceGroupId

String

资源组ID。

Entries

List

前缀列表的CIDR地址块信息。

示例:

[ "100.115.XX.XX/24" ]

OwnerId

String

前缀列表所属的阿里云账号(主账号)。

PrefixListId

String

查询到的前缀列表ID。

CreateTime

String

前缀列表的创建时间。

PrefixListDescription

String

前缀列表的描述信息。

示例

  • YAML格式

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
    Resources:
      ExtensionDataSource:
        Properties:
          PrefixListName: Test
        Type: DATASOURCE::VPC::PrefixLists
    Outputs:
      PrefixListIds:
        Description: The list of prefix list IDs.
        Value:
          Fn::GetAtt:
          - ExtensionDataSource
          - PrefixListIds
      PrefixLists:
        Description: The list of prefix lists.
        Value:
          Fn::GetAtt:
          - ExtensionDataSource
          - PrefixLists
  • JSON格式

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
      },
      "Resources": {
        "ExtensionDataSource": {
          "Type": "DATASOURCE::VPC::PrefixLists",
          "Properties": {
            "PrefixListName": "Test"
          }
        }
      },
      "Outputs": {
        "PrefixListIds": {
          "Description": "The list of prefix list IDs.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "PrefixListIds"
            ]
          }
        },
        "PrefixLists": {
          "Description": "The list of prefix lists.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "PrefixLists"
            ]
          }
        }
      }
    }
  • 本页导读 (1)
文档反馈