CheckApplyTableIndex
Check the Application for Creating a Table Index
Only dbas and administrators have permission to approve operations
Request address
POST
http://OmsAddress/app/newoms.php/webservice/business/table/check-apply-table-index?cmd=10022&ip-type=webservicerest&access-token=AccessTokenVal
POST request parameter description
| Parameter | format | Required or not | Description |
|---|---|---|---|
| uid | integer | Yes | application form id |
| speed_rule_conf_data | Fixed structure {"Policy":2,"ItemCnt":2,"ItemList":[{"StartHour":1,"EndHour":7,"MaxCount":20000},{"StartHour":7,"EndHour":1,"MaxCount":20000}]} | No | data migration speed configuration |
| binglog_sync_speed_data | Fixed structure {"Policy":2,"ItemCnt":2,"ItemList":[{"StartHour":1,"EndHour":7,"MaxCount":20000},{"StartHour":7,"EndHour":1,"MaxCount":20000}]} | No | Binlog synchronization speed configuration |
| shard_num | integer | No | number of shards |
Data Parameters
Use json format to represent the record related information. The following is an example:
{
"uid": 10
}
Return Syntax
Return Parameter Description
When the returned status code is not 200, it indicates that the request failed, and the return data is the message of the request failure
The returned status code is 200, it indicates that the request is successful
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": 10
}' http://omsaddress/app/newoms.php/webservice/business/table/check-apply-table-index?cmd=10022&ip-type=webservicerest&access-token=\
Return Example
Successful Return Example
Status of http request = 200
{
"set_id": 1,
"trans_id": 467,
"username": "peterwong"
}
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"
}
{
"source_ip": "ip:10.29.89.51 not in whitelist"
}