Skip to content

List all servers for a team

Request

OPA roles:
  • end_user

Lists all servers in your team. This only returns servers available to the requesting user.

Security
bearerAuth
Path
team_namestringrequired

The name of your team

Query
AdServersboolean

If true, only return Active Directory servers. If false, only return Non-Active Directory servers.

alt_names_containsstring

Only return servers that contain the specified alternate name

bastionstring

Only return servers associated with the specified bastion

canonical_namestring

A canonical name

cloud_accountstring

Only return servers associated with the specified cloud account

cloud_providerstring

Only return servers associated with the specified cloud provider. Possible values: aws or gce.

countinteger, (int32)

The number of objects per page

credentialedboolean

If true, only return unmanaged servers with credential issuance enabled. If false, only return unmanaged servers with credential issuance disabled.

descendingboolean

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

hostnamestring

Only return servers that contain the specified hostname

idstring

Only return servers with the specified IDs. Only usable for PAM administrative views of servers, not end-user server views.

instance_idstring

Only return servers that contain the specified instance ID

managedboolean

If true, only return managed servers. If false, only return unmanaged servers.

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

project_namestring

Only return servers that belong to the specified project

statestring

Include servers with the specified state. Valid statuses: ACTIVE or INACTIVE.

selectorstring

Only return servers that contain the specified server selectors.

Example:selector=selector=key1=value1,key2=value2
include_labelsboolean

If true, includes server labels in the results.

Example:include_labels=true
curl -i -X GET \
  'https://{org_name}.pam.okta.com/v1/teams/{team_name}/servers?AdServers=true&alt_names_contains=string&bastion=string&canonical_name=string&cloud_account=string&cloud_provider=string&count=0&credentialed=true&descending=true&hostname=string&id=string&instance_id=string&managed=true&offset=string&prev=true&project_name=string&state=string&selector=selector%3Dkey1%3Dvalue1%2Ckey2%3Dvalue2&include_labels=true' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

OK

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