1. Packages
  2. OpenStack
  3. API Docs
  4. loadbalancer
  5. MemberV1
OpenStack v4.0.0 published on Tuesday, May 21, 2024 by Pulumi

openstack.loadbalancer.MemberV1

Explore with Pulumi AI

openstack logo
OpenStack v4.0.0 published on Tuesday, May 21, 2024 by Pulumi

    Manages a V1 load balancer member resource within OpenStack.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as openstack from "@pulumi/openstack";
    
    const member1 = new openstack.loadbalancer.MemberV1("member_1", {
        poolId: "d9415786-5f1a-428b-b35f-2f1523e146d2",
        address: "192.168.0.10",
        port: 80,
    });
    
    import pulumi
    import pulumi_openstack as openstack
    
    member1 = openstack.loadbalancer.MemberV1("member_1",
        pool_id="d9415786-5f1a-428b-b35f-2f1523e146d2",
        address="192.168.0.10",
        port=80)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-openstack/sdk/v4/go/openstack/loadbalancer"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := loadbalancer.NewMemberV1(ctx, "member_1", &loadbalancer.MemberV1Args{
    			PoolId:  pulumi.String("d9415786-5f1a-428b-b35f-2f1523e146d2"),
    			Address: pulumi.String("192.168.0.10"),
    			Port:    pulumi.Int(80),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using OpenStack = Pulumi.OpenStack;
    
    return await Deployment.RunAsync(() => 
    {
        var member1 = new OpenStack.LoadBalancer.MemberV1("member_1", new()
        {
            PoolId = "d9415786-5f1a-428b-b35f-2f1523e146d2",
            Address = "192.168.0.10",
            Port = 80,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.openstack.loadbalancer.MemberV1;
    import com.pulumi.openstack.loadbalancer.MemberV1Args;
    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 member1 = new MemberV1("member1", MemberV1Args.builder()        
                .poolId("d9415786-5f1a-428b-b35f-2f1523e146d2")
                .address("192.168.0.10")
                .port(80)
                .build());
    
        }
    }
    
    resources:
      member1:
        type: openstack:loadbalancer:MemberV1
        name: member_1
        properties:
          poolId: d9415786-5f1a-428b-b35f-2f1523e146d2
          address: 192.168.0.10
          port: 80
    

    Create MemberV1 Resource

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

    Constructor syntax

    new MemberV1(name: string, args: MemberV1Args, opts?: CustomResourceOptions);
    @overload
    def MemberV1(resource_name: str,
                 args: MemberV1Args,
                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def MemberV1(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 address: Optional[str] = None,
                 pool_id: Optional[str] = None,
                 port: Optional[int] = None,
                 admin_state_up: Optional[bool] = None,
                 region: Optional[str] = None,
                 tenant_id: Optional[str] = None,
                 weight: Optional[int] = None)
    func NewMemberV1(ctx *Context, name string, args MemberV1Args, opts ...ResourceOption) (*MemberV1, error)
    public MemberV1(string name, MemberV1Args args, CustomResourceOptions? opts = null)
    public MemberV1(String name, MemberV1Args args)
    public MemberV1(String name, MemberV1Args args, CustomResourceOptions options)
    
    type: openstack:loadbalancer:MemberV1
    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 MemberV1Args
    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 MemberV1Args
    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 MemberV1Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args MemberV1Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args MemberV1Args
    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 memberV1Resource = new OpenStack.LoadBalancer.MemberV1("memberV1Resource", new()
    {
        Address = "string",
        PoolId = "string",
        Port = 0,
        AdminStateUp = false,
        Region = "string",
        TenantId = "string",
        Weight = 0,
    });
    
    example, err := loadbalancer.NewMemberV1(ctx, "memberV1Resource", &loadbalancer.MemberV1Args{
    	Address:      pulumi.String("string"),
    	PoolId:       pulumi.String("string"),
    	Port:         pulumi.Int(0),
    	AdminStateUp: pulumi.Bool(false),
    	Region:       pulumi.String("string"),
    	TenantId:     pulumi.String("string"),
    	Weight:       pulumi.Int(0),
    })
    
    var memberV1Resource = new MemberV1("memberV1Resource", MemberV1Args.builder()
        .address("string")
        .poolId("string")
        .port(0)
        .adminStateUp(false)
        .region("string")
        .tenantId("string")
        .weight(0)
        .build());
    
    member_v1_resource = openstack.loadbalancer.MemberV1("memberV1Resource",
        address="string",
        pool_id="string",
        port=0,
        admin_state_up=False,
        region="string",
        tenant_id="string",
        weight=0)
    
    const memberV1Resource = new openstack.loadbalancer.MemberV1("memberV1Resource", {
        address: "string",
        poolId: "string",
        port: 0,
        adminStateUp: false,
        region: "string",
        tenantId: "string",
        weight: 0,
    });
    
    type: openstack:loadbalancer:MemberV1
    properties:
        address: string
        adminStateUp: false
        poolId: string
        port: 0
        region: string
        tenantId: string
        weight: 0
    

    MemberV1 Resource Properties

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

    Inputs

    The MemberV1 resource accepts the following input properties:

    Address string
    The IP address of the member. Changing this creates a new member.
    PoolId string
    The ID of the LB pool. Changing this creates a new member.
    Port int
    An integer representing the port on which the member is hosted. Changing this creates a new member.
    AdminStateUp bool
    The administrative state of the member. Acceptable values are 'true' and 'false'. Changing this value updates the state of the existing member.
    Region string
    The region in which to obtain the V2 Networking client. A Networking client is needed to create an LB member. If omitted, the region argument of the provider is used. Changing this creates a new LB member.
    TenantId string
    The owner of the member. Required if admin wants to create a member for another tenant. Changing this creates a new member.
    Weight int
    Address string
    The IP address of the member. Changing this creates a new member.
    PoolId string
    The ID of the LB pool. Changing this creates a new member.
    Port int
    An integer representing the port on which the member is hosted. Changing this creates a new member.
    AdminStateUp bool
    The administrative state of the member. Acceptable values are 'true' and 'false'. Changing this value updates the state of the existing member.
    Region string
    The region in which to obtain the V2 Networking client. A Networking client is needed to create an LB member. If omitted, the region argument of the provider is used. Changing this creates a new LB member.
    TenantId string
    The owner of the member. Required if admin wants to create a member for another tenant. Changing this creates a new member.
    Weight int
    address String
    The IP address of the member. Changing this creates a new member.
    poolId String
    The ID of the LB pool. Changing this creates a new member.
    port Integer
    An integer representing the port on which the member is hosted. Changing this creates a new member.
    adminStateUp Boolean
    The administrative state of the member. Acceptable values are 'true' and 'false'. Changing this value updates the state of the existing member.
    region String
    The region in which to obtain the V2 Networking client. A Networking client is needed to create an LB member. If omitted, the region argument of the provider is used. Changing this creates a new LB member.
    tenantId String
    The owner of the member. Required if admin wants to create a member for another tenant. Changing this creates a new member.
    weight Integer
    address string
    The IP address of the member. Changing this creates a new member.
    poolId string
    The ID of the LB pool. Changing this creates a new member.
    port number
    An integer representing the port on which the member is hosted. Changing this creates a new member.
    adminStateUp boolean
    The administrative state of the member. Acceptable values are 'true' and 'false'. Changing this value updates the state of the existing member.
    region string
    The region in which to obtain the V2 Networking client. A Networking client is needed to create an LB member. If omitted, the region argument of the provider is used. Changing this creates a new LB member.
    tenantId string
    The owner of the member. Required if admin wants to create a member for another tenant. Changing this creates a new member.
    weight number
    address str
    The IP address of the member. Changing this creates a new member.
    pool_id str
    The ID of the LB pool. Changing this creates a new member.
    port int
    An integer representing the port on which the member is hosted. Changing this creates a new member.
    admin_state_up bool
    The administrative state of the member. Acceptable values are 'true' and 'false'. Changing this value updates the state of the existing member.
    region str
    The region in which to obtain the V2 Networking client. A Networking client is needed to create an LB member. If omitted, the region argument of the provider is used. Changing this creates a new LB member.
    tenant_id str
    The owner of the member. Required if admin wants to create a member for another tenant. Changing this creates a new member.
    weight int
    address String
    The IP address of the member. Changing this creates a new member.
    poolId String
    The ID of the LB pool. Changing this creates a new member.
    port Number
    An integer representing the port on which the member is hosted. Changing this creates a new member.
    adminStateUp Boolean
    The administrative state of the member. Acceptable values are 'true' and 'false'. Changing this value updates the state of the existing member.
    region String
    The region in which to obtain the V2 Networking client. A Networking client is needed to create an LB member. If omitted, the region argument of the provider is used. Changing this creates a new LB member.
    tenantId String
    The owner of the member. Required if admin wants to create a member for another tenant. Changing this creates a new member.
    weight Number

    Outputs

    All input properties are implicitly available as output properties. Additionally, the MemberV1 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 MemberV1 Resource

    Get an existing MemberV1 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?: MemberV1State, opts?: CustomResourceOptions): MemberV1
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            address: Optional[str] = None,
            admin_state_up: Optional[bool] = None,
            pool_id: Optional[str] = None,
            port: Optional[int] = None,
            region: Optional[str] = None,
            tenant_id: Optional[str] = None,
            weight: Optional[int] = None) -> MemberV1
    func GetMemberV1(ctx *Context, name string, id IDInput, state *MemberV1State, opts ...ResourceOption) (*MemberV1, error)
    public static MemberV1 Get(string name, Input<string> id, MemberV1State? state, CustomResourceOptions? opts = null)
    public static MemberV1 get(String name, Output<String> id, MemberV1State 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:
    Address string
    The IP address of the member. Changing this creates a new member.
    AdminStateUp bool
    The administrative state of the member. Acceptable values are 'true' and 'false'. Changing this value updates the state of the existing member.
    PoolId string
    The ID of the LB pool. Changing this creates a new member.
    Port int
    An integer representing the port on which the member is hosted. Changing this creates a new member.
    Region string
    The region in which to obtain the V2 Networking client. A Networking client is needed to create an LB member. If omitted, the region argument of the provider is used. Changing this creates a new LB member.
    TenantId string
    The owner of the member. Required if admin wants to create a member for another tenant. Changing this creates a new member.
    Weight int
    Address string
    The IP address of the member. Changing this creates a new member.
    AdminStateUp bool
    The administrative state of the member. Acceptable values are 'true' and 'false'. Changing this value updates the state of the existing member.
    PoolId string
    The ID of the LB pool. Changing this creates a new member.
    Port int
    An integer representing the port on which the member is hosted. Changing this creates a new member.
    Region string
    The region in which to obtain the V2 Networking client. A Networking client is needed to create an LB member. If omitted, the region argument of the provider is used. Changing this creates a new LB member.
    TenantId string
    The owner of the member. Required if admin wants to create a member for another tenant. Changing this creates a new member.
    Weight int
    address String
    The IP address of the member. Changing this creates a new member.
    adminStateUp Boolean
    The administrative state of the member. Acceptable values are 'true' and 'false'. Changing this value updates the state of the existing member.
    poolId String
    The ID of the LB pool. Changing this creates a new member.
    port Integer
    An integer representing the port on which the member is hosted. Changing this creates a new member.
    region String
    The region in which to obtain the V2 Networking client. A Networking client is needed to create an LB member. If omitted, the region argument of the provider is used. Changing this creates a new LB member.
    tenantId String
    The owner of the member. Required if admin wants to create a member for another tenant. Changing this creates a new member.
    weight Integer
    address string
    The IP address of the member. Changing this creates a new member.
    adminStateUp boolean
    The administrative state of the member. Acceptable values are 'true' and 'false'. Changing this value updates the state of the existing member.
    poolId string
    The ID of the LB pool. Changing this creates a new member.
    port number
    An integer representing the port on which the member is hosted. Changing this creates a new member.
    region string
    The region in which to obtain the V2 Networking client. A Networking client is needed to create an LB member. If omitted, the region argument of the provider is used. Changing this creates a new LB member.
    tenantId string
    The owner of the member. Required if admin wants to create a member for another tenant. Changing this creates a new member.
    weight number
    address str
    The IP address of the member. Changing this creates a new member.
    admin_state_up bool
    The administrative state of the member. Acceptable values are 'true' and 'false'. Changing this value updates the state of the existing member.
    pool_id str
    The ID of the LB pool. Changing this creates a new member.
    port int
    An integer representing the port on which the member is hosted. Changing this creates a new member.
    region str
    The region in which to obtain the V2 Networking client. A Networking client is needed to create an LB member. If omitted, the region argument of the provider is used. Changing this creates a new LB member.
    tenant_id str
    The owner of the member. Required if admin wants to create a member for another tenant. Changing this creates a new member.
    weight int
    address String
    The IP address of the member. Changing this creates a new member.
    adminStateUp Boolean
    The administrative state of the member. Acceptable values are 'true' and 'false'. Changing this value updates the state of the existing member.
    poolId String
    The ID of the LB pool. Changing this creates a new member.
    port Number
    An integer representing the port on which the member is hosted. Changing this creates a new member.
    region String
    The region in which to obtain the V2 Networking client. A Networking client is needed to create an LB member. If omitted, the region argument of the provider is used. Changing this creates a new LB member.
    tenantId String
    The owner of the member. Required if admin wants to create a member for another tenant. Changing this creates a new member.
    weight Number

    Import

    Load Balancer Members can be imported using the id, e.g.

    $ pulumi import openstack:loadbalancer/memberV1:MemberV1 member_1 a7498676-4fe4-4243-a864-2eaaf18c73df
    

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

    Package Details

    Repository
    OpenStack pulumi/pulumi-openstack
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the openstack Terraform Provider.
    openstack logo
    OpenStack v4.0.0 published on Tuesday, May 21, 2024 by Pulumi