Yandex v0.13.0 published on Tuesday, Feb 22, 2022 by Pulumi
yandex.getAlbTargetGroup
Explore with Pulumi AI
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)
public static Output<GetAlbTargetGroupResult> getAlbTargetGroup(GetAlbTargetGroupArgs args, InvokeOptions options)
fn::invoke:
  function: yandex:index/getAlbTargetGroup:getAlbTargetGroup
  arguments:
    # arguments dictionaryThe 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.
 
- TargetGroup stringId 
- 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.
 
- TargetGroup stringId 
- 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.
 
- targetGroup StringId 
- 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.
 
- targetGroup stringId 
- 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_ strid 
- 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.
 
- targetGroup StringId 
- 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
- TargetGroup stringId 
- Targets
List<GetAlb Target Group Target> 
- 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
- TargetGroup stringId 
- Targets
[]GetAlb Target Group Target 
- 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
- targetGroup StringId 
- targets
List<GetAlb Target Group Target> 
- 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
- targetGroup stringId 
- targets
GetAlb Target Group Target[] 
- 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_ strid 
- targets
Sequence[GetAlb Target Group Target] 
- 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
- targetGroup StringId 
- targets List<Property Map>
Supporting Types
GetAlbTargetGroupTarget    
- IpAddress string
- PrivateIpv4Address bool
- SubnetId string
- IpAddress string
- PrivateIpv4Address bool
- SubnetId string
- ipAddress String
- privateIpv4Address Boolean
- subnetId String
- ipAddress string
- privateIpv4Address boolean
- subnetId string
- ip_address str
- private_ipv4_ booladdress 
- subnet_id str
- ipAddress String
- privateIpv4Address Boolean
- subnetId String
Package Details
- Repository
- Yandex pulumi/pulumi-yandex
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the yandexTerraform Provider.