Skip to content

Retrieve a sudo Entitlement

Request

Admin roles:
  • access_admin

Retrieves the specified sudo Entitlement

Security
bearerAuth
Path
team_namestringrequired

The name of your Team

sudo_idstringrequired

The UUID of the Sudo Entitlement

curl -i -X GET \
  'https://app.scaleft.com/v1/teams/{team_name}/entitlements/sudo/{sudo_id}' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

OK

Bodyapplication/json
add_envArray of strings or null

A list of environment variables to include when running Entitlement commands. See the sudo documentation.

descriptionstring or null, <= 255 characters

A description of the Entitlement

idstring, (regex)^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-...read-onlyrequired

The UUID of the Entitlement

namestring, (regex), [ 1 .. 255 ] characters^[\w\-_.]+$required

The name of the Entitlement

opt_no_execboolean or null

Whether to allow commands to execute child processes

opt_no_passwdboolean or null

Whether to require a password when sudo is run. This should generally not be used as Users don't require a password.

opt_run_asstring or null, (regex), [ 1 .. 64 ] characters^([%]{0,1})((([#])(\d+))|([\w\-_.]+)|((?i)[A-...

A non-root user account used to run the command

opt_set_envboolean or null

Whether to allow overriding environment variables to commands

structured_commandsArray of objects or null

A list of commands to allow

sub_envArray of strings or null

A list of environment variables to ignore when running Entitlement commands. See the sudo documentation.

Response
{ "add_env": [], "commands": null, "created_at": "2018-04-07T00:00:00Z", "description": "desc", "id": "226a1963-a1c8-4316-bb4d-da48f2e7652a", "name": "name", "opt_no_exec": false, "opt_no_passwd": true, "opt_run_as": "", "opt_set_env": false, "structured_commands": [ { … }, { … } ], "sub_env": [], "updated_at": "2018-04-07T00:00:00Z" }