Skip to content

List all workload roles

Request

OPA roles:
  • security_admin

Lists all workload roles defined for this team

Security
bearerAuth
Path
team_namestringrequired

The name of your team

Query
containsstring

Filter results to include only those that contain the specified value

countinteger, (int32)

The number of objects per page

descendingboolean

If true, results are listed in descending order. By default, results are listed in ascending order.

offsetstring

The offset value for pagination. The rel="next" and rel="prev" Link headers define the offset for subsequent or previous pages.

prevboolean

The direction of paging

curl -i -X GET \
  'https://{org_name}.pam.okta.com/v1/teams/{team_name}/workload-roles?contains=string&count=0&descending=true&offset=string&prev=true' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

OK

Bodyapplication/json
listArray of objects(WorkloadRoleWithServerUsername)

The list of workload roles

Response
{ "list": [ { … } ] }