Do I need anything special in terms of authorization to run-scripts?
I don't have any issue to run query commands through the api via web or mgmt_cli with a monitor user.
However I get this error when I try to run-script and then try to see the task-details output even if I configure the user as adminRole.
No issue If I try with the admin user
mgmt_cli run-script script "show version" --context gaia_api
Username: userapi
Password:
code: generic_err_no_permissions
errors: User doesn't have permission to perform this action
message: No Permission
add rba user userapi roles adminRole
mgmt_cli run-script script "show version" --context gaia_api
Username: userapi
Password:
task-id: 83f4a31d-94a0-4bd2-a83f-bbfb7f7985bc
mgmt_cli show task task-id "83f4a31d-94a0-4bd2-a83f-bbfb7f7985bc" --context gaia_api
Username: userapi
Password:
tasks:
- execution-time: '0.02'
last-update-time: 2023-12-27T16:03+0.00.0
progress-description: succeeded
progress-percentage: 100
start-time: 2023-12-27T16:03+0.00.0
status: succeeded
status-code: 200
task-details:
- error: L2Jpbi9zaDogL3Jlc3RfYXBpLy9ydW5TY3JpcHRUZW1wLnNoLTgzZjRhMzFkLTk0YTAtNGJkMi1hODNmLWJiZmI3Zjc5ODViYzogUGVybWlzc2lvbiBkZW5pZWQ=
output: ''
return-value: 126
task-id: 83f4a31d-94a0-4bd2-a83f-bbfb7f7985bc
task-name: /run-script
time-spent-in-queue: '0.26'