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

opentelekomcloud.getDcsAzV1

Explore with Pulumi AI

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

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

Example Usage

Query AZ id by providing name argument

import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";

const az1 = opentelekomcloud.getDcsAzV1({
    name: "eu-de-01",
});
Copy
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud

az1 = opentelekomcloud.get_dcs_az_v1(name="eu-de-01")
Copy
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.GetDcsAzV1(ctx, &opentelekomcloud.GetDcsAzV1Args{
			Name: pulumi.StringRef("eu-de-01"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;

return await Deployment.RunAsync(() => 
{
    var az1 = Opentelekomcloud.GetDcsAzV1.Invoke(new()
    {
        Name = "eu-de-01",
    });

});
Copy
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.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 = OpentelekomcloudFunctions.getDcsAzV1(GetDcsAzV1Args.builder()
            .name("eu-de-01")
            .build());

    }
}
Copy
variables:
  az1:
    fn::invoke:
      function: opentelekomcloud:getDcsAzV1
      arguments:
        name: eu-de-01
Copy

Query AZ id by providing port and code arguments

import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";

const az2 = opentelekomcloud.getDcsAzV1({
    code: "eu-de-02",
    port: "8003",
});
Copy
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud

az2 = opentelekomcloud.get_dcs_az_v1(code="eu-de-02",
    port="8003")
Copy
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.GetDcsAzV1(ctx, &opentelekomcloud.GetDcsAzV1Args{
			Code: pulumi.StringRef("eu-de-02"),
			Port: pulumi.StringRef("8003"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;

return await Deployment.RunAsync(() => 
{
    var az2 = Opentelekomcloud.GetDcsAzV1.Invoke(new()
    {
        Code = "eu-de-02",
        Port = "8003",
    });

});
Copy
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.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 az2 = OpentelekomcloudFunctions.getDcsAzV1(GetDcsAzV1Args.builder()
            .code("eu-de-02")
            .port("8003")
            .build());

    }
}
Copy
variables:
  az2:
    fn::invoke:
      function: opentelekomcloud:getDcsAzV1
      arguments:
        code: eu-de-02
        port: '8003'
Copy

Query AZ id by providing all arguments

import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";

const az2 = opentelekomcloud.getDcsAzV1({
    code: "eu-de-02",
    name: "eu-de-02",
    port: "8003",
});
Copy
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud

az2 = opentelekomcloud.get_dcs_az_v1(code="eu-de-02",
    name="eu-de-02",
    port="8003")
Copy
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.GetDcsAzV1(ctx, &opentelekomcloud.GetDcsAzV1Args{
			Code: pulumi.StringRef("eu-de-02"),
			Name: pulumi.StringRef("eu-de-02"),
			Port: pulumi.StringRef("8003"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;

return await Deployment.RunAsync(() => 
{
    var az2 = Opentelekomcloud.GetDcsAzV1.Invoke(new()
    {
        Code = "eu-de-02",
        Name = "eu-de-02",
        Port = "8003",
    });

});
Copy
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.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 az2 = OpentelekomcloudFunctions.getDcsAzV1(GetDcsAzV1Args.builder()
            .code("eu-de-02")
            .name("eu-de-02")
            .port("8003")
            .build());

    }
}
Copy
variables:
  az2:
    fn::invoke:
      function: opentelekomcloud:getDcsAzV1
      arguments:
        code: eu-de-02
        name: eu-de-02
        port: '8003'
Copy

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>
Copy
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]
Copy
func GetDcsAzV1(ctx *Context, args *GetDcsAzV1Args, opts ...InvokeOption) (*GetDcsAzV1Result, error)
func GetDcsAzV1Output(ctx *Context, args *GetDcsAzV1OutputArgs, opts ...InvokeOption) GetDcsAzV1ResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetDcsAzV1Result> getDcsAzV1(GetDcsAzV1Args args, InvokeOptions options)
public static Output<GetDcsAzV1Result> getDcsAzV1(GetDcsAzV1Args args, InvokeOptions options)
Copy
fn::invoke:
  function: opentelekomcloud:index/getDcsAzV1:getDcsAzV1
  arguments:
    # arguments dictionary
Copy

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
opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
License
Notes
This Pulumi package is based on the opentelekomcloud Terraform Provider.