getGroup

suspend fun getGroup(argument: GetGroupPlainArgs): GetGroupResult

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

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.management.ManagementFunctions;
import com.pulumi.azure.management.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 = ManagementFunctions.getGroup(GetGroupArgs.builder()
.name("00000000-0000-0000-0000-000000000000")
.build());
ctx.export("displayName", example.applyValue(getGroupResult -> getGroupResult.displayName()));
}
}

Return

A collection of values returned by getGroup.

Parameters

argument

A collection of arguments for invoking getGroup.


suspend fun getGroup(displayName: String? = null, name: String? = null): GetGroupResult

Return

A collection of values returned by getGroup.

See also

Parameters

displayName

Specifies the display name of this Management Group.

NOTE Whilst multiple management groups may share the same display name, when filtering, the provider expects a single management group to be found with this name.

name

Specifies the name or UUID of this Management Group.


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

Return

A collection of values returned by getGroup.

See also

Parameters

argument

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