Get endpoint OIDC provider
const url = 'https://api.defined.net/v1/endpoint-oidc-providers/endpointoidc-WDRO5WY4LTKA2AALKZQ2OHBSDE';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.defined.net/v1/endpoint-oidc-providers/endpointoidc-WDRO5WY4LTKA2AALKZQ2OHBSDE \ --header 'Authorization: Bearer <token>'Fetch information about a particular endpoint OIDC provider.
Token scope required: endpoint-oidc-providers:read
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Example
endpointoidc-WDRO5WY4LTKA2AALKZQ2OHBSDEResponses
Section titled “Responses”Successful operation
object
object
Whether users can enroll hosts by signing in with this provider.
Network that hosts enrolled through this provider join.
Role assigned to hosts enrolled through this provider.
How long, in hours, a host keeps network access after its user signs in. null means access
does not expire.
Email domain whose users may sign in with this provider.
Prefixes from which hosts enrolled through this provider are assigned addresses. Includes the network’s IPv6 prefix whenever the network has one.
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" ] }}The API key is missing, invalid or expired.
object
object
A static name for the error type
A short human readable description of the error
Describes the variable missing or malformed
The query parameter the error relates to, such as filter.targetType
Machine-readable details about the error. ERR_LIMIT_EXCEEDED errors carry limit and limitName.
object
The maximum number of resources allowed
The kind of resource the limit applies to
Example
{ "errors": [ { "code": "ERR_UNAUTHORIZED", "message": "unauthorized" } ]}The API key lacks a required scope.
object
object
A static name for the error type
A short human readable description of the error
Describes the variable missing or malformed
The query parameter the error relates to, such as filter.targetType
Machine-readable details about the error. ERR_LIMIT_EXCEEDED errors carry limit and limitName.
object
The maximum number of resources allowed
The kind of resource the limit applies to
Examples
The API key lacks a required scope.
{ "errors": [ { "code": "ERR_FORBIDDEN", "message": "api key must support the following scopes: hosts:read" } ]}Endpoint OIDC provider not found
object
object
A static name for the error type
A short human readable description of the error
Describes the variable missing or malformed
The query parameter the error relates to, such as filter.targetType
Machine-readable details about the error. ERR_LIMIT_EXCEEDED errors carry limit and limitName.
object
The maximum number of resources allowed
The kind of resource the limit applies to
Example
{ "errors": [ { "code": "ERR_NOT_FOUND", "message": "resource not found" } ]}The organization has exceeded its API request rate limit. Retry the request after a short delay.
object
object
A static name for the error type
A short human readable description of the error
Describes the variable missing or malformed
The query parameter the error relates to, such as filter.targetType
Machine-readable details about the error. ERR_LIMIT_EXCEEDED errors carry limit and limitName.
object
The maximum number of resources allowed
The kind of resource the limit applies to
Example
{ "errors": [ { "code": "ERR_TOO_MANY_REQUESTS", "message": "too many requests" } ]}