vcd 3.14.1 published on Monday, Apr 14, 2025 by vmware
vcd.getNsxtAlbSettings
Explore with Pulumi AI
Supported in provider v3.5+ and VCD 10.2+ with NSX-T and ALB.
Provides a data source to read ALB General Settings for particular NSX-T Edge Gateway.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as vcd from "@pulumi/vcd";
const existing = vcd.getNsxtEdgegateway({
org: "my-org",
vdc: "nsxt-vdc",
name: "nsxt-gw",
});
const test = existing.then(existing => vcd.getNsxtAlbSettings({
org: "my-org",
edgeGatewayId: existing.id,
}));
import pulumi
import pulumi_vcd as vcd
existing = vcd.get_nsxt_edgegateway(org="my-org",
vdc="nsxt-vdc",
name="nsxt-gw")
test = vcd.get_nsxt_alb_settings(org="my-org",
edge_gateway_id=existing.id)
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 {
existing, err := vcd.LookupNsxtEdgegateway(ctx, &vcd.LookupNsxtEdgegatewayArgs{
Org: pulumi.StringRef("my-org"),
Vdc: pulumi.StringRef("nsxt-vdc"),
Name: "nsxt-gw",
}, nil)
if err != nil {
return err
}
_, err = vcd.LookupNsxtAlbSettings(ctx, &vcd.LookupNsxtAlbSettingsArgs{
Org: pulumi.StringRef("my-org"),
EdgeGatewayId: existing.Id,
}, 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 existing = Vcd.GetNsxtEdgegateway.Invoke(new()
{
Org = "my-org",
Vdc = "nsxt-vdc",
Name = "nsxt-gw",
});
var test = Vcd.GetNsxtAlbSettings.Invoke(new()
{
Org = "my-org",
EdgeGatewayId = existing.Apply(getNsxtEdgegatewayResult => getNsxtEdgegatewayResult.Id),
});
});
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.GetNsxtEdgegatewayArgs;
import com.pulumi.vcd.inputs.GetNsxtAlbSettingsArgs;
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 existing = VcdFunctions.getNsxtEdgegateway(GetNsxtEdgegatewayArgs.builder()
.org("my-org")
.vdc("nsxt-vdc")
.name("nsxt-gw")
.build());
final var test = VcdFunctions.getNsxtAlbSettings(GetNsxtAlbSettingsArgs.builder()
.org("my-org")
.edgeGatewayId(existing.applyValue(getNsxtEdgegatewayResult -> getNsxtEdgegatewayResult.id()))
.build());
}
}
variables:
existing:
fn::invoke:
function: vcd:getNsxtEdgegateway
arguments:
org: my-org
vdc: nsxt-vdc
name: nsxt-gw
test:
fn::invoke:
function: vcd:getNsxtAlbSettings
arguments:
org: my-org
edgeGatewayId: ${existing.id}
Using getNsxtAlbSettings
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 getNsxtAlbSettings(args: GetNsxtAlbSettingsArgs, opts?: InvokeOptions): Promise<GetNsxtAlbSettingsResult>
function getNsxtAlbSettingsOutput(args: GetNsxtAlbSettingsOutputArgs, opts?: InvokeOptions): Output<GetNsxtAlbSettingsResult>
def get_nsxt_alb_settings(edge_gateway_id: Optional[str] = None,
id: Optional[str] = None,
org: Optional[str] = None,
service_network_specification: Optional[str] = None,
vdc: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetNsxtAlbSettingsResult
def get_nsxt_alb_settings_output(edge_gateway_id: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
org: Optional[pulumi.Input[str]] = None,
service_network_specification: Optional[pulumi.Input[str]] = None,
vdc: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetNsxtAlbSettingsResult]
func LookupNsxtAlbSettings(ctx *Context, args *LookupNsxtAlbSettingsArgs, opts ...InvokeOption) (*LookupNsxtAlbSettingsResult, error)
func LookupNsxtAlbSettingsOutput(ctx *Context, args *LookupNsxtAlbSettingsOutputArgs, opts ...InvokeOption) LookupNsxtAlbSettingsResultOutput
> Note: This function is named LookupNsxtAlbSettings
in the Go SDK.
public static class GetNsxtAlbSettings
{
public static Task<GetNsxtAlbSettingsResult> InvokeAsync(GetNsxtAlbSettingsArgs args, InvokeOptions? opts = null)
public static Output<GetNsxtAlbSettingsResult> Invoke(GetNsxtAlbSettingsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetNsxtAlbSettingsResult> getNsxtAlbSettings(GetNsxtAlbSettingsArgs args, InvokeOptions options)
public static Output<GetNsxtAlbSettingsResult> getNsxtAlbSettings(GetNsxtAlbSettingsArgs args, InvokeOptions options)
fn::invoke:
function: vcd:index/getNsxtAlbSettings:getNsxtAlbSettings
arguments:
# arguments dictionary
The following arguments are supported:
- Edge
Gateway stringId - An ID of NSX-T Edge Gateway. Can be looked up using vcd.NsxtEdgegateway data source
- Id string
- Org string
- The name of organization to which the edge gateway belongs. Optional if defined at provider level.
- Service
Network stringSpecification - Vdc string
- Edge
Gateway stringId - An ID of NSX-T Edge Gateway. Can be looked up using vcd.NsxtEdgegateway data source
- Id string
- Org string
- The name of organization to which the edge gateway belongs. Optional if defined at provider level.
- Service
Network stringSpecification - Vdc string
- edge
Gateway StringId - An ID of NSX-T Edge Gateway. Can be looked up using vcd.NsxtEdgegateway data source
- id String
- org String
- The name of organization to which the edge gateway belongs. Optional if defined at provider level.
- service
Network StringSpecification - vdc String
- edge
Gateway stringId - An ID of NSX-T Edge Gateway. Can be looked up using vcd.NsxtEdgegateway data source
- id string
- org string
- The name of organization to which the edge gateway belongs. Optional if defined at provider level.
- service
Network stringSpecification - vdc string
- edge_
gateway_ strid - An ID of NSX-T Edge Gateway. Can be looked up using vcd.NsxtEdgegateway data source
- id str
- org str
- The name of organization to which the edge gateway belongs. Optional if defined at provider level.
- service_
network_ strspecification - vdc str
- edge
Gateway StringId - An ID of NSX-T Edge Gateway. Can be looked up using vcd.NsxtEdgegateway data source
- id String
- org String
- The name of organization to which the edge gateway belongs. Optional if defined at provider level.
- service
Network StringSpecification - vdc String
getNsxtAlbSettings Result
The following output properties are available:
- Edge
Gateway stringId - Id string
- Ipv6Service
Network stringSpecification - Is
Active bool - Is
Transparent boolMode Enabled - Service
Network stringSpecification - Supported
Feature stringSet - Org string
- Vdc string
- Edge
Gateway stringId - Id string
- Ipv6Service
Network stringSpecification - Is
Active bool - Is
Transparent boolMode Enabled - Service
Network stringSpecification - Supported
Feature stringSet - Org string
- Vdc string
- edge
Gateway StringId - id String
- ipv6Service
Network StringSpecification - is
Active Boolean - is
Transparent BooleanMode Enabled - service
Network StringSpecification - supported
Feature StringSet - org String
- vdc String
- edge
Gateway stringId - id string
- ipv6Service
Network stringSpecification - is
Active boolean - is
Transparent booleanMode Enabled - service
Network stringSpecification - supported
Feature stringSet - org string
- vdc string
- edge_
gateway_ strid - id str
- ipv6_
service_ strnetwork_ specification - is_
active bool - is_
transparent_ boolmode_ enabled - service_
network_ strspecification - supported_
feature_ strset - org str
- vdc str
- edge
Gateway StringId - id String
- ipv6Service
Network StringSpecification - is
Active Boolean - is
Transparent BooleanMode Enabled - service
Network StringSpecification - supported
Feature StringSet - org String
- vdc String
Package Details
- Repository
- vcd vmware/terraform-provider-vcd
- License
- Notes
- This Pulumi package is based on the
vcd
Terraform Provider.