Skip to content

Commit a84cead

Browse files
author
cibot
committed
Definitions Update scan_scheduler
1 parent 128e500 commit a84cead

File tree

2 files changed

+292
-194
lines changed

2 files changed

+292
-194
lines changed

alsdkdefs/apis/scan_scheduler/api/scan_scheduler.v2.html

Lines changed: 173 additions & 193 deletions
Large diffs are not rendered by default.

alsdkdefs/apis/scan_scheduler/scan_scheduler.v2.yaml

Lines changed: 119 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,39 @@ paths:
484484
by the API. If no `return_fields` parameter is specified the entire `ScheduleSummary`
485485
object will be returned.
486486
required: false
487+
488+
'/scheduler/v2/{account_id}/{deployment_id}/scan_intervals':
489+
get:
490+
summary: Returns a list of schedules along with respective scan intervals
491+
tags: [Scan Intervals]
492+
responses:
493+
'200':
494+
description: OK
495+
content:
496+
application/json:
497+
schema:
498+
$ref: '#/components/schemas/DeploymentScanScheduleIntervals'
499+
'404':
500+
description: Deployment or account not found
501+
operationId: get_scan_intervals
502+
description: Returns a list of scan intervals for all schedules in the deployment.
503+
security:
504+
- X-AIMS-Auth-Token: []
505+
parameters:
506+
- name: account_id
507+
schema:
508+
type: string
509+
in: path
510+
required: true
511+
- name: deployment_id
512+
schema:
513+
type: string
514+
format: uuid
515+
in: path
516+
required: true
517+
518+
519+
487520

488521
components:
489522
schemas:
@@ -531,6 +564,11 @@ components:
531564
description: |-
532565
Timestamp describing the next planned scan execution within the scope of
533566
the schedule.
567+
scan_speed_avg:
568+
type: number
569+
format: float
570+
description: |-
571+
Average scan speed measured in [number of assets per hour]
534572
status:
535573
type: string
536574
enum:
@@ -1441,11 +1479,91 @@ components:
14411479
- typically_vulnerable
14421480
- all
14431481
example: typically_vulnerable
1444-
1482+
1483+
DeploymentScanScheduleIntervals:
1484+
title: DeploymentScanScheduleIntervals
1485+
description: Containes a list of scan schedules in the deployment along
1486+
with their respective scan intervals
1487+
type: array
1488+
items:
1489+
allOf:
1490+
- $ref: '#/components/schemas/DeploymentScanScheduleInterval'
1491+
1492+
DeploymentScanScheduleInterval:
1493+
title: DeploymentScanScheduleInterval
1494+
description: Contains a list of scan intervals for the given schedule id
1495+
type: object
1496+
readOnly: true
1497+
properties:
1498+
id:
1499+
type: string
1500+
format: uuid
1501+
readOnly: true
1502+
name:
1503+
type: string
1504+
example: My Advanced Internal Scan Schedule 01
1505+
scan_intervals:
1506+
type: array
1507+
items:
1508+
allOf:
1509+
- $ref: '#/components/schemas/ScanScheduleInterval'
1510+
1511+
ScanScheduleInterval:
1512+
title: ScanScheduleInterval
1513+
description: Provides information regarding Scan Schedule's interval during which
1514+
the particular scan occurred. Grouping scans by schedule id and scan interval
1515+
id allows to associate all vulnerability scans which occurred during
1516+
a particular interval. The object contains information whether the interval
1517+
is open (active) or closed (no loger active).
1518+
type: object
1519+
readOnly: true
1520+
properties:
1521+
id:
1522+
description: |-
1523+
Identifier of scan interval. It is only unique in the scope of a schedule.
1524+
To group consecutive scans belonging to the same schedule and interval,
1525+
the tuple: {schedule_id, scan_interval_id} should be used.
1526+
type: string
1527+
example: "v1-2024-w1"
1528+
description:
1529+
description: |-
1530+
Human readable description of the interval. Can be used to name individual
1531+
reports in each of the intervals.
1532+
type: string
1533+
example:
1534+
"2024-01-22 08:00"
1535+
1536+
open:
1537+
description: |-
1538+
Allows to determine whether the scan interval is active or not.
1539+
When open is `false` it means there should be no more scans during this
1540+
scanning window.
1541+
type: boolean
1542+
timezone:
1543+
description: |-
1544+
Describes time zone to which `starts_on` and `ends_on` timestamps
1545+
are relative.
1546+
type: string
1547+
example: "Europe/Belfast"
1548+
starts_on:
1549+
description: |-
1550+
ISO timestamp describing when the scan interval starts.
1551+
type: string
1552+
example: "2024.01.22T08:00:00"
1553+
ends_on:
1554+
description: |-
1555+
ISO timestamp describing when the scan interval stops.
1556+
After that date/time scans will not be started upon the current interval.
1557+
Note, scans started in the interval may end later than `ends_on`
1558+
timestamp specifies, the system starts scans UNTIL the last scan window
1559+
of the current interval is open.
1560+
type: string
1561+
example: "2024.01.26T16:00:00"
14451562

14461563
securitySchemes:
14471564
X-AIMS-Auth-Token:
14481565
name: X-AIMS-Auth-Token
14491566
type: apiKey
14501567
in: header
14511568
description: AIMS Authentication Token
1569+

0 commit comments

Comments
 (0)