Retrieves a firewall task.
Operation description
QPS limit
The single-user QPS limit for this operation is 10 calls per second. If the limit is exceeded, API calls are throttled, which may affect your business. Call this operation appropriately.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-cloudfirewall:DescribeFirewallTask |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Lang |
string |
No |
The language type. Valid values:
|
zh |
| ChildInstanceId |
string |
No |
The child instance ID. You must specify at least one of ChildInstanceId and TaskId. If both are empty, the error MissingParameter.TaskId (-360448) is returned. |
vfw-tr-cd6000c588214403**** |
| TaskType |
string |
No |
The type of the task. Valid values:
|
VPC |
| TaskId |
string |
No |
The task ID. You must specify at least one of TaskId and ChildInstanceId. If both are empty, the error MissingParameter.TaskId (-360448, At least one of TaskId or ChildInstanceId is required.) is returned. |
199431783 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| IsFound |
boolean |
Indicates whether the task exists. |
false |
| TaskStatus |
string |
The task status. Valid values:
|
init |
| TaskWaitingTime |
string |
The waiting time, in minutes. |
30 |
| TaskSteps |
array<object> |
The task steps. |
|
|
object |
The task steps. |
||
| StepStatus |
string |
The task step status. Valid values:
|
init |
| StepName |
string |
The name of the Cloud Firewall security step. |
Create Firewall |
| StepProgress |
string |
The progress of the task step. |
80 |
| StepInfo |
string |
The task information. |
abcd |
| RequestId |
string |
The request ID. |
7D5483BF-2262-586D-8706-BDDB8B42**** |
| TaskName |
string |
The task name. |
egressgw |
| TaskStartTimestamp |
string |
The time when the task was created. |
17151361285 |
| TaskFinishTimestamp |
string |
The time when the task was completed. |
17151381075 |
| TaskId |
integer |
The task ID. |
189997648 |
Examples
Success response
JSON format
{
"IsFound": false,
"TaskStatus": "init",
"TaskWaitingTime": "30",
"TaskSteps": [
{
"StepStatus": "init",
"StepName": "Create Firewall",
"StepProgress": "80",
"StepInfo": "abcd"
}
],
"RequestId": "7D5483BF-2262-586D-8706-BDDB8B42****",
"TaskName": "egressgw",
"TaskStartTimestamp": "17151361285",
"TaskFinishTimestamp": "17151381075",
"TaskId": 189997648
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ErrorParameters | A parameter error occurred. | A parameter error occurred. |
| 400 | MissingParameter.TaskId | At least one of TaskId or ChildInstanceId is required. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.