Skip to content

List all projects in a resource group

Request

OPA roles:
  • resource_admin
  • delegated_resource_admin

Lists all projects in the specified resource group

Security
bearerAuth
Path
team_namestringrequired

The name of your team

resource_group_idstringrequired

The UUID of a resource group

Query
containsstring, [ 1 .. 255 ] characters

Only list projects whose name contains this substring

include_resource_countboolean

If true, includes active_resource_count and stale_resource_count for each project in the response. If omitted or false, both fields are returned as 0.

Default:false
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}/resource_groups/{resource_group_id}/projects?contains=string&include_resource_count=false&count=0&descending=true&offset=string&prev=true' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

OK

Bodyapplication/json
listArray of objects(Project)
Response
{ "list": [ { … } ] }