Named storage mounts
For the CLI response formats used below, see volume creation, readiness, capacity summaries, component mounts, downlinks, and deletion acceptance. The fictional mount example uses one component; this walkthrough uses two.
named-mounts.yaml has two jobs sharing the results volume at /output.
The writer creates /output/artifact.txt; the reader waits for and reads it.
Neither job attaches default. To use another volume for another execution,
change both volume selections and retain /output and the application commands.
The minimal example omits mounts and uses default at /data.
Create and inspect
Run from the repository root in an interactive omnicloud-cli session. Creating and
deleting require human-only Storage management (storage.manage); list/get/
summary, uplink, and downlink require their independent permissions.
dphi> storage summary
dphi> storage create results 1Gi
dphi> storage get results
dphi> storage list --limit 10
dphi> storage list --limit 10 --cursor YOUR_NEXT_CURSOR
Use a fresh results volume for this example so an old artifact cannot satisfy
the reader. Creation is asynchronous. Check provisioning before submitting;
Bound can still have accessPhase Pending, Failed, or Ready. Wait for
Ready before file transfers. Requested capacity is not a hard byte cap or
actual file use. Summary active totals/counts exclude terminating volumes,
while quota usage retains their requested capacity until removal.
Run and retrieve
dphi> workload create named-mount-demo docs/examples/workloads/storage/named-mounts.yaml --idempotency-key named-mount-demo-v1
dphi> workload get named-mount-demo
dphi> run wait YOUR_RUN_ID
dphi> run logs YOUR_RUN_ID --component-name mount-reader
dphi> storage downlink results artifact.txt ./named-artifact.txt
workload create starts the first run. Human-readable workload get displays
the component mounts. Save the returned Run ID. If it is missing, see
Recover a Run ID. Use a distinct idempotency key for each intentional submission. The reader waits up to 30 seconds;
inspect both jobs' logs if the run fails. Remote downlink paths are relative
to the volume, not the workload's mount path.
Clean up safely
Only customer-owned volumes are deletable; default and external volumes are
protected. Active Pods and references in current Workload Definitions block
deletion. After the run finishes and Pods are cleaned up, replace this saved
definition with the minimal example (no named mounts) to release its reference without
starting another run:
dphi> workload update named-mount-demo docs/examples/minimal-workload.yaml
dphi> storage delete results --yes
dphi> storage get results
dphi> storage list --limit 10
dphi> storage summary
Deletion permanently removes files, without platform backups or recovery,
and may interrupt file transfers. Keep the downlinked copy first. Without
--yes, deletion asks for interactive confirmation; non-interactive calls
without --yes are refused. The flag cannot bypass server protections.
Acceptance is not completed deletion: observe until the volume is absent and
quota is released. There is no storage wait, resize, or force-delete command.
See Storage and the mount reference for the full rules: up to four writable volume/path mounts per component, unique volumes, clean absolute paths, and no overlapping mount paths. Explicit default is allowed; omitted mounts retain default and an empty list opts out.