Skip to content

Retrieve a workload role

Request

OPA roles:
  • security_admin

Retrieves a workload role by its ID

Security
bearerAuth
Path
team_namestringrequired

The name of your team

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

The ID of the workload role

Example:a747a818-a4c4-4446-8a87-704216495a08
curl -i -X GET \
  'https://{org_name}.pam.okta.com/v1/teams/{team_name}/workload-roles/a747a818-a4c4-4446-8a87-704216495a08' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

OK

Bodyapplication/json
created_atstring, (date-time)read-only

Timestamp that indicates when the workload role was created

created_byobject(NamedObject)

A reference to an object that has its ID, name and type

descriptionstringrequired

A brief description of the workload role

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

The ID of the workload role

Example:"a747a818-a4c4-4446-8a87-704216495a08"
namestringrequired

The name of the workload role

requirementsArray of objects, [ 1 .. 20 ] items(WorkloadRoleRequirement)required

Defines the identity attribute requirements that a workload must satisfy to be authorized for this role

updated_atstring, (date-time)read-only

Timestamp that indicates when the workload role was last updated

updated_byobject(NamedObject)

A reference to an object that has its ID, name and type

linux_server_usernamestringrequired

The username for the Linux server

Response
{ "created_at": "2019-08-24T14:15:22Z", "created_by": { "id": "string", "missing": false, "name": "string", "type": "active_directory_connection" }, "description": "string", "id": "a747a818-a4c4-4446-8a87-704216495a08", "name": "string", "requirements": [ { … } ], "updated_at": "2019-08-24T14:15:22Z", "updated_by": { "id": "string", "missing": false, "name": "string", "type": "active_directory_connection" }, "linux_server_username": "string" }