All Products
Search
Document Center

Resource Orchestration Service:ALIYUN::DirectMail::Ipfilter

更新時間:Aug 12, 2024

ALIYUN::DirectMail::Ipfilter is used to add an IP filter.

Syntax

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

Properties

Property

Type

Required

Editable

Description

Constraint

IpAddress

String

Yes

No

The IP address, IP range, or CIDR block.

An IP address must be in the following format: xxx.xxx.xxx.xxx.

An IP range must be in the following format: xxx.xxx.xxx.xxx-xxx.xxx.xxx.xxx.

A CIDR block must be in the following format: xxx.xxx.xxx.xxx/xxx.

Return values

Fn::GetAtt

  • CreateTime: the time when the IP filter was created.

  • IpAddress: the IP address in the IP filter.

  • IpfilterId: the ID of the IP filter.

Examples

  • YAML format

    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 format

    {
      "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"
            ]
          }
        }
      }
    }