All Products
Search
Document Center

Resource Orchestration Service:ALIYUN::Memcache::Whitelist

Last Updated:Aug 20, 2026

The ALIYUN::Memcache::Whitelist resource creates a whitelist.

Syntax

{
  "Type": "ALIYUN::Memcache::Whitelist",
  "Properties": {
    "InstanceId": String,
    "SecurityIpGroupName": String,
    "SecurityIpGroupAttribute": String,
    "SecurityIps": String
  }
}

Properties

Property name

Type

Required

Update allowed

Description

Constraints

InstanceId

String

Yes

No

The instance ID.

None

SecurityIpGroupName

String

No

No

The name of the IP whitelist group.

None

SecurityIpGroupAttribute

String

No

No

The attribute of the IP whitelist group.

By default, this parameter is not specified. If you set this parameter to `hidden`, the IP whitelist group is not displayed in the console.

SecurityIps

String

Yes

Yes

The list of IP addresses in the IP whitelist group.

Up to 1,000 IP addresses are supported. Separate multiple IP addresses with a comma (,). The IP addresses can be in the format of `0.0.0.0/0`, `10.23.12.24`, or `10.23.12.24/24`. The `/24` in a Classless Inter-Domain Routing (CIDR) block indicates the prefix length. The value of the prefix length ranges from 1 to 32.

Return values

Fn::GetAtt

  • SecurityIpGroupName: The name of the IP whitelist group.

  • SecurityIpGroupAttribute: The attribute of the IP whitelist group.

  • SecurityIps: The list of IP addresses in the IP whitelist group.

Examples

YAML format

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  InstanceId:
    Type: String
    Description: Memcache Instance Id
    Default: '****'
  SecurityIpGroupName:
    Type: String
    Default: mytest
Resources:
  Whitelist:
    Type: ALIYUN::Memcache::Whitelist
    Properties:
      InstanceId:
        Ref: InstanceId
      SecurityIpGroupName:
        Ref: SecurityIpGroupName
      SecurityIpGroupAttribute: test
      SecurityIps: 0.0.0.0/0
Outputs:
  SecurityIpGroupName:
    Value:
      Fn::GetAtt:
        - Whitelist
        - SecurityIpGroupName
  SecurityIpGroupAttribute:
    Value:
      Fn::GetAtt:
        - Whitelist
        - SecurityIpGroupAttribute
  SecurityIps:
    Value:
      Fn::GetAtt:
        - Whitelist
        - SecurityIps

JSON format

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "InstanceId": {
      "Type": "String",
      "Description": "Memcache Instance Id",
      "Default": "****"
    },
    "SecurityIpGroupName": {
      "Type": "String",
      "Default": "mytest"
    }
  },
  "Resources": {
    "Whitelist": {
      "Type": "ALIYUN::Memcache::Whitelist",
      "Properties": {
        "InstanceId": {
          "Ref": "InstanceId"
        },
        "SecurityIpGroupName": {
          "Ref": "SecurityIpGroupName"
        },
        "SecurityIpGroupAttribute": "test",
        "SecurityIps": "0.0.0.0/0"
      }
    }
  },
  "Outputs": {
    "SecurityIpGroupName": {
      "Value": {
        "Fn::GetAtt": [
          "Whitelist",
          "SecurityIpGroupName"
        ]
      }
    },
    "SecurityIpGroupAttribute": {
      "Value": {
        "Fn::GetAtt": [
          "Whitelist",
          "SecurityIpGroupAttribute"
        ]
      }
    },
    "SecurityIps": {
      "Value": {
        "Fn::GetAtt": [
          "Whitelist",
          "SecurityIps"
        ]
      }
    }
  }
}