14.4.3. API を使用して拒否および警告制限を設定する
Red Hat Quay API を使用して、拒否 および 警告 の制限を設定できます。
手順
拒否 制限と 警告 制限を設定するには、/api/v1/organization/{orgname}/quota/{quota_id}/limit エンドポイントにデータを
POSTします。以下に例を示します。$ curl -k -X POST -H "Authorization: Bearer <token>" -H 'Content-Type: application/json' -d '{"type":"Reject","threshold_percent":80}' https://example-registry-quay-quay-enterprise.apps.docs.gcp.quaydev.org/api/v1/organization/testorg/quota/1/limit$ curl -k -X POST -H "Authorization: Bearer <token>" -H 'Content-Type: application/json' -d '{"type":"Warning","threshold_percent":50}' https://example-registry-quay-quay-enterprise.apps.docs.gcp.quaydev.org/api/v1/organization/testorg/quota/1/limit