1. Packages
  2. Ibm Provider
  3. API Docs
  4. LbaasServerInstanceAttachment
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

ibm.LbaasServerInstanceAttachment

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    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:

    LbaasId string
    The UUID of a load balancer
    PrivateIpAddress string
    The Private IP address of a load balancer member.
    LbaasServerInstanceAttachmentId string
    Weight double
    The weight of a load balancer member.
    LbaasId string
    The UUID of a load balancer
    PrivateIpAddress string
    The Private IP address of a load balancer member.
    LbaasServerInstanceAttachmentId string
    Weight float64
    The weight of a load balancer member.
    lbaasId String
    The UUID of a load balancer
    privateIpAddress String
    The Private IP address of a load balancer member.
    lbaasServerInstanceAttachmentId String
    weight Double
    The weight of a load balancer member.
    lbaasId string
    The UUID of a load balancer
    privateIpAddress string
    The Private IP address of a load balancer member.
    lbaasServerInstanceAttachmentId string
    weight number
    The weight of a load balancer member.
    lbaas_id str
    The UUID of a load balancer
    private_ip_address str
    The Private IP address of a load balancer member.
    lbaas_server_instance_attachment_id str
    weight float
    The weight of a load balancer member.
    lbaasId String
    The UUID of a load balancer
    privateIpAddress String
    The Private IP address of a load balancer member.
    lbaasServerInstanceAttachmentId String
    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:

    Id string
    The provider-assigned unique ID for this managed resource.
    Uuid string
    (String) The unique identifier of the load balancer member.
    Id string
    The provider-assigned unique ID for this managed resource.
    Uuid string
    (String) The unique identifier of the load balancer member.
    id String
    The provider-assigned unique ID for this managed resource.
    uuid String
    (String) The unique identifier of the load balancer member.
    id string
    The provider-assigned unique ID for this managed resource.
    uuid string
    (String) The unique identifier of the load balancer member.
    id str
    The provider-assigned unique ID for this managed resource.
    uuid str
    (String) The unique identifier of the load balancer member.
    id String
    The provider-assigned unique ID for this managed resource.
    uuid String
    (String) The unique identifier of the load balancer member.

    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.
    The following state arguments are supported:
    LbaasId string
    The UUID of a load balancer
    LbaasServerInstanceAttachmentId string
    PrivateIpAddress string
    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.
    LbaasId string
    The UUID of a load balancer
    LbaasServerInstanceAttachmentId string
    PrivateIpAddress string
    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.
    lbaasId String
    The UUID of a load balancer
    lbaasServerInstanceAttachmentId String
    privateIpAddress String
    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.
    lbaasId string
    The UUID of a load balancer
    lbaasServerInstanceAttachmentId string
    privateIpAddress string
    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_instance_attachment_id str
    private_ip_address str
    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.
    lbaasId String
    The UUID of a load balancer
    lbaasServerInstanceAttachmentId String
    privateIpAddress String
    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.
    ibm logo
    ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud