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)
// 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.
- Folder
Id string - Folder that the resource belongs to. If value is omitted, the default provider folder is used.
- Name string
- Name of the Target Group.
- Target
Group stringId - Target Group ID.
- Description string
- Description of the target group.
- Folder
Id string - Folder that the resource belongs to. If value is omitted, the default provider folder is used.
- Name string
- Name of the Target Group.
- Target
Group stringId - Target Group ID.
- description String
- Description of the target group.
- folder
Id String - Folder that the resource belongs to. If value is omitted, the default provider folder is used.
- name String
- Name of the Target Group.
- target
Group StringId - Target Group ID.
- description string
- Description of the target group.
- folder
Id string - Folder that the resource belongs to. If value is omitted, the default provider folder is used.
- name string
- Name of the Target Group.
- target
Group 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.
- folder
Id String - Folder that the resource belongs to. If value is omitted, the default provider folder is used.
- name String
- Name of the Target Group.
- target
Group StringId - Target Group ID.
getAlbTargetGroup Result
The following output properties are available:
- Created
At string - Creation timestamp of this target group.
- Description string
- Description of the target group.
- Folder
Id 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
- Target
Group stringId - Targets
List<Get
Alb Target Group Target>
- Created
At string - Creation timestamp of this target group.
- Description string
- Description of the target group.
- Folder
Id 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
- Target
Group stringId - Targets
[]Get
Alb Target Group Target
- created
At String - Creation timestamp of this target group.
- description String
- Description of the target group.
- folder
Id 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
- target
Group StringId - targets
List<Get
Alb Target Group Target>
- created
At string - Creation timestamp of this target group.
- description string
- Description of the target group.
- folder
Id 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
- target
Group stringId - targets
Get
Alb 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[Get
Alb Target Group Target]
- created
At String - Creation timestamp of this target group.
- description String
- Description of the target group.
- folder
Id 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
- target
Group StringId - targets List<Property Map>
Supporting Types
GetAlbTargetGroupTarget
- Ip
Address string - Private
Ipv4Address bool - Subnet
Id string
- Ip
Address string - Private
Ipv4Address bool - Subnet
Id string
- ip
Address String - private
Ipv4Address Boolean - subnet
Id String
- ip
Address string - private
Ipv4Address boolean - subnet
Id string
- ip_
address str - private_
ipv4_ booladdress - subnet_
id str
- ip
Address String - private
Ipv4Address Boolean - subnet
Id String
Package Details
- Repository
- Yandex pulumi/pulumi-yandex
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
yandex
Terraform Provider.