kubernetes

Create a PersistentVolumeClaim

Changed on

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

Request

  • Base URL
    /api (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /api/kubernetes/{id}/namespaces/{namespace}/persistent_volume_claims
  • Auth
    API key in header X-API-KEY and API key in header Authorization

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

Changes