Up-to-date reference of API arguments for RMS Advanced Query you can get at documentation portal
opentelekomcloud_rms_advanced_query_v1¶
Use this data source to do an RMS advanced query.
Example Usage¶
variable "exression" {}
data "opentelekomcloud_rms_advanced_query_v1" "test" {
exression = var.exression
}
Argument Reference¶
The following arguments are supported:
expression
- (Required, String) Specifies the expression of the query.For example, select name, id from tracked_resources where provider = 'ecs' and type = 'cloudservers'
Attribute Reference¶
In addition to all arguments above, the following attributes are exported:
id
- The data source ID.results
- The list of query results.query_info
- The query info.The query_info structure is documented below.
The query_info
block supports:
select_fields
- The list of select fields.