Create a Namespaced Virtual Machine Restore
POST/apis/harvesterhci.io/v1beta1/namespaces/:namespace/virtualmachinerestores
Create a VirtualMachineRestore 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
Bodyrequired
metadata object
spec objectrequired
status object
Bodyrequired
metadata object
spec objectrequired
status object
Responses
- 200
- 201
- 202
- 401
OK
- application/json
- application/yaml
- Schema
- Example (auto)
Schema
metadata object
spec objectrequired
status object
{
"apiVersion": "string",
"kind": "string",
"metadata": {
"name": "string",
"namespace": "string"
},
"spec": {
"deletionPolicy": "string",
"keepMacAddress": true,
"newVM": true,
"target": {
"apiGroup": "string",
"kind": "",
"name": ""
},
"virtualMachineBackupName": "",
"virtualMachineBackupNamespace": ""
},
"status": {
"complete": true,
"conditions": [
{
"lastTransitionTime": "string",
"lastUpdateTime": "string",
"message": "string",
"reason": "string",
"status": "",
"type": ""
}
],
"deletedVolumes": [
""
],
"progress": 0,
"restoreTime": "",
"restores": [
{
"longhornEngineName": "string",
"persistentVolumeClaimSpec": {
"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"
}
},
"progress": 0,
"volumeBackupName": "string",
"volumeName": "string",
"volumeSize": 0
}
],
"targetUID": "string"
}
}
- Schema
- Example (auto)
Schema
metadata object
spec objectrequired
status object
{
"apiVersion": "string",
"kind": "string",
"metadata": {
"name": "string",
"namespace": "string"
},
"spec": {
"deletionPolicy": "string",
"keepMacAddress": true,
"newVM": true,
"target": {
"apiGroup": "string",
"kind": "",
"name": ""
},
"virtualMachineBackupName": "",
"virtualMachineBackupNamespace": ""
},
"status": {
"complete": true,
"conditions": [
{
"lastTransitionTime": "string",
"lastUpdateTime": "string",
"message": "string",
"reason": "string",
"status": "",
"type": ""
}
],
"deletedVolumes": [
""
],
"progress": 0,
"restoreTime": "",
"restores": [
{
"longhornEngineName": "string",
"persistentVolumeClaimSpec": {
"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"
}
},
"progress": 0,
"volumeBackupName": "string",
"volumeName": "string",
"volumeSize": 0
}
],
"targetUID": "string"
}
}
Created
- application/json
- application/yaml
- Schema
- Example (auto)
Schema
metadata object
spec objectrequired
status object
{
"apiVersion": "string",
"kind": "string",
"metadata": {
"name": "string",
"namespace": "string"
},
"spec": {
"deletionPolicy": "string",
"keepMacAddress": true,
"newVM": true,
"target": {
"apiGroup": "string",
"kind": "",
"name": ""
},
"virtualMachineBackupName": "",
"virtualMachineBackupNamespace": ""
},
"status": {
"complete": true,
"conditions": [
{
"lastTransitionTime": "string",
"lastUpdateTime": "string",
"message": "string",
"reason": "string",
"status": "",
"type": ""
}
],
"deletedVolumes": [
""
],
"progress": 0,
"restoreTime": "",
"restores": [
{
"longhornEngineName": "string",
"persistentVolumeClaimSpec": {
"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"
}
},
"progress": 0,
"volumeBackupName": "string",
"volumeName": "string",
"volumeSize": 0
}
],
"targetUID": "string"
}
}
- Schema
- Example (auto)
Schema
metadata object
spec objectrequired
status object
{
"apiVersion": "string",
"kind": "string",
"metadata": {
"name": "string",
"namespace": "string"
},
"spec": {
"deletionPolicy": "string",
"keepMacAddress": true,
"newVM": true,
"target": {
"apiGroup": "string",
"kind": "",
"name": ""
},
"virtualMachineBackupName": "",
"virtualMachineBackupNamespace": ""
},
"status": {
"complete": true,
"conditions": [
{
"lastTransitionTime": "string",
"lastUpdateTime": "string",
"message": "string",
"reason": "string",
"status": "",
"type": ""
}
],
"deletedVolumes": [
""
],
"progress": 0,
"restoreTime": "",
"restores": [
{
"longhornEngineName": "string",
"persistentVolumeClaimSpec": {
"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"
}
},
"progress": 0,
"volumeBackupName": "string",
"volumeName": "string",
"volumeSize": 0
}
],
"targetUID": "string"
}
}
Accepted
- application/json
- application/yaml
- Schema
- Example (auto)
Schema
metadata object
spec objectrequired
status object
{
"apiVersion": "string",
"kind": "string",
"metadata": {
"name": "string",
"namespace": "string"
},
"spec": {
"deletionPolicy": "string",
"keepMacAddress": true,
"newVM": true,
"target": {
"apiGroup": "string",
"kind": "",
"name": ""
},
"virtualMachineBackupName": "",
"virtualMachineBackupNamespace": ""
},
"status": {
"complete": true,
"conditions": [
{
"lastTransitionTime": "string",
"lastUpdateTime": "string",
"message": "string",
"reason": "string",
"status": "",
"type": ""
}
],
"deletedVolumes": [
""
],
"progress": 0,
"restoreTime": "",
"restores": [
{
"longhornEngineName": "string",
"persistentVolumeClaimSpec": {
"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"
}
},
"progress": 0,
"volumeBackupName": "string",
"volumeName": "string",
"volumeSize": 0
}
],
"targetUID": "string"
}
}
- Schema
- Example (auto)
Schema
metadata object
spec objectrequired
status object
{
"apiVersion": "string",
"kind": "string",
"metadata": {
"name": "string",
"namespace": "string"
},
"spec": {
"deletionPolicy": "string",
"keepMacAddress": true,
"newVM": true,
"target": {
"apiGroup": "string",
"kind": "",
"name": ""
},
"virtualMachineBackupName": "",
"virtualMachineBackupNamespace": ""
},
"status": {
"complete": true,
"conditions": [
{
"lastTransitionTime": "string",
"lastUpdateTime": "string",
"message": "string",
"reason": "string",
"status": "",
"type": ""
}
],
"deletedVolumes": [
""
],
"progress": 0,
"restoreTime": "",
"restores": [
{
"longhornEngineName": "string",
"persistentVolumeClaimSpec": {
"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"
}
},
"progress": 0,
"volumeBackupName": "string",
"volumeName": "string",
"volumeSize": 0
}
],
"targetUID": "string"
}
}
Unauthorized
- application/json
- application/yaml
- Schema
- Example (auto)
Schema
"string"
- Schema
- Example (auto)
Schema
"string"
- curl
- python
- go
- nodejs
- CURL
curl -L 'https://699c5de8cd2250875530e216--harvester-preview.netlify.app/apis/harvesterhci.io/v1beta1/namespaces/:namespace/virtualmachinerestores' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"apiVersion": "string",
"kind": "string",
"metadata": {
"name": "string",
"namespace": "string"
},
"spec": {
"deletionPolicy": "string",
"keepMacAddress": true,
"newVM": true,
"target": {
"apiGroup": "string",
"kind": "",
"name": ""
},
"virtualMachineBackupName": "",
"virtualMachineBackupNamespace": ""
},
"status": {
"complete": true,
"conditions": [
{
"lastTransitionTime": "string",
"lastUpdateTime": "string",
"message": "string",
"reason": "string",
"status": "",
"type": ""
}
],
"deletedVolumes": [
""
],
"progress": 0,
"restoreTime": "",
"restores": [
{
"longhornEngineName": "string",
"persistentVolumeClaimSpec": {
"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"
}
},
"progress": 0,
"volumeBackupName": "string",
"volumeName": "string",
"volumeSize": 0
}
],
"targetUID": "string"
}
}'
