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

hpegl.getVmaasNetworkInterface

Explore with Pulumi AI

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

Example Usage

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

const e1000 = hpegl.getVmaasNetworkInterface({
    name: "E1000",
    cloudId: data.hpegl_vmaas_cloud.cloud.id,
});
Copy
import pulumi
import pulumi_hpegl as hpegl

e1000 = hpegl.get_vmaas_network_interface(name="E1000",
    cloud_id=data["hpegl_vmaas_cloud"]["cloud"]["id"])
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.GetVmaasNetworkInterface(ctx, &hpegl.GetVmaasNetworkInterfaceArgs{
			Name:    "E1000",
			CloudId: data.Hpegl_vmaas_cloud.Cloud.Id,
		}, 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 e1000 = Hpegl.GetVmaasNetworkInterface.Invoke(new()
    {
        Name = "E1000",
        CloudId = data.Hpegl_vmaas_cloud.Cloud.Id,
    });

});
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.GetVmaasNetworkInterfaceArgs;
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 e1000 = HpeglFunctions.getVmaasNetworkInterface(GetVmaasNetworkInterfaceArgs.builder()
            .name("E1000")
            .cloudId(data.hpegl_vmaas_cloud().cloud().id())
            .build());

    }
}
Copy
variables:
  e1000:
    fn::invoke:
      function: hpegl:getVmaasNetworkInterface
      arguments:
        name: E1000
        cloudId: ${data.hpegl_vmaas_cloud.cloud.id}
Copy

Using getVmaasNetworkInterface

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 getVmaasNetworkInterface(args: GetVmaasNetworkInterfaceArgs, opts?: InvokeOptions): Promise<GetVmaasNetworkInterfaceResult>
function getVmaasNetworkInterfaceOutput(args: GetVmaasNetworkInterfaceOutputArgs, opts?: InvokeOptions): Output<GetVmaasNetworkInterfaceResult>
Copy
def get_vmaas_network_interface(cloud_id: Optional[float] = None,
                                id: Optional[str] = None,
                                name: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetVmaasNetworkInterfaceResult
def get_vmaas_network_interface_output(cloud_id: Optional[pulumi.Input[float]] = None,
                                id: Optional[pulumi.Input[str]] = None,
                                name: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetVmaasNetworkInterfaceResult]
Copy
func GetVmaasNetworkInterface(ctx *Context, args *GetVmaasNetworkInterfaceArgs, opts ...InvokeOption) (*GetVmaasNetworkInterfaceResult, error)
func GetVmaasNetworkInterfaceOutput(ctx *Context, args *GetVmaasNetworkInterfaceOutputArgs, opts ...InvokeOption) GetVmaasNetworkInterfaceResultOutput
Copy

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

public static class GetVmaasNetworkInterface 
{
    public static Task<GetVmaasNetworkInterfaceResult> InvokeAsync(GetVmaasNetworkInterfaceArgs args, InvokeOptions? opts = null)
    public static Output<GetVmaasNetworkInterfaceResult> Invoke(GetVmaasNetworkInterfaceInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetVmaasNetworkInterfaceResult> getVmaasNetworkInterface(GetVmaasNetworkInterfaceArgs args, InvokeOptions options)
public static Output<GetVmaasNetworkInterfaceResult> getVmaasNetworkInterface(GetVmaasNetworkInterfaceArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: hpegl:index/getVmaasNetworkInterface:getVmaasNetworkInterface
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

CloudId This property is required. double
Unique ID to identify a cloud.
Name This property is required. string
Name of the Network Interface Type as it appears on HPE GreenLake for private cloud dashboard. If there is no Network Interface Type with this name, a 'NOT FOUND' error will returned.
Id string
The ID of this resource.
CloudId This property is required. float64
Unique ID to identify a cloud.
Name This property is required. string
Name of the Network Interface Type as it appears on HPE GreenLake for private cloud dashboard. If there is no Network Interface Type with this name, a 'NOT FOUND' error will returned.
Id string
The ID of this resource.
cloudId This property is required. Double
Unique ID to identify a cloud.
name This property is required. String
Name of the Network Interface Type as it appears on HPE GreenLake for private cloud dashboard. If there is no Network Interface Type with this name, a 'NOT FOUND' error will returned.
id String
The ID of this resource.
cloudId This property is required. number
Unique ID to identify a cloud.
name This property is required. string
Name of the Network Interface Type as it appears on HPE GreenLake for private cloud dashboard. If there is no Network Interface Type with this name, a 'NOT FOUND' error will returned.
id string
The ID of this resource.
cloud_id This property is required. float
Unique ID to identify a cloud.
name This property is required. str
Name of the Network Interface Type as it appears on HPE GreenLake for private cloud dashboard. If there is no Network Interface Type with this name, a 'NOT FOUND' error will returned.
id str
The ID of this resource.
cloudId This property is required. Number
Unique ID to identify a cloud.
name This property is required. String
Name of the Network Interface Type as it appears on HPE GreenLake for private cloud dashboard. If there is no Network Interface Type with this name, a 'NOT FOUND' error will returned.
id String
The ID of this resource.

getVmaasNetworkInterface Result

The following output properties are available:

CloudId double
Unique ID to identify a cloud.
Code string
code corresponding to the network interface type
Id string
The ID of this resource.
Name string
Name of the Network Interface Type as it appears on HPE GreenLake for private cloud dashboard. If there is no Network Interface Type with this name, a 'NOT FOUND' error will returned.
CloudId float64
Unique ID to identify a cloud.
Code string
code corresponding to the network interface type
Id string
The ID of this resource.
Name string
Name of the Network Interface Type as it appears on HPE GreenLake for private cloud dashboard. If there is no Network Interface Type with this name, a 'NOT FOUND' error will returned.
cloudId Double
Unique ID to identify a cloud.
code String
code corresponding to the network interface type
id String
The ID of this resource.
name String
Name of the Network Interface Type as it appears on HPE GreenLake for private cloud dashboard. If there is no Network Interface Type with this name, a 'NOT FOUND' error will returned.
cloudId number
Unique ID to identify a cloud.
code string
code corresponding to the network interface type
id string
The ID of this resource.
name string
Name of the Network Interface Type as it appears on HPE GreenLake for private cloud dashboard. If there is no Network Interface Type with this name, a 'NOT FOUND' error will returned.
cloud_id float
Unique ID to identify a cloud.
code str
code corresponding to the network interface type
id str
The ID of this resource.
name str
Name of the Network Interface Type as it appears on HPE GreenLake for private cloud dashboard. If there is no Network Interface Type with this name, a 'NOT FOUND' error will returned.
cloudId Number
Unique ID to identify a cloud.
code String
code corresponding to the network interface type
id String
The ID of this resource.
name String
Name of the Network Interface Type as it appears on HPE GreenLake for private cloud dashboard. If there is no Network Interface Type 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.