# Get plugin privileges


[API catalog](/reference/api/) · [Docker Engine overview](/reference/api/engine/version/v1.57/) · [Product manual](https://docs.docker.com/engine/) · [OpenAPI specification](/reference/api/engine/version/v1.57.yaml)

API version: 1.57





`GET /plugins/privileges`



## Connection and access

[API connection and authentication guidance](/reference/api/engine/version/v1.57/#connection)


Server: `/v1.57`

Effective security: alternatives are OR; schemes within an alternative are AND. An empty array declares no HTTP authentication requirement.

```json
null
```

## Example request

Replace placeholders and provide the required credentials or request body.

```console
curl \
  --request GET \
  --unix-socket "${DOCKER_SOCKET:-/var/run/docker.sock}" \
  --header 'Accept: application/json' \
  'http://localhost/v1.57/plugins/privileges?remote=%3CREMOTE%3E'
```



## Parameters

### remote

Location: query. Required: yes.

The name of the plugin. The `:latest` tag is optional, and is the
default if omitted.


```json
{
  "description": "The name of the plugin. The `:latest` tag is optional, and is the\ndefault if omitted.\n",
  "in": "query",
  "name": "remote",
  "pointer": "/paths/~1plugins~1privileges/get/parameters/0",
  "required": true,
  "schema": {
    "type": "string"
  }
}
```

## Request and responses

### Response 200 application/json

no error


Schema:

```json
{
  "example": [
    {
      "Description": "",
      "Name": "network",
      "Value": [
        "host"
      ]
    },
    {
      "Description": "",
      "Name": "mount",
      "Value": [
        "/data"
      ]
    },
    {
      "Description": "",
      "Name": "device",
      "Value": [
        "/dev/cpu_dma_latency"
      ]
    }
  ],
  "items": {
    "$ref": "#/components/schemas/PluginPrivilege"
  },
  "type": "array"
}
```









Schema example:
```json
[
  {
    "Description": "",
    "Name": "network",
    "Value": [
      "host"
    ]
  },
  {
    "Description": "",
    "Name": "mount",
    "Value": [
      "/data"
    ]
  },
  {
    "Description": "",
    "Name": "device",
    "Value": [
      "/dev/cpu_dma_latency"
    ]
  }
]
```


### Response 200 text/plain

no error


Schema:

```json
{
  "example": [
    {
      "Description": "",
      "Name": "network",
      "Value": [
        "host"
      ]
    },
    {
      "Description": "",
      "Name": "mount",
      "Value": [
        "/data"
      ]
    },
    {
      "Description": "",
      "Name": "device",
      "Value": [
        "/dev/cpu_dma_latency"
      ]
    }
  ],
  "items": {
    "$ref": "#/components/schemas/PluginPrivilege"
  },
  "type": "array"
}
```









Schema example:
```json
[
  {
    "Description": "",
    "Name": "network",
    "Value": [
      "host"
    ]
  },
  {
    "Description": "",
    "Name": "mount",
    "Value": [
      "/data"
    ]
  },
  {
    "Description": "",
    "Name": "device",
    "Value": [
      "/dev/cpu_dma_latency"
    ]
  }
]
```


### Response 500 application/json

server error


Schema:

```json
{
  "$ref": "#/components/schemas/ErrorResponse"
}
```









Schema example:
```json
{
  "message": "Something went wrong."
}
```


## Complete operation contract

```json
{
  "operationId": "GetPluginPrivileges",
  "parameters": [
    {
      "description": "The name of the plugin. The `:latest` tag is optional, and is the\ndefault if omitted.\n",
      "in": "query",
      "name": "remote",
      "required": true,
      "schema": {
        "type": "string"
      }
    }
  ],
  "responses": {
    "200": {
      "content": {
        "application/json": {
          "schema": {
            "example": [
              {
                "Description": "",
                "Name": "network",
                "Value": [
                  "host"
                ]
              },
              {
                "Description": "",
                "Name": "mount",
                "Value": [
                  "/data"
                ]
              },
              {
                "Description": "",
                "Name": "device",
                "Value": [
                  "/dev/cpu_dma_latency"
                ]
              }
            ],
            "items": {
              "$ref": "#/components/schemas/PluginPrivilege"
            },
            "type": "array"
          }
        },
        "text/plain": {
          "schema": {
            "example": [
              {
                "Description": "",
                "Name": "network",
                "Value": [
                  "host"
                ]
              },
              {
                "Description": "",
                "Name": "mount",
                "Value": [
                  "/data"
                ]
              },
              {
                "Description": "",
                "Name": "device",
                "Value": [
                  "/dev/cpu_dma_latency"
                ]
              }
            ],
            "items": {
              "$ref": "#/components/schemas/PluginPrivilege"
            },
            "type": "array"
          }
        }
      },
      "description": "no error"
    },
    "500": {
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/ErrorResponse"
          }
        }
      },
      "description": "server error"
    }
  },
  "summary": "Get plugin privileges",
  "tags": [
    "Plugin"
  ]
}
```

## Referenced schemas

- [#/components/schemas/ErrorResponse](/reference/api/engine/version/v1.57/schemas/ErrorResponse/)

- [#/components/schemas/PluginPrivilege](/reference/api/engine/version/v1.57/schemas/PluginPrivilege/)




