Create package execution
Create a new
CylanceOPTICS
package execution resource for a specific tenant, which triggers a package to execute on the device or on devices in a specific zone.Service Endpoint | /packages/v2/executions |
Optional query string parameters | — |
Example | https://protectapi.cylance.com/packages/v2/executions |
Method | HTTP/1.1 POST |
Request headers |
|
Notes |
|
Request
Request with device ID and destination local:
{ "execution": { "name": "Package Execution", "target": { "devices": [ "E378DACB9324453AB8C65A8406952195" ] }, "destination": "", "packageExecutions": [ { "arguments": [ "-browser ALL" ], "package": "61d8944e-d900-4724-87eb-d10078b90a41" } ], "keepResultsLocally": true } }
Request with zone ID and destination FTP:
{ "execution": { "name": "Package Execution", "target": { "devices": [ "E378DACB9324453AB8C65A8406952195" ] }, "destination": "", "packageExecutions": [ { "arguments": [ "-browser ALL" ], "package": "61d8944e-d900-4724-87eb-d10078b90a41" } ], "keepResultsLocally": true } }
Response
Please see the Response status codes for more information.
Request JSON schema
Field Name | Description |
---|---|
destination | This is the FTP, SFTP, or SAMBA URL for saving the results. If saving the results to the local disk drive, leave this empty (""). |
keepResultsLocally | This is the setting to save the results to the local disk drive. If true, the results are saved to file://[Cylance Data Directory]/Optics. |
name | This is the name of the execution. |
packageExecutions | This is the list of packages to execute.
|
target | These are the devices or zones to execute the packages against.
Target devices only or zones only per request, not both. Device IDs and zone IDs must be uppercase letters and no hyphens. |
Response JSON schema
Field Name | Description |
---|---|
createdAt | This is the date and time (in UTC) when the execution was requested. |
createdBy | This is the user who requested the execution.
|
destination | This is the FTP, SFTP, or SAMBA URL for saving the results. |
deviceCount | This is the number of online devices at the moment the package execution request was made. |
deviceStatuses | These are the statuses of the package executions on the devices.
|
id | This is the ID of the execution resource. |
keepResultsLocally | This is the setting to save the results to the local disk drive. If true, the results are saved to file//[Cylance Data Directory]/Optics. |
name | This is the name of the execution. |
packageExecutions | This is the list of packages to execute.
|
target | These are the devices and/or zones to execute the packages against.
|