All Products
Search
Document Center

Security Center:SaveCustomizeReportConfig

Last Updated:Aug 30, 2024

Saves the configurations of a custom security report.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

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.
OperationAccess levelResource typeCondition keyAssociated operation
yundun-sas:SaveCustomizeReportConfigcreate
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
ReportIdlongNo

The ID of the report.

Note You can call the DescribeCustomizeReportList operation to query the ID.
123
ReportTypeintegerYes

The type of the report. Valid values:

  • 0: daily report.
  • 1: weekly report.
  • 2: monthly report.
  • 3: report whose statistics are collected within a custom time range.
  • 4: report of the most recent time range.
4
TitlestringYes

The title of the report.

Daily Report
ReportSendTypeintegerNo

The time range in which the report is sent. Valid values:

  • 1: 00:00 to 06:00.
  • 2: 06:00 to 12:00.
  • 3: 12:00 to 18:00.
  • 4: 18:00 to 24:00.
2
ReportStartDatestringNo

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
ReportEndDatestringNo

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
RecipientsstringYes

The email address of the recipient. Separate multiple email addresses with commas (,).

xxx@163.com
ReportStatusintegerYes

The status of the report. Valid values:

  • 0: disabled.
  • 1: enabled.
1
ReportLangstringNo

The language of the report. Default value: zh. Valid values:

  • zh: Chinese
  • en: English
zh
SendEndTimestringNo

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
SendStartTimestringNo

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
PinnedTimelongNo

The time when the report is pinned. Unit: milliseconds.

Note This parameter is supported only in version 2.0.0.
1717430400000
ReportDaysintegerNo

The most recent days for report statistics.

Note This parameter is supported only in version 2.0.0.
7
SendPeriodTypestringNo

The interval at which the report is sent. Valid values:

  • DAY
  • WEEK
  • MONTH
Note This parameter is supported only in version 2.0.0.
MONTH
SendPeriodDaysintegerNo

The exact day within the sending period.

Note This parameter is supported only in version 2.0.0.
12
TargetUidsstringNo

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
GroupTypestringNo

The grouping type. Valid values:

  • ALIYUN_RG
  • SAS_GROUP
Note This parameter is supported only in version 2.0.0.
SAS_GROUP
TargetGroupsstringNo

The groups.

Note This parameter is supported only in version 2.0.0.
12,123
ReportVersionstringNo

The version of the report. Valid values:

  • 1.0.0
  • 2.0.0
2.0.0

Response parameters

ParameterTypeDescriptionExample
object
ReportIdlong

The ID of the report.

123
RequestIdstring

The request ID.

11472B29-1A1C-5D7F-944B-7CD84319****

Examples

Sample success responses

JSONformat

{
  "ReportId": 123,
  "RequestId": "11472B29-1A1C-5D7F-944B-7CD84319****"
}

Error codes

HTTP status codeError codeError messageDescription
400IllegalParamIllegal param-
403NoPermissioncaller has no permissionYou are not authorized to do this operation.
500ServerErrorServerError-

For a list of error codes, visit the Service error codes.