1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Core
  5. getInstancePoolLoadBalancerAttachment
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.Core.getInstancePoolLoadBalancerAttachment

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

    This data source provides details about a specific Instance Pool Load Balancer Attachment resource in Oracle Cloud Infrastructure Core service.

    Gets information about a load balancer that is attached to the specified instance pool.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testInstancePoolLoadBalancerAttachment = oci.Core.getInstancePoolLoadBalancerAttachment({
        instancePoolId: testInstancePool.id,
        instancePoolLoadBalancerAttachmentId: testInstancePoolLoadBalancerAttachmentOciCoreInstancePoolLoadBalancerAttachment.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_instance_pool_load_balancer_attachment = oci.Core.get_instance_pool_load_balancer_attachment(instance_pool_id=test_instance_pool["id"],
        instance_pool_load_balancer_attachment_id=test_instance_pool_load_balancer_attachment_oci_core_instance_pool_load_balancer_attachment["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/Core"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Core.GetInstancePoolLoadBalancerAttachment(ctx, &core.GetInstancePoolLoadBalancerAttachmentArgs{
    			InstancePoolId:                       testInstancePool.Id,
    			InstancePoolLoadBalancerAttachmentId: testInstancePoolLoadBalancerAttachmentOciCoreInstancePoolLoadBalancerAttachment.Id,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testInstancePoolLoadBalancerAttachment = Oci.Core.GetInstancePoolLoadBalancerAttachment.Invoke(new()
        {
            InstancePoolId = testInstancePool.Id,
            InstancePoolLoadBalancerAttachmentId = testInstancePoolLoadBalancerAttachmentOciCoreInstancePoolLoadBalancerAttachment.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Core.CoreFunctions;
    import com.pulumi.oci.Core.inputs.GetInstancePoolLoadBalancerAttachmentArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var testInstancePoolLoadBalancerAttachment = CoreFunctions.getInstancePoolLoadBalancerAttachment(GetInstancePoolLoadBalancerAttachmentArgs.builder()
                .instancePoolId(testInstancePool.id())
                .instancePoolLoadBalancerAttachmentId(testInstancePoolLoadBalancerAttachmentOciCoreInstancePoolLoadBalancerAttachment.id())
                .build());
    
        }
    }
    
    variables:
      testInstancePoolLoadBalancerAttachment:
        fn::invoke:
          Function: oci:Core:getInstancePoolLoadBalancerAttachment
          Arguments:
            instancePoolId: ${testInstancePool.id}
            instancePoolLoadBalancerAttachmentId: ${testInstancePoolLoadBalancerAttachmentOciCoreInstancePoolLoadBalancerAttachment.id}
    

    Using getInstancePoolLoadBalancerAttachment

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getInstancePoolLoadBalancerAttachment(args: GetInstancePoolLoadBalancerAttachmentArgs, opts?: InvokeOptions): Promise<GetInstancePoolLoadBalancerAttachmentResult>
    function getInstancePoolLoadBalancerAttachmentOutput(args: GetInstancePoolLoadBalancerAttachmentOutputArgs, opts?: InvokeOptions): Output<GetInstancePoolLoadBalancerAttachmentResult>
    def get_instance_pool_load_balancer_attachment(instance_pool_id: Optional[str] = None,
                                                   instance_pool_load_balancer_attachment_id: Optional[str] = None,
                                                   opts: Optional[InvokeOptions] = None) -> GetInstancePoolLoadBalancerAttachmentResult
    def get_instance_pool_load_balancer_attachment_output(instance_pool_id: Optional[pulumi.Input[str]] = None,
                                                   instance_pool_load_balancer_attachment_id: Optional[pulumi.Input[str]] = None,
                                                   opts: Optional[InvokeOptions] = None) -> Output[GetInstancePoolLoadBalancerAttachmentResult]
    func GetInstancePoolLoadBalancerAttachment(ctx *Context, args *GetInstancePoolLoadBalancerAttachmentArgs, opts ...InvokeOption) (*GetInstancePoolLoadBalancerAttachmentResult, error)
    func GetInstancePoolLoadBalancerAttachmentOutput(ctx *Context, args *GetInstancePoolLoadBalancerAttachmentOutputArgs, opts ...InvokeOption) GetInstancePoolLoadBalancerAttachmentResultOutput

    > Note: This function is named GetInstancePoolLoadBalancerAttachment in the Go SDK.

    public static class GetInstancePoolLoadBalancerAttachment 
    {
        public static Task<GetInstancePoolLoadBalancerAttachmentResult> InvokeAsync(GetInstancePoolLoadBalancerAttachmentArgs args, InvokeOptions? opts = null)
        public static Output<GetInstancePoolLoadBalancerAttachmentResult> Invoke(GetInstancePoolLoadBalancerAttachmentInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetInstancePoolLoadBalancerAttachmentResult> getInstancePoolLoadBalancerAttachment(GetInstancePoolLoadBalancerAttachmentArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Core/getInstancePoolLoadBalancerAttachment:getInstancePoolLoadBalancerAttachment
      arguments:
        # arguments dictionary

    The following arguments are supported:

    InstancePoolId string
    The OCID of the instance pool.
    InstancePoolLoadBalancerAttachmentId string
    The OCID of the load balancer attachment.
    InstancePoolId string
    The OCID of the instance pool.
    InstancePoolLoadBalancerAttachmentId string
    The OCID of the load balancer attachment.
    instancePoolId String
    The OCID of the instance pool.
    instancePoolLoadBalancerAttachmentId String
    The OCID of the load balancer attachment.
    instancePoolId string
    The OCID of the instance pool.
    instancePoolLoadBalancerAttachmentId string
    The OCID of the load balancer attachment.
    instance_pool_id str
    The OCID of the instance pool.
    instance_pool_load_balancer_attachment_id str
    The OCID of the load balancer attachment.
    instancePoolId String
    The OCID of the instance pool.
    instancePoolLoadBalancerAttachmentId String
    The OCID of the load balancer attachment.

    getInstancePoolLoadBalancerAttachment Result

    The following output properties are available:

    BackendSetName string
    The name of the backend set on the load balancer.
    Id string
    The provider-assigned unique ID for this managed resource.
    InstancePoolId string
    The OCID of the instance pool of the load balancer attachment.
    InstancePoolLoadBalancerAttachmentId string
    LoadBalancerId string
    The OCID of the load balancer attached to the instance pool.
    Port int
    The port value used for the backends.
    State string
    The status of the interaction between the instance pool and the load balancer.
    VnicSelection string
    Indicates which VNIC on each instance in the instance pool should be used to associate with the load balancer. Possible values are "PrimaryVnic" or the displayName of one of the secondary VNICs on the instance configuration that is associated with the instance pool.
    BackendSetName string
    The name of the backend set on the load balancer.
    Id string
    The provider-assigned unique ID for this managed resource.
    InstancePoolId string
    The OCID of the instance pool of the load balancer attachment.
    InstancePoolLoadBalancerAttachmentId string
    LoadBalancerId string
    The OCID of the load balancer attached to the instance pool.
    Port int
    The port value used for the backends.
    State string
    The status of the interaction between the instance pool and the load balancer.
    VnicSelection string
    Indicates which VNIC on each instance in the instance pool should be used to associate with the load balancer. Possible values are "PrimaryVnic" or the displayName of one of the secondary VNICs on the instance configuration that is associated with the instance pool.
    backendSetName String
    The name of the backend set on the load balancer.
    id String
    The provider-assigned unique ID for this managed resource.
    instancePoolId String
    The OCID of the instance pool of the load balancer attachment.
    instancePoolLoadBalancerAttachmentId String
    loadBalancerId String
    The OCID of the load balancer attached to the instance pool.
    port Integer
    The port value used for the backends.
    state String
    The status of the interaction between the instance pool and the load balancer.
    vnicSelection String
    Indicates which VNIC on each instance in the instance pool should be used to associate with the load balancer. Possible values are "PrimaryVnic" or the displayName of one of the secondary VNICs on the instance configuration that is associated with the instance pool.
    backendSetName string
    The name of the backend set on the load balancer.
    id string
    The provider-assigned unique ID for this managed resource.
    instancePoolId string
    The OCID of the instance pool of the load balancer attachment.
    instancePoolLoadBalancerAttachmentId string
    loadBalancerId string
    The OCID of the load balancer attached to the instance pool.
    port number
    The port value used for the backends.
    state string
    The status of the interaction between the instance pool and the load balancer.
    vnicSelection string
    Indicates which VNIC on each instance in the instance pool should be used to associate with the load balancer. Possible values are "PrimaryVnic" or the displayName of one of the secondary VNICs on the instance configuration that is associated with the instance pool.
    backend_set_name str
    The name of the backend set on the load balancer.
    id str
    The provider-assigned unique ID for this managed resource.
    instance_pool_id str
    The OCID of the instance pool of the load balancer attachment.
    instance_pool_load_balancer_attachment_id str
    load_balancer_id str
    The OCID of the load balancer attached to the instance pool.
    port int
    The port value used for the backends.
    state str
    The status of the interaction between the instance pool and the load balancer.
    vnic_selection str
    Indicates which VNIC on each instance in the instance pool should be used to associate with the load balancer. Possible values are "PrimaryVnic" or the displayName of one of the secondary VNICs on the instance configuration that is associated with the instance pool.
    backendSetName String
    The name of the backend set on the load balancer.
    id String
    The provider-assigned unique ID for this managed resource.
    instancePoolId String
    The OCID of the instance pool of the load balancer attachment.
    instancePoolLoadBalancerAttachmentId String
    loadBalancerId String
    The OCID of the load balancer attached to the instance pool.
    port Number
    The port value used for the backends.
    state String
    The status of the interaction between the instance pool and the load balancer.
    vnicSelection String
    Indicates which VNIC on each instance in the instance pool should be used to associate with the load balancer. Possible values are "PrimaryVnic" or the displayName of one of the secondary VNICs on the instance configuration that is associated with the instance pool.

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi