Viewing docs for vcd 3.14.1
published on Monday, Apr 14, 2025 by vmware
published on Monday, Apr 14, 2025 by vmware
Viewing docs for vcd 3.14.1
published on Monday, Apr 14, 2025 by vmware
published on Monday, Apr 14, 2025 by vmware
Supported in provider v3.5+ and VCD 10.2+ with NSX-T and ALB.
Provides a data source to read ALB Virtual services for particular NSX-T Edge Gateway. A virtual service advertises an IP address and ports to the external world and listens for client traffic. When a virtual service receives traffic, it directs it to members in ALB Pool.
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 = vcd.getNsxtAlbVirtualService({
org: "dainius",
edgeGatewayId: vcd_nsxt_edgegateway.existing.id,
name: "virutal-service-name",
});
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_virtual_service(org="dainius",
edge_gateway_id=vcd_nsxt_edgegateway["existing"]["id"],
name="virutal-service-name")
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.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.LookupNsxtAlbVirtualService(ctx, &vcd.LookupNsxtAlbVirtualServiceArgs{
Org: pulumi.StringRef("dainius"),
EdgeGatewayId: vcd_nsxt_edgegateway.Existing.Id,
Name: "virutal-service-name",
}, 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.GetNsxtAlbVirtualService.Invoke(new()
{
Org = "dainius",
EdgeGatewayId = vcd_nsxt_edgegateway.Existing.Id,
Name = "virutal-service-name",
});
});
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.GetNsxtAlbVirtualServiceArgs;
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.getNsxtAlbVirtualService(GetNsxtAlbVirtualServiceArgs.builder()
.org("dainius")
.edgeGatewayId(vcd_nsxt_edgegateway.existing().id())
.name("virutal-service-name")
.build());
}
}
variables:
existing:
fn::invoke:
function: vcd:getNsxtEdgegateway
arguments:
org: my-org
vdc: nsxt-vdc
name: nsxt-gw
test:
fn::invoke:
function: vcd:getNsxtAlbVirtualService
arguments:
org: dainius
edgeGatewayId: ${vcd_nsxt_edgegateway.existing.id}
name: virutal-service-name
Using getNsxtAlbVirtualService
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 getNsxtAlbVirtualService(args: GetNsxtAlbVirtualServiceArgs, opts?: InvokeOptions): Promise<GetNsxtAlbVirtualServiceResult>
function getNsxtAlbVirtualServiceOutput(args: GetNsxtAlbVirtualServiceOutputArgs, opts?: InvokeOptions): Output<GetNsxtAlbVirtualServiceResult>def get_nsxt_alb_virtual_service(edge_gateway_id: Optional[str] = None,
id: Optional[str] = None,
name: Optional[str] = None,
org: Optional[str] = None,
vdc: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetNsxtAlbVirtualServiceResult
def get_nsxt_alb_virtual_service_output(edge_gateway_id: Optional[pulumi.Input[str]] = None,
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[GetNsxtAlbVirtualServiceResult]func LookupNsxtAlbVirtualService(ctx *Context, args *LookupNsxtAlbVirtualServiceArgs, opts ...InvokeOption) (*LookupNsxtAlbVirtualServiceResult, error)
func LookupNsxtAlbVirtualServiceOutput(ctx *Context, args *LookupNsxtAlbVirtualServiceOutputArgs, opts ...InvokeOption) LookupNsxtAlbVirtualServiceResultOutput> Note: This function is named LookupNsxtAlbVirtualService in the Go SDK.
public static class GetNsxtAlbVirtualService
{
public static Task<GetNsxtAlbVirtualServiceResult> InvokeAsync(GetNsxtAlbVirtualServiceArgs args, InvokeOptions? opts = null)
public static Output<GetNsxtAlbVirtualServiceResult> Invoke(GetNsxtAlbVirtualServiceInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetNsxtAlbVirtualServiceResult> getNsxtAlbVirtualService(GetNsxtAlbVirtualServiceArgs args, InvokeOptions options)
public static Output<GetNsxtAlbVirtualServiceResult> getNsxtAlbVirtualService(GetNsxtAlbVirtualServiceArgs args, InvokeOptions options)
fn::invoke:
function: vcd:index/getNsxtAlbVirtualService:getNsxtAlbVirtualService
arguments:
# arguments dictionaryThe following arguments are supported:
- Edge
Gateway stringId - An ID of NSX-T Edge Gateway. Can be looked up using vcd.NsxtEdgegateway data source
- Name string
- The name of ALB Virtual Service
- Id string
- Org string
- The name of organization to which the edge gateway belongs. Optional if defined at provider level
- Vdc string
- Edge
Gateway stringId - An ID of NSX-T Edge Gateway. Can be looked up using vcd.NsxtEdgegateway data source
- Name string
- The name of ALB Virtual Service
- Id string
- Org string
- The name of organization to which the edge gateway belongs. Optional if defined at provider level
- Vdc string
- edge
Gateway StringId - An ID of NSX-T Edge Gateway. Can be looked up using vcd.NsxtEdgegateway data source
- name String
- The name of ALB Virtual Service
- id String
- org String
- The name of organization to which the edge gateway belongs. Optional if defined at provider level
- vdc String
- edge
Gateway stringId - An ID of NSX-T Edge Gateway. Can be looked up using vcd.NsxtEdgegateway data source
- name string
- The name of ALB Virtual Service
- id string
- org string
- The name of organization to which the edge gateway belongs. Optional if defined at provider level
- vdc string
- edge_
gateway_ strid - An ID of NSX-T Edge Gateway. Can be looked up using vcd.NsxtEdgegateway data source
- name str
- The name of ALB Virtual Service
- id str
- org str
- The name of organization to which the edge gateway belongs. Optional if defined at provider level
- vdc str
- edge
Gateway StringId - An ID of NSX-T Edge Gateway. Can be looked up using vcd.NsxtEdgegateway data source
- name String
- The name of ALB Virtual Service
- id String
- org String
- The name of organization to which the edge gateway belongs. Optional if defined at provider level
- vdc String
getNsxtAlbVirtualService Result
The following output properties are available:
- Application
Profile stringType - Ca
Certificate stringId - Description string
- Edge
Gateway stringId - Enabled bool
- Id string
- Ipv6Virtual
Ip stringAddress - Is
Transparent boolMode Enabled - Name string
- Pool
Id string - Service
Engine stringGroup Id - Service
Ports List<GetNsxt Alb Virtual Service Service Port> - Vdc string
- Virtual
Ip stringAddress - Org string
- Application
Profile stringType - Ca
Certificate stringId - Description string
- Edge
Gateway stringId - Enabled bool
- Id string
- Ipv6Virtual
Ip stringAddress - Is
Transparent boolMode Enabled - Name string
- Pool
Id string - Service
Engine stringGroup Id - Service
Ports []GetNsxt Alb Virtual Service Service Port - Vdc string
- Virtual
Ip stringAddress - Org string
- application
Profile StringType - ca
Certificate StringId - description String
- edge
Gateway StringId - enabled Boolean
- id String
- ipv6Virtual
Ip StringAddress - is
Transparent BooleanMode Enabled - name String
- pool
Id String - service
Engine StringGroup Id - service
Ports List<GetNsxt Alb Virtual Service Service Port> - vdc String
- virtual
Ip StringAddress - org String
- application
Profile stringType - ca
Certificate stringId - description string
- edge
Gateway stringId - enabled boolean
- id string
- ipv6Virtual
Ip stringAddress - is
Transparent booleanMode Enabled - name string
- pool
Id string - service
Engine stringGroup Id - service
Ports GetNsxt Alb Virtual Service Service Port[] - vdc string
- virtual
Ip stringAddress - org string
- application_
profile_ strtype - ca_
certificate_ strid - description str
- edge_
gateway_ strid - enabled bool
- id str
- ipv6_
virtual_ strip_ address - is_
transparent_ boolmode_ enabled - name str
- pool_
id str - service_
engine_ strgroup_ id - service_
ports Sequence[GetNsxt Alb Virtual Service Service Port] - vdc str
- virtual_
ip_ straddress - org str
- application
Profile StringType - ca
Certificate StringId - description String
- edge
Gateway StringId - enabled Boolean
- id String
- ipv6Virtual
Ip StringAddress - is
Transparent BooleanMode Enabled - name String
- pool
Id String - service
Engine StringGroup Id - service
Ports List<Property Map> - vdc String
- virtual
Ip StringAddress - org String
Supporting Types
GetNsxtAlbVirtualServiceServicePort
- End
Port double - Ssl
Enabled bool - Start
Port double - Type string
- End
Port float64 - Ssl
Enabled bool - Start
Port float64 - Type string
- end
Port Double - ssl
Enabled Boolean - start
Port Double - type String
- end
Port number - ssl
Enabled boolean - start
Port number - type string
- end_
port float - ssl_
enabled bool - start_
port float - type str
- end
Port Number - ssl
Enabled Boolean - start
Port Number - type String
Package Details
- Repository
- vcd vmware/terraform-provider-vcd
- License
- Notes
- This Pulumi package is based on the
vcdTerraform Provider.
Viewing docs for vcd 3.14.1
published on Monday, Apr 14, 2025 by vmware
published on Monday, Apr 14, 2025 by vmware
