Lists the per-replica statefulSet volumes for the given service.
Required permission
Project > Services > General > Read
Path parameters
projectId
string requiredID of the projectserviceId
string requiredID of the service
Response body
- {object}Response object.
data
{object} requiredResult data.volumes
[array] requiredThe per-replica statefulSet volumes grouped by volume definition.- {object}
id
string | null requiredThe user-facing slug of the volume definition, or null when the definition has already been purged but a retained PVC is still being reported.slug
string | nullBest-effort display slug for a purged (definitionMissing) group, recovered from the PVC labels so the group keeps its original name. Equal to `id` when the definition exists.definitionMissing
boolean requiredTrue when the volume definition no longer exists. Its retained PVCs remain individually deletable, but the group DELETE endpoint cannot target the missing definition.pendingDelete
boolean requiredTrue if the volume has been removed from the service and only its retained orphaned PVCs remain. When definitionMissing is false, the group can be fully deleted via the group DELETE endpoint; definition-missing groups are reclaimed by background cleanup.cleanupPending
boolean requiredTrue when the group's definition is already purged and the background reaper owns removing the retained PVCs — no manual delete is possible (its replicas report deletable: false).replicas
[array] requiredThe per-replica PVCs of this volume.- {object}
ordinal
number requiredThe statefulSet replica ordinal this PVC belongs to.pvcName
string requiredThe name of the per-replica PVC.deletable
boolean requiredTrue if the PVC can be deleted now via the per-replica DELETE endpoint: it is orphaned (its volume was removed or its ordinal is scaled down) AND its volume definition still exists. Bound PVCs are refused with 409; claims of a purged volume are false (see group cleanupPending).
API
CLI
JS Client
GET /v1/projects/{projectId}/services/{serviceId}/per-replica-volumes
GET /v1/teams/{teamId}/projects/{projectId}/services/{serviceId}/per-replica-volumes
Example response
200 OK
The list of per-replica volumes for the service.
JSON