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

flexibleengine.getGaussdbCassandraInstances

Explore with Pulumi AI

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

    Use this data source to get available FlexibleEngine gaussdb cassandra instances.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const _this = flexibleengine.getGaussdbCassandraInstances({
        name: "gaussdb-instance",
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    this = flexibleengine.get_gaussdb_cassandra_instances(name="gaussdb-instance")
    
    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.GetGaussdbCassandraInstances(ctx, &flexibleengine.GetGaussdbCassandraInstancesArgs{
    			Name: pulumi.StringRef("gaussdb-instance"),
    		}, 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 @this = Flexibleengine.GetGaussdbCassandraInstances.Invoke(new()
        {
            Name = "gaussdb-instance",
        });
    
    });
    
    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.GetGaussdbCassandraInstancesArgs;
    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 this = FlexibleengineFunctions.getGaussdbCassandraInstances(GetGaussdbCassandraInstancesArgs.builder()
                .name("gaussdb-instance")
                .build());
    
        }
    }
    
    variables:
      this:
        fn::invoke:
          function: flexibleengine:getGaussdbCassandraInstances
          arguments:
            name: gaussdb-instance
    

    Using getGaussdbCassandraInstances

    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 getGaussdbCassandraInstances(args: GetGaussdbCassandraInstancesArgs, opts?: InvokeOptions): Promise<GetGaussdbCassandraInstancesResult>
    function getGaussdbCassandraInstancesOutput(args: GetGaussdbCassandraInstancesOutputArgs, opts?: InvokeOptions): Output<GetGaussdbCassandraInstancesResult>
    def get_gaussdb_cassandra_instances(id: Optional[str] = None,
                                        name: Optional[str] = None,
                                        region: Optional[str] = None,
                                        subnet_id: Optional[str] = None,
                                        vpc_id: Optional[str] = None,
                                        opts: Optional[InvokeOptions] = None) -> GetGaussdbCassandraInstancesResult
    def get_gaussdb_cassandra_instances_output(id: Optional[pulumi.Input[str]] = None,
                                        name: Optional[pulumi.Input[str]] = None,
                                        region: Optional[pulumi.Input[str]] = None,
                                        subnet_id: Optional[pulumi.Input[str]] = None,
                                        vpc_id: Optional[pulumi.Input[str]] = None,
                                        opts: Optional[InvokeOptions] = None) -> Output[GetGaussdbCassandraInstancesResult]
    func GetGaussdbCassandraInstances(ctx *Context, args *GetGaussdbCassandraInstancesArgs, opts ...InvokeOption) (*GetGaussdbCassandraInstancesResult, error)
    func GetGaussdbCassandraInstancesOutput(ctx *Context, args *GetGaussdbCassandraInstancesOutputArgs, opts ...InvokeOption) GetGaussdbCassandraInstancesResultOutput

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

    public static class GetGaussdbCassandraInstances 
    {
        public static Task<GetGaussdbCassandraInstancesResult> InvokeAsync(GetGaussdbCassandraInstancesArgs args, InvokeOptions? opts = null)
        public static Output<GetGaussdbCassandraInstancesResult> Invoke(GetGaussdbCassandraInstancesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetGaussdbCassandraInstancesResult> getGaussdbCassandraInstances(GetGaussdbCassandraInstancesArgs args, InvokeOptions options)
    public static Output<GetGaussdbCassandraInstancesResult> getGaussdbCassandraInstances(GetGaussdbCassandraInstancesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: flexibleengine:index/getGaussdbCassandraInstances:getGaussdbCassandraInstances
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    Indicates the node ID.
    Name string
    Specifies the name of the instance.
    Region string
    The region in which to obtain the instance. If omitted, the provider-level region will be used.
    SubnetId string
    Specifies the network ID of a subnet.
    VpcId string
    Specifies the VPC ID.
    Id string
    Indicates the node ID.
    Name string
    Specifies the name of the instance.
    Region string
    The region in which to obtain the instance. If omitted, the provider-level region will be used.
    SubnetId string
    Specifies the network ID of a subnet.
    VpcId string
    Specifies the VPC ID.
    id String
    Indicates the node ID.
    name String
    Specifies the name of the instance.
    region String
    The region in which to obtain the instance. If omitted, the provider-level region will be used.
    subnetId String
    Specifies the network ID of a subnet.
    vpcId String
    Specifies the VPC ID.
    id string
    Indicates the node ID.
    name string
    Specifies the name of the instance.
    region string
    The region in which to obtain the instance. If omitted, the provider-level region will be used.
    subnetId string
    Specifies the network ID of a subnet.
    vpcId string
    Specifies the VPC ID.
    id str
    Indicates the node ID.
    name str
    Specifies the name of the instance.
    region str
    The region in which to obtain the instance. If omitted, the provider-level region will be used.
    subnet_id str
    Specifies the network ID of a subnet.
    vpc_id str
    Specifies the VPC ID.
    id String
    Indicates the node ID.
    name String
    Specifies the name of the instance.
    region String
    The region in which to obtain the instance. If omitted, the provider-level region will be used.
    subnetId String
    Specifies the network ID of a subnet.
    vpcId String
    Specifies the VPC ID.

    getGaussdbCassandraInstances Result

    The following output properties are available:

    Id string
    Indicates the node ID.
    Instances List<GetGaussdbCassandraInstancesInstance>
    An array of available instances. The instances object structure is documented below.
    Region string
    The region of the instance.
    Name string
    Indicates the node name.
    SubnetId string
    Indicates the network ID of a subnet.
    VpcId string
    Indicates the VPC ID.
    Id string
    Indicates the node ID.
    Instances []GetGaussdbCassandraInstancesInstance
    An array of available instances. The instances object structure is documented below.
    Region string
    The region of the instance.
    Name string
    Indicates the node name.
    SubnetId string
    Indicates the network ID of a subnet.
    VpcId string
    Indicates the VPC ID.
    id String
    Indicates the node ID.
    instances List<GetGaussdbCassandraInstancesInstance>
    An array of available instances. The instances object structure is documented below.
    region String
    The region of the instance.
    name String
    Indicates the node name.
    subnetId String
    Indicates the network ID of a subnet.
    vpcId String
    Indicates the VPC ID.
    id string
    Indicates the node ID.
    instances GetGaussdbCassandraInstancesInstance[]
    An array of available instances. The instances object structure is documented below.
    region string
    The region of the instance.
    name string
    Indicates the node name.
    subnetId string
    Indicates the network ID of a subnet.
    vpcId string
    Indicates the VPC ID.
    id str
    Indicates the node ID.
    instances Sequence[GetGaussdbCassandraInstancesInstance]
    An array of available instances. The instances object structure is documented below.
    region str
    The region of the instance.
    name str
    Indicates the node name.
    subnet_id str
    Indicates the network ID of a subnet.
    vpc_id str
    Indicates the VPC ID.
    id String
    Indicates the node ID.
    instances List<Property Map>
    An array of available instances. The instances object structure is documented below.
    region String
    The region of the instance.
    name String
    Indicates the node name.
    subnetId String
    Indicates the network ID of a subnet.
    vpcId String
    Indicates the VPC ID.

    Supporting Types

    GetGaussdbCassandraInstancesInstance

    AvailabilityZone string
    Indicates the availability zone where the node resides.
    BackupStrategies List<GetGaussdbCassandraInstancesInstanceBackupStrategy>
    Indicates the advanced backup policy. The backup_strategy object structure is documented below.
    Datastores List<GetGaussdbCassandraInstancesInstanceDatastore>
    Indicates the database information. The datastore object structure is documented below.
    DbUserName string
    Indicates the default username.
    EnterpriseProjectId string
    Indicates the enterprise project id.
    Flavor string
    Indicates the instance specifications.
    Id string
    Indicates the node ID.
    Mode string
    Indicates the instance mode.
    Name string
    Specifies the name of the instance.
    NodeNum double
    Indicates the count of the nodes.
    Nodes List<GetGaussdbCassandraInstancesInstanceNode>
    Indicates the instance nodes information. The nodes object structure is documented below.
    Port double
    Indicates the database port.
    PrivateIps List<string>
    Indicates the list of private IP address of the nodes.
    Region string
    The region in which to obtain the instance. If omitted, the provider-level region will be used.
    SecurityGroupId string
    Indicates the security group ID.
    Status string
    Indicates the node status.
    SubnetId string
    Specifies the network ID of a subnet.
    Tags Dictionary<string, string>
    Indicates the key/value tags of the instance.
    VolumeSize double
    Indicates the size of the volume.
    VpcId string
    Specifies the VPC ID.
    AvailabilityZone string
    Indicates the availability zone where the node resides.
    BackupStrategies []GetGaussdbCassandraInstancesInstanceBackupStrategy
    Indicates the advanced backup policy. The backup_strategy object structure is documented below.
    Datastores []GetGaussdbCassandraInstancesInstanceDatastore
    Indicates the database information. The datastore object structure is documented below.
    DbUserName string
    Indicates the default username.
    EnterpriseProjectId string
    Indicates the enterprise project id.
    Flavor string
    Indicates the instance specifications.
    Id string
    Indicates the node ID.
    Mode string
    Indicates the instance mode.
    Name string
    Specifies the name of the instance.
    NodeNum float64
    Indicates the count of the nodes.
    Nodes []GetGaussdbCassandraInstancesInstanceNode
    Indicates the instance nodes information. The nodes object structure is documented below.
    Port float64
    Indicates the database port.
    PrivateIps []string
    Indicates the list of private IP address of the nodes.
    Region string
    The region in which to obtain the instance. If omitted, the provider-level region will be used.
    SecurityGroupId string
    Indicates the security group ID.
    Status string
    Indicates the node status.
    SubnetId string
    Specifies the network ID of a subnet.
    Tags map[string]string
    Indicates the key/value tags of the instance.
    VolumeSize float64
    Indicates the size of the volume.
    VpcId string
    Specifies the VPC ID.
    availabilityZone String
    Indicates the availability zone where the node resides.
    backupStrategies List<GetGaussdbCassandraInstancesInstanceBackupStrategy>
    Indicates the advanced backup policy. The backup_strategy object structure is documented below.
    datastores List<GetGaussdbCassandraInstancesInstanceDatastore>
    Indicates the database information. The datastore object structure is documented below.
    dbUserName String
    Indicates the default username.
    enterpriseProjectId String
    Indicates the enterprise project id.
    flavor String
    Indicates the instance specifications.
    id String
    Indicates the node ID.
    mode String
    Indicates the instance mode.
    name String
    Specifies the name of the instance.
    nodeNum Double
    Indicates the count of the nodes.
    nodes List<GetGaussdbCassandraInstancesInstanceNode>
    Indicates the instance nodes information. The nodes object structure is documented below.
    port Double
    Indicates the database port.
    privateIps List<String>
    Indicates the list of private IP address of the nodes.
    region String
    The region in which to obtain the instance. If omitted, the provider-level region will be used.
    securityGroupId String
    Indicates the security group ID.
    status String
    Indicates the node status.
    subnetId String
    Specifies the network ID of a subnet.
    tags Map<String,String>
    Indicates the key/value tags of the instance.
    volumeSize Double
    Indicates the size of the volume.
    vpcId String
    Specifies the VPC ID.
    availabilityZone string
    Indicates the availability zone where the node resides.
    backupStrategies GetGaussdbCassandraInstancesInstanceBackupStrategy[]
    Indicates the advanced backup policy. The backup_strategy object structure is documented below.
    datastores GetGaussdbCassandraInstancesInstanceDatastore[]
    Indicates the database information. The datastore object structure is documented below.
    dbUserName string
    Indicates the default username.
    enterpriseProjectId string
    Indicates the enterprise project id.
    flavor string
    Indicates the instance specifications.
    id string
    Indicates the node ID.
    mode string
    Indicates the instance mode.
    name string
    Specifies the name of the instance.
    nodeNum number
    Indicates the count of the nodes.
    nodes GetGaussdbCassandraInstancesInstanceNode[]
    Indicates the instance nodes information. The nodes object structure is documented below.
    port number
    Indicates the database port.
    privateIps string[]
    Indicates the list of private IP address of the nodes.
    region string
    The region in which to obtain the instance. If omitted, the provider-level region will be used.
    securityGroupId string
    Indicates the security group ID.
    status string
    Indicates the node status.
    subnetId string
    Specifies the network ID of a subnet.
    tags {[key: string]: string}
    Indicates the key/value tags of the instance.
    volumeSize number
    Indicates the size of the volume.
    vpcId string
    Specifies the VPC ID.
    availability_zone str
    Indicates the availability zone where the node resides.
    backup_strategies Sequence[GetGaussdbCassandraInstancesInstanceBackupStrategy]
    Indicates the advanced backup policy. The backup_strategy object structure is documented below.
    datastores Sequence[GetGaussdbCassandraInstancesInstanceDatastore]
    Indicates the database information. The datastore object structure is documented below.
    db_user_name str
    Indicates the default username.
    enterprise_project_id str
    Indicates the enterprise project id.
    flavor str
    Indicates the instance specifications.
    id str
    Indicates the node ID.
    mode str
    Indicates the instance mode.
    name str
    Specifies the name of the instance.
    node_num float
    Indicates the count of the nodes.
    nodes Sequence[GetGaussdbCassandraInstancesInstanceNode]
    Indicates the instance nodes information. The nodes object structure is documented below.
    port float
    Indicates the database port.
    private_ips Sequence[str]
    Indicates the list of private IP address of the nodes.
    region str
    The region in which to obtain the instance. If omitted, the provider-level region will be used.
    security_group_id str
    Indicates the security group ID.
    status str
    Indicates the node status.
    subnet_id str
    Specifies the network ID of a subnet.
    tags Mapping[str, str]
    Indicates the key/value tags of the instance.
    volume_size float
    Indicates the size of the volume.
    vpc_id str
    Specifies the VPC ID.
    availabilityZone String
    Indicates the availability zone where the node resides.
    backupStrategies List<Property Map>
    Indicates the advanced backup policy. The backup_strategy object structure is documented below.
    datastores List<Property Map>
    Indicates the database information. The datastore object structure is documented below.
    dbUserName String
    Indicates the default username.
    enterpriseProjectId String
    Indicates the enterprise project id.
    flavor String
    Indicates the instance specifications.
    id String
    Indicates the node ID.
    mode String
    Indicates the instance mode.
    name String
    Specifies the name of the instance.
    nodeNum Number
    Indicates the count of the nodes.
    nodes List<Property Map>
    Indicates the instance nodes information. The nodes object structure is documented below.
    port Number
    Indicates the database port.
    privateIps List<String>
    Indicates the list of private IP address of the nodes.
    region String
    The region in which to obtain the instance. If omitted, the provider-level region will be used.
    securityGroupId String
    Indicates the security group ID.
    status String
    Indicates the node status.
    subnetId String
    Specifies the network ID of a subnet.
    tags Map<String>
    Indicates the key/value tags of the instance.
    volumeSize Number
    Indicates the size of the volume.
    vpcId String
    Specifies the VPC ID.

    GetGaussdbCassandraInstancesInstanceBackupStrategy

    KeepDays double
    Indicates the number of days to retain the generated
    StartTime string
    Indicates the backup time window.
    KeepDays float64
    Indicates the number of days to retain the generated
    StartTime string
    Indicates the backup time window.
    keepDays Double
    Indicates the number of days to retain the generated
    startTime String
    Indicates the backup time window.
    keepDays number
    Indicates the number of days to retain the generated
    startTime string
    Indicates the backup time window.
    keep_days float
    Indicates the number of days to retain the generated
    start_time str
    Indicates the backup time window.
    keepDays Number
    Indicates the number of days to retain the generated
    startTime String
    Indicates the backup time window.

    GetGaussdbCassandraInstancesInstanceDatastore

    Engine string
    Indicates the database engine.
    StorageEngine string
    Indicates the database storage engine.
    Version string
    Indicates the database version.
    Engine string
    Indicates the database engine.
    StorageEngine string
    Indicates the database storage engine.
    Version string
    Indicates the database version.
    engine String
    Indicates the database engine.
    storageEngine String
    Indicates the database storage engine.
    version String
    Indicates the database version.
    engine string
    Indicates the database engine.
    storageEngine string
    Indicates the database storage engine.
    version string
    Indicates the database version.
    engine str
    Indicates the database engine.
    storage_engine str
    Indicates the database storage engine.
    version str
    Indicates the database version.
    engine String
    Indicates the database engine.
    storageEngine String
    Indicates the database storage engine.
    version String
    Indicates the database version.

    GetGaussdbCassandraInstancesInstanceNode

    AvailabilityZone string
    Indicates the availability zone where the node resides.
    Id string
    Indicates the node ID.
    Name string
    Specifies the name of the instance.
    PrivateIp string
    Indicates the private IP address of a node.
    Status string
    Indicates the node status.
    SupportReduce bool
    Indicates whether the node support reduce.
    AvailabilityZone string
    Indicates the availability zone where the node resides.
    Id string
    Indicates the node ID.
    Name string
    Specifies the name of the instance.
    PrivateIp string
    Indicates the private IP address of a node.
    Status string
    Indicates the node status.
    SupportReduce bool
    Indicates whether the node support reduce.
    availabilityZone String
    Indicates the availability zone where the node resides.
    id String
    Indicates the node ID.
    name String
    Specifies the name of the instance.
    privateIp String
    Indicates the private IP address of a node.
    status String
    Indicates the node status.
    supportReduce Boolean
    Indicates whether the node support reduce.
    availabilityZone string
    Indicates the availability zone where the node resides.
    id string
    Indicates the node ID.
    name string
    Specifies the name of the instance.
    privateIp string
    Indicates the private IP address of a node.
    status string
    Indicates the node status.
    supportReduce boolean
    Indicates whether the node support reduce.
    availability_zone str
    Indicates the availability zone where the node resides.
    id str
    Indicates the node ID.
    name str
    Specifies the name of the instance.
    private_ip str
    Indicates the private IP address of a node.
    status str
    Indicates the node status.
    support_reduce bool
    Indicates whether the node support reduce.
    availabilityZone String
    Indicates the availability zone where the node resides.
    id String
    Indicates the node ID.
    name String
    Specifies the name of the instance.
    privateIp String
    Indicates the private IP address of a node.
    status String
    Indicates the node status.
    supportReduce Boolean
    Indicates whether the node support reduce.

    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