Replace a Namespaced Persistent Volume Claim
PUT/api/v1/namespaces/:namespace/persistentvolumeclaims/:name
Update a PersistentVolumeClaim object.
Request
Path Parameters
Possible values: Value must match regular expression [a-z0-9][a-z0-9\-]*
Name of the resource
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
Bodyrequired
metadata object
spec object
status object
Bodyrequired
metadata object
spec object
status object
Responses
- 200
- 201
- 401
OK
- application/json
- application/yaml
- Schema
- Example (auto)
Schema
metadata object
spec object
status object
{
"apiVersion": "string",
"kind": "string",
"metadata": {
"name": "string",
"namespace": "string"
},
"spec": {
"accessModes": [
""
],
"dataSource": {
"apiGroup": "string",
"kind": "",
"name": ""
},
"dataSourceRef": {
"apiGroup": "string",
"kind": "",
"name": "",
"namespace": "string"
},
"resources": {
"claims": [
{
"name": ""
}
],
"limits": {},
"requests": {}
},
"selector": {
"matchExpressions": [
{
"key": "",
"operator": "",
"values": [
""
]
}
],
"matchLabels": {}
},
"storageClassName": "string",
"volumeMode": "string",
"volumeName": "string"
},
"status": {
"accessModes": [
""
],
"allocatedResources": {},
"capacity": {},
"conditions": [
{
"lastProbeTime": {},
"lastTransitionTime": {},
"message": "string",
"reason": "string",
"status": "",
"type": ""
}
],
"phase": "Bound",
"resizeStatus": "string"
}
}
- Schema
- Example (auto)
Schema
metadata object
spec object
status object
{
"apiVersion": "string",
"kind": "string",
"metadata": {
"name": "string",
"namespace": "string"
},
"spec": {
"accessModes": [
""
],
"dataSource": {
"apiGroup": "string",
"kind": "",
"name": ""
},
"dataSourceRef": {
"apiGroup": "string",
"kind": "",
"name": "",
"namespace": "string"
},
"resources": {
"claims": [
{
"name": ""
}
],
"limits": {},
"requests": {}
},
"selector": {
"matchExpressions": [
{
"key": "",
"operator": "",
"values": [
""
]
}
],
"matchLabels": {}
},
"storageClassName": "string",
"volumeMode": "string",
"volumeName": "string"
},
"status": {
"accessModes": [
""
],
"allocatedResources": {},
"capacity": {},
"conditions": [
{
"lastProbeTime": {},
"lastTransitionTime": {},
"message": "string",
"reason": "string",
"status": "",
"type": ""
}
],
"phase": "Bound",
"resizeStatus": "string"
}
}
Create
- application/json
- application/yaml
- Schema
- Example (auto)
Schema
metadata object
spec object
status object
{
"apiVersion": "string",
"kind": "string",
"metadata": {
"name": "string",
"namespace": "string"
},
"spec": {
"accessModes": [
""
],
"dataSource": {
"apiGroup": "string",
"kind": "",
"name": ""
},
"dataSourceRef": {
"apiGroup": "string",
"kind": "",
"name": "",
"namespace": "string"
},
"resources": {
"claims": [
{
"name": ""
}
],
"limits": {},
"requests": {}
},
"selector": {
"matchExpressions": [
{
"key": "",
"operator": "",
"values": [
""
]
}
],
"matchLabels": {}
},
"storageClassName": "string",
"volumeMode": "string",
"volumeName": "string"
},
"status": {
"accessModes": [
""
],
"allocatedResources": {},
"capacity": {},
"conditions": [
{
"lastProbeTime": {},
"lastTransitionTime": {},
"message": "string",
"reason": "string",
"status": "",
"type": ""
}
],
"phase": "Bound",
"resizeStatus": "string"
}
}
- Schema
- Example (auto)
Schema
metadata object
spec object
status object
{
"apiVersion": "string",
"kind": "string",
"metadata": {
"name": "string",
"namespace": "string"
},
"spec": {
"accessModes": [
""
],
"dataSource": {
"apiGroup": "string",
"kind": "",
"name": ""
},
"dataSourceRef": {
"apiGroup": "string",
"kind": "",
"name": "",
"namespace": "string"
},
"resources": {
"claims": [
{
"name": ""
}
],
"limits": {},
"requests": {}
},
"selector": {
"matchExpressions": [
{
"key": "",
"operator": "",
"values": [
""
]
}
],
"matchLabels": {}
},
"storageClassName": "string",
"volumeMode": "string",
"volumeName": "string"
},
"status": {
"accessModes": [
""
],
"allocatedResources": {},
"capacity": {},
"conditions": [
{
"lastProbeTime": {},
"lastTransitionTime": {},
"message": "string",
"reason": "string",
"status": "",
"type": ""
}
],
"phase": "Bound",
"resizeStatus": "string"
}
}
Unauthorized
- application/json
- application/yaml
- Schema
- Example (auto)
Schema
"string"
- Schema
- Example (auto)
Schema
"string"
- curl
- python
- go
- nodejs
- CURL
curl -L -X PUT 'https://699c5de8cd2250875530e216--harvester-preview.netlify.app/api/v1/namespaces/:namespace/persistentvolumeclaims/:name' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"apiVersion": "string",
"kind": "string",
"metadata": {
"name": "string",
"namespace": "string"
},
"spec": {
"accessModes": [
""
],
"dataSource": {
"apiGroup": "string",
"kind": "",
"name": ""
},
"dataSourceRef": {
"apiGroup": "string",
"kind": "",
"name": "",
"namespace": "string"
},
"resources": {
"claims": [
{
"name": ""
}
],
"limits": {},
"requests": {}
},
"selector": {
"matchExpressions": [
{
"key": "",
"operator": "",
"values": [
""
]
}
],
"matchLabels": {}
},
"storageClassName": "string",
"volumeMode": "string",
"volumeName": "string"
},
"status": {
"accessModes": [
""
],
"allocatedResources": {},
"capacity": {},
"conditions": [
{
"lastProbeTime": {},
"lastTransitionTime": {},
"message": "string",
"reason": "string",
"status": "",
"type": ""
}
],
"phase": "Bound",
"resizeStatus": "string"
}
}'
