We recommend using Azure Native.
Azure Classic v6.2.0 published on Friday, Sep 27, 2024 by Pulumi
azure.containerservice.getGroup
Explore with Pulumi AI
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)
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
})
}
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 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}
Using getGroup
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 getGroup(args: GetGroupArgs, opts?: InvokeOptions): Promise<GetGroupResult>
function getGroupOutput(args: GetGroupOutputArgs, opts?: InvokeOptions): Output<GetGroupResult>
def get_group(name: Optional[str] = None,
resource_group_name: Optional[str] = None,
zones: Optional[Sequence[str]] = None,
opts: Optional[InvokeOptions] = None) -> GetGroupResult
def get_group_output(name: Optional[pulumi.Input[str]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None,
zones: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetGroupResult]
func LookupGroup(ctx *Context, args *LookupGroupArgs, opts ...InvokeOption) (*LookupGroupResult, error)
func LookupGroupOutput(ctx *Context, args *LookupGroupOutputArgs, opts ...InvokeOption) LookupGroupResultOutput
> Note: This function is named LookupGroup
in the Go SDK.
public static class GetGroup
{
public static Task<GetGroupResult> InvokeAsync(GetGroupArgs args, InvokeOptions? opts = null)
public static Output<GetGroupResult> Invoke(GetGroupInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetGroupResult> getGroup(GetGroupArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: azure:containerservice/getGroup:getGroup
arguments:
# arguments dictionary
The following arguments are supported:
- Name string
- The name of this Container Group instance.
- Resource
Group stringName - The name of the Resource Group where the Container Group instance exists.
- Zones List<string>
- A list of Availability Zones in which this Container Group is located.
- Name string
- The name of this Container Group instance.
- Resource
Group stringName - The name of the Resource Group where the Container Group instance exists.
- Zones []string
- A list of Availability Zones in which this Container Group is located.
- name String
- The name of this Container Group instance.
- resource
Group StringName - The name of the Resource Group where the Container Group instance exists.
- zones List<String>
- A list of Availability Zones in which this Container Group is located.
- name string
- The name of this Container Group instance.
- resource
Group stringName - The name of the Resource Group where the Container Group instance exists.
- zones string[]
- A list of Availability Zones in which this Container Group is located.
- name str
- The name of this Container Group instance.
- resource_
group_ strname - The name of the Resource Group where the Container Group instance exists.
- zones Sequence[str]
- A list of Availability Zones in which this Container Group is located.
- name String
- The name of this Container Group instance.
- resource
Group StringName - The name of the Resource Group where the Container Group instance exists.
- zones List<String>
- A list of Availability Zones in which this Container Group is located.
getGroup Result
The following output properties are available:
- Fqdn string
- The FQDN of the Container Group instance derived from
dns_name_label
. - Id string
- The provider-assigned unique ID for this managed resource.
- Identities
List<Get
Group Identity> - A
identity
block as defined below. - Ip
Address string - The IP address allocated to the Container Group instance.
- Location string
- The Azure Region where the Container Group instance exists.
- Name string
- Resource
Group stringName - Subnet
Ids List<string> - The subnet resource IDs for a container group.
- Dictionary<string, string>
- A mapping of tags assigned to the Container Group instance.
- Zones List<string>
- A list of Availability Zones in which this Container Group is located.
- Fqdn string
- The FQDN of the Container Group instance derived from
dns_name_label
. - Id string
- The provider-assigned unique ID for this managed resource.
- Identities
[]Get
Group Identity - A
identity
block as defined below. - Ip
Address string - The IP address allocated to the Container Group instance.
- Location string
- The Azure Region where the Container Group instance exists.
- Name string
- Resource
Group stringName - Subnet
Ids []string - The subnet resource IDs for a container group.
- map[string]string
- A mapping of tags assigned to the Container Group instance.
- Zones []string
- A list of Availability Zones in which this Container Group is located.
- fqdn String
- The FQDN of the Container Group instance derived from
dns_name_label
. - id String
- The provider-assigned unique ID for this managed resource.
- identities
List<Get
Group Identity> - A
identity
block as defined below. - ip
Address String - The IP address allocated to the Container Group instance.
- location String
- The Azure Region where the Container Group instance exists.
- name String
- resource
Group StringName - subnet
Ids List<String> - The subnet resource IDs for a container group.
- Map<String,String>
- A mapping of tags assigned to the Container Group instance.
- zones List<String>
- A list of Availability Zones in which this Container Group is located.
- fqdn string
- The FQDN of the Container Group instance derived from
dns_name_label
. - id string
- The provider-assigned unique ID for this managed resource.
- identities
Get
Group Identity[] - A
identity
block as defined below. - ip
Address string - The IP address allocated to the Container Group instance.
- location string
- The Azure Region where the Container Group instance exists.
- name string
- resource
Group stringName - subnet
Ids string[] - The subnet resource IDs for a container group.
- {[key: string]: string}
- A mapping of tags assigned to the Container Group instance.
- zones string[]
- A list of Availability Zones in which this Container Group is located.
- fqdn str
- The FQDN of the Container Group instance derived from
dns_name_label
. - id str
- The provider-assigned unique ID for this managed resource.
- identities
Sequence[Get
Group Identity] - A
identity
block as defined below. - ip_
address str - The IP address allocated to the Container Group instance.
- location str
- The Azure Region where the Container Group instance exists.
- name str
- resource_
group_ strname - subnet_
ids Sequence[str] - The subnet resource IDs for a container group.
- Mapping[str, str]
- A mapping of tags assigned to the Container Group instance.
- zones Sequence[str]
- A list of Availability Zones in which this Container Group is located.
- fqdn String
- The FQDN of the Container Group instance derived from
dns_name_label
. - id String
- The provider-assigned unique ID for this managed resource.
- identities List<Property Map>
- A
identity
block as defined below. - ip
Address String - The IP address allocated to the Container Group instance.
- location String
- The Azure Region where the Container Group instance exists.
- name String
- resource
Group StringName - subnet
Ids List<String> - The subnet resource IDs for a container group.
- Map<String>
- A mapping of tags assigned to the Container Group instance.
- zones List<String>
- A list of Availability Zones in which this Container Group is located.
Supporting Types
GetGroupIdentity
- Identity
Ids List<string> - The list of User Assigned Managed Identity IDs assigned to this Container Group.
- Principal
Id string - The Principal ID of the System Assigned Managed Service Identity that is configured on this Container Group.
- Tenant
Id string - The Tenant ID of the System Assigned Managed Service Identity that is configured on this Container Group.
- Type string
- Type of Managed Service Identity configured on this Container Group.
- Identity
Ids []string - The list of User Assigned Managed Identity IDs assigned to this Container Group.
- Principal
Id string - The Principal ID of the System Assigned Managed Service Identity that is configured on this Container Group.
- Tenant
Id string - The Tenant ID of the System Assigned Managed Service Identity that is configured on this Container Group.
- Type string
- Type of Managed Service Identity configured on this Container Group.
- identity
Ids List<String> - The list of User Assigned Managed Identity IDs assigned to this Container Group.
- principal
Id String - The Principal ID of the System Assigned Managed Service Identity that is configured on this Container Group.
- tenant
Id String - The Tenant ID of the System Assigned Managed Service Identity that is configured on this Container Group.
- type String
- Type of Managed Service Identity configured on this Container Group.
- identity
Ids string[] - The list of User Assigned Managed Identity IDs assigned to this Container Group.
- principal
Id string - The Principal ID of the System Assigned Managed Service Identity that is configured on this Container Group.
- tenant
Id string - The Tenant ID of the System Assigned Managed Service Identity that is configured on this Container Group.
- type string
- Type of Managed Service Identity configured on this Container Group.
- identity_
ids Sequence[str] - The list of User Assigned Managed Identity IDs assigned to this Container Group.
- principal_
id str - The Principal ID of the System Assigned Managed Service Identity that is configured on this Container Group.
- tenant_
id str - The Tenant ID of the System Assigned Managed Service Identity that is configured on this Container Group.
- type str
- Type of Managed Service Identity configured on this Container Group.
- identity
Ids List<String> - The list of User Assigned Managed Identity IDs assigned to this Container Group.
- principal
Id String - The Principal ID of the System Assigned Managed Service Identity that is configured on this Container Group.
- tenant
Id String - The Tenant ID of the System Assigned Managed Service Identity that is configured on this Container Group.
- type String
- Type of Managed Service Identity configured on this Container Group.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurerm
Terraform Provider.