리소스 유형 목록 조회
리소스 유형 목록 조회
SCIM 설정에서 지원하는 모든 리소스 유형을 반환해요.
출처: 문서
본문
GET /v2/scim/2.0/ResourceTypes
리소스 유형 목록 조회 작업이에요. SCIM 설정에서 지원하는 모든 리소스 유형을 반환해요.
요청 예시
실행 전에 자리 표시자를 바꾸고 필요 자격 증명이나 요청 바디를 채워야 해요.
curl \
--request GET \
--header "Authorization: Bearer ${SCIM_TOKEN}" \
--header 'Accept: application/scim+json' \
'https://hub.docker.com/v2/scim/2.0/ResourceTypes'
요청과 응답
응답 200 Schema:
{
"examples": [
{
"Resources": [
{
"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"
]
}
],
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:ListResponse"
],
"totalResults": 1
}
],
"properties": {
"Resources": {
"items": {
"$ref": "#/components/schemas/scim_resource_type"
},
"type": "array"
},
"schemas": {
"items": {
"example": "urn:ietf:params:scim:api:messages:2.0:ListResponse",
"type": "string"
},
"type": "array"
},
"totalResults": {
"example": 1,
"type": "integer"
}
},
"type": "object"
}
Schema example:
{
"Resources": [
{
"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"
]
}
],
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:ListResponse"
],
"totalResults": 1
}
응답 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"
}
응답 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 all resource types supported for the SCIM configuration.\n",
"operationId": "getV2Scim20ResourceTypes",
"responses": {
"200": {
"$ref": "#/components/responses/scim_get_resource_types_resp"
},
"401": {
"$ref": "#/components/responses/scim_unauthorized"
},
"500": {
"$ref": "#/components/responses/scim_error"
}
},
"security": [
{
"scimToken": []
}
],
"summary": "List resource types",
"tags": [
"scim"
]
}