@pulumi/openstack
Version:
A Pulumi package for creating and managing OpenStack cloud resources.
125 lines (124 loc) • 4.59 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
/**
* Manages a V2 members resource within OpenStack (batch members update).
*
* > **Note:** This resource has attributes that depend on octavia minor versions.
* Please ensure your Openstack cloud supports the required minor version.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as openstack from "@pulumi/openstack";
*
* const members1 = new openstack.loadbalancer.Members("members_1", {
* poolId: "935685fb-a896-40f9-9ff4-ae531a3a00fe",
* members: [
* {
* address: "192.168.199.23",
* protocolPort: 8080,
* },
* {
* address: "192.168.199.24",
* protocolPort: 8080,
* },
* ],
* });
* ```
*
* ## Import
*
* Load Balancer Pool Members can be imported using the Pool ID, e.g.:
*
* ```sh
* $ pulumi import openstack:loadbalancer/members:Members members_1 c22974d2-4c95-4bcb-9819-0afc5ed303d5
* ```
*/
export declare class Members extends pulumi.CustomResource {
/**
* Get an existing Members resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: MembersState, opts?: pulumi.CustomResourceOptions): Members;
/**
* Returns true if the given object is an instance of Members. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj: any): obj is Members;
/**
* A set of dictionaries containing member parameters. The
* structure is described below.
*/
readonly members: pulumi.Output<outputs.loadbalancer.MembersMember[] | undefined>;
/**
* The id of the pool that members will be assigned to.
* Changing this creates a new members resource.
*/
readonly poolId: pulumi.Output<string>;
/**
* The region in which to obtain the V2 Networking client.
* A Networking client is needed to create pool members. If omitted, the
* `region` argument of the provider is used. Changing this creates a new
* members resource.
*/
readonly region: pulumi.Output<string>;
/**
* Create a Members resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name: string, args: MembersArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering Members resources.
*/
export interface MembersState {
/**
* A set of dictionaries containing member parameters. The
* structure is described below.
*/
members?: pulumi.Input<pulumi.Input<inputs.loadbalancer.MembersMember>[]>;
/**
* The id of the pool that members will be assigned to.
* Changing this creates a new members resource.
*/
poolId?: pulumi.Input<string>;
/**
* The region in which to obtain the V2 Networking client.
* A Networking client is needed to create pool members. If omitted, the
* `region` argument of the provider is used. Changing this creates a new
* members resource.
*/
region?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a Members resource.
*/
export interface MembersArgs {
/**
* A set of dictionaries containing member parameters. The
* structure is described below.
*/
members?: pulumi.Input<pulumi.Input<inputs.loadbalancer.MembersMember>[]>;
/**
* The id of the pool that members will be assigned to.
* Changing this creates a new members resource.
*/
poolId: pulumi.Input<string>;
/**
* The region in which to obtain the V2 Networking client.
* A Networking client is needed to create pool members. If omitted, the
* `region` argument of the provider is used. Changing this creates a new
* members resource.
*/
region?: pulumi.Input<string>;
}