1. Packages
  2. Hpegl Provider
  3. API Docs
  4. getVmaasGroup
hpegl 0.4.17 published on Monday, Apr 14, 2025 by hpe

hpegl.getVmaasGroup

Explore with Pulumi AI

hpegl 0.4.17 published on Monday, Apr 14, 2025 by hpe

The hpegl.getVmaasGroup data source can be used to discover the ID of a hpegl vmaas group. This can then be used with resources or data sources that require a hpegl_vmaas_group, such as the hpegl.VmaasInstance resource.

Example Usage

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

const defaultGroup = hpegl.getVmaasGroup({
    name: "Default",
});
Copy
import pulumi
import pulumi_hpegl as hpegl

default_group = hpegl.get_vmaas_group(name="Default")
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := hpegl.GetVmaasGroup(ctx, &hpegl.GetVmaasGroupArgs{
			Name: "Default",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Hpegl = Pulumi.Hpegl;

return await Deployment.RunAsync(() => 
{
    var defaultGroup = Hpegl.GetVmaasGroup.Invoke(new()
    {
        Name = "Default",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.hpegl.HpeglFunctions;
import com.pulumi.hpegl.inputs.GetVmaasGroupArgs;
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 defaultGroup = HpeglFunctions.getVmaasGroup(GetVmaasGroupArgs.builder()
            .name("Default")
            .build());

    }
}
Copy
variables:
  defaultGroup:
    fn::invoke:
      function: hpegl:getVmaasGroup
      arguments:
        name: Default
Copy

Using getVmaasGroup

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 getVmaasGroup(args: GetVmaasGroupArgs, opts?: InvokeOptions): Promise<GetVmaasGroupResult>
function getVmaasGroupOutput(args: GetVmaasGroupOutputArgs, opts?: InvokeOptions): Output<GetVmaasGroupResult>
Copy
def get_vmaas_group(id: Optional[str] = None,
                    name: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetVmaasGroupResult
def get_vmaas_group_output(id: Optional[pulumi.Input[str]] = None,
                    name: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetVmaasGroupResult]
Copy
func GetVmaasGroup(ctx *Context, args *GetVmaasGroupArgs, opts ...InvokeOption) (*GetVmaasGroupResult, error)
func GetVmaasGroupOutput(ctx *Context, args *GetVmaasGroupOutputArgs, opts ...InvokeOption) GetVmaasGroupResultOutput
Copy

> Note: This function is named GetVmaasGroup in the Go SDK.

public static class GetVmaasGroup 
{
    public static Task<GetVmaasGroupResult> InvokeAsync(GetVmaasGroupArgs args, InvokeOptions? opts = null)
    public static Output<GetVmaasGroupResult> Invoke(GetVmaasGroupInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetVmaasGroupResult> getVmaasGroup(GetVmaasGroupArgs args, InvokeOptions options)
public static Output<GetVmaasGroupResult> getVmaasGroup(GetVmaasGroupArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: hpegl:index/getVmaasGroup:getVmaasGroup
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Name This property is required. string
Name of the group as it appears on HPE GreenLake for private cloud dashboard. If there is no group with this name, a 'NOT FOUND' error will returned.
Id string
The ID of this resource.
Name This property is required. string
Name of the group as it appears on HPE GreenLake for private cloud dashboard. If there is no group with this name, a 'NOT FOUND' error will returned.
Id string
The ID of this resource.
name This property is required. String
Name of the group as it appears on HPE GreenLake for private cloud dashboard. If there is no group with this name, a 'NOT FOUND' error will returned.
id String
The ID of this resource.
name This property is required. string
Name of the group as it appears on HPE GreenLake for private cloud dashboard. If there is no group with this name, a 'NOT FOUND' error will returned.
id string
The ID of this resource.
name This property is required. str
Name of the group as it appears on HPE GreenLake for private cloud dashboard. If there is no group with this name, a 'NOT FOUND' error will returned.
id str
The ID of this resource.
name This property is required. String
Name of the group as it appears on HPE GreenLake for private cloud dashboard. If there is no group with this name, a 'NOT FOUND' error will returned.
id String
The ID of this resource.

getVmaasGroup Result

The following output properties are available:

Id string
The ID of this resource.
Name string
Name of the group as it appears on HPE GreenLake for private cloud dashboard. If there is no group with this name, a 'NOT FOUND' error will returned.
Id string
The ID of this resource.
Name string
Name of the group as it appears on HPE GreenLake for private cloud dashboard. If there is no group with this name, a 'NOT FOUND' error will returned.
id String
The ID of this resource.
name String
Name of the group as it appears on HPE GreenLake for private cloud dashboard. If there is no group with this name, a 'NOT FOUND' error will returned.
id string
The ID of this resource.
name string
Name of the group as it appears on HPE GreenLake for private cloud dashboard. If there is no group with this name, a 'NOT FOUND' error will returned.
id str
The ID of this resource.
name str
Name of the group as it appears on HPE GreenLake for private cloud dashboard. If there is no group with this name, a 'NOT FOUND' error will returned.
id String
The ID of this resource.
name String
Name of the group as it appears on HPE GreenLake for private cloud dashboard. If there is no group with this name, a 'NOT FOUND' error will returned.

Package Details

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