You can call this operation to create asynchronous tasks.

Request parameters

Name Type Required Description
TaskType Integer Yes The type of the task. Valid values:
  • 1: A value of 1 indicates that the task is to export multiple layer 4 forwarding rules.
  • 2: A value of 2 indicates that the task is to export multiple layer 7 forwarding rules.
  • 3: A value of 3 indicates that the task is to export session and health check settings.
  • 4: A value of 4 indicates that the task is to export anti-DDoS protection policies.
TaskParams String Yes The task parameter represented as a JSON string. The parameters vary depending on the task type.
  • When TaskType is set to 1, specify the ID of the Anti-DDoS Pro instance where the rules to be exported come from. For example, {“instanceId”: “ddoscoo-cn-XXXXX”}.
  • When TaskType is set to 2, specify an empty string. For example, {}.
  • When TaskType is set to 3, specify the ID of the Anti-DDoS Pro instance where the rules to be exported come from. For example, {“instanceId”: “ddoscoo-cn-XXXXX”}.
  • When TaskType is set to 4, specify the ID of the Anti-DDoS Pro instance where the rules to be exported come from. For example, {“instanceId”: “ddoscoo-cn-XXXXX”}.

Response parameters

Name Type Description
RequestId String The GUID generated by Alibaba Cloud for the request.

Examples

Sample requests
{
  "TaskType": 1,
  "TaskParams": "{}" // Layer 4 task: {"instanceId": "ddoscoo-woieuroi234"}, Layer 7 task: {}, Session and health check task: {"instanceId": "xxxxxxxxxx"}, Anti-DDoS protection policy task: {"instanceId": "xxxxxxxxxx"}
}
Sample responses
{
  "RequestId": "0bcf28g5-d57c-11e7-9bs0-d89d6717dxbc"
}