1. Packages
  2. Yandex
  3. API Docs
  4. getAlbTargetGroup
Yandex v0.13.0 published on Tuesday, Feb 22, 2022 by Pulumi

yandex.getAlbTargetGroup

Explore with Pulumi AI

yandex logo
Yandex v0.13.0 published on Tuesday, Feb 22, 2022 by Pulumi

    Get information about a Yandex Application Load Balancer target group. For more information, see Yandex.Cloud Application Load Balancer.

    import * as pulumi from "@pulumi/pulumi";
    import * as yandex from "@pulumi/yandex";
    
    const foo = pulumi.output(yandex.getAlbTargetGroup({
        targetGroupId: "my-target-group-id",
    }));
    
    import pulumi
    import pulumi_yandex as yandex
    
    foo = yandex.get_alb_target_group(target_group_id="my-target-group-id")
    
    using Pulumi;
    using Yandex = Pulumi.Yandex;
    
    class MyStack : Stack
    {
        public MyStack()
        {
            var foo = Output.Create(Yandex.GetAlbTargetGroup.InvokeAsync(new Yandex.GetAlbTargetGroupArgs
            {
                TargetGroupId = "my-target-group-id",
            }));
        }
    
    }
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-yandex/sdk/go/yandex"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		opt0 := "my-target-group-id"
    		_, err := yandex.LookupAlbTargetGroup(ctx, &GetAlbTargetGroupArgs{
    			TargetGroupId: &opt0,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    

    This data source is used to define [Application Load Balancer Target Groups] that can be used by other resources.

    Using getAlbTargetGroup

    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 getAlbTargetGroup(args: GetAlbTargetGroupArgs, opts?: InvokeOptions): Promise<GetAlbTargetGroupResult>
    function getAlbTargetGroupOutput(args: GetAlbTargetGroupOutputArgs, opts?: InvokeOptions): Output<GetAlbTargetGroupResult>
    def get_alb_target_group(description: Optional[str] = None,
                             folder_id: Optional[str] = None,
                             name: Optional[str] = None,
                             target_group_id: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetAlbTargetGroupResult
    def get_alb_target_group_output(description: Optional[pulumi.Input[str]] = None,
                             folder_id: Optional[pulumi.Input[str]] = None,
                             name: Optional[pulumi.Input[str]] = None,
                             target_group_id: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetAlbTargetGroupResult]
    func LookupAlbTargetGroup(ctx *Context, args *LookupAlbTargetGroupArgs, opts ...InvokeOption) (*LookupAlbTargetGroupResult, error)
    func LookupAlbTargetGroupOutput(ctx *Context, args *LookupAlbTargetGroupOutputArgs, opts ...InvokeOption) LookupAlbTargetGroupResultOutput

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

    public static class GetAlbTargetGroup 
    {
        public static Task<GetAlbTargetGroupResult> InvokeAsync(GetAlbTargetGroupArgs args, InvokeOptions? opts = null)
        public static Output<GetAlbTargetGroupResult> Invoke(GetAlbTargetGroupInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAlbTargetGroupResult> getAlbTargetGroup(GetAlbTargetGroupArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: yandex:index/getAlbTargetGroup:getAlbTargetGroup
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Description string
    Description of the target group.
    FolderId string
    Folder that the resource belongs to. If value is omitted, the default provider folder is used.
    Name string
    • Name of the Target Group.
    TargetGroupId string
    Target Group ID.
    Description string
    Description of the target group.
    FolderId string
    Folder that the resource belongs to. If value is omitted, the default provider folder is used.
    Name string
    • Name of the Target Group.
    TargetGroupId string
    Target Group ID.
    description String
    Description of the target group.
    folderId String
    Folder that the resource belongs to. If value is omitted, the default provider folder is used.
    name String
    • Name of the Target Group.
    targetGroupId String
    Target Group ID.
    description string
    Description of the target group.
    folderId string
    Folder that the resource belongs to. If value is omitted, the default provider folder is used.
    name string
    • Name of the Target Group.
    targetGroupId string
    Target Group ID.
    description str
    Description of the target group.
    folder_id str
    Folder that the resource belongs to. If value is omitted, the default provider folder is used.
    name str
    • Name of the Target Group.
    target_group_id str
    Target Group ID.
    description String
    Description of the target group.
    folderId String
    Folder that the resource belongs to. If value is omitted, the default provider folder is used.
    name String
    • Name of the Target Group.
    targetGroupId String
    Target Group ID.

    getAlbTargetGroup Result

    The following output properties are available:

    CreatedAt string
    Creation timestamp of this target group.
    Description string
    Description of the target group.
    FolderId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Labels Dictionary<string, string>
    Labels to assign to this target group.

    • target.0.ip_address - IP address of the target.
    • target.0.subnet_id - ID of the subnet that targets are connected to.
    Name string
    TargetGroupId string
    Targets List<GetAlbTargetGroupTarget>
    CreatedAt string
    Creation timestamp of this target group.
    Description string
    Description of the target group.
    FolderId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Labels map[string]string
    Labels to assign to this target group.

    • target.0.ip_address - IP address of the target.
    • target.0.subnet_id - ID of the subnet that targets are connected to.
    Name string
    TargetGroupId string
    Targets []GetAlbTargetGroupTarget
    createdAt String
    Creation timestamp of this target group.
    description String
    Description of the target group.
    folderId String
    id String
    The provider-assigned unique ID for this managed resource.
    labels Map<String,String>
    Labels to assign to this target group.

    • target.0.ip_address - IP address of the target.
    • target.0.subnet_id - ID of the subnet that targets are connected to.
    name String
    targetGroupId String
    targets List<GetAlbTargetGroupTarget>
    createdAt string
    Creation timestamp of this target group.
    description string
    Description of the target group.
    folderId string
    id string
    The provider-assigned unique ID for this managed resource.
    labels {[key: string]: string}
    Labels to assign to this target group.

    • target.0.ip_address - IP address of the target.
    • target.0.subnet_id - ID of the subnet that targets are connected to.
    name string
    targetGroupId string
    targets GetAlbTargetGroupTarget[]
    created_at str
    Creation timestamp of this target group.
    description str
    Description of the target group.
    folder_id str
    id str
    The provider-assigned unique ID for this managed resource.
    labels Mapping[str, str]
    Labels to assign to this target group.

    • target.0.ip_address - IP address of the target.
    • target.0.subnet_id - ID of the subnet that targets are connected to.
    name str
    target_group_id str
    targets Sequence[GetAlbTargetGroupTarget]
    createdAt String
    Creation timestamp of this target group.
    description String
    Description of the target group.
    folderId String
    id String
    The provider-assigned unique ID for this managed resource.
    labels Map<String>
    Labels to assign to this target group.

    • target.0.ip_address - IP address of the target.
    • target.0.subnet_id - ID of the subnet that targets are connected to.
    name String
    targetGroupId String
    targets List<Property Map>

    Supporting Types

    GetAlbTargetGroupTarget

    Package Details

    Repository
    Yandex pulumi/pulumi-yandex
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the yandex Terraform Provider.
    yandex logo
    Yandex v0.13.0 published on Tuesday, Feb 22, 2022 by Pulumi