Rundeck Platform API v34
Abort a running execution.
Type: string
specifies a username identifying the user who aborted the execution. Requires runAs permission.
Type: string
Export a zip archive of the project asynchronously. Requires export authorization for the project. Use the Token result to query the export status with get_status_for_async_project_export, and retrieve the result once ready with get_result_for_async_project_export.
Type: string
A list (comma-separated) of execution IDs. If this is specified then the archive will contain only executions that are specified, and will not contain Jobs, ACLs, or project configuration/readme files.
Type: array
[ "string" ]
Whether or not to include project ACL Policy files, if authorized
Type: boolean
Whether or not to include all project contents
Type: boolean
Whether or not to include project configuration
Type: boolean
Whether or not to include executions
Type: boolean
Whether or not to include executions
Type: boolean
Whether or not to include project readme/motd files
Type: boolean
Whether or not to include project SCM configuration, if authorized
Type: boolean
Whether or not to include project webhooks in the archive
Type: boolean
Whether or not to include the auth token information when exporting webhooks. If not included the auth tokens will be regenerated upon import.
Type: boolean
Bulk Delete Executions
Bulk disable job execution
Bulk disable job scheduling
Bulk enable job execution
Bulk enable job scheduling
Configure and enable a plugin for a project. The request body is expected to contain entries for all of the required input fields for the plugin. If a validation error occurs with the configuration, then the response will include detail about the errors.
Type: string
Type: string
Type: string
Type: object
{
"config" : { }
}
Create a project ACL policy. The policy should be in YAML format, wrapped into a JSON object.
Type: string
Type: string
Type: object
{
"content" : "string"
}
Create an ACL Policy. The policy should be in YAML format, wrapped into a JSON object.
Project Creation
Type: object
{
"name" : "string",
"description" : "string",
"id" : "integer",
"config" : { },
"url" : "string"
}
Create a new token for a specific user. Specify custom roles and duration if authorized.
Add A Webhook
Type: string
Type: object
{
"roles" : "string",
"name" : "string",
"project" : "string",
"eventPlugin" : "string",
"id" : "integer",
"config" : { },
"enabled" : "boolean"
}
Delete a Project ACL Policy
Delete an ACL Policy
This operation has no parameters
Delete all Executions for a Job
Bulk Job Delete
Delete an execution by ID.
Deleting a Job Definition
Delete Keys
Type: string
Potential values: readme.md, motd.md
Type: string
type of key
Type: string
Potential values: application/octet-stream, application/pgp-keys, application/x-rundeck-data-password
Remove MOTD file
Delete an existing projects on the server. Requires 'delete' authorization.
Remove README file
Delete a token
Delete a configuration key.
Delete A Webhook
Disables executions, preventing adhoc and manual and scheduled jobs from running.
This operation has no parameters
Disable Executions for a Job
Disable Scheduling for a Job
Disable SCM for a project.
Type: string
Type: string
Type: string
Enables executions, allowing adhoc and manual and scheduled jobs to be run.
This operation has no parameters
Enable Executions for a Job
Enable Scheduling for a Job
Enable SCM for a project.
Type: string
Type: string
Type: string
Export a zip archive of the project. Requires export authorization for the project. Performs the export synchronously.
Type: string
A list (comma-separated) of execution IDs. If this is specified then the archive will contain only executions that are specified, and will not contain Jobs, ACLs, or project configuration/readme files.
Type: array
[ "string" ]
Whether or not to include project ACL Policy files, if authorized
Type: boolean
Whether or not to include all project contents
Type: boolean
Whether or not to include project configuration
Type: boolean
Whether or not to include executions
Type: boolean
Whether or not to include executions
Type: boolean
Whether or not to include project readme/motd files
Type: boolean
Whether or not to include project SCM configuration, if authorized
Type: boolean
Whether or not to include project webhooks in the archive
Type: boolean
Whether or not to include the auth token information when exporting webhooks. If not included the auth tokens will be regenerated upon import.
Type: boolean
Export the job definitions for in XML or YAML formats.
Type: string
can be "xml" or "yaml" to specify the output format. Default is "xml"
Type: string
Potential values: xml, yaml
specify a group or partial group path to include all jobs within that group path.
Type: string
list of Job IDs to include
Type: array
[ "string" ]
specify a filter for the job Name.
Type: string
Get a Project ACL Policy
Retrieve the YAML text of the ACL Policy file. If YAML or text content is requested, the contents will be returned directly. Otherwise if XML or JSON is requested, the YAML text will be wrapped within that format.
This operation has no parameters
Get SCM config for a project.
GET Project Configuration
Gets the current execution mode. Additionally, if the current mode is passive the response status will be HTTP 503 - Service Unavailable.
This operation has no parameters
Get the current user's profile
This operation has no parameters
Retrieve the file diff for the Job, if there are changes for the integration. The format of the diff content depends on the specific plugin. For the Git plugins, a unified diff format is used.
Get the status for an execution by ID.
Get a forecast for a specific amount of days of the job by ID.
Type: string
Type: integer
true to return an inverse forecast, that is, considering the current scheduler, when it should have run.
Type: boolean
Time lapse to search the forecast (default is 1d). The format is "XY" where X is an integer, and "Y" is one of "s|n|h|d|w|m|y".
Type: string
Returns results of some health checks.
This operation has no parameters
Get Info About an Uploaded File
Export a single job definition in XML or YAML formats.
Get key contents or metadata. If Accept header is set to / or application/pgp-keys, public key content is returned.
Type: string
Potential values: readme.md, motd.md
Type: string
Provides the public key content if the Accept request header matches / or application/pgp-keys.
Type: string
type of key
Type: string
Potential values: application/octet-stream, application/pgp-keys, application/x-rundeck-data-password
Get Log Storage information and stats.
This operation has no parameters
Get Job Metadata
Return the metrics data.
This operation has no parameters
Execution Query Metrics
This operation has no parameters
Execution Query Metrics
Type: string
Username who aborted an execution
Type: string
If true, include only Adhoc executions, if false return only Job executions.
Type: boolean
Specify exact date for earliest execution completion time. The format for the end, and begin filters is either a unix millisecond timestamp, or a W3C dateTime string in the format "yyyy-MM-ddTHH:mm:ssZ".
Type: string
Specify exact date for latest execution completion time
Type: string
specify a group or partial group path to exclude all jobs within that group path. Set to the special value "-" to match the top level jobs only.
Type: string
specify an exact group path to exclude. Set to the special value "-" to match the top level jobs only.
Type: string
specify an exact job name to exclude.
Type: string
specify a filter for the job Name. Exclude any job name that matches this value.
Type: string
specify a Job ID to exclude, can be specified multiple times
Type: string
specify a full Job group/name to exclude, can be specified multiple times. the job's group and name separated by a '/' character, such as "group1/job name", or "my job" if there is no group.
Type: string
specify the execution type
Type: string
Potential values: scheduled, user, user-scheduled
specify a group or partial group path to include all jobs within that group path. Set to the special value "-" to match the top level jobs only.
Type: string
specify an exact group path to match. Set to the special value "-" to match the top level jobs only.
Type: string
specify an exact job name to match.
Type: string
specify a filter for the job Name. Include any job name that matches this value.
Type: string
specify a Job ID to include, can be specified multiple times
Type: string
specify a full Job group/name to include, can be specified multiple times. the job's group and name separated by a '/' character, such as "group1/job name", or "my job" if there is no group.
Type: string
(same format as recentFilter) return executions that completed before the specified relative period of time. E.g. a value of 30d returns executions older than 30 days.
Type: string
Use a simple text format to filter executions that completed within a period of time. The format is "XY" where X is an integer, and "Y" is one of h|d|w|m|y. So a value of 2w would return executions that completed within the last two weeks.
Type: string
execution status
Type: string
Potential values: running, succeeded, failed, aborted
Username who started the execution
Type: string
Get MOTD file
Get the output for an execution by ID. The execution can be currently running or may have already completed.
Type: string
if true, results will be in compacted form.
Type: boolean
output format
Type: string
Potential values: json, xml, text
number 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.
Type: integer
epoch datestamp in milliseconds, return results only if modification changed since the specified date OR if more data is available at the given offset
Type: number
maximum number of lines to retrieve forward from the specified offset.
Type: integer
byte offset to read from in the file. 0 indicates the beginning.
Type: integer
Get the output for a node in an execution by ID. The execution can be currently running or may have already completed.
Type: string
Type: string
if true, results will be in compacted form.
Type: boolean
output format
Type: string
Potential values: json, xml, text
number 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.
Type: integer
epoch datestamp in milliseconds, return results only if modification changed since the specified date OR if more data is available at the given offset
Type: number
maximum number of lines to retrieve forward from the specified offset.
Type: integer
byte offset to read from in the file. 0 indicates the beginning.
Type: integer
Get the output for a workflow step in an execution by ID. The execution can be currently running or may have already completed.
Type: string
Type: string
if true, results will be in compacted form.
Type: boolean
output format
Type: string
Potential values: json, xml, text
number 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.
Type: integer
epoch datestamp in milliseconds, return results only if modification changed since the specified date OR if more data is available at the given offset
Type: number
maximum number of lines to retrieve forward from the specified offset.
Type: integer
byte offset to read from in the file. 0 indicates the beginning.
Type: integer
Get the output for a step in a node in execution by ID. The execution can be currently running or may have already completed.
Type: string
Type: string
Type: string
if true, results will be in compacted form.
Type: boolean
output format
Type: string
Potential values: json, xml, text
number 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.
Type: integer
epoch datestamp in milliseconds, return results only if modification changed since the specified date OR if more data is available at the given offset
Type: number
maximum number of lines to retrieve forward from the specified offset.
Type: integer
byte offset to read from in the file. 0 indicates the beginning.
Type: integer
Get information about a project.
Get README file
Getting Resource Info
Type: string
Type: string
Result format. Can use "xml", "yaml" or "json", or an installed ResourceFormat plugin name.
Type: string
Get the result of an async export request.
/api/34/project/{project_id}/source/{index_id}
Get detail about the node and step state of an execution by ID. The execution can be currently running or completed.
Get the status of an async export request.
Get SCM status for a Job
Get SCM status for a project.
System Info
This operation has no parameters
Get a specified auth token.
Get another user's profile
Retrieve the value for a configuration key.
Get A Webhook
Get the workflow tree for a job. It will traverse referenced jobs to a depth of 3.
Import job definitions in XML or YAML formats.
Type: string
Type: object
{
"scheduleEnabled" : "boolean",
"scheduled" : "boolean",
"name" : "string",
"index" : "number",
"project" : "string",
"description" : "string",
"id" : "string",
"href" : "string",
"permalink" : "string",
"enabled" : "boolean",
"group" : "string"
}
Type: string
Potential values: x-www-form-urlencoded, multipart/form-data, application/xml, application/yaml
A value to indicate the behavior when importing jobs which already exist.
Type: string
Potential values: skip, create, update
Type: string
Potential values: xml, yaml
Whether to preserve or remove UUIDs from the imported jobs.
Type: string
Potential values: preserve, remove
List System ACL Policies
This operation has no parameters
List Project ACL Policies
List all tokens.
This operation has no parameters
List the event history for a project.
Type: string
Specify exact date for earliest execution completion time. The format for the end, and begin filters is either a unix millisecond timestamp, or a W3C dateTime string in the format "yyyy-MM-ddTHH:mm:ssZ".
Type: string
Specify exact date for latest execution completion time
Type: string
exclude events for the job by name, format 'group/name'. To use multiple values, include this parameter multiple times.
Type: string
Include events for a job ID.
Type: string
include events for the job by name, format 'group/name'. To use multiple values, include this parameter multiple times.
Type: string
Use a simple text format to filter executions that completed within a period of time. The format is "XY" where X is an integer, and "Y" is one of h|d|w|m|y. So a value of 2w would return executions that completed within the last two weeks.
Type: string
Include events for an event Name.
Type: string
include events based on result status.
Type: string
Potential values: succeed, fail, cancel
include events created by a user
Type: string
List executions for a job
Type: string
the status of executions you want to be returned. If this parameter is blank or unset, include all executions.
Type: string
Potential values: succeeded, failed, aborted, running
List all executions with incomplete log storage.
This operation has no parameters
List Files Uploaded for a Job
Type: string
state of file upload record
Type: string
Potential values: temp, deleted, expired, retained
Get the input fields and selectable items for a specific action.
Type: string
Type: string
Type: string
Get the input fields and selectable items for a specific action for a job.
Type: string
Type: string
Type: string
Get SCM plugin setup input fields.
Type: string
Type: string
Type: string
List Input Files for an Execution
List Installed Plugins
This operation has no parameters
List the jobs that exist for a project.
Type: string
specify a group or partial group path to include all jobs within that group path. (Default value: "*", all groups). Set to the special value "-" to match the top level jobs only
Type: string
specify an exact group path to match. Set to the special value "-" to match the top level jobs only
Type: string
list of Job IDs to include
Type: array
[ "string" ]
specify an exact job name to match.
Type: string
specify a filter for the job Name. Matches any job name that contains this value.
Type: string
specify whether to return only scheduled or only not scheduled jobs.
Type: boolean
In cluster mode, use to select scheduled jobs assigned to the server with given UUID.
Type: string
List keys
List Metrics
This operation has no parameters
List existing projects
This operation has no parameters
List all resources for a project
Type: string
url-encoded string in form of "attribute: value attribute2: value2"
Type: string
Result format. Can use "xml", "yaml" or "json", or an installed ResourceFormat plugin name.
Type: string
List Resources for a Resource Model Source
Get a list of the authenticated user's roles
This operation has no parameters
List the currently running executions for a project
Returns a dump of running JVM Threads.
This operation has no parameters
List the scheduled Jobs with their schedule owned by the target cluster server.
This operation has no parameters
List the scheduled Jobs with their schedule owned by the cluster server with the specified UUID.
List SCM plugins for a project.
List Resource Model Sources for a Project
List all tokens for a specific user.
Get a list of all the users.
This operation has no parameters
List Webhooks
Perform the action for the SCM integration plugin with a set of input parameters.
Type: string
Type: string
Type: string
Type: object
{
"input" : {
"message" : "string"
}
}
Perform the action for the SCM integration plugin, with a set of input parameters, selected Jobs, or Items, or Items to delete.
Depending on the available Input Fields for the action, the action will expect a set of input values.
The set of jobs and items to choose from will be included in the Input Fields response, however where an Item has an associated Job, you can supply either the Job ID, or the Item ID.
When there are items to be deleted on export integration, you can specify the Item IDs in the deleted section. However, if the item is associated with a renamed Job, including the Job ID will have the same effect.
When there are items to be deleted on import integration, you must specify the Job IDs in the deletedJobs section.
Type: string
Type: string
Type: string
Type: object
{
"input" : {
"message" : "string"
},
"deleted" : [ "string" ],
"jobs" : [ "string" ],
"deletedJobs" : [ "string" ],
"items" : [ "string" ]
}
Returns a simple text response.
This operation has no parameters
Update MOTD file
Update README file
Query for Executions based on Job or Execution details.
Type: string
Username who aborted an execution
Type: string
If true, include only Adhoc executions, if false return only Job executions.
Type: boolean
Specify exact date for earliest execution completion time. The format for the end, and begin filters is either a unix millisecond timestamp, or a W3C dateTime string in the format "yyyy-MM-ddTHH:mm:ssZ".
Type: string
Specify exact date for latest execution completion time
Type: string
specify a group or partial group path to exclude all jobs within that group path. Set to the special value "-" to match the top level jobs only.
Type: string
specify an exact group path to exclude. Set to the special value "-" to match the top level jobs only.
Type: string
specify an exact job name to exclude.
Type: string
specify a filter for the job Name. Exclude any job name that matches this value.
Type: string
specify a Job ID to exclude, can be specified multiple times
Type: string
specify a full Job group/name to exclude, can be specified multiple times. the job's group and name separated by a '/' character, such as "group1/job name", or "my job" if there is no group.
Type: string
specify the execution type
Type: string
Potential values: scheduled, user, user-scheduled
specify a group or partial group path to include all jobs within that group path. Set to the special value "-" to match the top level jobs only.
Type: string
specify an exact group path to match. Set to the special value "-" to match the top level jobs only.
Type: string
specify an exact job name to match.
Type: string
specify a filter for the job Name. Include any job name that matches this value.
Type: string
specify a Job ID to include, can be specified multiple times
Type: string
specify a full Job group/name to include, can be specified multiple times. the job's group and name separated by a '/' character, such as "group1/job name", or "my job" if there is no group.
Type: string
(same format as recentFilter) return executions that completed before the specified relative period of time. E.g. a value of 30d returns executions older than 30 days.
Type: string
Use a simple text format to filter executions that completed within a period of time. The format is "XY" where X is an integer, and "Y" is one of h|d|w|m|y. So a value of 2w would return executions that completed within the last two weeks.
Type: string
execution status
Type: string
Potential values: running, succeeded, failed, aborted
Username who started the execution
Type: string
Resume processing incomplete Log Storage uploads.
This operation has no parameters
Retry a Job Based on Execution
Type: string
Type: string
Type: object
{
"argString" : "argument string to pass to the job, of the form: -opt value -opt2 value ....",
"loglevel" : "argument specifying the loglevel to use",
"failedNodes" : "false to run on the same nodes as the original execution, true or empty to run only on failed nodes.",
"asUser" : "specifies a username identifying the user who ran the job. Requires runAs permission.",
"option" : { }
}
Run a command string
Type: string
Type: object
{
"filter" : "node filter string",
"nodeKeepgoing" : "if \"true\", continue executing on other nodes even if some fail.",
"nodeThreadcount" : "threadcount to use",
"exec" : "the shell command string to run, e.g. \"echo hello\".",
"asUser" : "specifies a username identifying the user who ran the command. Requires runAs permission."
}
Running a Job
Type: string
Type: object
{
"filter" : "node filter string",
"argString" : "argument string to pass to the job, of the form: -opt value -opt2 value ....",
"loglevel" : "argument specifying the loglevel to use",
"asUser" : "specifies a username identifying the user who ran the job. Requires runAs permission.",
"runAtTime" : "a time to run the job",
"option" : { }
}
Running Adhoc Scripts
Type: string
Type: object
{
"filter" : "node filter string",
"fileExtension" : "extension of the script file on the remote node",
"argString" : "Arguments to pass to the script when executed.",
"project" : "project ID",
"nodeKeepgoing" : "if \"true\", continue executing on other nodes even if some fail.",
"interpreterArgsQuoted" : "if true, the script file and arguments will be quoted as the last argument to the scriptInterpreter.",
"nodeThreadcount" : "threadcount to use",
"script" : "script contents",
"asUser" : "specifies a username identifying the user who ran the command. Requires runAs permission.",
"scriptInterpreter" : "a command to use to run the script"
}
Run a script downloaded from a URL.
Type: string
Type: object
{
"filter" : "node filter string",
"fileExtension" : "extension of the script file on the remote node",
"argString" : "Arguments to pass to the script when executed.",
"project" : "project ID",
"nodeKeepgoing" : "if \"true\", continue executing on other nodes even if some fail.",
"interpreterArgsQuoted" : "if true, the script file and arguments will be quoted as the last argument to the scriptInterpreter.",
"nodeThreadcount" : "threadcount to use",
"url" : "URL with script contents",
"asUser" : "specifies a username identifying the user who ran the command. Requires runAs permission.",
"scriptInterpreter" : "a command to use to run the script"
}
Send Webhook Event. You may post whatever data you wish to the webhook endpoint, however the plugin you are using must be able to handle the data you post. If the webhook plugin associated with the webhook can't handle the content type posted you will get an error response.
Tell a Rundeck server in cluster mode to claim all scheduled jobs from another cluster server.
This operation has no parameters
Update a project ACL policy. The policy should be in YAML format, wrapped into a JSON object.
Type: string
Type: string
Type: object
{
"content" : "string"
}
Update an ACL Policy. The policy should be in YAML format, wrapped into a JSON object.
PUT Project Configuration
Modify current user's profile
This operation has no parameters
Update Resources for a Resource Model Source
Modify another user's profile
Set the value for a configuration key.
Update A Webhook