Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Dedicated Options API for Jobs #9072

Open
ranjithrajv opened this issue Apr 20, 2024 · 0 comments
Open

Feature Request: Dedicated Options API for Jobs #9072

ranjithrajv opened this issue Apr 20, 2024 · 0 comments

Comments

@ranjithrajv
Copy link

ranjithrajv commented Apr 20, 2024

Is this feature request related to a problem?

The current(v47) Rundeck API offers limited ways to access information about job options.

While job options as optional parameters (
option.OPTNAME: Option value for option named OPTNAME. If any option.OPTNAME parameters are specified, the argString value is ignored (API v18 or later).)

can be used with specific POST endpoints like

POST /api/14/job/[ID]/run
POST /api/12/job/[ID]/executions

retrieving detailed option metadata requires additional API calls or parsing job configurations. This can be cumbersome and inefficient for developers and automation tools working with Rundeck jobs.

Proposed Solution

This request proposes creating a dedicated Options API for Rundeck jobs. This API would enable programmatic retrieval of comprehensive information about the options associated with a specific job.

Alternatives Considered

  • Using optional parameters with specific POST endpoints (limited functionality and requires additional calls).
  • Parsing job configurations (complex and error-prone).

Additional Context

A dedicated Options API would:

  • Improve developer experience by providing a dedicated and efficient way to access option information.
  • Increase flexibility for automation tools and scripting to manage job options programmatically.
  • Enhance understanding of job configuration requirements through detailed option metadata.

Note:

  • Clear and concise API documentation for the new endpoint and response format is requested.
  • Authentication method (e.g., API keys, OAuth) can be discussed further.
  • Error handling with expected error codes and responses is essential.

Implementing this Options API would make Rundeck more developer-friendly and enable more powerful automation scenarios involving job options and configurations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant