1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. LbIpgroupV3
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

opentelekomcloud.LbIpgroupV3

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

    Up-to-date reference of API arguments for DLB ip group you can get at documentation portal

    Manages a Dedicated Load Balancer IP address group resource within OpenTelekomCloud.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const group1 = new opentelekomcloud.LbIpgroupV3("group1", {
        description: "group description",
        ipLists: [
            {
                description: "one",
                ip: "192.168.50.10",
            },
            {
                description: "two",
                ip: "192.168.100.10",
            },
            {
                description: "three",
                ip: "192.168.150.10",
            },
        ],
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    group1 = opentelekomcloud.LbIpgroupV3("group1",
        description="group description",
        ip_lists=[
            {
                "description": "one",
                "ip": "192.168.50.10",
            },
            {
                "description": "two",
                "ip": "192.168.100.10",
            },
            {
                "description": "three",
                "ip": "192.168.150.10",
            },
        ])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := opentelekomcloud.NewLbIpgroupV3(ctx, "group1", &opentelekomcloud.LbIpgroupV3Args{
    			Description: pulumi.String("group description"),
    			IpLists: opentelekomcloud.LbIpgroupV3IpListArray{
    				&opentelekomcloud.LbIpgroupV3IpListArgs{
    					Description: pulumi.String("one"),
    					Ip:          pulumi.String("192.168.50.10"),
    				},
    				&opentelekomcloud.LbIpgroupV3IpListArgs{
    					Description: pulumi.String("two"),
    					Ip:          pulumi.String("192.168.100.10"),
    				},
    				&opentelekomcloud.LbIpgroupV3IpListArgs{
    					Description: pulumi.String("three"),
    					Ip:          pulumi.String("192.168.150.10"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var group1 = new Opentelekomcloud.LbIpgroupV3("group1", new()
        {
            Description = "group description",
            IpLists = new[]
            {
                new Opentelekomcloud.Inputs.LbIpgroupV3IpListArgs
                {
                    Description = "one",
                    Ip = "192.168.50.10",
                },
                new Opentelekomcloud.Inputs.LbIpgroupV3IpListArgs
                {
                    Description = "two",
                    Ip = "192.168.100.10",
                },
                new Opentelekomcloud.Inputs.LbIpgroupV3IpListArgs
                {
                    Description = "three",
                    Ip = "192.168.150.10",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.LbIpgroupV3;
    import com.pulumi.opentelekomcloud.LbIpgroupV3Args;
    import com.pulumi.opentelekomcloud.inputs.LbIpgroupV3IpListArgs;
    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) {
            var group1 = new LbIpgroupV3("group1", LbIpgroupV3Args.builder()
                .description("group description")
                .ipLists(            
                    LbIpgroupV3IpListArgs.builder()
                        .description("one")
                        .ip("192.168.50.10")
                        .build(),
                    LbIpgroupV3IpListArgs.builder()
                        .description("two")
                        .ip("192.168.100.10")
                        .build(),
                    LbIpgroupV3IpListArgs.builder()
                        .description("three")
                        .ip("192.168.150.10")
                        .build())
                .build());
    
        }
    }
    
    resources:
      group1:
        type: opentelekomcloud:LbIpgroupV3
        properties:
          description: group description
          ipLists:
            - description: one
              ip: 192.168.50.10
            - description: two
              ip: 192.168.100.10
            - description: three
              ip: 192.168.150.10
    

    Example empty ip list

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const group1 = new opentelekomcloud.LbIpgroupV3("group1", {description: "group description"});
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    group1 = opentelekomcloud.LbIpgroupV3("group1", description="group description")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := opentelekomcloud.NewLbIpgroupV3(ctx, "group1", &opentelekomcloud.LbIpgroupV3Args{
    			Description: pulumi.String("group description"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var group1 = new Opentelekomcloud.LbIpgroupV3("group1", new()
        {
            Description = "group description",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.LbIpgroupV3;
    import com.pulumi.opentelekomcloud.LbIpgroupV3Args;
    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) {
            var group1 = new LbIpgroupV3("group1", LbIpgroupV3Args.builder()
                .description("group description")
                .build());
    
        }
    }
    
    resources:
      group1:
        type: opentelekomcloud:LbIpgroupV3
        properties:
          description: group description
    

    Create LbIpgroupV3 Resource

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

    Constructor syntax

    new LbIpgroupV3(name: string, args?: LbIpgroupV3Args, opts?: CustomResourceOptions);
    @overload
    def LbIpgroupV3(resource_name: str,
                    args: Optional[LbIpgroupV3Args] = None,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def LbIpgroupV3(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    description: Optional[str] = None,
                    ip_lists: Optional[Sequence[LbIpgroupV3IpListArgs]] = None,
                    lb_ipgroup_v3_id: Optional[str] = None,
                    name: Optional[str] = None,
                    project_id: Optional[str] = None)
    func NewLbIpgroupV3(ctx *Context, name string, args *LbIpgroupV3Args, opts ...ResourceOption) (*LbIpgroupV3, error)
    public LbIpgroupV3(string name, LbIpgroupV3Args? args = null, CustomResourceOptions? opts = null)
    public LbIpgroupV3(String name, LbIpgroupV3Args args)
    public LbIpgroupV3(String name, LbIpgroupV3Args args, CustomResourceOptions options)
    
    type: opentelekomcloud:LbIpgroupV3
    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 LbIpgroupV3Args
    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 LbIpgroupV3Args
    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 LbIpgroupV3Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LbIpgroupV3Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LbIpgroupV3Args
    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 lbIpgroupV3Resource = new Opentelekomcloud.LbIpgroupV3("lbIpgroupV3Resource", new()
    {
        Description = "string",
        IpLists = new[]
        {
            new Opentelekomcloud.Inputs.LbIpgroupV3IpListArgs
            {
                Ip = "string",
                Description = "string",
            },
        },
        LbIpgroupV3Id = "string",
        Name = "string",
        ProjectId = "string",
    });
    
    example, err := opentelekomcloud.NewLbIpgroupV3(ctx, "lbIpgroupV3Resource", &opentelekomcloud.LbIpgroupV3Args{
    	Description: pulumi.String("string"),
    	IpLists: opentelekomcloud.LbIpgroupV3IpListArray{
    		&opentelekomcloud.LbIpgroupV3IpListArgs{
    			Ip:          pulumi.String("string"),
    			Description: pulumi.String("string"),
    		},
    	},
    	LbIpgroupV3Id: pulumi.String("string"),
    	Name:          pulumi.String("string"),
    	ProjectId:     pulumi.String("string"),
    })
    
    var lbIpgroupV3Resource = new LbIpgroupV3("lbIpgroupV3Resource", LbIpgroupV3Args.builder()
        .description("string")
        .ipLists(LbIpgroupV3IpListArgs.builder()
            .ip("string")
            .description("string")
            .build())
        .lbIpgroupV3Id("string")
        .name("string")
        .projectId("string")
        .build());
    
    lb_ipgroup_v3_resource = opentelekomcloud.LbIpgroupV3("lbIpgroupV3Resource",
        description="string",
        ip_lists=[{
            "ip": "string",
            "description": "string",
        }],
        lb_ipgroup_v3_id="string",
        name="string",
        project_id="string")
    
    const lbIpgroupV3Resource = new opentelekomcloud.LbIpgroupV3("lbIpgroupV3Resource", {
        description: "string",
        ipLists: [{
            ip: "string",
            description: "string",
        }],
        lbIpgroupV3Id: "string",
        name: "string",
        projectId: "string",
    });
    
    type: opentelekomcloud:LbIpgroupV3
    properties:
        description: string
        ipLists:
            - description: string
              ip: string
        lbIpgroupV3Id: string
        name: string
        projectId: string
    

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

    Description string
    Provides supplementary information about the IP address group.
    IpLists List<LbIpgroupV3IpList>
    Specifies the IP addresses or CIDR blocks in the IP address group. Any IP address can be used if this block isn't specified.
    LbIpgroupV3Id string
    Name string
    Specifies the IP address group name.
    ProjectId string
    Specifies the project ID of the IP address group.
    Description string
    Provides supplementary information about the IP address group.
    IpLists []LbIpgroupV3IpListArgs
    Specifies the IP addresses or CIDR blocks in the IP address group. Any IP address can be used if this block isn't specified.
    LbIpgroupV3Id string
    Name string
    Specifies the IP address group name.
    ProjectId string
    Specifies the project ID of the IP address group.
    description String
    Provides supplementary information about the IP address group.
    ipLists List<LbIpgroupV3IpList>
    Specifies the IP addresses or CIDR blocks in the IP address group. Any IP address can be used if this block isn't specified.
    lbIpgroupV3Id String
    name String
    Specifies the IP address group name.
    projectId String
    Specifies the project ID of the IP address group.
    description string
    Provides supplementary information about the IP address group.
    ipLists LbIpgroupV3IpList[]
    Specifies the IP addresses or CIDR blocks in the IP address group. Any IP address can be used if this block isn't specified.
    lbIpgroupV3Id string
    name string
    Specifies the IP address group name.
    projectId string
    Specifies the project ID of the IP address group.
    description str
    Provides supplementary information about the IP address group.
    ip_lists Sequence[LbIpgroupV3IpListArgs]
    Specifies the IP addresses or CIDR blocks in the IP address group. Any IP address can be used if this block isn't specified.
    lb_ipgroup_v3_id str
    name str
    Specifies the IP address group name.
    project_id str
    Specifies the project ID of the IP address group.
    description String
    Provides supplementary information about the IP address group.
    ipLists List<Property Map>
    Specifies the IP addresses or CIDR blocks in the IP address group. Any IP address can be used if this block isn't specified.
    lbIpgroupV3Id String
    name String
    Specifies the IP address group name.
    projectId String
    Specifies the project ID of the IP address group.

    Outputs

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

    CreatedAt string
    Indicates the creation time.
    Id string
    The provider-assigned unique ID for this managed resource.
    Listeners List<string>
    Lists the IDs of listeners with which the IP address group is associated.
    UpdatedAt string
    Indicates the update time.
    CreatedAt string
    Indicates the creation time.
    Id string
    The provider-assigned unique ID for this managed resource.
    Listeners []string
    Lists the IDs of listeners with which the IP address group is associated.
    UpdatedAt string
    Indicates the update time.
    createdAt String
    Indicates the creation time.
    id String
    The provider-assigned unique ID for this managed resource.
    listeners List<String>
    Lists the IDs of listeners with which the IP address group is associated.
    updatedAt String
    Indicates the update time.
    createdAt string
    Indicates the creation time.
    id string
    The provider-assigned unique ID for this managed resource.
    listeners string[]
    Lists the IDs of listeners with which the IP address group is associated.
    updatedAt string
    Indicates the update time.
    created_at str
    Indicates the creation time.
    id str
    The provider-assigned unique ID for this managed resource.
    listeners Sequence[str]
    Lists the IDs of listeners with which the IP address group is associated.
    updated_at str
    Indicates the update time.
    createdAt String
    Indicates the creation time.
    id String
    The provider-assigned unique ID for this managed resource.
    listeners List<String>
    Lists the IDs of listeners with which the IP address group is associated.
    updatedAt String
    Indicates the update time.

    Look up Existing LbIpgroupV3 Resource

    Get an existing LbIpgroupV3 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?: LbIpgroupV3State, opts?: CustomResourceOptions): LbIpgroupV3
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            created_at: Optional[str] = None,
            description: Optional[str] = None,
            ip_lists: Optional[Sequence[LbIpgroupV3IpListArgs]] = None,
            lb_ipgroup_v3_id: Optional[str] = None,
            listeners: Optional[Sequence[str]] = None,
            name: Optional[str] = None,
            project_id: Optional[str] = None,
            updated_at: Optional[str] = None) -> LbIpgroupV3
    func GetLbIpgroupV3(ctx *Context, name string, id IDInput, state *LbIpgroupV3State, opts ...ResourceOption) (*LbIpgroupV3, error)
    public static LbIpgroupV3 Get(string name, Input<string> id, LbIpgroupV3State? state, CustomResourceOptions? opts = null)
    public static LbIpgroupV3 get(String name, Output<String> id, LbIpgroupV3State state, CustomResourceOptions options)
    resources:  _:    type: opentelekomcloud:LbIpgroupV3    get:      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:
    CreatedAt string
    Indicates the creation time.
    Description string
    Provides supplementary information about the IP address group.
    IpLists List<LbIpgroupV3IpList>
    Specifies the IP addresses or CIDR blocks in the IP address group. Any IP address can be used if this block isn't specified.
    LbIpgroupV3Id string
    Listeners List<string>
    Lists the IDs of listeners with which the IP address group is associated.
    Name string
    Specifies the IP address group name.
    ProjectId string
    Specifies the project ID of the IP address group.
    UpdatedAt string
    Indicates the update time.
    CreatedAt string
    Indicates the creation time.
    Description string
    Provides supplementary information about the IP address group.
    IpLists []LbIpgroupV3IpListArgs
    Specifies the IP addresses or CIDR blocks in the IP address group. Any IP address can be used if this block isn't specified.
    LbIpgroupV3Id string
    Listeners []string
    Lists the IDs of listeners with which the IP address group is associated.
    Name string
    Specifies the IP address group name.
    ProjectId string
    Specifies the project ID of the IP address group.
    UpdatedAt string
    Indicates the update time.
    createdAt String
    Indicates the creation time.
    description String
    Provides supplementary information about the IP address group.
    ipLists List<LbIpgroupV3IpList>
    Specifies the IP addresses or CIDR blocks in the IP address group. Any IP address can be used if this block isn't specified.
    lbIpgroupV3Id String
    listeners List<String>
    Lists the IDs of listeners with which the IP address group is associated.
    name String
    Specifies the IP address group name.
    projectId String
    Specifies the project ID of the IP address group.
    updatedAt String
    Indicates the update time.
    createdAt string
    Indicates the creation time.
    description string
    Provides supplementary information about the IP address group.
    ipLists LbIpgroupV3IpList[]
    Specifies the IP addresses or CIDR blocks in the IP address group. Any IP address can be used if this block isn't specified.
    lbIpgroupV3Id string
    listeners string[]
    Lists the IDs of listeners with which the IP address group is associated.
    name string
    Specifies the IP address group name.
    projectId string
    Specifies the project ID of the IP address group.
    updatedAt string
    Indicates the update time.
    created_at str
    Indicates the creation time.
    description str
    Provides supplementary information about the IP address group.
    ip_lists Sequence[LbIpgroupV3IpListArgs]
    Specifies the IP addresses or CIDR blocks in the IP address group. Any IP address can be used if this block isn't specified.
    lb_ipgroup_v3_id str
    listeners Sequence[str]
    Lists the IDs of listeners with which the IP address group is associated.
    name str
    Specifies the IP address group name.
    project_id str
    Specifies the project ID of the IP address group.
    updated_at str
    Indicates the update time.
    createdAt String
    Indicates the creation time.
    description String
    Provides supplementary information about the IP address group.
    ipLists List<Property Map>
    Specifies the IP addresses or CIDR blocks in the IP address group. Any IP address can be used if this block isn't specified.
    lbIpgroupV3Id String
    listeners List<String>
    Lists the IDs of listeners with which the IP address group is associated.
    name String
    Specifies the IP address group name.
    projectId String
    Specifies the project ID of the IP address group.
    updatedAt String
    Indicates the update time.

    Supporting Types

    LbIpgroupV3IpList, LbIpgroupV3IpListArgs

    Ip string
    Specifies the IP addresses in the IP address group. IPv6 is unsupported. The value cannot be an IPv6 address.
    Description string
    Provides remarks about the IP address group.
    Ip string
    Specifies the IP addresses in the IP address group. IPv6 is unsupported. The value cannot be an IPv6 address.
    Description string
    Provides remarks about the IP address group.
    ip String
    Specifies the IP addresses in the IP address group. IPv6 is unsupported. The value cannot be an IPv6 address.
    description String
    Provides remarks about the IP address group.
    ip string
    Specifies the IP addresses in the IP address group. IPv6 is unsupported. The value cannot be an IPv6 address.
    description string
    Provides remarks about the IP address group.
    ip str
    Specifies the IP addresses in the IP address group. IPv6 is unsupported. The value cannot be an IPv6 address.
    description str
    Provides remarks about the IP address group.
    ip String
    Specifies the IP addresses in the IP address group. IPv6 is unsupported. The value cannot be an IPv6 address.
    description String
    Provides remarks about the IP address group.

    Import

    Ip groups can be imported using the id, e.g.

    $ pulumi import opentelekomcloud:index/lbIpgroupV3:LbIpgroupV3 group_1 7117d38e-4c8f-4624-a505-bd96b97d024c
    

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

    Package Details

    Repository
    opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
    License
    Notes
    This Pulumi package is based on the opentelekomcloud Terraform Provider.
    opentelekomcloud logo
    opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud