Class Member
Manages a V2 member resource within OpenStack.
Example Usage
using Pulumi;
using OpenStack = Pulumi.OpenStack;
class MyStack : Stack
{
public MyStack()
{
var member1 = new OpenStack.LoadBalancer.Member("member1", new OpenStack.LoadBalancer.MemberArgs
{
Address = "192.168.199.23",
PoolId = "935685fb-a896-40f9-9ff4-ae531a3a00fe",
ProtocolPort = 8080,
});
}
}
Inherited Members
Namespace: Pulumi.OpenStack.LoadBalancer
Assembly: Pulumi.OpenStack.dll
Syntax
public class Member : CustomResource
Constructors
View SourceMember(String, MemberArgs, CustomResourceOptions)
Create a Member resource with the given unique name, arguments, and options.
Declaration
public Member(string name, MemberArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| MemberArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceAddress
The IP address of the member to receive traffic from the load balancer. Changing this creates a new member.
Declaration
public Output<string> Address { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
AdminStateUp
The administrative state of the member. A valid value is true (UP) or false (DOWN). Defaults to true.
Declaration
public Output<bool?> AdminStateUp { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
Name
Human-readable name for the member.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
PoolId
The id of the pool that this member will be assigned to. Changing this creates a new member.
Declaration
public Output<string> PoolId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ProtocolPort
The port on which to listen for client traffic. Changing this creates a new member.
Declaration
public Output<int> ProtocolPort { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Int32> |
Region
The region in which to obtain the V2 Networking client.
A Networking client is needed to create a member. If omitted, the region
argument of the provider is used. Changing this creates a new member.
Declaration
public Output<string> Region { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
SubnetId
The subnet in which to access the member. Changing this creates a new member.
Declaration
public Output<string> SubnetId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
TenantId
Required for admins. The UUID of the tenant who owns the member. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new member.
Declaration
public Output<string> TenantId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Weight
A positive integer value that indicates the relative portion of traffic that this member 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.
Declaration
public Output<int> Weight { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Int32> |
Methods
View SourceGet(String, Input<String>, MemberState, CustomResourceOptions)
Get an existing Member resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static Member Get(string name, Input<string> id, MemberState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| MemberState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| Member |