1. Registry
  2. Packages
  3. Alibaba Cloud Provider
  4. API Docs
  5. redis
  6. GlobalSecurityIpGroup
Viewing docs for Alibaba Cloud v3.106.0
published on Monday, Aug 24, 2026 by Pulumi
alicloud logo alicloud logo
Viewing docs for Alibaba Cloud v3.106.0
published on Monday, Aug 24, 2026 by Pulumi

    Provides a Tair (Redis OSS-Compatible) And Memcache (KVStore) Global Security Ip Group resource.

    For information about Tair (Redis OSS-Compatible) And Memcache (KVStore) Global Security Ip Group and how to use it, see What is Global Security Ip Group.

    NOTE: Available since v1.287.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "terraform-example";
    const zoneId = config.get("zoneId") || "cn-beijing-h";
    const regionId = config.get("regionId") || "cn-beijing";
    const _default = new alicloud.redis.GlobalSecurityIpGroup("default", {
        globalIpGroupName: "ggn_example_create",
        globalIpList: "192.168.0.1,10.10.10.10,172.16.0.1",
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "terraform-example"
    zone_id = config.get("zoneId")
    if zone_id is None:
        zone_id = "cn-beijing-h"
    region_id = config.get("regionId")
    if region_id is None:
        region_id = "cn-beijing"
    default = alicloud.redis.GlobalSecurityIpGroup("default",
        global_ip_group_name="ggn_example_create",
        global_ip_list="192.168.0.1,10.10.10.10,172.16.0.1")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/redis"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		name := "terraform-example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		zoneId := "cn-beijing-h"
    		if param := cfg.Get("zoneId"); param != "" {
    			zoneId = param
    		}
    		regionId := "cn-beijing"
    		if param := cfg.Get("regionId"); param != "" {
    			regionId = param
    		}
    		_, err := redis.NewGlobalSecurityIpGroup(ctx, "default", &redis.GlobalSecurityIpGroupArgs{
    			GlobalIpGroupName: pulumi.String("ggn_example_create"),
    			GlobalIpList:      pulumi.String("192.168.0.1,10.10.10.10,172.16.0.1"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var name = config.Get("name") ?? "terraform-example";
        var zoneId = config.Get("zoneId") ?? "cn-beijing-h";
        var regionId = config.Get("regionId") ?? "cn-beijing";
        var @default = new AliCloud.Redis.GlobalSecurityIpGroup("default", new()
        {
            GlobalIpGroupName = "ggn_example_create",
            GlobalIpList = "192.168.0.1,10.10.10.10,172.16.0.1",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.redis.GlobalSecurityIpGroup;
    import com.pulumi.alicloud.redis.GlobalSecurityIpGroupArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var config = ctx.config();
            final var name = config.get("name").orElse("terraform-example");
            final var zoneId = config.get("zoneId").orElse("cn-beijing-h");
            final var regionId = config.get("regionId").orElse("cn-beijing");
            var default_ = new GlobalSecurityIpGroup("default", GlobalSecurityIpGroupArgs.builder()
                .globalIpGroupName("ggn_example_create")
                .globalIpList("192.168.0.1,10.10.10.10,172.16.0.1")
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: terraform-example
      zoneId:
        type: string
        default: cn-beijing-h
      regionId:
        type: string
        default: cn-beijing
    resources:
      default:
        type: alicloud:redis:GlobalSecurityIpGroup
        properties:
          globalIpGroupName: ggn_example_create
          globalIpList: 192.168.0.1,10.10.10.10,172.16.0.1
    
    pulumi {
      required_providers {
        alicloud = {
          source = "pulumi/alicloud"
        }
      }
    }
    
    resource "alicloud_redis_globalsecurityipgroup" "default" {
      global_ip_group_name = "ggn_example_create"
      global_ip_list       = "192.168.0.1,10.10.10.10,172.16.0.1"
    }
    variable "name" {
      type    = string
      default = "terraform-example"
    }
    variable "zoneId" {
      type    = string
      default = "cn-beijing-h"
    }
    variable "regionId" {
      type    = string
      default = "cn-beijing"
    }
    

    📚 Need more examples? VIEW MORE EXAMPLES

    Create GlobalSecurityIpGroup Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new GlobalSecurityIpGroup(name: string, args: GlobalSecurityIpGroupArgs, opts?: CustomResourceOptions);
    @overload
    def GlobalSecurityIpGroup(resource_name: str,
                              args: GlobalSecurityIpGroupArgs,
                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def GlobalSecurityIpGroup(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              global_ip_group_name: Optional[str] = None,
                              global_ip_list: Optional[str] = None)
    func NewGlobalSecurityIpGroup(ctx *Context, name string, args GlobalSecurityIpGroupArgs, opts ...ResourceOption) (*GlobalSecurityIpGroup, error)
    public GlobalSecurityIpGroup(string name, GlobalSecurityIpGroupArgs args, CustomResourceOptions? opts = null)
    public GlobalSecurityIpGroup(String name, GlobalSecurityIpGroupArgs args)
    public GlobalSecurityIpGroup(String name, GlobalSecurityIpGroupArgs args, CustomResourceOptions options)
    
    type: alicloud:redis:GlobalSecurityIpGroup
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "alicloud_redis_global_security_ip_group" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args GlobalSecurityIpGroupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args GlobalSecurityIpGroupArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args GlobalSecurityIpGroupArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args GlobalSecurityIpGroupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args GlobalSecurityIpGroupArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var exampleglobalSecurityIpGroupResourceResourceFromRedisglobalSecurityIpGroup = new AliCloud.Redis.GlobalSecurityIpGroup("exampleglobalSecurityIpGroupResourceResourceFromRedisglobalSecurityIpGroup", new()
    {
        GlobalIpGroupName = "string",
        GlobalIpList = "string",
    });
    
    example, err := redis.NewGlobalSecurityIpGroup(ctx, "exampleglobalSecurityIpGroupResourceResourceFromRedisglobalSecurityIpGroup", &redis.GlobalSecurityIpGroupArgs{
    	GlobalIpGroupName: pulumi.String("string"),
    	GlobalIpList:      pulumi.String("string"),
    })
    
    resource "alicloud_redis_global_security_ip_group" "exampleglobalSecurityIpGroupResourceResourceFromRedisglobalSecurityIpGroup" {
      lifecycle {
        create_before_destroy = true
      }
      global_ip_group_name = "string"
      global_ip_list       = "string"
    }
    
    var exampleglobalSecurityIpGroupResourceResourceFromRedisglobalSecurityIpGroup = new com.pulumi.alicloud.redis.GlobalSecurityIpGroup("exampleglobalSecurityIpGroupResourceResourceFromRedisglobalSecurityIpGroup", com.pulumi.alicloud.redis.GlobalSecurityIpGroupArgs.builder()
        .globalIpGroupName("string")
        .globalIpList("string")
        .build());
    
    exampleglobal_security_ip_group_resource_resource_from_redisglobal_security_ip_group = alicloud.redis.GlobalSecurityIpGroup("exampleglobalSecurityIpGroupResourceResourceFromRedisglobalSecurityIpGroup",
        global_ip_group_name="string",
        global_ip_list="string")
    
    const exampleglobalSecurityIpGroupResourceResourceFromRedisglobalSecurityIpGroup = new alicloud.redis.GlobalSecurityIpGroup("exampleglobalSecurityIpGroupResourceResourceFromRedisglobalSecurityIpGroup", {
        globalIpGroupName: "string",
        globalIpList: "string",
    });
    
    type: alicloud:redis:GlobalSecurityIpGroup
    properties:
        globalIpGroupName: string
        globalIpList: string
    

    GlobalSecurityIpGroup Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The GlobalSecurityIpGroup resource accepts the following input properties:

    GlobalIpGroupName string

    The name of the IP whitelist template.

    NOTE: Multiple IP addresses are separated by commas (,). You can create up to 1,000 IP addresses or CIDR blocks for all IP whitelists.

    GlobalIpList string
    The IP address in the whitelist template.
    GlobalIpGroupName string

    The name of the IP whitelist template.

    NOTE: Multiple IP addresses are separated by commas (,). You can create up to 1,000 IP addresses or CIDR blocks for all IP whitelists.

    GlobalIpList string
    The IP address in the whitelist template.
    global_ip_group_name string

    The name of the IP whitelist template.

    NOTE: Multiple IP addresses are separated by commas (,). You can create up to 1,000 IP addresses or CIDR blocks for all IP whitelists.

    global_ip_list string
    The IP address in the whitelist template.
    globalIpGroupName String

    The name of the IP whitelist template.

    NOTE: Multiple IP addresses are separated by commas (,). You can create up to 1,000 IP addresses or CIDR blocks for all IP whitelists.

    globalIpList String
    The IP address in the whitelist template.
    globalIpGroupName string

    The name of the IP whitelist template.

    NOTE: Multiple IP addresses are separated by commas (,). You can create up to 1,000 IP addresses or CIDR blocks for all IP whitelists.

    globalIpList string
    The IP address in the whitelist template.
    global_ip_group_name str

    The name of the IP whitelist template.

    NOTE: Multiple IP addresses are separated by commas (,). You can create up to 1,000 IP addresses or CIDR blocks for all IP whitelists.

    global_ip_list str
    The IP address in the whitelist template.
    globalIpGroupName String

    The name of the IP whitelist template.

    NOTE: Multiple IP addresses are separated by commas (,). You can create up to 1,000 IP addresses or CIDR blocks for all IP whitelists.

    globalIpList String
    The IP address in the whitelist template.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the GlobalSecurityIpGroup resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing GlobalSecurityIpGroup Resource

    Get an existing GlobalSecurityIpGroup resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: GlobalSecurityIpGroupState, opts?: CustomResourceOptions): GlobalSecurityIpGroup
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            global_ip_group_name: Optional[str] = None,
            global_ip_list: Optional[str] = None) -> GlobalSecurityIpGroup
    func GetGlobalSecurityIpGroup(ctx *Context, name string, id IDInput, state *GlobalSecurityIpGroupState, opts ...ResourceOption) (*GlobalSecurityIpGroup, error)
    public static GlobalSecurityIpGroup Get(string name, Input<string> id, GlobalSecurityIpGroupState? state, CustomResourceOptions? opts = null)
    public static GlobalSecurityIpGroup get(String name, Output<String> id, GlobalSecurityIpGroupState state, CustomResourceOptions options)
    resources:  _:    type: alicloud:redis:GlobalSecurityIpGroup    get:      id: ${id}
    import {
      to = alicloud_redis_global_security_ip_group.example
      id = "${id}"
    }
    
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    GlobalIpGroupName string

    The name of the IP whitelist template.

    NOTE: Multiple IP addresses are separated by commas (,). You can create up to 1,000 IP addresses or CIDR blocks for all IP whitelists.

    GlobalIpList string
    The IP address in the whitelist template.
    GlobalIpGroupName string

    The name of the IP whitelist template.

    NOTE: Multiple IP addresses are separated by commas (,). You can create up to 1,000 IP addresses or CIDR blocks for all IP whitelists.

    GlobalIpList string
    The IP address in the whitelist template.
    global_ip_group_name string

    The name of the IP whitelist template.

    NOTE: Multiple IP addresses are separated by commas (,). You can create up to 1,000 IP addresses or CIDR blocks for all IP whitelists.

    global_ip_list string
    The IP address in the whitelist template.
    globalIpGroupName String

    The name of the IP whitelist template.

    NOTE: Multiple IP addresses are separated by commas (,). You can create up to 1,000 IP addresses or CIDR blocks for all IP whitelists.

    globalIpList String
    The IP address in the whitelist template.
    globalIpGroupName string

    The name of the IP whitelist template.

    NOTE: Multiple IP addresses are separated by commas (,). You can create up to 1,000 IP addresses or CIDR blocks for all IP whitelists.

    globalIpList string
    The IP address in the whitelist template.
    global_ip_group_name str

    The name of the IP whitelist template.

    NOTE: Multiple IP addresses are separated by commas (,). You can create up to 1,000 IP addresses or CIDR blocks for all IP whitelists.

    global_ip_list str
    The IP address in the whitelist template.
    globalIpGroupName String

    The name of the IP whitelist template.

    NOTE: Multiple IP addresses are separated by commas (,). You can create up to 1,000 IP addresses or CIDR blocks for all IP whitelists.

    globalIpList String
    The IP address in the whitelist template.

    Import

    Tair (Redis OSS-Compatible) And Memcache (KVStore) Global Security Ip Group can be imported using the id, e.g.

    $ pulumi import alicloud:redis/globalSecurityIpGroup:GlobalSecurityIpGroup example <global_security_group_id>
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo alicloud logo
    Viewing docs for Alibaba Cloud v3.106.0
    published on Monday, Aug 24, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial