GetInstances
The alicloud.kvstore.getInstances data source provides a collection of kvstore instances available in Alicloud account.
Filters support regular expression for the instance name, searches by tags, and other filters which are listed below.
Using GetInstances
function getInstances(args: GetInstancesArgs, opts?: InvokeOptions): Promise<GetInstancesResult>function get_instances(ids=None, instance_class=None, instance_type=None, name_regex=None, output_file=None, status=None, tags=None, vpc_id=None, vswitch_id=None, opts=None)func GetInstances(ctx *Context, args *GetInstancesArgs, opts ...InvokeOption) (*GetInstancesResult, error)public static class GetInstances {
public static Task<GetInstancesResult> InvokeAsync(GetInstancesArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Ids List<string>
A list of RKV instance IDs.
- Instance
Class string Type of the applied ApsaraDB for Redis instance. For more information, see Instance type table.
- Instance
Type string Database type. Options are
Memcache, andRedis. If no value is specified, all types are returned.- Name
Regex string A regex string to apply to the instance name.
- Output
File string - Status string
Status of the instance.
- Dictionary<string, object>
Query the instance bound to the tag. The format of the incoming value is
jsonstring, includingTagKeyandTagValue.TagKeycannot be null, andTagValuecan be empty. Format example{"key1":"value1"}.- Vpc
Id string Used to retrieve instances belong to specified VPC.
- Vswitch
Id string Used to retrieve instances belong to specified
vswitchresources.
- Ids []string
A list of RKV instance IDs.
- Instance
Class string Type of the applied ApsaraDB for Redis instance. For more information, see Instance type table.
- Instance
Type string Database type. Options are
Memcache, andRedis. If no value is specified, all types are returned.- Name
Regex string A regex string to apply to the instance name.
- Output
File string - Status string
Status of the instance.
- map[string]interface{}
Query the instance bound to the tag. The format of the incoming value is
jsonstring, includingTagKeyandTagValue.TagKeycannot be null, andTagValuecan be empty. Format example{"key1":"value1"}.- Vpc
Id string Used to retrieve instances belong to specified VPC.
- Vswitch
Id string Used to retrieve instances belong to specified
vswitchresources.
- ids string[]
A list of RKV instance IDs.
- instance
Class string Type of the applied ApsaraDB for Redis instance. For more information, see Instance type table.
- instance
Type string Database type. Options are
Memcache, andRedis. If no value is specified, all types are returned.- name
Regex string A regex string to apply to the instance name.
- output
File string - status string
Status of the instance.
- {[key: string]: any}
Query the instance bound to the tag. The format of the incoming value is
jsonstring, includingTagKeyandTagValue.TagKeycannot be null, andTagValuecan be empty. Format example{"key1":"value1"}.- vpc
Id string Used to retrieve instances belong to specified VPC.
- vswitch
Id string Used to retrieve instances belong to specified
vswitchresources.
- ids List[str]
A list of RKV instance IDs.
- instance_
class str Type of the applied ApsaraDB for Redis instance. For more information, see Instance type table.
- instance_
type str Database type. Options are
Memcache, andRedis. If no value is specified, all types are returned.- name_
regex str A regex string to apply to the instance name.
- output_
file str - status str
Status of the instance.
- Dict[str, Any]
Query the instance bound to the tag. The format of the incoming value is
jsonstring, includingTagKeyandTagValue.TagKeycannot be null, andTagValuecan be empty. Format example{"key1":"value1"}.- vpc_
id str Used to retrieve instances belong to specified VPC.
- vswitch_
id str Used to retrieve instances belong to specified
vswitchresources.
GetInstances Result
The following output properties are available:
- Id string
The provider-assigned unique ID for this managed resource.
- Ids List<string>
A list of RKV instance IDs.
- Instances
List<Pulumi.
Ali Cloud. KVStore. Outputs. Get Instances Instance> A list of RKV instances. Its every element contains the following attributes:
- Names List<string>
- Instance
Class string - Instance
Type string (Optional) Database type. Options are
Memcache, andRedis. If no value is specified, all types are returned. *instance_class- (Optional) Type of the applied ApsaraDB for Redis instance. For more information, see Instance type table.- Name
Regex string - Output
File string - Status string
Status of the instance.
- Dictionary<string, object>
- Vpc
Id string VPC ID the instance belongs to.
- Vswitch
Id string VSwitch ID the instance belongs to.
- Id string
The provider-assigned unique ID for this managed resource.
- Ids []string
A list of RKV instance IDs.
- Instances
[]Get
Instances Instance A list of RKV instances. Its every element contains the following attributes:
- Names []string
- Instance
Class string - Instance
Type string (Optional) Database type. Options are
Memcache, andRedis. If no value is specified, all types are returned. *instance_class- (Optional) Type of the applied ApsaraDB for Redis instance. For more information, see Instance type table.- Name
Regex string - Output
File string - Status string
Status of the instance.
- map[string]interface{}
- Vpc
Id string VPC ID the instance belongs to.
- Vswitch
Id string VSwitch ID the instance belongs to.
- id string
The provider-assigned unique ID for this managed resource.
- ids string[]
A list of RKV instance IDs.
- instances
Get
Instances Instance[] A list of RKV instances. Its every element contains the following attributes:
- names string[]
- instance
Class string - instance
Type string (Optional) Database type. Options are
Memcache, andRedis. If no value is specified, all types are returned. *instance_class- (Optional) Type of the applied ApsaraDB for Redis instance. For more information, see Instance type table.- name
Regex string - output
File string - status string
Status of the instance.
- {[key: string]: any}
- vpc
Id string VPC ID the instance belongs to.
- vswitch
Id string VSwitch ID the instance belongs to.
- id str
The provider-assigned unique ID for this managed resource.
- ids List[str]
A list of RKV instance IDs.
- instances
List[Get
Instances Instance] A list of RKV instances. Its every element contains the following attributes:
- names List[str]
- instance_
class str - instance_
type str (Optional) Database type. Options are
Memcache, andRedis. If no value is specified, all types are returned. *instance_class- (Optional) Type of the applied ApsaraDB for Redis instance. For more information, see Instance type table.- name_
regex str - output_
file str - status str
Status of the instance.
- Dict[str, Any]
- vpc_
id str VPC ID the instance belongs to.
- vswitch_
id str VSwitch ID the instance belongs to.
Supporting Types
GetInstancesInstance
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Availability
Zone string Availability zone.
- Bandwidth int
Instance bandwidth limit. Unit: Mbit/s.
- Capacity int
Capacity of the applied ApsaraDB for Redis instance. Unit: MB.
- Charge
Type string Billing method. Value options:
PostPaidfor Pay-As-You-Go andPrePaidfor subscription.- Connection
Domain string - Connections int
Instance connection quantity limit. Unit: count.
- Create
Time string Creation time of the instance.
- Expire
Time string Expiration time. Pay-As-You-Go instances are never expire.
- Id string
The ID of the RKV instance.
- Instance
Class string Type of the applied ApsaraDB for Redis instance. For more information, see Instance type table.
- Instance
Type string Database type. Options are
Memcache, andRedis. If no value is specified, all types are returned.- Name string
The name of the RKV instance.
- Port int
Connection port of the instance.
- Private
Ip string Private IP address of the instance.
- Region
Id string Region ID the instance belongs to.
- Status string
Status of the instance.
- User
Name string - Vpc
Id string Used to retrieve instances belong to specified VPC.
- Vswitch
Id string Used to retrieve instances belong to specified
vswitchresources.
- Availability
Zone string Availability zone.
- Bandwidth int
Instance bandwidth limit. Unit: Mbit/s.
- Capacity int
Capacity of the applied ApsaraDB for Redis instance. Unit: MB.
- Charge
Type string Billing method. Value options:
PostPaidfor Pay-As-You-Go andPrePaidfor subscription.- Connection
Domain string - Connections int
Instance connection quantity limit. Unit: count.
- Create
Time string Creation time of the instance.
- Expire
Time string Expiration time. Pay-As-You-Go instances are never expire.
- Id string
The ID of the RKV instance.
- Instance
Class string Type of the applied ApsaraDB for Redis instance. For more information, see Instance type table.
- Instance
Type string Database type. Options are
Memcache, andRedis. If no value is specified, all types are returned.- Name string
The name of the RKV instance.
- Port int
Connection port of the instance.
- Private
Ip string Private IP address of the instance.
- Region
Id string Region ID the instance belongs to.
- Status string
Status of the instance.
- User
Name string - Vpc
Id string Used to retrieve instances belong to specified VPC.
- Vswitch
Id string Used to retrieve instances belong to specified
vswitchresources.
- availability
Zone string Availability zone.
- bandwidth number
Instance bandwidth limit. Unit: Mbit/s.
- capacity number
Capacity of the applied ApsaraDB for Redis instance. Unit: MB.
- charge
Type string Billing method. Value options:
PostPaidfor Pay-As-You-Go andPrePaidfor subscription.- connection
Domain string - connections number
Instance connection quantity limit. Unit: count.
- create
Time string Creation time of the instance.
- expire
Time string Expiration time. Pay-As-You-Go instances are never expire.
- id string
The ID of the RKV instance.
- instance
Class string Type of the applied ApsaraDB for Redis instance. For more information, see Instance type table.
- instance
Type string Database type. Options are
Memcache, andRedis. If no value is specified, all types are returned.- name string
The name of the RKV instance.
- port number
Connection port of the instance.
- private
Ip string Private IP address of the instance.
- region
Id string Region ID the instance belongs to.
- status string
Status of the instance.
- user
Name string - vpc
Id string Used to retrieve instances belong to specified VPC.
- vswitch
Id string Used to retrieve instances belong to specified
vswitchresources.
- availability_
zone str Availability zone.
- bandwidth float
Instance bandwidth limit. Unit: Mbit/s.
- capacity float
Capacity of the applied ApsaraDB for Redis instance. Unit: MB.
- charge_
type str Billing method. Value options:
PostPaidfor Pay-As-You-Go andPrePaidfor subscription.- connection_
domain str - connections float
Instance connection quantity limit. Unit: count.
- create_
time str Creation time of the instance.
- expire_
time str Expiration time. Pay-As-You-Go instances are never expire.
- id str
The ID of the RKV instance.
- instance_
class str Type of the applied ApsaraDB for Redis instance. For more information, see Instance type table.
- instance_
type str Database type. Options are
Memcache, andRedis. If no value is specified, all types are returned.- name str
The name of the RKV instance.
- port float
Connection port of the instance.
- private_
ip str Private IP address of the instance.
- region
Id str Region ID the instance belongs to.
- status str
Status of the instance.
- user_
name str - vpc_
id str Used to retrieve instances belong to specified VPC.
- vswitch_
id str Used to retrieve instances belong to specified
vswitchresources.
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.