Skip to content

jobs list does not support json format output to file #564

@jimr6007

Description

@jimr6007

rd-cli 2.0.8

rd jobs list --project my-project -J < ...the job id... > -f ./bro.json -F json

Error: The format is not valid: json
[code: api.error.item.unsupported-format; APIv50]
Request failed: 406 Not Acceptable

yaml and of course xml no problem but not json

direct call to api via curl works fine:
https://docs.rundeck.com/docs/api/#getting-a-job-definition

curl --insecure -Ss -X GET https://localhost:4443/api/47/job/$job_id
--header 'X-Rundeck-Auth-Token:'"$TOKEN" --header 'Accept: application/json'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions