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.
ListAccessProfiles401Response
-
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.
ListAccessProfiles429Response
-
500
Internal Server Error - Returned if there is an unexpected error.
ErrorResponseDto
-
HTTP request headers
Content-Type: application/json
Accept: application/json
Example
importsailpoint.v2024fromsailpoint.v2024.models.data_segmentimportDataSegmentfromsailpoint.v2024.restimportApiExceptionfrompprintimportpprintdata_segment=sailpoint.v2024.DataSegment()# DataSegment | try:# Create SegmentResult=data_segment.from_json(data_segment)api_response=api_instance.create_data_segment(Result)# Below is a request that includes all optional parameters# api_response = api_instance.create_data_segment(Result)print("The response of DataSegmentationApi->create_data_segment:\n")pprint(api_response)exceptExceptionase:print("Exception when calling DataSegmentationApi->create_data_segment: %s\n"%e)
:::warning 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.
:::
Delete Segment by ID
This API deletes the segment specified by the given ID.
This determines which version of the segment to delete
Return type
(empty response body)
Responses
Code
Description
Data Type
Response headers
204
No content.
-
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.
ListAccessProfiles401Response
-
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.
ListAccessProfiles429Response
-
500
Internal Server Error - Returned if there is an unexpected error.
ErrorResponseDto
-
HTTP request headers
Content-Type: Not defined
Accept: application/json
Example
importsailpoint.v2024fromsailpoint.v2024.restimportApiExceptionfrompprintimportpprintid='ef38f943-47e9-4562-b5bb-8424a56397d8'# str | The segment ID to delete. # str | The segment ID to delete.x_sail_point_experimental='true'# str | Use this header to enable this experimental API. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true')published=False# bool | This determines which version of the segment to delete (optional) (default to False) # bool | This determines which version of the segment to delete (optional) (default to False)try:# Delete Segment by IDapi_instance.delete_data_segment(id,x_sail_point_experimental,)# Below is a request that includes all optional parameters# api_instance.delete_data_segment(id, x_sail_point_experimental, published)exceptExceptionase:print("Exception when calling DataSegmentationApi->delete_data_segment: %s\n"%e)
:::warning 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.
:::
Get Segment by ID
This API returns the segment specified by the given ID.
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.
ListAccessProfiles401Response
-
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.
ListAccessProfiles429Response
-
500
Internal Server Error - Returned if there is an unexpected error.
ErrorResponseDto
-
HTTP request headers
Content-Type: Not defined
Accept: application/json
Example
importsailpoint.v2024fromsailpoint.v2024.models.data_segmentimportDataSegmentfromsailpoint.v2024.restimportApiExceptionfrompprintimportpprintid='ef38f943-47e9-4562-b5bb-8424a56397d8'# str | The segment ID to retrieve. # str | The segment ID to retrieve.x_sail_point_experimental='true'# str | Use this header to enable this experimental API. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true')try:# Get Segment by IDapi_response=api_instance.get_data_segment(id,x_sail_point_experimental)# Below is a request that includes all optional parameters# api_response = api_instance.get_data_segment(id, x_sail_point_experimental)print("The response of DataSegmentationApi->get_data_segment:\n")pprint(api_response)exceptExceptionase:print("Exception when calling DataSegmentationApi->get_data_segment: %s\n"%e)
:::warning 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.
:::
Get SegmentMembership by Identity ID
This API returns the segment membership specified by the given identity ID.
The identity ID to retrieve the segments they are in.
x_sail_point_experimental
str
True (default to 'true')
Use this header to enable this experimental API.
Return type
object
Responses
Code
Description
Data Type
Response headers
200
Segment Memberships for specified identity
object
-
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.
ListAccessProfiles401Response
-
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.
ListAccessProfiles429Response
-
500
Internal Server Error - Returned if there is an unexpected error.
ErrorResponseDto
-
HTTP request headers
Content-Type: Not defined
Accept: application/json
Example
importsailpoint.v2024fromsailpoint.v2024.restimportApiExceptionfrompprintimportpprintidentity_id='ef38f943-47e9-4562-b5bb-8424a56397d8'# str | The identity ID to retrieve the segments they are in. # str | The identity ID to retrieve the segments they are in.x_sail_point_experimental='true'# str | Use this header to enable this experimental API. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true')try:# Get SegmentMembership by Identity IDapi_response=api_instance.get_data_segment_identity_membership(identity_id,x_sail_point_experimental)# Below is a request that includes all optional parameters# api_response = api_instance.get_data_segment_identity_membership(identity_id, x_sail_point_experimental)print("The response of DataSegmentationApi->get_data_segment_identity_membership:\n")pprint(api_response)exceptExceptionase:print("Exception when calling DataSegmentationApi->get_data_segment_identity_membership: %s\n"%e)
:::warning 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.
:::
Is Segmentation enabled by Identity
This API returns whether or not segmentation is enabled for the identity.
The identity ID to retrieve if segmentation is enabled for the identity.
x_sail_point_experimental
str
True (default to 'true')
Use this header to enable this experimental API.
Return type
bool
Responses
Code
Description
Data Type
Response headers
200
Returns if segmentation is enabled for a specified User
bool
-
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.
ListAccessProfiles401Response
-
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.
ListAccessProfiles429Response
-
500
Internal Server Error - Returned if there is an unexpected error.
ErrorResponseDto
-
HTTP request headers
Content-Type: Not defined
Accept: application/json
Example
importsailpoint.v2024fromsailpoint.v2024.restimportApiExceptionfrompprintimportpprintidentity_id='ef38f943-47e9-4562-b5bb-8424a56397d8'# str | The identity ID to retrieve if segmentation is enabled for the identity. # str | The identity ID to retrieve if segmentation is enabled for the identity.x_sail_point_experimental='true'# str | Use this header to enable this experimental API. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true')try:# Is Segmentation enabled by Identityapi_response=api_instance.get_data_segmentation_enabled_for_user(identity_id,x_sail_point_experimental)# Below is a request that includes all optional parameters# api_response = api_instance.get_data_segmentation_enabled_for_user(identity_id, x_sail_point_experimental)print("The response of DataSegmentationApi->get_data_segmentation_enabled_for_user:\n")pprint(api_response)exceptExceptionase:print("Exception when calling DataSegmentationApi->get_data_segmentation_enabled_for_user: %s\n"%e)
:::warning 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.
:::
Get Segments
This API returns the segment specified by the given ID.
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
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, swname: eq, in, sw
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.
ListAccessProfiles401Response
-
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.
ListAccessProfiles429Response
-
500
Internal Server Error - Returned if there is an unexpected error.
ErrorResponseDto
-
HTTP request headers
Content-Type: Not defined
Accept: application/json
Example
importsailpoint.v2024fromsailpoint.v2024.models.data_segmentimportDataSegmentfromsailpoint.v2024.restimportApiExceptionfrompprintimportpprintx_sail_point_experimental='true'# str | Use this header to enable this experimental API. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true')enabled=True# bool | This boolean indicates whether the segment is currently active. Inactive segments have no effect. (optional) (default to True) # bool | This boolean indicates whether the segment is currently active. Inactive segments have no effect. (optional) (default to True)unique=False# bool | This returns only one record if set to true and that would be the published record if exists. (optional) (default to False) # bool | This returns only one record if set to true and that would be the published record if exists. (optional) (default to False)published=True# bool | This boolean indicates whether the segment is being applied to the accounts. If unpublished its being actively modified until published (optional) (default to True) # bool | This boolean indicates whether the segment is being applied to the accounts. If unpublished its being actively modified until published (optional) (default to True)limit=250# int | 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) (default to 250) # int | 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) (default to 250)offset=0# int | 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) (default to 0) # int | 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) (default to 0)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 [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/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 [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to False)filters='name eq \"\"'# 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, sw* **name**: *eq, in, sw* (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, sw* **name**: *eq, in, sw* (optional)try:# Get Segmentsapi_response=api_instance.list_data_segments(x_sail_point_experimental,)# Below is a request that includes all optional parameters# api_response = api_instance.list_data_segments(x_sail_point_experimental, enabled, unique, published, limit, offset, count, filters)print("The response of DataSegmentationApi->list_data_segments:\n")pprint(api_response)exceptExceptionase:print("Exception when calling DataSegmentationApi->list_data_segments: %s\n"%e)
:::warning 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.
:::
Update Segment
Use this API to update segment fields by using the JSON Patch standard.
A list of segment update operations according to the JSON Patch standard. The following fields are patchable: * name * description * membership * memberFilter * memberSelection * scopes * enabled
Indicates the PATCH operation succeeded, and returns the segment's new representation.
DataSegment
-
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.
ListAccessProfiles401Response
-
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.
ListAccessProfiles429Response
-
500
Internal Server Error - Returned if there is an unexpected error.
ErrorResponseDto
-
HTTP request headers
Content-Type: application/json-patch+json
Accept: application/json
Example
importsailpoint.v2024fromsailpoint.v2024.models.data_segmentimportDataSegmentfromsailpoint.v2024.restimportApiExceptionfrompprintimportpprintid='ef38f943-47e9-4562-b5bb-8424a56397d8'# str | The segment ID to modify. # str | The segment ID to modify.x_sail_point_experimental='true'# str | Use this header to enable this experimental API. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true')request_body=[{op=replace,path=/memberFilter,value={expression={operator=AND,children=[{operator=EQUALS,attribute=location,value={type=STRING,value=Philadelphia}},{operator=EQUALS,attribute=department,value={type=STRING,value=HR}}]}}}]# List[object] | A list of segment update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * description * membership * memberFilter * memberSelection * scopes * enabled request_body=[{op=replace,path=/memberFilter,value={expression={operator=AND,children=[{operator=EQUALS,attribute=location,value={type=STRING,value=Philadelphia}},{operator=EQUALS,attribute=department,value={type=STRING,value=HR}}]}}}]# List[object] | A list of segment update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * description * membership * memberFilter * memberSelection * scopes * enabled try:# Update SegmentResult=request_body.from_json(request_body)api_response=api_instance.patch_data_segment(id,x_sail_point_experimental,Result)# Below is a request that includes all optional parameters# api_response = api_instance.patch_data_segment(id, x_sail_point_experimental, Result)print("The response of DataSegmentationApi->patch_data_segment:\n")pprint(api_response)exceptExceptionase:print("Exception when calling DataSegmentationApi->patch_data_segment: %s\n"%e)
:::warning 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.
:::
Publish segment by ID
This will publish the segment so that it starts applying the segmentation to the desired users if enabled
This flag decides whether you want to publish all unpublished or a list of specific segment ids
Return type
(empty response body)
Responses
Code
Description
Data Type
Response headers
200
Segments published
-
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.
ListAccessProfiles401Response
-
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.
ListAccessProfiles429Response
-
500
Internal Server Error - Returned if there is an unexpected error.
ErrorResponseDto
-
HTTP request headers
Content-Type: application/json
Accept: application/json
Example
importsailpoint.v2024fromsailpoint.v2024.restimportApiExceptionfrompprintimportpprintx_sail_point_experimental='true'# str | Use this header to enable this experimental API. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true')request_body=['request_body_example']# List[str] | A list of segment ids that you wish to publishrequest_body=['request_body_example']# List[str] | A list of segment ids that you wish to publishpublish_all=True# bool | This flag decides whether you want to publish all unpublished or a list of specific segment ids (optional) (default to True) # bool | This flag decides whether you want to publish all unpublished or a list of specific segment ids (optional) (default to True)try:# Publish segment by IDResult=request_body.from_json(request_body)api_instance.publish_data_segment(x_sail_point_experimental,Result,)# Below is a request that includes all optional parameters# api_instance.publish_data_segment(x_sail_point_experimental, Result, publish_all)exceptExceptionase:print("Exception when calling DataSegmentationApi->publish_data_segment: %s\n"%e)