influxdata / influxdata/docs-v2
Influxdb 2.0 Examples for Powershell
- Dominant language
- JavaScript
- Stars
- 82
- Forks
- 326
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 82
Description
Overview
Would it be possible to add examples for Windows Powershell to InfluxDB 2.0 documention?
Expected Results
- the curl command works as expected
Actual Results
- the curl command throws an error
`Invoke-WebRequest : Cannot bind parameter 'Headers'. Cannot convert the "Authorization: Token A4F-1bcfuhTlHL2wxpsh1WP4k_tii7ccBdE--9Y2CekJXPK643-d8q3vjvFjbT4PzAIj8Hc-zX_8Hu1dGxOMlw==" value
of type "System.String" to type "System.Collections.IDictionary".`
Steps to Reproduce
- Open Windows Powershell
- Run the following command (substituting the values for you instance):
`curl http://localhost:9999/api/v2/query?org=0612cc40fe9ba000 -XPOST -sS -H 'Authorization: Token A4F-1bcfuhTlHL2wxpsh1WP4k_tii7ccBdE--9Y2CekJXPK643-d8q3vjvFjbT4PzAIj8Hc-zX_8Hu1dGxOMlw==' -H 'Accept: application/csv' -H 'Content-type: application/vnd.flux' -d 'from(bucket:"Demo2") |> range(start: -100y)'`
Additional Information
- this command works fine running from a bash terminal on windows
##### Relevant URLs
[https://v2.docs.influxdata.com/v2.0/query-data/execute-queries/#influxdb-api](https://v2.docs.influxdata.com/v2.0/query-data/execute-queries/#influxdb-api )
##### What products and version are you using?
InfluxDB Version 2.0.0 (f54848f)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.