Members
Manages a V2 members resource within OpenStack (batch members update).
Note: This resource works only within Octavia API. For legacy Neutron LBaaS v2 extension please use openstack.loadbalancer.Member resource.
Example Usage
using Pulumi;
using OpenStack = Pulumi.OpenStack;
class MyStack : Stack
{
public MyStack()
{
var members1 = new OpenStack.LoadBalancer.Members("members1", new OpenStack.LoadBalancer.MembersArgs
{
Members =
{
new OpenStack.LoadBalancer.Inputs.MembersMemberArgs
{
Address = "192.168.199.23",
ProtocolPort = 8080,
},
new OpenStack.LoadBalancer.Inputs.MembersMemberArgs
{
Address = "192.168.199.24",
ProtocolPort = 8080,
},
},
PoolId = "935685fb-a896-40f9-9ff4-ae531a3a00fe",
});
}
}
Coming soon!
import pulumi
import pulumi_openstack as openstack
members1 = openstack.loadbalancer.Members("members1",
members=[
{
"address": "192.168.199.23",
"protocol_port": 8080,
},
{
"address": "192.168.199.24",
"protocol_port": 8080,
},
],
pool_id="935685fb-a896-40f9-9ff4-ae531a3a00fe")import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";
const members1 = new openstack.loadbalancer.Members("members_1", {
members: [
{
address: "192.168.199.23",
protocolPort: 8080,
},
{
address: "192.168.199.24",
protocolPort: 8080,
},
],
poolId: "935685fb-a896-40f9-9ff4-ae531a3a00fe",
});Create a Members Resource
new Members(name: string, args: MembersArgs, opts?: CustomResourceOptions);def Members(resource_name, opts=None, members=None, pool_id=None, region=None, __props__=None);func NewMembers(ctx *Context, name string, args MembersArgs, opts ...ResourceOption) (*Members, error)public Members(string name, MembersArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args MembersArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args MembersArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MembersArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Members Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Members resource accepts the following input properties:
- Pool
Id string The id of the pool that members will be assigned to. Changing this creates a new members resource.
- Member
List List<Pulumi.Open Stack. Load Balancer. Inputs. Members Member Args> A set of dictionaries containing member parameters. The structure is described below.
- Region string
The region in which to obtain the V2 Networking client. A Networking client is needed to create pool members. If omitted, the
regionargument of the provider is used. Changing this creates a new members resource.
- Pool
Id string The id of the pool that members will be assigned to. Changing this creates a new members resource.
- Members
[]Members
Member A set of dictionaries containing member parameters. The structure is described below.
- Region string
The region in which to obtain the V2 Networking client. A Networking client is needed to create pool members. If omitted, the
regionargument of the provider is used. Changing this creates a new members resource.
- pool
Id string The id of the pool that members will be assigned to. Changing this creates a new members resource.
- members
Members
Member[] A set of dictionaries containing member parameters. The structure is described below.
- region string
The region in which to obtain the V2 Networking client. A Networking client is needed to create pool members. If omitted, the
regionargument of the provider is used. Changing this creates a new members resource.
- pool_
id str The id of the pool that members will be assigned to. Changing this creates a new members resource.
- members
List[Members
Member] A set of dictionaries containing member parameters. The structure is described below.
- region str
The region in which to obtain the V2 Networking client. A Networking client is needed to create pool members. If omitted, the
regionargument of the provider is used. Changing this creates a new members resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the Members resource produces the following output properties:
Look up an Existing Members Resource
Get an existing Members 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?: MembersState, opts?: CustomResourceOptions): Membersstatic get(resource_name, id, opts=None, members=None, pool_id=None, region=None, __props__=None);func GetMembers(ctx *Context, name string, id IDInput, state *MembersState, opts ...ResourceOption) (*Members, error)public static Members Get(string name, Input<string> id, MembersState? state, CustomResourceOptions? opts = null)- 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.
The following state arguments are supported:
- Member
List List<Pulumi.Open Stack. Load Balancer. Inputs. Members Member Args> A set of dictionaries containing member parameters. The structure is described below.
- Pool
Id string The id of the pool that members will be assigned to. Changing this creates a new members resource.
- Region string
The region in which to obtain the V2 Networking client. A Networking client is needed to create pool members. If omitted, the
regionargument of the provider is used. Changing this creates a new members resource.
- Members
[]Members
Member A set of dictionaries containing member parameters. The structure is described below.
- Pool
Id string The id of the pool that members will be assigned to. Changing this creates a new members resource.
- Region string
The region in which to obtain the V2 Networking client. A Networking client is needed to create pool members. If omitted, the
regionargument of the provider is used. Changing this creates a new members resource.
- members
Members
Member[] A set of dictionaries containing member parameters. The structure is described below.
- pool
Id string The id of the pool that members will be assigned to. Changing this creates a new members resource.
- region string
The region in which to obtain the V2 Networking client. A Networking client is needed to create pool members. If omitted, the
regionargument of the provider is used. Changing this creates a new members resource.
- members
List[Members
Member] A set of dictionaries containing member parameters. The structure is described below.
- pool_
id str The id of the pool that members will be assigned to. Changing this creates a new members resource.
- region str
The region in which to obtain the V2 Networking client. A Networking client is needed to create pool members. If omitted, the
regionargument of the provider is used. Changing this creates a new members resource.
Supporting Types
MembersMember
- Address string
The IP address of the members to receive traffic from the load balancer.
- Protocol
Port int The port on which to listen for client traffic.
- Admin
State boolUp The administrative state of the member. A valid value is true (UP) or false (DOWN). Defaults to true.
- Id string
The unique ID for the members.
- Name string
Human-readable name for the member.
- Subnet
Id string The subnet in which to access the member.
- Weight int
A positive integer value that indicates the relative portion of traffic that this members should receive from the pool. For example, a member with a weight of 10 receives five times as much traffic as a member with a weight of 2. Defaults to 1.
- Address string
The IP address of the members to receive traffic from the load balancer.
- Protocol
Port int The port on which to listen for client traffic.
- Admin
State boolUp The administrative state of the member. A valid value is true (UP) or false (DOWN). Defaults to true.
- Id string
The unique ID for the members.
- Name string
Human-readable name for the member.
- Subnet
Id string The subnet in which to access the member.
- Weight int
A positive integer value that indicates the relative portion of traffic that this members should receive from the pool. For example, a member with a weight of 10 receives five times as much traffic as a member with a weight of 2. Defaults to 1.
- address string
The IP address of the members to receive traffic from the load balancer.
- protocol
Port number The port on which to listen for client traffic.
- admin
State booleanUp The administrative state of the member. A valid value is true (UP) or false (DOWN). Defaults to true.
- id string
The unique ID for the members.
- name string
Human-readable name for the member.
- subnet
Id string The subnet in which to access the member.
- weight number
A positive integer value that indicates the relative portion of traffic that this members should receive from the pool. For example, a member with a weight of 10 receives five times as much traffic as a member with a weight of 2. Defaults to 1.
- address str
The IP address of the members to receive traffic from the load balancer.
- protocol_
port float The port on which to listen for client traffic.
- admin_
state_ boolup The administrative state of the member. A valid value is true (UP) or false (DOWN). Defaults to true.
- id str
The unique ID for the members.
- name str
Human-readable name for the member.
- subnet_
id str The subnet in which to access the member.
- weight float
A positive integer value that indicates the relative portion of traffic that this members should receive from the pool. For example, a member with a weight of 10 receives five times as much traffic as a member with a weight of 2. Defaults to 1.
Package Details
- Repository
- https://github.com/pulumi/pulumi-openstack
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
openstackTerraform Provider.