Skip to main content

sailpoint.devices.DevicesApi

Use this API to list, view, and update devices, and to get tenant-wide device counts. A device is a machine identity that represents an endpoint, such as a laptop or server, discovered from a connected source. You can update a device's owners, description, and environment; the discovered device attributes are read-only.

All URIs are relative to https://sailpoint.api.identitynow.com

MethodHTTP requestDescription
get-device-counts-v1GET /devices/v1/device-countsGet device counts
get-device-v1GET /devices/v1/{id}Get device
list-devices-v1GET /devices/v1List devices
update-device-v1PATCH /devices/v1/{id}Partial update of device

get-device-counts-v1​

experimental

This API is currently in an experimental state. The API is subject to change based on feedback and further testing. You must include the X-SailPoint-Experimental header and set it to true to use this endpoint.

setting x-sailpoint-experimental header

on the configuration object you can set the x-sailpoint-experimental header to `true' to enable all experimantl endpoints within the SDK. Example:

configuration = Configuration()
configuration.experimental = True

Get device counts This API returns tenant-wide device counts: the total number of devices, a breakdown by operating system, the average number of agents per device, and counts of devices without recent data and devices with active agents.

Because the counts cover every device in the tenant, the caller needs the idn:mis-identity:read right. Owning devices does not grant access to this API.

When Machine Identity Security is not enabled for the tenant, this API returns 404. When the devices API is not enabled for the tenant, this API returns 403.

API Spec

Parameters​

Param TypeNameData TypeRequiredDescription
x_sail_point_experimentalstr(optional) (default to 'true')Use this header to enable this experimental API.

Return type​

DeviceSummary

Responses​

CodeDescriptionData TypeResponse headers
200Device counts for the tenant.DeviceSummary-
400Client Error - Returned if the request body is invalid.ErrorResponseDto-
401Unauthorized - Returned if there is no authorization header, or if the JWT token is expired.ListDevicesV1401Response-
403Forbidden - Returned if the user you are running as, doesn't have access to this end-point.ErrorResponseDto-
404Not Found - returned if the request URL refers to a resource or object that does not existErrorResponseDto-
429Too Many Requests - Returned in response to too many requests in a given period of time - rate limited. The Retry-After header in the response includes how long to wait before trying again.ListDevicesV1429Response-
500Internal Server Error - Returned if there is an unexpected error.ErrorResponseDto-

HTTP request headers​

  • Content-Type: Not defined
  • Accept: application/json

Example​

from sailpoint.devices.api.devices_api import DevicesApi
from sailpoint.devices.api_client import ApiClient
from sailpoint.devices.models.device_summary import DeviceSummary
from sailpoint.configuration import Configuration
configuration = Configuration()

configuration.experimental = True

with ApiClient(configuration) as api_client:
x_sail_point_experimental = 'true' # str | Use this header to enable this experimental API. (optional) (default to 'true') # str | Use this header to enable this experimental API. (optional) (default to 'true')

try:
# Get device counts

results = DevicesApi(api_client).get_device_counts_v1()
# Below is a request that includes all optional parameters
# results = DevicesApi(api_client).get_device_counts_v1(x_sail_point_experimental)
print("The response of DevicesApi->get_device_counts_v1:\n")
print(results.model_dump_json(by_alias=True, indent=4))
except Exception as e:
print("Exception when calling DevicesApi->get_device_counts_v1: %s\n" % e)

[Back to top]

get-device-v1​

experimental

This API is currently in an experimental state. The API is subject to change based on feedback and further testing. You must include the X-SailPoint-Experimental header and set it to true to use this endpoint.

setting x-sailpoint-experimental header

on the configuration object you can set the x-sailpoint-experimental header to `true' to enable all experimantl endpoints within the SDK. Example:

configuration = Configuration()
configuration.experimental = True

Get device This API returns a single device by its ID.

A caller who owns the device can view it. Other callers need the idn:mis-identity:read right.

The ID must be a UUID; any other value returns 400. When no device exists for the ID, this API returns 400 for callers who hold the idn:mis-identity:read right and 404 for other callers.

When Machine Identity Security is not enabled for the tenant, this API returns 404. When the devices API is not enabled for the tenant, this API returns 403.

API Spec

Parameters​

Param TypeNameData TypeRequiredDescription
PathidstrTrueDevice ID.
x_sail_point_experimentalstr(optional) (default to 'true')Use this header to enable this experimental API.

Return type​

Device

Responses​

CodeDescriptionData TypeResponse headers
200Device object.Device-
400Client Error - Returned if the request body is invalid.ErrorResponseDto-
401Unauthorized - Returned if there is no authorization header, or if the JWT token is expired.ListDevicesV1401Response-
403Forbidden - Returned if the user you are running as, doesn't have access to this end-point.ErrorResponseDto-
404Not Found - returned if the request URL refers to a resource or object that does not existErrorResponseDto-
429Too Many Requests - Returned in response to too many requests in a given period of time - rate limited. The Retry-After header in the response includes how long to wait before trying again.ListDevicesV1429Response-
500Internal Server Error - Returned if there is an unexpected error.ErrorResponseDto-

HTTP request headers​

  • Content-Type: Not defined
  • Accept: application/json

Example​

from sailpoint.devices.api.devices_api import DevicesApi
from sailpoint.devices.api_client import ApiClient
from sailpoint.devices.models.device import Device
from sailpoint.configuration import Configuration
configuration = Configuration()

configuration.experimental = True

with ApiClient(configuration) as api_client:
id = '5be33d3e-c54d-4ed7-af73-2380543e8283' # str | Device ID. # str | Device ID.
x_sail_point_experimental = 'true' # str | Use this header to enable this experimental API. (optional) (default to 'true') # str | Use this header to enable this experimental API. (optional) (default to 'true')

try:
# Get device

results = DevicesApi(api_client).get_device_v1(id=id)
# Below is a request that includes all optional parameters
# results = DevicesApi(api_client).get_device_v1(id, x_sail_point_experimental)
print("The response of DevicesApi->get_device_v1:\n")
print(results.model_dump_json(by_alias=True, indent=4))
except Exception as e:
print("Exception when calling DevicesApi->get_device_v1: %s\n" % e)

[Back to top]

list-devices-v1​

experimental

This API is currently in an experimental state. The API is subject to change based on feedback and further testing. You must include the X-SailPoint-Experimental header and set it to true to use this endpoint.

setting x-sailpoint-experimental header

on the configuration object you can set the x-sailpoint-experimental header to `true' to enable all experimantl endpoints within the SDK. Example:

configuration = Configuration()
configuration.experimental = True

List devices This API returns a list of devices.

A caller who owns the devices can list them. Other callers need the idn:mis-identity:read right. A caller without that right must filter the request to devices they own, for example owners.primaryIdentity.id eq "me"; if any returned device is not owned by the caller, this API returns 403. In owners.primaryIdentity.id and owners.secondaryIdentity.id filters, the value me resolves to the calling identity.

Source sub-admins only see devices on the sources they manage.

When Machine Identity Security is not enabled for the tenant, this API returns 404. When the devices API is not enabled for the tenant, this API returns 403.

API Spec

Parameters​

Param TypeNameData TypeRequiredDescription
Queryfiltersstr(optional)Filter results using the standard syntax described in V3 API Standard Collection Parameters Filtering is supported for the following fields and operators: id: eq, in name: eq, in, sw nativeIdentity: eq, in, sw subtype: eq, in hostname: eq, in, sw os.type: eq, in, sw os.version: eq, in, sw sentinelVersion: eq, in, sw detectionModuleVersion: eq, in, sw email: eq, in, sw description: eq, in, sw environment: eq, in, sw datasetId: eq, in, sw resource.id: eq, in resource.type: eq, in source.id: eq, in source.name: eq, in, sw owners.primary.id: eq, in owners.primary.name: eq, in, sw owners.primaryIdentity.id: eq, in owners.primaryIdentity.name: eq, in, sw owners.secondaryIdentity.id: eq, in owners.secondaryIdentity.name: eq, in, sw owners.secondaryGovernanceGroup.id: eq, in owners.secondaryGovernanceGroup.name: eq, in, sw owners.governanceGroup.id: eq, in owners.governanceGroup.name: eq, in, sw created: gt, ge, lt, le modified: gt, ge, lt, le
Querysortersstr(optional)Sort results using the standard syntax described in V3 API Standard Collection Parameters Sorting is supported for the following fields: created, modified, name, nativeIdentity, hostname, os.type, os.version, sentinelVersion, detectionModuleVersion, email, description, environment, datasetId, resource.id, resource.type, source.name, owners.primaryIdentity.name, owners.secondaryIdentity.name, owners.secondaryGovernanceGroup.id, owners.secondaryGovernanceGroup.name, owners.governanceGroup.id, owners.governanceGroup.name
Querycountbool(optional) (default to False)If true it will populate the X-Total-Count response header with the number of results that would be returned if limit and offset were ignored. Since requesting a total count can have a performance impact, it is recommended not to send count=true if that value will not be used. See API Standard Collection Parameters for more information.
Querylimitint(optional) (default to 250)Max number of results to return. See API Standard Collection Parameters for more information.
Queryoffsetint(optional) (default to 0)Offset into the full result set. Usually specified with limit to paginate through the results. See API Standard Collection Parameters for more information.
x_sail_point_experimentalstr(optional) (default to 'true')Use this header to enable this experimental API.

Return type​

List[Device]

Responses​

CodeDescriptionData TypeResponse headers
200List of devices.List[Device]-
400Client Error - Returned if the request body is invalid.ErrorResponseDto-
401Unauthorized - Returned if there is no authorization header, or if the JWT token is expired.ListDevicesV1401Response-
403Forbidden - Returned if the user you are running as, doesn't have access to this end-point.ErrorResponseDto-
404Not Found - returned if the request URL refers to a resource or object that does not existErrorResponseDto-
429Too Many Requests - Returned in response to too many requests in a given period of time - rate limited. The Retry-After header in the response includes how long to wait before trying again.ListDevicesV1429Response-
500Internal Server Error - Returned if there is an unexpected error.ErrorResponseDto-

HTTP request headers​

  • Content-Type: Not defined
  • Accept: application/json

Example​

from sailpoint.devices.api.devices_api import DevicesApi
from sailpoint.devices.api_client import ApiClient
from sailpoint.devices.models.device import Device
from sailpoint.configuration import Configuration
configuration = Configuration()

configuration.experimental = True

with ApiClient(configuration) as api_client:
filters = 'hostname sw \"lab-\"' # str | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, in, sw* **nativeIdentity**: *eq, in, sw* **subtype**: *eq, in* **hostname**: *eq, in, sw* **os.type**: *eq, in, sw* **os.version**: *eq, in, sw* **sentinelVersion**: *eq, in, sw* **detectionModuleVersion**: *eq, in, sw* **email**: *eq, in, sw* **description**: *eq, in, sw* **environment**: *eq, in, sw* **datasetId**: *eq, in, sw* **resource.id**: *eq, in* **resource.type**: *eq, in* **source.id**: *eq, in* **source.name**: *eq, in, sw* **owners.primary.id**: *eq, in* **owners.primary.name**: *eq, in, sw* **owners.primaryIdentity.id**: *eq, in* **owners.primaryIdentity.name**: *eq, in, sw* **owners.secondaryIdentity.id**: *eq, in* **owners.secondaryIdentity.name**: *eq, in, sw* **owners.secondaryGovernanceGroup.id**: *eq, in* **owners.secondaryGovernanceGroup.name**: *eq, in, sw* **owners.governanceGroup.id**: *eq, in* **owners.governanceGroup.name**: *eq, in, sw* **created**: *gt, ge, lt, le* **modified**: *gt, ge, lt, le* (optional) # str | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, in, sw* **nativeIdentity**: *eq, in, sw* **subtype**: *eq, in* **hostname**: *eq, in, sw* **os.type**: *eq, in, sw* **os.version**: *eq, in, sw* **sentinelVersion**: *eq, in, sw* **detectionModuleVersion**: *eq, in, sw* **email**: *eq, in, sw* **description**: *eq, in, sw* **environment**: *eq, in, sw* **datasetId**: *eq, in, sw* **resource.id**: *eq, in* **resource.type**: *eq, in* **source.id**: *eq, in* **source.name**: *eq, in, sw* **owners.primary.id**: *eq, in* **owners.primary.name**: *eq, in, sw* **owners.primaryIdentity.id**: *eq, in* **owners.primaryIdentity.name**: *eq, in, sw* **owners.secondaryIdentity.id**: *eq, in* **owners.secondaryIdentity.name**: *eq, in, sw* **owners.secondaryGovernanceGroup.id**: *eq, in* **owners.secondaryGovernanceGroup.name**: *eq, in, sw* **owners.governanceGroup.id**: *eq, in* **owners.governanceGroup.name**: *eq, in, sw* **created**: *gt, ge, lt, le* **modified**: *gt, ge, lt, le* (optional)
sorters = 'hostname' # str | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **created, modified, name, nativeIdentity, hostname, os.type, os.version, sentinelVersion, detectionModuleVersion, email, description, environment, datasetId, resource.id, resource.type, source.name, owners.primaryIdentity.name, owners.secondaryIdentity.name, owners.secondaryGovernanceGroup.id, owners.secondaryGovernanceGroup.name, owners.governanceGroup.id, owners.governanceGroup.name** (optional) # str | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **created, modified, name, nativeIdentity, hostname, os.type, os.version, sentinelVersion, detectionModuleVersion, email, description, environment, datasetId, resource.id, resource.type, source.name, owners.primaryIdentity.name, owners.secondaryIdentity.name, owners.secondaryGovernanceGroup.id, owners.secondaryGovernanceGroup.name, owners.governanceGroup.id, owners.governanceGroup.name** (optional)
count = False # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [API Standard Collection Parameters](https://developer.sailpoint.com/docs/api/standard-collection-parameters) for more information. (optional) (default to False) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [API Standard Collection Parameters](https://developer.sailpoint.com/docs/api/standard-collection-parameters) for more information. (optional) (default to False)
limit = 250 # int | Max number of results to return. See [API Standard Collection Parameters](https://developer.sailpoint.com/docs/api/standard-collection-parameters) for more information. (optional) (default to 250) # int | Max number of results to return. See [API Standard Collection Parameters](https://developer.sailpoint.com/docs/api/standard-collection-parameters) for more information. (optional) (default to 250)
offset = 0 # int | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [API Standard Collection Parameters](https://developer.sailpoint.com/docs/api/standard-collection-parameters) for more information. (optional) (default to 0) # int | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [API Standard Collection Parameters](https://developer.sailpoint.com/docs/api/standard-collection-parameters) for more information. (optional) (default to 0)
x_sail_point_experimental = 'true' # str | Use this header to enable this experimental API. (optional) (default to 'true') # str | Use this header to enable this experimental API. (optional) (default to 'true')

try:
# List devices

results = DevicesApi(api_client).list_devices_v1()
# Below is a request that includes all optional parameters
# results = DevicesApi(api_client).list_devices_v1(filters, sorters, count, limit, offset, x_sail_point_experimental)
print("The response of DevicesApi->list_devices_v1:\n")
for item in results:
print(item.model_dump_json(by_alias=True, indent=4))
except Exception as e:
print("Exception when calling DevicesApi->list_devices_v1: %s\n" % e)

[Back to top]

update-device-v1​

experimental

This API is currently in an experimental state. The API is subject to change based on feedback and further testing. You must include the X-SailPoint-Experimental header and set it to true to use this endpoint.

setting x-sailpoint-experimental header

on the configuration object you can set the x-sailpoint-experimental header to `true' to enable all experimantl endpoints within the SDK. Example:

configuration = Configuration()
configuration.experimental = True

Partial update of device Use this API to update a device using a JSON Patch payload.

Patchable fields are owners, description, and environment. A patch that targets any other field, including the discovered device attributes, returns 400.

owners.primary is a single IDENTITY reference. owners.secondary holds either up to ten IDENTITY references or exactly one GOVERNANCE_GROUP reference, not both; any other combination returns 400.

A caller who owns the device can update it. Other callers need the idn:mis-identity:update right.

The ID must be a UUID; any other value returns 400. When no device exists for the ID, this API returns 400 for callers who hold the idn:mis-identity:update right and 404 for other callers.

When Machine Identity Security is not enabled for the tenant, this API returns 404. When the devices API is not enabled for the tenant, this API returns 403.

API Spec

Parameters​

Param TypeNameData TypeRequiredDescription
PathidstrTrueDevice ID.
Bodyjson_patch_operation[]JsonPatchOperationTrueA JSON of updated values JSON Patch standard.
x_sail_point_experimentalstr(optional) (default to 'true')Use this header to enable this experimental API.

Return type​

Device

Responses​

CodeDescriptionData TypeResponse headers
200Updated device object.Device-
400Client Error - Returned if the request body is invalid.ErrorResponseDto-
401Unauthorized - Returned if there is no authorization header, or if the JWT token is expired.ListDevicesV1401Response-
403Forbidden - Returned if the user you are running as, doesn't have access to this end-point.ErrorResponseDto-
404Not Found - returned if the request URL refers to a resource or object that does not existErrorResponseDto-
429Too Many Requests - Returned in response to too many requests in a given period of time - rate limited. The Retry-After header in the response includes how long to wait before trying again.ListDevicesV1429Response-
500Internal Server Error - Returned if there is an unexpected error.ErrorResponseDto-

HTTP request headers​

  • Content-Type: application/json-patch+json
  • Accept: application/json

Example​

from sailpoint.devices.api.devices_api import DevicesApi
from sailpoint.devices.api_client import ApiClient
from sailpoint.devices.models.device import Device
from sailpoint.devices.models.json_patch_operation import JsonPatchOperation
from sailpoint.configuration import Configuration
configuration = Configuration()

configuration.experimental = True

with ApiClient(configuration) as api_client:
id = '5be33d3e-c54d-4ed7-af73-2380543e8283' # str | Device ID. # str | Device ID.
json_patch_operation = '''[{"op":"replace","path":"/description","value":"Finance team laptop"}]''' # List[JsonPatchOperation] | A JSON of updated values [JSON Patch](https://tools.ietf.org/html/rfc6902) standard.
x_sail_point_experimental = 'true' # str | Use this header to enable this experimental API. (optional) (default to 'true') # str | Use this header to enable this experimental API. (optional) (default to 'true')

try:
# Partial update of device
new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation)
results = DevicesApi(api_client).update_device_v1(id=id, json_patch_operation=new_json_patch_operation)
# Below is a request that includes all optional parameters
# results = DevicesApi(api_client).update_device_v1(id, new_json_patch_operation, x_sail_point_experimental)
print("The response of DevicesApi->update_device_v1:\n")
print(results.model_dump_json(by_alias=True, indent=4))
except Exception as e:
print("Exception when calling DevicesApi->update_device_v1: %s\n" % e)

[Back to top]