すべてのプロダクト
Search
ドキュメントセンター

Resource Orchestration Service:ALIYUN::POLARDB::GlobalSecurityIPGroup

最終更新日:Mar 17, 2025

ALIYUN::POLARDB::GlobalSecurityIPGroup は、グローバル IP ホワイトリストテンプレートを作成するために使用されます。

構文

{
  "Type": "ALIYUN::POLARDB::GlobalSecurityIPGroup",
  "Properties": {
    "GlobalIgName": String,
    "GIpList": List,
    "ResourceGroupId": String
  }
}

プロパティ

プロパティ

必須

編集可能

説明

制約

GlobalIgName

String

はい

いいえ

グローバル IP ホワイトリストテンプレートの名前。

グローバル IP ホワイトリストテンプレートの名前は、次の要件を満たしている必要があります。

  • 名前には、小文字、数字、およびアンダースコア (_) を使用できます。

  • 文字で始まり、文字または数字で終わる必要があります。

  • 2 ~ 120 文字の長さである必要があります。

GIpList

List

はい

はい

グローバル IP ホワイトリストテンプレートのエントリ。

グローバル IP ホワイトリストテンプレートには、最大 1,000 個の IP アドレスまたは CIDR ブロックを追加できます。

ResourceGroupId

String

いいえ

はい

リソースグループの ID。

なし。

戻り値

Fn::GetAtt

GlobalSecurityGroupId: グローバル IP ホワイトリストテンプレートの ID。

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  GlobalIgName:
    Type: String
    Description:
      en: |-
        The name of the IP whitelist template. The name must meet the following requirements:
        The name can contain lowercase letters, digits, and underscores (_).
        The name must start with a letter and end with a letter or digit.
        The name must be 2 to 120 characters in length.
    Required: true
    AllowedPattern: ^[a-z][a-z0-9_]*[a-z0-9]$
    MinLength: 2
    MaxLength: 120
  GIpList:
    AssociationPropertyMetadata:
      Parameter:
        Type: String
        Description:
          en: The IP address in the whitelist template.
        Required: false
    AssociationProperty: List[Parameter]
    Type: Json
    Description:
      en: |-
        The IP addresses in the whitelist template.
        You can create up to 1,000 IP addresses or CIDR blocks for all IP whitelists.
    Required: true
    MinLength: 1
    MaxLength: 1000
Resources:
  GlobalSecurityIPGroup:
    Type: ALIYUN::POLARDB::GlobalSecurityIPGroup
    Properties:
      GlobalIgName:
        Ref: GlobalIgName
      GIpList:
        Ref: GIpList
Outputs:
  GlobalSecurityGroupId:
    Description: The ID of the IP whitelist template.
    Value:
      Fn::GetAtt:
        - GlobalSecurityIPGroup
        - GlobalSecurityGroupId
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "GlobalIgName": {
      "Type": "String",
      "Description": {
        "en": "The name of the IP whitelist template. The name must meet the following requirements:\nThe name can contain lowercase letters, digits, and underscores (_).\nThe name must start with a letter and end with a letter or digit.\nThe name must be 2 to 120 characters in length."
      },
      "Required": true,
      "AllowedPattern": "^[a-z][a-z0-9_]*[a-z0-9]$",
      "MinLength": 2,
      "MaxLength": 120
    },
    "GIpList": {
      "AssociationPropertyMetadata": {
        "Parameter": {
          "Type": "String",
          "Description": {
            "en": "The IP address in the whitelist template."
          },
          "Required": false
        }
      },
      "AssociationProperty": "List[Parameter]",
      "Type": "Json",
      "Description": {
        "en": "The IP addresses in the whitelist template.\nYou can create up to 1,000 IP addresses or CIDR blocks for all IP whitelists."
      },
      "Required": true,
      "MinLength": 1,
      "MaxLength": 1000
    }
  },
  "Resources": {
    "GlobalSecurityIPGroup": {
      "Type": "ALIYUN::POLARDB::GlobalSecurityIPGroup",
      "Properties": {
        "GlobalIgName": {
          "Ref": "GlobalIgName"
        },
        "GIpList": {
          "Ref": "GIpList"
        }
      }
    }
  },
  "Outputs": {
    "GlobalSecurityGroupId": {
      "Description": "The ID of the IP whitelist template.",
      "Value": {
        "Fn::GetAtt": [
          "GlobalSecurityIPGroup",
          "GlobalSecurityGroupId"
        ]
      }
    }
  }
}