vcd 3.14.1 published on Monday, Apr 14, 2025 by vmware
vcd.getNsxvIpSet
Explore with Pulumi AI
Provides a VMware Cloud Director IP set data source. An IP set is a group of IP addresses that you can add as the source or destination in a firewall rule or in DHCP relay configuration.
Supported in provider v2.6+
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as vcd from "@pulumi/vcd";
const ip_set_DS = vcd.getNsxvIpSet({
name: "not-managed",
org: "my-org",
vdc: "my-org-vdc",
});
import pulumi
import pulumi_vcd as vcd
ip_set__ds = vcd.get_nsxv_ip_set(name="not-managed",
org="my-org",
vdc="my-org-vdc")
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.LookupNsxvIpSet(ctx, &vcd.LookupNsxvIpSetArgs{
Name: "not-managed",
Org: pulumi.StringRef("my-org"),
Vdc: pulumi.StringRef("my-org-vdc"),
}, 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 ip_set_DS = Vcd.GetNsxvIpSet.Invoke(new()
{
Name = "not-managed",
Org = "my-org",
Vdc = "my-org-vdc",
});
});
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.GetNsxvIpSetArgs;
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 ip-set-DS = VcdFunctions.getNsxvIpSet(GetNsxvIpSetArgs.builder()
.name("not-managed")
.org("my-org")
.vdc("my-org-vdc")
.build());
}
}
variables:
ip-set-DS:
fn::invoke:
function: vcd:getNsxvIpSet
arguments:
name: not-managed
org: my-org
vdc: my-org-vdc
Using getNsxvIpSet
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 getNsxvIpSet(args: GetNsxvIpSetArgs, opts?: InvokeOptions): Promise<GetNsxvIpSetResult>
function getNsxvIpSetOutput(args: GetNsxvIpSetOutputArgs, opts?: InvokeOptions): Output<GetNsxvIpSetResult>
def get_nsxv_ip_set(id: Optional[str] = None,
name: Optional[str] = None,
org: Optional[str] = None,
vdc: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetNsxvIpSetResult
def get_nsxv_ip_set_output(id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
org: Optional[pulumi.Input[str]] = None,
vdc: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetNsxvIpSetResult]
func LookupNsxvIpSet(ctx *Context, args *LookupNsxvIpSetArgs, opts ...InvokeOption) (*LookupNsxvIpSetResult, error)
func LookupNsxvIpSetOutput(ctx *Context, args *LookupNsxvIpSetOutputArgs, opts ...InvokeOption) LookupNsxvIpSetResultOutput
> Note: This function is named LookupNsxvIpSet
in the Go SDK.
public static class GetNsxvIpSet
{
public static Task<GetNsxvIpSetResult> InvokeAsync(GetNsxvIpSetArgs args, InvokeOptions? opts = null)
public static Output<GetNsxvIpSetResult> Invoke(GetNsxvIpSetInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetNsxvIpSetResult> getNsxvIpSet(GetNsxvIpSetArgs args, InvokeOptions options)
public static Output<GetNsxvIpSetResult> getNsxvIpSet(GetNsxvIpSetArgs args, InvokeOptions options)
fn::invoke:
function: vcd:index/getNsxvIpSet:getNsxvIpSet
arguments:
# arguments dictionary
The following arguments are supported:
getNsxvIpSet Result
The following output properties are available:
- Description string
- Id string
- Ip
Addresses List<string> - Is
Inheritance boolAllowed - Name string
- Org string
- Vdc string
- Description string
- Id string
- Ip
Addresses []string - Is
Inheritance boolAllowed - Name string
- Org string
- Vdc string
- description String
- id String
- ip
Addresses List<String> - is
Inheritance BooleanAllowed - name String
- org String
- vdc String
- description string
- id string
- ip
Addresses string[] - is
Inheritance booleanAllowed - name string
- org string
- vdc string
- description str
- id str
- ip_
addresses Sequence[str] - is_
inheritance_ boolallowed - name str
- org str
- vdc str
- description String
- id String
- ip
Addresses List<String> - is
Inheritance BooleanAllowed - name String
- org String
- vdc String
Package Details
- Repository
- vcd vmware/terraform-provider-vcd
- License
- Notes
- This Pulumi package is based on the
vcd
Terraform Provider.