Add Report Config
POST/report
This endpoint has been deprecated and may be replaced or removed in future versions of the API.
Creates a compliance report generation configuration based on the specified parameters. Report generation can be either one-time or recurring.
Replacement Endpoint: Add Report Config V2
You can use the body parameters to specify whether the report is a one-time report or a recurring report. Specify a recurring report by providing a valid target.schedule body parameter.
Request
- application/json; charset=UTF-8
Body
required
Model for report generation configuration
- RelativeTimeRangeConfigModel
- AbsoluteTimeRangeConfigModel
- ToNowTimeRangeConfigModel
Possible values: [aws
, azure
, gcp
, alibaba_cloud
, oci
]
Cloud type
Locale of caller (e.g. en_us, jp). Default is en_us.
Report name
target object
Model for report target
List of cloud account groups
List of cloud accounts
List of compliance Standard IDs
Business unit detailed report compression enabled
True = download now
List of email addresses to receive notification
List of regions
Recurring report schedule in RRULE format
Report scheduling enabled
timeRange object required
See the Time Range Model for details.
Possible values: [BACKWARD
, FORWARD
]
Direction in which to count time. Default = BACKWARD
value objectrequired
Model for RelativeTimeDuration
Number of time units
Possible values: [minute
, hour
, day
, week
, month
, year
]
Time unit
value objectrequired
Model for Time
End timestamp
Start timestamp
Possible values: [MINUTE
, HOUR
, DAY
, WEEK
, MONTH
, YEAR
, EPOCH
, LOGIN
]
Time range object
Possible values: [COMPLIANCE
, RIS
, INVENTORY_OVERVIEW
, INVENTORY_DETAIL
]
Report type. Default is COMPLIANCE.
Responses
- 200
- 400
successful operation
- application/json; charset=UTF-8
- Schema
- Example (from schema)
Schema
- RelativeTimeRangeConfigModel
- AbsoluteTimeRangeConfigModel
- ToNowTimeRangeConfigModel
Possible values: [aws
, azure
, gcp
, alibaba_cloud
, oci
]
Cloud type
Compliance Standard Deleted
Compliance standard ID
counts object
Model for compliance aggregate count
Number of critical-severity failures
Failed
Number of high-severity failures
Number of informational-severity failures
Number of low-severity failures
Number of medium-severity failures
Passed
Total
User who created this report
Report created on this timestamp
Report ID
Last modified by
Timestamp of last modification
Timestamp of last generated report
Locale of caller (e.g. en_us, jp). Default is en_us.
Report name
Timestamp of next scheduled report
Report generation status
target object
Model for report target
List of cloud account groups
List of cloud accounts
List of compliance Standard IDs
Business unit detailed report compression enabled
True = download now
Notification template id
List of email addresses to receive notification
List of regions
Recurring report schedule in RRULE format
Report scheduling enabled
timeRange object required
See the Time Range Model for details.
Possible values: [BACKWARD
, FORWARD
]
Direction in which to count time. Default = BACKWARD
value objectrequired
Model for RelativeTimeDuration
Number of time units
Possible values: [minute
, hour
, day
, week
, month
, year
]
Time unit
value objectrequired
Model for Time
End timestamp
Start timestamp
Possible values: [MINUTE
, HOUR
, DAY
, WEEK
, MONTH
, YEAR
, EPOCH
, LOGIN
]
Time range object
Total number of reports for the report ID
Possible values: [COMPLIANCE
, RIS
, INVENTORY_OVERVIEW
, INVENTORY_DETAIL
]
Report type. Default is COMPLIANCE.
{
"cloudType": "aws",
"complianceStandardDeleted": true,
"complianceStandardId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"counts": {
"criticalSeverityFailed": 0,
"failed": 0,
"highSeverityFailed": 0,
"informationalSeverityFailed": 0,
"lowSeverityFailed": 0,
"mediumSeverityFailed": 0,
"passed": 0,
"total": 0
},
"createdBy": "string",
"createdOn": 0,
"id": "string",
"lastModifiedBy": "string",
"lastModifiedOn": 0,
"lastScheduled": 0,
"locale": "string",
"name": "string",
"nextSchedule": 0,
"status": "string",
"target": {
"accountGroups": [
"string"
],
"accounts": [
"string"
],
"complianceStandardIds": [
"string"
],
"compressionEnabled": true,
"downloadNow": true,
"notificationTemplateId": "string",
"notifyTo": [
"string"
],
"regions": [
"string"
],
"schedule": "string",
"scheduleEnabled": true,
"timeRange": {
"relativeTimeType": "BACKWARD",
"type": "relative",
"value": {
"amount": 0,
"unit": "minute"
}
}
},
"totalInstanceCount": 0,
"type": "COMPLIANCE"
}
missing_required_parameter / invalid_parameter_value