Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.Core.getInstancePoolLoadBalancerAttachment
Explore with Pulumi AI
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:
- Instance
Pool stringId - The OCID of the instance pool.
- Instance
Pool stringLoad Balancer Attachment Id - The OCID of the load balancer attachment.
- Instance
Pool stringId - The OCID of the instance pool.
- Instance
Pool stringLoad Balancer Attachment Id - The OCID of the load balancer attachment.
- instance
Pool StringId - The OCID of the instance pool.
- instance
Pool StringLoad Balancer Attachment Id - The OCID of the load balancer attachment.
- instance
Pool stringId - The OCID of the instance pool.
- instance
Pool stringLoad Balancer Attachment Id - The OCID of the load balancer attachment.
- instance_
pool_ strid - The OCID of the instance pool.
- instance_
pool_ strload_ balancer_ attachment_ id - The OCID of the load balancer attachment.
- instance
Pool StringId - The OCID of the instance pool.
- instance
Pool StringLoad Balancer Attachment Id - The OCID of the load balancer attachment.
getInstancePoolLoadBalancerAttachment Result
The following output properties are available:
- Backend
Set stringName - The name of the backend set on the load balancer.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Pool stringId - The OCID of the instance pool of the load balancer attachment.
- Instance
Pool stringLoad Balancer Attachment Id - Load
Balancer stringId - 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.
- Vnic
Selection 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 stringName - The name of the backend set on the load balancer.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Pool stringId - The OCID of the instance pool of the load balancer attachment.
- Instance
Pool stringLoad Balancer Attachment Id - Load
Balancer stringId - 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.
- Vnic
Selection 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 StringName - The name of the backend set on the load balancer.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Pool StringId - The OCID of the instance pool of the load balancer attachment.
- instance
Pool StringLoad Balancer Attachment Id - load
Balancer StringId - 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.
- vnic
Selection 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 stringName - The name of the backend set on the load balancer.
- id string
- The provider-assigned unique ID for this managed resource.
- instance
Pool stringId - The OCID of the instance pool of the load balancer attachment.
- instance
Pool stringLoad Balancer Attachment Id - load
Balancer stringId - 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.
- vnic
Selection 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_ strname - The name of the backend set on the load balancer.
- id str
- The provider-assigned unique ID for this managed resource.
- instance_
pool_ strid - The OCID of the instance pool of the load balancer attachment.
- instance_
pool_ strload_ balancer_ attachment_ id - load_
balancer_ strid - 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.
- backend
Set StringName - The name of the backend set on the load balancer.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Pool StringId - The OCID of the instance pool of the load balancer attachment.
- instance
Pool StringLoad Balancer Attachment Id - load
Balancer StringId - 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.
- vnic
Selection 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.