3.4. Red Hat Quay API を使用したユーザーの削除
API を使用して Red Hat Quay からユーザーを削除するには、次の手順に従います。
ユーザーを削除すると、このユーザーが自分のプライベートアカウントにあったリポジトリーはすべて使用できなくなります。
前提条件
- スーパーユーザーとして Red Hat Quay デプロイメントにログインしている。
- OAuth アクセストークンを作成 した。
手順
コマンドラインから次の
DELETE /api/v1/superuser/users/{username}
コマンドを入力し、ユーザーを削除します。curl -X DELETE -H "Authorization: Bearer <insert token here>" https://<quay-server.example.com>/api/v1/superuser/users/<username>
$ curl -X DELETE -H "Authorization: Bearer <insert token here>" https://<quay-server.example.com>/api/v1/superuser/users/<username>
Copy to Clipboard Copied! Toggle word wrap Toggle overflow CLI からユーザーを削除する場合、CLI は情報を返しません。削除を確認するには、Superuser Admin Panel
Users に移動するか、次の GET /api/v1/superuser/users/
コマンドを入力して、Red Hat Quay UI を確認します。すると、ユーザーが存在するかどうかを確認できます。注記GET/api/v1/superuser/users/
エンドポイントは、config.yaml
ファイルでAUTHENTICATION_TYPE: Database
が設定されている場合にのみ、ユーザーとスーパーユーザーを返します。LDAP
認証タイプでは機能しません。curl -X GET -H "Authorization: Bearer <bearer_token>" "https://<quay-server.example.com>/api/v1/superuser/users/"
$ curl -X GET -H "Authorization: Bearer <bearer_token>" "https://<quay-server.example.com>/api/v1/superuser/users/"
Copy to Clipboard Copied! Toggle word wrap Toggle overflow