Skip to main content
PUT
Set paid registry storage

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

authorization
string | null
x-ankra-organisation-id
string | null

Body

application/json
blocks
integer
required

The number of blocks the organisation should hold (0 returns them all). Required.

Required range: x >= 0
expected_version
string | null

The version read with the add-on. When sent and stale, the change answers 409 and nothing is bought or returned.

Response

Successful Response

addon
RegistryStorageAddon · object
required

The organisation's paid registry storage: blocks it holds on top of its base limit, what they cost, and whether more can be bought.

storage
RegistryStorage · object
required
harbor_applied
boolean
required

false means the change is saved and the registry gets the new limit on the next provisioning pass, within about five minutes.

harbor_apply_error
string | null
required