Creating a Microservice Backup Policy
Function
This API is used to create a microservice backup policy.
URI
POST /cseengine/v1/engines/{engineId}/backup-strategies
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
engine_id |
Yes |
String |
Microservice engine ID. |
Request
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
X-Auth-Token |
Yes |
String |
User token. |
|
X-Enterprise-Project-ID |
No |
String |
If this parameter is not set, the default enterprise project is default and the ID is 0. Default Value: 0 |
|
Content-Type |
Yes |
String |
Set it to application/json;charset=UTF-8. |
|
Accept |
Yes |
String |
Set it to application/json. |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
schedule |
Yes |
String |
Scheduling cron expression for describing the backup time. |
|
reserve |
No |
int |
Backup file retention days. |
|
maxFiles |
No |
int |
Maximum number of files. |
Response
|
Parameter |
Type |
Description |
|---|---|---|
|
id |
String |
Backup policy ID. |
|
engineId |
String |
Engine ID. |
|
schedule |
String |
Scheduling cron expression for describing the backup time. |
|
reserve |
String |
Backup file retention days. |
|
maxFiles |
int |
Maximum number of files. |
|
createAt |
long |
Creation timestamp. |
|
nextAt |
long |
Next backup timestamp. |
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Error code. |
|
error_msg |
String |
Error message. |
|
detail |
String |
Location details. |
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Error code. |
|
error_msg |
String |
Error message. |
|
detail |
String |
Location details. |
Example Request
POST https://{endpoint}/cseengine/v1/engines/{engineId}/backup-strategies
{
"schedule" : "string",
"reserve" : "10",
"maxFiles": "10"
}
Example Response
Status code: 200
success
{
"id": "string",
"engineId": "string",
"schedule": "string",
"reserve": "10",
"maxFiles": "10",
"createAt": "10000",
"nextAt": "100000"
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
success |
|
400 |
Bad Request |
|
500 |
Internal Server Error |
Error Code
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot