Backup and Recovery API
Backup and Recovery API (1.1.0)
https://stage-developer-portal-hpe.redocly.app/_mock/docs/greenlake/services/backup-recovery/public/openapi/backup-recovery-public-v1beta1/
https://us-west.api.greenlake.hpe.com/
https://eu-west.api.greenlake.hpe.com/
https://eu-central.api.greenlake.hpe.com/
https://ap-northeast.api.greenlake.hpe.com/
The filter query parameter is used to filter the set of resources returned in the response. The returned set of resources must match the criteria in the filter query parameter.
A comparison compares a property name to a literal. The following comparisons are supported:
- “eq” : Is a property equal to value. Valid for number, boolean and string properties.
- “gt” : Is a property greater than a value. Valid for number or string timestamp properties.
- “lt” : Is a property less than a value. Valid for number or string timestamp properties
- “in” : Is a value in a property (that is an array of strings)
Examples:
- GET /backup-recovery/v1beta1/mssql-databases?filter="name eq billing-db-1"
- GET /backup-recovery/v1beta1/mssql-databases?filter="applicationHostInfo/name eq myhost1 and status eq Error"
Filters are supported on the following attributes:
- state
- status
- applicationHostInfo/id
- applicationHostInfo/name
- mssqlDatabaseProtectionGroupInfo/id
- mssqlDatabaseProtectionGroupInfo/name
- virtualizationInfo/hypervisorManagerInfo/id
- createdAt
- name
A comma separated list of properties to sort by, followed by a direction indicator ("asc" or "desc"). If no direction indicator is specified, the default order is ascending.
The select query parameter is used to limit the properties returned with a resource or collection-level GET. Multiple properties can be listed to be returned. The server must only return the set of properties requested by the client. The property “select” is the name of the select query parameter; its value is the list of properties to return separated by commas.
- Mock server
https://stage-developer-portal-hpe.redocly.app/_mock/docs/greenlake/services/backup-recovery/public/openapi/backup-recovery-public-v1beta1/backup-recovery/v1beta1/mssql-databases
https://us-west.api.greenlake.hpe.com/backup-recovery/v1beta1/mssql-databases
https://eu-west.api.greenlake.hpe.com/backup-recovery/v1beta1/mssql-databases
https://eu-central.api.greenlake.hpe.com/backup-recovery/v1beta1/mssql-databases
https://ap-northeast.api.greenlake.hpe.com/backup-recovery/v1beta1/mssql-databases
- curl
- JavaScript
- Node.js
- Python
- Java
- Go
- C#
- PHP
curl -i -X GET \
https://stage-developer-portal-hpe.redocly.app/_mock/docs/greenlake/services/backup-recovery/public/openapi/backup-recovery-public-v1beta1/backup-recovery/v1beta1/mssql-databases \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'
Success
UUID string uniquely identifying the MSSQL Database
The application host on which the database exists. In case of cluster this will be the active host
Details of the availability group this resource is associated to.
A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date.
Name of the MSSQL Database as configured in the application host
Information about the assigned Protection Policy and the Protection Job.
Provides the current protection status of this resource. - UNPROTECTED - No policy assigned, No recovery points exists - LAPSED - No policy assigned, at least one recovery points exists - PENDING - Policy assigned, No recovery points exists - PARTIAL - Policy assigned, At least one recovery point exists - PROTECTED - Policy assigned, most recent run of every configured schedule is successful - PAUSED - Policy assigned, one or more of the schedules are paused - UNSUPPORTED - No policy can be assigned
Indicates at least one valid recovery point exists for this resource.
The 'self' reference for this resource.
The current state of the MSSQL Database
{ "count": 0, "items": [ { … } ], "pageLimit": 0, "pageOffset": 0, "total": 0 }
- Mock server
https://stage-developer-portal-hpe.redocly.app/_mock/docs/greenlake/services/backup-recovery/public/openapi/backup-recovery-public-v1beta1/backup-recovery/v1beta1/mssql-databases/{db-id}
https://us-west.api.greenlake.hpe.com/backup-recovery/v1beta1/mssql-databases/{db-id}
https://eu-west.api.greenlake.hpe.com/backup-recovery/v1beta1/mssql-databases/{db-id}
https://eu-central.api.greenlake.hpe.com/backup-recovery/v1beta1/mssql-databases/{db-id}
https://ap-northeast.api.greenlake.hpe.com/backup-recovery/v1beta1/mssql-databases/{db-id}
- curl
- JavaScript
- Node.js
- Python
- Java
- Go
- C#
- PHP
curl -i -X GET \
https://stage-developer-portal-hpe.redocly.app/_mock/docs/greenlake/services/backup-recovery/public/openapi/backup-recovery-public-v1beta1/backup-recovery/v1beta1/mssql-databases/9b4c14a6-3cd5-4907-97c4-cf44c5b641e4 \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'
Success
UUID string uniquely identifying the MSSQL Database
The application host on which the database exists. In case of cluster this will be the active host
Details of the availability group this resource is associated to.
A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date.
Name of the MSSQL Database as configured in the application host
Information about the assigned Protection Policy and the Protection Job.
Provides the current protection status of this resource. - UNPROTECTED - No policy assigned, No recovery points exists - LAPSED - No policy assigned, at least one recovery points exists - PENDING - Policy assigned, No recovery points exists - PARTIAL - Policy assigned, At least one recovery point exists - PROTECTED - Policy assigned, most recent run of every configured schedule is successful - PAUSED - Policy assigned, one or more of the schedules are paused - UNSUPPORTED - No policy can be assigned
Indicates at least one valid recovery point exists for this resource.
The 'self' reference for this resource.
{ "applicationHostInfo": { "displayName": "My-Test-WindowsHost", "id": "9b4c14a6-3cd5-4907-97c4-cf44c5b641e4", "name": "host123.hpe.com", "resourceUri": "/backup-recovery/v1beta1/application-hosts/{host-id}", "type": "string" }, "availabilityGroupInfo": { "name": "string", "role": "PRIMARY", "uid": "7D0563C3-8627-4B33-96C7" }, "clusterInfo": { "clustered": false, "role": "PRIMARY" }, "createdAt": "2019-08-24T14:15:22Z", "customerId": "string", "generation": 0, "id": "9b4c14a6-3cd5-4907-97c4-cf44c5b641e4", "instanceInfo": { "id": "1b738651-da9f-4c85-88c1-70dbfe1976681", "name": "string", "resourceUri": "/backup-recovery/v1beta1/mssql-instances/{instance-id}", "type": "string" }, "mssqlDatabaseProtectionGroupInfo": { "id": "1b738651-da9f-4c85-88c1-70dbfe1976681", "name": "my-protection-group", "resourceUri": "/backup-recovery/v1beta1/mssql-database-protection-groups/{protection-group-id}", "type": "string" }, "name": "billing-db1", "protectionJobInfo": { "id": "c9cdeb6b-24cb-43c1-828a-e8b1b050f3f4", "name": "string", "protectionPolicyInfo": { … }, "resourceUri": "string", "type": "string" }, "protectionStatus": "PROTECTED", "recoveryPointsExist": true, "resourceUri": "/backup-recovery/v1beta1/mssql-databases/{db-id}", "sizeInBytes": 2407653459860, "state": "OK", "stateReason": "string", "status": "OK", "type": "string", "updatedAt": "2019-08-24T14:15:22Z", "virtualizationInfo": { "hypervisorManagerInfo": { … }, "virtualMachineInfo": { … } } }
- Mock server
https://stage-developer-portal-hpe.redocly.app/_mock/docs/greenlake/services/backup-recovery/public/openapi/backup-recovery-public-v1beta1/backup-recovery/v1beta1/mssql-databases/{db-id}/refresh
https://us-west.api.greenlake.hpe.com/backup-recovery/v1beta1/mssql-databases/{db-id}/refresh
https://eu-west.api.greenlake.hpe.com/backup-recovery/v1beta1/mssql-databases/{db-id}/refresh
https://eu-central.api.greenlake.hpe.com/backup-recovery/v1beta1/mssql-databases/{db-id}/refresh
https://ap-northeast.api.greenlake.hpe.com/backup-recovery/v1beta1/mssql-databases/{db-id}/refresh
- curl
- JavaScript
- Node.js
- Python
- Java
- Go
- C#
- PHP
curl -i -X POST \
https://stage-developer-portal-hpe.redocly.app/_mock/docs/greenlake/services/backup-recovery/public/openapi/backup-recovery-public-v1beta1/backup-recovery/v1beta1/mssql-databases/9b4c14a6-3cd5-4907-97c4-cf44c5b641e4/refresh \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'
{}
Specifies the type of restore needs to be performed.
UUID string uniquely identifying the backup.
The recovery mode the database will be in at the end of restore operation
Time in UTC upto which the recovery needs to be done. This attribute is required only if restore from log backup is intended.
Flag to indicate if the backup operation should backup the tail log
UUID string uniquely identifying the snapshot.
- Mock server
https://stage-developer-portal-hpe.redocly.app/_mock/docs/greenlake/services/backup-recovery/public/openapi/backup-recovery-public-v1beta1/backup-recovery/v1beta1/mssql-databases/{db-id}/restore
https://us-west.api.greenlake.hpe.com/backup-recovery/v1beta1/mssql-databases/{db-id}/restore
https://eu-west.api.greenlake.hpe.com/backup-recovery/v1beta1/mssql-databases/{db-id}/restore
https://eu-central.api.greenlake.hpe.com/backup-recovery/v1beta1/mssql-databases/{db-id}/restore
https://ap-northeast.api.greenlake.hpe.com/backup-recovery/v1beta1/mssql-databases/{db-id}/restore
- curl
- JavaScript
- Node.js
- Python
- Java
- Go
- C#
- PHP
curl -i -X POST \
https://stage-developer-portal-hpe.redocly.app/_mock/docs/greenlake/services/backup-recovery/public/openapi/backup-recovery-public-v1beta1/backup-recovery/v1beta1/mssql-databases/9b4c14a6-3cd5-4907-97c4-cf44c5b641e4/restore \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"restoreType": "PARENT"
}'
{}