alicloud_kvstore_instances
更新时间:
This data source provides the Tair (Redis OSS-Compatible) And Memcache (KVStore) Instances of the current Alibaba Cloud user.
-> NOTE: Available since v1.15.0.
Example Usage
data "alicloud_kvstore_instances" "default" {
name_regex = "testname"
}
output "first_instance_name" {
value = data.alicloud_kvstore_instances.default.instances.0.name
}
Argument Reference
The following arguments are supported:
name_regex- (Optional, ForceNew) A regex string to apply to the instance name.ids- (Optional, ForceNew, Available since v1.52.2) A list of KVStore DBInstance IDs.instance_type- (Optional, ForceNew) The engine type of the KVStore DBInstance. Options areMemcache, andRedis. If no value is specified, all types are returned.status- (Optional, ForceNew) The status of the KVStore DBInstance. Valid values:Changing,CleaningUpExpiredData,Creating,Flushing,HASwitching,Inactive,MajorVersionUpgrading,Migrating,NetworkModifying,Normal,Rebooting,SSLModifying,Transforming,ZoneMigrating.instance_class- (Optional, ForceNew) Type of the applied Tair (Redis OSS-Compatible) And Memcache (KVStore) Classic Instance. For more information, see Instance type table.vpc_id- (Optional, ForceNew) Used to retrieve instances belong to specified VPC.vswitch_id- (Optional, ForceNew) Used to retrieve instances belong to specifiedvswitchresources.tags- (Optional) Query the instance bound to the tag. The format of the incoming value isjsonstring, includingTagKeyandTagValue.TagKeycannot be null, andTagValuecan be empty. Format example{"key1":"value1"}.architecture_type- (Optional, ForceNew, Available since v1.101.0) The type of the architecture. Valid values:cluster,standardandSplitRW.edition_type- (Optional, ForceNew, Available since v1.101.0) Used to retrieve instances belong to specifiedvswitchresources. Valid values:Enterprise,Community.engine_version- (Optional, ForceNew, Available since v1.101.0) The engine version. Valid values:2.8,4.0,5.0,6.0,7.0.expired- (Optional, ForceNew, Available since v1.101.0) The expiration status of the instance.global_instance- (Optional, ForceNew, Available since v1.101.0) Whether to create a distributed cache.network_type- (Optional, ForceNew, Available since v1.101.0) The type of the network. Valid values:CLASSIC,VPC.payment_type- (Optional, ForceNew, Available since v1.101.0) The payment type. Valid values:PostPaid,PrePaid.resource_group_id- (Optional, ForceNew, Available since v1.101.0) The ID of the resource group.search_key- (Optional, ForceNew, Available since v1.101.0) The name of the instance.zone_id- (Optional, ForceNew, Available since v1.101.0) The ID of the zone.enable_details- (Optional, Available since v1.101.0) Default tofalse. Set it to true can output more details.output_file- (Optional) The name of file that can save the collection of instances after runningterraform plan.
Attributes Reference
The following attributes are exported in addition to the arguments listed above:
ids- A list of KVStore Instance IDs.names- A list of KVStore Instance names.instances- A list of KVStore Instances. Its every element contains the following attributes:id- The ID of the instance.name- It has been deprecated from provider version 1.101.0 anddb_instance_nameinstead.db_instance_name- The name of the instance.charge_type- It has been deprecated from provider version 1.101.0 andpayment_typeinstead.payment_type- Billing method. Valid Values:PostPaidfor Pay-As-You-Go andPrePaidfor subscription.expire_time- It has been deprecated from provider version 1.101.0 andend_timeinstead.end_time- Expiration time. Pay-As-You-Go instances are never expire.availability_zone- It has been deprecated from provider version 1.101.0 andzone_idinstead.zone_id- The ID of zone.connections- IIt has been deprecated from provider version 1.101.0 andmax_connectionsinstead.max_connections- Instance connection quantity limit. Unit: count.status- Status of the instance.instance_type- Database type. Valid Values:Memcache,Redis. If no value is specified, all types are returned.instance_class- Type of the applied Tair (Redis OSS-Compatible) And Memcached (KVStore) Classic Instance. For more information, see Instance type table.vpc_id- VPC ID the instance belongs to.vswitch_id- VSwitch ID the instance belongs to.private_ip- Private IP address of the instance.capacity- Capacity of the applied Tair (Redis OSS-Compatible) And Memcached (KVStore) Classic Instance. Unit: MB.bandwidth- Instance bandwidth limit. Unit: Mbit/s.config- The parameter configuration of the instance.connection_mode- The connection mode of the instance.db_instance_id- The ID of the instance.destroy_time- The time when the instance was destroyed.engine_version- The engine version of the instance.has_renew_change_order- Indicates whether there was an order of renewal with configuration change that had not taken effect.is_rds- Indicates whether the instance is managed by Relational Database Service (RDS).network_type- The network type of the instance.node_type- The node type of the instance.package_type- The type of the package.port- The service port of the instance.qps- The queries per second (QPS) supported by the instance.replacate_id- The logical ID of the replica instance.vpc_cloud_instance_id- Connection port of the instance.region_id- Region ID the instance belongs to.create_time- Creation time of the instance.user_name- The username of the instance.connection_domain- Instance connection domain (only Intranet access supported).secondary_zone_id- The ID of the secondary zone to which you want to migrate the Tair (Redis OSS-Compatible) And Memcache (KVStore) Classic Instance.maintain_start_time- The start time of the maintenance window. The time is in the HH:mmZ format. The time is displayed in UTC.maintain_end_time- The end time of the maintenance window. The time is in the HH:mmZ format. The time is displayed in UTC.security_ips- The IP addresses in the whitelist.instance_release_protection- Indicates whether the release protection feature is enabled for the instance.security_group_id- The ID of the security group associated with the instance.security_ip_group_attribute- By default, this parameter is left empty. The attribute of the whitelist. The console does not display the whitelist whose value of this parameter is hiddensecurity_ip_group_name- The name of the IP address whitelist.resource_group_id- The ID of the resource group to which the instance belongs.vpc_auth_mode- Indicates whether password authentication is enabled. Valid values: Open, Close.auto_renew_period- The duration for which the instance is automatically renewed. Unit: months.auto_renew- Indicates whether auto-renewal is enabled for the instance.ssl_enable- Indicates whether SSL encryption is enabled.architecture_type- The architecture type of the instance.search_key- The keyword used for fuzzy search. The keyword can be based on an instance name or an instance ID.tags- A mapping of tags to assign to the resource.
该文章对您有帮助吗?