1. Packages
  2. Vkcs Provider
  3. API Docs
  4. getDcApiOptions
vkcs 0.9.3 published on Tuesday, Apr 15, 2025 by vk-cs

vkcs.getDcApiOptions

Explore with Pulumi AI

vkcs logo
vkcs 0.9.3 published on Tuesday, Apr 15, 2025 by vk-cs

    Use this data source to get direct connect api options.

    Note: This data source requires Sprut SDN to be enabled in your project.

    New since v0.5.0.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as vkcs from "@pulumi/vkcs";
    
    const dcApiOptions = vkcs.getDcApiOptions({});
    
    import pulumi
    import pulumi_vkcs as vkcs
    
    dc_api_options = vkcs.get_dc_api_options()
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/vkcs/vkcs"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := vkcs.GetDcApiOptions(ctx, &vkcs.GetDcApiOptionsArgs{}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Vkcs = Pulumi.Vkcs;
    
    return await Deployment.RunAsync(() => 
    {
        var dcApiOptions = Vkcs.GetDcApiOptions.Invoke();
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.vkcs.VkcsFunctions;
    import com.pulumi.vkcs.inputs.GetDcApiOptionsArgs;
    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 dcApiOptions = VkcsFunctions.getDcApiOptions();
    
        }
    }
    
    variables:
      dcApiOptions:
        fn::invoke:
          function: vkcs:getDcApiOptions
          arguments: {}
    

    Using getDcApiOptions

    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 getDcApiOptions(args: GetDcApiOptionsArgs, opts?: InvokeOptions): Promise<GetDcApiOptionsResult>
    function getDcApiOptionsOutput(args: GetDcApiOptionsOutputArgs, opts?: InvokeOptions): Output<GetDcApiOptionsResult>
    def get_dc_api_options(region: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetDcApiOptionsResult
    def get_dc_api_options_output(region: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetDcApiOptionsResult]
    func GetDcApiOptions(ctx *Context, args *GetDcApiOptionsArgs, opts ...InvokeOption) (*GetDcApiOptionsResult, error)
    func GetDcApiOptionsOutput(ctx *Context, args *GetDcApiOptionsOutputArgs, opts ...InvokeOption) GetDcApiOptionsResultOutput

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

    public static class GetDcApiOptions 
    {
        public static Task<GetDcApiOptionsResult> InvokeAsync(GetDcApiOptionsArgs args, InvokeOptions? opts = null)
        public static Output<GetDcApiOptionsResult> Invoke(GetDcApiOptionsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDcApiOptionsResult> getDcApiOptions(GetDcApiOptionsArgs args, InvokeOptions options)
    public static Output<GetDcApiOptionsResult> getDcApiOptions(GetDcApiOptionsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: vkcs:index/getDcApiOptions:getDcApiOptions
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Region string
    optional string → The region to fetch availability zones from, defaults to the provider's region.
    Region string
    optional string → The region to fetch availability zones from, defaults to the provider's region.
    region String
    optional string → The region to fetch availability zones from, defaults to the provider's region.
    region string
    optional string → The region to fetch availability zones from, defaults to the provider's region.
    region str
    optional string → The region to fetch availability zones from, defaults to the provider's region.
    region String
    optional string → The region to fetch availability zones from, defaults to the provider's region.

    getDcApiOptions Result

    The following output properties are available:

    AvailabilityZones List<string>
    string → List of availability zone options
    Flavors List<string>
    string → List of flavor options for vkcs.DcRouter resource
    Id string
    string → ID of the data source
    Region string
    AvailabilityZones []string
    string → List of availability zone options
    Flavors []string
    string → List of flavor options for vkcs.DcRouter resource
    Id string
    string → ID of the data source
    Region string
    availabilityZones List<String>
    string → List of availability zone options
    flavors List<String>
    string → List of flavor options for vkcs.DcRouter resource
    id String
    string → ID of the data source
    region String
    availabilityZones string[]
    string → List of availability zone options
    flavors string[]
    string → List of flavor options for vkcs.DcRouter resource
    id string
    string → ID of the data source
    region string
    availability_zones Sequence[str]
    string → List of availability zone options
    flavors Sequence[str]
    string → List of flavor options for vkcs.DcRouter resource
    id str
    string → ID of the data source
    region str
    availabilityZones List<String>
    string → List of availability zone options
    flavors List<String>
    string → List of flavor options for vkcs.DcRouter resource
    id String
    string → ID of the data source
    region String

    Package Details

    Repository
    vkcs vk-cs/terraform-provider-vkcs
    License
    Notes
    This Pulumi package is based on the vkcs Terraform Provider.
    vkcs logo
    vkcs 0.9.3 published on Tuesday, Apr 15, 2025 by vk-cs