1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. gpdb
  5. DbInstanceIpArray
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

alicloud.gpdb.DbInstanceIpArray

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

    Provides a GPDB DB Instance IP Array resource.

    Whitelist IP Group.

    For information about GPDB DB Instance IP Array and how to use it, see What is DB Instance IP Array.

    NOTE: Available since v1.231.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 default = alicloud.getZones({
        availableResourceCreation: "VSwitch",
    });
    const defaultNpLRa1 = new alicloud.vpc.Network("defaultNpLRa1", {cidrBlock: "192.168.0.0/16"});
    const defaultwLA5v4 = new alicloud.vpc.Switch("defaultwLA5v4", {
        vpcId: defaultNpLRa1.id,
        zoneId: "cn-beijing-h",
        cidrBlock: "192.168.1.0/24",
    });
    const defaultHKdDs3 = new alicloud.gpdb.Instance("defaultHKdDs3", {
        instanceSpec: "2C8G",
        segNodeNum: 2,
        segStorageType: "cloud_essd",
        instanceNetworkType: "VPC",
        dbInstanceCategory: "Basic",
        paymentType: "PayAsYouGo",
        sslEnabled: 0,
        engineVersion: "6.0",
        zoneId: "cn-beijing-h",
        vswitchId: defaultwLA5v4.id,
        storageSize: 50,
        masterCu: 4,
        vpcId: defaultNpLRa1.id,
        dbInstanceMode: "StorageElastic",
        engine: "gpdb",
        description: name,
    });
    const defaultDbInstanceIpArray = new alicloud.gpdb.DbInstanceIpArray("default", {
        dbInstanceIpArrayAttribute: "taffyFish",
        securityIpLists: [
            "12.34.56.78",
            "11.45.14.0",
            "19.19.81.0",
        ],
        dbInstanceIpArrayName: "taffy",
        dbInstanceId: defaultHKdDs3.id,
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "terraform-example"
    default = alicloud.get_zones(available_resource_creation="VSwitch")
    default_np_l_ra1 = alicloud.vpc.Network("defaultNpLRa1", cidr_block="192.168.0.0/16")
    defaultw_la5v4 = alicloud.vpc.Switch("defaultwLA5v4",
        vpc_id=default_np_l_ra1.id,
        zone_id="cn-beijing-h",
        cidr_block="192.168.1.0/24")
    default_h_kd_ds3 = alicloud.gpdb.Instance("defaultHKdDs3",
        instance_spec="2C8G",
        seg_node_num=2,
        seg_storage_type="cloud_essd",
        instance_network_type="VPC",
        db_instance_category="Basic",
        payment_type="PayAsYouGo",
        ssl_enabled=0,
        engine_version="6.0",
        zone_id="cn-beijing-h",
        vswitch_id=defaultw_la5v4.id,
        storage_size=50,
        master_cu=4,
        vpc_id=default_np_l_ra1.id,
        db_instance_mode="StorageElastic",
        engine="gpdb",
        description=name)
    default_db_instance_ip_array = alicloud.gpdb.DbInstanceIpArray("default",
        db_instance_ip_array_attribute="taffyFish",
        security_ip_lists=[
            "12.34.56.78",
            "11.45.14.0",
            "19.19.81.0",
        ],
        db_instance_ip_array_name="taffy",
        db_instance_id=default_h_kd_ds3.id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/gpdb"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
    	"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
    		}
    		_, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{
    			AvailableResourceCreation: pulumi.StringRef("VSwitch"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		defaultNpLRa1, err := vpc.NewNetwork(ctx, "defaultNpLRa1", &vpc.NetworkArgs{
    			CidrBlock: pulumi.String("192.168.0.0/16"),
    		})
    		if err != nil {
    			return err
    		}
    		defaultwLA5v4, err := vpc.NewSwitch(ctx, "defaultwLA5v4", &vpc.SwitchArgs{
    			VpcId:     defaultNpLRa1.ID(),
    			ZoneId:    pulumi.String("cn-beijing-h"),
    			CidrBlock: pulumi.String("192.168.1.0/24"),
    		})
    		if err != nil {
    			return err
    		}
    		defaultHKdDs3, err := gpdb.NewInstance(ctx, "defaultHKdDs3", &gpdb.InstanceArgs{
    			InstanceSpec:        pulumi.String("2C8G"),
    			SegNodeNum:          pulumi.Int(2),
    			SegStorageType:      pulumi.String("cloud_essd"),
    			InstanceNetworkType: pulumi.String("VPC"),
    			DbInstanceCategory:  pulumi.String("Basic"),
    			PaymentType:         pulumi.String("PayAsYouGo"),
    			SslEnabled:          pulumi.Int(0),
    			EngineVersion:       pulumi.String("6.0"),
    			ZoneId:              pulumi.String("cn-beijing-h"),
    			VswitchId:           defaultwLA5v4.ID(),
    			StorageSize:         pulumi.Int(50),
    			MasterCu:            pulumi.Int(4),
    			VpcId:               defaultNpLRa1.ID(),
    			DbInstanceMode:      pulumi.String("StorageElastic"),
    			Engine:              pulumi.String("gpdb"),
    			Description:         pulumi.String(name),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = gpdb.NewDbInstanceIpArray(ctx, "default", &gpdb.DbInstanceIpArrayArgs{
    			DbInstanceIpArrayAttribute: pulumi.String("taffyFish"),
    			SecurityIpLists: pulumi.StringArray{
    				pulumi.String("12.34.56.78"),
    				pulumi.String("11.45.14.0"),
    				pulumi.String("19.19.81.0"),
    			},
    			DbInstanceIpArrayName: pulumi.String("taffy"),
    			DbInstanceId:          defaultHKdDs3.ID(),
    		})
    		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 @default = AliCloud.GetZones.Invoke(new()
        {
            AvailableResourceCreation = "VSwitch",
        });
    
        var defaultNpLRa1 = new AliCloud.Vpc.Network("defaultNpLRa1", new()
        {
            CidrBlock = "192.168.0.0/16",
        });
    
        var defaultwLA5v4 = new AliCloud.Vpc.Switch("defaultwLA5v4", new()
        {
            VpcId = defaultNpLRa1.Id,
            ZoneId = "cn-beijing-h",
            CidrBlock = "192.168.1.0/24",
        });
    
        var defaultHKdDs3 = new AliCloud.Gpdb.Instance("defaultHKdDs3", new()
        {
            InstanceSpec = "2C8G",
            SegNodeNum = 2,
            SegStorageType = "cloud_essd",
            InstanceNetworkType = "VPC",
            DbInstanceCategory = "Basic",
            PaymentType = "PayAsYouGo",
            SslEnabled = 0,
            EngineVersion = "6.0",
            ZoneId = "cn-beijing-h",
            VswitchId = defaultwLA5v4.Id,
            StorageSize = 50,
            MasterCu = 4,
            VpcId = defaultNpLRa1.Id,
            DbInstanceMode = "StorageElastic",
            Engine = "gpdb",
            Description = name,
        });
    
        var defaultDbInstanceIpArray = new AliCloud.Gpdb.DbInstanceIpArray("default", new()
        {
            DbInstanceIpArrayAttribute = "taffyFish",
            SecurityIpLists = new[]
            {
                "12.34.56.78",
                "11.45.14.0",
                "19.19.81.0",
            },
            DbInstanceIpArrayName = "taffy",
            DbInstanceId = defaultHKdDs3.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.AlicloudFunctions;
    import com.pulumi.alicloud.inputs.GetZonesArgs;
    import com.pulumi.alicloud.vpc.Network;
    import com.pulumi.alicloud.vpc.NetworkArgs;
    import com.pulumi.alicloud.vpc.Switch;
    import com.pulumi.alicloud.vpc.SwitchArgs;
    import com.pulumi.alicloud.gpdb.Instance;
    import com.pulumi.alicloud.gpdb.InstanceArgs;
    import com.pulumi.alicloud.gpdb.DbInstanceIpArray;
    import com.pulumi.alicloud.gpdb.DbInstanceIpArrayArgs;
    import java.util.List;
    import java.util.ArrayList;
    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 default = AlicloudFunctions.getZones(GetZonesArgs.builder()
                .availableResourceCreation("VSwitch")
                .build());
    
            var defaultNpLRa1 = new Network("defaultNpLRa1", NetworkArgs.builder()
                .cidrBlock("192.168.0.0/16")
                .build());
    
            var defaultwLA5v4 = new Switch("defaultwLA5v4", SwitchArgs.builder()
                .vpcId(defaultNpLRa1.id())
                .zoneId("cn-beijing-h")
                .cidrBlock("192.168.1.0/24")
                .build());
    
            var defaultHKdDs3 = new Instance("defaultHKdDs3", InstanceArgs.builder()
                .instanceSpec("2C8G")
                .segNodeNum("2")
                .segStorageType("cloud_essd")
                .instanceNetworkType("VPC")
                .dbInstanceCategory("Basic")
                .paymentType("PayAsYouGo")
                .sslEnabled("0")
                .engineVersion("6.0")
                .zoneId("cn-beijing-h")
                .vswitchId(defaultwLA5v4.id())
                .storageSize("50")
                .masterCu("4")
                .vpcId(defaultNpLRa1.id())
                .dbInstanceMode("StorageElastic")
                .engine("gpdb")
                .description(name)
                .build());
    
            var defaultDbInstanceIpArray = new DbInstanceIpArray("defaultDbInstanceIpArray", DbInstanceIpArrayArgs.builder()
                .dbInstanceIpArrayAttribute("taffyFish")
                .securityIpLists(            
                    "12.34.56.78",
                    "11.45.14.0",
                    "19.19.81.0")
                .dbInstanceIpArrayName("taffy")
                .dbInstanceId(defaultHKdDs3.id())
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: terraform-example
    resources:
      defaultNpLRa1:
        type: alicloud:vpc:Network
        properties:
          cidrBlock: 192.168.0.0/16
      defaultwLA5v4:
        type: alicloud:vpc:Switch
        properties:
          vpcId: ${defaultNpLRa1.id}
          zoneId: cn-beijing-h
          cidrBlock: 192.168.1.0/24
      defaultHKdDs3:
        type: alicloud:gpdb:Instance
        properties:
          instanceSpec: 2C8G
          segNodeNum: '2'
          segStorageType: cloud_essd
          instanceNetworkType: VPC
          dbInstanceCategory: Basic
          paymentType: PayAsYouGo
          sslEnabled: '0'
          engineVersion: '6.0'
          zoneId: cn-beijing-h
          vswitchId: ${defaultwLA5v4.id}
          storageSize: '50'
          masterCu: '4'
          vpcId: ${defaultNpLRa1.id}
          dbInstanceMode: StorageElastic
          engine: gpdb
          description: ${name}
      defaultDbInstanceIpArray:
        type: alicloud:gpdb:DbInstanceIpArray
        name: default
        properties:
          dbInstanceIpArrayAttribute: taffyFish
          securityIpLists:
            - 12.34.56.78
            - 11.45.14.0
            - 19.19.81.0
          dbInstanceIpArrayName: taffy
          dbInstanceId: ${defaultHKdDs3.id}
    variables:
      default:
        fn::invoke:
          Function: alicloud:getZones
          Arguments:
            availableResourceCreation: VSwitch
    

    Create DbInstanceIpArray Resource

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

    Constructor syntax

    new DbInstanceIpArray(name: string, args: DbInstanceIpArrayArgs, opts?: CustomResourceOptions);
    @overload
    def DbInstanceIpArray(resource_name: str,
                          args: DbInstanceIpArrayArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def DbInstanceIpArray(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          db_instance_id: Optional[str] = None,
                          db_instance_ip_array_name: Optional[str] = None,
                          security_ip_lists: Optional[Sequence[str]] = None,
                          db_instance_ip_array_attribute: Optional[str] = None,
                          modify_mode: Optional[str] = None)
    func NewDbInstanceIpArray(ctx *Context, name string, args DbInstanceIpArrayArgs, opts ...ResourceOption) (*DbInstanceIpArray, error)
    public DbInstanceIpArray(string name, DbInstanceIpArrayArgs args, CustomResourceOptions? opts = null)
    public DbInstanceIpArray(String name, DbInstanceIpArrayArgs args)
    public DbInstanceIpArray(String name, DbInstanceIpArrayArgs args, CustomResourceOptions options)
    
    type: alicloud:gpdb:DbInstanceIpArray
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args DbInstanceIpArrayArgs
    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 DbInstanceIpArrayArgs
    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 DbInstanceIpArrayArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DbInstanceIpArrayArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DbInstanceIpArrayArgs
    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 dbInstanceIpArrayResource = new AliCloud.Gpdb.DbInstanceIpArray("dbInstanceIpArrayResource", new()
    {
        DbInstanceId = "string",
        DbInstanceIpArrayName = "string",
        SecurityIpLists = new[]
        {
            "string",
        },
        DbInstanceIpArrayAttribute = "string",
        ModifyMode = "string",
    });
    
    example, err := gpdb.NewDbInstanceIpArray(ctx, "dbInstanceIpArrayResource", &gpdb.DbInstanceIpArrayArgs{
    	DbInstanceId:          pulumi.String("string"),
    	DbInstanceIpArrayName: pulumi.String("string"),
    	SecurityIpLists: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	DbInstanceIpArrayAttribute: pulumi.String("string"),
    	ModifyMode:                 pulumi.String("string"),
    })
    
    var dbInstanceIpArrayResource = new DbInstanceIpArray("dbInstanceIpArrayResource", DbInstanceIpArrayArgs.builder()
        .dbInstanceId("string")
        .dbInstanceIpArrayName("string")
        .securityIpLists("string")
        .dbInstanceIpArrayAttribute("string")
        .modifyMode("string")
        .build());
    
    db_instance_ip_array_resource = alicloud.gpdb.DbInstanceIpArray("dbInstanceIpArrayResource",
        db_instance_id="string",
        db_instance_ip_array_name="string",
        security_ip_lists=["string"],
        db_instance_ip_array_attribute="string",
        modify_mode="string")
    
    const dbInstanceIpArrayResource = new alicloud.gpdb.DbInstanceIpArray("dbInstanceIpArrayResource", {
        dbInstanceId: "string",
        dbInstanceIpArrayName: "string",
        securityIpLists: ["string"],
        dbInstanceIpArrayAttribute: "string",
        modifyMode: "string",
    });
    
    type: alicloud:gpdb:DbInstanceIpArray
    properties:
        dbInstanceId: string
        dbInstanceIpArrayAttribute: string
        dbInstanceIpArrayName: string
        modifyMode: string
        securityIpLists:
            - string
    

    DbInstanceIpArray 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 DbInstanceIpArray resource accepts the following input properties:

    DbInstanceId string

    The instance ID.

    NOTE: You can call the DescribeDBInstances operation to query details about all AnalyticDB for PostgreSQL instances within a region, including instance IDs.

    DbInstanceIpArrayName string

    The name of the IP address whitelist. If you do not specify this parameter, the default whitelist is queried.

    NOTE: Each instance supports up to 50 IP address whitelists.

    SecurityIpLists List<string>
    The IP address whitelist contains a maximum of 1000 IP addresses separated by commas in the following three formats:

    • 0.0.0.0/0
    • 10.23.12.24(IP)
    • 10.23.12.24/24(CIDR mode, Classless Inter-Domain Routing, '/24' indicates the length of the prefix in the address, and the range is '[1,32]')
    DbInstanceIpArrayAttribute string
    The default is empty. To distinguish between different attribute values, the console does not display groups with the 'hidden' attribute.
    ModifyMode string
    The method of modification. Valid values:

    • Cover: overwrites the whitelist.
    • Append: appends data to the whitelist.
    • Delete: deletes the whitelist.
    DbInstanceId string

    The instance ID.

    NOTE: You can call the DescribeDBInstances operation to query details about all AnalyticDB for PostgreSQL instances within a region, including instance IDs.

    DbInstanceIpArrayName string

    The name of the IP address whitelist. If you do not specify this parameter, the default whitelist is queried.

    NOTE: Each instance supports up to 50 IP address whitelists.

    SecurityIpLists []string
    The IP address whitelist contains a maximum of 1000 IP addresses separated by commas in the following three formats:

    • 0.0.0.0/0
    • 10.23.12.24(IP)
    • 10.23.12.24/24(CIDR mode, Classless Inter-Domain Routing, '/24' indicates the length of the prefix in the address, and the range is '[1,32]')
    DbInstanceIpArrayAttribute string
    The default is empty. To distinguish between different attribute values, the console does not display groups with the 'hidden' attribute.
    ModifyMode string
    The method of modification. Valid values:

    • Cover: overwrites the whitelist.
    • Append: appends data to the whitelist.
    • Delete: deletes the whitelist.
    dbInstanceId String

    The instance ID.

    NOTE: You can call the DescribeDBInstances operation to query details about all AnalyticDB for PostgreSQL instances within a region, including instance IDs.

    dbInstanceIpArrayName String

    The name of the IP address whitelist. If you do not specify this parameter, the default whitelist is queried.

    NOTE: Each instance supports up to 50 IP address whitelists.

    securityIpLists List<String>
    The IP address whitelist contains a maximum of 1000 IP addresses separated by commas in the following three formats:

    • 0.0.0.0/0
    • 10.23.12.24(IP)
    • 10.23.12.24/24(CIDR mode, Classless Inter-Domain Routing, '/24' indicates the length of the prefix in the address, and the range is '[1,32]')
    dbInstanceIpArrayAttribute String
    The default is empty. To distinguish between different attribute values, the console does not display groups with the 'hidden' attribute.
    modifyMode String
    The method of modification. Valid values:

    • Cover: overwrites the whitelist.
    • Append: appends data to the whitelist.
    • Delete: deletes the whitelist.
    dbInstanceId string

    The instance ID.

    NOTE: You can call the DescribeDBInstances operation to query details about all AnalyticDB for PostgreSQL instances within a region, including instance IDs.

    dbInstanceIpArrayName string

    The name of the IP address whitelist. If you do not specify this parameter, the default whitelist is queried.

    NOTE: Each instance supports up to 50 IP address whitelists.

    securityIpLists string[]
    The IP address whitelist contains a maximum of 1000 IP addresses separated by commas in the following three formats:

    • 0.0.0.0/0
    • 10.23.12.24(IP)
    • 10.23.12.24/24(CIDR mode, Classless Inter-Domain Routing, '/24' indicates the length of the prefix in the address, and the range is '[1,32]')
    dbInstanceIpArrayAttribute string
    The default is empty. To distinguish between different attribute values, the console does not display groups with the 'hidden' attribute.
    modifyMode string
    The method of modification. Valid values:

    • Cover: overwrites the whitelist.
    • Append: appends data to the whitelist.
    • Delete: deletes the whitelist.
    db_instance_id str

    The instance ID.

    NOTE: You can call the DescribeDBInstances operation to query details about all AnalyticDB for PostgreSQL instances within a region, including instance IDs.

    db_instance_ip_array_name str

    The name of the IP address whitelist. If you do not specify this parameter, the default whitelist is queried.

    NOTE: Each instance supports up to 50 IP address whitelists.

    security_ip_lists Sequence[str]
    The IP address whitelist contains a maximum of 1000 IP addresses separated by commas in the following three formats:

    • 0.0.0.0/0
    • 10.23.12.24(IP)
    • 10.23.12.24/24(CIDR mode, Classless Inter-Domain Routing, '/24' indicates the length of the prefix in the address, and the range is '[1,32]')
    db_instance_ip_array_attribute str
    The default is empty. To distinguish between different attribute values, the console does not display groups with the 'hidden' attribute.
    modify_mode str
    The method of modification. Valid values:

    • Cover: overwrites the whitelist.
    • Append: appends data to the whitelist.
    • Delete: deletes the whitelist.
    dbInstanceId String

    The instance ID.

    NOTE: You can call the DescribeDBInstances operation to query details about all AnalyticDB for PostgreSQL instances within a region, including instance IDs.

    dbInstanceIpArrayName String

    The name of the IP address whitelist. If you do not specify this parameter, the default whitelist is queried.

    NOTE: Each instance supports up to 50 IP address whitelists.

    securityIpLists List<String>
    The IP address whitelist contains a maximum of 1000 IP addresses separated by commas in the following three formats:

    • 0.0.0.0/0
    • 10.23.12.24(IP)
    • 10.23.12.24/24(CIDR mode, Classless Inter-Domain Routing, '/24' indicates the length of the prefix in the address, and the range is '[1,32]')
    dbInstanceIpArrayAttribute String
    The default is empty. To distinguish between different attribute values, the console does not display groups with the 'hidden' attribute.
    modifyMode String
    The method of modification. Valid values:

    • Cover: overwrites the whitelist.
    • Append: appends data to the whitelist.
    • Delete: deletes the whitelist.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the DbInstanceIpArray 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 str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing DbInstanceIpArray Resource

    Get an existing DbInstanceIpArray 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?: DbInstanceIpArrayState, opts?: CustomResourceOptions): DbInstanceIpArray
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            db_instance_id: Optional[str] = None,
            db_instance_ip_array_attribute: Optional[str] = None,
            db_instance_ip_array_name: Optional[str] = None,
            modify_mode: Optional[str] = None,
            security_ip_lists: Optional[Sequence[str]] = None) -> DbInstanceIpArray
    func GetDbInstanceIpArray(ctx *Context, name string, id IDInput, state *DbInstanceIpArrayState, opts ...ResourceOption) (*DbInstanceIpArray, error)
    public static DbInstanceIpArray Get(string name, Input<string> id, DbInstanceIpArrayState? state, CustomResourceOptions? opts = null)
    public static DbInstanceIpArray get(String name, Output<String> id, DbInstanceIpArrayState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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:
    DbInstanceId string

    The instance ID.

    NOTE: You can call the DescribeDBInstances operation to query details about all AnalyticDB for PostgreSQL instances within a region, including instance IDs.

    DbInstanceIpArrayAttribute string
    The default is empty. To distinguish between different attribute values, the console does not display groups with the 'hidden' attribute.
    DbInstanceIpArrayName string

    The name of the IP address whitelist. If you do not specify this parameter, the default whitelist is queried.

    NOTE: Each instance supports up to 50 IP address whitelists.

    ModifyMode string
    The method of modification. Valid values:

    • Cover: overwrites the whitelist.
    • Append: appends data to the whitelist.
    • Delete: deletes the whitelist.
    SecurityIpLists List<string>
    The IP address whitelist contains a maximum of 1000 IP addresses separated by commas in the following three formats:

    • 0.0.0.0/0
    • 10.23.12.24(IP)
    • 10.23.12.24/24(CIDR mode, Classless Inter-Domain Routing, '/24' indicates the length of the prefix in the address, and the range is '[1,32]')
    DbInstanceId string

    The instance ID.

    NOTE: You can call the DescribeDBInstances operation to query details about all AnalyticDB for PostgreSQL instances within a region, including instance IDs.

    DbInstanceIpArrayAttribute string
    The default is empty. To distinguish between different attribute values, the console does not display groups with the 'hidden' attribute.
    DbInstanceIpArrayName string

    The name of the IP address whitelist. If you do not specify this parameter, the default whitelist is queried.

    NOTE: Each instance supports up to 50 IP address whitelists.

    ModifyMode string
    The method of modification. Valid values:

    • Cover: overwrites the whitelist.
    • Append: appends data to the whitelist.
    • Delete: deletes the whitelist.
    SecurityIpLists []string
    The IP address whitelist contains a maximum of 1000 IP addresses separated by commas in the following three formats:

    • 0.0.0.0/0
    • 10.23.12.24(IP)
    • 10.23.12.24/24(CIDR mode, Classless Inter-Domain Routing, '/24' indicates the length of the prefix in the address, and the range is '[1,32]')
    dbInstanceId String

    The instance ID.

    NOTE: You can call the DescribeDBInstances operation to query details about all AnalyticDB for PostgreSQL instances within a region, including instance IDs.

    dbInstanceIpArrayAttribute String
    The default is empty. To distinguish between different attribute values, the console does not display groups with the 'hidden' attribute.
    dbInstanceIpArrayName String

    The name of the IP address whitelist. If you do not specify this parameter, the default whitelist is queried.

    NOTE: Each instance supports up to 50 IP address whitelists.

    modifyMode String
    The method of modification. Valid values:

    • Cover: overwrites the whitelist.
    • Append: appends data to the whitelist.
    • Delete: deletes the whitelist.
    securityIpLists List<String>
    The IP address whitelist contains a maximum of 1000 IP addresses separated by commas in the following three formats:

    • 0.0.0.0/0
    • 10.23.12.24(IP)
    • 10.23.12.24/24(CIDR mode, Classless Inter-Domain Routing, '/24' indicates the length of the prefix in the address, and the range is '[1,32]')
    dbInstanceId string

    The instance ID.

    NOTE: You can call the DescribeDBInstances operation to query details about all AnalyticDB for PostgreSQL instances within a region, including instance IDs.

    dbInstanceIpArrayAttribute string
    The default is empty. To distinguish between different attribute values, the console does not display groups with the 'hidden' attribute.
    dbInstanceIpArrayName string

    The name of the IP address whitelist. If you do not specify this parameter, the default whitelist is queried.

    NOTE: Each instance supports up to 50 IP address whitelists.

    modifyMode string
    The method of modification. Valid values:

    • Cover: overwrites the whitelist.
    • Append: appends data to the whitelist.
    • Delete: deletes the whitelist.
    securityIpLists string[]
    The IP address whitelist contains a maximum of 1000 IP addresses separated by commas in the following three formats:

    • 0.0.0.0/0
    • 10.23.12.24(IP)
    • 10.23.12.24/24(CIDR mode, Classless Inter-Domain Routing, '/24' indicates the length of the prefix in the address, and the range is '[1,32]')
    db_instance_id str

    The instance ID.

    NOTE: You can call the DescribeDBInstances operation to query details about all AnalyticDB for PostgreSQL instances within a region, including instance IDs.

    db_instance_ip_array_attribute str
    The default is empty. To distinguish between different attribute values, the console does not display groups with the 'hidden' attribute.
    db_instance_ip_array_name str

    The name of the IP address whitelist. If you do not specify this parameter, the default whitelist is queried.

    NOTE: Each instance supports up to 50 IP address whitelists.

    modify_mode str
    The method of modification. Valid values:

    • Cover: overwrites the whitelist.
    • Append: appends data to the whitelist.
    • Delete: deletes the whitelist.
    security_ip_lists Sequence[str]
    The IP address whitelist contains a maximum of 1000 IP addresses separated by commas in the following three formats:

    • 0.0.0.0/0
    • 10.23.12.24(IP)
    • 10.23.12.24/24(CIDR mode, Classless Inter-Domain Routing, '/24' indicates the length of the prefix in the address, and the range is '[1,32]')
    dbInstanceId String

    The instance ID.

    NOTE: You can call the DescribeDBInstances operation to query details about all AnalyticDB for PostgreSQL instances within a region, including instance IDs.

    dbInstanceIpArrayAttribute String
    The default is empty. To distinguish between different attribute values, the console does not display groups with the 'hidden' attribute.
    dbInstanceIpArrayName String

    The name of the IP address whitelist. If you do not specify this parameter, the default whitelist is queried.

    NOTE: Each instance supports up to 50 IP address whitelists.

    modifyMode String
    The method of modification. Valid values:

    • Cover: overwrites the whitelist.
    • Append: appends data to the whitelist.
    • Delete: deletes the whitelist.
    securityIpLists List<String>
    The IP address whitelist contains a maximum of 1000 IP addresses separated by commas in the following three formats:

    • 0.0.0.0/0
    • 10.23.12.24(IP)
    • 10.23.12.24/24(CIDR mode, Classless Inter-Domain Routing, '/24' indicates the length of the prefix in the address, and the range is '[1,32]')

    Import

    GPDB DB Instance IP Array can be imported using the id, e.g.

    $ pulumi import alicloud:gpdb/dbInstanceIpArray:DbInstanceIpArray example <db_instance_id>:<db_instance_ip_array_name>
    

    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
    Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi