Saves the configurations of a custom security report.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
yundun-sas:SaveCustomizeReportConfig | create |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
ReportId | long | No | The ID of the report. Note
You can call the DescribeCustomizeReportList operation to query the ID.
| 123 |
ReportType | integer | Yes | The type of the report. Valid values:
| 4 |
Title | string | Yes | The title of the report. | Daily Report |
ReportSendType | integer | No | The time range in which the report is sent. Valid values:
| 2 |
ReportStartDate | string | No | The start date on which the report is sent. The value is in the yyyy-MM-dd format. Note
This parameter is required if the ReportType parameter is set to 3.
| 2024-01-01 |
ReportEndDate | string | No | The end date on which the report is sent. The value is in the yyyy-MM-dd format. Note
This parameter is required if the ReportType parameter is set to 3.
| 2024-01-15 |
Recipients | string | Yes | The email address of the recipient. Separate multiple email addresses with commas (,). | xxx@163.com |
ReportStatus | integer | Yes | The status of the report. Valid values:
| 1 |
ReportLang | string | No | The language of the report. Default value: zh. Valid values:
| zh |
SendEndTime | string | No | The end time at which the report is sent. The value is in the HH:mm:ss format. Note
This parameter is required if the ReportType parameter is set to 0, 1, 2, or 4.
| 10:00:00 |
SendStartTime | string | No | The start time at which the report is sent. The value is in the HH:mm:ss format. Note
This parameter is required if the ReportType parameter is set to 0, 1, 2, or 4.
| 09:00:00 |
PinnedTime | long | No | The time when the report is pinned. Unit: milliseconds. Note
This parameter is supported only in version 2.0.0.
| 1717430400000 |
ReportDays | integer | No | The most recent days for report statistics. Note
This parameter is supported only in version 2.0.0.
| 7 |
SendPeriodType | string | No | The interval at which the report is sent. Valid values:
Note
This parameter is supported only in version 2.0.0.
| MONTH |
SendPeriodDays | integer | No | The exact day within the sending period. Note
This parameter is supported only in version 2.0.0.
| 12 |
TargetUids | string | No | The ID of the Alibaba Cloud account. Separate multiple IDs with commas (,). Note
This parameter is supported only in version 2.0.0.
| 12,123 |
GroupType | string | No | The grouping type. Valid values:
Note
This parameter is supported only in version 2.0.0.
| SAS_GROUP |
TargetGroups | string | No | The groups. Note
This parameter is supported only in version 2.0.0.
| 12,123 |
ReportVersion | string | No | The version of the report. Valid values:
| 2.0.0 |
Response parameters
Examples
Sample success responses
JSON
format
{
"ReportId": 123,
"RequestId": "11472B29-1A1C-5D7F-944B-7CD84319****"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | IllegalParam | Illegal param | - |
403 | NoPermission | caller has no permission | You are not authorized to do this operation. |
500 | ServerError | ServerError | - |
For a list of error codes, visit the Service error codes.