java.lang.Object | |
↳ | org.rundeck.api.RundeckClient |
Main entry point to talk to a RunDeck instance.
You have 2 methods for authentication : login-based or token-based. If you want to use the first, you need to provide
both a "login" and a "password". Otherwise, just provide a "token" (also called "auth-token"). See the RunDeck
documentation for generating such a token.
Usage :
// using login-based authentication :
RundeckClient rundeck = new RundeckClient("http://localhost:4440", "admin", "admin");
// or for a token-based authentication :
RundeckClient rundeck = new RundeckClient("http://localhost:4440", "PDDNKo5VE29kpk4prOUDr2rsKdRkEvsD");
List<RundeckProject> projects = rundeck.getProjects();
RundeckJob job = rundeck.findJob("my-project", "main-group/sub-group", "job-name");
RundeckExecution execution = rundeck.triggerJob(job.getId(),
new OptionsBuilder().addOption("version", "1.2.0").toProperties());
List<RundeckExecution> runningExecutions = rundeck.getRunningExecutions("my-project");
rundeck.exportJobsToFile("/tmp/jobs.xml", FileType.XML, "my-project");
rundeck.importJobs("/tmp/jobs.xml", FileType.XML);
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | API_ENDPOINT | End-point of the API | |||||||||
int | API_VERSION | Version of the API supported |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Instantiate a new
RundeckClient for the RunDeck instance at the given url, using token-based
authentication. | |||||||||||
Instantiate a new
RundeckClient for the RunDeck instance at the given url, using login-based
authentication. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Abort an execution (identified by the given ID).
| |||||||||||
Delete a single job, identified by the given ID
| |||||||||||
Export the definition of a single job, identified by the given ID
| |||||||||||
Export the definition of a single job, identified by the given ID
| |||||||||||
Export the definition of a single job (identified by the given ID)
| |||||||||||
Export the definition of a single job (identified by the given ID)
| |||||||||||
Export the definitions of all jobs that belongs to the given project
| |||||||||||
Export the definitions of the jobs that belongs to the given project, and matches the given criteria (jobFilter,
groupPath and jobIds)
| |||||||||||
Export the definitions of all jobs that belongs to the given project
| |||||||||||
Export the definitions of the jobs that belongs to the given project, and matches the given criteria (jobFilter,
groupPath and jobIds)
| |||||||||||
Export the definitions of all jobs that belongs to the given project
| |||||||||||
Export the definitions of the jobs that belongs to the given project, and matches the given criteria (jobFilter,
groupPath and jobIds)
| |||||||||||
Export the definitions of all jobs that belongs to the given project
| |||||||||||
Export the definitions of the jobs that belongs to the given project, and matches the given criteria (jobFilter,
groupPath and jobIds)
| |||||||||||
Find a job, identified by its project, group and name.
| |||||||||||
Get a single execution, identified by the given ID
| |||||||||||
Get the (events) history for the given project
| |||||||||||
Get the (events) history for the given project
| |||||||||||
Get the (events) history for the given project
| |||||||||||
Get the (events) history for the given project
| |||||||||||
Get the (events) history for the given project
| |||||||||||
Get the (events) history for the given project
| |||||||||||
Get the (events) history for the given project
| |||||||||||
Get the (events) history for the given project
| |||||||||||
Get the (events) history for the given project
| |||||||||||
Get the definition of a single job, identified by the given ID
| |||||||||||
Get the executions of the given job
| |||||||||||
Get the executions of the given job
| |||||||||||
Get the executions of the given job
| |||||||||||
Get the executions of the given job
| |||||||||||
Get the executions of the given job
| |||||||||||
List all jobs (for all projects)
| |||||||||||
List all jobs that belongs to the given project
| |||||||||||
List the jobs that belongs to the given project, and matches the given criteria (jobFilter, groupPath and jobIds)
| |||||||||||
Get the definition of a single node
| |||||||||||
List all nodes (for all projects)
| |||||||||||
List all nodes that belongs to the given project
| |||||||||||
List nodes that belongs to the given project
| |||||||||||
Get the definition of a single project, identified by the given name
| |||||||||||
List all projects
| |||||||||||
Get all running executions (for all projects)
| |||||||||||
Get the running executions for the given project
| |||||||||||
Get system informations about the RunDeck server
| |||||||||||
Import the definitions of jobs, from the given input stream
| |||||||||||
Import the definitions of jobs, from the given input stream, using the given behavior
| |||||||||||
Import the definitions of jobs, from the given input stream
| |||||||||||
Import the definitions of jobs, from the given input stream, using the given behavior
| |||||||||||
Import the definitions of jobs, from the given file
| |||||||||||
Import the definitions of jobs, from the given file, using the given behavior
| |||||||||||
Import the definitions of jobs, from the given file
| |||||||||||
Import the definitions of jobs, from the given file, using the given behavior
| |||||||||||
Try to "ping" the RunDeck instance to see if it is alive
| |||||||||||
Run an ad-hoc command, and wait until its execution is finished (or aborted) to return.
| |||||||||||
Run an ad-hoc command, and wait until its execution is finished (or aborted) to return.
| |||||||||||
Run an ad-hoc command, and wait until its execution is finished (or aborted) to return.
| |||||||||||
Run an ad-hoc command, and wait until its execution is finished (or aborted) to return.
| |||||||||||
Run an ad-hoc command, and wait until its execution is finished (or aborted) to return.
| |||||||||||
Run an ad-hoc command, and wait until its execution is finished (or aborted) to return.
| |||||||||||
Run an ad-hoc script, and wait until its execution is finished (or aborted) to return.
| |||||||||||
Run an ad-hoc script, and wait until its execution is finished (or aborted) to return.
| |||||||||||
Run an ad-hoc script, and wait until its execution is finished (or aborted) to return.
| |||||||||||
Run an ad-hoc script, and wait until its execution is finished (or aborted) to return.
| |||||||||||
Run an ad-hoc script, and wait until its execution is finished (or aborted) to return.
| |||||||||||
Run an ad-hoc script, and wait until its execution is finished (or aborted) to return.
| |||||||||||
Run an ad-hoc script, and wait until its execution is finished (or aborted) to return.
| |||||||||||
Run an ad-hoc script, and wait until its execution is finished (or aborted) to return.
| |||||||||||
Run an ad-hoc script, and wait until its execution is finished (or aborted) to return.
| |||||||||||
Run an ad-hoc script, and wait until its execution is finished (or aborted) to return.
| |||||||||||
Run an ad-hoc script, and wait until its execution is finished (or aborted) to return.
| |||||||||||
Run an ad-hoc script, and wait until its execution is finished (or aborted) to return.
| |||||||||||
Run an ad-hoc script, and wait until its execution is finished (or aborted) to return.
| |||||||||||
Run an ad-hoc script, and wait until its execution is finished (or aborted) to return.
| |||||||||||
Run an ad-hoc script, and wait until its execution is finished (or aborted) to return.
| |||||||||||
Run an ad-hoc script, and wait until its execution is finished (or aborted) to return.
| |||||||||||
Run a RunDeck job (identified by the given ID), and wait until its execution is finished (or aborted) to return.
| |||||||||||
Run a RunDeck job (identified by the given ID), and wait until its execution is finished (or aborted) to return.
| |||||||||||
Run a RunDeck job (identified by the given ID), and wait until its execution is finished (or aborted) to return.
| |||||||||||
Run a RunDeck job (identified by the given ID), and wait until its execution is finished (or aborted) to return.
| |||||||||||
Run a RunDeck job (identified by the given ID), and wait until its execution is finished (or aborted) to return.
| |||||||||||
Test the authentication on the RunDeck instance.
| |||||||||||
This method is deprecated.
Use
testAuth() | |||||||||||
Trigger the execution of an ad-hoc command, and return immediately (without waiting the end of the execution).
| |||||||||||
Trigger the execution of an ad-hoc command, and return immediately (without waiting the end of the execution).
| |||||||||||
Trigger the execution of an ad-hoc command, and return immediately (without waiting the end of the execution).
| |||||||||||
Trigger the execution of an ad-hoc script, and return immediately (without waiting the end of the execution).
| |||||||||||
Trigger the execution of an ad-hoc script, and return immediately (without waiting the end of the execution).
| |||||||||||
Trigger the execution of an ad-hoc script, and return immediately (without waiting the end of the execution).
| |||||||||||
Trigger the execution of an ad-hoc script, and return immediately (without waiting the end of the execution).
| |||||||||||
Trigger the execution of an ad-hoc script, and return immediately (without waiting the end of the execution).
| |||||||||||
Trigger the execution of an ad-hoc script, and return immediately (without waiting the end of the execution).
| |||||||||||
Trigger the execution of an ad-hoc script, and return immediately (without waiting the end of the execution).
| |||||||||||
Trigger the execution of an ad-hoc script, and return immediately (without waiting the end of the execution).
| |||||||||||
Trigger the execution of a RunDeck job (identified by the given ID), and return immediately (without waiting the
end of the job execution)
| |||||||||||
Trigger the execution of a RunDeck job (identified by the given ID), and return immediately (without waiting the
end of the job execution)
| |||||||||||
Trigger the execution of a RunDeck job (identified by the given ID), and return immediately (without waiting the
end of the job execution)
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Version of the API supported
Instantiate a new RundeckClient
for the RunDeck instance at the given url, using token-based
authentication.
url | of the RunDeck instance ("http://localhost:4440", "http://rundeck.your-compagny.com/", etc) |
---|---|
token | to use for authentication on the RunDeck instance |
IllegalArgumentException | if the url or token is blank (null, empty or whitespace) |
---|
Instantiate a new RundeckClient
for the RunDeck instance at the given url, using login-based
authentication.
url | of the RunDeck instance ("http://localhost:4440", "http://rundeck.your-compagny.com/", etc) |
---|---|
login | to use for authentication on the RunDeck instance |
password | to use for authentication on the RunDeck instance |
IllegalArgumentException | if the url, login or password is blank (null, empty or whitespace) |
---|
Abort an execution (identified by the given ID). The execution should be running...
executionId | identifier of the execution - mandatory |
---|
RundeckAbort
instance - won't be nullRundeckApiException | in case of error when calling the API (non-existent execution with this ID) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the executionId is null |
Delete a single job, identified by the given ID
jobId | identifier of the job - mandatory |
---|
RundeckApiException | in case of error when calling the API (non-existent job with this ID) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the jobId is blank (null, empty or whitespace) |
Export the definition of a single job, identified by the given ID
format | of the export. See FileType - mandatory |
---|---|
jobId | identifier of the job - mandatory |
RundeckApiException | in case of error when calling the API (non-existent job with this ID) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the format or jobId is blank (null, empty or whitespace), or the format is invalid |
Export the definition of a single job, identified by the given ID
format | of the export. See FileType - mandatory |
---|---|
jobId | identifier of the job - mandatory |
RundeckApiException | in case of error when calling the API (non-existent job with this ID) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the jobId is blank (null, empty or whitespace), or the format is null |
Export the definition of a single job (identified by the given ID)
filename | path of the file where the content should be saved - mandatory |
---|---|
format | of the export. See FileType - mandatory |
jobId | identifier of the job - mandatory |
RundeckApiException | in case of error when calling the API (non-existent job with this ID) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the filename, format or jobId is blank (null, empty or whitespace), or the format is invalid |
IOException | if we failed to write to the file |
Export the definition of a single job (identified by the given ID)
filename | path of the file where the content should be saved - mandatory |
---|---|
format | of the export. See FileType - mandatory |
jobId | identifier of the job - mandatory |
RundeckApiException | in case of error when calling the API (non-existent job with this ID) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the filename or jobId is blank (null, empty or whitespace), or the format is null |
IOException | if we failed to write to the file |
Export the definitions of all jobs that belongs to the given project
format | of the export. See FileType - mandatory |
---|---|
project | name of the project - mandatory |
RundeckApiException | in case of error when calling the API (non-existent project with this name) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the format or project is blank (null, empty or whitespace), or the format is invalid |
exportJobsToFile(String, String, String)
Export the definitions of the jobs that belongs to the given project, and matches the given criteria (jobFilter, groupPath and jobIds)
format | of the export. See FileType - mandatory |
---|---|
project | name of the project - mandatory |
jobFilter | a filter for the job Name - optional |
groupPath | a group or partial group path to include all jobs within that group path - optional |
jobIds | a list of Job IDs to include - optional |
RundeckApiException | in case of error when calling the API (non-existent project with this name) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the format or project is blank (null, empty or whitespace), or the format is invalid |
Export the definitions of all jobs that belongs to the given project
format | of the export. See FileType - mandatory |
---|---|
project | name of the project - mandatory |
RundeckApiException | in case of error when calling the API (non-existent project with this name) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the project is blank (null, empty or whitespace) or the format is null |
exportJobsToFile(String, FileType, String)
Export the definitions of the jobs that belongs to the given project, and matches the given criteria (jobFilter, groupPath and jobIds)
format | of the export. See FileType - mandatory |
---|---|
project | name of the project - mandatory |
jobFilter | a filter for the job Name - optional |
groupPath | a group or partial group path to include all jobs within that group path - optional |
jobIds | a list of Job IDs to include - optional |
RundeckApiException | in case of error when calling the API (non-existent project with this name) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the project is blank (null, empty or whitespace) or the format is null |
Export the definitions of all jobs that belongs to the given project
filename | path of the file where the content should be saved - mandatory |
---|---|
format | of the export. See FileType - mandatory |
project | name of the project - mandatory |
RundeckApiException | in case of error when calling the API (non-existent project with this name) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the format or project is blank (null, empty or whitespace), or the format is invalid |
IOException | if we failed to write to the file |
exportJobs(String, String)
Export the definitions of the jobs that belongs to the given project, and matches the given criteria (jobFilter, groupPath and jobIds)
filename | path of the file where the content should be saved - mandatory |
---|---|
format | of the export. See FileType - mandatory |
project | name of the project - mandatory |
jobFilter | a filter for the job Name - optional |
groupPath | a group or partial group path to include all jobs within that group path - optional |
jobIds | a list of Job IDs to include - optional |
RundeckApiException | in case of error when calling the API (non-existent project with this name) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the filename, format or project is blank (null, empty or whitespace), or the format is invalid |
IOException | if we failed to write to the file |
Export the definitions of all jobs that belongs to the given project
filename | path of the file where the content should be saved - mandatory |
---|---|
format | of the export. See FileType - mandatory |
project | name of the project - mandatory |
RundeckApiException | in case of error when calling the API (non-existent project with this name) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the project is blank (null, empty or whitespace) or the format is null |
IOException | if we failed to write to the file |
exportJobs(FileType, String)
Export the definitions of the jobs that belongs to the given project, and matches the given criteria (jobFilter, groupPath and jobIds)
filename | path of the file where the content should be saved - mandatory |
---|---|
format | of the export. See FileType - mandatory |
project | name of the project - mandatory |
jobFilter | a filter for the job Name - optional |
groupPath | a group or partial group path to include all jobs within that group path - optional |
jobIds | a list of Job IDs to include - optional |
RundeckApiException | in case of error when calling the API (non-existent project with this name) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the filename or project is blank (null, empty or whitespace), or the format is null |
IOException | if we failed to write to the file |
Find a job, identified by its project, group and name. Note that the groupPath is optional, as a job does not need to belong to a group (either pass null, or an empty string).
project | name of the project - mandatory |
---|---|
groupPath | group to which the job belongs (if it belongs to a group) - optional |
name | of the job to find - mandatory |
RundeckJob
instance - null if not foundRundeckApiException | in case of error when calling the API (non-existent project with this name) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the project or the name is blank (null, empty or whitespace) |
Get a single execution, identified by the given ID
executionId | identifier of the execution - mandatory |
---|
RundeckExecution
instance - won't be nullRundeckApiException | in case of error when calling the API (non-existent execution with this ID) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the executionId is null |
Get the (events) history for the given project
project | name of the project - mandatory |
---|
RundeckHistory
instance - won't be nullRundeckApiException | in case of error when calling the API (non-existent project with this name) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the project is blank (null, empty or whitespace) |
Get the (events) history for the given project
project | name of the project - mandatory |
---|---|
max | number of results to return - optional (default to 20) |
offset | the 0-indexed offset for the first result to return - optional (default to O) |
RundeckHistory
instance - won't be nullRundeckApiException | in case of error when calling the API (non-existent project with this name) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the project is blank (null, empty or whitespace) |
Get the (events) history for the given project
project | name of the project - mandatory |
---|---|
recent | include only events matching the given period of time. Format : "XY", where X is an integer, and Y is one of : "h" (hour), "d" (day), "w" (week), "m" (month), "y" (year). Example : "2w" (= last 2 weeks), "5d" (= last 5 days), etc. Optional. |
RundeckHistory
instance - won't be nullRundeckApiException | in case of error when calling the API (non-existent project with this name) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the project is blank (null, empty or whitespace) |
Get the (events) history for the given project
project | name of the project - mandatory |
---|---|
recent | include only events matching the given period of time. Format : "XY", where X is an integer, and Y is one of : "h" (hour), "d" (day), "w" (week), "m" (month), "y" (year). Example : "2w" (= last 2 weeks), "5d" (= last 5 days), etc. Optional. |
max | number of results to return - optional (default to 20) |
offset | the 0-indexed offset for the first result to return - optional (default to O) |
RundeckHistory
instance - won't be nullRundeckApiException | in case of error when calling the API (non-existent project with this name) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the project is blank (null, empty or whitespace) |
Get the (events) history for the given project
project | name of the project - mandatory |
---|---|
jobId | include only events matching the given job ID - optional |
reportId | include only events matching the given report ID - optional |
user | include only events created by the given user - optional |
RundeckHistory
instance - won't be nullRundeckApiException | in case of error when calling the API (non-existent project with this name) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the project is blank (null, empty or whitespace) |
Get the (events) history for the given project
project | name of the project - mandatory |
---|---|
jobId | include only events matching the given job ID - optional |
reportId | include only events matching the given report ID - optional |
user | include only events created by the given user - optional |
max | number of results to return - optional (default to 20) |
offset | the 0-indexed offset for the first result to return - optional (default to O) |
RundeckHistory
instance - won't be nullRundeckApiException | in case of error when calling the API (non-existent project with this name) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the project is blank (null, empty or whitespace) |
Get the (events) history for the given project
project | name of the project - mandatory |
---|---|
jobId | include only events matching the given job ID - optional |
reportId | include only events matching the given report ID - optional |
user | include only events created by the given user - optional |
recent | include only events matching the given period of time. Format : "XY", where X is an integer, and Y is one of : "h" (hour), "d" (day), "w" (week), "m" (month), "y" (year). Example : "2w" (= last 2 weeks), "5d" (= last 5 days), etc. Optional. |
begin | date for the earlier events to retrieve - optional |
end | date for the latest events to retrieve - optional |
max | number of results to return - optional (default to 20) |
offset | the 0-indexed offset for the first result to return - optional (default to O) |
RundeckHistory
instance - won't be nullRundeckApiException | in case of error when calling the API (non-existent project with this name) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the project is blank (null, empty or whitespace) |
Get the (events) history for the given project
project | name of the project - mandatory |
---|---|
begin | date for the earlier events to retrieve - optional |
end | date for the latest events to retrieve - optional |
RundeckHistory
instance - won't be nullRundeckApiException | in case of error when calling the API (non-existent project with this name) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the project is blank (null, empty or whitespace) |
Get the (events) history for the given project
project | name of the project - mandatory |
---|---|
begin | date for the earlier events to retrieve - optional |
end | date for the latest events to retrieve - optional |
max | number of results to return - optional (default to 20) |
offset | the 0-indexed offset for the first result to return - optional (default to O) |
RundeckHistory
instance - won't be nullRundeckApiException | in case of error when calling the API (non-existent project with this name) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the project is blank (null, empty or whitespace) |
Get the definition of a single job, identified by the given ID
jobId | identifier of the job - mandatory |
---|
RundeckJob
instance - won't be nullRundeckApiException | in case of error when calling the API (non-existent job with this ID) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the jobId is blank (null, empty or whitespace) |
Get the executions of the given job
jobId | identifier of the job - mandatory |
---|
RundeckExecution
: might be empty, but won't be nullRundeckApiException | in case of error when calling the API (non-existent job with this ID) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the jobId is blank (null, empty or whitespace) |
Get the executions of the given job
jobId | identifier of the job - mandatory |
---|---|
status | of the executions, see RundeckExecution.ExecutionStatus - optional (null for all) |
RundeckExecution
: might be empty, but won't be nullRundeckApiException | in case of error when calling the API (non-existent job with this ID) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the jobId is blank (null, empty or whitespace), or the executionStatus is invalid |
Get the executions of the given job
jobId | identifier of the job - mandatory |
---|---|
status | of the executions, see RundeckExecution.ExecutionStatus - optional (null for all) |
max | number of results to return - optional (null for all) |
offset | the 0-indexed offset for the first result to return - optional |
RundeckExecution
: might be empty, but won't be nullRundeckApiException | in case of error when calling the API (non-existent job with this ID) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the jobId is blank (null, empty or whitespace), or the executionStatus is invalid |
Get the executions of the given job
jobId | identifier of the job - mandatory |
---|---|
status | of the executions, see RundeckExecution.ExecutionStatus - optional (null for all) |
RundeckExecution
: might be empty, but won't be nullRundeckApiException | in case of error when calling the API (non-existent job with this ID) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the jobId is blank (null, empty or whitespace) |
Get the executions of the given job
jobId | identifier of the job - mandatory |
---|---|
status | of the executions, see RundeckExecution.ExecutionStatus - optional (null for all) |
max | number of results to return - optional (null for all) |
offset | the 0-indexed offset for the first result to return - optional |
RundeckExecution
: might be empty, but won't be nullRundeckApiException | in case of error when calling the API (non-existent job with this ID) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the jobId is blank (null, empty or whitespace) |
List all jobs (for all projects)
RundeckJob
: might be empty, but won't be nullRundeckApiException | in case of error when calling the API |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
List all jobs that belongs to the given project
project | name of the project - mandatory |
---|
RundeckJob
: might be empty, but won't be nullRundeckApiException | in case of error when calling the API (non-existent project with this name) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the project is blank (null, empty or whitespace) |
List the jobs that belongs to the given project, and matches the given criteria (jobFilter, groupPath and jobIds)
project | name of the project - mandatory |
---|---|
jobFilter | a filter for the job Name - optional |
groupPath | a group or partial group path to include all jobs within that group path - optional |
jobIds | a list of Job IDs to include - optional |
RundeckJob
: might be empty, but won't be nullRundeckApiException | in case of error when calling the API (non-existent project with this name) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the project is blank (null, empty or whitespace) |
Get the definition of a single node
name | of the node - mandatory |
---|---|
project | name of the project - mandatory |
RundeckNode
instance - won't be nullRundeckApiException | in case of error when calling the API (non-existent name or project with this name) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the name or project is blank (null, empty or whitespace) |
List all nodes (for all projects)
RundeckNode
: might be empty, but won't be nullRundeckApiException | in case of error when calling the API |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
List all nodes that belongs to the given project
project | name of the project - mandatory |
---|
RundeckNode
: might be empty, but won't be nullRundeckApiException | in case of error when calling the API (non-existent project with this name) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the project is blank (null, empty or whitespace) |
List nodes that belongs to the given project
project | name of the project - mandatory |
---|---|
nodeFilters | for filtering the nodes - optional. See NodeFiltersBuilder |
RundeckNode
: might be empty, but won't be nullRundeckApiException | in case of error when calling the API (non-existent project with this name) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the project is blank (null, empty or whitespace) |
Get the definition of a single project, identified by the given name
projectName | name of the project - mandatory |
---|
RundeckProject
instance - won't be nullRundeckApiException | in case of error when calling the API (non-existent project with this name) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the projectName is blank (null, empty or whitespace) |
List all projects
RundeckProject
: might be empty, but won't be nullRundeckApiException | in case of error when calling the API |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
Get all running executions (for all projects)
RundeckExecution
: might be empty, but won't be nullRundeckApiException | in case of error when calling the API |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
Get the running executions for the given project
project | name of the project - mandatory |
---|
RundeckExecution
: might be empty, but won't be nullRundeckApiException | in case of error when calling the API (non-existent project with this name) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the project is blank (null, empty or whitespace) |
Get system informations about the RunDeck server
RundeckSystemInfo
instance - won't be nullRundeckApiException | in case of error when calling the API |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
Import the definitions of jobs, from the given input stream
stream | inputStream for reading the definitions - mandatory |
---|---|
fileType | type of the file. See FileType - mandatory |
RundeckJobsImportResult
instance - won't be nullRundeckApiException | in case of error when calling the API |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the stream is null, or the fileType is blank (null, empty or whitespace) or invalid |
Import the definitions of jobs, from the given input stream, using the given behavior
stream | inputStream for reading the definitions - mandatory |
---|---|
fileType | type of the file. See FileType - mandatory |
importBehavior | see RundeckJobsImportMethod |
RundeckJobsImportResult
instance - won't be nullRundeckApiException | in case of error when calling the API |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the stream is null, or the fileType is blank (null, empty or whitespace), or the fileType or behavior is not valid |
Import the definitions of jobs, from the given input stream
stream | inputStream for reading the definitions - mandatory |
---|---|
fileType | type of the file. See FileType - mandatory |
RundeckJobsImportResult
instance - won't be nullRundeckApiException | in case of error when calling the API |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the stream or fileType is null |
Import the definitions of jobs, from the given input stream, using the given behavior
stream | inputStream for reading the definitions - mandatory |
---|---|
fileType | type of the file. See FileType - mandatory |
importBehavior | see RundeckJobsImportMethod |
RundeckJobsImportResult
instance - won't be nullRundeckApiException | in case of error when calling the API |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the stream or fileType is null |
Import the definitions of jobs, from the given file
filename | of the file containing the jobs definitions - mandatory |
---|---|
fileType | type of the file. See FileType - mandatory |
RundeckJobsImportResult
instance - won't be nullRundeckApiException | in case of error when calling the API |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the filename or fileType is blank (null, empty or whitespace), or the fileType is invalid |
IOException | if we failed to read the file |
Import the definitions of jobs, from the given file, using the given behavior
filename | of the file containing the jobs definitions - mandatory |
---|---|
fileType | type of the file. See FileType - mandatory |
importBehavior | see RundeckJobsImportMethod |
RundeckJobsImportResult
instance - won't be nullRundeckApiException | in case of error when calling the API |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the filename or fileType is blank (null, empty or whitespace), or the fileType or behavior is not valid |
IOException | if we failed to read the file |
Import the definitions of jobs, from the given file
filename | of the file containing the jobs definitions - mandatory |
---|---|
fileType | type of the file. See FileType - mandatory |
RundeckJobsImportResult
instance - won't be nullRundeckApiException | in case of error when calling the API |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the filename is blank (null, empty or whitespace), or the fileType is null |
IOException | if we failed to read the file |
Import the definitions of jobs, from the given file, using the given behavior
filename | of the file containing the jobs definitions - mandatory |
---|---|
fileType | type of the file. See FileType - mandatory |
importBehavior | see RundeckJobsImportMethod |
RundeckJobsImportResult
instance - won't be nullRundeckApiException | in case of error when calling the API |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the filename is blank (null, empty or whitespace), or the fileType is null |
IOException | if we failed to read the file |
Try to "ping" the RunDeck instance to see if it is alive
RundeckApiException | if the ping fails |
---|
Run an ad-hoc command, and wait until its execution is finished (or aborted) to return. We will poll the RunDeck server at regular interval (every 5 seconds) to know if the execution is finished (or aborted) or is still running. The command will not be dispatched to nodes, but be executed on the RunDeck server.
project | name of the project - mandatory |
---|---|
command | to be executed - mandatory |
RundeckExecution
instance for the (finished/aborted) execution - won't be nullRundeckApiException | in case of error when calling the API (non-existent project with this name) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the project or command is blank (null, empty or whitespace) |
Run an ad-hoc command, and wait until its execution is finished (or aborted) to return. We will poll the RunDeck server at regular interval (every 5 seconds) to know if the execution is finished (or aborted) or is still running. The command will be dispatched to nodes, accordingly to the nodeFilters parameter.
project | name of the project - mandatory |
---|---|
command | to be executed - mandatory |
nodeFilters | for selecting nodes on which the command will be executed. See NodeFiltersBuilder |
RundeckExecution
instance for the (finished/aborted) execution - won't be nullRundeckApiException | in case of error when calling the API (non-existent project with this name) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the project or command is blank (null, empty or whitespace) |
Run an ad-hoc command, and wait until its execution is finished (or aborted) to return. We will poll the RunDeck server at regular interval (every 5 seconds) to know if the execution is finished (or aborted) or is still running. The command will be dispatched to nodes, accordingly to the nodeFilters parameter.
project | name of the project - mandatory |
---|---|
command | to be executed - mandatory |
nodeFilters | for selecting nodes on which the command will be executed. See NodeFiltersBuilder |
nodeThreadcount | thread count to use (for parallelizing when running on multiple nodes) - optional |
nodeKeepgoing | if true, continue executing on other nodes even if some fail - optional |
RundeckExecution
instance for the (finished/aborted) execution - won't be nullRundeckApiException | in case of error when calling the API (non-existent project with this name) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the project or command is blank (null, empty or whitespace) |
Run an ad-hoc command, and wait until its execution is finished (or aborted) to return. We will poll the RunDeck server at regular interval (configured by the poolingInterval/poolingUnit couple) to know if the execution is finished (or aborted) or is still running. The command will be dispatched to nodes, accordingly to the nodeFilters parameter.
project | name of the project - mandatory |
---|---|
command | to be executed - mandatory |
nodeFilters | for selecting nodes on which the command will be executed. See NodeFiltersBuilder |
nodeThreadcount | thread count to use (for parallelizing when running on multiple nodes) - optional |
nodeKeepgoing | if true, continue executing on other nodes even if some fail - optional |
poolingInterval | for checking the status of the execution. Must be > 0. |
poolingUnit | unit (seconds, milli-seconds, ...) of the interval. Default to seconds. |
RundeckExecution
instance for the (finished/aborted) execution - won't be nullRundeckApiException | in case of error when calling the API (non-existent project with this name) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the project or command is blank (null, empty or whitespace) |
Run an ad-hoc command, and wait until its execution is finished (or aborted) to return. We will poll the RunDeck server at regular interval (configured by the poolingInterval/poolingUnit couple) to know if the execution is finished (or aborted) or is still running. The command will be dispatched to nodes, accordingly to the nodeFilters parameter.
project | name of the project - mandatory |
---|---|
command | to be executed - mandatory |
nodeFilters | for selecting nodes on which the command will be executed. See NodeFiltersBuilder |
poolingInterval | for checking the status of the execution. Must be > 0. |
poolingUnit | unit (seconds, milli-seconds, ...) of the interval. Default to seconds. |
RundeckExecution
instance for the (finished/aborted) execution - won't be nullRundeckApiException | in case of error when calling the API (non-existent project with this name) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the project or command is blank (null, empty or whitespace) |
Run an ad-hoc command, and wait until its execution is finished (or aborted) to return. We will poll the RunDeck server at regular interval (configured by the poolingInterval/poolingUnit couple) to know if the execution is finished (or aborted) or is still running. The command will not be dispatched to nodes, but be executed on the RunDeck server.
project | name of the project - mandatory |
---|---|
command | to be executed - mandatory |
poolingInterval | for checking the status of the execution. Must be > 0. |
poolingUnit | unit (seconds, milli-seconds, ...) of the interval. Default to seconds. |
RundeckExecution
instance for the (finished/aborted) execution - won't be nullRundeckApiException | in case of error when calling the API (non-existent project with this name) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the project or command is blank (null, empty or whitespace) |
Run an ad-hoc script, and wait until its execution is finished (or aborted) to return. We will poll the RunDeck server at regular interval (every 5 seconds) to know if the execution is finished (or aborted) or is still running. The script will not be dispatched to nodes, but be executed on the RunDeck server.
project | name of the project - mandatory |
---|---|
script | inputStream for reading the script to be executed - mandatory |
RundeckExecution
instance for the (finished/aborted) execution - won't be nullRundeckApiException | in case of error when calling the API (non-existent project with this name) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the project is blank (null, empty or whitespace) or the script is null |
IOException | if we failed to read the file |
Run an ad-hoc script, and wait until its execution is finished (or aborted) to return. We will poll the RunDeck server at regular interval (every 5 seconds) to know if the execution is finished (or aborted) or is still running. The script will not be dispatched to nodes, but be executed on the RunDeck server.
project | name of the project - mandatory |
---|---|
script | inputStream for reading the script to be executed - mandatory |
options | of the script - optional. See OptionsBuilder . |
RundeckExecution
instance for the (finished/aborted) execution - won't be nullRundeckApiException | in case of error when calling the API (non-existent project with this name) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the project is blank (null, empty or whitespace) or the script is null |
IOException | if we failed to read the file |
Run an ad-hoc script, and wait until its execution is finished (or aborted) to return. We will poll the RunDeck server at regular interval (every 5 seconds) to know if the execution is finished (or aborted) or is still running. The script will be dispatched to nodes, accordingly to the nodeFilters parameter.
project | name of the project - mandatory |
---|---|
script | inputStream for reading the script to be executed - mandatory |
options | of the script - optional. See OptionsBuilder . |
nodeFilters | for selecting nodes on which the script will be executed. See NodeFiltersBuilder |
RundeckExecution
instance for the (finished/aborted) execution - won't be nullRundeckApiException | in case of error when calling the API (non-existent project with this name) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the project is blank (null, empty or whitespace) or the script is null |
IOException | if we failed to read the file |
Run an ad-hoc script, and wait until its execution is finished (or aborted) to return. We will poll the RunDeck server at regular interval (every 5 seconds) to know if the execution is finished (or aborted) or is still running. The script will be dispatched to nodes, accordingly to the nodeFilters parameter.
project | name of the project - mandatory |
---|---|
script | inputStream for reading the script to be executed - mandatory |
options | of the script - optional. See OptionsBuilder . |
nodeFilters | for selecting nodes on which the script will be executed. See NodeFiltersBuilder |
nodeThreadcount | thread count to use (for parallelizing when running on multiple nodes) - optional |
nodeKeepgoing | if true, continue executing on other nodes even if some fail - optional |
RundeckExecution
instance for the (finished/aborted) execution - won't be nullRundeckApiException | in case of error when calling the API (non-existent project with this name) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the project is blank (null, empty or whitespace) or the script is null |
IOException | if we failed to read the file |
Run an ad-hoc script, and wait until its execution is finished (or aborted) to return. We will poll the RunDeck server at regular interval (configured by the poolingInterval/poolingUnit couple) to know if the execution is finished (or aborted) or is still running. The script will be dispatched to nodes, accordingly to the nodeFilters parameter.
project | name of the project - mandatory |
---|---|
script | inputStream for reading the script to be executed - mandatory |
options | of the script - optional. See OptionsBuilder . |
nodeFilters | for selecting nodes on which the script will be executed. See NodeFiltersBuilder |
nodeThreadcount | thread count to use (for parallelizing when running on multiple nodes) - optional |
nodeKeepgoing | if true, continue executing on other nodes even if some fail - optional |
poolingInterval | for checking the status of the execution. Must be > 0. |
poolingUnit | unit (seconds, milli-seconds, ...) of the interval. Default to seconds. |
RundeckExecution
instance for the (finished/aborted) execution - won't be nullRundeckApiException | in case of error when calling the API (non-existent project with this name) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the project is blank (null, empty or whitespace) or the script is null |
IOException | if we failed to read the file |
Run an ad-hoc script, and wait until its execution is finished (or aborted) to return. We will poll the RunDeck server at regular interval (configured by the poolingInterval/poolingUnit couple) to know if the execution is finished (or aborted) or is still running. The script will be dispatched to nodes, accordingly to the nodeFilters parameter.
project | name of the project - mandatory |
---|---|
script | inputStream for reading the script to be executed - mandatory |
options | of the script - optional. See OptionsBuilder . |
nodeFilters | for selecting nodes on which the script will be executed. See NodeFiltersBuilder |
poolingInterval | for checking the status of the execution. Must be > 0. |
poolingUnit | unit (seconds, milli-seconds, ...) of the interval. Default to seconds. |
RundeckExecution
instance for the (finished/aborted) execution - won't be nullRundeckApiException | in case of error when calling the API (non-existent project with this name) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the project is blank (null, empty or whitespace) or the script is null |
IOException | if we failed to read the file |
Run an ad-hoc script, and wait until its execution is finished (or aborted) to return. We will poll the RunDeck server at regular interval (configured by the poolingInterval/poolingUnit couple) to know if the execution is finished (or aborted) or is still running. The script will not be dispatched to nodes, but be executed on the RunDeck server.
project | name of the project - mandatory |
---|---|
script | inputStream for reading the script to be executed - mandatory |
options | of the script - optional. See OptionsBuilder . |
poolingInterval | for checking the status of the execution. Must be > 0. |
poolingUnit | unit (seconds, milli-seconds, ...) of the interval. Default to seconds. |
RundeckExecution
instance for the (finished/aborted) execution - won't be nullRundeckApiException | in case of error when calling the API (non-existent project with this name) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the project is blank (null, empty or whitespace) or the script is null |
IOException | if we failed to read the file |
Run an ad-hoc script, and wait until its execution is finished (or aborted) to return. We will poll the RunDeck server at regular interval (configured by the poolingInterval/poolingUnit couple) to know if the execution is finished (or aborted) or is still running. The script will not be dispatched to nodes, but be executed on the RunDeck server.
project | name of the project - mandatory |
---|---|
script | inputStream for reading the script to be executed - mandatory |
poolingInterval | for checking the status of the execution. Must be > 0. |
poolingUnit | unit (seconds, milli-seconds, ...) of the interval. Default to seconds. |
RundeckExecution
instance for the (finished/aborted) execution - won't be nullRundeckApiException | in case of error when calling the API (non-existent project with this name) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the project is blank (null, empty or whitespace) or the script is null |
IOException | if we failed to read the file |
Run an ad-hoc script, and wait until its execution is finished (or aborted) to return. We will poll the RunDeck server at regular interval (every 5 seconds) to know if the execution is finished (or aborted) or is still running. The script will not be dispatched to nodes, but be executed on the RunDeck server.
project | name of the project - mandatory |
---|---|
scriptFilename | filename of the script to be executed - mandatory |
RundeckExecution
instance for the (finished/aborted) execution - won't be nullRundeckApiException | in case of error when calling the API (non-existent project with this name) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the project or scriptFilename is blank (null, empty or whitespace) |
IOException | if we failed to read the file |
Run an ad-hoc script, and wait until its execution is finished (or aborted) to return. We will poll the RunDeck server at regular interval (every 5 seconds) to know if the execution is finished (or aborted) or is still running. The script will not be dispatched to nodes, but be executed on the RunDeck server.
project | name of the project - mandatory |
---|---|
scriptFilename | filename of the script to be executed - mandatory |
options | of the script - optional. See OptionsBuilder . |
RundeckExecution
instance for the (finished/aborted) execution - won't be nullRundeckApiException | in case of error when calling the API (non-existent project with this name) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the project or scriptFilename is blank (null, empty or whitespace) |
IOException | if we failed to read the file |
Run an ad-hoc script, and wait until its execution is finished (or aborted) to return. We will poll the RunDeck server at regular interval (every 5 seconds) to know if the execution is finished (or aborted) or is still running. The script will be dispatched to nodes, accordingly to the nodeFilters parameter.
project | name of the project - mandatory |
---|---|
scriptFilename | filename of the script to be executed - mandatory |
options | of the script - optional. See OptionsBuilder . |
nodeFilters | for selecting nodes on which the script will be executed. See NodeFiltersBuilder |
RundeckExecution
instance for the (finished/aborted) execution - won't be nullRundeckApiException | in case of error when calling the API (non-existent project with this name) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the project or scriptFilename is blank (null, empty or whitespace) |
IOException | if we failed to read the file |
Run an ad-hoc script, and wait until its execution is finished (or aborted) to return. We will poll the RunDeck server at regular interval (every 5 seconds) to know if the execution is finished (or aborted) or is still running. The script will be dispatched to nodes, accordingly to the nodeFilters parameter.
project | name of the project - mandatory |
---|---|
scriptFilename | filename of the script to be executed - mandatory |
options | of the script - optional. See OptionsBuilder . |
nodeFilters | for selecting nodes on which the script will be executed. See NodeFiltersBuilder |
nodeThreadcount | thread count to use (for parallelizing when running on multiple nodes) - optional |
nodeKeepgoing | if true, continue executing on other nodes even if some fail - optional |
RundeckExecution
instance for the (finished/aborted) execution - won't be nullRundeckApiException | in case of error when calling the API (non-existent project with this name) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the project or scriptFilename is blank (null, empty or whitespace) |
IOException | if we failed to read the file |
Run an ad-hoc script, and wait until its execution is finished (or aborted) to return. We will poll the RunDeck server at regular interval (configured by the poolingInterval/poolingUnit couple) to know if the execution is finished (or aborted) or is still running. The script will be dispatched to nodes, accordingly to the nodeFilters parameter.
project | name of the project - mandatory |
---|---|
scriptFilename | filename of the script to be executed - mandatory |
options | of the script - optional. See OptionsBuilder . |
nodeFilters | for selecting nodes on which the script will be executed. See NodeFiltersBuilder |
nodeThreadcount | thread count to use (for parallelizing when running on multiple nodes) - optional |
nodeKeepgoing | if true, continue executing on other nodes even if some fail - optional |
poolingInterval | for checking the status of the execution. Must be > 0. |
poolingUnit | unit (seconds, milli-seconds, ...) of the interval. Default to seconds. |
RundeckExecution
instance for the (finished/aborted) execution - won't be nullRundeckApiException | in case of error when calling the API (non-existent project with this name) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the project or scriptFilename is blank (null, empty or whitespace) |
IOException | if we failed to read the file |
Run an ad-hoc script, and wait until its execution is finished (or aborted) to return. We will poll the RunDeck server at regular interval (configured by the poolingInterval/poolingUnit couple) to know if the execution is finished (or aborted) or is still running. The script will be dispatched to nodes, accordingly to the nodeFilters parameter.
project | name of the project - mandatory |
---|---|
scriptFilename | filename of the script to be executed - mandatory |
options | of the script - optional. See OptionsBuilder . |
nodeFilters | for selecting nodes on which the script will be executed. See NodeFiltersBuilder |
poolingInterval | for checking the status of the execution. Must be > 0. |
poolingUnit | unit (seconds, milli-seconds, ...) of the interval. Default to seconds. |
RundeckExecution
instance for the (finished/aborted) execution - won't be nullRundeckApiException | in case of error when calling the API (non-existent project with this name) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the project or scriptFilename is blank (null, empty or whitespace) |
IOException | if we failed to read the file |
Run an ad-hoc script, and wait until its execution is finished (or aborted) to return. We will poll the RunDeck server at regular interval (configured by the poolingInterval/poolingUnit couple) to know if the execution is finished (or aborted) or is still running. The script will not be dispatched to nodes, but be executed on the RunDeck server.
project | name of the project - mandatory |
---|---|
scriptFilename | filename of the script to be executed - mandatory |
options | of the script - optional. See OptionsBuilder . |
poolingInterval | for checking the status of the execution. Must be > 0. |
poolingUnit | unit (seconds, milli-seconds, ...) of the interval. Default to seconds. |
RundeckExecution
instance for the (finished/aborted) execution - won't be nullRundeckApiException | in case of error when calling the API (non-existent project with this name) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the project or scriptFilename is blank (null, empty or whitespace) |
IOException | if we failed to read the file |
Run an ad-hoc script, and wait until its execution is finished (or aborted) to return. We will poll the RunDeck server at regular interval (configured by the poolingInterval/poolingUnit couple) to know if the execution is finished (or aborted) or is still running. The script will not be dispatched to nodes, but be executed on the RunDeck server.
project | name of the project - mandatory |
---|---|
scriptFilename | filename of the script to be executed - mandatory |
poolingInterval | for checking the status of the execution. Must be > 0. |
poolingUnit | unit (seconds, milli-seconds, ...) of the interval. Default to seconds. |
RundeckExecution
instance for the (finished/aborted) execution - won't be nullRundeckApiException | in case of error when calling the API (non-existent project with this name) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the project or scriptFilename is blank (null, empty or whitespace) |
IOException | if we failed to read the file |
Run a RunDeck job (identified by the given ID), and wait until its execution is finished (or aborted) to return. We will poll the RunDeck server at regular interval (every 5 seconds) to know if the execution is finished (or aborted) or is still running.
jobId | identifier of the job - mandatory |
---|
RundeckExecution
instance for the (finished/aborted) execution - won't be nullRundeckApiException | in case of error when calling the API (non-existent job with this ID) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the jobId is blank (null, empty or whitespace) |
Run a RunDeck job (identified by the given ID), and wait until its execution is finished (or aborted) to return. We will poll the RunDeck server at regular interval (every 5 seconds) to know if the execution is finished (or aborted) or is still running.
jobId | identifier of the job - mandatory |
---|---|
options | of the job - optional. See OptionsBuilder . |
RundeckExecution
instance for the (finished/aborted) execution - won't be nullRundeckApiException | in case of error when calling the API (non-existent job with this ID) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the jobId is blank (null, empty or whitespace) |
Run a RunDeck job (identified by the given ID), and wait until its execution is finished (or aborted) to return. We will poll the RunDeck server at regular interval (every 5 seconds) to know if the execution is finished (or aborted) or is still running.
jobId | identifier of the job - mandatory |
---|---|
options | of the job - optional. See OptionsBuilder . |
nodeFilters | for overriding the nodes on which the job will be executed - optional. See
NodeFiltersBuilder |
RundeckExecution
instance for the (finished/aborted) execution - won't be nullRundeckApiException | in case of error when calling the API (non-existent job with this ID) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the jobId is blank (null, empty or whitespace) |
Run a RunDeck job (identified by the given ID), and wait until its execution is finished (or aborted) to return. We will poll the RunDeck server at regular interval (configured by the poolingInterval/poolingUnit couple) to know if the execution is finished (or aborted) or is still running.
jobId | identifier of the job - mandatory |
---|---|
options | of the job - optional. See OptionsBuilder . |
nodeFilters | for overriding the nodes on which the job will be executed - optional. See
NodeFiltersBuilder |
poolingInterval | for checking the status of the execution. Must be > 0. |
poolingUnit | unit (seconds, milli-seconds, ...) of the interval. Default to seconds. |
RundeckExecution
instance for the (finished/aborted) execution - won't be nullRundeckApiException | in case of error when calling the API (non-existent job with this ID) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the jobId is blank (null, empty or whitespace) |
Run a RunDeck job (identified by the given ID), and wait until its execution is finished (or aborted) to return. We will poll the RunDeck server at regular interval (configured by the poolingInterval/poolingUnit couple) to know if the execution is finished (or aborted) or is still running.
jobId | identifier of the job - mandatory |
---|---|
options | of the job - optional. See OptionsBuilder . |
poolingInterval | for checking the status of the execution. Must be > 0. |
poolingUnit | unit (seconds, milli-seconds, ...) of the interval. Default to seconds. |
RundeckExecution
instance for the (finished/aborted) execution - won't be nullRundeckApiException | in case of error when calling the API (non-existent job with this ID) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the jobId is blank (null, empty or whitespace) |
Test the authentication on the RunDeck instance.
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
---|---|
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
Trigger the execution of an ad-hoc command, and return immediately (without waiting the end of the execution). The command will not be dispatched to nodes, but be executed on the RunDeck server.
project | name of the project - mandatory |
---|---|
command | to be executed - mandatory |
RundeckExecution
instance for the newly created (and running) execution - won't be nullRundeckApiException | in case of error when calling the API (non-existent project with this name) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the project or command is blank (null, empty or whitespace) |
Trigger the execution of an ad-hoc command, and return immediately (without waiting the end of the execution). The command will be dispatched to nodes, accordingly to the nodeFilters parameter.
project | name of the project - mandatory |
---|---|
command | to be executed - mandatory |
nodeFilters | for selecting nodes on which the command will be executed. See NodeFiltersBuilder |
RundeckExecution
instance for the newly created (and running) execution - won't be nullRundeckApiException | in case of error when calling the API (non-existent project with this name) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the project or command is blank (null, empty or whitespace) |
Trigger the execution of an ad-hoc command, and return immediately (without waiting the end of the execution). The command will be dispatched to nodes, accordingly to the nodeFilters parameter.
project | name of the project - mandatory |
---|---|
command | to be executed - mandatory |
nodeFilters | for selecting nodes on which the command will be executed. See NodeFiltersBuilder |
nodeThreadcount | thread count to use (for parallelizing when running on multiple nodes) - optional |
nodeKeepgoing | if true, continue executing on other nodes even if some fail - optional |
RundeckExecution
instance for the newly created (and running) execution - won't be nullRundeckApiException | in case of error when calling the API (non-existent project with this name) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the project or command is blank (null, empty or whitespace) |
Trigger the execution of an ad-hoc script, and return immediately (without waiting the end of the execution). The script will not be dispatched to nodes, but be executed on the RunDeck server.
project | name of the project - mandatory |
---|---|
script | inputStream for reading the script to be executed - mandatory |
RundeckExecution
instance for the newly created (and running) execution - won't be nullRundeckApiException | in case of error when calling the API (non-existent project with this name) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the project is blank (null, empty or whitespace) or the script is null |
Trigger the execution of an ad-hoc script, and return immediately (without waiting the end of the execution). The script will not be dispatched to nodes, but be executed on the RunDeck server.
project | name of the project - mandatory |
---|---|
script | inputStream for reading the script to be executed - mandatory |
options | of the script - optional. See OptionsBuilder . |
RundeckExecution
instance for the newly created (and running) execution - won't be nullRundeckApiException | in case of error when calling the API (non-existent project with this name) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the project is blank (null, empty or whitespace) or the script is null |
Trigger the execution of an ad-hoc script, and return immediately (without waiting the end of the execution). The script will be dispatched to nodes, accordingly to the nodeFilters parameter.
project | name of the project - mandatory |
---|---|
script | inputStream for reading the script to be executed - mandatory |
options | of the script - optional. See OptionsBuilder . |
nodeFilters | for selecting nodes on which the command will be executed. See NodeFiltersBuilder |
RundeckExecution
instance for the newly created (and running) execution - won't be nullRundeckApiException | in case of error when calling the API (non-existent project with this name) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the project is blank (null, empty or whitespace) or the script is null |
Trigger the execution of an ad-hoc script, and return immediately (without waiting the end of the execution). The script will be dispatched to nodes, accordingly to the nodeFilters parameter.
project | name of the project - mandatory |
---|---|
script | inputStream for reading the script to be executed - mandatory |
options | of the script - optional. See OptionsBuilder . |
nodeFilters | for selecting nodes on which the command will be executed. See NodeFiltersBuilder |
nodeThreadcount | thread count to use (for parallelizing when running on multiple nodes) - optional |
nodeKeepgoing | if true, continue executing on other nodes even if some fail - optional |
RundeckExecution
instance for the newly created (and running) execution - won't be nullRundeckApiException | in case of error when calling the API (non-existent project with this name) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the project is blank (null, empty or whitespace) or the script is null |
Trigger the execution of an ad-hoc script, and return immediately (without waiting the end of the execution). The script will not be dispatched to nodes, but be executed on the RunDeck server.
project | name of the project - mandatory |
---|---|
scriptFilename | filename of the script to be executed - mandatory |
RundeckExecution
instance for the newly created (and running) execution - won't be nullRundeckApiException | in case of error when calling the API (non-existent project with this name) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the project or scriptFilename is blank (null, empty or whitespace) |
IOException | if we failed to read the file |
Trigger the execution of an ad-hoc script, and return immediately (without waiting the end of the execution). The script will not be dispatched to nodes, but be executed on the RunDeck server.
project | name of the project - mandatory |
---|---|
scriptFilename | filename of the script to be executed - mandatory |
options | of the script - optional. See OptionsBuilder . |
RundeckExecution
instance for the newly created (and running) execution - won't be nullRundeckApiException | in case of error when calling the API (non-existent project with this name) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the project or scriptFilename is blank (null, empty or whitespace) |
IOException | if we failed to read the file |
Trigger the execution of an ad-hoc script, and return immediately (without waiting the end of the execution). The script will be dispatched to nodes, accordingly to the nodeFilters parameter.
project | name of the project - mandatory |
---|---|
scriptFilename | filename of the script to be executed - mandatory |
options | of the script - optional. See OptionsBuilder . |
nodeFilters | for selecting nodes on which the command will be executed. See NodeFiltersBuilder |
RundeckExecution
instance for the newly created (and running) execution - won't be nullRundeckApiException | in case of error when calling the API (non-existent project with this name) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the project or scriptFilename is blank (null, empty or whitespace) |
IOException | if we failed to read the file |
Trigger the execution of an ad-hoc script, and return immediately (without waiting the end of the execution). The script will be dispatched to nodes, accordingly to the nodeFilters parameter.
project | name of the project - mandatory |
---|---|
scriptFilename | filename of the script to be executed - mandatory |
options | of the script - optional. See OptionsBuilder . |
nodeFilters | for selecting nodes on which the command will be executed. See NodeFiltersBuilder |
nodeThreadcount | thread count to use (for parallelizing when running on multiple nodes) - optional |
nodeKeepgoing | if true, continue executing on other nodes even if some fail - optional |
RundeckExecution
instance for the newly created (and running) execution - won't be nullRundeckApiException | in case of error when calling the API (non-existent project with this name) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the project or scriptFilename is blank (null, empty or whitespace) |
IOException | if we failed to read the file |
Trigger the execution of a RunDeck job (identified by the given ID), and return immediately (without waiting the end of the job execution)
jobId | identifier of the job - mandatory |
---|
RundeckExecution
instance for the newly created (and running) execution - won't be nullRundeckApiException | in case of error when calling the API (non-existent job with this ID) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the jobId is blank (null, empty or whitespace) |
Trigger the execution of a RunDeck job (identified by the given ID), and return immediately (without waiting the end of the job execution)
jobId | identifier of the job - mandatory |
---|---|
options | of the job - optional. See OptionsBuilder . |
RundeckExecution
instance for the newly created (and running) execution - won't be nullRundeckApiException | in case of error when calling the API (non-existent job with this ID) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the jobId is blank (null, empty or whitespace) |
Trigger the execution of a RunDeck job (identified by the given ID), and return immediately (without waiting the end of the job execution)
jobId | identifier of the job - mandatory |
---|---|
options | of the job - optional. See OptionsBuilder . |
nodeFilters | for overriding the nodes on which the job will be executed - optional. See
NodeFiltersBuilder |
RundeckExecution
instance for the newly created (and running) execution - won't be nullRundeckApiException | in case of error when calling the API (non-existent job with this ID) |
---|---|
RundeckApiException.RundeckApiLoginException | if the login fails (in case of login-based authentication) |
RundeckApiException.RundeckApiTokenException | if the token is invalid (in case of token-based authentication) |
IllegalArgumentException | if the jobId is blank (null, empty or whitespace) |