getGroup

suspend fun getGroup(argument: GetGroupPlainArgs): GetGroupResult

Use this data source to access information about an existing Container Group instance.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.containerservice.getGroup({
name: "existing",
resourceGroupName: "existing",
});
export const id = example.then(example => example.id);
export const ipAddress = example.then(example => example.ipAddress);
export const fqdn = example.then(example => example.fqdn);
import pulumi
import pulumi_azure as azure
example = azure.containerservice.get_group(name="existing",
resource_group_name="existing")
pulumi.export("id", example.id)
pulumi.export("ipAddress", example.ip_address)
pulumi.export("fqdn", example.fqdn)
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = Azure.ContainerService.GetGroup.Invoke(new()
{
Name = "existing",
ResourceGroupName = "existing",
});
return new Dictionary<string, object?>
{
["id"] = example.Apply(getGroupResult => getGroupResult.Id),
["ipAddress"] = example.Apply(getGroupResult => getGroupResult.IpAddress),
["fqdn"] = example.Apply(getGroupResult => getGroupResult.Fqdn),
};
});
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/containerservice"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := containerservice.LookupGroup(ctx, &containerservice.LookupGroupArgs{
Name: "existing",
ResourceGroupName: "existing",
}, nil)
if err != nil {
return err
}
ctx.Export("id", example.Id)
ctx.Export("ipAddress", example.IpAddress)
ctx.Export("fqdn", example.Fqdn)
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.containerservice.ContainerserviceFunctions;
import com.pulumi.azure.containerservice.inputs.GetGroupArgs;
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 example = ContainerserviceFunctions.getGroup(GetGroupArgs.builder()
.name("existing")
.resourceGroupName("existing")
.build());
ctx.export("id", example.applyValue(getGroupResult -> getGroupResult.id()));
ctx.export("ipAddress", example.applyValue(getGroupResult -> getGroupResult.ipAddress()));
ctx.export("fqdn", example.applyValue(getGroupResult -> getGroupResult.fqdn()));
}
}
variables:
example:
fn::invoke:
function: azure:containerservice:getGroup
arguments:
name: existing
resourceGroupName: existing
outputs:
id: ${example.id}
ipAddress: ${example.ipAddress}
fqdn: ${example.fqdn}

Return

A collection of values returned by getGroup.

Parameters

argument

A collection of arguments for invoking getGroup.


suspend fun getGroup(name: String, resourceGroupName: String, zones: List<String>? = null): GetGroupResult

Return

A collection of values returned by getGroup.

Parameters

name

The name of this Container Group instance.

resourceGroupName

The name of the Resource Group where the Container Group instance exists.

zones

A list of Availability Zones in which this Container Group is located.

See also


suspend fun getGroup(argument: suspend GetGroupPlainArgsBuilder.() -> Unit): GetGroupResult

Return

A collection of values returned by getGroup.

Parameters

argument

Builder for com.pulumi.azure.containerservice.kotlin.inputs.GetGroupPlainArgs.

See also