Backup Resource Service Create

Backup Resource Service Create

Create a Backup.

Request
URI
POST
https://{api_host}/https://your_org.tmc.cloud.vmware.com/v1alpha1/clusters/{backup.fullName.clusterName}/dataprotection/backups
COPY
Path Parameters
string
backup.fullName.clusterName
Required

Name of Cluster.


Request Body
{
    "backup": {
        "type": {
            "kind": "string",
            "version": "string",
            "package": "string"
        },
        "fullName": {
            "orgId": "string",
            "managementClusterName": "string",
            "provisionerName": "string",
            "clusterName": "string",
            "name": "string"
        },
        "meta": {
            "uid": "string",
            "generation": "string",
            "resourceVersion": "string",
            "creationTime": "string",
            "updateTime": "string",
            "description": "string",
            "parentReferences": [
                {
                    "rid": "string",
                    "uid": "string"
                }
            ]
        },
        "spec": {
            "includedNamespaces": [
                "string"
            ],
            "excludedNamespaces": [
                "string"
            ],
            "includedResources": [
                "string"
            ],
            "excludedResources": [
                "string"
            ],
            "labelSelector": {
                "matchExpressions": [
                    {
                        "key": "string",
                        "operator": "string",
                        "values": [
                            "string"
                        ]
                    }
                ]
            },
            "snapshotVolumes": false,
            "ttl": "string",
            "includeClusterResources": false,
            "storageLocation": "string",
            "volumeSnapshotLocations": [
                "string"
            ],
            "orLabelSelectors": [
                {
                    "matchExpressions": [
                        {
                            "key": "string",
                            "operator": "string",
                            "values": [
                                "string"
                            ]
                        }
                    ]
                }
            ],
            "defaultVolumesToRestic": false,
            "csiSnapshotTimeout": "string",
            "defaultVolumesToFsBackup": false,
            "hooks": {
                "resources": [
                    {
                        "name": "string",
                        "includedNamespaces": [
                            "string"
                        ],
                        "excludedNamespaces": [
                            "string"
                        ],
                        "labelSelector": {
                            "matchExpressions": [
                                {
                                    "key": "string",
                                    "operator": "string",
                                    "values": [
                                        "string"
                                    ]
                                }
                            ]
                        },
                        "preHooks": [
                            {
                                "exec": {
                                    "container": "string",
                                    "command": [
                                        "string"
                                    ],
                                    "onError": "string",
                                    "timeout": "string"
                                }
                            }
                        ],
                        "postHooks": [
                            {
                                "exec": {
                                    "container": "string",
                                    "command": [
                                        "string"
                                    ],
                                    "onError": "string",
                                    "timeout": "string"
                                }
                            }
                        ]
                    }
                ]
            },
            "includedClusterScopedResources": [
                "string"
            ],
            "excludedClusterScopedResources": [
                "string"
            ],
            "includedNamespaceScopedResources": [
                "string"
            ],
            "excludedNamespaceScopedResources": [
                "string"
            ],
            "snapshotMoveData": false
        },
        "status": {
            "observedGeneration": "string",
            "phase": "string",
            "phaseInfo": "string",
            "availablePhases": [
                "string"
            ],
            "validationErrors": [
                "string"
            ],
            "startTimestamp": "string",
            "completionTimestamp": "string",
            "volumeSnapshotsAttempted": 0,
            "volumeSnapshotsCompleted": 0,
            "expiration": "string",
            "formatVersion": "string",
            "progress": {
                "totalItems": 0,
                "itemsBackedUp": 0
            },
            "gatherBackupResourcesStatus": {
                "phase": "string",
                "phaseInfo": "string"
            },
            "resticBackupsCompleted": [
                "string"
            ],
            "resticBackupsAttempted": [
                "string"
            ],
            "failureReason": "string",
            "csiVolumeSnapshotsAttempted": 0,
            "csiVolumeSnapshotsCompleted": 0,
            "resourceListUrl": "string",
            "backupLogsUrl": "string",
            "volumeBackups": [
                {
                    "pvcName": "string",
                    "pvcNamespace": "string",
                    "pvName": "string",
                    "scName": "string",
                    "size": "string",
                    "method": "string",
                    "podInfo": {
                        "podName": "string",
                        "podNamespace": "string",
                        "podVolumeName": "string",
                        "backupPhase": "string"
                    }
                }
            ]
        }
    }
}
Responses
200

A successful response.

{
    "backup": {
        "type": {
            "kind": "string",
            "version": "string",
            "package": "string"
        },
        "fullName": {
            "orgId": "string",
            "managementClusterName": "string",
            "provisionerName": "string",
            "clusterName": "string",
            "name": "string"
        },
        "meta": {
            "uid": "string",
            "generation": "string",
            "resourceVersion": "string",
            "creationTime": "string",
            "updateTime": "string",
            "description": "string",
            "parentReferences": [
                {
                    "rid": "string",
                    "uid": "string"
                }
            ]
        },
        "spec": {
            "includedNamespaces": [
                "string"
            ],
            "excludedNamespaces": [
                "string"
            ],
            "includedResources": [
                "string"
            ],
            "excludedResources": [
                "string"
            ],
            "labelSelector": {
                "matchExpressions": [
                    {
                        "key": "string",
                        "operator": "string",
                        "values": [
                            "string"
                        ]
                    }
                ]
            },
            "snapshotVolumes": false,
            "ttl": "string",
            "includeClusterResources": false,
            "storageLocation": "string",
            "volumeSnapshotLocations": [
                "string"
            ],
            "orLabelSelectors": [
                {
                    "matchExpressions": [
                        {
                            "key": "string",
                            "operator": "string",
                            "values": [
                                "string"
                            ]
                        }
                    ]
                }
            ],
            "defaultVolumesToRestic": false,
            "csiSnapshotTimeout": "string",
            "defaultVolumesToFsBackup": false,
            "hooks": {
                "resources": [
                    {
                        "name": "string",
                        "includedNamespaces": [
                            "string"
                        ],
                        "excludedNamespaces": [
                            "string"
                        ],
                        "labelSelector": {
                            "matchExpressions": [
                                {
                                    "key": "string",
                                    "operator": "string",
                                    "values": [
                                        "string"
                                    ]
                                }
                            ]
                        },
                        "preHooks": [
                            {
                                "exec": {
                                    "container": "string",
                                    "command": [
                                        "string"
                                    ],
                                    "onError": "string",
                                    "timeout": "string"
                                }
                            }
                        ],
                        "postHooks": [
                            {
                                "exec": {
                                    "container": "string",
                                    "command": [
                                        "string"
                                    ],
                                    "onError": "string",
                                    "timeout": "string"
                                }
                            }
                        ]
                    }
                ]
            },
            "includedClusterScopedResources": [
                "string"
            ],
            "excludedClusterScopedResources": [
                "string"
            ],
            "includedNamespaceScopedResources": [
                "string"
            ],
            "excludedNamespaceScopedResources": [
                "string"
            ],
            "snapshotMoveData": false
        },
        "status": {
            "observedGeneration": "string",
            "phase": "string",
            "phaseInfo": "string",
            "availablePhases": [
                "string"
            ],
            "validationErrors": [
                "string"
            ],
            "startTimestamp": "string",
            "completionTimestamp": "string",
            "volumeSnapshotsAttempted": 0,
            "volumeSnapshotsCompleted": 0,
            "expiration": "string",
            "formatVersion": "string",
            "progress": {
                "totalItems": 0,
                "itemsBackedUp": 0
            },
            "gatherBackupResourcesStatus": {
                "phase": "string",
                "phaseInfo": "string"
            },
            "resticBackupsCompleted": [
                "string"
            ],
            "resticBackupsAttempted": [
                "string"
            ],
            "failureReason": "string",
            "csiVolumeSnapshotsAttempted": 0,
            "csiVolumeSnapshotsCompleted": 0,
            "resourceListUrl": "string",
            "backupLogsUrl": "string",
            "volumeBackups": [
                {
                    "pvcName": "string",
                    "pvcNamespace": "string",
                    "pvName": "string",
                    "scName": "string",
                    "size": "string",
                    "method": "string",
                    "podInfo": {
                        "podName": "string",
                        "podNamespace": "string",
                        "podVolumeName": "string",
                        "backupPhase": "string"
                    }
                }
            ]
        }
    }
}

default

An unexpected error response.

Returns grpc.gateway.runtime.Error of type(s) */*
{
    "error": "string",
    "code": 0,
    "message": "string",
    "details": [
        {
            "typeUrl": "string",
            "value": "string"
        }
    ]
}