Create a Retro Scan Job
Use this endpoint to create retro scan jobs.
https://<tenant-name>.goskope.com/api/v1/retro_scan/?token=<token>&op=create
Valid parameters include:
Key | Type | Value | Description |
---|---|---|---|
| string |
| Required. Operation performed. |
| string | Ex: | Required. Scan name must be different than existing scan job names. |
| string | Ex: | Required. Policy name must be an existing policy name. |
| string | Ex: | Optional. Start time used to restrict scan based on object timestamp. If start time is null and end time is provided, all objects created before the end time will be scanned. |
| string | Ex: | Optional. End time used to restrict scan based on object timestamp. If end time is null and start time is provided, all objects created after the start time will be scanned. |
| array of strings | Ex: | Optional. Used to further restrict scan by account name. Account names entered must be of the provided policy. |
| object |
| Details for email notification. |
POST 'https://<tenant>/api/v1/retro_scan?token=xxx&op=create' \ --header 'Content-Type: application/json' \ --data-raw '{ "scan_name": "Scan12", "policy_name": "retroscan", "object_scan_start_time_gmt": "2020-04-01 06:30:46AM", "object_scan_end_time_gmt": "2020-04-02 06:30:46AM", "account_names": ["Account1", "Account2"], "notify": { "interval": "30", "to_users": [ "admin" ], "emails": [ "abc@netskope.com" ], "from_user": "abc@netskope.com" } }'