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

hpegl.getVmaasCloud

Explore with Pulumi AI

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

The hpegl.getVmaasCloud data source can be used to discover the ID of a hpegl vmaas Cloud. This can then be used with resources or data sources that require a hpegl vmaas cloud, such as the hpegl.getVmaasDatastore data source, hpegl.VmaasInstance resource, etc.

Example Usage

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

const cloud = hpegl.getVmaasCloud({
    name: "HPE GreenLake VMaaS Cloud",
});
Copy
import pulumi
import pulumi_hpegl as hpegl

cloud = hpegl.get_vmaas_cloud(name="HPE GreenLake VMaaS Cloud")
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.GetVmaasCloud(ctx, &hpegl.GetVmaasCloudArgs{
			Name: "HPE GreenLake VMaaS Cloud",
		}, 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 cloud = Hpegl.GetVmaasCloud.Invoke(new()
    {
        Name = "HPE GreenLake VMaaS Cloud",
    });

});
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.GetVmaasCloudArgs;
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 cloud = HpeglFunctions.getVmaasCloud(GetVmaasCloudArgs.builder()
            .name("HPE GreenLake VMaaS Cloud")
            .build());

    }
}
Copy
variables:
  cloud:
    fn::invoke:
      function: hpegl:getVmaasCloud
      arguments:
        name: HPE GreenLake VMaaS Cloud
Copy

Using getVmaasCloud

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 getVmaasCloud(args: GetVmaasCloudArgs, opts?: InvokeOptions): Promise<GetVmaasCloudResult>
function getVmaasCloudOutput(args: GetVmaasCloudOutputArgs, opts?: InvokeOptions): Output<GetVmaasCloudResult>
Copy
def get_vmaas_cloud(id: Optional[str] = None,
                    name: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetVmaasCloudResult
def get_vmaas_cloud_output(id: Optional[pulumi.Input[str]] = None,
                    name: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetVmaasCloudResult]
Copy
func GetVmaasCloud(ctx *Context, args *GetVmaasCloudArgs, opts ...InvokeOption) (*GetVmaasCloudResult, error)
func GetVmaasCloudOutput(ctx *Context, args *GetVmaasCloudOutputArgs, opts ...InvokeOption) GetVmaasCloudResultOutput
Copy

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

public static class GetVmaasCloud 
{
    public static Task<GetVmaasCloudResult> InvokeAsync(GetVmaasCloudArgs args, InvokeOptions? opts = null)
    public static Output<GetVmaasCloudResult> Invoke(GetVmaasCloudInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetVmaasCloudResult> getVmaasCloud(GetVmaasCloudArgs args, InvokeOptions options)
public static Output<GetVmaasCloudResult> getVmaasCloud(GetVmaasCloudArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: hpegl:index/getVmaasCloud:getVmaasCloud
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Name This property is required. string
Name of the cloud as it appears on HPE GreenLake for private cloud dashboard. If there is no cloud 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 cloud as it appears on HPE GreenLake for private cloud dashboard. If there is no cloud 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 cloud as it appears on HPE GreenLake for private cloud dashboard. If there is no cloud 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 cloud as it appears on HPE GreenLake for private cloud dashboard. If there is no cloud 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 cloud as it appears on HPE GreenLake for private cloud dashboard. If there is no cloud 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 cloud as it appears on HPE GreenLake for private cloud dashboard. If there is no cloud with this name, a 'NOT FOUND' error will returned.
id String
The ID of this resource.

getVmaasCloud Result

The following output properties are available:

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