Get the project's storage configuration for a surface
GET/program/api/v2/storage/features/:surface
Returns the per-(project, surface) binding: which mode the
surface is in, and for byo which connection backs it.
connectionId is present if and only if mode is byo.
paths is the browse scope for the assets surface, with
exactly one entry marked as the write target. Output is written
per stream beneath the configured path for archive,
snapshots and clips (<path>/<stream id>/), and flat
beneath the write target for assets; see the PUT for the
full layout. It is [] for the
other surfaces and for the managed and public_url modes,
which have no customer-configured prefix — [] rather than a
missing key, so a caller can tell "no paths" from "this response
does not carry paths".
maxUploadBytes and maxBucketBytes report the project's
effective ceilings in bytes, resolved against the deployment
default, so what is reported is the ceiling that will actually
be enforced. They are read-only to the customer and are not
accepted on the PUT. They are absent when the deployment
configures no ceiling.
Those ceilings are the ones surfaced as upload errors:
asset_too_large— a managed upload exceeded the per-file limit (maxUploadBytes).project_storage_full— the upload would take the project past its total managed-storage limit (maxBucketBytes).public_url_too_large— apublic_urlasset's target is larger than the per-file maximum, as observed by the opportunistic HEAD.
Request
Responses
- 200
- 403
- 404
- 500
The surface's storage configuration
Forbidden — no project access
The surface has no configured storage (storage_feature_not_found)
— no binding, and for archive no archiving config either. An
archive surface configured only by its archiving config answers
200 with source: "legacy" rather than 404, so this read agrees
with currentMode on GET /storage/features.
Internal Server Error