Cloud storage
List safe cloud-storage metadata, browse paginated entries, and import approved paths into a project.
List safe cloud-storage metadata, browse paginated entries, and import approved paths into a project.

Workspace Settings › Cloud storage creates the approved provider connection used by SDK and CLI cloud-storage operations. Credentials are never returned by the SDK.
Outcome: List safe cloud-storage metadata, browse paginated entries, and import approved paths into a project.
Directory paths end in /. Browse results expose safe provider metadata; cloud credentials are never returned by the SDK. browse() follows response pagination until no next token remains. An optional project argument applies project-specific validation.
Execution surface
Pinned unitlab==3.0.0 application environment on Python 3.10+.
Identity
Least-privilege API key supplied through approved configuration.
Target resolution
Stable resource IDs and an explicitly bounded target set.
Success evidence
Typed return fields, server-side state, and downstream acceptance of the result.
Authentication or authorization fails
Stop, correct the service identity or access model, rotate exposed credentials, and rerun a read-only check.
Validation or entitlement rejects the operation
Correct the input or entitlement; do not retry an unchanged request.
A request times out
Inspect remote state before repeating a mutation because the server may have accepted it.
Asynchronous processing exceeds its deadline
Preserve the Batch Queue or release ID, continue bounded monitoring, and inspect item-level failures.
Only part of a batch succeeds
Keep successful identifiers, isolate failed rows, and retry only the corrected subset.
Pin and test the production SDK version. Use stable IDs, keep secrets out of logs and command history, and record the correlation ID, target IDs, counts, final state, and redacted error details for material state changes.
Related Unitlab capability guides: Unitlab’s data curation platform
storage = next(s for s in client.cloud_storages.list() if s.name == "Production")
for entry in storage.browse(prefix="incoming/", page_size=500):
print(entry.type, entry.name, entry.size, entry.is_extension_allowed)
batch = project.import_cloud(storage, ["incoming/study-001/"])
batch.wait(timeout=1800)