# Get a resource type


[API catalog](/reference/api/) · [Docker Hub overview](/reference/api/hub/latest/) · [Product manual](https://docs.docker.com/docker-hub/) · [OpenAPI specification](/reference/api/hub/latest.yaml)

API version: 2-beta



`GET /v2/scim/2.0/ResourceTypes/{name}`

Returns a resource type by name.


## Connection and access

[API connection and authentication guidance](/reference/api/hub/latest/#authentication)


Server: `https://hub.docker.com`

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

```json
[
  {
    "scimToken": []
  }
]
```
## Example request

Replace placeholders and provide the required credentials or request body.

```console
curl \
  --request GET \
  --header "Authorization: Bearer ${SCIM_TOKEN}" \
  --header 'Accept: application/scim+json' \
  'https://hub.docker.com/v2/scim/2.0/ResourceTypes/User'
```

## Parameters

### name

Location: path. Required: yes.

Name of the SCIM resource type.

```json
{
  "description": "Name of the SCIM resource type.",
  "example": "User",
  "in": "path",
  "name": "name",
  "pointer": "/paths/~1v2~1scim~12.0~1ResourceTypes~1{name}/get/parameters/0",
  "required": true,
  "schema": {
    "type": "string"
  }
}
```

## Request and responses

### Response 200 application/scim+json




Schema:

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




Schema example:
```json
{
  "description": "User",
  "endpoint": "/Users",
  "id": "User",
  "name": "User",
  "schema": "urn:ietf:params:scim:schemas:core:2.0:User",
  "schemas": [
    "urn:ietf:params:scim:schemas:core:2.0:ResourceType"
  ]
}
```


### Response 401 application/scim+json

Unauthorized


Schema:

```json
{
  "allOf": [
    {
      "$ref": "#/components/schemas/scim_error"
    },
    {
      "properties": {
        "status": {
          "example": "401"
        }
      }
    }
  ]
}
```




error:
```json
{
  "schemas": [
    "urn:ietf:params:scim:api:messages:2.0:Error"
  ],
  "status": "401"
}
```


### Response 404 application/scim+json

Not Found


Schema:

```json
{
  "allOf": [
    {
      "$ref": "#/components/schemas/scim_error"
    },
    {
      "properties": {
        "status": {
          "example": "404"
        }
      }
    }
  ]
}
```




error:
```json
{
  "schemas": [
    "urn:ietf:params:scim:api:messages:2.0:Error"
  ],
  "status": "404"
}
```


### Response 500 application/scim+json

Internal Error


Schema:

```json
{
  "allOf": [
    {
      "$ref": "#/components/schemas/scim_error"
    },
    {
      "properties": {
        "status": {
          "example": "500"
        }
      }
    }
  ]
}
```




error:
```json
{
  "schemas": [
    "urn:ietf:params:scim:api:messages:2.0:Error"
  ],
  "status": "500"
}
```


## Complete operation contract

```json
{
  "description": "Returns a resource type by name.\n",
  "operationId": "getV2Scim20ResourceTypesByName",
  "parameters": [
    {
      "description": "Name of the SCIM resource type.",
      "example": "User",
      "in": "path",
      "name": "name",
      "required": true,
      "schema": {
        "type": "string"
      }
    }
  ],
  "responses": {
    "200": {
      "$ref": "#/components/responses/scim_get_resource_type_resp"
    },
    "401": {
      "$ref": "#/components/responses/scim_unauthorized"
    },
    "404": {
      "$ref": "#/components/responses/scim_not_found"
    },
    "500": {
      "$ref": "#/components/responses/scim_error"
    }
  },
  "security": [
    {
      "scimToken": []
    }
  ],
  "summary": "Get a resource type",
  "tags": [
    "scim"
  ]
}
```

## Referenced schemas

- `#/components/responses/scim_error`

- `#/components/responses/scim_get_resource_type_resp`

- `#/components/responses/scim_not_found`

- `#/components/responses/scim_unauthorized`




