Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi
alicloud.hbase.getInstances
Explore with Pulumi AI
The alicloud.hbase.getInstances
data source provides a collection of HBase instances available in Alicloud account.
Filters support regular expression for the instance name, ids or availability_zone.
NOTE: Available in 1.67.0+
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const hbase = alicloud.hbase.getInstances({
nameRegex: "tf_testAccHBase",
availabilityZone: "cn-shenzhen-b",
});
import pulumi
import pulumi_alicloud as alicloud
hbase = alicloud.hbase.get_instances(name_regex="tf_testAccHBase",
availability_zone="cn-shenzhen-b")
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/hbase"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := hbase.GetInstances(ctx, &hbase.GetInstancesArgs{
NameRegex: pulumi.StringRef("tf_testAccHBase"),
AvailabilityZone: pulumi.StringRef("cn-shenzhen-b"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var hbase = AliCloud.Hbase.GetInstances.Invoke(new()
{
NameRegex = "tf_testAccHBase",
AvailabilityZone = "cn-shenzhen-b",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.hbase.HbaseFunctions;
import com.pulumi.alicloud.hbase.inputs.GetInstancesArgs;
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 hbase = HbaseFunctions.getInstances(GetInstancesArgs.builder()
.nameRegex("tf_testAccHBase")
.availabilityZone("cn-shenzhen-b")
.build());
}
}
variables:
hbase:
fn::invoke:
function: alicloud:hbase:getInstances
arguments:
nameRegex: tf_testAccHBase
availabilityZone: cn-shenzhen-b
Using getInstances
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 getInstances(args: GetInstancesArgs, opts?: InvokeOptions): Promise<GetInstancesResult>
function getInstancesOutput(args: GetInstancesOutputArgs, opts?: InvokeOptions): Output<GetInstancesResult>
def get_instances(availability_zone: Optional[str] = None,
ids: Optional[Sequence[str]] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
opts: Optional[InvokeOptions] = None) -> GetInstancesResult
def get_instances_output(availability_zone: Optional[pulumi.Input[str]] = None,
ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetInstancesResult]
func GetInstances(ctx *Context, args *GetInstancesArgs, opts ...InvokeOption) (*GetInstancesResult, error)
func GetInstancesOutput(ctx *Context, args *GetInstancesOutputArgs, opts ...InvokeOption) GetInstancesResultOutput
> Note: This function is named GetInstances
in the Go SDK.
public static class GetInstances
{
public static Task<GetInstancesResult> InvokeAsync(GetInstancesArgs args, InvokeOptions? opts = null)
public static Output<GetInstancesResult> Invoke(GetInstancesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetInstancesResult> getInstances(GetInstancesArgs args, InvokeOptions options)
public static Output<GetInstancesResult> getInstances(GetInstancesArgs args, InvokeOptions options)
fn::invoke:
function: alicloud:hbase/getInstances:getInstances
arguments:
# arguments dictionary
The following arguments are supported:
- Availability
Zone string - Instance availability zone.
- Ids List<string>
- The ids list of HBase instances
- Name
Regex string - A regex string to apply to the instance name.
- Output
File string - The name of file that can save the collection of instances after running
pulumi preview
. - Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Availability
Zone string - Instance availability zone.
- Ids []string
- The ids list of HBase instances
- Name
Regex string - A regex string to apply to the instance name.
- Output
File string - The name of file that can save the collection of instances after running
pulumi preview
. - map[string]string
- A mapping of tags to assign to the resource.
- availability
Zone String - Instance availability zone.
- ids List<String>
- The ids list of HBase instances
- name
Regex String - A regex string to apply to the instance name.
- output
File String - The name of file that can save the collection of instances after running
pulumi preview
. - Map<String,String>
- A mapping of tags to assign to the resource.
- availability
Zone string - Instance availability zone.
- ids string[]
- The ids list of HBase instances
- name
Regex string - A regex string to apply to the instance name.
- output
File string - The name of file that can save the collection of instances after running
pulumi preview
. - {[key: string]: string}
- A mapping of tags to assign to the resource.
- availability_
zone str - Instance availability zone.
- ids Sequence[str]
- The ids list of HBase instances
- name_
regex str - A regex string to apply to the instance name.
- output_
file str - The name of file that can save the collection of instances after running
pulumi preview
. - Mapping[str, str]
- A mapping of tags to assign to the resource.
- availability
Zone String - Instance availability zone.
- ids List<String>
- The ids list of HBase instances
- name
Regex String - A regex string to apply to the instance name.
- output
File String - The name of file that can save the collection of instances after running
pulumi preview
. - Map<String>
- A mapping of tags to assign to the resource.
getInstances Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- The ids list of HBase instances
- Instances
List<Pulumi.
Ali Cloud. Hbase. Outputs. Get Instances Instance> - A list of HBase instances. Its every element contains the following attributes:
- Names List<string>
- The names list of HBase instances
- Availability
Zone string - Name
Regex string - Output
File string - Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- The ids list of HBase instances
- Instances
[]Get
Instances Instance - A list of HBase instances. Its every element contains the following attributes:
- Names []string
- The names list of HBase instances
- Availability
Zone string - Name
Regex string - Output
File string - map[string]string
- A mapping of tags to assign to the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- The ids list of HBase instances
- instances
List<Get
Instances Instance> - A list of HBase instances. Its every element contains the following attributes:
- names List<String>
- The names list of HBase instances
- availability
Zone String - name
Regex String - output
File String - Map<String,String>
- A mapping of tags to assign to the resource.
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- The ids list of HBase instances
- instances
Get
Instances Instance[] - A list of HBase instances. Its every element contains the following attributes:
- names string[]
- The names list of HBase instances
- availability
Zone string - name
Regex string - output
File string - {[key: string]: string}
- A mapping of tags to assign to the resource.
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- The ids list of HBase instances
- instances
Sequence[Get
Instances Instance] - A list of HBase instances. Its every element contains the following attributes:
- names Sequence[str]
- The names list of HBase instances
- availability_
zone str - name_
regex str - output_
file str - Mapping[str, str]
- A mapping of tags to assign to the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- The ids list of HBase instances
- instances List<Property Map>
- A list of HBase instances. Its every element contains the following attributes:
- names List<String>
- The names list of HBase instances
- availability
Zone String - name
Regex String - output
File String - Map<String>
- A mapping of tags to assign to the resource.
Supporting Types
GetInstancesInstance
- Backup
Status This property is required. string - The Backup Status of the instance.
- Core
Disk Size This property is required. int - Core node disk size, unit:GB.
- Core
Disk Type This property is required. string - Cloud_ssd or cloud_efficiency
- Core
Instance Type This property is required. string - Like hbase.sn2.2xlarge, hbase.sn2.4xlarge, hbase.sn2.8xlarge and so on.
- Core
Node Count This property is required. int - Same with "core_instance_quantity"
- Created
Time This property is required. string - The created time of the instance.
- Deletion
Protection This property is required. bool - The switch of delete protection.
- Engine
This property is required. string - The engine of the instance.
- Engine
Version This property is required. string - The engine_version of the instance.
- Expire
Time This property is required. string - The expire time of the instance.
- Id
This property is required. string - The ID of the HBase instance.
- Master
Instance Type This property is required. string - Like hbase.sn2.2xlarge, hbase.sn2.4xlarge, hbase.sn2.8xlarge and so on.
- Master
Node Count This property is required. int - The node count of master
- Name
This property is required. string - The name of the HBase instance.
- Network
Type This property is required. string - Classic network or VPC.
- Pay
Type This property is required. string - Billing method. Value options are
PostPaid
for Pay-As-You-Go andPrePaid
for yearly or monthly subscription. - Region
Id This property is required. string - Region ID the instance belongs to.
- Status
This property is required. string - Status of the instance.
- Vpc
Id This property is required. string - VPC ID the instance belongs to.
- Vswitch
Id This property is required. string - VSwitch ID the instance belongs to.
- Zone
Id This property is required. string - Zone ID the instance belongs to.
- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Backup
Status This property is required. string - The Backup Status of the instance.
- Core
Disk Size This property is required. int - Core node disk size, unit:GB.
- Core
Disk Type This property is required. string - Cloud_ssd or cloud_efficiency
- Core
Instance Type This property is required. string - Like hbase.sn2.2xlarge, hbase.sn2.4xlarge, hbase.sn2.8xlarge and so on.
- Core
Node Count This property is required. int - Same with "core_instance_quantity"
- Created
Time This property is required. string - The created time of the instance.
- Deletion
Protection This property is required. bool - The switch of delete protection.
- Engine
This property is required. string - The engine of the instance.
- Engine
Version This property is required. string - The engine_version of the instance.
- Expire
Time This property is required. string - The expire time of the instance.
- Id
This property is required. string - The ID of the HBase instance.
- Master
Instance Type This property is required. string - Like hbase.sn2.2xlarge, hbase.sn2.4xlarge, hbase.sn2.8xlarge and so on.
- Master
Node Count This property is required. int - The node count of master
- Name
This property is required. string - The name of the HBase instance.
- Network
Type This property is required. string - Classic network or VPC.
- Pay
Type This property is required. string - Billing method. Value options are
PostPaid
for Pay-As-You-Go andPrePaid
for yearly or monthly subscription. - Region
Id This property is required. string - Region ID the instance belongs to.
- Status
This property is required. string - Status of the instance.
- Vpc
Id This property is required. string - VPC ID the instance belongs to.
- Vswitch
Id This property is required. string - VSwitch ID the instance belongs to.
- Zone
Id This property is required. string - Zone ID the instance belongs to.
- map[string]string
- A mapping of tags to assign to the resource.
- backup
Status This property is required. String - The Backup Status of the instance.
- core
Disk Size This property is required. Integer - Core node disk size, unit:GB.
- core
Disk Type This property is required. String - Cloud_ssd or cloud_efficiency
- core
Instance Type This property is required. String - Like hbase.sn2.2xlarge, hbase.sn2.4xlarge, hbase.sn2.8xlarge and so on.
- core
Node Count This property is required. Integer - Same with "core_instance_quantity"
- created
Time This property is required. String - The created time of the instance.
- deletion
Protection This property is required. Boolean - The switch of delete protection.
- engine
This property is required. String - The engine of the instance.
- engine
Version This property is required. String - The engine_version of the instance.
- expire
Time This property is required. String - The expire time of the instance.
- id
This property is required. String - The ID of the HBase instance.
- master
Instance Type This property is required. String - Like hbase.sn2.2xlarge, hbase.sn2.4xlarge, hbase.sn2.8xlarge and so on.
- master
Node Count This property is required. Integer - The node count of master
- name
This property is required. String - The name of the HBase instance.
- network
Type This property is required. String - Classic network or VPC.
- pay
Type This property is required. String - Billing method. Value options are
PostPaid
for Pay-As-You-Go andPrePaid
for yearly or monthly subscription. - region
Id This property is required. String - Region ID the instance belongs to.
- status
This property is required. String - Status of the instance.
- vpc
Id This property is required. String - VPC ID the instance belongs to.
- vswitch
Id This property is required. String - VSwitch ID the instance belongs to.
- zone
Id This property is required. String - Zone ID the instance belongs to.
- Map<String,String>
- A mapping of tags to assign to the resource.
- backup
Status This property is required. string - The Backup Status of the instance.
- core
Disk Size This property is required. number - Core node disk size, unit:GB.
- core
Disk Type This property is required. string - Cloud_ssd or cloud_efficiency
- core
Instance Type This property is required. string - Like hbase.sn2.2xlarge, hbase.sn2.4xlarge, hbase.sn2.8xlarge and so on.
- core
Node Count This property is required. number - Same with "core_instance_quantity"
- created
Time This property is required. string - The created time of the instance.
- deletion
Protection This property is required. boolean - The switch of delete protection.
- engine
This property is required. string - The engine of the instance.
- engine
Version This property is required. string - The engine_version of the instance.
- expire
Time This property is required. string - The expire time of the instance.
- id
This property is required. string - The ID of the HBase instance.
- master
Instance Type This property is required. string - Like hbase.sn2.2xlarge, hbase.sn2.4xlarge, hbase.sn2.8xlarge and so on.
- master
Node Count This property is required. number - The node count of master
- name
This property is required. string - The name of the HBase instance.
- network
Type This property is required. string - Classic network or VPC.
- pay
Type This property is required. string - Billing method. Value options are
PostPaid
for Pay-As-You-Go andPrePaid
for yearly or monthly subscription. - region
Id This property is required. string - Region ID the instance belongs to.
- status
This property is required. string - Status of the instance.
- vpc
Id This property is required. string - VPC ID the instance belongs to.
- vswitch
Id This property is required. string - VSwitch ID the instance belongs to.
- zone
Id This property is required. string - Zone ID the instance belongs to.
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- backup_
status This property is required. str - The Backup Status of the instance.
- core_
disk_ size This property is required. int - Core node disk size, unit:GB.
- core_
disk_ type This property is required. str - Cloud_ssd or cloud_efficiency
- core_
instance_ type This property is required. str - Like hbase.sn2.2xlarge, hbase.sn2.4xlarge, hbase.sn2.8xlarge and so on.
- core_
node_ count This property is required. int - Same with "core_instance_quantity"
- created_
time This property is required. str - The created time of the instance.
- deletion_
protection This property is required. bool - The switch of delete protection.
- engine
This property is required. str - The engine of the instance.
- engine_
version This property is required. str - The engine_version of the instance.
- expire_
time This property is required. str - The expire time of the instance.
- id
This property is required. str - The ID of the HBase instance.
- master_
instance_ type This property is required. str - Like hbase.sn2.2xlarge, hbase.sn2.4xlarge, hbase.sn2.8xlarge and so on.
- master_
node_ count This property is required. int - The node count of master
- name
This property is required. str - The name of the HBase instance.
- network_
type This property is required. str - Classic network or VPC.
- pay_
type This property is required. str - Billing method. Value options are
PostPaid
for Pay-As-You-Go andPrePaid
for yearly or monthly subscription. - region_
id This property is required. str - Region ID the instance belongs to.
- status
This property is required. str - Status of the instance.
- vpc_
id This property is required. str - VPC ID the instance belongs to.
- vswitch_
id This property is required. str - VSwitch ID the instance belongs to.
- zone_
id This property is required. str - Zone ID the instance belongs to.
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- backup
Status This property is required. String - The Backup Status of the instance.
- core
Disk Size This property is required. Number - Core node disk size, unit:GB.
- core
Disk Type This property is required. String - Cloud_ssd or cloud_efficiency
- core
Instance Type This property is required. String - Like hbase.sn2.2xlarge, hbase.sn2.4xlarge, hbase.sn2.8xlarge and so on.
- core
Node Count This property is required. Number - Same with "core_instance_quantity"
- created
Time This property is required. String - The created time of the instance.
- deletion
Protection This property is required. Boolean - The switch of delete protection.
- engine
This property is required. String - The engine of the instance.
- engine
Version This property is required. String - The engine_version of the instance.
- expire
Time This property is required. String - The expire time of the instance.
- id
This property is required. String - The ID of the HBase instance.
- master
Instance Type This property is required. String - Like hbase.sn2.2xlarge, hbase.sn2.4xlarge, hbase.sn2.8xlarge and so on.
- master
Node Count This property is required. Number - The node count of master
- name
This property is required. String - The name of the HBase instance.
- network
Type This property is required. String - Classic network or VPC.
- pay
Type This property is required. String - Billing method. Value options are
PostPaid
for Pay-As-You-Go andPrePaid
for yearly or monthly subscription. - region
Id This property is required. String - Region ID the instance belongs to.
- status
This property is required. String - Status of the instance.
- vpc
Id This property is required. String - VPC ID the instance belongs to.
- vswitch
Id This property is required. String - VSwitch ID the instance belongs to.
- zone
Id This property is required. String - Zone ID the instance belongs to.
- Map<String>
- A mapping of tags to assign to 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.