Create a Namespaced Persistent Volume Claim
POST/api/v1/namespaces/:namespace/persistentvolumeclaims
Create a PersistentVolumeClaim object.
Request
Path Parameters
Possible values: Value must match regular expression [a-z0-9][a-z0-9\-]*
Object name and auth scope, such as for teams and projects
- application/json
- application/yaml
Body
required
- Array [
- ]
- Array [
- ]
- Array [
- ]
metadata object
spec object
dataSource object
dataSourceRef object
resources object
claims object[]
limits object
Default value: [object Object]
requests object
Default value: [object Object]
selector object
matchExpressions object[]
matchLabels object
status object
allocatedResources object
Default value: [object Object]
capacity object
Default value: [object Object]
conditions object[]
Default value: [object Object]
Default value: [object Object]
Possible values: [Bound
, Lost
, Pending
]
Body
required
- Array [
- ]
- Array [
- ]
- Array [
- ]
metadata object
spec object
dataSource object
dataSourceRef object
resources object
claims object[]
limits object
Default value: [object Object]
requests object
Default value: [object Object]
selector object
matchExpressions object[]
matchLabels object
status object
allocatedResources object
Default value: [object Object]
capacity object
Default value: [object Object]
conditions object[]
Default value: [object Object]
Default value: [object Object]
Possible values: [Bound
, Lost
, Pending
]
Responses
- 200
- 201
- 202
- 401
OK
- application/json
- application/yaml
- Schema
- Example (from schema)
Schema
- Array [
- ]
- Array [
- ]
- Array [
- ]
metadata object
spec object
dataSource object
dataSourceRef object
resources object
claims object[]
limits object
Default value: [object Object]
requests object
Default value: [object Object]
selector object
matchExpressions object[]
matchLabels object
status object
allocatedResources object
Default value: [object Object]
capacity object
Default value: [object Object]
conditions object[]
Default value: [object Object]
Default value: [object Object]
Possible values: [Bound
, Lost
, Pending
]
{
"apiVersion": "string",
"kind": "string",
"metadata": {
"name": "string",
"namespace": "string"
},
"spec": {
"accessModes": [
"string"
],
"dataSource": {
"apiGroup": "string",
"kind": "string",
"name": "string"
},
"dataSourceRef": {
"apiGroup": "string",
"kind": "string",
"name": "string",
"namespace": "string"
},
"resources": {
"claims": [
{
"name": "string"
}
],
"limits": {},
"requests": {}
},
"selector": {
"matchExpressions": [
{
"key": "string",
"operator": "string",
"values": [
"string"
]
}
],
"matchLabels": {}
},
"storageClassName": "string",
"volumeMode": "string",
"volumeName": "string"
},
"status": {
"accessModes": [
"string"
],
"allocatedResources": {},
"capacity": {},
"conditions": [
{
"lastProbeTime": {},
"lastTransitionTime": {},
"message": "string",
"reason": "string",
"status": "string",
"type": "string"
}
],
"phase": "Bound",
"resizeStatus": "string"
}
}
- Schema
- Example (from schema)
Schema
- Array [
- ]
- Array [
- ]
- Array [
- ]
metadata object
spec object
dataSource object
dataSourceRef object
resources object
claims object[]
limits object
Default value: [object Object]
requests object
Default value: [object Object]
selector object
matchExpressions object[]
matchLabels object
status object
allocatedResources object
Default value: [object Object]
capacity object
Default value: [object Object]
conditions object[]
Default value: [object Object]
Default value: [object Object]
Possible values: [Bound
, Lost
, Pending
]
{
"apiVersion": "string",
"kind": "string",
"metadata": {
"name": "string",
"namespace": "string"
},
"spec": {
"accessModes": [
"string"
],
"dataSource": {
"apiGroup": "string",
"kind": "string",
"name": "string"
},
"dataSourceRef": {
"apiGroup": "string",
"kind": "string",
"name": "string",
"namespace": "string"
},
"resources": {
"claims": [
{
"name": "string"
}
],
"limits": {},
"requests": {}
},
"selector": {
"matchExpressions": [
{
"key": "string",
"operator": "string",
"values": [
"string"
]
}
],
"matchLabels": {}
},
"storageClassName": "string",
"volumeMode": "string",
"volumeName": "string"
},
"status": {
"accessModes": [
"string"
],
"allocatedResources": {},
"capacity": {},
"conditions": [
{
"lastProbeTime": {},
"lastTransitionTime": {},
"message": "string",
"reason": "string",
"status": "string",
"type": "string"
}
],
"phase": "Bound",
"resizeStatus": "string"
}
}
Created
- application/json
- application/yaml
- Schema
- Example (from schema)
Schema
- Array [
- ]
- Array [
- ]
- Array [
- ]
metadata object
spec object
dataSource object
dataSourceRef object
resources object
claims object[]
limits object
Default value: [object Object]
requests object
Default value: [object Object]
selector object
matchExpressions object[]
matchLabels object
status object
allocatedResources object
Default value: [object Object]
capacity object
Default value: [object Object]
conditions object[]
Default value: [object Object]
Default value: [object Object]
Possible values: [Bound
, Lost
, Pending
]
{
"apiVersion": "string",
"kind": "string",
"metadata": {
"name": "string",
"namespace": "string"
},
"spec": {
"accessModes": [
"string"
],
"dataSource": {
"apiGroup": "string",
"kind": "string",
"name": "string"
},
"dataSourceRef": {
"apiGroup": "string",
"kind": "string",
"name": "string",
"namespace": "string"
},
"resources": {
"claims": [
{
"name": "string"
}
],
"limits": {},
"requests": {}
},
"selector": {
"matchExpressions": [
{
"key": "string",
"operator": "string",
"values": [
"string"
]
}
],
"matchLabels": {}
},
"storageClassName": "string",
"volumeMode": "string",
"volumeName": "string"
},
"status": {
"accessModes": [
"string"
],
"allocatedResources": {},
"capacity": {},
"conditions": [
{
"lastProbeTime": {},
"lastTransitionTime": {},
"message": "string",
"reason": "string",
"status": "string",
"type": "string"
}
],
"phase": "Bound",
"resizeStatus": "string"
}
}
- Schema
- Example (from schema)
Schema
- Array [
- ]
- Array [
- ]
- Array [
- ]
metadata object
spec object
dataSource object
dataSourceRef object
resources object
claims object[]
limits object
Default value: [object Object]
requests object
Default value: [object Object]
selector object
matchExpressions object[]
matchLabels object
status object
allocatedResources object
Default value: [object Object]
capacity object
Default value: [object Object]
conditions object[]
Default value: [object Object]
Default value: [object Object]
Possible values: [Bound
, Lost
, Pending
]
{
"apiVersion": "string",
"kind": "string",
"metadata": {
"name": "string",
"namespace": "string"
},
"spec": {
"accessModes": [
"string"
],
"dataSource": {
"apiGroup": "string",
"kind": "string",
"name": "string"
},
"dataSourceRef": {
"apiGroup": "string",
"kind": "string",
"name": "string",
"namespace": "string"
},
"resources": {
"claims": [
{
"name": "string"
}
],
"limits": {},
"requests": {}
},
"selector": {
"matchExpressions": [
{
"key": "string",
"operator": "string",
"values": [
"string"
]
}
],
"matchLabels": {}
},
"storageClassName": "string",
"volumeMode": "string",
"volumeName": "string"
},
"status": {
"accessModes": [
"string"
],
"allocatedResources": {},
"capacity": {},
"conditions": [
{
"lastProbeTime": {},
"lastTransitionTime": {},
"message": "string",
"reason": "string",
"status": "string",
"type": "string"
}
],
"phase": "Bound",
"resizeStatus": "string"
}
}
Accepted
- application/json
- application/yaml
- Schema
- Example (from schema)
Schema
- Array [
- ]
- Array [
- ]
- Array [
- ]
metadata object
spec object
dataSource object
dataSourceRef object
resources object
claims object[]
limits object
Default value: [object Object]
requests object
Default value: [object Object]
selector object
matchExpressions object[]
matchLabels object
status object
allocatedResources object
Default value: [object Object]
capacity object
Default value: [object Object]
conditions object[]
Default value: [object Object]
Default value: [object Object]
Possible values: [Bound
, Lost
, Pending
]
{
"apiVersion": "string",
"kind": "string",
"metadata": {
"name": "string",
"namespace": "string"
},
"spec": {
"accessModes": [
"string"
],
"dataSource": {
"apiGroup": "string",
"kind": "string",
"name": "string"
},
"dataSourceRef": {
"apiGroup": "string",
"kind": "string",
"name": "string",
"namespace": "string"
},
"resources": {
"claims": [
{
"name": "string"
}
],
"limits": {},
"requests": {}
},
"selector": {
"matchExpressions": [
{
"key": "string",
"operator": "string",
"values": [
"string"
]
}
],
"matchLabels": {}
},
"storageClassName": "string",
"volumeMode": "string",
"volumeName": "string"
},
"status": {
"accessModes": [
"string"
],
"allocatedResources": {},
"capacity": {},
"conditions": [
{
"lastProbeTime": {},
"lastTransitionTime": {},
"message": "string",
"reason": "string",
"status": "string",
"type": "string"
}
],
"phase": "Bound",
"resizeStatus": "string"
}
}
- Schema
- Example (from schema)
Schema
- Array [
- ]
- Array [
- ]
- Array [
- ]
metadata object
spec object
dataSource object
dataSourceRef object
resources object
claims object[]
limits object
Default value: [object Object]
requests object
Default value: [object Object]
selector object
matchExpressions object[]
matchLabels object
status object
allocatedResources object
Default value: [object Object]
capacity object
Default value: [object Object]
conditions object[]
Default value: [object Object]
Default value: [object Object]
Possible values: [Bound
, Lost
, Pending
]
{
"apiVersion": "string",
"kind": "string",
"metadata": {
"name": "string",
"namespace": "string"
},
"spec": {
"accessModes": [
"string"
],
"dataSource": {
"apiGroup": "string",
"kind": "string",
"name": "string"
},
"dataSourceRef": {
"apiGroup": "string",
"kind": "string",
"name": "string",
"namespace": "string"
},
"resources": {
"claims": [
{
"name": "string"
}
],
"limits": {},
"requests": {}
},
"selector": {
"matchExpressions": [
{
"key": "string",
"operator": "string",
"values": [
"string"
]
}
],
"matchLabels": {}
},
"storageClassName": "string",
"volumeMode": "string",
"volumeName": "string"
},
"status": {
"accessModes": [
"string"
],
"allocatedResources": {},
"capacity": {},
"conditions": [
{
"lastProbeTime": {},
"lastTransitionTime": {},
"message": "string",
"reason": "string",
"status": "string",
"type": "string"
}
],
"phase": "Bound",
"resizeStatus": "string"
}
}
Unauthorized
- application/json
- application/yaml
- Schema
Schema
string
- Schema
Schema
string