On this page

    List Votes

    This API lists 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.

    Note:
    Postman is used to generate the example.

    Curl

    curl -X GET \
      http://localhost:9047/api/v3/vote \
      -H 'Authorization: _dremioerjt7vnhtljpus01rfibddefdg' \
    

    Python

    import requests
    
    url = "http://localhost:9047/api/v3/vote"
    
    payload = ""
    headers = {
        'Authorization': "_dremioerjt7vnhtljpus01rfibddefdg"
        }
    
    response = requests.request("GET", url, data=payload, headers=headers)
    
    print(response.text)
    

    Response

    {
        "data": []
    }