Patch a Virtual Machine Image
PATCH/apis/harvesterhci.io/v1beta1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineimages/{name:[a-z0-9][a-z0-9\-]*}
Patch a VirtualMachineImage object.
Request
Path Parameters
name stringrequired
Name of the resource
namespace stringrequired
Object name and auth scope, such as for teams and projects
- application/json-patch+json
- application/merge-patch+json
Body
required
object
Body
required
object
Responses
- 200
- 401
OK
- application/json
- Schema
- Example (from schema)
Schema
apiVersion stringrequired
kind stringrequired
metadata object
spec objectrequired
status object
{
"apiVersion": "string",
"kind": "string",
"metadata": {
"name": "string",
"namespace": "string"
},
"spec": {
"checksum": "string",
"description": "string",
"displayName": "string",
"pvcName": "string",
"pvcNamespace": "string",
"retry": 0,
"sourceType": "string",
"storageClassParameters": {},
"url": "string"
},
"status": {
"appliedUrl": "string",
"conditions": [
{
"lastTransitionTime": "string",
"lastUpdateTime": "string",
"message": "string",
"reason": "string",
"status": "string",
"type": "string"
}
],
"failed": 0,
"lastFailedTime": "string",
"progress": 0,
"size": 0,
"storageClassName": "string"
}
}
Unauthorized
- application/json
- Schema
Schema
string
- curl
- python
- go
- nodejs
- CURL
curl -L -X GET 'https://docs.harvesterhci.io' \
-H 'Content-Type: application/json-patch+json' \
-H 'Accept: application/json'