개인 액세스 토큰 삭제

개인 액세스 토큰 삭제

개인 액세스 토큰(PAT)을 영구적으로 삭제해요. 이 작업은 되돌릴 수 없어요.

출처: 문서

본문

DELETE /v2/access-tokens/{uuid}

개인 액세스 토큰 삭제 작업이에요. 개인 액세스 토큰(PAT)을 영구적으로 삭제해요. 이 작업은 되돌릴 수 없어요.

요청 예시

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

curl \
  --request DELETE \
  --header "Authorization: Bearer ${TOKEN}" \
  'https://hub.docker.com/v2/access-tokens/<UUID>'

요청과 응답

응답 204 A successful response.

No response content is declared.

응답 401 Unauthorized

Schema:

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

error:

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

응답 404 Not Found

Schema:

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

error:

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

전체 작업 계약

{
  "description": "Deletes a personal access token permanently. This cannot be undone.\n",
  "operationId": "deleteV2AccessTokensByUuid",
  "responses": {
    "204": {
      "description": "A successful response."
    },
    "401": {
      "$ref": "#/components/responses/Unauthorized"
    },
    "404": {
      "$ref": "#/components/responses/NotFound"
    }
  },
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "summary": "Delete personal access token",
  "tags": [
    "access-tokens"
  ]
}

더 알아보기