全部文档
当前文档

暂无内容

如果没有找到您期望的内容,请尝试其他搜索词

文档中心

ksyun_krds

最近更新时间:2019-12-23 15:50:43

This data source provides RDS instance information.

Example Usage

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 = ""
}

Argument Reference

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.

Attributes Reference

In addition to all arguments above, the following attributes are exported:

  • DBInstanceClass - Instance specifications
  • Vcpus - Number of CPUs
  • Disk - Hard disk size
  • Ram - Memory size
  • DBInstanceIdentifier - Instance ID
  • DBInstanceName - Instance name
  • DBInstanceStatus - Instance status
  • DBInstanceType - Instance type
  • DBParameterGroupId - Parameter group ID
  • GroupId - Group ID
  • SecurityGroupId - Security group ID
  • Vip - Virtual IP
  • Port - Port number
  • Engine - Database engine
  • EngineVersion - Database engine version
  • InstanceCreateTime - Instance creation time
  • MasterUserName - User name of the primary account
  • DatastoreVersionId - Database version
  • Region - Region
  • VpcId - Virtual private network ID
  • ReadReplicaDBInstanceIdentifiers - Read-only instance
  • BillType - Billing type
  • MultiAvailabilityZone - Multi-availability zone
  • ProductId - Product ID
  • DiskUsed - Hard disk usage
  • ProjectId - Project ID
  • ProjectName - Project name
文档导读
纯净模式常规模式

纯净模式

点击可全屏预览文档内容
文档反馈