그룹에서 사용자 제거

그룹에서 사용자 제거

그룹에서 사용자를 제거해요. 이 작업은 조직 액세스 토큰(OAT)에서 발급한 bearer 토큰을 받아요.

출처: 문서

본문

DELETE /v2/orgs/{org_name}/groups/{group_name}/members/{username}

그룹에서 사용자 제거 작업이에요. 그룹에서 사용자를 제거해요. 이 작업은 조직 액세스 토큰(OAT)에서 발급한 bearer 토큰을 받아요.

요청 예시

실행 전에 자리 표시자를 바꾸고 필요 자격 증명이나 요청 바디를 채워야 해요.

curl \
  --request DELETE \
  --header "Authorization: Bearer ${TOKEN}" \
  'https://hub.docker.com/v2/orgs/myorganization/groups/developers/members/jonsnow'

요청과 응답

응답 204 User removed successfully

No response content is declared.

응답 401 Unauthorized

Schema:

{
  "$ref": "#/components/schemas/error"
}

error:

{
  "errinfo": null,
  "message": "unauthorized"
}

응답 403 Forbidden

Schema:

{
  "$ref": "#/components/schemas/error"
}

error:

{
  "errinfo": null,
  "message": "permission denied"
}

응답 404 Not Found

Schema:

{
  "$ref": "#/components/schemas/error"
}

error:

{
  "errinfo": null,
  "message": "not found"
}

전체 작업 계약

{
  "description": "Remove a user from a group.\n\nThis operation accepts bearer tokens issued from organization access tokens (OATs). The token must have the required resource access and scopes.\n",
  "operationId": "deleteV2OrgsByOrgNameGroupsByGroupNameMembersByUsername",
  "responses": {
    "204": {
      "description": "User removed successfully"
    },
    "401": {
      "$ref": "#/components/responses/unauthorized"
    },
    "403": {
      "$ref": "#/components/responses/forbidden"
    },
    "404": {
      "$ref": "#/components/responses/not_found"
    }
  },
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "summary": "Remove a user from a group",
  "tags": [
    "groups"
  ]
}

더 알아보기