sailpoint.entitlements.EntitlementsApi
All URIs are relative to https://sailpoint.api.identitynow.com
Add metadata to an entitlementv1.
Add single Access Model Metadata to an entitlementv1.
API Spec
Parameters
| Param Type | Name | Data Type | Required | Description |
|---|
| Path | id | str | True | The entitlementv1 id. |
| Path | attribute_key | str | True | Technical name of the Attribute. |
| Path | attribute_value | str | True | Technical name of the Attribute Value. |
Return type
Entitlementv1
Responses
| Code | Description | Data Type | Response headers |
|---|
| 201 | Created | Entitlementv1 | - |
| 400 | Client Error - Returned if the request body is invalid. | Errorresponsedto | - |
| 401 | Unauthorized - Returned if there is no authorization header, or if the JWT token is expired. | ListEntitlementsV1401Response | - |
| 403 | Forbidden - Returned if the user you are running as, doesn't have access to this end-point. | Errorresponsedto | - |
| 429 | Too 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. | ListEntitlementsV1429Response | - |
| 500 | Internal Server Error - Returned if there is an unexpected error. | Errorresponsedto | - |
- Content-Type: Not defined
- Accept: application/json
Example
from sailpoint.entitlements.api.entitlements_api import EntitlementsApi
from sailpoint.entitlements.api_client import ApiClient
from sailpoint.entitlements.models.entitlementv1 import Entitlementv1
from sailpoint.configuration import Configuration
configuration = Configuration()
with ApiClient(configuration) as api_client:
id = '2c91808c74ff913f0175097daa9d59cd'
attribute_key = 'iscPrivacy'
attribute_value = 'public'
try:
results = EntitlementsApi(api_client).create_access_model_metadata_for_entitlement_v1(id=id, attribute_key=attribute_key, attribute_value=attribute_value)
print("The response of EntitlementsApi->create_access_model_metadata_for_entitlement_v1:\n")
print(results.model_dump_json(by_alias=True, indent=4))
except Exception as e:
print("Exception when calling EntitlementsApi->create_access_model_metadata_for_entitlement_v1: %s\n" % e)
[Back to top]
Remove metadata from an entitlementv1.
Remove single Access Model Metadata from an entitlementv1.
API Spec
Parameters
| Param Type | Name | Data Type | Required | Description |
|---|
| Path | id | str | True | The entitlementv1 id. |
| Path | attribute_key | str | True | Technical name of the Attribute. |
| Path | attribute_value | str | True | Technical name of the Attribute Value. |
Return type
(empty response body)
Responses
| Code | Description | Data Type | Response headers |
|---|
| 200 | OK | | - |
| 400 | Client Error - Returned if the request body is invalid. | Errorresponsedto | - |
| 401 | Unauthorized - Returned if there is no authorization header, or if the JWT token is expired. | ListEntitlementsV1401Response | - |
| 403 | Forbidden - Returned if the user you are running as, doesn't have access to this end-point. | Errorresponsedto | - |
| 429 | Too 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. | ListEntitlementsV1429Response | - |
| 500 | Internal Server Error - Returned if there is an unexpected error. | Errorresponsedto | - |
- Content-Type: Not defined
- Accept: application/json
Example
from sailpoint.entitlements.api.entitlements_api import EntitlementsApi
from sailpoint.entitlements.api_client import ApiClient
from sailpoint.configuration import Configuration
configuration = Configuration()
with ApiClient(configuration) as api_client:
id = '2c91808c74ff913f0175097daa9d59cd'
attribute_key = 'iscPrivacy'
attribute_value = 'public'
try:
EntitlementsApi(api_client).delete_access_model_metadata_from_entitlement_v1(id=id, attribute_key=attribute_key, attribute_value=attribute_value)
except Exception as e:
print("Exception when calling EntitlementsApi->delete_access_model_metadata_from_entitlement_v1: %s\n" % e)
[Back to top]
get-entitlement-request-config-v1
Get entitlementv1 request config
This API returns the entitlementv1 request config for a specified entitlementv1.
API Spec
Parameters
| Param Type | Name | Data Type | Required | Description |
|---|
| Path | id | str | True | Entitlementv1 Id |
Return type
Entitlementrequestconfig
Responses
| Code | Description | Data Type | Response headers |
|---|
| 200 | An Entitlementv1 Request Config | Entitlementrequestconfig | - |
| 400 | Client Error - Returned if the request body is invalid. | Errorresponsedto | - |
| 401 | Unauthorized - Returned if there is no authorization header, or if the JWT token is expired. | ListEntitlementsV1401Response | - |
| 403 | Forbidden - Returned if the user you are running as, doesn't have access to this end-point. | Errorresponsedto | - |
| 404 | Not Found - returned if the request URL refers to a resource or object that does not exist | Errorresponsedto | - |
| 429 | Too 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. | ListEntitlementsV1429Response | - |
| 500 | Internal Server Error - Returned if there is an unexpected error. | Errorresponsedto | - |
- Content-Type: Not defined
- Accept: application/json
Example
from sailpoint.entitlements.api.entitlements_api import EntitlementsApi
from sailpoint.entitlements.api_client import ApiClient
from sailpoint.entitlements.models.entitlementrequestconfig import Entitlementrequestconfig
from sailpoint.configuration import Configuration
configuration = Configuration()
with ApiClient(configuration) as api_client:
id = '2c91808874ff91550175097daaec161c'
try:
results = EntitlementsApi(api_client).get_entitlement_request_config_v1(id=id)
print("The response of EntitlementsApi->get_entitlement_request_config_v1:\n")
print(results.model_dump_json(by_alias=True, indent=4))
except Exception as e:
print("Exception when calling EntitlementsApi->get_entitlement_request_config_v1: %s\n" % e)
[Back to top]
get-entitlement-v1
Get an entitlementv1
This API returns an entitlementv1 by its ID.
API Spec
Parameters
| Param Type | Name | Data Type | Required | Description |
|---|
| Path | id | str | True | The entitlementv1 ID |
Return type
Entitlementv2
Responses
| Code | Description | Data Type | Response headers |
|---|
| 200 | An entitlementv1 | Entitlementv2 | - |
| 400 | Client Error - Returned if the request body is invalid. | Errorresponsedto | - |
| 401 | Unauthorized - Returned if there is no authorization header, or if the JWT token is expired. | ListEntitlementsV1401Response | - |
| 403 | Forbidden - Returned if the user you are running as, doesn't have access to this end-point. | Errorresponsedto | - |
| 404 | Not Found - returned if the request URL refers to a resource or object that does not exist | Errorresponsedto | - |
| 429 | Too 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. | ListEntitlementsV1429Response | - |
| 500 | Internal Server Error - Returned if there is an unexpected error. | Errorresponsedto | - |
- Content-Type: Not defined
- Accept: application/json
Example
from sailpoint.entitlements.api.entitlements_api import EntitlementsApi
from sailpoint.entitlements.api_client import ApiClient
from sailpoint.entitlements.models.entitlementv2 import Entitlementv2
from sailpoint.configuration import Configuration
configuration = Configuration()
with ApiClient(configuration) as api_client:
id = '2c91808874ff91550175097daaec161c'
try:
results = EntitlementsApi(api_client).get_entitlement_v1(id=id)
print("The response of EntitlementsApi->get_entitlement_v1:\n")
print(results.model_dump_json(by_alias=True, indent=4))
except Exception as e:
print("Exception when calling EntitlementsApi->get_entitlement_v1: %s\n" % e)
[Back to top]
import-entitlements-by-source-v1
This endpoint has been deprecated and may be replaced or removed in future versions of the API.
Aggregate entitlements
Starts an entitlementv1 aggregation on the specified source. Though this endpoint has been deprecated, you can find its Beta equivalent here.
If the target source is a direct connection, then the request body must be empty. You will also need to make sure the Content-Type header is not set. If you set the Content-Type header without specifying a body, then you will receive a 500 error.
If the target source is a delimited file source, then the CSV file needs to be included in the request body. You will also need to set the Content-Type header to multipart/form-data.
API Spec
Parameters
| Param Type | Name | Data Type | Required | Description |
|---|
| Path | id | str | True | Source Id |
| csv_file | bytearray | (optional) | The CSV file containing the source entitlements to aggregate. | |
Return type
Loadentitlementtask
Responses
| Code | Description | Data Type | Response headers |
|---|
| 202 | Aggregate Entitlements Task | Loadentitlementtask | - |
| 400 | Client Error - Returned if the request body is invalid. | Errorresponsedto | - |
| 401 | Unauthorized - Returned if there is no authorization header, or if the JWT token is expired. | ListEntitlementsV1401Response | - |
| 403 | Forbidden - Returned if the user you are running as, doesn't have access to this end-point. | Errorresponsedto | - |
| 429 | Too 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. | ListEntitlementsV1429Response | - |
| 500 | Internal Server Error - Returned if there is an unexpected error. | Errorresponsedto | - |
- Content-Type: multipart/form-data
- Accept: application/json
Example
from sailpoint.entitlements.api.entitlements_api import EntitlementsApi
from sailpoint.entitlements.api_client import ApiClient
from sailpoint.entitlements.models.loadentitlementtask import Loadentitlementtask
from sailpoint.configuration import Configuration
configuration = Configuration()
with ApiClient(configuration) as api_client:
id = 'ef38f94347e94562b5bb8424a56397d8'
csv_file = None
try:
results = EntitlementsApi(api_client).import_entitlements_by_source_v1(id=id)
print("The response of EntitlementsApi->import_entitlements_by_source_v1:\n")
print(results.model_dump_json(by_alias=True, indent=4))
except Exception as e:
print("Exception when calling EntitlementsApi->import_entitlements_by_source_v1: %s\n" % e)
[Back to top]
list-entitlement-children-v1
List of entitlements children
This API returns a list of all child entitlements of a given entitlementv1.
API Spec
Parameters
| Param Type | Name | Data Type | Required | Description |
|---|
| Path | id | str | True | Entitlementv1 Id |
| Query | limit | int | (optional) (default to 250) | Max number of results to return. See V3 API Standard Collection Parameters for more information. |
| Query | offset | int | (optional) (default to 0) | Offset into the full result set. Usually specified with limit to paginate through the results. See V3 API Standard Collection Parameters for more information. |
| Query | count | bool | (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 V3 API Standard Collection Parameters for more information. |
| Query | search_after | str | (optional) | Used to begin the search window at the values specified. This parameter consists of the last values of the sorted fields in the current record set. searchAfter length must match the number of sorters. This is used to expand the Elasticsearch limit of 10K records by shifting the 10K window to begin at this value. It is recommended that you always include the ID of the object in addition to any other fields on this parameter in order to ensure you don't get duplicate results while paging. For example, if you are sorting by name you will also want to include ID, for example searchAfter=Account Payable,2c91808375d8e80a0175e1f88a575221&sorters=name,id. If the last entitlementv1 ID in the search result is 2c91808375d8e80a0175e1f88a575221 and the last name is "Account Payable", then using that name and ID will start a new search after this entitlementv1. |
| Query | sorters | str | (optional) | Sort results using the standard syntax described in V3 API Standard Collection Parameters Sorting is supported for the following fields: id, name, created, modified, type, attribute, value, source.id, requestable |
| Query | filters | str | (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 type: eq, in attribute: eq, in value: eq, in, sw source.id: eq, in requestable: eq created: gt, lt, ge, le modified: gt, lt, ge, le owner.id: eq, in tags: eq privilegeLevel.direct: eq |
Return type
List[Entitlementv2]
Responses
| Code | Description | Data Type | Response headers |
|---|
| 200 | List of entitlements children from an entitlementv1 | List[Entitlementv2] | - |
| 400 | Client Error - Returned if the request body is invalid. | Errorresponsedto | - |
| 401 | Unauthorized - Returned if there is no authorization header, or if the JWT token is expired. | ListEntitlementsV1401Response | - |
| 403 | Forbidden - Returned if the user you are running as, doesn't have access to this end-point. | Errorresponsedto | - |
| 404 | Not Found - returned if the request URL refers to a resource or object that does not exist | Errorresponsedto | - |
| 429 | Too 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. | ListEntitlementsV1429Response | - |
| 500 | Internal Server Error - Returned if there is an unexpected error. | Errorresponsedto | - |
- Content-Type: Not defined
- Accept: application/json
Example
from sailpoint.entitlements.api.entitlements_api import EntitlementsApi
from sailpoint.entitlements.api_client import ApiClient
from sailpoint.entitlements.models.entitlementv2 import Entitlementv2
from sailpoint.configuration import Configuration
configuration = Configuration()
with ApiClient(configuration) as api_client:
id = '2c91808874ff91550175097daaec161c'
limit = 250
offset = 0
count = False
search_after = 'Account Payable,2c91808375d8e80a0175e1f88a575221'
sorters = 'name,id'
filters = 'attribute eq \"memberOf\"'
try:
results = EntitlementsApi(api_client).list_entitlement_children_v1(id=id)
print("The response of EntitlementsApi->list_entitlement_children_v1:\n")
for item in results:
print(item.model_dump_json(by_alias=True, indent=4))
except Exception as e:
print("Exception when calling EntitlementsApi->list_entitlement_children_v1: %s\n" % e)
[Back to top]
list-entitlement-parents-v1
List of entitlements parents
This API returns a list of all parent entitlements of a given entitlementv1.
API Spec
Parameters
| Param Type | Name | Data Type | Required | Description |
|---|
| Path | id | str | True | Entitlementv1 Id |
| Query | limit | int | (optional) (default to 250) | Max number of results to return. See V3 API Standard Collection Parameters for more information. |
| Query | offset | int | (optional) (default to 0) | Offset into the full result set. Usually specified with limit to paginate through the results. See V3 API Standard Collection Parameters for more information. |
| Query | count | bool | (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 V3 API Standard Collection Parameters for more information. |
| Query | search_after | str | (optional) | Used to begin the search window at the values specified. This parameter consists of the last values of the sorted fields in the current record set. searchAfter length must match the number of sorters. This is used to expand the Elasticsearch limit of 10K records by shifting the 10K window to begin at this value. It is recommended that you always include the ID of the object in addition to any other fields on this parameter in order to ensure you don't get duplicate results while paging. For example, if you are sorting by name you will also want to include ID, for example searchAfter=Account Payable,2c91808375d8e80a0175e1f88a575221&sorters=name,id. If the last entitlementv1 ID in the search result is 2c91808375d8e80a0175e1f88a575221 and the last name is "Account Payable", then using that name and ID will start a new search after this entitlementv1. |
| Query | sorters | str | (optional) | Sort results using the standard syntax described in V3 API Standard Collection Parameters Sorting is supported for the following fields: id, name, created, modified, type, attribute, value, source.id, requestable |
| Query | filters | str | (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 type: eq, in attribute: eq, in value: eq, in, sw source.id: eq, in requestable: eq created: gt, lt, ge, le modified: gt, lt, ge, le owner.id: eq, in tags: eq privilegeLevel.direct: eq |
Return type
List[Entitlementv2]
Responses
| Code | Description | Data Type | Response headers |
|---|
| 200 | List of entitlements parents from an entitlementv1 | List[Entitlementv2] | - |
| 400 | Client Error - Returned if the request body is invalid. | Errorresponsedto | - |
| 401 | Unauthorized - Returned if there is no authorization header, or if the JWT token is expired. | ListEntitlementsV1401Response | - |
| 403 | Forbidden - Returned if the user you are running as, doesn't have access to this end-point. | Errorresponsedto | - |
| 404 | Not Found - returned if the request URL refers to a resource or object that does not exist | Errorresponsedto | - |
| 429 | Too 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. | ListEntitlementsV1429Response | - |
| 500 | Internal Server Error - Returned if there is an unexpected error. | Errorresponsedto | - |
- Content-Type: Not defined
- Accept: application/json
Example
from sailpoint.entitlements.api.entitlements_api import EntitlementsApi
from sailpoint.entitlements.api_client import ApiClient
from sailpoint.entitlements.models.entitlementv2 import Entitlementv2
from sailpoint.configuration import Configuration
configuration = Configuration()
with ApiClient(configuration) as api_client:
id = '2c91808c74ff913f0175097daa9d59cd'
limit = 250
offset = 0
count = False
search_after = 'Account Payable,2c91808375d8e80a0175e1f88a575221'
sorters = 'name,id'
filters = 'attribute eq \"memberOf\"'
try:
results = EntitlementsApi(api_client).list_entitlement_parents_v1(id=id)
print("The response of EntitlementsApi->list_entitlement_parents_v1:\n")
for item in results:
print(item.model_dump_json(by_alias=True, indent=4))
except Exception as e:
print("Exception when calling EntitlementsApi->list_entitlement_parents_v1: %s\n" % e)
[Back to top]
list-entitlements-by-account-v1
Get entitlements for an account
This API returns a list of all entitlements associated with the given account ID. The account must exist; if not found, the API returns 404.
API Spec
Parameters
| Param Type | Name | Data Type | Required | Description |
|---|
| Path | account_id | str | True | The account ID to get entitlements for |
| Query | limit | int | (optional) (default to 250) | Max number of results to return. See V3 API Standard Collection Parameters for more information. |
| Query | offset | int | (optional) (default to 0) | Offset into the full result set. Usually specified with limit to paginate through the results. See V3 API Standard Collection Parameters for more information. |
| Query | count | bool | (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 V3 API Standard Collection Parameters for more information. |
| Query | search_after | str | (optional) | Used to begin the search window at the values specified. This parameter consists of the last values of the sorted fields in the current record set. searchAfter length must match the number of sorters. This is used to expand the Elasticsearch limit of 10K records by shifting the 10K window to begin at this value. It is recommended that you always include the ID of the object in addition to any other fields on this parameter in order to ensure you don't get duplicate results while paging. For example, if you are sorting by name you will also want to include ID, for example searchAfter=Account Payable,2c91808375d8e80a0175e1f88a575221&sorters=name,id. If the last entitlementv1 ID in the search result is 2c91808375d8e80a0175e1f88a575221 and the last name is "Account Payable", then using that name and ID will start a new search after this entitlementv1. |
| Query | sorters | str | (optional) | Sort results using the standard syntax described in V3 API Standard Collection Parameters Sorting is supported for the following fields: id, name, created, modified, type, attribute, value, source.id, requestable |
Return type
List[Entitlementv2]
Responses
| Code | Description | Data Type | Response headers |
|---|
| 200 | List of entitlements for the account | List[Entitlementv2] | * total-count - Total number of results (when count is requested). |
| 400 | Client Error - Returned if the request body is invalid. | Errorresponsedto | - |
| 401 | Unauthorized - Returned if there is no authorization header, or if the JWT token is expired. | ListEntitlementsV1401Response | - |
| 403 | Forbidden - Returned if the user you are running as, doesn't have access to this end-point. | Errorresponsedto | - |
| 404 | Not Found - returned if the request URL refers to a resource or object that does not exist | Errorresponsedto | - |
| 429 | Too 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. | ListEntitlementsV1429Response | - |
| 500 | Internal Server Error - Returned if there is an unexpected error. | Errorresponsedto | - |
- Content-Type: Not defined
- Accept: application/json
Example
from sailpoint.entitlements.api.entitlements_api import EntitlementsApi
from sailpoint.entitlements.api_client import ApiClient
from sailpoint.entitlements.models.entitlementv2 import Entitlementv2
from sailpoint.configuration import Configuration
configuration = Configuration()
with ApiClient(configuration) as api_client:
account_id = 'ef38f94347e94562b5bb8424a56397d8'
limit = 250
offset = 0
count = False
search_after = 'Account Payable,2c91808375d8e80a0175e1f88a575221'
sorters = 'name,id'
try:
results = EntitlementsApi(api_client).list_entitlements_by_account_v1(account_id=account_id)
print("The response of EntitlementsApi->list_entitlements_by_account_v1:\n")
for item in results:
print(item.model_dump_json(by_alias=True, indent=4))
except Exception as e:
print("Exception when calling EntitlementsApi->list_entitlements_by_account_v1: %s\n" % e)
[Back to top]
list-entitlements-v1
Gets a list of entitlements.
This API returns a list of entitlements. Any authenticated token can call this API.
API Spec
Parameters
| Param Type | Name | Data Type | Required | Description |
|---|
| Query | segmented_for_identity | str | (optional) | If present and not empty, additionally filters Entitlements to those which are assigned to the Segment(s) which are visible to the Identity with the specified ID. |
| Query | for_segment_ids | str | (optional) | If present and not empty, additionally filters Access Profiles to those which are assigned to the Segment(s) with the specified IDs. |
| Query | include_unsegmented | bool | (optional) (default to True) | Whether or not the response list should contain unsegmented Entitlements. If for-segment-ids and segmented-for-identity are both absent or empty, specifying include-unsegmented=false results in an error. |
| Query | offset | int | (optional) (default to 0) | Offset into the full result set. Usually specified with limit to paginate through the results. See V3 API Standard Collection Parameters for more information. |
| Query | limit | int | (optional) (default to 250) | Max number of results to return. See V3 API Standard Collection Parameters for more information. |
| Query | count | bool | (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 V3 API Standard Collection Parameters for more information. |
| Query | search_after | str | (optional) | Used to begin the search window at the values specified. This parameter consists of the last values of the sorted fields in the current record set. searchAfter length must match the number of sorters. This is used to expand the Elasticsearch limit of 10K records by shifting the 10K window to begin at this value. It is recommended that you always include the ID of the object in addition to any other fields on this parameter in order to ensure you don't get duplicate results while paging. For example, if you are sorting by name you will also want to include ID, for example searchAfter=Account Payable,2c91808375d8e80a0175e1f88a575221&sorters=name,id. If the last entitlementv1 ID in the search result is 2c91808375d8e80a0175e1f88a575221 and the last name is "Account Payable", then using that name and ID will start a new search after this entitlementv1. |
| Query | sorters | str | (optional) | Sort results using the standard syntax described in V3 API Standard Collection Parameters Sorting is supported for the following fields: id, name, created, modified, type, attribute, value, source.id, requestable |
| Query | filters | str | (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 type: eq, in attribute: eq, in value: eq, in, sw source.id: eq, in requestable: eq created: gt, lt, ge, le modified: gt, lt, ge, le owner.id: eq, in tags: eq privilegeLevel.direct: eq |
Return type
List[Entitlementv2]
Responses
| Code | Description | Data Type | Response headers |
|---|
| 200 | List of entitlements | List[Entitlementv2] | - |
| 400 | Client Error - Returned if the request body is invalid. | Errorresponsedto | - |
| 401 | Unauthorized - Returned if there is no authorization header, or if the JWT token is expired. | ListEntitlementsV1401Response | - |
| 403 | Forbidden - Returned if the user you are running as, doesn't have access to this end-point. | Errorresponsedto | - |
| 429 | Too 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. | ListEntitlementsV1429Response | - |
| 500 | Internal Server Error - Returned if there is an unexpected error. | Errorresponsedto | - |
- Content-Type: Not defined
- Accept: application/json
Example
from sailpoint.entitlements.api.entitlements_api import EntitlementsApi
from sailpoint.entitlements.api_client import ApiClient
from sailpoint.entitlements.models.entitlementv2 import Entitlementv2
from sailpoint.configuration import Configuration
configuration = Configuration()
with ApiClient(configuration) as api_client:
segmented_for_identity = 'e554098913544630b5985e9042f5e44b'
for_segment_ids = '041727d4-7d95-4779-b891-93cf41e98249,a378c9fa-bae5-494c-804e-a1e30f69f649'
include_unsegmented = True
offset = 0
limit = 250
count = False
search_after = 'Account Payable,2c91808375d8e80a0175e1f88a575221'
sorters = 'name,id'
filters = 'attribute eq \"memberOf\"'
try:
results = EntitlementsApi(api_client).list_entitlements_v1()
print("The response of EntitlementsApi->list_entitlements_v1:\n")
for item in results:
print(item.model_dump_json(by_alias=True, indent=4))
except Exception as e:
print("Exception when calling EntitlementsApi->list_entitlements_v1: %s\n" % e)
[Back to top]
patch-entitlement-v1
Patch an entitlementv1
This API updates an existing entitlementv1 using JSON Patch syntax.
The following fields are patchable: requestable, segments, privilegeOverride/level, owner, name, description, and manuallyUpdatedFields
When you're patching owner, only owner type and owner id must be provided. Owner name is optional, and it won't be modified. If the owner name is provided, it should correspond to the real name. The only owner type currently supported is IDENTITY.
API Spec
Parameters
| Param Type | Name | Data Type | Required | Description |
|---|
| Path | id | str | True | ID of the entitlementv1 to patch |
| Body | jsonpatchoperation | []Jsonpatchoperation | (optional) | |
Return type
Entitlementv2
Responses
| Code | Description | Data Type | Response headers |
|---|
| 200 | Responds with the entitlementv1 as updated. | Entitlementv2 | - |
| 400 | Client Error - Returned if the request body is invalid. | Errorresponsedto | - |
| 401 | Unauthorized - Returned if there is no authorization header, or if the JWT token is expired. | ListEntitlementsV1401Response | - |
| 403 | Forbidden - Returned if the user you are running as, doesn't have access to this end-point. | Errorresponsedto | - |
| 404 | Not Found - returned if the request URL refers to a resource or object that does not exist | Errorresponsedto | - |
| 429 | Too 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. | ListEntitlementsV1429Response | - |
| 500 | Internal Server Error - Returned if there is an unexpected error. | Errorresponsedto | - |
- Content-Type: application/json-patch+json
- Accept: application/json
Example
from sailpoint.entitlements.api.entitlements_api import EntitlementsApi
from sailpoint.entitlements.api_client import ApiClient
from sailpoint.entitlements.models.entitlementv2 import Entitlementv2
from sailpoint.entitlements.models.jsonpatchoperation import Jsonpatchoperation
from sailpoint.configuration import Configuration
configuration = Configuration()
with ApiClient(configuration) as api_client:
id = '2c91808a7813090a017814121e121518'
jsonpatchoperation = '''[{"op":"add","path":"/segments/-","value":"f7b1b8a3-5fed-4fd4-ad29-82014e137e19"}]'''
try:
results = EntitlementsApi(api_client).patch_entitlement_v1(id=id)
print("The response of EntitlementsApi->patch_entitlement_v1:\n")
print(results.model_dump_json(by_alias=True, indent=4))
except Exception as e:
print("Exception when calling EntitlementsApi->patch_entitlement_v1: %s\n" % e)
[Back to top]
put-entitlement-request-config-v1
Replace entitlementv1 request config
This API replaces the entitlementv1 request config for a specified entitlementv1.
API Spec
Parameters
| Param Type | Name | Data Type | Required | Description |
|---|
| Path | id | str | True | Entitlementv1 ID |
| Body | entitlementrequestconfig | Entitlementrequestconfig | True | |
Return type
Entitlementrequestconfig
Responses
| Code | Description | Data Type | Response headers |
|---|
| 200 | Responds with the entitlementv1 request config as updated. | Entitlementrequestconfig | - |
| 400 | Client Error - Returned if the request body is invalid. | Errorresponsedto | - |
| 401 | Unauthorized - Returned if there is no authorization header, or if the JWT token is expired. | ListEntitlementsV1401Response | - |
| 403 | Forbidden - Returned if the user you are running as, doesn't have access to this end-point. | Errorresponsedto | - |
| 404 | Not Found - returned if the request URL refers to a resource or object that does not exist | Errorresponsedto | - |
| 429 | Too 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. | ListEntitlementsV1429Response | - |
| 500 | Internal Server Error - Returned if there is an unexpected error. | Errorresponsedto | - |
- Content-Type: application/json
- Accept: application/json
Example
from sailpoint.entitlements.api.entitlements_api import EntitlementsApi
from sailpoint.entitlements.api_client import ApiClient
from sailpoint.entitlements.models.entitlementrequestconfig import Entitlementrequestconfig
from sailpoint.configuration import Configuration
configuration = Configuration()
with ApiClient(configuration) as api_client:
id = '2c91808a7813090a017814121e121518'
entitlementrequestconfig = '''sailpoint.entitlements.Entitlementrequestconfig()'''
try:
new_entitlementrequestconfig = Entitlementrequestconfig.from_json(entitlementrequestconfig)
results = EntitlementsApi(api_client).put_entitlement_request_config_v1(id=id, entitlementrequestconfig=new_entitlementrequestconfig)
print("The response of EntitlementsApi->put_entitlement_request_config_v1:\n")
print(results.model_dump_json(by_alias=True, indent=4))
except Exception as e:
print("Exception when calling EntitlementsApi->put_entitlement_request_config_v1: %s\n" % e)
[Back to top]
reset-source-entitlements-v1
Reset source entitlements
Remove all entitlements from a specific source.
To reload the accounts along with the entitlements you removed, you must run an unoptimized aggregation. To do so, use Account Aggregation with disableOptimization = true.
API Spec
Parameters
| Param Type | Name | Data Type | Required | Description |
|---|
| Path | id | str | True | ID of source for the entitlementv1 reset |
Return type
Entitlementsourceresetbasereferencedto
Responses
| Code | Description | Data Type | Response headers |
|---|
| 202 | Entitlementv1 source reset task result | Entitlementsourceresetbasereferencedto | - |
| 400 | Client Error - Returned if the request body is invalid. | Errorresponsedto | - |
| 401 | Unauthorized - Returned if there is no authorization header, or if the JWT token is expired. | ListEntitlementsV1401Response | - |
| 403 | Forbidden - Returned if the user you are running as, doesn't have access to this end-point. | Errorresponsedto | - |
| 429 | Too 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. | ListEntitlementsV1429Response | - |
| 500 | Internal Server Error - Returned if there is an unexpected error. | Errorresponsedto | - |
- Content-Type: Not defined
- Accept: application/json
Example
from sailpoint.entitlements.api.entitlements_api import EntitlementsApi
from sailpoint.entitlements.api_client import ApiClient
from sailpoint.entitlements.models.entitlementsourceresetbasereferencedto import Entitlementsourceresetbasereferencedto
from sailpoint.configuration import Configuration
configuration = Configuration()
with ApiClient(configuration) as api_client:
id = '2c91808a7813090a017814121919ecca'
try:
results = EntitlementsApi(api_client).reset_source_entitlements_v1(id=id)
print("The response of EntitlementsApi->reset_source_entitlements_v1:\n")
print(results.model_dump_json(by_alias=True, indent=4))
except Exception as e:
print("Exception when calling EntitlementsApi->reset_source_entitlements_v1: %s\n" % e)
[Back to top]
update-entitlements-in-bulk-v1
Bulk update an entitlementv1 list
This API applies an update to every entitlementv1 of the list.
The number of entitlements to update is limited to 50 items maximum.
The JsonPatch update follows the JSON Patch standard.
examples of allowed operations :
**{ "op": "replace", "path": "/requestable","value": boolean }**
**{ "op": "replace", "path": "/privilegeOverride/level","value": string }**
A token with ORG_ADMIN or API authority is required to call this API.
API Spec
Parameters
Return type
(empty response body)
Responses
| Code | Description | Data Type | Response headers |
|---|
| 204 | No content - indicates the request was successful but there is no content to be returned in the response. | | - |
| 400 | Client Error - Returned if the request body is invalid. | Errorresponsedto | - |
| 401 | Unauthorized - Returned if there is no authorization header, or if the JWT token is expired. | ListEntitlementsV1401Response | - |
| 403 | Forbidden - Returned if the user you are running as, doesn't have access to this end-point. | Errorresponsedto | - |
| 404 | Not Found - returned if the request URL refers to a resource or object that does not exist | Errorresponsedto | - |
| 429 | Too 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. | ListEntitlementsV1429Response | - |
| 500 | Internal Server Error - Returned if there is an unexpected error. | Errorresponsedto | - |
- Content-Type: application/json
- Accept: application/json
Example
from sailpoint.entitlements.api.entitlements_api import EntitlementsApi
from sailpoint.entitlements.api_client import ApiClient
from sailpoint.entitlements.models.entitlementbulkupdaterequest import Entitlementbulkupdaterequest
from sailpoint.configuration import Configuration
configuration = Configuration()
with ApiClient(configuration) as api_client:
entitlementbulkupdaterequest = '''sailpoint.entitlements.Entitlementbulkupdaterequest()'''
try:
new_entitlementbulkupdaterequest = Entitlementbulkupdaterequest.from_json(entitlementbulkupdaterequest)
EntitlementsApi(api_client).update_entitlements_in_bulk_v1(entitlementbulkupdaterequest=new_entitlementbulkupdaterequest)
except Exception as e:
print("Exception when calling EntitlementsApi->update_entitlements_in_bulk_v1: %s\n" % e)
[Back to top]