Details on the various actions that can be performed on the
Resource Job resource, including the expected
parameters and the potential responses.
Marks a specific resource job execution for cancellation
result = client.resource_job.cancel_execution(
applicationId=my_application_id,
resourceJobId=my_resource_job_id,
executionId=my_execution_id)
print(result)
The client must be configured with a valid api access token to call this
action. The token must include at least one of the following scopes:
all.Application, all.Organization, all.User, resourceJob.*, or resourceJob.cancelExecution.
| Name |
Type |
Required |
Description |
Default |
Example |
| applicationId |
string |
Y |
ID associated with the application |
|
575ec8687ae143cd83dc4a97 |
| resourceJobId |
string |
Y |
ID associated with the resource job |
|
575ec8687ae143cd83dc4a97 |
| executionId |
undefined |
Y |
The ID of the execution to cancel |
|
632e18632f59592e773a4153 |
| losantdomain |
string |
N |
Domain scope of request (rarely needed) |
|
example.com |
| Code |
Type |
Description |
| 200 |
Success |
If the execution was successfully marked for cancellation |
| Code |
Type |
Description |
| 400 |
Error |
Error if malformed request |
| 404 |
Error |
Error if execution was not found |
Deletes a resource job
result = client.resource_job.delete(
applicationId=my_application_id,
resourceJobId=my_resource_job_id)
print(result)
The client must be configured with a valid api access token to call this
action. The token must include at least one of the following scopes:
all.Application, all.Organization, all.User, resourceJob.*, or resourceJob.delete.
| Name |
Type |
Required |
Description |
Default |
Example |
| applicationId |
string |
Y |
ID associated with the application |
|
575ec8687ae143cd83dc4a97 |
| resourceJobId |
string |
Y |
ID associated with the resource job |
|
575ec8687ae143cd83dc4a97 |
| includeWorkflows |
string |
N |
If the workflows that trigger from this resource job should also be deleted. |
|
true |
| losantdomain |
string |
N |
Domain scope of request (rarely needed) |
|
example.com |
| Code |
Type |
Description |
| 200 |
Success |
If resource job was successfully deleted |
| Code |
Type |
Description |
| 400 |
Error |
Error if malformed request |
| 404 |
Error |
Error if resource job was not found |
Queues the execution of a resource job
result = client.resource_job.execute(
applicationId=my_application_id,
resourceJobId=my_resource_job_id,
executionOptions=my_execution_options)
print(result)
The client must be configured with a valid api access token to call this
action. The token must include at least one of the following scopes:
all.Application, all.Organization, all.User, resourceJob.*, or resourceJob.execute.
| Name |
Type |
Required |
Description |
Default |
Example |
| applicationId |
string |
Y |
ID associated with the application |
|
575ec8687ae143cd83dc4a97 |
| resourceJobId |
string |
Y |
ID associated with the resource job |
|
575ec8687ae143cd83dc4a97 |
| executionOptions |
Resource Job Execution Options |
Y |
The options for the execution |
|
Resource Job Execution Options Example |
| losantdomain |
string |
N |
Domain scope of request (rarely needed) |
|
example.com |
| Code |
Type |
Description |
| 400 |
Error |
Error if malformed request |
| 404 |
Error |
Error if resource job was not found |
Returns a resource job
result = client.resource_job.get(
applicationId=my_application_id,
resourceJobId=my_resource_job_id)
print(result)
The client must be configured with a valid api access token to call this
action. The token must include at least one of the following scopes:
all.Application, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.read, resourceJob.*, or resourceJob.get.
| Name |
Type |
Required |
Description |
Default |
Example |
| applicationId |
string |
Y |
ID associated with the application |
|
575ec8687ae143cd83dc4a97 |
| resourceJobId |
string |
Y |
ID associated with the resource job |
|
575ec8687ae143cd83dc4a97 |
| losantdomain |
string |
N |
Domain scope of request (rarely needed) |
|
example.com |
| Code |
Type |
Description |
| 200 |
Resource Job |
A single resource job |
| Code |
Type |
Description |
| 400 |
Error |
Error if malformed request |
| 404 |
Error |
Error if application was not found |
Retrieves information on resource job executions
result = client.resource_job.logs(
applicationId=my_application_id,
resourceJobId=my_resource_job_id)
print(result)
The client must be configured with a valid api access token to call this
action. The token must include at least one of the following scopes:
all.Application, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.read, resourceJob.*, or resourceJob.logs.
| Name |
Type |
Required |
Description |
Default |
Example |
| applicationId |
string |
Y |
ID associated with the application |
|
575ec8687ae143cd83dc4a97 |
| resourceJobId |
string |
Y |
ID associated with the resource job |
|
575ec8687ae143cd83dc4a97 |
| limit |
string |
N |
Max log entries to return (ordered by time descending) |
1 |
10 |
| since |
string |
N |
Look for log entries since this time (ms since epoch) |
|
1465790400000 |
| losantdomain |
string |
N |
Domain scope of request (rarely needed) |
|
example.com |
| Code |
Type |
Description |
| 400 |
Error |
Error if malformed request |
| 404 |
Error |
Error if resource job was not found |
Update a resource job
result = client.resource_job.patch(
applicationId=my_application_id,
resourceJobId=my_resource_job_id,
resourceJob=my_resource_job)
print(result)
The client must be configured with a valid api access token to call this
action. The token must include at least one of the following scopes:
all.Application, all.Organization, all.User, resourceJob.*, or resourceJob.patch.
| Name |
Type |
Required |
Description |
Default |
Example |
| applicationId |
string |
Y |
ID associated with the application |
|
575ec8687ae143cd83dc4a97 |
| resourceJobId |
string |
Y |
ID associated with the resource job |
|
575ec8687ae143cd83dc4a97 |
| resourceJob |
Resource Job Patch |
Y |
The new resource job configuration |
|
Resource Job Patch Example |
| losantdomain |
string |
N |
Domain scope of request (rarely needed) |
|
example.com |
| Code |
Type |
Description |
| 201 |
Resource Job |
Successfully updated resource job |
| Code |
Type |
Description |
| 400 |
Error |
Error if malformed request |
| 404 |
Error |
Error if resource job was not found |