Okta Privileged Access
//
Update a sudo command bun...
OPA roles:
- resource_admin
Updates a specified sudo command bundle. You cannot modify a sudo command bundle that's referenced by an Okta Privileged Access security policy.
Security
bearerAuth
A list of environment variables to include when running sudo commands. See the sudo documentation.
The name of the sudo command bundle. This controls the ordering of all bundles within your team. See Sudo Command Bundle.
Whether to require a password when sudo is run. This should generally not be used as users don't require a password.
Default:true
run_asstring or null, (regex), [ 1 .. 64 ] characters^([%]{0,1})((([#])(\d+))|([\w\-_.]+)|((?i)[A-...
A non-root user account used to run the command
A list of environment variables to ignore when running the commands. See the sudo documentation.
- Production serverhttps://{org_name}.pam.okta.com/v1/teams/{team_name}/sudo_command_bundles/{sudo_command_bundle_id}
curl -i -X PUT \
'https://{org_name}.pam.okta.com/v1/teams/{team_name}/sudo_command_bundles/{sudo_command_bundle_id}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"name": "create_directories",
"description": "can be empty",
"structured_commands": [
{
"command_type": "executable",
"command": "/bin/mkdir",
"args_type": "any"
}
],
"no_passwd": true,
"no_exec": false,
"set_env": false,
"add_env": null,
"sub_env": null
}'