v15

latestOpenAPI 3.0.0zlibraw.githubusercontent.com2026-08-07281553905.2 KB
kubernetes

Create a PersistentVolumeClaim

Create a PersistentVolumeClaim in the given namespace. The access mode defaults to ReadWriteOnce and an omitted storage class leaves the choice to the cluster default. Access policy: Authenticated user.

post/kubernetes/{id}/namespaces/{namespace}/persistent_volume_claims

Path parameters

idinteger required

Environment(Endpoint) identifier

namespacestring required

Namespace

Request body

accessModesV1PersistentVolumeAccessMode[]
annotationsobject
labelsobject
namestring
storagestring
storageClassstring
volumeMode'Block' | 'Filesystem'

Response

Success

accessModesstring[]
allowVolumeExpansionboolean
creationDatestring
humanReadableAccessModesV1PersistentVolumeAccessMode[]
idstring
labelsobject
namestring
namespacestring
phase'Pending' | 'Bound' | 'Lost'
resourcesRequestsV1ResourceList
storageinteger
storageClassstring
storageRequeststring
volumeMode'Block' | 'Filesystem'
volumeNamestring