# Inspect a config


[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 /configs/{id}`



## 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/configs/<ID>'
```



## Parameters

### id

Location: path. Required: yes.

ID of the config

```json
{
  "description": "ID of the config",
  "in": "path",
  "name": "id",
  "pointer": "/paths/~1configs~1{id}/get/parameters/0",
  "required": true,
  "schema": {
    "type": "string"
  }
}
```

## Request and responses

### Response 200 application/json

no error


Schema:

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









Example:
```json
{
  "CreatedAt": "2016-11-05T01:20:17.327670065Z",
  "ID": "ktnbjxoalbkvbvedmg1urrz8h",
  "Spec": {
    "Name": "app-dev.crt"
  },
  "UpdatedAt": "2016-11-05T01:20:17.327670065Z",
  "Version": {
    "Index": 11
  }
}
```


### Response 404 application/json

config not found


Schema:

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









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


### Response 500 application/json

server error


Schema:

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









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


### Response 503 application/json

node is not part of a swarm


Schema:

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









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


## Complete operation contract

```json
{
  "operationId": "ConfigInspect",
  "parameters": [
    {
      "description": "ID of the config",
      "in": "path",
      "name": "id",
      "required": true,
      "schema": {
        "type": "string"
      }
    }
  ],
  "responses": {
    "200": {
      "content": {
        "application/json": {
          "example": {
            "CreatedAt": "2016-11-05T01:20:17.327670065Z",
            "ID": "ktnbjxoalbkvbvedmg1urrz8h",
            "Spec": {
              "Name": "app-dev.crt"
            },
            "UpdatedAt": "2016-11-05T01:20:17.327670065Z",
            "Version": {
              "Index": 11
            }
          },
          "schema": {
            "$ref": "#/components/schemas/Config"
          }
        }
      },
      "description": "no error"
    },
    "404": {
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/ErrorResponse"
          }
        }
      },
      "description": "config not found"
    },
    "500": {
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/ErrorResponse"
          }
        }
      },
      "description": "server error"
    },
    "503": {
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/ErrorResponse"
          }
        }
      },
      "description": "node is not part of a swarm"
    }
  },
  "summary": "Inspect a config",
  "tags": [
    "Config"
  ]
}
```

## Referenced schemas

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

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




