Creates a task to export API security data.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-waf:CreateApiExport |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the WAF instance. Note
Call the DescribeInstance operation to obtain the ID of the current WAF instance. |
waf-cn-zxu3*** |
| Region |
string |
No |
The language of the response. 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 for the export task, which are used to filter the exported content. The value is a JSON object that is converted to a string. Note
The parameters vary based on the specified export task type (Type). For more information, see Export task parameters. |
{ "startTime": 1741449600, "endTime": 1744079820, "sensitiveLevel": "L1" } |
| ClusterId |
string |
No |
The ID of the hybrid cloud cluster. Note
This parameter applies only to hybrid cloud scenarios. Call the DescribeHybridCloudClusters operation to obtain information about hybrid cloud clusters. |
993 |
| RegionId |
string |
No |
The region of the WAF instance. Valid values:
|
cn-hangzhou |
| ResourceManagerResourceGroupId |
string |
No |
The ID of the Alibaba Cloud resource group. |
rg-acfm***q |
Export task parameters
API asset task (apisec_api)
Parameters
For details about the parameter values, see the corresponding parameters in the DescribeApisecApiResources operation.
| Name | Type | Example | Description |
| startTime | Integer | 1741449600 | The start time of the query. This value is a UNIX timestamp in seconds. |
| EndTime | Integer | 1744097760 | The end time of the query. This value is a UNIX timestamp in seconds. |
| MatchedHost | String | a.aliyun.com | The domain name or IP address of the API. |
| ApiFormat | String | /auth/login | The API. |
| SensitiveType | String | 1004 | The type of sensitive data in the response. |
| ApiStatus | String | OfflineInterface | The status of the API. |
| Follow | Long | 0 | 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 | Whether the API has an authentication field. |
API threat task (apisec_abnormal)
Parameters
For details about the parameter values, see the corresponding parameters in the DescribeApisecAbnormals operation.
| Name | Type | Example | Description |
| startTime | Integer | 1741449600 | The start time of the query. This value is a UNIX timestamp in seconds. |
| EndTime | Integer | 1744097760 | The end time of the query. This value is a UNIX timestamp in seconds. |
| MatchedHost | String | a.aliyun.com | The domain name or IP address of the API. |
| ApiFormat | String | /api/users/login | The API. |
| AbnormalLevel | String | medium | The threat level. |
| AbnormalTag | String | LackOfSpeedLimit | The threat type. |
| UserStatus | String | Confirmed | The threat status. |
| Origin | String | custom | The source of the threat type. |
| ApiTag | String | SendMail | The business purpose of the API. |
API event task (apisec_event)
Parameters
For details about the parameter values, see the corresponding parameters in the DescribeApisecEvents operation.
| Name | Type | Example | Description |
| StartTs | Integer | 1741449600 | The start time of the query. This value is a UNIX timestamp in seconds. |
| EndTs | Integer | 1744097760 | The end time of the query. This value is a UNIX timestamp in seconds. |
| MatchedHost | String | a.aliyun.com | The domain name or IP address of the API. |
| ApiFormat | String | /api/users/login | The API. |
| 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. |
||
| 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.