Subtenant Image Registry Diagnostics

Invoke the get-stats operation

Return information on how much space is used by the image registry on a per-host basis.

SecurityaccessToken
Request
path Parameters
tenant-name
required
string <name> ^[a-z0-9]([a-z0-9\-]*[a-z0-9])?$

name of tenant

query Parameters
site
string

Send the request to the specfifed site

Request Body schema:
One of:
all-hosts
boolean

Must have the value true.

Responses
200

OK

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

503

Service Unavailable (strongbox sealed)

post/v1/state/tenants/{tenant-name}/image-registry/diagnostics/get-stats
Request samples
all-hosts: true
Response samples
hosts:
  - cluster-hostname: metrograph-001
    repositories: 4
    manifests: 8
    tags: 5
    blobs: 21
    blob_size: 42.0 MiB

Invoke the prune operation

Initiate a prune of the image registry whereby unused blobs are removed. During normal operation this is done automatically by the system, invoking this rpc may reschedule the operation so that it happens sooner. Intended for testing only.

SecurityaccessToken
Request
path Parameters
tenant-name
required
string <name> ^[a-z0-9]([a-z0-9\-]*[a-z0-9])?$

name of tenant

query Parameters
site
string

Send the request to the specfifed site

Responses
204

No Content

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

503

Service Unavailable (strongbox sealed)

post/v1/state/tenants/{tenant-name}/image-registry/diagnostics/prune

Invoke the reset operation

Removes all images from all repositories stored in the local container registry for the current tenant.

WARNING: removing all images will make it impossible to deploy applications until the images have been re-fetched. This action is only intended to be used during testing.

SecurityaccessToken
Request
path Parameters
tenant-name
required
string <name> ^[a-z0-9]([a-z0-9\-]*[a-z0-9])?$

name of tenant

query Parameters
site
string

Send the request to the specfifed site

Responses
204

No Content

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

503

Service Unavailable (strongbox sealed)

post/v1/state/tenants/{tenant-name}/image-registry/diagnostics/reset