nsxt 3.9.0 published on Friday, Jun 20, 2025 by vmware
nsxt.getPolicyEdgeNode
Explore with Pulumi AI
This data source provides information about policy edge nodes configured within a cluster, on NSX.
This data source is applicable to NSX Global Manager and NSX Policy Manager.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as nsxt from "@pulumi/nsxt";
const ec = nsxt.getPolicyEdgeCluster({
displayName: "ec",
});
const node1 = ec.then(ec => nsxt.getPolicyEdgeNode({
edgeClusterPath: ec.path,
memberIndex: 0,
}));
import pulumi
import pulumi_nsxt as nsxt
ec = nsxt.get_policy_edge_cluster(display_name="ec")
node1 = nsxt.get_policy_edge_node(edge_cluster_path=ec.path,
member_index=0)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/nsxt/v3/nsxt"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
ec, err := nsxt.LookupPolicyEdgeCluster(ctx, &nsxt.LookupPolicyEdgeClusterArgs{
DisplayName: pulumi.StringRef("ec"),
}, nil)
if err != nil {
return err
}
_, err = nsxt.GetPolicyEdgeNode(ctx, &nsxt.GetPolicyEdgeNodeArgs{
EdgeClusterPath: ec.Path,
MemberIndex: pulumi.Float64Ref(0),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Nsxt = Pulumi.Nsxt;
return await Deployment.RunAsync(() =>
{
var ec = Nsxt.GetPolicyEdgeCluster.Invoke(new()
{
DisplayName = "ec",
});
var node1 = Nsxt.GetPolicyEdgeNode.Invoke(new()
{
EdgeClusterPath = ec.Apply(getPolicyEdgeClusterResult => getPolicyEdgeClusterResult.Path),
MemberIndex = 0,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.nsxt.NsxtFunctions;
import com.pulumi.nsxt.inputs.GetPolicyEdgeClusterArgs;
import com.pulumi.nsxt.inputs.GetPolicyEdgeNodeArgs;
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 ec = NsxtFunctions.getPolicyEdgeCluster(GetPolicyEdgeClusterArgs.builder()
.displayName("ec")
.build());
final var node1 = NsxtFunctions.getPolicyEdgeNode(GetPolicyEdgeNodeArgs.builder()
.edgeClusterPath(ec.applyValue(getPolicyEdgeClusterResult -> getPolicyEdgeClusterResult.path()))
.memberIndex(0)
.build());
}
}
variables:
ec:
fn::invoke:
function: nsxt:getPolicyEdgeCluster
arguments:
displayName: ec
node1:
fn::invoke:
function: nsxt:getPolicyEdgeNode
arguments:
edgeClusterPath: ${ec.path}
memberIndex: 0
Using getPolicyEdgeNode
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 getPolicyEdgeNode(args: GetPolicyEdgeNodeArgs, opts?: InvokeOptions): Promise<GetPolicyEdgeNodeResult>
function getPolicyEdgeNodeOutput(args: GetPolicyEdgeNodeOutputArgs, opts?: InvokeOptions): Output<GetPolicyEdgeNodeResult>
def get_policy_edge_node(description: Optional[str] = None,
display_name: Optional[str] = None,
edge_cluster_path: Optional[str] = None,
id: Optional[str] = None,
member_index: Optional[float] = None,
opts: Optional[InvokeOptions] = None) -> GetPolicyEdgeNodeResult
def get_policy_edge_node_output(description: Optional[pulumi.Input[str]] = None,
display_name: Optional[pulumi.Input[str]] = None,
edge_cluster_path: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
member_index: Optional[pulumi.Input[float]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPolicyEdgeNodeResult]
func GetPolicyEdgeNode(ctx *Context, args *GetPolicyEdgeNodeArgs, opts ...InvokeOption) (*GetPolicyEdgeNodeResult, error)
func GetPolicyEdgeNodeOutput(ctx *Context, args *GetPolicyEdgeNodeOutputArgs, opts ...InvokeOption) GetPolicyEdgeNodeResultOutput
> Note: This function is named GetPolicyEdgeNode
in the Go SDK.
public static class GetPolicyEdgeNode
{
public static Task<GetPolicyEdgeNodeResult> InvokeAsync(GetPolicyEdgeNodeArgs args, InvokeOptions? opts = null)
public static Output<GetPolicyEdgeNodeResult> Invoke(GetPolicyEdgeNodeInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetPolicyEdgeNodeResult> getPolicyEdgeNode(GetPolicyEdgeNodeArgs args, InvokeOptions options)
public static Output<GetPolicyEdgeNodeResult> getPolicyEdgeNode(GetPolicyEdgeNodeArgs args, InvokeOptions options)
fn::invoke:
function: nsxt:index/getPolicyEdgeNode:getPolicyEdgeNode
arguments:
# arguments dictionary
The following arguments are supported:
- Edge
Cluster stringPath - The path of edge cluster where to which this node belongs.
- Description string
- The description of the resource.
- Display
Name string - The Display Name prefix of the edge node to retrieve.
- Id string
- The ID of the edge node to retrieve.
- Member
Index double - Member index of the node in edge cluster.
- Edge
Cluster stringPath - The path of edge cluster where to which this node belongs.
- Description string
- The description of the resource.
- Display
Name string - The Display Name prefix of the edge node to retrieve.
- Id string
- The ID of the edge node to retrieve.
- Member
Index float64 - Member index of the node in edge cluster.
- edge
Cluster StringPath - The path of edge cluster where to which this node belongs.
- description String
- The description of the resource.
- display
Name String - The Display Name prefix of the edge node to retrieve.
- id String
- The ID of the edge node to retrieve.
- member
Index Double - Member index of the node in edge cluster.
- edge
Cluster stringPath - The path of edge cluster where to which this node belongs.
- description string
- The description of the resource.
- display
Name string - The Display Name prefix of the edge node to retrieve.
- id string
- The ID of the edge node to retrieve.
- member
Index number - Member index of the node in edge cluster.
- edge_
cluster_ strpath - The path of edge cluster where to which this node belongs.
- description str
- The description of the resource.
- display_
name str - The Display Name prefix of the edge node to retrieve.
- id str
- The ID of the edge node to retrieve.
- member_
index float - Member index of the node in edge cluster.
- edge
Cluster StringPath - The path of edge cluster where to which this node belongs.
- description String
- The description of the resource.
- display
Name String - The Display Name prefix of the edge node to retrieve.
- id String
- The ID of the edge node to retrieve.
- member
Index Number - Member index of the node in edge cluster.
getPolicyEdgeNode Result
The following output properties are available:
- Description string
- The description of the resource.
- Display
Name string - Edge
Cluster stringPath - Id string
- Path string
- The NSX path of the policy resource.
- Member
Index double
- Description string
- The description of the resource.
- Display
Name string - Edge
Cluster stringPath - Id string
- Path string
- The NSX path of the policy resource.
- Member
Index float64
- description String
- The description of the resource.
- display
Name String - edge
Cluster StringPath - id String
- path String
- The NSX path of the policy resource.
- member
Index Double
- description string
- The description of the resource.
- display
Name string - edge
Cluster stringPath - id string
- path string
- The NSX path of the policy resource.
- member
Index number
- description str
- The description of the resource.
- display_
name str - edge_
cluster_ strpath - id str
- path str
- The NSX path of the policy resource.
- member_
index float
- description String
- The description of the resource.
- display
Name String - edge
Cluster StringPath - id String
- path String
- The NSX path of the policy resource.
- member
Index Number
Package Details
- Repository
- nsxt vmware/terraform-provider-nsxt
- License
- Notes
- This Pulumi package is based on the
nsxt
Terraform Provider.