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

hpegl.getVmaasEdgeCluster

Explore with Pulumi AI

The hpegl.getVmaasEdgeCluster data source can be used to discover the Provider ID of a hpegl vmaas Edge cluster. This can then be used with resources or data sources that require a hpegl.getVmaasEdgeCluster

Example Usage

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

const tfEdgeCluster = hpegl.getVmaasEdgeCluster({
    name: "nsx_edge_cluster",
});
Copy
import pulumi
import pulumi_hpegl as hpegl

tf_edge_cluster = hpegl.get_vmaas_edge_cluster(name="nsx_edge_cluster")
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.GetVmaasEdgeCluster(ctx, &hpegl.GetVmaasEdgeClusterArgs{
			Name: "nsx_edge_cluster",
		}, 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 tfEdgeCluster = Hpegl.GetVmaasEdgeCluster.Invoke(new()
    {
        Name = "nsx_edge_cluster",
    });

});
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.GetVmaasEdgeClusterArgs;
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 tfEdgeCluster = HpeglFunctions.getVmaasEdgeCluster(GetVmaasEdgeClusterArgs.builder()
            .name("nsx_edge_cluster")
            .build());

    }
}
Copy
variables:
  tfEdgeCluster:
    fn::invoke:
      function: hpegl:getVmaasEdgeCluster
      arguments:
        name: nsx_edge_cluster
Copy

Using getVmaasEdgeCluster

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 getVmaasEdgeCluster(args: GetVmaasEdgeClusterArgs, opts?: InvokeOptions): Promise<GetVmaasEdgeClusterResult>
function getVmaasEdgeClusterOutput(args: GetVmaasEdgeClusterOutputArgs, opts?: InvokeOptions): Output<GetVmaasEdgeClusterResult>
Copy
def get_vmaas_edge_cluster(id: Optional[str] = None,
                           name: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetVmaasEdgeClusterResult
def get_vmaas_edge_cluster_output(id: Optional[pulumi.Input[str]] = None,
                           name: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetVmaasEdgeClusterResult]
Copy
func GetVmaasEdgeCluster(ctx *Context, args *GetVmaasEdgeClusterArgs, opts ...InvokeOption) (*GetVmaasEdgeClusterResult, error)
func GetVmaasEdgeClusterOutput(ctx *Context, args *GetVmaasEdgeClusterOutputArgs, opts ...InvokeOption) GetVmaasEdgeClusterResultOutput
Copy

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

public static class GetVmaasEdgeCluster 
{
    public static Task<GetVmaasEdgeClusterResult> InvokeAsync(GetVmaasEdgeClusterArgs args, InvokeOptions? opts = null)
    public static Output<GetVmaasEdgeClusterResult> Invoke(GetVmaasEdgeClusterInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetVmaasEdgeClusterResult> getVmaasEdgeCluster(GetVmaasEdgeClusterArgs args, InvokeOptions options)
public static Output<GetVmaasEdgeClusterResult> getVmaasEdgeCluster(GetVmaasEdgeClusterArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: hpegl:index/getVmaasEdgeCluster:getVmaasEdgeCluster
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

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

getVmaasEdgeCluster Result

The following output properties are available:

ExternalId string
Id string
The ID of this resource.
InternalId string
Name string
Name of the Edge Cluster as it appears on HPE GreenLake for private cloud dashboard. If there is no Edge Cluster with this name, a 'NOT FOUND' error will returned.
ProviderId string
ProviderId of the Edge Cluster. Use the provider_id as EdgeCluster while creating NSX-T Router
ExternalId string
Id string
The ID of this resource.
InternalId string
Name string
Name of the Edge Cluster as it appears on HPE GreenLake for private cloud dashboard. If there is no Edge Cluster with this name, a 'NOT FOUND' error will returned.
ProviderId string
ProviderId of the Edge Cluster. Use the provider_id as EdgeCluster while creating NSX-T Router
externalId String
id String
The ID of this resource.
internalId String
name String
Name of the Edge Cluster as it appears on HPE GreenLake for private cloud dashboard. If there is no Edge Cluster with this name, a 'NOT FOUND' error will returned.
providerId String
ProviderId of the Edge Cluster. Use the provider_id as EdgeCluster while creating NSX-T Router
externalId string
id string
The ID of this resource.
internalId string
name string
Name of the Edge Cluster as it appears on HPE GreenLake for private cloud dashboard. If there is no Edge Cluster with this name, a 'NOT FOUND' error will returned.
providerId string
ProviderId of the Edge Cluster. Use the provider_id as EdgeCluster while creating NSX-T Router
external_id str
id str
The ID of this resource.
internal_id str
name str
Name of the Edge Cluster as it appears on HPE GreenLake for private cloud dashboard. If there is no Edge Cluster with this name, a 'NOT FOUND' error will returned.
provider_id str
ProviderId of the Edge Cluster. Use the provider_id as EdgeCluster while creating NSX-T Router
externalId String
id String
The ID of this resource.
internalId String
name String
Name of the Edge Cluster as it appears on HPE GreenLake for private cloud dashboard. If there is no Edge Cluster with this name, a 'NOT FOUND' error will returned.
providerId String
ProviderId of the Edge Cluster. Use the provider_id as EdgeCluster while creating NSX-T Router

Package Details

Repository
hpegl hpe/terraform-provider-hpegl
License
Notes
This Pulumi package is based on the hpegl Terraform Provider.