GET /vote
List all votes as a summary.
Only users with administrator privileges can use this endpoint.
Syntax
GET /api/v3/vote
Response Output
{
"data": [
voteSummary,
...
]
}
VoteSummary
Represents a summary of votes in Dremio by Dataset.
{
"id": String [immutable, generated by Dremio],
"votes": Number [immutable],
"datasetId": String [immutable],
"datasetPath": [String] [immutable],
"datasetType": String ["PHYSICAL", "VIRTUAL"] [immutable],
"datasetReflectionCount": Number [immutable],
"entityType": "vote-summary" [immutable, generated by Dremio]
}
Response Codes
403
- user does not have permission to view votes.
Request Example
This example lists votes. In this case, there are no votes.
[info] Postman is used to generate the example.
Curl
curl -X GET \
http://localhost:9047/api/v3/vote \
-H 'Authorization: _dremioerjt7vnhtljpus01rfibddefdg' \
-H 'Postman-Token: 830c3a24-e325-4ea8-92d7-b4f3e59fd508' \
-H 'cache-control: no-cache'
Python
import requests
url = "http://localhost:9047/api/v3/vote"
payload = ""
headers = {
'Authorization': "_dremioerjt7vnhtljpus01rfibddefdg",
'cache-control': "no-cache",
'Postman-Token': "787dd7a7-0a97-482f-b7ed-29f55b8f3d26"
}
response = requests.request("GET", url, data=payload, headers=headers)
print(response.text)
Response
{
"data": []
}