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/backup-recovery-api/
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/protection-policies?filter=protections/type eq CLOUD_BACKUP
Filters are supported on following attributes:
- assigned
- name
- protections/type
- protections/applicationType
- protections/protectionStoreInfo/name
- protections/protectionStoreInfo/id
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-api/backup-recovery/v1beta1/protection-policies
https://us-west.api.greenlake.hpe.com/backup-recovery/v1beta1/protection-policies
https://eu-west.api.greenlake.hpe.com/backup-recovery/v1beta1/protection-policies
https://eu-central.api.greenlake.hpe.com/backup-recovery/v1beta1/protection-policies
https://ap-northeast.api.greenlake.hpe.com/backup-recovery/v1beta1/protection-policies
- 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-api/backup-recovery/v1beta1/protection-policies \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'
Success
UUID string uniquely identifying the Protection Policy.
Specifies type of application that the protection applies to. It is a mandatory field.
Boolean indicating if the Protection Policy has been used to create Protection Jobs
UTC time when the Protection Policy was created.
A brief description about the Protection Policy.
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.
Details of the Protection Jobs using the Protection Policy
The number of items to skip before starting to collect the result set
{ "count": 1, "items": [ { … } ], "offset": 0, "total": 0 }
Specifies type of application that the protection applies to. It is a mandatory field.
An array of protection objectives
Specifies type of protection. It is a mandatory field. 'SNAPSHOT' and 'REPLICATED_SNAPSHOT' types are array level snapshots.
An array of protection requirements specifying the frequency of creation, targets, retention and expiry related attributes.
Client provided id for this schedule.
This schema defines a schedule.
Specifies the recurrence.
Specifies the repeat interval. The interpretation varies with recurrence type. Examples: - 'BY_MINUTES' every '15' -> Every 15 minutes - 'HOURLY' every '6' on '30' -> Every 6 hours on half past of that hour - 'DAILY' every '1', startTime '06:00' -> Every day at 06:00 - 'WEEKLY' every '2' on '0' -> Every two weeks on the Monday of that week. - 'MONTHLY' every '3' on '7' -> Every three months on the 7th day of the month.
Specifies the recurrence interval. 'BY_MINUTES' [1...60], 'HOURLY' [1...24], 'DAILY' [1...n], 'WEEKLY' [1...n], 'MONTHLY' [1...n]
'BY_MINUTES' N/A. 'HOURLY' specific minute [0...59]. 'DAILY' N/A, startTime can be used to specify exact hour and minute of schedule run. 'WEEKLY' specific day of the week [0...6]. This is [mon-sun]. 'MONTHLY' specific day of the month [0...31]. '0' is used to specify last day of the month.
Active time for the schedule. If specified then the schedule will be executed only in this period. Applicable only for 'BY_MINUTES' and 'HOURLY' schedules only.
Copy expiration attribute, which specifies the expiration for the artifacts created.
Retention attribute, which specifies the retention period for the artifacts created. Artifacts are locked for deletion for the specified period of time.
Details required to run the post-script.
Details required to run the pre-script.
- Mock server
https://stage-developer-portal-hpe.redocly.app/_mock/docs/greenlake/services/backup-recovery/public/openapi/backup-recovery-public-v1beta1/backup-recovery-api/backup-recovery/v1beta1/protection-policies
https://us-west.api.greenlake.hpe.com/backup-recovery/v1beta1/protection-policies
https://eu-west.api.greenlake.hpe.com/backup-recovery/v1beta1/protection-policies
https://eu-central.api.greenlake.hpe.com/backup-recovery/v1beta1/protection-policies
https://ap-northeast.api.greenlake.hpe.com/backup-recovery/v1beta1/protection-policies
- 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-api/backup-recovery/v1beta1/protection-policies \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"applicationType": "VMWARE",
"name": "Gold-Protection-Policy",
"protections": [
{
"schedules": [
{
"schedule": {
"recurrence": "BY_MINUTES",
"repeatInterval": {
"every": 0
}
},
"scheduleId": 0
}
],
"type": "SNAPSHOT"
}
]
}'
Success
UUID string uniquely identifying the Protection Policy.
Specifies type of application that the protection applies to. It is a mandatory field.
UTC time when the Protection Policy was created.
A brief description about the Protection Policy.
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.
{ "applicationType": "VMWARE", "assigned": true, "consoleUri": "string", "createdAt": "2019-07-21T17:32:28Z", "createdBy": { "id": "2a1172be-4281-44f9-848b-9c3f86378b13", "name": "Admin" }, "description": "Protection Policy protecting Finance department's Virtual Machines or datastores.", "generation": 0, "id": "c9cdeb6b-24cb-43c1-828a-e8b1b050f3f4", "name": "Gold-Protection-Policy", "protectionJobsInfo": [ { … } ], "protections": [ { … } ], "resourceUri": "string", "type": "string", "updatedAt": "2019-07-21T17:32:28Z" }
- Mock server
https://stage-developer-portal-hpe.redocly.app/_mock/docs/greenlake/services/backup-recovery/public/openapi/backup-recovery-public-v1beta1/backup-recovery-api/backup-recovery/v1beta1/protection-policies/{id}
https://us-west.api.greenlake.hpe.com/backup-recovery/v1beta1/protection-policies/{id}
https://eu-west.api.greenlake.hpe.com/backup-recovery/v1beta1/protection-policies/{id}
https://eu-central.api.greenlake.hpe.com/backup-recovery/v1beta1/protection-policies/{id}
https://ap-northeast.api.greenlake.hpe.com/backup-recovery/v1beta1/protection-policies/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- Go
- C#
- PHP
curl -i -X DELETE \
https://stage-developer-portal-hpe.redocly.app/_mock/docs/greenlake/services/backup-recovery/public/openapi/backup-recovery-public-v1beta1/backup-recovery-api/backup-recovery/v1beta1/protection-policies/c9cdeb6b-24cb-43c1-828a-e8b1b050f3f4 \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'
- Mock server
https://stage-developer-portal-hpe.redocly.app/_mock/docs/greenlake/services/backup-recovery/public/openapi/backup-recovery-public-v1beta1/backup-recovery-api/backup-recovery/v1beta1/protection-policies/{id}
https://us-west.api.greenlake.hpe.com/backup-recovery/v1beta1/protection-policies/{id}
https://eu-west.api.greenlake.hpe.com/backup-recovery/v1beta1/protection-policies/{id}
https://eu-central.api.greenlake.hpe.com/backup-recovery/v1beta1/protection-policies/{id}
https://ap-northeast.api.greenlake.hpe.com/backup-recovery/v1beta1/protection-policies/{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-api/backup-recovery/v1beta1/protection-policies/c9cdeb6b-24cb-43c1-828a-e8b1b050f3f4 \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'
Success
UUID string uniquely identifying the Protection Policy.
Specifies type of application that the protection applies to. It is a mandatory field.
UTC time when the Protection Policy was created.
A brief description about the Protection Policy.
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.
{ "applicationType": "VMWARE", "assigned": true, "consoleUri": "string", "createdAt": "2019-07-21T17:32:28Z", "createdBy": { "id": "2a1172be-4281-44f9-848b-9c3f86378b13", "name": "Admin" }, "description": "Protection Policy protecting Finance department's Virtual Machines or datastores.", "generation": 0, "id": "c9cdeb6b-24cb-43c1-828a-e8b1b050f3f4", "name": "Gold-Protection-Policy", "protectionJobsInfo": [ { … } ], "protections": [ { … } ], "resourceUri": "string", "type": "string", "updatedAt": "2019-07-21T17:32:28Z" }
- Mock server
https://stage-developer-portal-hpe.redocly.app/_mock/docs/greenlake/services/backup-recovery/public/openapi/backup-recovery-public-v1beta1/backup-recovery-api/backup-recovery/v1beta1/protection-policies/{id}
https://us-west.api.greenlake.hpe.com/backup-recovery/v1beta1/protection-policies/{id}
https://eu-west.api.greenlake.hpe.com/backup-recovery/v1beta1/protection-policies/{id}
https://eu-central.api.greenlake.hpe.com/backup-recovery/v1beta1/protection-policies/{id}
https://ap-northeast.api.greenlake.hpe.com/backup-recovery/v1beta1/protection-policies/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- Go
- C#
- PHP
curl -i -X PATCH \
https://stage-developer-portal-hpe.redocly.app/_mock/docs/greenlake/services/backup-recovery/public/openapi/backup-recovery-public-v1beta1/backup-recovery-api/backup-recovery/v1beta1/protection-policies/c9cdeb6b-24cb-43c1-828a-e8b1b050f3f4 \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/merge-patch+json' \
-d '{}'
Success
UUID string uniquely identifying the Protection Policy.
Specifies type of application that the protection applies to. It is a mandatory field.
UTC time when the Protection Policy was created.
A brief description about the Protection Policy.
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.
{ "applicationType": "VMWARE", "assigned": true, "consoleUri": "string", "createdAt": "2019-07-21T17:32:28Z", "createdBy": { "id": "2a1172be-4281-44f9-848b-9c3f86378b13", "name": "Admin" }, "description": "Protection Policy protecting Finance department's Virtual Machines or datastores.", "generation": 0, "id": "c9cdeb6b-24cb-43c1-828a-e8b1b050f3f4", "name": "Gold-Protection-Policy", "protectionJobsInfo": [ { … } ], "protections": [ { … } ], "resourceUri": "string", "type": "string", "updatedAt": "2019-07-21T17:32:28Z" }
Specifies type of application that the protection applies to. It is a mandatory field.
An array of protection objectives
Specifies type of protection. It is a mandatory field. 'SNAPSHOT' and 'REPLICATED_SNAPSHOT' types are array level snapshots.
An array of protection requirements specifying the frequency of creation, targets, retention and expiry related attributes.
Client provided id for this schedule.
This schema defines a schedule.
Specifies the recurrence.
Specifies the repeat interval. The interpretation varies with recurrence type. Examples: - 'BY_MINUTES' every '15' -> Every 15 minutes - 'HOURLY' every '6' on '30' -> Every 6 hours on half past of that hour - 'DAILY' every '1', startTime '06:00' -> Every day at 06:00 - 'WEEKLY' every '2' on '0' -> Every two weeks on the Monday of that week. - 'MONTHLY' every '3' on '7' -> Every three months on the 7th day of the month.
Specifies the recurrence interval. 'BY_MINUTES' [1...60], 'HOURLY' [1...24], 'DAILY' [1...n], 'WEEKLY' [1...n], 'MONTHLY' [1...n]
'BY_MINUTES' N/A. 'HOURLY' specific minute [0...59]. 'DAILY' N/A, startTime can be used to specify exact hour and minute of schedule run. 'WEEKLY' specific day of the week [0...6]. This is [mon-sun]. 'MONTHLY' specific day of the month [0...31]. '0' is used to specify last day of the month.
Active time for the schedule. If specified then the schedule will be executed only in this period. Applicable only for 'BY_MINUTES' and 'HOURLY' schedules only.
Copy expiration attribute, which specifies the expiration for the artifacts created.
Retention attribute, which specifies the retention period for the artifacts created. Artifacts are locked for deletion for the specified period of time.
Details required to run the post-script.
Details required to run the pre-script.
- Mock server
https://stage-developer-portal-hpe.redocly.app/_mock/docs/greenlake/services/backup-recovery/public/openapi/backup-recovery-public-v1beta1/backup-recovery-api/backup-recovery/v1beta1/protection-policies/{id}
https://us-west.api.greenlake.hpe.com/backup-recovery/v1beta1/protection-policies/{id}
https://eu-west.api.greenlake.hpe.com/backup-recovery/v1beta1/protection-policies/{id}
https://eu-central.api.greenlake.hpe.com/backup-recovery/v1beta1/protection-policies/{id}
https://ap-northeast.api.greenlake.hpe.com/backup-recovery/v1beta1/protection-policies/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- Go
- C#
- PHP
curl -i -X PUT \
https://stage-developer-portal-hpe.redocly.app/_mock/docs/greenlake/services/backup-recovery/public/openapi/backup-recovery-public-v1beta1/backup-recovery-api/backup-recovery/v1beta1/protection-policies/c9cdeb6b-24cb-43c1-828a-e8b1b050f3f4 \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"applicationType": "VMWARE",
"name": "Gold-Protection-Policy",
"protections": [
{
"schedules": [
{
"schedule": {
"recurrence": "BY_MINUTES",
"repeatInterval": {
"every": 0
}
},
"scheduleId": 0
}
],
"type": "SNAPSHOT"
}
]
}'
Success
UUID string uniquely identifying the Protection Policy.
Specifies type of application that the protection applies to. It is a mandatory field.
UTC time when the Protection Policy was created.
A brief description about the Protection Policy.
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.
{ "applicationType": "VMWARE", "assigned": true, "consoleUri": "string", "createdAt": "2019-07-21T17:32:28Z", "createdBy": { "id": "2a1172be-4281-44f9-848b-9c3f86378b13", "name": "Admin" }, "description": "Protection Policy protecting Finance department's Virtual Machines or datastores.", "generation": 0, "id": "c9cdeb6b-24cb-43c1-828a-e8b1b050f3f4", "name": "Gold-Protection-Policy", "protectionJobsInfo": [ { … } ], "protections": [ { … } ], "resourceUri": "string", "type": "string", "updatedAt": "2019-07-21T17:32:28Z" }