alicloud.adb.getDBClusterLakeVersions
Explore with Pulumi AI
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 System.Linq;
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:
- Enable
Details bool Default to
false
. Set it totrue
can output more details about resource attributes.- Ids List<string>
A list of DBCluster IDs.
- Output
File string File name where to save data source results (after running
pulumi preview
).- Page
Number int - Page
Size int - Resource
Group stringId The ID of the resource group.
- Status string
The status of the resource.
- Enable
Details bool Default to
false
. Set it totrue
can output more details about resource attributes.- Ids []string
A list of DBCluster IDs.
- Output
File string File name where to save data source results (after running
pulumi preview
).- Page
Number int - Page
Size int - Resource
Group stringId The ID of the resource group.
- Status string
The status of the resource.
- enable
Details Boolean Default to
false
. Set it totrue
can output more details about resource attributes.- ids List<String>
A list of DBCluster IDs.
- output
File String File name where to save data source results (after running
pulumi preview
).- page
Number Integer - page
Size Integer - resource
Group StringId The ID of the resource group.
- status String
The status of the resource.
- enable
Details boolean Default to
false
. Set it totrue
can output more details about resource attributes.- ids string[]
A list of DBCluster IDs.
- output
File string File name where to save data source results (after running
pulumi preview
).- page
Number number - page
Size number - resource
Group stringId The ID of the resource group.
- status string
The status of the resource.
- enable_
details bool Default to
false
. Set it totrue
can output more details about resource attributes.- ids Sequence[str]
A list of DBCluster IDs.
- output_
file str File name where to save data source results (after running
pulumi preview
).- page_
number int - page_
size int - resource_
group_ strid The ID of the resource group.
- status str
The status of the resource.
- enable
Details Boolean Default to
false
. Set it totrue
can output more details about resource attributes.- ids List<String>
A list of DBCluster IDs.
- output
File String File name where to save data source results (after running
pulumi preview
).- page
Number Number - page
Size Number - resource
Group StringId 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.
Ali Cloud. Adb. Outputs. Get DBCluster Lake Versions Version> - Enable
Details bool - Output
File string - Page
Number int - Page
Size int - Resource
Group stringId - Status string
- Id string
The provider-assigned unique ID for this managed resource.
- Ids []string
- Versions
[]Get
DBCluster Lake Versions Version - Enable
Details bool - Output
File string - Page
Number int - Page
Size int - Resource
Group stringId - Status string
- id String
The provider-assigned unique ID for this managed resource.
- ids List<String>
- versions
List<Get
DBCluster Lake Versions Version> - enable
Details Boolean - output
File String - page
Number Integer - page
Size Integer - resource
Group StringId - status String
- id string
The provider-assigned unique ID for this managed resource.
- ids string[]
- versions
Get
DBCluster Lake Versions Version[] - enable
Details boolean - output
File string - page
Number number - page
Size number - resource
Group stringId - status string
- id str
The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- versions
Sequence[Get
DBCluster Lake Versions Version] - enable_
details bool - output_
file str - page_
number int - page_
size int - resource_
group_ strid - status str
- id String
The provider-assigned unique ID for this managed resource.
- ids List<String>
- versions List<Property Map>
- enable
Details Boolean - output
File String - page
Number Number - page
Size Number - resource
Group StringId - status String
Supporting Types
GetDBClusterLakeVersionsVersion
- Commodity
Code string The name of the service.
- Compute
Resource string The specifications of computing resources in elastic mode. The increase of resources can speed up queries.
- Connection
String string The endpoint of the cluster.
- Create
Time string The CreateTime of the ADB cluster.
- Db
Cluster stringId The ID of the DBCluster.
- Db
Cluster stringVersion The db cluster version.
- Engine string
The engine of the database.
- Engine
Version string The engine version of the database.
- Expire
Time string The time when the cluster expires.
- Expired string
Indicates whether the cluster has expired.
- Id string
The ID of the DBCluster.
- Lock
Mode string The lock mode of the cluster.
- Lock
Reason string The reason why the cluster is locked.
- Payment
Type string The payment type of the resource.
- Port string
The port that is used to access the cluster.
- Resource
Group stringId The ID of the resource group.
- Status string
The status of the resource.
- Storage
Resource string The specifications of storage resources in elastic mode. The resources are used for data read and write operations.
- Vpc
Id string The vpc id.
- Vswitch
Id string The vswitch id.
- Zone
Id string The zone ID of the resource.
- Commodity
Code string The name of the service.
- Compute
Resource string The specifications of computing resources in elastic mode. The increase of resources can speed up queries.
- Connection
String string The endpoint of the cluster.
- Create
Time string The CreateTime of the ADB cluster.
- Db
Cluster stringId The ID of the DBCluster.
- Db
Cluster stringVersion The db cluster version.
- Engine string
The engine of the database.
- Engine
Version string The engine version of the database.
- Expire
Time string The time when the cluster expires.
- Expired string
Indicates whether the cluster has expired.
- Id string
The ID of the DBCluster.
- Lock
Mode string The lock mode of the cluster.
- Lock
Reason string The reason why the cluster is locked.
- Payment
Type string The payment type of the resource.
- Port string
The port that is used to access the cluster.
- Resource
Group stringId The ID of the resource group.
- Status string
The status of the resource.
- Storage
Resource string The specifications of storage resources in elastic mode. The resources are used for data read and write operations.
- Vpc
Id string The vpc id.
- Vswitch
Id string The vswitch id.
- Zone
Id string The zone ID of the resource.
- commodity
Code String The name of the service.
- compute
Resource String The specifications of computing resources in elastic mode. The increase of resources can speed up queries.
- connection
String String The endpoint of the cluster.
- create
Time String The CreateTime of the ADB cluster.
- db
Cluster StringId The ID of the DBCluster.
- db
Cluster StringVersion The db cluster version.
- engine String
The engine of the database.
- engine
Version String The engine version of the database.
- expire
Time String The time when the cluster expires.
- expired String
Indicates whether the cluster has expired.
- id String
The ID of the DBCluster.
- lock
Mode String The lock mode of the cluster.
- lock
Reason String The reason why the cluster is locked.
- payment
Type String The payment type of the resource.
- port String
The port that is used to access the cluster.
- resource
Group StringId The ID of the resource group.
- status String
The status of the resource.
- storage
Resource String The specifications of storage resources in elastic mode. The resources are used for data read and write operations.
- vpc
Id String The vpc id.
- vswitch
Id String The vswitch id.
- zone
Id String The zone ID of the resource.
- commodity
Code string The name of the service.
- compute
Resource string The specifications of computing resources in elastic mode. The increase of resources can speed up queries.
- connection
String string The endpoint of the cluster.
- create
Time string The CreateTime of the ADB cluster.
- db
Cluster stringId The ID of the DBCluster.
- db
Cluster stringVersion The db cluster version.
- engine string
The engine of the database.
- engine
Version string The engine version of the database.
- expire
Time string The time when the cluster expires.
- expired string
Indicates whether the cluster has expired.
- id string
The ID of the DBCluster.
- lock
Mode string The lock mode of the cluster.
- lock
Reason string The reason why the cluster is locked.
- payment
Type string The payment type of the resource.
- port string
The port that is used to access the cluster.
- resource
Group stringId The ID of the resource group.
- status string
The status of the resource.
- storage
Resource string The specifications of storage resources in elastic mode. The resources are used for data read and write operations.
- vpc
Id string The vpc id.
- vswitch
Id string The vswitch id.
- zone
Id 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_ strid The ID of the DBCluster.
- db_
cluster_ strversion 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_ strid 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.
- commodity
Code String The name of the service.
- compute
Resource String The specifications of computing resources in elastic mode. The increase of resources can speed up queries.
- connection
String String The endpoint of the cluster.
- create
Time String The CreateTime of the ADB cluster.
- db
Cluster StringId The ID of the DBCluster.
- db
Cluster StringVersion The db cluster version.
- engine String
The engine of the database.
- engine
Version String The engine version of the database.
- expire
Time String The time when the cluster expires.
- expired String
Indicates whether the cluster has expired.
- id String
The ID of the DBCluster.
- lock
Mode String The lock mode of the cluster.
- lock
Reason String The reason why the cluster is locked.
- payment
Type String The payment type of the resource.
- port String
The port that is used to access the cluster.
- resource
Group StringId The ID of the resource group.
- status String
The status of the resource.
- storage
Resource String The specifications of storage resources in elastic mode. The resources are used for data read and write operations.
- vpc
Id String The vpc id.
- vswitch
Id String The vswitch id.
- zone
Id 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.