alicloud_kvstore_connections
更新时间:
This data source can query the public IP of the specified Tair (Redis OSS-Compatible) And Memcache (KVStore).
-> NOTE: Available in v1.101.0+.
Example Usage
# Declare the data source
data "alicloud_kvstore_connections" "example" {
ids = ["r-wer123456"]
}
output "connection_string" {
value = data.alicloud_kvstore_connections.example.connections.0.connection_string
}
Argument Reference
The following arguments are supported:
ids
- (Required) A list of Tair (Redis OSS-Compatible) And Memcache (KVStore) Instance ids, only support one item.output_file
- (Optional) File name where to save data source results (after runningterraform plan
).
Attributes Reference
The following attributes are exported in addition to the arguments listed above:
ids
- A list of Tair (Redis OSS-Compatible) And Memcache (KVStore) Instance ids.connections
- Public network details of the specified resource. contains the following attributes:connection_string
- The connection string of the instance.db_instance_net_type
- The network type of the instance.expired_time
- The expiration time of the classic network address.ip_address
- The IP address of the instance.port
- The port number of the instance.upgradeable
- The remaining validity period of the endpoint of the classic network.vpc_id
- The ID of the VPC where the instance is deployed.vpc_instance_id
- The ID of the instance. It is returned only when the value of the DBInstanceNetType parameter is 2 (indicating VPC).vswitch_id
- The ID of the vSwitch.
文档内容是否对您有帮助?