Get a resource type Run in API Explorer

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

Returns a resource type by name.

Path parameters

  • name string Required

Responses

  • 200 application/scim+json
    Hide response attributes Show response attributes object
    • schemas array[string]
    • id string
    • name string
    • description string
    • endpoint string
    • schema string
  • 401 application/scim+json

    Unauthorized

    Hide response attributes Show response attributes object
    • status string

      The status code for the response in string format.

    • schemas array[string]

      Default value is urn:ietf:params:scim:api:messages:2.0:Error.

    • detail string

      Details about why the request failed.

  • 404 application/scim+json

    Not Found

    Hide response attributes Show response attributes object
    • status string

      The status code for the response in string format.

    • schemas array[string]

      Default value is urn:ietf:params:scim:api:messages:2.0:Error.

    • detail string

      Details about why the request failed.

  • 500 application/scim+json

    Internal Error

    Hide response attributes Show response attributes object
    • status string

      The status code for the response in string format.

    • schemas array[string]

      Default value is urn:ietf:params:scim:api:messages:2.0:Error.

    • detail string

      Details about why the request failed.

GET /v2/scim/2.0/ResourceTypes/{name}
curl \
 --request GET 'https://hub.docker.com/v2/scim/2.0/ResourceTypes/User' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "schemas": [
    "urn:ietf:params:scim:schemas:core:2.0:ResourceType"
  ],
  "id": "User",
  "name": "User",
  "description": "User",
  "endpoint": "/Users",
  "schema": "urn:ietf:params:scim:schemas:core:2.0:User"
}
Response examples (401)
{
  "status": "401",
  "schemas": [
    "urn:ietf:params:scim:api:messages:2.0:Error"
  ],
  "detail": "string"
}
Response examples (404)
{
  "status": "404",
  "schemas": [
    "urn:ietf:params:scim:api:messages:2.0:Error"
  ],
  "detail": "string"
}
Response examples (500)
{
  "status": "500",
  "schemas": [
    "urn:ietf:params:scim:api:messages:2.0:Error"
  ],
  "detail": "string"
}