1. Packages
  2. Flexibleengine Provider
  3. API Docs
  4. getDcsAzV1
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

flexibleengine.getDcsAzV1

Explore with Pulumi AI

flexibleengine logo
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

    Use this data source to get the ID of an available Flexibleengine dcs az.

    !> Warning: It has been deprecated, you can use the availability zone code directly, e.g. eu-west-0b.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const az1 = flexibleengine.getDcsAzV1({
        code: "sa-chile-1a",
        name: "AZ1",
        port: "8004",
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    az1 = flexibleengine.get_dcs_az_v1(code="sa-chile-1a",
        name="AZ1",
        port="8004")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := flexibleengine.GetDcsAzV1(ctx, &flexibleengine.GetDcsAzV1Args{
    			Code: pulumi.StringRef("sa-chile-1a"),
    			Name: pulumi.StringRef("AZ1"),
    			Port: pulumi.StringRef("8004"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Flexibleengine = Pulumi.Flexibleengine;
    
    return await Deployment.RunAsync(() => 
    {
        var az1 = Flexibleengine.GetDcsAzV1.Invoke(new()
        {
            Code = "sa-chile-1a",
            Name = "AZ1",
            Port = "8004",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.FlexibleengineFunctions;
    import com.pulumi.flexibleengine.inputs.GetDcsAzV1Args;
    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 az1 = FlexibleengineFunctions.getDcsAzV1(GetDcsAzV1Args.builder()
                .code("sa-chile-1a")
                .name("AZ1")
                .port("8004")
                .build());
    
        }
    }
    
    variables:
      az1:
        fn::invoke:
          function: flexibleengine:getDcsAzV1
          arguments:
            code: sa-chile-1a
            name: AZ1
            port: '8004'
    

    Using getDcsAzV1

    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 getDcsAzV1(args: GetDcsAzV1Args, opts?: InvokeOptions): Promise<GetDcsAzV1Result>
    function getDcsAzV1Output(args: GetDcsAzV1OutputArgs, opts?: InvokeOptions): Output<GetDcsAzV1Result>
    def get_dcs_az_v1(code: Optional[str] = None,
                      id: Optional[str] = None,
                      name: Optional[str] = None,
                      port: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetDcsAzV1Result
    def get_dcs_az_v1_output(code: Optional[pulumi.Input[str]] = None,
                      id: Optional[pulumi.Input[str]] = None,
                      name: Optional[pulumi.Input[str]] = None,
                      port: Optional[pulumi.Input[str]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[GetDcsAzV1Result]
    func GetDcsAzV1(ctx *Context, args *GetDcsAzV1Args, opts ...InvokeOption) (*GetDcsAzV1Result, error)
    func GetDcsAzV1Output(ctx *Context, args *GetDcsAzV1OutputArgs, opts ...InvokeOption) GetDcsAzV1ResultOutput

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

    public static class GetDcsAzV1 
    {
        public static Task<GetDcsAzV1Result> InvokeAsync(GetDcsAzV1Args args, InvokeOptions? opts = null)
        public static Output<GetDcsAzV1Result> Invoke(GetDcsAzV1InvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDcsAzV1Result> getDcsAzV1(GetDcsAzV1Args args, InvokeOptions options)
    public static Output<GetDcsAzV1Result> getDcsAzV1(GetDcsAzV1Args args, InvokeOptions options)
    
    fn::invoke:
      function: flexibleengine:index/getDcsAzV1:getDcsAzV1
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Code string
    Indicates the code of an AZ.
    Id string
    Name string
    Indicates the name of an AZ.
    Port string
    Indicates the port number of an AZ.
    Code string
    Indicates the code of an AZ.
    Id string
    Name string
    Indicates the name of an AZ.
    Port string
    Indicates the port number of an AZ.
    code String
    Indicates the code of an AZ.
    id String
    name String
    Indicates the name of an AZ.
    port String
    Indicates the port number of an AZ.
    code string
    Indicates the code of an AZ.
    id string
    name string
    Indicates the name of an AZ.
    port string
    Indicates the port number of an AZ.
    code str
    Indicates the code of an AZ.
    id str
    name str
    Indicates the name of an AZ.
    port str
    Indicates the port number of an AZ.
    code String
    Indicates the code of an AZ.
    id String
    name String
    Indicates the name of an AZ.
    port String
    Indicates the port number of an AZ.

    getDcsAzV1 Result

    The following output properties are available:

    Code string
    See Argument Reference above.
    Id string
    Name string
    See Argument Reference above.
    Port string
    See Argument Reference above.
    Code string
    See Argument Reference above.
    Id string
    Name string
    See Argument Reference above.
    Port string
    See Argument Reference above.
    code String
    See Argument Reference above.
    id String
    name String
    See Argument Reference above.
    port String
    See Argument Reference above.
    code string
    See Argument Reference above.
    id string
    name string
    See Argument Reference above.
    port string
    See Argument Reference above.
    code str
    See Argument Reference above.
    id str
    name str
    See Argument Reference above.
    port str
    See Argument Reference above.
    code String
    See Argument Reference above.
    id String
    name String
    See Argument Reference above.
    port String
    See Argument Reference above.

    Package Details

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