Oracle Cloud Infrastructure

v0.5.0 published on Monday, Sep 12, 2022 by Pulumi

getInstancePoolLoadBalancerAttachment

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

using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testInstancePoolLoadBalancerAttachment = Oci.Core.GetInstancePoolLoadBalancerAttachment.Invoke(new()
    {
        InstancePoolId = oci_core_instance_pool.Test_instance_pool.Id,
        InstancePoolLoadBalancerAttachmentId = oci_core_instance_pool_load_balancer_attachment.Test_instance_pool_load_balancer_attachment.Id,
    });

});
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/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:                       oci_core_instance_pool.Test_instance_pool.Id,
			InstancePoolLoadBalancerAttachmentId: oci_core_instance_pool_load_balancer_attachment.Test_instance_pool_load_balancer_attachment.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
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(oci_core_instance_pool.test_instance_pool().id())
            .instancePoolLoadBalancerAttachmentId(oci_core_instance_pool_load_balancer_attachment.test_instance_pool_load_balancer_attachment().id())
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_instance_pool_load_balancer_attachment = oci.Core.get_instance_pool_load_balancer_attachment(instance_pool_id=oci_core_instance_pool["test_instance_pool"]["id"],
    instance_pool_load_balancer_attachment_id=oci_core_instance_pool_load_balancer_attachment["test_instance_pool_load_balancer_attachment"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testInstancePoolLoadBalancerAttachment = oci.Core.getInstancePoolLoadBalancerAttachment({
    instancePoolId: oci_core_instance_pool.test_instance_pool.id,
    instancePoolLoadBalancerAttachmentId: oci_core_instance_pool_load_balancer_attachment.test_instance_pool_load_balancer_attachment.id,
});
variables:
  testInstancePoolLoadBalancerAttachment:
    Fn::Invoke:
      Function: oci:Core:getInstancePoolLoadBalancerAttachment
      Arguments:
        instancePoolId: ${oci_core_instance_pool.test_instance_pool.id}
        instancePoolLoadBalancerAttachmentId: ${oci_core_instance_pool_load_balancer_attachment.test_instance_pool_load_balancer_attachment.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
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.