리소스 유형 조회
리소스 유형 조회
이름으로 리소스 유형을 반환해요.
출처: 문서
본문
GET /v2/scim/2.0/ResourceTypes/{name}
리소스 유형 조회 작업이에요. 이름으로 리소스 유형을 반환해요.
요청 예시
실행 전에 자리 표시자를 바꾸고 필요 자격 증명이나 요청 바디를 채워야 해요.
curl \
--request GET \
--header "Authorization: Bearer ${SCIM_TOKEN}" \
--header 'Accept: application/scim+json' \
'https://hub.docker.com/v2/scim/2.0/ResourceTypes/User'
요청과 응답
응답 200 Schema:
{
"$ref": "#/components/schemas/scim_resource_type"
}
Schema example:
{
"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"
]
}
응답 401 Unauthorized
Schema:
{
"allOf": [
{
"$ref": "#/components/schemas/scim_error"
},
{
"properties": {
"status": {
"example": "401"
}
}
}
]
}
error:
{
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:Error"
],
"status": "401"
}
응답 404 Not Found
Schema:
{
"allOf": [
{
"$ref": "#/components/schemas/scim_error"
},
{
"properties": {
"status": {
"example": "404"
}
}
}
]
}
error:
{
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:Error"
],
"status": "404"
}
응답 500 Internal Error
Schema:
{
"allOf": [
{
"$ref": "#/components/schemas/scim_error"
},
{
"properties": {
"status": {
"example": "500"
}
}
}
]
}
error:
{
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:Error"
],
"status": "500"
}
전체 작업 계약
{
"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"
]
}