BackupSvrDataCheck
Check the Application for Data Backup
Request address
POST
http://OmsAddress/app/newoms.php/webservice/business/backup-svr-data/check?cmd=10009&ip-type=webservicerest&access-token=AccessTokenVal
POST request parameter description
| Parameter name | Data type | Description | Whether the field is required | Remarks |
|---|---|---|---|---|
| uid | integer | id of data backup application form | Yes |
Data Parameters
Use json format to represent the record related information. The following is an example:
{
"uid": 564
}
Return Syntax
Return Parameter Description
When the returned status code is not 200, it means that the check was unsuccessful, and the returned data is the check failure information
When the returned status code is 200, it means that the check was successful, and the data structure returned is as follows:
| Field name | Data type | Description | Remarks |
|---|---|---|---|
| trans_id | integer | id of the generated corresponding transaction | |
| set_id | integer | Set of the transaction | |
| username | string | applicant |
Request Example
Send A Request through the Curl Method
For the parameters in the command, please refer to the "Description of POST Request Parameters" on this page. For the method to obtain access-token, see: Get access-token
curl -H "Content-type: application/json" -X "POST" -d '{
"uid": 564
}' http://omsaddress/app/newoms.php/webservice/business/backup-svr-data/check?cmd=10009&ip-type=webservicerest&access-token=\
Return Example
Successful Return Example
Status of http request = 200
{
"set_id": 126,
"trans_id": 408,
"username": "tcaplus"
}
Failed Return Example
Status of http request != 200
{
"name": "Unauthorized",
"message": "You are requesting with an invalid credential.",
"code": 0,
"status": 401,
"type": "yii\\web UnauthorizedHttpException"
}
[
"Add transaction for ProcBackupSvrDataReq failed: Get TcaplusServer by:10.123.15.2 failed."
]