Skip to content

List endpoint OIDC providers

GET
/v1/endpoint-oidc-providers

Get a paginated list of endpoint OIDC providers.

Token scope required: endpoint-oidc-providers:list

includeCounts
boolean

If true, return count of total records and current page start and count in metadata

cursor
string

Cursor value at which to start the results, provided in nextCursor or prevCursor of a prior request

Example
bmV4dA.eyJsb2dzLmNyZQ5iIiwiX3ZhbHVlIjo9In19
pageSize
integer
default: 25 <= 500

Number of records to return in each page

sortDirection
string
default: asc
Allowed values: asc desc

Order in which to return results. Each endpoint sorts on its own key (for example, hosts by name and audit logs by creation time). Matching is case-insensitive, and any value other than desc sorts ascending.

Successful operation

object
data
required
Array<object>
object
id
required
string
Example
endpointoidc-WDRO5WY4LTKA2AALKZQ2OHBSDE
organizationID
required
string
Example
org-F63A24JGCLJV3ZEUTLCBISGETA
name
required
string
Example
Corporate SSO
clientID
required
string
Example
0oa1b2c3d4e5f6g7h8i9
issuerURL
required
string format: uri
Example
https://example.okta.com
enabled
required

Whether users can enroll hosts by signing in with this provider.

boolean
networkID
required

Network that hosts enrolled through this provider join.

string
Example
network-KAOWMXZHZWCVMGGFKM22XEGYLE
roleID
required

Role assigned to hosts enrolled through this provider.

string | null
Example
role-PZEDBXHCEXKAKJPZ6XOQTIAJA4
authValidityHours
required

How long, in hours, a host keeps network access after its user signs in. null means access does not expire.

integer | null
Example
720
domainID
required

Email domain whose users may sign in with this provider.

string | null
Example
domain-3QZRDHZ5SZBQ5DBHUQE6GSMXGI
autoAssignCIDRs
required

Prefixes from which hosts enrolled through this provider are assigned addresses. Includes the network’s IPv6 prefix whenever the network has one.

array | null
Example
[
"100.100.0.0/22",
"fdef:c0:c0:1::/80"
]
metadata
required
object
totalCount

The total number of resources existing in the account. Only present when includeCounts is true.

integer
hasNextPage
required

Is there a page of data that can be fetched using the nextCursor?

boolean
hasPrevPage
required

Is there a page of data that can be fetched using the prevCursor?

boolean
nextCursor

An opaque string that can be used to fetch the next page of results. Not provided if result set is empty.

string
prevCursor

An opaque string that can be used to fetch the previous page of results. Not provided if result set is empty.

string
page

Only present when includeCounts is true.

object
count
required

The number of results returned in the response.

integer
start
required

The zero-based index of the first result within the overall list. For example, the first page will have a start of 0. If 25 results are fetched, and the nextCursor used to fetch a new page of results, the second request’s start will be 25.

integer
Example
{
"data": [
{
"id": "endpointoidc-WDRO5WY4LTKA2AALKZQ2OHBSDE",
"organizationID": "org-F63A24JGCLJV3ZEUTLCBISGETA",
"name": "Corporate SSO",
"clientID": "0oa1b2c3d4e5f6g7h8i9",
"issuerURL": "https://example.okta.com",
"enabled": true,
"networkID": "network-KAOWMXZHZWCVMGGFKM22XEGYLE",
"roleID": "role-PZEDBXHCEXKAKJPZ6XOQTIAJA4",
"authValidityHours": 720,
"domainID": "domain-3QZRDHZ5SZBQ5DBHUQE6GSMXGI",
"autoAssignCIDRs": [
"100.100.0.0/22",
"fdef:c0:c0:1::/80"
]
}
],
"metadata": {
"hasNextPage": false,
"hasPrevPage": false
}
}

The API key is missing, invalid or expired.

object
errors
required
Array<object>
object
code
required

A static name for the error type

string
message
required

A short human readable description of the error

string
path

Describes the variable missing or malformed

string
param

The query parameter the error relates to, such as filter.targetType

string
extra

Machine-readable details about the error. ERR_LIMIT_EXCEEDED errors carry limit and limitName.

object
limit

The maximum number of resources allowed

integer
limitName

The kind of resource the limit applies to

string
key
additional properties
any
Example
{
"errors": [
{
"code": "ERR_UNAUTHORIZED",
"message": "unauthorized"
}
]
}

The API key lacks a required scope.

object
errors
required
Array<object>
object
code
required

A static name for the error type

string
message
required

A short human readable description of the error

string
path

Describes the variable missing or malformed

string
param

The query parameter the error relates to, such as filter.targetType

string
extra

Machine-readable details about the error. ERR_LIMIT_EXCEEDED errors carry limit and limitName.

object
limit

The maximum number of resources allowed

integer
limitName

The kind of resource the limit applies to

string
key
additional properties
any
Examples

The API key lacks a required scope.

{
"errors": [
{
"code": "ERR_FORBIDDEN",
"message": "api key must support the following scopes: hosts:read"
}
]
}

The organization has exceeded its API request rate limit. Retry the request after a short delay.

object
errors
required
Array<object>
object
code
required

A static name for the error type

string
message
required

A short human readable description of the error

string
path

Describes the variable missing or malformed

string
param

The query parameter the error relates to, such as filter.targetType

string
extra

Machine-readable details about the error. ERR_LIMIT_EXCEEDED errors carry limit and limitName.

object
limit

The maximum number of resources allowed

integer
limitName

The kind of resource the limit applies to

string
key
additional properties
any
Example
{
"errors": [
{
"code": "ERR_TOO_MANY_REQUESTS",
"message": "too many requests"
}
]
}