All URIs are relative to /
Method | HTTP request | Description |
---|---|---|
ActivateWorkloadPolicy | Post /run/workloadpolicy/{policy}/activate | activate workload policy |
AddEvent | Post /run/event/{server} | Add a new event. |
AddResource | Post /run/resource/{server} | Add a new pool resource. |
ConfirmJob | Post /run/job/{jobId}/confirm | confirm a job |
DeactivateWorkloadPolicy | Post /run/workloadpolicy/{policy}/deactivate | deactivate a workload policy |
DeleteEvent | Delete /run/event/{server}/{name}/{date} | Delete a event. |
DeleteJob | Post /run/job/{jobId}/delete | mark job as deleted |
DeleteResource | Delete /run/resource/{server}/{name} | Delete a pool resource. |
FreeJob | Post /run/job/{jobId}/free | free an already held the job |
GetActiveJob | Get /run/job/{jobId}/get | get active job |
GetActiveServices | Get /run/services/sla | Get SLA active services |
GetEvents | Get /run/events | Get all events records for specific search. |
GetJobLog | Get /run/job/{jobId}/log | Get job's log |
GetJobOutput | Get /run/job/{jobId}/output | Get job output |
GetJobStatistics | Get /run/job/{jobId}/statistics | Get job statistics |
GetJobStatus | Get /run/job/{jobId}/status | Get status of a job |
GetJobsStatus | Get /run/status/{runId} | Get status of running jobs |
GetJobsStatusByFilter | Get /run/jobs/status | Get jobs that match the search criteria. |
GetResources | Get /run/resources | Get all resources records matching search. |
GetWaitingInfo | Get /run/job/{jobId}/waitingInfo | get job's waiting information |
GetWorkloadPolicies | Get /run/workloadpolicies | get workload policies |
HoldJob | Post /run/job/{jobId}/hold | hold the job so it will not start untill it is freed |
KillJob | Post /run/job/{jobId}/kill | Cancel running job |
ModifyJob | Post /run/job/{jobId}/modify | Modify active job |
OrderJobsInFolder | Post /run/order | Execute requested jobs in certain folder |
RerunJob | Post /run/job/{jobId}/rerun | Run job again |
RunJobs | Post /run | Run jobs |
RunNow | Post /run/job/{jobId}/runNow | Bypass scheduling cretirias and start the job |
SetToOK | Post /run/job/{jobId}/setToOk | set job end status to OK |
UndeleteJob | Post /run/job/{jobId}/undelete | recover a mark for deletion job |
UpdateAlert | Post /run/alerts | Update alert. |
UpdateAlertStatus | Post /run/alerts/status | Update alert status. |
UpdateResource | Post /run/resource/{server}/{name} | Update a pool resource. |
WorkloadPolicyStateList ActivateWorkloadPolicy(ctx, policy, optional) activate workload policy
Activate a workload policy, supports wildcard in names
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
policy | string | The policy name to be activated. Case sensitive. Wildcards can be used. | |
optional | *RunApiActivateWorkloadPolicyOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a RunApiActivateWorkloadPolicyOpts struct
Name | Type | Description | Notes |
---|
ctm | optional.String| Optional Control-M Server filter. | server | optional.String| Optional Control-M Server filter. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SuccessData AddEvent(ctx, body, server) Add a new event.
Add a new event. date may be of format MMDD, ODAT to set current controlm date, STAT to set no date. default value is ODAT.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
body | EventParam | The defined event name. | |
server | string | The Control-M Server hosting the event. |
- Content-Type: /
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SuccessData AddResource(ctx, body, server) Add a new pool resource.
Add a new pool resource.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
body | ResourceParam | The defined resource name. | |
server | string | The Control-M Server hosting the resource. |
- Content-Type: /
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SuccessData ConfirmJob(ctx, jobId) confirm a job
confirm a job that waits for confirmation
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
jobId | string | The job ID |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
WorkloadPolicyStateList DeactivateWorkloadPolicy(ctx, policy, optional) deactivate a workload policy
Deactivate a workload policy, supports wildcard in names
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
policy | string | The policy name to be deactivated. Case sensitive. Wildcards can be used. | |
optional | *RunApiDeactivateWorkloadPolicyOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a RunApiDeactivateWorkloadPolicyOpts struct
Name | Type | Description | Notes |
---|
ctm | optional.String| Optional Control-M Server filter. | server | optional.String| Optional Control-M Server filter. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SuccessData DeleteEvent(ctx, server, name, date) Delete a event.
Delete a event.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
server | string | The Control-M Server hosting the event. | |
name | string | event name | |
date | string | event date |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SuccessData DeleteJob(ctx, jobId) mark job as deleted
mark delete as deleted
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
jobId | string | The job ID |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SuccessData DeleteResource(ctx, server, name) Delete a pool resource.
Delete a pool resource.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
server | string | The Control-M Server hosting the resource. | |
name | string | Resource name |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SuccessData FreeJob(ctx, jobId) free an already held the job
free the job
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
jobId | string | The job ID |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
string GetActiveJob(ctx, jobId) get active job
get the active job's data by job's order ID
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
jobId | string | The job ID |
string
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ActiveServices GetActiveServices(ctx, ) Get SLA active services
Get all SLA active services
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]Event GetEvents(ctx, optional) Get all events records for specific search.
Get all events records for specific search.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
optional | *RunApiGetEventsOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a RunApiGetEventsOpts struct
Name | Type | Description | Notes |
---|---|---|---|
ctm | optional.String | Control-M Server filter. | |
server | optional.String | Control-M Server filter. | |
name | optional.String | The event name filter. | |
date | optional.String | The event date filter. | |
limit | optional.Int64 | maximum events to fetch (default 1000). | [default to 1000] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
string GetJobLog(ctx, jobId) Get job's log
Get the job execution log.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
jobId | string | The job ID |
string
- Content-Type: Not defined
- Accept: application/json, text/plain
[Back to top] [Back to API list] [Back to Model list] [Back to README]
string GetJobOutput(ctx, jobId, optional) Get job output
Get the output returned from a job.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
jobId | string | The job ID | |
optional | *RunApiGetJobOutputOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a RunApiGetJobOutputOpts struct
Name | Type | Description | Notes |
---|
runNo | optional.Int64| The execution number in case of multiple executions (0 will get the last execution's output) | [default to 0]
string
- Content-Type: Not defined
- Accept: application/json, text/plain
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Statistics GetJobStatistics(ctx, jobId) Get job statistics
Get the statistics from a job.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
jobId | string | The job ID |
- Content-Type: Not defined
- Accept: application/json, text/plain
[Back to top] [Back to API list] [Back to Model list] [Back to README]
JobRunStatus GetJobStatus(ctx, jobId) Get status of a job
Get the job status.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
jobId | string | Job ID returned from the run status action. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
JobStatusResult GetJobsStatus(ctx, runId, optional) Get status of running jobs
Run status of jobs started with the Run service.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
runId | string | Run ID returned from the run action. | |
optional | *RunApiGetJobsStatusOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a RunApiGetJobsStatusOpts struct
Name | Type | Description | Notes |
---|
startIndex | optional.Int64| The index of the job status from which to start. returning results | [default to 0]
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
JobStatusResult GetJobsStatusByFilter(ctx, optional) Get jobs that match the search criteria.
Get status of jobs that match the requested search criteria.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
optional | *RunApiGetJobsStatusByFilterOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a RunApiGetJobsStatusByFilterOpts struct
Name | Type | Description | Notes |
---|---|---|---|
limit | optional.Int64 | maximum jobs status to fetch (default 1000). | [default to 1000] |
jobname | optional.String | ||
ctm | optional.String | ||
server | optional.String | ||
application | optional.String | ||
subApplication | optional.String | ||
host | optional.String | ||
status | optional.String | ||
folder | optional.String | ||
description | optional.String | ||
jobid | optional.String | ||
neighborhood | optional.String | ||
depth | optional.Int32 | ||
direction | optional.String | ||
orderDateFrom | optional.String | ||
orderDateTo | optional.String | ||
fromTime | optional.String | ||
toTime | optional.String | ||
folderLibrary | optional.String | ||
hostGroup | optional.String | ||
runAs | optional.String | ||
command | optional.String | ||
filePath | optional.String | ||
fileName | optional.String | ||
workloadPolicy | optional.String | ||
ruleBasedCalendar | optional.String | ||
resourceMutex | optional.String | ||
resourceSemaphore | optional.String | ||
resourceLock | optional.String | ||
resourcePool | optional.String | ||
held | optional.Bool | ||
folderHeld | optional.Bool | ||
cyclic | optional.Bool | ||
deleted | optional.Bool |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]ResourceObj GetResources(ctx, optional) Get all resources records matching search.
Get all resources records matching search.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
optional | *RunApiGetResourcesOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a RunApiGetResourcesOpts struct
Name | Type | Description | Notes |
---|---|---|---|
ctm | optional.String | Control-M Server filter. | |
server | optional.String | Control-M Server filter. | |
name | optional.String | The resource name filter. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]string GetWaitingInfo(ctx, jobId) get job's waiting information
get the reason why the job is in waiting status
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
jobId | string | The job ID |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
WorkloadPolicyList GetWorkloadPolicies(ctx, optional) get workload policies
Get all the workload policies.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
optional | *RunApiGetWorkloadPoliciesOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a RunApiGetWorkloadPoliciesOpts struct
Name | Type | Description | Notes |
---|---|---|---|
state | optional.String | Optionally state filter. Available values Active, Inactive |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SuccessData HoldJob(ctx, jobId) hold the job so it will not start untill it is freed
hold the job
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
jobId | string | The job ID |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SuccessData KillJob(ctx, jobId) Cancel running job
Abort job execution.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
jobId | string | The job ID |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SuccessData ModifyJob(ctx, jobDefinitionsFile, jobId) Modify active job
Modify active job, specified by order id according to given definitions file (JSON).
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
jobDefinitionsFile | os.Fileos.File | ||
jobId | string | The job ID |
- Content-Type: multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RunResult OrderJobsInFolder(ctx, optional) Execute requested jobs in certain folder
Run jobs from selected folder according to given filter
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
optional | *RunApiOrderJobsInFolderOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a RunApiOrderJobsInFolderOpts struct
Name | Type | Description | Notes |
---|---|---|---|
body | optional.Interface of OrderFolderParameters | parameters to select the jobs to run |
- Content-Type: /
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
JobRunStatus RerunJob(ctx, jobId, optional) Run job again
Run an already executed job (again).
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
jobId | string | The job ID | |
optional | *RunApiRerunJobOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a RunApiRerunJobOpts struct
Name | Type | Description | Notes |
---|
body | optional.Interface of RerunParameters| The JSON file with the restart configuration and parameters |
- Content-Type: /
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RunResult RunJobs(ctx, jobDefinitionsFile, deployDescriptorFile, additionalConfiguration) Run jobs
Run jobs according to given definitions file (JSON or zip).
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
jobDefinitionsFile | os.Fileos.File | ||
deployDescriptorFile | os.Fileos.File | ||
additionalConfiguration | os.Fileos.File |
- Content-Type: multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SuccessData RunNow(ctx, jobId) Bypass scheduling cretirias and start the job
start a job immediately
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
jobId | string | The job ID |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SuccessData SetToOK(ctx, jobId) set job end status to OK
set job status to OK, post processing action
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
jobId | string | The job ID |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SuccessData UndeleteJob(ctx, jobId) recover a mark for deletion job
recover a mark for deletion job
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
jobId | string | The job ID |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SuccessData UpdateAlert(ctx, body) Update alert.
Update alert.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
body | AlertParam | File that contains the alert propery that want to be update. |
- Content-Type: /
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SuccessData UpdateAlertStatus(ctx, body) Update alert status.
Update alert status.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
body | AlertStatusParam | File that contains the alert status propery that want to be update. |
- Content-Type: /
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SuccessData UpdateResource(ctx, body, server, name) Update a pool resource.
Update a pool resource.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
body | ResourceMax | The defined resource name. | |
server | string | The Control-M Server hosting the resource. | |
name | string | Resource name |
- Content-Type: /
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]