» tencentcloud_mysql_instance

Use this data source to get information about a MySQL instance

» Example Usage

data "tencentcloud_mysql_instance" "database"{
     mysql_id = "my-test-database" 
}

» Argument Reference

The following arguments are supported:

  • mysql_id - (Required) Instance ID, such as cdb-c1nl9rpv. It is identical to the instance ID displayed in the database console page.
  • instance_role - (Optional) Instance type. Supported values include: master - master instance, dr - disaster recovery instance, and ro - read-only instance.
  • status - (Optional) Instance status. Available values: 0 - Creating; 1 - Running; 4 - Isolating; 5 – Isolated.
  • security_group_id - (Optional) Security groups ID of instance.
  • instance_name - (Optional) Name of mysql instance.
  • engine_version - (Optional) The version number of the database engine to use. Supported versions include 5.5/5.6/5.7.
  • init_flag - (Optional) Initialization mark. Available values: 0 - Uninitialized; 1 – Initialized.
  • with_dr - (Optional) Indicates whether to query disaster recovery instances.
  • with_ro - (Optional) Indicates whether to query read-only instances.
  • with_master - (Optional) Indicates whether to query master instances.
  • offset - (Optional) Record offset. Default is 0.
  • limit - (Optional) Number of results returned for a single request. Default is 20, and maximum is 2000.

» Attributes Reference

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

For detail information of mysql instance, the following information will be included: