GetGroup

Use this data source to get the ID of an OpenStack group.

Note: This usually requires admin privileges.

Example Usage

using Pulumi;
using OpenStack = Pulumi.OpenStack;

class MyStack : Stack
{
    public MyStack()
    {
        var admins = Output.Create(OpenStack.Identity.GetGroup.InvokeAsync(new OpenStack.Identity.GetGroupArgs
        {
            Name = "admins",
        }));
    }

}

Coming soon!

import pulumi
import pulumi_openstack as openstack

admins = openstack.identity.get_group(name="admins")
import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";

const admins = pulumi.output(openstack.identity.getGroup({
    name: "admins",
}, { async: true }));

Using GetGroup

function getGroup(args: GetGroupArgs, opts?: InvokeOptions): Promise<GetGroupResult>
function  get_group(domain_id=None, name=None, region=None, opts=None)
func GetGroup(ctx *Context, args *GetGroupArgs, opts ...InvokeOption) (*GetGroupResult, error)
public static class GetGroup {
    public static Task<GetGroupResult> InvokeAsync(GetGroupArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Name string

The name of the group.

DomainId string

The domain the group belongs to.

Region string

The region in which to obtain the V3 Keystone client. If omitted, the region argument of the provider is used.

Name string

The name of the group.

DomainId string

The domain the group belongs to.

Region string

The region in which to obtain the V3 Keystone client. If omitted, the region argument of the provider is used.

name string

The name of the group.

domainId string

The domain the group belongs to.

region string

The region in which to obtain the V3 Keystone client. If omitted, the region argument of the provider is used.

name str

The name of the group.

domain_id str

The domain the group belongs to.

region str

The region in which to obtain the V3 Keystone client. If omitted, the region argument of the provider is used.

GetGroup Result

The following output properties are available:

Description string

A description of the group.

DomainId string

See Argument Reference above.

Id string

The provider-assigned unique ID for this managed resource.

Name string

See Argument Reference above.

Region string

See Argument Reference above.

Description string

A description of the group.

DomainId string

See Argument Reference above.

Id string

The provider-assigned unique ID for this managed resource.

Name string

See Argument Reference above.

Region string

See Argument Reference above.

description string

A description of the group.

domainId string

See Argument Reference above.

id string

The provider-assigned unique ID for this managed resource.

name string

See Argument Reference above.

region string

See Argument Reference above.

description str

A description of the group.

domain_id str

See Argument Reference above.

id str

The provider-assigned unique ID for this managed resource.

name str

See Argument Reference above.

region str

See Argument Reference above.

Package Details

Repository
https://github.com/pulumi/pulumi-openstack
License
Apache-2.0
Notes
This Pulumi package is based on the openstack Terraform Provider.