TableDataRelateTrans

Get Data Construction (Table Data Construction, Machine Data Construction) Transaction

This interface is used to obtain all transactions of table data construction and machine data construction. You have to identify for yourself.

Request address

POST
http://OmsAddress/app/newoms.php/webservice/oamp/table-data/relate-trans?cmd=10014&ip-type=webservicerest&access-token=AccessTokenVal

POST request parameter description

Field name Data type Description Whether it is required Remarks
filename string name of the file to be uploaded Yes
content string The content of the file to be uploaded (the maximum content of the uploaded file is 10M) Yes

Data Parameters

Use json format to represent the record related information. The following is an example:

{
    "setId": 126,
    "tableKeysList": [
        {
            "AppID": 2,
            "ZoneID": 1,
            "TableName": "type_right_4"
        }
    ],
    "ipList": "1.1.1.1 tcaplus tcaplus /data/rollback_dir",
    "importSpeed": 2000,
    "RollBackType": 0,
    "DataType": 1
}

Return Syntax

Return Parameter Description

  1. When the returned status code is not 200, it indicates that the request failed

  2. When the returned status code is 200, it indicates that the request is successful. The returned array is the transaction list of data structures (table data construction, machine data construction) under all sets. If the data item of the data is empty, it indicates that there is no transaction of data construction

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 '{
    "setId": 126,
    "tableKeysList": [
        {
            "AppID": 2,
            "ZoneID": 1,
            "TableName": "type_right_4"
        }
    ],
    "ipList": "1.1.1.1 tcaplus tcaplus /data/rollback_dir",
    "importSpeed": 2000,
    "RollBackType": 0,
    "DataType": 1
}' http://omsaddress/app/newoms.php/webservice/oamp/table-data/relate-trans?cmd=10014&ip-type=webservicerest&access-token=\

Return Example

Successful Return Example

Status of http request = 200

{
    "SetId": "126",
    "TransId": 108,
    "username": "username"
}

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"
}
{
    "Error": [
        "can not find app_id(2),zone_id(3),table_name(add_table19)"
    ]
}

results matching ""

    No results matching ""