Creates an API security data export task.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-waf:CreateApiExport |
create |
*All Resource
|
|
None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the WAF instance. Note
You can call DescribeInstance to obtain the ID of the current WAF instance. |
waf-cn-zxu3*** |
| Region |
string |
No |
The language type. Valid values:
|
cn |
| ZoneId |
string |
No |
The time zone ID. |
Asia/Shanghai |
| Type |
string |
No |
The type of the export task. Valid values:
|
apisec_api |
| Param |
string |
No |
The extended parameters of the export task. You can filter the exported content by specifying conditions. The value is a JSON string constructed from a series of parameters. Note
The specific parameters vary depending on the specified export task type (Type). For more information, refer to Export task parameter description. |
{ "startTime": 1741449600, "endTime": 1744079820, "sensitiveLevel": "L1" } |
| ClusterId |
string |
No |
The hybrid cloud cluster ID. Note
This parameter applies only to hybrid cloud scenarios. You can call DescribeHybridCloudClusters to obtain hybrid cloud cluster information. |
993 |
| RegionId |
string |
No |
The region where the WAF instance is deployed. Valid values:
|
cn-hangzhou |
| ResourceManagerResourceGroupId |
string |
No |
The Alibaba Cloud resource group ID. |
rg-acfm***q |
Export task parameter description.
API asset task (apisec_api)
Parameter description
For detailed valid values of the parameters, refer to the parameters with the same names in the DescribeApisecApiResources operation.
| Name | Type | Example | Description |
| startTime | Integer | 1741449600 | The start time of the query. The value is a Unix timestamp (UTC), in seconds. |
| EndTime | Integer | 1744097760 | The end time of the query. The value is a Unix timestamp (UTC), in seconds. |
| MatchedHost | String | a.aliyun.com | The domain name or IP address to which the API belongs. |
| ApiFormat | String | /auth/login | The API path. |
| SensitiveType | String | 1004 | The type of sensitive data in the response. |
| ApiStatus | String | OfflineInterface | The status of the API. |
| Follow | Long | 0 | Specifies whether the API is followed. |
| ApiType | String | innerAPI | The service object. |
| ApiTag | String | SendMail | The business purpose of the API. |
| SensitiveLevel | String | L3 | The sensitivity level of the API. |
| ApiMethod | String | POST | The request method of the API. |
| RequestSensitiveType | String | 1004,1005 | The type of sensitive information in the request. |
| AuthFlag | String | 0 | Specifies whether an authentication field exists. |
API risk task (apisec_abnormal)
Parameter description
For detailed valid values of the parameters, refer to the parameters with the same names in the DescribeApisecAbnormals operation.
| Name | Type | Example | Description |
| startTime | Integer | 1741449600 | The start time of the query. The value is a Unix timestamp (UTC), in seconds. |
| EndTime | Integer | 1744097760 | The end time of the query. The value is a Unix timestamp (UTC), in seconds. |
| MatchedHost | String | a.aliyun.com | The domain name or IP address to which the API belongs. |
| ApiFormat | String | /api/users/login | The API path. |
| AbnormalLevel | String | medium | The risk level. |
| AbnormalTag | String | LackOfSpeedLimit | The risk type. |
| UserStatus | String | Confirmed | The risk status. |
| Origin | String | custom | The source of the risk type. |
| ApiTag | String | SendMail | The business purpose of the API. |
API event task (apisec_event)
Parameter description
For detailed valid values of the parameters, refer to the parameters with the same names in the DescribeApisecEvents operation.
| Name | Type | Example | Description |
| StartTs | Integer | 1741449600 | The start time of the query. The value is a Unix timestamp (UTC), in seconds. |
| EndTs | Integer | 1744097760 | The end time of the query. The value is a Unix timestamp (UTC), in seconds. |
| MatchedHost | String | a.aliyun.com | The domain name or IP address to which the API belongs. |
| ApiFormat | String | /api/users/login | The API path. |
| EventLevel | String | medium | The event level. |
| EventTag | String | ObtainSensitiveUnauthorized | The event type. |
| UserStatus | String | Confirmed | The event status. |
| Origin | String | custom | The source of the event type. |
| ApiTag | String | SendMail | The business purpose of the API. |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
62382992-F9AA-52B2-9147-66B3B9E51D74 |
Examples
Success response
JSON format
{
"RequestId": "62382992-F9AA-52B2-9147-66B3B9E51D74"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.