1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. getDmsAzV1
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

opentelekomcloud.getDmsAzV1

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

    Up-to-date reference of API arguments for DMS AZ you can get at documentation portal

    Use this data source to get the ID of an available OpenTelekomCloud DMS AZ.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const az1 = opentelekomcloud.getDmsAzV1({
        name: "eu-de-01",
        port: "8002",
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    az1 = opentelekomcloud.get_dms_az_v1(name="eu-de-01",
        port="8002")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := opentelekomcloud.GetDmsAzV1(ctx, &opentelekomcloud.GetDmsAzV1Args{
    			Name: pulumi.StringRef("eu-de-01"),
    			Port: pulumi.StringRef("8002"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var az1 = Opentelekomcloud.GetDmsAzV1.Invoke(new()
        {
            Name = "eu-de-01",
            Port = "8002",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.OpentelekomcloudFunctions;
    import com.pulumi.opentelekomcloud.inputs.GetDmsAzV1Args;
    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 = OpentelekomcloudFunctions.getDmsAzV1(GetDmsAzV1Args.builder()
                .name("eu-de-01")
                .port("8002")
                .build());
    
        }
    }
    
    variables:
      az1:
        fn::invoke:
          function: opentelekomcloud:getDmsAzV1
          arguments:
            name: eu-de-01
            port: '8002'
    

    Using getDmsAzV1

    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 getDmsAzV1(args: GetDmsAzV1Args, opts?: InvokeOptions): Promise<GetDmsAzV1Result>
    function getDmsAzV1Output(args: GetDmsAzV1OutputArgs, opts?: InvokeOptions): Output<GetDmsAzV1Result>
    def get_dms_az_v1(code: Optional[str] = None,
                      id: Optional[str] = None,
                      name: Optional[str] = None,
                      port: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetDmsAzV1Result
    def get_dms_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[GetDmsAzV1Result]
    func GetDmsAzV1(ctx *Context, args *GetDmsAzV1Args, opts ...InvokeOption) (*GetDmsAzV1Result, error)
    func GetDmsAzV1Output(ctx *Context, args *GetDmsAzV1OutputArgs, opts ...InvokeOption) GetDmsAzV1ResultOutput

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

    public static class GetDmsAzV1 
    {
        public static Task<GetDmsAzV1Result> InvokeAsync(GetDmsAzV1Args args, InvokeOptions? opts = null)
        public static Output<GetDmsAzV1Result> Invoke(GetDmsAzV1InvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDmsAzV1Result> getDmsAzV1(GetDmsAzV1Args args, InvokeOptions options)
    public static Output<GetDmsAzV1Result> getDmsAzV1(GetDmsAzV1Args args, InvokeOptions options)
    
    fn::invoke:
      function: opentelekomcloud:index/getDmsAzV1:getDmsAzV1
      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.

    getDmsAzV1 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
    opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
    License
    Notes
    This Pulumi package is based on the opentelekomcloud Terraform Provider.
    opentelekomcloud logo
    opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud