Okta Privileged Access
/- Retrieve a sudo command bundle
List all sudo command bundles
Create a sudo command bundle
Update a sudo command bundle
Delete a sudo command bundle
Retrieve a sudo command b...
OPA roles:
- resource_admin
- security_admin
- delegated_security_admin
Retrieves a specified sudo command bundle
Security
bearerAuth
- Production serverhttps://{org_name}.pam.okta.com/v1/teams/{team_name}/sudo_command_bundles/{sudo_command_bundle_id}
curl -i -X GET \
'https://{org_name}.pam.okta.com/v1/teams/{team_name}/sudo_command_bundles/{sudo_command_bundle_id}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'OK
A list of environment variables to include when running sudo commands. See the sudo documentation.
A timestamp indicating when the sudo command bundle was created
Example:"2022-08-25T00:00:00Z"
The UUID of the sudo command bundle
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.
A timestamp indicating when the sudo command bundle was last updated
Example:"2022-08-25T00:00:00Z"
Response
{ "id": "3a064d89-2984-47aa-bbda-91d637f09b8c", "created_at": "2024-07-29T17:52:05.898261Z", "created_by": "some-user", "updated_at": "2024-07-29T17:52:05.898261Z", "updated_by": "some-user", "name": "create_directories", "description": null, "structured_commands": [ { … } ], "run_as": "", "no_passwd": true, "no_exec": false, "set_env": false, "add_env": null, "sub_env": null }