1. Packages
  2. Vcd Provider
  3. API Docs
  4. getNsxtAlbEdgegatewayServiceEngineGroup
vcd 3.14.1 published on Monday, Apr 14, 2025 by vmware

vcd.getNsxtAlbEdgegatewayServiceEngineGroup

Explore with Pulumi AI

vcd logo
vcd 3.14.1 published on Monday, Apr 14, 2025 by vmware

    Supported in provider v3.5+ and VCD 10.2+ with NSX-T and ALB.

    Provides a datasource to read ALB Service Engine Group assignment to NSX-T Edge Gateway.

    Example Usage

    Referencing Service Engine Group By ID)

    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 first = vcd.getNsxtAlbServiceEngineGroup({
        name: "first-se",
    });
    const test = Promise.all([existing, first]).then(([existing, first]) => vcd.getNsxtAlbEdgegatewayServiceEngineGroup({
        edgeGatewayId: existing.id,
        serviceEngineGroupId: first.id,
    }));
    
    import pulumi
    import pulumi_vcd as vcd
    
    existing = vcd.get_nsxt_edgegateway(org="my-org",
        vdc="nsxt-vdc",
        name="nsxt-gw")
    first = vcd.get_nsxt_alb_service_engine_group(name="first-se")
    test = vcd.get_nsxt_alb_edgegateway_service_engine_group(edge_gateway_id=existing.id,
        service_engine_group_id=first.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
    		}
    		first, err := vcd.LookupNsxtAlbServiceEngineGroup(ctx, &vcd.LookupNsxtAlbServiceEngineGroupArgs{
    			Name: "first-se",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = vcd.LookupNsxtAlbEdgegatewayServiceEngineGroup(ctx, &vcd.LookupNsxtAlbEdgegatewayServiceEngineGroupArgs{
    			EdgeGatewayId:        existing.Id,
    			ServiceEngineGroupId: pulumi.StringRef(first.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 first = Vcd.GetNsxtAlbServiceEngineGroup.Invoke(new()
        {
            Name = "first-se",
        });
    
        var test = Vcd.GetNsxtAlbEdgegatewayServiceEngineGroup.Invoke(new()
        {
            EdgeGatewayId = existing.Apply(getNsxtEdgegatewayResult => getNsxtEdgegatewayResult.Id),
            ServiceEngineGroupId = first.Apply(getNsxtAlbServiceEngineGroupResult => getNsxtAlbServiceEngineGroupResult.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.GetNsxtAlbServiceEngineGroupArgs;
    import com.pulumi.vcd.inputs.GetNsxtAlbEdgegatewayServiceEngineGroupArgs;
    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 first = VcdFunctions.getNsxtAlbServiceEngineGroup(GetNsxtAlbServiceEngineGroupArgs.builder()
                .name("first-se")
                .build());
    
            final var test = VcdFunctions.getNsxtAlbEdgegatewayServiceEngineGroup(GetNsxtAlbEdgegatewayServiceEngineGroupArgs.builder()
                .edgeGatewayId(existing.applyValue(getNsxtEdgegatewayResult -> getNsxtEdgegatewayResult.id()))
                .serviceEngineGroupId(first.applyValue(getNsxtAlbServiceEngineGroupResult -> getNsxtAlbServiceEngineGroupResult.id()))
                .build());
    
        }
    }
    
    variables:
      existing:
        fn::invoke:
          function: vcd:getNsxtEdgegateway
          arguments:
            org: my-org
            vdc: nsxt-vdc
            name: nsxt-gw
      first:
        fn::invoke:
          function: vcd:getNsxtAlbServiceEngineGroup
          arguments:
            name: first-se
      test:
        fn::invoke:
          function: vcd:getNsxtAlbEdgegatewayServiceEngineGroup
          arguments:
            edgeGatewayId: ${existing.id}
            serviceEngineGroupId: ${first.id}
    

    Referencing Service Engine Group By Name)

    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.getNsxtAlbEdgegatewayServiceEngineGroup({
        edgeGatewayId: existing.id,
        serviceEngineGroupName: "known-service-engine-group-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_edgegateway_service_engine_group(edge_gateway_id=existing.id,
        service_engine_group_name="known-service-engine-group-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 {
    		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.LookupNsxtAlbEdgegatewayServiceEngineGroup(ctx, &vcd.LookupNsxtAlbEdgegatewayServiceEngineGroupArgs{
    			EdgeGatewayId:          existing.Id,
    			ServiceEngineGroupName: pulumi.StringRef("known-service-engine-group-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.GetNsxtAlbEdgegatewayServiceEngineGroup.Invoke(new()
        {
            EdgeGatewayId = existing.Apply(getNsxtEdgegatewayResult => getNsxtEdgegatewayResult.Id),
            ServiceEngineGroupName = "known-service-engine-group-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.GetNsxtAlbEdgegatewayServiceEngineGroupArgs;
    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.getNsxtAlbEdgegatewayServiceEngineGroup(GetNsxtAlbEdgegatewayServiceEngineGroupArgs.builder()
                .edgeGatewayId(existing.applyValue(getNsxtEdgegatewayResult -> getNsxtEdgegatewayResult.id()))
                .serviceEngineGroupName("known-service-engine-group-name")
                .build());
    
        }
    }
    
    variables:
      existing:
        fn::invoke:
          function: vcd:getNsxtEdgegateway
          arguments:
            org: my-org
            vdc: nsxt-vdc
            name: nsxt-gw
      test:
        fn::invoke:
          function: vcd:getNsxtAlbEdgegatewayServiceEngineGroup
          arguments:
            edgeGatewayId: ${existing.id}
            serviceEngineGroupName: known-service-engine-group-name
    

    Using getNsxtAlbEdgegatewayServiceEngineGroup

    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 getNsxtAlbEdgegatewayServiceEngineGroup(args: GetNsxtAlbEdgegatewayServiceEngineGroupArgs, opts?: InvokeOptions): Promise<GetNsxtAlbEdgegatewayServiceEngineGroupResult>
    function getNsxtAlbEdgegatewayServiceEngineGroupOutput(args: GetNsxtAlbEdgegatewayServiceEngineGroupOutputArgs, opts?: InvokeOptions): Output<GetNsxtAlbEdgegatewayServiceEngineGroupResult>
    def get_nsxt_alb_edgegateway_service_engine_group(edge_gateway_id: Optional[str] = None,
                                                      id: Optional[str] = None,
                                                      org: Optional[str] = None,
                                                      service_engine_group_id: Optional[str] = None,
                                                      service_engine_group_name: Optional[str] = None,
                                                      vdc: Optional[str] = None,
                                                      opts: Optional[InvokeOptions] = None) -> GetNsxtAlbEdgegatewayServiceEngineGroupResult
    def get_nsxt_alb_edgegateway_service_engine_group_output(edge_gateway_id: Optional[pulumi.Input[str]] = None,
                                                      id: Optional[pulumi.Input[str]] = None,
                                                      org: Optional[pulumi.Input[str]] = None,
                                                      service_engine_group_id: Optional[pulumi.Input[str]] = None,
                                                      service_engine_group_name: Optional[pulumi.Input[str]] = None,
                                                      vdc: Optional[pulumi.Input[str]] = None,
                                                      opts: Optional[InvokeOptions] = None) -> Output[GetNsxtAlbEdgegatewayServiceEngineGroupResult]
    func LookupNsxtAlbEdgegatewayServiceEngineGroup(ctx *Context, args *LookupNsxtAlbEdgegatewayServiceEngineGroupArgs, opts ...InvokeOption) (*LookupNsxtAlbEdgegatewayServiceEngineGroupResult, error)
    func LookupNsxtAlbEdgegatewayServiceEngineGroupOutput(ctx *Context, args *LookupNsxtAlbEdgegatewayServiceEngineGroupOutputArgs, opts ...InvokeOption) LookupNsxtAlbEdgegatewayServiceEngineGroupResultOutput

    > Note: This function is named LookupNsxtAlbEdgegatewayServiceEngineGroup in the Go SDK.

    public static class GetNsxtAlbEdgegatewayServiceEngineGroup 
    {
        public static Task<GetNsxtAlbEdgegatewayServiceEngineGroupResult> InvokeAsync(GetNsxtAlbEdgegatewayServiceEngineGroupArgs args, InvokeOptions? opts = null)
        public static Output<GetNsxtAlbEdgegatewayServiceEngineGroupResult> Invoke(GetNsxtAlbEdgegatewayServiceEngineGroupInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetNsxtAlbEdgegatewayServiceEngineGroupResult> getNsxtAlbEdgegatewayServiceEngineGroup(GetNsxtAlbEdgegatewayServiceEngineGroupArgs args, InvokeOptions options)
    public static Output<GetNsxtAlbEdgegatewayServiceEngineGroupResult> getNsxtAlbEdgegatewayServiceEngineGroup(GetNsxtAlbEdgegatewayServiceEngineGroupArgs args, InvokeOptions options)
    
    fn::invoke:
      function: vcd:index/getNsxtAlbEdgegatewayServiceEngineGroup:getNsxtAlbEdgegatewayServiceEngineGroup
      arguments:
        # arguments dictionary

    The following arguments are supported:

    EdgeGatewayId string
    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.
    ServiceEngineGroupId string
    An ID of NSX-T Service Engine Group. Can be looked up using vcd.NsxtAlbServiceEngineGroup data source. Note Either service_engine_group_name or service_engine_group_id require it.
    ServiceEngineGroupName string
    A Name of NSX-T Service Engine Group. Note Either service_engine_group_name or service_engine_group_id require it.
    Vdc string

    Deprecated: Deprecated

    EdgeGatewayId string
    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.
    ServiceEngineGroupId string
    An ID of NSX-T Service Engine Group. Can be looked up using vcd.NsxtAlbServiceEngineGroup data source. Note Either service_engine_group_name or service_engine_group_id require it.
    ServiceEngineGroupName string
    A Name of NSX-T Service Engine Group. Note Either service_engine_group_name or service_engine_group_id require it.
    Vdc string

    Deprecated: Deprecated

    edgeGatewayId String
    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.
    serviceEngineGroupId String
    An ID of NSX-T Service Engine Group. Can be looked up using vcd.NsxtAlbServiceEngineGroup data source. Note Either service_engine_group_name or service_engine_group_id require it.
    serviceEngineGroupName String
    A Name of NSX-T Service Engine Group. Note Either service_engine_group_name or service_engine_group_id require it.
    vdc String

    Deprecated: Deprecated

    edgeGatewayId string
    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.
    serviceEngineGroupId string
    An ID of NSX-T Service Engine Group. Can be looked up using vcd.NsxtAlbServiceEngineGroup data source. Note Either service_engine_group_name or service_engine_group_id require it.
    serviceEngineGroupName string
    A Name of NSX-T Service Engine Group. Note Either service_engine_group_name or service_engine_group_id require it.
    vdc string

    Deprecated: Deprecated

    edge_gateway_id str
    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_engine_group_id str
    An ID of NSX-T Service Engine Group. Can be looked up using vcd.NsxtAlbServiceEngineGroup data source. Note Either service_engine_group_name or service_engine_group_id require it.
    service_engine_group_name str
    A Name of NSX-T Service Engine Group. Note Either service_engine_group_name or service_engine_group_id require it.
    vdc str

    Deprecated: Deprecated

    edgeGatewayId String
    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.
    serviceEngineGroupId String
    An ID of NSX-T Service Engine Group. Can be looked up using vcd.NsxtAlbServiceEngineGroup data source. Note Either service_engine_group_name or service_engine_group_id require it.
    serviceEngineGroupName String
    A Name of NSX-T Service Engine Group. Note Either service_engine_group_name or service_engine_group_id require it.
    vdc String

    Deprecated: Deprecated

    getNsxtAlbEdgegatewayServiceEngineGroup Result

    The following output properties are available:

    DeployedVirtualServices double
    EdgeGatewayId string
    Id string
    MaxVirtualServices double
    ReservedVirtualServices string
    ServiceEngineGroupId string
    ServiceEngineGroupName string
    Vdc string

    Deprecated: Deprecated

    Org string
    DeployedVirtualServices float64
    EdgeGatewayId string
    Id string
    MaxVirtualServices float64
    ReservedVirtualServices string
    ServiceEngineGroupId string
    ServiceEngineGroupName string
    Vdc string

    Deprecated: Deprecated

    Org string
    deployedVirtualServices Double
    edgeGatewayId String
    id String
    maxVirtualServices Double
    reservedVirtualServices String
    serviceEngineGroupId String
    serviceEngineGroupName String
    vdc String

    Deprecated: Deprecated

    org String
    deployedVirtualServices number
    edgeGatewayId string
    id string
    maxVirtualServices number
    reservedVirtualServices string
    serviceEngineGroupId string
    serviceEngineGroupName string
    vdc string

    Deprecated: Deprecated

    org string
    deployedVirtualServices Number
    edgeGatewayId String
    id String
    maxVirtualServices Number
    reservedVirtualServices String
    serviceEngineGroupId String
    serviceEngineGroupName String
    vdc String

    Deprecated: Deprecated

    org String

    Package Details

    Repository
    vcd vmware/terraform-provider-vcd
    License
    Notes
    This Pulumi package is based on the vcd Terraform Provider.
    vcd logo
    vcd 3.14.1 published on Monday, Apr 14, 2025 by vmware