全部产品
Search
文档中心

资源编排:ALIYUN::DirectMail::Ipfilter

更新时间:Aug 12, 2024

ALIYUN::DirectMail::Ipfilter类型用于添加IP白名单。

语法

{
  "Type": "ALIYUN::DirectMail::Ipfilter",
  "Properties": {
    "IpAddress": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

IpAddress

String

IP地址、IP区间或IP段。

单个IP格式。例如:xxx.xxx.xxx.xxx

IP区间格式。例如:xxx.xxx.xxx.xxx-xxx.xxx.xxx.xxx

IP段格式,例如:xxx.xxx.xxx.xxx/xxx

返回值

Fn::GetAtt

  • CreateTime:创建时间。

  • IpAddress:IP地址白名单。

  • IpfilterId:IP对应的ID。

示例

  • YAML格式

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
    Resources:
      ExtensionResource:
        Properties:
          IpAddress: 192.168.0.1
        Type: ALIYUN::DirectMail::Ipfilter
    Outputs:
      CreateTime:
        Description: Creation time.
        Value:
          Fn::GetAtt:
          - ExtensionResource
          - CreateTime
      IpAddress:
        Description: The whitelist IP address.
        Value:
          Fn::GetAtt:
          - ExtensionResource
          - IpAddress
      IpfilterId:
        Description: The ID of the IP filter.
        Value:
          Fn::GetAtt:
          - ExtensionResource
          - IpfilterId
  • JSON格式

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
      },
      "Resources": {
        "ExtensionResource": {
          "Type": "ALIYUN::DirectMail::Ipfilter",
          "Properties": {
            "IpAddress": "192.168.0.1"
          }
        }
      },
      "Outputs": {
        "CreateTime": {
          "Description": "Creation time.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "CreateTime"
            ]
          }
        },
        "IpAddress": {
          "Description": "The whitelist IP address.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "IpAddress"
            ]
          }
        },
        "IpfilterId": {
          "Description": "The ID of the IP filter.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "IpfilterId"
            ]
          }
        }
      }
    }