BackupSvrDataApplyDetail

Get Application Form Details for Data Backup

Request address

GET
http://OmsAddress/app/newoms.php/webservice/business/backup-svr-data/apply-detail/<uid>?cmd=10009&ip-type=webservicerest&access-token=AccessTokenVal

GET parameter description in url

Parameter name Data type Description Whether the field is required Remarks
uid integer id of data backup application form Yes

Return Syntax

Return Parameter Description

  1. When the returned status code is not 200, it means that the check was unsuccessful, and the returned data is the check failure information

  2. 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
id integer form id
set_id integer set id
zone_id integer zoneid
table_name string table name
apply_type integer backup type, 9: auto-backup 10: auto-backup blocking 11: auto-backup recovery
username string form applicant
execute_status string form execution status
execute_user string form executer
trans_id integer Transaction id of the form. It will be used in "3.16.5. Execute (Data Backup) Transaction", "3.16.6 Get Data Backup Transaction Details"
tag_type backup type 1: Regular backup of full table, TCAPLUS_FULL; 2: Regular backup of partial tables, OSDATA; 3: Permanent backup of full table, DBFILE
create_time string Creation time
update_time string Last update time
svr_info string

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 "GET" http://omsaddress/app/newoms.php/webservice/business/backup-svr-data/apply-detail/%3Cuid%3E?cmd=10009&ip-type=webservicerest&access-token=\&uid=\

Return Example

Successful Return Example

Status of http request = 200

{
    "id": 5,
    "set_id": 126,
    "app_id": 2,
    "zone_id": 0,
    "table_name": "",
    "apply_type": 10,
    "username": "tcaplus",
    "execute_status": 1,
    "execute_user": "tcaplus",
    "trans_id": 43,
    "tag_type": 1,
    "create_time": "2018-05-22 21:05:46",
    "update_time": "2018-05-22 21:07:25",
    "svr_info": "126.2.2.3"
}

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"
}
{
    "uid": [
        "[Uid](45) is invalid"
    ]
}

results matching ""

    No results matching ""