最近更新时间:2019-12-23 15:50:43
This data source provides RDS instance information.
data "ksyun_krds" "search-krds"{
output_file = "output_file"
db_instance_identifier = "***"
db_instance_type = "HRDS,RR,TRDS"
keyword = ""
order = ""
project_id = ""
marker = ""
max_records = ""
}
The following arguments are supported:
output_file
- (Required) The file name of the content store.db_instance_identifier
- (Optional) Instance ID. If omitted, all instances are queried.db_instance_type
- (Optional) The type of the instance. Valid values are HRDS
(highly available), RR
(read-only), and TRDS
(temporary).db_instance_status
- (Optional) Instance status. Valid values are active
and invalid
(please renew).keyword
- (Optional) The keyword for fuzzy filtering by name or VIP.order
- (Optional) The way that the list is sorted. The value is a case sensitive string, which can be default
(default sorting method) or group
(sorting by replication group, will rank read-only instances after their primary instances).project_id
- (Optional) The ID of the project to which the instance is assigned. The default value is all projects
.marker
- (Optional) Record start offset.max_records
- (Optional) The maximum number of entries in the result of each page. The value range is 1 to 100.In addition to all arguments above, the following attributes are exported:
DBInstanceClass
- Instance specificationsVcpus
- Number of CPUsDisk
- Hard disk sizeRam
- Memory sizeDBInstanceIdentifier
- Instance IDDBInstanceName
- Instance nameDBInstanceStatus
- Instance statusDBInstanceType
- Instance typeDBParameterGroupId
- Parameter group IDGroupId
- Group IDSecurityGroupId
- Security group IDVip
- Virtual IPPort
- Port numberEngine
- Database engineEngineVersion
- Database engine versionInstanceCreateTime
- Instance creation timeMasterUserName
- User name of the primary accountDatastoreVersionId
- Database versionRegion
- RegionVpcId
- Virtual private network IDReadReplicaDBInstanceIdentifiers
- Read-only instanceBillType
- Billing typeMultiAvailabilityZone
- Multi-availability zoneProductId
- Product IDDiskUsed
- Hard disk usageProjectId
- Project IDProjectName
- Project name纯净模式