Skip to main content

TagsApi

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

MethodHTTP requestDescription
create-tag-v1POST /tags/v1Create tag
delete-tag-by-id-v1DELETE /tags/v1/{id}Delete tag
get-tag-by-id-v1GET /tags/v1/{id}Get tag by id
list-tags-v1GET /tags/v1List tags

create-tag-v1

Create tag This API creates new tag.

A token with API, ORG_ADMIN, CERT_ADMIN, REPORT_ADMIN, ROLE_ADMIN, ROLE_SUBADMIN, SOURCE_ADMIN, or SOURCE_SUBADMIN authority is required to call this API.

API Spec

Parameters

NameTypeDescriptionNotes
tag2Tag2

Return type

Tag2

HTTP request headers

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

Example

import { TagsApi } from 'sailpoint-api-client';
import { Configuration } from 'sailpoint-api-client';
import { Tag2 } from 'sailpoint-api-client/dist/tags/api';

const configuration = new Configuration();
const apiInstance = new TagsApi(configuration);
const tag2: Tag2 = ; //
const result = await apiInstance.createTagV1({ tag2: tag2 });
console.log(result);

[Back to top]

delete-tag-by-id-v1

Delete tag This API deletes a tag by specified id.

A token with API, ORG_ADMIN, CERT_ADMIN, REPORT_ADMIN, ROLE_ADMIN, ROLE_SUBADMIN, SOURCE_ADMIN, or SOURCE_SUBADMIN authority is required to call this API.

API Spec

Parameters

NameTypeDescriptionNotes
idstringThe ID of the object reference to delete.[default to undefined]

Return type

(empty response body)

HTTP request headers

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

Example

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

const configuration = new Configuration();
const apiInstance = new TagsApi(configuration);
const id: string = 329d96cf-3bdb-40a9-988a-b5037ab89022; // The ID of the object reference to delete.
const result = await apiInstance.deleteTagByIdV1({ id: id });
console.log(result);

[Back to top]

get-tag-by-id-v1

Get tag by id Returns a tag by its id.

A token with API, ORG_ADMIN, CERT_ADMIN, REPORT_ADMIN, ROLE_ADMIN, ROLE_SUBADMIN, SOURCE_ADMIN, or SOURCE_SUBADMIN authority is required to call this API.

API Spec

Parameters

NameTypeDescriptionNotes
idstringThe ID of the object reference to retrieve.[default to undefined]

Return type

Tag2

HTTP request headers

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

Example

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

const configuration = new Configuration();
const apiInstance = new TagsApi(configuration);
const id: string = 329d96cf-3bdb-40a9-988a-b5037ab89022; // The ID of the object reference to retrieve.
const result = await apiInstance.getTagByIdV1({ id: id });
console.log(result);

[Back to top]

list-tags-v1

List tags This API returns a list of tags.

A token with API, ORG_ADMIN, CERT_ADMIN, REPORT_ADMIN, ROLE_ADMIN, ROLE_SUBADMIN, SOURCE_ADMIN, or SOURCE_SUBADMIN authority is required to call this API.

API Spec

Parameters

NameTypeDescriptionNotes
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]
filtersstringFilter 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[optional] [default to undefined]
sortersstringSort results using the standard syntax described in V3 API Standard Collection Parameters Sorting is supported for the following fields: id, name, created, modified[optional] [default to undefined]

Return type

Array<Tag2>

HTTP request headers

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

Example

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

const configuration = new Configuration();
const apiInstance = new TagsApi(configuration);
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 filters: string = id eq "27462f54-61c7-4140-b5da-d5dbe27fc6db"; // 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* (optional)
const sorters: string = name,-modified; // 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: **id, name, created, modified** (optional)
const result = await apiInstance.listTagsV1({ });
console.log(result);

[Back to top]