Update influxql.md (#1793)
typos in examples. Co-authored-by: Scott Anderson <scott@influxdata.com>pull/1847/head
parent
6873c2ead2
commit
7551f83d0d
|
@ -39,20 +39,17 @@ Verify the buckets that you want to query are mapped to a database and retention
|
||||||
##### View all DBRP mappings
|
##### View all DBRP mappings
|
||||||
```sh
|
```sh
|
||||||
curl --request GET \
|
curl --request GET \
|
||||||
http://localhost:8086/api/v2/dbrps \
|
http://localhost:8086/api/v2/dbrps?orgID=example-org-id \
|
||||||
--header "Authorization: Token YourAuthToken" \
|
--header "Authorization: Token YourAuthToken" \
|
||||||
--header "Content-type: application/json" \
|
--header "Content-type: application/json"
|
||||||
--data-urlencode "orgID=example-org"
|
|
||||||
```
|
```
|
||||||
|
|
||||||
##### Filter DBRP mappings by database
|
##### Filter DBRP mappings by database
|
||||||
```sh
|
```sh
|
||||||
curl --request GET \
|
curl --request GET \
|
||||||
http://localhost:8086/api/v2/dbrps \
|
http://localhost:8086/api/v2/dbrps?orgID=example-org-id&db=example-db \
|
||||||
--header "Authorization: Token YourAuthToken" \
|
--header "Authorization: Token YourAuthToken" \
|
||||||
--header "Content-type: application/json" \
|
--header "Content-type: application/json"
|
||||||
--data-urlencode "orgID=example-org" \
|
|
||||||
--data-urlencode "db=example-db"
|
|
||||||
```
|
```
|
||||||
|
|
||||||
If you **do not find a mapping ID (`id`) for a bucket**, complete the next procedure to map the unmapped bucket.
|
If you **do not find a mapping ID (`id`) for a bucket**, complete the next procedure to map the unmapped bucket.
|
||||||
|
@ -76,8 +73,8 @@ curl --request POST http://localhost:8086/api/v2/dbrps \
|
||||||
"bucketID": "12ab34cd56ef",
|
"bucketID": "12ab34cd56ef",
|
||||||
"database": "example-db",
|
"database": "example-db",
|
||||||
"default": true,
|
"default": true,
|
||||||
"organization": "example-org",
|
"org": "example-org",
|
||||||
"organizationID": "example-org-id",
|
"orgID": "example-org-id",
|
||||||
"retention_policy": "example-rp",
|
"retention_policy": "example-rp",
|
||||||
}'
|
}'
|
||||||
```
|
```
|
||||||
|
@ -102,9 +99,8 @@ To query a mapped bucket with InfluxQL, use the `/query` 1.x compatibility endpo
|
||||||
{{% /note %}}
|
{{% /note %}}
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
curl --request GET http://localhost:8086/query \
|
curl --request GET http://localhost:8086/query?db=example-db \
|
||||||
--header "Authorization: Token YourAuthToken" \
|
--header "Authorization: Token YourAuthToken" \
|
||||||
--data-urlencode "db=example-db" \
|
|
||||||
--data-urlencode "q=SELECT used_percent FROM example-db.example-rp.example-measurement WHERE host=host1"
|
--data-urlencode "q=SELECT used_percent FROM example-db.example-rp.example-measurement WHERE host=host1"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue