java.lang.Object | |
↳ | org.rundeck.api.RundeckClient |
Rundeck API client.
There are three methods for authentication : login-based or token-based or session-based. Login authentication requires both a "login" and a "password". Token-based requires a "token" (also called "auth-token"). See the Rundeck documentation for generating such a token.
Session-based authentication allows re-use of a previous login session. See testAuth()
.
// using login-based authentication :
RundeckClient rundeck = RundeckClient.builder()
.url("http://localhost:4440")
.login("admin", "admin").build();
// or for a token-based authentication :
RundeckClient rundeck = RundeckClient.builder()
.url("http://localhost:4440")
.token("PDDNKo5VE29kpk4prOUDr2rsKdRkEvsD").build();
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);
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
RundeckClient.Version | Supported version numbers |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | API_ENDPOINT | End-point of the API | |||||||||
int | API_VERSION | Version of the API supported | |||||||||
long | DEFAULT_POOLING_INTERVAL | Default value for the "pooling interval" used when running jobs/commands/scripts | |||||||||
TimeUnit | DEFAULT_POOLING_UNIT | Default unit of the "pooling interval" used when running jobs/commands/scripts | |||||||||
String | JOBS_IMPORT | ||||||||||
String | STORAGE_KEYS_PATH | ||||||||||
String | STORAGE_ROOT_PATH |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Abort an execution (identified by the given ID).
| |||||||||||
Abort an execution (identified by the given ID).
| |||||||||||
Create a builder for RundeckClient
| |||||||||||
Create a new project, and return the new definition
| |||||||||||
Delete all executions for a job specified by a job ID
| |||||||||||
Delete an existing token@return
| |||||||||||
Delete a single execution, identified by the given ID
| |||||||||||
Delete a set of executions, identified by the given IDs
| |||||||||||
Delete a single job, identified by the given ID
| |||||||||||
Delete multiple jobs, identified by the given IDs
| |||||||||||
Delete an key file
| |||||||||||
Delete a project
| |||||||||||
Set a single project configuration property value
| |||||||||||
Delete a project readme.md or motd.md
| |||||||||||
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)
| |||||||||||
Convenience method to export the archive of a project to the specified file.
| |||||||||||
Export the archive of a project to the specified outputstream
| |||||||||||
Find a job, identified by its project, group and name.
| |||||||||||
Generate an API token for a user.@return
| |||||||||||
Generate a new token and get the result page (which is the html page of the user's profile)
| |||||||||||
Return user info for an existing token
| |||||||||||
Get a single execution, identified by the given ID
| |||||||||||
Get the execution output of the given job
| |||||||||||
Get the execution output of the given job
| |||||||||||
Get the execution output of the given execution on the specified node
| |||||||||||
Get the execution output of the given execution for the specified step
| |||||||||||
Get the execution output of the given execution for the specified step
| |||||||||||
Get the execution state output sequence of the given job
| |||||||||||
Get the execution state of the given execution
| |||||||||||
Get executions based on query parameters
| |||||||||||
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 (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 metadata for an key file
| |||||||||||
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 output of a job execution
| |||||||||||
Get the html page of the user's profile
| |||||||||||
Get the definition of a single project, identified by the given name
| |||||||||||
Return the configuration of a project
| |||||||||||
Get a single project configuration key
| |||||||||||
List all projects
| |||||||||||
Get content for a public key file
| |||||||||||
Get content for a public key file
| |||||||||||
Get all running executions (for all projects)
| |||||||||||
Get the running executions for the given project
| |||||||||||
Get system informations about the Rundeck server
| |||||||||||
Import a archive file to the specified project.
| |||||||||||
Import the definitions of jobs, from the given input stream, using the given behavior
| |||||||||||
Import the definitions of jobs, from the given input stream, using the given behavior
| |||||||||||
List all API tokens
| |||||||||||
List API tokens for a user.
| |||||||||||
List contents of key directory
| |||||||||||
List contents of root key directory
| |||||||||||
Try to "ping" the Rundeck instance to see if it is alive
| |||||||||||
Read contents of a project readme.md or motd.md if it exsts, or return null
| |||||||||||
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 read from a file, 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.
| |||||||||||
Set a single project configuration property value
| |||||||||||
Return the configuration of a project
| |||||||||||
Store an key file
| |||||||||||
Store contents to a project readme.md or motd.md
| |||||||||||
Test the authentication on the Rundeck instance.
| |||||||||||
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 read from a file, 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)
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Version of the API supported
Default value for the "pooling interval" used when running jobs/commands/scripts
Default unit of the "pooling interval" used when running jobs/commands/scripts
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 |
Abort an execution (identified by the given ID). The execution should be running...
executionId | identifier of the execution - mandatory |
---|---|
asUser | specify a user name to abort the job as, must have 'killAs' permission |
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 |
Create a new project, and return the new definition
projectName | name of the project - mandatory |
---|---|
configuration | project configuration properties |
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) |
Delete all executions for a job specified by a job ID
jobId | Identifier for the job |
---|
DeleteExecutionsResponse
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 executionIds is null |
Delete an existing token@return
RundeckApiException |
---|
Delete a single execution, identified by the given ID
executionId | identifier for the execution - mandatory |
---|
RundeckApiException | 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 set of executions, identified by the given IDs
executionIds | set of identifiers for the executions - mandatory |
---|
DeleteExecutionsResponse
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 executionIds 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) |
Delete multiple jobs, identified by the given IDs
jobIds | List of job IDS |
---|
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) |
Delete an key file
path | a path to a key file, must start with "keys/" |
---|
Delete a project
projectName | 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 projectName is blank (null, empty or whitespace) |
Set a single project configuration property value
projectName | name of the project - mandatory |
---|---|
key | name of the configuration property |
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 projectName is blank (null, empty or whitespace) |
Delete a project readme.md or motd.md
projectName | project name |
---|---|
filename | filename, must be readme.md or motd.md |
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 |
Convenience method to export the archive of a project to the specified file.
projectName | name of the project - mandatory |
---|---|
out | file to write to |
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 projectName is blank (null, empty or whitespace) |
IOException |
Export the archive of a project to the specified outputstream
projectName | 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 projectName is blank (null, empty or whitespace) |
IOException |
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) |
Generate an API token for a user.@return
RundeckApiException |
---|
Generate a new token and get the result page (which is the html page of the user's profile)
username | - mandatory |
---|
RundeckApiException | 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) |
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 execution output of the given job
executionId | identifier of the execution - mandatory |
---|---|
offset | byte offset to read from in the file. 0 indicates the beginning. |
lastlines | nnumber of lines to retrieve from the end of the available output. If specified it will override the offset value and return only the specified number of lines at the end of the log. |
lastmod | epoch datestamp in milliseconds, return results only if modification changed since the specified date OR if more data is available at the given offset |
maxlines | maximum number of lines to retrieve forward from the specified offset. |
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) |
Get the execution output of the given job
executionId | identifier of the execution - mandatory |
---|---|
offset | byte offset to read from in the file. 0 indicates the beginning. |
lastmod | epoch datestamp in milliseconds, return results only if modification changed since the specified date OR if more data is available at the given offset |
maxlines | maximum number of lines to retrieve forward from the specified offset. |
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) |
Get the execution output of the given execution on the specified node
executionId | identifier of the execution - mandatory |
---|---|
nodeName | name of the node |
offset | byte offset to read from in the file. 0 indicates the beginning. |
lastlines | nnumber of lines to retrieve from the end of the available output. If specified it will override the offset value and return only the specified number of lines at the end of the log. |
lastmod | epoch datestamp in milliseconds, return results only if modification changed since the specified date OR if more data is available at the given offset |
maxlines | maximum number of lines to retrieve forward from the specified offset. |
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) |
Get the execution output of the given execution for the specified step
executionId | identifier of the execution - mandatory |
---|---|
stepCtx | identifier for the step |
offset | byte offset to read from in the file. 0 indicates the beginning. |
lastlines | nnumber of lines to retrieve from the end of the available output. If specified it will override the offset value and return only the specified number of lines at the end of the log. |
lastmod | epoch datestamp in milliseconds, return results only if modification changed since the specified date OR if more data is available at the given offset |
maxlines | maximum number of lines to retrieve forward from the specified offset. |
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) |
Get the execution output of the given execution for the specified step
executionId | identifier of the execution - mandatory |
---|---|
stepCtx | identifier for the step |
offset | byte offset to read from in the file. 0 indicates the beginning. |
lastlines | nnumber of lines to retrieve from the end of the available output. If specified it will override the offset value and return only the specified number of lines at the end of the log. |
lastmod | epoch datestamp in milliseconds, return results only if modification changed since the specified date OR if more data is available at the given offset |
maxlines | maximum number of lines to retrieve forward from the specified offset. |
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) |
Get the execution state output sequence of the given job
executionId | identifier of the execution - mandatory |
---|---|
stateOnly | if true, include only state change output entries, otherwise include state and log entries |
offset | byte offset to read from in the file. 0 indicates the beginning. |
lastmod | epoch datestamp in milliseconds, return results only if modification changed since the specified date OR if more data is available at the given offset |
maxlines | maximum number of lines to retrieve forward from the specified offset. |
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) |
Get the execution state of the given execution
executionId | identifier of the execution - mandatory |
---|
RundeckExecutionState
the execution stateRundeckApiException | 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 executions based on query parameters
query | query parameters for the request |
---|---|
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) |
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 |
---|---|
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. |
includeJobNames | list of job names ("group/name") to include results for |
excludeJobNames | list of job names ("group/name") to exclude results for |
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 metadata for an key file
path | ssh key storage path, must start with "keys/" |
---|
RundeckApiException | if there is an error, or if the path is a directory not a file |
---|
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 output of a job execution
executionId | id of the execution - mandatory |
---|
RundeckApiException | 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) |
Get the html page of the user's profile
username | - mandatory |
---|
RundeckApiException | 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) |
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) |
Return the configuration of a project
projectName | name of the project - mandatory |
---|
ProjectConfig
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) |
Get a single project configuration key
projectName | name of the project - mandatory |
---|---|
key | name of the configuration key |
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 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 content for a public key file
path | ssh key storage path, must start with "keys/" |
---|---|
out | file to write data to |
RundeckApiException | |
---|---|
IOException |
Get content for a public key file
path | ssh key storage path, must start with "keys/" |
---|---|
out | outputstream to write data to |
RundeckApiException | |
---|---|
IOException |
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 a archive file to the specified project.
projectName | name of the project - mandatory |
---|---|
archiveFile | zip archive file |
includeExecutions | if true, import executions defined in the archive, otherwise skip them |
preserveJobUuids | if true, do not remove UUIDs from imported jobs, otherwise remove them |
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 projectName is blank (null, empty or whitespace) |
IOException |
Import the definitions of jobs, from the given input stream, using the given behavior
rundeckJobsImport | import request, see RundeckJobsImportBuilder |
---|
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 |
IOException |
Import the definitions of jobs, from the given input stream, using the given behavior
rundeckJobsImport | import request, see RundeckJobsImportBuilder |
---|
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 |
List API tokens for a user.
user | username |
---|
RundeckApiException |
---|
List contents of key directory
path | ssh key storage path, must start with "keys/" |
---|
RundeckApiException | if there is an error, or if the path is a file not a directory |
---|
Try to "ping" the Rundeck instance to see if it is alive
RundeckApiException | if the ping fails |
---|
Read contents of a project readme.md or motd.md if it exsts, or return null
projectName | project name |
---|---|
filename | filename, must be readme.md or motd.md |
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.
command | the RunAdhocCommand, see RunAdhocCommandBuilder |
---|
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.
command | the RunAdhocCommand, see RunAdhocCommandBuilder |
---|---|
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 be dispatched to nodes, accordingly to the nodeFilters parameter.
script | the RunAdhocScript, see RunAdhocScriptBuilder |
---|
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 read from a file, 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.
script | the RunAdhocScript, see RunAdhocScriptBuilder |
---|---|
scriptFilename | filename of a script to read |
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.
script | the RunAdhocScript, see RunAdhocScriptBuilder |
---|---|
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 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.
runJob | the RunJob, see RunJobBuilder |
---|
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.
jobRun | the RunJob, see RunJobBuilder |
---|---|
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) |
Set a single project configuration property value
projectName | name of the project - mandatory |
---|---|
key | name of the configuration property |
value | value of the property |
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 projectName is blank (null, empty or whitespace) |
Return the configuration of a project
projectName | name of the project - mandatory |
---|
ProjectConfig
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) |
Store an key file
path | ssh key storage path, must start with "keys/" |
---|---|
keyfile | key file |
privateKey | true to store private key, false to store public key |
RundeckApiException |
---|
Store contents to a project readme.md or motd.md
projectName | project name |
---|---|
filename | filename, must be readme.md or motd.md |
content | content |
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 be dispatched to nodes, accordingly to the nodeFilters parameter.
command | the RunAdhocCommand. Project and command are mandatory, see RunAdhocCommandBuilder |
---|
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 be dispatched to nodes, accordingly to the nodeFilters parameter.
script | the RunAdhocScript, see RunAdhocScriptBuilder |
---|
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 read from a file, and return immediately (without waiting the end of the execution). The script will be dispatched to nodes, accordingly to the nodeFilters parameter.
script | the RunAdhocScript, see RunAdhocScriptBuilder |
---|---|
scriptFilename | a file to read as the input script stream |
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 |
IOException | if an error occurs reading the script file |
Trigger the execution of a Rundeck job (identified by the given ID), and return immediately (without waiting the end of the job execution)
jobRun | the RunJob, see RunJobBuilder |
---|
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) |