1. Packages
  2. Opennebula Provider
  3. API Docs
  4. getGroup
opennebula 1.4.1 published on Monday, Apr 14, 2025 by opennebula

opennebula.getGroup

Explore with Pulumi AI

opennebula 1.4.1 published on Monday, Apr 14, 2025 by opennebula

Use this data source to retrieve the group information for a given name.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as opennebula from "@pulumi/opennebula";

const example = opennebula.getGroup({
    name: "My_Service_Group",
});
Copy
import pulumi
import pulumi_opennebula as opennebula

example = opennebula.get_group(name="My_Service_Group")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opennebula/opennebula"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := opennebula.LookupGroup(ctx, &opennebula.LookupGroupArgs{
			Name: pulumi.StringRef("My_Service_Group"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opennebula = Pulumi.Opennebula;

return await Deployment.RunAsync(() => 
{
    var example = Opennebula.GetGroup.Invoke(new()
    {
        Name = "My_Service_Group",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opennebula.OpennebulaFunctions;
import com.pulumi.opennebula.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 = OpennebulaFunctions.getGroup(GetGroupArgs.builder()
            .name("My_Service_Group")
            .build());

    }
}
Copy
variables:
  example:
    fn::invoke:
      function: opennebula:getGroup
      arguments:
        name: My_Service_Group
Copy

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>
Copy
def get_group(id: Optional[float] = None,
              name: Optional[str] = None,
              tags: Optional[Mapping[str, str]] = None,
              opts: Optional[InvokeOptions] = None) -> GetGroupResult
def get_group_output(id: Optional[pulumi.Input[float]] = None,
              name: Optional[pulumi.Input[str]] = None,
              tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
              opts: Optional[InvokeOptions] = None) -> Output[GetGroupResult]
Copy
func LookupGroup(ctx *Context, args *LookupGroupArgs, opts ...InvokeOption) (*LookupGroupResult, error)
func LookupGroupOutput(ctx *Context, args *LookupGroupOutputArgs, opts ...InvokeOption) LookupGroupResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetGroupResult> getGroup(GetGroupArgs args, InvokeOptions options)
public static Output<GetGroupResult> getGroup(GetGroupArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: opennebula:index/getGroup:getGroup
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Id double
ID of the group.
Name string
The OpenNebula group to retrieve information for.
Tags Dictionary<string, string>
Tags associated to the Image.
Id float64
ID of the group.
Name string
The OpenNebula group to retrieve information for.
Tags map[string]string
Tags associated to the Image.
id Double
ID of the group.
name String
The OpenNebula group to retrieve information for.
tags Map<String,String>
Tags associated to the Image.
id number
ID of the group.
name string
The OpenNebula group to retrieve information for.
tags {[key: string]: string}
Tags associated to the Image.
id float
ID of the group.
name str
The OpenNebula group to retrieve information for.
tags Mapping[str, str]
Tags associated to the Image.
id Number
ID of the group.
name String
The OpenNebula group to retrieve information for.
tags Map<String>
Tags associated to the Image.

getGroup Result

The following output properties are available:

Admins List<double>
List of Administrator user IDs part of the group.
Id double
ID of the group.
Name string
Name of the group.
Tags Dictionary<string, string>
Tags of the group (Key = Value).
Admins []float64
List of Administrator user IDs part of the group.
Id float64
ID of the group.
Name string
Name of the group.
Tags map[string]string
Tags of the group (Key = Value).
admins List<Double>
List of Administrator user IDs part of the group.
id Double
ID of the group.
name String
Name of the group.
tags Map<String,String>
Tags of the group (Key = Value).
admins number[]
List of Administrator user IDs part of the group.
id number
ID of the group.
name string
Name of the group.
tags {[key: string]: string}
Tags of the group (Key = Value).
admins Sequence[float]
List of Administrator user IDs part of the group.
id float
ID of the group.
name str
Name of the group.
tags Mapping[str, str]
Tags of the group (Key = Value).
admins List<Number>
List of Administrator user IDs part of the group.
id Number
ID of the group.
name String
Name of the group.
tags Map<String>
Tags of the group (Key = Value).

Package Details

Repository
opennebula opennebula/terraform-provider-opennebula
License
Notes
This Pulumi package is based on the opennebula Terraform Provider.
opennebula 1.4.1 published on Monday, Apr 14, 2025 by opennebula