1. Packages
  2. Hpegl Provider
  3. API Docs
  4. getVmaasNetworkPool
hpegl 0.4.18 published on Friday, Apr 18, 2025 by hpe

hpegl.getVmaasNetworkPool

Explore with Pulumi AI

hpegl logo
hpegl 0.4.18 published on Friday, Apr 18, 2025 by hpe

    The hpegl.getVmaasNetworkPool data source can be used to discover the ID of a hpegl vmaas network pool. This can then be used with resources or data sources that require a hpegl_vmaas_network_pool, such as the hpegl.VmaasNetwork resource (for creating non NSX-T segments).

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as hpegl from "@pulumi/hpegl";
    
    const tfPool = hpegl.getVmaasNetworkPool({
        name: "tf_pool",
    });
    
    import pulumi
    import pulumi_hpegl as hpegl
    
    tf_pool = hpegl.get_vmaas_network_pool(name="tf_pool")
    
    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.GetVmaasNetworkPool(ctx, &hpegl.GetVmaasNetworkPoolArgs{
    			Name: "tf_pool",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Hpegl = Pulumi.Hpegl;
    
    return await Deployment.RunAsync(() => 
    {
        var tfPool = Hpegl.GetVmaasNetworkPool.Invoke(new()
        {
            Name = "tf_pool",
        });
    
    });
    
    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.GetVmaasNetworkPoolArgs;
    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 tfPool = HpeglFunctions.getVmaasNetworkPool(GetVmaasNetworkPoolArgs.builder()
                .name("tf_pool")
                .build());
    
        }
    }
    
    variables:
      tfPool:
        fn::invoke:
          function: hpegl:getVmaasNetworkPool
          arguments:
            name: tf_pool
    

    Using getVmaasNetworkPool

    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 getVmaasNetworkPool(args: GetVmaasNetworkPoolArgs, opts?: InvokeOptions): Promise<GetVmaasNetworkPoolResult>
    function getVmaasNetworkPoolOutput(args: GetVmaasNetworkPoolOutputArgs, opts?: InvokeOptions): Output<GetVmaasNetworkPoolResult>
    def get_vmaas_network_pool(id: Optional[str] = None,
                               name: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetVmaasNetworkPoolResult
    def get_vmaas_network_pool_output(id: Optional[pulumi.Input[str]] = None,
                               name: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetVmaasNetworkPoolResult]
    func GetVmaasNetworkPool(ctx *Context, args *GetVmaasNetworkPoolArgs, opts ...InvokeOption) (*GetVmaasNetworkPoolResult, error)
    func GetVmaasNetworkPoolOutput(ctx *Context, args *GetVmaasNetworkPoolOutputArgs, opts ...InvokeOption) GetVmaasNetworkPoolResultOutput

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

    public static class GetVmaasNetworkPool 
    {
        public static Task<GetVmaasNetworkPoolResult> InvokeAsync(GetVmaasNetworkPoolArgs args, InvokeOptions? opts = null)
        public static Output<GetVmaasNetworkPoolResult> Invoke(GetVmaasNetworkPoolInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetVmaasNetworkPoolResult> getVmaasNetworkPool(GetVmaasNetworkPoolArgs args, InvokeOptions options)
    public static Output<GetVmaasNetworkPoolResult> getVmaasNetworkPool(GetVmaasNetworkPoolArgs args, InvokeOptions options)
    
    fn::invoke:
      function: hpegl:index/getVmaasNetworkPool:getVmaasNetworkPool
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    Name of the network pool
    Id string
    The ID of this resource.
    Name string
    Name of the network pool
    Id string
    The ID of this resource.
    name String
    Name of the network pool
    id String
    The ID of this resource.
    name string
    Name of the network pool
    id string
    The ID of this resource.
    name str
    Name of the network pool
    id str
    The ID of this resource.
    name String
    Name of the network pool
    id String
    The ID of this resource.

    getVmaasNetworkPool Result

    The following output properties are available:

    DisplayName string
    Display name of the network pool
    Id string
    The ID of this resource.
    Name string
    Name of the network pool
    DisplayName string
    Display name of the network pool
    Id string
    The ID of this resource.
    Name string
    Name of the network pool
    displayName String
    Display name of the network pool
    id String
    The ID of this resource.
    name String
    Name of the network pool
    displayName string
    Display name of the network pool
    id string
    The ID of this resource.
    name string
    Name of the network pool
    display_name str
    Display name of the network pool
    id str
    The ID of this resource.
    name str
    Name of the network pool
    displayName String
    Display name of the network pool
    id String
    The ID of this resource.
    name String
    Name of the network pool

    Package Details

    Repository
    hpegl hpe/terraform-provider-hpegl
    License
    Notes
    This Pulumi package is based on the hpegl Terraform Provider.
    hpegl logo
    hpegl 0.4.18 published on Friday, Apr 18, 2025 by hpe