vcd 3.14.1 published on Monday, Apr 14, 2025 by vmware
vcd.getNetworkPool
Explore with Pulumi AI
Provides a data source for a network pool attached to a VCD.
Supported in provider v3.10+
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as vcd from "@pulumi/vcd";
const np1 = vcd.getNetworkPool({
name: "NSX-T Overlay 1",
});
import pulumi
import pulumi_vcd as vcd
np1 = vcd.get_network_pool(name="NSX-T Overlay 1")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/vcd/v3/vcd"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vcd.LookupNetworkPool(ctx, &vcd.LookupNetworkPoolArgs{
Name: "NSX-T Overlay 1",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vcd = Pulumi.Vcd;
return await Deployment.RunAsync(() =>
{
var np1 = Vcd.GetNetworkPool.Invoke(new()
{
Name = "NSX-T Overlay 1",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vcd.VcdFunctions;
import com.pulumi.vcd.inputs.GetNetworkPoolArgs;
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 np1 = VcdFunctions.getNetworkPool(GetNetworkPoolArgs.builder()
.name("NSX-T Overlay 1")
.build());
}
}
variables:
np1:
fn::invoke:
function: vcd:getNetworkPool
arguments:
name: NSX-T Overlay 1
Using getNetworkPool
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 getNetworkPool(args: GetNetworkPoolArgs, opts?: InvokeOptions): Promise<GetNetworkPoolResult>
function getNetworkPoolOutput(args: GetNetworkPoolOutputArgs, opts?: InvokeOptions): Output<GetNetworkPoolResult>
def get_network_pool(id: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetNetworkPoolResult
def get_network_pool_output(id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetNetworkPoolResult]
func LookupNetworkPool(ctx *Context, args *LookupNetworkPoolArgs, opts ...InvokeOption) (*LookupNetworkPoolResult, error)
func LookupNetworkPoolOutput(ctx *Context, args *LookupNetworkPoolOutputArgs, opts ...InvokeOption) LookupNetworkPoolResultOutput
> Note: This function is named LookupNetworkPool
in the Go SDK.
public static class GetNetworkPool
{
public static Task<GetNetworkPoolResult> InvokeAsync(GetNetworkPoolArgs args, InvokeOptions? opts = null)
public static Output<GetNetworkPoolResult> Invoke(GetNetworkPoolInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetNetworkPoolResult> getNetworkPool(GetNetworkPoolArgs args, InvokeOptions options)
public static Output<GetNetworkPoolResult> getNetworkPool(GetNetworkPoolArgs args, InvokeOptions options)
fn::invoke:
function: vcd:index/getNetworkPool:getNetworkPool
arguments:
# arguments dictionary
The following arguments are supported:
getNetworkPool Result
The following output properties are available:
- Backings
List<Get
Network Pool Backing> - Description string
- Id string
- Name string
- Network
Provider stringId - Network
Provider stringName - Network
Provider stringType - Promiscuous
Mode bool - Status string
- Total
Backings doubleCount - Type string
- Used
Backings doubleCount
- Backings
[]Get
Network Pool Backing - Description string
- Id string
- Name string
- Network
Provider stringId - Network
Provider stringName - Network
Provider stringType - Promiscuous
Mode bool - Status string
- Total
Backings float64Count - Type string
- Used
Backings float64Count
- backings
List<Get
Network Pool Backing> - description String
- id String
- name String
- network
Provider StringId - network
Provider StringName - network
Provider StringType - promiscuous
Mode Boolean - status String
- total
Backings DoubleCount - type String
- used
Backings DoubleCount
- backings
Get
Network Pool Backing[] - description string
- id string
- name string
- network
Provider stringId - network
Provider stringName - network
Provider stringType - promiscuous
Mode boolean - status string
- total
Backings numberCount - type string
- used
Backings numberCount
- backings
Sequence[Get
Network Pool Backing] - description str
- id str
- name str
- network_
provider_ strid - network_
provider_ strname - network_
provider_ strtype - promiscuous_
mode bool - status str
- total_
backings_ floatcount - type str
- used_
backings_ floatcount
- backings List<Property Map>
- description String
- id String
- name String
- network
Provider StringId - network
Provider StringName - network
Provider StringType - promiscuous
Mode Boolean - status String
- total
Backings NumberCount - type String
- used
Backings NumberCount
Supporting Types
GetNetworkPoolBacking
GetNetworkPoolBackingDistributedSwitch
GetNetworkPoolBackingPortGroup
GetNetworkPoolBackingRangeId
GetNetworkPoolBackingTransportZone
Package Details
- Repository
- vcd vmware/terraform-provider-vcd
- License
- Notes
- This Pulumi package is based on the
vcd
Terraform Provider.