Skip to main content

SourceUsagesApi

Use this API to implement source usage insight functionality. With this functionality in place, administrators can gather information and insights about how their tenants' sources are being used. This allows organizations to get the information they need to start optimizing and securing source usage.

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

MethodHTTP requestDescription
get-status-by-source-id-v1GET /source-usages/v1/{sourceId}/statusFinds status of source usage
get-usages-by-source-id-v1GET /source-usages/v1/{sourceId}/summariesReturns source usage insights

get-status-by-source-id-v1

Finds status of source usage This API returns the status of the source usage insights setup by IDN source ID.

API Spec

Parameters

NameTypeDescriptionNotes
sourceIdstringID of IDN source[default to undefined]

Return type

Sourceusagestatus

HTTP request headers

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

Example

import { SourceUsagesApi } from 'sailpoint-api-client';
import { Configuration } from 'sailpoint-api-client';

const configuration = new Configuration();
const apiInstance = new SourceUsagesApi(configuration);
const sourceId: string = 2c9180835d191a86015d28455b4a2329; // ID of IDN source
const result = await apiInstance.getStatusBySourceIdV1({ sourceId: sourceId });
console.log(result);

[Back to top]

get-usages-by-source-id-v1

Returns source usage insights This API returns a summary of source usage insights for past 12 months.

API Spec

Parameters

NameTypeDescriptionNotes
sourceIdstringID of IDN source[default to undefined]
limitnumberMax number of results to return. See V3 API Standard Collection Parameters for more information.[optional] [default to 250]
offsetnumberOffset into the full result set. Usually specified with limit to paginate through the results. See V3 API Standard Collection Parameters for more information.[optional] [default to 0]
countbooleanIf 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 V3 API Standard Collection Parameters for more information.[optional] [default to false]
sortersstringSort results using the standard syntax described in V3 API Standard Collection Parameters Sorting is supported for the following fields: date[optional] [default to undefined]

Return type

Array<Sourceusage>

HTTP request headers

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

Example

import { SourceUsagesApi } from 'sailpoint-api-client';
import { Configuration } from 'sailpoint-api-client';

const configuration = new Configuration();
const apiInstance = new SourceUsagesApi(configuration);
const sourceId: string = 2c9180835d191a86015d28455b4a2329; // ID of IDN source
const limit: number = 250; // Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional)
const offset: number = 0; // Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional)
const count: boolean = true; // 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&#x3D;true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional)
const sorters: string = -date; // 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: **date** (optional)
const result = await apiInstance.getUsagesBySourceIdV1({ sourceId: sourceId });
console.log(result);

[Back to top]