ibm.LbaasServerInstanceAttachment
Explore with Pulumi AI
Create, delete, and update to attach the server instance to IBM cloud load balancer. This allows attach, detach, and update server instances as LoadBalancer members to IBM Cloud Load Balancer. A depends_on
statement is required for the associated load balancer to ensure that attach and detach occur after and before load balancer creation and deletion. If you do not specify the depends_on
parameter, intermittent attach failures will occur on creation and load balancer deletion will fail. Typically when apply or destroy is rerun the operation will be successful. For more information, about attaching a service instance to IBM Cloud load balancer, see selecting the service and configuring basic parameters.
Create LbaasServerInstanceAttachment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new LbaasServerInstanceAttachment(name: string, args: LbaasServerInstanceAttachmentArgs, opts?: CustomResourceOptions);
@overload
def LbaasServerInstanceAttachment(resource_name: str,
args: LbaasServerInstanceAttachmentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def LbaasServerInstanceAttachment(resource_name: str,
opts: Optional[ResourceOptions] = None,
lbaas_id: Optional[str] = None,
private_ip_address: Optional[str] = None,
lbaas_server_instance_attachment_id: Optional[str] = None,
weight: Optional[float] = None)
func NewLbaasServerInstanceAttachment(ctx *Context, name string, args LbaasServerInstanceAttachmentArgs, opts ...ResourceOption) (*LbaasServerInstanceAttachment, error)
public LbaasServerInstanceAttachment(string name, LbaasServerInstanceAttachmentArgs args, CustomResourceOptions? opts = null)
public LbaasServerInstanceAttachment(String name, LbaasServerInstanceAttachmentArgs args)
public LbaasServerInstanceAttachment(String name, LbaasServerInstanceAttachmentArgs args, CustomResourceOptions options)
type: ibm:LbaasServerInstanceAttachment
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 LbaasServerInstanceAttachmentArgs
- 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 LbaasServerInstanceAttachmentArgs
- 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 LbaasServerInstanceAttachmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LbaasServerInstanceAttachmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LbaasServerInstanceAttachmentArgs
- 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 lbaasServerInstanceAttachmentResource = new Ibm.LbaasServerInstanceAttachment("lbaasServerInstanceAttachmentResource", new()
{
LbaasId = "string",
PrivateIpAddress = "string",
LbaasServerInstanceAttachmentId = "string",
Weight = 0,
});
example, err := ibm.NewLbaasServerInstanceAttachment(ctx, "lbaasServerInstanceAttachmentResource", &ibm.LbaasServerInstanceAttachmentArgs{
LbaasId: pulumi.String("string"),
PrivateIpAddress: pulumi.String("string"),
LbaasServerInstanceAttachmentId: pulumi.String("string"),
Weight: pulumi.Float64(0),
})
var lbaasServerInstanceAttachmentResource = new LbaasServerInstanceAttachment("lbaasServerInstanceAttachmentResource", LbaasServerInstanceAttachmentArgs.builder()
.lbaasId("string")
.privateIpAddress("string")
.lbaasServerInstanceAttachmentId("string")
.weight(0)
.build());
lbaas_server_instance_attachment_resource = ibm.LbaasServerInstanceAttachment("lbaasServerInstanceAttachmentResource",
lbaas_id="string",
private_ip_address="string",
lbaas_server_instance_attachment_id="string",
weight=0)
const lbaasServerInstanceAttachmentResource = new ibm.LbaasServerInstanceAttachment("lbaasServerInstanceAttachmentResource", {
lbaasId: "string",
privateIpAddress: "string",
lbaasServerInstanceAttachmentId: "string",
weight: 0,
});
type: ibm:LbaasServerInstanceAttachment
properties:
lbaasId: string
lbaasServerInstanceAttachmentId: string
privateIpAddress: string
weight: 0
LbaasServerInstanceAttachment 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 LbaasServerInstanceAttachment resource accepts the following input properties:
- Lbaas
Id string - The UUID of a load balancer
- Private
Ip stringAddress - The Private IP address of a load balancer member.
- Lbaas
Server stringInstance Attachment Id - Weight double
- The weight of a load balancer member.
- Lbaas
Id string - The UUID of a load balancer
- Private
Ip stringAddress - The Private IP address of a load balancer member.
- Lbaas
Server stringInstance Attachment Id - Weight float64
- The weight of a load balancer member.
- lbaas
Id String - The UUID of a load balancer
- private
Ip StringAddress - The Private IP address of a load balancer member.
- lbaas
Server StringInstance Attachment Id - weight Double
- The weight of a load balancer member.
- lbaas
Id string - The UUID of a load balancer
- private
Ip stringAddress - The Private IP address of a load balancer member.
- lbaas
Server stringInstance Attachment Id - weight number
- The weight of a load balancer member.
- lbaas_
id str - The UUID of a load balancer
- private_
ip_ straddress - The Private IP address of a load balancer member.
- lbaas_
server_ strinstance_ attachment_ id - weight float
- The weight of a load balancer member.
- lbaas
Id String - The UUID of a load balancer
- private
Ip StringAddress - The Private IP address of a load balancer member.
- lbaas
Server StringInstance Attachment Id - weight Number
- The weight of a load balancer member.
Outputs
All input properties are implicitly available as output properties. Additionally, the LbaasServerInstanceAttachment resource produces the following output properties:
Look up Existing LbaasServerInstanceAttachment Resource
Get an existing LbaasServerInstanceAttachment 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?: LbaasServerInstanceAttachmentState, opts?: CustomResourceOptions): LbaasServerInstanceAttachment
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
lbaas_id: Optional[str] = None,
lbaas_server_instance_attachment_id: Optional[str] = None,
private_ip_address: Optional[str] = None,
uuid: Optional[str] = None,
weight: Optional[float] = None) -> LbaasServerInstanceAttachment
func GetLbaasServerInstanceAttachment(ctx *Context, name string, id IDInput, state *LbaasServerInstanceAttachmentState, opts ...ResourceOption) (*LbaasServerInstanceAttachment, error)
public static LbaasServerInstanceAttachment Get(string name, Input<string> id, LbaasServerInstanceAttachmentState? state, CustomResourceOptions? opts = null)
public static LbaasServerInstanceAttachment get(String name, Output<String> id, LbaasServerInstanceAttachmentState state, CustomResourceOptions options)
resources: _: type: ibm:LbaasServerInstanceAttachment 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.
- Lbaas
Id string - The UUID of a load balancer
- Lbaas
Server stringInstance Attachment Id - Private
Ip stringAddress - The Private IP address of a load balancer member.
- Uuid string
- (String) The unique identifier of the load balancer member.
- Weight double
- The weight of a load balancer member.
- Lbaas
Id string - The UUID of a load balancer
- Lbaas
Server stringInstance Attachment Id - Private
Ip stringAddress - The Private IP address of a load balancer member.
- Uuid string
- (String) The unique identifier of the load balancer member.
- Weight float64
- The weight of a load balancer member.
- lbaas
Id String - The UUID of a load balancer
- lbaas
Server StringInstance Attachment Id - private
Ip StringAddress - The Private IP address of a load balancer member.
- uuid String
- (String) The unique identifier of the load balancer member.
- weight Double
- The weight of a load balancer member.
- lbaas
Id string - The UUID of a load balancer
- lbaas
Server stringInstance Attachment Id - private
Ip stringAddress - The Private IP address of a load balancer member.
- uuid string
- (String) The unique identifier of the load balancer member.
- weight number
- The weight of a load balancer member.
- lbaas_
id str - The UUID of a load balancer
- lbaas_
server_ strinstance_ attachment_ id - private_
ip_ straddress - The Private IP address of a load balancer member.
- uuid str
- (String) The unique identifier of the load balancer member.
- weight float
- The weight of a load balancer member.
- lbaas
Id String - The UUID of a load balancer
- lbaas
Server StringInstance Attachment Id - private
Ip StringAddress - The Private IP address of a load balancer member.
- uuid String
- (String) The unique identifier of the load balancer member.
- weight Number
- The weight of a load balancer member.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.