alicloud logo
Alibaba Cloud v3.30.0, Feb 1 23

alicloud.adb.getDBClusterLakeVersions

This data source provides the Adb DBCluster Lake Versions of the current Alibaba Cloud user.

NOTE: Available in v1.190.0+.

Example Usage

Basic Usage

using System.Collections.Generic;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

return await Deployment.RunAsync(() => 
{
    var ids = AliCloud.Adb.GetDBClusterLakeVersions.Invoke(new()
    {
        Ids = new[]
        {
            "example_id",
        },
    });

    return new Dictionary<string, object?>
    {
        ["adbDbClusterLakeVersionId1"] = ids.Apply(getDBClusterLakeVersionsResult => getDBClusterLakeVersionsResult.Versions[0]?.Id),
    };
});
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/adb"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		ids, err := adb.GetDBClusterLakeVersions(ctx, &adb.GetDBClusterLakeVersionsArgs{
			Ids: []string{
				"example_id",
			},
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("adbDbClusterLakeVersionId1", ids.Versions[0].Id)
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.adb.AdbFunctions;
import com.pulumi.alicloud.adb.inputs.GetDBClusterLakeVersionsArgs;
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 ids = AdbFunctions.getDBClusterLakeVersions(GetDBClusterLakeVersionsArgs.builder()
            .ids("example_id")
            .build());

        ctx.export("adbDbClusterLakeVersionId1", ids.applyValue(getDBClusterLakeVersionsResult -> getDBClusterLakeVersionsResult.versions()[0].id()));
    }
}
import pulumi
import pulumi_alicloud as alicloud

ids = alicloud.adb.get_db_cluster_lake_versions(ids=["example_id"])
pulumi.export("adbDbClusterLakeVersionId1", ids.versions[0].id)
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const ids = alicloud.adb.getDBClusterLakeVersions({
    ids: ["example_id"],
});
export const adbDbClusterLakeVersionId1 = ids.then(ids => ids.versions?.[0]?.id);
variables:
  ids:
    fn::invoke:
      Function: alicloud:adb:getDBClusterLakeVersions
      Arguments:
        ids:
          - example_id
outputs:
  adbDbClusterLakeVersionId1: ${ids.versions[0].id}

Using getDBClusterLakeVersions

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 getDBClusterLakeVersions(args: GetDBClusterLakeVersionsArgs, opts?: InvokeOptions): Promise<GetDBClusterLakeVersionsResult>
function getDBClusterLakeVersionsOutput(args: GetDBClusterLakeVersionsOutputArgs, opts?: InvokeOptions): Output<GetDBClusterLakeVersionsResult>
def get_db_cluster_lake_versions(enable_details: Optional[bool] = None,
                                 ids: Optional[Sequence[str]] = None,
                                 output_file: Optional[str] = None,
                                 page_number: Optional[int] = None,
                                 page_size: Optional[int] = None,
                                 resource_group_id: Optional[str] = None,
                                 status: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetDBClusterLakeVersionsResult
def get_db_cluster_lake_versions_output(enable_details: Optional[pulumi.Input[bool]] = None,
                                 ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                 output_file: Optional[pulumi.Input[str]] = None,
                                 page_number: Optional[pulumi.Input[int]] = None,
                                 page_size: Optional[pulumi.Input[int]] = None,
                                 resource_group_id: Optional[pulumi.Input[str]] = None,
                                 status: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetDBClusterLakeVersionsResult]
func GetDBClusterLakeVersions(ctx *Context, args *GetDBClusterLakeVersionsArgs, opts ...InvokeOption) (*GetDBClusterLakeVersionsResult, error)
func GetDBClusterLakeVersionsOutput(ctx *Context, args *GetDBClusterLakeVersionsOutputArgs, opts ...InvokeOption) GetDBClusterLakeVersionsResultOutput

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

public static class GetDBClusterLakeVersions 
{
    public static Task<GetDBClusterLakeVersionsResult> InvokeAsync(GetDBClusterLakeVersionsArgs args, InvokeOptions? opts = null)
    public static Output<GetDBClusterLakeVersionsResult> Invoke(GetDBClusterLakeVersionsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDBClusterLakeVersionsResult> getDBClusterLakeVersions(GetDBClusterLakeVersionsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: alicloud:adb/getDBClusterLakeVersions:getDBClusterLakeVersions
  arguments:
    # arguments dictionary

The following arguments are supported:

EnableDetails bool

Default to false. Set it to true can output more details about resource attributes.

Ids List<string>

A list of DBCluster IDs.

OutputFile string
PageNumber int
PageSize int
ResourceGroupId string

The ID of the resource group.

Status string

The status of the resource.

EnableDetails bool

Default to false. Set it to true can output more details about resource attributes.

Ids []string

A list of DBCluster IDs.

OutputFile string
PageNumber int
PageSize int
ResourceGroupId string

The ID of the resource group.

Status string

The status of the resource.

enableDetails Boolean

Default to false. Set it to true can output more details about resource attributes.

ids List<String>

A list of DBCluster IDs.

outputFile String
pageNumber Integer
pageSize Integer
resourceGroupId String

The ID of the resource group.

status String

The status of the resource.

enableDetails boolean

Default to false. Set it to true can output more details about resource attributes.

ids string[]

A list of DBCluster IDs.

outputFile string
pageNumber number
pageSize number
resourceGroupId string

The ID of the resource group.

status string

The status of the resource.

enable_details bool

Default to false. Set it to true can output more details about resource attributes.

ids Sequence[str]

A list of DBCluster IDs.

output_file str
page_number int
page_size int
resource_group_id str

The ID of the resource group.

status str

The status of the resource.

enableDetails Boolean

Default to false. Set it to true can output more details about resource attributes.

ids List<String>

A list of DBCluster IDs.

outputFile String
pageNumber Number
pageSize Number
resourceGroupId String

The ID of the resource group.

status String

The status of the resource.

getDBClusterLakeVersions Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Ids List<string>
Versions List<Pulumi.AliCloud.Adb.Outputs.GetDBClusterLakeVersionsVersion>
EnableDetails bool
OutputFile string
PageNumber int
PageSize int
ResourceGroupId string
Status string
Id string

The provider-assigned unique ID for this managed resource.

Ids []string
Versions []GetDBClusterLakeVersionsVersion
EnableDetails bool
OutputFile string
PageNumber int
PageSize int
ResourceGroupId string
Status string
id String

The provider-assigned unique ID for this managed resource.

ids List<String>
versions List<GetDBClusterLakeVersionsVersion>
enableDetails Boolean
outputFile String
pageNumber Integer
pageSize Integer
resourceGroupId String
status String
id string

The provider-assigned unique ID for this managed resource.

ids string[]
versions GetDBClusterLakeVersionsVersion[]
enableDetails boolean
outputFile string
pageNumber number
pageSize number
resourceGroupId string
status string
id str

The provider-assigned unique ID for this managed resource.

ids Sequence[str]
versions Sequence[GetDBClusterLakeVersionsVersion]
enable_details bool
output_file str
page_number int
page_size int
resource_group_id str
status str
id String

The provider-assigned unique ID for this managed resource.

ids List<String>
versions List<Property Map>
enableDetails Boolean
outputFile String
pageNumber Number
pageSize Number
resourceGroupId String
status String

Supporting Types

GetDBClusterLakeVersionsVersion

CommodityCode string

The name of the service.

ComputeResource string

The specifications of computing resources in elastic mode. The increase of resources can speed up queries.

ConnectionString string

The endpoint of the cluster.

CreateTime string

The CreateTime of the ADB cluster.

DbClusterId string

The ID of the DBCluster.

DbClusterVersion string

The db cluster version.

Engine string

The engine of the database.

EngineVersion string

The engine version of the database.

ExpireTime string

The time when the cluster expires.

Expired string

Indicates whether the cluster has expired.

Id string

The ID of the DBCluster.

LockMode string

The lock mode of the cluster.

LockReason string

The reason why the cluster is locked.

PaymentType string

The payment type of the resource.

Port string

The port that is used to access the cluster.

ResourceGroupId string

The ID of the resource group.

Status string

The status of the resource.

StorageResource string

The specifications of storage resources in elastic mode. The resources are used for data read and write operations.

VpcId string

The vpc id.

VswitchId string

The vswitch id.

ZoneId string

The zone ID of the resource.

CommodityCode string

The name of the service.

ComputeResource string

The specifications of computing resources in elastic mode. The increase of resources can speed up queries.

ConnectionString string

The endpoint of the cluster.

CreateTime string

The CreateTime of the ADB cluster.

DbClusterId string

The ID of the DBCluster.

DbClusterVersion string

The db cluster version.

Engine string

The engine of the database.

EngineVersion string

The engine version of the database.

ExpireTime string

The time when the cluster expires.

Expired string

Indicates whether the cluster has expired.

Id string

The ID of the DBCluster.

LockMode string

The lock mode of the cluster.

LockReason string

The reason why the cluster is locked.

PaymentType string

The payment type of the resource.

Port string

The port that is used to access the cluster.

ResourceGroupId string

The ID of the resource group.

Status string

The status of the resource.

StorageResource string

The specifications of storage resources in elastic mode. The resources are used for data read and write operations.

VpcId string

The vpc id.

VswitchId string

The vswitch id.

ZoneId string

The zone ID of the resource.

commodityCode String

The name of the service.

computeResource String

The specifications of computing resources in elastic mode. The increase of resources can speed up queries.

connectionString String

The endpoint of the cluster.

createTime String

The CreateTime of the ADB cluster.

dbClusterId String

The ID of the DBCluster.

dbClusterVersion String

The db cluster version.

engine String

The engine of the database.

engineVersion String

The engine version of the database.

expireTime String

The time when the cluster expires.

expired String

Indicates whether the cluster has expired.

id String

The ID of the DBCluster.

lockMode String

The lock mode of the cluster.

lockReason String

The reason why the cluster is locked.

paymentType String

The payment type of the resource.

port String

The port that is used to access the cluster.

resourceGroupId String

The ID of the resource group.

status String

The status of the resource.

storageResource String

The specifications of storage resources in elastic mode. The resources are used for data read and write operations.

vpcId String

The vpc id.

vswitchId String

The vswitch id.

zoneId String

The zone ID of the resource.

commodityCode string

The name of the service.

computeResource string

The specifications of computing resources in elastic mode. The increase of resources can speed up queries.

connectionString string

The endpoint of the cluster.

createTime string

The CreateTime of the ADB cluster.

dbClusterId string

The ID of the DBCluster.

dbClusterVersion string

The db cluster version.

engine string

The engine of the database.

engineVersion string

The engine version of the database.

expireTime string

The time when the cluster expires.

expired string

Indicates whether the cluster has expired.

id string

The ID of the DBCluster.

lockMode string

The lock mode of the cluster.

lockReason string

The reason why the cluster is locked.

paymentType string

The payment type of the resource.

port string

The port that is used to access the cluster.

resourceGroupId string

The ID of the resource group.

status string

The status of the resource.

storageResource string

The specifications of storage resources in elastic mode. The resources are used for data read and write operations.

vpcId string

The vpc id.

vswitchId string

The vswitch id.

zoneId string

The zone ID of the resource.

commodity_code str

The name of the service.

compute_resource str

The specifications of computing resources in elastic mode. The increase of resources can speed up queries.

connection_string str

The endpoint of the cluster.

create_time str

The CreateTime of the ADB cluster.

db_cluster_id str

The ID of the DBCluster.

db_cluster_version str

The db cluster version.

engine str

The engine of the database.

engine_version str

The engine version of the database.

expire_time str

The time when the cluster expires.

expired str

Indicates whether the cluster has expired.

id str

The ID of the DBCluster.

lock_mode str

The lock mode of the cluster.

lock_reason str

The reason why the cluster is locked.

payment_type str

The payment type of the resource.

port str

The port that is used to access the cluster.

resource_group_id str

The ID of the resource group.

status str

The status of the resource.

storage_resource str

The specifications of storage resources in elastic mode. The resources are used for data read and write operations.

vpc_id str

The vpc id.

vswitch_id str

The vswitch id.

zone_id str

The zone ID of the resource.

commodityCode String

The name of the service.

computeResource String

The specifications of computing resources in elastic mode. The increase of resources can speed up queries.

connectionString String

The endpoint of the cluster.

createTime String

The CreateTime of the ADB cluster.

dbClusterId String

The ID of the DBCluster.

dbClusterVersion String

The db cluster version.

engine String

The engine of the database.

engineVersion String

The engine version of the database.

expireTime String

The time when the cluster expires.

expired String

Indicates whether the cluster has expired.

id String

The ID of the DBCluster.

lockMode String

The lock mode of the cluster.

lockReason String

The reason why the cluster is locked.

paymentType String

The payment type of the resource.

port String

The port that is used to access the cluster.

resourceGroupId String

The ID of the resource group.

status String

The status of the resource.

storageResource String

The specifications of storage resources in elastic mode. The resources are used for data read and write operations.

vpcId String

The vpc id.

vswitchId String

The vswitch id.

zoneId String

The zone ID of the resource.

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.