14.4.4. API を使用して拒否および警告制限を表示する
Red Hat Quay API を使用して、拒否および警告の制限を表示できます。
手順
/api/v1/organization/{orgname}/quota エンドポイントを使用して、拒否 と 警告 制限を表示します。以下に例を示します。
$ curl -k -X GET -H "Authorization: Bearer <token>" -H 'Content-Type: application/json' https://example-registry-quay-quay-enterprise.apps.docs.gcp.quaydev.org/api/v1/organization/testorg/quota | jq出力例
[ { "id": 1, "limit_bytes": 104857600, "default_config": false, "limits": [ { "id": 2, "type": "Warning", "limit_percent": 50 }, { "id": 1, "type": "Reject", "limit_percent": 80 } ], "default_config_exists": false } ]