CreateRiskCheckTask
Creates a risk check task.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
apig:CreateRiskCheckTask |
create |
*Gateway
|
None | None |
Request syntax
POST /v1/gateways/{gatewayId}/risk-check/tasks HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| gatewayId |
string |
No |
The ID of the target gateway. The gateway must exist and be in the Running state. Otherwise, the ErrGatewayIsNotRunning error is returned. |
gw-xxxx |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| requestId |
string |
Id of the request |
01A0220E-1F41-5260-A418-68286DF6B53D |
| code |
string |
The response status code. |
200 |
| message |
string |
The response message. |
success |
| data |
object |
The response data. |
|
| taskId |
string |
The risk detection task ID. |
rct-xxxxxxxx |
Examples
Success response
JSON format
{
"requestId": "01A0220E-1F41-5260-A418-68286DF6B53D",
"code": "200",
"message": "success",
"data": {
"taskId": "rct-xxxxxxxx"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.