diff --git a/sailpoint/beta/docs/Examples/python_code_examples_overlay.yaml b/sailpoint/beta/docs/Examples/python_code_examples_overlay.yaml index a8a3292a4..8704344a2 100644 --- a/sailpoint/beta/docs/Examples/python_code_examples_overlay.yaml +++ b/sailpoint/beta/docs/Examples/python_code_examples_overlay.yaml @@ -7,23 +7,22 @@ from sailpoint.beta.api.access_model_metadata_api import AccessModelMetadataApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.attribute_dto import AttributeDTO - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - key = 'iscPrivacy' # str | Technical name of the Attribute. # str | Technical name of the Attribute. - try: - # Get Access Model Metadata Attribute - - results = AccessModelMetadataApi(api_client).get_access_model_metadata_attribute(key=key) - # Below is a request that includes all optional parameters - # results = AccessModelMetadataApi(api_client).get_access_model_metadata_attribute(key) - print("The response of AccessModelMetadataApi->get_access_model_metadata_attribute:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccessModelMetadataApi->get_access_model_metadata_attribute: %s\n" % e) + key = 'iscPrivacy' # str | Technical name of the Attribute. # str | Technical name of the Attribute. + try: + # Get Access Model Metadata Attribute + + results = AccessModelMetadataApi(api_client).get_access_model_metadata_attribute(key=key) + # Below is a request that includes all optional parameters + # results = AccessModelMetadataApi(api_client).get_access_model_metadata_attribute(key) + print("The response of AccessModelMetadataApi->get_access_model_metadata_attribute:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccessModelMetadataApi->get_access_model_metadata_attribute: %s\n" % e) - path: /access-model-metadata/attributes/{key}/values/{value} method: GET xCodeSample: @@ -33,24 +32,23 @@ from sailpoint.beta.api.access_model_metadata_api import AccessModelMetadataApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.attribute_value_dto import AttributeValueDTO - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - key = 'iscPrivacy' # str | Technical name of the Attribute. # str | Technical name of the Attribute. - value = 'public' # str | Technical name of the Attribute value. # str | Technical name of the Attribute value. - try: - # Get Access Model Metadata Value - - results = AccessModelMetadataApi(api_client).get_access_model_metadata_attribute_value(key=key, value=value) - # Below is a request that includes all optional parameters - # results = AccessModelMetadataApi(api_client).get_access_model_metadata_attribute_value(key, value) - print("The response of AccessModelMetadataApi->get_access_model_metadata_attribute_value:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccessModelMetadataApi->get_access_model_metadata_attribute_value: %s\n" % e) + key = 'iscPrivacy' # str | Technical name of the Attribute. # str | Technical name of the Attribute. + value = 'public' # str | Technical name of the Attribute value. # str | Technical name of the Attribute value. + try: + # Get Access Model Metadata Value + + results = AccessModelMetadataApi(api_client).get_access_model_metadata_attribute_value(key=key, value=value) + # Below is a request that includes all optional parameters + # results = AccessModelMetadataApi(api_client).get_access_model_metadata_attribute_value(key, value) + print("The response of AccessModelMetadataApi->get_access_model_metadata_attribute_value:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccessModelMetadataApi->get_access_model_metadata_attribute_value: %s\n" % e) - path: /access-model-metadata/attributes method: GET xCodeSample: @@ -60,23 +58,22 @@ from sailpoint.beta.api.access_model_metadata_api import AccessModelMetadataApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.attribute_dto import AttributeDTO - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - filters = 'name eq \"Privacy\"' # 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: **name**: *eq* **type**: *eq* **status**: *eq* **objectTypes**: *eq* Supported composite operators: *and* (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: **name**: *eq* **type**: *eq* **status**: *eq* **objectTypes**: *eq* Supported composite operators: *and* (optional) - try: - # List Access Model Metadata Attributes - - results = AccessModelMetadataApi(api_client).list_access_model_metadata_attribute() - # Below is a request that includes all optional parameters - # results = AccessModelMetadataApi(api_client).list_access_model_metadata_attribute(filters) - print("The response of AccessModelMetadataApi->list_access_model_metadata_attribute:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccessModelMetadataApi->list_access_model_metadata_attribute: %s\n" % e) + filters = 'name eq \"Privacy\"' # 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: **name**: *eq* **type**: *eq* **status**: *eq* **objectTypes**: *eq* Supported composite operators: *and* (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: **name**: *eq* **type**: *eq* **status**: *eq* **objectTypes**: *eq* Supported composite operators: *and* (optional) + try: + # List Access Model Metadata Attributes + + results = AccessModelMetadataApi(api_client).list_access_model_metadata_attribute() + # Below is a request that includes all optional parameters + # results = AccessModelMetadataApi(api_client).list_access_model_metadata_attribute(filters) + print("The response of AccessModelMetadataApi->list_access_model_metadata_attribute:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccessModelMetadataApi->list_access_model_metadata_attribute: %s\n" % e) - path: /access-model-metadata/attributes/{key}/values method: GET xCodeSample: @@ -86,23 +83,22 @@ from sailpoint.beta.api.access_model_metadata_api import AccessModelMetadataApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.attribute_value_dto import AttributeValueDTO - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - key = 'iscPrivacy' # str | Technical name of the Attribute. # str | Technical name of the Attribute. - try: - # List Access Model Metadata Values - - results = AccessModelMetadataApi(api_client).list_access_model_metadata_attribute_value(key=key) - # Below is a request that includes all optional parameters - # results = AccessModelMetadataApi(api_client).list_access_model_metadata_attribute_value(key) - print("The response of AccessModelMetadataApi->list_access_model_metadata_attribute_value:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccessModelMetadataApi->list_access_model_metadata_attribute_value: %s\n" % e) + key = 'iscPrivacy' # str | Technical name of the Attribute. # str | Technical name of the Attribute. + try: + # List Access Model Metadata Values + + results = AccessModelMetadataApi(api_client).list_access_model_metadata_attribute_value(key=key) + # Below is a request that includes all optional parameters + # results = AccessModelMetadataApi(api_client).list_access_model_metadata_attribute_value(key) + print("The response of AccessModelMetadataApi->list_access_model_metadata_attribute_value:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccessModelMetadataApi->list_access_model_metadata_attribute_value: %s\n" % e) - path: /access-profiles method: POST xCodeSample: @@ -112,13 +108,12 @@ from sailpoint.beta.api.access_profiles_api import AccessProfilesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.access_profile import AccessProfile - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - access_profile = '''{ + access_profile = '''{ "owner" : { "name" : "support", "id" : "2c9180a46faadee4016fb4e018c20639", @@ -203,16 +198,16 @@ "id" : "2c91808a7190d06e01719938fcd20792", "requestable" : true }''' # AccessProfile | - try: - # Create Access Profile - new_access_profile = AccessProfile.from_json(access_profile) - results = AccessProfilesApi(api_client).create_access_profile(access_profile=new_access_profile) - # Below is a request that includes all optional parameters - # results = AccessProfilesApi(api_client).create_access_profile(new_access_profile) - print("The response of AccessProfilesApi->create_access_profile:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccessProfilesApi->create_access_profile: %s\n" % e) + try: + # Create Access Profile + new_access_profile = AccessProfile.from_json(access_profile) + results = AccessProfilesApi(api_client).create_access_profile(access_profile=new_access_profile) + # Below is a request that includes all optional parameters + # results = AccessProfilesApi(api_client).create_access_profile(new_access_profile) + print("The response of AccessProfilesApi->create_access_profile:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccessProfilesApi->create_access_profile: %s\n" % e) - path: /access-profiles/{id} method: DELETE xCodeSample: @@ -221,21 +216,20 @@ source: | from sailpoint.beta.api.access_profiles_api import AccessProfilesApi from sailpoint.beta.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808a7813090a017814121919ecca' # str | ID of the Access Profile to delete # str | ID of the Access Profile to delete - try: - # Delete the specified Access Profile - - AccessProfilesApi(api_client).delete_access_profile(id=id) - # Below is a request that includes all optional parameters - # AccessProfilesApi(api_client).delete_access_profile(id) - except Exception as e: - print("Exception when calling AccessProfilesApi->delete_access_profile: %s\n" % e) + id = '2c91808a7813090a017814121919ecca' # str | ID of the Access Profile to delete # str | ID of the Access Profile to delete + try: + # Delete the specified Access Profile + + AccessProfilesApi(api_client).delete_access_profile(id=id) + # Below is a request that includes all optional parameters + # AccessProfilesApi(api_client).delete_access_profile(id) + except Exception as e: + print("Exception when calling AccessProfilesApi->delete_access_profile: %s\n" % e) - path: /access-profiles/bulk-delete method: POST xCodeSample: @@ -246,26 +240,25 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.access_profile_bulk_delete_request import AccessProfileBulkDeleteRequest from sailpoint.beta.models.access_profile_bulk_delete_response import AccessProfileBulkDeleteResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - access_profile_bulk_delete_request = '''{ + access_profile_bulk_delete_request = '''{ "accessProfileIds" : [ "2c9180847812e0b1017817051919ecca", "2c9180887812e0b201781e129f151816" ], "bestEffortOnly" : true }''' # AccessProfileBulkDeleteRequest | - try: - # Delete Access Profile(s) - new_access_profile_bulk_delete_request = AccessProfileBulkDeleteRequest.from_json(access_profile_bulk_delete_request) - results = AccessProfilesApi(api_client).delete_access_profiles_in_bulk(access_profile_bulk_delete_request=new_access_profile_bulk_delete_request) - # Below is a request that includes all optional parameters - # results = AccessProfilesApi(api_client).delete_access_profiles_in_bulk(new_access_profile_bulk_delete_request) - print("The response of AccessProfilesApi->delete_access_profiles_in_bulk:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccessProfilesApi->delete_access_profiles_in_bulk: %s\n" % e) + try: + # Delete Access Profile(s) + new_access_profile_bulk_delete_request = AccessProfileBulkDeleteRequest.from_json(access_profile_bulk_delete_request) + results = AccessProfilesApi(api_client).delete_access_profiles_in_bulk(access_profile_bulk_delete_request=new_access_profile_bulk_delete_request) + # Below is a request that includes all optional parameters + # results = AccessProfilesApi(api_client).delete_access_profiles_in_bulk(new_access_profile_bulk_delete_request) + print("The response of AccessProfilesApi->delete_access_profiles_in_bulk:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccessProfilesApi->delete_access_profiles_in_bulk: %s\n" % e) - path: /access-profiles/{id} method: GET xCodeSample: @@ -275,23 +268,22 @@ from sailpoint.beta.api.access_profiles_api import AccessProfilesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.access_profile import AccessProfile - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c9180837ca6693d017ca8d097500149' # str | ID of the Access Profile # str | ID of the Access Profile - try: - # Get an Access Profile - - results = AccessProfilesApi(api_client).get_access_profile(id=id) - # Below is a request that includes all optional parameters - # results = AccessProfilesApi(api_client).get_access_profile(id) - print("The response of AccessProfilesApi->get_access_profile:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccessProfilesApi->get_access_profile: %s\n" % e) + id = '2c9180837ca6693d017ca8d097500149' # str | ID of the Access Profile # str | ID of the Access Profile + try: + # Get an Access Profile + + results = AccessProfilesApi(api_client).get_access_profile(id=id) + # Below is a request that includes all optional parameters + # results = AccessProfilesApi(api_client).get_access_profile(id) + print("The response of AccessProfilesApi->get_access_profile:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccessProfilesApi->get_access_profile: %s\n" % e) - path: /access-profiles/{id}/entitlements method: GET xCodeSample: @@ -301,28 +293,27 @@ from sailpoint.beta.api.access_profiles_api import AccessProfilesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.entitlement import Entitlement - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808a7813090a017814121919ecca' # str | ID of the access profile containing the entitlements. # str | ID of the access profile containing the entitlements. - 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 = 'attribute eq \"memberOf\"' # 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, sw* **attribute**: *eq, sw* **value**: *eq, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **source.id**: *eq, in* Filtering is not supported for access profiles and entitlements that have the '+' symbol in their names. (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, sw* **attribute**: *eq, sw* **value**: *eq, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **source.id**: *eq, in* Filtering is not supported for access profiles and entitlements that have the '+' symbol in their names. (optional) - sorters = 'name,-modified' # 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: **name, attribute, value, created, modified** (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: **name, attribute, value, created, modified** (optional) - try: - # List Access Profile's Entitlements - - results = AccessProfilesApi(api_client).get_access_profile_entitlements(id=id) - # Below is a request that includes all optional parameters - # results = AccessProfilesApi(api_client).get_access_profile_entitlements(id, limit, offset, count, filters, sorters) - print("The response of AccessProfilesApi->get_access_profile_entitlements:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccessProfilesApi->get_access_profile_entitlements: %s\n" % e) + id = '2c91808a7813090a017814121919ecca' # str | ID of the access profile containing the entitlements. # str | ID of the access profile containing the entitlements. + 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 = 'attribute eq \"memberOf\"' # 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, sw* **attribute**: *eq, sw* **value**: *eq, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **source.id**: *eq, in* Filtering is not supported for access profiles and entitlements that have the '+' symbol in their names. (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, sw* **attribute**: *eq, sw* **value**: *eq, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **source.id**: *eq, in* Filtering is not supported for access profiles and entitlements that have the '+' symbol in their names. (optional) + sorters = 'name,-modified' # 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: **name, attribute, value, created, modified** (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: **name, attribute, value, created, modified** (optional) + try: + # List Access Profile's Entitlements + + results = AccessProfilesApi(api_client).get_access_profile_entitlements(id=id) + # Below is a request that includes all optional parameters + # results = AccessProfilesApi(api_client).get_access_profile_entitlements(id, limit, offset, count, filters, sorters) + print("The response of AccessProfilesApi->get_access_profile_entitlements:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccessProfilesApi->get_access_profile_entitlements: %s\n" % e) - path: /access-profiles method: GET xCodeSample: @@ -332,30 +323,29 @@ from sailpoint.beta.api.access_profiles_api import AccessProfilesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.access_profile import AccessProfile - from pprint import pprint - from sailpoint.configuration import Configuration - configuration = Configuration() - - - with ApiClient(configuration) as api_client: - for_subadmin = '8c190e6787aa4ed9a90bd9d5344523fb' # str | Filters the returned list according to what is visible to the indicated ROLE_SUBADMIN or SOURCE_SUBADMIN identity. The value of the parameter is either an identity ID or the special value **me**, which is shorthand for the calling identity's ID. If you specify an identity that isn't a subadmin, the API returns a 400 Bad Request error. (optional) # str | Filters the returned list according to what is visible to the indicated ROLE_SUBADMIN or SOURCE_SUBADMIN identity. The value of the parameter is either an identity ID or the special value **me**, which is shorthand for the calling identity's ID. If you specify an identity that isn't a subadmin, the API returns a 400 Bad Request error. (optional) - 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 \"SailPoint Support\"' # 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, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **requestable**: *eq* **source.id**: *eq, in* Filtering is not supported for access profiles and entitlements that have the '+' symbol in their names. (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, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **requestable**: *eq* **source.id**: *eq, in* Filtering is not supported for access profiles and entitlements that have the '+' symbol in their names. (optional) - sorters = 'name,-modified' # 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: **name, created, modified** (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: **name, created, modified** (optional) - for_segment_ids = '0b5c9f25-83c6-4762-9073-e38f7bb2ae26,2e8d8180-24bc-4d21-91c6-7affdb473b0d' # str | Filters access profiles to only those assigned to the segment(s) with the specified IDs. If segmentation is currently unavailable, specifying this parameter results in an error. (optional) # str | Filters access profiles to only those assigned to the segment(s) with the specified IDs. If segmentation is currently unavailable, specifying this parameter results in an error. (optional) - include_unsegmented = True # bool | Indicates whether the response list should contain unsegmented access profiles. If `for-segment-ids` is absent or empty, specifying *include-unsegmented* as `false` results in an error. (optional) (default to True) # bool | Indicates whether the response list should contain unsegmented access profiles. If `for-segment-ids` is absent or empty, specifying *include-unsegmented* as `false` results in an error. (optional) (default to True) - try: - # List Access Profiles - - results = AccessProfilesApi(api_client).list_access_profiles() - # Below is a request that includes all optional parameters - # results = AccessProfilesApi(api_client).list_access_profiles(for_subadmin, limit, offset, count, filters, sorters, for_segment_ids, include_unsegmented) - print("The response of AccessProfilesApi->list_access_profiles:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccessProfilesApi->list_access_profiles: %s\n" % e) + from sailpoint.configuration import Configuration + configuration = Configuration() + + + with ApiClient(configuration) as api_client: + for_subadmin = '8c190e6787aa4ed9a90bd9d5344523fb' # str | Filters the returned list according to what is visible to the indicated ROLE_SUBADMIN or SOURCE_SUBADMIN identity. The value of the parameter is either an identity ID or the special value **me**, which is shorthand for the calling identity's ID. If you specify an identity that isn't a subadmin, the API returns a 400 Bad Request error. (optional) # str | Filters the returned list according to what is visible to the indicated ROLE_SUBADMIN or SOURCE_SUBADMIN identity. The value of the parameter is either an identity ID or the special value **me**, which is shorthand for the calling identity's ID. If you specify an identity that isn't a subadmin, the API returns a 400 Bad Request error. (optional) + 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 \"SailPoint Support\"' # 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, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **requestable**: *eq* **source.id**: *eq, in* Filtering is not supported for access profiles and entitlements that have the '+' symbol in their names. (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, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **requestable**: *eq* **source.id**: *eq, in* Filtering is not supported for access profiles and entitlements that have the '+' symbol in their names. (optional) + sorters = 'name,-modified' # 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: **name, created, modified** (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: **name, created, modified** (optional) + for_segment_ids = '0b5c9f25-83c6-4762-9073-e38f7bb2ae26,2e8d8180-24bc-4d21-91c6-7affdb473b0d' # str | Filters access profiles to only those assigned to the segment(s) with the specified IDs. If segmentation is currently unavailable, specifying this parameter results in an error. (optional) # str | Filters access profiles to only those assigned to the segment(s) with the specified IDs. If segmentation is currently unavailable, specifying this parameter results in an error. (optional) + include_unsegmented = True # bool | Indicates whether the response list should contain unsegmented access profiles. If `for-segment-ids` is absent or empty, specifying *include-unsegmented* as `false` results in an error. (optional) (default to True) # bool | Indicates whether the response list should contain unsegmented access profiles. If `for-segment-ids` is absent or empty, specifying *include-unsegmented* as `false` results in an error. (optional) (default to True) + try: + # List Access Profiles + + results = AccessProfilesApi(api_client).list_access_profiles() + # Below is a request that includes all optional parameters + # results = AccessProfilesApi(api_client).list_access_profiles(for_subadmin, limit, offset, count, filters, sorters, for_segment_ids, include_unsegmented) + print("The response of AccessProfilesApi->list_access_profiles:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccessProfilesApi->list_access_profiles: %s\n" % e) - path: /access-profiles/{id} method: PATCH xCodeSample: @@ -366,24 +356,23 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.access_profile import AccessProfile from sailpoint.beta.models.json_patch_operation import JsonPatchOperation - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808a7813090a017814121919ecca' # str | ID of the Access Profile to patch # str | ID of the Access Profile to patch - json_patch_operation = '''[{op=add, path=/entitlements, value=[{id=2c9180857725c14301772a93bb77242d, type=ENTITLEMENT, name=AD User Group}]}]''' # List[JsonPatchOperation] | - try: - # Patch a specified Access Profile - new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) - results = AccessProfilesApi(api_client).patch_access_profile(id=id, json_patch_operation=new_json_patch_operation) - # Below is a request that includes all optional parameters - # results = AccessProfilesApi(api_client).patch_access_profile(id, new_json_patch_operation) - print("The response of AccessProfilesApi->patch_access_profile:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccessProfilesApi->patch_access_profile: %s\n" % e) + id = '2c91808a7813090a017814121919ecca' # str | ID of the Access Profile to patch # str | ID of the Access Profile to patch + json_patch_operation = '''[{op=add, path=/entitlements, value=[{id=2c9180857725c14301772a93bb77242d, type=ENTITLEMENT, name=AD User Group}]}]''' # List[JsonPatchOperation] | + try: + # Patch a specified Access Profile + new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) + results = AccessProfilesApi(api_client).patch_access_profile(id=id, json_patch_operation=new_json_patch_operation) + # Below is a request that includes all optional parameters + # results = AccessProfilesApi(api_client).patch_access_profile(id, new_json_patch_operation) + print("The response of AccessProfilesApi->patch_access_profile:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccessProfilesApi->patch_access_profile: %s\n" % e) - path: /access-profiles/bulk-update-requestable method: POST xCodeSample: @@ -394,23 +383,22 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.access_profile_bulk_update_request_inner import AccessProfileBulkUpdateRequestInner from sailpoint.beta.models.access_profile_update_item import AccessProfileUpdateItem - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - access_profile_bulk_update_request_inner = '''[{id=464ae7bf-791e-49fd-b746-06a2e4a89635, requestable=false}]''' # List[AccessProfileBulkUpdateRequestInner] | - try: - # Update Access Profile(s) requestable field. - new_access_profile_bulk_update_request_inner = AccessProfileBulkUpdateRequestInner.from_json(access_profile_bulk_update_request_inner) - results = AccessProfilesApi(api_client).update_access_profiles_in_bulk(access_profile_bulk_update_request_inner=new_access_profile_bulk_update_request_inner) - # Below is a request that includes all optional parameters - # results = AccessProfilesApi(api_client).update_access_profiles_in_bulk(new_access_profile_bulk_update_request_inner) - print("The response of AccessProfilesApi->update_access_profiles_in_bulk:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccessProfilesApi->update_access_profiles_in_bulk: %s\n" % e) + access_profile_bulk_update_request_inner = '''[{id=464ae7bf-791e-49fd-b746-06a2e4a89635, requestable=false}]''' # List[AccessProfileBulkUpdateRequestInner] | + try: + # Update Access Profile(s) requestable field. + new_access_profile_bulk_update_request_inner = AccessProfileBulkUpdateRequestInner.from_json(access_profile_bulk_update_request_inner) + results = AccessProfilesApi(api_client).update_access_profiles_in_bulk(access_profile_bulk_update_request_inner=new_access_profile_bulk_update_request_inner) + # Below is a request that includes all optional parameters + # results = AccessProfilesApi(api_client).update_access_profiles_in_bulk(new_access_profile_bulk_update_request_inner) + print("The response of AccessProfilesApi->update_access_profiles_in_bulk:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccessProfilesApi->update_access_profiles_in_bulk: %s\n" % e) - path: /access-request-approvals/{approvalId}/approve method: POST xCodeSample: @@ -420,14 +408,13 @@ from sailpoint.beta.api.access_request_approvals_api import AccessRequestApprovalsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.comment_dto import CommentDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - approval_id = '2c91808b7294bea301729568c68c002e' # str | Approval ID. # str | Approval ID. - comment_dto = '''{ + approval_id = '2c91808b7294bea301729568c68c002e' # str | Approval ID. # str | Approval ID. + comment_dto = '''{ "author" : { "name" : "Adam Kennedy", "id" : "2c91808568c529c60168cca6f90c1313", @@ -436,16 +423,16 @@ "created" : "2017-07-11T18:45:37.098Z", "comment" : "This is a comment." }''' # CommentDto | Reviewer's comment. - try: - # Approve Access Request Approval - new_comment_dto = CommentDto.from_json(comment_dto) - results = AccessRequestApprovalsApi(api_client).approve_access_request(approval_id=approval_id, comment_dto=new_comment_dto) - # Below is a request that includes all optional parameters - # results = AccessRequestApprovalsApi(api_client).approve_access_request(approval_id, new_comment_dto) - print("The response of AccessRequestApprovalsApi->approve_access_request:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccessRequestApprovalsApi->approve_access_request: %s\n" % e) + try: + # Approve Access Request Approval + new_comment_dto = CommentDto.from_json(comment_dto) + results = AccessRequestApprovalsApi(api_client).approve_access_request(approval_id=approval_id, comment_dto=new_comment_dto) + # Below is a request that includes all optional parameters + # results = AccessRequestApprovalsApi(api_client).approve_access_request(approval_id, new_comment_dto) + print("The response of AccessRequestApprovalsApi->approve_access_request:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccessRequestApprovalsApi->approve_access_request: %s\n" % e) - path: /access-request-approvals/{approvalId}/forward method: POST xCodeSample: @@ -455,27 +442,26 @@ from sailpoint.beta.api.access_request_approvals_api import AccessRequestApprovalsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.forward_approval_dto import ForwardApprovalDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - approval_id = '2c91808b7294bea301729568c68c002e' # str | Approval ID. # str | Approval ID. - forward_approval_dto = '''{ + approval_id = '2c91808b7294bea301729568c68c002e' # str | Approval ID. # str | Approval ID. + forward_approval_dto = '''{ "newOwnerId" : "newOwnerId", "comment" : "comment" }''' # ForwardApprovalDto | Information about the forwarded approval. - try: - # Forward Access Request Approval - new_forward_approval_dto = ForwardApprovalDto.from_json(forward_approval_dto) - results = AccessRequestApprovalsApi(api_client).forward_access_request(approval_id=approval_id, forward_approval_dto=new_forward_approval_dto) - # Below is a request that includes all optional parameters - # results = AccessRequestApprovalsApi(api_client).forward_access_request(approval_id, new_forward_approval_dto) - print("The response of AccessRequestApprovalsApi->forward_access_request:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccessRequestApprovalsApi->forward_access_request: %s\n" % e) + try: + # Forward Access Request Approval + new_forward_approval_dto = ForwardApprovalDto.from_json(forward_approval_dto) + results = AccessRequestApprovalsApi(api_client).forward_access_request(approval_id=approval_id, forward_approval_dto=new_forward_approval_dto) + # Below is a request that includes all optional parameters + # results = AccessRequestApprovalsApi(api_client).forward_access_request(approval_id, new_forward_approval_dto) + print("The response of AccessRequestApprovalsApi->forward_access_request:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccessRequestApprovalsApi->forward_access_request: %s\n" % e) - path: /access-request-approvals/approval-summary method: GET xCodeSample: @@ -485,24 +471,23 @@ from sailpoint.beta.api.access_request_approvals_api import AccessRequestApprovalsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.approval_summary import ApprovalSummary - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - owner_id = '2c91808568c529c60168cca6f90c1313' # str | The ID of the owner or approver identity of the approvals. If present, the value returns approval summary for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN user can also fetch all the approvals in the org, when owner-id is not used. * Non ORG_ADMIN users can only specify *me* or pass their own identity ID value. (optional) # str | The ID of the owner or approver identity of the approvals. If present, the value returns approval summary for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN user can also fetch all the approvals in the org, when owner-id is not used. * Non ORG_ADMIN users can only specify *me* or pass their own identity ID value. (optional) - from_date = 'from-date=2020-03-19T19:59:11Z' # str | This is the date and time the results will be shown from. It must be in a valid ISO-8601 format. (optional) # str | This is the date and time the results will be shown from. It must be in a valid ISO-8601 format. (optional) - try: - # Get Access Requests Approvals Number - - results = AccessRequestApprovalsApi(api_client).get_access_request_approval_summary() - # Below is a request that includes all optional parameters - # results = AccessRequestApprovalsApi(api_client).get_access_request_approval_summary(owner_id, from_date) - print("The response of AccessRequestApprovalsApi->get_access_request_approval_summary:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccessRequestApprovalsApi->get_access_request_approval_summary: %s\n" % e) + owner_id = '2c91808568c529c60168cca6f90c1313' # str | The ID of the owner or approver identity of the approvals. If present, the value returns approval summary for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN user can also fetch all the approvals in the org, when owner-id is not used. * Non ORG_ADMIN users can only specify *me* or pass their own identity ID value. (optional) # str | The ID of the owner or approver identity of the approvals. If present, the value returns approval summary for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN user can also fetch all the approvals in the org, when owner-id is not used. * Non ORG_ADMIN users can only specify *me* or pass their own identity ID value. (optional) + from_date = 'from-date=2020-03-19T19:59:11Z' # str | This is the date and time the results will be shown from. It must be in a valid ISO-8601 format. (optional) # str | This is the date and time the results will be shown from. It must be in a valid ISO-8601 format. (optional) + try: + # Get Access Requests Approvals Number + + results = AccessRequestApprovalsApi(api_client).get_access_request_approval_summary() + # Below is a request that includes all optional parameters + # results = AccessRequestApprovalsApi(api_client).get_access_request_approval_summary(owner_id, from_date) + print("The response of AccessRequestApprovalsApi->get_access_request_approval_summary:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccessRequestApprovalsApi->get_access_request_approval_summary: %s\n" % e) - path: /access-request-approvals/completed method: GET xCodeSample: @@ -512,28 +497,27 @@ from sailpoint.beta.api.access_request_approvals_api import AccessRequestApprovalsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.completed_approval import CompletedApproval - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - owner_id = 'owner_id_example' # str | If present, the value returns only completed approvals for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN users can also fetch all the approvals in the org, when owner-id is not used. * Non-ORG_ADMIN users can only specify *me* or pass their own identity ID value. (optional) # str | If present, the value returns only completed approvals for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN users can also fetch all the approvals in the org, when owner-id is not used. * Non-ORG_ADMIN users can only specify *me* or pass their own identity ID value. (optional) - 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 = 'filters_example' # 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, ge, gt, le, lt, ne, isnull, sw* **requestedFor.id**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **modified**: *gt, lt, ge, le, eq, in, ne, 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, ge, gt, le, lt, ne, isnull, sw* **requestedFor.id**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **modified**: *gt, lt, ge, le, eq, in, ne, sw* (optional) - sorters = 'sorters_example' # 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** (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** (optional) - try: - # Completed Access Request Approvals List - - results = AccessRequestApprovalsApi(api_client).list_completed_approvals() - # Below is a request that includes all optional parameters - # results = AccessRequestApprovalsApi(api_client).list_completed_approvals(owner_id, limit, offset, count, filters, sorters) - print("The response of AccessRequestApprovalsApi->list_completed_approvals:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccessRequestApprovalsApi->list_completed_approvals: %s\n" % e) + owner_id = 'owner_id_example' # str | If present, the value returns only completed approvals for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN users can also fetch all the approvals in the org, when owner-id is not used. * Non-ORG_ADMIN users can only specify *me* or pass their own identity ID value. (optional) # str | If present, the value returns only completed approvals for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN users can also fetch all the approvals in the org, when owner-id is not used. * Non-ORG_ADMIN users can only specify *me* or pass their own identity ID value. (optional) + 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 = 'filters_example' # 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, ge, gt, le, lt, ne, isnull, sw* **requestedFor.id**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **modified**: *gt, lt, ge, le, eq, in, ne, 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, ge, gt, le, lt, ne, isnull, sw* **requestedFor.id**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **modified**: *gt, lt, ge, le, eq, in, ne, sw* (optional) + sorters = 'sorters_example' # 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** (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** (optional) + try: + # Completed Access Request Approvals List + + results = AccessRequestApprovalsApi(api_client).list_completed_approvals() + # Below is a request that includes all optional parameters + # results = AccessRequestApprovalsApi(api_client).list_completed_approvals(owner_id, limit, offset, count, filters, sorters) + print("The response of AccessRequestApprovalsApi->list_completed_approvals:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccessRequestApprovalsApi->list_completed_approvals: %s\n" % e) - path: /access-request-approvals/pending method: GET xCodeSample: @@ -543,28 +527,27 @@ from sailpoint.beta.api.access_request_approvals_api import AccessRequestApprovalsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.pending_approval import PendingApproval - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - owner_id = 'owner_id_example' # str | If present, the value returns only pending approvals for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN users can also fetch all the approvals in the org, when owner-id is not used. * Non-ORG_ADMIN users can only specify *me* or pass their own identity ID value. (optional) # str | If present, the value returns only pending approvals for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN users can also fetch all the approvals in the org, when owner-id is not used. * Non-ORG_ADMIN users can only specify *me* or pass their own identity ID value. (optional) - 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 = 'filters_example' # 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* **requestedFor.id**: *eq, in* **modified**: *gt, lt, ge, le, eq, in* (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* **requestedFor.id**: *eq, in* **modified**: *gt, lt, ge, le, eq, in* (optional) - sorters = 'sorters_example' # 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** (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** (optional) - try: - # Pending Access Request Approvals List - - results = AccessRequestApprovalsApi(api_client).list_pending_approvals() - # Below is a request that includes all optional parameters - # results = AccessRequestApprovalsApi(api_client).list_pending_approvals(owner_id, limit, offset, count, filters, sorters) - print("The response of AccessRequestApprovalsApi->list_pending_approvals:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccessRequestApprovalsApi->list_pending_approvals: %s\n" % e) + owner_id = 'owner_id_example' # str | If present, the value returns only pending approvals for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN users can also fetch all the approvals in the org, when owner-id is not used. * Non-ORG_ADMIN users can only specify *me* or pass their own identity ID value. (optional) # str | If present, the value returns only pending approvals for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN users can also fetch all the approvals in the org, when owner-id is not used. * Non-ORG_ADMIN users can only specify *me* or pass their own identity ID value. (optional) + 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 = 'filters_example' # 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* **requestedFor.id**: *eq, in* **modified**: *gt, lt, ge, le, eq, in* (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* **requestedFor.id**: *eq, in* **modified**: *gt, lt, ge, le, eq, in* (optional) + sorters = 'sorters_example' # 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** (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** (optional) + try: + # Pending Access Request Approvals List + + results = AccessRequestApprovalsApi(api_client).list_pending_approvals() + # Below is a request that includes all optional parameters + # results = AccessRequestApprovalsApi(api_client).list_pending_approvals(owner_id, limit, offset, count, filters, sorters) + print("The response of AccessRequestApprovalsApi->list_pending_approvals:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccessRequestApprovalsApi->list_pending_approvals: %s\n" % e) - path: /access-request-approvals/{approvalId}/reject method: POST xCodeSample: @@ -574,14 +557,13 @@ from sailpoint.beta.api.access_request_approvals_api import AccessRequestApprovalsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.comment_dto import CommentDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - approval_id = '2c91808b7294bea301729568c68c002e' # str | Approval ID. # str | Approval ID. - comment_dto = '''{ + approval_id = '2c91808b7294bea301729568c68c002e' # str | Approval ID. # str | Approval ID. + comment_dto = '''{ "author" : { "name" : "Adam Kennedy", "id" : "2c91808568c529c60168cca6f90c1313", @@ -590,16 +572,16 @@ "created" : "2017-07-11T18:45:37.098Z", "comment" : "This is a comment." }''' # CommentDto | Reviewer's comment. - try: - # Reject Access Request Approval - new_comment_dto = CommentDto.from_json(comment_dto) - results = AccessRequestApprovalsApi(api_client).reject_access_request(approval_id=approval_id, comment_dto=new_comment_dto) - # Below is a request that includes all optional parameters - # results = AccessRequestApprovalsApi(api_client).reject_access_request(approval_id, new_comment_dto) - print("The response of AccessRequestApprovalsApi->reject_access_request:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccessRequestApprovalsApi->reject_access_request: %s\n" % e) + try: + # Reject Access Request Approval + new_comment_dto = CommentDto.from_json(comment_dto) + results = AccessRequestApprovalsApi(api_client).reject_access_request(approval_id=approval_id, comment_dto=new_comment_dto) + # Below is a request that includes all optional parameters + # results = AccessRequestApprovalsApi(api_client).reject_access_request(approval_id, new_comment_dto) + print("The response of AccessRequestApprovalsApi->reject_access_request:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccessRequestApprovalsApi->reject_access_request: %s\n" % e) - path: /access-request-identity-metrics/{identityId}/requested-objects/{requestedObjectId}/type/{type} method: GET xCodeSample: @@ -608,25 +590,24 @@ source: | from sailpoint.beta.api.access_request_identity_metrics_api import AccessRequestIdentityMetricsApi from sailpoint.beta.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - identity_id = '7025c863-c270-4ba6-beea-edf3cb091573' # str | Manager's identity ID. # str | Manager's identity ID. - requested_object_id = '2db501be-f0fb-4cc5-a695-334133c52891' # str | Requested access item's ID. # str | Requested access item's ID. - type = 'ENTITLEMENT' # str | Requested access item's type. # str | Requested access item's type. - try: - # Return access request identity metrics - - results = AccessRequestIdentityMetricsApi(api_client).get_access_request_identity_metrics(identity_id=identity_id, requested_object_id=requested_object_id, type=type) - # Below is a request that includes all optional parameters - # results = AccessRequestIdentityMetricsApi(api_client).get_access_request_identity_metrics(identity_id, requested_object_id, type) - print("The response of AccessRequestIdentityMetricsApi->get_access_request_identity_metrics:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccessRequestIdentityMetricsApi->get_access_request_identity_metrics: %s\n" % e) + identity_id = '7025c863-c270-4ba6-beea-edf3cb091573' # str | Manager's identity ID. # str | Manager's identity ID. + requested_object_id = '2db501be-f0fb-4cc5-a695-334133c52891' # str | Requested access item's ID. # str | Requested access item's ID. + type = 'ENTITLEMENT' # str | Requested access item's type. # str | Requested access item's type. + try: + # Return access request identity metrics + + results = AccessRequestIdentityMetricsApi(api_client).get_access_request_identity_metrics(identity_id=identity_id, requested_object_id=requested_object_id, type=type) + # Below is a request that includes all optional parameters + # results = AccessRequestIdentityMetricsApi(api_client).get_access_request_identity_metrics(identity_id, requested_object_id, type) + print("The response of AccessRequestIdentityMetricsApi->get_access_request_identity_metrics:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccessRequestIdentityMetricsApi->get_access_request_identity_metrics: %s\n" % e) - path: /access-requests/cancel method: POST xCodeSample: @@ -636,26 +617,25 @@ from sailpoint.beta.api.access_requests_api import AccessRequestsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.cancel_access_request import CancelAccessRequest - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - cancel_access_request = '''{ + cancel_access_request = '''{ "accountActivityId" : "2c9180835d2e5168015d32f890ca1581", "comment" : "I requested this role by mistake." }''' # CancelAccessRequest | - try: - # Cancel Access Request - new_cancel_access_request = CancelAccessRequest.from_json(cancel_access_request) - results = AccessRequestsApi(api_client).cancel_access_request(cancel_access_request=new_cancel_access_request) - # Below is a request that includes all optional parameters - # results = AccessRequestsApi(api_client).cancel_access_request(new_cancel_access_request) - print("The response of AccessRequestsApi->cancel_access_request:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccessRequestsApi->cancel_access_request: %s\n" % e) + try: + # Cancel Access Request + new_cancel_access_request = CancelAccessRequest.from_json(cancel_access_request) + results = AccessRequestsApi(api_client).cancel_access_request(cancel_access_request=new_cancel_access_request) + # Below is a request that includes all optional parameters + # results = AccessRequestsApi(api_client).cancel_access_request(new_cancel_access_request) + print("The response of AccessRequestsApi->cancel_access_request:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccessRequestsApi->cancel_access_request: %s\n" % e) - path: /access-requests/close method: POST xCodeSample: @@ -665,28 +645,27 @@ from sailpoint.beta.api.access_requests_api import AccessRequestsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.close_access_request import CloseAccessRequest - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - close_access_request = '''{ + close_access_request = '''{ "executionStatus" : "Terminated", "accessRequestIds" : [ "2c90ad2a70ace7d50170acf22ca90010" ], "completionStatus" : "Failure", "message" : "The IdentityNow Administrator manually closed this request." }''' # CloseAccessRequest | - try: - # Close Access Request - new_close_access_request = CloseAccessRequest.from_json(close_access_request) - results = AccessRequestsApi(api_client).close_access_request(close_access_request=new_close_access_request) - # Below is a request that includes all optional parameters - # results = AccessRequestsApi(api_client).close_access_request(new_close_access_request) - print("The response of AccessRequestsApi->close_access_request:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccessRequestsApi->close_access_request: %s\n" % e) + try: + # Close Access Request + new_close_access_request = CloseAccessRequest.from_json(close_access_request) + results = AccessRequestsApi(api_client).close_access_request(close_access_request=new_close_access_request) + # Below is a request that includes all optional parameters + # results = AccessRequestsApi(api_client).close_access_request(new_close_access_request) + print("The response of AccessRequestsApi->close_access_request:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccessRequestsApi->close_access_request: %s\n" % e) - path: /access-requests method: POST xCodeSample: @@ -697,13 +676,12 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.access_request import AccessRequest from sailpoint.beta.models.access_request_response import AccessRequestResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - access_request = '''{ + access_request = '''{ "requestedFor" : [ "2c918084660f45d6016617daa9210584", "2c918084660f45d6016617daa9210584" ], "clientMetadata" : { "requestedAppId" : "2c91808f7892918f0178b78da4a305a1", @@ -757,16 +735,16 @@ "type" : "ACCESS_PROFILE" } ] }''' # AccessRequest | - try: - # Submit Access Request - new_access_request = AccessRequest.from_json(access_request) - results = AccessRequestsApi(api_client).create_access_request(access_request=new_access_request) - # Below is a request that includes all optional parameters - # results = AccessRequestsApi(api_client).create_access_request(new_access_request) - print("The response of AccessRequestsApi->create_access_request:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccessRequestsApi->create_access_request: %s\n" % e) + try: + # Submit Access Request + new_access_request = AccessRequest.from_json(access_request) + results = AccessRequestsApi(api_client).create_access_request(access_request=new_access_request) + # Below is a request that includes all optional parameters + # results = AccessRequestsApi(api_client).create_access_request(new_access_request) + print("The response of AccessRequestsApi->create_access_request:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccessRequestsApi->create_access_request: %s\n" % e) - path: /access-request-config method: GET xCodeSample: @@ -776,22 +754,21 @@ from sailpoint.beta.api.access_requests_api import AccessRequestsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.access_request_config import AccessRequestConfig - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - try: - # Get Access Request Configuration - - results = AccessRequestsApi(api_client).get_access_request_config() - # Below is a request that includes all optional parameters - # results = AccessRequestsApi(api_client).get_access_request_config() - print("The response of AccessRequestsApi->get_access_request_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccessRequestsApi->get_access_request_config: %s\n" % e) + try: + # Get Access Request Configuration + + results = AccessRequestsApi(api_client).get_access_request_config() + # Below is a request that includes all optional parameters + # results = AccessRequestsApi(api_client).get_access_request_config() + print("The response of AccessRequestsApi->get_access_request_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccessRequestsApi->get_access_request_config: %s\n" % e) - path: /access-request-status method: GET xCodeSample: @@ -801,32 +778,31 @@ from sailpoint.beta.api.access_requests_api import AccessRequestsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.requested_item_status import RequestedItemStatus - from pprint import pprint - from sailpoint.configuration import Configuration - configuration = Configuration() - - - with ApiClient(configuration) as api_client: - requested_for = '2c9180877b2b6ea4017b2c545f971429' # str | Filter the results by the identity the requests were made for. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) # str | Filter the results by the identity the requests were made for. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) - requested_by = '2c9180877b2b6ea4017b2c545f971429' # str | Filter the results by the identity who made the requests. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) # str | Filter the results by the identity who made the requests. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) - regarding_identity = '2c9180877b2b6ea4017b2c545f971429' # str | Filter the results by the specified identity who is either the requester or target of the requests. *me* indicates the current user. Mutually exclusive with *requested-for* and *requested-by*. (optional) # str | Filter the results by the specified identity who is either the requester or target of the requests. *me* indicates the current user. Mutually exclusive with *requested-for* and *requested-by*. (optional) - assigned_to = '2c9180877b2b6ea4017b2c545f971429' # str | Filter the results by the specified identity who is the owner of the Identity Request Work Item. *me* indicates the current user. (optional) # str | Filter the results by the specified identity who is the owner of the Identity Request Work Item. *me* indicates the current user. (optional) - count = False # bool | If this is true, the *X-Total-Count* response header populates with the number of results that would be returned if limit and offset were ignored. (optional) (default to False) # bool | If this is true, the *X-Total-Count* response header populates with the number of results that would be returned if limit and offset were ignored. (optional) (default to False) - limit = 250 # int | Max number of results to return. (optional) (default to 250) # int | Max number of results to return. (optional) (default to 250) - offset = 10 # int | Offset into the full result set. Usually specified with *limit* to paginate through the results. Defaults to 0 if not specified. (optional) # int | Offset into the full result set. Usually specified with *limit* to paginate through the results. Defaults to 0 if not specified. (optional) - filters = 'accountActivityItemId eq \"2c918086771c86df0177401efcdf54c0\"' # 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: **accessRequestId**: *in* **accountActivityItemId**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **created**: *eq, in, ge, gt, le, lt, ne, isnull, 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: **accessRequestId**: *in* **accountActivityItemId**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **created**: *eq, in, ge, gt, le, lt, ne, isnull, sw* (optional) - sorters = 'created' # 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, accountActivityItemId, 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, accountActivityItemId, name** (optional) - request_state = 'request-state=EXECUTING' # str | Filter the results by the state of the request. The only valid value is *EXECUTING*. (optional) # str | Filter the results by the state of the request. The only valid value is *EXECUTING*. (optional) - try: - # Access Request Status - - results = AccessRequestsApi(api_client).list_access_request_status() - # Below is a request that includes all optional parameters - # results = AccessRequestsApi(api_client).list_access_request_status(requested_for, requested_by, regarding_identity, assigned_to, count, limit, offset, filters, sorters, request_state) - print("The response of AccessRequestsApi->list_access_request_status:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccessRequestsApi->list_access_request_status: %s\n" % e) + from sailpoint.configuration import Configuration + configuration = Configuration() + + + with ApiClient(configuration) as api_client: + requested_for = '2c9180877b2b6ea4017b2c545f971429' # str | Filter the results by the identity the requests were made for. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) # str | Filter the results by the identity the requests were made for. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) + requested_by = '2c9180877b2b6ea4017b2c545f971429' # str | Filter the results by the identity who made the requests. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) # str | Filter the results by the identity who made the requests. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) + regarding_identity = '2c9180877b2b6ea4017b2c545f971429' # str | Filter the results by the specified identity who is either the requester or target of the requests. *me* indicates the current user. Mutually exclusive with *requested-for* and *requested-by*. (optional) # str | Filter the results by the specified identity who is either the requester or target of the requests. *me* indicates the current user. Mutually exclusive with *requested-for* and *requested-by*. (optional) + assigned_to = '2c9180877b2b6ea4017b2c545f971429' # str | Filter the results by the specified identity who is the owner of the Identity Request Work Item. *me* indicates the current user. (optional) # str | Filter the results by the specified identity who is the owner of the Identity Request Work Item. *me* indicates the current user. (optional) + count = False # bool | If this is true, the *X-Total-Count* response header populates with the number of results that would be returned if limit and offset were ignored. (optional) (default to False) # bool | If this is true, the *X-Total-Count* response header populates with the number of results that would be returned if limit and offset were ignored. (optional) (default to False) + limit = 250 # int | Max number of results to return. (optional) (default to 250) # int | Max number of results to return. (optional) (default to 250) + offset = 10 # int | Offset into the full result set. Usually specified with *limit* to paginate through the results. Defaults to 0 if not specified. (optional) # int | Offset into the full result set. Usually specified with *limit* to paginate through the results. Defaults to 0 if not specified. (optional) + filters = 'accountActivityItemId eq \"2c918086771c86df0177401efcdf54c0\"' # 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: **accessRequestId**: *in* **accountActivityItemId**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **created**: *eq, in, ge, gt, le, lt, ne, isnull, 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: **accessRequestId**: *in* **accountActivityItemId**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **created**: *eq, in, ge, gt, le, lt, ne, isnull, sw* (optional) + sorters = 'created' # 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, accountActivityItemId, 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, accountActivityItemId, name** (optional) + request_state = 'request-state=EXECUTING' # str | Filter the results by the state of the request. The only valid value is *EXECUTING*. (optional) # str | Filter the results by the state of the request. The only valid value is *EXECUTING*. (optional) + try: + # Access Request Status + + results = AccessRequestsApi(api_client).list_access_request_status() + # Below is a request that includes all optional parameters + # results = AccessRequestsApi(api_client).list_access_request_status(requested_for, requested_by, regarding_identity, assigned_to, count, limit, offset, filters, sorters, request_state) + print("The response of AccessRequestsApi->list_access_request_status:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccessRequestsApi->list_access_request_status: %s\n" % e) - path: /access-request-config method: PUT xCodeSample: @@ -836,13 +812,12 @@ from sailpoint.beta.api.access_requests_api import AccessRequestsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.access_request_config import AccessRequestConfig - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - access_request_config = '''{ + access_request_config = '''{ "requestOnBehalfOfConfig" : { "allowRequestOnBehalfOfEmployeeByManager" : true, "allowRequestOnBehalfOfAnyoneByAnyone" : true @@ -868,16 +843,16 @@ "reauthorizationEnabled" : true, "approvalsMustBeExternal" : true }''' # AccessRequestConfig | - try: - # Update Access Request Configuration - new_access_request_config = AccessRequestConfig.from_json(access_request_config) - results = AccessRequestsApi(api_client).set_access_request_config(access_request_config=new_access_request_config) - # Below is a request that includes all optional parameters - # results = AccessRequestsApi(api_client).set_access_request_config(new_access_request_config) - print("The response of AccessRequestsApi->set_access_request_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccessRequestsApi->set_access_request_config: %s\n" % e) + try: + # Update Access Request Configuration + new_access_request_config = AccessRequestConfig.from_json(access_request_config) + results = AccessRequestsApi(api_client).set_access_request_config(access_request_config=new_access_request_config) + # Below is a request that includes all optional parameters + # results = AccessRequestsApi(api_client).set_access_request_config(new_access_request_config) + print("The response of AccessRequestsApi->set_access_request_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccessRequestsApi->set_access_request_config: %s\n" % e) - path: /account-activities/{id} method: GET xCodeSample: @@ -887,23 +862,22 @@ from sailpoint.beta.api.account_activities_api import AccountActivitiesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.cancelable_account_activity import CancelableAccountActivity - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The account activity id # str | The account activity id - try: - # Get Account Activity - - results = AccountActivitiesApi(api_client).get_account_activity(id=id) - # Below is a request that includes all optional parameters - # results = AccountActivitiesApi(api_client).get_account_activity(id) - print("The response of AccountActivitiesApi->get_account_activity:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccountActivitiesApi->get_account_activity: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The account activity id # str | The account activity id + try: + # Get Account Activity + + results = AccountActivitiesApi(api_client).get_account_activity(id=id) + # Below is a request that includes all optional parameters + # results = AccountActivitiesApi(api_client).get_account_activity(id) + print("The response of AccountActivitiesApi->get_account_activity:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccountActivitiesApi->get_account_activity: %s\n" % e) - path: /account-activities method: GET xCodeSample: @@ -913,31 +887,30 @@ from sailpoint.beta.api.account_activities_api import AccountActivitiesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.cancelable_account_activity import CancelableAccountActivity - from pprint import pprint - from sailpoint.configuration import Configuration - configuration = Configuration() - - - with ApiClient(configuration) as api_client: - requested_for = 'requested_for_example' # str | The identity that the activity was requested for. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) # str | The identity that the activity was requested for. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) - requested_by = 'requested_by_example' # str | The identity that requested the activity. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) # str | The identity that requested the activity. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) - regarding_identity = 'regarding_identity_example' # str | The specified identity will be either the requester or target of the account activity. *me* indicates the current user. Mutually exclusive with *requested-for* and *requested-by*. (optional) # str | The specified identity will be either the requester or target of the account activity. *me* indicates the current user. Mutually exclusive with *requested-for* and *requested-by*. (optional) - type = 'type_example' # str | The type of account activity. (optional) # str | The type of account activity. (optional) - 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 = 'filters_example' # 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: **type**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **created**: *gt, lt, ge, le, eq, in, ne, isnull, sw* **modified**: *gt, lt, ge, le, eq, in, ne, isnull, 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: **type**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **created**: *gt, lt, ge, le, eq, in, ne, isnull, sw* **modified**: *gt, lt, ge, le, eq, in, ne, isnull, sw* (optional) - sorters = 'sorters_example' # 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: **type, created, modified** (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: **type, created, modified** (optional) - try: - # List Account Activities - - results = AccountActivitiesApi(api_client).list_account_activities() - # Below is a request that includes all optional parameters - # results = AccountActivitiesApi(api_client).list_account_activities(requested_for, requested_by, regarding_identity, type, limit, offset, count, filters, sorters) - print("The response of AccountActivitiesApi->list_account_activities:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccountActivitiesApi->list_account_activities: %s\n" % e) + from sailpoint.configuration import Configuration + configuration = Configuration() + + + with ApiClient(configuration) as api_client: + requested_for = 'requested_for_example' # str | The identity that the activity was requested for. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) # str | The identity that the activity was requested for. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) + requested_by = 'requested_by_example' # str | The identity that requested the activity. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) # str | The identity that requested the activity. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) + regarding_identity = 'regarding_identity_example' # str | The specified identity will be either the requester or target of the account activity. *me* indicates the current user. Mutually exclusive with *requested-for* and *requested-by*. (optional) # str | The specified identity will be either the requester or target of the account activity. *me* indicates the current user. Mutually exclusive with *requested-for* and *requested-by*. (optional) + type = 'type_example' # str | The type of account activity. (optional) # str | The type of account activity. (optional) + 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 = 'filters_example' # 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: **type**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **created**: *gt, lt, ge, le, eq, in, ne, isnull, sw* **modified**: *gt, lt, ge, le, eq, in, ne, isnull, 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: **type**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **created**: *gt, lt, ge, le, eq, in, ne, isnull, sw* **modified**: *gt, lt, ge, le, eq, in, ne, isnull, sw* (optional) + sorters = 'sorters_example' # 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: **type, created, modified** (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: **type, created, modified** (optional) + try: + # List Account Activities + + results = AccountActivitiesApi(api_client).list_account_activities() + # Below is a request that includes all optional parameters + # results = AccountActivitiesApi(api_client).list_account_activities(requested_for, requested_by, regarding_identity, type, limit, offset, count, filters, sorters) + print("The response of AccountActivitiesApi->list_account_activities:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccountActivitiesApi->list_account_activities: %s\n" % e) - path: /account-aggregations/{id}/status method: GET xCodeSample: @@ -947,23 +920,22 @@ from sailpoint.beta.api.account_aggregations_api import AccountAggregationsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.account_aggregation_status import AccountAggregationStatus - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808477a6b0c60177a81146b8110b' # str | The account aggregation id # str | The account aggregation id - try: - # In-progress Account Aggregation status - - results = AccountAggregationsApi(api_client).get_account_aggregation_status(id=id) - # Below is a request that includes all optional parameters - # results = AccountAggregationsApi(api_client).get_account_aggregation_status(id) - print("The response of AccountAggregationsApi->get_account_aggregation_status:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccountAggregationsApi->get_account_aggregation_status: %s\n" % e) + id = '2c91808477a6b0c60177a81146b8110b' # str | The account aggregation id # str | The account aggregation id + try: + # In-progress Account Aggregation status + + results = AccountAggregationsApi(api_client).get_account_aggregation_status(id=id) + # Below is a request that includes all optional parameters + # results = AccountAggregationsApi(api_client).get_account_aggregation_status(id) + print("The response of AccountAggregationsApi->get_account_aggregation_status:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccountAggregationsApi->get_account_aggregation_status: %s\n" % e) - path: /accounts method: POST xCodeSample: @@ -974,13 +946,12 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.account_attributes_create import AccountAttributesCreate from sailpoint.beta.models.accounts_async_result import AccountsAsyncResult - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - account_attributes_create = '''{ + account_attributes_create = '''{ "attributes" : { "sourceId" : "34bfcbe116c9407464af37acbaf7a4dc", "city" : "Austin", @@ -990,16 +961,16 @@ "mail" : "john.doe@sailpoint.com" } }''' # AccountAttributesCreate | - try: - # Create Account - new_account_attributes_create = AccountAttributesCreate.from_json(account_attributes_create) - results = AccountsApi(api_client).create_account(account_attributes_create=new_account_attributes_create) - # Below is a request that includes all optional parameters - # results = AccountsApi(api_client).create_account(new_account_attributes_create) - print("The response of AccountsApi->create_account:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccountsApi->create_account: %s\n" % e) + try: + # Create Account + new_account_attributes_create = AccountAttributesCreate.from_json(account_attributes_create) + results = AccountsApi(api_client).create_account(account_attributes_create=new_account_attributes_create) + # Below is a request that includes all optional parameters + # results = AccountsApi(api_client).create_account(new_account_attributes_create) + print("The response of AccountsApi->create_account:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccountsApi->create_account: %s\n" % e) - path: /accounts/{id} method: DELETE xCodeSample: @@ -1009,23 +980,22 @@ from sailpoint.beta.api.accounts_api import AccountsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.accounts_async_result import AccountsAsyncResult - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | Account ID. # str | Account ID. - try: - # Delete Account - - results = AccountsApi(api_client).delete_account(id=id) - # Below is a request that includes all optional parameters - # results = AccountsApi(api_client).delete_account(id) - print("The response of AccountsApi->delete_account:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccountsApi->delete_account: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | Account ID. # str | Account ID. + try: + # Delete Account + + results = AccountsApi(api_client).delete_account(id=id) + # Below is a request that includes all optional parameters + # results = AccountsApi(api_client).delete_account(id) + print("The response of AccountsApi->delete_account:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccountsApi->delete_account: %s\n" % e) - path: /accounts/{id}/remove method: POST xCodeSample: @@ -1035,23 +1005,22 @@ from sailpoint.beta.api.accounts_api import AccountsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.task_result_dto import TaskResultDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'c350d6aa4f104c61b062cb632421ad10' # str | The account id # str | The account id - try: - # Remove Account - - results = AccountsApi(api_client).delete_account_async(id=id) - # Below is a request that includes all optional parameters - # results = AccountsApi(api_client).delete_account_async(id) - print("The response of AccountsApi->delete_account_async:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccountsApi->delete_account_async: %s\n" % e) + id = 'c350d6aa4f104c61b062cb632421ad10' # str | The account id # str | The account id + try: + # Remove Account + + results = AccountsApi(api_client).delete_account_async(id=id) + # Below is a request that includes all optional parameters + # results = AccountsApi(api_client).delete_account_async(id) + print("The response of AccountsApi->delete_account_async:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccountsApi->delete_account_async: %s\n" % e) - path: /accounts/{id}/disable method: POST xCodeSample: @@ -1062,27 +1031,26 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.account_toggle_request import AccountToggleRequest from sailpoint.beta.models.accounts_async_result import AccountsAsyncResult - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The account id # str | The account id - account_toggle_request = '''{ + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The account id # str | The account id + account_toggle_request = '''{ "forceProvisioning" : false, "externalVerificationId" : "3f9180835d2e5168015d32f890ca1581" }''' # AccountToggleRequest | - try: - # Disable Account - new_account_toggle_request = AccountToggleRequest.from_json(account_toggle_request) - results = AccountsApi(api_client).disable_account(id=id, account_toggle_request=new_account_toggle_request) - # Below is a request that includes all optional parameters - # results = AccountsApi(api_client).disable_account(id, new_account_toggle_request) - print("The response of AccountsApi->disable_account:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccountsApi->disable_account: %s\n" % e) + try: + # Disable Account + new_account_toggle_request = AccountToggleRequest.from_json(account_toggle_request) + results = AccountsApi(api_client).disable_account(id=id, account_toggle_request=new_account_toggle_request) + # Below is a request that includes all optional parameters + # results = AccountsApi(api_client).disable_account(id, new_account_toggle_request) + print("The response of AccountsApi->disable_account:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccountsApi->disable_account: %s\n" % e) - path: /identities-accounts/{id}/disable method: POST xCodeSample: @@ -1091,23 +1059,22 @@ source: | from sailpoint.beta.api.accounts_api import AccountsApi from sailpoint.beta.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808384203c2d018437e631158309' # str | The identity id. # str | The identity id. - try: - # Disable IDN Account for Identity - - results = AccountsApi(api_client).disable_account_for_identity(id=id) - # Below is a request that includes all optional parameters - # results = AccountsApi(api_client).disable_account_for_identity(id) - print("The response of AccountsApi->disable_account_for_identity:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccountsApi->disable_account_for_identity: %s\n" % e) + id = '2c91808384203c2d018437e631158309' # str | The identity id. # str | The identity id. + try: + # Disable IDN Account for Identity + + results = AccountsApi(api_client).disable_account_for_identity(id=id) + # Below is a request that includes all optional parameters + # results = AccountsApi(api_client).disable_account_for_identity(id) + print("The response of AccountsApi->disable_account_for_identity:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccountsApi->disable_account_for_identity: %s\n" % e) - path: /identities-accounts/disable method: POST xCodeSample: @@ -1118,25 +1085,24 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.bulk_identities_accounts_response import BulkIdentitiesAccountsResponse from sailpoint.beta.models.identities_accounts_bulk_request import IdentitiesAccountsBulkRequest - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - identities_accounts_bulk_request = '''{ + identities_accounts_bulk_request = '''{ "identityIds" : [ "2c91808384203c2d018437e631158308", "2c9180858082150f0180893dbaf553fe" ] }''' # IdentitiesAccountsBulkRequest | - try: - # Disable IDN Accounts for Identities - new_identities_accounts_bulk_request = IdentitiesAccountsBulkRequest.from_json(identities_accounts_bulk_request) - results = AccountsApi(api_client).disable_accounts_for_identities(identities_accounts_bulk_request=new_identities_accounts_bulk_request) - # Below is a request that includes all optional parameters - # results = AccountsApi(api_client).disable_accounts_for_identities(new_identities_accounts_bulk_request) - print("The response of AccountsApi->disable_accounts_for_identities:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccountsApi->disable_accounts_for_identities: %s\n" % e) + try: + # Disable IDN Accounts for Identities + new_identities_accounts_bulk_request = IdentitiesAccountsBulkRequest.from_json(identities_accounts_bulk_request) + results = AccountsApi(api_client).disable_accounts_for_identities(identities_accounts_bulk_request=new_identities_accounts_bulk_request) + # Below is a request that includes all optional parameters + # results = AccountsApi(api_client).disable_accounts_for_identities(new_identities_accounts_bulk_request) + print("The response of AccountsApi->disable_accounts_for_identities:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccountsApi->disable_accounts_for_identities: %s\n" % e) - path: /accounts/{id}/enable method: POST xCodeSample: @@ -1147,27 +1113,26 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.account_toggle_request import AccountToggleRequest from sailpoint.beta.models.accounts_async_result import AccountsAsyncResult - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The account id # str | The account id - account_toggle_request = '''{ + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The account id # str | The account id + account_toggle_request = '''{ "forceProvisioning" : false, "externalVerificationId" : "3f9180835d2e5168015d32f890ca1581" }''' # AccountToggleRequest | - try: - # Enable Account - new_account_toggle_request = AccountToggleRequest.from_json(account_toggle_request) - results = AccountsApi(api_client).enable_account(id=id, account_toggle_request=new_account_toggle_request) - # Below is a request that includes all optional parameters - # results = AccountsApi(api_client).enable_account(id, new_account_toggle_request) - print("The response of AccountsApi->enable_account:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccountsApi->enable_account: %s\n" % e) + try: + # Enable Account + new_account_toggle_request = AccountToggleRequest.from_json(account_toggle_request) + results = AccountsApi(api_client).enable_account(id=id, account_toggle_request=new_account_toggle_request) + # Below is a request that includes all optional parameters + # results = AccountsApi(api_client).enable_account(id, new_account_toggle_request) + print("The response of AccountsApi->enable_account:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccountsApi->enable_account: %s\n" % e) - path: /identities-accounts/{id}/enable method: POST xCodeSample: @@ -1176,23 +1141,22 @@ source: | from sailpoint.beta.api.accounts_api import AccountsApi from sailpoint.beta.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808384203c2d018437e631158309' # str | The identity id. # str | The identity id. - try: - # Enable IDN Account for Identity - - results = AccountsApi(api_client).enable_account_for_identity(id=id) - # Below is a request that includes all optional parameters - # results = AccountsApi(api_client).enable_account_for_identity(id) - print("The response of AccountsApi->enable_account_for_identity:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccountsApi->enable_account_for_identity: %s\n" % e) + id = '2c91808384203c2d018437e631158309' # str | The identity id. # str | The identity id. + try: + # Enable IDN Account for Identity + + results = AccountsApi(api_client).enable_account_for_identity(id=id) + # Below is a request that includes all optional parameters + # results = AccountsApi(api_client).enable_account_for_identity(id) + print("The response of AccountsApi->enable_account_for_identity:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccountsApi->enable_account_for_identity: %s\n" % e) - path: /identities-accounts/enable method: POST xCodeSample: @@ -1203,25 +1167,24 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.bulk_identities_accounts_response import BulkIdentitiesAccountsResponse from sailpoint.beta.models.identities_accounts_bulk_request import IdentitiesAccountsBulkRequest - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - identities_accounts_bulk_request = '''{ + identities_accounts_bulk_request = '''{ "identityIds" : [ "2c91808384203c2d018437e631158308", "2c9180858082150f0180893dbaf553fe" ] }''' # IdentitiesAccountsBulkRequest | - try: - # Enable IDN Accounts for Identities - new_identities_accounts_bulk_request = IdentitiesAccountsBulkRequest.from_json(identities_accounts_bulk_request) - results = AccountsApi(api_client).enable_accounts_for_identities(identities_accounts_bulk_request=new_identities_accounts_bulk_request) - # Below is a request that includes all optional parameters - # results = AccountsApi(api_client).enable_accounts_for_identities(new_identities_accounts_bulk_request) - print("The response of AccountsApi->enable_accounts_for_identities:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccountsApi->enable_accounts_for_identities: %s\n" % e) + try: + # Enable IDN Accounts for Identities + new_identities_accounts_bulk_request = IdentitiesAccountsBulkRequest.from_json(identities_accounts_bulk_request) + results = AccountsApi(api_client).enable_accounts_for_identities(identities_accounts_bulk_request=new_identities_accounts_bulk_request) + # Below is a request that includes all optional parameters + # results = AccountsApi(api_client).enable_accounts_for_identities(new_identities_accounts_bulk_request) + print("The response of AccountsApi->enable_accounts_for_identities:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccountsApi->enable_accounts_for_identities: %s\n" % e) - path: /accounts/{id} method: GET xCodeSample: @@ -1231,23 +1194,22 @@ from sailpoint.beta.api.accounts_api import AccountsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.account import Account - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | Account ID. # str | Account ID. - try: - # Account Details - - results = AccountsApi(api_client).get_account(id=id) - # Below is a request that includes all optional parameters - # results = AccountsApi(api_client).get_account(id) - print("The response of AccountsApi->get_account:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccountsApi->get_account: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | Account ID. # str | Account ID. + try: + # Account Details + + results = AccountsApi(api_client).get_account(id=id) + # Below is a request that includes all optional parameters + # results = AccountsApi(api_client).get_account(id) + print("The response of AccountsApi->get_account:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccountsApi->get_account: %s\n" % e) - path: /accounts/{id}/entitlements method: GET xCodeSample: @@ -1257,26 +1219,25 @@ from sailpoint.beta.api.accounts_api import AccountsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.entitlement import Entitlement - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The account id # str | The account id - 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) - 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) - 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) - try: - # Account Entitlements - - results = AccountsApi(api_client).get_account_entitlements(id=id) - # Below is a request that includes all optional parameters - # results = AccountsApi(api_client).get_account_entitlements(id, offset, limit, count) - print("The response of AccountsApi->get_account_entitlements:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccountsApi->get_account_entitlements: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The account id # str | The account id + 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) + 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) + 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) + try: + # Account Entitlements + + results = AccountsApi(api_client).get_account_entitlements(id=id) + # Below is a request that includes all optional parameters + # results = AccountsApi(api_client).get_account_entitlements(id, offset, limit, count) + print("The response of AccountsApi->get_account_entitlements:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccountsApi->get_account_entitlements: %s\n" % e) - path: /accounts method: GET xCodeSample: @@ -1286,28 +1247,27 @@ from sailpoint.beta.api.accounts_api import AccountsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.account import Account - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - detail_level = 'FULL' # str | This value determines whether the API provides `SLIM` or increased level of detail (`FULL`) for each account in the returned list. `FULL` is the default behavior. (optional) # str | This value determines whether the API provides `SLIM` or increased level of detail (`FULL`) for each account in the returned list. `FULL` is the default behavior. (optional) - 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 = 'identityId eq \"2c9180858082150f0180893dbaf44201\"' # 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* **identityId**: *eq, in, sw* **name**: *eq, in, sw* **nativeIdentity**: *eq, in, sw* **sourceId**: *eq, in, sw* **uncorrelated**: *eq* **entitlements**: *eq* **origin**: *eq, in* **manuallyCorrelated**: *eq* **hasEntitlements**: *eq* **identity.name**: *eq, in, sw* **identity.correlated**: *eq* **identity.identityState**: *eq, in* **source.displayableName**: *eq, in* **source.authoritative**: *eq* **source.connectionType**: *eq, in* **recommendation.method**: *eq, in, isnull* **created**: *eq, ge, gt, le* **modified**: *eq, ge, gt, le, lt* (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* **identityId**: *eq, in, sw* **name**: *eq, in, sw* **nativeIdentity**: *eq, in, sw* **sourceId**: *eq, in, sw* **uncorrelated**: *eq* **entitlements**: *eq* **origin**: *eq, in* **manuallyCorrelated**: *eq* **hasEntitlements**: *eq* **identity.name**: *eq, in, sw* **identity.correlated**: *eq* **identity.identityState**: *eq, in* **source.displayableName**: *eq, in* **source.authoritative**: *eq* **source.connectionType**: *eq, in* **recommendation.method**: *eq, in, isnull* **created**: *eq, ge, gt, le* **modified**: *eq, ge, gt, le, lt* (optional) - sorters = 'id,name' # 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: **id, name, created, modified, sourceId, identityId, nativeIdentity, uuid, manuallyCorrelated, hasEntitlements, entitlements, origin, identity.name, identity.identityState, identity.correlated, source.displayableName, source.authoritative, source.connectionType, sourceOwner.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: **id, name, created, modified, sourceId, identityId, nativeIdentity, uuid, manuallyCorrelated, hasEntitlements, entitlements, origin, identity.name, identity.identityState, identity.correlated, source.displayableName, source.authoritative, source.connectionType, sourceOwner.name** (optional) - try: - # Accounts List - - results = AccountsApi(api_client).list_accounts() - # Below is a request that includes all optional parameters - # results = AccountsApi(api_client).list_accounts(detail_level, limit, offset, count, filters, sorters) - print("The response of AccountsApi->list_accounts:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccountsApi->list_accounts: %s\n" % e) + detail_level = 'FULL' # str | This value determines whether the API provides `SLIM` or increased level of detail (`FULL`) for each account in the returned list. `FULL` is the default behavior. (optional) # str | This value determines whether the API provides `SLIM` or increased level of detail (`FULL`) for each account in the returned list. `FULL` is the default behavior. (optional) + 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 = 'identityId eq \"2c9180858082150f0180893dbaf44201\"' # 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* **identityId**: *eq, in, sw* **name**: *eq, in, sw* **nativeIdentity**: *eq, in, sw* **sourceId**: *eq, in, sw* **uncorrelated**: *eq* **entitlements**: *eq* **origin**: *eq, in* **manuallyCorrelated**: *eq* **hasEntitlements**: *eq* **identity.name**: *eq, in, sw* **identity.correlated**: *eq* **identity.identityState**: *eq, in* **source.displayableName**: *eq, in* **source.authoritative**: *eq* **source.connectionType**: *eq, in* **recommendation.method**: *eq, in, isnull* **created**: *eq, ge, gt, le* **modified**: *eq, ge, gt, le, lt* (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* **identityId**: *eq, in, sw* **name**: *eq, in, sw* **nativeIdentity**: *eq, in, sw* **sourceId**: *eq, in, sw* **uncorrelated**: *eq* **entitlements**: *eq* **origin**: *eq, in* **manuallyCorrelated**: *eq* **hasEntitlements**: *eq* **identity.name**: *eq, in, sw* **identity.correlated**: *eq* **identity.identityState**: *eq, in* **source.displayableName**: *eq, in* **source.authoritative**: *eq* **source.connectionType**: *eq, in* **recommendation.method**: *eq, in, isnull* **created**: *eq, ge, gt, le* **modified**: *eq, ge, gt, le, lt* (optional) + sorters = 'id,name' # 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: **id, name, created, modified, sourceId, identityId, nativeIdentity, uuid, manuallyCorrelated, hasEntitlements, entitlements, origin, identity.name, identity.identityState, identity.correlated, source.displayableName, source.authoritative, source.connectionType, sourceOwner.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: **id, name, created, modified, sourceId, identityId, nativeIdentity, uuid, manuallyCorrelated, hasEntitlements, entitlements, origin, identity.name, identity.identityState, identity.correlated, source.displayableName, source.authoritative, source.connectionType, sourceOwner.name** (optional) + try: + # Accounts List + + results = AccountsApi(api_client).list_accounts() + # Below is a request that includes all optional parameters + # results = AccountsApi(api_client).list_accounts(detail_level, limit, offset, count, filters, sorters) + print("The response of AccountsApi->list_accounts:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccountsApi->list_accounts: %s\n" % e) - path: /accounts/{id} method: PUT xCodeSample: @@ -1318,14 +1278,13 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.account_attributes import AccountAttributes from sailpoint.beta.models.accounts_async_result import AccountsAsyncResult - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | Account ID. # str | Account ID. - account_attributes = '''{ + id = 'ef38f94347e94562b5bb8424a56397d8' # str | Account ID. # str | Account ID. + account_attributes = '''{ "attributes" : { "city" : "Austin", "displayName" : "John Doe", @@ -1334,16 +1293,16 @@ "mail" : "john.doe@sailpoint.com" } }''' # AccountAttributes | - try: - # Update Account - new_account_attributes = AccountAttributes.from_json(account_attributes) - results = AccountsApi(api_client).put_account(id=id, account_attributes=new_account_attributes) - # Below is a request that includes all optional parameters - # results = AccountsApi(api_client).put_account(id, new_account_attributes) - print("The response of AccountsApi->put_account:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccountsApi->put_account: %s\n" % e) + try: + # Update Account + new_account_attributes = AccountAttributes.from_json(account_attributes) + results = AccountsApi(api_client).put_account(id=id, account_attributes=new_account_attributes) + # Below is a request that includes all optional parameters + # results = AccountsApi(api_client).put_account(id, new_account_attributes) + print("The response of AccountsApi->put_account:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccountsApi->put_account: %s\n" % e) - path: /accounts/{id}/reload method: POST xCodeSample: @@ -1353,23 +1312,22 @@ from sailpoint.beta.api.accounts_api import AccountsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.accounts_async_result import AccountsAsyncResult - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The account id # str | The account id - try: - # Reload Account - - results = AccountsApi(api_client).submit_reload_account(id=id) - # Below is a request that includes all optional parameters - # results = AccountsApi(api_client).submit_reload_account(id) - print("The response of AccountsApi->submit_reload_account:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccountsApi->submit_reload_account: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The account id # str | The account id + try: + # Reload Account + + results = AccountsApi(api_client).submit_reload_account(id=id) + # Below is a request that includes all optional parameters + # results = AccountsApi(api_client).submit_reload_account(id) + print("The response of AccountsApi->submit_reload_account:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccountsApi->submit_reload_account: %s\n" % e) - path: /accounts/{id}/unlock method: POST xCodeSample: @@ -1380,28 +1338,27 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.account_unlock_request import AccountUnlockRequest from sailpoint.beta.models.accounts_async_result import AccountsAsyncResult - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The account ID. # str | The account ID. - account_unlock_request = '''{ + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The account ID. # str | The account ID. + account_unlock_request = '''{ "forceProvisioning" : false, "externalVerificationId" : "3f9180835d2e5168015d32f890ca1581", "unlockIDNAccount" : false }''' # AccountUnlockRequest | - try: - # Unlock Account - new_account_unlock_request = AccountUnlockRequest.from_json(account_unlock_request) - results = AccountsApi(api_client).unlock_account(id=id, account_unlock_request=new_account_unlock_request) - # Below is a request that includes all optional parameters - # results = AccountsApi(api_client).unlock_account(id, new_account_unlock_request) - print("The response of AccountsApi->unlock_account:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccountsApi->unlock_account: %s\n" % e) + try: + # Unlock Account + new_account_unlock_request = AccountUnlockRequest.from_json(account_unlock_request) + results = AccountsApi(api_client).unlock_account(id=id, account_unlock_request=new_account_unlock_request) + # Below is a request that includes all optional parameters + # results = AccountsApi(api_client).unlock_account(id, new_account_unlock_request) + print("The response of AccountsApi->unlock_account:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccountsApi->unlock_account: %s\n" % e) - path: /accounts/{id} method: PATCH xCodeSample: @@ -1410,24 +1367,23 @@ source: | from sailpoint.beta.api.accounts_api import AccountsApi from sailpoint.beta.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | Account ID. # str | Account ID. - request_body = '''{Uncorrelate account={description=Remove account from Identity, value=[{op=remove, path=/identityId}]}, Reassign account={description=Move account from one Identity to another Identity, value=[{op=replace, path=/identityId, value=2c9180857725c14301772a93bb77242d}]}, Add account attribute={description=Add flat file account's attribute, value=[{op=add, path=/attributes/familyName, value=Smith}]}, Replace account attribute={description=Replace flat file account's attribute, value=[{op=replace, path=/attributes/familyName, value=Smith}]}, Remove account attribute={description=Remove flat file account's attribute, value=[{op=remove, path=/attributes/familyName}]}}''' # List[object] | A list of account update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. - try: - # Update Account - new_request_body = RequestBody.from_json(request_body) - results = AccountsApi(api_client).update_account(id=id, request_body=new_request_body) - # Below is a request that includes all optional parameters - # results = AccountsApi(api_client).update_account(id, new_request_body) - print("The response of AccountsApi->update_account:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccountsApi->update_account: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | Account ID. # str | Account ID. + request_body = '''{Uncorrelate account={description=Remove account from Identity, value=[{op=remove, path=/identityId}]}, Reassign account={description=Move account from one Identity to another Identity, value=[{op=replace, path=/identityId, value=2c9180857725c14301772a93bb77242d}]}, Add account attribute={description=Add flat file account's attribute, value=[{op=add, path=/attributes/familyName, value=Smith}]}, Replace account attribute={description=Replace flat file account's attribute, value=[{op=replace, path=/attributes/familyName, value=Smith}]}, Remove account attribute={description=Remove flat file account's attribute, value=[{op=remove, path=/attributes/familyName}]}}''' # List[object] | A list of account update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. + try: + # Update Account + new_request_body = RequestBody.from_json(request_body) + results = AccountsApi(api_client).update_account(id=id, request_body=new_request_body) + # Below is a request that includes all optional parameters + # results = AccountsApi(api_client).update_account(id, new_request_body) + print("The response of AccountsApi->update_account:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccountsApi->update_account: %s\n" % e) - path: /account-usages/{accountId}/summaries method: GET xCodeSample: @@ -1437,27 +1393,26 @@ from sailpoint.beta.api.account_usages_api import AccountUsagesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.account_usage import AccountUsage - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - account_id = 'ef38f94347e94562b5bb8424a56397d8' # str | ID of IDN account # str | ID of IDN account - 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) - sorters = '-date' # 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: **date** (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: **date** (optional) - try: - # Returns account usage insights - - results = AccountUsagesApi(api_client).get_usages_by_account_id(account_id=account_id) - # Below is a request that includes all optional parameters - # results = AccountUsagesApi(api_client).get_usages_by_account_id(account_id, limit, offset, count, sorters) - print("The response of AccountUsagesApi->get_usages_by_account_id:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccountUsagesApi->get_usages_by_account_id: %s\n" % e) + account_id = 'ef38f94347e94562b5bb8424a56397d8' # str | ID of IDN account # str | ID of IDN account + 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) + sorters = '-date' # 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: **date** (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: **date** (optional) + try: + # Returns account usage insights + + results = AccountUsagesApi(api_client).get_usages_by_account_id(account_id=account_id) + # Below is a request that includes all optional parameters + # results = AccountUsagesApi(api_client).get_usages_by_account_id(account_id, limit, offset, count, sorters) + print("The response of AccountUsagesApi->get_usages_by_account_id:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccountUsagesApi->get_usages_by_account_id: %s\n" % e) - path: /discovered-applications/{id} method: GET xCodeSample: @@ -1466,21 +1421,20 @@ source: | from sailpoint.beta.api.application_discovery_api import ApplicationDiscoveryApi from sailpoint.beta.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '123e4567-e89b-12d3-a456-426655440000' # str | Discovered application's ID. # str | Discovered application's ID. - try: - # Get Discovered Application by ID - - ApplicationDiscoveryApi(api_client).get_discovered_application_by_id(id=id) - # Below is a request that includes all optional parameters - # ApplicationDiscoveryApi(api_client).get_discovered_application_by_id(id) - except Exception as e: - print("Exception when calling ApplicationDiscoveryApi->get_discovered_application_by_id: %s\n" % e) + id = '123e4567-e89b-12d3-a456-426655440000' # str | Discovered application's ID. # str | Discovered application's ID. + try: + # Get Discovered Application by ID + + ApplicationDiscoveryApi(api_client).get_discovered_application_by_id(id=id) + # Below is a request that includes all optional parameters + # ApplicationDiscoveryApi(api_client).get_discovered_application_by_id(id) + except Exception as e: + print("Exception when calling ApplicationDiscoveryApi->get_discovered_application_by_id: %s\n" % e) - path: /discovered-applications method: GET xCodeSample: @@ -1490,27 +1444,26 @@ from sailpoint.beta.api.application_discovery_api import ApplicationDiscoveryApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.get_discovered_applications200_response_inner import GetDiscoveredApplications200ResponseInner - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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) - detail = 'FULL' # str | Determines whether slim, or increased level of detail is provided for each discovered application in the returned list. SLIM is the default behavior. (optional) # str | Determines whether slim, or increased level of detail is provided for each discovered application in the returned list. SLIM is the default behavior. (optional) - filter = 'name eq \"Okta\" and description co \"Okta\" and discoverySource in (\"csv\", \"Okta Saas\")' # 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: **name**: *eq, sw, co* **description**: *eq, sw, co* **createdAtStart**: *eq, le, ge* **createdAtEnd**: *eq, le, ge* **discoveredAtStart**: *eq, le, ge* **discoveredAtEnd**: *eq, le, ge* **discoverySource**: *eq, in* (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: **name**: *eq, sw, co* **description**: *eq, sw, co* **createdAtStart**: *eq, le, ge* **createdAtEnd**: *eq, le, ge* **discoveredAtStart**: *eq, le, ge* **discoveredAtEnd**: *eq, le, ge* **discoverySource**: *eq, in* (optional) - sorters = 'name' # 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: **name, description, discoveredAt, discoverySource** (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: **name, description, discoveredAt, discoverySource** (optional) - try: - # Retrieve discovered applications for tenant - - results = ApplicationDiscoveryApi(api_client).get_discovered_applications() - # Below is a request that includes all optional parameters - # results = ApplicationDiscoveryApi(api_client).get_discovered_applications(limit, offset, detail, filter, sorters) - print("The response of ApplicationDiscoveryApi->get_discovered_applications:\n") - pprint(results) - except Exception as e: - print("Exception when calling ApplicationDiscoveryApi->get_discovered_applications: %s\n" % e) + 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) + detail = 'FULL' # str | Determines whether slim, or increased level of detail is provided for each discovered application in the returned list. SLIM is the default behavior. (optional) # str | Determines whether slim, or increased level of detail is provided for each discovered application in the returned list. SLIM is the default behavior. (optional) + filter = 'name eq \"Okta\" and description co \"Okta\" and discoverySource in (\"csv\", \"Okta Saas\")' # 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: **name**: *eq, sw, co* **description**: *eq, sw, co* **createdAtStart**: *eq, le, ge* **createdAtEnd**: *eq, le, ge* **discoveredAtStart**: *eq, le, ge* **discoveredAtEnd**: *eq, le, ge* **discoverySource**: *eq, in* (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: **name**: *eq, sw, co* **description**: *eq, sw, co* **createdAtStart**: *eq, le, ge* **createdAtEnd**: *eq, le, ge* **discoveredAtStart**: *eq, le, ge* **discoveredAtEnd**: *eq, le, ge* **discoverySource**: *eq, in* (optional) + sorters = 'name' # 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: **name, description, discoveredAt, discoverySource** (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: **name, description, discoveredAt, discoverySource** (optional) + try: + # Retrieve discovered applications for tenant + + results = ApplicationDiscoveryApi(api_client).get_discovered_applications() + # Below is a request that includes all optional parameters + # results = ApplicationDiscoveryApi(api_client).get_discovered_applications(limit, offset, detail, filter, sorters) + print("The response of ApplicationDiscoveryApi->get_discovered_applications:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ApplicationDiscoveryApi->get_discovered_applications: %s\n" % e) - path: /manual-discover-applications-template method: GET xCodeSample: @@ -1520,22 +1473,21 @@ from sailpoint.beta.api.application_discovery_api import ApplicationDiscoveryApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.manual_discover_applications_template import ManualDiscoverApplicationsTemplate - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - try: - # Download CSV Template for Discovery - - results = ApplicationDiscoveryApi(api_client).get_manual_discover_applications_csv_template() - # Below is a request that includes all optional parameters - # results = ApplicationDiscoveryApi(api_client).get_manual_discover_applications_csv_template() - print("The response of ApplicationDiscoveryApi->get_manual_discover_applications_csv_template:\n") - pprint(results) - except Exception as e: - print("Exception when calling ApplicationDiscoveryApi->get_manual_discover_applications_csv_template: %s\n" % e) + try: + # Download CSV Template for Discovery + + results = ApplicationDiscoveryApi(api_client).get_manual_discover_applications_csv_template() + # Below is a request that includes all optional parameters + # results = ApplicationDiscoveryApi(api_client).get_manual_discover_applications_csv_template() + print("The response of ApplicationDiscoveryApi->get_manual_discover_applications_csv_template:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ApplicationDiscoveryApi->get_manual_discover_applications_csv_template: %s\n" % e) - path: /discovered-applications/{id} method: PATCH xCodeSample: @@ -1545,22 +1497,21 @@ from sailpoint.beta.api.application_discovery_api import ApplicationDiscoveryApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.json_patch_operations import JsonPatchOperations - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '123e4567-e89b-12d3-a456-426655440000' # str | Discovered application's ID. # str | Discovered application's ID. - json_patch_operations = '''[{op=replace, path=/dismissed, value=true}]''' # List[JsonPatchOperations] | (optional) - try: - # Patch Discovered Application by ID - - ApplicationDiscoveryApi(api_client).patch_discovered_application_by_id(id=id) - # Below is a request that includes all optional parameters - # ApplicationDiscoveryApi(api_client).patch_discovered_application_by_id(id, new_json_patch_operations) - except Exception as e: - print("Exception when calling ApplicationDiscoveryApi->patch_discovered_application_by_id: %s\n" % e) + id = '123e4567-e89b-12d3-a456-426655440000' # str | Discovered application's ID. # str | Discovered application's ID. + json_patch_operations = '''[{op=replace, path=/dismissed, value=true}]''' # List[JsonPatchOperations] | (optional) + try: + # Patch Discovered Application by ID + + ApplicationDiscoveryApi(api_client).patch_discovered_application_by_id(id=id) + # Below is a request that includes all optional parameters + # ApplicationDiscoveryApi(api_client).patch_discovered_application_by_id(id, new_json_patch_operations) + except Exception as e: + print("Exception when calling ApplicationDiscoveryApi->patch_discovered_application_by_id: %s\n" % e) - path: /manual-discover-applications method: POST xCodeSample: @@ -1569,21 +1520,20 @@ source: | from sailpoint.beta.api.application_discovery_api import ApplicationDiscoveryApi from sailpoint.beta.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - file = None # bytearray | The CSV file to upload containing `application_name` and `description` columns. Each row represents an application to be discovered. # bytearray | The CSV file to upload containing `application_name` and `description` columns. Each row represents an application to be discovered. - try: - # Upload CSV to Discover Applications - - ApplicationDiscoveryApi(api_client).send_manual_discover_applications_csv_template(file=file) - # Below is a request that includes all optional parameters - # ApplicationDiscoveryApi(api_client).send_manual_discover_applications_csv_template(file) - except Exception as e: - print("Exception when calling ApplicationDiscoveryApi->send_manual_discover_applications_csv_template: %s\n" % e) + file = None # bytearray | The CSV file to upload containing `application_name` and `description` columns. Each row represents an application to be discovered. # bytearray | The CSV file to upload containing `application_name` and `description` columns. Each row represents an application to be discovered. + try: + # Upload CSV to Discover Applications + + ApplicationDiscoveryApi(api_client).send_manual_discover_applications_csv_template(file=file) + # Below is a request that includes all optional parameters + # ApplicationDiscoveryApi(api_client).send_manual_discover_applications_csv_template(file) + except Exception as e: + print("Exception when calling ApplicationDiscoveryApi->send_manual_discover_applications_csv_template: %s\n" % e) - path: /generic-approvals/{id} method: GET xCodeSample: @@ -1593,23 +1543,22 @@ from sailpoint.beta.api.approvals_api import ApprovalsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.approval import Approval - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '38453251-6be2-5f8f-df93-5ce19e295837' # str | ID of the approval that to be returned. # str | ID of the approval that to be returned. - try: - # Get Approval - - results = ApprovalsApi(api_client).get_approval(id=id) - # Below is a request that includes all optional parameters - # results = ApprovalsApi(api_client).get_approval(id) - print("The response of ApprovalsApi->get_approval:\n") - pprint(results) - except Exception as e: - print("Exception when calling ApprovalsApi->get_approval: %s\n" % e) + id = '38453251-6be2-5f8f-df93-5ce19e295837' # str | ID of the approval that to be returned. # str | ID of the approval that to be returned. + try: + # Get Approval + + results = ApprovalsApi(api_client).get_approval(id=id) + # Below is a request that includes all optional parameters + # results = ApprovalsApi(api_client).get_approval(id) + print("The response of ApprovalsApi->get_approval:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ApprovalsApi->get_approval: %s\n" % e) - path: /generic-approvals method: GET xCodeSample: @@ -1619,25 +1568,24 @@ from sailpoint.beta.api.approvals_api import ApprovalsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.approval import Approval - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - mine = true # bool | Returns the list of approvals for the current caller. (optional) # bool | Returns the list of approvals for the current caller. (optional) - requester_id = '17e633e7d57e481569df76323169deb6a' # str | Returns the list of approvals for a given requester ID. (optional) # str | Returns the list of approvals for a given requester ID. (optional) - filters = 'filters=status eq PENDING' # 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: **status**: *eq* **referenceType**: *eq* (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: **status**: *eq* **referenceType**: *eq* (optional) - try: - # Get Approvals - - results = ApprovalsApi(api_client).get_approvals() - # Below is a request that includes all optional parameters - # results = ApprovalsApi(api_client).get_approvals(mine, requester_id, filters) - print("The response of ApprovalsApi->get_approvals:\n") - pprint(results) - except Exception as e: - print("Exception when calling ApprovalsApi->get_approvals: %s\n" % e) + mine = true # bool | Returns the list of approvals for the current caller. (optional) # bool | Returns the list of approvals for the current caller. (optional) + requester_id = '17e633e7d57e481569df76323169deb6a' # str | Returns the list of approvals for a given requester ID. (optional) # str | Returns the list of approvals for a given requester ID. (optional) + filters = 'filters=status eq PENDING' # 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: **status**: *eq* **referenceType**: *eq* (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: **status**: *eq* **referenceType**: *eq* (optional) + try: + # Get Approvals + + results = ApprovalsApi(api_client).get_approvals() + # Below is a request that includes all optional parameters + # results = ApprovalsApi(api_client).get_approvals(mine, requester_id, filters) + print("The response of ApprovalsApi->get_approvals:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ApprovalsApi->get_approvals: %s\n" % e) - path: /source-apps method: POST xCodeSample: @@ -1648,13 +1596,12 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.source_app import SourceApp from sailpoint.beta.models.source_app_create_dto import SourceAppCreateDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_app_create_dto = '''{ + source_app_create_dto = '''{ "name" : "my app", "description" : "the source app for engineers", "accountSource" : { @@ -1664,16 +1611,16 @@ }, "matchAllAccounts" : true }''' # SourceAppCreateDto | - try: - # Create source app - new_source_app_create_dto = SourceAppCreateDto.from_json(source_app_create_dto) - results = AppsApi(api_client).create_source_app(source_app_create_dto=new_source_app_create_dto) - # Below is a request that includes all optional parameters - # results = AppsApi(api_client).create_source_app(new_source_app_create_dto) - print("The response of AppsApi->create_source_app:\n") - pprint(results) - except Exception as e: - print("Exception when calling AppsApi->create_source_app: %s\n" % e) + try: + # Create source app + new_source_app_create_dto = SourceAppCreateDto.from_json(source_app_create_dto) + results = AppsApi(api_client).create_source_app(source_app_create_dto=new_source_app_create_dto) + # Below is a request that includes all optional parameters + # results = AppsApi(api_client).create_source_app(new_source_app_create_dto) + print("The response of AppsApi->create_source_app:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AppsApi->create_source_app: %s\n" % e) - path: /source-apps/{id}/access-profiles/bulk-remove method: POST xCodeSample: @@ -1683,25 +1630,24 @@ from sailpoint.beta.api.apps_api import AppsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.access_profile_details import AccessProfileDetails - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808a7813090a017814121e121518' # str | ID of the source app # str | ID of the source app - request_body = '''['request_body_example']''' # List[str] | - 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) - try: - # Bulk remove access profiles from the specified source app - new_request_body = RequestBody.from_json(request_body) - results = AppsApi(api_client).delete_access_profiles_from_source_app_by_bulk(id=id, request_body=new_request_body) - # Below is a request that includes all optional parameters - # results = AppsApi(api_client).delete_access_profiles_from_source_app_by_bulk(id, new_request_body, limit) - print("The response of AppsApi->delete_access_profiles_from_source_app_by_bulk:\n") - pprint(results) - except Exception as e: - print("Exception when calling AppsApi->delete_access_profiles_from_source_app_by_bulk: %s\n" % e) + id = '2c91808a7813090a017814121e121518' # str | ID of the source app # str | ID of the source app + request_body = '''['request_body_example']''' # List[str] | + 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) + try: + # Bulk remove access profiles from the specified source app + new_request_body = RequestBody.from_json(request_body) + results = AppsApi(api_client).delete_access_profiles_from_source_app_by_bulk(id=id, request_body=new_request_body) + # Below is a request that includes all optional parameters + # results = AppsApi(api_client).delete_access_profiles_from_source_app_by_bulk(id, new_request_body, limit) + print("The response of AppsApi->delete_access_profiles_from_source_app_by_bulk:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AppsApi->delete_access_profiles_from_source_app_by_bulk: %s\n" % e) - path: /source-apps/{id} method: DELETE xCodeSample: @@ -1711,23 +1657,22 @@ from sailpoint.beta.api.apps_api import AppsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.source_app import SourceApp - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c9180835d191a86015d28455b4a2329' # str | source app ID. # str | source app ID. - try: - # Delete source app by ID - - results = AppsApi(api_client).delete_source_app(id=id) - # Below is a request that includes all optional parameters - # results = AppsApi(api_client).delete_source_app(id) - print("The response of AppsApi->delete_source_app:\n") - pprint(results) - except Exception as e: - print("Exception when calling AppsApi->delete_source_app: %s\n" % e) + id = '2c9180835d191a86015d28455b4a2329' # str | source app ID. # str | source app ID. + try: + # Delete source app by ID + + results = AppsApi(api_client).delete_source_app(id=id) + # Below is a request that includes all optional parameters + # results = AppsApi(api_client).delete_source_app(id) + print("The response of AppsApi->delete_source_app:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AppsApi->delete_source_app: %s\n" % e) - path: /source-apps/{id} method: GET xCodeSample: @@ -1737,23 +1682,22 @@ from sailpoint.beta.api.apps_api import AppsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.source_app import SourceApp - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808a7813090a017814121e121518' # str | ID of the source app # str | ID of the source app - try: - # Get source app by ID - - results = AppsApi(api_client).get_source_app(id=id) - # Below is a request that includes all optional parameters - # results = AppsApi(api_client).get_source_app(id) - print("The response of AppsApi->get_source_app:\n") - pprint(results) - except Exception as e: - print("Exception when calling AppsApi->get_source_app: %s\n" % e) + id = '2c91808a7813090a017814121e121518' # str | ID of the source app # str | ID of the source app + try: + # Get source app by ID + + results = AppsApi(api_client).get_source_app(id=id) + # Below is a request that includes all optional parameters + # results = AppsApi(api_client).get_source_app(id) + print("The response of AppsApi->get_source_app:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AppsApi->get_source_app: %s\n" % e) - path: /source-apps/{id}/access-profiles method: GET xCodeSample: @@ -1763,26 +1707,25 @@ from sailpoint.beta.api.apps_api import AppsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.access_profile_details import AccessProfileDetails - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808a7813090a017814121e121518' # str | ID of the source app # str | ID of the source app - 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) - filters = 'name eq \"developer access profile\"' # 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* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, 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* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* (optional) - try: - # List access profiles for the specified source app - - results = AppsApi(api_client).list_access_profiles_for_source_app(id=id) - # Below is a request that includes all optional parameters - # results = AppsApi(api_client).list_access_profiles_for_source_app(id, limit, offset, filters) - print("The response of AppsApi->list_access_profiles_for_source_app:\n") - pprint(results) - except Exception as e: - print("Exception when calling AppsApi->list_access_profiles_for_source_app: %s\n" % e) + id = '2c91808a7813090a017814121e121518' # str | ID of the source app # str | ID of the source app + 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) + filters = 'name eq \"developer access profile\"' # 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* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, 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* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* (optional) + try: + # List access profiles for the specified source app + + results = AppsApi(api_client).list_access_profiles_for_source_app(id=id) + # Below is a request that includes all optional parameters + # results = AppsApi(api_client).list_access_profiles_for_source_app(id, limit, offset, filters) + print("The response of AppsApi->list_access_profiles_for_source_app:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AppsApi->list_access_profiles_for_source_app: %s\n" % e) - path: /source-apps/all method: GET xCodeSample: @@ -1792,27 +1735,26 @@ from sailpoint.beta.api.apps_api import AppsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.source_app import SourceApp - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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) - 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) - 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) - sorters = 'name,-modified' # 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: **id, name, created, modified, owner.id, accountSource.id** (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: **id, name, created, modified, owner.id, accountSource.id** (optional) - filters = 'enabled eq true' # 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, co, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **accountSource.id**: *eq, in* **enabled**: *eq* (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, co, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **accountSource.id**: *eq, in* **enabled**: *eq* (optional) - try: - # List all source apps - - results = AppsApi(api_client).list_all_source_app() - # Below is a request that includes all optional parameters - # results = AppsApi(api_client).list_all_source_app(limit, count, offset, sorters, filters) - print("The response of AppsApi->list_all_source_app:\n") - pprint(results) - except Exception as e: - print("Exception when calling AppsApi->list_all_source_app: %s\n" % e) + 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) + 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) + 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) + sorters = 'name,-modified' # 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: **id, name, created, modified, owner.id, accountSource.id** (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: **id, name, created, modified, owner.id, accountSource.id** (optional) + filters = 'enabled eq true' # 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, co, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **accountSource.id**: *eq, in* **enabled**: *eq* (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, co, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **accountSource.id**: *eq, in* **enabled**: *eq* (optional) + try: + # List all source apps + + results = AppsApi(api_client).list_all_source_app() + # Below is a request that includes all optional parameters + # results = AppsApi(api_client).list_all_source_app(limit, count, offset, sorters, filters) + print("The response of AppsApi->list_all_source_app:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AppsApi->list_all_source_app: %s\n" % e) - path: /user-apps/all method: GET xCodeSample: @@ -1822,26 +1764,25 @@ from sailpoint.beta.api.apps_api import AppsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.user_app import UserApp - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - filters = 'name eq \"user app name\"' # 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* **ownerId**: *eq* **ownerName**: *eq, sw* **ownerAlias**: *eq, sw* **accountId**: *eq* **sourceAppId**: *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* **ownerId**: *eq* **ownerName**: *eq, sw* **ownerAlias**: *eq, sw* **accountId**: *eq* **sourceAppId**: *eq* - 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) - 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) - 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) - try: - # List all user apps - - results = AppsApi(api_client).list_all_user_apps(filters=filters) - # Below is a request that includes all optional parameters - # results = AppsApi(api_client).list_all_user_apps(filters, limit, count, offset) - print("The response of AppsApi->list_all_user_apps:\n") - pprint(results) - except Exception as e: - print("Exception when calling AppsApi->list_all_user_apps: %s\n" % e) + filters = 'name eq \"user app name\"' # 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* **ownerId**: *eq* **ownerName**: *eq, sw* **ownerAlias**: *eq, sw* **accountId**: *eq* **sourceAppId**: *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* **ownerId**: *eq* **ownerName**: *eq, sw* **ownerAlias**: *eq, sw* **accountId**: *eq* **sourceAppId**: *eq* + 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) + 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) + 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) + try: + # List all user apps + + results = AppsApi(api_client).list_all_user_apps(filters=filters) + # Below is a request that includes all optional parameters + # results = AppsApi(api_client).list_all_user_apps(filters, limit, count, offset) + print("The response of AppsApi->list_all_user_apps:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AppsApi->list_all_user_apps: %s\n" % e) - path: /source-apps/assigned method: GET xCodeSample: @@ -1851,27 +1792,26 @@ from sailpoint.beta.api.apps_api import AppsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.source_app import SourceApp - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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) - 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) - 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) - sorters = 'name,-modified' # 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: **id, name, created, modified, accountSource.id** (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: **id, name, created, modified, accountSource.id** (optional) - filters = 'name eq \"source app name\"' # 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, co, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **accountSource.id**: *eq, in* (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, co, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **accountSource.id**: *eq, in* (optional) - try: - # List assigned source apps - - results = AppsApi(api_client).list_assigned_source_app() - # Below is a request that includes all optional parameters - # results = AppsApi(api_client).list_assigned_source_app(limit, count, offset, sorters, filters) - print("The response of AppsApi->list_assigned_source_app:\n") - pprint(results) - except Exception as e: - print("Exception when calling AppsApi->list_assigned_source_app: %s\n" % e) + 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) + 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) + 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) + sorters = 'name,-modified' # 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: **id, name, created, modified, accountSource.id** (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: **id, name, created, modified, accountSource.id** (optional) + filters = 'name eq \"source app name\"' # 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, co, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **accountSource.id**: *eq, in* (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, co, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **accountSource.id**: *eq, in* (optional) + try: + # List assigned source apps + + results = AppsApi(api_client).list_assigned_source_app() + # Below is a request that includes all optional parameters + # results = AppsApi(api_client).list_assigned_source_app(limit, count, offset, sorters, filters) + print("The response of AppsApi->list_assigned_source_app:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AppsApi->list_assigned_source_app: %s\n" % e) - path: /user-apps/{id}/available-accounts method: GET xCodeSample: @@ -1881,26 +1821,25 @@ from sailpoint.beta.api.apps_api import AppsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.app_account_details import AppAccountDetails - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808a7813090a017814121e121518' # str | ID of the user app # str | ID of the user app - 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) - 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) - 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) - try: - # List available accounts for user app - - results = AppsApi(api_client).list_available_accounts_for_user_app(id=id) - # Below is a request that includes all optional parameters - # results = AppsApi(api_client).list_available_accounts_for_user_app(id, limit, count, offset) - print("The response of AppsApi->list_available_accounts_for_user_app:\n") - pprint(results) - except Exception as e: - print("Exception when calling AppsApi->list_available_accounts_for_user_app: %s\n" % e) + id = '2c91808a7813090a017814121e121518' # str | ID of the user app # str | ID of the user app + 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) + 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) + 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) + try: + # List available accounts for user app + + results = AppsApi(api_client).list_available_accounts_for_user_app(id=id) + # Below is a request that includes all optional parameters + # results = AppsApi(api_client).list_available_accounts_for_user_app(id, limit, count, offset) + print("The response of AppsApi->list_available_accounts_for_user_app:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AppsApi->list_available_accounts_for_user_app: %s\n" % e) - path: /source-apps method: GET xCodeSample: @@ -1910,27 +1849,26 @@ from sailpoint.beta.api.apps_api import AppsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.source_app import SourceApp - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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) - 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) - 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) - sorters = 'name,-modified' # 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: **id, name, created, modified, owner.id, accountSource.id** (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: **id, name, created, modified, owner.id, accountSource.id** (optional) - filters = 'name eq \"source app name\"' # 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, co, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **accountSource.id**: *eq, in* (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, co, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **accountSource.id**: *eq, in* (optional) - try: - # List available source apps - - results = AppsApi(api_client).list_available_source_apps() - # Below is a request that includes all optional parameters - # results = AppsApi(api_client).list_available_source_apps(limit, count, offset, sorters, filters) - print("The response of AppsApi->list_available_source_apps:\n") - pprint(results) - except Exception as e: - print("Exception when calling AppsApi->list_available_source_apps: %s\n" % e) + 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) + 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) + 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) + sorters = 'name,-modified' # 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: **id, name, created, modified, owner.id, accountSource.id** (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: **id, name, created, modified, owner.id, accountSource.id** (optional) + filters = 'name eq \"source app name\"' # 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, co, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **accountSource.id**: *eq, in* (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, co, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **accountSource.id**: *eq, in* (optional) + try: + # List available source apps + + results = AppsApi(api_client).list_available_source_apps() + # Below is a request that includes all optional parameters + # results = AppsApi(api_client).list_available_source_apps(limit, count, offset, sorters, filters) + print("The response of AppsApi->list_available_source_apps:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AppsApi->list_available_source_apps: %s\n" % e) - path: /user-apps method: GET xCodeSample: @@ -1940,26 +1878,25 @@ from sailpoint.beta.api.apps_api import AppsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.user_app import UserApp - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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) - 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) - 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) - filters = 'name eq \"user app name\"' # 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* **ownerName**: *eq, sw* **ownerAlias**: *eq, sw* **accountId**: *eq* **sourceAppId**: *eq* (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* **ownerName**: *eq, sw* **ownerAlias**: *eq, sw* **accountId**: *eq* **sourceAppId**: *eq* (optional) - try: - # List owned user apps - - results = AppsApi(api_client).list_owned_user_apps() - # Below is a request that includes all optional parameters - # results = AppsApi(api_client).list_owned_user_apps(limit, count, offset, filters) - print("The response of AppsApi->list_owned_user_apps:\n") - pprint(results) - except Exception as e: - print("Exception when calling AppsApi->list_owned_user_apps: %s\n" % e) + 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) + 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) + 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) + filters = 'name eq \"user app name\"' # 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* **ownerName**: *eq, sw* **ownerAlias**: *eq, sw* **accountId**: *eq* **sourceAppId**: *eq* (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* **ownerName**: *eq, sw* **ownerAlias**: *eq, sw* **accountId**: *eq* **sourceAppId**: *eq* (optional) + try: + # List owned user apps + + results = AppsApi(api_client).list_owned_user_apps() + # Below is a request that includes all optional parameters + # results = AppsApi(api_client).list_owned_user_apps(limit, count, offset, filters) + print("The response of AppsApi->list_owned_user_apps:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AppsApi->list_owned_user_apps: %s\n" % e) - path: /source-apps/{id} method: PATCH xCodeSample: @@ -1970,24 +1907,23 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.json_patch_operation import JsonPatchOperation from sailpoint.beta.models.source_app_patch_dto import SourceAppPatchDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808a7813090a017814121e121518' # str | ID of the source app to patch # str | ID of the source app to patch - json_patch_operation = '''[{op=replace, path=/enabled, value=true}, {op=replace, path=/matchAllAccounts, value=true}]''' # List[JsonPatchOperation] | (optional) - try: - # Patch source app by ID - - results = AppsApi(api_client).patch_source_app(id=id) - # Below is a request that includes all optional parameters - # results = AppsApi(api_client).patch_source_app(id, new_json_patch_operation) - print("The response of AppsApi->patch_source_app:\n") - pprint(results) - except Exception as e: - print("Exception when calling AppsApi->patch_source_app: %s\n" % e) + id = '2c91808a7813090a017814121e121518' # str | ID of the source app to patch # str | ID of the source app to patch + json_patch_operation = '''[{op=replace, path=/enabled, value=true}, {op=replace, path=/matchAllAccounts, value=true}]''' # List[JsonPatchOperation] | (optional) + try: + # Patch source app by ID + + results = AppsApi(api_client).patch_source_app(id=id) + # Below is a request that includes all optional parameters + # results = AppsApi(api_client).patch_source_app(id, new_json_patch_operation) + print("The response of AppsApi->patch_source_app:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AppsApi->patch_source_app: %s\n" % e) - path: /user-apps/{id} method: PATCH xCodeSample: @@ -1998,24 +1934,23 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.json_patch_operation import JsonPatchOperation from sailpoint.beta.models.user_app import UserApp - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808a7813090a017814121e121518' # str | ID of the user app to patch # str | ID of the user app to patch - json_patch_operation = '''[sailpoint.beta.JsonPatchOperation()]''' # List[JsonPatchOperation] | (optional) - try: - # Patch user app by ID - - results = AppsApi(api_client).patch_user_app(id=id) - # Below is a request that includes all optional parameters - # results = AppsApi(api_client).patch_user_app(id, new_json_patch_operation) - print("The response of AppsApi->patch_user_app:\n") - pprint(results) - except Exception as e: - print("Exception when calling AppsApi->patch_user_app: %s\n" % e) + id = '2c91808a7813090a017814121e121518' # str | ID of the user app to patch # str | ID of the user app to patch + json_patch_operation = '''[sailpoint.beta.JsonPatchOperation()]''' # List[JsonPatchOperation] | (optional) + try: + # Patch user app by ID + + results = AppsApi(api_client).patch_user_app(id=id) + # Below is a request that includes all optional parameters + # results = AppsApi(api_client).patch_user_app(id, new_json_patch_operation) + print("The response of AppsApi->patch_user_app:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AppsApi->patch_user_app: %s\n" % e) - path: /source-apps/bulk-update method: POST xCodeSample: @@ -2025,13 +1960,12 @@ from sailpoint.beta.api.apps_api import AppsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.source_app_bulk_update_request import SourceAppBulkUpdateRequest - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_app_bulk_update_request = '''{ + source_app_bulk_update_request = '''{ "appIds" : [ "2c91808a7624751a01762f19d665220d", "2c91808a7624751a01762f19d67c220e", "2c91808a7624751a01762f19d692220f" ], "jsonPatch" : [ { "op" : "replace", @@ -2043,14 +1977,14 @@ "value" : false } ] }''' # SourceAppBulkUpdateRequest | (optional) - try: - # Bulk update source apps - - AppsApi(api_client).update_source_apps_in_bulk() - # Below is a request that includes all optional parameters - # AppsApi(api_client).update_source_apps_in_bulk(new_source_app_bulk_update_request) - except Exception as e: - print("Exception when calling AppsApi->update_source_apps_in_bulk: %s\n" % e) + try: + # Bulk update source apps + + AppsApi(api_client).update_source_apps_in_bulk() + # Below is a request that includes all optional parameters + # AppsApi(api_client).update_source_apps_in_bulk(new_source_app_bulk_update_request) + except Exception as e: + print("Exception when calling AppsApi->update_source_apps_in_bulk: %s\n" % e) - path: /auth-profiles/{id} method: GET xCodeSample: @@ -2060,23 +1994,22 @@ from sailpoint.beta.api.auth_profile_api import AuthProfileApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.auth_profile import AuthProfile - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808a7813090a017814121919ecca' # str | ID of the Auth Profile to get. # str | ID of the Auth Profile to get. - try: - # Get Auth Profile. - - results = AuthProfileApi(api_client).get_profile_config(id=id) - # Below is a request that includes all optional parameters - # results = AuthProfileApi(api_client).get_profile_config(id) - print("The response of AuthProfileApi->get_profile_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling AuthProfileApi->get_profile_config: %s\n" % e) + id = '2c91808a7813090a017814121919ecca' # str | ID of the Auth Profile to get. # str | ID of the Auth Profile to get. + try: + # Get Auth Profile. + + results = AuthProfileApi(api_client).get_profile_config(id=id) + # Below is a request that includes all optional parameters + # results = AuthProfileApi(api_client).get_profile_config(id) + print("The response of AuthProfileApi->get_profile_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AuthProfileApi->get_profile_config: %s\n" % e) - path: /auth-profiles method: GET xCodeSample: @@ -2086,22 +2019,21 @@ from sailpoint.beta.api.auth_profile_api import AuthProfileApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.auth_profile_summary import AuthProfileSummary - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - try: - # Get list of Auth Profiles. - - results = AuthProfileApi(api_client).get_profile_config_list() - # Below is a request that includes all optional parameters - # results = AuthProfileApi(api_client).get_profile_config_list() - print("The response of AuthProfileApi->get_profile_config_list:\n") - pprint(results) - except Exception as e: - print("Exception when calling AuthProfileApi->get_profile_config_list: %s\n" % e) + try: + # Get list of Auth Profiles. + + results = AuthProfileApi(api_client).get_profile_config_list() + # Below is a request that includes all optional parameters + # results = AuthProfileApi(api_client).get_profile_config_list() + print("The response of AuthProfileApi->get_profile_config_list:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AuthProfileApi->get_profile_config_list: %s\n" % e) - path: /auth-profiles/{id} method: PATCH xCodeSample: @@ -2112,24 +2044,23 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.auth_profile import AuthProfile from sailpoint.beta.models.json_patch_operation import JsonPatchOperation - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808a7813090a017814121919ecca' # str | ID of the Auth Profile to patch. # str | ID of the Auth Profile to patch. - json_patch_operation = '''[sailpoint.beta.JsonPatchOperation()]''' # List[JsonPatchOperation] | - try: - # Patch a specified Auth Profile - new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) - results = AuthProfileApi(api_client).patch_profile_config(id=id, json_patch_operation=new_json_patch_operation) - # Below is a request that includes all optional parameters - # results = AuthProfileApi(api_client).patch_profile_config(id, new_json_patch_operation) - print("The response of AuthProfileApi->patch_profile_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling AuthProfileApi->patch_profile_config: %s\n" % e) + id = '2c91808a7813090a017814121919ecca' # str | ID of the Auth Profile to patch. # str | ID of the Auth Profile to patch. + json_patch_operation = '''[sailpoint.beta.JsonPatchOperation()]''' # List[JsonPatchOperation] | + try: + # Patch a specified Auth Profile + new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) + results = AuthProfileApi(api_client).patch_profile_config(id=id, json_patch_operation=new_json_patch_operation) + # Below is a request that includes all optional parameters + # results = AuthProfileApi(api_client).patch_profile_config(id, new_json_patch_operation) + print("The response of AuthProfileApi->patch_profile_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AuthProfileApi->patch_profile_config: %s\n" % e) - path: /campaigns/{id}/complete method: POST xCodeSample: @@ -2139,26 +2070,25 @@ from sailpoint.beta.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.complete_campaign_options import CompleteCampaignOptions - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | Campaign ID. # str | Campaign ID. - complete_campaign_options = '''{ + id = 'ef38f94347e94562b5bb8424a56397d8' # str | Campaign ID. # str | Campaign ID. + complete_campaign_options = '''{ "autoCompleteAction" : "REVOKE" }''' # CompleteCampaignOptions | Optional. Default behavior is for the campaign to auto-approve upon completion, unless autoCompleteAction=REVOKE (optional) - try: - # Complete a Campaign - - results = CertificationCampaignsApi(api_client).complete_campaign(id=id) - # Below is a request that includes all optional parameters - # results = CertificationCampaignsApi(api_client).complete_campaign(id, new_complete_campaign_options) - print("The response of CertificationCampaignsApi->complete_campaign:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationCampaignsApi->complete_campaign: %s\n" % e) + try: + # Complete a Campaign + + results = CertificationCampaignsApi(api_client).complete_campaign(id=id) + # Below is a request that includes all optional parameters + # results = CertificationCampaignsApi(api_client).complete_campaign(id, new_complete_campaign_options) + print("The response of CertificationCampaignsApi->complete_campaign:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationCampaignsApi->complete_campaign: %s\n" % e) - path: /campaigns method: POST xCodeSample: @@ -2168,13 +2098,12 @@ from sailpoint.beta.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.campaign import Campaign - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - campaign = '''{ + campaign = '''{ "totalCertifications" : 100, "sourcesWithOrphanEntitlements" : [ { "name" : "Source with orphan entitlements", @@ -2283,16 +2212,16 @@ "status" : "ACTIVE", "correlatedStatus" : "CORRELATED" }''' # Campaign | - try: - # Create Campaign - new_campaign = Campaign.from_json(campaign) - results = CertificationCampaignsApi(api_client).create_campaign(campaign=new_campaign) - # Below is a request that includes all optional parameters - # results = CertificationCampaignsApi(api_client).create_campaign(new_campaign) - print("The response of CertificationCampaignsApi->create_campaign:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationCampaignsApi->create_campaign: %s\n" % e) + try: + # Create Campaign + new_campaign = Campaign.from_json(campaign) + results = CertificationCampaignsApi(api_client).create_campaign(campaign=new_campaign) + # Below is a request that includes all optional parameters + # results = CertificationCampaignsApi(api_client).create_campaign(new_campaign) + print("The response of CertificationCampaignsApi->create_campaign:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationCampaignsApi->create_campaign: %s\n" % e) - path: /campaign-templates method: POST xCodeSample: @@ -2302,13 +2231,12 @@ from sailpoint.beta.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.campaign_template import CampaignTemplate - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - campaign_template = '''{ + campaign_template = '''{ "ownerRef" : { "name" : "Mister Manager", "id" : "2c918086676d3e0601677611dbde220f", @@ -2432,16 +2360,16 @@ }, "id" : "2c9079b270a266a60170a277bb960008" }''' # CampaignTemplate | - try: - # Create a Campaign Template - new_campaign_template = CampaignTemplate.from_json(campaign_template) - results = CertificationCampaignsApi(api_client).create_campaign_template(campaign_template=new_campaign_template) - # Below is a request that includes all optional parameters - # results = CertificationCampaignsApi(api_client).create_campaign_template(new_campaign_template) - print("The response of CertificationCampaignsApi->create_campaign_template:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationCampaignsApi->create_campaign_template: %s\n" % e) + try: + # Create a Campaign Template + new_campaign_template = CampaignTemplate.from_json(campaign_template) + results = CertificationCampaignsApi(api_client).create_campaign_template(campaign_template=new_campaign_template) + # Below is a request that includes all optional parameters + # results = CertificationCampaignsApi(api_client).create_campaign_template(new_campaign_template) + print("The response of CertificationCampaignsApi->create_campaign_template:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationCampaignsApi->create_campaign_template: %s\n" % e) - path: /campaign-templates/{id} method: DELETE xCodeSample: @@ -2450,21 +2378,20 @@ source: | from sailpoint.beta.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.beta.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c9180835d191a86015d28455b4a2329' # str | ID of the campaign template being deleted. # str | ID of the campaign template being deleted. - try: - # Delete a Campaign Template - - CertificationCampaignsApi(api_client).delete_campaign_template(id=id) - # Below is a request that includes all optional parameters - # CertificationCampaignsApi(api_client).delete_campaign_template(id) - except Exception as e: - print("Exception when calling CertificationCampaignsApi->delete_campaign_template: %s\n" % e) + id = '2c9180835d191a86015d28455b4a2329' # str | ID of the campaign template being deleted. # str | ID of the campaign template being deleted. + try: + # Delete a Campaign Template + + CertificationCampaignsApi(api_client).delete_campaign_template(id=id) + # Below is a request that includes all optional parameters + # CertificationCampaignsApi(api_client).delete_campaign_template(id) + except Exception as e: + print("Exception when calling CertificationCampaignsApi->delete_campaign_template: %s\n" % e) - path: /campaign-templates/{id}/schedule method: DELETE xCodeSample: @@ -2473,21 +2400,20 @@ source: | from sailpoint.beta.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.beta.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '04bedce387bd47b2ae1f86eb0bb36dee' # str | ID of the campaign template whose schedule is being deleted. # str | ID of the campaign template whose schedule is being deleted. - try: - # Delete Campaign Template Schedule - - CertificationCampaignsApi(api_client).delete_campaign_template_schedule(id=id) - # Below is a request that includes all optional parameters - # CertificationCampaignsApi(api_client).delete_campaign_template_schedule(id) - except Exception as e: - print("Exception when calling CertificationCampaignsApi->delete_campaign_template_schedule: %s\n" % e) + id = '04bedce387bd47b2ae1f86eb0bb36dee' # str | ID of the campaign template whose schedule is being deleted. # str | ID of the campaign template whose schedule is being deleted. + try: + # Delete Campaign Template Schedule + + CertificationCampaignsApi(api_client).delete_campaign_template_schedule(id=id) + # Below is a request that includes all optional parameters + # CertificationCampaignsApi(api_client).delete_campaign_template_schedule(id) + except Exception as e: + print("Exception when calling CertificationCampaignsApi->delete_campaign_template_schedule: %s\n" % e) - path: /campaigns/delete method: POST xCodeSample: @@ -2497,25 +2423,24 @@ from sailpoint.beta.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.delete_campaigns_request import DeleteCampaignsRequest - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - delete_campaigns_request = '''{ + delete_campaigns_request = '''{ "ids" : [ "2c9180887335cee10173490db1776c26", "2c9180836a712436016a7125a90c0021" ] }''' # DeleteCampaignsRequest | IDs of the campaigns to delete. - try: - # Delete Campaigns - new_delete_campaigns_request = DeleteCampaignsRequest.from_json(delete_campaigns_request) - results = CertificationCampaignsApi(api_client).delete_campaigns(delete_campaigns_request=new_delete_campaigns_request) - # Below is a request that includes all optional parameters - # results = CertificationCampaignsApi(api_client).delete_campaigns(new_delete_campaigns_request) - print("The response of CertificationCampaignsApi->delete_campaigns:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationCampaignsApi->delete_campaigns: %s\n" % e) + try: + # Delete Campaigns + new_delete_campaigns_request = DeleteCampaignsRequest.from_json(delete_campaigns_request) + results = CertificationCampaignsApi(api_client).delete_campaigns(delete_campaigns_request=new_delete_campaigns_request) + # Below is a request that includes all optional parameters + # results = CertificationCampaignsApi(api_client).delete_campaigns(new_delete_campaigns_request) + print("The response of CertificationCampaignsApi->delete_campaigns:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationCampaignsApi->delete_campaigns: %s\n" % e) - path: /campaigns method: GET xCodeSample: @@ -2525,28 +2450,27 @@ from sailpoint.beta.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.get_active_campaigns200_response_inner import GetActiveCampaigns200ResponseInner - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - detail = 'FULL' # str | Determines whether slim, or increased level of detail is provided for each campaign in the returned list. Slim is the default behavior. (optional) # str | Determines whether slim, or increased level of detail is provided for each campaign in the returned list. Slim is the default behavior. (optional) - 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 \"Manager Campaign\"' # 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, sw* **status**: *eq, in* (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, sw* **status**: *eq, in* (optional) - sorters = 'name' # 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: **name, created** (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: **name, created** (optional) - try: - # List Campaigns - - results = CertificationCampaignsApi(api_client).get_active_campaigns() - # Below is a request that includes all optional parameters - # results = CertificationCampaignsApi(api_client).get_active_campaigns(detail, limit, offset, count, filters, sorters) - print("The response of CertificationCampaignsApi->get_active_campaigns:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationCampaignsApi->get_active_campaigns: %s\n" % e) + detail = 'FULL' # str | Determines whether slim, or increased level of detail is provided for each campaign in the returned list. Slim is the default behavior. (optional) # str | Determines whether slim, or increased level of detail is provided for each campaign in the returned list. Slim is the default behavior. (optional) + 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 \"Manager Campaign\"' # 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, sw* **status**: *eq, in* (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, sw* **status**: *eq, in* (optional) + sorters = 'name' # 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: **name, created** (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: **name, created** (optional) + try: + # List Campaigns + + results = CertificationCampaignsApi(api_client).get_active_campaigns() + # Below is a request that includes all optional parameters + # results = CertificationCampaignsApi(api_client).get_active_campaigns(detail, limit, offset, count, filters, sorters) + print("The response of CertificationCampaignsApi->get_active_campaigns:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationCampaignsApi->get_active_campaigns: %s\n" % e) - path: /campaigns/{id} method: GET xCodeSample: @@ -2556,23 +2480,22 @@ from sailpoint.beta.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.slimcampaign import Slimcampaign - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808571bcfcf80171c23e4b4221fc' # str | ID of the campaign to be retrieved. # str | ID of the campaign to be retrieved. - try: - # Get Campaign - - results = CertificationCampaignsApi(api_client).get_campaign(id=id) - # Below is a request that includes all optional parameters - # results = CertificationCampaignsApi(api_client).get_campaign(id) - print("The response of CertificationCampaignsApi->get_campaign:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationCampaignsApi->get_campaign: %s\n" % e) + id = '2c91808571bcfcf80171c23e4b4221fc' # str | ID of the campaign to be retrieved. # str | ID of the campaign to be retrieved. + try: + # Get Campaign + + results = CertificationCampaignsApi(api_client).get_campaign(id=id) + # Below is a request that includes all optional parameters + # results = CertificationCampaignsApi(api_client).get_campaign(id) + print("The response of CertificationCampaignsApi->get_campaign:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationCampaignsApi->get_campaign: %s\n" % e) - path: /campaigns/{id}/reports method: GET xCodeSample: @@ -2582,23 +2505,22 @@ from sailpoint.beta.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.campaign_report import CampaignReport - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808571bcfcf80171c23e4b4221fc' # str | ID of the campaign whose reports are being fetched. # str | ID of the campaign whose reports are being fetched. - try: - # Get Campaign Reports - - results = CertificationCampaignsApi(api_client).get_campaign_reports(id=id) - # Below is a request that includes all optional parameters - # results = CertificationCampaignsApi(api_client).get_campaign_reports(id) - print("The response of CertificationCampaignsApi->get_campaign_reports:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationCampaignsApi->get_campaign_reports: %s\n" % e) + id = '2c91808571bcfcf80171c23e4b4221fc' # str | ID of the campaign whose reports are being fetched. # str | ID of the campaign whose reports are being fetched. + try: + # Get Campaign Reports + + results = CertificationCampaignsApi(api_client).get_campaign_reports(id=id) + # Below is a request that includes all optional parameters + # results = CertificationCampaignsApi(api_client).get_campaign_reports(id) + print("The response of CertificationCampaignsApi->get_campaign_reports:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationCampaignsApi->get_campaign_reports: %s\n" % e) - path: /campaigns/reports-configuration method: GET xCodeSample: @@ -2608,22 +2530,21 @@ from sailpoint.beta.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.campaign_reports_config import CampaignReportsConfig - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - try: - # Get Campaign Reports Configuration - - results = CertificationCampaignsApi(api_client).get_campaign_reports_config() - # Below is a request that includes all optional parameters - # results = CertificationCampaignsApi(api_client).get_campaign_reports_config() - print("The response of CertificationCampaignsApi->get_campaign_reports_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationCampaignsApi->get_campaign_reports_config: %s\n" % e) + try: + # Get Campaign Reports Configuration + + results = CertificationCampaignsApi(api_client).get_campaign_reports_config() + # Below is a request that includes all optional parameters + # results = CertificationCampaignsApi(api_client).get_campaign_reports_config() + print("The response of CertificationCampaignsApi->get_campaign_reports_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationCampaignsApi->get_campaign_reports_config: %s\n" % e) - path: /campaign-templates/{id} method: GET xCodeSample: @@ -2633,23 +2554,22 @@ from sailpoint.beta.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.campaign_template import CampaignTemplate - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c9180835d191a86015d28455b4a2329' # str | Requested campaign template's ID. # str | Requested campaign template's ID. - try: - # Get a Campaign Template - - results = CertificationCampaignsApi(api_client).get_campaign_template(id=id) - # Below is a request that includes all optional parameters - # results = CertificationCampaignsApi(api_client).get_campaign_template(id) - print("The response of CertificationCampaignsApi->get_campaign_template:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationCampaignsApi->get_campaign_template: %s\n" % e) + id = '2c9180835d191a86015d28455b4a2329' # str | Requested campaign template's ID. # str | Requested campaign template's ID. + try: + # Get a Campaign Template + + results = CertificationCampaignsApi(api_client).get_campaign_template(id=id) + # Below is a request that includes all optional parameters + # results = CertificationCampaignsApi(api_client).get_campaign_template(id) + print("The response of CertificationCampaignsApi->get_campaign_template:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationCampaignsApi->get_campaign_template: %s\n" % e) - path: /campaign-templates/{id}/schedule method: GET xCodeSample: @@ -2659,23 +2579,22 @@ from sailpoint.beta.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.schedule import Schedule - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '04bedce387bd47b2ae1f86eb0bb36dee' # str | ID of the campaign template whose schedule is being fetched. # str | ID of the campaign template whose schedule is being fetched. - try: - # Get Campaign Template Schedule - - results = CertificationCampaignsApi(api_client).get_campaign_template_schedule(id=id) - # Below is a request that includes all optional parameters - # results = CertificationCampaignsApi(api_client).get_campaign_template_schedule(id) - print("The response of CertificationCampaignsApi->get_campaign_template_schedule:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationCampaignsApi->get_campaign_template_schedule: %s\n" % e) + id = '04bedce387bd47b2ae1f86eb0bb36dee' # str | ID of the campaign template whose schedule is being fetched. # str | ID of the campaign template whose schedule is being fetched. + try: + # Get Campaign Template Schedule + + results = CertificationCampaignsApi(api_client).get_campaign_template_schedule(id=id) + # Below is a request that includes all optional parameters + # results = CertificationCampaignsApi(api_client).get_campaign_template_schedule(id) + print("The response of CertificationCampaignsApi->get_campaign_template_schedule:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationCampaignsApi->get_campaign_template_schedule: %s\n" % e) - path: /campaign-templates method: GET xCodeSample: @@ -2685,27 +2604,26 @@ from sailpoint.beta.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.campaign_template import CampaignTemplate - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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) - sorters = 'name' # 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: **name, created, modified** (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: **name, created, modified** (optional) - filters = 'name eq \"manager template\"' # 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: **name**: *eq, ge, gt, in, le, lt, ne, sw* **id**: *eq, ge, gt, in, le, lt, ne, 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: **name**: *eq, ge, gt, in, le, lt, ne, sw* **id**: *eq, ge, gt, in, le, lt, ne, sw* (optional) - try: - # List Campaign Templates - - results = CertificationCampaignsApi(api_client).get_campaign_templates() - # Below is a request that includes all optional parameters - # results = CertificationCampaignsApi(api_client).get_campaign_templates(limit, offset, count, sorters, filters) - print("The response of CertificationCampaignsApi->get_campaign_templates:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationCampaignsApi->get_campaign_templates: %s\n" % e) + 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) + sorters = 'name' # 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: **name, created, modified** (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: **name, created, modified** (optional) + filters = 'name eq \"manager template\"' # 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: **name**: *eq, ge, gt, in, le, lt, ne, sw* **id**: *eq, ge, gt, in, le, lt, ne, 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: **name**: *eq, ge, gt, in, le, lt, ne, sw* **id**: *eq, ge, gt, in, le, lt, ne, sw* (optional) + try: + # List Campaign Templates + + results = CertificationCampaignsApi(api_client).get_campaign_templates() + # Below is a request that includes all optional parameters + # results = CertificationCampaignsApi(api_client).get_campaign_templates(limit, offset, count, sorters, filters) + print("The response of CertificationCampaignsApi->get_campaign_templates:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationCampaignsApi->get_campaign_templates: %s\n" % e) - path: /campaigns/{id}/reassign method: POST xCodeSample: @@ -2716,14 +2634,13 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.admin_review_reassign import AdminReviewReassign from sailpoint.beta.models.certification_task import CertificationTask - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The certification campaign ID # str | The certification campaign ID - admin_review_reassign = '''{ + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The certification campaign ID # str | The certification campaign ID + admin_review_reassign = '''{ "certificationIds" : [ "af3859464779471211bb8424a563abc1", "af3859464779471211bb8424a563abc2", "af3859464779471211bb8424a563abc3" ], "reason" : "reassigned for some reason", "reassignTo" : { @@ -2731,16 +2648,16 @@ "type" : "IDENTITY" } }''' # AdminReviewReassign | - try: - # Reassign Certifications - new_admin_review_reassign = AdminReviewReassign.from_json(admin_review_reassign) - results = CertificationCampaignsApi(api_client).move(id=id, admin_review_reassign=new_admin_review_reassign) - # Below is a request that includes all optional parameters - # results = CertificationCampaignsApi(api_client).move(id, new_admin_review_reassign) - print("The response of CertificationCampaignsApi->move:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationCampaignsApi->move: %s\n" % e) + try: + # Reassign Certifications + new_admin_review_reassign = AdminReviewReassign.from_json(admin_review_reassign) + results = CertificationCampaignsApi(api_client).move(id=id, admin_review_reassign=new_admin_review_reassign) + # Below is a request that includes all optional parameters + # results = CertificationCampaignsApi(api_client).move(id, new_admin_review_reassign) + print("The response of CertificationCampaignsApi->move:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationCampaignsApi->move: %s\n" % e) - path: /campaign-templates/{id} method: PATCH xCodeSample: @@ -2751,24 +2668,23 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.campaign_template import CampaignTemplate from sailpoint.beta.models.json_patch_operation import JsonPatchOperation - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c9180835d191a86015d28455b4a2329' # str | ID of the campaign template being modified. # str | ID of the campaign template being modified. - json_patch_operation = '''[{op=replace, path=/description, value=Updated description!}, {op=replace, path=/campaign/filter/id, value=ff80818155fe8c080155fe8d925b0316}]''' # List[JsonPatchOperation] | A list of campaign update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * description * deadlineDuration * campaign (all fields that are allowed during create) - try: - # Update a Campaign Template - new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) - results = CertificationCampaignsApi(api_client).patch_campaign_template(id=id, json_patch_operation=new_json_patch_operation) - # Below is a request that includes all optional parameters - # results = CertificationCampaignsApi(api_client).patch_campaign_template(id, new_json_patch_operation) - print("The response of CertificationCampaignsApi->patch_campaign_template:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationCampaignsApi->patch_campaign_template: %s\n" % e) + id = '2c9180835d191a86015d28455b4a2329' # str | ID of the campaign template being modified. # str | ID of the campaign template being modified. + json_patch_operation = '''[{op=replace, path=/description, value=Updated description!}, {op=replace, path=/campaign/filter/id, value=ff80818155fe8c080155fe8d925b0316}]''' # List[JsonPatchOperation] | A list of campaign update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * description * deadlineDuration * campaign (all fields that are allowed during create) + try: + # Update a Campaign Template + new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) + results = CertificationCampaignsApi(api_client).patch_campaign_template(id=id, json_patch_operation=new_json_patch_operation) + # Below is a request that includes all optional parameters + # results = CertificationCampaignsApi(api_client).patch_campaign_template(id, new_json_patch_operation) + print("The response of CertificationCampaignsApi->patch_campaign_template:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationCampaignsApi->patch_campaign_template: %s\n" % e) - path: /campaigns/reports-configuration method: PUT xCodeSample: @@ -2778,25 +2694,24 @@ from sailpoint.beta.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.campaign_reports_config import CampaignReportsConfig - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - campaign_reports_config = '''{ + campaign_reports_config = '''{ "identityAttributeColumns" : [ "firstname", "lastname" ] }''' # CampaignReportsConfig | Campaign report configuration. - try: - # Set Campaign Reports Configuration - new_campaign_reports_config = CampaignReportsConfig.from_json(campaign_reports_config) - results = CertificationCampaignsApi(api_client).set_campaign_reports_config(campaign_reports_config=new_campaign_reports_config) - # Below is a request that includes all optional parameters - # results = CertificationCampaignsApi(api_client).set_campaign_reports_config(new_campaign_reports_config) - print("The response of CertificationCampaignsApi->set_campaign_reports_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationCampaignsApi->set_campaign_reports_config: %s\n" % e) + try: + # Set Campaign Reports Configuration + new_campaign_reports_config = CampaignReportsConfig.from_json(campaign_reports_config) + results = CertificationCampaignsApi(api_client).set_campaign_reports_config(campaign_reports_config=new_campaign_reports_config) + # Below is a request that includes all optional parameters + # results = CertificationCampaignsApi(api_client).set_campaign_reports_config(new_campaign_reports_config) + print("The response of CertificationCampaignsApi->set_campaign_reports_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationCampaignsApi->set_campaign_reports_config: %s\n" % e) - path: /campaign-templates/{id}/schedule method: PUT xCodeSample: @@ -2806,14 +2721,13 @@ from sailpoint.beta.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.schedule import Schedule - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '04bedce387bd47b2ae1f86eb0bb36dee' # str | ID of the campaign template being scheduled. # str | ID of the campaign template being scheduled. - schedule = '''{ + id = '04bedce387bd47b2ae1f86eb0bb36dee' # str | ID of the campaign template being scheduled. # str | ID of the campaign template being scheduled. + schedule = '''{ "hours" : { "values" : [ "1" ], "interval" : 2, @@ -2833,14 +2747,14 @@ "expiration" : "2000-01-23T04:56:07.000+00:00", "type" : "WEEKLY" }''' # Schedule | (optional) - try: - # Set Campaign Template Schedule - - CertificationCampaignsApi(api_client).set_campaign_template_schedule(id=id) - # Below is a request that includes all optional parameters - # CertificationCampaignsApi(api_client).set_campaign_template_schedule(id, new_schedule) - except Exception as e: - print("Exception when calling CertificationCampaignsApi->set_campaign_template_schedule: %s\n" % e) + try: + # Set Campaign Template Schedule + + CertificationCampaignsApi(api_client).set_campaign_template_schedule(id=id) + # Below is a request that includes all optional parameters + # CertificationCampaignsApi(api_client).set_campaign_template_schedule(id, new_schedule) + except Exception as e: + print("Exception when calling CertificationCampaignsApi->set_campaign_template_schedule: %s\n" % e) - path: /campaigns/{id}/activate method: POST xCodeSample: @@ -2850,26 +2764,25 @@ from sailpoint.beta.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.activate_campaign_options import ActivateCampaignOptions - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | Campaign ID. # str | Campaign ID. - activate_campaign_options = '''{ + id = 'ef38f94347e94562b5bb8424a56397d8' # str | Campaign ID. # str | Campaign ID. + activate_campaign_options = '''{ "timeZone" : "-05:00" }''' # ActivateCampaignOptions | Optional. If no timezone is specified, the standard UTC timezone is used (i.e. UTC+00:00). Although this can take any timezone, the intended value is the caller's timezone. The activation time calculated from the given timezone may cause the campaign deadline time to be modified, but it will remain within the original date. The timezone must be in a valid ISO 8601 format. (optional) - try: - # Activate a Campaign - - results = CertificationCampaignsApi(api_client).start_campaign(id=id) - # Below is a request that includes all optional parameters - # results = CertificationCampaignsApi(api_client).start_campaign(id, new_activate_campaign_options) - print("The response of CertificationCampaignsApi->start_campaign:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationCampaignsApi->start_campaign: %s\n" % e) + try: + # Activate a Campaign + + results = CertificationCampaignsApi(api_client).start_campaign(id=id) + # Below is a request that includes all optional parameters + # results = CertificationCampaignsApi(api_client).start_campaign(id, new_activate_campaign_options) + print("The response of CertificationCampaignsApi->start_campaign:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationCampaignsApi->start_campaign: %s\n" % e) - path: /campaigns/{id}/run-remediation-scan method: POST xCodeSample: @@ -2878,23 +2791,22 @@ source: | from sailpoint.beta.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.beta.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808571bcfcf80171c23e4b4221fc' # str | ID of the campaign the remediation scan is being run for. # str | ID of the campaign the remediation scan is being run for. - try: - # Run Campaign Remediation Scan - - results = CertificationCampaignsApi(api_client).start_campaign_remediation_scan(id=id) - # Below is a request that includes all optional parameters - # results = CertificationCampaignsApi(api_client).start_campaign_remediation_scan(id) - print("The response of CertificationCampaignsApi->start_campaign_remediation_scan:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationCampaignsApi->start_campaign_remediation_scan: %s\n" % e) + id = '2c91808571bcfcf80171c23e4b4221fc' # str | ID of the campaign the remediation scan is being run for. # str | ID of the campaign the remediation scan is being run for. + try: + # Run Campaign Remediation Scan + + results = CertificationCampaignsApi(api_client).start_campaign_remediation_scan(id=id) + # Below is a request that includes all optional parameters + # results = CertificationCampaignsApi(api_client).start_campaign_remediation_scan(id) + print("The response of CertificationCampaignsApi->start_campaign_remediation_scan:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationCampaignsApi->start_campaign_remediation_scan: %s\n" % e) - path: /campaigns/{id}/run-report/{type} method: POST xCodeSample: @@ -2904,24 +2816,23 @@ from sailpoint.beta.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.report_type import ReportType - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808571bcfcf80171c23e4b4221fc' # str | ID of the campaign the report is being run for. # str | ID of the campaign the report is being run for. - type = sailpoint.beta.ReportType() # ReportType | Type of report to run. # ReportType | Type of report to run. - try: - # Run Campaign Report - - results = CertificationCampaignsApi(api_client).start_campaign_report(id=id, type=type) - # Below is a request that includes all optional parameters - # results = CertificationCampaignsApi(api_client).start_campaign_report(id, type) - print("The response of CertificationCampaignsApi->start_campaign_report:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationCampaignsApi->start_campaign_report: %s\n" % e) + id = '2c91808571bcfcf80171c23e4b4221fc' # str | ID of the campaign the report is being run for. # str | ID of the campaign the report is being run for. + type = sailpoint.beta.ReportType() # ReportType | Type of report to run. # ReportType | Type of report to run. + try: + # Run Campaign Report + + results = CertificationCampaignsApi(api_client).start_campaign_report(id=id, type=type) + # Below is a request that includes all optional parameters + # results = CertificationCampaignsApi(api_client).start_campaign_report(id, type) + print("The response of CertificationCampaignsApi->start_campaign_report:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationCampaignsApi->start_campaign_report: %s\n" % e) - path: /campaign-templates/{id}/generate method: POST xCodeSample: @@ -2931,23 +2842,22 @@ from sailpoint.beta.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.campaign_reference import CampaignReference - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c9180835d191a86015d28455b4a2329' # str | ID of the campaign template to use for generation. # str | ID of the campaign template to use for generation. - try: - # Generate a Campaign from Template - - results = CertificationCampaignsApi(api_client).start_generate_campaign_template(id=id) - # Below is a request that includes all optional parameters - # results = CertificationCampaignsApi(api_client).start_generate_campaign_template(id) - print("The response of CertificationCampaignsApi->start_generate_campaign_template:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationCampaignsApi->start_generate_campaign_template: %s\n" % e) + id = '2c9180835d191a86015d28455b4a2329' # str | ID of the campaign template to use for generation. # str | ID of the campaign template to use for generation. + try: + # Generate a Campaign from Template + + results = CertificationCampaignsApi(api_client).start_generate_campaign_template(id=id) + # Below is a request that includes all optional parameters + # results = CertificationCampaignsApi(api_client).start_generate_campaign_template(id) + print("The response of CertificationCampaignsApi->start_generate_campaign_template:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationCampaignsApi->start_generate_campaign_template: %s\n" % e) - path: /campaigns/{id} method: PATCH xCodeSample: @@ -2957,24 +2867,23 @@ from sailpoint.beta.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.slimcampaign import Slimcampaign - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808571bcfcf80171c23e4b4221fc' # str | ID of the campaign being modified. # str | ID of the campaign being modified. - request_body = '''[{op=replace, path=/name, value=This field has been updated!}, {op=copy, from=/name, path=/description}]''' # List[object] | A list of campaign update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The fields that can be patched differ based on the status of the campaign. When the campaign is in the *STAGED* status, you can patch these fields: * name * description * recommendationsEnabled * deadline * emailNotificationEnabled * autoRevokeAllowed When the campaign is in the *ACTIVE* status, you can patch these fields: * deadline - try: - # Update a Campaign - new_request_body = RequestBody.from_json(request_body) - results = CertificationCampaignsApi(api_client).update_campaign(id=id, request_body=new_request_body) - # Below is a request that includes all optional parameters - # results = CertificationCampaignsApi(api_client).update_campaign(id, new_request_body) - print("The response of CertificationCampaignsApi->update_campaign:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationCampaignsApi->update_campaign: %s\n" % e) + id = '2c91808571bcfcf80171c23e4b4221fc' # str | ID of the campaign being modified. # str | ID of the campaign being modified. + request_body = '''[{op=replace, path=/name, value=This field has been updated!}, {op=copy, from=/name, path=/description}]''' # List[object] | A list of campaign update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The fields that can be patched differ based on the status of the campaign. When the campaign is in the *STAGED* status, you can patch these fields: * name * description * recommendationsEnabled * deadline * emailNotificationEnabled * autoRevokeAllowed When the campaign is in the *ACTIVE* status, you can patch these fields: * deadline + try: + # Update a Campaign + new_request_body = RequestBody.from_json(request_body) + results = CertificationCampaignsApi(api_client).update_campaign(id=id, request_body=new_request_body) + # Below is a request that includes all optional parameters + # results = CertificationCampaignsApi(api_client).update_campaign(id, new_request_body) + print("The response of CertificationCampaignsApi->update_campaign:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationCampaignsApi->update_campaign: %s\n" % e) - path: /certifications/{certificationId}/access-review-items/{itemId}/permissions method: GET xCodeSample: @@ -2984,28 +2893,27 @@ from sailpoint.beta.api.certifications_api import CertificationsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.permission_dto import PermissionDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - certification_id = 'ef38f94347e94562b5bb8424a56397d8' # str | The certification ID # str | The certification ID - item_id = '2c91808671bcbab40171bd945d961227' # str | The certification item ID # str | The certification item ID - filters = 'target eq \"SYS.OBJAUTH2\"' # 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: **target**: *eq, sw* **rights**: *ca* All field values (second filter operands) are case-insensitive for this API. Only a single *and* or *or* composite filter operator may be used. It must also be used between a target filter and a rights filter, not between 2 filters for the same field. For example, the following is valid: `?filters=rights+ca+(%22CREATE%22)+and+target+eq+%22SYS.OBJAUTH2%22` The following is invalid: `?filters=rights+ca+(%22CREATE%22)+and+rights+ca+(%SELECT%22)` (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: **target**: *eq, sw* **rights**: *ca* All field values (second filter operands) are case-insensitive for this API. Only a single *and* or *or* composite filter operator may be used. It must also be used between a target filter and a rights filter, not between 2 filters for the same field. For example, the following is valid: `?filters=rights+ca+(%22CREATE%22)+and+target+eq+%22SYS.OBJAUTH2%22` The following is invalid: `?filters=rights+ca+(%22CREATE%22)+and+rights+ca+(%SELECT%22)` (optional) - 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) - try: - # Permissions for Entitlement Certification Item - - results = CertificationsApi(api_client).get_identity_certification_item_permissions(certification_id=certification_id, item_id=item_id) - # Below is a request that includes all optional parameters - # results = CertificationsApi(api_client).get_identity_certification_item_permissions(certification_id, item_id, filters, limit, offset, count) - print("The response of CertificationsApi->get_identity_certification_item_permissions:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationsApi->get_identity_certification_item_permissions: %s\n" % e) + certification_id = 'ef38f94347e94562b5bb8424a56397d8' # str | The certification ID # str | The certification ID + item_id = '2c91808671bcbab40171bd945d961227' # str | The certification item ID # str | The certification item ID + filters = 'target eq \"SYS.OBJAUTH2\"' # 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: **target**: *eq, sw* **rights**: *ca* All field values (second filter operands) are case-insensitive for this API. Only a single *and* or *or* composite filter operator may be used. It must also be used between a target filter and a rights filter, not between 2 filters for the same field. For example, the following is valid: `?filters=rights+ca+(%22CREATE%22)+and+target+eq+%22SYS.OBJAUTH2%22` The following is invalid: `?filters=rights+ca+(%22CREATE%22)+and+rights+ca+(%SELECT%22)` (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: **target**: *eq, sw* **rights**: *ca* All field values (second filter operands) are case-insensitive for this API. Only a single *and* or *or* composite filter operator may be used. It must also be used between a target filter and a rights filter, not between 2 filters for the same field. For example, the following is valid: `?filters=rights+ca+(%22CREATE%22)+and+target+eq+%22SYS.OBJAUTH2%22` The following is invalid: `?filters=rights+ca+(%22CREATE%22)+and+rights+ca+(%SELECT%22)` (optional) + 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) + try: + # Permissions for Entitlement Certification Item + + results = CertificationsApi(api_client).get_identity_certification_item_permissions(certification_id=certification_id, item_id=item_id) + # Below is a request that includes all optional parameters + # results = CertificationsApi(api_client).get_identity_certification_item_permissions(certification_id, item_id, filters, limit, offset, count) + print("The response of CertificationsApi->get_identity_certification_item_permissions:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationsApi->get_identity_certification_item_permissions: %s\n" % e) - path: /certifications/{id}/tasks-pending method: GET xCodeSample: @@ -3015,23 +2923,22 @@ from sailpoint.beta.api.certifications_api import CertificationsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.identity_certification_task import IdentityCertificationTask - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'id_example' # str | The identity campaign certification ID # str | The identity campaign certification ID - try: - # Pending Certification Tasks - - results = CertificationsApi(api_client).get_identity_certification_pending_tasks(id=id) - # Below is a request that includes all optional parameters - # results = CertificationsApi(api_client).get_identity_certification_pending_tasks(id) - print("The response of CertificationsApi->get_identity_certification_pending_tasks:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationsApi->get_identity_certification_pending_tasks: %s\n" % e) + id = 'id_example' # str | The identity campaign certification ID # str | The identity campaign certification ID + try: + # Pending Certification Tasks + + results = CertificationsApi(api_client).get_identity_certification_pending_tasks(id=id) + # Below is a request that includes all optional parameters + # results = CertificationsApi(api_client).get_identity_certification_pending_tasks(id) + print("The response of CertificationsApi->get_identity_certification_pending_tasks:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationsApi->get_identity_certification_pending_tasks: %s\n" % e) - path: /certifications/{id}/tasks/{taskId} method: GET xCodeSample: @@ -3041,24 +2948,23 @@ from sailpoint.beta.api.certifications_api import CertificationsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.identity_certification_task import IdentityCertificationTask - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'id_example' # str | The identity campaign certification ID # str | The identity campaign certification ID - task_id = 'task_id_example' # str | The certification task ID # str | The certification task ID - try: - # Certification Task Status - - results = CertificationsApi(api_client).get_identity_certification_task_status(id=id, task_id=task_id) - # Below is a request that includes all optional parameters - # results = CertificationsApi(api_client).get_identity_certification_task_status(id, task_id) - print("The response of CertificationsApi->get_identity_certification_task_status:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationsApi->get_identity_certification_task_status: %s\n" % e) + id = 'id_example' # str | The identity campaign certification ID # str | The identity campaign certification ID + task_id = 'task_id_example' # str | The certification task ID # str | The certification task ID + try: + # Certification Task Status + + results = CertificationsApi(api_client).get_identity_certification_task_status(id=id, task_id=task_id) + # Below is a request that includes all optional parameters + # results = CertificationsApi(api_client).get_identity_certification_task_status(id, task_id) + print("The response of CertificationsApi->get_identity_certification_task_status:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationsApi->get_identity_certification_task_status: %s\n" % e) - path: /certifications/{id}/reviewers method: GET xCodeSample: @@ -3068,28 +2974,27 @@ from sailpoint.beta.api.certifications_api import CertificationsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.identity_reference_with_name_and_email import IdentityReferenceWithNameAndEmail - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The certification ID # str | The certification ID - 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 \"Bob\"' # 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, sw* **email**: *eq, 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* **name**: *eq, sw* **email**: *eq, sw* (optional) - sorters = 'name' # 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: **name, email** (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: **name, email** (optional) - try: - # List of Reviewers for certification - - results = CertificationsApi(api_client).list_certification_reviewers(id=id) - # Below is a request that includes all optional parameters - # results = CertificationsApi(api_client).list_certification_reviewers(id, limit, offset, count, filters, sorters) - print("The response of CertificationsApi->list_certification_reviewers:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationsApi->list_certification_reviewers: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The certification ID # str | The certification ID + 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 \"Bob\"' # 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, sw* **email**: *eq, 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* **name**: *eq, sw* **email**: *eq, sw* (optional) + sorters = 'name' # 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: **name, email** (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: **name, email** (optional) + try: + # List of Reviewers for certification + + results = CertificationsApi(api_client).list_certification_reviewers(id=id) + # Below is a request that includes all optional parameters + # results = CertificationsApi(api_client).list_certification_reviewers(id, limit, offset, count, filters, sorters) + print("The response of CertificationsApi->list_certification_reviewers:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationsApi->list_certification_reviewers: %s\n" % e) - path: /certifications method: GET xCodeSample: @@ -3099,28 +3004,27 @@ from sailpoint.beta.api.certifications_api import CertificationsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.certification_dto import CertificationDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - reviewer_identitiy = 'reviewer_identitiy_example' # str | The ID of reviewer identity. *me* indicates the current user. (optional) # str | The ID of reviewer identity. *me* indicates the current user. (optional) - 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 = 'filters_example' # 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* **phase**: *eq* **completed**: *eq, ne* **campaignRef.campaignType**: *eq, in* **campaignRef.id**: *eq, in* (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* **phase**: *eq* **completed**: *eq, ne* **campaignRef.campaignType**: *eq, in* **campaignRef.id**: *eq, in* (optional) - sorters = 'sorters_example' # 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: **name, due, signed** (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: **name, due, signed** (optional) - try: - # Certifications by IDs - - results = CertificationsApi(api_client).list_certifications() - # Below is a request that includes all optional parameters - # results = CertificationsApi(api_client).list_certifications(reviewer_identitiy, limit, offset, count, filters, sorters) - print("The response of CertificationsApi->list_certifications:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationsApi->list_certifications: %s\n" % e) + reviewer_identitiy = 'reviewer_identitiy_example' # str | The ID of reviewer identity. *me* indicates the current user. (optional) # str | The ID of reviewer identity. *me* indicates the current user. (optional) + 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 = 'filters_example' # 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* **phase**: *eq* **completed**: *eq, ne* **campaignRef.campaignType**: *eq, in* **campaignRef.id**: *eq, in* (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* **phase**: *eq* **completed**: *eq, ne* **campaignRef.campaignType**: *eq, in* **campaignRef.id**: *eq, in* (optional) + sorters = 'sorters_example' # 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: **name, due, signed** (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: **name, due, signed** (optional) + try: + # Certifications by IDs + + results = CertificationsApi(api_client).list_certifications() + # Below is a request that includes all optional parameters + # results = CertificationsApi(api_client).list_certifications(reviewer_identitiy, limit, offset, count, filters, sorters) + print("The response of CertificationsApi->list_certifications:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationsApi->list_certifications: %s\n" % e) - path: /certifications/{id}/reassign-async method: POST xCodeSample: @@ -3131,14 +3035,13 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.identity_certification_task import IdentityCertificationTask from sailpoint.beta.models.review_reassign import ReviewReassign - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The identity campaign certification ID # str | The identity campaign certification ID - review_reassign = '''{ + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The identity campaign certification ID # str | The identity campaign certification ID + review_reassign = '''{ "reason" : "reassigned for some reason", "reassignTo" : "ef38f94347e94562b5bb8424a56397d8", "reassign" : [ { @@ -3149,16 +3052,16 @@ "type" : "ITEM" } ] }''' # ReviewReassign | - try: - # Reassign Certifications Asynchronously - new_review_reassign = ReviewReassign.from_json(review_reassign) - results = CertificationsApi(api_client).submit_reassign_certs_async(id=id, review_reassign=new_review_reassign) - # Below is a request that includes all optional parameters - # results = CertificationsApi(api_client).submit_reassign_certs_async(id, new_review_reassign) - print("The response of CertificationsApi->submit_reassign_certs_async:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationsApi->submit_reassign_certs_async: %s\n" % e) + try: + # Reassign Certifications Asynchronously + new_review_reassign = ReviewReassign.from_json(review_reassign) + results = CertificationsApi(api_client).submit_reassign_certs_async(id=id, review_reassign=new_review_reassign) + # Below is a request that includes all optional parameters + # results = CertificationsApi(api_client).submit_reassign_certs_async(id, new_review_reassign) + print("The response of CertificationsApi->submit_reassign_certs_async:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationsApi->submit_reassign_certs_async: %s\n" % e) - path: /connector-rules method: POST xCodeSample: @@ -3169,13 +3072,12 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.connector_rule_create_request import ConnectorRuleCreateRequest from sailpoint.beta.models.connector_rule_response import ConnectorRuleResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - connector_rule_create_request = '''{ + connector_rule_create_request = '''{ "sourceCode" : { "version" : "1.0", "script" : "return \"Mr. \" + firstName;" @@ -3201,16 +3103,16 @@ "attributes" : { }, "type" : "BuildMap" }''' # ConnectorRuleCreateRequest | The connector rule to create - try: - # Create Connector Rule - new_connector_rule_create_request = ConnectorRuleCreateRequest.from_json(connector_rule_create_request) - results = ConnectorRuleManagementApi(api_client).create_connector_rule(connector_rule_create_request=new_connector_rule_create_request) - # Below is a request that includes all optional parameters - # results = ConnectorRuleManagementApi(api_client).create_connector_rule(new_connector_rule_create_request) - print("The response of ConnectorRuleManagementApi->create_connector_rule:\n") - pprint(results) - except Exception as e: - print("Exception when calling ConnectorRuleManagementApi->create_connector_rule: %s\n" % e) + try: + # Create Connector Rule + new_connector_rule_create_request = ConnectorRuleCreateRequest.from_json(connector_rule_create_request) + results = ConnectorRuleManagementApi(api_client).create_connector_rule(connector_rule_create_request=new_connector_rule_create_request) + # Below is a request that includes all optional parameters + # results = ConnectorRuleManagementApi(api_client).create_connector_rule(new_connector_rule_create_request) + print("The response of ConnectorRuleManagementApi->create_connector_rule:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ConnectorRuleManagementApi->create_connector_rule: %s\n" % e) - path: /connector-rules/{id} method: DELETE xCodeSample: @@ -3219,21 +3121,20 @@ source: | from sailpoint.beta.api.connector_rule_management_api import ConnectorRuleManagementApi from sailpoint.beta.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | ID of the connector rule to delete # str | ID of the connector rule to delete - try: - # Delete a Connector-Rule - - ConnectorRuleManagementApi(api_client).delete_connector_rule(id=id) - # Below is a request that includes all optional parameters - # ConnectorRuleManagementApi(api_client).delete_connector_rule(id) - except Exception as e: - print("Exception when calling ConnectorRuleManagementApi->delete_connector_rule: %s\n" % e) + id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | ID of the connector rule to delete # str | ID of the connector rule to delete + try: + # Delete a Connector-Rule + + ConnectorRuleManagementApi(api_client).delete_connector_rule(id=id) + # Below is a request that includes all optional parameters + # ConnectorRuleManagementApi(api_client).delete_connector_rule(id) + except Exception as e: + print("Exception when calling ConnectorRuleManagementApi->delete_connector_rule: %s\n" % e) - path: /connector-rules/{id} method: GET xCodeSample: @@ -3243,23 +3144,22 @@ from sailpoint.beta.api.connector_rule_management_api import ConnectorRuleManagementApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.connector_rule_response import ConnectorRuleResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | ID of the connector rule to retrieve # str | ID of the connector rule to retrieve - try: - # Connector-Rule by ID - - results = ConnectorRuleManagementApi(api_client).get_connector_rule(id=id) - # Below is a request that includes all optional parameters - # results = ConnectorRuleManagementApi(api_client).get_connector_rule(id) - print("The response of ConnectorRuleManagementApi->get_connector_rule:\n") - pprint(results) - except Exception as e: - print("Exception when calling ConnectorRuleManagementApi->get_connector_rule: %s\n" % e) + id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | ID of the connector rule to retrieve # str | ID of the connector rule to retrieve + try: + # Connector-Rule by ID + + results = ConnectorRuleManagementApi(api_client).get_connector_rule(id=id) + # Below is a request that includes all optional parameters + # results = ConnectorRuleManagementApi(api_client).get_connector_rule(id) + print("The response of ConnectorRuleManagementApi->get_connector_rule:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ConnectorRuleManagementApi->get_connector_rule: %s\n" % e) - path: /connector-rules method: GET xCodeSample: @@ -3269,22 +3169,21 @@ from sailpoint.beta.api.connector_rule_management_api import ConnectorRuleManagementApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.connector_rule_response import ConnectorRuleResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - try: - # List Connector Rules - - results = ConnectorRuleManagementApi(api_client).get_connector_rule_list() - # Below is a request that includes all optional parameters - # results = ConnectorRuleManagementApi(api_client).get_connector_rule_list() - print("The response of ConnectorRuleManagementApi->get_connector_rule_list:\n") - pprint(results) - except Exception as e: - print("Exception when calling ConnectorRuleManagementApi->get_connector_rule_list: %s\n" % e) + try: + # List Connector Rules + + results = ConnectorRuleManagementApi(api_client).get_connector_rule_list() + # Below is a request that includes all optional parameters + # results = ConnectorRuleManagementApi(api_client).get_connector_rule_list() + print("The response of ConnectorRuleManagementApi->get_connector_rule_list:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ConnectorRuleManagementApi->get_connector_rule_list: %s\n" % e) - path: /connector-rules/{id} method: PUT xCodeSample: @@ -3295,14 +3194,13 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.connector_rule_response import ConnectorRuleResponse from sailpoint.beta.models.connector_rule_update_request import ConnectorRuleUpdateRequest - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | ID of the connector rule to update # str | ID of the connector rule to update - connector_rule_update_request = '''{ + id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | ID of the connector rule to update # str | ID of the connector rule to update + connector_rule_update_request = '''{ "sourceCode" : { "version" : "1.0", "script" : "return \"Mr. \" + firstName;" @@ -3329,16 +3227,16 @@ "id" : "8113d48c0b914f17b4c6072d4dcb9dfe", "type" : "BuildMap" }''' # ConnectorRuleUpdateRequest | The connector rule with updated data (optional) - try: - # Update a Connector Rule - - results = ConnectorRuleManagementApi(api_client).update_connector_rule(id=id) - # Below is a request that includes all optional parameters - # results = ConnectorRuleManagementApi(api_client).update_connector_rule(id, new_connector_rule_update_request) - print("The response of ConnectorRuleManagementApi->update_connector_rule:\n") - pprint(results) - except Exception as e: - print("Exception when calling ConnectorRuleManagementApi->update_connector_rule: %s\n" % e) + try: + # Update a Connector Rule + + results = ConnectorRuleManagementApi(api_client).update_connector_rule(id=id) + # Below is a request that includes all optional parameters + # results = ConnectorRuleManagementApi(api_client).update_connector_rule(id, new_connector_rule_update_request) + print("The response of ConnectorRuleManagementApi->update_connector_rule:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ConnectorRuleManagementApi->update_connector_rule: %s\n" % e) - path: /connector-rules/validate method: POST xCodeSample: @@ -3349,26 +3247,25 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.connector_rule_validation_response import ConnectorRuleValidationResponse from sailpoint.beta.models.source_code import SourceCode - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_code = '''{ + source_code = '''{ "version" : "1.0", "script" : "return \"Mr. \" + firstName;" }''' # SourceCode | The code to validate - try: - # Validate Connector Rule - new_source_code = SourceCode.from_json(source_code) - results = ConnectorRuleManagementApi(api_client).validate_connector_rule(source_code=new_source_code) - # Below is a request that includes all optional parameters - # results = ConnectorRuleManagementApi(api_client).validate_connector_rule(new_source_code) - print("The response of ConnectorRuleManagementApi->validate_connector_rule:\n") - pprint(results) - except Exception as e: - print("Exception when calling ConnectorRuleManagementApi->validate_connector_rule: %s\n" % e) + try: + # Validate Connector Rule + new_source_code = SourceCode.from_json(source_code) + results = ConnectorRuleManagementApi(api_client).validate_connector_rule(source_code=new_source_code) + # Below is a request that includes all optional parameters + # results = ConnectorRuleManagementApi(api_client).validate_connector_rule(new_source_code) + print("The response of ConnectorRuleManagementApi->validate_connector_rule:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ConnectorRuleManagementApi->validate_connector_rule: %s\n" % e) - path: /connectors method: GET xCodeSample: @@ -3378,27 +3275,26 @@ from sailpoint.beta.api.connectors_api import ConnectorsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.v3_connector_dto import V3ConnectorDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - filters = 'directConnect eq \"true\"' # 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: **name**: *sw* **type**: *eq* **directConnect**: *eq* **category**: *eq* **features**: *ca* (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: **name**: *sw* **type**: *eq* **directConnect**: *eq* **category**: *eq* **features**: *ca* (optional) - 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) - locale = 'de' # str | The locale to apply to the config. If no viable locale is given, it will default to \"en\" (optional) # str | The locale to apply to the config. If no viable locale is given, it will default to \"en\" (optional) - try: - # Get Connector List - - results = ConnectorsApi(api_client).get_connector_list() - # Below is a request that includes all optional parameters - # results = ConnectorsApi(api_client).get_connector_list(filters, limit, offset, count, locale) - print("The response of ConnectorsApi->get_connector_list:\n") - pprint(results) - except Exception as e: - print("Exception when calling ConnectorsApi->get_connector_list: %s\n" % e) + filters = 'directConnect eq \"true\"' # 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: **name**: *sw* **type**: *eq* **directConnect**: *eq* **category**: *eq* **features**: *ca* (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: **name**: *sw* **type**: *eq* **directConnect**: *eq* **category**: *eq* **features**: *ca* (optional) + 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) + locale = 'de' # str | The locale to apply to the config. If no viable locale is given, it will default to \"en\" (optional) # str | The locale to apply to the config. If no viable locale is given, it will default to \"en\" (optional) + try: + # Get Connector List + + results = ConnectorsApi(api_client).get_connector_list() + # Below is a request that includes all optional parameters + # results = ConnectorsApi(api_client).get_connector_list(filters, limit, offset, count, locale) + print("The response of ConnectorsApi->get_connector_list:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ConnectorsApi->get_connector_list: %s\n" % e) - path: /form-definitions method: POST xCodeSample: @@ -3409,13 +3305,12 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.create_form_definition_request import CreateFormDefinitionRequest from sailpoint.beta.models.form_definition_response import FormDefinitionResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - create_form_definition_request = '''{ + create_form_definition_request = '''{ "owner" : { "name" : "Grant Smith", "id" : "2c9180867624cbd7017642d8c8c81f67", @@ -3526,16 +3421,16 @@ "key" : "department" } ] }''' # CreateFormDefinitionRequest | Body is the request payload to create form definition request (optional) - try: - # Creates a form definition. - - results = CustomFormsApi(api_client).create_form_definition() - # Below is a request that includes all optional parameters - # results = CustomFormsApi(api_client).create_form_definition(new_create_form_definition_request) - print("The response of CustomFormsApi->create_form_definition:\n") - pprint(results) - except Exception as e: - print("Exception when calling CustomFormsApi->create_form_definition: %s\n" % e) + try: + # Creates a form definition. + + results = CustomFormsApi(api_client).create_form_definition() + # Below is a request that includes all optional parameters + # results = CustomFormsApi(api_client).create_form_definition(new_create_form_definition_request) + print("The response of CustomFormsApi->create_form_definition:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CustomFormsApi->create_form_definition: %s\n" % e) - path: /form-definitions/template method: POST xCodeSample: @@ -3546,13 +3441,12 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.create_form_definition_request import CreateFormDefinitionRequest from sailpoint.beta.models.form_definition_response import FormDefinitionResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - create_form_definition_request = '''{ + create_form_definition_request = '''{ "owner" : { "name" : "Grant Smith", "id" : "2c9180867624cbd7017642d8c8c81f67", @@ -3663,16 +3557,16 @@ "key" : "department" } ] }''' # CreateFormDefinitionRequest | Body is the request payload to create form definition request (optional) - try: - # Create a form definition by template. - - results = CustomFormsApi(api_client).create_form_definition_by_template() - # Below is a request that includes all optional parameters - # results = CustomFormsApi(api_client).create_form_definition_by_template(new_create_form_definition_request) - print("The response of CustomFormsApi->create_form_definition_by_template:\n") - pprint(results) - except Exception as e: - print("Exception when calling CustomFormsApi->create_form_definition_by_template: %s\n" % e) + try: + # Create a form definition by template. + + results = CustomFormsApi(api_client).create_form_definition_by_template() + # Below is a request that includes all optional parameters + # results = CustomFormsApi(api_client).create_form_definition_by_template(new_create_form_definition_request) + print("The response of CustomFormsApi->create_form_definition_by_template:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CustomFormsApi->create_form_definition_by_template: %s\n" % e) - path: /form-definitions/forms-action-dynamic-schema method: POST xCodeSample: @@ -3683,13 +3577,12 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.form_definition_dynamic_schema_request import FormDefinitionDynamicSchemaRequest from sailpoint.beta.models.form_definition_dynamic_schema_response import FormDefinitionDynamicSchemaResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - body = '''{ + body = '''{ "description" : "A description", "attributes" : { "formDefinitionId" : "00000000-0000-0000-0000-000000000000" @@ -3698,16 +3591,16 @@ "type" : "action", "versionNumber" : 1 }''' # FormDefinitionDynamicSchemaRequest | Body is the request payload to create a form definition dynamic schema (optional) - try: - # Generate JSON Schema dynamically. - - results = CustomFormsApi(api_client).create_form_definition_dynamic_schema() - # Below is a request that includes all optional parameters - # results = CustomFormsApi(api_client).create_form_definition_dynamic_schema(new_body) - print("The response of CustomFormsApi->create_form_definition_dynamic_schema:\n") - pprint(results) - except Exception as e: - print("Exception when calling CustomFormsApi->create_form_definition_dynamic_schema: %s\n" % e) + try: + # Generate JSON Schema dynamically. + + results = CustomFormsApi(api_client).create_form_definition_dynamic_schema() + # Below is a request that includes all optional parameters + # results = CustomFormsApi(api_client).create_form_definition_dynamic_schema(new_body) + print("The response of CustomFormsApi->create_form_definition_dynamic_schema:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CustomFormsApi->create_form_definition_dynamic_schema: %s\n" % e) - path: /form-definitions/{formDefinitionID}/upload method: POST xCodeSample: @@ -3717,24 +3610,23 @@ from sailpoint.beta.api.custom_forms_api import CustomFormsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.form_definition_file_upload_response import FormDefinitionFileUploadResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - form_definition_id = '00000000-0000-0000-0000-000000000000' # str | FormDefinitionID String specifying FormDefinitionID # str | FormDefinitionID String specifying FormDefinitionID - file = None # bytearray | File specifying the multipart # bytearray | File specifying the multipart - try: - # Upload new form definition file. - - results = CustomFormsApi(api_client).create_form_definition_file_request(form_definition_id=form_definition_id, file=file) - # Below is a request that includes all optional parameters - # results = CustomFormsApi(api_client).create_form_definition_file_request(form_definition_id, file) - print("The response of CustomFormsApi->create_form_definition_file_request:\n") - pprint(results) - except Exception as e: - print("Exception when calling CustomFormsApi->create_form_definition_file_request: %s\n" % e) + form_definition_id = '00000000-0000-0000-0000-000000000000' # str | FormDefinitionID String specifying FormDefinitionID # str | FormDefinitionID String specifying FormDefinitionID + file = None # bytearray | File specifying the multipart # bytearray | File specifying the multipart + try: + # Upload new form definition file. + + results = CustomFormsApi(api_client).create_form_definition_file_request(form_definition_id=form_definition_id, file=file) + # Below is a request that includes all optional parameters + # results = CustomFormsApi(api_client).create_form_definition_file_request(form_definition_id, file) + print("The response of CustomFormsApi->create_form_definition_file_request:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CustomFormsApi->create_form_definition_file_request: %s\n" % e) - path: /form-instances method: POST xCodeSample: @@ -3745,13 +3637,12 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.create_form_instance_request import CreateFormInstanceRequest from sailpoint.beta.models.form_instance_response import FormInstanceResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - body = '''{ + body = '''{ "formInput" : { "input1" : "Sales" }, @@ -3772,16 +3663,16 @@ "state" : "ASSIGNED", "ttl" : 1571827560 }''' # CreateFormInstanceRequest | Body is the request payload to create a form instance (optional) - try: - # Creates a form instance. - - results = CustomFormsApi(api_client).create_form_instance() - # Below is a request that includes all optional parameters - # results = CustomFormsApi(api_client).create_form_instance(new_body) - print("The response of CustomFormsApi->create_form_instance:\n") - pprint(results) - except Exception as e: - print("Exception when calling CustomFormsApi->create_form_instance: %s\n" % e) + try: + # Creates a form instance. + + results = CustomFormsApi(api_client).create_form_instance() + # Below is a request that includes all optional parameters + # results = CustomFormsApi(api_client).create_form_instance(new_body) + print("The response of CustomFormsApi->create_form_instance:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CustomFormsApi->create_form_instance: %s\n" % e) - path: /form-definitions/{formDefinitionID} method: DELETE xCodeSample: @@ -3790,23 +3681,22 @@ source: | from sailpoint.beta.api.custom_forms_api import CustomFormsApi from sailpoint.beta.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - form_definition_id = '00000000-0000-0000-0000-000000000000' # str | Form definition ID # str | Form definition ID - try: - # Deletes a form definition. - - results = CustomFormsApi(api_client).delete_form_definition(form_definition_id=form_definition_id) - # Below is a request that includes all optional parameters - # results = CustomFormsApi(api_client).delete_form_definition(form_definition_id) - print("The response of CustomFormsApi->delete_form_definition:\n") - pprint(results) - except Exception as e: - print("Exception when calling CustomFormsApi->delete_form_definition: %s\n" % e) + form_definition_id = '00000000-0000-0000-0000-000000000000' # str | Form definition ID # str | Form definition ID + try: + # Deletes a form definition. + + results = CustomFormsApi(api_client).delete_form_definition(form_definition_id=form_definition_id) + # Below is a request that includes all optional parameters + # results = CustomFormsApi(api_client).delete_form_definition(form_definition_id) + print("The response of CustomFormsApi->delete_form_definition:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CustomFormsApi->delete_form_definition: %s\n" % e) - path: /form-definitions/export method: GET xCodeSample: @@ -3816,26 +3706,25 @@ from sailpoint.beta.api.custom_forms_api import CustomFormsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.export_form_definitions_by_tenant200_response_inner import ExportFormDefinitionsByTenant200ResponseInner - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - offset = 0 # int | Offset Integer specifying the offset of the first result from the beginning of the collection. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). The offset value is record-based, not page-based, and the index starts at 0. (optional) (default to 0) # int | Offset Integer specifying the offset of the first result from the beginning of the collection. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). The offset value is record-based, not page-based, and the index starts at 0. (optional) (default to 0) - limit = 250 # int | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 250) # int | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 250) - filters = 'name sw \"my form\"' # 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: **name**: *eq, gt, sw, in* **description**: *eq, gt, sw, in* **created**: *eq, gt, sw, in* **modified**: *eq, gt, sw, in* (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: **name**: *eq, gt, sw, in* **description**: *eq, gt, sw, in* **created**: *eq, gt, sw, in* **modified**: *eq, gt, sw, in* (optional) - sorters = 'name' # 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: **name, description, created, modified** (optional) (default to 'name') # 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: **name, description, created, modified** (optional) (default to 'name') - try: - # List form definitions by tenant. - - results = CustomFormsApi(api_client).export_form_definitions_by_tenant() - # Below is a request that includes all optional parameters - # results = CustomFormsApi(api_client).export_form_definitions_by_tenant(offset, limit, filters, sorters) - print("The response of CustomFormsApi->export_form_definitions_by_tenant:\n") - pprint(results) - except Exception as e: - print("Exception when calling CustomFormsApi->export_form_definitions_by_tenant: %s\n" % e) + offset = 0 # int | Offset Integer specifying the offset of the first result from the beginning of the collection. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). The offset value is record-based, not page-based, and the index starts at 0. (optional) (default to 0) # int | Offset Integer specifying the offset of the first result from the beginning of the collection. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). The offset value is record-based, not page-based, and the index starts at 0. (optional) (default to 0) + limit = 250 # int | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 250) # int | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 250) + filters = 'name sw \"my form\"' # 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: **name**: *eq, gt, sw, in* **description**: *eq, gt, sw, in* **created**: *eq, gt, sw, in* **modified**: *eq, gt, sw, in* (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: **name**: *eq, gt, sw, in* **description**: *eq, gt, sw, in* **created**: *eq, gt, sw, in* **modified**: *eq, gt, sw, in* (optional) + sorters = 'name' # 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: **name, description, created, modified** (optional) (default to 'name') # 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: **name, description, created, modified** (optional) (default to 'name') + try: + # List form definitions by tenant. + + results = CustomFormsApi(api_client).export_form_definitions_by_tenant() + # Below is a request that includes all optional parameters + # results = CustomFormsApi(api_client).export_form_definitions_by_tenant(offset, limit, filters, sorters) + print("The response of CustomFormsApi->export_form_definitions_by_tenant:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CustomFormsApi->export_form_definitions_by_tenant: %s\n" % e) - path: /form-definitions/{formDefinitionID}/file/{fileID} method: GET xCodeSample: @@ -3844,24 +3733,23 @@ source: | from sailpoint.beta.api.custom_forms_api import CustomFormsApi from sailpoint.beta.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - form_definition_id = '00000000-0000-0000-0000-000000000000' # str | FormDefinitionID Form definition ID # str | FormDefinitionID Form definition ID - file_id = '00000031N0J7R2B57M8YG73J7M.png' # str | FileID String specifying the hashed name of the uploaded file we are retrieving. # str | FileID String specifying the hashed name of the uploaded file we are retrieving. - try: - # Download definition file by fileId. - - results = CustomFormsApi(api_client).get_file_from_s3(form_definition_id=form_definition_id, file_id=file_id) - # Below is a request that includes all optional parameters - # results = CustomFormsApi(api_client).get_file_from_s3(form_definition_id, file_id) - print("The response of CustomFormsApi->get_file_from_s3:\n") - pprint(results) - except Exception as e: - print("Exception when calling CustomFormsApi->get_file_from_s3: %s\n" % e) + form_definition_id = '00000000-0000-0000-0000-000000000000' # str | FormDefinitionID Form definition ID # str | FormDefinitionID Form definition ID + file_id = '00000031N0J7R2B57M8YG73J7M.png' # str | FileID String specifying the hashed name of the uploaded file we are retrieving. # str | FileID String specifying the hashed name of the uploaded file we are retrieving. + try: + # Download definition file by fileId. + + results = CustomFormsApi(api_client).get_file_from_s3(form_definition_id=form_definition_id, file_id=file_id) + # Below is a request that includes all optional parameters + # results = CustomFormsApi(api_client).get_file_from_s3(form_definition_id, file_id) + print("The response of CustomFormsApi->get_file_from_s3:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CustomFormsApi->get_file_from_s3: %s\n" % e) - path: /form-definitions/{formDefinitionID} method: GET xCodeSample: @@ -3871,23 +3759,22 @@ from sailpoint.beta.api.custom_forms_api import CustomFormsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.form_definition_response import FormDefinitionResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - form_definition_id = '00000000-0000-0000-0000-000000000000' # str | Form definition ID # str | Form definition ID - try: - # Return a form definition. - - results = CustomFormsApi(api_client).get_form_definition_by_key(form_definition_id=form_definition_id) - # Below is a request that includes all optional parameters - # results = CustomFormsApi(api_client).get_form_definition_by_key(form_definition_id) - print("The response of CustomFormsApi->get_form_definition_by_key:\n") - pprint(results) - except Exception as e: - print("Exception when calling CustomFormsApi->get_form_definition_by_key: %s\n" % e) + form_definition_id = '00000000-0000-0000-0000-000000000000' # str | Form definition ID # str | Form definition ID + try: + # Return a form definition. + + results = CustomFormsApi(api_client).get_form_definition_by_key(form_definition_id=form_definition_id) + # Below is a request that includes all optional parameters + # results = CustomFormsApi(api_client).get_form_definition_by_key(form_definition_id) + print("The response of CustomFormsApi->get_form_definition_by_key:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CustomFormsApi->get_form_definition_by_key: %s\n" % e) - path: /form-instances/{formInstanceID} method: GET xCodeSample: @@ -3897,23 +3784,22 @@ from sailpoint.beta.api.custom_forms_api import CustomFormsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.form_instance_response import FormInstanceResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - form_instance_id = '00000000-0000-0000-0000-000000000000' # str | Form instance ID # str | Form instance ID - try: - # Returns a form instance. - - results = CustomFormsApi(api_client).get_form_instance_by_key(form_instance_id=form_instance_id) - # Below is a request that includes all optional parameters - # results = CustomFormsApi(api_client).get_form_instance_by_key(form_instance_id) - print("The response of CustomFormsApi->get_form_instance_by_key:\n") - pprint(results) - except Exception as e: - print("Exception when calling CustomFormsApi->get_form_instance_by_key: %s\n" % e) + form_instance_id = '00000000-0000-0000-0000-000000000000' # str | Form instance ID # str | Form instance ID + try: + # Returns a form instance. + + results = CustomFormsApi(api_client).get_form_instance_by_key(form_instance_id=form_instance_id) + # Below is a request that includes all optional parameters + # results = CustomFormsApi(api_client).get_form_instance_by_key(form_instance_id) + print("The response of CustomFormsApi->get_form_instance_by_key:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CustomFormsApi->get_form_instance_by_key: %s\n" % e) - path: /form-instances/{formInstanceID}/file/{fileID} method: GET xCodeSample: @@ -3922,24 +3808,23 @@ source: | from sailpoint.beta.api.custom_forms_api import CustomFormsApi from sailpoint.beta.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - form_instance_id = '00000000-0000-0000-0000-000000000000' # str | FormInstanceID Form instance ID # str | FormInstanceID Form instance ID - file_id = '00000031N0J7R2B57M8YG73J7M.png' # str | FileID String specifying the hashed name of the uploaded file we are retrieving. # str | FileID String specifying the hashed name of the uploaded file we are retrieving. - try: - # Download instance file by fileId. - - results = CustomFormsApi(api_client).get_form_instance_file(form_instance_id=form_instance_id, file_id=file_id) - # Below is a request that includes all optional parameters - # results = CustomFormsApi(api_client).get_form_instance_file(form_instance_id, file_id) - print("The response of CustomFormsApi->get_form_instance_file:\n") - pprint(results) - except Exception as e: - print("Exception when calling CustomFormsApi->get_form_instance_file: %s\n" % e) + form_instance_id = '00000000-0000-0000-0000-000000000000' # str | FormInstanceID Form instance ID # str | FormInstanceID Form instance ID + file_id = '00000031N0J7R2B57M8YG73J7M.png' # str | FileID String specifying the hashed name of the uploaded file we are retrieving. # str | FileID String specifying the hashed name of the uploaded file we are retrieving. + try: + # Download instance file by fileId. + + results = CustomFormsApi(api_client).get_form_instance_file(form_instance_id=form_instance_id, file_id=file_id) + # Below is a request that includes all optional parameters + # results = CustomFormsApi(api_client).get_form_instance_file(form_instance_id, file_id) + print("The response of CustomFormsApi->get_form_instance_file:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CustomFormsApi->get_form_instance_file: %s\n" % e) - path: /form-definitions/import method: POST xCodeSample: @@ -3950,23 +3835,22 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.import_form_definitions202_response import ImportFormDefinitions202Response from sailpoint.beta.models.import_form_definitions_request_inner import ImportFormDefinitionsRequestInner - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - body = '''[{version=1, self={name=All fields not required, id=05ed4edb-d0a9-41d9-ad0c-2f6e486ec4aa, type=FORM_DEFINITION}, object={id=05ed4edb-d0a9-41d9-ad0c-2f6e486ec4aa, name=All fields not required, description=description, owner={type=IDENTITY, id=3447d8ec2602455ab6f1e8408a0f0150}, usedBy=[{type=WORKFLOW, id=5008594c-dacc-4295-8fee-41df60477304}, {type=WORKFLOW, id=97e75a75-c179-4fbc-a2da-b5fa4aaa8743}], formInput=[{type=STRING, label=input1, description=A single dynamic scalar value (i.e. number, string, date, etc) that can be passed into the form for use in conditional logic}], formElements=[{id=3069272797630701, elementType=SECTION, config={label=First Section, formElements=[{id=3069272797630700, elementType=TEXT, key=firstName, config={label=First Name}}, {id=3498415402897539, elementType=TEXT, key=lastName, config={label=Last Name}}]}}], formConditions=[{ruleOperator=AND, rules=[{sourceType=INPUT, source=Department, operator=EQ, valueType=STRING, value=Sales}], effects=[{effectType=HIDE, config={element=2614088730489570}}]}], created=2022-10-04T19:27:04.456Z, modified=2022-11-16T20:45:02.172Z}}]''' # List[ImportFormDefinitionsRequestInner] | Body is the request payload to import form definitions (optional) - try: - # Import form definitions from export. - - results = CustomFormsApi(api_client).import_form_definitions() - # Below is a request that includes all optional parameters - # results = CustomFormsApi(api_client).import_form_definitions(new_body) - print("The response of CustomFormsApi->import_form_definitions:\n") - pprint(results) - except Exception as e: - print("Exception when calling CustomFormsApi->import_form_definitions: %s\n" % e) + body = '''[{version=1, self={name=All fields not required, id=05ed4edb-d0a9-41d9-ad0c-2f6e486ec4aa, type=FORM_DEFINITION}, object={id=05ed4edb-d0a9-41d9-ad0c-2f6e486ec4aa, name=All fields not required, description=description, owner={type=IDENTITY, id=3447d8ec2602455ab6f1e8408a0f0150}, usedBy=[{type=WORKFLOW, id=5008594c-dacc-4295-8fee-41df60477304}, {type=WORKFLOW, id=97e75a75-c179-4fbc-a2da-b5fa4aaa8743}], formInput=[{type=STRING, label=input1, description=A single dynamic scalar value (i.e. number, string, date, etc) that can be passed into the form for use in conditional logic}], formElements=[{id=3069272797630701, elementType=SECTION, config={label=First Section, formElements=[{id=3069272797630700, elementType=TEXT, key=firstName, config={label=First Name}}, {id=3498415402897539, elementType=TEXT, key=lastName, config={label=Last Name}}]}}], formConditions=[{ruleOperator=AND, rules=[{sourceType=INPUT, source=Department, operator=EQ, valueType=STRING, value=Sales}], effects=[{effectType=HIDE, config={element=2614088730489570}}]}], created=2022-10-04T19:27:04.456Z, modified=2022-11-16T20:45:02.172Z}}]''' # List[ImportFormDefinitionsRequestInner] | Body is the request payload to import form definitions (optional) + try: + # Import form definitions from export. + + results = CustomFormsApi(api_client).import_form_definitions() + # Below is a request that includes all optional parameters + # results = CustomFormsApi(api_client).import_form_definitions(new_body) + print("The response of CustomFormsApi->import_form_definitions:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CustomFormsApi->import_form_definitions: %s\n" % e) - path: /form-definitions/{formDefinitionID} method: PATCH xCodeSample: @@ -3976,24 +3860,23 @@ from sailpoint.beta.api.custom_forms_api import CustomFormsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.form_definition_response import FormDefinitionResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - form_definition_id = '00000000-0000-0000-0000-000000000000' # str | Form definition ID # str | Form definition ID - body = '''[{op=replace, path=/description, value=test-description}]''' # List[Dict[str, object]] | Body is the request payload to patch a form definition, check: https://jsonpatch.com (optional) - try: - # Patch a form definition. - - results = CustomFormsApi(api_client).patch_form_definition(form_definition_id=form_definition_id) - # Below is a request that includes all optional parameters - # results = CustomFormsApi(api_client).patch_form_definition(form_definition_id, new_body) - print("The response of CustomFormsApi->patch_form_definition:\n") - pprint(results) - except Exception as e: - print("Exception when calling CustomFormsApi->patch_form_definition: %s\n" % e) + form_definition_id = '00000000-0000-0000-0000-000000000000' # str | Form definition ID # str | Form definition ID + body = '''[{op=replace, path=/description, value=test-description}]''' # List[Dict[str, object]] | Body is the request payload to patch a form definition, check: https://jsonpatch.com (optional) + try: + # Patch a form definition. + + results = CustomFormsApi(api_client).patch_form_definition(form_definition_id=form_definition_id) + # Below is a request that includes all optional parameters + # results = CustomFormsApi(api_client).patch_form_definition(form_definition_id, new_body) + print("The response of CustomFormsApi->patch_form_definition:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CustomFormsApi->patch_form_definition: %s\n" % e) - path: /form-instances/{formInstanceID} method: PATCH xCodeSample: @@ -4003,24 +3886,23 @@ from sailpoint.beta.api.custom_forms_api import CustomFormsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.form_instance_response import FormInstanceResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - form_instance_id = '00000000-0000-0000-0000-000000000000' # str | Form instance ID # str | Form instance ID - body = '''[{op=replace, path=/state, value=SUBMITTED}, {op=replace, path=/formData, value={a-key-1=a-value-1, a-key-2=true, a-key-3=1}}]''' # List[Dict[str, object]] | Body is the request payload to patch a form instance, check: https://jsonpatch.com (optional) - try: - # Patch a form instance. - - results = CustomFormsApi(api_client).patch_form_instance(form_instance_id=form_instance_id) - # Below is a request that includes all optional parameters - # results = CustomFormsApi(api_client).patch_form_instance(form_instance_id, new_body) - print("The response of CustomFormsApi->patch_form_instance:\n") - pprint(results) - except Exception as e: - print("Exception when calling CustomFormsApi->patch_form_instance: %s\n" % e) + form_instance_id = '00000000-0000-0000-0000-000000000000' # str | Form instance ID # str | Form instance ID + body = '''[{op=replace, path=/state, value=SUBMITTED}, {op=replace, path=/formData, value={a-key-1=a-value-1, a-key-2=true, a-key-3=1}}]''' # List[Dict[str, object]] | Body is the request payload to patch a form instance, check: https://jsonpatch.com (optional) + try: + # Patch a form instance. + + results = CustomFormsApi(api_client).patch_form_instance(form_instance_id=form_instance_id) + # Below is a request that includes all optional parameters + # results = CustomFormsApi(api_client).patch_form_instance(form_instance_id, new_body) + print("The response of CustomFormsApi->patch_form_instance:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CustomFormsApi->patch_form_instance: %s\n" % e) - path: /form-definitions method: GET xCodeSample: @@ -4030,26 +3912,25 @@ from sailpoint.beta.api.custom_forms_api import CustomFormsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.list_form_definitions_by_tenant_response import ListFormDefinitionsByTenantResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - offset = 0 # int | Offset Integer specifying the offset of the first result from the beginning of the collection. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). The offset value is record-based, not page-based, and the index starts at 0. (optional) (default to 0) # int | Offset Integer specifying the offset of the first result from the beginning of the collection. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). The offset value is record-based, not page-based, and the index starts at 0. (optional) (default to 0) - limit = 250 # int | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 250) # int | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 250) - filters = 'name sw \"my form\"' # 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: **name**: *eq, gt, sw, in* **description**: *eq, gt, sw, in* **created**: *eq, gt, sw, in* **modified**: *eq, gt, sw, in* (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: **name**: *eq, gt, sw, in* **description**: *eq, gt, sw, in* **created**: *eq, gt, sw, in* **modified**: *eq, gt, sw, in* (optional) - sorters = 'name' # 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: **name, description, created, modified** (optional) (default to 'name') # 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: **name, description, created, modified** (optional) (default to 'name') - try: - # Export form definitions by tenant. - - results = CustomFormsApi(api_client).search_form_definitions_by_tenant() - # Below is a request that includes all optional parameters - # results = CustomFormsApi(api_client).search_form_definitions_by_tenant(offset, limit, filters, sorters) - print("The response of CustomFormsApi->search_form_definitions_by_tenant:\n") - pprint(results) - except Exception as e: - print("Exception when calling CustomFormsApi->search_form_definitions_by_tenant: %s\n" % e) + offset = 0 # int | Offset Integer specifying the offset of the first result from the beginning of the collection. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). The offset value is record-based, not page-based, and the index starts at 0. (optional) (default to 0) # int | Offset Integer specifying the offset of the first result from the beginning of the collection. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). The offset value is record-based, not page-based, and the index starts at 0. (optional) (default to 0) + limit = 250 # int | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 250) # int | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 250) + filters = 'name sw \"my form\"' # 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: **name**: *eq, gt, sw, in* **description**: *eq, gt, sw, in* **created**: *eq, gt, sw, in* **modified**: *eq, gt, sw, in* (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: **name**: *eq, gt, sw, in* **description**: *eq, gt, sw, in* **created**: *eq, gt, sw, in* **modified**: *eq, gt, sw, in* (optional) + sorters = 'name' # 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: **name, description, created, modified** (optional) (default to 'name') # 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: **name, description, created, modified** (optional) (default to 'name') + try: + # Export form definitions by tenant. + + results = CustomFormsApi(api_client).search_form_definitions_by_tenant() + # Below is a request that includes all optional parameters + # results = CustomFormsApi(api_client).search_form_definitions_by_tenant(offset, limit, filters, sorters) + print("The response of CustomFormsApi->search_form_definitions_by_tenant:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CustomFormsApi->search_form_definitions_by_tenant: %s\n" % e) - path: /form-instances/{formInstanceID}/data-source/{formElementID} method: GET xCodeSample: @@ -4059,27 +3940,26 @@ from sailpoint.beta.api.custom_forms_api import CustomFormsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.list_form_element_data_by_element_id_response import ListFormElementDataByElementIDResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - form_instance_id = '00000000-0000-0000-0000-000000000000' # str | Form instance ID # str | Form instance ID - form_element_id = '1' # str | Form element ID # str | Form element ID - limit = 250 # int | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 250) # int | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 250) - filters = 'value eq \"ID01\"' # 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: **value**: *eq, ne, in* Supported composite operators: *not* Only a single *not* may be used, and it can only be used with the `in` operator. The `not` composite operator must be used in front of the field. For example, the following is valid: `not value in (\"ID01\")` (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: **value**: *eq, ne, in* Supported composite operators: *not* Only a single *not* may be used, and it can only be used with the `in` operator. The `not` composite operator must be used in front of the field. For example, the following is valid: `not value in (\"ID01\")` (optional) - query = 'support' # str | String that is passed to the underlying API to filter other (non-ID) fields. For example, for access profile data sources, this string will be passed to the access profile api and used with a \"starts with\" filter against several fields. (optional) # str | String that is passed to the underlying API to filter other (non-ID) fields. For example, for access profile data sources, this string will be passed to the access profile api and used with a \"starts with\" filter against several fields. (optional) - try: - # Retrieves dynamic data by element. - - results = CustomFormsApi(api_client).search_form_element_data_by_element_id(form_instance_id=form_instance_id, form_element_id=form_element_id) - # Below is a request that includes all optional parameters - # results = CustomFormsApi(api_client).search_form_element_data_by_element_id(form_instance_id, form_element_id, limit, filters, query) - print("The response of CustomFormsApi->search_form_element_data_by_element_id:\n") - pprint(results) - except Exception as e: - print("Exception when calling CustomFormsApi->search_form_element_data_by_element_id: %s\n" % e) + form_instance_id = '00000000-0000-0000-0000-000000000000' # str | Form instance ID # str | Form instance ID + form_element_id = '1' # str | Form element ID # str | Form element ID + limit = 250 # int | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 250) # int | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 250) + filters = 'value eq \"ID01\"' # 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: **value**: *eq, ne, in* Supported composite operators: *not* Only a single *not* may be used, and it can only be used with the `in` operator. The `not` composite operator must be used in front of the field. For example, the following is valid: `not value in (\"ID01\")` (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: **value**: *eq, ne, in* Supported composite operators: *not* Only a single *not* may be used, and it can only be used with the `in` operator. The `not` composite operator must be used in front of the field. For example, the following is valid: `not value in (\"ID01\")` (optional) + query = 'support' # str | String that is passed to the underlying API to filter other (non-ID) fields. For example, for access profile data sources, this string will be passed to the access profile api and used with a \"starts with\" filter against several fields. (optional) # str | String that is passed to the underlying API to filter other (non-ID) fields. For example, for access profile data sources, this string will be passed to the access profile api and used with a \"starts with\" filter against several fields. (optional) + try: + # Retrieves dynamic data by element. + + results = CustomFormsApi(api_client).search_form_element_data_by_element_id(form_instance_id=form_instance_id, form_element_id=form_element_id) + # Below is a request that includes all optional parameters + # results = CustomFormsApi(api_client).search_form_element_data_by_element_id(form_instance_id, form_element_id, limit, filters, query) + print("The response of CustomFormsApi->search_form_element_data_by_element_id:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CustomFormsApi->search_form_element_data_by_element_id: %s\n" % e) - path: /form-instances method: GET xCodeSample: @@ -4089,22 +3969,21 @@ from sailpoint.beta.api.custom_forms_api import CustomFormsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.form_instance_response import FormInstanceResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - try: - # List form instances by tenant. - - results = CustomFormsApi(api_client).search_form_instances_by_tenant() - # Below is a request that includes all optional parameters - # results = CustomFormsApi(api_client).search_form_instances_by_tenant() - print("The response of CustomFormsApi->search_form_instances_by_tenant:\n") - pprint(results) - except Exception as e: - print("Exception when calling CustomFormsApi->search_form_instances_by_tenant: %s\n" % e) + try: + # List form instances by tenant. + + results = CustomFormsApi(api_client).search_form_instances_by_tenant() + # Below is a request that includes all optional parameters + # results = CustomFormsApi(api_client).search_form_instances_by_tenant() + print("The response of CustomFormsApi->search_form_instances_by_tenant:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CustomFormsApi->search_form_instances_by_tenant: %s\n" % e) - path: /form-definitions/predefined-select-options method: GET xCodeSample: @@ -4114,22 +3993,21 @@ from sailpoint.beta.api.custom_forms_api import CustomFormsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.list_predefined_select_options_response import ListPredefinedSelectOptionsResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - try: - # List predefined select options. - - results = CustomFormsApi(api_client).search_pre_defined_select_options() - # Below is a request that includes all optional parameters - # results = CustomFormsApi(api_client).search_pre_defined_select_options() - print("The response of CustomFormsApi->search_pre_defined_select_options:\n") - pprint(results) - except Exception as e: - print("Exception when calling CustomFormsApi->search_pre_defined_select_options: %s\n" % e) + try: + # List predefined select options. + + results = CustomFormsApi(api_client).search_pre_defined_select_options() + # Below is a request that includes all optional parameters + # results = CustomFormsApi(api_client).search_pre_defined_select_options() + print("The response of CustomFormsApi->search_pre_defined_select_options:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CustomFormsApi->search_pre_defined_select_options: %s\n" % e) - path: /form-definitions/{formDefinitionID}/data-source method: POST xCodeSample: @@ -4140,17 +4018,16 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.form_element_preview_request import FormElementPreviewRequest from sailpoint.beta.models.preview_data_source_response import PreviewDataSourceResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - form_definition_id = '00000000-0000-0000-0000-000000000000' # str | Form definition ID # str | Form definition ID - limit = 10 # int | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 10) # int | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 10) - filters = 'value eq \"ID01\"' # 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: **value**: *eq, ne, in* Supported composite operators: *not* Only a single *not* may be used, and it can only be used with the `in` operator. The `not` composite operator must be used in front of the field. For example, the following is valid: `not value in (\"ID01\")` (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: **value**: *eq, ne, in* Supported composite operators: *not* Only a single *not* may be used, and it can only be used with the `in` operator. The `not` composite operator must be used in front of the field. For example, the following is valid: `not value in (\"ID01\")` (optional) - query = 'ac' # str | String that is passed to the underlying API to filter other (non-ID) fields. For example, for access profile data sources, this string will be passed to the access profile api and used with a \"starts with\" filter against several fields. (optional) # str | String that is passed to the underlying API to filter other (non-ID) fields. For example, for access profile data sources, this string will be passed to the access profile api and used with a \"starts with\" filter against several fields. (optional) - form_element_preview_request = '''{ + form_definition_id = '00000000-0000-0000-0000-000000000000' # str | Form definition ID # str | Form definition ID + limit = 10 # int | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 10) # int | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 10) + filters = 'value eq \"ID01\"' # 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: **value**: *eq, ne, in* Supported composite operators: *not* Only a single *not* may be used, and it can only be used with the `in` operator. The `not` composite operator must be used in front of the field. For example, the following is valid: `not value in (\"ID01\")` (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: **value**: *eq, ne, in* Supported composite operators: *not* Only a single *not* may be used, and it can only be used with the `in` operator. The `not` composite operator must be used in front of the field. For example, the following is valid: `not value in (\"ID01\")` (optional) + query = 'ac' # str | String that is passed to the underlying API to filter other (non-ID) fields. For example, for access profile data sources, this string will be passed to the access profile api and used with a \"starts with\" filter against several fields. (optional) # str | String that is passed to the underlying API to filter other (non-ID) fields. For example, for access profile data sources, this string will be passed to the access profile api and used with a \"starts with\" filter against several fields. (optional) + form_element_preview_request = '''{ "dataSource" : { "config" : { "indices" : [ "identities" ], @@ -4161,16 +4038,16 @@ "dataSourceType" : "STATIC" } }''' # FormElementPreviewRequest | Body is the request payload to create a form definition dynamic schema (optional) - try: - # Preview form definition data source. - - results = CustomFormsApi(api_client).show_preview_data_source(form_definition_id=form_definition_id) - # Below is a request that includes all optional parameters - # results = CustomFormsApi(api_client).show_preview_data_source(form_definition_id, limit, filters, query, new_form_element_preview_request) - print("The response of CustomFormsApi->show_preview_data_source:\n") - pprint(results) - except Exception as e: - print("Exception when calling CustomFormsApi->show_preview_data_source: %s\n" % e) + try: + # Preview form definition data source. + + results = CustomFormsApi(api_client).show_preview_data_source(form_definition_id=form_definition_id) + # Below is a request that includes all optional parameters + # results = CustomFormsApi(api_client).show_preview_data_source(form_definition_id, limit, filters, query, new_form_element_preview_request) + print("The response of CustomFormsApi->show_preview_data_source:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CustomFormsApi->show_preview_data_source: %s\n" % e) - path: /custom-password-instructions method: POST xCodeSample: @@ -4180,27 +4057,26 @@ from sailpoint.beta.api.custom_password_instructions_api import CustomPasswordInstructionsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.custom_password_instruction import CustomPasswordInstruction - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - custom_password_instruction = '''{ + custom_password_instruction = '''{ "pageContent" : "Please enter a new password. Your password must be at least 8 characters long and contain at least one number and one letter.", "pageId" : "change-password:enter-password", "locale" : "en" }''' # CustomPasswordInstruction | - try: - # Create Custom Password Instructions - new_custom_password_instruction = CustomPasswordInstruction.from_json(custom_password_instruction) - results = CustomPasswordInstructionsApi(api_client).create_custom_password_instructions(custom_password_instruction=new_custom_password_instruction) - # Below is a request that includes all optional parameters - # results = CustomPasswordInstructionsApi(api_client).create_custom_password_instructions(new_custom_password_instruction) - print("The response of CustomPasswordInstructionsApi->create_custom_password_instructions:\n") - pprint(results) - except Exception as e: - print("Exception when calling CustomPasswordInstructionsApi->create_custom_password_instructions: %s\n" % e) + try: + # Create Custom Password Instructions + new_custom_password_instruction = CustomPasswordInstruction.from_json(custom_password_instruction) + results = CustomPasswordInstructionsApi(api_client).create_custom_password_instructions(custom_password_instruction=new_custom_password_instruction) + # Below is a request that includes all optional parameters + # results = CustomPasswordInstructionsApi(api_client).create_custom_password_instructions(new_custom_password_instruction) + print("The response of CustomPasswordInstructionsApi->create_custom_password_instructions:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CustomPasswordInstructionsApi->create_custom_password_instructions: %s\n" % e) - path: /custom-password-instructions/{pageId} method: DELETE xCodeSample: @@ -4209,22 +4085,21 @@ source: | from sailpoint.beta.api.custom_password_instructions_api import CustomPasswordInstructionsApi from sailpoint.beta.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - page_id = 'mfa:select' # str | The page ID of custom password instructions to delete. # str | The page ID of custom password instructions to delete. - locale = 'locale_example' # str | The locale for the custom instructions, a BCP47 language tag. The default value is \\\"default\\\". (optional) # str | The locale for the custom instructions, a BCP47 language tag. The default value is \\\"default\\\". (optional) - try: - # Delete Custom Password Instructions by page ID - - CustomPasswordInstructionsApi(api_client).delete_custom_password_instructions(page_id=page_id) - # Below is a request that includes all optional parameters - # CustomPasswordInstructionsApi(api_client).delete_custom_password_instructions(page_id, locale) - except Exception as e: - print("Exception when calling CustomPasswordInstructionsApi->delete_custom_password_instructions: %s\n" % e) + page_id = 'mfa:select' # str | The page ID of custom password instructions to delete. # str | The page ID of custom password instructions to delete. + locale = 'locale_example' # str | The locale for the custom instructions, a BCP47 language tag. The default value is \\\"default\\\". (optional) # str | The locale for the custom instructions, a BCP47 language tag. The default value is \\\"default\\\". (optional) + try: + # Delete Custom Password Instructions by page ID + + CustomPasswordInstructionsApi(api_client).delete_custom_password_instructions(page_id=page_id) + # Below is a request that includes all optional parameters + # CustomPasswordInstructionsApi(api_client).delete_custom_password_instructions(page_id, locale) + except Exception as e: + print("Exception when calling CustomPasswordInstructionsApi->delete_custom_password_instructions: %s\n" % e) - path: /custom-password-instructions/{pageId} method: GET xCodeSample: @@ -4234,24 +4109,23 @@ from sailpoint.beta.api.custom_password_instructions_api import CustomPasswordInstructionsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.custom_password_instruction import CustomPasswordInstruction - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - page_id = 'mfa:select' # str | The page ID of custom password instructions to query. # str | The page ID of custom password instructions to query. - locale = 'locale_example' # str | The locale for the custom instructions, a BCP47 language tag. The default value is \\\"default\\\". (optional) # str | The locale for the custom instructions, a BCP47 language tag. The default value is \\\"default\\\". (optional) - try: - # Get Custom Password Instructions by Page ID - - results = CustomPasswordInstructionsApi(api_client).get_custom_password_instructions(page_id=page_id) - # Below is a request that includes all optional parameters - # results = CustomPasswordInstructionsApi(api_client).get_custom_password_instructions(page_id, locale) - print("The response of CustomPasswordInstructionsApi->get_custom_password_instructions:\n") - pprint(results) - except Exception as e: - print("Exception when calling CustomPasswordInstructionsApi->get_custom_password_instructions: %s\n" % e) + page_id = 'mfa:select' # str | The page ID of custom password instructions to query. # str | The page ID of custom password instructions to query. + locale = 'locale_example' # str | The locale for the custom instructions, a BCP47 language tag. The default value is \\\"default\\\". (optional) # str | The locale for the custom instructions, a BCP47 language tag. The default value is \\\"default\\\". (optional) + try: + # Get Custom Password Instructions by Page ID + + results = CustomPasswordInstructionsApi(api_client).get_custom_password_instructions(page_id=page_id) + # Below is a request that includes all optional parameters + # results = CustomPasswordInstructionsApi(api_client).get_custom_password_instructions(page_id, locale) + print("The response of CustomPasswordInstructionsApi->get_custom_password_instructions:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CustomPasswordInstructionsApi->get_custom_password_instructions: %s\n" % e) - path: /entitlements/{id}/access-model-metadata/{attributeKey}/values/{attributeValue} method: POST xCodeSample: @@ -4261,25 +4135,24 @@ from sailpoint.beta.api.entitlements_api import EntitlementsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.entitlement import Entitlement - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808c74ff913f0175097daa9d59cd' # str | The entitlement id. # str | The entitlement id. - attribute_key = 'iscPrivacy' # str | Technical name of the Attribute. # str | Technical name of the Attribute. - attribute_value = 'public' # str | Technical name of the Attribute Value. # str | Technical name of the Attribute Value. - try: - # Add metadata to an entitlement. - - results = EntitlementsApi(api_client).create_access_model_metadata_for_entitlement(id=id, attribute_key=attribute_key, attribute_value=attribute_value) - # Below is a request that includes all optional parameters - # results = EntitlementsApi(api_client).create_access_model_metadata_for_entitlement(id, attribute_key, attribute_value) - print("The response of EntitlementsApi->create_access_model_metadata_for_entitlement:\n") - pprint(results) - except Exception as e: - print("Exception when calling EntitlementsApi->create_access_model_metadata_for_entitlement: %s\n" % e) + id = '2c91808c74ff913f0175097daa9d59cd' # str | The entitlement id. # str | The entitlement id. + attribute_key = 'iscPrivacy' # str | Technical name of the Attribute. # str | Technical name of the Attribute. + attribute_value = 'public' # str | Technical name of the Attribute Value. # str | Technical name of the Attribute Value. + try: + # Add metadata to an entitlement. + + results = EntitlementsApi(api_client).create_access_model_metadata_for_entitlement(id=id, attribute_key=attribute_key, attribute_value=attribute_value) + # Below is a request that includes all optional parameters + # results = EntitlementsApi(api_client).create_access_model_metadata_for_entitlement(id, attribute_key, attribute_value) + print("The response of EntitlementsApi->create_access_model_metadata_for_entitlement:\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: %s\n" % e) - path: /entitlements/{id}/access-model-metadata/{attributeKey}/values/{attributeValue} method: DELETE xCodeSample: @@ -4288,23 +4161,22 @@ source: | from sailpoint.beta.api.entitlements_api import EntitlementsApi from sailpoint.beta.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808c74ff913f0175097daa9d59cd' # str | The entitlement id. # str | The entitlement id. - attribute_key = 'iscPrivacy' # str | Technical name of the Attribute. # str | Technical name of the Attribute. - attribute_value = 'public' # str | Technical name of the Attribute Value. # str | Technical name of the Attribute Value. - try: - # Remove metadata from an entitlement. - - EntitlementsApi(api_client).delete_access_model_metadata_from_entitlement(id=id, attribute_key=attribute_key, attribute_value=attribute_value) - # Below is a request that includes all optional parameters - # EntitlementsApi(api_client).delete_access_model_metadata_from_entitlement(id, attribute_key, attribute_value) - except Exception as e: - print("Exception when calling EntitlementsApi->delete_access_model_metadata_from_entitlement: %s\n" % e) + id = '2c91808c74ff913f0175097daa9d59cd' # str | The entitlement id. # str | The entitlement id. + attribute_key = 'iscPrivacy' # str | Technical name of the Attribute. # str | Technical name of the Attribute. + attribute_value = 'public' # str | Technical name of the Attribute Value. # str | Technical name of the Attribute Value. + try: + # Remove metadata from an entitlement. + + EntitlementsApi(api_client).delete_access_model_metadata_from_entitlement(id=id, attribute_key=attribute_key, attribute_value=attribute_value) + # Below is a request that includes all optional parameters + # EntitlementsApi(api_client).delete_access_model_metadata_from_entitlement(id, attribute_key, attribute_value) + except Exception as e: + print("Exception when calling EntitlementsApi->delete_access_model_metadata_from_entitlement: %s\n" % e) - path: /entitlements/{id} method: GET xCodeSample: @@ -4314,23 +4186,22 @@ from sailpoint.beta.api.entitlements_api import EntitlementsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.entitlement import Entitlement - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808874ff91550175097daaec161c' # str | The entitlement ID # str | The entitlement ID - try: - # Get an entitlement - - results = EntitlementsApi(api_client).get_entitlement(id=id) - # Below is a request that includes all optional parameters - # results = EntitlementsApi(api_client).get_entitlement(id) - print("The response of EntitlementsApi->get_entitlement:\n") - pprint(results) - except Exception as e: - print("Exception when calling EntitlementsApi->get_entitlement: %s\n" % e) + id = '2c91808874ff91550175097daaec161c' # str | The entitlement ID # str | The entitlement ID + try: + # Get an entitlement + + results = EntitlementsApi(api_client).get_entitlement(id=id) + # Below is a request that includes all optional parameters + # results = EntitlementsApi(api_client).get_entitlement(id) + print("The response of EntitlementsApi->get_entitlement:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling EntitlementsApi->get_entitlement: %s\n" % e) - path: /entitlements/{id}/entitlement-request-config method: GET xCodeSample: @@ -4340,23 +4211,22 @@ from sailpoint.beta.api.entitlements_api import EntitlementsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.entitlement_request_config import EntitlementRequestConfig - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808874ff91550175097daaec161c' # str | Entitlement Id # str | Entitlement Id - try: - # Get Entitlement Request Config - - results = EntitlementsApi(api_client).get_entitlement_request_config(id=id) - # Below is a request that includes all optional parameters - # results = EntitlementsApi(api_client).get_entitlement_request_config(id) - print("The response of EntitlementsApi->get_entitlement_request_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling EntitlementsApi->get_entitlement_request_config: %s\n" % e) + id = '2c91808874ff91550175097daaec161c' # str | Entitlement Id # str | Entitlement Id + try: + # Get Entitlement Request Config + + results = EntitlementsApi(api_client).get_entitlement_request_config(id=id) + # Below is a request that includes all optional parameters + # results = EntitlementsApi(api_client).get_entitlement_request_config(id) + print("The response of EntitlementsApi->get_entitlement_request_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling EntitlementsApi->get_entitlement_request_config: %s\n" % e) - path: /entitlements/aggregate/sources/{id} method: POST xCodeSample: @@ -4366,24 +4236,23 @@ from sailpoint.beta.api.entitlements_api import EntitlementsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.load_entitlement_task import LoadEntitlementTask - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | Source Id # str | Source Id - csv_file = None # bytearray | The CSV file containing the source entitlements to aggregate. (optional) # bytearray | The CSV file containing the source entitlements to aggregate. (optional) - try: - # Aggregate Entitlements - - results = EntitlementsApi(api_client).import_entitlements_by_source(id=id) - # Below is a request that includes all optional parameters - # results = EntitlementsApi(api_client).import_entitlements_by_source(id, csv_file) - print("The response of EntitlementsApi->import_entitlements_by_source:\n") - pprint(results) - except Exception as e: - print("Exception when calling EntitlementsApi->import_entitlements_by_source: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | Source Id # str | Source Id + csv_file = None # bytearray | The CSV file containing the source entitlements to aggregate. (optional) # bytearray | The CSV file containing the source entitlements to aggregate. (optional) + try: + # Aggregate Entitlements + + results = EntitlementsApi(api_client).import_entitlements_by_source(id=id) + # Below is a request that includes all optional parameters + # results = EntitlementsApi(api_client).import_entitlements_by_source(id, csv_file) + print("The response of EntitlementsApi->import_entitlements_by_source:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling EntitlementsApi->import_entitlements_by_source: %s\n" % e) - path: /entitlements/{id}/children method: GET xCodeSample: @@ -4393,28 +4262,27 @@ from sailpoint.beta.api.entitlements_api import EntitlementsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.entitlement import Entitlement - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808874ff91550175097daaec161c' # str | Entitlement Id # str | Entitlement Id - 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) - sorters = 'name,-modified' # 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: **id, name, created, modified, type, attribute, value, source.id** (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: **id, name, created, modified, type, attribute, value, source.id** (optional) - filters = 'attribute eq \"memberOf\"' # 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* **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* (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* **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* (optional) - try: - # List of entitlements children - - results = EntitlementsApi(api_client).list_entitlement_children(id=id) - # Below is a request that includes all optional parameters - # results = EntitlementsApi(api_client).list_entitlement_children(id, limit, offset, count, sorters, filters) - print("The response of EntitlementsApi->list_entitlement_children:\n") - pprint(results) - except Exception as e: - print("Exception when calling EntitlementsApi->list_entitlement_children: %s\n" % e) + id = '2c91808874ff91550175097daaec161c' # str | Entitlement Id # str | Entitlement Id + 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) + sorters = 'name,-modified' # 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: **id, name, created, modified, type, attribute, value, source.id** (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: **id, name, created, modified, type, attribute, value, source.id** (optional) + filters = 'attribute eq \"memberOf\"' # 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* **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* (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* **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* (optional) + try: + # List of entitlements children + + results = EntitlementsApi(api_client).list_entitlement_children(id=id) + # Below is a request that includes all optional parameters + # results = EntitlementsApi(api_client).list_entitlement_children(id, limit, offset, count, sorters, filters) + print("The response of EntitlementsApi->list_entitlement_children:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling EntitlementsApi->list_entitlement_children: %s\n" % e) - path: /entitlements/{id}/parents method: GET xCodeSample: @@ -4424,28 +4292,27 @@ from sailpoint.beta.api.entitlements_api import EntitlementsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.entitlement import Entitlement - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808c74ff913f0175097daa9d59cd' # str | Entitlement Id # str | Entitlement Id - 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) - sorters = 'name,-modified' # 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: **id, name, created, modified, type, attribute, value, source.id** (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: **id, name, created, modified, type, attribute, value, source.id** (optional) - filters = 'attribute eq \"memberOf\"' # 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* **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* (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* **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* (optional) - try: - # List of entitlements parents - - results = EntitlementsApi(api_client).list_entitlement_parents(id=id) - # Below is a request that includes all optional parameters - # results = EntitlementsApi(api_client).list_entitlement_parents(id, limit, offset, count, sorters, filters) - print("The response of EntitlementsApi->list_entitlement_parents:\n") - pprint(results) - except Exception as e: - print("Exception when calling EntitlementsApi->list_entitlement_parents: %s\n" % e) + id = '2c91808c74ff913f0175097daa9d59cd' # str | Entitlement Id # str | Entitlement Id + 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) + sorters = 'name,-modified' # 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: **id, name, created, modified, type, attribute, value, source.id** (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: **id, name, created, modified, type, attribute, value, source.id** (optional) + filters = 'attribute eq \"memberOf\"' # 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* **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* (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* **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* (optional) + try: + # List of entitlements parents + + results = EntitlementsApi(api_client).list_entitlement_parents(id=id) + # Below is a request that includes all optional parameters + # results = EntitlementsApi(api_client).list_entitlement_parents(id, limit, offset, count, sorters, filters) + print("The response of EntitlementsApi->list_entitlement_parents:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling EntitlementsApi->list_entitlement_parents: %s\n" % e) - path: /entitlements method: GET xCodeSample: @@ -4455,31 +4322,30 @@ from sailpoint.beta.api.entitlements_api import EntitlementsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.entitlement import Entitlement - from pprint import pprint - from sailpoint.configuration import Configuration - configuration = Configuration() - - - with ApiClient(configuration) as api_client: - account_id = 'ef38f94347e94562b5bb8424a56397d8' # str | The account ID. If specified, returns only entitlements associated with the given Account. Cannot be specified with the **filters**, **segmented-for-identity**, **for-segment-ids**, or **include-unsegmented** param(s). This parameter is deprecated. Please use [Account Entitlements API](https://developer.sailpoint.com/apis/beta/#operation/getAccountEntitlements) to get account entitlements. (optional) # str | The account ID. If specified, returns only entitlements associated with the given Account. Cannot be specified with the **filters**, **segmented-for-identity**, **for-segment-ids**, or **include-unsegmented** param(s). This parameter is deprecated. Please use [Account Entitlements API](https://developer.sailpoint.com/apis/beta/#operation/getAccountEntitlements) to get account entitlements. (optional) - segmented_for_identity = 'me' # str | 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. By convention, the value **me** can stand in for the current user's Identity ID. Cannot be specified with the **account-id** or **for-segment-ids** param(s). It is also illegal to specify a value that refers to a different user's Identity. (optional) # str | 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. By convention, the value **me** can stand in for the current user's Identity ID. Cannot be specified with the **account-id** or **for-segment-ids** param(s). It is also illegal to specify a value that refers to a different user's Identity. (optional) - for_segment_ids = '041727d4-7d95-4779-b891-93cf41e98249,a378c9fa-bae5-494c-804e-a1e30f69f649' # str | If present and not empty, additionally filters Access Profiles to those which are assigned to the Segment(s) with the specified IDs. Cannot be specified with the **account-id** or **segmented-for-identity** param(s). (optional) # str | If present and not empty, additionally filters Access Profiles to those which are assigned to the Segment(s) with the specified IDs. Cannot be specified with the **account-id** or **segmented-for-identity** param(s). (optional) - include_unsegmented = True # bool | 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. (optional) (default to True) # bool | 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. (optional) (default to True) - 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) - 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) - 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) - sorters = 'name,-modified' # 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: **id, name, created, modified, type, attribute, value, source.id, requestable** (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: **id, name, created, modified, type, attribute, value, source.id, requestable** (optional) - filters = 'attribute eq \"memberOf\"' # 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* **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* (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* **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* (optional) - try: - # Gets a list of entitlements. - - results = EntitlementsApi(api_client).list_entitlements() - # Below is a request that includes all optional parameters - # results = EntitlementsApi(api_client).list_entitlements(account_id, segmented_for_identity, for_segment_ids, include_unsegmented, offset, limit, count, sorters, filters) - print("The response of EntitlementsApi->list_entitlements:\n") - pprint(results) - except Exception as e: - print("Exception when calling EntitlementsApi->list_entitlements: %s\n" % e) + from sailpoint.configuration import Configuration + configuration = Configuration() + + + with ApiClient(configuration) as api_client: + account_id = 'ef38f94347e94562b5bb8424a56397d8' # str | The account ID. If specified, returns only entitlements associated with the given Account. Cannot be specified with the **filters**, **segmented-for-identity**, **for-segment-ids**, or **include-unsegmented** param(s). This parameter is deprecated. Please use [Account Entitlements API](https://developer.sailpoint.com/apis/beta/#operation/getAccountEntitlements) to get account entitlements. (optional) # str | The account ID. If specified, returns only entitlements associated with the given Account. Cannot be specified with the **filters**, **segmented-for-identity**, **for-segment-ids**, or **include-unsegmented** param(s). This parameter is deprecated. Please use [Account Entitlements API](https://developer.sailpoint.com/apis/beta/#operation/getAccountEntitlements) to get account entitlements. (optional) + segmented_for_identity = 'me' # str | 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. By convention, the value **me** can stand in for the current user's Identity ID. Cannot be specified with the **account-id** or **for-segment-ids** param(s). It is also illegal to specify a value that refers to a different user's Identity. (optional) # str | 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. By convention, the value **me** can stand in for the current user's Identity ID. Cannot be specified with the **account-id** or **for-segment-ids** param(s). It is also illegal to specify a value that refers to a different user's Identity. (optional) + for_segment_ids = '041727d4-7d95-4779-b891-93cf41e98249,a378c9fa-bae5-494c-804e-a1e30f69f649' # str | If present and not empty, additionally filters Access Profiles to those which are assigned to the Segment(s) with the specified IDs. Cannot be specified with the **account-id** or **segmented-for-identity** param(s). (optional) # str | If present and not empty, additionally filters Access Profiles to those which are assigned to the Segment(s) with the specified IDs. Cannot be specified with the **account-id** or **segmented-for-identity** param(s). (optional) + include_unsegmented = True # bool | 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. (optional) (default to True) # bool | 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. (optional) (default to True) + 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) + 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) + 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) + sorters = 'name,-modified' # 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: **id, name, created, modified, type, attribute, value, source.id, requestable** (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: **id, name, created, modified, type, attribute, value, source.id, requestable** (optional) + filters = 'attribute eq \"memberOf\"' # 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* **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* (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* **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* (optional) + try: + # Gets a list of entitlements. + + results = EntitlementsApi(api_client).list_entitlements() + # Below is a request that includes all optional parameters + # results = EntitlementsApi(api_client).list_entitlements(account_id, segmented_for_identity, for_segment_ids, include_unsegmented, offset, limit, count, sorters, filters) + print("The response of EntitlementsApi->list_entitlements:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling EntitlementsApi->list_entitlements: %s\n" % e) - path: /entitlements/{id} method: PATCH xCodeSample: @@ -4490,24 +4356,23 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.entitlement import Entitlement from sailpoint.beta.models.json_patch_operation import JsonPatchOperation - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808a7813090a017814121e121518' # str | ID of the entitlement to patch # str | ID of the entitlement to patch - json_patch_operation = '''[{op=replace, path=/requestable, value=true}, {op=replace, path=/privileged, value=true}]''' # List[JsonPatchOperation] | (optional) - try: - # Patch an entitlement - - results = EntitlementsApi(api_client).patch_entitlement(id=id) - # Below is a request that includes all optional parameters - # results = EntitlementsApi(api_client).patch_entitlement(id, new_json_patch_operation) - print("The response of EntitlementsApi->patch_entitlement:\n") - pprint(results) - except Exception as e: - print("Exception when calling EntitlementsApi->patch_entitlement: %s\n" % e) + id = '2c91808a7813090a017814121e121518' # str | ID of the entitlement to patch # str | ID of the entitlement to patch + json_patch_operation = '''[{op=replace, path=/requestable, value=true}, {op=replace, path=/privileged, value=true}]''' # List[JsonPatchOperation] | (optional) + try: + # Patch an entitlement + + results = EntitlementsApi(api_client).patch_entitlement(id=id) + # Below is a request that includes all optional parameters + # results = EntitlementsApi(api_client).patch_entitlement(id, new_json_patch_operation) + print("The response of EntitlementsApi->patch_entitlement:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling EntitlementsApi->patch_entitlement: %s\n" % e) - path: /entitlements/{id}/entitlement-request-config method: PUT xCodeSample: @@ -4517,14 +4382,13 @@ from sailpoint.beta.api.entitlements_api import EntitlementsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.entitlement_request_config import EntitlementRequestConfig - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808a7813090a017814121e121518' # str | Entitlement ID # str | Entitlement ID - entitlement_request_config = '''{ + id = '2c91808a7813090a017814121e121518' # str | Entitlement ID # str | Entitlement ID + entitlement_request_config = '''{ "accessRequestConfig" : { "denialCommentRequired" : false, "approvalSchemes" : [ { @@ -4537,16 +4401,16 @@ "requestCommentRequired" : true } }''' # EntitlementRequestConfig | - try: - # Replace Entitlement Request Config - new_entitlement_request_config = EntitlementRequestConfig.from_json(entitlement_request_config) - results = EntitlementsApi(api_client).put_entitlement_request_config(id=id, entitlement_request_config=new_entitlement_request_config) - # Below is a request that includes all optional parameters - # results = EntitlementsApi(api_client).put_entitlement_request_config(id, new_entitlement_request_config) - print("The response of EntitlementsApi->put_entitlement_request_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling EntitlementsApi->put_entitlement_request_config: %s\n" % e) + try: + # Replace Entitlement Request Config + new_entitlement_request_config = EntitlementRequestConfig.from_json(entitlement_request_config) + results = EntitlementsApi(api_client).put_entitlement_request_config(id=id, entitlement_request_config=new_entitlement_request_config) + # Below is a request that includes all optional parameters + # results = EntitlementsApi(api_client).put_entitlement_request_config(id, new_entitlement_request_config) + print("The response of EntitlementsApi->put_entitlement_request_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling EntitlementsApi->put_entitlement_request_config: %s\n" % e) - path: /entitlements/reset/sources/{sourceId} method: POST xCodeSample: @@ -4556,23 +4420,22 @@ from sailpoint.beta.api.entitlements_api import EntitlementsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.entitlement_source_reset_base_reference_dto import EntitlementSourceResetBaseReferenceDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '2c91808a7813090a017814121919ecca' # str | ID of source for the entitlement reset # str | ID of source for the entitlement reset - try: - # Reset Source Entitlements - - results = EntitlementsApi(api_client).reset_source_entitlements(source_id=source_id) - # Below is a request that includes all optional parameters - # results = EntitlementsApi(api_client).reset_source_entitlements(source_id) - print("The response of EntitlementsApi->reset_source_entitlements:\n") - pprint(results) - except Exception as e: - print("Exception when calling EntitlementsApi->reset_source_entitlements: %s\n" % e) + source_id = '2c91808a7813090a017814121919ecca' # str | ID of source for the entitlement reset # str | ID of source for the entitlement reset + try: + # Reset Source Entitlements + + results = EntitlementsApi(api_client).reset_source_entitlements(source_id=source_id) + # Below is a request that includes all optional parameters + # results = EntitlementsApi(api_client).reset_source_entitlements(source_id) + print("The response of EntitlementsApi->reset_source_entitlements:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling EntitlementsApi->reset_source_entitlements: %s\n" % e) - path: /entitlements/bulk-update method: POST xCodeSample: @@ -4582,13 +4445,12 @@ from sailpoint.beta.api.entitlements_api import EntitlementsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.entitlement_bulk_update_request import EntitlementBulkUpdateRequest - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - entitlement_bulk_update_request = '''{ + entitlement_bulk_update_request = '''{ "entitlementIds" : [ "2c91808a7624751a01762f19d665220d", "2c91808a7624751a01762f19d67c220e", "2c91808a7624751a01762f19d692220f" ], "jsonPatch" : [ { "op" : "replace", @@ -4600,14 +4462,14 @@ "value" : false } ] }''' # EntitlementBulkUpdateRequest | - try: - # Bulk update an entitlement list - new_entitlement_bulk_update_request = EntitlementBulkUpdateRequest.from_json(entitlement_bulk_update_request) - EntitlementsApi(api_client).update_entitlements_in_bulk(entitlement_bulk_update_request=new_entitlement_bulk_update_request) - # Below is a request that includes all optional parameters - # EntitlementsApi(api_client).update_entitlements_in_bulk(new_entitlement_bulk_update_request) - except Exception as e: - print("Exception when calling EntitlementsApi->update_entitlements_in_bulk: %s\n" % e) + try: + # Bulk update an entitlement list + new_entitlement_bulk_update_request = EntitlementBulkUpdateRequest.from_json(entitlement_bulk_update_request) + EntitlementsApi(api_client).update_entitlements_in_bulk(entitlement_bulk_update_request=new_entitlement_bulk_update_request) + # Below is a request that includes all optional parameters + # EntitlementsApi(api_client).update_entitlements_in_bulk(new_entitlement_bulk_update_request) + except Exception as e: + print("Exception when calling EntitlementsApi->update_entitlements_in_bulk: %s\n" % e) - path: /workgroups method: POST xCodeSample: @@ -4617,13 +4479,12 @@ from sailpoint.beta.api.governance_groups_api import GovernanceGroupsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.workgroup_dto import WorkgroupDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - workgroup_dto = '''{ + workgroup_dto = '''{ "owner" : { "emailAddress" : "support@sailpoint.com", "displayName" : "Support", @@ -4639,16 +4500,16 @@ "modified" : "2022-01-06T19:51:13Z", "id" : "2c91808568c529c60168cca6f90c1313" }''' # WorkgroupDto | - try: - # Create a new Governance Group. - new_workgroup_dto = WorkgroupDto.from_json(workgroup_dto) - results = GovernanceGroupsApi(api_client).create_workgroup(workgroup_dto=new_workgroup_dto) - # Below is a request that includes all optional parameters - # results = GovernanceGroupsApi(api_client).create_workgroup(new_workgroup_dto) - print("The response of GovernanceGroupsApi->create_workgroup:\n") - pprint(results) - except Exception as e: - print("Exception when calling GovernanceGroupsApi->create_workgroup: %s\n" % e) + try: + # Create a new Governance Group. + new_workgroup_dto = WorkgroupDto.from_json(workgroup_dto) + results = GovernanceGroupsApi(api_client).create_workgroup(workgroup_dto=new_workgroup_dto) + # Below is a request that includes all optional parameters + # results = GovernanceGroupsApi(api_client).create_workgroup(new_workgroup_dto) + print("The response of GovernanceGroupsApi->create_workgroup:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling GovernanceGroupsApi->create_workgroup: %s\n" % e) - path: /workgroups/{id} method: DELETE xCodeSample: @@ -4657,21 +4518,20 @@ source: | from sailpoint.beta.api.governance_groups_api import GovernanceGroupsApi from sailpoint.beta.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c9180837ca6693d017ca8d097500149' # str | ID of the Governance Group # str | ID of the Governance Group - try: - # Delete a Governance Group - - GovernanceGroupsApi(api_client).delete_workgroup(id=id) - # Below is a request that includes all optional parameters - # GovernanceGroupsApi(api_client).delete_workgroup(id) - except Exception as e: - print("Exception when calling GovernanceGroupsApi->delete_workgroup: %s\n" % e) + id = '2c9180837ca6693d017ca8d097500149' # str | ID of the Governance Group # str | ID of the Governance Group + try: + # Delete a Governance Group + + GovernanceGroupsApi(api_client).delete_workgroup(id=id) + # Below is a request that includes all optional parameters + # GovernanceGroupsApi(api_client).delete_workgroup(id) + except Exception as e: + print("Exception when calling GovernanceGroupsApi->delete_workgroup: %s\n" % e) - path: /workgroups/{workgroupId}/members/bulk-delete method: POST xCodeSample: @@ -4682,24 +4542,23 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.bulk_workgroup_members_request_inner import BulkWorkgroupMembersRequestInner from sailpoint.beta.models.workgroup_member_delete_item import WorkgroupMemberDeleteItem - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - workgroup_id = '2c91808a7813090a017814121919ecca' # str | ID of the Governance Group. # str | ID of the Governance Group. - bulk_workgroup_members_request_inner = '''[sailpoint.beta.BulkWorkgroupMembersRequestInner()]''' # List[BulkWorkgroupMembersRequestInner] | List of identities to be removed from a Governance Group members list. - try: - # Remove members from Governance Group - new_bulk_workgroup_members_request_inner = BulkWorkgroupMembersRequestInner.from_json(bulk_workgroup_members_request_inner) - results = GovernanceGroupsApi(api_client).delete_workgroup_members(workgroup_id=workgroup_id, bulk_workgroup_members_request_inner=new_bulk_workgroup_members_request_inner) - # Below is a request that includes all optional parameters - # results = GovernanceGroupsApi(api_client).delete_workgroup_members(workgroup_id, new_bulk_workgroup_members_request_inner) - print("The response of GovernanceGroupsApi->delete_workgroup_members:\n") - pprint(results) - except Exception as e: - print("Exception when calling GovernanceGroupsApi->delete_workgroup_members: %s\n" % e) + workgroup_id = '2c91808a7813090a017814121919ecca' # str | ID of the Governance Group. # str | ID of the Governance Group. + bulk_workgroup_members_request_inner = '''[sailpoint.beta.BulkWorkgroupMembersRequestInner()]''' # List[BulkWorkgroupMembersRequestInner] | List of identities to be removed from a Governance Group members list. + try: + # Remove members from Governance Group + new_bulk_workgroup_members_request_inner = BulkWorkgroupMembersRequestInner.from_json(bulk_workgroup_members_request_inner) + results = GovernanceGroupsApi(api_client).delete_workgroup_members(workgroup_id=workgroup_id, bulk_workgroup_members_request_inner=new_bulk_workgroup_members_request_inner) + # Below is a request that includes all optional parameters + # results = GovernanceGroupsApi(api_client).delete_workgroup_members(workgroup_id, new_bulk_workgroup_members_request_inner) + print("The response of GovernanceGroupsApi->delete_workgroup_members:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling GovernanceGroupsApi->delete_workgroup_members: %s\n" % e) - path: /workgroups/bulk-delete method: POST xCodeSample: @@ -4710,25 +4569,24 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.workgroup_bulk_delete_request import WorkgroupBulkDeleteRequest from sailpoint.beta.models.workgroup_delete_item import WorkgroupDeleteItem - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - workgroup_bulk_delete_request = '''{ + workgroup_bulk_delete_request = '''{ "ids" : [ "567a697e-885b-495a-afc5-d55e1c23a302", "c7b0f7b2-1e78-4063-b294-a555333dacd2" ] }''' # WorkgroupBulkDeleteRequest | - try: - # Delete Governance Group(s) - new_workgroup_bulk_delete_request = WorkgroupBulkDeleteRequest.from_json(workgroup_bulk_delete_request) - results = GovernanceGroupsApi(api_client).delete_workgroups_in_bulk(workgroup_bulk_delete_request=new_workgroup_bulk_delete_request) - # Below is a request that includes all optional parameters - # results = GovernanceGroupsApi(api_client).delete_workgroups_in_bulk(new_workgroup_bulk_delete_request) - print("The response of GovernanceGroupsApi->delete_workgroups_in_bulk:\n") - pprint(results) - except Exception as e: - print("Exception when calling GovernanceGroupsApi->delete_workgroups_in_bulk: %s\n" % e) + try: + # Delete Governance Group(s) + new_workgroup_bulk_delete_request = WorkgroupBulkDeleteRequest.from_json(workgroup_bulk_delete_request) + results = GovernanceGroupsApi(api_client).delete_workgroups_in_bulk(workgroup_bulk_delete_request=new_workgroup_bulk_delete_request) + # Below is a request that includes all optional parameters + # results = GovernanceGroupsApi(api_client).delete_workgroups_in_bulk(new_workgroup_bulk_delete_request) + print("The response of GovernanceGroupsApi->delete_workgroups_in_bulk:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling GovernanceGroupsApi->delete_workgroups_in_bulk: %s\n" % e) - path: /workgroups/{id} method: GET xCodeSample: @@ -4738,23 +4596,22 @@ from sailpoint.beta.api.governance_groups_api import GovernanceGroupsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.workgroup_dto import WorkgroupDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c9180837ca6693d017ca8d097500149' # str | ID of the Governance Group # str | ID of the Governance Group - try: - # Get Governance Group by Id - - results = GovernanceGroupsApi(api_client).get_workgroup(id=id) - # Below is a request that includes all optional parameters - # results = GovernanceGroupsApi(api_client).get_workgroup(id) - print("The response of GovernanceGroupsApi->get_workgroup:\n") - pprint(results) - except Exception as e: - print("Exception when calling GovernanceGroupsApi->get_workgroup: %s\n" % e) + id = '2c9180837ca6693d017ca8d097500149' # str | ID of the Governance Group # str | ID of the Governance Group + try: + # Get Governance Group by Id + + results = GovernanceGroupsApi(api_client).get_workgroup(id=id) + # Below is a request that includes all optional parameters + # results = GovernanceGroupsApi(api_client).get_workgroup(id) + print("The response of GovernanceGroupsApi->get_workgroup:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling GovernanceGroupsApi->get_workgroup: %s\n" % e) - path: /workgroups/{workgroupId}/connections method: GET xCodeSample: @@ -4764,27 +4621,26 @@ from sailpoint.beta.api.governance_groups_api import GovernanceGroupsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.workgroup_connection_dto import WorkgroupConnectionDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - workgroup_id = '2c91808a7813090a017814121919ecca' # str | ID of the Governance Group. # str | ID of the Governance Group. - 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) - limit = 50 # int | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) # int | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) - 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) - sorters = 'name,-modified' # 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: **name, created, modified** (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: **name, created, modified** (optional) - try: - # List connections for Governance Group - - results = GovernanceGroupsApi(api_client).list_connections(workgroup_id=workgroup_id) - # Below is a request that includes all optional parameters - # results = GovernanceGroupsApi(api_client).list_connections(workgroup_id, offset, limit, count, sorters) - print("The response of GovernanceGroupsApi->list_connections:\n") - pprint(results) - except Exception as e: - print("Exception when calling GovernanceGroupsApi->list_connections: %s\n" % e) + workgroup_id = '2c91808a7813090a017814121919ecca' # str | ID of the Governance Group. # str | ID of the Governance Group. + 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) + limit = 50 # int | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) # int | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) + 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) + sorters = 'name,-modified' # 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: **name, created, modified** (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: **name, created, modified** (optional) + try: + # List connections for Governance Group + + results = GovernanceGroupsApi(api_client).list_connections(workgroup_id=workgroup_id) + # Below is a request that includes all optional parameters + # results = GovernanceGroupsApi(api_client).list_connections(workgroup_id, offset, limit, count, sorters) + print("The response of GovernanceGroupsApi->list_connections:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling GovernanceGroupsApi->list_connections: %s\n" % e) - path: /workgroups/{workgroupId}/members method: GET xCodeSample: @@ -4794,27 +4650,26 @@ from sailpoint.beta.api.governance_groups_api import GovernanceGroupsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.list_workgroup_members200_response_inner import ListWorkgroupMembers200ResponseInner - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - workgroup_id = '2c91808a7813090a017814121919ecca' # str | ID of the Governance Group. # str | ID of the Governance Group. - 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) - limit = 50 # int | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) # int | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) - 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) - sorters = 'name,-modified' # 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: **name, created, modified** (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: **name, created, modified** (optional) - try: - # List Governance Group Members - - results = GovernanceGroupsApi(api_client).list_workgroup_members(workgroup_id=workgroup_id) - # Below is a request that includes all optional parameters - # results = GovernanceGroupsApi(api_client).list_workgroup_members(workgroup_id, offset, limit, count, sorters) - print("The response of GovernanceGroupsApi->list_workgroup_members:\n") - pprint(results) - except Exception as e: - print("Exception when calling GovernanceGroupsApi->list_workgroup_members: %s\n" % e) + workgroup_id = '2c91808a7813090a017814121919ecca' # str | ID of the Governance Group. # str | ID of the Governance Group. + 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) + limit = 50 # int | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) # int | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) + 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) + sorters = 'name,-modified' # 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: **name, created, modified** (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: **name, created, modified** (optional) + try: + # List Governance Group Members + + results = GovernanceGroupsApi(api_client).list_workgroup_members(workgroup_id=workgroup_id) + # Below is a request that includes all optional parameters + # results = GovernanceGroupsApi(api_client).list_workgroup_members(workgroup_id, offset, limit, count, sorters) + print("The response of GovernanceGroupsApi->list_workgroup_members:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling GovernanceGroupsApi->list_workgroup_members: %s\n" % e) - path: /workgroups method: GET xCodeSample: @@ -4824,27 +4679,26 @@ from sailpoint.beta.api.governance_groups_api import GovernanceGroupsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.workgroup_dto import WorkgroupDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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) - limit = 50 # int | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) # int | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) - 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 sw \"Test\"' # 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, sw, in* **memberships.identityId**: *eq, in* (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, sw, in* **memberships.identityId**: *eq, in* (optional) - sorters = 'name,-modified' # 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: **name, created, modified, id, description** (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: **name, created, modified, id, description** (optional) - try: - # List Governance Groups - - results = GovernanceGroupsApi(api_client).list_workgroups() - # Below is a request that includes all optional parameters - # results = GovernanceGroupsApi(api_client).list_workgroups(offset, limit, count, filters, sorters) - print("The response of GovernanceGroupsApi->list_workgroups:\n") - pprint(results) - except Exception as e: - print("Exception when calling GovernanceGroupsApi->list_workgroups: %s\n" % e) + 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) + limit = 50 # int | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) # int | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) + 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 sw \"Test\"' # 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, sw, in* **memberships.identityId**: *eq, in* (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, sw, in* **memberships.identityId**: *eq, in* (optional) + sorters = 'name,-modified' # 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: **name, created, modified, id, description** (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: **name, created, modified, id, description** (optional) + try: + # List Governance Groups + + results = GovernanceGroupsApi(api_client).list_workgroups() + # Below is a request that includes all optional parameters + # results = GovernanceGroupsApi(api_client).list_workgroups(offset, limit, count, filters, sorters) + print("The response of GovernanceGroupsApi->list_workgroups:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling GovernanceGroupsApi->list_workgroups: %s\n" % e) - path: /workgroups/{id} method: PATCH xCodeSample: @@ -4855,24 +4709,23 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.json_patch_operation import JsonPatchOperation from sailpoint.beta.models.workgroup_dto import WorkgroupDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c9180837ca6693d017ca8d097500149' # str | ID of the Governance Group # str | ID of the Governance Group - json_patch_operation = '''[{op=replace, path=/description, value=Governance Group new description.}]''' # List[JsonPatchOperation] | (optional) - try: - # Patch a Governance Group - - results = GovernanceGroupsApi(api_client).patch_workgroup(id=id) - # Below is a request that includes all optional parameters - # results = GovernanceGroupsApi(api_client).patch_workgroup(id, new_json_patch_operation) - print("The response of GovernanceGroupsApi->patch_workgroup:\n") - pprint(results) - except Exception as e: - print("Exception when calling GovernanceGroupsApi->patch_workgroup: %s\n" % e) + id = '2c9180837ca6693d017ca8d097500149' # str | ID of the Governance Group # str | ID of the Governance Group + json_patch_operation = '''[{op=replace, path=/description, value=Governance Group new description.}]''' # List[JsonPatchOperation] | (optional) + try: + # Patch a Governance Group + + results = GovernanceGroupsApi(api_client).patch_workgroup(id=id) + # Below is a request that includes all optional parameters + # results = GovernanceGroupsApi(api_client).patch_workgroup(id, new_json_patch_operation) + print("The response of GovernanceGroupsApi->patch_workgroup:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling GovernanceGroupsApi->patch_workgroup: %s\n" % e) - path: /workgroups/{workgroupId}/members/bulk-add method: POST xCodeSample: @@ -4883,24 +4736,23 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.bulk_workgroup_members_request_inner import BulkWorkgroupMembersRequestInner from sailpoint.beta.models.workgroup_member_add_item import WorkgroupMemberAddItem - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - workgroup_id = '2c91808a7813090a017814121919ecca' # str | ID of the Governance Group. # str | ID of the Governance Group. - bulk_workgroup_members_request_inner = '''[sailpoint.beta.BulkWorkgroupMembersRequestInner()]''' # List[BulkWorkgroupMembersRequestInner] | List of identities to be added to a Governance Group members list. - try: - # Add members to Governance Group - new_bulk_workgroup_members_request_inner = BulkWorkgroupMembersRequestInner.from_json(bulk_workgroup_members_request_inner) - results = GovernanceGroupsApi(api_client).update_workgroup_members(workgroup_id=workgroup_id, bulk_workgroup_members_request_inner=new_bulk_workgroup_members_request_inner) - # Below is a request that includes all optional parameters - # results = GovernanceGroupsApi(api_client).update_workgroup_members(workgroup_id, new_bulk_workgroup_members_request_inner) - print("The response of GovernanceGroupsApi->update_workgroup_members:\n") - pprint(results) - except Exception as e: - print("Exception when calling GovernanceGroupsApi->update_workgroup_members: %s\n" % e) + workgroup_id = '2c91808a7813090a017814121919ecca' # str | ID of the Governance Group. # str | ID of the Governance Group. + bulk_workgroup_members_request_inner = '''[sailpoint.beta.BulkWorkgroupMembersRequestInner()]''' # List[BulkWorkgroupMembersRequestInner] | List of identities to be added to a Governance Group members list. + try: + # Add members to Governance Group + new_bulk_workgroup_members_request_inner = BulkWorkgroupMembersRequestInner.from_json(bulk_workgroup_members_request_inner) + results = GovernanceGroupsApi(api_client).update_workgroup_members(workgroup_id=workgroup_id, bulk_workgroup_members_request_inner=new_bulk_workgroup_members_request_inner) + # Below is a request that includes all optional parameters + # results = GovernanceGroupsApi(api_client).update_workgroup_members(workgroup_id, new_bulk_workgroup_members_request_inner) + print("The response of GovernanceGroupsApi->update_workgroup_members:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling GovernanceGroupsApi->update_workgroup_members: %s\n" % e) - path: /ai-access-request-recommendations/ignored-items method: POST xCodeSample: @@ -4911,29 +4763,28 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.access_request_recommendation_action_item_dto import AccessRequestRecommendationActionItemDto from sailpoint.beta.models.access_request_recommendation_action_item_response_dto import AccessRequestRecommendationActionItemResponseDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - access_request_recommendation_action_item_dto = '''{ + access_request_recommendation_action_item_dto = '''{ "access" : { "id" : "2c9180835d2e5168015d32f890ca1581", "type" : "ACCESS_PROFILE" }, "identityId" : "2c91808570313110017040b06f344ec9" }''' # AccessRequestRecommendationActionItemDto | The recommended access item to ignore for an identity. - try: - # Ignore Access Request Recommendation - new_access_request_recommendation_action_item_dto = AccessRequestRecommendationActionItemDto.from_json(access_request_recommendation_action_item_dto) - results = IAIAccessRequestRecommendationsApi(api_client).add_access_request_recommendations_ignored_item(access_request_recommendation_action_item_dto=new_access_request_recommendation_action_item_dto) - # Below is a request that includes all optional parameters - # results = IAIAccessRequestRecommendationsApi(api_client).add_access_request_recommendations_ignored_item(new_access_request_recommendation_action_item_dto) - print("The response of IAIAccessRequestRecommendationsApi->add_access_request_recommendations_ignored_item:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIAccessRequestRecommendationsApi->add_access_request_recommendations_ignored_item: %s\n" % e) + try: + # Ignore Access Request Recommendation + new_access_request_recommendation_action_item_dto = AccessRequestRecommendationActionItemDto.from_json(access_request_recommendation_action_item_dto) + results = IAIAccessRequestRecommendationsApi(api_client).add_access_request_recommendations_ignored_item(access_request_recommendation_action_item_dto=new_access_request_recommendation_action_item_dto) + # Below is a request that includes all optional parameters + # results = IAIAccessRequestRecommendationsApi(api_client).add_access_request_recommendations_ignored_item(new_access_request_recommendation_action_item_dto) + print("The response of IAIAccessRequestRecommendationsApi->add_access_request_recommendations_ignored_item:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIAccessRequestRecommendationsApi->add_access_request_recommendations_ignored_item: %s\n" % e) - path: /ai-access-request-recommendations/requested-items method: POST xCodeSample: @@ -4944,29 +4795,28 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.access_request_recommendation_action_item_dto import AccessRequestRecommendationActionItemDto from sailpoint.beta.models.access_request_recommendation_action_item_response_dto import AccessRequestRecommendationActionItemResponseDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - access_request_recommendation_action_item_dto = '''{ + access_request_recommendation_action_item_dto = '''{ "access" : { "id" : "2c9180835d2e5168015d32f890ca1581", "type" : "ACCESS_PROFILE" }, "identityId" : "2c91808570313110017040b06f344ec9" }''' # AccessRequestRecommendationActionItemDto | The recommended access item that was requested for an identity. - try: - # Accept Access Request Recommendation - new_access_request_recommendation_action_item_dto = AccessRequestRecommendationActionItemDto.from_json(access_request_recommendation_action_item_dto) - results = IAIAccessRequestRecommendationsApi(api_client).add_access_request_recommendations_requested_item(access_request_recommendation_action_item_dto=new_access_request_recommendation_action_item_dto) - # Below is a request that includes all optional parameters - # results = IAIAccessRequestRecommendationsApi(api_client).add_access_request_recommendations_requested_item(new_access_request_recommendation_action_item_dto) - print("The response of IAIAccessRequestRecommendationsApi->add_access_request_recommendations_requested_item:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIAccessRequestRecommendationsApi->add_access_request_recommendations_requested_item: %s\n" % e) + try: + # Accept Access Request Recommendation + new_access_request_recommendation_action_item_dto = AccessRequestRecommendationActionItemDto.from_json(access_request_recommendation_action_item_dto) + results = IAIAccessRequestRecommendationsApi(api_client).add_access_request_recommendations_requested_item(access_request_recommendation_action_item_dto=new_access_request_recommendation_action_item_dto) + # Below is a request that includes all optional parameters + # results = IAIAccessRequestRecommendationsApi(api_client).add_access_request_recommendations_requested_item(new_access_request_recommendation_action_item_dto) + print("The response of IAIAccessRequestRecommendationsApi->add_access_request_recommendations_requested_item:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIAccessRequestRecommendationsApi->add_access_request_recommendations_requested_item: %s\n" % e) - path: /ai-access-request-recommendations/viewed-items method: POST xCodeSample: @@ -4977,29 +4827,28 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.access_request_recommendation_action_item_dto import AccessRequestRecommendationActionItemDto from sailpoint.beta.models.access_request_recommendation_action_item_response_dto import AccessRequestRecommendationActionItemResponseDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - access_request_recommendation_action_item_dto = '''{ + access_request_recommendation_action_item_dto = '''{ "access" : { "id" : "2c9180835d2e5168015d32f890ca1581", "type" : "ACCESS_PROFILE" }, "identityId" : "2c91808570313110017040b06f344ec9" }''' # AccessRequestRecommendationActionItemDto | The recommended access that was viewed for an identity. - try: - # Mark Viewed Access Request Recommendations - new_access_request_recommendation_action_item_dto = AccessRequestRecommendationActionItemDto.from_json(access_request_recommendation_action_item_dto) - results = IAIAccessRequestRecommendationsApi(api_client).add_access_request_recommendations_viewed_item(access_request_recommendation_action_item_dto=new_access_request_recommendation_action_item_dto) - # Below is a request that includes all optional parameters - # results = IAIAccessRequestRecommendationsApi(api_client).add_access_request_recommendations_viewed_item(new_access_request_recommendation_action_item_dto) - print("The response of IAIAccessRequestRecommendationsApi->add_access_request_recommendations_viewed_item:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIAccessRequestRecommendationsApi->add_access_request_recommendations_viewed_item: %s\n" % e) + try: + # Mark Viewed Access Request Recommendations + new_access_request_recommendation_action_item_dto = AccessRequestRecommendationActionItemDto.from_json(access_request_recommendation_action_item_dto) + results = IAIAccessRequestRecommendationsApi(api_client).add_access_request_recommendations_viewed_item(access_request_recommendation_action_item_dto=new_access_request_recommendation_action_item_dto) + # Below is a request that includes all optional parameters + # results = IAIAccessRequestRecommendationsApi(api_client).add_access_request_recommendations_viewed_item(new_access_request_recommendation_action_item_dto) + print("The response of IAIAccessRequestRecommendationsApi->add_access_request_recommendations_viewed_item:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIAccessRequestRecommendationsApi->add_access_request_recommendations_viewed_item: %s\n" % e) - path: /ai-access-request-recommendations/viewed-items/bulk-create method: POST xCodeSample: @@ -5010,23 +4859,22 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.access_request_recommendation_action_item_dto import AccessRequestRecommendationActionItemDto from sailpoint.beta.models.access_request_recommendation_action_item_response_dto import AccessRequestRecommendationActionItemResponseDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - access_request_recommendation_action_item_dto = '''[sailpoint.beta.AccessRequestRecommendationActionItemDto()]''' # List[AccessRequestRecommendationActionItemDto] | The recommended access items that were viewed for an identity. - try: - # Bulk Mark Viewed Access Request Recommendations - new_access_request_recommendation_action_item_dto = AccessRequestRecommendationActionItemDto.from_json(access_request_recommendation_action_item_dto) - results = IAIAccessRequestRecommendationsApi(api_client).add_access_request_recommendations_viewed_items(access_request_recommendation_action_item_dto=new_access_request_recommendation_action_item_dto) - # Below is a request that includes all optional parameters - # results = IAIAccessRequestRecommendationsApi(api_client).add_access_request_recommendations_viewed_items(new_access_request_recommendation_action_item_dto) - print("The response of IAIAccessRequestRecommendationsApi->add_access_request_recommendations_viewed_items:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIAccessRequestRecommendationsApi->add_access_request_recommendations_viewed_items: %s\n" % e) + access_request_recommendation_action_item_dto = '''[sailpoint.beta.AccessRequestRecommendationActionItemDto()]''' # List[AccessRequestRecommendationActionItemDto] | The recommended access items that were viewed for an identity. + try: + # Bulk Mark Viewed Access Request Recommendations + new_access_request_recommendation_action_item_dto = AccessRequestRecommendationActionItemDto.from_json(access_request_recommendation_action_item_dto) + results = IAIAccessRequestRecommendationsApi(api_client).add_access_request_recommendations_viewed_items(access_request_recommendation_action_item_dto=new_access_request_recommendation_action_item_dto) + # Below is a request that includes all optional parameters + # results = IAIAccessRequestRecommendationsApi(api_client).add_access_request_recommendations_viewed_items(new_access_request_recommendation_action_item_dto) + print("The response of IAIAccessRequestRecommendationsApi->add_access_request_recommendations_viewed_items:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIAccessRequestRecommendationsApi->add_access_request_recommendations_viewed_items: %s\n" % e) - path: /ai-access-request-recommendations method: GET xCodeSample: @@ -5036,29 +4884,28 @@ from sailpoint.beta.api.iai_access_request_recommendations_api import IAIAccessRequestRecommendationsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.access_request_recommendation_item_detail import AccessRequestRecommendationItemDetail - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - identity_id = 'me' # str | Get access request recommendations for an identityId. *me* indicates the current user. (optional) (default to 'me') # str | Get access request recommendations for an identityId. *me* indicates the current user. (optional) (default to 'me') - limit = 15 # int | Max number of results to return. (optional) (default to 15) # int | Max number of results to return. (optional) (default to 15) - 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) - include_translation_messages = False # bool | If *true* it will populate a list of translation messages in the response. (optional) (default to False) # bool | If *true* it will populate a list of translation messages in the response. (optional) (default to False) - filters = 'access.name co \"admin\"' # 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: **access.name**: *co* **access.type**: *eq, in* **access.description**: *co, eq, in* (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: **access.name**: *co* **access.type**: *eq, in* **access.description**: *co, eq, in* (optional) - sorters = 'access.name' # 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: **access.name, access.type** By default the recommendations are sorted by highest confidence first. (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: **access.name, access.type** By default the recommendations are sorted by highest confidence first. (optional) - try: - # Identity Access Request Recommendations - - results = IAIAccessRequestRecommendationsApi(api_client).get_access_request_recommendations() - # Below is a request that includes all optional parameters - # results = IAIAccessRequestRecommendationsApi(api_client).get_access_request_recommendations(identity_id, limit, offset, count, include_translation_messages, filters, sorters) - print("The response of IAIAccessRequestRecommendationsApi->get_access_request_recommendations:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIAccessRequestRecommendationsApi->get_access_request_recommendations: %s\n" % e) + identity_id = 'me' # str | Get access request recommendations for an identityId. *me* indicates the current user. (optional) (default to 'me') # str | Get access request recommendations for an identityId. *me* indicates the current user. (optional) (default to 'me') + limit = 15 # int | Max number of results to return. (optional) (default to 15) # int | Max number of results to return. (optional) (default to 15) + 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) + include_translation_messages = False # bool | If *true* it will populate a list of translation messages in the response. (optional) (default to False) # bool | If *true* it will populate a list of translation messages in the response. (optional) (default to False) + filters = 'access.name co \"admin\"' # 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: **access.name**: *co* **access.type**: *eq, in* **access.description**: *co, eq, in* (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: **access.name**: *co* **access.type**: *eq, in* **access.description**: *co, eq, in* (optional) + sorters = 'access.name' # 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: **access.name, access.type** By default the recommendations are sorted by highest confidence first. (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: **access.name, access.type** By default the recommendations are sorted by highest confidence first. (optional) + try: + # Identity Access Request Recommendations + + results = IAIAccessRequestRecommendationsApi(api_client).get_access_request_recommendations() + # Below is a request that includes all optional parameters + # results = IAIAccessRequestRecommendationsApi(api_client).get_access_request_recommendations(identity_id, limit, offset, count, include_translation_messages, filters, sorters) + print("The response of IAIAccessRequestRecommendationsApi->get_access_request_recommendations:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIAccessRequestRecommendationsApi->get_access_request_recommendations: %s\n" % e) - path: /ai-access-request-recommendations/ignored-items method: GET xCodeSample: @@ -5068,27 +4915,26 @@ from sailpoint.beta.api.iai_access_request_recommendations_api import IAIAccessRequestRecommendationsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.access_request_recommendation_action_item_response_dto import AccessRequestRecommendationActionItemResponseDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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 = 'identityId eq \"2c9180846b0a0583016b299f210c1314\"' # 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: **access.id**: *eq, in* **access.type**: *eq, in* **identityId**: *eq, in* (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: **access.id**: *eq, in* **access.type**: *eq, in* **identityId**: *eq, in* (optional) - sorters = 'access.id' # 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: **access.id, access.type, identityId, timestamp** (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: **access.id, access.type, identityId, timestamp** (optional) - try: - # List Ignored Access Request Recommendations - - results = IAIAccessRequestRecommendationsApi(api_client).get_access_request_recommendations_ignored_items() - # Below is a request that includes all optional parameters - # results = IAIAccessRequestRecommendationsApi(api_client).get_access_request_recommendations_ignored_items(limit, offset, count, filters, sorters) - print("The response of IAIAccessRequestRecommendationsApi->get_access_request_recommendations_ignored_items:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIAccessRequestRecommendationsApi->get_access_request_recommendations_ignored_items: %s\n" % e) + 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 = 'identityId eq \"2c9180846b0a0583016b299f210c1314\"' # 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: **access.id**: *eq, in* **access.type**: *eq, in* **identityId**: *eq, in* (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: **access.id**: *eq, in* **access.type**: *eq, in* **identityId**: *eq, in* (optional) + sorters = 'access.id' # 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: **access.id, access.type, identityId, timestamp** (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: **access.id, access.type, identityId, timestamp** (optional) + try: + # List Ignored Access Request Recommendations + + results = IAIAccessRequestRecommendationsApi(api_client).get_access_request_recommendations_ignored_items() + # Below is a request that includes all optional parameters + # results = IAIAccessRequestRecommendationsApi(api_client).get_access_request_recommendations_ignored_items(limit, offset, count, filters, sorters) + print("The response of IAIAccessRequestRecommendationsApi->get_access_request_recommendations_ignored_items:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIAccessRequestRecommendationsApi->get_access_request_recommendations_ignored_items: %s\n" % e) - path: /ai-access-request-recommendations/requested-items method: GET xCodeSample: @@ -5098,27 +4944,26 @@ from sailpoint.beta.api.iai_access_request_recommendations_api import IAIAccessRequestRecommendationsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.access_request_recommendation_action_item_response_dto import AccessRequestRecommendationActionItemResponseDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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 = 'access.id eq \"2c9180846b0a0583016b299f210c1314\"' # 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: **access.id**: *eq, in* **access.type**: *eq, in* **identityId**: *eq, in* (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: **access.id**: *eq, in* **access.type**: *eq, in* **identityId**: *eq, in* (optional) - sorters = 'access.id' # 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: **access.id, access.type, identityId, timestamp** (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: **access.id, access.type, identityId, timestamp** (optional) - try: - # List Accepted Access Request Recommendations - - results = IAIAccessRequestRecommendationsApi(api_client).get_access_request_recommendations_requested_items() - # Below is a request that includes all optional parameters - # results = IAIAccessRequestRecommendationsApi(api_client).get_access_request_recommendations_requested_items(limit, offset, count, filters, sorters) - print("The response of IAIAccessRequestRecommendationsApi->get_access_request_recommendations_requested_items:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIAccessRequestRecommendationsApi->get_access_request_recommendations_requested_items: %s\n" % e) + 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 = 'access.id eq \"2c9180846b0a0583016b299f210c1314\"' # 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: **access.id**: *eq, in* **access.type**: *eq, in* **identityId**: *eq, in* (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: **access.id**: *eq, in* **access.type**: *eq, in* **identityId**: *eq, in* (optional) + sorters = 'access.id' # 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: **access.id, access.type, identityId, timestamp** (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: **access.id, access.type, identityId, timestamp** (optional) + try: + # List Accepted Access Request Recommendations + + results = IAIAccessRequestRecommendationsApi(api_client).get_access_request_recommendations_requested_items() + # Below is a request that includes all optional parameters + # results = IAIAccessRequestRecommendationsApi(api_client).get_access_request_recommendations_requested_items(limit, offset, count, filters, sorters) + print("The response of IAIAccessRequestRecommendationsApi->get_access_request_recommendations_requested_items:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIAccessRequestRecommendationsApi->get_access_request_recommendations_requested_items: %s\n" % e) - path: /ai-access-request-recommendations/viewed-items method: GET xCodeSample: @@ -5128,27 +4973,26 @@ from sailpoint.beta.api.iai_access_request_recommendations_api import IAIAccessRequestRecommendationsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.access_request_recommendation_action_item_response_dto import AccessRequestRecommendationActionItemResponseDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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 = 'access.id eq \"2c9180846b0a0583016b299f210c1314\"' # 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: **access.id**: *eq, in* **access.type**: *eq, in* **identityId**: *eq, in* (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: **access.id**: *eq, in* **access.type**: *eq, in* **identityId**: *eq, in* (optional) - sorters = 'access.id' # 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: **access.id, access.type, identityId, timestamp** (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: **access.id, access.type, identityId, timestamp** (optional) - try: - # List Viewed Access Request Recommendations - - results = IAIAccessRequestRecommendationsApi(api_client).get_access_request_recommendations_viewed_items() - # Below is a request that includes all optional parameters - # results = IAIAccessRequestRecommendationsApi(api_client).get_access_request_recommendations_viewed_items(limit, offset, count, filters, sorters) - print("The response of IAIAccessRequestRecommendationsApi->get_access_request_recommendations_viewed_items:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIAccessRequestRecommendationsApi->get_access_request_recommendations_viewed_items: %s\n" % e) + 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 = 'access.id eq \"2c9180846b0a0583016b299f210c1314\"' # 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: **access.id**: *eq, in* **access.type**: *eq, in* **identityId**: *eq, in* (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: **access.id**: *eq, in* **access.type**: *eq, in* **identityId**: *eq, in* (optional) + sorters = 'access.id' # 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: **access.id, access.type, identityId, timestamp** (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: **access.id, access.type, identityId, timestamp** (optional) + try: + # List Viewed Access Request Recommendations + + results = IAIAccessRequestRecommendationsApi(api_client).get_access_request_recommendations_viewed_items() + # Below is a request that includes all optional parameters + # results = IAIAccessRequestRecommendationsApi(api_client).get_access_request_recommendations_viewed_items(limit, offset, count, filters, sorters) + print("The response of IAIAccessRequestRecommendationsApi->get_access_request_recommendations_viewed_items:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIAccessRequestRecommendationsApi->get_access_request_recommendations_viewed_items: %s\n" % e) - path: /common-access method: POST xCodeSample: @@ -5159,13 +5003,12 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.common_access_item_request import CommonAccessItemRequest from sailpoint.beta.models.common_access_item_response import CommonAccessItemResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - common_access_item_request = '''{ + common_access_item_request = '''{ "access" : { "ownerName" : "ownerName", "name" : "name", @@ -5176,16 +5019,16 @@ }, "status" : "CONFIRMED" }''' # CommonAccessItemRequest | - try: - # Create common access items - new_common_access_item_request = CommonAccessItemRequest.from_json(common_access_item_request) - results = IAICommonAccessApi(api_client).create_common_access(common_access_item_request=new_common_access_item_request) - # Below is a request that includes all optional parameters - # results = IAICommonAccessApi(api_client).create_common_access(new_common_access_item_request) - print("The response of IAICommonAccessApi->create_common_access:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAICommonAccessApi->create_common_access: %s\n" % e) + try: + # Create common access items + new_common_access_item_request = CommonAccessItemRequest.from_json(common_access_item_request) + results = IAICommonAccessApi(api_client).create_common_access(common_access_item_request=new_common_access_item_request) + # Below is a request that includes all optional parameters + # results = IAICommonAccessApi(api_client).create_common_access(new_common_access_item_request) + print("The response of IAICommonAccessApi->create_common_access:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAICommonAccessApi->create_common_access: %s\n" % e) - path: /common-access method: GET xCodeSample: @@ -5195,27 +5038,26 @@ from sailpoint.beta.api.iai_common_access_api import IAICommonAccessApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.common_access_response import CommonAccessResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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) - 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) - 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 = 'access.type eq \"ROLE\"' # 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: **status**: *eq, sw* **reviewedByUser** *eq* **access.id**: *eq, sw* **access.type**: *eq* **access.name**: *sw, eq* **access.description**: *sw, eq* (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: **status**: *eq, sw* **reviewedByUser** *eq* **access.id**: *eq, sw* **access.type**: *eq* **access.name**: *sw, eq* **access.description**: *sw, eq* (optional) - sorters = 'access.name' # 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: **access.name, status** By default the common access items are sorted by name, ascending. (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: **access.name, status** By default the common access items are sorted by name, ascending. (optional) - try: - # Get a paginated list of common access - - results = IAICommonAccessApi(api_client).get_common_access() - # Below is a request that includes all optional parameters - # results = IAICommonAccessApi(api_client).get_common_access(offset, limit, count, filters, sorters) - print("The response of IAICommonAccessApi->get_common_access:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAICommonAccessApi->get_common_access: %s\n" % e) + 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) + 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) + 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 = 'access.type eq \"ROLE\"' # 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: **status**: *eq, sw* **reviewedByUser** *eq* **access.id**: *eq, sw* **access.type**: *eq* **access.name**: *sw, eq* **access.description**: *sw, eq* (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: **status**: *eq, sw* **reviewedByUser** *eq* **access.id**: *eq, sw* **access.type**: *eq* **access.name**: *sw, eq* **access.description**: *sw, eq* (optional) + sorters = 'access.name' # 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: **access.name, status** By default the common access items are sorted by name, ascending. (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: **access.name, status** By default the common access items are sorted by name, ascending. (optional) + try: + # Get a paginated list of common access + + results = IAICommonAccessApi(api_client).get_common_access() + # Below is a request that includes all optional parameters + # results = IAICommonAccessApi(api_client).get_common_access(offset, limit, count, filters, sorters) + print("The response of IAICommonAccessApi->get_common_access:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAICommonAccessApi->get_common_access: %s\n" % e) - path: /common-access/update-status method: POST xCodeSample: @@ -5225,23 +5067,22 @@ from sailpoint.beta.api.iai_common_access_api import IAICommonAccessApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.common_access_id_status import CommonAccessIDStatus - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - common_access_id_status = '''[sailpoint.beta.CommonAccessIDStatus()]''' # List[CommonAccessIDStatus] | Confirm or deny in bulk the common access ids that are (or aren't) common access - try: - # Bulk update common access status - new_common_access_id_status = CommonAccessIdStatus.from_json(common_access_id_status) - results = IAICommonAccessApi(api_client).update_common_access_status_in_bulk(common_access_id_status=new_common_access_id_status) - # Below is a request that includes all optional parameters - # results = IAICommonAccessApi(api_client).update_common_access_status_in_bulk(new_common_access_id_status) - print("The response of IAICommonAccessApi->update_common_access_status_in_bulk:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAICommonAccessApi->update_common_access_status_in_bulk: %s\n" % e) + common_access_id_status = '''[sailpoint.beta.CommonAccessIDStatus()]''' # List[CommonAccessIDStatus] | Confirm or deny in bulk the common access ids that are (or aren't) common access + try: + # Bulk update common access status + new_common_access_id_status = CommonAccessIdStatus.from_json(common_access_id_status) + results = IAICommonAccessApi(api_client).update_common_access_status_in_bulk(common_access_id_status=new_common_access_id_status) + # Below is a request that includes all optional parameters + # results = IAICommonAccessApi(api_client).update_common_access_status_in_bulk(new_common_access_id_status) + print("The response of IAICommonAccessApi->update_common_access_status_in_bulk:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAICommonAccessApi->update_common_access_status_in_bulk: %s\n" % e) - path: /translation-catalogs/{catalog-id} method: GET xCodeSample: @@ -5251,23 +5092,22 @@ from sailpoint.beta.api.iai_message_catalogs_api import IAIMessageCatalogsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.message_catalog_dto import MessageCatalogDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - catalog_id = 'recommender' # str | The ID of the message catalog. # str | The ID of the message catalog. - try: - # Get Message catalogs - - results = IAIMessageCatalogsApi(api_client).get_message_catalogs(catalog_id=catalog_id) - # Below is a request that includes all optional parameters - # results = IAIMessageCatalogsApi(api_client).get_message_catalogs(catalog_id) - print("The response of IAIMessageCatalogsApi->get_message_catalogs:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIMessageCatalogsApi->get_message_catalogs: %s\n" % e) + catalog_id = 'recommender' # str | The ID of the message catalog. # str | The ID of the message catalog. + try: + # Get Message catalogs + + results = IAIMessageCatalogsApi(api_client).get_message_catalogs(catalog_id=catalog_id) + # Below is a request that includes all optional parameters + # results = IAIMessageCatalogsApi(api_client).get_message_catalogs(catalog_id) + print("The response of IAIMessageCatalogsApi->get_message_catalogs:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIMessageCatalogsApi->get_message_catalogs: %s\n" % e) - path: /outliers/export method: GET xCodeSample: @@ -5276,23 +5116,22 @@ source: | from sailpoint.beta.api.iai_outliers_api import IAIOutliersApi from sailpoint.beta.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - type = 'LOW_SIMILARITY' # str | Type of the identity outliers snapshot to filter on (optional) # str | Type of the identity outliers snapshot to filter on (optional) - try: - # IAI Identity Outliers Export - - results = IAIOutliersApi(api_client).export_outliers_zip() - # Below is a request that includes all optional parameters - # results = IAIOutliersApi(api_client).export_outliers_zip(type) - print("The response of IAIOutliersApi->export_outliers_zip:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIOutliersApi->export_outliers_zip: %s\n" % e) + type = 'LOW_SIMILARITY' # str | Type of the identity outliers snapshot to filter on (optional) # str | Type of the identity outliers snapshot to filter on (optional) + try: + # IAI Identity Outliers Export + + results = IAIOutliersApi(api_client).export_outliers_zip() + # Below is a request that includes all optional parameters + # results = IAIOutliersApi(api_client).export_outliers_zip(type) + print("The response of IAIOutliersApi->export_outliers_zip:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIOutliersApi->export_outliers_zip: %s\n" % e) - path: /outlier-summaries method: GET xCodeSample: @@ -5302,27 +5141,26 @@ from sailpoint.beta.api.iai_outliers_api import IAIOutliersApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.outlier_summary import OutlierSummary - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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) - type = 'LOW_SIMILARITY' # str | Type of the identity outliers snapshot to filter on (optional) # str | Type of the identity outliers snapshot to filter on (optional) - filters = 'snapshotDate ge \"2022-02-07T20:13:29.356648026Z\"' # 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: **snapshotDate**: *ge, 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: **snapshotDate**: *ge, le* (optional) - sorters = 'snapshotDate' # 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: **snapshotDate** (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: **snapshotDate** (optional) - try: - # IAI Identity Outliers Summary - - results = IAIOutliersApi(api_client).get_identity_outlier_snapshots() - # Below is a request that includes all optional parameters - # results = IAIOutliersApi(api_client).get_identity_outlier_snapshots(limit, offset, type, filters, sorters) - print("The response of IAIOutliersApi->get_identity_outlier_snapshots:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIOutliersApi->get_identity_outlier_snapshots: %s\n" % e) + 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) + type = 'LOW_SIMILARITY' # str | Type of the identity outliers snapshot to filter on (optional) # str | Type of the identity outliers snapshot to filter on (optional) + filters = 'snapshotDate ge \"2022-02-07T20:13:29.356648026Z\"' # 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: **snapshotDate**: *ge, 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: **snapshotDate**: *ge, le* (optional) + sorters = 'snapshotDate' # 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: **snapshotDate** (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: **snapshotDate** (optional) + try: + # IAI Identity Outliers Summary + + results = IAIOutliersApi(api_client).get_identity_outlier_snapshots() + # Below is a request that includes all optional parameters + # results = IAIOutliersApi(api_client).get_identity_outlier_snapshots(limit, offset, type, filters, sorters) + print("The response of IAIOutliersApi->get_identity_outlier_snapshots:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIOutliersApi->get_identity_outlier_snapshots: %s\n" % e) - path: /outliers method: GET xCodeSample: @@ -5332,28 +5170,27 @@ from sailpoint.beta.api.iai_outliers_api import IAIOutliersApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.outlier import Outlier - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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) - type = 'LOW_SIMILARITY' # str | Type of the identity outliers snapshot to filter on (optional) # str | Type of the identity outliers snapshot to filter on (optional) - filters = 'attributes.displayName sw \"John\" and certStatus eq \"false\"' # 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: **attributes**: *eq, sw, co, in* **firstDetectionDate**: *ge, le* **certStatus**: *eq* **ignored**: *eq* **score**: *ge, 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: **attributes**: *eq, sw, co, in* **firstDetectionDate**: *ge, le* **certStatus**: *eq* **ignored**: *eq* **score**: *ge, le* (optional) - sorters = 'attributes.displayName,firstDetectionDate,-score' # 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: **firstDetectionDate, attributes, score** (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: **firstDetectionDate, attributes, score** (optional) - try: - # IAI Get Identity Outliers - - results = IAIOutliersApi(api_client).get_identity_outliers() - # Below is a request that includes all optional parameters - # results = IAIOutliersApi(api_client).get_identity_outliers(limit, offset, count, type, filters, sorters) - print("The response of IAIOutliersApi->get_identity_outliers:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIOutliersApi->get_identity_outliers: %s\n" % e) + 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) + type = 'LOW_SIMILARITY' # str | Type of the identity outliers snapshot to filter on (optional) # str | Type of the identity outliers snapshot to filter on (optional) + filters = 'attributes.displayName sw \"John\" and certStatus eq \"false\"' # 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: **attributes**: *eq, sw, co, in* **firstDetectionDate**: *ge, le* **certStatus**: *eq* **ignored**: *eq* **score**: *ge, 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: **attributes**: *eq, sw, co, in* **firstDetectionDate**: *ge, le* **certStatus**: *eq* **ignored**: *eq* **score**: *ge, le* (optional) + sorters = 'attributes.displayName,firstDetectionDate,-score' # 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: **firstDetectionDate, attributes, score** (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: **firstDetectionDate, attributes, score** (optional) + try: + # IAI Get Identity Outliers + + results = IAIOutliersApi(api_client).get_identity_outliers() + # Below is a request that includes all optional parameters + # results = IAIOutliersApi(api_client).get_identity_outliers(limit, offset, count, type, filters, sorters) + print("The response of IAIOutliersApi->get_identity_outliers:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIOutliersApi->get_identity_outliers: %s\n" % e) - path: /outlier-summaries/latest method: GET xCodeSample: @@ -5363,23 +5200,22 @@ from sailpoint.beta.api.iai_outliers_api import IAIOutliersApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.latest_outlier_summary import LatestOutlierSummary - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - type = 'LOW_SIMILARITY' # str | Type of the identity outliers snapshot to filter on (optional) # str | Type of the identity outliers snapshot to filter on (optional) - try: - # IAI Identity Outliers Latest Summary - - results = IAIOutliersApi(api_client).get_latest_identity_outlier_snapshots() - # Below is a request that includes all optional parameters - # results = IAIOutliersApi(api_client).get_latest_identity_outlier_snapshots(type) - print("The response of IAIOutliersApi->get_latest_identity_outlier_snapshots:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIOutliersApi->get_latest_identity_outlier_snapshots: %s\n" % e) + type = 'LOW_SIMILARITY' # str | Type of the identity outliers snapshot to filter on (optional) # str | Type of the identity outliers snapshot to filter on (optional) + try: + # IAI Identity Outliers Latest Summary + + results = IAIOutliersApi(api_client).get_latest_identity_outlier_snapshots() + # Below is a request that includes all optional parameters + # results = IAIOutliersApi(api_client).get_latest_identity_outlier_snapshots(type) + print("The response of IAIOutliersApi->get_latest_identity_outlier_snapshots:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIOutliersApi->get_latest_identity_outlier_snapshots: %s\n" % e) - path: /outlier-feature-summaries/{outlierFeatureId} method: GET xCodeSample: @@ -5389,23 +5225,22 @@ from sailpoint.beta.api.iai_outliers_api import IAIOutliersApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.outlier_feature_summary import OutlierFeatureSummary - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - outlier_feature_id = '04654b66-7561-4090-94f9-abee0722a1af' # str | Contributing feature id # str | Contributing feature id - try: - # Get identity outlier contibuting feature summary - - results = IAIOutliersApi(api_client).get_outlier_contributing_feature_summary(outlier_feature_id=outlier_feature_id) - # Below is a request that includes all optional parameters - # results = IAIOutliersApi(api_client).get_outlier_contributing_feature_summary(outlier_feature_id) - print("The response of IAIOutliersApi->get_outlier_contributing_feature_summary:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIOutliersApi->get_outlier_contributing_feature_summary: %s\n" % e) + outlier_feature_id = '04654b66-7561-4090-94f9-abee0722a1af' # str | Contributing feature id # str | Contributing feature id + try: + # Get identity outlier contibuting feature summary + + results = IAIOutliersApi(api_client).get_outlier_contributing_feature_summary(outlier_feature_id=outlier_feature_id) + # Below is a request that includes all optional parameters + # results = IAIOutliersApi(api_client).get_outlier_contributing_feature_summary(outlier_feature_id) + print("The response of IAIOutliersApi->get_outlier_contributing_feature_summary:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIOutliersApi->get_outlier_contributing_feature_summary: %s\n" % e) - path: /outliers/{outlierId}/contributing-features method: GET xCodeSample: @@ -5415,28 +5250,27 @@ from sailpoint.beta.api.iai_outliers_api import IAIOutliersApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.outlier_contributing_feature import OutlierContributingFeature - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - outlier_id = '2c918085842e69ae018432d22ccb212f' # str | The outlier id # str | The outlier id - 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) - include_translation_messages = 'include-translation-messages=' # str | Whether or not to include translation messages object in returned response (optional) # str | Whether or not to include translation messages object in returned response (optional) - sorters = 'importance' # 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: **importance** (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: **importance** (optional) - try: - # Get identity outlier's contibuting features - - results = IAIOutliersApi(api_client).get_peer_group_outliers_contributing_features(outlier_id=outlier_id) - # Below is a request that includes all optional parameters - # results = IAIOutliersApi(api_client).get_peer_group_outliers_contributing_features(outlier_id, limit, offset, count, include_translation_messages, sorters) - print("The response of IAIOutliersApi->get_peer_group_outliers_contributing_features:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIOutliersApi->get_peer_group_outliers_contributing_features: %s\n" % e) + outlier_id = '2c918085842e69ae018432d22ccb212f' # str | The outlier id # str | The outlier id + 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) + include_translation_messages = 'include-translation-messages=' # str | Whether or not to include translation messages object in returned response (optional) # str | Whether or not to include translation messages object in returned response (optional) + sorters = 'importance' # 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: **importance** (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: **importance** (optional) + try: + # Get identity outlier's contibuting features + + results = IAIOutliersApi(api_client).get_peer_group_outliers_contributing_features(outlier_id=outlier_id) + # Below is a request that includes all optional parameters + # results = IAIOutliersApi(api_client).get_peer_group_outliers_contributing_features(outlier_id, limit, offset, count, include_translation_messages, sorters) + print("The response of IAIOutliersApi->get_peer_group_outliers_contributing_features:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIOutliersApi->get_peer_group_outliers_contributing_features: %s\n" % e) - path: /outliers/ignore method: POST xCodeSample: @@ -5445,21 +5279,20 @@ source: | from sailpoint.beta.api.iai_outliers_api import IAIOutliersApi from sailpoint.beta.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - request_body = '''['request_body_example']''' # List[str] | - try: - # IAI Identity Outliers Ignore - new_request_body = RequestBody.from_json(request_body) - IAIOutliersApi(api_client).ignore_identity_outliers(request_body=new_request_body) - # Below is a request that includes all optional parameters - # IAIOutliersApi(api_client).ignore_identity_outliers(new_request_body) - except Exception as e: - print("Exception when calling IAIOutliersApi->ignore_identity_outliers: %s\n" % e) + request_body = '''['request_body_example']''' # List[str] | + try: + # IAI Identity Outliers Ignore + new_request_body = RequestBody.from_json(request_body) + IAIOutliersApi(api_client).ignore_identity_outliers(request_body=new_request_body) + # Below is a request that includes all optional parameters + # IAIOutliersApi(api_client).ignore_identity_outliers(new_request_body) + except Exception as e: + print("Exception when calling IAIOutliersApi->ignore_identity_outliers: %s\n" % e) - path: /outliers/{outlierId}/feature-details/{contributingFeatureName}/access-items method: GET xCodeSample: @@ -5469,29 +5302,28 @@ from sailpoint.beta.api.iai_outliers_api import IAIOutliersApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.outliers_contributing_feature_access_items import OutliersContributingFeatureAccessItems - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - outlier_id = '2c918085842e69ae018432d22ccb212f' # str | The outlier id # str | The outlier id - contributing_feature_name = 'entitlement_count' # str | The name of contributing feature # str | The name of contributing feature - 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) - access_type = 'ENTITLEMENT' # str | The type of access item for the identity outlier contributing feature. If not provided, it returns all. (optional) # str | The type of access item for the identity outlier contributing feature. If not provided, it returns all. (optional) - sorters = 'displayName' # 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: **displayName** (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: **displayName** (optional) - try: - # Gets a list of access items associated with each identity outlier contributing feature - - results = IAIOutliersApi(api_client).list_outliers_contributing_feature_access_items(outlier_id=outlier_id, contributing_feature_name=contributing_feature_name) - # Below is a request that includes all optional parameters - # results = IAIOutliersApi(api_client).list_outliers_contributing_feature_access_items(outlier_id, contributing_feature_name, limit, offset, count, access_type, sorters) - print("The response of IAIOutliersApi->list_outliers_contributing_feature_access_items:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIOutliersApi->list_outliers_contributing_feature_access_items: %s\n" % e) + outlier_id = '2c918085842e69ae018432d22ccb212f' # str | The outlier id # str | The outlier id + contributing_feature_name = 'entitlement_count' # str | The name of contributing feature # str | The name of contributing feature + 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) + access_type = 'ENTITLEMENT' # str | The type of access item for the identity outlier contributing feature. If not provided, it returns all. (optional) # str | The type of access item for the identity outlier contributing feature. If not provided, it returns all. (optional) + sorters = 'displayName' # 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: **displayName** (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: **displayName** (optional) + try: + # Gets a list of access items associated with each identity outlier contributing feature + + results = IAIOutliersApi(api_client).list_outliers_contributing_feature_access_items(outlier_id=outlier_id, contributing_feature_name=contributing_feature_name) + # Below is a request that includes all optional parameters + # results = IAIOutliersApi(api_client).list_outliers_contributing_feature_access_items(outlier_id, contributing_feature_name, limit, offset, count, access_type, sorters) + print("The response of IAIOutliersApi->list_outliers_contributing_feature_access_items:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIOutliersApi->list_outliers_contributing_feature_access_items: %s\n" % e) - path: /outliers/unignore method: POST xCodeSample: @@ -5500,21 +5332,20 @@ source: | from sailpoint.beta.api.iai_outliers_api import IAIOutliersApi from sailpoint.beta.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - request_body = '''['request_body_example']''' # List[str] | - try: - # IAI Identity Outliers Unignore - new_request_body = RequestBody.from_json(request_body) - IAIOutliersApi(api_client).un_ignore_identity_outliers(request_body=new_request_body) - # Below is a request that includes all optional parameters - # IAIOutliersApi(api_client).un_ignore_identity_outliers(new_request_body) - except Exception as e: - print("Exception when calling IAIOutliersApi->un_ignore_identity_outliers: %s\n" % e) + request_body = '''['request_body_example']''' # List[str] | + try: + # IAI Identity Outliers Unignore + new_request_body = RequestBody.from_json(request_body) + IAIOutliersApi(api_client).un_ignore_identity_outliers(request_body=new_request_body) + # Below is a request that includes all optional parameters + # IAIOutliersApi(api_client).un_ignore_identity_outliers(new_request_body) + except Exception as e: + print("Exception when calling IAIOutliersApi->un_ignore_identity_outliers: %s\n" % e) - path: /peer-group-strategies/{strategy}/identity-outliers method: GET xCodeSample: @@ -5524,26 +5355,25 @@ from sailpoint.beta.api.iai_peer_group_strategies_api import IAIPeerGroupStrategiesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.peer_group_member import PeerGroupMember - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - strategy = 'entitlement' # str | The strategy used to create peer groups. Currently, 'entitlement' is supported. # str | The strategy used to create peer groups. Currently, 'entitlement' is supported. - 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) - try: - # Identity Outliers List - - results = IAIPeerGroupStrategiesApi(api_client).get_peer_group_outliers(strategy=strategy) - # Below is a request that includes all optional parameters - # results = IAIPeerGroupStrategiesApi(api_client).get_peer_group_outliers(strategy, limit, offset, count) - print("The response of IAIPeerGroupStrategiesApi->get_peer_group_outliers:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIPeerGroupStrategiesApi->get_peer_group_outliers: %s\n" % e) + strategy = 'entitlement' # str | The strategy used to create peer groups. Currently, 'entitlement' is supported. # str | The strategy used to create peer groups. Currently, 'entitlement' is supported. + 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) + try: + # Identity Outliers List + + results = IAIPeerGroupStrategiesApi(api_client).get_peer_group_outliers(strategy=strategy) + # Below is a request that includes all optional parameters + # results = IAIPeerGroupStrategiesApi(api_client).get_peer_group_outliers(strategy, limit, offset, count) + print("The response of IAIPeerGroupStrategiesApi->get_peer_group_outliers:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIPeerGroupStrategiesApi->get_peer_group_outliers: %s\n" % e) - path: /recommendations/request method: POST xCodeSample: @@ -5554,13 +5384,12 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.recommendation_request_dto import RecommendationRequestDto from sailpoint.beta.models.recommendation_response_dto import RecommendationResponseDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - recommendation_request_dto = '''{ + recommendation_request_dto = '''{ "prescribeMode" : false, "excludeInterpretations" : false, "requests" : [ { @@ -5579,16 +5408,16 @@ "includeTranslationMessages" : false, "includeDebugInformation" : true }''' # RecommendationRequestDto | - try: - # Returns Recommendation Based on Object - new_recommendation_request_dto = RecommendationRequestDto.from_json(recommendation_request_dto) - results = IAIRecommendationsApi(api_client).get_recommendations(recommendation_request_dto=new_recommendation_request_dto) - # Below is a request that includes all optional parameters - # results = IAIRecommendationsApi(api_client).get_recommendations(new_recommendation_request_dto) - print("The response of IAIRecommendationsApi->get_recommendations:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIRecommendationsApi->get_recommendations: %s\n" % e) + try: + # Returns Recommendation Based on Object + new_recommendation_request_dto = RecommendationRequestDto.from_json(recommendation_request_dto) + results = IAIRecommendationsApi(api_client).get_recommendations(recommendation_request_dto=new_recommendation_request_dto) + # Below is a request that includes all optional parameters + # results = IAIRecommendationsApi(api_client).get_recommendations(new_recommendation_request_dto) + print("The response of IAIRecommendationsApi->get_recommendations:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIRecommendationsApi->get_recommendations: %s\n" % e) - path: /recommendations/config method: GET xCodeSample: @@ -5598,22 +5427,21 @@ from sailpoint.beta.api.iai_recommendations_api import IAIRecommendationsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.recommendation_config_dto import RecommendationConfigDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - try: - # Get certification recommendation config values - - results = IAIRecommendationsApi(api_client).get_recommendations_config() - # Below is a request that includes all optional parameters - # results = IAIRecommendationsApi(api_client).get_recommendations_config() - print("The response of IAIRecommendationsApi->get_recommendations_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIRecommendationsApi->get_recommendations_config: %s\n" % e) + try: + # Get certification recommendation config values + + results = IAIRecommendationsApi(api_client).get_recommendations_config() + # Below is a request that includes all optional parameters + # results = IAIRecommendationsApi(api_client).get_recommendations_config() + print("The response of IAIRecommendationsApi->get_recommendations_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIRecommendationsApi->get_recommendations_config: %s\n" % e) - path: /recommendations/config method: PUT xCodeSample: @@ -5623,28 +5451,27 @@ from sailpoint.beta.api.iai_recommendations_api import IAIRecommendationsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.recommendation_config_dto import RecommendationConfigDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - recommendation_config_dto = '''{ + recommendation_config_dto = '''{ "recommenderFeatures" : [ "jobTitle", "location", "peer_group", "department", "active" ], "peerGroupPercentageThreshold" : 0.5, "runAutoSelectOnce" : false, "onlyTuneThreshold" : false }''' # RecommendationConfigDto | - try: - # Update certification recommendation config values - new_recommendation_config_dto = RecommendationConfigDto.from_json(recommendation_config_dto) - results = IAIRecommendationsApi(api_client).update_recommendations_config(recommendation_config_dto=new_recommendation_config_dto) - # Below is a request that includes all optional parameters - # results = IAIRecommendationsApi(api_client).update_recommendations_config(new_recommendation_config_dto) - print("The response of IAIRecommendationsApi->update_recommendations_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIRecommendationsApi->update_recommendations_config: %s\n" % e) + try: + # Update certification recommendation config values + new_recommendation_config_dto = RecommendationConfigDto.from_json(recommendation_config_dto) + results = IAIRecommendationsApi(api_client).update_recommendations_config(recommendation_config_dto=new_recommendation_config_dto) + # Below is a request that includes all optional parameters + # results = IAIRecommendationsApi(api_client).update_recommendations_config(new_recommendation_config_dto) + print("The response of IAIRecommendationsApi->update_recommendations_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIRecommendationsApi->update_recommendations_config: %s\n" % e) - path: /role-mining-sessions/{sessionId}/potential-roles/{potentialRoleId}/provision method: POST xCodeSample: @@ -5655,33 +5482,32 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.role_mining_potential_role_provision_request import RoleMiningPotentialRoleProvisionRequest from sailpoint.beta.models.role_mining_potential_role_summary import RoleMiningPotentialRoleSummary - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - session_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role mining session id # str | The role mining session id - potential_role_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | A potential role id in a role mining session # str | A potential role id in a role mining session - min_entitlement_popularity = 0 # int | Minimum popularity required for an entitlement to be included in the provisioned role. (optional) (default to 0) # int | Minimum popularity required for an entitlement to be included in the provisioned role. (optional) (default to 0) - include_common_access = True # bool | Boolean determining whether common access entitlements will be included in the provisioned role. (optional) (default to True) # bool | Boolean determining whether common access entitlements will be included in the provisioned role. (optional) (default to True) - role_mining_potential_role_provision_request = '''{ + session_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role mining session id # str | The role mining session id + potential_role_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | A potential role id in a role mining session # str | A potential role id in a role mining session + min_entitlement_popularity = 0 # int | Minimum popularity required for an entitlement to be included in the provisioned role. (optional) (default to 0) # int | Minimum popularity required for an entitlement to be included in the provisioned role. (optional) (default to 0) + include_common_access = True # bool | Boolean determining whether common access entitlements will be included in the provisioned role. (optional) (default to True) # bool | Boolean determining whether common access entitlements will be included in the provisioned role. (optional) (default to True) + role_mining_potential_role_provision_request = '''{ "includeIdentities" : true, "roleName" : "Finance - Accounting", "ownerId" : "2b568c65bc3c4c57a43bd97e3a8e41", "roleDescription" : "General access for accounting department", "directlyAssignedEntitlements" : false }''' # RoleMiningPotentialRoleProvisionRequest | Required information to create a new role (optional) - try: - # Create request to provision a potential role into an actual role. - - results = IAIRoleMiningApi(api_client).create_potential_role_provision_request(session_id=session_id, potential_role_id=potential_role_id) - # Below is a request that includes all optional parameters - # results = IAIRoleMiningApi(api_client).create_potential_role_provision_request(session_id, potential_role_id, min_entitlement_popularity, include_common_access, new_role_mining_potential_role_provision_request) - print("The response of IAIRoleMiningApi->create_potential_role_provision_request:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIRoleMiningApi->create_potential_role_provision_request: %s\n" % e) + try: + # Create request to provision a potential role into an actual role. + + results = IAIRoleMiningApi(api_client).create_potential_role_provision_request(session_id=session_id, potential_role_id=potential_role_id) + # Below is a request that includes all optional parameters + # results = IAIRoleMiningApi(api_client).create_potential_role_provision_request(session_id, potential_role_id, min_entitlement_popularity, include_common_access, new_role_mining_potential_role_provision_request) + print("The response of IAIRoleMiningApi->create_potential_role_provision_request:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIRoleMiningApi->create_potential_role_provision_request: %s\n" % e) - path: /role-mining-sessions method: POST xCodeSample: @@ -5692,13 +5518,12 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.role_mining_session_dto import RoleMiningSessionDto from sailpoint.beta.models.role_mining_session_response import RoleMiningSessionResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - role_mining_session_dto = '''{ + role_mining_session_dto = '''{ "emailRecipientId" : "2c918090761a5aac0176215c46a62d58", "prescribedPruneThreshold" : 10, "pruneThreshold" : 50, @@ -5730,16 +5555,16 @@ "identityCount" : 0, "type" : "SPECIALIZED" }''' # RoleMiningSessionDto | Role mining session parameters - try: - # Create a role mining session - new_role_mining_session_dto = RoleMiningSessionDto.from_json(role_mining_session_dto) - results = IAIRoleMiningApi(api_client).create_role_mining_sessions(role_mining_session_dto=new_role_mining_session_dto) - # Below is a request that includes all optional parameters - # results = IAIRoleMiningApi(api_client).create_role_mining_sessions(new_role_mining_session_dto) - print("The response of IAIRoleMiningApi->create_role_mining_sessions:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIRoleMiningApi->create_role_mining_sessions: %s\n" % e) + try: + # Create a role mining session + new_role_mining_session_dto = RoleMiningSessionDto.from_json(role_mining_session_dto) + results = IAIRoleMiningApi(api_client).create_role_mining_sessions(role_mining_session_dto=new_role_mining_session_dto) + # Below is a request that includes all optional parameters + # results = IAIRoleMiningApi(api_client).create_role_mining_sessions(new_role_mining_session_dto) + print("The response of IAIRoleMiningApi->create_role_mining_sessions:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIRoleMiningApi->create_role_mining_sessions: %s\n" % e) - path: /role-mining-sessions/{sessionId}/potential-roles/{potentialRoleId}/export-async/{exportId}/download method: GET xCodeSample: @@ -5748,25 +5573,24 @@ source: | from sailpoint.beta.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.beta.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - session_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role mining session id # str | The role mining session id - potential_role_id = '278359a6-04b7-4669-9468-924cf580964a' # str | A potential role id in a role mining session # str | A potential role id in a role mining session - export_id = '4940ffd4-836f-48a3-b2b0-6d498c3fdf40' # str | The id of a previously run export job for this potential role # str | The id of a previously run export job for this potential role - try: - # Export (download) details for a potential role in a role mining session - - results = IAIRoleMiningApi(api_client).download_role_mining_potential_role_zip(session_id=session_id, potential_role_id=potential_role_id, export_id=export_id) - # Below is a request that includes all optional parameters - # results = IAIRoleMiningApi(api_client).download_role_mining_potential_role_zip(session_id, potential_role_id, export_id) - print("The response of IAIRoleMiningApi->download_role_mining_potential_role_zip:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIRoleMiningApi->download_role_mining_potential_role_zip: %s\n" % e) + session_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role mining session id # str | The role mining session id + potential_role_id = '278359a6-04b7-4669-9468-924cf580964a' # str | A potential role id in a role mining session # str | A potential role id in a role mining session + export_id = '4940ffd4-836f-48a3-b2b0-6d498c3fdf40' # str | The id of a previously run export job for this potential role # str | The id of a previously run export job for this potential role + try: + # Export (download) details for a potential role in a role mining session + + results = IAIRoleMiningApi(api_client).download_role_mining_potential_role_zip(session_id=session_id, potential_role_id=potential_role_id, export_id=export_id) + # Below is a request that includes all optional parameters + # results = IAIRoleMiningApi(api_client).download_role_mining_potential_role_zip(session_id, potential_role_id, export_id) + print("The response of IAIRoleMiningApi->download_role_mining_potential_role_zip:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIRoleMiningApi->download_role_mining_potential_role_zip: %s\n" % e) - path: /role-mining-sessions/{sessionId}/potential-roles/{potentialRoleId}/export method: GET xCodeSample: @@ -5775,24 +5599,23 @@ source: | from sailpoint.beta.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.beta.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - session_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role mining session id # str | The role mining session id - potential_role_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | A potential role id in a role mining session # str | A potential role id in a role mining session - try: - # Export (download) details for a potential role in a role mining session - - results = IAIRoleMiningApi(api_client).export_role_mining_potential_role(session_id=session_id, potential_role_id=potential_role_id) - # Below is a request that includes all optional parameters - # results = IAIRoleMiningApi(api_client).export_role_mining_potential_role(session_id, potential_role_id) - print("The response of IAIRoleMiningApi->export_role_mining_potential_role:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIRoleMiningApi->export_role_mining_potential_role: %s\n" % e) + session_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role mining session id # str | The role mining session id + potential_role_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | A potential role id in a role mining session # str | A potential role id in a role mining session + try: + # Export (download) details for a potential role in a role mining session + + results = IAIRoleMiningApi(api_client).export_role_mining_potential_role(session_id=session_id, potential_role_id=potential_role_id) + # Below is a request that includes all optional parameters + # results = IAIRoleMiningApi(api_client).export_role_mining_potential_role(session_id, potential_role_id) + print("The response of IAIRoleMiningApi->export_role_mining_potential_role:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIRoleMiningApi->export_role_mining_potential_role: %s\n" % e) - path: /role-mining-sessions/{sessionId}/potential-roles/{potentialRoleId}/export-async method: POST xCodeSample: @@ -5803,28 +5626,27 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.role_mining_potential_role_export_request import RoleMiningPotentialRoleExportRequest from sailpoint.beta.models.role_mining_potential_role_export_response import RoleMiningPotentialRoleExportResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - session_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role mining session id # str | The role mining session id - potential_role_id = '278359a6-04b7-4669-9468-924cf580964a' # str | A potential role id in a role mining session # str | A potential role id in a role mining session - role_mining_potential_role_export_request = '''{ + session_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role mining session id # str | The role mining session id + potential_role_id = '278359a6-04b7-4669-9468-924cf580964a' # str | A potential role id in a role mining session # str | A potential role id in a role mining session + role_mining_potential_role_export_request = '''{ "minEntitlementPopularity" : 0, "includeCommonAccess" : true }''' # RoleMiningPotentialRoleExportRequest | (optional) - try: - # Asynchronously export details for a potential role in a role mining session and upload to S3 - - results = IAIRoleMiningApi(api_client).export_role_mining_potential_role_async(session_id=session_id, potential_role_id=potential_role_id) - # Below is a request that includes all optional parameters - # results = IAIRoleMiningApi(api_client).export_role_mining_potential_role_async(session_id, potential_role_id, new_role_mining_potential_role_export_request) - print("The response of IAIRoleMiningApi->export_role_mining_potential_role_async:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIRoleMiningApi->export_role_mining_potential_role_async: %s\n" % e) + try: + # Asynchronously export details for a potential role in a role mining session and upload to S3 + + results = IAIRoleMiningApi(api_client).export_role_mining_potential_role_async(session_id=session_id, potential_role_id=potential_role_id) + # Below is a request that includes all optional parameters + # results = IAIRoleMiningApi(api_client).export_role_mining_potential_role_async(session_id, potential_role_id, new_role_mining_potential_role_export_request) + print("The response of IAIRoleMiningApi->export_role_mining_potential_role_async:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIRoleMiningApi->export_role_mining_potential_role_async: %s\n" % e) - path: /role-mining-sessions/{sessionId}/potential-roles/{potentialRoleId}/export-async/{exportId} method: GET xCodeSample: @@ -5834,25 +5656,24 @@ from sailpoint.beta.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.role_mining_potential_role_export_response import RoleMiningPotentialRoleExportResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - session_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role mining session id # str | The role mining session id - potential_role_id = '278359a6-04b7-4669-9468-924cf580964a' # str | A potential role id in a role mining session # str | A potential role id in a role mining session - export_id = '4940ffd4-836f-48a3-b2b0-6d498c3fdf40' # str | The id of a previously run export job for this potential role # str | The id of a previously run export job for this potential role - try: - # Retrieve status of a potential role export job - - results = IAIRoleMiningApi(api_client).export_role_mining_potential_role_status(session_id=session_id, potential_role_id=potential_role_id, export_id=export_id) - # Below is a request that includes all optional parameters - # results = IAIRoleMiningApi(api_client).export_role_mining_potential_role_status(session_id, potential_role_id, export_id) - print("The response of IAIRoleMiningApi->export_role_mining_potential_role_status:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIRoleMiningApi->export_role_mining_potential_role_status: %s\n" % e) + session_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role mining session id # str | The role mining session id + potential_role_id = '278359a6-04b7-4669-9468-924cf580964a' # str | A potential role id in a role mining session # str | A potential role id in a role mining session + export_id = '4940ffd4-836f-48a3-b2b0-6d498c3fdf40' # str | The id of a previously run export job for this potential role # str | The id of a previously run export job for this potential role + try: + # Retrieve status of a potential role export job + + results = IAIRoleMiningApi(api_client).export_role_mining_potential_role_status(session_id=session_id, potential_role_id=potential_role_id, export_id=export_id) + # Below is a request that includes all optional parameters + # results = IAIRoleMiningApi(api_client).export_role_mining_potential_role_status(session_id, potential_role_id, export_id) + print("The response of IAIRoleMiningApi->export_role_mining_potential_role_status:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIRoleMiningApi->export_role_mining_potential_role_status: %s\n" % e) - path: /role-mining-potential-roles method: GET xCodeSample: @@ -5862,27 +5683,26 @@ from sailpoint.beta.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.role_mining_potential_role_summary import RoleMiningPotentialRoleSummary - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - sorters = 'createdDate' # 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: **createdDate, identityCount, entitlementCount, freshness, quality** (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: **createdDate, identityCount, entitlementCount, freshness, quality** (optional) - filters = '(createdByName co \"int\") and (createdById sw \"2c9180907\") and (type eq \"COMMON\") and ((name co \"entt\") or (saved eq true))' # 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: **createdById**: *eq, sw, co* **createdByName**: *eq, sw, co* **description**: *sw, co* **endDate**: *le, lt* **freshness**: *eq, ge, gt, le, lt* **name**: *eq, sw, co, ge, gt, le, lt* **quality**: *eq, ge, gt, le, lt* **startDate**: *ge, gt* **saved**: *eq* **type**: *eq, ge, gt, le, lt* **scopingMethod**: *eq* **sessionState**: *eq* **identityAttribute**: *co* (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: **createdById**: *eq, sw, co* **createdByName**: *eq, sw, co* **description**: *sw, co* **endDate**: *le, lt* **freshness**: *eq, ge, gt, le, lt* **name**: *eq, sw, co, ge, gt, le, lt* **quality**: *eq, ge, gt, le, lt* **startDate**: *ge, gt* **saved**: *eq* **type**: *eq, ge, gt, le, lt* **scopingMethod**: *eq* **sessionState**: *eq* **identityAttribute**: *co* (optional) - 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) - 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) - 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) - try: - # Retrieves all potential role summaries - - results = IAIRoleMiningApi(api_client).get_all_potential_role_summaries() - # Below is a request that includes all optional parameters - # results = IAIRoleMiningApi(api_client).get_all_potential_role_summaries(sorters, filters, offset, limit, count) - print("The response of IAIRoleMiningApi->get_all_potential_role_summaries:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIRoleMiningApi->get_all_potential_role_summaries: %s\n" % e) + sorters = 'createdDate' # 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: **createdDate, identityCount, entitlementCount, freshness, quality** (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: **createdDate, identityCount, entitlementCount, freshness, quality** (optional) + filters = '(createdByName co \"int\") and (createdById sw \"2c9180907\") and (type eq \"COMMON\") and ((name co \"entt\") or (saved eq true))' # 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: **createdById**: *eq, sw, co* **createdByName**: *eq, sw, co* **description**: *sw, co* **endDate**: *le, lt* **freshness**: *eq, ge, gt, le, lt* **name**: *eq, sw, co, ge, gt, le, lt* **quality**: *eq, ge, gt, le, lt* **startDate**: *ge, gt* **saved**: *eq* **type**: *eq, ge, gt, le, lt* **scopingMethod**: *eq* **sessionState**: *eq* **identityAttribute**: *co* (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: **createdById**: *eq, sw, co* **createdByName**: *eq, sw, co* **description**: *sw, co* **endDate**: *le, lt* **freshness**: *eq, ge, gt, le, lt* **name**: *eq, sw, co, ge, gt, le, lt* **quality**: *eq, ge, gt, le, lt* **startDate**: *ge, gt* **saved**: *eq* **type**: *eq, ge, gt, le, lt* **scopingMethod**: *eq* **sessionState**: *eq* **identityAttribute**: *co* (optional) + 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) + 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) + 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) + try: + # Retrieves all potential role summaries + + results = IAIRoleMiningApi(api_client).get_all_potential_role_summaries() + # Below is a request that includes all optional parameters + # results = IAIRoleMiningApi(api_client).get_all_potential_role_summaries(sorters, filters, offset, limit, count) + print("The response of IAIRoleMiningApi->get_all_potential_role_summaries:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIRoleMiningApi->get_all_potential_role_summaries: %s\n" % e) - path: /role-mining-sessions/{sessionId}/potential-roles/{potentialRoleId}/entitlement-popularity-distribution method: GET xCodeSample: @@ -5891,25 +5711,24 @@ source: | from sailpoint.beta.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.beta.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - session_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role mining session id # str | The role mining session id - potential_role_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | A potential role id in a role mining session # str | A potential role id in a role mining session - include_common_access = True # bool | Boolean determining whether common access entitlements will be included or not (optional) # bool | Boolean determining whether common access entitlements will be included or not (optional) - try: - # Retrieves entitlement popularity distribution for a potential role in a role mining session - - results = IAIRoleMiningApi(api_client).get_entitlement_distribution_potential_role(session_id=session_id, potential_role_id=potential_role_id) - # Below is a request that includes all optional parameters - # results = IAIRoleMiningApi(api_client).get_entitlement_distribution_potential_role(session_id, potential_role_id, include_common_access) - print("The response of IAIRoleMiningApi->get_entitlement_distribution_potential_role:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIRoleMiningApi->get_entitlement_distribution_potential_role: %s\n" % e) + session_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role mining session id # str | The role mining session id + potential_role_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | A potential role id in a role mining session # str | A potential role id in a role mining session + include_common_access = True # bool | Boolean determining whether common access entitlements will be included or not (optional) # bool | Boolean determining whether common access entitlements will be included or not (optional) + try: + # Retrieves entitlement popularity distribution for a potential role in a role mining session + + results = IAIRoleMiningApi(api_client).get_entitlement_distribution_potential_role(session_id=session_id, potential_role_id=potential_role_id) + # Below is a request that includes all optional parameters + # results = IAIRoleMiningApi(api_client).get_entitlement_distribution_potential_role(session_id, potential_role_id, include_common_access) + print("The response of IAIRoleMiningApi->get_entitlement_distribution_potential_role:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIRoleMiningApi->get_entitlement_distribution_potential_role: %s\n" % e) - path: /role-mining-sessions/{sessionId}/potential-roles/{potentialRoleId}/entitlement-popularities method: GET xCodeSample: @@ -5919,30 +5738,29 @@ from sailpoint.beta.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.role_mining_entitlement import RoleMiningEntitlement - from pprint import pprint - from sailpoint.configuration import Configuration - configuration = Configuration() - - - with ApiClient(configuration) as api_client: - session_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role mining session id # str | The role mining session id - potential_role_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | A potential role id in a role mining session # str | A potential role id in a role mining session - include_common_access = True # bool | Boolean determining whether common access entitlements will be included or not (optional) (default to True) # bool | Boolean determining whether common access entitlements will be included or not (optional) (default to True) - sorters = 'popularity' # 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: **popularity, entitlementName, applicationName** The default sort is **popularity** in descending order. (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: **popularity, entitlementName, applicationName** The default sort is **popularity** in descending order. (optional) - filters = 'applicationName sw \"AD\"' # 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: **applicationName**: *sw* **entitlementRef.name**: *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: **applicationName**: *sw* **entitlementRef.name**: *sw* (optional) - 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) - 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) - 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) - try: - # Retrieves entitlements for a potential role in a role mining session - - results = IAIRoleMiningApi(api_client).get_entitlements_potential_role(session_id=session_id, potential_role_id=potential_role_id) - # Below is a request that includes all optional parameters - # results = IAIRoleMiningApi(api_client).get_entitlements_potential_role(session_id, potential_role_id, include_common_access, sorters, filters, offset, limit, count) - print("The response of IAIRoleMiningApi->get_entitlements_potential_role:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIRoleMiningApi->get_entitlements_potential_role: %s\n" % e) + from sailpoint.configuration import Configuration + configuration = Configuration() + + + with ApiClient(configuration) as api_client: + session_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role mining session id # str | The role mining session id + potential_role_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | A potential role id in a role mining session # str | A potential role id in a role mining session + include_common_access = True # bool | Boolean determining whether common access entitlements will be included or not (optional) (default to True) # bool | Boolean determining whether common access entitlements will be included or not (optional) (default to True) + sorters = 'popularity' # 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: **popularity, entitlementName, applicationName** The default sort is **popularity** in descending order. (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: **popularity, entitlementName, applicationName** The default sort is **popularity** in descending order. (optional) + filters = 'applicationName sw \"AD\"' # 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: **applicationName**: *sw* **entitlementRef.name**: *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: **applicationName**: *sw* **entitlementRef.name**: *sw* (optional) + 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) + 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) + 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) + try: + # Retrieves entitlements for a potential role in a role mining session + + results = IAIRoleMiningApi(api_client).get_entitlements_potential_role(session_id=session_id, potential_role_id=potential_role_id) + # Below is a request that includes all optional parameters + # results = IAIRoleMiningApi(api_client).get_entitlements_potential_role(session_id, potential_role_id, include_common_access, sorters, filters, offset, limit, count) + print("The response of IAIRoleMiningApi->get_entitlements_potential_role:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIRoleMiningApi->get_entitlements_potential_role: %s\n" % e) - path: /role-mining-sessions/{sessionId}/potential-roles/{potentialRoleId}/excluded-entitlements method: GET xCodeSample: @@ -5952,29 +5770,28 @@ from sailpoint.beta.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.role_mining_entitlement import RoleMiningEntitlement - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - session_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role mining session id # str | The role mining session id - potential_role_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | A potential role id in a role mining session # str | A potential role id in a role mining session - sorters = 'populariity' # 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: **popularity** (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: **popularity** (optional) - filters = 'applicationName sw \"AD\"' # 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: **applicationName**: *sw* **entitlementRef.name**: *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: **applicationName**: *sw* **entitlementRef.name**: *sw* (optional) - 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) - 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) - 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) - try: - # Retrieves excluded entitlements for a potential role in a role mining session - - results = IAIRoleMiningApi(api_client).get_excluded_entitlements_potential_role(session_id=session_id, potential_role_id=potential_role_id) - # Below is a request that includes all optional parameters - # results = IAIRoleMiningApi(api_client).get_excluded_entitlements_potential_role(session_id, potential_role_id, sorters, filters, offset, limit, count) - print("The response of IAIRoleMiningApi->get_excluded_entitlements_potential_role:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIRoleMiningApi->get_excluded_entitlements_potential_role: %s\n" % e) + session_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role mining session id # str | The role mining session id + potential_role_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | A potential role id in a role mining session # str | A potential role id in a role mining session + sorters = 'populariity' # 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: **popularity** (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: **popularity** (optional) + filters = 'applicationName sw \"AD\"' # 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: **applicationName**: *sw* **entitlementRef.name**: *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: **applicationName**: *sw* **entitlementRef.name**: *sw* (optional) + 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) + 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) + 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) + try: + # Retrieves excluded entitlements for a potential role in a role mining session + + results = IAIRoleMiningApi(api_client).get_excluded_entitlements_potential_role(session_id=session_id, potential_role_id=potential_role_id) + # Below is a request that includes all optional parameters + # results = IAIRoleMiningApi(api_client).get_excluded_entitlements_potential_role(session_id, potential_role_id, sorters, filters, offset, limit, count) + print("The response of IAIRoleMiningApi->get_excluded_entitlements_potential_role:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIRoleMiningApi->get_excluded_entitlements_potential_role: %s\n" % e) - path: /role-mining-sessions/{sessionId}/potential-roles/{potentialRoleId}/identities method: GET xCodeSample: @@ -5984,29 +5801,28 @@ from sailpoint.beta.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.role_mining_identity import RoleMiningIdentity - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - session_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role mining session id # str | The role mining session id - potential_role_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | A potential role id in a role mining session # str | A potential role id in a role mining session - sorters = 'name' # 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: **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: **name** (optional) - filters = 'filters_example' # 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: **name**: *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: **name**: *sw* (optional) - 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) - 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) - 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) - try: - # Retrieves identities for a potential role in a role mining session - - results = IAIRoleMiningApi(api_client).get_identities_potential_role(session_id=session_id, potential_role_id=potential_role_id) - # Below is a request that includes all optional parameters - # results = IAIRoleMiningApi(api_client).get_identities_potential_role(session_id, potential_role_id, sorters, filters, offset, limit, count) - print("The response of IAIRoleMiningApi->get_identities_potential_role:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIRoleMiningApi->get_identities_potential_role: %s\n" % e) + session_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role mining session id # str | The role mining session id + potential_role_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | A potential role id in a role mining session # str | A potential role id in a role mining session + sorters = 'name' # 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: **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: **name** (optional) + filters = 'filters_example' # 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: **name**: *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: **name**: *sw* (optional) + 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) + 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) + 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) + try: + # Retrieves identities for a potential role in a role mining session + + results = IAIRoleMiningApi(api_client).get_identities_potential_role(session_id=session_id, potential_role_id=potential_role_id) + # Below is a request that includes all optional parameters + # results = IAIRoleMiningApi(api_client).get_identities_potential_role(session_id, potential_role_id, sorters, filters, offset, limit, count) + print("The response of IAIRoleMiningApi->get_identities_potential_role:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIRoleMiningApi->get_identities_potential_role: %s\n" % e) - path: /role-mining-sessions/{sessionId}/potential-role-summaries/{potentialRoleId} method: GET xCodeSample: @@ -6016,24 +5832,23 @@ from sailpoint.beta.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.role_mining_potential_role import RoleMiningPotentialRole - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - session_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role mining session id # str | The role mining session id - potential_role_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | A potential role id in a role mining session # str | A potential role id in a role mining session - try: - # Retrieve potential role in session - - results = IAIRoleMiningApi(api_client).get_potential_role(session_id=session_id, potential_role_id=potential_role_id) - # Below is a request that includes all optional parameters - # results = IAIRoleMiningApi(api_client).get_potential_role(session_id, potential_role_id) - print("The response of IAIRoleMiningApi->get_potential_role:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIRoleMiningApi->get_potential_role: %s\n" % e) + session_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role mining session id # str | The role mining session id + potential_role_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | A potential role id in a role mining session # str | A potential role id in a role mining session + try: + # Retrieve potential role in session + + results = IAIRoleMiningApi(api_client).get_potential_role(session_id=session_id, potential_role_id=potential_role_id) + # Below is a request that includes all optional parameters + # results = IAIRoleMiningApi(api_client).get_potential_role(session_id, potential_role_id) + print("The response of IAIRoleMiningApi->get_potential_role:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIRoleMiningApi->get_potential_role: %s\n" % e) - path: /role-mining-sessions/{sessionId}/potential-role-summaries/{potentialRoleId}/applications method: GET xCodeSample: @@ -6043,28 +5858,27 @@ from sailpoint.beta.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.role_mining_potential_role_application import RoleMiningPotentialRoleApplication - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - session_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role mining session id # str | The role mining session id - potential_role_id = '62f28d91-7d9f-4d17-be15-666d5b41d77f' # str | A potential role id in a role mining session # str | A potential role id in a role mining session - filters = 'applicationName sw \"test\"' # 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: **applicationName**: *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: **applicationName**: *sw* (optional) - 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) - 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) - 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) - try: - # Retrieves the applications of a potential role for a role mining session - - results = IAIRoleMiningApi(api_client).get_potential_role_applications(session_id=session_id, potential_role_id=potential_role_id) - # Below is a request that includes all optional parameters - # results = IAIRoleMiningApi(api_client).get_potential_role_applications(session_id, potential_role_id, filters, offset, limit, count) - print("The response of IAIRoleMiningApi->get_potential_role_applications:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIRoleMiningApi->get_potential_role_applications: %s\n" % e) + session_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role mining session id # str | The role mining session id + potential_role_id = '62f28d91-7d9f-4d17-be15-666d5b41d77f' # str | A potential role id in a role mining session # str | A potential role id in a role mining session + filters = 'applicationName sw \"test\"' # 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: **applicationName**: *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: **applicationName**: *sw* (optional) + 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) + 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) + 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) + try: + # Retrieves the applications of a potential role for a role mining session + + results = IAIRoleMiningApi(api_client).get_potential_role_applications(session_id=session_id, potential_role_id=potential_role_id) + # Below is a request that includes all optional parameters + # results = IAIRoleMiningApi(api_client).get_potential_role_applications(session_id, potential_role_id, filters, offset, limit, count) + print("The response of IAIRoleMiningApi->get_potential_role_applications:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIRoleMiningApi->get_potential_role_applications: %s\n" % e) - path: /role-mining-sessions/{sessionId}/potential-role-summaries/{potentialRoleId}/entitlements method: GET xCodeSample: @@ -6074,28 +5888,27 @@ from sailpoint.beta.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.role_mining_potential_role_entitlements import RoleMiningPotentialRoleEntitlements - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - session_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role mining session id # str | The role mining session id - potential_role_id = '62f28d91-7d9f-4d17-be15-666d5b41d77f' # str | A potential role id in a role mining session # str | A potential role id in a role mining session - filters = 'entitlementRef.name sw \"test\"' # 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: **entitlementRef.name**: *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: **entitlementRef.name**: *sw* (optional) - 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) - 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) - 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) - try: - # Retrieves the entitlements of a potential role for a role mining session - - results = IAIRoleMiningApi(api_client).get_potential_role_entitlements(session_id=session_id, potential_role_id=potential_role_id) - # Below is a request that includes all optional parameters - # results = IAIRoleMiningApi(api_client).get_potential_role_entitlements(session_id, potential_role_id, filters, offset, limit, count) - print("The response of IAIRoleMiningApi->get_potential_role_entitlements:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIRoleMiningApi->get_potential_role_entitlements: %s\n" % e) + session_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role mining session id # str | The role mining session id + potential_role_id = '62f28d91-7d9f-4d17-be15-666d5b41d77f' # str | A potential role id in a role mining session # str | A potential role id in a role mining session + filters = 'entitlementRef.name sw \"test\"' # 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: **entitlementRef.name**: *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: **entitlementRef.name**: *sw* (optional) + 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) + 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) + 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) + try: + # Retrieves the entitlements of a potential role for a role mining session + + results = IAIRoleMiningApi(api_client).get_potential_role_entitlements(session_id=session_id, potential_role_id=potential_role_id) + # Below is a request that includes all optional parameters + # results = IAIRoleMiningApi(api_client).get_potential_role_entitlements(session_id, potential_role_id, filters, offset, limit, count) + print("The response of IAIRoleMiningApi->get_potential_role_entitlements:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIRoleMiningApi->get_potential_role_entitlements: %s\n" % e) - path: /role-mining-potential-roles/{potentialRoleId}/sources/{sourceId}/identityUsage method: GET xCodeSample: @@ -6105,28 +5918,27 @@ from sailpoint.beta.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.role_mining_potential_role_source_usage import RoleMiningPotentialRoleSourceUsage - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - potential_role_id = 'e0cc5d7d-bf7f-4f81-b2af-8885b09d9923' # str | A potential role id # str | A potential role id - source_id = '2c9180877620c1460176267f336a106f' # str | A source id # str | A source id - sorters = '-usageCount' # str | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters/) Sorting is supported for the following fields: **displayName, email, usageCount** (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 is supported for the following fields: **displayName, email, usageCount** (optional) - 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) - 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) - 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) - try: - # Retrieves potential role source usage - - results = IAIRoleMiningApi(api_client).get_potential_role_source_identity_usage(potential_role_id=potential_role_id, source_id=source_id) - # Below is a request that includes all optional parameters - # results = IAIRoleMiningApi(api_client).get_potential_role_source_identity_usage(potential_role_id, source_id, sorters, offset, limit, count) - print("The response of IAIRoleMiningApi->get_potential_role_source_identity_usage:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIRoleMiningApi->get_potential_role_source_identity_usage: %s\n" % e) + potential_role_id = 'e0cc5d7d-bf7f-4f81-b2af-8885b09d9923' # str | A potential role id # str | A potential role id + source_id = '2c9180877620c1460176267f336a106f' # str | A source id # str | A source id + sorters = '-usageCount' # str | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters/) Sorting is supported for the following fields: **displayName, email, usageCount** (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 is supported for the following fields: **displayName, email, usageCount** (optional) + 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) + 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) + 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) + try: + # Retrieves potential role source usage + + results = IAIRoleMiningApi(api_client).get_potential_role_source_identity_usage(potential_role_id=potential_role_id, source_id=source_id) + # Below is a request that includes all optional parameters + # results = IAIRoleMiningApi(api_client).get_potential_role_source_identity_usage(potential_role_id, source_id, sorters, offset, limit, count) + print("The response of IAIRoleMiningApi->get_potential_role_source_identity_usage:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIRoleMiningApi->get_potential_role_source_identity_usage: %s\n" % e) - path: /role-mining-sessions/{sessionId}/potential-role-summaries method: GET xCodeSample: @@ -6136,28 +5948,27 @@ from sailpoint.beta.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.role_mining_potential_role_summary import RoleMiningPotentialRoleSummary - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - session_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role mining session id # str | The role mining session id - sorters = 'createdDate' # 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: **createdDate** (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: **createdDate** (optional) - filters = '(createdByName co \"int\")and (createdById sw \"2c9180907\")and (type eq \"COMMON\")and ((name co \"entt\")or (saved eq true))' # 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: **createdById**: *eq, sw, co* **createdByName**: *eq, sw, co* **description**: *sw, co* **endDate**: *le, lt* **freshness**: *eq, ge, gt, le, lt* **name**: *eq, sw, co* **quality**: *eq, ge, gt, le, lt* **startDate**: *ge, gt* **saved**: *eq* **type**: *eq* (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: **createdById**: *eq, sw, co* **createdByName**: *eq, sw, co* **description**: *sw, co* **endDate**: *le, lt* **freshness**: *eq, ge, gt, le, lt* **name**: *eq, sw, co* **quality**: *eq, ge, gt, le, lt* **startDate**: *ge, gt* **saved**: *eq* **type**: *eq* (optional) - 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) - 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) - 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) - try: - # Retrieve session's potential role summaries - - results = IAIRoleMiningApi(api_client).get_potential_role_summaries(session_id=session_id) - # Below is a request that includes all optional parameters - # results = IAIRoleMiningApi(api_client).get_potential_role_summaries(session_id, sorters, filters, offset, limit, count) - print("The response of IAIRoleMiningApi->get_potential_role_summaries:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIRoleMiningApi->get_potential_role_summaries: %s\n" % e) + session_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role mining session id # str | The role mining session id + sorters = 'createdDate' # 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: **createdDate** (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: **createdDate** (optional) + filters = '(createdByName co \"int\")and (createdById sw \"2c9180907\")and (type eq \"COMMON\")and ((name co \"entt\")or (saved eq true))' # 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: **createdById**: *eq, sw, co* **createdByName**: *eq, sw, co* **description**: *sw, co* **endDate**: *le, lt* **freshness**: *eq, ge, gt, le, lt* **name**: *eq, sw, co* **quality**: *eq, ge, gt, le, lt* **startDate**: *ge, gt* **saved**: *eq* **type**: *eq* (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: **createdById**: *eq, sw, co* **createdByName**: *eq, sw, co* **description**: *sw, co* **endDate**: *le, lt* **freshness**: *eq, ge, gt, le, lt* **name**: *eq, sw, co* **quality**: *eq, ge, gt, le, lt* **startDate**: *ge, gt* **saved**: *eq* **type**: *eq* (optional) + 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) + 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) + 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) + try: + # Retrieve session's potential role summaries + + results = IAIRoleMiningApi(api_client).get_potential_role_summaries(session_id=session_id) + # Below is a request that includes all optional parameters + # results = IAIRoleMiningApi(api_client).get_potential_role_summaries(session_id, sorters, filters, offset, limit, count) + print("The response of IAIRoleMiningApi->get_potential_role_summaries:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIRoleMiningApi->get_potential_role_summaries: %s\n" % e) - path: /role-mining-potential-roles/{potentialRoleId} method: GET xCodeSample: @@ -6167,23 +5978,22 @@ from sailpoint.beta.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.role_mining_potential_role import RoleMiningPotentialRole - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - potential_role_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | A potential role id # str | A potential role id - try: - # Retrieves a specific potential role - - results = IAIRoleMiningApi(api_client).get_role_mining_potential_role(potential_role_id=potential_role_id) - # Below is a request that includes all optional parameters - # results = IAIRoleMiningApi(api_client).get_role_mining_potential_role(potential_role_id) - print("The response of IAIRoleMiningApi->get_role_mining_potential_role:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIRoleMiningApi->get_role_mining_potential_role: %s\n" % e) + potential_role_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | A potential role id # str | A potential role id + try: + # Retrieves a specific potential role + + results = IAIRoleMiningApi(api_client).get_role_mining_potential_role(potential_role_id=potential_role_id) + # Below is a request that includes all optional parameters + # results = IAIRoleMiningApi(api_client).get_role_mining_potential_role(potential_role_id) + print("The response of IAIRoleMiningApi->get_role_mining_potential_role:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIRoleMiningApi->get_role_mining_potential_role: %s\n" % e) - path: /role-mining-sessions/{sessionId} method: GET xCodeSample: @@ -6193,23 +6003,22 @@ from sailpoint.beta.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.role_mining_session_response import RoleMiningSessionResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - session_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role mining session id to be retrieved. # str | The role mining session id to be retrieved. - try: - # Get a role mining session - - results = IAIRoleMiningApi(api_client).get_role_mining_session(session_id=session_id) - # Below is a request that includes all optional parameters - # results = IAIRoleMiningApi(api_client).get_role_mining_session(session_id) - print("The response of IAIRoleMiningApi->get_role_mining_session:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIRoleMiningApi->get_role_mining_session: %s\n" % e) + session_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role mining session id to be retrieved. # str | The role mining session id to be retrieved. + try: + # Get a role mining session + + results = IAIRoleMiningApi(api_client).get_role_mining_session(session_id=session_id) + # Below is a request that includes all optional parameters + # results = IAIRoleMiningApi(api_client).get_role_mining_session(session_id) + print("The response of IAIRoleMiningApi->get_role_mining_session:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIRoleMiningApi->get_role_mining_session: %s\n" % e) - path: /role-mining-sessions/{sessionId}/status method: GET xCodeSample: @@ -6219,23 +6028,22 @@ from sailpoint.beta.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.role_mining_session_status import RoleMiningSessionStatus - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - session_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role mining session id # str | The role mining session id - try: - # Get role mining session status state - - results = IAIRoleMiningApi(api_client).get_role_mining_session_status(session_id=session_id) - # Below is a request that includes all optional parameters - # results = IAIRoleMiningApi(api_client).get_role_mining_session_status(session_id) - print("The response of IAIRoleMiningApi->get_role_mining_session_status:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIRoleMiningApi->get_role_mining_session_status: %s\n" % e) + session_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role mining session id # str | The role mining session id + try: + # Get role mining session status state + + results = IAIRoleMiningApi(api_client).get_role_mining_session_status(session_id=session_id) + # Below is a request that includes all optional parameters + # results = IAIRoleMiningApi(api_client).get_role_mining_session_status(session_id) + print("The response of IAIRoleMiningApi->get_role_mining_session_status:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIRoleMiningApi->get_role_mining_session_status: %s\n" % e) - path: /role-mining-sessions method: GET xCodeSample: @@ -6245,27 +6053,26 @@ from sailpoint.beta.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.role_mining_session_response import RoleMiningSessionResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - filters = 'saved eq \"true\" and name sw \"RM Session\"' # 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: **saved**: *eq* **name**: *eq, 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: **saved**: *eq* **name**: *eq, sw* (optional) - sorters = 'createdBy,createdDate' # 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: **createdBy, createdDate** (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: **createdBy, createdDate** (optional) - 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) - 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) - 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) - try: - # Retrieves all role mining sessions - - results = IAIRoleMiningApi(api_client).get_role_mining_sessions() - # Below is a request that includes all optional parameters - # results = IAIRoleMiningApi(api_client).get_role_mining_sessions(filters, sorters, offset, limit, count) - print("The response of IAIRoleMiningApi->get_role_mining_sessions:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIRoleMiningApi->get_role_mining_sessions: %s\n" % e) + filters = 'saved eq \"true\" and name sw \"RM Session\"' # 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: **saved**: *eq* **name**: *eq, 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: **saved**: *eq* **name**: *eq, sw* (optional) + sorters = 'createdBy,createdDate' # 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: **createdBy, createdDate** (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: **createdBy, createdDate** (optional) + 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) + 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) + 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) + try: + # Retrieves all role mining sessions + + results = IAIRoleMiningApi(api_client).get_role_mining_sessions() + # Below is a request that includes all optional parameters + # results = IAIRoleMiningApi(api_client).get_role_mining_sessions(filters, sorters, offset, limit, count) + print("The response of IAIRoleMiningApi->get_role_mining_sessions:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIRoleMiningApi->get_role_mining_sessions: %s\n" % e) - path: /role-mining-potential-roles/saved method: GET xCodeSample: @@ -6275,26 +6082,25 @@ from sailpoint.beta.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.role_mining_session_draft_role_dto import RoleMiningSessionDraftRoleDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - sorters = 'modified' # str | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters/) Sorting is supported for the following fields: **modified** (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 is supported for the following fields: **modified** (optional) - 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) - 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) - 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) - try: - # Retrieves all saved potential roles - - results = IAIRoleMiningApi(api_client).get_saved_potential_roles() - # Below is a request that includes all optional parameters - # results = IAIRoleMiningApi(api_client).get_saved_potential_roles(sorters, offset, limit, count) - print("The response of IAIRoleMiningApi->get_saved_potential_roles:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIRoleMiningApi->get_saved_potential_roles: %s\n" % e) + sorters = 'modified' # str | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters/) Sorting is supported for the following fields: **modified** (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 is supported for the following fields: **modified** (optional) + 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) + 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) + 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) + try: + # Retrieves all saved potential roles + + results = IAIRoleMiningApi(api_client).get_saved_potential_roles() + # Below is a request that includes all optional parameters + # results = IAIRoleMiningApi(api_client).get_saved_potential_roles(sorters, offset, limit, count) + print("The response of IAIRoleMiningApi->get_saved_potential_roles:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIRoleMiningApi->get_saved_potential_roles: %s\n" % e) - path: /role-mining-sessions/{sessionId}/potential-role-summaries/{potentialRoleId} method: PATCH xCodeSample: @@ -6304,25 +6110,24 @@ from sailpoint.beta.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.patch_potential_role_request_inner import PatchPotentialRoleRequestInner - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - session_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role mining session id # str | The role mining session id - potential_role_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The potential role summary id # str | The potential role summary id - patch_potential_role_request_inner = '''[{op=remove, path=/description}, {op=replace, path=/description, value=Acct I - Potential Role}, {op=remove, path=/saved}, {op=replace, path=/saved, value=false}, {op=remove, path=/name}, {op=replace, path=/name, value=Potential Role Accounting}]''' # List[PatchPotentialRoleRequestInner] | - try: - # Update a potential role in session - new_patch_potential_role_request_inner = PatchPotentialRoleRequestInner.from_json(patch_potential_role_request_inner) - results = IAIRoleMiningApi(api_client).patch_potential_role(session_id=session_id, potential_role_id=potential_role_id, patch_potential_role_request_inner=new_patch_potential_role_request_inner) - # Below is a request that includes all optional parameters - # results = IAIRoleMiningApi(api_client).patch_potential_role(session_id, potential_role_id, new_patch_potential_role_request_inner) - print("The response of IAIRoleMiningApi->patch_potential_role:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIRoleMiningApi->patch_potential_role: %s\n" % e) + session_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role mining session id # str | The role mining session id + potential_role_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The potential role summary id # str | The potential role summary id + patch_potential_role_request_inner = '''[{op=remove, path=/description}, {op=replace, path=/description, value=Acct I - Potential Role}, {op=remove, path=/saved}, {op=replace, path=/saved, value=false}, {op=remove, path=/name}, {op=replace, path=/name, value=Potential Role Accounting}]''' # List[PatchPotentialRoleRequestInner] | + try: + # Update a potential role in session + new_patch_potential_role_request_inner = PatchPotentialRoleRequestInner.from_json(patch_potential_role_request_inner) + results = IAIRoleMiningApi(api_client).patch_potential_role(session_id=session_id, potential_role_id=potential_role_id, patch_potential_role_request_inner=new_patch_potential_role_request_inner) + # Below is a request that includes all optional parameters + # results = IAIRoleMiningApi(api_client).patch_potential_role(session_id, potential_role_id, new_patch_potential_role_request_inner) + print("The response of IAIRoleMiningApi->patch_potential_role:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIRoleMiningApi->patch_potential_role: %s\n" % e) - path: /role-mining-potential-roles/{potentialRoleId} method: PATCH xCodeSample: @@ -6332,24 +6137,23 @@ from sailpoint.beta.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.patch_potential_role_request_inner import PatchPotentialRoleRequestInner - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - potential_role_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The potential role summary id # str | The potential role summary id - patch_potential_role_request_inner = '''[{op=remove, path=/description}, {op=replace, path=/description, value=Acct I - Potential Role}, {op=remove, path=/saved}, {op=replace, path=/saved, value=false}, {op=remove, path=/name}, {op=replace, path=/name, value=Potential Role Accounting}]''' # List[PatchPotentialRoleRequestInner] | - try: - # Update a potential role - new_patch_potential_role_request_inner = PatchPotentialRoleRequestInner.from_json(patch_potential_role_request_inner) - results = IAIRoleMiningApi(api_client).patch_role_mining_potential_role(potential_role_id=potential_role_id, patch_potential_role_request_inner=new_patch_potential_role_request_inner) - # Below is a request that includes all optional parameters - # results = IAIRoleMiningApi(api_client).patch_role_mining_potential_role(potential_role_id, new_patch_potential_role_request_inner) - print("The response of IAIRoleMiningApi->patch_role_mining_potential_role:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIRoleMiningApi->patch_role_mining_potential_role: %s\n" % e) + potential_role_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The potential role summary id # str | The potential role summary id + patch_potential_role_request_inner = '''[{op=remove, path=/description}, {op=replace, path=/description, value=Acct I - Potential Role}, {op=remove, path=/saved}, {op=replace, path=/saved, value=false}, {op=remove, path=/name}, {op=replace, path=/name, value=Potential Role Accounting}]''' # List[PatchPotentialRoleRequestInner] | + try: + # Update a potential role + new_patch_potential_role_request_inner = PatchPotentialRoleRequestInner.from_json(patch_potential_role_request_inner) + results = IAIRoleMiningApi(api_client).patch_role_mining_potential_role(potential_role_id=potential_role_id, patch_potential_role_request_inner=new_patch_potential_role_request_inner) + # Below is a request that includes all optional parameters + # results = IAIRoleMiningApi(api_client).patch_role_mining_potential_role(potential_role_id, new_patch_potential_role_request_inner) + print("The response of IAIRoleMiningApi->patch_role_mining_potential_role:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIRoleMiningApi->patch_role_mining_potential_role: %s\n" % e) - path: /role-mining-sessions/{sessionId} method: PATCH xCodeSample: @@ -6359,24 +6163,23 @@ from sailpoint.beta.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.json_patch_operation import JsonPatchOperation - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - session_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role mining session id to be patched # str | The role mining session id to be patched - json_patch_operation = '''[{op=replace, path=/pruneThreshold, value=83}, {op=replace, path=/minNumIdentitiesInPotentialRole, value=10}, {op=replace, path=/saved, value=false}, {op=replace, path=/name, value=RM Session - 07/10/22}, {op=add, path=/name, value=RM Session - 07/10/22}]''' # List[JsonPatchOperation] | Replace pruneThreshold and/or minNumIdentitiesInPotentialRole in role mining session. Update saved status or saved name for a role mining session. - try: - # Patch a role mining session - new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) - results = IAIRoleMiningApi(api_client).patch_role_mining_session(session_id=session_id, json_patch_operation=new_json_patch_operation) - # Below is a request that includes all optional parameters - # results = IAIRoleMiningApi(api_client).patch_role_mining_session(session_id, new_json_patch_operation) - print("The response of IAIRoleMiningApi->patch_role_mining_session:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIRoleMiningApi->patch_role_mining_session: %s\n" % e) + session_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role mining session id to be patched # str | The role mining session id to be patched + json_patch_operation = '''[{op=replace, path=/pruneThreshold, value=83}, {op=replace, path=/minNumIdentitiesInPotentialRole, value=10}, {op=replace, path=/saved, value=false}, {op=replace, path=/name, value=RM Session - 07/10/22}, {op=add, path=/name, value=RM Session - 07/10/22}]''' # List[JsonPatchOperation] | Replace pruneThreshold and/or minNumIdentitiesInPotentialRole in role mining session. Update saved status or saved name for a role mining session. + try: + # Patch a role mining session + new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) + results = IAIRoleMiningApi(api_client).patch_role_mining_session(session_id=session_id, json_patch_operation=new_json_patch_operation) + # Below is a request that includes all optional parameters + # results = IAIRoleMiningApi(api_client).patch_role_mining_session(session_id, new_json_patch_operation) + print("The response of IAIRoleMiningApi->patch_role_mining_session:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIRoleMiningApi->patch_role_mining_session: %s\n" % e) - path: /role-mining-sessions/{sessionId}/potential-roles/{potentialRoleId}/edit-entitlements method: POST xCodeSample: @@ -6387,28 +6190,27 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.role_mining_potential_role import RoleMiningPotentialRole from sailpoint.beta.models.role_mining_potential_role_edit_entitlements import RoleMiningPotentialRoleEditEntitlements - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - session_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role mining session id # str | The role mining session id - potential_role_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | A potential role id in a role mining session # str | A potential role id in a role mining session - role_mining_potential_role_edit_entitlements = '''{ + session_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role mining session id # str | The role mining session id + potential_role_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | A potential role id in a role mining session # str | A potential role id in a role mining session + role_mining_potential_role_edit_entitlements = '''{ "ids" : [ "entId1", "entId2" ], "exclude" : true }''' # RoleMiningPotentialRoleEditEntitlements | Role mining session parameters - try: - # Edit entitlements for a potential role to exclude some entitlements - new_role_mining_potential_role_edit_entitlements = RoleMiningPotentialRoleEditEntitlements.from_json(role_mining_potential_role_edit_entitlements) - results = IAIRoleMiningApi(api_client).update_entitlements_potential_role(session_id=session_id, potential_role_id=potential_role_id, role_mining_potential_role_edit_entitlements=new_role_mining_potential_role_edit_entitlements) - # Below is a request that includes all optional parameters - # results = IAIRoleMiningApi(api_client).update_entitlements_potential_role(session_id, potential_role_id, new_role_mining_potential_role_edit_entitlements) - print("The response of IAIRoleMiningApi->update_entitlements_potential_role:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIRoleMiningApi->update_entitlements_potential_role: %s\n" % e) + try: + # Edit entitlements for a potential role to exclude some entitlements + new_role_mining_potential_role_edit_entitlements = RoleMiningPotentialRoleEditEntitlements.from_json(role_mining_potential_role_edit_entitlements) + results = IAIRoleMiningApi(api_client).update_entitlements_potential_role(session_id=session_id, potential_role_id=potential_role_id, role_mining_potential_role_edit_entitlements=new_role_mining_potential_role_edit_entitlements) + # Below is a request that includes all optional parameters + # results = IAIRoleMiningApi(api_client).update_entitlements_potential_role(session_id, potential_role_id, new_role_mining_potential_role_edit_entitlements) + print("The response of IAIRoleMiningApi->update_entitlements_potential_role:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIRoleMiningApi->update_entitlements_potential_role: %s\n" % e) - path: /icons/{objectType}/{objectId} method: DELETE xCodeSample: @@ -6417,22 +6219,21 @@ source: | from sailpoint.beta.api.icons_api import IconsApi from sailpoint.beta.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - object_type = 'application' # str | Object type # str | Object type - object_id = 'a291e870-48c3-4953-b656-fb5ce2a93169' # str | Object id. # str | Object id. - try: - # Delete an icon - - IconsApi(api_client).delete_icon(object_type=object_type, object_id=object_id) - # Below is a request that includes all optional parameters - # IconsApi(api_client).delete_icon(object_type, object_id) - except Exception as e: - print("Exception when calling IconsApi->delete_icon: %s\n" % e) + object_type = 'application' # str | Object type # str | Object type + object_id = 'a291e870-48c3-4953-b656-fb5ce2a93169' # str | Object id. # str | Object id. + try: + # Delete an icon + + IconsApi(api_client).delete_icon(object_type=object_type, object_id=object_id) + # Below is a request that includes all optional parameters + # IconsApi(api_client).delete_icon(object_type, object_id) + except Exception as e: + print("Exception when calling IconsApi->delete_icon: %s\n" % e) - path: /icons/{objectType}/{objectId} method: PUT xCodeSample: @@ -6442,25 +6243,24 @@ from sailpoint.beta.api.icons_api import IconsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.set_icon200_response import SetIcon200Response - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - object_type = 'application' # str | Object type # str | Object type - object_id = 'a291e870-48c3-4953-b656-fb5ce2a93169' # str | Object id. # str | Object id. - image = None # bytearray | file with icon. Allowed mime-types ['image/png', 'image/jpeg'] # bytearray | file with icon. Allowed mime-types ['image/png', 'image/jpeg'] - try: - # Update an icon - - results = IconsApi(api_client).set_icon(object_type=object_type, object_id=object_id, image=image) - # Below is a request that includes all optional parameters - # results = IconsApi(api_client).set_icon(object_type, object_id, image) - print("The response of IconsApi->set_icon:\n") - pprint(results) - except Exception as e: - print("Exception when calling IconsApi->set_icon: %s\n" % e) + object_type = 'application' # str | Object type # str | Object type + object_id = 'a291e870-48c3-4953-b656-fb5ce2a93169' # str | Object id. # str | Object id. + image = None # bytearray | file with icon. Allowed mime-types ['image/png', 'image/jpeg'] # bytearray | file with icon. Allowed mime-types ['image/png', 'image/jpeg'] + try: + # Update an icon + + results = IconsApi(api_client).set_icon(object_type=object_type, object_id=object_id, image=image) + # Below is a request that includes all optional parameters + # results = IconsApi(api_client).set_icon(object_type, object_id, image) + print("The response of IconsApi->set_icon:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IconsApi->set_icon: %s\n" % e) - path: /identities/{id} method: DELETE xCodeSample: @@ -6469,21 +6269,20 @@ source: | from sailpoint.beta.api.identities_api import IdentitiesApi from sailpoint.beta.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | Identity Id # str | Identity Id - try: - # Delete identity - - IdentitiesApi(api_client).delete_identity(id=id) - # Below is a request that includes all optional parameters - # IdentitiesApi(api_client).delete_identity(id) - except Exception as e: - print("Exception when calling IdentitiesApi->delete_identity: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | Identity Id # str | Identity Id + try: + # Delete identity + + IdentitiesApi(api_client).delete_identity(id=id) + # Below is a request that includes all optional parameters + # IdentitiesApi(api_client).delete_identity(id) + except Exception as e: + print("Exception when calling IdentitiesApi->delete_identity: %s\n" % e) - path: /identities/{id} method: GET xCodeSample: @@ -6493,23 +6292,22 @@ from sailpoint.beta.api.identities_api import IdentitiesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.identity import Identity - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | Identity Id # str | Identity Id - try: - # Identity Details - - results = IdentitiesApi(api_client).get_identity(id=id) - # Below is a request that includes all optional parameters - # results = IdentitiesApi(api_client).get_identity(id) - print("The response of IdentitiesApi->get_identity:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentitiesApi->get_identity: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | Identity Id # str | Identity Id + try: + # Identity Details + + results = IdentitiesApi(api_client).get_identity(id=id) + # Below is a request that includes all optional parameters + # results = IdentitiesApi(api_client).get_identity(id) + print("The response of IdentitiesApi->get_identity:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentitiesApi->get_identity: %s\n" % e) - path: /identities/{identityId}/ownership method: GET xCodeSample: @@ -6519,23 +6317,22 @@ from sailpoint.beta.api.identities_api import IdentitiesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.identity_ownership_association_details import IdentityOwnershipAssociationDetails - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - identity_id = 'ff8081814d2a8036014d701f3fbf53fa' # str | Identity ID. # str | Identity ID. - try: - # Get ownership details - - results = IdentitiesApi(api_client).get_identity_ownership_details(identity_id=identity_id) - # Below is a request that includes all optional parameters - # results = IdentitiesApi(api_client).get_identity_ownership_details(identity_id) - print("The response of IdentitiesApi->get_identity_ownership_details:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentitiesApi->get_identity_ownership_details: %s\n" % e) + identity_id = 'ff8081814d2a8036014d701f3fbf53fa' # str | Identity ID. # str | Identity ID. + try: + # Get ownership details + + results = IdentitiesApi(api_client).get_identity_ownership_details(identity_id=identity_id) + # Below is a request that includes all optional parameters + # results = IdentitiesApi(api_client).get_identity_ownership_details(identity_id) + print("The response of IdentitiesApi->get_identity_ownership_details:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentitiesApi->get_identity_ownership_details: %s\n" % e) - path: /identities/{identityId}/role-assignments/{assignmentId} method: GET xCodeSample: @@ -6545,24 +6342,23 @@ from sailpoint.beta.api.identities_api import IdentitiesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.role_assignment_dto import RoleAssignmentDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - identity_id = 'ef38f94347e94562b5bb8424a56397d8' # str | Identity Id # str | Identity Id - assignment_id = '1cbb0705b38c4226b1334eadd8874086' # str | Assignment Id # str | Assignment Id - try: - # Role assignment details - - results = IdentitiesApi(api_client).get_role_assignment(identity_id=identity_id, assignment_id=assignment_id) - # Below is a request that includes all optional parameters - # results = IdentitiesApi(api_client).get_role_assignment(identity_id, assignment_id) - print("The response of IdentitiesApi->get_role_assignment:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentitiesApi->get_role_assignment: %s\n" % e) + identity_id = 'ef38f94347e94562b5bb8424a56397d8' # str | Identity Id # str | Identity Id + assignment_id = '1cbb0705b38c4226b1334eadd8874086' # str | Assignment Id # str | Assignment Id + try: + # Role assignment details + + results = IdentitiesApi(api_client).get_role_assignment(identity_id=identity_id, assignment_id=assignment_id) + # Below is a request that includes all optional parameters + # results = IdentitiesApi(api_client).get_role_assignment(identity_id, assignment_id) + print("The response of IdentitiesApi->get_role_assignment:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentitiesApi->get_role_assignment: %s\n" % e) - path: /identities/{identityId}/role-assignments method: GET xCodeSample: @@ -6572,25 +6368,24 @@ from sailpoint.beta.api.identities_api import IdentitiesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.get_role_assignments200_response_inner import GetRoleAssignments200ResponseInner - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - identity_id = 'ef38f94347e94562b5bb8424a56397d8' # str | Identity Id to get the role assignments for # str | Identity Id to get the role assignments for - role_id = 'e7697a1e96d04db1ac7b0f4544915d2c' # str | Role Id to filter the role assignments with (optional) # str | Role Id to filter the role assignments with (optional) - role_name = 'Engineer' # str | Role name to filter the role assignments with (optional) # str | Role name to filter the role assignments with (optional) - try: - # List role assignments - - results = IdentitiesApi(api_client).get_role_assignments(identity_id=identity_id) - # Below is a request that includes all optional parameters - # results = IdentitiesApi(api_client).get_role_assignments(identity_id, role_id, role_name) - print("The response of IdentitiesApi->get_role_assignments:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentitiesApi->get_role_assignments: %s\n" % e) + identity_id = 'ef38f94347e94562b5bb8424a56397d8' # str | Identity Id to get the role assignments for # str | Identity Id to get the role assignments for + role_id = 'e7697a1e96d04db1ac7b0f4544915d2c' # str | Role Id to filter the role assignments with (optional) # str | Role Id to filter the role assignments with (optional) + role_name = 'Engineer' # str | Role name to filter the role assignments with (optional) # str | Role name to filter the role assignments with (optional) + try: + # List role assignments + + results = IdentitiesApi(api_client).get_role_assignments(identity_id=identity_id) + # Below is a request that includes all optional parameters + # results = IdentitiesApi(api_client).get_role_assignments(identity_id, role_id, role_name) + print("The response of IdentitiesApi->get_role_assignments:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentitiesApi->get_role_assignments: %s\n" % e) - path: /identities method: GET xCodeSample: @@ -6600,28 +6395,27 @@ from sailpoint.beta.api.identities_api import IdentitiesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.identity import Identity - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - filters = 'id eq \"6c9079b270a266a60170a2779fcb0006\" or correlated eq false' # 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, sw* **alias**: *eq, sw* **firstname**: *eq, sw* **lastname**: *eq, sw* **email**: *eq, sw* **cloudStatus**: *eq* **processingState**: *eq* **correlated**: *eq* **protected**: *eq* (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, sw* **alias**: *eq, sw* **firstname**: *eq, sw* **lastname**: *eq, sw* **email**: *eq, sw* **cloudStatus**: *eq* **processingState**: *eq* **correlated**: *eq* **protected**: *eq* (optional) - sorters = 'name,-cloudStatus' # 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: **name, alias, cloudStatus** (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: **name, alias, cloudStatus** (optional) - default_filter = CORRELATED_ONLY # str | Adds additional filter to filters query parameter. CORRELATED_ONLY adds correlated=true and returns only identities that are correlated. NONE does not add any and returns all identities that satisfy filters query parameter. (optional) (default to CORRELATED_ONLY) # str | Adds additional filter to filters query parameter. CORRELATED_ONLY adds correlated=true and returns only identities that are correlated. NONE does not add any and returns all identities that satisfy filters query parameter. (optional) (default to CORRELATED_ONLY) - 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) - 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) - try: - # List Identities - - results = IdentitiesApi(api_client).list_identities() - # Below is a request that includes all optional parameters - # results = IdentitiesApi(api_client).list_identities(filters, sorters, default_filter, count, limit, offset) - print("The response of IdentitiesApi->list_identities:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentitiesApi->list_identities: %s\n" % e) + filters = 'id eq \"6c9079b270a266a60170a2779fcb0006\" or correlated eq false' # 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, sw* **alias**: *eq, sw* **firstname**: *eq, sw* **lastname**: *eq, sw* **email**: *eq, sw* **cloudStatus**: *eq* **processingState**: *eq* **correlated**: *eq* **protected**: *eq* (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, sw* **alias**: *eq, sw* **firstname**: *eq, sw* **lastname**: *eq, sw* **email**: *eq, sw* **cloudStatus**: *eq* **processingState**: *eq* **correlated**: *eq* **protected**: *eq* (optional) + sorters = 'name,-cloudStatus' # 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: **name, alias, cloudStatus** (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: **name, alias, cloudStatus** (optional) + default_filter = CORRELATED_ONLY # str | Adds additional filter to filters query parameter. CORRELATED_ONLY adds correlated=true and returns only identities that are correlated. NONE does not add any and returns all identities that satisfy filters query parameter. (optional) (default to CORRELATED_ONLY) # str | Adds additional filter to filters query parameter. CORRELATED_ONLY adds correlated=true and returns only identities that are correlated. NONE does not add any and returns all identities that satisfy filters query parameter. (optional) (default to CORRELATED_ONLY) + 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) + 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) + try: + # List Identities + + results = IdentitiesApi(api_client).list_identities() + # Below is a request that includes all optional parameters + # results = IdentitiesApi(api_client).list_identities(filters, sorters, default_filter, count, limit, offset) + print("The response of IdentitiesApi->list_identities:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentitiesApi->list_identities: %s\n" % e) - path: /identities/{identityId}/reset method: POST xCodeSample: @@ -6630,21 +6424,20 @@ source: | from sailpoint.beta.api.identities_api import IdentitiesApi from sailpoint.beta.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - identity_id = 'ef38f94347e94562b5bb8424a56397d8' # str | Identity Id # str | Identity Id - try: - # Reset an identity - - IdentitiesApi(api_client).reset_identity(identity_id=identity_id) - # Below is a request that includes all optional parameters - # IdentitiesApi(api_client).reset_identity(identity_id) - except Exception as e: - print("Exception when calling IdentitiesApi->reset_identity: %s\n" % e) + identity_id = 'ef38f94347e94562b5bb8424a56397d8' # str | Identity Id # str | Identity Id + try: + # Reset an identity + + IdentitiesApi(api_client).reset_identity(identity_id=identity_id) + # Below is a request that includes all optional parameters + # IdentitiesApi(api_client).reset_identity(identity_id) + except Exception as e: + print("Exception when calling IdentitiesApi->reset_identity: %s\n" % e) - path: /identities/{id}/verification/account/send method: POST xCodeSample: @@ -6654,25 +6447,24 @@ from sailpoint.beta.api.identities_api import IdentitiesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.send_account_verification_request import SendAccountVerificationRequest - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | Identity ID # str | Identity ID - send_account_verification_request = '''{ + id = 'ef38f94347e94562b5bb8424a56397d8' # str | Identity ID # str | Identity ID + send_account_verification_request = '''{ "sourceName" : "Active Directory Source", "via" : "EMAIL_WORK" }''' # SendAccountVerificationRequest | - try: - # Send password reset email - new_send_account_verification_request = SendAccountVerificationRequest.from_json(send_account_verification_request) - IdentitiesApi(api_client).send_identity_verification_account_token(id=id, send_account_verification_request=new_send_account_verification_request) - # Below is a request that includes all optional parameters - # IdentitiesApi(api_client).send_identity_verification_account_token(id, new_send_account_verification_request) - except Exception as e: - print("Exception when calling IdentitiesApi->send_identity_verification_account_token: %s\n" % e) + try: + # Send password reset email + new_send_account_verification_request = SendAccountVerificationRequest.from_json(send_account_verification_request) + IdentitiesApi(api_client).send_identity_verification_account_token(id=id, send_account_verification_request=new_send_account_verification_request) + # Below is a request that includes all optional parameters + # IdentitiesApi(api_client).send_identity_verification_account_token(id, new_send_account_verification_request) + except Exception as e: + print("Exception when calling IdentitiesApi->send_identity_verification_account_token: %s\n" % e) - path: /identities/invite method: POST xCodeSample: @@ -6683,26 +6475,25 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.invite_identities_request import InviteIdentitiesRequest from sailpoint.beta.models.task_status import TaskStatus - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - invite_identities_request = '''{ + invite_identities_request = '''{ "ids" : [ "2b568c65bc3c4c57a43bd97e3a8e55", "2c9180867769897d01776ed5f125512f" ], "uninvited" : false }''' # InviteIdentitiesRequest | - try: - # Invite identities to register - new_invite_identities_request = InviteIdentitiesRequest.from_json(invite_identities_request) - results = IdentitiesApi(api_client).start_identities_invite(invite_identities_request=new_invite_identities_request) - # Below is a request that includes all optional parameters - # results = IdentitiesApi(api_client).start_identities_invite(new_invite_identities_request) - print("The response of IdentitiesApi->start_identities_invite:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentitiesApi->start_identities_invite: %s\n" % e) + try: + # Invite identities to register + new_invite_identities_request = InviteIdentitiesRequest.from_json(invite_identities_request) + results = IdentitiesApi(api_client).start_identities_invite(invite_identities_request=new_invite_identities_request) + # Below is a request that includes all optional parameters + # results = IdentitiesApi(api_client).start_identities_invite(new_invite_identities_request) + print("The response of IdentitiesApi->start_identities_invite:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentitiesApi->start_identities_invite: %s\n" % e) - path: /identities/process method: POST xCodeSample: @@ -6713,25 +6504,24 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.process_identities_request import ProcessIdentitiesRequest from sailpoint.beta.models.task_result_response import TaskResultResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - process_identities_request = '''{ + process_identities_request = '''{ "identityIds" : [ "ef38f94347e94562b5bb8424a56397d8", "ef38f94347e94562b5bb8424a56397d8", "ef38f94347e94562b5bb8424a56397d8", "ef38f94347e94562b5bb8424a56397d8", "ef38f94347e94562b5bb8424a56397d8" ] }''' # ProcessIdentitiesRequest | - try: - # Process a list of identityIds - new_process_identities_request = ProcessIdentitiesRequest.from_json(process_identities_request) - results = IdentitiesApi(api_client).start_identity_processing(process_identities_request=new_process_identities_request) - # Below is a request that includes all optional parameters - # results = IdentitiesApi(api_client).start_identity_processing(new_process_identities_request) - print("The response of IdentitiesApi->start_identity_processing:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentitiesApi->start_identity_processing: %s\n" % e) + try: + # Process a list of identityIds + new_process_identities_request = ProcessIdentitiesRequest.from_json(process_identities_request) + results = IdentitiesApi(api_client).start_identity_processing(process_identities_request=new_process_identities_request) + # Below is a request that includes all optional parameters + # results = IdentitiesApi(api_client).start_identity_processing(new_process_identities_request) + print("The response of IdentitiesApi->start_identity_processing:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentitiesApi->start_identity_processing: %s\n" % e) - path: /identities/{identityId}/synchronize-attributes method: POST xCodeSample: @@ -6741,23 +6531,22 @@ from sailpoint.beta.api.identities_api import IdentitiesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.identity_sync_job import IdentitySyncJob - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - identity_id = 'identity_id_example' # str | The Identity id # str | The Identity id - try: - # Attribute synchronization for single identity. - - results = IdentitiesApi(api_client).synchronize_attributes_for_identity(identity_id=identity_id) - # Below is a request that includes all optional parameters - # results = IdentitiesApi(api_client).synchronize_attributes_for_identity(identity_id) - print("The response of IdentitiesApi->synchronize_attributes_for_identity:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentitiesApi->synchronize_attributes_for_identity: %s\n" % e) + identity_id = 'identity_id_example' # str | The Identity id # str | The Identity id + try: + # Attribute synchronization for single identity. + + results = IdentitiesApi(api_client).synchronize_attributes_for_identity(identity_id=identity_id) + # Below is a request that includes all optional parameters + # results = IdentitiesApi(api_client).synchronize_attributes_for_identity(identity_id) + print("The response of IdentitiesApi->synchronize_attributes_for_identity:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentitiesApi->synchronize_attributes_for_identity: %s\n" % e) - path: /identity-attributes method: POST xCodeSample: @@ -6767,13 +6556,12 @@ from sailpoint.beta.api.identity_attributes_api import IdentityAttributesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.identity_attribute import IdentityAttribute - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - identity_attribute = '''{ + identity_attribute = '''{ "standard" : false, "system" : false, "sources" : [ { @@ -6795,16 +6583,16 @@ "searchable" : false, "multi" : false }''' # IdentityAttribute | - try: - # Create Identity Attribute - new_identity_attribute = IdentityAttribute.from_json(identity_attribute) - results = IdentityAttributesApi(api_client).create_identity_attribute(identity_attribute=new_identity_attribute) - # Below is a request that includes all optional parameters - # results = IdentityAttributesApi(api_client).create_identity_attribute(new_identity_attribute) - print("The response of IdentityAttributesApi->create_identity_attribute:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentityAttributesApi->create_identity_attribute: %s\n" % e) + try: + # Create Identity Attribute + new_identity_attribute = IdentityAttribute.from_json(identity_attribute) + results = IdentityAttributesApi(api_client).create_identity_attribute(identity_attribute=new_identity_attribute) + # Below is a request that includes all optional parameters + # results = IdentityAttributesApi(api_client).create_identity_attribute(new_identity_attribute) + print("The response of IdentityAttributesApi->create_identity_attribute:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentityAttributesApi->create_identity_attribute: %s\n" % e) - path: /identity-attributes/{name} method: DELETE xCodeSample: @@ -6813,21 +6601,20 @@ source: | from sailpoint.beta.api.identity_attributes_api import IdentityAttributesApi from sailpoint.beta.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - name = 'displayName' # str | The attribute's technical name. # str | The attribute's technical name. - try: - # Delete Identity Attribute - - IdentityAttributesApi(api_client).delete_identity_attribute(name=name) - # Below is a request that includes all optional parameters - # IdentityAttributesApi(api_client).delete_identity_attribute(name) - except Exception as e: - print("Exception when calling IdentityAttributesApi->delete_identity_attribute: %s\n" % e) + name = 'displayName' # str | The attribute's technical name. # str | The attribute's technical name. + try: + # Delete Identity Attribute + + IdentityAttributesApi(api_client).delete_identity_attribute(name=name) + # Below is a request that includes all optional parameters + # IdentityAttributesApi(api_client).delete_identity_attribute(name) + except Exception as e: + print("Exception when calling IdentityAttributesApi->delete_identity_attribute: %s\n" % e) - path: /identity-attributes/bulk-delete method: DELETE xCodeSample: @@ -6837,23 +6624,22 @@ from sailpoint.beta.api.identity_attributes_api import IdentityAttributesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.identity_attribute_names import IdentityAttributeNames - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - identity_attribute_names = '''{ + identity_attribute_names = '''{ "ids" : [ "name", "displayName" ] }''' # IdentityAttributeNames | - try: - # Bulk delete Identity Attributes - new_identity_attribute_names = IdentityAttributeNames.from_json(identity_attribute_names) - IdentityAttributesApi(api_client).delete_identity_attributes_in_bulk(identity_attribute_names=new_identity_attribute_names) - # Below is a request that includes all optional parameters - # IdentityAttributesApi(api_client).delete_identity_attributes_in_bulk(new_identity_attribute_names) - except Exception as e: - print("Exception when calling IdentityAttributesApi->delete_identity_attributes_in_bulk: %s\n" % e) + try: + # Bulk delete Identity Attributes + new_identity_attribute_names = IdentityAttributeNames.from_json(identity_attribute_names) + IdentityAttributesApi(api_client).delete_identity_attributes_in_bulk(identity_attribute_names=new_identity_attribute_names) + # Below is a request that includes all optional parameters + # IdentityAttributesApi(api_client).delete_identity_attributes_in_bulk(new_identity_attribute_names) + except Exception as e: + print("Exception when calling IdentityAttributesApi->delete_identity_attributes_in_bulk: %s\n" % e) - path: /identity-attributes/{name} method: GET xCodeSample: @@ -6863,23 +6649,22 @@ from sailpoint.beta.api.identity_attributes_api import IdentityAttributesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.identity_attribute import IdentityAttribute - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - name = 'displayName' # str | The attribute's technical name. # str | The attribute's technical name. - try: - # Get Identity Attribute - - results = IdentityAttributesApi(api_client).get_identity_attribute(name=name) - # Below is a request that includes all optional parameters - # results = IdentityAttributesApi(api_client).get_identity_attribute(name) - print("The response of IdentityAttributesApi->get_identity_attribute:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentityAttributesApi->get_identity_attribute: %s\n" % e) + name = 'displayName' # str | The attribute's technical name. # str | The attribute's technical name. + try: + # Get Identity Attribute + + results = IdentityAttributesApi(api_client).get_identity_attribute(name=name) + # Below is a request that includes all optional parameters + # results = IdentityAttributesApi(api_client).get_identity_attribute(name) + print("The response of IdentityAttributesApi->get_identity_attribute:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentityAttributesApi->get_identity_attribute: %s\n" % e) - path: /identity-attributes method: GET xCodeSample: @@ -6889,26 +6674,25 @@ from sailpoint.beta.api.identity_attributes_api import IdentityAttributesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.identity_attribute import IdentityAttribute - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - include_system = False # bool | Include 'system' attributes in the response. (optional) (default to False) # bool | Include 'system' attributes in the response. (optional) (default to False) - include_silent = False # bool | Include 'silent' attributes in the response. (optional) (default to False) # bool | Include 'silent' attributes in the response. (optional) (default to False) - searchable_only = False # bool | Include only 'searchable' attributes in the response. (optional) (default to False) # bool | Include only 'searchable' attributes in the response. (optional) (default to False) - 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) - try: - # List Identity Attributes - - results = IdentityAttributesApi(api_client).list_identity_attributes() - # Below is a request that includes all optional parameters - # results = IdentityAttributesApi(api_client).list_identity_attributes(include_system, include_silent, searchable_only, count) - print("The response of IdentityAttributesApi->list_identity_attributes:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentityAttributesApi->list_identity_attributes: %s\n" % e) + include_system = False # bool | Include 'system' attributes in the response. (optional) (default to False) # bool | Include 'system' attributes in the response. (optional) (default to False) + include_silent = False # bool | Include 'silent' attributes in the response. (optional) (default to False) # bool | Include 'silent' attributes in the response. (optional) (default to False) + searchable_only = False # bool | Include only 'searchable' attributes in the response. (optional) (default to False) # bool | Include only 'searchable' attributes in the response. (optional) (default to False) + 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) + try: + # List Identity Attributes + + results = IdentityAttributesApi(api_client).list_identity_attributes() + # Below is a request that includes all optional parameters + # results = IdentityAttributesApi(api_client).list_identity_attributes(include_system, include_silent, searchable_only, count) + print("The response of IdentityAttributesApi->list_identity_attributes:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentityAttributesApi->list_identity_attributes: %s\n" % e) - path: /identity-attributes/{name} method: PUT xCodeSample: @@ -6918,14 +6702,13 @@ from sailpoint.beta.api.identity_attributes_api import IdentityAttributesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.identity_attribute import IdentityAttribute - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - name = 'displayName' # str | The attribute's technical name. # str | The attribute's technical name. - identity_attribute = '''{ + name = 'displayName' # str | The attribute's technical name. # str | The attribute's technical name. + identity_attribute = '''{ "standard" : false, "system" : false, "sources" : [ { @@ -6947,16 +6730,16 @@ "searchable" : false, "multi" : false }''' # IdentityAttribute | - try: - # Update Identity Attribute - new_identity_attribute = IdentityAttribute.from_json(identity_attribute) - results = IdentityAttributesApi(api_client).put_identity_attribute(name=name, identity_attribute=new_identity_attribute) - # Below is a request that includes all optional parameters - # results = IdentityAttributesApi(api_client).put_identity_attribute(name, new_identity_attribute) - print("The response of IdentityAttributesApi->put_identity_attribute:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentityAttributesApi->put_identity_attribute: %s\n" % e) + try: + # Update Identity Attribute + new_identity_attribute = IdentityAttribute.from_json(identity_attribute) + results = IdentityAttributesApi(api_client).put_identity_attribute(name=name, identity_attribute=new_identity_attribute) + # Below is a request that includes all optional parameters + # results = IdentityAttributesApi(api_client).put_identity_attribute(name, new_identity_attribute) + print("The response of IdentityAttributesApi->put_identity_attribute:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentityAttributesApi->put_identity_attribute: %s\n" % e) - path: /historical-identities/{id}/compare method: GET xCodeSample: @@ -6966,29 +6749,28 @@ from sailpoint.beta.api.identity_history_api import IdentityHistoryApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.identity_compare_response import IdentityCompareResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | The identity id # str | The identity id - snapshot1 = '2007-03-01T13:00:00Z' # str | The snapshot 1 of identity (optional) # str | The snapshot 1 of identity (optional) - snapshot2 = '2008-03-01T13:00:00Z' # str | The snapshot 2 of identity (optional) # str | The snapshot 2 of identity (optional) - access_item_types = '''['access_item_types_example']''' # List[str] | An optional list of access item types (app, account, entitlement, etc...) to return. If null or empty, all access items types are returned (optional) - 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) - try: - # Gets a difference of count for each access item types for the given identity between 2 snapshots - - results = IdentityHistoryApi(api_client).compare_identity_snapshots(id=id) - # Below is a request that includes all optional parameters - # results = IdentityHistoryApi(api_client).compare_identity_snapshots(id, snapshot1, snapshot2, access_item_types, limit, offset, count) - print("The response of IdentityHistoryApi->compare_identity_snapshots:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentityHistoryApi->compare_identity_snapshots: %s\n" % e) + id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | The identity id # str | The identity id + snapshot1 = '2007-03-01T13:00:00Z' # str | The snapshot 1 of identity (optional) # str | The snapshot 1 of identity (optional) + snapshot2 = '2008-03-01T13:00:00Z' # str | The snapshot 2 of identity (optional) # str | The snapshot 2 of identity (optional) + access_item_types = '''['access_item_types_example']''' # List[str] | An optional list of access item types (app, account, entitlement, etc...) to return. If null or empty, all access items types are returned (optional) + 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) + try: + # Gets a difference of count for each access item types for the given identity between 2 snapshots + + results = IdentityHistoryApi(api_client).compare_identity_snapshots(id=id) + # Below is a request that includes all optional parameters + # results = IdentityHistoryApi(api_client).compare_identity_snapshots(id, snapshot1, snapshot2, access_item_types, limit, offset, count) + print("The response of IdentityHistoryApi->compare_identity_snapshots:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentityHistoryApi->compare_identity_snapshots: %s\n" % e) - path: /historical-identities/{id}/compare/{accessType} method: GET xCodeSample: @@ -6998,30 +6780,29 @@ from sailpoint.beta.api.identity_history_api import IdentityHistoryApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.access_item_diff import AccessItemDiff - from pprint import pprint - from sailpoint.configuration import Configuration - configuration = Configuration() - - - with ApiClient(configuration) as api_client: - id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | The identity id # str | The identity id - access_type = 'role' # str | The specific type which needs to be compared # str | The specific type which needs to be compared - access_associated = 2007-03-01T13:00:00Z # bool | Indicates if added or removed access needs to be returned. true - added, false - removed, null - both added & removed (optional) # bool | Indicates if added or removed access needs to be returned. true - added, false - removed, null - both added & removed (optional) - snapshot1 = '2008-03-01T13:00:00Z' # str | The snapshot 1 of identity (optional) # str | The snapshot 1 of identity (optional) - snapshot2 = '2009-03-01T13:00:00Z' # str | The snapshot 2 of identity (optional) # str | The snapshot 2 of identity (optional) - 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) - try: - # Gets a list of differences of specific accessType for the given identity between 2 snapshots - - results = IdentityHistoryApi(api_client).compare_identity_snapshots_access_type(id=id, access_type=access_type) - # Below is a request that includes all optional parameters - # results = IdentityHistoryApi(api_client).compare_identity_snapshots_access_type(id, access_type, access_associated, snapshot1, snapshot2, limit, offset, count) - print("The response of IdentityHistoryApi->compare_identity_snapshots_access_type:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentityHistoryApi->compare_identity_snapshots_access_type: %s\n" % e) + from sailpoint.configuration import Configuration + configuration = Configuration() + + + with ApiClient(configuration) as api_client: + id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | The identity id # str | The identity id + access_type = 'role' # str | The specific type which needs to be compared # str | The specific type which needs to be compared + access_associated = 2007-03-01T13:00:00Z # bool | Indicates if added or removed access needs to be returned. true - added, false - removed, null - both added & removed (optional) # bool | Indicates if added or removed access needs to be returned. true - added, false - removed, null - both added & removed (optional) + snapshot1 = '2008-03-01T13:00:00Z' # str | The snapshot 1 of identity (optional) # str | The snapshot 1 of identity (optional) + snapshot2 = '2009-03-01T13:00:00Z' # str | The snapshot 2 of identity (optional) # str | The snapshot 2 of identity (optional) + 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) + try: + # Gets a list of differences of specific accessType for the given identity between 2 snapshots + + results = IdentityHistoryApi(api_client).compare_identity_snapshots_access_type(id=id, access_type=access_type) + # Below is a request that includes all optional parameters + # results = IdentityHistoryApi(api_client).compare_identity_snapshots_access_type(id, access_type, access_associated, snapshot1, snapshot2, limit, offset, count) + print("The response of IdentityHistoryApi->compare_identity_snapshots_access_type:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentityHistoryApi->compare_identity_snapshots_access_type: %s\n" % e) - path: /historical-identities/{id} method: GET xCodeSample: @@ -7031,23 +6812,22 @@ from sailpoint.beta.api.identity_history_api import IdentityHistoryApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.identity_history_response import IdentityHistoryResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | The identity id # str | The identity id - try: - # Get latest snapshot of identity - - results = IdentityHistoryApi(api_client).get_historical_identity(id=id) - # Below is a request that includes all optional parameters - # results = IdentityHistoryApi(api_client).get_historical_identity(id) - print("The response of IdentityHistoryApi->get_historical_identity:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentityHistoryApi->get_historical_identity: %s\n" % e) + id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | The identity id # str | The identity id + try: + # Get latest snapshot of identity + + results = IdentityHistoryApi(api_client).get_historical_identity(id=id) + # Below is a request that includes all optional parameters + # results = IdentityHistoryApi(api_client).get_historical_identity(id) + print("The response of IdentityHistoryApi->get_historical_identity:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentityHistoryApi->get_historical_identity: %s\n" % e) - path: /historical-identities/{id}/events method: GET xCodeSample: @@ -7057,29 +6837,28 @@ from sailpoint.beta.api.identity_history_api import IdentityHistoryApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.get_historical_identity_events200_response_inner import GetHistoricalIdentityEvents200ResponseInner - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | The identity id # str | The identity id - var_from = '2024-03-01T13:00:00Z' # str | The optional instant until which access events are returned (optional) # str | The optional instant until which access events are returned (optional) - event_types = '''['[AccessAddedEvent, AccessRemovedEvent]']''' # List[str] | An optional list of event types to return. If null or empty, all events are returned (optional) - access_item_types = '''['[entitlement, account]']''' # List[str] | An optional list of access item types (app, account, entitlement, etc...) to return. If null or empty, all access items types are returned (optional) - 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) - try: - # Lists all events for the given identity - - results = IdentityHistoryApi(api_client).get_historical_identity_events(id=id) - # Below is a request that includes all optional parameters - # results = IdentityHistoryApi(api_client).get_historical_identity_events(id, var_from, event_types, access_item_types, limit, offset, count) - print("The response of IdentityHistoryApi->get_historical_identity_events:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentityHistoryApi->get_historical_identity_events: %s\n" % e) + id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | The identity id # str | The identity id + var_from = '2024-03-01T13:00:00Z' # str | The optional instant until which access events are returned (optional) # str | The optional instant until which access events are returned (optional) + event_types = '''['[AccessAddedEvent, AccessRemovedEvent]']''' # List[str] | An optional list of event types to return. If null or empty, all events are returned (optional) + access_item_types = '''['[entitlement, account]']''' # List[str] | An optional list of access item types (app, account, entitlement, etc...) to return. If null or empty, all access items types are returned (optional) + 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) + try: + # Lists all events for the given identity + + results = IdentityHistoryApi(api_client).get_historical_identity_events(id=id) + # Below is a request that includes all optional parameters + # results = IdentityHistoryApi(api_client).get_historical_identity_events(id, var_from, event_types, access_item_types, limit, offset, count) + print("The response of IdentityHistoryApi->get_historical_identity_events:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentityHistoryApi->get_historical_identity_events: %s\n" % e) - path: /historical-identities/{id}/snapshots/{date} method: GET xCodeSample: @@ -7089,24 +6868,23 @@ from sailpoint.beta.api.identity_history_api import IdentityHistoryApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.identity_history_response import IdentityHistoryResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | The identity id # str | The identity id - var_date = '2007-03-01T13:00:00Z' # str | The specified date # str | The specified date - try: - # Gets an identity snapshot at a given date - - results = IdentityHistoryApi(api_client).get_identity_snapshot(id=id, var_date=var_date) - # Below is a request that includes all optional parameters - # results = IdentityHistoryApi(api_client).get_identity_snapshot(id, var_date) - print("The response of IdentityHistoryApi->get_identity_snapshot:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentityHistoryApi->get_identity_snapshot: %s\n" % e) + id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | The identity id # str | The identity id + var_date = '2007-03-01T13:00:00Z' # str | The specified date # str | The specified date + try: + # Gets an identity snapshot at a given date + + results = IdentityHistoryApi(api_client).get_identity_snapshot(id=id, var_date=var_date) + # Below is a request that includes all optional parameters + # results = IdentityHistoryApi(api_client).get_identity_snapshot(id, var_date) + print("The response of IdentityHistoryApi->get_identity_snapshot:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentityHistoryApi->get_identity_snapshot: %s\n" % e) - path: /historical-identities/{id}/snapshot-summary method: GET xCodeSample: @@ -7116,29 +6894,28 @@ from sailpoint.beta.api.identity_history_api import IdentityHistoryApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.metric_response import MetricResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | The identity id # str | The identity id - before = '2007-03-01T13:00:00Z' # str | The date before which snapshot summary is required (optional) # str | The date before which snapshot summary is required (optional) - interval = 'interval_example' # str | The interval indicating day or month. Defaults to month if not specified (optional) # str | The interval indicating day or month. Defaults to month if not specified (optional) - time_zone = 'UTC' # str | The time zone. Defaults to UTC if not provided (optional) # str | The time zone. Defaults to UTC if not provided (optional) - 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) - try: - # Gets the summary for the event count for a specific identity - - results = IdentityHistoryApi(api_client).get_identity_snapshot_summary(id=id) - # Below is a request that includes all optional parameters - # results = IdentityHistoryApi(api_client).get_identity_snapshot_summary(id, before, interval, time_zone, limit, offset, count) - print("The response of IdentityHistoryApi->get_identity_snapshot_summary:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentityHistoryApi->get_identity_snapshot_summary: %s\n" % e) + id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | The identity id # str | The identity id + before = '2007-03-01T13:00:00Z' # str | The date before which snapshot summary is required (optional) # str | The date before which snapshot summary is required (optional) + interval = 'interval_example' # str | The interval indicating day or month. Defaults to month if not specified (optional) # str | The interval indicating day or month. Defaults to month if not specified (optional) + time_zone = 'UTC' # str | The time zone. Defaults to UTC if not provided (optional) # str | The time zone. Defaults to UTC if not provided (optional) + 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) + try: + # Gets the summary for the event count for a specific identity + + results = IdentityHistoryApi(api_client).get_identity_snapshot_summary(id=id) + # Below is a request that includes all optional parameters + # results = IdentityHistoryApi(api_client).get_identity_snapshot_summary(id, before, interval, time_zone, limit, offset, count) + print("The response of IdentityHistoryApi->get_identity_snapshot_summary:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentityHistoryApi->get_identity_snapshot_summary: %s\n" % e) - path: /historical-identities/{id}/start-date method: GET xCodeSample: @@ -7147,23 +6924,22 @@ source: | from sailpoint.beta.api.identity_history_api import IdentityHistoryApi from sailpoint.beta.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | The identity id # str | The identity id - try: - # Gets the start date of the identity - - results = IdentityHistoryApi(api_client).get_identity_start_date(id=id) - # Below is a request that includes all optional parameters - # results = IdentityHistoryApi(api_client).get_identity_start_date(id) - print("The response of IdentityHistoryApi->get_identity_start_date:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentityHistoryApi->get_identity_start_date: %s\n" % e) + id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | The identity id # str | The identity id + try: + # Gets the start date of the identity + + results = IdentityHistoryApi(api_client).get_identity_start_date(id=id) + # Below is a request that includes all optional parameters + # results = IdentityHistoryApi(api_client).get_identity_start_date(id) + print("The response of IdentityHistoryApi->get_identity_start_date:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentityHistoryApi->get_identity_start_date: %s\n" % e) - path: /historical-identities method: GET xCodeSample: @@ -7173,27 +6949,26 @@ from sailpoint.beta.api.identity_history_api import IdentityHistoryApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.identity_list_item import IdentityListItem - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - starts_with_query = 'Ada' # str | This param is used for starts-with search for first, last and display name of the identity (optional) # str | This param is used for starts-with search for first, last and display name of the identity (optional) - is_deleted = true # bool | Indicates if we want to only list down deleted identities or not. (optional) # bool | Indicates if we want to only list down deleted identities or not. (optional) - is_active = true # bool | Indicates if we want to only list active or inactive identities. (optional) # bool | Indicates if we want to only list active or inactive identities. (optional) - 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) - try: - # Lists all the identities - - results = IdentityHistoryApi(api_client).list_historical_identities() - # Below is a request that includes all optional parameters - # results = IdentityHistoryApi(api_client).list_historical_identities(starts_with_query, is_deleted, is_active, limit, offset) - print("The response of IdentityHistoryApi->list_historical_identities:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentityHistoryApi->list_historical_identities: %s\n" % e) + starts_with_query = 'Ada' # str | This param is used for starts-with search for first, last and display name of the identity (optional) # str | This param is used for starts-with search for first, last and display name of the identity (optional) + is_deleted = true # bool | Indicates if we want to only list down deleted identities or not. (optional) # bool | Indicates if we want to only list down deleted identities or not. (optional) + is_active = true # bool | Indicates if we want to only list active or inactive identities. (optional) # bool | Indicates if we want to only list active or inactive identities. (optional) + 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) + try: + # Lists all the identities + + results = IdentityHistoryApi(api_client).list_historical_identities() + # Below is a request that includes all optional parameters + # results = IdentityHistoryApi(api_client).list_historical_identities(starts_with_query, is_deleted, is_active, limit, offset) + print("The response of IdentityHistoryApi->list_historical_identities:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentityHistoryApi->list_historical_identities: %s\n" % e) - path: /historical-identities/{id}/access-items method: GET xCodeSample: @@ -7203,30 +6978,29 @@ from sailpoint.beta.api.identity_history_api import IdentityHistoryApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.list_identity_access_items200_response_inner import ListIdentityAccessItems200ResponseInner - from pprint import pprint - from sailpoint.configuration import Configuration - configuration = Configuration() - - - with ApiClient(configuration) as api_client: - id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | The identity id # str | The identity id - type = 'account' # str | The type of access item for the identity. If not provided, it defaults to account. Types of access items: **accessProfile, account, app, entitlement, role** (optional) # str | The type of access item for the identity. If not provided, it defaults to account. Types of access items: **accessProfile, account, app, entitlement, role** (optional) - filters = 'source eq \"DataScienceDataset\"' # 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: **source**: *eq* **standalone**: *eq* **privileged**: *eq* **attribute**: *eq* **cloudGoverned**: *eq* (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: **source**: *eq* **standalone**: *eq* **privileged**: *eq* **attribute**: *eq* **cloudGoverned**: *eq* (optional) - sorters = 'name' # 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: **name, value, standalone, privileged, attribute, source, cloudGoverned, removeDate, nativeIdentity, entitlementCount** (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: **name, value, standalone, privileged, attribute, source, cloudGoverned, removeDate, nativeIdentity, entitlementCount** (optional) - query = 'Dr. Arden' # str | This param is used to search if certain fields of the access item contain the string provided. Searching is supported for the following fields depending on the type: Access Profiles: **name, description** Accounts: **name, nativeIdentity** Apps: **name** Entitlements: **name, value, description** Roles: **name, description** (optional) # str | This param is used to search if certain fields of the access item contain the string provided. Searching is supported for the following fields depending on the type: Access Profiles: **name, description** Accounts: **name, nativeIdentity** Apps: **name** Entitlements: **name, value, description** Roles: **name, description** (optional) - 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) - 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) - 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) - try: - # List Access Items by Identity - - results = IdentityHistoryApi(api_client).list_identity_access_items(id=id) - # Below is a request that includes all optional parameters - # results = IdentityHistoryApi(api_client).list_identity_access_items(id, type, filters, sorters, query, limit, count, offset) - print("The response of IdentityHistoryApi->list_identity_access_items:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentityHistoryApi->list_identity_access_items: %s\n" % e) + from sailpoint.configuration import Configuration + configuration = Configuration() + + + with ApiClient(configuration) as api_client: + id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | The identity id # str | The identity id + type = 'account' # str | The type of access item for the identity. If not provided, it defaults to account. Types of access items: **accessProfile, account, app, entitlement, role** (optional) # str | The type of access item for the identity. If not provided, it defaults to account. Types of access items: **accessProfile, account, app, entitlement, role** (optional) + filters = 'source eq \"DataScienceDataset\"' # 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: **source**: *eq* **standalone**: *eq* **privileged**: *eq* **attribute**: *eq* **cloudGoverned**: *eq* (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: **source**: *eq* **standalone**: *eq* **privileged**: *eq* **attribute**: *eq* **cloudGoverned**: *eq* (optional) + sorters = 'name' # 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: **name, value, standalone, privileged, attribute, source, cloudGoverned, removeDate, nativeIdentity, entitlementCount** (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: **name, value, standalone, privileged, attribute, source, cloudGoverned, removeDate, nativeIdentity, entitlementCount** (optional) + query = 'Dr. Arden' # str | This param is used to search if certain fields of the access item contain the string provided. Searching is supported for the following fields depending on the type: Access Profiles: **name, description** Accounts: **name, nativeIdentity** Apps: **name** Entitlements: **name, value, description** Roles: **name, description** (optional) # str | This param is used to search if certain fields of the access item contain the string provided. Searching is supported for the following fields depending on the type: Access Profiles: **name, description** Accounts: **name, nativeIdentity** Apps: **name** Entitlements: **name, value, description** Roles: **name, description** (optional) + 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) + 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) + 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) + try: + # List Access Items by Identity + + results = IdentityHistoryApi(api_client).list_identity_access_items(id=id) + # Below is a request that includes all optional parameters + # results = IdentityHistoryApi(api_client).list_identity_access_items(id, type, filters, sorters, query, limit, count, offset) + print("The response of IdentityHistoryApi->list_identity_access_items:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentityHistoryApi->list_identity_access_items: %s\n" % e) - path: /historical-identities/{id}/snapshots/{date}/access-items method: GET xCodeSample: @@ -7236,25 +7010,24 @@ from sailpoint.beta.api.identity_history_api import IdentityHistoryApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.list_identity_access_items200_response_inner import ListIdentityAccessItems200ResponseInner - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | Identity ID. # str | Identity ID. - var_date = '2007-03-01T13:00:00Z' # str | Specified date. # str | Specified date. - type = 'account' # str | Access item type. (optional) # str | Access item type. (optional) - try: - # Get Identity Access Items Snapshot - - results = IdentityHistoryApi(api_client).list_identity_snapshot_access_items(id=id, var_date=var_date) - # Below is a request that includes all optional parameters - # results = IdentityHistoryApi(api_client).list_identity_snapshot_access_items(id, var_date, type) - print("The response of IdentityHistoryApi->list_identity_snapshot_access_items:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentityHistoryApi->list_identity_snapshot_access_items: %s\n" % e) + id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | Identity ID. # str | Identity ID. + var_date = '2007-03-01T13:00:00Z' # str | Specified date. # str | Specified date. + type = 'account' # str | Access item type. (optional) # str | Access item type. (optional) + try: + # Get Identity Access Items Snapshot + + results = IdentityHistoryApi(api_client).list_identity_snapshot_access_items(id=id, var_date=var_date) + # Below is a request that includes all optional parameters + # results = IdentityHistoryApi(api_client).list_identity_snapshot_access_items(id, var_date, type) + print("The response of IdentityHistoryApi->list_identity_snapshot_access_items:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentityHistoryApi->list_identity_snapshot_access_items: %s\n" % e) - path: /historical-identities/{id}/snapshots method: GET xCodeSample: @@ -7264,28 +7037,27 @@ from sailpoint.beta.api.identity_history_api import IdentityHistoryApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.identity_snapshot_summary_response import IdentitySnapshotSummaryResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | The identity id # str | The identity id - start = '2007-03-01T13:00:00Z' # str | The specified start date (optional) # str | The specified start date (optional) - interval = 'interval_example' # str | The interval indicating the range in day or month for the specified interval-name (optional) # str | The interval indicating the range in day or month for the specified interval-name (optional) - 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) - try: - # Lists all the snapshots for the identity - - results = IdentityHistoryApi(api_client).list_identity_snapshots(id=id) - # Below is a request that includes all optional parameters - # results = IdentityHistoryApi(api_client).list_identity_snapshots(id, start, interval, limit, offset, count) - print("The response of IdentityHistoryApi->list_identity_snapshots:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentityHistoryApi->list_identity_snapshots: %s\n" % e) + id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | The identity id # str | The identity id + start = '2007-03-01T13:00:00Z' # str | The specified start date (optional) # str | The specified start date (optional) + interval = 'interval_example' # str | The interval indicating the range in day or month for the specified interval-name (optional) # str | The interval indicating the range in day or month for the specified interval-name (optional) + 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) + try: + # Lists all the snapshots for the identity + + results = IdentityHistoryApi(api_client).list_identity_snapshots(id=id) + # Below is a request that includes all optional parameters + # results = IdentityHistoryApi(api_client).list_identity_snapshots(id, start, interval, limit, offset, count) + print("The response of IdentityHistoryApi->list_identity_snapshots:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentityHistoryApi->list_identity_snapshots: %s\n" % e) - path: /identity-profiles method: POST xCodeSample: @@ -7295,13 +7067,12 @@ from sailpoint.beta.api.identity_profiles_api import IdentityProfilesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.identity_profile import IdentityProfile - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - identity_profile = '''{ + identity_profile = '''{ "owner" : { "name" : "William Wilson", "id" : "2c9180835d191a86015d28455b4b232a", @@ -7350,16 +7121,16 @@ "modified" : "2023-01-03T21:16:22.432Z", "id" : "id12345" }''' # IdentityProfile | - try: - # Create Identity Profile - new_identity_profile = IdentityProfile.from_json(identity_profile) - results = IdentityProfilesApi(api_client).create_identity_profile(identity_profile=new_identity_profile) - # Below is a request that includes all optional parameters - # results = IdentityProfilesApi(api_client).create_identity_profile(new_identity_profile) - print("The response of IdentityProfilesApi->create_identity_profile:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentityProfilesApi->create_identity_profile: %s\n" % e) + try: + # Create Identity Profile + new_identity_profile = IdentityProfile.from_json(identity_profile) + results = IdentityProfilesApi(api_client).create_identity_profile(identity_profile=new_identity_profile) + # Below is a request that includes all optional parameters + # results = IdentityProfilesApi(api_client).create_identity_profile(new_identity_profile) + print("The response of IdentityProfilesApi->create_identity_profile:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentityProfilesApi->create_identity_profile: %s\n" % e) - path: /identity-profiles/{identity-profile-id} method: DELETE xCodeSample: @@ -7369,23 +7140,22 @@ from sailpoint.beta.api.identity_profiles_api import IdentityProfilesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.task_result_simplified import TaskResultSimplified - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - identity_profile_id = 'ef38f94347e94562b5bb8424a56397d8' # str | Identity profile ID. # str | Identity profile ID. - try: - # Delete Identity Profile - - results = IdentityProfilesApi(api_client).delete_identity_profile(identity_profile_id=identity_profile_id) - # Below is a request that includes all optional parameters - # results = IdentityProfilesApi(api_client).delete_identity_profile(identity_profile_id) - print("The response of IdentityProfilesApi->delete_identity_profile:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentityProfilesApi->delete_identity_profile: %s\n" % e) + identity_profile_id = 'ef38f94347e94562b5bb8424a56397d8' # str | Identity profile ID. # str | Identity profile ID. + try: + # Delete Identity Profile + + results = IdentityProfilesApi(api_client).delete_identity_profile(identity_profile_id=identity_profile_id) + # Below is a request that includes all optional parameters + # results = IdentityProfilesApi(api_client).delete_identity_profile(identity_profile_id) + print("The response of IdentityProfilesApi->delete_identity_profile:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentityProfilesApi->delete_identity_profile: %s\n" % e) - path: /identity-profiles/bulk-delete method: POST xCodeSample: @@ -7395,23 +7165,22 @@ from sailpoint.beta.api.identity_profiles_api import IdentityProfilesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.task_result_simplified import TaskResultSimplified - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - request_body = '''['request_body_example']''' # List[str] | Identity Profile bulk delete request body. - try: - # Delete Identity Profiles - new_request_body = RequestBody.from_json(request_body) - results = IdentityProfilesApi(api_client).delete_identity_profiles(request_body=new_request_body) - # Below is a request that includes all optional parameters - # results = IdentityProfilesApi(api_client).delete_identity_profiles(new_request_body) - print("The response of IdentityProfilesApi->delete_identity_profiles:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentityProfilesApi->delete_identity_profiles: %s\n" % e) + request_body = '''['request_body_example']''' # List[str] | Identity Profile bulk delete request body. + try: + # Delete Identity Profiles + new_request_body = RequestBody.from_json(request_body) + results = IdentityProfilesApi(api_client).delete_identity_profiles(request_body=new_request_body) + # Below is a request that includes all optional parameters + # results = IdentityProfilesApi(api_client).delete_identity_profiles(new_request_body) + print("The response of IdentityProfilesApi->delete_identity_profiles:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentityProfilesApi->delete_identity_profiles: %s\n" % e) - path: /identity-profiles/export method: GET xCodeSample: @@ -7421,27 +7190,26 @@ from sailpoint.beta.api.identity_profiles_api import IdentityProfilesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.identity_profile_exported_object import IdentityProfileExportedObject - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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 = 'id eq 8c190e6787aa4ed9a90bd9d5344523fb' # 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, ne* **name**: *eq, ne* **priority**: *eq, ne* (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, ne* **name**: *eq, ne* **priority**: *eq, ne* (optional) - sorters = 'name,-priority' # 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: **id, name, priority** (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: **id, name, priority** (optional) - try: - # Export Identity Profiles - - results = IdentityProfilesApi(api_client).export_identity_profiles() - # Below is a request that includes all optional parameters - # results = IdentityProfilesApi(api_client).export_identity_profiles(limit, offset, count, filters, sorters) - print("The response of IdentityProfilesApi->export_identity_profiles:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentityProfilesApi->export_identity_profiles: %s\n" % e) + 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 = 'id eq 8c190e6787aa4ed9a90bd9d5344523fb' # 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, ne* **name**: *eq, ne* **priority**: *eq, ne* (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, ne* **name**: *eq, ne* **priority**: *eq, ne* (optional) + sorters = 'name,-priority' # 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: **id, name, priority** (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: **id, name, priority** (optional) + try: + # Export Identity Profiles + + results = IdentityProfilesApi(api_client).export_identity_profiles() + # Below is a request that includes all optional parameters + # results = IdentityProfilesApi(api_client).export_identity_profiles(limit, offset, count, filters, sorters) + print("The response of IdentityProfilesApi->export_identity_profiles:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentityProfilesApi->export_identity_profiles: %s\n" % e) - path: /identity-profiles/{identity-profile-id}/default-identity-attribute-config method: GET xCodeSample: @@ -7451,23 +7219,22 @@ from sailpoint.beta.api.identity_profiles_api import IdentityProfilesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.identity_attribute_config import IdentityAttributeConfig - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - identity_profile_id = 'ef38f94347e94562b5bb8424a56397d8' # str | The Identity Profile ID # str | The Identity Profile ID - try: - # Default identity attribute config - - results = IdentityProfilesApi(api_client).get_default_identity_attribute_config(identity_profile_id=identity_profile_id) - # Below is a request that includes all optional parameters - # results = IdentityProfilesApi(api_client).get_default_identity_attribute_config(identity_profile_id) - print("The response of IdentityProfilesApi->get_default_identity_attribute_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentityProfilesApi->get_default_identity_attribute_config: %s\n" % e) + identity_profile_id = 'ef38f94347e94562b5bb8424a56397d8' # str | The Identity Profile ID # str | The Identity Profile ID + try: + # Default identity attribute config + + results = IdentityProfilesApi(api_client).get_default_identity_attribute_config(identity_profile_id=identity_profile_id) + # Below is a request that includes all optional parameters + # results = IdentityProfilesApi(api_client).get_default_identity_attribute_config(identity_profile_id) + print("The response of IdentityProfilesApi->get_default_identity_attribute_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentityProfilesApi->get_default_identity_attribute_config: %s\n" % e) - path: /identity-profiles/{identity-profile-id} method: GET xCodeSample: @@ -7477,23 +7244,22 @@ from sailpoint.beta.api.identity_profiles_api import IdentityProfilesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.identity_profile import IdentityProfile - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - identity_profile_id = 'ef38f94347e94562b5bb8424a56397d8' # str | Identity profile ID. # str | Identity profile ID. - try: - # Get Identity Profile - - results = IdentityProfilesApi(api_client).get_identity_profile(identity_profile_id=identity_profile_id) - # Below is a request that includes all optional parameters - # results = IdentityProfilesApi(api_client).get_identity_profile(identity_profile_id) - print("The response of IdentityProfilesApi->get_identity_profile:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentityProfilesApi->get_identity_profile: %s\n" % e) + identity_profile_id = 'ef38f94347e94562b5bb8424a56397d8' # str | Identity profile ID. # str | Identity profile ID. + try: + # Get Identity Profile + + results = IdentityProfilesApi(api_client).get_identity_profile(identity_profile_id=identity_profile_id) + # Below is a request that includes all optional parameters + # results = IdentityProfilesApi(api_client).get_identity_profile(identity_profile_id) + print("The response of IdentityProfilesApi->get_identity_profile:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentityProfilesApi->get_identity_profile: %s\n" % e) - path: /identity-profiles/import method: POST xCodeSample: @@ -7504,23 +7270,22 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.identity_profile_exported_object import IdentityProfileExportedObject from sailpoint.beta.models.object_import_result import ObjectImportResult - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - identity_profile_exported_object = '''[sailpoint.beta.IdentityProfileExportedObject()]''' # List[IdentityProfileExportedObject] | Previously exported Identity Profiles. - try: - # Import Identity Profiles - new_identity_profile_exported_object = IdentityProfileExportedObject.from_json(identity_profile_exported_object) - results = IdentityProfilesApi(api_client).import_identity_profiles(identity_profile_exported_object=new_identity_profile_exported_object) - # Below is a request that includes all optional parameters - # results = IdentityProfilesApi(api_client).import_identity_profiles(new_identity_profile_exported_object) - print("The response of IdentityProfilesApi->import_identity_profiles:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentityProfilesApi->import_identity_profiles: %s\n" % e) + identity_profile_exported_object = '''[sailpoint.beta.IdentityProfileExportedObject()]''' # List[IdentityProfileExportedObject] | Previously exported Identity Profiles. + try: + # Import Identity Profiles + new_identity_profile_exported_object = IdentityProfileExportedObject.from_json(identity_profile_exported_object) + results = IdentityProfilesApi(api_client).import_identity_profiles(identity_profile_exported_object=new_identity_profile_exported_object) + # Below is a request that includes all optional parameters + # results = IdentityProfilesApi(api_client).import_identity_profiles(new_identity_profile_exported_object) + print("The response of IdentityProfilesApi->import_identity_profiles:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentityProfilesApi->import_identity_profiles: %s\n" % e) - path: /identity-profiles method: GET xCodeSample: @@ -7530,27 +7295,26 @@ from sailpoint.beta.api.identity_profiles_api import IdentityProfilesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.identity_profile import IdentityProfile - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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 = 'id eq 8c190e6787aa4ed9a90bd9d5344523fb' # 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, ne, ge, gt, in, le, sw* **name**: *eq, ne, ge, gt, in, le, sw* **priority**: *eq, ne* (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, ne, ge, gt, in, le, sw* **name**: *eq, ne, ge, gt, in, le, sw* **priority**: *eq, ne* (optional) - sorters = 'name,-priority' # 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: **id, name, priority, created, modified, owner.id, owner.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: **id, name, priority, created, modified, owner.id, owner.name** (optional) - try: - # List Identity Profiles - - results = IdentityProfilesApi(api_client).list_identity_profiles() - # Below is a request that includes all optional parameters - # results = IdentityProfilesApi(api_client).list_identity_profiles(limit, offset, count, filters, sorters) - print("The response of IdentityProfilesApi->list_identity_profiles:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentityProfilesApi->list_identity_profiles: %s\n" % e) + 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 = 'id eq 8c190e6787aa4ed9a90bd9d5344523fb' # 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, ne, ge, gt, in, le, sw* **name**: *eq, ne, ge, gt, in, le, sw* **priority**: *eq, ne* (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, ne, ge, gt, in, le, sw* **name**: *eq, ne, ge, gt, in, le, sw* **priority**: *eq, ne* (optional) + sorters = 'name,-priority' # 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: **id, name, priority, created, modified, owner.id, owner.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: **id, name, priority, created, modified, owner.id, owner.name** (optional) + try: + # List Identity Profiles + + results = IdentityProfilesApi(api_client).list_identity_profiles() + # Below is a request that includes all optional parameters + # results = IdentityProfilesApi(api_client).list_identity_profiles(limit, offset, count, filters, sorters) + print("The response of IdentityProfilesApi->list_identity_profiles:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentityProfilesApi->list_identity_profiles: %s\n" % e) - path: /identity-profiles/identity-preview method: POST xCodeSample: @@ -7561,13 +7325,12 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.identity_preview_request import IdentityPreviewRequest from sailpoint.beta.models.identity_preview_response import IdentityPreviewResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - identity_preview_request = '''{ + identity_preview_request = '''{ "identityId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", "identityAttributeConfig" : { "attributeTransforms" : [ { @@ -7594,16 +7357,16 @@ "enabled" : true } }''' # IdentityPreviewRequest | Identity Preview request body. - try: - # Generate Identity Profile Preview - new_identity_preview_request = IdentityPreviewRequest.from_json(identity_preview_request) - results = IdentityProfilesApi(api_client).show_generate_identity_preview(identity_preview_request=new_identity_preview_request) - # Below is a request that includes all optional parameters - # results = IdentityProfilesApi(api_client).show_generate_identity_preview(new_identity_preview_request) - print("The response of IdentityProfilesApi->show_generate_identity_preview:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentityProfilesApi->show_generate_identity_preview: %s\n" % e) + try: + # Generate Identity Profile Preview + new_identity_preview_request = IdentityPreviewRequest.from_json(identity_preview_request) + results = IdentityProfilesApi(api_client).show_generate_identity_preview(identity_preview_request=new_identity_preview_request) + # Below is a request that includes all optional parameters + # results = IdentityProfilesApi(api_client).show_generate_identity_preview(new_identity_preview_request) + print("The response of IdentityProfilesApi->show_generate_identity_preview:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentityProfilesApi->show_generate_identity_preview: %s\n" % e) - path: /identity-profiles/{identity-profile-id}/process-identities method: POST xCodeSample: @@ -7612,23 +7375,22 @@ source: | from sailpoint.beta.api.identity_profiles_api import IdentityProfilesApi from sailpoint.beta.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - identity_profile_id = 'ef38f94347e94562b5bb8424a56397d8' # str | The Identity Profile ID to be processed # str | The Identity Profile ID to be processed - try: - # Process identities under profile - - results = IdentityProfilesApi(api_client).sync_identity_profile(identity_profile_id=identity_profile_id) - # Below is a request that includes all optional parameters - # results = IdentityProfilesApi(api_client).sync_identity_profile(identity_profile_id) - print("The response of IdentityProfilesApi->sync_identity_profile:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentityProfilesApi->sync_identity_profile: %s\n" % e) + identity_profile_id = 'ef38f94347e94562b5bb8424a56397d8' # str | The Identity Profile ID to be processed # str | The Identity Profile ID to be processed + try: + # Process identities under profile + + results = IdentityProfilesApi(api_client).sync_identity_profile(identity_profile_id=identity_profile_id) + # Below is a request that includes all optional parameters + # results = IdentityProfilesApi(api_client).sync_identity_profile(identity_profile_id) + print("The response of IdentityProfilesApi->sync_identity_profile:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentityProfilesApi->sync_identity_profile: %s\n" % e) - path: /identity-profiles/{identity-profile-id} method: PATCH xCodeSample: @@ -7639,24 +7401,23 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.identity_profile import IdentityProfile from sailpoint.beta.models.json_patch_operation import JsonPatchOperation - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - identity_profile_id = 'ef38f94347e94562b5bb8424a56397d8' # str | Identity profile ID. # str | Identity profile ID. - json_patch_operation = '''[{op=add, path=/identityAttributeConfig/attributeTransforms/0, value={identityAttributeName=location, transformDefinition={type=accountAttribute, attributes={sourceName=Employees, attributeName=location, sourceId=2c91808878b7d63b0178c66ffcdc4ce4}}}}]''' # List[JsonPatchOperation] | List of identity profile update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. - try: - # Update Identity Profile - new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) - results = IdentityProfilesApi(api_client).update_identity_profile(identity_profile_id=identity_profile_id, json_patch_operation=new_json_patch_operation) - # Below is a request that includes all optional parameters - # results = IdentityProfilesApi(api_client).update_identity_profile(identity_profile_id, new_json_patch_operation) - print("The response of IdentityProfilesApi->update_identity_profile:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentityProfilesApi->update_identity_profile: %s\n" % e) + identity_profile_id = 'ef38f94347e94562b5bb8424a56397d8' # str | Identity profile ID. # str | Identity profile ID. + json_patch_operation = '''[{op=add, path=/identityAttributeConfig/attributeTransforms/0, value={identityAttributeName=location, transformDefinition={type=accountAttribute, attributes={sourceName=Employees, attributeName=location, sourceId=2c91808878b7d63b0178c66ffcdc4ce4}}}}]''' # List[JsonPatchOperation] | List of identity profile update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. + try: + # Update Identity Profile + new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) + results = IdentityProfilesApi(api_client).update_identity_profile(identity_profile_id=identity_profile_id, json_patch_operation=new_json_patch_operation) + # Below is a request that includes all optional parameters + # results = IdentityProfilesApi(api_client).update_identity_profile(identity_profile_id, new_json_patch_operation) + print("The response of IdentityProfilesApi->update_identity_profile:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentityProfilesApi->update_identity_profile: %s\n" % e) - path: /launchers method: POST xCodeSample: @@ -7667,13 +7428,12 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.launcher import Launcher from sailpoint.beta.models.launcher_request import LauncherRequest - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - launcher_request = '''{ + launcher_request = '''{ "reference" : { "id" : "2fd6ff94-2081-4d29-acbc-83a0a2f744a5", "type" : "WORKFLOW" @@ -7684,16 +7444,16 @@ "type" : "INTERACTIVE_PROCESS", "config" : "{\"workflowId\" : \"6b42d9be-61b6-46af-827e-ea29ba8aa3d9\"}" }''' # LauncherRequest | Payload to create a Launcher - try: - # Create launcher - new_launcher_request = LauncherRequest.from_json(launcher_request) - results = LaunchersApi(api_client).create_launcher(launcher_request=new_launcher_request) - # Below is a request that includes all optional parameters - # results = LaunchersApi(api_client).create_launcher(new_launcher_request) - print("The response of LaunchersApi->create_launcher:\n") - pprint(results) - except Exception as e: - print("Exception when calling LaunchersApi->create_launcher: %s\n" % e) + try: + # Create launcher + new_launcher_request = LauncherRequest.from_json(launcher_request) + results = LaunchersApi(api_client).create_launcher(launcher_request=new_launcher_request) + # Below is a request that includes all optional parameters + # results = LaunchersApi(api_client).create_launcher(new_launcher_request) + print("The response of LaunchersApi->create_launcher:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling LaunchersApi->create_launcher: %s\n" % e) - path: /launchers/{launcherID} method: DELETE xCodeSample: @@ -7702,21 +7462,20 @@ source: | from sailpoint.beta.api.launchers_api import LaunchersApi from sailpoint.beta.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - launcher_id = 'e3012408-8b61-4564-ad41-c5ec131c325b' # str | ID of the Launcher to be deleted # str | ID of the Launcher to be deleted - try: - # Delete Launcher - - LaunchersApi(api_client).delete_launcher(launcher_id=launcher_id) - # Below is a request that includes all optional parameters - # LaunchersApi(api_client).delete_launcher(launcher_id) - except Exception as e: - print("Exception when calling LaunchersApi->delete_launcher: %s\n" % e) + launcher_id = 'e3012408-8b61-4564-ad41-c5ec131c325b' # str | ID of the Launcher to be deleted # str | ID of the Launcher to be deleted + try: + # Delete Launcher + + LaunchersApi(api_client).delete_launcher(launcher_id=launcher_id) + # Below is a request that includes all optional parameters + # LaunchersApi(api_client).delete_launcher(launcher_id) + except Exception as e: + print("Exception when calling LaunchersApi->delete_launcher: %s\n" % e) - path: /launchers/{launcherID} method: GET xCodeSample: @@ -7726,23 +7485,22 @@ from sailpoint.beta.api.launchers_api import LaunchersApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.launcher import Launcher - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - launcher_id = 'e3012408-8b61-4564-ad41-c5ec131c325b' # str | ID of the Launcher to be retrieved # str | ID of the Launcher to be retrieved - try: - # Get Launcher by ID - - results = LaunchersApi(api_client).get_launcher(launcher_id=launcher_id) - # Below is a request that includes all optional parameters - # results = LaunchersApi(api_client).get_launcher(launcher_id) - print("The response of LaunchersApi->get_launcher:\n") - pprint(results) - except Exception as e: - print("Exception when calling LaunchersApi->get_launcher: %s\n" % e) + launcher_id = 'e3012408-8b61-4564-ad41-c5ec131c325b' # str | ID of the Launcher to be retrieved # str | ID of the Launcher to be retrieved + try: + # Get Launcher by ID + + results = LaunchersApi(api_client).get_launcher(launcher_id=launcher_id) + # Below is a request that includes all optional parameters + # results = LaunchersApi(api_client).get_launcher(launcher_id) + print("The response of LaunchersApi->get_launcher:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling LaunchersApi->get_launcher: %s\n" % e) - path: /launchers method: GET xCodeSample: @@ -7752,25 +7510,24 @@ from sailpoint.beta.api.launchers_api import LaunchersApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.get_launchers200_response import GetLaunchers200Response - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - filters = 'disabled eq \"true\"' # 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: **description**: *sw* **disabled**: *eq* **name**: *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: **description**: *sw* **disabled**: *eq* **name**: *sw* (optional) - next = 'eyJuZXh0IjoxMjN9Cg==' # str | Pagination marker (optional) # str | Pagination marker (optional) - limit = 10 # int | Number of Launchers to return (optional) (default to 10) # int | Number of Launchers to return (optional) (default to 10) - try: - # List all Launchers for tenant - - results = LaunchersApi(api_client).get_launchers() - # Below is a request that includes all optional parameters - # results = LaunchersApi(api_client).get_launchers(filters, next, limit) - print("The response of LaunchersApi->get_launchers:\n") - pprint(results) - except Exception as e: - print("Exception when calling LaunchersApi->get_launchers: %s\n" % e) + filters = 'disabled eq \"true\"' # 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: **description**: *sw* **disabled**: *eq* **name**: *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: **description**: *sw* **disabled**: *eq* **name**: *sw* (optional) + next = 'eyJuZXh0IjoxMjN9Cg==' # str | Pagination marker (optional) # str | Pagination marker (optional) + limit = 10 # int | Number of Launchers to return (optional) (default to 10) # int | Number of Launchers to return (optional) (default to 10) + try: + # List all Launchers for tenant + + results = LaunchersApi(api_client).get_launchers() + # Below is a request that includes all optional parameters + # results = LaunchersApi(api_client).get_launchers(filters, next, limit) + print("The response of LaunchersApi->get_launchers:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling LaunchersApi->get_launchers: %s\n" % e) - path: /launchers/{launcherID} method: PUT xCodeSample: @@ -7781,14 +7538,13 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.launcher import Launcher from sailpoint.beta.models.launcher_request import LauncherRequest - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - launcher_id = 'e3012408-8b61-4564-ad41-c5ec131c325b' # str | ID of the Launcher to be replaced # str | ID of the Launcher to be replaced - launcher_request = '''{ + launcher_id = 'e3012408-8b61-4564-ad41-c5ec131c325b' # str | ID of the Launcher to be replaced # str | ID of the Launcher to be replaced + launcher_request = '''{ "reference" : { "id" : "2fd6ff94-2081-4d29-acbc-83a0a2f744a5", "type" : "WORKFLOW" @@ -7799,16 +7555,16 @@ "type" : "INTERACTIVE_PROCESS", "config" : "{\"workflowId\" : \"6b42d9be-61b6-46af-827e-ea29ba8aa3d9\"}" }''' # LauncherRequest | Payload to replace Launcher - try: - # Replace Launcher - new_launcher_request = LauncherRequest.from_json(launcher_request) - results = LaunchersApi(api_client).put_launcher(launcher_id=launcher_id, launcher_request=new_launcher_request) - # Below is a request that includes all optional parameters - # results = LaunchersApi(api_client).put_launcher(launcher_id, new_launcher_request) - print("The response of LaunchersApi->put_launcher:\n") - pprint(results) - except Exception as e: - print("Exception when calling LaunchersApi->put_launcher: %s\n" % e) + try: + # Replace Launcher + new_launcher_request = LauncherRequest.from_json(launcher_request) + results = LaunchersApi(api_client).put_launcher(launcher_id=launcher_id, launcher_request=new_launcher_request) + # Below is a request that includes all optional parameters + # results = LaunchersApi(api_client).put_launcher(launcher_id, new_launcher_request) + print("The response of LaunchersApi->put_launcher:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling LaunchersApi->put_launcher: %s\n" % e) - path: /beta/launchers/{launcherID}/launch method: POST xCodeSample: @@ -7818,23 +7574,22 @@ from sailpoint.beta.api.launchers_api import LaunchersApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.start_launcher200_response import StartLauncher200Response - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - launcher_id = 'e3012408-8b61-4564-ad41-c5ec131c325b' # str | ID of the Launcher to be launched # str | ID of the Launcher to be launched - try: - # Launch a Launcher - - results = LaunchersApi(api_client).start_launcher(launcher_id=launcher_id) - # Below is a request that includes all optional parameters - # results = LaunchersApi(api_client).start_launcher(launcher_id) - print("The response of LaunchersApi->start_launcher:\n") - pprint(results) - except Exception as e: - print("Exception when calling LaunchersApi->start_launcher: %s\n" % e) + launcher_id = 'e3012408-8b61-4564-ad41-c5ec131c325b' # str | ID of the Launcher to be launched # str | ID of the Launcher to be launched + try: + # Launch a Launcher + + results = LaunchersApi(api_client).start_launcher(launcher_id=launcher_id) + # Below is a request that includes all optional parameters + # results = LaunchersApi(api_client).start_launcher(launcher_id) + print("The response of LaunchersApi->start_launcher:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling LaunchersApi->start_launcher: %s\n" % e) - path: /identity-profiles/{identity-profile-id}/lifecycle-states/{lifecycle-state-id} method: GET xCodeSample: @@ -7844,24 +7599,23 @@ from sailpoint.beta.api.lifecycle_states_api import LifecycleStatesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.lifecycle_state import LifecycleState - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - identity_profile_id = '2b838de9-db9b-abcf-e646-d4f274ad4238' # str | Identity Profile ID. # str | Identity Profile ID. - lifecycle_state_id = 'ef38f94347e94562b5bb8424a56397d8' # str | Lifecycle State ID. # str | Lifecycle State ID. - try: - # Get Lifecycle State - - results = LifecycleStatesApi(api_client).get_lifecycle_states(identity_profile_id=identity_profile_id, lifecycle_state_id=lifecycle_state_id) - # Below is a request that includes all optional parameters - # results = LifecycleStatesApi(api_client).get_lifecycle_states(identity_profile_id, lifecycle_state_id) - print("The response of LifecycleStatesApi->get_lifecycle_states:\n") - pprint(results) - except Exception as e: - print("Exception when calling LifecycleStatesApi->get_lifecycle_states: %s\n" % e) + identity_profile_id = '2b838de9-db9b-abcf-e646-d4f274ad4238' # str | Identity Profile ID. # str | Identity Profile ID. + lifecycle_state_id = 'ef38f94347e94562b5bb8424a56397d8' # str | Lifecycle State ID. # str | Lifecycle State ID. + try: + # Get Lifecycle State + + results = LifecycleStatesApi(api_client).get_lifecycle_states(identity_profile_id=identity_profile_id, lifecycle_state_id=lifecycle_state_id) + # Below is a request that includes all optional parameters + # results = LifecycleStatesApi(api_client).get_lifecycle_states(identity_profile_id, lifecycle_state_id) + print("The response of LifecycleStatesApi->get_lifecycle_states:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling LifecycleStatesApi->get_lifecycle_states: %s\n" % e) - path: /identity-profiles/{identity-profile-id}/lifecycle-states/{lifecycle-state-id} method: PATCH xCodeSample: @@ -7872,25 +7626,24 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.json_patch_operation import JsonPatchOperation from sailpoint.beta.models.lifecycle_state import LifecycleState - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - identity_profile_id = '2b838de9-db9b-abcf-e646-d4f274ad4238' # str | Identity Profile ID. # str | Identity Profile ID. - lifecycle_state_id = 'ef38f94347e94562b5bb8424a56397d8' # str | Lifecycle State ID. # str | Lifecycle State ID. - json_patch_operation = '''[{op=replace, path=/description, value=Updated description!}, {op=replace, path=/accessProfileIds, value=[2c918087742bab150174407a80f3125e, 2c918087742bab150174407a80f3124f]}, {op=replace, path=/accountActions, value=[{action=ENABLE, sourceIds=[2c9180846a2f82fb016a481c1b1560c5, 2c9180846a2f82fb016a481c1b1560cc]}, {action=DISABLE, sourceIds=[2c91808869a0c9980169a207258513fb]}]}, {op=replace, path=/emailNotificationOption, value={notifyManagers=true, notifyAllAdmins=false, notifySpecificUsers=false, emailAddressList=[]}}]''' # List[JsonPatchOperation] | A list of lifecycle state update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields can be updated: * enabled * description * accountActions * accessProfileIds * emailNotificationOption - try: - # Update Lifecycle State - new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) - results = LifecycleStatesApi(api_client).update_lifecycle_states(identity_profile_id=identity_profile_id, lifecycle_state_id=lifecycle_state_id, json_patch_operation=new_json_patch_operation) - # Below is a request that includes all optional parameters - # results = LifecycleStatesApi(api_client).update_lifecycle_states(identity_profile_id, lifecycle_state_id, new_json_patch_operation) - print("The response of LifecycleStatesApi->update_lifecycle_states:\n") - pprint(results) - except Exception as e: - print("Exception when calling LifecycleStatesApi->update_lifecycle_states: %s\n" % e) + identity_profile_id = '2b838de9-db9b-abcf-e646-d4f274ad4238' # str | Identity Profile ID. # str | Identity Profile ID. + lifecycle_state_id = 'ef38f94347e94562b5bb8424a56397d8' # str | Lifecycle State ID. # str | Lifecycle State ID. + json_patch_operation = '''[{op=replace, path=/description, value=Updated description!}, {op=replace, path=/accessProfileIds, value=[2c918087742bab150174407a80f3125e, 2c918087742bab150174407a80f3124f]}, {op=replace, path=/accountActions, value=[{action=ENABLE, sourceIds=[2c9180846a2f82fb016a481c1b1560c5, 2c9180846a2f82fb016a481c1b1560cc]}, {action=DISABLE, sourceIds=[2c91808869a0c9980169a207258513fb]}]}, {op=replace, path=/emailNotificationOption, value={notifyManagers=true, notifyAllAdmins=false, notifySpecificUsers=false, emailAddressList=[]}}]''' # List[JsonPatchOperation] | A list of lifecycle state update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields can be updated: * enabled * description * accountActions * accessProfileIds * emailNotificationOption + try: + # Update Lifecycle State + new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) + results = LifecycleStatesApi(api_client).update_lifecycle_states(identity_profile_id=identity_profile_id, lifecycle_state_id=lifecycle_state_id, json_patch_operation=new_json_patch_operation) + # Below is a request that includes all optional parameters + # results = LifecycleStatesApi(api_client).update_lifecycle_states(identity_profile_id, lifecycle_state_id, new_json_patch_operation) + print("The response of LifecycleStatesApi->update_lifecycle_states:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling LifecycleStatesApi->update_lifecycle_states: %s\n" % e) - path: /managed-clients/{id}/status method: GET xCodeSample: @@ -7901,24 +7654,23 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.managed_client_status import ManagedClientStatus from sailpoint.beta.models.managed_client_type import ManagedClientType - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'aClientId' # str | ID of the Managed Client Status to get # str | ID of the Managed Client Status to get - type = sailpoint.beta.ManagedClientType() # ManagedClientType | Type of the Managed Client Status to get # ManagedClientType | Type of the Managed Client Status to get - try: - # Specified Managed Client Status. - - results = ManagedClientsApi(api_client).get_managed_client_status(id=id, type=type) - # Below is a request that includes all optional parameters - # results = ManagedClientsApi(api_client).get_managed_client_status(id, type) - print("The response of ManagedClientsApi->get_managed_client_status:\n") - pprint(results) - except Exception as e: - print("Exception when calling ManagedClientsApi->get_managed_client_status: %s\n" % e) + id = 'aClientId' # str | ID of the Managed Client Status to get # str | ID of the Managed Client Status to get + type = sailpoint.beta.ManagedClientType() # ManagedClientType | Type of the Managed Client Status to get # ManagedClientType | Type of the Managed Client Status to get + try: + # Specified Managed Client Status. + + results = ManagedClientsApi(api_client).get_managed_client_status(id=id, type=type) + # Below is a request that includes all optional parameters + # results = ManagedClientsApi(api_client).get_managed_client_status(id, type) + print("The response of ManagedClientsApi->get_managed_client_status:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ManagedClientsApi->get_managed_client_status: %s\n" % e) - path: /managed-clients/{id}/status method: POST xCodeSample: @@ -7929,14 +7681,13 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.managed_client_status import ManagedClientStatus from sailpoint.beta.models.managed_client_status_agg_response import ManagedClientStatusAggResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'aClientId' # str | ID of the Managed Client Status to update # str | ID of the Managed Client Status to update - managed_client_status = '''{ + id = 'aClientId' # str | ID of the Managed Client Status to update # str | ID of the Managed Client Status to update + managed_client_status = '''{ "body" : { "alertKey" : "", "id" : "5678", @@ -7962,16 +7713,16 @@ "status" : "NORMAL", "timestamp" : "2020-01-01T00:00:00Z" }''' # ManagedClientStatus | - try: - # Handle status request from client - new_managed_client_status = ManagedClientStatus.from_json(managed_client_status) - results = ManagedClientsApi(api_client).update_managed_client_status(id=id, managed_client_status=new_managed_client_status) - # Below is a request that includes all optional parameters - # results = ManagedClientsApi(api_client).update_managed_client_status(id, new_managed_client_status) - print("The response of ManagedClientsApi->update_managed_client_status:\n") - pprint(results) - except Exception as e: - print("Exception when calling ManagedClientsApi->update_managed_client_status: %s\n" % e) + try: + # Handle status request from client + new_managed_client_status = ManagedClientStatus.from_json(managed_client_status) + results = ManagedClientsApi(api_client).update_managed_client_status(id=id, managed_client_status=new_managed_client_status) + # Below is a request that includes all optional parameters + # results = ManagedClientsApi(api_client).update_managed_client_status(id, new_managed_client_status) + print("The response of ManagedClientsApi->update_managed_client_status:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ManagedClientsApi->update_managed_client_status: %s\n" % e) - path: /managed-clusters/{id}/log-config method: GET xCodeSample: @@ -7981,23 +7732,22 @@ from sailpoint.beta.api.managed_clusters_api import ManagedClustersApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.client_log_configuration import ClientLogConfiguration - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'aClusterId' # str | ID of ManagedCluster to get log configuration for # str | ID of ManagedCluster to get log configuration for - try: - # Get managed cluster's log configuration - - results = ManagedClustersApi(api_client).get_client_log_configuration(id=id) - # Below is a request that includes all optional parameters - # results = ManagedClustersApi(api_client).get_client_log_configuration(id) - print("The response of ManagedClustersApi->get_client_log_configuration:\n") - pprint(results) - except Exception as e: - print("Exception when calling ManagedClustersApi->get_client_log_configuration: %s\n" % e) + id = 'aClusterId' # str | ID of ManagedCluster to get log configuration for # str | ID of ManagedCluster to get log configuration for + try: + # Get managed cluster's log configuration + + results = ManagedClustersApi(api_client).get_client_log_configuration(id=id) + # Below is a request that includes all optional parameters + # results = ManagedClustersApi(api_client).get_client_log_configuration(id) + print("The response of ManagedClustersApi->get_client_log_configuration:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ManagedClustersApi->get_client_log_configuration: %s\n" % e) - path: /managed-clusters/{id} method: GET xCodeSample: @@ -8007,23 +7757,22 @@ from sailpoint.beta.api.managed_clusters_api import ManagedClustersApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.managed_cluster import ManagedCluster - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'aClusterId' # str | ID of the ManagedCluster to get # str | ID of the ManagedCluster to get - try: - # Get a specified ManagedCluster. - - results = ManagedClustersApi(api_client).get_managed_cluster(id=id) - # Below is a request that includes all optional parameters - # results = ManagedClustersApi(api_client).get_managed_cluster(id) - print("The response of ManagedClustersApi->get_managed_cluster:\n") - pprint(results) - except Exception as e: - print("Exception when calling ManagedClustersApi->get_managed_cluster: %s\n" % e) + id = 'aClusterId' # str | ID of the ManagedCluster to get # str | ID of the ManagedCluster to get + try: + # Get a specified ManagedCluster. + + results = ManagedClustersApi(api_client).get_managed_cluster(id=id) + # Below is a request that includes all optional parameters + # results = ManagedClustersApi(api_client).get_managed_cluster(id) + print("The response of ManagedClustersApi->get_managed_cluster:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ManagedClustersApi->get_managed_cluster: %s\n" % e) - path: /managed-clusters method: GET xCodeSample: @@ -8033,26 +7782,25 @@ from sailpoint.beta.api.managed_clusters_api import ManagedClustersApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.managed_cluster import ManagedCluster - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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) - 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) - 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 = 'operational eq operation' # 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: **operational**: *eq* (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: **operational**: *eq* (optional) - try: - # Retrieve all Managed Clusters. - - results = ManagedClustersApi(api_client).get_managed_clusters() - # Below is a request that includes all optional parameters - # results = ManagedClustersApi(api_client).get_managed_clusters(offset, limit, count, filters) - print("The response of ManagedClustersApi->get_managed_clusters:\n") - pprint(results) - except Exception as e: - print("Exception when calling ManagedClustersApi->get_managed_clusters: %s\n" % e) + 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) + 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) + 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 = 'operational eq operation' # 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: **operational**: *eq* (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: **operational**: *eq* (optional) + try: + # Retrieve all Managed Clusters. + + results = ManagedClustersApi(api_client).get_managed_clusters() + # Below is a request that includes all optional parameters + # results = ManagedClustersApi(api_client).get_managed_clusters(offset, limit, count, filters) + print("The response of ManagedClustersApi->get_managed_clusters:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ManagedClustersApi->get_managed_clusters: %s\n" % e) - path: /managed-clusters/{id}/log-config method: PUT xCodeSample: @@ -8062,30 +7810,29 @@ from sailpoint.beta.api.managed_clusters_api import ManagedClustersApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.client_log_configuration import ClientLogConfiguration - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'aClusterId' # str | ID of ManagedCluster to update log configuration for # str | ID of ManagedCluster to update log configuration for - client_log_configuration = '''{ + id = 'aClusterId' # str | ID of ManagedCluster to update log configuration for # str | ID of ManagedCluster to update log configuration for + client_log_configuration = '''{ "durationMinutes" : 120, "rootLevel" : "INFO", "clientId" : "aClientId", "expiration" : "2020-12-15T19:13:36.079Z", "logLevels" : "INFO" }''' # ClientLogConfiguration | ClientLogConfiguration for given ManagedCluster - try: - # Update managed cluster's log configuration - - results = ManagedClustersApi(api_client).put_client_log_configuration(id=id, client_log_configuration=new_client_log_configuration) - # Below is a request that includes all optional parameters - # results = ManagedClustersApi(api_client).put_client_log_configuration(id, new_client_log_configuration) - print("The response of ManagedClustersApi->put_client_log_configuration:\n") - pprint(results) - except Exception as e: - print("Exception when calling ManagedClustersApi->put_client_log_configuration: %s\n" % e) + try: + # Update managed cluster's log configuration + + results = ManagedClustersApi(api_client).put_client_log_configuration(id=id, client_log_configuration=new_client_log_configuration) + # Below is a request that includes all optional parameters + # results = ManagedClustersApi(api_client).put_client_log_configuration(id, new_client_log_configuration) + print("The response of ManagedClustersApi->put_client_log_configuration:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ManagedClustersApi->put_client_log_configuration: %s\n" % e) - path: /mfa/{method}/delete method: DELETE xCodeSample: @@ -8095,23 +7842,22 @@ from sailpoint.beta.api.mfa_configuration_api import MFAConfigurationApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.mfa_okta_config import MfaOktaConfig - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - method = 'okta-verify' # str | The name of the MFA method. The currently supported method names are 'okta-verify' and 'duo-web'. # str | The name of the MFA method. The currently supported method names are 'okta-verify' and 'duo-web'. - try: - # Delete MFA method configuration - - results = MFAConfigurationApi(api_client).delete_mfa_config(method=method) - # Below is a request that includes all optional parameters - # results = MFAConfigurationApi(api_client).delete_mfa_config(method) - print("The response of MFAConfigurationApi->delete_mfa_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling MFAConfigurationApi->delete_mfa_config: %s\n" % e) + method = 'okta-verify' # str | The name of the MFA method. The currently supported method names are 'okta-verify' and 'duo-web'. # str | The name of the MFA method. The currently supported method names are 'okta-verify' and 'duo-web'. + try: + # Delete MFA method configuration + + results = MFAConfigurationApi(api_client).delete_mfa_config(method=method) + # Below is a request that includes all optional parameters + # results = MFAConfigurationApi(api_client).delete_mfa_config(method) + print("The response of MFAConfigurationApi->delete_mfa_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling MFAConfigurationApi->delete_mfa_config: %s\n" % e) - path: /mfa/duo-web/config method: GET xCodeSample: @@ -8121,22 +7867,21 @@ from sailpoint.beta.api.mfa_configuration_api import MFAConfigurationApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.mfa_duo_config import MfaDuoConfig - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - try: - # Configuration of Duo MFA method - - results = MFAConfigurationApi(api_client).get_mfa_duo_config() - # Below is a request that includes all optional parameters - # results = MFAConfigurationApi(api_client).get_mfa_duo_config() - print("The response of MFAConfigurationApi->get_mfa_duo_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling MFAConfigurationApi->get_mfa_duo_config: %s\n" % e) + try: + # Configuration of Duo MFA method + + results = MFAConfigurationApi(api_client).get_mfa_duo_config() + # Below is a request that includes all optional parameters + # results = MFAConfigurationApi(api_client).get_mfa_duo_config() + print("The response of MFAConfigurationApi->get_mfa_duo_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling MFAConfigurationApi->get_mfa_duo_config: %s\n" % e) - path: /mfa/kba/config method: GET xCodeSample: @@ -8146,23 +7891,22 @@ from sailpoint.beta.api.mfa_configuration_api import MFAConfigurationApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.kba_question import KbaQuestion - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - all_languages = allLanguages=true # bool | Indicator whether the question text should be returned in all configured languages * If true, the question text is returned in all languages that it is configured in. * If false, the question text is returned in the user locale if available, else for the default locale. * If not passed, it behaves the same way as passing this parameter as false (optional) # bool | Indicator whether the question text should be returned in all configured languages * If true, the question text is returned in all languages that it is configured in. * If false, the question text is returned in the user locale if available, else for the default locale. * If not passed, it behaves the same way as passing this parameter as false (optional) - try: - # Configuration of KBA MFA method - - results = MFAConfigurationApi(api_client).get_mfa_kba_config() - # Below is a request that includes all optional parameters - # results = MFAConfigurationApi(api_client).get_mfa_kba_config(all_languages) - print("The response of MFAConfigurationApi->get_mfa_kba_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling MFAConfigurationApi->get_mfa_kba_config: %s\n" % e) + all_languages = allLanguages=true # bool | Indicator whether the question text should be returned in all configured languages * If true, the question text is returned in all languages that it is configured in. * If false, the question text is returned in the user locale if available, else for the default locale. * If not passed, it behaves the same way as passing this parameter as false (optional) # bool | Indicator whether the question text should be returned in all configured languages * If true, the question text is returned in all languages that it is configured in. * If false, the question text is returned in the user locale if available, else for the default locale. * If not passed, it behaves the same way as passing this parameter as false (optional) + try: + # Configuration of KBA MFA method + + results = MFAConfigurationApi(api_client).get_mfa_kba_config() + # Below is a request that includes all optional parameters + # results = MFAConfigurationApi(api_client).get_mfa_kba_config(all_languages) + print("The response of MFAConfigurationApi->get_mfa_kba_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling MFAConfigurationApi->get_mfa_kba_config: %s\n" % e) - path: /mfa/okta-verify/config method: GET xCodeSample: @@ -8172,22 +7916,21 @@ from sailpoint.beta.api.mfa_configuration_api import MFAConfigurationApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.mfa_okta_config import MfaOktaConfig - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - try: - # Configuration of Okta MFA method - - results = MFAConfigurationApi(api_client).get_mfa_okta_config() - # Below is a request that includes all optional parameters - # results = MFAConfigurationApi(api_client).get_mfa_okta_config() - print("The response of MFAConfigurationApi->get_mfa_okta_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling MFAConfigurationApi->get_mfa_okta_config: %s\n" % e) + try: + # Configuration of Okta MFA method + + results = MFAConfigurationApi(api_client).get_mfa_okta_config() + # Below is a request that includes all optional parameters + # results = MFAConfigurationApi(api_client).get_mfa_okta_config() + print("The response of MFAConfigurationApi->get_mfa_okta_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling MFAConfigurationApi->get_mfa_okta_config: %s\n" % e) - path: /mfa/duo-web/config method: PUT xCodeSample: @@ -8197,13 +7940,12 @@ from sailpoint.beta.api.mfa_configuration_api import MFAConfigurationApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.mfa_duo_config import MfaDuoConfig - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - mfa_duo_config = '''{ + mfa_duo_config = '''{ "accessKey" : "qw123Y3QlA5UqocYpdU3rEkzrK2D497y", "host" : "example.com", "configProperties" : { @@ -8214,16 +7956,16 @@ "enabled" : true, "identityAttribute" : "email" }''' # MfaDuoConfig | - try: - # Set Duo MFA configuration - new_mfa_duo_config = MfaDuoConfig.from_json(mfa_duo_config) - results = MFAConfigurationApi(api_client).set_mfa_duo_config(mfa_duo_config=new_mfa_duo_config) - # Below is a request that includes all optional parameters - # results = MFAConfigurationApi(api_client).set_mfa_duo_config(new_mfa_duo_config) - print("The response of MFAConfigurationApi->set_mfa_duo_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling MFAConfigurationApi->set_mfa_duo_config: %s\n" % e) + try: + # Set Duo MFA configuration + new_mfa_duo_config = MfaDuoConfig.from_json(mfa_duo_config) + results = MFAConfigurationApi(api_client).set_mfa_duo_config(mfa_duo_config=new_mfa_duo_config) + # Below is a request that includes all optional parameters + # results = MFAConfigurationApi(api_client).set_mfa_duo_config(new_mfa_duo_config) + print("The response of MFAConfigurationApi->set_mfa_duo_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling MFAConfigurationApi->set_mfa_duo_config: %s\n" % e) - path: /mfa/okta-verify/config method: PUT xCodeSample: @@ -8233,29 +7975,28 @@ from sailpoint.beta.api.mfa_configuration_api import MFAConfigurationApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.mfa_okta_config import MfaOktaConfig - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - mfa_okta_config = '''{ + mfa_okta_config = '''{ "accessKey" : "qw123Y3QlA5UqocYpdU3rEkzrK2D497y", "host" : "example.com", "mfaMethod" : "okta-verify", "enabled" : true, "identityAttribute" : "email" }''' # MfaOktaConfig | - try: - # Set Okta MFA configuration - new_mfa_okta_config = MfaOktaConfig.from_json(mfa_okta_config) - results = MFAConfigurationApi(api_client).set_mfa_okta_config(mfa_okta_config=new_mfa_okta_config) - # Below is a request that includes all optional parameters - # results = MFAConfigurationApi(api_client).set_mfa_okta_config(new_mfa_okta_config) - print("The response of MFAConfigurationApi->set_mfa_okta_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling MFAConfigurationApi->set_mfa_okta_config: %s\n" % e) + try: + # Set Okta MFA configuration + new_mfa_okta_config = MfaOktaConfig.from_json(mfa_okta_config) + results = MFAConfigurationApi(api_client).set_mfa_okta_config(mfa_okta_config=new_mfa_okta_config) + # Below is a request that includes all optional parameters + # results = MFAConfigurationApi(api_client).set_mfa_okta_config(new_mfa_okta_config) + print("The response of MFAConfigurationApi->set_mfa_okta_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling MFAConfigurationApi->set_mfa_okta_config: %s\n" % e) - path: /mfa/kba/config/answers method: POST xCodeSample: @@ -8266,23 +8007,22 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.kba_answer_request_item import KbaAnswerRequestItem from sailpoint.beta.models.kba_answer_response_item import KbaAnswerResponseItem - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - kba_answer_request_item = '''[{id=173423, answer=822cd15d6c15aa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a0859a2fea34}, {id=c54fee53-2d63-4fc5-9259-3e93b9994135, answer=9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08}]''' # List[KbaAnswerRequestItem] | - try: - # Set MFA KBA configuration - new_kba_answer_request_item = KbaAnswerRequestItem.from_json(kba_answer_request_item) - results = MFAConfigurationApi(api_client).set_mfakba_config(kba_answer_request_item=new_kba_answer_request_item) - # Below is a request that includes all optional parameters - # results = MFAConfigurationApi(api_client).set_mfakba_config(new_kba_answer_request_item) - print("The response of MFAConfigurationApi->set_mfakba_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling MFAConfigurationApi->set_mfakba_config: %s\n" % e) + kba_answer_request_item = '''[{id=173423, answer=822cd15d6c15aa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a0859a2fea34}, {id=c54fee53-2d63-4fc5-9259-3e93b9994135, answer=9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08}]''' # List[KbaAnswerRequestItem] | + try: + # Set MFA KBA configuration + new_kba_answer_request_item = KbaAnswerRequestItem.from_json(kba_answer_request_item) + results = MFAConfigurationApi(api_client).set_mfakba_config(kba_answer_request_item=new_kba_answer_request_item) + # Below is a request that includes all optional parameters + # results = MFAConfigurationApi(api_client).set_mfakba_config(new_kba_answer_request_item) + print("The response of MFAConfigurationApi->set_mfakba_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling MFAConfigurationApi->set_mfakba_config: %s\n" % e) - path: /mfa/{method}/test method: GET xCodeSample: @@ -8292,23 +8032,22 @@ from sailpoint.beta.api.mfa_configuration_api import MFAConfigurationApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.mfa_config_test_response import MfaConfigTestResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - method = 'okta-verify' # str | The name of the MFA method. The currently supported method names are 'okta-verify' and 'duo-web'. # str | The name of the MFA method. The currently supported method names are 'okta-verify' and 'duo-web'. - try: - # MFA method's test configuration - - results = MFAConfigurationApi(api_client).test_mfa_config(method=method) - # Below is a request that includes all optional parameters - # results = MFAConfigurationApi(api_client).test_mfa_config(method) - print("The response of MFAConfigurationApi->test_mfa_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling MFAConfigurationApi->test_mfa_config: %s\n" % e) + method = 'okta-verify' # str | The name of the MFA method. The currently supported method names are 'okta-verify' and 'duo-web'. # str | The name of the MFA method. The currently supported method names are 'okta-verify' and 'duo-web'. + try: + # MFA method's test configuration + + results = MFAConfigurationApi(api_client).test_mfa_config(method=method) + # Below is a request that includes all optional parameters + # results = MFAConfigurationApi(api_client).test_mfa_config(method) + print("The response of MFAConfigurationApi->test_mfa_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling MFAConfigurationApi->test_mfa_config: %s\n" % e) - path: /mfa/token/send method: POST xCodeSample: @@ -8319,26 +8058,25 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.send_token_request import SendTokenRequest from sailpoint.beta.models.send_token_response import SendTokenResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - send_token_request = '''{ + send_token_request = '''{ "userAlias" : "will.albin", "deliveryType" : "EMAIL_WORK" }''' # SendTokenRequest | - try: - # Create and send user token - new_send_token_request = SendTokenRequest.from_json(send_token_request) - results = MFAControllerApi(api_client).create_send_token(send_token_request=new_send_token_request) - # Below is a request that includes all optional parameters - # results = MFAControllerApi(api_client).create_send_token(new_send_token_request) - print("The response of MFAControllerApi->create_send_token:\n") - pprint(results) - except Exception as e: - print("Exception when calling MFAControllerApi->create_send_token: %s\n" % e) + try: + # Create and send user token + new_send_token_request = SendTokenRequest.from_json(send_token_request) + results = MFAControllerApi(api_client).create_send_token(send_token_request=new_send_token_request) + # Below is a request that includes all optional parameters + # results = MFAControllerApi(api_client).create_send_token(new_send_token_request) + print("The response of MFAControllerApi->create_send_token:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling MFAControllerApi->create_send_token: %s\n" % e) - path: /mfa/{method}/poll method: POST xCodeSample: @@ -8349,26 +8087,25 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.verification_poll_request import VerificationPollRequest from sailpoint.beta.models.verification_response import VerificationResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - method = 'okta-verify' # str | The name of the MFA method. The currently supported method names are 'okta-verify', 'duo-web', 'kba','token', 'rsa' # str | The name of the MFA method. The currently supported method names are 'okta-verify', 'duo-web', 'kba','token', 'rsa' - verification_poll_request = '''{ + method = 'okta-verify' # str | The name of the MFA method. The currently supported method names are 'okta-verify', 'duo-web', 'kba','token', 'rsa' # str | The name of the MFA method. The currently supported method names are 'okta-verify', 'duo-web', 'kba','token', 'rsa' + verification_poll_request = '''{ "requestId" : "089899f13a8f4da7824996191587bab9" }''' # VerificationPollRequest | - try: - # Polling MFA method by VerificationPollRequest - new_verification_poll_request = VerificationPollRequest.from_json(verification_poll_request) - results = MFAControllerApi(api_client).ping_verification_status(method=method, verification_poll_request=new_verification_poll_request) - # Below is a request that includes all optional parameters - # results = MFAControllerApi(api_client).ping_verification_status(method, new_verification_poll_request) - print("The response of MFAControllerApi->ping_verification_status:\n") - pprint(results) - except Exception as e: - print("Exception when calling MFAControllerApi->ping_verification_status: %s\n" % e) + try: + # Polling MFA method by VerificationPollRequest + new_verification_poll_request = VerificationPollRequest.from_json(verification_poll_request) + results = MFAControllerApi(api_client).ping_verification_status(method=method, verification_poll_request=new_verification_poll_request) + # Below is a request that includes all optional parameters + # results = MFAControllerApi(api_client).ping_verification_status(method, new_verification_poll_request) + print("The response of MFAControllerApi->ping_verification_status:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling MFAControllerApi->ping_verification_status: %s\n" % e) - path: /mfa/duo-web/verify method: POST xCodeSample: @@ -8379,26 +8116,25 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.duo_verification_request import DuoVerificationRequest from sailpoint.beta.models.verification_response import VerificationResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - duo_verification_request = '''{ + duo_verification_request = '''{ "signedResponse" : "AUTH|d2lsbC5hbGJpbnxESTZNMFpHSThKQVRWTVpZN0M5VXwxNzAxMjUzMDg5|f1f5f8ced5b340f3d303b05d0efa0e43b6a8f970:APP|d2lsbC5hbGJpbnxESTZNMFpHSThKQVRWTVpZN0M5VXwxNzAxMjU2NjE5|cb44cf44353f5127edcae31b1da0355f87357db2", "userId" : "2c9180947f0ef465017f215cbcfd004b" }''' # DuoVerificationRequest | - try: - # Verifying authentication via Duo method - new_duo_verification_request = DuoVerificationRequest.from_json(duo_verification_request) - results = MFAControllerApi(api_client).send_duo_verify_request(duo_verification_request=new_duo_verification_request) - # Below is a request that includes all optional parameters - # results = MFAControllerApi(api_client).send_duo_verify_request(new_duo_verification_request) - print("The response of MFAControllerApi->send_duo_verify_request:\n") - pprint(results) - except Exception as e: - print("Exception when calling MFAControllerApi->send_duo_verify_request: %s\n" % e) + try: + # Verifying authentication via Duo method + new_duo_verification_request = DuoVerificationRequest.from_json(duo_verification_request) + results = MFAControllerApi(api_client).send_duo_verify_request(duo_verification_request=new_duo_verification_request) + # Below is a request that includes all optional parameters + # results = MFAControllerApi(api_client).send_duo_verify_request(new_duo_verification_request) + print("The response of MFAControllerApi->send_duo_verify_request:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling MFAControllerApi->send_duo_verify_request: %s\n" % e) - path: /mfa/kba/authenticate method: POST xCodeSample: @@ -8409,23 +8145,22 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.kba_answer_request_item import KbaAnswerRequestItem from sailpoint.beta.models.kba_auth_response import KbaAuthResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - kba_answer_request_item = '''[{id=173423, answer=822cd15d6c15aa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a0859a2fea34}, {id=c54fee53-2d63-4fc5-9259-3e93b9994135, answer=9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08}]''' # List[KbaAnswerRequestItem] | - try: - # Authenticate KBA provided MFA method - new_kba_answer_request_item = KbaAnswerRequestItem.from_json(kba_answer_request_item) - results = MFAControllerApi(api_client).send_kba_answers(kba_answer_request_item=new_kba_answer_request_item) - # Below is a request that includes all optional parameters - # results = MFAControllerApi(api_client).send_kba_answers(new_kba_answer_request_item) - print("The response of MFAControllerApi->send_kba_answers:\n") - pprint(results) - except Exception as e: - print("Exception when calling MFAControllerApi->send_kba_answers: %s\n" % e) + kba_answer_request_item = '''[{id=173423, answer=822cd15d6c15aa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a0859a2fea34}, {id=c54fee53-2d63-4fc5-9259-3e93b9994135, answer=9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08}]''' # List[KbaAnswerRequestItem] | + try: + # Authenticate KBA provided MFA method + new_kba_answer_request_item = KbaAnswerRequestItem.from_json(kba_answer_request_item) + results = MFAControllerApi(api_client).send_kba_answers(kba_answer_request_item=new_kba_answer_request_item) + # Below is a request that includes all optional parameters + # results = MFAControllerApi(api_client).send_kba_answers(new_kba_answer_request_item) + print("The response of MFAControllerApi->send_kba_answers:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling MFAControllerApi->send_kba_answers: %s\n" % e) - path: /mfa/okta-verify/verify method: POST xCodeSample: @@ -8436,25 +8171,24 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.okta_verification_request import OktaVerificationRequest from sailpoint.beta.models.verification_response import VerificationResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - okta_verification_request = '''{ + okta_verification_request = '''{ "userId" : "example@mail.com" }''' # OktaVerificationRequest | - try: - # Verifying authentication via Okta method - new_okta_verification_request = OktaVerificationRequest.from_json(okta_verification_request) - results = MFAControllerApi(api_client).send_okta_verify_request(okta_verification_request=new_okta_verification_request) - # Below is a request that includes all optional parameters - # results = MFAControllerApi(api_client).send_okta_verify_request(new_okta_verification_request) - print("The response of MFAControllerApi->send_okta_verify_request:\n") - pprint(results) - except Exception as e: - print("Exception when calling MFAControllerApi->send_okta_verify_request: %s\n" % e) + try: + # Verifying authentication via Okta method + new_okta_verification_request = OktaVerificationRequest.from_json(okta_verification_request) + results = MFAControllerApi(api_client).send_okta_verify_request(okta_verification_request=new_okta_verification_request) + # Below is a request that includes all optional parameters + # results = MFAControllerApi(api_client).send_okta_verify_request(new_okta_verification_request) + print("The response of MFAControllerApi->send_okta_verify_request:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling MFAControllerApi->send_okta_verify_request: %s\n" % e) - path: /mfa/token/authenticate method: POST xCodeSample: @@ -8465,27 +8199,26 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.token_auth_request import TokenAuthRequest from sailpoint.beta.models.token_auth_response import TokenAuthResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - token_auth_request = '''{ + token_auth_request = '''{ "userAlias" : "will.albin", "deliveryType" : "EMAIL_WORK", "token" : "12345" }''' # TokenAuthRequest | - try: - # Authenticate Token provided MFA method - new_token_auth_request = TokenAuthRequest.from_json(token_auth_request) - results = MFAControllerApi(api_client).send_token_auth_request(token_auth_request=new_token_auth_request) - # Below is a request that includes all optional parameters - # results = MFAControllerApi(api_client).send_token_auth_request(new_token_auth_request) - print("The response of MFAControllerApi->send_token_auth_request:\n") - pprint(results) - except Exception as e: - print("Exception when calling MFAControllerApi->send_token_auth_request: %s\n" % e) + try: + # Authenticate Token provided MFA method + new_token_auth_request = TokenAuthRequest.from_json(token_auth_request) + results = MFAControllerApi(api_client).send_token_auth_request(token_auth_request=new_token_auth_request) + # Below is a request that includes all optional parameters + # results = MFAControllerApi(api_client).send_token_auth_request(new_token_auth_request) + print("The response of MFAControllerApi->send_token_auth_request:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling MFAControllerApi->send_token_auth_request: %s\n" % e) - path: /multihosts method: POST xCodeSample: @@ -8496,13 +8229,12 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.multi_host_integrations import MultiHostIntegrations from sailpoint.beta.models.multi_host_integrations_create import MultiHostIntegrationsCreate - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - multi_host_integrations_create = '''{ + multi_host_integrations_create = '''{ "owner" : { "name" : "MyName", "id" : "2c91808568c529c60168cca6f90c1313", @@ -8528,16 +8260,16 @@ "description" : "This is the Multi-Host Integration.", "modified" : "2024-01-23T18:08:50.897Z" }''' # MultiHostIntegrationsCreate | The specifics of the Multi-Host Integration to create - try: - # Create Multi-Host Integration - new_multi_host_integrations_create = MultiHostIntegrationsCreate.from_json(multi_host_integrations_create) - results = MultiHostIntegrationApi(api_client).create_multi_host_integration(multi_host_integrations_create=new_multi_host_integrations_create) - # Below is a request that includes all optional parameters - # results = MultiHostIntegrationApi(api_client).create_multi_host_integration(new_multi_host_integrations_create) - print("The response of MultiHostIntegrationApi->create_multi_host_integration:\n") - pprint(results) - except Exception as e: - print("Exception when calling MultiHostIntegrationApi->create_multi_host_integration: %s\n" % e) + try: + # Create Multi-Host Integration + new_multi_host_integrations_create = MultiHostIntegrationsCreate.from_json(multi_host_integrations_create) + results = MultiHostIntegrationApi(api_client).create_multi_host_integration(multi_host_integrations_create=new_multi_host_integrations_create) + # Below is a request that includes all optional parameters + # results = MultiHostIntegrationApi(api_client).create_multi_host_integration(new_multi_host_integrations_create) + print("The response of MultiHostIntegrationApi->create_multi_host_integration:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling MultiHostIntegrationApi->create_multi_host_integration: %s\n" % e) - path: /multihosts/{multihostId} method: POST xCodeSample: @@ -8547,22 +8279,21 @@ from sailpoint.beta.api.multi_host_integration_api import MultiHostIntegrationApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.multi_host_integrations_create_sources import MultiHostIntegrationsCreateSources - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - multihost_id = '2c91808568c529c60168cca6f90c1326' # str | ID of the Multi-Host Integration. # str | ID of the Multi-Host Integration. - multi_host_integrations_create_sources = '''[sailpoint.beta.MultiHostIntegrationsCreateSources()]''' # List[MultiHostIntegrationsCreateSources] | The specifics of the sources to create within Multi-Host Integration. - try: - # Create Sources Within Multi-Host Integration - new_multi_host_integrations_create_sources = MultiHostIntegrationsCreateSources.from_json(multi_host_integrations_create_sources) - MultiHostIntegrationApi(api_client).create_sources_within_multi_host(multihost_id=multihost_id, multi_host_integrations_create_sources=new_multi_host_integrations_create_sources) - # Below is a request that includes all optional parameters - # MultiHostIntegrationApi(api_client).create_sources_within_multi_host(multihost_id, new_multi_host_integrations_create_sources) - except Exception as e: - print("Exception when calling MultiHostIntegrationApi->create_sources_within_multi_host: %s\n" % e) + multihost_id = '2c91808568c529c60168cca6f90c1326' # str | ID of the Multi-Host Integration. # str | ID of the Multi-Host Integration. + multi_host_integrations_create_sources = '''[sailpoint.beta.MultiHostIntegrationsCreateSources()]''' # List[MultiHostIntegrationsCreateSources] | The specifics of the sources to create within Multi-Host Integration. + try: + # Create Sources Within Multi-Host Integration + new_multi_host_integrations_create_sources = MultiHostIntegrationsCreateSources.from_json(multi_host_integrations_create_sources) + MultiHostIntegrationApi(api_client).create_sources_within_multi_host(multihost_id=multihost_id, multi_host_integrations_create_sources=new_multi_host_integrations_create_sources) + # Below is a request that includes all optional parameters + # MultiHostIntegrationApi(api_client).create_sources_within_multi_host(multihost_id, new_multi_host_integrations_create_sources) + except Exception as e: + print("Exception when calling MultiHostIntegrationApi->create_sources_within_multi_host: %s\n" % e) - path: /multihosts/{multihostId} method: DELETE xCodeSample: @@ -8571,21 +8302,20 @@ source: | from sailpoint.beta.api.multi_host_integration_api import MultiHostIntegrationApi from sailpoint.beta.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - multihost_id = '2c91808568c529c60168cca6f90c1326' # str | ID of Multi-Host Integration to delete. # str | ID of Multi-Host Integration to delete. - try: - # Delete Multi-Host Integration - - MultiHostIntegrationApi(api_client).delete_multi_host(multihost_id=multihost_id) - # Below is a request that includes all optional parameters - # MultiHostIntegrationApi(api_client).delete_multi_host(multihost_id) - except Exception as e: - print("Exception when calling MultiHostIntegrationApi->delete_multi_host: %s\n" % e) + multihost_id = '2c91808568c529c60168cca6f90c1326' # str | ID of Multi-Host Integration to delete. # str | ID of Multi-Host Integration to delete. + try: + # Delete Multi-Host Integration + + MultiHostIntegrationApi(api_client).delete_multi_host(multihost_id=multihost_id) + # Below is a request that includes all optional parameters + # MultiHostIntegrationApi(api_client).delete_multi_host(multihost_id) + except Exception as e: + print("Exception when calling MultiHostIntegrationApi->delete_multi_host: %s\n" % e) - path: /multihosts/{multihostId}/acctAggregationGroups method: GET xCodeSample: @@ -8595,23 +8325,22 @@ from sailpoint.beta.api.multi_host_integration_api import MultiHostIntegrationApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.multi_host_integrations_agg_schedule_update import MultiHostIntegrationsAggScheduleUpdate - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - multihost_id = 'aMultiHostId' # str | ID of the Multi-Host Integration to update # str | ID of the Multi-Host Integration to update - try: - # Get Account Aggregation Groups Within Multi-Host Integration ID - - results = MultiHostIntegrationApi(api_client).get_acct_aggregation_groups(multihost_id=multihost_id) - # Below is a request that includes all optional parameters - # results = MultiHostIntegrationApi(api_client).get_acct_aggregation_groups(multihost_id) - print("The response of MultiHostIntegrationApi->get_acct_aggregation_groups:\n") - pprint(results) - except Exception as e: - print("Exception when calling MultiHostIntegrationApi->get_acct_aggregation_groups: %s\n" % e) + multihost_id = 'aMultiHostId' # str | ID of the Multi-Host Integration to update # str | ID of the Multi-Host Integration to update + try: + # Get Account Aggregation Groups Within Multi-Host Integration ID + + results = MultiHostIntegrationApi(api_client).get_acct_aggregation_groups(multihost_id=multihost_id) + # Below is a request that includes all optional parameters + # results = MultiHostIntegrationApi(api_client).get_acct_aggregation_groups(multihost_id) + print("The response of MultiHostIntegrationApi->get_acct_aggregation_groups:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling MultiHostIntegrationApi->get_acct_aggregation_groups: %s\n" % e) - path: /multihosts/{multiHostId}/entitlementAggregationGroups method: GET xCodeSample: @@ -8621,23 +8350,22 @@ from sailpoint.beta.api.multi_host_integration_api import MultiHostIntegrationApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.multi_host_integrations_agg_schedule_update import MultiHostIntegrationsAggScheduleUpdate - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - multi_host_id = 'aMultiHostId' # str | ID of the Multi-Host Integration to update # str | ID of the Multi-Host Integration to update - try: - # Get Entitlement Aggregation Groups Within Multi-Host Integration ID - - results = MultiHostIntegrationApi(api_client).get_entitlement_aggregation_groups(multi_host_id=multi_host_id) - # Below is a request that includes all optional parameters - # results = MultiHostIntegrationApi(api_client).get_entitlement_aggregation_groups(multi_host_id) - print("The response of MultiHostIntegrationApi->get_entitlement_aggregation_groups:\n") - pprint(results) - except Exception as e: - print("Exception when calling MultiHostIntegrationApi->get_entitlement_aggregation_groups: %s\n" % e) + multi_host_id = 'aMultiHostId' # str | ID of the Multi-Host Integration to update # str | ID of the Multi-Host Integration to update + try: + # Get Entitlement Aggregation Groups Within Multi-Host Integration ID + + results = MultiHostIntegrationApi(api_client).get_entitlement_aggregation_groups(multi_host_id=multi_host_id) + # Below is a request that includes all optional parameters + # results = MultiHostIntegrationApi(api_client).get_entitlement_aggregation_groups(multi_host_id) + print("The response of MultiHostIntegrationApi->get_entitlement_aggregation_groups:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling MultiHostIntegrationApi->get_entitlement_aggregation_groups: %s\n" % e) - path: /multihosts/{multihostId} method: GET xCodeSample: @@ -8647,23 +8375,22 @@ from sailpoint.beta.api.multi_host_integration_api import MultiHostIntegrationApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.multi_host_integrations import MultiHostIntegrations - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - multihost_id = '2c91808568c529c60168cca6f90c1326' # str | ID of the Multi-Host Integration. # str | ID of the Multi-Host Integration. - try: - # Get Multi-Host Integration By ID - - results = MultiHostIntegrationApi(api_client).get_multi_host_integrations(multihost_id=multihost_id) - # Below is a request that includes all optional parameters - # results = MultiHostIntegrationApi(api_client).get_multi_host_integrations(multihost_id) - print("The response of MultiHostIntegrationApi->get_multi_host_integrations:\n") - pprint(results) - except Exception as e: - print("Exception when calling MultiHostIntegrationApi->get_multi_host_integrations: %s\n" % e) + multihost_id = '2c91808568c529c60168cca6f90c1326' # str | ID of the Multi-Host Integration. # str | ID of the Multi-Host Integration. + try: + # Get Multi-Host Integration By ID + + results = MultiHostIntegrationApi(api_client).get_multi_host_integrations(multihost_id=multihost_id) + # Below is a request that includes all optional parameters + # results = MultiHostIntegrationApi(api_client).get_multi_host_integrations(multihost_id) + print("The response of MultiHostIntegrationApi->get_multi_host_integrations:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling MultiHostIntegrationApi->get_multi_host_integrations: %s\n" % e) - path: /multihosts method: GET xCodeSample: @@ -8673,28 +8400,27 @@ from sailpoint.beta.api.multi_host_integration_api import MultiHostIntegrationApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.multi_host_integrations import MultiHostIntegrations - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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) - 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) - sorters = 'name' # 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: **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: **name** (optional) - filters = 'id eq 2c91808b6ef1d43e016efba0ce470904' # 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: **type**: *in* **forSubAdminId**: *in* (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: **type**: *in* **forSubAdminId**: *in* (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 [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) - for_subadmin = '5168015d32f890ca15812c9180835d2e' # str | If provided, filters the returned list according to what is visible to the indicated ROLE_SUBADMIN Identity or SOURCE_SUBADMIN identity. The value of the parameter is either an Identity ID, or the special value **me**, which is shorthand for the calling Identity's ID. A 400 Bad Request error is returned if the **for-subadmin** parameter is specified for an Identity that is not a subadmin. (optional) # str | If provided, filters the returned list according to what is visible to the indicated ROLE_SUBADMIN Identity or SOURCE_SUBADMIN identity. The value of the parameter is either an Identity ID, or the special value **me**, which is shorthand for the calling Identity's ID. A 400 Bad Request error is returned if the **for-subadmin** parameter is specified for an Identity that is not a subadmin. (optional) - try: - # List All Existing Multi-Host Integrations - - results = MultiHostIntegrationApi(api_client).get_multi_host_integrations_list() - # Below is a request that includes all optional parameters - # results = MultiHostIntegrationApi(api_client).get_multi_host_integrations_list(offset, limit, sorters, filters, count, for_subadmin) - print("The response of MultiHostIntegrationApi->get_multi_host_integrations_list:\n") - pprint(results) - except Exception as e: - print("Exception when calling MultiHostIntegrationApi->get_multi_host_integrations_list: %s\n" % e) + 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) + 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) + sorters = 'name' # 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: **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: **name** (optional) + filters = 'id eq 2c91808b6ef1d43e016efba0ce470904' # 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: **type**: *in* **forSubAdminId**: *in* (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: **type**: *in* **forSubAdminId**: *in* (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 [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) + for_subadmin = '5168015d32f890ca15812c9180835d2e' # str | If provided, filters the returned list according to what is visible to the indicated ROLE_SUBADMIN Identity or SOURCE_SUBADMIN identity. The value of the parameter is either an Identity ID, or the special value **me**, which is shorthand for the calling Identity's ID. A 400 Bad Request error is returned if the **for-subadmin** parameter is specified for an Identity that is not a subadmin. (optional) # str | If provided, filters the returned list according to what is visible to the indicated ROLE_SUBADMIN Identity or SOURCE_SUBADMIN identity. The value of the parameter is either an Identity ID, or the special value **me**, which is shorthand for the calling Identity's ID. A 400 Bad Request error is returned if the **for-subadmin** parameter is specified for an Identity that is not a subadmin. (optional) + try: + # List All Existing Multi-Host Integrations + + results = MultiHostIntegrationApi(api_client).get_multi_host_integrations_list() + # Below is a request that includes all optional parameters + # results = MultiHostIntegrationApi(api_client).get_multi_host_integrations_list(offset, limit, sorters, filters, count, for_subadmin) + print("The response of MultiHostIntegrationApi->get_multi_host_integrations_list:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling MultiHostIntegrationApi->get_multi_host_integrations_list: %s\n" % e) - path: /multihosts/{multiHostId}/sources/errors method: GET xCodeSample: @@ -8704,23 +8430,22 @@ from sailpoint.beta.api.multi_host_integration_api import MultiHostIntegrationApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.source_creation_errors import SourceCreationErrors - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - multi_host_id = '004091cb79b04636b88662afa50a4440' # str | ID of the Multi-Host Integration # str | ID of the Multi-Host Integration - try: - # List Multi-Host Source Creation Errors - - results = MultiHostIntegrationApi(api_client).get_multi_host_source_creation_errors(multi_host_id=multi_host_id) - # Below is a request that includes all optional parameters - # results = MultiHostIntegrationApi(api_client).get_multi_host_source_creation_errors(multi_host_id) - print("The response of MultiHostIntegrationApi->get_multi_host_source_creation_errors:\n") - pprint(results) - except Exception as e: - print("Exception when calling MultiHostIntegrationApi->get_multi_host_source_creation_errors: %s\n" % e) + multi_host_id = '004091cb79b04636b88662afa50a4440' # str | ID of the Multi-Host Integration # str | ID of the Multi-Host Integration + try: + # List Multi-Host Source Creation Errors + + results = MultiHostIntegrationApi(api_client).get_multi_host_source_creation_errors(multi_host_id=multi_host_id) + # Below is a request that includes all optional parameters + # results = MultiHostIntegrationApi(api_client).get_multi_host_source_creation_errors(multi_host_id) + print("The response of MultiHostIntegrationApi->get_multi_host_source_creation_errors:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling MultiHostIntegrationApi->get_multi_host_source_creation_errors: %s\n" % e) - path: /multihosts/types method: GET xCodeSample: @@ -8730,22 +8455,21 @@ from sailpoint.beta.api.multi_host_integration_api import MultiHostIntegrationApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.multi_host_integration_template_type import MultiHostIntegrationTemplateType - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - try: - # List Multi-Host Integration Types - - results = MultiHostIntegrationApi(api_client).get_multihost_integration_types() - # Below is a request that includes all optional parameters - # results = MultiHostIntegrationApi(api_client).get_multihost_integration_types() - print("The response of MultiHostIntegrationApi->get_multihost_integration_types:\n") - pprint(results) - except Exception as e: - print("Exception when calling MultiHostIntegrationApi->get_multihost_integration_types: %s\n" % e) + try: + # List Multi-Host Integration Types + + results = MultiHostIntegrationApi(api_client).get_multihost_integration_types() + # Below is a request that includes all optional parameters + # results = MultiHostIntegrationApi(api_client).get_multihost_integration_types() + print("The response of MultiHostIntegrationApi->get_multihost_integration_types:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling MultiHostIntegrationApi->get_multihost_integration_types: %s\n" % e) - path: /multihosts/{multihostId}/sources method: GET xCodeSample: @@ -8755,28 +8479,27 @@ from sailpoint.beta.api.multi_host_integration_api import MultiHostIntegrationApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.multi_host_sources import MultiHostSources - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - multihost_id = 'aMultiHostId' # str | ID of the Multi-Host Integration to update # str | ID of the Multi-Host Integration to update - 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) - 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) - sorters = 'name' # 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: **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: **name** (optional) - filters = 'id eq 2c91808b6ef1d43e016efba0ce470904' # 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**: *in* (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**: *in* (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 [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) - try: - # List Sources Within Multi-Host Integration - - results = MultiHostIntegrationApi(api_client).get_sources_within_multi_host(multihost_id=multihost_id) - # Below is a request that includes all optional parameters - # results = MultiHostIntegrationApi(api_client).get_sources_within_multi_host(multihost_id, offset, limit, sorters, filters, count) - print("The response of MultiHostIntegrationApi->get_sources_within_multi_host:\n") - pprint(results) - except Exception as e: - print("Exception when calling MultiHostIntegrationApi->get_sources_within_multi_host: %s\n" % e) + multihost_id = 'aMultiHostId' # str | ID of the Multi-Host Integration to update # str | ID of the Multi-Host Integration to update + 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) + 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) + sorters = 'name' # 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: **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: **name** (optional) + filters = 'id eq 2c91808b6ef1d43e016efba0ce470904' # 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**: *in* (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**: *in* (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 [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) + try: + # List Sources Within Multi-Host Integration + + results = MultiHostIntegrationApi(api_client).get_sources_within_multi_host(multihost_id=multihost_id) + # Below is a request that includes all optional parameters + # results = MultiHostIntegrationApi(api_client).get_sources_within_multi_host(multihost_id, offset, limit, sorters, filters, count) + print("The response of MultiHostIntegrationApi->get_sources_within_multi_host:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling MultiHostIntegrationApi->get_sources_within_multi_host: %s\n" % e) - path: /multihosts/{multihostId}/sources/testConnection method: POST xCodeSample: @@ -8785,21 +8508,20 @@ source: | from sailpoint.beta.api.multi_host_integration_api import MultiHostIntegrationApi from sailpoint.beta.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - multihost_id = '2c91808568c529c60168cca6f90c1324' # str | ID of the Multi-Host Integration # str | ID of the Multi-Host Integration - try: - # Test Configuration For Multi-Host Integration - - MultiHostIntegrationApi(api_client).test_connection_multi_host_sources(multihost_id=multihost_id) - # Below is a request that includes all optional parameters - # MultiHostIntegrationApi(api_client).test_connection_multi_host_sources(multihost_id) - except Exception as e: - print("Exception when calling MultiHostIntegrationApi->test_connection_multi_host_sources: %s\n" % e) + multihost_id = '2c91808568c529c60168cca6f90c1324' # str | ID of the Multi-Host Integration # str | ID of the Multi-Host Integration + try: + # Test Configuration For Multi-Host Integration + + MultiHostIntegrationApi(api_client).test_connection_multi_host_sources(multihost_id=multihost_id) + # Below is a request that includes all optional parameters + # MultiHostIntegrationApi(api_client).test_connection_multi_host_sources(multihost_id) + except Exception as e: + print("Exception when calling MultiHostIntegrationApi->test_connection_multi_host_sources: %s\n" % e) - path: /multihosts/{multihostId}/sources/{sourceId}/testConnection method: GET xCodeSample: @@ -8809,24 +8531,23 @@ from sailpoint.beta.api.multi_host_integration_api import MultiHostIntegrationApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.test_source_connection_multihost200_response import TestSourceConnectionMultihost200Response - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - multihost_id = '2c91808568c529c60168cca6f90c1326' # str | ID of the Multi-Host Integration # str | ID of the Multi-Host Integration - source_id = '2c91808568c529f60168cca6f90c1324' # str | ID of the source within the Multi-Host Integration # str | ID of the source within the Multi-Host Integration - try: - # Test Configuration For Multi-Host Integration's Single Source - - results = MultiHostIntegrationApi(api_client).test_source_connection_multihost(multihost_id=multihost_id, source_id=source_id) - # Below is a request that includes all optional parameters - # results = MultiHostIntegrationApi(api_client).test_source_connection_multihost(multihost_id, source_id) - print("The response of MultiHostIntegrationApi->test_source_connection_multihost:\n") - pprint(results) - except Exception as e: - print("Exception when calling MultiHostIntegrationApi->test_source_connection_multihost: %s\n" % e) + multihost_id = '2c91808568c529c60168cca6f90c1326' # str | ID of the Multi-Host Integration # str | ID of the Multi-Host Integration + source_id = '2c91808568c529f60168cca6f90c1324' # str | ID of the source within the Multi-Host Integration # str | ID of the source within the Multi-Host Integration + try: + # Test Configuration For Multi-Host Integration's Single Source + + results = MultiHostIntegrationApi(api_client).test_source_connection_multihost(multihost_id=multihost_id, source_id=source_id) + # Below is a request that includes all optional parameters + # results = MultiHostIntegrationApi(api_client).test_source_connection_multihost(multihost_id, source_id) + print("The response of MultiHostIntegrationApi->test_source_connection_multihost:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling MultiHostIntegrationApi->test_source_connection_multihost: %s\n" % e) - path: /multihosts/{multihostId} method: PATCH xCodeSample: @@ -8836,22 +8557,21 @@ from sailpoint.beta.api.multi_host_integration_api import MultiHostIntegrationApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.update_multi_host_sources_request_inner import UpdateMultiHostSourcesRequestInner - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - multihost_id = 'anId' # str | ID of the Multi-Host Integration to update. # str | ID of the Multi-Host Integration to update. - update_multi_host_sources_request_inner = '''[{op=add, path=/description, value=MDK Multi-Host Integration 222 description}]''' # List[UpdateMultiHostSourcesRequestInner] | This endpoint allows you to update a Multi-Host Integration. - try: - # Update Multi-Host Integration - new_update_multi_host_sources_request_inner = UpdateMultiHostSourcesRequestInner.from_json(update_multi_host_sources_request_inner) - MultiHostIntegrationApi(api_client).update_multi_host_sources(multihost_id=multihost_id, update_multi_host_sources_request_inner=new_update_multi_host_sources_request_inner) - # Below is a request that includes all optional parameters - # MultiHostIntegrationApi(api_client).update_multi_host_sources(multihost_id, new_update_multi_host_sources_request_inner) - except Exception as e: - print("Exception when calling MultiHostIntegrationApi->update_multi_host_sources: %s\n" % e) + multihost_id = 'anId' # str | ID of the Multi-Host Integration to update. # str | ID of the Multi-Host Integration to update. + update_multi_host_sources_request_inner = '''[{op=add, path=/description, value=MDK Multi-Host Integration 222 description}]''' # List[UpdateMultiHostSourcesRequestInner] | This endpoint allows you to update a Multi-Host Integration. + try: + # Update Multi-Host Integration + new_update_multi_host_sources_request_inner = UpdateMultiHostSourcesRequestInner.from_json(update_multi_host_sources_request_inner) + MultiHostIntegrationApi(api_client).update_multi_host_sources(multihost_id=multihost_id, update_multi_host_sources_request_inner=new_update_multi_host_sources_request_inner) + # Below is a request that includes all optional parameters + # MultiHostIntegrationApi(api_client).update_multi_host_sources(multihost_id, new_update_multi_host_sources_request_inner) + except Exception as e: + print("Exception when calling MultiHostIntegrationApi->update_multi_host_sources: %s\n" % e) - path: /non-employee-approvals/{id}/approve method: POST xCodeSample: @@ -8862,26 +8582,25 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.non_employee_approval_decision import NonEmployeeApprovalDecision from sailpoint.beta.models.non_employee_approval_item import NonEmployeeApprovalItem - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'id_example' # str | Non-Employee approval item id (UUID) # str | Non-Employee approval item id (UUID) - non_employee_approval_decision = '''{ + id = 'id_example' # str | Non-Employee approval item id (UUID) # str | Non-Employee approval item id (UUID) + non_employee_approval_decision = '''{ "comment" : "comment" }''' # NonEmployeeApprovalDecision | - try: - # Approve a Non-Employee Request - new_non_employee_approval_decision = NonEmployeeApprovalDecision.from_json(non_employee_approval_decision) - results = NonEmployeeLifecycleManagementApi(api_client).approve_non_employee_request(id=id, non_employee_approval_decision=new_non_employee_approval_decision) - # Below is a request that includes all optional parameters - # results = NonEmployeeLifecycleManagementApi(api_client).approve_non_employee_request(id, new_non_employee_approval_decision) - print("The response of NonEmployeeLifecycleManagementApi->approve_non_employee_request:\n") - pprint(results) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->approve_non_employee_request: %s\n" % e) + try: + # Approve a Non-Employee Request + new_non_employee_approval_decision = NonEmployeeApprovalDecision.from_json(non_employee_approval_decision) + results = NonEmployeeLifecycleManagementApi(api_client).approve_non_employee_request(id=id, non_employee_approval_decision=new_non_employee_approval_decision) + # Below is a request that includes all optional parameters + # results = NonEmployeeLifecycleManagementApi(api_client).approve_non_employee_request(id, new_non_employee_approval_decision) + print("The response of NonEmployeeLifecycleManagementApi->approve_non_employee_request:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->approve_non_employee_request: %s\n" % e) - path: /non-employee-records method: POST xCodeSample: @@ -8892,13 +8611,12 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.non_employee_record import NonEmployeeRecord from sailpoint.beta.models.non_employee_request_body import NonEmployeeRequestBody - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - non_employee_request_body = '''{ + non_employee_request_body = '''{ "sourceId" : "2c91808568c529c60168cca6f90c1313", "firstName" : "William", "lastName" : "Smith", @@ -8912,16 +8630,16 @@ "email" : "william.smith@example.com", "startDate" : "2020-03-24T00:00:00-05:00" }''' # NonEmployeeRequestBody | Non-Employee record creation request body. - try: - # Create Non-Employee Record - new_non_employee_request_body = NonEmployeeRequestBody.from_json(non_employee_request_body) - results = NonEmployeeLifecycleManagementApi(api_client).create_non_employee_record(non_employee_request_body=new_non_employee_request_body) - # Below is a request that includes all optional parameters - # results = NonEmployeeLifecycleManagementApi(api_client).create_non_employee_record(new_non_employee_request_body) - print("The response of NonEmployeeLifecycleManagementApi->create_non_employee_record:\n") - pprint(results) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->create_non_employee_record: %s\n" % e) + try: + # Create Non-Employee Record + new_non_employee_request_body = NonEmployeeRequestBody.from_json(non_employee_request_body) + results = NonEmployeeLifecycleManagementApi(api_client).create_non_employee_record(non_employee_request_body=new_non_employee_request_body) + # Below is a request that includes all optional parameters + # results = NonEmployeeLifecycleManagementApi(api_client).create_non_employee_record(new_non_employee_request_body) + print("The response of NonEmployeeLifecycleManagementApi->create_non_employee_record:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->create_non_employee_record: %s\n" % e) - path: /non-employee-requests method: POST xCodeSample: @@ -8932,13 +8650,12 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.non_employee_request import NonEmployeeRequest from sailpoint.beta.models.non_employee_request_body import NonEmployeeRequestBody - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - non_employee_request_body = '''{ + non_employee_request_body = '''{ "sourceId" : "2c91808568c529c60168cca6f90c1313", "firstName" : "William", "lastName" : "Smith", @@ -8952,16 +8669,16 @@ "email" : "william.smith@example.com", "startDate" : "2020-03-24T00:00:00-05:00" }''' # NonEmployeeRequestBody | Non-Employee creation request body - try: - # Create Non-Employee Request - new_non_employee_request_body = NonEmployeeRequestBody.from_json(non_employee_request_body) - results = NonEmployeeLifecycleManagementApi(api_client).create_non_employee_request(non_employee_request_body=new_non_employee_request_body) - # Below is a request that includes all optional parameters - # results = NonEmployeeLifecycleManagementApi(api_client).create_non_employee_request(new_non_employee_request_body) - print("The response of NonEmployeeLifecycleManagementApi->create_non_employee_request:\n") - pprint(results) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->create_non_employee_request: %s\n" % e) + try: + # Create Non-Employee Request + new_non_employee_request_body = NonEmployeeRequestBody.from_json(non_employee_request_body) + results = NonEmployeeLifecycleManagementApi(api_client).create_non_employee_request(non_employee_request_body=new_non_employee_request_body) + # Below is a request that includes all optional parameters + # results = NonEmployeeLifecycleManagementApi(api_client).create_non_employee_request(new_non_employee_request_body) + print("The response of NonEmployeeLifecycleManagementApi->create_non_employee_request:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->create_non_employee_request: %s\n" % e) - path: /non-employee-sources method: POST xCodeSample: @@ -8972,13 +8689,12 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.non_employee_source_request_body import NonEmployeeSourceRequestBody from sailpoint.beta.models.non_employee_source_with_cloud_external_id import NonEmployeeSourceWithCloudExternalId - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - non_employee_source_request_body = '''{ + non_employee_source_request_body = '''{ "owner" : { "id" : "2c91808570313110017040b06f344ec9" }, @@ -9004,16 +8720,16 @@ "id" : "2c91808570313110017040b06f344ec9" } ] }''' # NonEmployeeSourceRequestBody | Non-Employee source creation request body. - try: - # Create Non-Employee Source - new_non_employee_source_request_body = NonEmployeeSourceRequestBody.from_json(non_employee_source_request_body) - results = NonEmployeeLifecycleManagementApi(api_client).create_non_employee_source(non_employee_source_request_body=new_non_employee_source_request_body) - # Below is a request that includes all optional parameters - # results = NonEmployeeLifecycleManagementApi(api_client).create_non_employee_source(new_non_employee_source_request_body) - print("The response of NonEmployeeLifecycleManagementApi->create_non_employee_source:\n") - pprint(results) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->create_non_employee_source: %s\n" % e) + try: + # Create Non-Employee Source + new_non_employee_source_request_body = NonEmployeeSourceRequestBody.from_json(non_employee_source_request_body) + results = NonEmployeeLifecycleManagementApi(api_client).create_non_employee_source(non_employee_source_request_body=new_non_employee_source_request_body) + # Below is a request that includes all optional parameters + # results = NonEmployeeLifecycleManagementApi(api_client).create_non_employee_source(new_non_employee_source_request_body) + print("The response of NonEmployeeLifecycleManagementApi->create_non_employee_source:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->create_non_employee_source: %s\n" % e) - path: /non-employee-sources/{sourceId}/schema-attributes method: POST xCodeSample: @@ -9024,14 +8740,13 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.non_employee_schema_attribute import NonEmployeeSchemaAttribute from sailpoint.beta.models.non_employee_schema_attribute_body import NonEmployeeSchemaAttributeBody - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '2c91808b6ef1d43e016efba0ce470904' # str | The Source id # str | The Source id - non_employee_schema_attribute_body = '''{ + source_id = '2c91808b6ef1d43e016efba0ce470904' # str | The Source id # str | The Source id + non_employee_schema_attribute_body = '''{ "helpText" : "The unique identifier for the account", "label" : "Account Name", "placeholder" : "Enter a unique user name for this account.", @@ -9039,16 +8754,16 @@ "technicalName" : "account.name", "required" : true }''' # NonEmployeeSchemaAttributeBody | - try: - # Create Non-Employee Source Schema Attribute - new_non_employee_schema_attribute_body = NonEmployeeSchemaAttributeBody.from_json(non_employee_schema_attribute_body) - results = NonEmployeeLifecycleManagementApi(api_client).create_non_employee_source_schema_attributes(source_id=source_id, non_employee_schema_attribute_body=new_non_employee_schema_attribute_body) - # Below is a request that includes all optional parameters - # results = NonEmployeeLifecycleManagementApi(api_client).create_non_employee_source_schema_attributes(source_id, new_non_employee_schema_attribute_body) - print("The response of NonEmployeeLifecycleManagementApi->create_non_employee_source_schema_attributes:\n") - pprint(results) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->create_non_employee_source_schema_attributes: %s\n" % e) + try: + # Create Non-Employee Source Schema Attribute + new_non_employee_schema_attribute_body = NonEmployeeSchemaAttributeBody.from_json(non_employee_schema_attribute_body) + results = NonEmployeeLifecycleManagementApi(api_client).create_non_employee_source_schema_attributes(source_id=source_id, non_employee_schema_attribute_body=new_non_employee_schema_attribute_body) + # Below is a request that includes all optional parameters + # results = NonEmployeeLifecycleManagementApi(api_client).create_non_employee_source_schema_attributes(source_id, new_non_employee_schema_attribute_body) + print("The response of NonEmployeeLifecycleManagementApi->create_non_employee_source_schema_attributes:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->create_non_employee_source_schema_attributes: %s\n" % e) - path: /non-employee-records/{id} method: DELETE xCodeSample: @@ -9057,21 +8772,20 @@ source: | from sailpoint.beta.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.beta.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808b6ef1d43e016efba0ce470904' # str | Non-Employee record id (UUID) # str | Non-Employee record id (UUID) - try: - # Delete Non-Employee Record - - NonEmployeeLifecycleManagementApi(api_client).delete_non_employee_record(id=id) - # Below is a request that includes all optional parameters - # NonEmployeeLifecycleManagementApi(api_client).delete_non_employee_record(id) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->delete_non_employee_record: %s\n" % e) + id = '2c91808b6ef1d43e016efba0ce470904' # str | Non-Employee record id (UUID) # str | Non-Employee record id (UUID) + try: + # Delete Non-Employee Record + + NonEmployeeLifecycleManagementApi(api_client).delete_non_employee_record(id=id) + # Below is a request that includes all optional parameters + # NonEmployeeLifecycleManagementApi(api_client).delete_non_employee_record(id) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->delete_non_employee_record: %s\n" % e) - path: /non-employee-records/bulk-delete method: POST xCodeSample: @@ -9081,21 +8795,20 @@ from sailpoint.beta.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.delete_non_employee_record_in_bulk_request import DeleteNonEmployeeRecordInBulkRequest - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - delete_non_employee_record_in_bulk_request = '''sailpoint.beta.DeleteNonEmployeeRecordInBulkRequest()''' # DeleteNonEmployeeRecordInBulkRequest | Non-Employee bulk delete request body. - try: - # Delete Multiple Non-Employee Records - new_delete_non_employee_record_in_bulk_request = DeleteNonEmployeeRecordInBulkRequest.from_json(delete_non_employee_record_in_bulk_request) - NonEmployeeLifecycleManagementApi(api_client).delete_non_employee_record_in_bulk(delete_non_employee_record_in_bulk_request=new_delete_non_employee_record_in_bulk_request) - # Below is a request that includes all optional parameters - # NonEmployeeLifecycleManagementApi(api_client).delete_non_employee_record_in_bulk(new_delete_non_employee_record_in_bulk_request) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->delete_non_employee_record_in_bulk: %s\n" % e) + delete_non_employee_record_in_bulk_request = '''sailpoint.beta.DeleteNonEmployeeRecordInBulkRequest()''' # DeleteNonEmployeeRecordInBulkRequest | Non-Employee bulk delete request body. + try: + # Delete Multiple Non-Employee Records + new_delete_non_employee_record_in_bulk_request = DeleteNonEmployeeRecordInBulkRequest.from_json(delete_non_employee_record_in_bulk_request) + NonEmployeeLifecycleManagementApi(api_client).delete_non_employee_record_in_bulk(delete_non_employee_record_in_bulk_request=new_delete_non_employee_record_in_bulk_request) + # Below is a request that includes all optional parameters + # NonEmployeeLifecycleManagementApi(api_client).delete_non_employee_record_in_bulk(new_delete_non_employee_record_in_bulk_request) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->delete_non_employee_record_in_bulk: %s\n" % e) - path: /non-employee-requests/{id} method: DELETE xCodeSample: @@ -9104,21 +8817,20 @@ source: | from sailpoint.beta.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.beta.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808b6ef1d43e016efba0ce470904' # str | Non-Employee request id in the UUID format # str | Non-Employee request id in the UUID format - try: - # Delete Non-Employee Request - - NonEmployeeLifecycleManagementApi(api_client).delete_non_employee_request(id=id) - # Below is a request that includes all optional parameters - # NonEmployeeLifecycleManagementApi(api_client).delete_non_employee_request(id) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->delete_non_employee_request: %s\n" % e) + id = '2c91808b6ef1d43e016efba0ce470904' # str | Non-Employee request id in the UUID format # str | Non-Employee request id in the UUID format + try: + # Delete Non-Employee Request + + NonEmployeeLifecycleManagementApi(api_client).delete_non_employee_request(id=id) + # Below is a request that includes all optional parameters + # NonEmployeeLifecycleManagementApi(api_client).delete_non_employee_request(id) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->delete_non_employee_request: %s\n" % e) - path: /non-employee-sources/{sourceId}/schema-attributes/{attributeId} method: DELETE xCodeSample: @@ -9127,22 +8839,21 @@ source: | from sailpoint.beta.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.beta.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - attribute_id = '2c91808b6ef1d43e016efba0ce470904' # str | The Schema Attribute Id (UUID) # str | The Schema Attribute Id (UUID) - source_id = '2c91808b6ef1d43e016efba0ce470904' # str | The Source id # str | The Source id - try: - # Delete Non-Employee Source's Schema Attribute - - NonEmployeeLifecycleManagementApi(api_client).delete_non_employee_schema_attribute(attribute_id=attribute_id, source_id=source_id) - # Below is a request that includes all optional parameters - # NonEmployeeLifecycleManagementApi(api_client).delete_non_employee_schema_attribute(attribute_id, source_id) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->delete_non_employee_schema_attribute: %s\n" % e) + attribute_id = '2c91808b6ef1d43e016efba0ce470904' # str | The Schema Attribute Id (UUID) # str | The Schema Attribute Id (UUID) + source_id = '2c91808b6ef1d43e016efba0ce470904' # str | The Source id # str | The Source id + try: + # Delete Non-Employee Source's Schema Attribute + + NonEmployeeLifecycleManagementApi(api_client).delete_non_employee_schema_attribute(attribute_id=attribute_id, source_id=source_id) + # Below is a request that includes all optional parameters + # NonEmployeeLifecycleManagementApi(api_client).delete_non_employee_schema_attribute(attribute_id, source_id) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->delete_non_employee_schema_attribute: %s\n" % e) - path: /non-employee-sources/{sourceId} method: DELETE xCodeSample: @@ -9151,21 +8862,20 @@ source: | from sailpoint.beta.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.beta.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '2c91808b6ef1d43e016efba0ce470904' # str | Source Id # str | Source Id - try: - # Delete Non-Employee Source - - NonEmployeeLifecycleManagementApi(api_client).delete_non_employee_source(source_id=source_id) - # Below is a request that includes all optional parameters - # NonEmployeeLifecycleManagementApi(api_client).delete_non_employee_source(source_id) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->delete_non_employee_source: %s\n" % e) + source_id = '2c91808b6ef1d43e016efba0ce470904' # str | Source Id # str | Source Id + try: + # Delete Non-Employee Source + + NonEmployeeLifecycleManagementApi(api_client).delete_non_employee_source(source_id=source_id) + # Below is a request that includes all optional parameters + # NonEmployeeLifecycleManagementApi(api_client).delete_non_employee_source(source_id) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->delete_non_employee_source: %s\n" % e) - path: /non-employee-sources/{sourceId}/schema-attributes method: DELETE xCodeSample: @@ -9174,21 +8884,20 @@ source: | from sailpoint.beta.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.beta.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '2c91808b6ef1d43e016efba0ce470904' # str | The Source id # str | The Source id - try: - # Delete all custom schema attributes - - NonEmployeeLifecycleManagementApi(api_client).delete_non_employee_source_schema_attributes(source_id=source_id) - # Below is a request that includes all optional parameters - # NonEmployeeLifecycleManagementApi(api_client).delete_non_employee_source_schema_attributes(source_id) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->delete_non_employee_source_schema_attributes: %s\n" % e) + source_id = '2c91808b6ef1d43e016efba0ce470904' # str | The Source id # str | The Source id + try: + # Delete all custom schema attributes + + NonEmployeeLifecycleManagementApi(api_client).delete_non_employee_source_schema_attributes(source_id=source_id) + # Below is a request that includes all optional parameters + # NonEmployeeLifecycleManagementApi(api_client).delete_non_employee_source_schema_attributes(source_id) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->delete_non_employee_source_schema_attributes: %s\n" % e) - path: /non-employee-sources/{id}/non-employees/download method: GET xCodeSample: @@ -9197,21 +8906,20 @@ source: | from sailpoint.beta.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.beta.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c918085842e69ae018432d22ccb212f' # str | Source Id (UUID) # str | Source Id (UUID) - try: - # Exports Non-Employee Records to CSV - - NonEmployeeLifecycleManagementApi(api_client).export_non_employee_records(id=id) - # Below is a request that includes all optional parameters - # NonEmployeeLifecycleManagementApi(api_client).export_non_employee_records(id) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->export_non_employee_records: %s\n" % e) + id = '2c918085842e69ae018432d22ccb212f' # str | Source Id (UUID) # str | Source Id (UUID) + try: + # Exports Non-Employee Records to CSV + + NonEmployeeLifecycleManagementApi(api_client).export_non_employee_records(id=id) + # Below is a request that includes all optional parameters + # NonEmployeeLifecycleManagementApi(api_client).export_non_employee_records(id) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->export_non_employee_records: %s\n" % e) - path: /non-employee-sources/{id}/schema-attributes-template/download method: GET xCodeSample: @@ -9220,21 +8928,20 @@ source: | from sailpoint.beta.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.beta.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c918085842e69ae018432d22ccb212f' # str | Source Id (UUID) # str | Source Id (UUID) - try: - # Exports Source Schema Template - - NonEmployeeLifecycleManagementApi(api_client).export_non_employee_source_schema_template(id=id) - # Below is a request that includes all optional parameters - # NonEmployeeLifecycleManagementApi(api_client).export_non_employee_source_schema_template(id) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->export_non_employee_source_schema_template: %s\n" % e) + id = '2c918085842e69ae018432d22ccb212f' # str | Source Id (UUID) # str | Source Id (UUID) + try: + # Exports Source Schema Template + + NonEmployeeLifecycleManagementApi(api_client).export_non_employee_source_schema_template(id=id) + # Below is a request that includes all optional parameters + # NonEmployeeLifecycleManagementApi(api_client).export_non_employee_source_schema_template(id) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->export_non_employee_source_schema_template: %s\n" % e) - path: /non-employee-approvals/{id} method: GET xCodeSample: @@ -9244,24 +8951,23 @@ from sailpoint.beta.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.non_employee_approval_item_detail import NonEmployeeApprovalItemDetail - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ac10d20a-841e-1e7d-8184-32d2e22c0179' # str | Non-Employee approval item id (UUID) # str | Non-Employee approval item id (UUID) - include_detail = 'include-detail=false' # str | The object nonEmployeeRequest will not be included detail when set to false. *Default value is true* (optional) # str | The object nonEmployeeRequest will not be included detail when set to false. *Default value is true* (optional) - try: - # Get a non-employee approval item detail - - results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_approval(id=id) - # Below is a request that includes all optional parameters - # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_approval(id, include_detail) - print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_approval:\n") - pprint(results) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_approval: %s\n" % e) + id = 'ac10d20a-841e-1e7d-8184-32d2e22c0179' # str | Non-Employee approval item id (UUID) # str | Non-Employee approval item id (UUID) + include_detail = 'include-detail=false' # str | The object nonEmployeeRequest will not be included detail when set to false. *Default value is true* (optional) # str | The object nonEmployeeRequest will not be included detail when set to false. *Default value is true* (optional) + try: + # Get a non-employee approval item detail + + results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_approval(id=id) + # Below is a request that includes all optional parameters + # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_approval(id, include_detail) + print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_approval:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_approval: %s\n" % e) - path: /non-employee-approvals/summary/{requested-for} method: GET xCodeSample: @@ -9271,23 +8977,22 @@ from sailpoint.beta.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.non_employee_approval_summary import NonEmployeeApprovalSummary - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - requested_for = 'ac10d20a-841e-1e7d-8184-32d2e22c0179' # str | The identity (UUID) of the approver for whom for whom the summary is being retrieved. Use \"me\" instead to indicate the current user. # str | The identity (UUID) of the approver for whom for whom the summary is being retrieved. Use \"me\" instead to indicate the current user. - try: - # Get Summary of Non-Employee Approval Requests - - results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_approval_summary(requested_for=requested_for) - # Below is a request that includes all optional parameters - # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_approval_summary(requested_for) - print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_approval_summary:\n") - pprint(results) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_approval_summary: %s\n" % e) + requested_for = 'ac10d20a-841e-1e7d-8184-32d2e22c0179' # str | The identity (UUID) of the approver for whom for whom the summary is being retrieved. Use \"me\" instead to indicate the current user. # str | The identity (UUID) of the approver for whom for whom the summary is being retrieved. Use \"me\" instead to indicate the current user. + try: + # Get Summary of Non-Employee Approval Requests + + results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_approval_summary(requested_for=requested_for) + # Below is a request that includes all optional parameters + # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_approval_summary(requested_for) + print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_approval_summary:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_approval_summary: %s\n" % e) - path: /non-employee-sources/{id}/non-employee-bulk-upload/status method: GET xCodeSample: @@ -9297,23 +9002,22 @@ from sailpoint.beta.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.non_employee_bulk_upload_status import NonEmployeeBulkUploadStatus - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c918085842e69ae018432d22ccb212f' # str | Source ID (UUID) # str | Source ID (UUID) - try: - # Bulk upload status on source - - results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_bulk_upload_status(id=id) - # Below is a request that includes all optional parameters - # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_bulk_upload_status(id) - print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_bulk_upload_status:\n") - pprint(results) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_bulk_upload_status: %s\n" % e) + id = '2c918085842e69ae018432d22ccb212f' # str | Source ID (UUID) # str | Source ID (UUID) + try: + # Bulk upload status on source + + results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_bulk_upload_status(id=id) + # Below is a request that includes all optional parameters + # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_bulk_upload_status(id) + print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_bulk_upload_status:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_bulk_upload_status: %s\n" % e) - path: /non-employee-records/{id} method: GET xCodeSample: @@ -9323,23 +9027,22 @@ from sailpoint.beta.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.non_employee_record import NonEmployeeRecord - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808b6ef1d43e016efba0ce470904' # str | Non-Employee record id (UUID) # str | Non-Employee record id (UUID) - try: - # Get a Non-Employee Record - - results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_record(id=id) - # Below is a request that includes all optional parameters - # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_record(id) - print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_record:\n") - pprint(results) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_record: %s\n" % e) + id = '2c91808b6ef1d43e016efba0ce470904' # str | Non-Employee record id (UUID) # str | Non-Employee record id (UUID) + try: + # Get a Non-Employee Record + + results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_record(id=id) + # Below is a request that includes all optional parameters + # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_record(id) + print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_record:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_record: %s\n" % e) - path: /non-employee-requests/{id} method: GET xCodeSample: @@ -9349,23 +9052,22 @@ from sailpoint.beta.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.non_employee_request import NonEmployeeRequest - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808b6ef1d43e016efba0ce470904' # str | Non-Employee request id (UUID) # str | Non-Employee request id (UUID) - try: - # Get a Non-Employee Request - - results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_request(id=id) - # Below is a request that includes all optional parameters - # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_request(id) - print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_request:\n") - pprint(results) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_request: %s\n" % e) + id = '2c91808b6ef1d43e016efba0ce470904' # str | Non-Employee request id (UUID) # str | Non-Employee request id (UUID) + try: + # Get a Non-Employee Request + + results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_request(id=id) + # Below is a request that includes all optional parameters + # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_request(id) + print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_request:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_request: %s\n" % e) - path: /non-employee-requests/summary/{requested-for} method: GET xCodeSample: @@ -9375,23 +9077,22 @@ from sailpoint.beta.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.non_employee_request_summary import NonEmployeeRequestSummary - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - requested_for = 'ac10d20a-841e-1e7d-8184-32d2e22c0179' # str | The identity (UUID) of the non-employee account manager for whom the summary is being retrieved. Use \"me\" instead to indicate the current user. # str | The identity (UUID) of the non-employee account manager for whom the summary is being retrieved. Use \"me\" instead to indicate the current user. - try: - # Get Summary of Non-Employee Requests - - results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_request_summary(requested_for=requested_for) - # Below is a request that includes all optional parameters - # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_request_summary(requested_for) - print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_request_summary:\n") - pprint(results) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_request_summary: %s\n" % e) + requested_for = 'ac10d20a-841e-1e7d-8184-32d2e22c0179' # str | The identity (UUID) of the non-employee account manager for whom the summary is being retrieved. Use \"me\" instead to indicate the current user. # str | The identity (UUID) of the non-employee account manager for whom the summary is being retrieved. Use \"me\" instead to indicate the current user. + try: + # Get Summary of Non-Employee Requests + + results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_request_summary(requested_for=requested_for) + # Below is a request that includes all optional parameters + # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_request_summary(requested_for) + print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_request_summary:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_request_summary: %s\n" % e) - path: /non-employee-sources/{sourceId}/schema-attributes/{attributeId} method: GET xCodeSample: @@ -9401,24 +9102,23 @@ from sailpoint.beta.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.non_employee_schema_attribute import NonEmployeeSchemaAttribute - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - attribute_id = '2c918085842e69ae018432d22ccb212f' # str | The Schema Attribute Id (UUID) # str | The Schema Attribute Id (UUID) - source_id = '2c918085842e69ae018432d22ccb212f' # str | The Source id # str | The Source id - try: - # Get Schema Attribute Non-Employee Source - - results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_schema_attribute(attribute_id=attribute_id, source_id=source_id) - # Below is a request that includes all optional parameters - # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_schema_attribute(attribute_id, source_id) - print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_schema_attribute:\n") - pprint(results) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_schema_attribute: %s\n" % e) + attribute_id = '2c918085842e69ae018432d22ccb212f' # str | The Schema Attribute Id (UUID) # str | The Schema Attribute Id (UUID) + source_id = '2c918085842e69ae018432d22ccb212f' # str | The Source id # str | The Source id + try: + # Get Schema Attribute Non-Employee Source + + results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_schema_attribute(attribute_id=attribute_id, source_id=source_id) + # Below is a request that includes all optional parameters + # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_schema_attribute(attribute_id, source_id) + print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_schema_attribute:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_schema_attribute: %s\n" % e) - path: /non-employee-sources/{sourceId} method: GET xCodeSample: @@ -9428,23 +9128,22 @@ from sailpoint.beta.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.non_employee_source import NonEmployeeSource - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '2c91808b7c28b350017c2a2ec5790aa1' # str | Source Id # str | Source Id - try: - # Get a Non-Employee Source - - results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_source(source_id=source_id) - # Below is a request that includes all optional parameters - # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_source(source_id) - print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_source:\n") - pprint(results) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_source: %s\n" % e) + source_id = '2c91808b7c28b350017c2a2ec5790aa1' # str | Source Id # str | Source Id + try: + # Get a Non-Employee Source + + results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_source(source_id=source_id) + # Below is a request that includes all optional parameters + # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_source(source_id) + print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_source:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_source: %s\n" % e) - path: /non-employee-sources/{sourceId}/schema-attributes method: GET xCodeSample: @@ -9454,23 +9153,22 @@ from sailpoint.beta.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.non_employee_schema_attribute import NonEmployeeSchemaAttribute - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '2c918085842e69ae018432d22ccb212f' # str | The Source id # str | The Source id - try: - # List Schema Attributes Non-Employee Source - - results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_source_schema_attributes(source_id=source_id) - # Below is a request that includes all optional parameters - # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_source_schema_attributes(source_id) - print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_source_schema_attributes:\n") - pprint(results) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_source_schema_attributes: %s\n" % e) + source_id = '2c918085842e69ae018432d22ccb212f' # str | The Source id # str | The Source id + try: + # List Schema Attributes Non-Employee Source + + results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_source_schema_attributes(source_id=source_id) + # Below is a request that includes all optional parameters + # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_source_schema_attributes(source_id) + print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_source_schema_attributes:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_source_schema_attributes: %s\n" % e) - path: /non-employee-sources/{id}/non-employee-bulk-upload method: POST xCodeSample: @@ -9480,24 +9178,23 @@ from sailpoint.beta.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.non_employee_bulk_upload_job import NonEmployeeBulkUploadJob - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'e136567de87e4d029e60b3c3c55db56d' # str | Source Id (UUID) # str | Source Id (UUID) - data = None # bytearray | # bytearray | - try: - # Imports, or Updates, Non-Employee Records - - results = NonEmployeeLifecycleManagementApi(api_client).import_non_employee_records_in_bulk(id=id, data=data) - # Below is a request that includes all optional parameters - # results = NonEmployeeLifecycleManagementApi(api_client).import_non_employee_records_in_bulk(id, data) - print("The response of NonEmployeeLifecycleManagementApi->import_non_employee_records_in_bulk:\n") - pprint(results) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->import_non_employee_records_in_bulk: %s\n" % e) + id = 'e136567de87e4d029e60b3c3c55db56d' # str | Source Id (UUID) # str | Source Id (UUID) + data = None # bytearray | # bytearray | + try: + # Imports, or Updates, Non-Employee Records + + results = NonEmployeeLifecycleManagementApi(api_client).import_non_employee_records_in_bulk(id=id, data=data) + # Below is a request that includes all optional parameters + # results = NonEmployeeLifecycleManagementApi(api_client).import_non_employee_records_in_bulk(id, data) + print("The response of NonEmployeeLifecycleManagementApi->import_non_employee_records_in_bulk:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->import_non_employee_records_in_bulk: %s\n" % e) - path: /non-employee-approvals method: GET xCodeSample: @@ -9507,28 +9204,27 @@ from sailpoint.beta.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.non_employee_approval_item import NonEmployeeApprovalItem - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - requested_for = 'ac10d20a-841e-1e7d-8184-32d2e22c0179' # str | The identity for whom the request was made. *me* indicates the current user. (optional) # str | The identity for whom the request was made. *me* indicates the current user. (optional) - 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 = 'approvalStatus eq \"PENDING\"' # 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: **approvalStatus**: *eq* (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: **approvalStatus**: *eq* (optional) - sorters = 'created' # 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** (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** (optional) - try: - # Get List of Non-Employee Approval Requests - - results = NonEmployeeLifecycleManagementApi(api_client).list_non_employee_approval() - # Below is a request that includes all optional parameters - # results = NonEmployeeLifecycleManagementApi(api_client).list_non_employee_approval(requested_for, limit, offset, count, filters, sorters) - print("The response of NonEmployeeLifecycleManagementApi->list_non_employee_approval:\n") - pprint(results) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->list_non_employee_approval: %s\n" % e) + requested_for = 'ac10d20a-841e-1e7d-8184-32d2e22c0179' # str | The identity for whom the request was made. *me* indicates the current user. (optional) # str | The identity for whom the request was made. *me* indicates the current user. (optional) + 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 = 'approvalStatus eq \"PENDING\"' # 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: **approvalStatus**: *eq* (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: **approvalStatus**: *eq* (optional) + sorters = 'created' # 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** (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** (optional) + try: + # Get List of Non-Employee Approval Requests + + results = NonEmployeeLifecycleManagementApi(api_client).list_non_employee_approval() + # Below is a request that includes all optional parameters + # results = NonEmployeeLifecycleManagementApi(api_client).list_non_employee_approval(requested_for, limit, offset, count, filters, sorters) + print("The response of NonEmployeeLifecycleManagementApi->list_non_employee_approval:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->list_non_employee_approval: %s\n" % e) - path: /non-employee-records method: GET xCodeSample: @@ -9538,27 +9234,26 @@ from sailpoint.beta.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.non_employee_record import NonEmployeeRecord - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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) - sorters = 'accountName,sourceId' # 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: **id, accountName, sourceId, manager, firstName, lastName, email, phone, startDate, endDate, created, modified** (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: **id, accountName, sourceId, manager, firstName, lastName, email, phone, startDate, endDate, created, modified** (optional) - filters = 'sourceId eq \"2c91808568c529c60168cca6f90c1313\"' # 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: **sourceId**: *eq* (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: **sourceId**: *eq* (optional) - try: - # List Non-Employee Records - - results = NonEmployeeLifecycleManagementApi(api_client).list_non_employee_records() - # Below is a request that includes all optional parameters - # results = NonEmployeeLifecycleManagementApi(api_client).list_non_employee_records(limit, offset, count, sorters, filters) - print("The response of NonEmployeeLifecycleManagementApi->list_non_employee_records:\n") - pprint(results) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->list_non_employee_records: %s\n" % e) + 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) + sorters = 'accountName,sourceId' # 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: **id, accountName, sourceId, manager, firstName, lastName, email, phone, startDate, endDate, created, modified** (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: **id, accountName, sourceId, manager, firstName, lastName, email, phone, startDate, endDate, created, modified** (optional) + filters = 'sourceId eq \"2c91808568c529c60168cca6f90c1313\"' # 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: **sourceId**: *eq* (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: **sourceId**: *eq* (optional) + try: + # List Non-Employee Records + + results = NonEmployeeLifecycleManagementApi(api_client).list_non_employee_records() + # Below is a request that includes all optional parameters + # results = NonEmployeeLifecycleManagementApi(api_client).list_non_employee_records(limit, offset, count, sorters, filters) + print("The response of NonEmployeeLifecycleManagementApi->list_non_employee_records:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->list_non_employee_records: %s\n" % e) - path: /non-employee-requests method: GET xCodeSample: @@ -9568,28 +9263,27 @@ from sailpoint.beta.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.non_employee_request import NonEmployeeRequest - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - requested_for = 'me' # str | The identity for whom the request was made. *me* indicates the current user. # str | The identity for whom the request was made. *me* indicates the current user. - 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) - sorters = 'approvalStatus,firstName' # 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, approvalStatus, firstName, lastName, email, phone, accountName, startDate, endDate** (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, approvalStatus, firstName, lastName, email, phone, accountName, startDate, endDate** (optional) - filters = 'sourceId eq \"2c91808568c529c60168cca6f90c1313\"' # 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: **sourceId**: *eq* (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: **sourceId**: *eq* (optional) - try: - # List Non-Employee Requests - - results = NonEmployeeLifecycleManagementApi(api_client).list_non_employee_requests(requested_for=requested_for) - # Below is a request that includes all optional parameters - # results = NonEmployeeLifecycleManagementApi(api_client).list_non_employee_requests(requested_for, limit, offset, count, sorters, filters) - print("The response of NonEmployeeLifecycleManagementApi->list_non_employee_requests:\n") - pprint(results) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->list_non_employee_requests: %s\n" % e) + requested_for = 'me' # str | The identity for whom the request was made. *me* indicates the current user. # str | The identity for whom the request was made. *me* indicates the current user. + 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) + sorters = 'approvalStatus,firstName' # 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, approvalStatus, firstName, lastName, email, phone, accountName, startDate, endDate** (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, approvalStatus, firstName, lastName, email, phone, accountName, startDate, endDate** (optional) + filters = 'sourceId eq \"2c91808568c529c60168cca6f90c1313\"' # 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: **sourceId**: *eq* (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: **sourceId**: *eq* (optional) + try: + # List Non-Employee Requests + + results = NonEmployeeLifecycleManagementApi(api_client).list_non_employee_requests(requested_for=requested_for) + # Below is a request that includes all optional parameters + # results = NonEmployeeLifecycleManagementApi(api_client).list_non_employee_requests(requested_for, limit, offset, count, sorters, filters) + print("The response of NonEmployeeLifecycleManagementApi->list_non_employee_requests:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->list_non_employee_requests: %s\n" % e) - path: /non-employee-sources method: GET xCodeSample: @@ -9599,28 +9293,27 @@ from sailpoint.beta.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.non_employee_source_with_ne_count import NonEmployeeSourceWithNECount - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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) - requested_for = 'me' # str | Identity the request was made for. Use 'me' to indicate the current user. (optional) # str | Identity the request was made for. Use 'me' to indicate the current user. (optional) - non_employee_count = False # bool | Flag that determines whether the API will return a non-employee count associated with the source. (optional) (default to False) # bool | Flag that determines whether the API will return a non-employee count associated with the source. (optional) (default to False) - sorters = 'name,created' # 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: **name, created, sourceId** (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: **name, created, sourceId** (optional) - try: - # List Non-Employee Sources - - results = NonEmployeeLifecycleManagementApi(api_client).list_non_employee_sources() - # Below is a request that includes all optional parameters - # results = NonEmployeeLifecycleManagementApi(api_client).list_non_employee_sources(limit, offset, count, requested_for, non_employee_count, sorters) - print("The response of NonEmployeeLifecycleManagementApi->list_non_employee_sources:\n") - pprint(results) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->list_non_employee_sources: %s\n" % e) + 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) + requested_for = 'me' # str | Identity the request was made for. Use 'me' to indicate the current user. (optional) # str | Identity the request was made for. Use 'me' to indicate the current user. (optional) + non_employee_count = False # bool | Flag that determines whether the API will return a non-employee count associated with the source. (optional) (default to False) # bool | Flag that determines whether the API will return a non-employee count associated with the source. (optional) (default to False) + sorters = 'name,created' # 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: **name, created, sourceId** (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: **name, created, sourceId** (optional) + try: + # List Non-Employee Sources + + results = NonEmployeeLifecycleManagementApi(api_client).list_non_employee_sources() + # Below is a request that includes all optional parameters + # results = NonEmployeeLifecycleManagementApi(api_client).list_non_employee_sources(limit, offset, count, requested_for, non_employee_count, sorters) + print("The response of NonEmployeeLifecycleManagementApi->list_non_employee_sources:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->list_non_employee_sources: %s\n" % e) - path: /non-employee-records/{id} method: PATCH xCodeSample: @@ -9631,24 +9324,23 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.json_patch_operation import JsonPatchOperation from sailpoint.beta.models.non_employee_record import NonEmployeeRecord - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808b6ef1d43e016efba0ce470904' # str | Non-employee record id (UUID) # str | Non-employee record id (UUID) - json_patch_operation = '''[{op=replace, path=/endDate, value={2019-08-23T18:40:35.772Z=null}}]''' # List[JsonPatchOperation] | A list of non-employee update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Attributes are restricted by user type. Owner of source can update end date. Organization admins can update all available fields. - try: - # Patch Non-Employee Record - new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) - results = NonEmployeeLifecycleManagementApi(api_client).patch_non_employee_record(id=id, json_patch_operation=new_json_patch_operation) - # Below is a request that includes all optional parameters - # results = NonEmployeeLifecycleManagementApi(api_client).patch_non_employee_record(id, new_json_patch_operation) - print("The response of NonEmployeeLifecycleManagementApi->patch_non_employee_record:\n") - pprint(results) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->patch_non_employee_record: %s\n" % e) + id = '2c91808b6ef1d43e016efba0ce470904' # str | Non-employee record id (UUID) # str | Non-employee record id (UUID) + json_patch_operation = '''[{op=replace, path=/endDate, value={2019-08-23T18:40:35.772Z=null}}]''' # List[JsonPatchOperation] | A list of non-employee update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Attributes are restricted by user type. Owner of source can update end date. Organization admins can update all available fields. + try: + # Patch Non-Employee Record + new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) + results = NonEmployeeLifecycleManagementApi(api_client).patch_non_employee_record(id=id, json_patch_operation=new_json_patch_operation) + # Below is a request that includes all optional parameters + # results = NonEmployeeLifecycleManagementApi(api_client).patch_non_employee_record(id, new_json_patch_operation) + print("The response of NonEmployeeLifecycleManagementApi->patch_non_employee_record:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->patch_non_employee_record: %s\n" % e) - path: /non-employee-sources/{sourceId}/schema-attributes/{attributeId} method: PATCH xCodeSample: @@ -9659,25 +9351,24 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.json_patch_operation import JsonPatchOperation from sailpoint.beta.models.non_employee_schema_attribute import NonEmployeeSchemaAttribute - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - attribute_id = '2c91808b6ef1d43e016efba0ce470904' # str | The Schema Attribute Id (UUID) # str | The Schema Attribute Id (UUID) - source_id = '2c91808b6ef1d43e016efba0ce470904' # str | The Source id # str | The Source id - json_patch_operation = '''[{op=replace, path=/label, value={new attribute label=null}}]''' # List[JsonPatchOperation] | A list of schema attribute update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following properties are allowed for update ':' 'label', 'helpText', 'placeholder', 'required'. - try: - # Patch Non-Employee Source's Schema Attribute - new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) - results = NonEmployeeLifecycleManagementApi(api_client).patch_non_employee_schema_attribute(attribute_id=attribute_id, source_id=source_id, json_patch_operation=new_json_patch_operation) - # Below is a request that includes all optional parameters - # results = NonEmployeeLifecycleManagementApi(api_client).patch_non_employee_schema_attribute(attribute_id, source_id, new_json_patch_operation) - print("The response of NonEmployeeLifecycleManagementApi->patch_non_employee_schema_attribute:\n") - pprint(results) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->patch_non_employee_schema_attribute: %s\n" % e) + attribute_id = '2c91808b6ef1d43e016efba0ce470904' # str | The Schema Attribute Id (UUID) # str | The Schema Attribute Id (UUID) + source_id = '2c91808b6ef1d43e016efba0ce470904' # str | The Source id # str | The Source id + json_patch_operation = '''[{op=replace, path=/label, value={new attribute label=null}}]''' # List[JsonPatchOperation] | A list of schema attribute update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following properties are allowed for update ':' 'label', 'helpText', 'placeholder', 'required'. + try: + # Patch Non-Employee Source's Schema Attribute + new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) + results = NonEmployeeLifecycleManagementApi(api_client).patch_non_employee_schema_attribute(attribute_id=attribute_id, source_id=source_id, json_patch_operation=new_json_patch_operation) + # Below is a request that includes all optional parameters + # results = NonEmployeeLifecycleManagementApi(api_client).patch_non_employee_schema_attribute(attribute_id, source_id, new_json_patch_operation) + print("The response of NonEmployeeLifecycleManagementApi->patch_non_employee_schema_attribute:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->patch_non_employee_schema_attribute: %s\n" % e) - path: /non-employee-sources/{sourceId} method: PATCH xCodeSample: @@ -9688,24 +9379,23 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.json_patch_operation import JsonPatchOperation from sailpoint.beta.models.non_employee_source import NonEmployeeSource - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '2c91808b6ef1d43e016efba0ce470904' # str | Source Id # str | Source Id - json_patch_operation = '''[{op=replace, path=/name, value={new name=null}}, {op=replace, path=/approvers, value=[2c91809f703bb37a017040a2fe8748c7, 48b1f463c9e8427db5a5071bd81914b8]}]''' # List[JsonPatchOperation] | A list of non-employee source update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. - try: - # Patch a Non-Employee Source - new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) - results = NonEmployeeLifecycleManagementApi(api_client).patch_non_employee_source(source_id=source_id, json_patch_operation=new_json_patch_operation) - # Below is a request that includes all optional parameters - # results = NonEmployeeLifecycleManagementApi(api_client).patch_non_employee_source(source_id, new_json_patch_operation) - print("The response of NonEmployeeLifecycleManagementApi->patch_non_employee_source:\n") - pprint(results) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->patch_non_employee_source: %s\n" % e) + source_id = '2c91808b6ef1d43e016efba0ce470904' # str | Source Id # str | Source Id + json_patch_operation = '''[{op=replace, path=/name, value={new name=null}}, {op=replace, path=/approvers, value=[2c91809f703bb37a017040a2fe8748c7, 48b1f463c9e8427db5a5071bd81914b8]}]''' # List[JsonPatchOperation] | A list of non-employee source update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. + try: + # Patch a Non-Employee Source + new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) + results = NonEmployeeLifecycleManagementApi(api_client).patch_non_employee_source(source_id=source_id, json_patch_operation=new_json_patch_operation) + # Below is a request that includes all optional parameters + # results = NonEmployeeLifecycleManagementApi(api_client).patch_non_employee_source(source_id, new_json_patch_operation) + print("The response of NonEmployeeLifecycleManagementApi->patch_non_employee_source:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->patch_non_employee_source: %s\n" % e) - path: /non-employee-approvals/{id}/reject method: POST xCodeSample: @@ -9716,26 +9406,25 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.non_employee_approval_item import NonEmployeeApprovalItem from sailpoint.beta.models.non_employee_reject_approval_decision import NonEmployeeRejectApprovalDecision - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'id_example' # str | Non-Employee approval item id (UUID) # str | Non-Employee approval item id (UUID) - non_employee_reject_approval_decision = '''{ + id = 'id_example' # str | Non-Employee approval item id (UUID) # str | Non-Employee approval item id (UUID) + non_employee_reject_approval_decision = '''{ "comment" : "comment" }''' # NonEmployeeRejectApprovalDecision | - try: - # Reject a Non-Employee Request - new_non_employee_reject_approval_decision = NonEmployeeRejectApprovalDecision.from_json(non_employee_reject_approval_decision) - results = NonEmployeeLifecycleManagementApi(api_client).reject_non_employee_request(id=id, non_employee_reject_approval_decision=new_non_employee_reject_approval_decision) - # Below is a request that includes all optional parameters - # results = NonEmployeeLifecycleManagementApi(api_client).reject_non_employee_request(id, new_non_employee_reject_approval_decision) - print("The response of NonEmployeeLifecycleManagementApi->reject_non_employee_request:\n") - pprint(results) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->reject_non_employee_request: %s\n" % e) + try: + # Reject a Non-Employee Request + new_non_employee_reject_approval_decision = NonEmployeeRejectApprovalDecision.from_json(non_employee_reject_approval_decision) + results = NonEmployeeLifecycleManagementApi(api_client).reject_non_employee_request(id=id, non_employee_reject_approval_decision=new_non_employee_reject_approval_decision) + # Below is a request that includes all optional parameters + # results = NonEmployeeLifecycleManagementApi(api_client).reject_non_employee_request(id, new_non_employee_reject_approval_decision) + print("The response of NonEmployeeLifecycleManagementApi->reject_non_employee_request:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->reject_non_employee_request: %s\n" % e) - path: /non-employee-records/{id} method: PUT xCodeSample: @@ -9746,14 +9435,13 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.non_employee_record import NonEmployeeRecord from sailpoint.beta.models.non_employee_request_body import NonEmployeeRequestBody - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808b6ef1d43e016efba0ce470904' # str | Non-employee record id (UUID) # str | Non-employee record id (UUID) - non_employee_request_body = '''{ + id = '2c91808b6ef1d43e016efba0ce470904' # str | Non-employee record id (UUID) # str | Non-employee record id (UUID) + non_employee_request_body = '''{ "sourceId" : "2c91808568c529c60168cca6f90c1313", "firstName" : "William", "lastName" : "Smith", @@ -9767,16 +9455,16 @@ "email" : "william.smith@example.com", "startDate" : "2020-03-24T00:00:00-05:00" }''' # NonEmployeeRequestBody | Non-employee record creation request body. Attributes are restricted by user type. Owner of source can update end date. Organization admins can update all available fields. - try: - # Update Non-Employee Record - new_non_employee_request_body = NonEmployeeRequestBody.from_json(non_employee_request_body) - results = NonEmployeeLifecycleManagementApi(api_client).update_non_employee_record(id=id, non_employee_request_body=new_non_employee_request_body) - # Below is a request that includes all optional parameters - # results = NonEmployeeLifecycleManagementApi(api_client).update_non_employee_record(id, new_non_employee_request_body) - print("The response of NonEmployeeLifecycleManagementApi->update_non_employee_record:\n") - pprint(results) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->update_non_employee_record: %s\n" % e) + try: + # Update Non-Employee Record + new_non_employee_request_body = NonEmployeeRequestBody.from_json(non_employee_request_body) + results = NonEmployeeLifecycleManagementApi(api_client).update_non_employee_record(id=id, non_employee_request_body=new_non_employee_request_body) + # Below is a request that includes all optional parameters + # results = NonEmployeeLifecycleManagementApi(api_client).update_non_employee_record(id, new_non_employee_request_body) + print("The response of NonEmployeeLifecycleManagementApi->update_non_employee_record:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->update_non_employee_record: %s\n" % e) - path: /verified-domains method: POST xCodeSample: @@ -9787,25 +9475,24 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.domain_address import DomainAddress from sailpoint.beta.models.domain_status_dto import DomainStatusDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - domain_address = '''{ + domain_address = '''{ "domain" : "sailpoint.com" }''' # DomainAddress | - try: - # Verify domain address via DKIM - new_domain_address = DomainAddress.from_json(domain_address) - results = NotificationsApi(api_client).create_domain_dkim(domain_address=new_domain_address) - # Below is a request that includes all optional parameters - # results = NotificationsApi(api_client).create_domain_dkim(new_domain_address) - print("The response of NotificationsApi->create_domain_dkim:\n") - pprint(results) - except Exception as e: - print("Exception when calling NotificationsApi->create_domain_dkim: %s\n" % e) + try: + # Verify domain address via DKIM + new_domain_address = DomainAddress.from_json(domain_address) + results = NotificationsApi(api_client).create_domain_dkim(domain_address=new_domain_address) + # Below is a request that includes all optional parameters + # results = NotificationsApi(api_client).create_domain_dkim(new_domain_address) + print("The response of NotificationsApi->create_domain_dkim:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NotificationsApi->create_domain_dkim: %s\n" % e) - path: /notification-templates method: POST xCodeSample: @@ -9815,13 +9502,12 @@ from sailpoint.beta.api.notifications_api import NotificationsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.template_dto import TemplateDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - template_dto = '''{ + template_dto = '''{ "slackTemplate" : "slackTemplate", "footer" : "footer", "teamsTemplate" : "teamsTemplate", @@ -9839,16 +9525,16 @@ "id" : "c17bea3a-574d-453c-9e04-4365fbf5af0b", "key" : "cloud_manual_work_item_summary" }''' # TemplateDto | - try: - # Create Notification Template - new_template_dto = TemplateDto.from_json(template_dto) - results = NotificationsApi(api_client).create_notification_template(template_dto=new_template_dto) - # Below is a request that includes all optional parameters - # results = NotificationsApi(api_client).create_notification_template(new_template_dto) - print("The response of NotificationsApi->create_notification_template:\n") - pprint(results) - except Exception as e: - print("Exception when calling NotificationsApi->create_notification_template: %s\n" % e) + try: + # Create Notification Template + new_template_dto = TemplateDto.from_json(template_dto) + results = NotificationsApi(api_client).create_notification_template(template_dto=new_template_dto) + # Below is a request that includes all optional parameters + # results = NotificationsApi(api_client).create_notification_template(new_template_dto) + print("The response of NotificationsApi->create_notification_template:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NotificationsApi->create_notification_template: %s\n" % e) - path: /verified-from-addresses method: POST xCodeSample: @@ -9858,28 +9544,27 @@ from sailpoint.beta.api.notifications_api import NotificationsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.email_status_dto import EmailStatusDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - email_status_dto = '''{ + email_status_dto = '''{ "isVerifiedByDomain" : false, "verificationStatus" : "PENDING", "id" : "id", "email" : "sender@example.com" }''' # EmailStatusDto | - try: - # Create Verified From Address - new_email_status_dto = EmailStatusDto.from_json(email_status_dto) - results = NotificationsApi(api_client).create_verified_from_address(email_status_dto=new_email_status_dto) - # Below is a request that includes all optional parameters - # results = NotificationsApi(api_client).create_verified_from_address(new_email_status_dto) - print("The response of NotificationsApi->create_verified_from_address:\n") - pprint(results) - except Exception as e: - print("Exception when calling NotificationsApi->create_verified_from_address: %s\n" % e) + try: + # Create Verified From Address + new_email_status_dto = EmailStatusDto.from_json(email_status_dto) + results = NotificationsApi(api_client).create_verified_from_address(email_status_dto=new_email_status_dto) + # Below is a request that includes all optional parameters + # results = NotificationsApi(api_client).create_verified_from_address(new_email_status_dto) + print("The response of NotificationsApi->create_verified_from_address:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NotificationsApi->create_verified_from_address: %s\n" % e) - path: /notification-templates/bulk-delete method: POST xCodeSample: @@ -9889,21 +9574,20 @@ from sailpoint.beta.api.notifications_api import NotificationsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.template_bulk_delete_dto import TemplateBulkDeleteDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - template_bulk_delete_dto = '''[sailpoint.beta.TemplateBulkDeleteDto()]''' # List[TemplateBulkDeleteDto] | - try: - # Bulk Delete Notification Templates - new_template_bulk_delete_dto = TemplateBulkDeleteDto.from_json(template_bulk_delete_dto) - NotificationsApi(api_client).delete_notification_templates_in_bulk(template_bulk_delete_dto=new_template_bulk_delete_dto) - # Below is a request that includes all optional parameters - # NotificationsApi(api_client).delete_notification_templates_in_bulk(new_template_bulk_delete_dto) - except Exception as e: - print("Exception when calling NotificationsApi->delete_notification_templates_in_bulk: %s\n" % e) + template_bulk_delete_dto = '''[sailpoint.beta.TemplateBulkDeleteDto()]''' # List[TemplateBulkDeleteDto] | + try: + # Bulk Delete Notification Templates + new_template_bulk_delete_dto = TemplateBulkDeleteDto.from_json(template_bulk_delete_dto) + NotificationsApi(api_client).delete_notification_templates_in_bulk(template_bulk_delete_dto=new_template_bulk_delete_dto) + # Below is a request that includes all optional parameters + # NotificationsApi(api_client).delete_notification_templates_in_bulk(new_template_bulk_delete_dto) + except Exception as e: + print("Exception when calling NotificationsApi->delete_notification_templates_in_bulk: %s\n" % e) - path: /verified-from-addresses/{id} method: DELETE xCodeSample: @@ -9912,21 +9596,20 @@ source: | from sailpoint.beta.api.notifications_api import NotificationsApi from sailpoint.beta.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'id_example' # str | # str | - try: - # Delete Verified From Address - - NotificationsApi(api_client).delete_verified_from_address(id=id) - # Below is a request that includes all optional parameters - # NotificationsApi(api_client).delete_verified_from_address(id) - except Exception as e: - print("Exception when calling NotificationsApi->delete_verified_from_address: %s\n" % e) + id = 'id_example' # str | # str | + try: + # Delete Verified From Address + + NotificationsApi(api_client).delete_verified_from_address(id=id) + # Below is a request that includes all optional parameters + # NotificationsApi(api_client).delete_verified_from_address(id) + except Exception as e: + print("Exception when calling NotificationsApi->delete_verified_from_address: %s\n" % e) - path: /verified-domains method: GET xCodeSample: @@ -9936,22 +9619,21 @@ from sailpoint.beta.api.notifications_api import NotificationsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.dkim_attributes import DkimAttributes - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - try: - # Get DKIM Attributes - - results = NotificationsApi(api_client).get_dkim_attributes() - # Below is a request that includes all optional parameters - # results = NotificationsApi(api_client).get_dkim_attributes() - print("The response of NotificationsApi->get_dkim_attributes:\n") - pprint(results) - except Exception as e: - print("Exception when calling NotificationsApi->get_dkim_attributes: %s\n" % e) + try: + # Get DKIM Attributes + + results = NotificationsApi(api_client).get_dkim_attributes() + # Below is a request that includes all optional parameters + # results = NotificationsApi(api_client).get_dkim_attributes() + print("The response of NotificationsApi->get_dkim_attributes:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NotificationsApi->get_dkim_attributes: %s\n" % e) - path: /mail-from-attributes/{identityId} method: GET xCodeSample: @@ -9961,23 +9643,22 @@ from sailpoint.beta.api.notifications_api import NotificationsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.mail_from_attributes import MailFromAttributes - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - identity_id = 'bobsmith@sailpoint.com' # str | Returns the MX and TXT record to be put in your DNS, as well as the MAIL FROM domain status # str | Returns the MX and TXT record to be put in your DNS, as well as the MAIL FROM domain status - try: - # Get MAIL FROM Attributes - - results = NotificationsApi(api_client).get_mail_from_attributes(identity_id=identity_id) - # Below is a request that includes all optional parameters - # results = NotificationsApi(api_client).get_mail_from_attributes(identity_id) - print("The response of NotificationsApi->get_mail_from_attributes:\n") - pprint(results) - except Exception as e: - print("Exception when calling NotificationsApi->get_mail_from_attributes: %s\n" % e) + identity_id = 'bobsmith@sailpoint.com' # str | Returns the MX and TXT record to be put in your DNS, as well as the MAIL FROM domain status # str | Returns the MX and TXT record to be put in your DNS, as well as the MAIL FROM domain status + try: + # Get MAIL FROM Attributes + + results = NotificationsApi(api_client).get_mail_from_attributes(identity_id=identity_id) + # Below is a request that includes all optional parameters + # results = NotificationsApi(api_client).get_mail_from_attributes(identity_id) + print("The response of NotificationsApi->get_mail_from_attributes:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NotificationsApi->get_mail_from_attributes: %s\n" % e) - path: /notification-templates/{id} method: GET xCodeSample: @@ -9987,23 +9668,22 @@ from sailpoint.beta.api.notifications_api import NotificationsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.template_dto import TemplateDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Id of the Notification Template # str | Id of the Notification Template - try: - # Get Notification Template By Id - - results = NotificationsApi(api_client).get_notification_template(id=id) - # Below is a request that includes all optional parameters - # results = NotificationsApi(api_client).get_notification_template(id) - print("The response of NotificationsApi->get_notification_template:\n") - pprint(results) - except Exception as e: - print("Exception when calling NotificationsApi->get_notification_template: %s\n" % e) + id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Id of the Notification Template # str | Id of the Notification Template + try: + # Get Notification Template By Id + + results = NotificationsApi(api_client).get_notification_template(id=id) + # Below is a request that includes all optional parameters + # results = NotificationsApi(api_client).get_notification_template(id) + print("The response of NotificationsApi->get_notification_template:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NotificationsApi->get_notification_template: %s\n" % e) - path: /notification-template-context method: GET xCodeSample: @@ -10013,22 +9693,21 @@ from sailpoint.beta.api.notifications_api import NotificationsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.notification_template_context import NotificationTemplateContext - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - try: - # Get Notification Template Context - - results = NotificationsApi(api_client).get_notifications_template_context() - # Below is a request that includes all optional parameters - # results = NotificationsApi(api_client).get_notifications_template_context() - print("The response of NotificationsApi->get_notifications_template_context:\n") - pprint(results) - except Exception as e: - print("Exception when calling NotificationsApi->get_notifications_template_context: %s\n" % e) + try: + # Get Notification Template Context + + results = NotificationsApi(api_client).get_notifications_template_context() + # Below is a request that includes all optional parameters + # results = NotificationsApi(api_client).get_notifications_template_context() + print("The response of NotificationsApi->get_notifications_template_context:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NotificationsApi->get_notifications_template_context: %s\n" % e) - path: /verified-from-addresses method: GET xCodeSample: @@ -10038,27 +9717,26 @@ from sailpoint.beta.api.notifications_api import NotificationsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.email_status_dto import EmailStatusDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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 = 'email eq \"john.doe@company.com\"' # 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: **email**: *eq, ge, le, 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: **email**: *eq, ge, le, sw* (optional) - sorters = 'email' # 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: **email** (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: **email** (optional) - try: - # List From Addresses - - results = NotificationsApi(api_client).list_from_addresses() - # Below is a request that includes all optional parameters - # results = NotificationsApi(api_client).list_from_addresses(limit, offset, count, filters, sorters) - print("The response of NotificationsApi->list_from_addresses:\n") - pprint(results) - except Exception as e: - print("Exception when calling NotificationsApi->list_from_addresses: %s\n" % e) + 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 = 'email eq \"john.doe@company.com\"' # 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: **email**: *eq, ge, le, 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: **email**: *eq, ge, le, sw* (optional) + sorters = 'email' # 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: **email** (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: **email** (optional) + try: + # List From Addresses + + results = NotificationsApi(api_client).list_from_addresses() + # Below is a request that includes all optional parameters + # results = NotificationsApi(api_client).list_from_addresses(limit, offset, count, filters, sorters) + print("The response of NotificationsApi->list_from_addresses:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NotificationsApi->list_from_addresses: %s\n" % e) - path: /notification-preferences/{key} method: GET xCodeSample: @@ -10068,23 +9746,22 @@ from sailpoint.beta.api.notifications_api import NotificationsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.preferences_dto import PreferencesDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - key = 'cloud_manual_work_item_summary' # str | The notification key. # str | The notification key. - try: - # List Notification Preferences for tenant. - - results = NotificationsApi(api_client).list_notification_preferences(key=key) - # Below is a request that includes all optional parameters - # results = NotificationsApi(api_client).list_notification_preferences(key) - print("The response of NotificationsApi->list_notification_preferences:\n") - pprint(results) - except Exception as e: - print("Exception when calling NotificationsApi->list_notification_preferences: %s\n" % e) + key = 'cloud_manual_work_item_summary' # str | The notification key. # str | The notification key. + try: + # List Notification Preferences for tenant. + + results = NotificationsApi(api_client).list_notification_preferences(key=key) + # Below is a request that includes all optional parameters + # results = NotificationsApi(api_client).list_notification_preferences(key) + print("The response of NotificationsApi->list_notification_preferences:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NotificationsApi->list_notification_preferences: %s\n" % e) - path: /notification-template-defaults method: GET xCodeSample: @@ -10094,25 +9771,24 @@ from sailpoint.beta.api.notifications_api import NotificationsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.template_dto_default import TemplateDtoDefault - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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) - filters = 'key eq \"cloud_manual_work_item_summary\"' # 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: **key**: *eq, in, sw* **medium**: *eq, sw* **locale**: *eq, 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: **key**: *eq, in, sw* **medium**: *eq, sw* **locale**: *eq, sw* (optional) - try: - # List Notification Template Defaults - - results = NotificationsApi(api_client).list_notification_template_defaults() - # Below is a request that includes all optional parameters - # results = NotificationsApi(api_client).list_notification_template_defaults(limit, offset, filters) - print("The response of NotificationsApi->list_notification_template_defaults:\n") - pprint(results) - except Exception as e: - print("Exception when calling NotificationsApi->list_notification_template_defaults: %s\n" % e) + 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) + filters = 'key eq \"cloud_manual_work_item_summary\"' # 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: **key**: *eq, in, sw* **medium**: *eq, sw* **locale**: *eq, 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: **key**: *eq, in, sw* **medium**: *eq, sw* **locale**: *eq, sw* (optional) + try: + # List Notification Template Defaults + + results = NotificationsApi(api_client).list_notification_template_defaults() + # Below is a request that includes all optional parameters + # results = NotificationsApi(api_client).list_notification_template_defaults(limit, offset, filters) + print("The response of NotificationsApi->list_notification_template_defaults:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NotificationsApi->list_notification_template_defaults: %s\n" % e) - path: /notification-templates method: GET xCodeSample: @@ -10122,25 +9798,24 @@ from sailpoint.beta.api.notifications_api import NotificationsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.template_dto import TemplateDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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) - filters = 'medium eq \"EMAIL\"' # 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: **key**: *eq, in, sw* **medium**: *eq, sw* **locale**: *eq, 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: **key**: *eq, in, sw* **medium**: *eq, sw* **locale**: *eq, sw* (optional) - try: - # List Notification Templates - - results = NotificationsApi(api_client).list_notification_templates() - # Below is a request that includes all optional parameters - # results = NotificationsApi(api_client).list_notification_templates(limit, offset, filters) - print("The response of NotificationsApi->list_notification_templates:\n") - pprint(results) - except Exception as e: - print("Exception when calling NotificationsApi->list_notification_templates: %s\n" % e) + 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) + filters = 'medium eq \"EMAIL\"' # 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: **key**: *eq, in, sw* **medium**: *eq, sw* **locale**: *eq, 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: **key**: *eq, in, sw* **medium**: *eq, sw* **locale**: *eq, sw* (optional) + try: + # List Notification Templates + + results = NotificationsApi(api_client).list_notification_templates() + # Below is a request that includes all optional parameters + # results = NotificationsApi(api_client).list_notification_templates(limit, offset, filters) + print("The response of NotificationsApi->list_notification_templates:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NotificationsApi->list_notification_templates: %s\n" % e) - path: /mail-from-attributes method: PUT xCodeSample: @@ -10151,26 +9826,25 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.mail_from_attributes import MailFromAttributes from sailpoint.beta.models.mail_from_attributes_dto import MailFromAttributesDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - mail_from_attributes_dto = '''{ + mail_from_attributes_dto = '''{ "identity" : "BobSmith@sailpoint.com", "mailFromDomain" : "example.sailpoint.com" }''' # MailFromAttributesDto | - try: - # Change MAIL FROM domain - new_mail_from_attributes_dto = MailFromAttributesDto.from_json(mail_from_attributes_dto) - results = NotificationsApi(api_client).put_mail_from_attributes(mail_from_attributes_dto=new_mail_from_attributes_dto) - # Below is a request that includes all optional parameters - # results = NotificationsApi(api_client).put_mail_from_attributes(new_mail_from_attributes_dto) - print("The response of NotificationsApi->put_mail_from_attributes:\n") - pprint(results) - except Exception as e: - print("Exception when calling NotificationsApi->put_mail_from_attributes: %s\n" % e) + try: + # Change MAIL FROM domain + new_mail_from_attributes_dto = MailFromAttributesDto.from_json(mail_from_attributes_dto) + results = NotificationsApi(api_client).put_mail_from_attributes(mail_from_attributes_dto=new_mail_from_attributes_dto) + # Below is a request that includes all optional parameters + # results = NotificationsApi(api_client).put_mail_from_attributes(new_mail_from_attributes_dto) + print("The response of NotificationsApi->put_mail_from_attributes:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NotificationsApi->put_mail_from_attributes: %s\n" % e) - path: /send-test-notification method: POST xCodeSample: @@ -10180,25 +9854,24 @@ from sailpoint.beta.api.notifications_api import NotificationsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.send_test_notification_request_dto import SendTestNotificationRequestDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - send_test_notification_request_dto = '''{ + send_test_notification_request_dto = '''{ "context" : "{}", "medium" : "EMAIL", "key" : "cloud_manual_work_item_summary" }''' # SendTestNotificationRequestDto | - try: - # Send Test Notification - new_send_test_notification_request_dto = SendTestNotificationRequestDto.from_json(send_test_notification_request_dto) - NotificationsApi(api_client).send_test_notification(send_test_notification_request_dto=new_send_test_notification_request_dto) - # Below is a request that includes all optional parameters - # NotificationsApi(api_client).send_test_notification(new_send_test_notification_request_dto) - except Exception as e: - print("Exception when calling NotificationsApi->send_test_notification: %s\n" % e) + try: + # Send Test Notification + new_send_test_notification_request_dto = SendTestNotificationRequestDto.from_json(send_test_notification_request_dto) + NotificationsApi(api_client).send_test_notification(send_test_notification_request_dto=new_send_test_notification_request_dto) + # Below is a request that includes all optional parameters + # NotificationsApi(api_client).send_test_notification(new_send_test_notification_request_dto) + except Exception as e: + print("Exception when calling NotificationsApi->send_test_notification: %s\n" % e) - path: /oauth-clients method: POST xCodeSample: @@ -10209,13 +9882,12 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.create_o_auth_client_request import CreateOAuthClientRequest from sailpoint.beta.models.create_o_auth_client_response import CreateOAuthClientResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - create_o_auth_client_request = '''{ + create_o_auth_client_request = '''{ "internal" : false, "businessName" : "Acme-Solar", "description" : "An API client used for the authorization_code, refresh_token, and client_credentials flows", @@ -10232,16 +9904,16 @@ "name" : "Demo API Client", "claimsSupported" : false }''' # CreateOAuthClientRequest | - try: - # Create OAuth Client - new_create_o_auth_client_request = CreateOAuthClientRequest.from_json(create_o_auth_client_request) - results = OAuthClientsApi(api_client).create_oauth_client(create_o_auth_client_request=new_create_o_auth_client_request) - # Below is a request that includes all optional parameters - # results = OAuthClientsApi(api_client).create_oauth_client(new_create_o_auth_client_request) - print("The response of OAuthClientsApi->create_oauth_client:\n") - pprint(results) - except Exception as e: - print("Exception when calling OAuthClientsApi->create_oauth_client: %s\n" % e) + try: + # Create OAuth Client + new_create_o_auth_client_request = CreateOAuthClientRequest.from_json(create_o_auth_client_request) + results = OAuthClientsApi(api_client).create_oauth_client(create_o_auth_client_request=new_create_o_auth_client_request) + # Below is a request that includes all optional parameters + # results = OAuthClientsApi(api_client).create_oauth_client(new_create_o_auth_client_request) + print("The response of OAuthClientsApi->create_oauth_client:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling OAuthClientsApi->create_oauth_client: %s\n" % e) - path: /oauth-clients/{id} method: DELETE xCodeSample: @@ -10250,21 +9922,20 @@ source: | from sailpoint.beta.api.o_auth_clients_api import OAuthClientsApi from sailpoint.beta.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The OAuth client id # str | The OAuth client id - try: - # Delete OAuth Client - - OAuthClientsApi(api_client).delete_oauth_client(id=id) - # Below is a request that includes all optional parameters - # OAuthClientsApi(api_client).delete_oauth_client(id) - except Exception as e: - print("Exception when calling OAuthClientsApi->delete_oauth_client: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The OAuth client id # str | The OAuth client id + try: + # Delete OAuth Client + + OAuthClientsApi(api_client).delete_oauth_client(id=id) + # Below is a request that includes all optional parameters + # OAuthClientsApi(api_client).delete_oauth_client(id) + except Exception as e: + print("Exception when calling OAuthClientsApi->delete_oauth_client: %s\n" % e) - path: /oauth-clients/{id} method: GET xCodeSample: @@ -10274,23 +9945,22 @@ from sailpoint.beta.api.o_auth_clients_api import OAuthClientsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.get_o_auth_client_response import GetOAuthClientResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The OAuth client id # str | The OAuth client id - try: - # Get OAuth Client - - results = OAuthClientsApi(api_client).get_oauth_client(id=id) - # Below is a request that includes all optional parameters - # results = OAuthClientsApi(api_client).get_oauth_client(id) - print("The response of OAuthClientsApi->get_oauth_client:\n") - pprint(results) - except Exception as e: - print("Exception when calling OAuthClientsApi->get_oauth_client: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The OAuth client id # str | The OAuth client id + try: + # Get OAuth Client + + results = OAuthClientsApi(api_client).get_oauth_client(id=id) + # Below is a request that includes all optional parameters + # results = OAuthClientsApi(api_client).get_oauth_client(id) + print("The response of OAuthClientsApi->get_oauth_client:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling OAuthClientsApi->get_oauth_client: %s\n" % e) - path: /oauth-clients method: GET xCodeSample: @@ -10300,23 +9970,22 @@ from sailpoint.beta.api.o_auth_clients_api import OAuthClientsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.get_o_auth_client_response import GetOAuthClientResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - filters = 'lastUsed le 2023-02-05T10:59:27.214Z' # 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: **lastUsed**: *le, isnull* (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: **lastUsed**: *le, isnull* (optional) - try: - # List OAuth Clients - - results = OAuthClientsApi(api_client).list_oauth_clients() - # Below is a request that includes all optional parameters - # results = OAuthClientsApi(api_client).list_oauth_clients(filters) - print("The response of OAuthClientsApi->list_oauth_clients:\n") - pprint(results) - except Exception as e: - print("Exception when calling OAuthClientsApi->list_oauth_clients: %s\n" % e) + filters = 'lastUsed le 2023-02-05T10:59:27.214Z' # 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: **lastUsed**: *le, isnull* (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: **lastUsed**: *le, isnull* (optional) + try: + # List OAuth Clients + + results = OAuthClientsApi(api_client).list_oauth_clients() + # Below is a request that includes all optional parameters + # results = OAuthClientsApi(api_client).list_oauth_clients(filters) + print("The response of OAuthClientsApi->list_oauth_clients:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling OAuthClientsApi->list_oauth_clients: %s\n" % e) - path: /oauth-clients/{id} method: PATCH xCodeSample: @@ -10327,24 +9996,23 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.get_o_auth_client_response import GetOAuthClientResponse from sailpoint.beta.models.json_patch_operation import JsonPatchOperation - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The OAuth client id # str | The OAuth client id - json_patch_operation = '''[{op=replace, path=/strongAuthSupported, value=true}, {op=replace, path=/businessName, value=acme-solar}]''' # List[JsonPatchOperation] | A list of OAuth client update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * tenant * businessName * homepageUrl * name * description * accessTokenValiditySeconds * refreshTokenValiditySeconds * redirectUris * grantTypes * accessType * enabled * strongAuthSupported * claimsSupported - try: - # Patch OAuth Client - new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) - results = OAuthClientsApi(api_client).patch_oauth_client(id=id, json_patch_operation=new_json_patch_operation) - # Below is a request that includes all optional parameters - # results = OAuthClientsApi(api_client).patch_oauth_client(id, new_json_patch_operation) - print("The response of OAuthClientsApi->patch_oauth_client:\n") - pprint(results) - except Exception as e: - print("Exception when calling OAuthClientsApi->patch_oauth_client: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The OAuth client id # str | The OAuth client id + json_patch_operation = '''[{op=replace, path=/strongAuthSupported, value=true}, {op=replace, path=/businessName, value=acme-solar}]''' # List[JsonPatchOperation] | A list of OAuth client update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * tenant * businessName * homepageUrl * name * description * accessTokenValiditySeconds * refreshTokenValiditySeconds * redirectUris * grantTypes * accessType * enabled * strongAuthSupported * claimsSupported + try: + # Patch OAuth Client + new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) + results = OAuthClientsApi(api_client).patch_oauth_client(id=id, json_patch_operation=new_json_patch_operation) + # Below is a request that includes all optional parameters + # results = OAuthClientsApi(api_client).patch_oauth_client(id, new_json_patch_operation) + print("The response of OAuthClientsApi->patch_oauth_client:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling OAuthClientsApi->patch_oauth_client: %s\n" % e) - path: /org-config method: GET xCodeSample: @@ -10354,22 +10022,21 @@ from sailpoint.beta.api.org_config_api import OrgConfigApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.org_config import OrgConfig - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - try: - # Get Org configuration settings - - results = OrgConfigApi(api_client).get_org_config() - # Below is a request that includes all optional parameters - # results = OrgConfigApi(api_client).get_org_config() - print("The response of OrgConfigApi->get_org_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling OrgConfigApi->get_org_config: %s\n" % e) + try: + # Get Org configuration settings + + results = OrgConfigApi(api_client).get_org_config() + # Below is a request that includes all optional parameters + # results = OrgConfigApi(api_client).get_org_config() + print("The response of OrgConfigApi->get_org_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling OrgConfigApi->get_org_config: %s\n" % e) - path: /org-config/valid-time-zones method: GET xCodeSample: @@ -10378,22 +10045,21 @@ source: | from sailpoint.beta.api.org_config_api import OrgConfigApi from sailpoint.beta.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - try: - # Get list of time zones - - results = OrgConfigApi(api_client).get_valid_time_zones() - # Below is a request that includes all optional parameters - # results = OrgConfigApi(api_client).get_valid_time_zones() - print("The response of OrgConfigApi->get_valid_time_zones:\n") - pprint(results) - except Exception as e: - print("Exception when calling OrgConfigApi->get_valid_time_zones: %s\n" % e) + try: + # Get list of time zones + + results = OrgConfigApi(api_client).get_valid_time_zones() + # Below is a request that includes all optional parameters + # results = OrgConfigApi(api_client).get_valid_time_zones() + print("The response of OrgConfigApi->get_valid_time_zones:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling OrgConfigApi->get_valid_time_zones: %s\n" % e) - path: /org-config method: PATCH xCodeSample: @@ -10404,23 +10070,22 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.json_patch_operation import JsonPatchOperation from sailpoint.beta.models.org_config import OrgConfig - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - json_patch_operation = '''[{op=replace, path=/timeZone, value=America/Toronto}]''' # List[JsonPatchOperation] | A list of schema attribute update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. - try: - # Patch an Org configuration property - new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) - results = OrgConfigApi(api_client).patch_org_config(json_patch_operation=new_json_patch_operation) - # Below is a request that includes all optional parameters - # results = OrgConfigApi(api_client).patch_org_config(new_json_patch_operation) - print("The response of OrgConfigApi->patch_org_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling OrgConfigApi->patch_org_config: %s\n" % e) + json_patch_operation = '''[{op=replace, path=/timeZone, value=America/Toronto}]''' # List[JsonPatchOperation] | A list of schema attribute update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. + try: + # Patch an Org configuration property + new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) + results = OrgConfigApi(api_client).patch_org_config(json_patch_operation=new_json_patch_operation) + # Below is a request that includes all optional parameters + # results = OrgConfigApi(api_client).patch_org_config(new_json_patch_operation) + print("The response of OrgConfigApi->patch_org_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling OrgConfigApi->patch_org_config: %s\n" % e) - path: /password-org-config method: POST xCodeSample: @@ -10430,28 +10095,27 @@ from sailpoint.beta.api.password_configuration_api import PasswordConfigurationApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.password_org_config import PasswordOrgConfig - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - password_org_config = '''{ + password_org_config = '''{ "digitTokenLength" : 9, "digitTokenEnabled" : true, "digitTokenDurationMinutes" : 10, "customInstructionsEnabled" : true }''' # PasswordOrgConfig | - try: - # Create Password Org Config - new_password_org_config = PasswordOrgConfig.from_json(password_org_config) - results = PasswordConfigurationApi(api_client).create_password_org_config(password_org_config=new_password_org_config) - # Below is a request that includes all optional parameters - # results = PasswordConfigurationApi(api_client).create_password_org_config(new_password_org_config) - print("The response of PasswordConfigurationApi->create_password_org_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling PasswordConfigurationApi->create_password_org_config: %s\n" % e) + try: + # Create Password Org Config + new_password_org_config = PasswordOrgConfig.from_json(password_org_config) + results = PasswordConfigurationApi(api_client).create_password_org_config(password_org_config=new_password_org_config) + # Below is a request that includes all optional parameters + # results = PasswordConfigurationApi(api_client).create_password_org_config(new_password_org_config) + print("The response of PasswordConfigurationApi->create_password_org_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling PasswordConfigurationApi->create_password_org_config: %s\n" % e) - path: /password-org-config method: GET xCodeSample: @@ -10461,22 +10125,21 @@ from sailpoint.beta.api.password_configuration_api import PasswordConfigurationApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.password_org_config import PasswordOrgConfig - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - try: - # Get Password Org Config - - results = PasswordConfigurationApi(api_client).get_password_org_config() - # Below is a request that includes all optional parameters - # results = PasswordConfigurationApi(api_client).get_password_org_config() - print("The response of PasswordConfigurationApi->get_password_org_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling PasswordConfigurationApi->get_password_org_config: %s\n" % e) + try: + # Get Password Org Config + + results = PasswordConfigurationApi(api_client).get_password_org_config() + # Below is a request that includes all optional parameters + # results = PasswordConfigurationApi(api_client).get_password_org_config() + print("The response of PasswordConfigurationApi->get_password_org_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling PasswordConfigurationApi->get_password_org_config: %s\n" % e) - path: /password-org-config method: PUT xCodeSample: @@ -10486,28 +10149,27 @@ from sailpoint.beta.api.password_configuration_api import PasswordConfigurationApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.password_org_config import PasswordOrgConfig - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - password_org_config = '''{ + password_org_config = '''{ "digitTokenLength" : 9, "digitTokenEnabled" : true, "digitTokenDurationMinutes" : 10, "customInstructionsEnabled" : true }''' # PasswordOrgConfig | - try: - # Update Password Org Config - new_password_org_config = PasswordOrgConfig.from_json(password_org_config) - results = PasswordConfigurationApi(api_client).put_password_org_config(password_org_config=new_password_org_config) - # Below is a request that includes all optional parameters - # results = PasswordConfigurationApi(api_client).put_password_org_config(new_password_org_config) - print("The response of PasswordConfigurationApi->put_password_org_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling PasswordConfigurationApi->put_password_org_config: %s\n" % e) + try: + # Update Password Org Config + new_password_org_config = PasswordOrgConfig.from_json(password_org_config) + results = PasswordConfigurationApi(api_client).put_password_org_config(password_org_config=new_password_org_config) + # Below is a request that includes all optional parameters + # results = PasswordConfigurationApi(api_client).put_password_org_config(new_password_org_config) + print("The response of PasswordConfigurationApi->put_password_org_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling PasswordConfigurationApi->put_password_org_config: %s\n" % e) - path: /password-dictionary method: GET xCodeSample: @@ -10516,22 +10178,21 @@ source: | from sailpoint.beta.api.password_dictionary_api import PasswordDictionaryApi from sailpoint.beta.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - try: - # Get Password Dictionary - - results = PasswordDictionaryApi(api_client).get_password_dictionary() - # Below is a request that includes all optional parameters - # results = PasswordDictionaryApi(api_client).get_password_dictionary() - print("The response of PasswordDictionaryApi->get_password_dictionary:\n") - pprint(results) - except Exception as e: - print("Exception when calling PasswordDictionaryApi->get_password_dictionary: %s\n" % e) + try: + # Get Password Dictionary + + results = PasswordDictionaryApi(api_client).get_password_dictionary() + # Below is a request that includes all optional parameters + # results = PasswordDictionaryApi(api_client).get_password_dictionary() + print("The response of PasswordDictionaryApi->get_password_dictionary:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling PasswordDictionaryApi->get_password_dictionary: %s\n" % e) - path: /password-dictionary method: PUT xCodeSample: @@ -10540,21 +10201,20 @@ source: | from sailpoint.beta.api.password_dictionary_api import PasswordDictionaryApi from sailpoint.beta.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - file = None # bytearray | (optional) # bytearray | (optional) - try: - # Update Password Dictionary - - PasswordDictionaryApi(api_client).put_password_dictionary() - # Below is a request that includes all optional parameters - # PasswordDictionaryApi(api_client).put_password_dictionary(file) - except Exception as e: - print("Exception when calling PasswordDictionaryApi->put_password_dictionary: %s\n" % e) + file = None # bytearray | (optional) # bytearray | (optional) + try: + # Update Password Dictionary + + PasswordDictionaryApi(api_client).put_password_dictionary() + # Below is a request that includes all optional parameters + # PasswordDictionaryApi(api_client).put_password_dictionary(file) + except Exception as e: + print("Exception when calling PasswordDictionaryApi->put_password_dictionary: %s\n" % e) - path: /generate-password-reset-token/digit method: POST xCodeSample: @@ -10565,27 +10225,26 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.password_digit_token import PasswordDigitToken from sailpoint.beta.models.password_digit_token_reset import PasswordDigitTokenReset - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - password_digit_token_reset = '''{ + password_digit_token_reset = '''{ "durationMinutes" : 5, "length" : 8, "userId" : "Abby.Smith" }''' # PasswordDigitTokenReset | - try: - # Generate a digit token - new_password_digit_token_reset = PasswordDigitTokenReset.from_json(password_digit_token_reset) - results = PasswordManagementApi(api_client).create_digit_token(password_digit_token_reset=new_password_digit_token_reset) - # Below is a request that includes all optional parameters - # results = PasswordManagementApi(api_client).create_digit_token(new_password_digit_token_reset) - print("The response of PasswordManagementApi->create_digit_token:\n") - pprint(results) - except Exception as e: - print("Exception when calling PasswordManagementApi->create_digit_token: %s\n" % e) + try: + # Generate a digit token + new_password_digit_token_reset = PasswordDigitTokenReset.from_json(password_digit_token_reset) + results = PasswordManagementApi(api_client).create_digit_token(password_digit_token_reset=new_password_digit_token_reset) + # Below is a request that includes all optional parameters + # results = PasswordManagementApi(api_client).create_digit_token(new_password_digit_token_reset) + print("The response of PasswordManagementApi->create_digit_token:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling PasswordManagementApi->create_digit_token: %s\n" % e) - path: /password-change-status/{id} method: GET xCodeSample: @@ -10595,23 +10254,22 @@ from sailpoint.beta.api.password_management_api import PasswordManagementApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.password_status import PasswordStatus - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'id_example' # str | # str | - try: - # Get Password Change Request Status - - results = PasswordManagementApi(api_client).get_identity_password_change_status(id=id) - # Below is a request that includes all optional parameters - # results = PasswordManagementApi(api_client).get_identity_password_change_status(id) - print("The response of PasswordManagementApi->get_identity_password_change_status:\n") - pprint(results) - except Exception as e: - print("Exception when calling PasswordManagementApi->get_identity_password_change_status: %s\n" % e) + id = 'id_example' # str | # str | + try: + # Get Password Change Request Status + + results = PasswordManagementApi(api_client).get_identity_password_change_status(id=id) + # Below is a request that includes all optional parameters + # results = PasswordManagementApi(api_client).get_identity_password_change_status(id) + print("The response of PasswordManagementApi->get_identity_password_change_status:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling PasswordManagementApi->get_identity_password_change_status: %s\n" % e) - path: /query-password-info method: POST xCodeSample: @@ -10622,26 +10280,25 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.password_info import PasswordInfo from sailpoint.beta.models.password_info_query_dto import PasswordInfoQueryDTO - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - password_info_query_dto = '''{ + password_info_query_dto = '''{ "sourceName" : "My-AD", "userName" : "Abby.Smith" }''' # PasswordInfoQueryDTO | - try: - # Query Password Info - new_password_info_query_dto = PasswordInfoQueryDto.from_json(password_info_query_dto) - results = PasswordManagementApi(api_client).query_password_info(password_info_query_dto=new_password_info_query_dto) - # Below is a request that includes all optional parameters - # results = PasswordManagementApi(api_client).query_password_info(new_password_info_query_dto) - print("The response of PasswordManagementApi->query_password_info:\n") - pprint(results) - except Exception as e: - print("Exception when calling PasswordManagementApi->query_password_info: %s\n" % e) + try: + # Query Password Info + new_password_info_query_dto = PasswordInfoQueryDto.from_json(password_info_query_dto) + results = PasswordManagementApi(api_client).query_password_info(password_info_query_dto=new_password_info_query_dto) + # Below is a request that includes all optional parameters + # results = PasswordManagementApi(api_client).query_password_info(new_password_info_query_dto) + print("The response of PasswordManagementApi->query_password_info:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling PasswordManagementApi->query_password_info: %s\n" % e) - path: /set-password method: POST xCodeSample: @@ -10652,29 +10309,28 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.password_change_request import PasswordChangeRequest from sailpoint.beta.models.password_change_response import PasswordChangeResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - password_change_request = '''{ + password_change_request = '''{ "sourceId" : "8a807d4c73c545510173c545d4b60246", "accountId" : "CN=Abby Smith,OU=Austin,OU=Americas,OU=Demo,DC=seri,DC=acme,DC=com", "identityId" : "8a807d4c73c545510173c545f0a002ff", "publicKeyId" : "YWQ2NjQ4MTItZjY0NC00MWExLWFjMjktOGNmMzU3Y2VlNjk2", "encryptedPassword" : "XzN+YwKgr2C+InkMYFMBG3UtjMEw5ZIql/XFlXo8cJNeslmkplx6vn4kd4/43IF9STBk5RnzR6XmjpEO+FwHDoiBwYZAkAZK/Iswxk4OdybG6Y4MStJCOCiK8osKr35IMMSV/mbO4wAeltoCk7daTWzTGLiI6UaT5tf+F2EgdjJZ7YqM8W8r7aUWsm3p2Xt01Y46ZRx0QaM91QruiIx2rECFT2pUO0wr+7oQ77jypATyGWRtADsu3YcvCk/6U5MqCnXMzKBcRas7NnZdSL/d5H1GglVGz3VLPMaivG4/oL4chOMmFCRl/zVsGxZ9RhN8rxsRGFFKn+rhExTi+bax3A==" }''' # PasswordChangeRequest | - try: - # Set Identity's Password - new_password_change_request = PasswordChangeRequest.from_json(password_change_request) - results = PasswordManagementApi(api_client).set_identity_password(password_change_request=new_password_change_request) - # Below is a request that includes all optional parameters - # results = PasswordManagementApi(api_client).set_identity_password(new_password_change_request) - print("The response of PasswordManagementApi->set_identity_password:\n") - pprint(results) - except Exception as e: - print("Exception when calling PasswordManagementApi->set_identity_password: %s\n" % e) + try: + # Set Identity's Password + new_password_change_request = PasswordChangeRequest.from_json(password_change_request) + results = PasswordManagementApi(api_client).set_identity_password(password_change_request=new_password_change_request) + # Below is a request that includes all optional parameters + # results = PasswordManagementApi(api_client).set_identity_password(new_password_change_request) + print("The response of PasswordManagementApi->set_identity_password:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling PasswordManagementApi->set_identity_password: %s\n" % e) - path: /password-policies method: POST xCodeSample: @@ -10684,13 +10340,12 @@ from sailpoint.beta.api.password_policies_api import PasswordPoliciesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.password_policy_v3_dto import PasswordPolicyV3Dto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - password_policy_v3_dto = '''{ + password_policy_v3_dto = '''{ "validateAgainstAccountName" : true, "minLength" : 8, "description" : "Information about the Password Policy", @@ -10723,16 +10378,16 @@ "name" : "PasswordPolicy Example", "maxLength" : 25 }''' # PasswordPolicyV3Dto | - try: - # Create Password Policy - new_password_policy_v3_dto = PasswordPolicyV3Dto.from_json(password_policy_v3_dto) - results = PasswordPoliciesApi(api_client).create_password_policy(password_policy_v3_dto=new_password_policy_v3_dto) - # Below is a request that includes all optional parameters - # results = PasswordPoliciesApi(api_client).create_password_policy(new_password_policy_v3_dto) - print("The response of PasswordPoliciesApi->create_password_policy:\n") - pprint(results) - except Exception as e: - print("Exception when calling PasswordPoliciesApi->create_password_policy: %s\n" % e) + try: + # Create Password Policy + new_password_policy_v3_dto = PasswordPolicyV3Dto.from_json(password_policy_v3_dto) + results = PasswordPoliciesApi(api_client).create_password_policy(password_policy_v3_dto=new_password_policy_v3_dto) + # Below is a request that includes all optional parameters + # results = PasswordPoliciesApi(api_client).create_password_policy(new_password_policy_v3_dto) + print("The response of PasswordPoliciesApi->create_password_policy:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling PasswordPoliciesApi->create_password_policy: %s\n" % e) - path: /password-policies/{id} method: DELETE xCodeSample: @@ -10741,21 +10396,20 @@ source: | from sailpoint.beta.api.password_policies_api import PasswordPoliciesApi from sailpoint.beta.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ff808081838d9e9d01838da6a03e0002' # str | The ID of password policy to delete. # str | The ID of password policy to delete. - try: - # Delete Password Policy by ID - - PasswordPoliciesApi(api_client).delete_password_policy(id=id) - # Below is a request that includes all optional parameters - # PasswordPoliciesApi(api_client).delete_password_policy(id) - except Exception as e: - print("Exception when calling PasswordPoliciesApi->delete_password_policy: %s\n" % e) + id = 'ff808081838d9e9d01838da6a03e0002' # str | The ID of password policy to delete. # str | The ID of password policy to delete. + try: + # Delete Password Policy by ID + + PasswordPoliciesApi(api_client).delete_password_policy(id=id) + # Below is a request that includes all optional parameters + # PasswordPoliciesApi(api_client).delete_password_policy(id) + except Exception as e: + print("Exception when calling PasswordPoliciesApi->delete_password_policy: %s\n" % e) - path: /password-policies/{id} method: GET xCodeSample: @@ -10765,23 +10419,22 @@ from sailpoint.beta.api.password_policies_api import PasswordPoliciesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.password_policy_v3_dto import PasswordPolicyV3Dto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ff808081838d9e9d01838da6a03e0005' # str | The ID of password policy to retrieve. # str | The ID of password policy to retrieve. - try: - # Get Password Policy by ID - - results = PasswordPoliciesApi(api_client).get_password_policy_by_id(id=id) - # Below is a request that includes all optional parameters - # results = PasswordPoliciesApi(api_client).get_password_policy_by_id(id) - print("The response of PasswordPoliciesApi->get_password_policy_by_id:\n") - pprint(results) - except Exception as e: - print("Exception when calling PasswordPoliciesApi->get_password_policy_by_id: %s\n" % e) + id = 'ff808081838d9e9d01838da6a03e0005' # str | The ID of password policy to retrieve. # str | The ID of password policy to retrieve. + try: + # Get Password Policy by ID + + results = PasswordPoliciesApi(api_client).get_password_policy_by_id(id=id) + # Below is a request that includes all optional parameters + # results = PasswordPoliciesApi(api_client).get_password_policy_by_id(id) + print("The response of PasswordPoliciesApi->get_password_policy_by_id:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling PasswordPoliciesApi->get_password_policy_by_id: %s\n" % e) - path: /password-policies method: GET xCodeSample: @@ -10791,25 +10444,24 @@ from sailpoint.beta.api.password_policies_api import PasswordPoliciesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.password_policy_v3_dto import PasswordPolicyV3Dto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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) - try: - # List Password Policies - - results = PasswordPoliciesApi(api_client).list_password_policies() - # Below is a request that includes all optional parameters - # results = PasswordPoliciesApi(api_client).list_password_policies(limit, offset, count) - print("The response of PasswordPoliciesApi->list_password_policies:\n") - pprint(results) - except Exception as e: - print("Exception when calling PasswordPoliciesApi->list_password_policies: %s\n" % e) + 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) + try: + # List Password Policies + + results = PasswordPoliciesApi(api_client).list_password_policies() + # Below is a request that includes all optional parameters + # results = PasswordPoliciesApi(api_client).list_password_policies(limit, offset, count) + print("The response of PasswordPoliciesApi->list_password_policies:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling PasswordPoliciesApi->list_password_policies: %s\n" % e) - path: /password-policies/{id} method: PUT xCodeSample: @@ -10819,14 +10471,13 @@ from sailpoint.beta.api.password_policies_api import PasswordPoliciesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.password_policy_v3_dto import PasswordPolicyV3Dto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ff808081838d9e9d01838da6a03e0007' # str | The ID of password policy to update. # str | The ID of password policy to update. - password_policy_v3_dto = '''{ + id = 'ff808081838d9e9d01838da6a03e0007' # str | The ID of password policy to update. # str | The ID of password policy to update. + password_policy_v3_dto = '''{ "validateAgainstAccountName" : true, "minLength" : 8, "description" : "Information about the Password Policy", @@ -10859,16 +10510,16 @@ "name" : "PasswordPolicy Example", "maxLength" : 25 }''' # PasswordPolicyV3Dto | - try: - # Update Password Policy by ID - new_password_policy_v3_dto = PasswordPolicyV3Dto.from_json(password_policy_v3_dto) - results = PasswordPoliciesApi(api_client).set_password_policy(id=id, password_policy_v3_dto=new_password_policy_v3_dto) - # Below is a request that includes all optional parameters - # results = PasswordPoliciesApi(api_client).set_password_policy(id, new_password_policy_v3_dto) - print("The response of PasswordPoliciesApi->set_password_policy:\n") - pprint(results) - except Exception as e: - print("Exception when calling PasswordPoliciesApi->set_password_policy: %s\n" % e) + try: + # Update Password Policy by ID + new_password_policy_v3_dto = PasswordPolicyV3Dto.from_json(password_policy_v3_dto) + results = PasswordPoliciesApi(api_client).set_password_policy(id=id, password_policy_v3_dto=new_password_policy_v3_dto) + # Below is a request that includes all optional parameters + # results = PasswordPoliciesApi(api_client).set_password_policy(id, new_password_policy_v3_dto) + print("The response of PasswordPoliciesApi->set_password_policy:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling PasswordPoliciesApi->set_password_policy: %s\n" % e) - path: /password-sync-groups method: POST xCodeSample: @@ -10878,13 +10529,12 @@ from sailpoint.beta.api.password_sync_groups_api import PasswordSyncGroupsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.password_sync_group import PasswordSyncGroup - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - password_sync_group = '''{ + password_sync_group = '''{ "created" : "2023-03-16T04:00:00Z", "name" : "Password Sync Group 1", "modified" : "2023-03-16T04:00:00Z", @@ -10892,16 +10542,16 @@ "id" : "6881f631-3bd5-4213-9c75-8e05cc3e35dd", "sourceIds" : [ "2c918084660f45d6016617daa9210584", "2c918084660f45d6016617daa9210500" ] }''' # PasswordSyncGroup | - try: - # Create Password Sync Group - new_password_sync_group = PasswordSyncGroup.from_json(password_sync_group) - results = PasswordSyncGroupsApi(api_client).create_password_sync_group(password_sync_group=new_password_sync_group) - # Below is a request that includes all optional parameters - # results = PasswordSyncGroupsApi(api_client).create_password_sync_group(new_password_sync_group) - print("The response of PasswordSyncGroupsApi->create_password_sync_group:\n") - pprint(results) - except Exception as e: - print("Exception when calling PasswordSyncGroupsApi->create_password_sync_group: %s\n" % e) + try: + # Create Password Sync Group + new_password_sync_group = PasswordSyncGroup.from_json(password_sync_group) + results = PasswordSyncGroupsApi(api_client).create_password_sync_group(password_sync_group=new_password_sync_group) + # Below is a request that includes all optional parameters + # results = PasswordSyncGroupsApi(api_client).create_password_sync_group(new_password_sync_group) + print("The response of PasswordSyncGroupsApi->create_password_sync_group:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling PasswordSyncGroupsApi->create_password_sync_group: %s\n" % e) - path: /password-sync-groups/{id} method: DELETE xCodeSample: @@ -10910,21 +10560,20 @@ source: | from sailpoint.beta.api.password_sync_groups_api import PasswordSyncGroupsApi from sailpoint.beta.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '6881f631-3bd5-4213-9c75-8e05cc3e35dd' # str | The ID of password sync group to delete. # str | The ID of password sync group to delete. - try: - # Delete Password Sync Group by ID - - PasswordSyncGroupsApi(api_client).delete_password_sync_group(id=id) - # Below is a request that includes all optional parameters - # PasswordSyncGroupsApi(api_client).delete_password_sync_group(id) - except Exception as e: - print("Exception when calling PasswordSyncGroupsApi->delete_password_sync_group: %s\n" % e) + id = '6881f631-3bd5-4213-9c75-8e05cc3e35dd' # str | The ID of password sync group to delete. # str | The ID of password sync group to delete. + try: + # Delete Password Sync Group by ID + + PasswordSyncGroupsApi(api_client).delete_password_sync_group(id=id) + # Below is a request that includes all optional parameters + # PasswordSyncGroupsApi(api_client).delete_password_sync_group(id) + except Exception as e: + print("Exception when calling PasswordSyncGroupsApi->delete_password_sync_group: %s\n" % e) - path: /password-sync-groups/{id} method: GET xCodeSample: @@ -10934,23 +10583,22 @@ from sailpoint.beta.api.password_sync_groups_api import PasswordSyncGroupsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.password_sync_group import PasswordSyncGroup - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '6881f631-3bd5-4213-9c75-8e05cc3e35dd' # str | The ID of password sync group to retrieve. # str | The ID of password sync group to retrieve. - try: - # Get Password Sync Group by ID - - results = PasswordSyncGroupsApi(api_client).get_password_sync_group(id=id) - # Below is a request that includes all optional parameters - # results = PasswordSyncGroupsApi(api_client).get_password_sync_group(id) - print("The response of PasswordSyncGroupsApi->get_password_sync_group:\n") - pprint(results) - except Exception as e: - print("Exception when calling PasswordSyncGroupsApi->get_password_sync_group: %s\n" % e) + id = '6881f631-3bd5-4213-9c75-8e05cc3e35dd' # str | The ID of password sync group to retrieve. # str | The ID of password sync group to retrieve. + try: + # Get Password Sync Group by ID + + results = PasswordSyncGroupsApi(api_client).get_password_sync_group(id=id) + # Below is a request that includes all optional parameters + # results = PasswordSyncGroupsApi(api_client).get_password_sync_group(id) + print("The response of PasswordSyncGroupsApi->get_password_sync_group:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling PasswordSyncGroupsApi->get_password_sync_group: %s\n" % e) - path: /password-sync-groups method: GET xCodeSample: @@ -10960,25 +10608,24 @@ from sailpoint.beta.api.password_sync_groups_api import PasswordSyncGroupsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.password_sync_group import PasswordSyncGroup - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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) - try: - # Get Password Sync Group List - - results = PasswordSyncGroupsApi(api_client).get_password_sync_groups() - # Below is a request that includes all optional parameters - # results = PasswordSyncGroupsApi(api_client).get_password_sync_groups(limit, offset, count) - print("The response of PasswordSyncGroupsApi->get_password_sync_groups:\n") - pprint(results) - except Exception as e: - print("Exception when calling PasswordSyncGroupsApi->get_password_sync_groups: %s\n" % e) + 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) + try: + # Get Password Sync Group List + + results = PasswordSyncGroupsApi(api_client).get_password_sync_groups() + # Below is a request that includes all optional parameters + # results = PasswordSyncGroupsApi(api_client).get_password_sync_groups(limit, offset, count) + print("The response of PasswordSyncGroupsApi->get_password_sync_groups:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling PasswordSyncGroupsApi->get_password_sync_groups: %s\n" % e) - path: /password-sync-groups/{id} method: PUT xCodeSample: @@ -10988,14 +10635,13 @@ from sailpoint.beta.api.password_sync_groups_api import PasswordSyncGroupsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.password_sync_group import PasswordSyncGroup - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '6881f631-3bd5-4213-9c75-8e05cc3e35dd' # str | The ID of password sync group to update. # str | The ID of password sync group to update. - password_sync_group = '''{ + id = '6881f631-3bd5-4213-9c75-8e05cc3e35dd' # str | The ID of password sync group to update. # str | The ID of password sync group to update. + password_sync_group = '''{ "created" : "2023-03-16T04:00:00Z", "name" : "Password Sync Group 1", "modified" : "2023-03-16T04:00:00Z", @@ -11003,16 +10649,16 @@ "id" : "6881f631-3bd5-4213-9c75-8e05cc3e35dd", "sourceIds" : [ "2c918084660f45d6016617daa9210584", "2c918084660f45d6016617daa9210500" ] }''' # PasswordSyncGroup | - try: - # Update Password Sync Group by ID - new_password_sync_group = PasswordSyncGroup.from_json(password_sync_group) - results = PasswordSyncGroupsApi(api_client).update_password_sync_group(id=id, password_sync_group=new_password_sync_group) - # Below is a request that includes all optional parameters - # results = PasswordSyncGroupsApi(api_client).update_password_sync_group(id, new_password_sync_group) - print("The response of PasswordSyncGroupsApi->update_password_sync_group:\n") - pprint(results) - except Exception as e: - print("Exception when calling PasswordSyncGroupsApi->update_password_sync_group: %s\n" % e) + try: + # Update Password Sync Group by ID + new_password_sync_group = PasswordSyncGroup.from_json(password_sync_group) + results = PasswordSyncGroupsApi(api_client).update_password_sync_group(id=id, password_sync_group=new_password_sync_group) + # Below is a request that includes all optional parameters + # results = PasswordSyncGroupsApi(api_client).update_password_sync_group(id, new_password_sync_group) + print("The response of PasswordSyncGroupsApi->update_password_sync_group:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling PasswordSyncGroupsApi->update_password_sync_group: %s\n" % e) - path: /personal-access-tokens method: POST xCodeSample: @@ -11023,27 +10669,26 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.create_personal_access_token_request import CreatePersonalAccessTokenRequest from sailpoint.beta.models.create_personal_access_token_response import CreatePersonalAccessTokenResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - create_personal_access_token_request = '''{ + create_personal_access_token_request = '''{ "scope" : [ "demo:personal-access-token-scope:first", "demo:personal-access-token-scope:second" ], "accessTokenValiditySeconds" : 36900, "name" : "NodeJS Integration" }''' # CreatePersonalAccessTokenRequest | Name and scope of personal access token. - try: - # Create Personal Access Token - new_create_personal_access_token_request = CreatePersonalAccessTokenRequest.from_json(create_personal_access_token_request) - results = PersonalAccessTokensApi(api_client).create_personal_access_token(create_personal_access_token_request=new_create_personal_access_token_request) - # Below is a request that includes all optional parameters - # results = PersonalAccessTokensApi(api_client).create_personal_access_token(new_create_personal_access_token_request) - print("The response of PersonalAccessTokensApi->create_personal_access_token:\n") - pprint(results) - except Exception as e: - print("Exception when calling PersonalAccessTokensApi->create_personal_access_token: %s\n" % e) + try: + # Create Personal Access Token + new_create_personal_access_token_request = CreatePersonalAccessTokenRequest.from_json(create_personal_access_token_request) + results = PersonalAccessTokensApi(api_client).create_personal_access_token(create_personal_access_token_request=new_create_personal_access_token_request) + # Below is a request that includes all optional parameters + # results = PersonalAccessTokensApi(api_client).create_personal_access_token(new_create_personal_access_token_request) + print("The response of PersonalAccessTokensApi->create_personal_access_token:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling PersonalAccessTokensApi->create_personal_access_token: %s\n" % e) - path: /personal-access-tokens/{id} method: DELETE xCodeSample: @@ -11052,21 +10697,20 @@ source: | from sailpoint.beta.api.personal_access_tokens_api import PersonalAccessTokensApi from sailpoint.beta.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The personal access token id # str | The personal access token id - try: - # Delete Personal Access Token - - PersonalAccessTokensApi(api_client).delete_personal_access_token(id=id) - # Below is a request that includes all optional parameters - # PersonalAccessTokensApi(api_client).delete_personal_access_token(id) - except Exception as e: - print("Exception when calling PersonalAccessTokensApi->delete_personal_access_token: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The personal access token id # str | The personal access token id + try: + # Delete Personal Access Token + + PersonalAccessTokensApi(api_client).delete_personal_access_token(id=id) + # Below is a request that includes all optional parameters + # PersonalAccessTokensApi(api_client).delete_personal_access_token(id) + except Exception as e: + print("Exception when calling PersonalAccessTokensApi->delete_personal_access_token: %s\n" % e) - path: /personal-access-tokens method: GET xCodeSample: @@ -11076,24 +10720,23 @@ from sailpoint.beta.api.personal_access_tokens_api import PersonalAccessTokensApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.get_personal_access_token_response import GetPersonalAccessTokenResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - owner_id = '2c9180867b50d088017b554662fb281e' # str | The identity ID of the owner whose personal access tokens should be listed. If \"me\", the caller should have the following right: 'idn:my-personal-access-tokens:read' If an actual owner ID or if the `owner-id` parameter is omitted in the request, the caller should have the following right: 'idn:all-personal-access-tokens:read'. If the caller has the following right, then managed personal access tokens associated with `owner-id` will be retrieved: 'idn:managed-personal-access-tokens:read' (optional) # str | The identity ID of the owner whose personal access tokens should be listed. If \"me\", the caller should have the following right: 'idn:my-personal-access-tokens:read' If an actual owner ID or if the `owner-id` parameter is omitted in the request, the caller should have the following right: 'idn:all-personal-access-tokens:read'. If the caller has the following right, then managed personal access tokens associated with `owner-id` will be retrieved: 'idn:managed-personal-access-tokens:read' (optional) - filters = 'lastUsed le 2023-02-05T10:59:27.214Z' # 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: **lastUsed**: *le, isnull* (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: **lastUsed**: *le, isnull* (optional) - try: - # List Personal Access Tokens - - results = PersonalAccessTokensApi(api_client).list_personal_access_tokens() - # Below is a request that includes all optional parameters - # results = PersonalAccessTokensApi(api_client).list_personal_access_tokens(owner_id, filters) - print("The response of PersonalAccessTokensApi->list_personal_access_tokens:\n") - pprint(results) - except Exception as e: - print("Exception when calling PersonalAccessTokensApi->list_personal_access_tokens: %s\n" % e) + owner_id = '2c9180867b50d088017b554662fb281e' # str | The identity ID of the owner whose personal access tokens should be listed. If \"me\", the caller should have the following right: 'idn:my-personal-access-tokens:read' If an actual owner ID or if the `owner-id` parameter is omitted in the request, the caller should have the following right: 'idn:all-personal-access-tokens:read'. If the caller has the following right, then managed personal access tokens associated with `owner-id` will be retrieved: 'idn:managed-personal-access-tokens:read' (optional) # str | The identity ID of the owner whose personal access tokens should be listed. If \"me\", the caller should have the following right: 'idn:my-personal-access-tokens:read' If an actual owner ID or if the `owner-id` parameter is omitted in the request, the caller should have the following right: 'idn:all-personal-access-tokens:read'. If the caller has the following right, then managed personal access tokens associated with `owner-id` will be retrieved: 'idn:managed-personal-access-tokens:read' (optional) + filters = 'lastUsed le 2023-02-05T10:59:27.214Z' # 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: **lastUsed**: *le, isnull* (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: **lastUsed**: *le, isnull* (optional) + try: + # List Personal Access Tokens + + results = PersonalAccessTokensApi(api_client).list_personal_access_tokens() + # Below is a request that includes all optional parameters + # results = PersonalAccessTokensApi(api_client).list_personal_access_tokens(owner_id, filters) + print("The response of PersonalAccessTokensApi->list_personal_access_tokens:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling PersonalAccessTokensApi->list_personal_access_tokens: %s\n" % e) - path: /personal-access-tokens/{id} method: PATCH xCodeSample: @@ -11104,24 +10747,23 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.get_personal_access_token_response import GetPersonalAccessTokenResponse from sailpoint.beta.models.json_patch_operation import JsonPatchOperation - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The Personal Access Token id # str | The Personal Access Token id - json_patch_operation = '''[{op=replace, path=/name, value=New name}, {op=replace, path=/scope, value=[sp:scopes:all]}]''' # List[JsonPatchOperation] | A list of OAuth client update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * scope - try: - # Patch Personal Access Token - new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) - results = PersonalAccessTokensApi(api_client).patch_personal_access_token(id=id, json_patch_operation=new_json_patch_operation) - # Below is a request that includes all optional parameters - # results = PersonalAccessTokensApi(api_client).patch_personal_access_token(id, new_json_patch_operation) - print("The response of PersonalAccessTokensApi->patch_personal_access_token:\n") - pprint(results) - except Exception as e: - print("Exception when calling PersonalAccessTokensApi->patch_personal_access_token: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The Personal Access Token id # str | The Personal Access Token id + json_patch_operation = '''[{op=replace, path=/name, value=New name}, {op=replace, path=/scope, value=[sp:scopes:all]}]''' # List[JsonPatchOperation] | A list of OAuth client update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * scope + try: + # Patch Personal Access Token + new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) + results = PersonalAccessTokensApi(api_client).patch_personal_access_token(id=id, json_patch_operation=new_json_patch_operation) + # Below is a request that includes all optional parameters + # results = PersonalAccessTokensApi(api_client).patch_personal_access_token(id, new_json_patch_operation) + print("The response of PersonalAccessTokensApi->patch_personal_access_token:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling PersonalAccessTokensApi->patch_personal_access_token: %s\n" % e) - path: /public-identities-config method: GET xCodeSample: @@ -11131,22 +10773,21 @@ from sailpoint.beta.api.public_identities_config_api import PublicIdentitiesConfigApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.public_identity_config import PublicIdentityConfig - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - try: - # Get Public Identity Config - - results = PublicIdentitiesConfigApi(api_client).get_public_identity_config() - # Below is a request that includes all optional parameters - # results = PublicIdentitiesConfigApi(api_client).get_public_identity_config() - print("The response of PublicIdentitiesConfigApi->get_public_identity_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling PublicIdentitiesConfigApi->get_public_identity_config: %s\n" % e) + try: + # Get Public Identity Config + + results = PublicIdentitiesConfigApi(api_client).get_public_identity_config() + # Below is a request that includes all optional parameters + # results = PublicIdentitiesConfigApi(api_client).get_public_identity_config() + print("The response of PublicIdentitiesConfigApi->get_public_identity_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling PublicIdentitiesConfigApi->get_public_identity_config: %s\n" % e) - path: /public-identities-config method: PUT xCodeSample: @@ -11156,13 +10797,12 @@ from sailpoint.beta.api.public_identities_config_api import PublicIdentitiesConfigApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.public_identity_config import PublicIdentityConfig - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - public_identity_config = '''{ + public_identity_config = '''{ "modified" : "2018-06-25T20:22:28.104Z", "attributes" : [ { "name" : "Country", @@ -11177,16 +10817,16 @@ "type" : "IDENTITY" } }''' # PublicIdentityConfig | - try: - # Update Public Identity Config - new_public_identity_config = PublicIdentityConfig.from_json(public_identity_config) - results = PublicIdentitiesConfigApi(api_client).update_public_identity_config(public_identity_config=new_public_identity_config) - # Below is a request that includes all optional parameters - # results = PublicIdentitiesConfigApi(api_client).update_public_identity_config(new_public_identity_config) - print("The response of PublicIdentitiesConfigApi->update_public_identity_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling PublicIdentitiesConfigApi->update_public_identity_config: %s\n" % e) + try: + # Update Public Identity Config + new_public_identity_config = PublicIdentityConfig.from_json(public_identity_config) + results = PublicIdentitiesConfigApi(api_client).update_public_identity_config(public_identity_config=new_public_identity_config) + # Below is a request that includes all optional parameters + # results = PublicIdentitiesConfigApi(api_client).update_public_identity_config(new_public_identity_config) + print("The response of PublicIdentitiesConfigApi->update_public_identity_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling PublicIdentitiesConfigApi->update_public_identity_config: %s\n" % e) - path: /requestable-objects method: GET xCodeSample: @@ -11198,31 +10838,30 @@ from sailpoint.beta.models.requestable_object import RequestableObject from sailpoint.beta.models.requestable_object_request_status import RequestableObjectRequestStatus from sailpoint.beta.models.requestable_object_type import RequestableObjectType - from pprint import pprint - from sailpoint.configuration import Configuration - configuration = Configuration() - - - with ApiClient(configuration) as api_client: - identity_id = 'e7eab60924f64aa284175b9fa3309599' # str | If present, the value returns only requestable objects for the specified identity. * Admin users can call this with any identity ID value. * Non-admin users can only specify *me* or pass their own identity ID value. * If absent, returns a list of all requestable objects for the tenant. Only admin users can make such a call. In this case, the available, pending, assigned accesses will not be annotated in the result. (optional) # str | If present, the value returns only requestable objects for the specified identity. * Admin users can call this with any identity ID value. * Non-admin users can only specify *me* or pass their own identity ID value. * If absent, returns a list of all requestable objects for the tenant. Only admin users can make such a call. In this case, the available, pending, assigned accesses will not be annotated in the result. (optional) - types = '''[sailpoint.beta.RequestableObjectType()]''' # List[RequestableObjectType] | Filters the results to the specified type/types, where each type is one of ROLE or ACCESS_PROFILE. If absent, all types are returned. Support for additional types may be added in the future without notice. (optional) - term = 'Finance Role' # str | It allows searching requestable access items with a partial match on the name or description. If term is provided, then the *filter* query parameter will be ignored. (optional) # str | It allows searching requestable access items with a partial match on the name or description. If term is provided, then the *filter* query parameter will be ignored. (optional) - statuses = '''[sailpoint.beta.RequestableObjectRequestStatus()]''' # List[RequestableObjectRequestStatus] | Filters the result to the specified status/statuses, where each status is one of AVAILABLE, ASSIGNED, or PENDING. It is an error to specify this parameter without also specifying an *identity-id* parameter. Additional statuses may be added in the future without notice. (optional) - 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 sw \"bob\"' # 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* (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* (optional) - sorters = 'name' # 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: **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: **name** (optional) - try: - # Requestable Objects List - - results = RequestableObjectsApi(api_client).list_requestable_objects() - # Below is a request that includes all optional parameters - # results = RequestableObjectsApi(api_client).list_requestable_objects(identity_id, types, term, statuses, limit, offset, count, filters, sorters) - print("The response of RequestableObjectsApi->list_requestable_objects:\n") - pprint(results) - except Exception as e: - print("Exception when calling RequestableObjectsApi->list_requestable_objects: %s\n" % e) + from sailpoint.configuration import Configuration + configuration = Configuration() + + + with ApiClient(configuration) as api_client: + identity_id = 'e7eab60924f64aa284175b9fa3309599' # str | If present, the value returns only requestable objects for the specified identity. * Admin users can call this with any identity ID value. * Non-admin users can only specify *me* or pass their own identity ID value. * If absent, returns a list of all requestable objects for the tenant. Only admin users can make such a call. In this case, the available, pending, assigned accesses will not be annotated in the result. (optional) # str | If present, the value returns only requestable objects for the specified identity. * Admin users can call this with any identity ID value. * Non-admin users can only specify *me* or pass their own identity ID value. * If absent, returns a list of all requestable objects for the tenant. Only admin users can make such a call. In this case, the available, pending, assigned accesses will not be annotated in the result. (optional) + types = '''[sailpoint.beta.RequestableObjectType()]''' # List[RequestableObjectType] | Filters the results to the specified type/types, where each type is one of ROLE or ACCESS_PROFILE. If absent, all types are returned. Support for additional types may be added in the future without notice. (optional) + term = 'Finance Role' # str | It allows searching requestable access items with a partial match on the name or description. If term is provided, then the *filter* query parameter will be ignored. (optional) # str | It allows searching requestable access items with a partial match on the name or description. If term is provided, then the *filter* query parameter will be ignored. (optional) + statuses = '''[sailpoint.beta.RequestableObjectRequestStatus()]''' # List[RequestableObjectRequestStatus] | Filters the result to the specified status/statuses, where each status is one of AVAILABLE, ASSIGNED, or PENDING. It is an error to specify this parameter without also specifying an *identity-id* parameter. Additional statuses may be added in the future without notice. (optional) + 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 sw \"bob\"' # 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* (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* (optional) + sorters = 'name' # 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: **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: **name** (optional) + try: + # Requestable Objects List + + results = RequestableObjectsApi(api_client).list_requestable_objects() + # Below is a request that includes all optional parameters + # results = RequestableObjectsApi(api_client).list_requestable_objects(identity_id, types, term, statuses, limit, offset, count, filters, sorters) + print("The response of RequestableObjectsApi->list_requestable_objects:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling RequestableObjectsApi->list_requestable_objects: %s\n" % e) - path: /role-insights/requests method: POST xCodeSample: @@ -11232,22 +10871,21 @@ from sailpoint.beta.api.role_insights_api import RoleInsightsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.role_insights_response import RoleInsightsResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - try: - # Generate insights for roles - - results = RoleInsightsApi(api_client).create_role_insight_requests() - # Below is a request that includes all optional parameters - # results = RoleInsightsApi(api_client).create_role_insight_requests() - print("The response of RoleInsightsApi->create_role_insight_requests:\n") - pprint(results) - except Exception as e: - print("Exception when calling RoleInsightsApi->create_role_insight_requests: %s\n" % e) + try: + # Generate insights for roles + + results = RoleInsightsApi(api_client).create_role_insight_requests() + # Below is a request that includes all optional parameters + # results = RoleInsightsApi(api_client).create_role_insight_requests() + print("The response of RoleInsightsApi->create_role_insight_requests:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling RoleInsightsApi->create_role_insight_requests: %s\n" % e) - path: /role-insights/{insightId}/entitlement-changes/download method: GET xCodeSample: @@ -11256,25 +10894,24 @@ source: | from sailpoint.beta.api.role_insights_api import RoleInsightsApi from sailpoint.beta.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - insight_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role insight id # str | The role insight id - sorters = 'identitiesWithAccess' # 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: **identitiesWithAccess** The default sort is **identitiesWithAccess** in descending order. (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: **identitiesWithAccess** The default sort is **identitiesWithAccess** in descending order. (optional) - filters = 'name sw \"r\"' # 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: **name**: *sw* **description**: *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: **name**: *sw* **description**: *sw* (optional) - try: - # Download entitlement insights for a role - - results = RoleInsightsApi(api_client).download_role_insights_entitlements_changes(insight_id=insight_id) - # Below is a request that includes all optional parameters - # results = RoleInsightsApi(api_client).download_role_insights_entitlements_changes(insight_id, sorters, filters) - print("The response of RoleInsightsApi->download_role_insights_entitlements_changes:\n") - pprint(results) - except Exception as e: - print("Exception when calling RoleInsightsApi->download_role_insights_entitlements_changes: %s\n" % e) + insight_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role insight id # str | The role insight id + sorters = 'identitiesWithAccess' # 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: **identitiesWithAccess** The default sort is **identitiesWithAccess** in descending order. (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: **identitiesWithAccess** The default sort is **identitiesWithAccess** in descending order. (optional) + filters = 'name sw \"r\"' # 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: **name**: *sw* **description**: *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: **name**: *sw* **description**: *sw* (optional) + try: + # Download entitlement insights for a role + + results = RoleInsightsApi(api_client).download_role_insights_entitlements_changes(insight_id=insight_id) + # Below is a request that includes all optional parameters + # results = RoleInsightsApi(api_client).download_role_insights_entitlements_changes(insight_id, sorters, filters) + print("The response of RoleInsightsApi->download_role_insights_entitlements_changes:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling RoleInsightsApi->download_role_insights_entitlements_changes: %s\n" % e) - path: /role-insights/{insightId}/entitlement-changes/{entitlementId}/identities method: GET xCodeSample: @@ -11284,30 +10921,29 @@ from sailpoint.beta.api.role_insights_api import RoleInsightsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.role_insights_identities import RoleInsightsIdentities - from pprint import pprint - from sailpoint.configuration import Configuration - configuration = Configuration() - - - with ApiClient(configuration) as api_client: - insight_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role insight id # str | The role insight id - entitlement_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The entitlement id # str | The entitlement id - has_entitlement = False # bool | Identity has this entitlement or not (optional) (default to False) # bool | Identity has this entitlement or not (optional) (default to False) - 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) - 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) - 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) - sorters = 'name' # 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: **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: **name** (optional) - filters = 'name sw \"Jan\"' # 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: **name**: *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: **name**: *sw* (optional) - try: - # Get identities for a suggested entitlement (for a role) - - results = RoleInsightsApi(api_client).get_entitlement_changes_identities(insight_id=insight_id, entitlement_id=entitlement_id) - # Below is a request that includes all optional parameters - # results = RoleInsightsApi(api_client).get_entitlement_changes_identities(insight_id, entitlement_id, has_entitlement, offset, limit, count, sorters, filters) - print("The response of RoleInsightsApi->get_entitlement_changes_identities:\n") - pprint(results) - except Exception as e: - print("Exception when calling RoleInsightsApi->get_entitlement_changes_identities: %s\n" % e) + from sailpoint.configuration import Configuration + configuration = Configuration() + + + with ApiClient(configuration) as api_client: + insight_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role insight id # str | The role insight id + entitlement_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The entitlement id # str | The entitlement id + has_entitlement = False # bool | Identity has this entitlement or not (optional) (default to False) # bool | Identity has this entitlement or not (optional) (default to False) + 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) + 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) + 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) + sorters = 'name' # 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: **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: **name** (optional) + filters = 'name sw \"Jan\"' # 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: **name**: *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: **name**: *sw* (optional) + try: + # Get identities for a suggested entitlement (for a role) + + results = RoleInsightsApi(api_client).get_entitlement_changes_identities(insight_id=insight_id, entitlement_id=entitlement_id) + # Below is a request that includes all optional parameters + # results = RoleInsightsApi(api_client).get_entitlement_changes_identities(insight_id, entitlement_id, has_entitlement, offset, limit, count, sorters, filters) + print("The response of RoleInsightsApi->get_entitlement_changes_identities:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling RoleInsightsApi->get_entitlement_changes_identities: %s\n" % e) - path: /role-insights/{insightId} method: GET xCodeSample: @@ -11317,23 +10953,22 @@ from sailpoint.beta.api.role_insights_api import RoleInsightsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.role_insight import RoleInsight - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - insight_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role insight id # str | The role insight id - try: - # Get a single role insight - - results = RoleInsightsApi(api_client).get_role_insight(insight_id=insight_id) - # Below is a request that includes all optional parameters - # results = RoleInsightsApi(api_client).get_role_insight(insight_id) - print("The response of RoleInsightsApi->get_role_insight:\n") - pprint(results) - except Exception as e: - print("Exception when calling RoleInsightsApi->get_role_insight: %s\n" % e) + insight_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role insight id # str | The role insight id + try: + # Get a single role insight + + results = RoleInsightsApi(api_client).get_role_insight(insight_id=insight_id) + # Below is a request that includes all optional parameters + # results = RoleInsightsApi(api_client).get_role_insight(insight_id) + print("The response of RoleInsightsApi->get_role_insight:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling RoleInsightsApi->get_role_insight: %s\n" % e) - path: /role-insights method: GET xCodeSample: @@ -11343,27 +10978,26 @@ from sailpoint.beta.api.role_insights_api import RoleInsightsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.role_insight import RoleInsight - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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) - 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) - 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) - sorters = 'numberOfUpdates' # 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: **numberOfUpdates, identitiesWithAccess, totalNumberOfIdentities** (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: **numberOfUpdates, identitiesWithAccess, totalNumberOfIdentities** (optional) - filters = 'name sw \"John\"' # 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: **name**: *sw* **ownerName**: *sw* **description**: *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: **name**: *sw* **ownerName**: *sw* **description**: *sw* (optional) - try: - # Get role insights - - results = RoleInsightsApi(api_client).get_role_insights() - # Below is a request that includes all optional parameters - # results = RoleInsightsApi(api_client).get_role_insights(offset, limit, count, sorters, filters) - print("The response of RoleInsightsApi->get_role_insights:\n") - pprint(results) - except Exception as e: - print("Exception when calling RoleInsightsApi->get_role_insights: %s\n" % e) + 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) + 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) + 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) + sorters = 'numberOfUpdates' # 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: **numberOfUpdates, identitiesWithAccess, totalNumberOfIdentities** (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: **numberOfUpdates, identitiesWithAccess, totalNumberOfIdentities** (optional) + filters = 'name sw \"John\"' # 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: **name**: *sw* **ownerName**: *sw* **description**: *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: **name**: *sw* **ownerName**: *sw* **description**: *sw* (optional) + try: + # Get role insights + + results = RoleInsightsApi(api_client).get_role_insights() + # Below is a request that includes all optional parameters + # results = RoleInsightsApi(api_client).get_role_insights(offset, limit, count, sorters, filters) + print("The response of RoleInsightsApi->get_role_insights:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling RoleInsightsApi->get_role_insights: %s\n" % e) - path: /role-insights/{insightId}/current-entitlements method: GET xCodeSample: @@ -11373,24 +11007,23 @@ from sailpoint.beta.api.role_insights_api import RoleInsightsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.role_insights_entitlement import RoleInsightsEntitlement - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - insight_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role insight id # str | The role insight id - filters = 'name sw \"r\"' # 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: **name**: *sw* **description**: *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: **name**: *sw* **description**: *sw* (optional) - try: - # Get current entitlement for a role - - results = RoleInsightsApi(api_client).get_role_insights_current_entitlements(insight_id=insight_id) - # Below is a request that includes all optional parameters - # results = RoleInsightsApi(api_client).get_role_insights_current_entitlements(insight_id, filters) - print("The response of RoleInsightsApi->get_role_insights_current_entitlements:\n") - pprint(results) - except Exception as e: - print("Exception when calling RoleInsightsApi->get_role_insights_current_entitlements: %s\n" % e) + insight_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role insight id # str | The role insight id + filters = 'name sw \"r\"' # 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: **name**: *sw* **description**: *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: **name**: *sw* **description**: *sw* (optional) + try: + # Get current entitlement for a role + + results = RoleInsightsApi(api_client).get_role_insights_current_entitlements(insight_id=insight_id) + # Below is a request that includes all optional parameters + # results = RoleInsightsApi(api_client).get_role_insights_current_entitlements(insight_id, filters) + print("The response of RoleInsightsApi->get_role_insights_current_entitlements:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling RoleInsightsApi->get_role_insights_current_entitlements: %s\n" % e) - path: /role-insights/{insightId}/entitlement-changes method: GET xCodeSample: @@ -11400,25 +11033,24 @@ from sailpoint.beta.api.role_insights_api import RoleInsightsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.role_insights_entitlement_changes import RoleInsightsEntitlementChanges - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - insight_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role insight id # str | The role insight id - sorters = 'sorters_example' # 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: **identitiesWithAccess, 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: **identitiesWithAccess, name** (optional) - filters = 'name sw \"Admin\"' # 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: **name**: *sw* **description**: *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: **name**: *sw* **description**: *sw* (optional) - try: - # Get entitlement insights for a role - - results = RoleInsightsApi(api_client).get_role_insights_entitlements_changes(insight_id=insight_id) - # Below is a request that includes all optional parameters - # results = RoleInsightsApi(api_client).get_role_insights_entitlements_changes(insight_id, sorters, filters) - print("The response of RoleInsightsApi->get_role_insights_entitlements_changes:\n") - pprint(results) - except Exception as e: - print("Exception when calling RoleInsightsApi->get_role_insights_entitlements_changes: %s\n" % e) + insight_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role insight id # str | The role insight id + sorters = 'sorters_example' # 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: **identitiesWithAccess, 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: **identitiesWithAccess, name** (optional) + filters = 'name sw \"Admin\"' # 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: **name**: *sw* **description**: *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: **name**: *sw* **description**: *sw* (optional) + try: + # Get entitlement insights for a role + + results = RoleInsightsApi(api_client).get_role_insights_entitlements_changes(insight_id=insight_id) + # Below is a request that includes all optional parameters + # results = RoleInsightsApi(api_client).get_role_insights_entitlements_changes(insight_id, sorters, filters) + print("The response of RoleInsightsApi->get_role_insights_entitlements_changes:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling RoleInsightsApi->get_role_insights_entitlements_changes: %s\n" % e) - path: /role-insights/requests/{id} method: GET xCodeSample: @@ -11428,23 +11060,22 @@ from sailpoint.beta.api.role_insights_api import RoleInsightsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.role_insights_response import RoleInsightsResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role insights request id # str | The role insights request id - try: - # Returns metadata from prior request. - - results = RoleInsightsApi(api_client).get_role_insights_requests(id=id) - # Below is a request that includes all optional parameters - # results = RoleInsightsApi(api_client).get_role_insights_requests(id) - print("The response of RoleInsightsApi->get_role_insights_requests:\n") - pprint(results) - except Exception as e: - print("Exception when calling RoleInsightsApi->get_role_insights_requests: %s\n" % e) + id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role insights request id # str | The role insights request id + try: + # Returns metadata from prior request. + + results = RoleInsightsApi(api_client).get_role_insights_requests(id=id) + # Below is a request that includes all optional parameters + # results = RoleInsightsApi(api_client).get_role_insights_requests(id) + print("The response of RoleInsightsApi->get_role_insights_requests:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling RoleInsightsApi->get_role_insights_requests: %s\n" % e) - path: /role-insights/summary method: GET xCodeSample: @@ -11454,22 +11085,21 @@ from sailpoint.beta.api.role_insights_api import RoleInsightsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.role_insights_summary import RoleInsightsSummary - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - try: - # Get role insights summary information - - results = RoleInsightsApi(api_client).get_role_insights_summary() - # Below is a request that includes all optional parameters - # results = RoleInsightsApi(api_client).get_role_insights_summary() - print("The response of RoleInsightsApi->get_role_insights_summary:\n") - pprint(results) - except Exception as e: - print("Exception when calling RoleInsightsApi->get_role_insights_summary: %s\n" % e) + try: + # Get role insights summary information + + results = RoleInsightsApi(api_client).get_role_insights_summary() + # Below is a request that includes all optional parameters + # results = RoleInsightsApi(api_client).get_role_insights_summary() + print("The response of RoleInsightsApi->get_role_insights_summary:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling RoleInsightsApi->get_role_insights_summary: %s\n" % e) - path: /roles method: POST xCodeSample: @@ -11479,13 +11109,12 @@ from sailpoint.beta.api.roles_api import RolesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.role import Role - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - role = '''{ + role = '''{ "owner" : { "name" : "support", "id" : "2c9180a46faadee4016fb4e018c20639", @@ -11643,16 +11272,16 @@ "id" : "2c918086749d78830174a1a40e121518", "requestable" : true }''' # Role | - try: - # Create a Role - new_role = Role.from_json(role) - results = RolesApi(api_client).create_role(role=new_role) - # Below is a request that includes all optional parameters - # results = RolesApi(api_client).create_role(new_role) - print("The response of RolesApi->create_role:\n") - pprint(results) - except Exception as e: - print("Exception when calling RolesApi->create_role: %s\n" % e) + try: + # Create a Role + new_role = Role.from_json(role) + results = RolesApi(api_client).create_role(role=new_role) + # Below is a request that includes all optional parameters + # results = RolesApi(api_client).create_role(new_role) + print("The response of RolesApi->create_role:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling RolesApi->create_role: %s\n" % e) - path: /roles/bulk-delete method: POST xCodeSample: @@ -11663,25 +11292,24 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.role_bulk_delete_request import RoleBulkDeleteRequest from sailpoint.beta.models.task_result_dto import TaskResultDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - role_bulk_delete_request = '''{ + role_bulk_delete_request = '''{ "roleIds" : [ "2c9180847812e0b1017817051919ecca", "2c9180887812e0b201781e129f151816" ] }''' # RoleBulkDeleteRequest | - try: - # Delete Role(s) - new_role_bulk_delete_request = RoleBulkDeleteRequest.from_json(role_bulk_delete_request) - results = RolesApi(api_client).delete_bulk_roles(role_bulk_delete_request=new_role_bulk_delete_request) - # Below is a request that includes all optional parameters - # results = RolesApi(api_client).delete_bulk_roles(new_role_bulk_delete_request) - print("The response of RolesApi->delete_bulk_roles:\n") - pprint(results) - except Exception as e: - print("Exception when calling RolesApi->delete_bulk_roles: %s\n" % e) + try: + # Delete Role(s) + new_role_bulk_delete_request = RoleBulkDeleteRequest.from_json(role_bulk_delete_request) + results = RolesApi(api_client).delete_bulk_roles(role_bulk_delete_request=new_role_bulk_delete_request) + # Below is a request that includes all optional parameters + # results = RolesApi(api_client).delete_bulk_roles(new_role_bulk_delete_request) + print("The response of RolesApi->delete_bulk_roles:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling RolesApi->delete_bulk_roles: %s\n" % e) - path: /roles/{id} method: DELETE xCodeSample: @@ -11690,21 +11318,20 @@ source: | from sailpoint.beta.api.roles_api import RolesApi from sailpoint.beta.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808a7813090a017814121e121518' # str | ID of the Role # str | ID of the Role - try: - # Delete a Role - - RolesApi(api_client).delete_role(id=id) - # Below is a request that includes all optional parameters - # RolesApi(api_client).delete_role(id) - except Exception as e: - print("Exception when calling RolesApi->delete_role: %s\n" % e) + id = '2c91808a7813090a017814121e121518' # str | ID of the Role # str | ID of the Role + try: + # Delete a Role + + RolesApi(api_client).delete_role(id=id) + # Below is a request that includes all optional parameters + # RolesApi(api_client).delete_role(id) + except Exception as e: + print("Exception when calling RolesApi->delete_role: %s\n" % e) - path: /roles/{id} method: GET xCodeSample: @@ -11714,23 +11341,22 @@ from sailpoint.beta.api.roles_api import RolesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.role import Role - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808a7813090a017814121e121518' # str | ID of the Role # str | ID of the Role - try: - # Get a Role - - results = RolesApi(api_client).get_role(id=id) - # Below is a request that includes all optional parameters - # results = RolesApi(api_client).get_role(id) - print("The response of RolesApi->get_role:\n") - pprint(results) - except Exception as e: - print("Exception when calling RolesApi->get_role: %s\n" % e) + id = '2c91808a7813090a017814121e121518' # str | ID of the Role # str | ID of the Role + try: + # Get a Role + + results = RolesApi(api_client).get_role(id=id) + # Below is a request that includes all optional parameters + # results = RolesApi(api_client).get_role(id) + print("The response of RolesApi->get_role:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling RolesApi->get_role: %s\n" % e) - path: /roles/{id}/assigned-identities method: GET xCodeSample: @@ -11740,28 +11366,27 @@ from sailpoint.beta.api.roles_api import RolesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.role_identity import RoleIdentity - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808a7813090a017814121e121518' # str | ID of the Role for which the assigned Identities are to be listed # str | ID of the Role for which the assigned Identities are to be listed - 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 sw Joe' # 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* **aliasName**: *eq, sw* **email**: *eq, sw* **name**: *eq, sw, co* (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* **aliasName**: *eq, sw* **email**: *eq, sw* **name**: *eq, sw, co* (optional) - sorters = 'aliasName,name' # 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: **id, name, aliasName, email** (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: **id, name, aliasName, email** (optional) - try: - # Identities assigned a Role - - results = RolesApi(api_client).get_role_assigned_identities(id=id) - # Below is a request that includes all optional parameters - # results = RolesApi(api_client).get_role_assigned_identities(id, limit, offset, count, filters, sorters) - print("The response of RolesApi->get_role_assigned_identities:\n") - pprint(results) - except Exception as e: - print("Exception when calling RolesApi->get_role_assigned_identities: %s\n" % e) + id = '2c91808a7813090a017814121e121518' # str | ID of the Role for which the assigned Identities are to be listed # str | ID of the Role for which the assigned Identities are to be listed + 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 sw Joe' # 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* **aliasName**: *eq, sw* **email**: *eq, sw* **name**: *eq, sw, co* (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* **aliasName**: *eq, sw* **email**: *eq, sw* **name**: *eq, sw, co* (optional) + sorters = 'aliasName,name' # 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: **id, name, aliasName, email** (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: **id, name, aliasName, email** (optional) + try: + # Identities assigned a Role + + results = RolesApi(api_client).get_role_assigned_identities(id=id) + # Below is a request that includes all optional parameters + # results = RolesApi(api_client).get_role_assigned_identities(id, limit, offset, count, filters, sorters) + print("The response of RolesApi->get_role_assigned_identities:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling RolesApi->get_role_assigned_identities: %s\n" % e) - path: /roles/{id}/entitlements method: GET xCodeSample: @@ -11771,28 +11396,27 @@ from sailpoint.beta.api.roles_api import RolesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.entitlement import Entitlement - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808a7813090a017814121919ecca' # str | Containing role's ID. # str | Containing role's ID. - limit = 50 # int | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) # int | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) - 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 = 'attribute eq \"memberOf\"' # 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, sw* **attribute**: *eq, sw* **value**: *eq, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **source.id**: *eq, in* (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, sw* **attribute**: *eq, sw* **value**: *eq, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **source.id**: *eq, in* (optional) - sorters = 'name,-modified' # 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: **name, attribute, value, created, modified** (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: **name, attribute, value, created, modified** (optional) - try: - # List Role's Entitlements - - results = RolesApi(api_client).get_role_entitlements(id=id) - # Below is a request that includes all optional parameters - # results = RolesApi(api_client).get_role_entitlements(id, limit, offset, count, filters, sorters) - print("The response of RolesApi->get_role_entitlements:\n") - pprint(results) - except Exception as e: - print("Exception when calling RolesApi->get_role_entitlements: %s\n" % e) + id = '2c91808a7813090a017814121919ecca' # str | Containing role's ID. # str | Containing role's ID. + limit = 50 # int | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) # int | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) + 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 = 'attribute eq \"memberOf\"' # 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, sw* **attribute**: *eq, sw* **value**: *eq, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **source.id**: *eq, in* (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, sw* **attribute**: *eq, sw* **value**: *eq, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **source.id**: *eq, in* (optional) + sorters = 'name,-modified' # 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: **name, attribute, value, created, modified** (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: **name, attribute, value, created, modified** (optional) + try: + # List Role's Entitlements + + results = RolesApi(api_client).get_role_entitlements(id=id) + # Below is a request that includes all optional parameters + # results = RolesApi(api_client).get_role_entitlements(id, limit, offset, count, filters, sorters) + print("The response of RolesApi->get_role_entitlements:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling RolesApi->get_role_entitlements: %s\n" % e) - path: /roles method: GET xCodeSample: @@ -11802,30 +11426,29 @@ from sailpoint.beta.api.roles_api import RolesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.role import Role - from pprint import pprint - from sailpoint.configuration import Configuration - configuration = Configuration() - - - with ApiClient(configuration) as api_client: - for_subadmin = '5168015d32f890ca15812c9180835d2e' # str | If provided, filters the returned list according to what is visible to the indicated ROLE_SUBADMIN Identity. The value of the parameter is either an Identity ID, or the special value **me**, which is shorthand for the calling Identity's ID. A 400 Bad Request error is returned if the **for-subadmin** parameter is specified for an Identity that is not a subadmin. (optional) # str | If provided, filters the returned list according to what is visible to the indicated ROLE_SUBADMIN Identity. The value of the parameter is either an Identity ID, or the special value **me**, which is shorthand for the calling Identity's ID. A 400 Bad Request error is returned if the **for-subadmin** parameter is specified for an Identity that is not a subadmin. (optional) - limit = 50 # int | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) # int | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) - 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 = 'requestable eq false' # 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, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **requestable**: *eq* (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, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **requestable**: *eq* (optional) - sorters = 'name,-modified' # 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: **name, created, modified** (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: **name, created, modified** (optional) - for_segment_ids = '0b5c9f25-83c6-4762-9073-e38f7bb2ae26,2e8d8180-24bc-4d21-91c6-7affdb473b0d' # str | If present and not empty, additionally filters Roles to those which are assigned to the Segment(s) with the specified IDs. If segmentation is currently unavailable, specifying this parameter results in an error. (optional) # str | If present and not empty, additionally filters Roles to those which are assigned to the Segment(s) with the specified IDs. If segmentation is currently unavailable, specifying this parameter results in an error. (optional) - include_unsegmented = True # bool | Whether or not the response list should contain unsegmented Roles. If *for-segment-ids* is absent or empty, specifying *include-unsegmented* as false results in an error. (optional) (default to True) # bool | Whether or not the response list should contain unsegmented Roles. If *for-segment-ids* is absent or empty, specifying *include-unsegmented* as false results in an error. (optional) (default to True) - try: - # List Roles - - results = RolesApi(api_client).list_roles() - # Below is a request that includes all optional parameters - # results = RolesApi(api_client).list_roles(for_subadmin, limit, offset, count, filters, sorters, for_segment_ids, include_unsegmented) - print("The response of RolesApi->list_roles:\n") - pprint(results) - except Exception as e: - print("Exception when calling RolesApi->list_roles: %s\n" % e) + from sailpoint.configuration import Configuration + configuration = Configuration() + + + with ApiClient(configuration) as api_client: + for_subadmin = '5168015d32f890ca15812c9180835d2e' # str | If provided, filters the returned list according to what is visible to the indicated ROLE_SUBADMIN Identity. The value of the parameter is either an Identity ID, or the special value **me**, which is shorthand for the calling Identity's ID. A 400 Bad Request error is returned if the **for-subadmin** parameter is specified for an Identity that is not a subadmin. (optional) # str | If provided, filters the returned list according to what is visible to the indicated ROLE_SUBADMIN Identity. The value of the parameter is either an Identity ID, or the special value **me**, which is shorthand for the calling Identity's ID. A 400 Bad Request error is returned if the **for-subadmin** parameter is specified for an Identity that is not a subadmin. (optional) + limit = 50 # int | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) # int | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) + 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 = 'requestable eq false' # 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, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **requestable**: *eq* (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, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **requestable**: *eq* (optional) + sorters = 'name,-modified' # 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: **name, created, modified** (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: **name, created, modified** (optional) + for_segment_ids = '0b5c9f25-83c6-4762-9073-e38f7bb2ae26,2e8d8180-24bc-4d21-91c6-7affdb473b0d' # str | If present and not empty, additionally filters Roles to those which are assigned to the Segment(s) with the specified IDs. If segmentation is currently unavailable, specifying this parameter results in an error. (optional) # str | If present and not empty, additionally filters Roles to those which are assigned to the Segment(s) with the specified IDs. If segmentation is currently unavailable, specifying this parameter results in an error. (optional) + include_unsegmented = True # bool | Whether or not the response list should contain unsegmented Roles. If *for-segment-ids* is absent or empty, specifying *include-unsegmented* as false results in an error. (optional) (default to True) # bool | Whether or not the response list should contain unsegmented Roles. If *for-segment-ids* is absent or empty, specifying *include-unsegmented* as false results in an error. (optional) (default to True) + try: + # List Roles + + results = RolesApi(api_client).list_roles() + # Below is a request that includes all optional parameters + # results = RolesApi(api_client).list_roles(for_subadmin, limit, offset, count, filters, sorters, for_segment_ids, include_unsegmented) + print("The response of RolesApi->list_roles:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling RolesApi->list_roles: %s\n" % e) - path: /roles/{id} method: PATCH xCodeSample: @@ -11836,24 +11459,23 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.json_patch_operation import JsonPatchOperation from sailpoint.beta.models.role import Role - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808a7813090a017814121e121518' # str | ID of the Role to patch # str | ID of the Role to patch - json_patch_operation = '''[{op=replace, path=/requestable, value=true}, {op=replace, path=/enabled, value=true}]''' # List[JsonPatchOperation] | - try: - # Patch a specified Role - new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) - results = RolesApi(api_client).patch_role(id=id, json_patch_operation=new_json_patch_operation) - # Below is a request that includes all optional parameters - # results = RolesApi(api_client).patch_role(id, new_json_patch_operation) - print("The response of RolesApi->patch_role:\n") - pprint(results) - except Exception as e: - print("Exception when calling RolesApi->patch_role: %s\n" % e) + id = '2c91808a7813090a017814121e121518' # str | ID of the Role to patch # str | ID of the Role to patch + json_patch_operation = '''[{op=replace, path=/requestable, value=true}, {op=replace, path=/enabled, value=true}]''' # List[JsonPatchOperation] | + try: + # Patch a specified Role + new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) + results = RolesApi(api_client).patch_role(id=id, json_patch_operation=new_json_patch_operation) + # Below is a request that includes all optional parameters + # results = RolesApi(api_client).patch_role(id, new_json_patch_operation) + print("The response of RolesApi->patch_role:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling RolesApi->patch_role: %s\n" % e) - path: /accounts/search-attribute-config method: POST xCodeSample: @@ -11863,13 +11485,12 @@ from sailpoint.beta.api.search_attribute_configuration_api import SearchAttributeConfigurationApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.search_attribute_config import SearchAttributeConfig - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - search_attribute_config = '''{ + search_attribute_config = '''{ "displayName" : "New Mail Attribute", "name" : "newMailAttribute", "applicationAttributes" : { @@ -11877,16 +11498,16 @@ "2c91808b79fd2422017a0b36008f396b" : "employeeNumber" } }''' # SearchAttributeConfig | - try: - # Create Extended Search Attributes - new_search_attribute_config = SearchAttributeConfig.from_json(search_attribute_config) - results = SearchAttributeConfigurationApi(api_client).create_search_attribute_config(search_attribute_config=new_search_attribute_config) - # Below is a request that includes all optional parameters - # results = SearchAttributeConfigurationApi(api_client).create_search_attribute_config(new_search_attribute_config) - print("The response of SearchAttributeConfigurationApi->create_search_attribute_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling SearchAttributeConfigurationApi->create_search_attribute_config: %s\n" % e) + try: + # Create Extended Search Attributes + new_search_attribute_config = SearchAttributeConfig.from_json(search_attribute_config) + results = SearchAttributeConfigurationApi(api_client).create_search_attribute_config(search_attribute_config=new_search_attribute_config) + # Below is a request that includes all optional parameters + # results = SearchAttributeConfigurationApi(api_client).create_search_attribute_config(new_search_attribute_config) + print("The response of SearchAttributeConfigurationApi->create_search_attribute_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SearchAttributeConfigurationApi->create_search_attribute_config: %s\n" % e) - path: /accounts/search-attribute-config/{name} method: DELETE xCodeSample: @@ -11895,21 +11516,20 @@ source: | from sailpoint.beta.api.search_attribute_configuration_api import SearchAttributeConfigurationApi from sailpoint.beta.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - name = 'newMailAttribute' # str | Name of the extended search attribute configuration to delete. # str | Name of the extended search attribute configuration to delete. - try: - # Delete Extended Search Attribute - - SearchAttributeConfigurationApi(api_client).delete_search_attribute_config(name=name) - # Below is a request that includes all optional parameters - # SearchAttributeConfigurationApi(api_client).delete_search_attribute_config(name) - except Exception as e: - print("Exception when calling SearchAttributeConfigurationApi->delete_search_attribute_config: %s\n" % e) + name = 'newMailAttribute' # str | Name of the extended search attribute configuration to delete. # str | Name of the extended search attribute configuration to delete. + try: + # Delete Extended Search Attribute + + SearchAttributeConfigurationApi(api_client).delete_search_attribute_config(name=name) + # Below is a request that includes all optional parameters + # SearchAttributeConfigurationApi(api_client).delete_search_attribute_config(name) + except Exception as e: + print("Exception when calling SearchAttributeConfigurationApi->delete_search_attribute_config: %s\n" % e) - path: /accounts/search-attribute-config method: GET xCodeSample: @@ -11919,24 +11539,23 @@ from sailpoint.beta.api.search_attribute_configuration_api import SearchAttributeConfigurationApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.search_attribute_config import SearchAttributeConfig - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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) - try: - # List Extended Search Attributes - - results = SearchAttributeConfigurationApi(api_client).get_search_attribute_config() - # Below is a request that includes all optional parameters - # results = SearchAttributeConfigurationApi(api_client).get_search_attribute_config(limit, offset) - print("The response of SearchAttributeConfigurationApi->get_search_attribute_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling SearchAttributeConfigurationApi->get_search_attribute_config: %s\n" % e) + 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) + try: + # List Extended Search Attributes + + results = SearchAttributeConfigurationApi(api_client).get_search_attribute_config() + # Below is a request that includes all optional parameters + # results = SearchAttributeConfigurationApi(api_client).get_search_attribute_config(limit, offset) + print("The response of SearchAttributeConfigurationApi->get_search_attribute_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SearchAttributeConfigurationApi->get_search_attribute_config: %s\n" % e) - path: /accounts/search-attribute-config/{name} method: GET xCodeSample: @@ -11946,23 +11565,22 @@ from sailpoint.beta.api.search_attribute_configuration_api import SearchAttributeConfigurationApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.search_attribute_config import SearchAttributeConfig - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - name = 'newMailAttribute' # str | Name of the extended search attribute configuration to get. # str | Name of the extended search attribute configuration to get. - try: - # Get Extended Search Attribute - - results = SearchAttributeConfigurationApi(api_client).get_single_search_attribute_config(name=name) - # Below is a request that includes all optional parameters - # results = SearchAttributeConfigurationApi(api_client).get_single_search_attribute_config(name) - print("The response of SearchAttributeConfigurationApi->get_single_search_attribute_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling SearchAttributeConfigurationApi->get_single_search_attribute_config: %s\n" % e) + name = 'newMailAttribute' # str | Name of the extended search attribute configuration to get. # str | Name of the extended search attribute configuration to get. + try: + # Get Extended Search Attribute + + results = SearchAttributeConfigurationApi(api_client).get_single_search_attribute_config(name=name) + # Below is a request that includes all optional parameters + # results = SearchAttributeConfigurationApi(api_client).get_single_search_attribute_config(name) + print("The response of SearchAttributeConfigurationApi->get_single_search_attribute_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SearchAttributeConfigurationApi->get_single_search_attribute_config: %s\n" % e) - path: /accounts/search-attribute-config/{name} method: PATCH xCodeSample: @@ -11973,24 +11591,23 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.json_patch_operation import JsonPatchOperation from sailpoint.beta.models.search_attribute_config import SearchAttributeConfig - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - name = 'promotedMailAttribute' # str | Name of the extended search attribute configuration to patch. # str | Name of the extended search attribute configuration to patch. - json_patch_operation = '''[{op=replace, path=/name, value=newAttributeName}, {op=replace, path=/displayName, value=new attribute display name}, {op=add, path=/applicationAttributes, value={2c91808b79fd2422017a0b35d30f3968=employeeNumber}}]''' # List[JsonPatchOperation] | - try: - # Update Extended Search Attribute - new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) - results = SearchAttributeConfigurationApi(api_client).patch_search_attribute_config(name=name, json_patch_operation=new_json_patch_operation) - # Below is a request that includes all optional parameters - # results = SearchAttributeConfigurationApi(api_client).patch_search_attribute_config(name, new_json_patch_operation) - print("The response of SearchAttributeConfigurationApi->patch_search_attribute_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling SearchAttributeConfigurationApi->patch_search_attribute_config: %s\n" % e) + name = 'promotedMailAttribute' # str | Name of the extended search attribute configuration to patch. # str | Name of the extended search attribute configuration to patch. + json_patch_operation = '''[{op=replace, path=/name, value=newAttributeName}, {op=replace, path=/displayName, value=new attribute display name}, {op=add, path=/applicationAttributes, value={2c91808b79fd2422017a0b35d30f3968=employeeNumber}}]''' # List[JsonPatchOperation] | + try: + # Update Extended Search Attribute + new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) + results = SearchAttributeConfigurationApi(api_client).patch_search_attribute_config(name=name, json_patch_operation=new_json_patch_operation) + # Below is a request that includes all optional parameters + # results = SearchAttributeConfigurationApi(api_client).patch_search_attribute_config(name, new_json_patch_operation) + print("The response of SearchAttributeConfigurationApi->patch_search_attribute_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SearchAttributeConfigurationApi->patch_search_attribute_config: %s\n" % e) - path: /segments method: POST xCodeSample: @@ -12000,13 +11617,12 @@ from sailpoint.beta.api.segments_api import SegmentsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.segment import Segment - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - segment = '''{ + segment = '''{ "owner" : { "name" : "support", "id" : "2c9180a46faadee4016fb4e018c20639", @@ -12030,16 +11646,16 @@ "active" : true, "id" : "0f11f2a4-7c94-4bf3-a2bd-742580fe3bde" }''' # Segment | - try: - # Create Segment - new_segment = Segment.from_json(segment) - results = SegmentsApi(api_client).create_segment(segment=new_segment) - # Below is a request that includes all optional parameters - # results = SegmentsApi(api_client).create_segment(new_segment) - print("The response of SegmentsApi->create_segment:\n") - pprint(results) - except Exception as e: - print("Exception when calling SegmentsApi->create_segment: %s\n" % e) + try: + # Create Segment + new_segment = Segment.from_json(segment) + results = SegmentsApi(api_client).create_segment(segment=new_segment) + # Below is a request that includes all optional parameters + # results = SegmentsApi(api_client).create_segment(new_segment) + print("The response of SegmentsApi->create_segment:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SegmentsApi->create_segment: %s\n" % e) - path: /segments/{id} method: DELETE xCodeSample: @@ -12048,21 +11664,20 @@ source: | from sailpoint.beta.api.segments_api import SegmentsApi from sailpoint.beta.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The segment ID to delete. # str | The segment ID to delete. - try: - # Delete Segment by ID - - SegmentsApi(api_client).delete_segment(id=id) - # Below is a request that includes all optional parameters - # SegmentsApi(api_client).delete_segment(id) - except Exception as e: - print("Exception when calling SegmentsApi->delete_segment: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The segment ID to delete. # str | The segment ID to delete. + try: + # Delete Segment by ID + + SegmentsApi(api_client).delete_segment(id=id) + # Below is a request that includes all optional parameters + # SegmentsApi(api_client).delete_segment(id) + except Exception as e: + print("Exception when calling SegmentsApi->delete_segment: %s\n" % e) - path: /segments/{id} method: GET xCodeSample: @@ -12072,23 +11687,22 @@ from sailpoint.beta.api.segments_api import SegmentsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.segment import Segment - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The segment ID to retrieve. # str | The segment ID to retrieve. - try: - # Get Segment by ID - - results = SegmentsApi(api_client).get_segment(id=id) - # Below is a request that includes all optional parameters - # results = SegmentsApi(api_client).get_segment(id) - print("The response of SegmentsApi->get_segment:\n") - pprint(results) - except Exception as e: - print("Exception when calling SegmentsApi->get_segment: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The segment ID to retrieve. # str | The segment ID to retrieve. + try: + # Get Segment by ID + + results = SegmentsApi(api_client).get_segment(id=id) + # Below is a request that includes all optional parameters + # results = SegmentsApi(api_client).get_segment(id) + print("The response of SegmentsApi->get_segment:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SegmentsApi->get_segment: %s\n" % e) - path: /segments method: GET xCodeSample: @@ -12098,25 +11712,24 @@ from sailpoint.beta.api.segments_api import SegmentsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.segment import Segment - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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) - try: - # List Segments - - results = SegmentsApi(api_client).list_segments() - # Below is a request that includes all optional parameters - # results = SegmentsApi(api_client).list_segments(limit, offset, count) - print("The response of SegmentsApi->list_segments:\n") - pprint(results) - except Exception as e: - print("Exception when calling SegmentsApi->list_segments: %s\n" % e) + 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) + try: + # List Segments + + results = SegmentsApi(api_client).list_segments() + # Below is a request that includes all optional parameters + # results = SegmentsApi(api_client).list_segments(limit, offset, count) + print("The response of SegmentsApi->list_segments:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SegmentsApi->list_segments: %s\n" % e) - path: /segments/{id} method: PATCH xCodeSample: @@ -12126,24 +11739,23 @@ from sailpoint.beta.api.segments_api import SegmentsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.segment import Segment - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The segment ID to modify. # str | The segment ID to modify. - request_body = '''[{op=replace, path=/visibilityCriteria, 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 * owner * visibilityCriteria * active - try: - # Update Segment - new_request_body = RequestBody.from_json(request_body) - results = SegmentsApi(api_client).patch_segment(id=id, request_body=new_request_body) - # Below is a request that includes all optional parameters - # results = SegmentsApi(api_client).patch_segment(id, new_request_body) - print("The response of SegmentsApi->patch_segment:\n") - pprint(results) - except Exception as e: - print("Exception when calling SegmentsApi->patch_segment: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The segment ID to modify. # str | The segment ID to modify. + request_body = '''[{op=replace, path=/visibilityCriteria, 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 * owner * visibilityCriteria * active + try: + # Update Segment + new_request_body = RequestBody.from_json(request_body) + results = SegmentsApi(api_client).patch_segment(id=id, request_body=new_request_body) + # Below is a request that includes all optional parameters + # results = SegmentsApi(api_client).patch_segment(id, new_request_body) + print("The response of SegmentsApi->patch_segment:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SegmentsApi->patch_segment: %s\n" % e) - path: /service-desk-integrations method: POST xCodeSample: @@ -12153,13 +11765,12 @@ from sailpoint.beta.api.service_desk_integration_api import ServiceDeskIntegrationApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.service_desk_integration_dto import ServiceDeskIntegrationDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - service_desk_integration_dto = '''{ + service_desk_integration_dto = '''{ "ownerRef" : "", "cluster" : "xyzzy999", "managedSources" : [ "2c9180835d191a86015d28455b4a2329", "2c5680835d191a85765d28455b4a9823" ], @@ -12190,16 +11801,16 @@ "type" : "ServiceNowSDIM", "beforeProvisioningRule" : "" }''' # ServiceDeskIntegrationDto | The specifics of a new integration to create - try: - # Create new Service Desk integration - new_service_desk_integration_dto = ServiceDeskIntegrationDto.from_json(service_desk_integration_dto) - results = ServiceDeskIntegrationApi(api_client).create_service_desk_integration(service_desk_integration_dto=new_service_desk_integration_dto) - # Below is a request that includes all optional parameters - # results = ServiceDeskIntegrationApi(api_client).create_service_desk_integration(new_service_desk_integration_dto) - print("The response of ServiceDeskIntegrationApi->create_service_desk_integration:\n") - pprint(results) - except Exception as e: - print("Exception when calling ServiceDeskIntegrationApi->create_service_desk_integration: %s\n" % e) + try: + # Create new Service Desk integration + new_service_desk_integration_dto = ServiceDeskIntegrationDto.from_json(service_desk_integration_dto) + results = ServiceDeskIntegrationApi(api_client).create_service_desk_integration(service_desk_integration_dto=new_service_desk_integration_dto) + # Below is a request that includes all optional parameters + # results = ServiceDeskIntegrationApi(api_client).create_service_desk_integration(new_service_desk_integration_dto) + print("The response of ServiceDeskIntegrationApi->create_service_desk_integration:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ServiceDeskIntegrationApi->create_service_desk_integration: %s\n" % e) - path: /service-desk-integrations/{id} method: DELETE xCodeSample: @@ -12208,21 +11819,20 @@ source: | from sailpoint.beta.api.service_desk_integration_api import ServiceDeskIntegrationApi from sailpoint.beta.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'anId' # str | ID of Service Desk integration to delete # str | ID of Service Desk integration to delete - try: - # Delete a Service Desk integration - - ServiceDeskIntegrationApi(api_client).delete_service_desk_integration(id=id) - # Below is a request that includes all optional parameters - # ServiceDeskIntegrationApi(api_client).delete_service_desk_integration(id) - except Exception as e: - print("Exception when calling ServiceDeskIntegrationApi->delete_service_desk_integration: %s\n" % e) + id = 'anId' # str | ID of Service Desk integration to delete # str | ID of Service Desk integration to delete + try: + # Delete a Service Desk integration + + ServiceDeskIntegrationApi(api_client).delete_service_desk_integration(id=id) + # Below is a request that includes all optional parameters + # ServiceDeskIntegrationApi(api_client).delete_service_desk_integration(id) + except Exception as e: + print("Exception when calling ServiceDeskIntegrationApi->delete_service_desk_integration: %s\n" % e) - path: /service-desk-integrations/{id} method: GET xCodeSample: @@ -12232,23 +11842,22 @@ from sailpoint.beta.api.service_desk_integration_api import ServiceDeskIntegrationApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.service_desk_integration_dto import ServiceDeskIntegrationDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'anId' # str | ID of the Service Desk integration to get # str | ID of the Service Desk integration to get - try: - # Get a Service Desk integration - - results = ServiceDeskIntegrationApi(api_client).get_service_desk_integration(id=id) - # Below is a request that includes all optional parameters - # results = ServiceDeskIntegrationApi(api_client).get_service_desk_integration(id) - print("The response of ServiceDeskIntegrationApi->get_service_desk_integration:\n") - pprint(results) - except Exception as e: - print("Exception when calling ServiceDeskIntegrationApi->get_service_desk_integration: %s\n" % e) + id = 'anId' # str | ID of the Service Desk integration to get # str | ID of the Service Desk integration to get + try: + # Get a Service Desk integration + + results = ServiceDeskIntegrationApi(api_client).get_service_desk_integration(id=id) + # Below is a request that includes all optional parameters + # results = ServiceDeskIntegrationApi(api_client).get_service_desk_integration(id) + print("The response of ServiceDeskIntegrationApi->get_service_desk_integration:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ServiceDeskIntegrationApi->get_service_desk_integration: %s\n" % e) - path: /service-desk-integrations method: GET xCodeSample: @@ -12258,27 +11867,26 @@ from sailpoint.beta.api.service_desk_integration_api import ServiceDeskIntegrationApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.service_desk_integration_dto import ServiceDeskIntegrationDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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) - 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) - sorters = 'name' # 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: **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: **name** (optional) - filters = 'id eq 2c91808b6ef1d43e016efba0ce470904' # 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* **type**: *eq, in* **cluster**: *eq, in* (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* **type**: *eq, in* **cluster**: *eq, in* (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 [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) - try: - # List existing Service Desk integrations - - results = ServiceDeskIntegrationApi(api_client).get_service_desk_integration_list() - # Below is a request that includes all optional parameters - # results = ServiceDeskIntegrationApi(api_client).get_service_desk_integration_list(offset, limit, sorters, filters, count) - print("The response of ServiceDeskIntegrationApi->get_service_desk_integration_list:\n") - pprint(results) - except Exception as e: - print("Exception when calling ServiceDeskIntegrationApi->get_service_desk_integration_list: %s\n" % e) + 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) + 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) + sorters = 'name' # 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: **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: **name** (optional) + filters = 'id eq 2c91808b6ef1d43e016efba0ce470904' # 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* **type**: *eq, in* **cluster**: *eq, in* (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* **type**: *eq, in* **cluster**: *eq, in* (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 [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) + try: + # List existing Service Desk integrations + + results = ServiceDeskIntegrationApi(api_client).get_service_desk_integration_list() + # Below is a request that includes all optional parameters + # results = ServiceDeskIntegrationApi(api_client).get_service_desk_integration_list(offset, limit, sorters, filters, count) + print("The response of ServiceDeskIntegrationApi->get_service_desk_integration_list:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ServiceDeskIntegrationApi->get_service_desk_integration_list: %s\n" % e) - path: /service-desk-integrations/templates/{scriptName} method: GET xCodeSample: @@ -12288,23 +11896,22 @@ from sailpoint.beta.api.service_desk_integration_api import ServiceDeskIntegrationApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.service_desk_integration_template_dto import ServiceDeskIntegrationTemplateDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - script_name = 'aScriptName' # str | The scriptName value of the Service Desk integration template to get # str | The scriptName value of the Service Desk integration template to get - try: - # Service Desk integration template by scriptName - - results = ServiceDeskIntegrationApi(api_client).get_service_desk_integration_template(script_name=script_name) - # Below is a request that includes all optional parameters - # results = ServiceDeskIntegrationApi(api_client).get_service_desk_integration_template(script_name) - print("The response of ServiceDeskIntegrationApi->get_service_desk_integration_template:\n") - pprint(results) - except Exception as e: - print("Exception when calling ServiceDeskIntegrationApi->get_service_desk_integration_template: %s\n" % e) + script_name = 'aScriptName' # str | The scriptName value of the Service Desk integration template to get # str | The scriptName value of the Service Desk integration template to get + try: + # Service Desk integration template by scriptName + + results = ServiceDeskIntegrationApi(api_client).get_service_desk_integration_template(script_name=script_name) + # Below is a request that includes all optional parameters + # results = ServiceDeskIntegrationApi(api_client).get_service_desk_integration_template(script_name) + print("The response of ServiceDeskIntegrationApi->get_service_desk_integration_template:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ServiceDeskIntegrationApi->get_service_desk_integration_template: %s\n" % e) - path: /service-desk-integrations/types method: GET xCodeSample: @@ -12314,22 +11921,21 @@ from sailpoint.beta.api.service_desk_integration_api import ServiceDeskIntegrationApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.service_desk_integration_template_type import ServiceDeskIntegrationTemplateType - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - try: - # List Service Desk integration types - - results = ServiceDeskIntegrationApi(api_client).get_service_desk_integration_types() - # Below is a request that includes all optional parameters - # results = ServiceDeskIntegrationApi(api_client).get_service_desk_integration_types() - print("The response of ServiceDeskIntegrationApi->get_service_desk_integration_types:\n") - pprint(results) - except Exception as e: - print("Exception when calling ServiceDeskIntegrationApi->get_service_desk_integration_types: %s\n" % e) + try: + # List Service Desk integration types + + results = ServiceDeskIntegrationApi(api_client).get_service_desk_integration_types() + # Below is a request that includes all optional parameters + # results = ServiceDeskIntegrationApi(api_client).get_service_desk_integration_types() + print("The response of ServiceDeskIntegrationApi->get_service_desk_integration_types:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ServiceDeskIntegrationApi->get_service_desk_integration_types: %s\n" % e) - path: /service-desk-integrations/status-check-configuration method: GET xCodeSample: @@ -12339,22 +11945,21 @@ from sailpoint.beta.api.service_desk_integration_api import ServiceDeskIntegrationApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.queued_check_config_details import QueuedCheckConfigDetails - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - try: - # Get the time check configuration - - results = ServiceDeskIntegrationApi(api_client).get_status_check_details() - # Below is a request that includes all optional parameters - # results = ServiceDeskIntegrationApi(api_client).get_status_check_details() - print("The response of ServiceDeskIntegrationApi->get_status_check_details:\n") - pprint(results) - except Exception as e: - print("Exception when calling ServiceDeskIntegrationApi->get_status_check_details: %s\n" % e) + try: + # Get the time check configuration + + results = ServiceDeskIntegrationApi(api_client).get_status_check_details() + # Below is a request that includes all optional parameters + # results = ServiceDeskIntegrationApi(api_client).get_status_check_details() + print("The response of ServiceDeskIntegrationApi->get_status_check_details:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ServiceDeskIntegrationApi->get_status_check_details: %s\n" % e) - path: /service-desk-integrations/{id} method: PATCH xCodeSample: @@ -12365,24 +11970,23 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.patch_service_desk_integration_request import PatchServiceDeskIntegrationRequest from sailpoint.beta.models.service_desk_integration_dto import ServiceDeskIntegrationDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'anId' # str | ID of the Service Desk integration to update # str | ID of the Service Desk integration to update - patch_service_desk_integration_request = '''sailpoint.beta.PatchServiceDeskIntegrationRequest()''' # PatchServiceDeskIntegrationRequest | A list of SDIM update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Only `replace` operations are accepted by this endpoint. A 403 Forbidden Error indicates that a PATCH operation was attempted that is not allowed. - try: - # Patch a Service Desk Integration - new_patch_service_desk_integration_request = PatchServiceDeskIntegrationRequest.from_json(patch_service_desk_integration_request) - results = ServiceDeskIntegrationApi(api_client).patch_service_desk_integration(id=id, patch_service_desk_integration_request=new_patch_service_desk_integration_request) - # Below is a request that includes all optional parameters - # results = ServiceDeskIntegrationApi(api_client).patch_service_desk_integration(id, new_patch_service_desk_integration_request) - print("The response of ServiceDeskIntegrationApi->patch_service_desk_integration:\n") - pprint(results) - except Exception as e: - print("Exception when calling ServiceDeskIntegrationApi->patch_service_desk_integration: %s\n" % e) + id = 'anId' # str | ID of the Service Desk integration to update # str | ID of the Service Desk integration to update + patch_service_desk_integration_request = '''sailpoint.beta.PatchServiceDeskIntegrationRequest()''' # PatchServiceDeskIntegrationRequest | A list of SDIM update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Only `replace` operations are accepted by this endpoint. A 403 Forbidden Error indicates that a PATCH operation was attempted that is not allowed. + try: + # Patch a Service Desk Integration + new_patch_service_desk_integration_request = PatchServiceDeskIntegrationRequest.from_json(patch_service_desk_integration_request) + results = ServiceDeskIntegrationApi(api_client).patch_service_desk_integration(id=id, patch_service_desk_integration_request=new_patch_service_desk_integration_request) + # Below is a request that includes all optional parameters + # results = ServiceDeskIntegrationApi(api_client).patch_service_desk_integration(id, new_patch_service_desk_integration_request) + print("The response of ServiceDeskIntegrationApi->patch_service_desk_integration:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ServiceDeskIntegrationApi->patch_service_desk_integration: %s\n" % e) - path: /service-desk-integrations/{id} method: PUT xCodeSample: @@ -12392,14 +11996,13 @@ from sailpoint.beta.api.service_desk_integration_api import ServiceDeskIntegrationApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.service_desk_integration_dto import ServiceDeskIntegrationDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'anId' # str | ID of the Service Desk integration to update # str | ID of the Service Desk integration to update - service_desk_integration_dto = '''{ + id = 'anId' # str | ID of the Service Desk integration to update # str | ID of the Service Desk integration to update + service_desk_integration_dto = '''{ "ownerRef" : "", "cluster" : "xyzzy999", "managedSources" : [ "2c9180835d191a86015d28455b4a2329", "2c5680835d191a85765d28455b4a9823" ], @@ -12430,16 +12033,16 @@ "type" : "ServiceNowSDIM", "beforeProvisioningRule" : "" }''' # ServiceDeskIntegrationDto | The specifics of the integration to update - try: - # Update a Service Desk integration - new_service_desk_integration_dto = ServiceDeskIntegrationDto.from_json(service_desk_integration_dto) - results = ServiceDeskIntegrationApi(api_client).put_service_desk_integration(id=id, service_desk_integration_dto=new_service_desk_integration_dto) - # Below is a request that includes all optional parameters - # results = ServiceDeskIntegrationApi(api_client).put_service_desk_integration(id, new_service_desk_integration_dto) - print("The response of ServiceDeskIntegrationApi->put_service_desk_integration:\n") - pprint(results) - except Exception as e: - print("Exception when calling ServiceDeskIntegrationApi->put_service_desk_integration: %s\n" % e) + try: + # Update a Service Desk integration + new_service_desk_integration_dto = ServiceDeskIntegrationDto.from_json(service_desk_integration_dto) + results = ServiceDeskIntegrationApi(api_client).put_service_desk_integration(id=id, service_desk_integration_dto=new_service_desk_integration_dto) + # Below is a request that includes all optional parameters + # results = ServiceDeskIntegrationApi(api_client).put_service_desk_integration(id, new_service_desk_integration_dto) + print("The response of ServiceDeskIntegrationApi->put_service_desk_integration:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ServiceDeskIntegrationApi->put_service_desk_integration: %s\n" % e) - path: /service-desk-integrations/status-check-configuration method: PUT xCodeSample: @@ -12449,26 +12052,25 @@ from sailpoint.beta.api.service_desk_integration_api import ServiceDeskIntegrationApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.queued_check_config_details import QueuedCheckConfigDetails - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - queued_check_config_details = '''{ + queued_check_config_details = '''{ "provisioningStatusCheckIntervalMinutes" : "30", "provisioningMaxStatusCheckDays" : "2" }''' # QueuedCheckConfigDetails | The modified time check configuration - try: - # Update the time check configuration - new_queued_check_config_details = QueuedCheckConfigDetails.from_json(queued_check_config_details) - results = ServiceDeskIntegrationApi(api_client).update_status_check_details(queued_check_config_details=new_queued_check_config_details) - # Below is a request that includes all optional parameters - # results = ServiceDeskIntegrationApi(api_client).update_status_check_details(new_queued_check_config_details) - print("The response of ServiceDeskIntegrationApi->update_status_check_details:\n") - pprint(results) - except Exception as e: - print("Exception when calling ServiceDeskIntegrationApi->update_status_check_details: %s\n" % e) + try: + # Update the time check configuration + new_queued_check_config_details = QueuedCheckConfigDetails.from_json(queued_check_config_details) + results = ServiceDeskIntegrationApi(api_client).update_status_check_details(queued_check_config_details=new_queued_check_config_details) + # Below is a request that includes all optional parameters + # results = ServiceDeskIntegrationApi(api_client).update_status_check_details(new_queued_check_config_details) + print("The response of ServiceDeskIntegrationApi->update_status_check_details:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ServiceDeskIntegrationApi->update_status_check_details: %s\n" % e) - path: /sim-integrations method: POST xCodeSample: @@ -12479,13 +12081,12 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.service_desk_integration_dto import ServiceDeskIntegrationDto from sailpoint.beta.models.sim_integration_details import SimIntegrationDetails - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - sim_integration_details = '''{ + sim_integration_details = '''{ "cluster" : "xyzzy999", "statusMap" : "{closed_cancelled=Failed, closed_complete=Committed, closed_incomplete=Failed, closed_rejected=Failed, in_process=Queued, requested=Queued}", "request" : "{description=SailPoint Access Request,, req_description=The Service Request created by SailPoint ServiceNow Service Integration Module (SIM).,, req_short_description=SailPoint New Access Request Created from IdentityNow,, short_description=SailPoint Access Request $!plan.arguments.identityRequestId}", @@ -12503,16 +12104,16 @@ "type" : "IDENTITY" } }''' # SimIntegrationDetails | DTO containing the details of the SIM integration - try: - # Create new SIM integration - new_sim_integration_details = SimIntegrationDetails.from_json(sim_integration_details) - results = SIMIntegrationsApi(api_client).create_sim_integration(sim_integration_details=new_sim_integration_details) - # Below is a request that includes all optional parameters - # results = SIMIntegrationsApi(api_client).create_sim_integration(new_sim_integration_details) - print("The response of SIMIntegrationsApi->create_sim_integration:\n") - pprint(results) - except Exception as e: - print("Exception when calling SIMIntegrationsApi->create_sim_integration: %s\n" % e) + try: + # Create new SIM integration + new_sim_integration_details = SimIntegrationDetails.from_json(sim_integration_details) + results = SIMIntegrationsApi(api_client).create_sim_integration(sim_integration_details=new_sim_integration_details) + # Below is a request that includes all optional parameters + # results = SIMIntegrationsApi(api_client).create_sim_integration(new_sim_integration_details) + print("The response of SIMIntegrationsApi->create_sim_integration:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SIMIntegrationsApi->create_sim_integration: %s\n" % e) - path: /sim-integrations/{id} method: DELETE xCodeSample: @@ -12521,21 +12122,20 @@ source: | from sailpoint.beta.api.sim_integrations_api import SIMIntegrationsApi from sailpoint.beta.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '12345' # str | The id of the integration to delete. # str | The id of the integration to delete. - try: - # Delete a SIM integration - - SIMIntegrationsApi(api_client).delete_sim_integration(id=id) - # Below is a request that includes all optional parameters - # SIMIntegrationsApi(api_client).delete_sim_integration(id) - except Exception as e: - print("Exception when calling SIMIntegrationsApi->delete_sim_integration: %s\n" % e) + id = '12345' # str | The id of the integration to delete. # str | The id of the integration to delete. + try: + # Delete a SIM integration + + SIMIntegrationsApi(api_client).delete_sim_integration(id=id) + # Below is a request that includes all optional parameters + # SIMIntegrationsApi(api_client).delete_sim_integration(id) + except Exception as e: + print("Exception when calling SIMIntegrationsApi->delete_sim_integration: %s\n" % e) - path: /sim-integrations/{id} method: GET xCodeSample: @@ -12545,23 +12145,22 @@ from sailpoint.beta.api.sim_integrations_api import SIMIntegrationsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.service_desk_integration_dto import ServiceDeskIntegrationDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '12345' # str | The id of the integration. # str | The id of the integration. - try: - # Get a SIM integration details. - - results = SIMIntegrationsApi(api_client).get_sim_integration(id=id) - # Below is a request that includes all optional parameters - # results = SIMIntegrationsApi(api_client).get_sim_integration(id) - print("The response of SIMIntegrationsApi->get_sim_integration:\n") - pprint(results) - except Exception as e: - print("Exception when calling SIMIntegrationsApi->get_sim_integration: %s\n" % e) + id = '12345' # str | The id of the integration. # str | The id of the integration. + try: + # Get a SIM integration details. + + results = SIMIntegrationsApi(api_client).get_sim_integration(id=id) + # Below is a request that includes all optional parameters + # results = SIMIntegrationsApi(api_client).get_sim_integration(id) + print("The response of SIMIntegrationsApi->get_sim_integration:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SIMIntegrationsApi->get_sim_integration: %s\n" % e) - path: /sim-integrations method: GET xCodeSample: @@ -12571,22 +12170,21 @@ from sailpoint.beta.api.sim_integrations_api import SIMIntegrationsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.service_desk_integration_dto import ServiceDeskIntegrationDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - try: - # List the existing SIM integrations. - - results = SIMIntegrationsApi(api_client).get_sim_integrations() - # Below is a request that includes all optional parameters - # results = SIMIntegrationsApi(api_client).get_sim_integrations() - print("The response of SIMIntegrationsApi->get_sim_integrations:\n") - pprint(results) - except Exception as e: - print("Exception when calling SIMIntegrationsApi->get_sim_integrations: %s\n" % e) + try: + # List the existing SIM integrations. + + results = SIMIntegrationsApi(api_client).get_sim_integrations() + # Below is a request that includes all optional parameters + # results = SIMIntegrationsApi(api_client).get_sim_integrations() + print("The response of SIMIntegrationsApi->get_sim_integrations:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SIMIntegrationsApi->get_sim_integrations: %s\n" % e) - path: /sim-integrations/{id}/beforeProvisioningRule method: PATCH xCodeSample: @@ -12597,24 +12195,23 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.json_patch import JsonPatch from sailpoint.beta.models.service_desk_integration_dto import ServiceDeskIntegrationDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '12345' # str | SIM integration id # str | SIM integration id - json_patch = '''"[\n {\n\t \"op\": \"replace\",\n\t \"path\": \"/description\",\n\t \"value\": \"A new description\"\n }\n]"''' # JsonPatch | The JsonPatch object that describes the changes of SIM beforeProvisioningRule. - try: - # Patch a SIM beforeProvisioningRule attribute. - new_json_patch = JsonPatch.from_json(json_patch) - results = SIMIntegrationsApi(api_client).patch_before_provisioning_rule(id=id, json_patch=new_json_patch) - # Below is a request that includes all optional parameters - # results = SIMIntegrationsApi(api_client).patch_before_provisioning_rule(id, new_json_patch) - print("The response of SIMIntegrationsApi->patch_before_provisioning_rule:\n") - pprint(results) - except Exception as e: - print("Exception when calling SIMIntegrationsApi->patch_before_provisioning_rule: %s\n" % e) + id = '12345' # str | SIM integration id # str | SIM integration id + json_patch = '''"[\n {\n\t \"op\": \"replace\",\n\t \"path\": \"/description\",\n\t \"value\": \"A new description\"\n }\n]"''' # JsonPatch | The JsonPatch object that describes the changes of SIM beforeProvisioningRule. + try: + # Patch a SIM beforeProvisioningRule attribute. + new_json_patch = JsonPatch.from_json(json_patch) + results = SIMIntegrationsApi(api_client).patch_before_provisioning_rule(id=id, json_patch=new_json_patch) + # Below is a request that includes all optional parameters + # results = SIMIntegrationsApi(api_client).patch_before_provisioning_rule(id, new_json_patch) + print("The response of SIMIntegrationsApi->patch_before_provisioning_rule:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SIMIntegrationsApi->patch_before_provisioning_rule: %s\n" % e) - path: /sim-integrations/{id} method: PATCH xCodeSample: @@ -12625,24 +12222,23 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.json_patch import JsonPatch from sailpoint.beta.models.service_desk_integration_dto import ServiceDeskIntegrationDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '12345' # str | SIM integration id # str | SIM integration id - json_patch = '''"[\n {\n\t \"op\": \"replace\",\n\t \"path\": \"/description\",\n\t \"value\": \"A new description\"\n }\n]"''' # JsonPatch | The JsonPatch object that describes the changes of SIM - try: - # Patch a SIM attribute. - new_json_patch = JsonPatch.from_json(json_patch) - results = SIMIntegrationsApi(api_client).patch_sim_attributes(id=id, json_patch=new_json_patch) - # Below is a request that includes all optional parameters - # results = SIMIntegrationsApi(api_client).patch_sim_attributes(id, new_json_patch) - print("The response of SIMIntegrationsApi->patch_sim_attributes:\n") - pprint(results) - except Exception as e: - print("Exception when calling SIMIntegrationsApi->patch_sim_attributes: %s\n" % e) + id = '12345' # str | SIM integration id # str | SIM integration id + json_patch = '''"[\n {\n\t \"op\": \"replace\",\n\t \"path\": \"/description\",\n\t \"value\": \"A new description\"\n }\n]"''' # JsonPatch | The JsonPatch object that describes the changes of SIM + try: + # Patch a SIM attribute. + new_json_patch = JsonPatch.from_json(json_patch) + results = SIMIntegrationsApi(api_client).patch_sim_attributes(id=id, json_patch=new_json_patch) + # Below is a request that includes all optional parameters + # results = SIMIntegrationsApi(api_client).patch_sim_attributes(id, new_json_patch) + print("The response of SIMIntegrationsApi->patch_sim_attributes:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SIMIntegrationsApi->patch_sim_attributes: %s\n" % e) - path: /sim-integrations/{id} method: PUT xCodeSample: @@ -12653,14 +12249,13 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.service_desk_integration_dto import ServiceDeskIntegrationDto from sailpoint.beta.models.sim_integration_details import SimIntegrationDetails - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '12345' # str | The id of the integration. # str | The id of the integration. - sim_integration_details = '''{ + id = '12345' # str | The id of the integration. # str | The id of the integration. + sim_integration_details = '''{ "cluster" : "xyzzy999", "statusMap" : "{closed_cancelled=Failed, closed_complete=Committed, closed_incomplete=Failed, closed_rejected=Failed, in_process=Queued, requested=Queued}", "request" : "{description=SailPoint Access Request,, req_description=The Service Request created by SailPoint ServiceNow Service Integration Module (SIM).,, req_short_description=SailPoint New Access Request Created from IdentityNow,, short_description=SailPoint Access Request $!plan.arguments.identityRequestId}", @@ -12678,16 +12273,16 @@ "type" : "IDENTITY" } }''' # SimIntegrationDetails | The full DTO of the integration containing the updated model - try: - # Update an existing SIM integration - new_sim_integration_details = SimIntegrationDetails.from_json(sim_integration_details) - results = SIMIntegrationsApi(api_client).put_sim_integration(id=id, sim_integration_details=new_sim_integration_details) - # Below is a request that includes all optional parameters - # results = SIMIntegrationsApi(api_client).put_sim_integration(id, new_sim_integration_details) - print("The response of SIMIntegrationsApi->put_sim_integration:\n") - pprint(results) - except Exception as e: - print("Exception when calling SIMIntegrationsApi->put_sim_integration: %s\n" % e) + try: + # Update an existing SIM integration + new_sim_integration_details = SimIntegrationDetails.from_json(sim_integration_details) + results = SIMIntegrationsApi(api_client).put_sim_integration(id=id, sim_integration_details=new_sim_integration_details) + # Below is a request that includes all optional parameters + # results = SIMIntegrationsApi(api_client).put_sim_integration(id, new_sim_integration_details) + print("The response of SIMIntegrationsApi->put_sim_integration:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SIMIntegrationsApi->put_sim_integration: %s\n" % e) - path: /sod-policies method: POST xCodeSample: @@ -12697,13 +12292,12 @@ from sailpoint.beta.api.sod_policies_api import SODPoliciesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.sod_policy import SodPolicy - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - sod_policy = '''{ + sod_policy = '''{ "conflictingAccessCriteria" : { "leftCriteria" : { "name" : "money-in", @@ -12759,16 +12353,16 @@ "state" : "ENFORCED", "externalPolicyReference" : "XYZ policy" }''' # SodPolicy | - try: - # Create SOD policy - new_sod_policy = SodPolicy.from_json(sod_policy) - results = SODPoliciesApi(api_client).create_sod_policy(sod_policy=new_sod_policy) - # Below is a request that includes all optional parameters - # results = SODPoliciesApi(api_client).create_sod_policy(new_sod_policy) - print("The response of SODPoliciesApi->create_sod_policy:\n") - pprint(results) - except Exception as e: - print("Exception when calling SODPoliciesApi->create_sod_policy: %s\n" % e) + try: + # Create SOD policy + new_sod_policy = SodPolicy.from_json(sod_policy) + results = SODPoliciesApi(api_client).create_sod_policy(sod_policy=new_sod_policy) + # Below is a request that includes all optional parameters + # results = SODPoliciesApi(api_client).create_sod_policy(new_sod_policy) + print("The response of SODPoliciesApi->create_sod_policy:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SODPoliciesApi->create_sod_policy: %s\n" % e) - path: /sod-policies/{id} method: DELETE xCodeSample: @@ -12777,22 +12371,21 @@ source: | from sailpoint.beta.api.sod_policies_api import SODPoliciesApi from sailpoint.beta.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the SOD Policy to delete. # str | The ID of the SOD Policy to delete. - logical = True # bool | Indicates whether this is a soft delete (logical true) or a hard delete. (optional) (default to True) # bool | Indicates whether this is a soft delete (logical true) or a hard delete. (optional) (default to True) - try: - # Delete SOD policy by ID - - SODPoliciesApi(api_client).delete_sod_policy(id=id) - # Below is a request that includes all optional parameters - # SODPoliciesApi(api_client).delete_sod_policy(id, logical) - except Exception as e: - print("Exception when calling SODPoliciesApi->delete_sod_policy: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the SOD Policy to delete. # str | The ID of the SOD Policy to delete. + logical = True # bool | Indicates whether this is a soft delete (logical true) or a hard delete. (optional) (default to True) # bool | Indicates whether this is a soft delete (logical true) or a hard delete. (optional) (default to True) + try: + # Delete SOD policy by ID + + SODPoliciesApi(api_client).delete_sod_policy(id=id) + # Below is a request that includes all optional parameters + # SODPoliciesApi(api_client).delete_sod_policy(id, logical) + except Exception as e: + print("Exception when calling SODPoliciesApi->delete_sod_policy: %s\n" % e) - path: /sod-policies/{id}/schedule method: DELETE xCodeSample: @@ -12801,21 +12394,20 @@ source: | from sailpoint.beta.api.sod_policies_api import SODPoliciesApi from sailpoint.beta.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the SOD policy the schedule must be deleted for. # str | The ID of the SOD policy the schedule must be deleted for. - try: - # Delete SOD policy schedule - - SODPoliciesApi(api_client).delete_sod_policy_schedule(id=id) - # Below is a request that includes all optional parameters - # SODPoliciesApi(api_client).delete_sod_policy_schedule(id) - except Exception as e: - print("Exception when calling SODPoliciesApi->delete_sod_policy_schedule: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the SOD policy the schedule must be deleted for. # str | The ID of the SOD policy the schedule must be deleted for. + try: + # Delete SOD policy schedule + + SODPoliciesApi(api_client).delete_sod_policy_schedule(id=id) + # Below is a request that includes all optional parameters + # SODPoliciesApi(api_client).delete_sod_policy_schedule(id) + except Exception as e: + print("Exception when calling SODPoliciesApi->delete_sod_policy_schedule: %s\n" % e) - path: /sod-violation-report/{reportResultId}/download/{fileName} method: GET xCodeSample: @@ -12824,24 +12416,23 @@ source: | from sailpoint.beta.api.sod_policies_api import SODPoliciesApi from sailpoint.beta.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - report_result_id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the report reference to download. # str | The ID of the report reference to download. - file_name = 'custom-name' # str | Custom Name for the file. # str | Custom Name for the file. - try: - # Download custom violation report - - results = SODPoliciesApi(api_client).get_custom_violation_report(report_result_id=report_result_id, file_name=file_name) - # Below is a request that includes all optional parameters - # results = SODPoliciesApi(api_client).get_custom_violation_report(report_result_id, file_name) - print("The response of SODPoliciesApi->get_custom_violation_report:\n") - pprint(results) - except Exception as e: - print("Exception when calling SODPoliciesApi->get_custom_violation_report: %s\n" % e) + report_result_id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the report reference to download. # str | The ID of the report reference to download. + file_name = 'custom-name' # str | Custom Name for the file. # str | Custom Name for the file. + try: + # Download custom violation report + + results = SODPoliciesApi(api_client).get_custom_violation_report(report_result_id=report_result_id, file_name=file_name) + # Below is a request that includes all optional parameters + # results = SODPoliciesApi(api_client).get_custom_violation_report(report_result_id, file_name) + print("The response of SODPoliciesApi->get_custom_violation_report:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SODPoliciesApi->get_custom_violation_report: %s\n" % e) - path: /sod-violation-report/{reportResultId}/download method: GET xCodeSample: @@ -12850,23 +12441,22 @@ source: | from sailpoint.beta.api.sod_policies_api import SODPoliciesApi from sailpoint.beta.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - report_result_id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the report reference to download. # str | The ID of the report reference to download. - try: - # Download violation report - - results = SODPoliciesApi(api_client).get_default_violation_report(report_result_id=report_result_id) - # Below is a request that includes all optional parameters - # results = SODPoliciesApi(api_client).get_default_violation_report(report_result_id) - print("The response of SODPoliciesApi->get_default_violation_report:\n") - pprint(results) - except Exception as e: - print("Exception when calling SODPoliciesApi->get_default_violation_report: %s\n" % e) + report_result_id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the report reference to download. # str | The ID of the report reference to download. + try: + # Download violation report + + results = SODPoliciesApi(api_client).get_default_violation_report(report_result_id=report_result_id) + # Below is a request that includes all optional parameters + # results = SODPoliciesApi(api_client).get_default_violation_report(report_result_id) + print("The response of SODPoliciesApi->get_default_violation_report:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SODPoliciesApi->get_default_violation_report: %s\n" % e) - path: /sod-violation-report method: GET xCodeSample: @@ -12876,22 +12466,21 @@ from sailpoint.beta.api.sod_policies_api import SODPoliciesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.report_result_reference import ReportResultReference - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - try: - # Get multi-report run task status - - results = SODPoliciesApi(api_client).get_sod_all_report_run_status() - # Below is a request that includes all optional parameters - # results = SODPoliciesApi(api_client).get_sod_all_report_run_status() - print("The response of SODPoliciesApi->get_sod_all_report_run_status:\n") - pprint(results) - except Exception as e: - print("Exception when calling SODPoliciesApi->get_sod_all_report_run_status: %s\n" % e) + try: + # Get multi-report run task status + + results = SODPoliciesApi(api_client).get_sod_all_report_run_status() + # Below is a request that includes all optional parameters + # results = SODPoliciesApi(api_client).get_sod_all_report_run_status() + print("The response of SODPoliciesApi->get_sod_all_report_run_status:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SODPoliciesApi->get_sod_all_report_run_status: %s\n" % e) - path: /sod-policies/{id} method: GET xCodeSample: @@ -12901,23 +12490,22 @@ from sailpoint.beta.api.sod_policies_api import SODPoliciesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.sod_policy import SodPolicy - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the object reference to retrieve. # str | The ID of the object reference to retrieve. - try: - # Get SOD policy by ID - - results = SODPoliciesApi(api_client).get_sod_policy(id=id) - # Below is a request that includes all optional parameters - # results = SODPoliciesApi(api_client).get_sod_policy(id) - print("The response of SODPoliciesApi->get_sod_policy:\n") - pprint(results) - except Exception as e: - print("Exception when calling SODPoliciesApi->get_sod_policy: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the object reference to retrieve. # str | The ID of the object reference to retrieve. + try: + # Get SOD policy by ID + + results = SODPoliciesApi(api_client).get_sod_policy(id=id) + # Below is a request that includes all optional parameters + # results = SODPoliciesApi(api_client).get_sod_policy(id) + print("The response of SODPoliciesApi->get_sod_policy:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SODPoliciesApi->get_sod_policy: %s\n" % e) - path: /sod-policies/{id}/schedule method: GET xCodeSample: @@ -12927,23 +12515,22 @@ from sailpoint.beta.api.sod_policies_api import SODPoliciesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.sod_policy_schedule import SodPolicySchedule - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the object reference to retrieve. # str | The ID of the object reference to retrieve. - try: - # Get SOD policy schedule - - results = SODPoliciesApi(api_client).get_sod_policy_schedule(id=id) - # Below is a request that includes all optional parameters - # results = SODPoliciesApi(api_client).get_sod_policy_schedule(id) - print("The response of SODPoliciesApi->get_sod_policy_schedule:\n") - pprint(results) - except Exception as e: - print("Exception when calling SODPoliciesApi->get_sod_policy_schedule: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the object reference to retrieve. # str | The ID of the object reference to retrieve. + try: + # Get SOD policy schedule + + results = SODPoliciesApi(api_client).get_sod_policy_schedule(id=id) + # Below is a request that includes all optional parameters + # results = SODPoliciesApi(api_client).get_sod_policy_schedule(id) + print("The response of SODPoliciesApi->get_sod_policy_schedule:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SODPoliciesApi->get_sod_policy_schedule: %s\n" % e) - path: /sod-policies/sod-violation-report-status/{reportResultId} method: GET xCodeSample: @@ -12953,23 +12540,22 @@ from sailpoint.beta.api.sod_policies_api import SODPoliciesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.report_result_reference import ReportResultReference - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - report_result_id = '2e8d8180-24bc-4d21-91c6-7affdb473b0d' # str | The ID of the report reference to retrieve. # str | The ID of the report reference to retrieve. - try: - # Get violation report run status - - results = SODPoliciesApi(api_client).get_sod_violation_report_run_status(report_result_id=report_result_id) - # Below is a request that includes all optional parameters - # results = SODPoliciesApi(api_client).get_sod_violation_report_run_status(report_result_id) - print("The response of SODPoliciesApi->get_sod_violation_report_run_status:\n") - pprint(results) - except Exception as e: - print("Exception when calling SODPoliciesApi->get_sod_violation_report_run_status: %s\n" % e) + report_result_id = '2e8d8180-24bc-4d21-91c6-7affdb473b0d' # str | The ID of the report reference to retrieve. # str | The ID of the report reference to retrieve. + try: + # Get violation report run status + + results = SODPoliciesApi(api_client).get_sod_violation_report_run_status(report_result_id=report_result_id) + # Below is a request that includes all optional parameters + # results = SODPoliciesApi(api_client).get_sod_violation_report_run_status(report_result_id) + print("The response of SODPoliciesApi->get_sod_violation_report_run_status:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SODPoliciesApi->get_sod_violation_report_run_status: %s\n" % e) - path: /sod-policies/{id}/violation-report method: GET xCodeSample: @@ -12979,23 +12565,22 @@ from sailpoint.beta.api.sod_policies_api import SODPoliciesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.report_result_reference import ReportResultReference - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the object reference to retrieve. # str | The ID of the object reference to retrieve. - try: - # Get SOD violation report status - - results = SODPoliciesApi(api_client).get_sod_violation_report_status(id=id) - # Below is a request that includes all optional parameters - # results = SODPoliciesApi(api_client).get_sod_violation_report_status(id) - print("The response of SODPoliciesApi->get_sod_violation_report_status:\n") - pprint(results) - except Exception as e: - print("Exception when calling SODPoliciesApi->get_sod_violation_report_status: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the object reference to retrieve. # str | The ID of the object reference to retrieve. + try: + # Get SOD violation report status + + results = SODPoliciesApi(api_client).get_sod_violation_report_status(id=id) + # Below is a request that includes all optional parameters + # results = SODPoliciesApi(api_client).get_sod_violation_report_status(id) + print("The response of SODPoliciesApi->get_sod_violation_report_status:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SODPoliciesApi->get_sod_violation_report_status: %s\n" % e) - path: /sod-policies method: GET xCodeSample: @@ -13005,27 +12590,26 @@ from sailpoint.beta.api.sod_policies_api import SODPoliciesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.sod_policy import SodPolicy - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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 = 'id eq \"bc693f07e7b645539626c25954c58554\"' # 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* **state**: *eq, in* (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* **state**: *eq, in* (optional) - sorters = 'id,name' # 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: **id, name, created, modified, description** (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: **id, name, created, modified, description** (optional) - try: - # List SOD policies - - results = SODPoliciesApi(api_client).list_sod_policies() - # Below is a request that includes all optional parameters - # results = SODPoliciesApi(api_client).list_sod_policies(limit, offset, count, filters, sorters) - print("The response of SODPoliciesApi->list_sod_policies:\n") - pprint(results) - except Exception as e: - print("Exception when calling SODPoliciesApi->list_sod_policies: %s\n" % e) + 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 = 'id eq \"bc693f07e7b645539626c25954c58554\"' # 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* **state**: *eq, in* (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* **state**: *eq, in* (optional) + sorters = 'id,name' # 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: **id, name, created, modified, description** (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: **id, name, created, modified, description** (optional) + try: + # List SOD policies + + results = SODPoliciesApi(api_client).list_sod_policies() + # Below is a request that includes all optional parameters + # results = SODPoliciesApi(api_client).list_sod_policies(limit, offset, count, filters, sorters) + print("The response of SODPoliciesApi->list_sod_policies:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SODPoliciesApi->list_sod_policies: %s\n" % e) - path: /sod-policies/{id} method: PATCH xCodeSample: @@ -13035,24 +12619,23 @@ from sailpoint.beta.api.sod_policies_api import SODPoliciesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.sod_policy import SodPolicy - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c9180835d191a86015d28455b4a2329' # str | The ID of the SOD policy being modified. # str | The ID of the SOD policy being modified. - request_body = '''[{op=replace, path=/description, value=Modified description}, {op=replace, path=/conflictingAccessCriteria/leftCriteria/name, value=money-in-modified}, {op=replace, path=/conflictingAccessCriteria/rightCriteria, value={name=money-out-modified, criteriaList=[{type=ENTITLEMENT, id=2c918087682f9a86016839c0509c1ab2}]}}]''' # List[object] | A list of SOD Policy update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * description * ownerRef * externalPolicyReference * compensatingControls * correctionAdvice * state * tags * violationOwnerAssignmentConfig * scheduled * conflictingAccessCriteria - try: - # Patch a SOD policy - new_request_body = RequestBody.from_json(request_body) - results = SODPoliciesApi(api_client).patch_sod_policy(id=id, request_body=new_request_body) - # Below is a request that includes all optional parameters - # results = SODPoliciesApi(api_client).patch_sod_policy(id, new_request_body) - print("The response of SODPoliciesApi->patch_sod_policy:\n") - pprint(results) - except Exception as e: - print("Exception when calling SODPoliciesApi->patch_sod_policy: %s\n" % e) + id = '2c9180835d191a86015d28455b4a2329' # str | The ID of the SOD policy being modified. # str | The ID of the SOD policy being modified. + request_body = '''[{op=replace, path=/description, value=Modified description}, {op=replace, path=/conflictingAccessCriteria/leftCriteria/name, value=money-in-modified}, {op=replace, path=/conflictingAccessCriteria/rightCriteria, value={name=money-out-modified, criteriaList=[{type=ENTITLEMENT, id=2c918087682f9a86016839c0509c1ab2}]}}]''' # List[object] | A list of SOD Policy update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * description * ownerRef * externalPolicyReference * compensatingControls * correctionAdvice * state * tags * violationOwnerAssignmentConfig * scheduled * conflictingAccessCriteria + try: + # Patch a SOD policy + new_request_body = RequestBody.from_json(request_body) + results = SODPoliciesApi(api_client).patch_sod_policy(id=id, request_body=new_request_body) + # Below is a request that includes all optional parameters + # results = SODPoliciesApi(api_client).patch_sod_policy(id, new_request_body) + print("The response of SODPoliciesApi->patch_sod_policy:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SODPoliciesApi->patch_sod_policy: %s\n" % e) - path: /sod-policies/{id}/schedule method: PUT xCodeSample: @@ -13062,14 +12645,13 @@ from sailpoint.beta.api.sod_policies_api import SODPoliciesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.sod_policy_schedule import SodPolicySchedule - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the SOD policy to update its schedule. # str | The ID of the SOD policy to update its schedule. - sod_policy_schedule = '''{ + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the SOD policy to update its schedule. # str | The ID of the SOD policy to update its schedule. + sod_policy_schedule = '''{ "schedule" : { "hours" : { "accountMatchConfig" : { @@ -13155,16 +12737,16 @@ "description" : "Schedule for policy xyz", "emailEmptyResults" : false }''' # SodPolicySchedule | - try: - # Update SOD Policy schedule - new_sod_policy_schedule = SodPolicySchedule.from_json(sod_policy_schedule) - results = SODPoliciesApi(api_client).put_policy_schedule(id=id, sod_policy_schedule=new_sod_policy_schedule) - # Below is a request that includes all optional parameters - # results = SODPoliciesApi(api_client).put_policy_schedule(id, new_sod_policy_schedule) - print("The response of SODPoliciesApi->put_policy_schedule:\n") - pprint(results) - except Exception as e: - print("Exception when calling SODPoliciesApi->put_policy_schedule: %s\n" % e) + try: + # Update SOD Policy schedule + new_sod_policy_schedule = SodPolicySchedule.from_json(sod_policy_schedule) + results = SODPoliciesApi(api_client).put_policy_schedule(id=id, sod_policy_schedule=new_sod_policy_schedule) + # Below is a request that includes all optional parameters + # results = SODPoliciesApi(api_client).put_policy_schedule(id, new_sod_policy_schedule) + print("The response of SODPoliciesApi->put_policy_schedule:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SODPoliciesApi->put_policy_schedule: %s\n" % e) - path: /sod-policies/{id} method: PUT xCodeSample: @@ -13174,14 +12756,13 @@ from sailpoint.beta.api.sod_policies_api import SODPoliciesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.sod_policy import SodPolicy - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the SOD policy to update. # str | The ID of the SOD policy to update. - sod_policy = '''{ + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the SOD policy to update. # str | The ID of the SOD policy to update. + sod_policy = '''{ "conflictingAccessCriteria" : { "leftCriteria" : { "name" : "money-in", @@ -13237,16 +12818,16 @@ "state" : "ENFORCED", "externalPolicyReference" : "XYZ policy" }''' # SodPolicy | - try: - # Update SOD policy by ID - new_sod_policy = SodPolicy.from_json(sod_policy) - results = SODPoliciesApi(api_client).put_sod_policy(id=id, sod_policy=new_sod_policy) - # Below is a request that includes all optional parameters - # results = SODPoliciesApi(api_client).put_sod_policy(id, new_sod_policy) - print("The response of SODPoliciesApi->put_sod_policy:\n") - pprint(results) - except Exception as e: - print("Exception when calling SODPoliciesApi->put_sod_policy: %s\n" % e) + try: + # Update SOD policy by ID + new_sod_policy = SodPolicy.from_json(sod_policy) + results = SODPoliciesApi(api_client).put_sod_policy(id=id, sod_policy=new_sod_policy) + # Below is a request that includes all optional parameters + # results = SODPoliciesApi(api_client).put_sod_policy(id, new_sod_policy) + print("The response of SODPoliciesApi->put_sod_policy:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SODPoliciesApi->put_sod_policy: %s\n" % e) - path: /sod-violation-report/run method: POST xCodeSample: @@ -13257,25 +12838,24 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.multi_policy_request import MultiPolicyRequest from sailpoint.beta.models.report_result_reference import ReportResultReference - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - multi_policy_request = '''{ + multi_policy_request = '''{ "filteredPolicyList" : [ "filteredPolicyList", "filteredPolicyList" ] }''' # MultiPolicyRequest | (optional) - try: - # Runs all policies for org - - results = SODPoliciesApi(api_client).start_sod_all_policies_for_org() - # Below is a request that includes all optional parameters - # results = SODPoliciesApi(api_client).start_sod_all_policies_for_org(new_multi_policy_request) - print("The response of SODPoliciesApi->start_sod_all_policies_for_org:\n") - pprint(results) - except Exception as e: - print("Exception when calling SODPoliciesApi->start_sod_all_policies_for_org: %s\n" % e) + try: + # Runs all policies for org + + results = SODPoliciesApi(api_client).start_sod_all_policies_for_org() + # Below is a request that includes all optional parameters + # results = SODPoliciesApi(api_client).start_sod_all_policies_for_org(new_multi_policy_request) + print("The response of SODPoliciesApi->start_sod_all_policies_for_org:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SODPoliciesApi->start_sod_all_policies_for_org: %s\n" % e) - path: /sod-policies/{id}/violation-report/run method: POST xCodeSample: @@ -13285,23 +12865,22 @@ from sailpoint.beta.api.sod_policies_api import SODPoliciesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.report_result_reference import ReportResultReference - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The SOD policy ID to run. # str | The SOD policy ID to run. - try: - # Runs SOD policy violation report - - results = SODPoliciesApi(api_client).start_sod_policy(id=id) - # Below is a request that includes all optional parameters - # results = SODPoliciesApi(api_client).start_sod_policy(id) - print("The response of SODPoliciesApi->start_sod_policy:\n") - pprint(results) - except Exception as e: - print("Exception when calling SODPoliciesApi->start_sod_policy: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The SOD policy ID to run. # str | The SOD policy ID to run. + try: + # Runs SOD policy violation report + + results = SODPoliciesApi(api_client).start_sod_policy(id=id) + # Below is a request that includes all optional parameters + # results = SODPoliciesApi(api_client).start_sod_policy(id) + print("The response of SODPoliciesApi->start_sod_policy:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SODPoliciesApi->start_sod_policy: %s\n" % e) - path: /sod-violations/predict method: POST xCodeSample: @@ -13312,13 +12891,12 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.identity_with_new_access import IdentityWithNewAccess from sailpoint.beta.models.violation_prediction import ViolationPrediction - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - identity_with_new_access = '''{ + identity_with_new_access = '''{ "identityId" : "2c91808568c529c60168cca6f90c1313", "accessRefs" : [ { "type" : "ENTITLEMENT", @@ -13330,16 +12908,16 @@ "name" : "CN=Information Technology,OU=test,OU=test-service,DC=TestAD,DC=local" } ] }''' # IdentityWithNewAccess | - try: - # Predict SOD violations for identity. - new_identity_with_new_access = IdentityWithNewAccess.from_json(identity_with_new_access) - results = SODViolationsApi(api_client).start_predict_sod_violations(identity_with_new_access=new_identity_with_new_access) - # Below is a request that includes all optional parameters - # results = SODViolationsApi(api_client).start_predict_sod_violations(new_identity_with_new_access) - print("The response of SODViolationsApi->start_predict_sod_violations:\n") - pprint(results) - except Exception as e: - print("Exception when calling SODViolationsApi->start_predict_sod_violations: %s\n" % e) + try: + # Predict SOD violations for identity. + new_identity_with_new_access = IdentityWithNewAccess.from_json(identity_with_new_access) + results = SODViolationsApi(api_client).start_predict_sod_violations(identity_with_new_access=new_identity_with_new_access) + # Below is a request that includes all optional parameters + # results = SODViolationsApi(api_client).start_predict_sod_violations(new_identity_with_new_access) + print("The response of SODViolationsApi->start_predict_sod_violations:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SODViolationsApi->start_predict_sod_violations: %s\n" % e) - path: /sources/{sourceId}/provisioning-policies method: POST xCodeSample: @@ -13349,14 +12927,13 @@ from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.provisioning_policy_dto import ProvisioningPolicyDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source id # str | The Source id - provisioning_policy_dto = '''{ + source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source id # str | The Source id + provisioning_policy_dto = '''{ "name" : "example provisioning policy for inactive identities", "description" : "this provisioning policy creates access based on an identity going inactive", "fields" : [ { @@ -13396,16 +12973,16 @@ } ], "usageType" : "CREATE" }''' # ProvisioningPolicyDto | - try: - # Create Provisioning Policy - new_provisioning_policy_dto = ProvisioningPolicyDto.from_json(provisioning_policy_dto) - results = SourcesApi(api_client).create_provisioning_policy(source_id=source_id, provisioning_policy_dto=new_provisioning_policy_dto) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).create_provisioning_policy(source_id, new_provisioning_policy_dto) - print("The response of SourcesApi->create_provisioning_policy:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->create_provisioning_policy: %s\n" % e) + try: + # Create Provisioning Policy + new_provisioning_policy_dto = ProvisioningPolicyDto.from_json(provisioning_policy_dto) + results = SourcesApi(api_client).create_provisioning_policy(source_id=source_id, provisioning_policy_dto=new_provisioning_policy_dto) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).create_provisioning_policy(source_id, new_provisioning_policy_dto) + print("The response of SourcesApi->create_provisioning_policy:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->create_provisioning_policy: %s\n" % e) - path: /sources method: POST xCodeSample: @@ -13415,13 +12992,12 @@ from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.source import Source - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source = '''{ + source = '''{ "cluster" : { "name" : "Corporate Cluster", "id" : "2c9180866166b5b0016167c32ef31a66", @@ -13504,17 +13080,17 @@ "status" : "SOURCE_STATE_HEALTHY", "since" : "2021-09-28T15:48:29.3801666300Z" }''' # Source | - provision_as_csv = false # bool | If this parameter is `true`, it configures the source as a Delimited File (CSV) source. Setting this to `true` will automatically set the `type` of the source to `DelimitedFile`. You must use this query parameter to create a Delimited File source as you would in the UI. If you don't set this query parameter and you attempt to set the `type` attribute directly, the request won't correctly generate the source. (optional) # bool | If this parameter is `true`, it configures the source as a Delimited File (CSV) source. Setting this to `true` will automatically set the `type` of the source to `DelimitedFile`. You must use this query parameter to create a Delimited File source as you would in the UI. If you don't set this query parameter and you attempt to set the `type` attribute directly, the request won't correctly generate the source. (optional) - try: - # Creates a source in IdentityNow. - new_source = Source.from_json(source) - results = SourcesApi(api_client).create_source(source=new_source) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).create_source(new_source, provision_as_csv) - print("The response of SourcesApi->create_source:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->create_source: %s\n" % e) + provision_as_csv = false # bool | If this parameter is `true`, it configures the source as a Delimited File (CSV) source. Setting this to `true` will automatically set the `type` of the source to `DelimitedFile`. You must use this query parameter to create a Delimited File source as you would in the UI. If you don't set this query parameter and you attempt to set the `type` attribute directly, the request won't correctly generate the source. (optional) # bool | If this parameter is `true`, it configures the source as a Delimited File (CSV) source. Setting this to `true` will automatically set the `type` of the source to `DelimitedFile`. You must use this query parameter to create a Delimited File source as you would in the UI. If you don't set this query parameter and you attempt to set the `type` attribute directly, the request won't correctly generate the source. (optional) + try: + # Creates a source in IdentityNow. + new_source = Source.from_json(source) + results = SourcesApi(api_client).create_source(source=new_source) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).create_source(new_source, provision_as_csv) + print("The response of SourcesApi->create_source:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->create_source: %s\n" % e) - path: /sources/{sourceId}/schemas method: POST xCodeSample: @@ -13524,24 +13100,23 @@ from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.model_schema import ModelSchema - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '2c9180835d191a86015d28455b4a2329' # str | Source ID. # str | Source ID. - model_schema = '''sailpoint.beta.ModelSchema()''' # ModelSchema | - try: - # Create Schema on Source - new_model_schema = ModelSchema.from_json(model_schema) - results = SourcesApi(api_client).create_source_schema(source_id=source_id, model_schema=new_model_schema) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).create_source_schema(source_id, new_model_schema) - print("The response of SourcesApi->create_source_schema:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->create_source_schema: %s\n" % e) + source_id = '2c9180835d191a86015d28455b4a2329' # str | Source ID. # str | Source ID. + model_schema = '''sailpoint.beta.ModelSchema()''' # ModelSchema | + try: + # Create Schema on Source + new_model_schema = ModelSchema.from_json(model_schema) + results = SourcesApi(api_client).create_source_schema(source_id=source_id, model_schema=new_model_schema) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).create_source_schema(source_id, new_model_schema) + print("The response of SourcesApi->create_source_schema:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->create_source_schema: %s\n" % e) - path: /sources/{id} method: DELETE xCodeSample: @@ -13551,23 +13126,22 @@ from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.delete202_response import Delete202Response - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c9180835d191a86015d28455b4a2329' # str | Source ID. # str | Source ID. - try: - # Delete Source by ID - - results = SourcesApi(api_client).delete(id=id) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).delete(id) - print("The response of SourcesApi->delete:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->delete: %s\n" % e) + id = '2c9180835d191a86015d28455b4a2329' # str | Source ID. # str | Source ID. + try: + # Delete Source by ID + + results = SourcesApi(api_client).delete(id=id) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).delete(id) + print("The response of SourcesApi->delete:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->delete: %s\n" % e) - path: /sources/{sourceId}/remove-accounts method: POST xCodeSample: @@ -13577,23 +13151,22 @@ from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.task_result_dto import TaskResultDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = 'ebbf35756e1140699ce52b233121384a' # str | The source id # str | The source id - try: - # Remove All Accounts in a Source - - results = SourcesApi(api_client).delete_accounts_async(source_id=source_id) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).delete_accounts_async(source_id) - print("The response of SourcesApi->delete_accounts_async:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->delete_accounts_async: %s\n" % e) + source_id = 'ebbf35756e1140699ce52b233121384a' # str | The source id # str | The source id + try: + # Remove All Accounts in a Source + + results = SourcesApi(api_client).delete_accounts_async(source_id=source_id) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).delete_accounts_async(source_id) + print("The response of SourcesApi->delete_accounts_async:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->delete_accounts_async: %s\n" % e) - path: /sources/{sourceId}/native-change-detection-config method: DELETE xCodeSample: @@ -13602,21 +13175,20 @@ source: | from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '2c9180835d191a86015d28455b4a2329' # str | The source id # str | The source id - try: - # Delete Native Change Detection Configuration - - SourcesApi(api_client).delete_native_change_detection_config(source_id=source_id) - # Below is a request that includes all optional parameters - # SourcesApi(api_client).delete_native_change_detection_config(source_id) - except Exception as e: - print("Exception when calling SourcesApi->delete_native_change_detection_config: %s\n" % e) + source_id = '2c9180835d191a86015d28455b4a2329' # str | The source id # str | The source id + try: + # Delete Native Change Detection Configuration + + SourcesApi(api_client).delete_native_change_detection_config(source_id=source_id) + # Below is a request that includes all optional parameters + # SourcesApi(api_client).delete_native_change_detection_config(source_id) + except Exception as e: + print("Exception when calling SourcesApi->delete_native_change_detection_config: %s\n" % e) - path: /sources/{sourceId}/provisioning-policies/{usageType} method: DELETE xCodeSample: @@ -13626,22 +13198,21 @@ from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.usage_type import UsageType - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source ID. # str | The Source ID. - usage_type = sailpoint.beta.UsageType() # UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. # UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. - try: - # Delete Provisioning Policy by UsageType - - SourcesApi(api_client).delete_provisioning_policy(source_id=source_id, usage_type=usage_type) - # Below is a request that includes all optional parameters - # SourcesApi(api_client).delete_provisioning_policy(source_id, usage_type) - except Exception as e: - print("Exception when calling SourcesApi->delete_provisioning_policy: %s\n" % e) + source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source ID. # str | The Source ID. + usage_type = sailpoint.beta.UsageType() # UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. # UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. + try: + # Delete Provisioning Policy by UsageType + + SourcesApi(api_client).delete_provisioning_policy(source_id=source_id, usage_type=usage_type) + # Below is a request that includes all optional parameters + # SourcesApi(api_client).delete_provisioning_policy(source_id, usage_type) + except Exception as e: + print("Exception when calling SourcesApi->delete_provisioning_policy: %s\n" % e) - path: /sources/{sourceId}/schemas/{schemaId} method: DELETE xCodeSample: @@ -13650,22 +13221,21 @@ source: | from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source ID. # str | The Source ID. - schema_id = '2c9180835d191a86015d28455b4a2329' # str | The Schema ID. # str | The Schema ID. - try: - # Delete Source Schema by ID - - SourcesApi(api_client).delete_source_schema(source_id=source_id, schema_id=schema_id) - # Below is a request that includes all optional parameters - # SourcesApi(api_client).delete_source_schema(source_id, schema_id) - except Exception as e: - print("Exception when calling SourcesApi->delete_source_schema: %s\n" % e) + source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source ID. # str | The Source ID. + schema_id = '2c9180835d191a86015d28455b4a2329' # str | The Schema ID. # str | The Schema ID. + try: + # Delete Source Schema by ID + + SourcesApi(api_client).delete_source_schema(source_id=source_id, schema_id=schema_id) + # Below is a request that includes all optional parameters + # SourcesApi(api_client).delete_source_schema(source_id, schema_id) + except Exception as e: + print("Exception when calling SourcesApi->delete_source_schema: %s\n" % e) - path: /sources/{sourceId}/correlation-config method: GET xCodeSample: @@ -13675,23 +13245,22 @@ from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.correlation_config import CorrelationConfig - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '2c9180835d191a86015d28455b4a2329' # str | The source id # str | The source id - try: - # Get Source Correlation Configuration - - results = SourcesApi(api_client).get_correlation_config(source_id=source_id) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).get_correlation_config(source_id) - print("The response of SourcesApi->get_correlation_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->get_correlation_config: %s\n" % e) + source_id = '2c9180835d191a86015d28455b4a2329' # str | The source id # str | The source id + try: + # Get Source Correlation Configuration + + results = SourcesApi(api_client).get_correlation_config(source_id=source_id) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).get_correlation_config(source_id) + print("The response of SourcesApi->get_correlation_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->get_correlation_config: %s\n" % e) - path: /sources/{sourceId}/native-change-detection-config method: GET xCodeSample: @@ -13701,23 +13270,22 @@ from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.native_change_detection_config import NativeChangeDetectionConfig - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '2c9180835d191a86015d28455b4a2329' # str | The source id # str | The source id - try: - # Native Change Detection Configuration - - results = SourcesApi(api_client).get_native_change_detection_config(source_id=source_id) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).get_native_change_detection_config(source_id) - print("The response of SourcesApi->get_native_change_detection_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->get_native_change_detection_config: %s\n" % e) + source_id = '2c9180835d191a86015d28455b4a2329' # str | The source id # str | The source id + try: + # Native Change Detection Configuration + + results = SourcesApi(api_client).get_native_change_detection_config(source_id=source_id) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).get_native_change_detection_config(source_id) + print("The response of SourcesApi->get_native_change_detection_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->get_native_change_detection_config: %s\n" % e) - path: /sources/{sourceId}/provisioning-policies/{usageType} method: GET xCodeSample: @@ -13728,24 +13296,23 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.provisioning_policy_dto import ProvisioningPolicyDto from sailpoint.beta.models.usage_type import UsageType - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source ID. # str | The Source ID. - usage_type = sailpoint.beta.UsageType() # UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. # UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. - try: - # Get Provisioning Policy by UsageType - - results = SourcesApi(api_client).get_provisioning_policy(source_id=source_id, usage_type=usage_type) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).get_provisioning_policy(source_id, usage_type) - print("The response of SourcesApi->get_provisioning_policy:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->get_provisioning_policy: %s\n" % e) + source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source ID. # str | The Source ID. + usage_type = sailpoint.beta.UsageType() # UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. # UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. + try: + # Get Provisioning Policy by UsageType + + results = SourcesApi(api_client).get_provisioning_policy(source_id=source_id, usage_type=usage_type) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).get_provisioning_policy(source_id, usage_type) + print("The response of SourcesApi->get_provisioning_policy:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->get_provisioning_policy: %s\n" % e) - path: /sources/{id} method: GET xCodeSample: @@ -13755,23 +13322,22 @@ from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.source import Source - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c9180835d191a86015d28455b4a2329' # str | Source ID. # str | Source ID. - try: - # Get Source by ID - - results = SourcesApi(api_client).get_source(id=id) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).get_source(id) - print("The response of SourcesApi->get_source:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->get_source: %s\n" % e) + id = '2c9180835d191a86015d28455b4a2329' # str | Source ID. # str | Source ID. + try: + # Get Source by ID + + results = SourcesApi(api_client).get_source(id=id) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).get_source(id) + print("The response of SourcesApi->get_source:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->get_source: %s\n" % e) - path: /sources/{sourceId}/schemas/accounts method: GET xCodeSample: @@ -13780,21 +13346,20 @@ source: | from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | The Source id # str | The Source id - try: - # Downloads source accounts schema template - - SourcesApi(api_client).get_source_accounts_schema(source_id=source_id) - # Below is a request that includes all optional parameters - # SourcesApi(api_client).get_source_accounts_schema(source_id) - except Exception as e: - print("Exception when calling SourcesApi->get_source_accounts_schema: %s\n" % e) + source_id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | The Source id # str | The Source id + try: + # Downloads source accounts schema template + + SourcesApi(api_client).get_source_accounts_schema(source_id=source_id) + # Below is a request that includes all optional parameters + # SourcesApi(api_client).get_source_accounts_schema(source_id) + except Exception as e: + print("Exception when calling SourcesApi->get_source_accounts_schema: %s\n" % e) - path: /sources/{id}/attribute-sync-config method: GET xCodeSample: @@ -13804,23 +13369,22 @@ from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.attr_sync_source_config import AttrSyncSourceConfig - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c9180835d191a86015d28455b4a2329' # str | The source id # str | The source id - try: - # Attribute Sync Config - - results = SourcesApi(api_client).get_source_attr_sync_config(id=id) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).get_source_attr_sync_config(id) - print("The response of SourcesApi->get_source_attr_sync_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->get_source_attr_sync_config: %s\n" % e) + id = '2c9180835d191a86015d28455b4a2329' # str | The source id # str | The source id + try: + # Attribute Sync Config + + results = SourcesApi(api_client).get_source_attr_sync_config(id=id) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).get_source_attr_sync_config(id) + print("The response of SourcesApi->get_source_attr_sync_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->get_source_attr_sync_config: %s\n" % e) - path: /sources/{id}/connectors/source-config method: GET xCodeSample: @@ -13830,24 +13394,23 @@ from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.connector_detail import ConnectorDetail - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'id_example' # str | The Source id # str | The Source id - locale = 'locale_example' # str | The locale to apply to the config. If no viable locale is given, it will default to \"en\" (optional) # str | The locale to apply to the config. If no viable locale is given, it will default to \"en\" (optional) - try: - # Gets source config with language translations - - results = SourcesApi(api_client).get_source_config(id=id) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).get_source_config(id, locale) - print("The response of SourcesApi->get_source_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->get_source_config: %s\n" % e) + id = 'id_example' # str | The Source id # str | The Source id + locale = 'locale_example' # str | The locale to apply to the config. If no viable locale is given, it will default to \"en\" (optional) # str | The locale to apply to the config. If no viable locale is given, it will default to \"en\" (optional) + try: + # Gets source config with language translations + + results = SourcesApi(api_client).get_source_config(id=id) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).get_source_config(id, locale) + print("The response of SourcesApi->get_source_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->get_source_config: %s\n" % e) - path: /sources/{sourceId}/entitlement-request-config method: GET xCodeSample: @@ -13857,23 +13420,22 @@ from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.source_entitlement_request_config import SourceEntitlementRequestConfig - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | The Source id # str | The Source id - try: - # Get Source Entitlement Request Configuration - - results = SourcesApi(api_client).get_source_entitlement_request_config(source_id=source_id) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).get_source_entitlement_request_config(source_id) - print("The response of SourcesApi->get_source_entitlement_request_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->get_source_entitlement_request_config: %s\n" % e) + source_id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | The Source id # str | The Source id + try: + # Get Source Entitlement Request Configuration + + results = SourcesApi(api_client).get_source_entitlement_request_config(source_id=source_id) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).get_source_entitlement_request_config(source_id) + print("The response of SourcesApi->get_source_entitlement_request_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->get_source_entitlement_request_config: %s\n" % e) - path: /sources/{sourceId}/schemas/entitlements method: GET xCodeSample: @@ -13882,22 +13444,21 @@ source: | from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | The Source id # str | The Source id - schema_name = '?schemaName=group' # str | Name of entitlement schema (optional) # str | Name of entitlement schema (optional) - try: - # Downloads source entitlements schema template - - SourcesApi(api_client).get_source_entitlements_schema(source_id=source_id) - # Below is a request that includes all optional parameters - # SourcesApi(api_client).get_source_entitlements_schema(source_id, schema_name) - except Exception as e: - print("Exception when calling SourcesApi->get_source_entitlements_schema: %s\n" % e) + source_id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | The Source id # str | The Source id + schema_name = '?schemaName=group' # str | Name of entitlement schema (optional) # str | Name of entitlement schema (optional) + try: + # Downloads source entitlements schema template + + SourcesApi(api_client).get_source_entitlements_schema(source_id=source_id) + # Below is a request that includes all optional parameters + # SourcesApi(api_client).get_source_entitlements_schema(source_id, schema_name) + except Exception as e: + print("Exception when calling SourcesApi->get_source_entitlements_schema: %s\n" % e) - path: /sources/{sourceId}/schemas/{schemaId} method: GET xCodeSample: @@ -13907,24 +13468,23 @@ from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.model_schema import ModelSchema - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source ID. # str | The Source ID. - schema_id = '2c9180835d191a86015d28455b4a2329' # str | The Schema ID. # str | The Schema ID. - try: - # Get Source Schema by ID - - results = SourcesApi(api_client).get_source_schema(source_id=source_id, schema_id=schema_id) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).get_source_schema(source_id, schema_id) - print("The response of SourcesApi->get_source_schema:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->get_source_schema: %s\n" % e) + source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source ID. # str | The Source ID. + schema_id = '2c9180835d191a86015d28455b4a2329' # str | The Schema ID. # str | The Schema ID. + try: + # Get Source Schema by ID + + results = SourcesApi(api_client).get_source_schema(source_id=source_id, schema_id=schema_id) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).get_source_schema(source_id, schema_id) + print("The response of SourcesApi->get_source_schema:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->get_source_schema: %s\n" % e) - path: /sources/{sourceId}/schemas method: GET xCodeSample: @@ -13934,25 +13494,24 @@ from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.model_schema import ModelSchema - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '2c9180835d191a86015d28455b4a2329' # str | Source ID. # str | Source ID. - include_types = 'group' # str | If set to 'group', then the account schema is filtered and only group schemas are returned. Only a value of 'group' is recognized presently. Note: The API will check whether include-types is group or not, if not, it will list schemas based on include-names, if include-names is not provided, it will list all schemas. (optional) # str | If set to 'group', then the account schema is filtered and only group schemas are returned. Only a value of 'group' is recognized presently. Note: The API will check whether include-types is group or not, if not, it will list schemas based on include-names, if include-names is not provided, it will list all schemas. (optional) - include_names = 'account' # str | A comma-separated list of schema names to filter result. (optional) # str | A comma-separated list of schema names to filter result. (optional) - try: - # List Schemas on Source - - results = SourcesApi(api_client).get_source_schemas(source_id=source_id) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).get_source_schemas(source_id, include_types, include_names) - print("The response of SourcesApi->get_source_schemas:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->get_source_schemas: %s\n" % e) + source_id = '2c9180835d191a86015d28455b4a2329' # str | Source ID. # str | Source ID. + include_types = 'group' # str | If set to 'group', then the account schema is filtered and only group schemas are returned. Only a value of 'group' is recognized presently. Note: The API will check whether include-types is group or not, if not, it will list schemas based on include-names, if include-names is not provided, it will list all schemas. (optional) # str | If set to 'group', then the account schema is filtered and only group schemas are returned. Only a value of 'group' is recognized presently. Note: The API will check whether include-types is group or not, if not, it will list schemas based on include-names, if include-names is not provided, it will list all schemas. (optional) + include_names = 'account' # str | A comma-separated list of schema names to filter result. (optional) # str | A comma-separated list of schema names to filter result. (optional) + try: + # List Schemas on Source + + results = SourcesApi(api_client).get_source_schemas(source_id=source_id) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).get_source_schemas(source_id, include_types, include_names) + print("The response of SourcesApi->get_source_schemas:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->get_source_schemas: %s\n" % e) - path: /sources/{sourceId}/load-accounts method: POST xCodeSample: @@ -13962,25 +13521,24 @@ from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.load_accounts_task import LoadAccountsTask - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = 'ef38f94347e94562b5bb8424a56397d8' # str | Source Id # str | Source Id - file = None # bytearray | The CSV file containing the source accounts to aggregate. (optional) # bytearray | The CSV file containing the source accounts to aggregate. (optional) - disable_optimization = 'disable_optimization_example' # str | Use this flag to reprocess every account whether or not the data has changed. (optional) # str | Use this flag to reprocess every account whether or not the data has changed. (optional) - try: - # Account Aggregation - - results = SourcesApi(api_client).import_accounts(source_id=source_id) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).import_accounts(source_id, file, disable_optimization) - print("The response of SourcesApi->import_accounts:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->import_accounts: %s\n" % e) + source_id = 'ef38f94347e94562b5bb8424a56397d8' # str | Source Id # str | Source Id + file = None # bytearray | The CSV file containing the source accounts to aggregate. (optional) # bytearray | The CSV file containing the source accounts to aggregate. (optional) + disable_optimization = 'disable_optimization_example' # str | Use this flag to reprocess every account whether or not the data has changed. (optional) # str | Use this flag to reprocess every account whether or not the data has changed. (optional) + try: + # Account Aggregation + + results = SourcesApi(api_client).import_accounts(source_id=source_id) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).import_accounts(source_id, file, disable_optimization) + print("The response of SourcesApi->import_accounts:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->import_accounts: %s\n" % e) - path: /sources/{sourceId}/load-entitlements method: POST xCodeSample: @@ -13990,24 +13548,23 @@ from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.load_entitlement_task import LoadEntitlementTask - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = 'ef38f94347e94562b5bb8424a56397d8' # str | Source Id # str | Source Id - file = None # bytearray | The CSV file containing the source entitlements to aggregate. (optional) # bytearray | The CSV file containing the source entitlements to aggregate. (optional) - try: - # Entitlement Aggregation - - results = SourcesApi(api_client).import_entitlements(source_id=source_id) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).import_entitlements(source_id, file) - print("The response of SourcesApi->import_entitlements:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->import_entitlements: %s\n" % e) + source_id = 'ef38f94347e94562b5bb8424a56397d8' # str | Source Id # str | Source Id + file = None # bytearray | The CSV file containing the source entitlements to aggregate. (optional) # bytearray | The CSV file containing the source entitlements to aggregate. (optional) + try: + # Entitlement Aggregation + + results = SourcesApi(api_client).import_entitlements(source_id=source_id) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).import_entitlements(source_id, file) + print("The response of SourcesApi->import_entitlements:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->import_entitlements: %s\n" % e) - path: /sources/{sourceId}/schemas/accounts method: POST xCodeSample: @@ -14017,24 +13574,23 @@ from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.model_schema import ModelSchema - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | The Source id # str | The Source id - file = None # bytearray | (optional) # bytearray | (optional) - try: - # Uploads source accounts schema template - - results = SourcesApi(api_client).import_source_accounts_schema(source_id=source_id) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).import_source_accounts_schema(source_id, file) - print("The response of SourcesApi->import_source_accounts_schema:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->import_source_accounts_schema: %s\n" % e) + source_id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | The Source id # str | The Source id + file = None # bytearray | (optional) # bytearray | (optional) + try: + # Uploads source accounts schema template + + results = SourcesApi(api_client).import_source_accounts_schema(source_id=source_id) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).import_source_accounts_schema(source_id, file) + print("The response of SourcesApi->import_source_accounts_schema:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->import_source_accounts_schema: %s\n" % e) - path: /sources/{sourceId}/upload-connector-file method: POST xCodeSample: @@ -14044,24 +13600,23 @@ from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.source import Source - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | The Source id # str | The Source id - file = None # bytearray | (optional) # bytearray | (optional) - try: - # Upload connector file to source - - results = SourcesApi(api_client).import_source_connector_file(source_id=source_id) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).import_source_connector_file(source_id, file) - print("The response of SourcesApi->import_source_connector_file:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->import_source_connector_file: %s\n" % e) + source_id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | The Source id # str | The Source id + file = None # bytearray | (optional) # bytearray | (optional) + try: + # Upload connector file to source + + results = SourcesApi(api_client).import_source_connector_file(source_id=source_id) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).import_source_connector_file(source_id, file) + print("The response of SourcesApi->import_source_connector_file:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->import_source_connector_file: %s\n" % e) - path: /sources/{sourceId}/schemas/entitlements method: POST xCodeSample: @@ -14071,25 +13626,24 @@ from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.model_schema import ModelSchema - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | The Source id # str | The Source id - schema_name = '?schemaName=group' # str | Name of entitlement schema (optional) # str | Name of entitlement schema (optional) - file = None # bytearray | (optional) # bytearray | (optional) - try: - # Uploads source entitlements schema template - - results = SourcesApi(api_client).import_source_entitlements_schema(source_id=source_id) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).import_source_entitlements_schema(source_id, schema_name, file) - print("The response of SourcesApi->import_source_entitlements_schema:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->import_source_entitlements_schema: %s\n" % e) + source_id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | The Source id # str | The Source id + schema_name = '?schemaName=group' # str | Name of entitlement schema (optional) # str | Name of entitlement schema (optional) + file = None # bytearray | (optional) # bytearray | (optional) + try: + # Uploads source entitlements schema template + + results = SourcesApi(api_client).import_source_entitlements_schema(source_id=source_id) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).import_source_entitlements_schema(source_id, schema_name, file) + print("The response of SourcesApi->import_source_entitlements_schema:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->import_source_entitlements_schema: %s\n" % e) - path: /sources/{sourceId}/load-uncorrelated-accounts method: POST xCodeSample: @@ -14099,24 +13653,23 @@ from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.load_uncorrelated_accounts_task import LoadUncorrelatedAccountsTask - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '75dbec1ebe154d5785da27b95e1dd5d7' # str | Source Id # str | Source Id - file = None # bytearray | (optional) # bytearray | (optional) - try: - # Process Uncorrelated Accounts - - results = SourcesApi(api_client).import_uncorrelated_accounts(source_id=source_id) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).import_uncorrelated_accounts(source_id, file) - print("The response of SourcesApi->import_uncorrelated_accounts:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->import_uncorrelated_accounts: %s\n" % e) + source_id = '75dbec1ebe154d5785da27b95e1dd5d7' # str | Source Id # str | Source Id + file = None # bytearray | (optional) # bytearray | (optional) + try: + # Process Uncorrelated Accounts + + results = SourcesApi(api_client).import_uncorrelated_accounts(source_id=source_id) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).import_uncorrelated_accounts(source_id, file) + print("The response of SourcesApi->import_uncorrelated_accounts:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->import_uncorrelated_accounts: %s\n" % e) - path: /sources/{sourceId}/provisioning-policies method: GET xCodeSample: @@ -14126,23 +13679,22 @@ from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.provisioning_policy_dto import ProvisioningPolicyDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source id # str | The Source id - try: - # Lists ProvisioningPolicies - - results = SourcesApi(api_client).list_provisioning_policies(source_id=source_id) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).list_provisioning_policies(source_id) - print("The response of SourcesApi->list_provisioning_policies:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->list_provisioning_policies: %s\n" % e) + source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source id # str | The Source id + try: + # Lists ProvisioningPolicies + + results = SourcesApi(api_client).list_provisioning_policies(source_id=source_id) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).list_provisioning_policies(source_id) + print("The response of SourcesApi->list_provisioning_policies:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->list_provisioning_policies: %s\n" % e) - path: /sources method: GET xCodeSample: @@ -14152,29 +13704,28 @@ from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.source import Source - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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 \"Employees\"' # 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, ge, gt, le, lt, ne, isnull, sw* **name**: *co, eq, in, sw, ge, gt, ne, isnull* **type**: *eq, in, ge, gt, ne, isnull, sw* **owner.id**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **features**: *ca, co* **created**: *eq* **modified**: *eq* **managementWorkgroup.id**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **description**: *eq, sw* **authoritative**: *eq, ne, isnull* **healthy**: *isnull* **status**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **connectionType**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **connectorName**: *eq, ge, gt, in, ne, isnull, sw* **category**: *co, eq, ge, gt, in, le, lt, ne, 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, ge, gt, le, lt, ne, isnull, sw* **name**: *co, eq, in, sw, ge, gt, ne, isnull* **type**: *eq, in, ge, gt, ne, isnull, sw* **owner.id**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **features**: *ca, co* **created**: *eq* **modified**: *eq* **managementWorkgroup.id**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **description**: *eq, sw* **authoritative**: *eq, ne, isnull* **healthy**: *isnull* **status**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **connectionType**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **connectorName**: *eq, ge, gt, in, ne, isnull, sw* **category**: *co, eq, ge, gt, in, le, lt, ne, sw* (optional) - sorters = 'name' # 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: **type, created, modified, name, owner.name, healthy, status, id, description, owner.id, accountCorrelationConfig.id, accountCorrelationConfig.name, managerCorrelationRule.type, managerCorrelationRule.id, managerCorrelationRule.name, authoritative, managementWorkgroup.id, connectorName, connectionType** (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: **type, created, modified, name, owner.name, healthy, status, id, description, owner.id, accountCorrelationConfig.id, accountCorrelationConfig.name, managerCorrelationRule.type, managerCorrelationRule.id, managerCorrelationRule.name, authoritative, managementWorkgroup.id, connectorName, connectionType** (optional) - for_subadmin = 'name' # str | Filter the returned list of sources for the identity specified by the parameter, which is the id of an identity with the role SOURCE_SUBADMIN. By convention, the value **me** indicates the identity id of the current user. Subadmins may only view Sources which they are able to administer; all other Sources will be filtered out when this parameter is set. If the current user is a SOURCE_SUBADMIN but fails to pass a valid value for this parameter, a 403 Forbidden is returned. (optional) # str | Filter the returned list of sources for the identity specified by the parameter, which is the id of an identity with the role SOURCE_SUBADMIN. By convention, the value **me** indicates the identity id of the current user. Subadmins may only view Sources which they are able to administer; all other Sources will be filtered out when this parameter is set. If the current user is a SOURCE_SUBADMIN but fails to pass a valid value for this parameter, a 403 Forbidden is returned. (optional) - include_idn_source = False # bool | Include the IdentityNow source in the response. (optional) (default to False) # bool | Include the IdentityNow source in the response. (optional) (default to False) - try: - # Lists all sources in IdentityNow. - - results = SourcesApi(api_client).list_sources() - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).list_sources(limit, offset, count, filters, sorters, for_subadmin, include_idn_source) - print("The response of SourcesApi->list_sources:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->list_sources: %s\n" % e) + 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 \"Employees\"' # 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, ge, gt, le, lt, ne, isnull, sw* **name**: *co, eq, in, sw, ge, gt, ne, isnull* **type**: *eq, in, ge, gt, ne, isnull, sw* **owner.id**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **features**: *ca, co* **created**: *eq* **modified**: *eq* **managementWorkgroup.id**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **description**: *eq, sw* **authoritative**: *eq, ne, isnull* **healthy**: *isnull* **status**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **connectionType**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **connectorName**: *eq, ge, gt, in, ne, isnull, sw* **category**: *co, eq, ge, gt, in, le, lt, ne, 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, ge, gt, le, lt, ne, isnull, sw* **name**: *co, eq, in, sw, ge, gt, ne, isnull* **type**: *eq, in, ge, gt, ne, isnull, sw* **owner.id**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **features**: *ca, co* **created**: *eq* **modified**: *eq* **managementWorkgroup.id**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **description**: *eq, sw* **authoritative**: *eq, ne, isnull* **healthy**: *isnull* **status**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **connectionType**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **connectorName**: *eq, ge, gt, in, ne, isnull, sw* **category**: *co, eq, ge, gt, in, le, lt, ne, sw* (optional) + sorters = 'name' # 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: **type, created, modified, name, owner.name, healthy, status, id, description, owner.id, accountCorrelationConfig.id, accountCorrelationConfig.name, managerCorrelationRule.type, managerCorrelationRule.id, managerCorrelationRule.name, authoritative, managementWorkgroup.id, connectorName, connectionType** (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: **type, created, modified, name, owner.name, healthy, status, id, description, owner.id, accountCorrelationConfig.id, accountCorrelationConfig.name, managerCorrelationRule.type, managerCorrelationRule.id, managerCorrelationRule.name, authoritative, managementWorkgroup.id, connectorName, connectionType** (optional) + for_subadmin = 'name' # str | Filter the returned list of sources for the identity specified by the parameter, which is the id of an identity with the role SOURCE_SUBADMIN. By convention, the value **me** indicates the identity id of the current user. Subadmins may only view Sources which they are able to administer; all other Sources will be filtered out when this parameter is set. If the current user is a SOURCE_SUBADMIN but fails to pass a valid value for this parameter, a 403 Forbidden is returned. (optional) # str | Filter the returned list of sources for the identity specified by the parameter, which is the id of an identity with the role SOURCE_SUBADMIN. By convention, the value **me** indicates the identity id of the current user. Subadmins may only view Sources which they are able to administer; all other Sources will be filtered out when this parameter is set. If the current user is a SOURCE_SUBADMIN but fails to pass a valid value for this parameter, a 403 Forbidden is returned. (optional) + include_idn_source = False # bool | Include the IdentityNow source in the response. (optional) (default to False) # bool | Include the IdentityNow source in the response. (optional) (default to False) + try: + # Lists all sources in IdentityNow. + + results = SourcesApi(api_client).list_sources() + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).list_sources(limit, offset, count, filters, sorters, for_subadmin, include_idn_source) + print("The response of SourcesApi->list_sources:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->list_sources: %s\n" % e) - path: /sources/{sourceId}/connector/peek-resource-objects method: POST xCodeSample: @@ -14185,27 +13736,26 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.resource_objects_request import ResourceObjectsRequest from sailpoint.beta.models.resource_objects_response import ResourceObjectsResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = 'cef3ee201db947c5912551015ba0c679' # str | The ID of the Source # str | The ID of the Source - resource_objects_request = '''{ + source_id = 'cef3ee201db947c5912551015ba0c679' # str | The ID of the Source # str | The ID of the Source + resource_objects_request = '''{ "maxCount" : 100, "objectType" : "group" }''' # ResourceObjectsRequest | - try: - # Peek source connector's resource objects - new_resource_objects_request = ResourceObjectsRequest.from_json(resource_objects_request) - results = SourcesApi(api_client).peek_resource_objects(source_id=source_id, resource_objects_request=new_resource_objects_request) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).peek_resource_objects(source_id, new_resource_objects_request) - print("The response of SourcesApi->peek_resource_objects:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->peek_resource_objects: %s\n" % e) + try: + # Peek source connector's resource objects + new_resource_objects_request = ResourceObjectsRequest.from_json(resource_objects_request) + results = SourcesApi(api_client).peek_resource_objects(source_id=source_id, resource_objects_request=new_resource_objects_request) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).peek_resource_objects(source_id, new_resource_objects_request) + print("The response of SourcesApi->peek_resource_objects:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->peek_resource_objects: %s\n" % e) - path: /sources/{sourceId}/connector/ping-cluster method: POST xCodeSample: @@ -14215,23 +13765,22 @@ from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.status_response import StatusResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = 'cef3ee201db947c5912551015ba0c679' # str | The ID of the Source # str | The ID of the Source - try: - # Ping cluster for source connector - - results = SourcesApi(api_client).ping_cluster(source_id=source_id) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).ping_cluster(source_id) - print("The response of SourcesApi->ping_cluster:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->ping_cluster: %s\n" % e) + source_id = 'cef3ee201db947c5912551015ba0c679' # str | The ID of the Source # str | The ID of the Source + try: + # Ping cluster for source connector + + results = SourcesApi(api_client).ping_cluster(source_id=source_id) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).ping_cluster(source_id) + print("The response of SourcesApi->ping_cluster:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->ping_cluster: %s\n" % e) - path: /sources/{sourceId}/correlation-config method: PUT xCodeSample: @@ -14241,14 +13790,13 @@ from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.correlation_config import CorrelationConfig - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '2c9180835d191a86015d28455b4a2329' # str | The source id # str | The source id - correlation_config = '''{ + source_id = '2c9180835d191a86015d28455b4a2329' # str | The source id # str | The source id + correlation_config = '''{ "attributeAssignments" : [ { "filterString" : "first_name == \"John\"", "ignoreCase" : false, @@ -14269,16 +13817,16 @@ "name" : "Source [source] Account Correlation", "id" : "2c9180835d191a86015d28455b4a2329" }''' # CorrelationConfig | - try: - # Update Source Correlation Configuration - new_correlation_config = CorrelationConfig.from_json(correlation_config) - results = SourcesApi(api_client).put_correlation_config(source_id=source_id, correlation_config=new_correlation_config) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).put_correlation_config(source_id, new_correlation_config) - print("The response of SourcesApi->put_correlation_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->put_correlation_config: %s\n" % e) + try: + # Update Source Correlation Configuration + new_correlation_config = CorrelationConfig.from_json(correlation_config) + results = SourcesApi(api_client).put_correlation_config(source_id=source_id, correlation_config=new_correlation_config) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).put_correlation_config(source_id, new_correlation_config) + print("The response of SourcesApi->put_correlation_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->put_correlation_config: %s\n" % e) - path: /sources/{sourceId}/native-change-detection-config method: PUT xCodeSample: @@ -14288,14 +13836,13 @@ from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.native_change_detection_config import NativeChangeDetectionConfig - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '2c9180835d191a86015d28455b4a2329' # str | The source id # str | The source id - native_change_detection_config = '''{ + source_id = '2c9180835d191a86015d28455b4a2329' # str | The source id # str | The source id + native_change_detection_config = '''{ "selectedEntitlements" : [ "memberOf", "memberOfSharedMailbox" ], "operations" : [ "ACCOUNT_UPDATED", "ACCOUNT_DELETED" ], "selectedNonEntitlementAttributes" : [ "lastName", "phoneNumber", "objectType", "servicePrincipalName" ], @@ -14303,16 +13850,16 @@ "allEntitlements" : false, "enabled" : true }''' # NativeChangeDetectionConfig | - try: - # Update Native Change Detection Configuration - new_native_change_detection_config = NativeChangeDetectionConfig.from_json(native_change_detection_config) - results = SourcesApi(api_client).put_native_change_detection_config(source_id=source_id, native_change_detection_config=new_native_change_detection_config) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).put_native_change_detection_config(source_id, new_native_change_detection_config) - print("The response of SourcesApi->put_native_change_detection_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->put_native_change_detection_config: %s\n" % e) + try: + # Update Native Change Detection Configuration + new_native_change_detection_config = NativeChangeDetectionConfig.from_json(native_change_detection_config) + results = SourcesApi(api_client).put_native_change_detection_config(source_id=source_id, native_change_detection_config=new_native_change_detection_config) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).put_native_change_detection_config(source_id, new_native_change_detection_config) + print("The response of SourcesApi->put_native_change_detection_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->put_native_change_detection_config: %s\n" % e) - path: /sources/{sourceId}/provisioning-policies/{usageType} method: PUT xCodeSample: @@ -14323,15 +13870,14 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.provisioning_policy_dto import ProvisioningPolicyDto from sailpoint.beta.models.usage_type import UsageType - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source ID. # str | The Source ID. - usage_type = sailpoint.beta.UsageType() # UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. # UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. - provisioning_policy_dto = '''{ + source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source ID. # str | The Source ID. + usage_type = sailpoint.beta.UsageType() # UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. # UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. + provisioning_policy_dto = '''{ "name" : "example provisioning policy for inactive identities", "description" : "this provisioning policy creates access based on an identity going inactive", "fields" : [ { @@ -14371,16 +13917,16 @@ } ], "usageType" : "CREATE" }''' # ProvisioningPolicyDto | - try: - # Update Provisioning Policy by UsageType - new_provisioning_policy_dto = ProvisioningPolicyDto.from_json(provisioning_policy_dto) - results = SourcesApi(api_client).put_provisioning_policy(source_id=source_id, usage_type=usage_type, provisioning_policy_dto=new_provisioning_policy_dto) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).put_provisioning_policy(source_id, usage_type, new_provisioning_policy_dto) - print("The response of SourcesApi->put_provisioning_policy:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->put_provisioning_policy: %s\n" % e) + try: + # Update Provisioning Policy by UsageType + new_provisioning_policy_dto = ProvisioningPolicyDto.from_json(provisioning_policy_dto) + results = SourcesApi(api_client).put_provisioning_policy(source_id=source_id, usage_type=usage_type, provisioning_policy_dto=new_provisioning_policy_dto) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).put_provisioning_policy(source_id, usage_type, new_provisioning_policy_dto) + print("The response of SourcesApi->put_provisioning_policy:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->put_provisioning_policy: %s\n" % e) - path: /sources/{id} method: PUT xCodeSample: @@ -14390,14 +13936,13 @@ from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.source import Source - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c9180835d191a86015d28455b4a2329' # str | Source ID. # str | Source ID. - source = '''{ + id = '2c9180835d191a86015d28455b4a2329' # str | Source ID. # str | Source ID. + source = '''{ "cluster" : { "name" : "Corporate Cluster", "id" : "2c9180866166b5b0016167c32ef31a66", @@ -14480,16 +14025,16 @@ "status" : "SOURCE_STATE_HEALTHY", "since" : "2021-09-28T15:48:29.3801666300Z" }''' # Source | - try: - # Update Source (Full) - new_source = Source.from_json(source) - results = SourcesApi(api_client).put_source(id=id, source=new_source) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).put_source(id, new_source) - print("The response of SourcesApi->put_source:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->put_source: %s\n" % e) + try: + # Update Source (Full) + new_source = Source.from_json(source) + results = SourcesApi(api_client).put_source(id=id, source=new_source) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).put_source(id, new_source) + print("The response of SourcesApi->put_source:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->put_source: %s\n" % e) - path: /sources/{id}/attribute-sync-config method: PUT xCodeSample: @@ -14499,14 +14044,13 @@ from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.attr_sync_source_config import AttrSyncSourceConfig - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c9180835d191a86015d28455b4a2329' # str | The source id # str | The source id - attr_sync_source_config = '''{ + id = '2c9180835d191a86015d28455b4a2329' # str | The source id # str | The source id + attr_sync_source_config = '''{ "attributes" : [ { "name" : "email", "displayName" : "Email", @@ -14524,16 +14068,16 @@ "type" : "SOURCE" } }''' # AttrSyncSourceConfig | - try: - # Update Attribute Sync Config - new_attr_sync_source_config = AttrSyncSourceConfig.from_json(attr_sync_source_config) - results = SourcesApi(api_client).put_source_attr_sync_config(id=id, attr_sync_source_config=new_attr_sync_source_config) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).put_source_attr_sync_config(id, new_attr_sync_source_config) - print("The response of SourcesApi->put_source_attr_sync_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->put_source_attr_sync_config: %s\n" % e) + try: + # Update Attribute Sync Config + new_attr_sync_source_config = AttrSyncSourceConfig.from_json(attr_sync_source_config) + results = SourcesApi(api_client).put_source_attr_sync_config(id=id, attr_sync_source_config=new_attr_sync_source_config) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).put_source_attr_sync_config(id, new_attr_sync_source_config) + print("The response of SourcesApi->put_source_attr_sync_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->put_source_attr_sync_config: %s\n" % e) - path: /sources/{sourceId}/schemas/{schemaId} method: PUT xCodeSample: @@ -14543,25 +14087,24 @@ from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.model_schema import ModelSchema - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source ID. # str | The Source ID. - schema_id = '2c9180835d191a86015d28455b4a2329' # str | The Schema ID. # str | The Schema ID. - model_schema = '''sailpoint.beta.ModelSchema()''' # ModelSchema | - try: - # Update Source Schema (Full) - new_model_schema = ModelSchema.from_json(model_schema) - results = SourcesApi(api_client).put_source_schema(source_id=source_id, schema_id=schema_id, model_schema=new_model_schema) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).put_source_schema(source_id, schema_id, new_model_schema) - print("The response of SourcesApi->put_source_schema:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->put_source_schema: %s\n" % e) + source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source ID. # str | The Source ID. + schema_id = '2c9180835d191a86015d28455b4a2329' # str | The Schema ID. # str | The Schema ID. + model_schema = '''sailpoint.beta.ModelSchema()''' # ModelSchema | + try: + # Update Source Schema (Full) + new_model_schema = ModelSchema.from_json(model_schema) + results = SourcesApi(api_client).put_source_schema(source_id=source_id, schema_id=schema_id, model_schema=new_model_schema) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).put_source_schema(source_id, schema_id, new_model_schema) + print("The response of SourcesApi->put_source_schema:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->put_source_schema: %s\n" % e) - path: /sources/{sourceId}/synchronize-attributes method: POST xCodeSample: @@ -14571,23 +14114,22 @@ from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.source_sync_job import SourceSyncJob - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = 'source_id_example' # str | The Source id # str | The Source id - try: - # Synchronize single source attributes. - - results = SourcesApi(api_client).sync_attributes_for_source(source_id=source_id) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).sync_attributes_for_source(source_id) - print("The response of SourcesApi->sync_attributes_for_source:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->sync_attributes_for_source: %s\n" % e) + source_id = 'source_id_example' # str | The Source id # str | The Source id + try: + # Synchronize single source attributes. + + results = SourcesApi(api_client).sync_attributes_for_source(source_id=source_id) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).sync_attributes_for_source(source_id) + print("The response of SourcesApi->sync_attributes_for_source:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->sync_attributes_for_source: %s\n" % e) - path: /sources/{sourceId}/connector/test-configuration method: POST xCodeSample: @@ -14597,23 +14139,22 @@ from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.status_response import StatusResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = 'cef3ee201db947c5912551015ba0c679' # str | The ID of the Source # str | The ID of the Source - try: - # Test configuration for source connector - - results = SourcesApi(api_client).test_source_configuration(source_id=source_id) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).test_source_configuration(source_id) - print("The response of SourcesApi->test_source_configuration:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->test_source_configuration: %s\n" % e) + source_id = 'cef3ee201db947c5912551015ba0c679' # str | The ID of the Source # str | The ID of the Source + try: + # Test configuration for source connector + + results = SourcesApi(api_client).test_source_configuration(source_id=source_id) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).test_source_configuration(source_id) + print("The response of SourcesApi->test_source_configuration:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->test_source_configuration: %s\n" % e) - path: /sources/{sourceId}/connector/check-connection method: POST xCodeSample: @@ -14623,23 +14164,22 @@ from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.status_response import StatusResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = 'cef3ee201db947c5912551015ba0c679' # str | The ID of the Source. # str | The ID of the Source. - try: - # Check connection for source connector. - - results = SourcesApi(api_client).test_source_connection(source_id=source_id) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).test_source_connection(source_id) - print("The response of SourcesApi->test_source_connection:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->test_source_connection: %s\n" % e) + source_id = 'cef3ee201db947c5912551015ba0c679' # str | The ID of the Source. # str | The ID of the Source. + try: + # Check connection for source connector. + + results = SourcesApi(api_client).test_source_connection(source_id=source_id) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).test_source_connection(source_id) + print("The response of SourcesApi->test_source_connection:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->test_source_connection: %s\n" % e) - path: /sources/{sourceId}/provisioning-policies/bulk-update method: POST xCodeSample: @@ -14649,24 +14189,23 @@ from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.provisioning_policy_dto import ProvisioningPolicyDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source id. # str | The Source id. - provisioning_policy_dto = '''[sailpoint.beta.ProvisioningPolicyDto()]''' # List[ProvisioningPolicyDto] | - try: - # Bulk Update Provisioning Policies - new_provisioning_policy_dto = ProvisioningPolicyDto.from_json(provisioning_policy_dto) - results = SourcesApi(api_client).update_provisioning_policies_in_bulk(source_id=source_id, provisioning_policy_dto=new_provisioning_policy_dto) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).update_provisioning_policies_in_bulk(source_id, new_provisioning_policy_dto) - print("The response of SourcesApi->update_provisioning_policies_in_bulk:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->update_provisioning_policies_in_bulk: %s\n" % e) + source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source id. # str | The Source id. + provisioning_policy_dto = '''[sailpoint.beta.ProvisioningPolicyDto()]''' # List[ProvisioningPolicyDto] | + try: + # Bulk Update Provisioning Policies + new_provisioning_policy_dto = ProvisioningPolicyDto.from_json(provisioning_policy_dto) + results = SourcesApi(api_client).update_provisioning_policies_in_bulk(source_id=source_id, provisioning_policy_dto=new_provisioning_policy_dto) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).update_provisioning_policies_in_bulk(source_id, new_provisioning_policy_dto) + print("The response of SourcesApi->update_provisioning_policies_in_bulk:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->update_provisioning_policies_in_bulk: %s\n" % e) - path: /sources/{sourceId}/provisioning-policies/{usageType} method: PATCH xCodeSample: @@ -14678,25 +14217,24 @@ from sailpoint.beta.models.json_patch_operation import JsonPatchOperation from sailpoint.beta.models.provisioning_policy_dto import ProvisioningPolicyDto from sailpoint.beta.models.usage_type import UsageType - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source id. # str | The Source id. - usage_type = sailpoint.beta.UsageType() # UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. # UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. - json_patch_operation = '''[{op=add, path=/fields/0, value={name=email, transform={type=identityAttribute, attributes={name=email}}, attributes={}, isRequired=false, type=string, isMultiValued=false}}]''' # List[JsonPatchOperation] | The JSONPatch payload used to update the schema. - try: - # Partial update of Provisioning Policy - new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) - results = SourcesApi(api_client).update_provisioning_policy(source_id=source_id, usage_type=usage_type, json_patch_operation=new_json_patch_operation) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).update_provisioning_policy(source_id, usage_type, new_json_patch_operation) - print("The response of SourcesApi->update_provisioning_policy:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->update_provisioning_policy: %s\n" % e) + source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source id. # str | The Source id. + usage_type = sailpoint.beta.UsageType() # UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. # UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. + json_patch_operation = '''[{op=add, path=/fields/0, value={name=email, transform={type=identityAttribute, attributes={name=email}}, attributes={}, isRequired=false, type=string, isMultiValued=false}}]''' # List[JsonPatchOperation] | The JSONPatch payload used to update the schema. + try: + # Partial update of Provisioning Policy + new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) + results = SourcesApi(api_client).update_provisioning_policy(source_id=source_id, usage_type=usage_type, json_patch_operation=new_json_patch_operation) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).update_provisioning_policy(source_id, usage_type, new_json_patch_operation) + print("The response of SourcesApi->update_provisioning_policy:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->update_provisioning_policy: %s\n" % e) - path: /sources/{id} method: PATCH xCodeSample: @@ -14707,24 +14245,23 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.json_patch_operation import JsonPatchOperation from sailpoint.beta.models.source import Source - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c9180835d191a86015d28455b4a2329' # str | Source ID. # str | Source ID. - json_patch_operation = '''[{op=replace, path=/description, value=new description}]''' # List[JsonPatchOperation] | A list of account update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Any password changes are submitted as plain-text and encrypted upon receipt in Identity Security Cloud (ISC). - try: - # Update Source (Partial) - new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) - results = SourcesApi(api_client).update_source(id=id, json_patch_operation=new_json_patch_operation) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).update_source(id, new_json_patch_operation) - print("The response of SourcesApi->update_source:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->update_source: %s\n" % e) + id = '2c9180835d191a86015d28455b4a2329' # str | Source ID. # str | Source ID. + json_patch_operation = '''[{op=replace, path=/description, value=new description}]''' # List[JsonPatchOperation] | A list of account update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Any password changes are submitted as plain-text and encrypted upon receipt in Identity Security Cloud (ISC). + try: + # Update Source (Partial) + new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) + results = SourcesApi(api_client).update_source(id=id, json_patch_operation=new_json_patch_operation) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).update_source(id, new_json_patch_operation) + print("The response of SourcesApi->update_source:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->update_source: %s\n" % e) - path: /sources/{sourceId}/entitlement-request-config method: PUT xCodeSample: @@ -14734,14 +14271,13 @@ from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.source_entitlement_request_config import SourceEntitlementRequestConfig - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | The Source id # str | The Source id - source_entitlement_request_config = '''{ + source_id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | The Source id # str | The Source id + source_entitlement_request_config = '''{ "accessRequestConfig" : { "denialCommentRequired" : false, "approvalSchemes" : [ { @@ -14754,16 +14290,16 @@ "requestCommentRequired" : true } }''' # SourceEntitlementRequestConfig | - try: - # Update Source Entitlement Request Configuration - new_source_entitlement_request_config = SourceEntitlementRequestConfig.from_json(source_entitlement_request_config) - results = SourcesApi(api_client).update_source_entitlement_request_config(source_id=source_id, source_entitlement_request_config=new_source_entitlement_request_config) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).update_source_entitlement_request_config(source_id, new_source_entitlement_request_config) - print("The response of SourcesApi->update_source_entitlement_request_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->update_source_entitlement_request_config: %s\n" % e) + try: + # Update Source Entitlement Request Configuration + new_source_entitlement_request_config = SourceEntitlementRequestConfig.from_json(source_entitlement_request_config) + results = SourcesApi(api_client).update_source_entitlement_request_config(source_id=source_id, source_entitlement_request_config=new_source_entitlement_request_config) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).update_source_entitlement_request_config(source_id, new_source_entitlement_request_config) + print("The response of SourcesApi->update_source_entitlement_request_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->update_source_entitlement_request_config: %s\n" % e) - path: /sources/{sourceId}/schemas/{schemaId} method: PATCH xCodeSample: @@ -14774,25 +14310,24 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.json_patch_operation import JsonPatchOperation from sailpoint.beta.models.model_schema import ModelSchema - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source id. # str | The Source id. - schema_id = '2c9180835d191a86015d28455b4a2329' # str | The Schema id. # str | The Schema id. - json_patch_operation = '''[{op=replace, path=/displayAttribute, value={new-display-attribute=null}}]''' # List[JsonPatchOperation] | The JSONPatch payload used to update the schema. - try: - # Update Source Schema (Partial) - new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) - results = SourcesApi(api_client).update_source_schema(source_id=source_id, schema_id=schema_id, json_patch_operation=new_json_patch_operation) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).update_source_schema(source_id, schema_id, new_json_patch_operation) - print("The response of SourcesApi->update_source_schema:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->update_source_schema: %s\n" % e) + source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source id. # str | The Source id. + schema_id = '2c9180835d191a86015d28455b4a2329' # str | The Schema id. # str | The Schema id. + json_patch_operation = '''[{op=replace, path=/displayAttribute, value={new-display-attribute=null}}]''' # List[JsonPatchOperation] | The JSONPatch payload used to update the schema. + try: + # Update Source Schema (Partial) + new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) + results = SourcesApi(api_client).update_source_schema(source_id=source_id, schema_id=schema_id, json_patch_operation=new_json_patch_operation) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).update_source_schema(source_id, schema_id, new_json_patch_operation) + print("The response of SourcesApi->update_source_schema:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->update_source_schema: %s\n" % e) - path: /source-usages/{sourceId}/status method: GET xCodeSample: @@ -14802,23 +14337,22 @@ from sailpoint.beta.api.source_usages_api import SourceUsagesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.source_usage_status import SourceUsageStatus - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '2c9180835d191a86015d28455b4a2329' # str | ID of IDN source # str | ID of IDN source - try: - # Finds status of source usage - - results = SourceUsagesApi(api_client).get_status_by_source_id(source_id=source_id) - # Below is a request that includes all optional parameters - # results = SourceUsagesApi(api_client).get_status_by_source_id(source_id) - print("The response of SourceUsagesApi->get_status_by_source_id:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourceUsagesApi->get_status_by_source_id: %s\n" % e) + source_id = '2c9180835d191a86015d28455b4a2329' # str | ID of IDN source # str | ID of IDN source + try: + # Finds status of source usage + + results = SourceUsagesApi(api_client).get_status_by_source_id(source_id=source_id) + # Below is a request that includes all optional parameters + # results = SourceUsagesApi(api_client).get_status_by_source_id(source_id) + print("The response of SourceUsagesApi->get_status_by_source_id:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourceUsagesApi->get_status_by_source_id: %s\n" % e) - path: /source-usages/{sourceId}/summaries method: GET xCodeSample: @@ -14828,27 +14362,26 @@ from sailpoint.beta.api.source_usages_api import SourceUsagesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.source_usage import SourceUsage - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '2c9180835d191a86015d28455b4a2329' # str | ID of IDN source # str | ID of IDN source - 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) - sorters = '-date' # 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: **date** (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: **date** (optional) - try: - # Returns source usage insights - - results = SourceUsagesApi(api_client).get_usages_by_source_id(source_id=source_id) - # Below is a request that includes all optional parameters - # results = SourceUsagesApi(api_client).get_usages_by_source_id(source_id, limit, offset, count, sorters) - print("The response of SourceUsagesApi->get_usages_by_source_id:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourceUsagesApi->get_usages_by_source_id: %s\n" % e) + source_id = '2c9180835d191a86015d28455b4a2329' # str | ID of IDN source # str | ID of IDN source + 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) + sorters = '-date' # 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: **date** (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: **date** (optional) + try: + # Returns source usage insights + + results = SourceUsagesApi(api_client).get_usages_by_source_id(source_id=source_id) + # Below is a request that includes all optional parameters + # results = SourceUsagesApi(api_client).get_usages_by_source_id(source_id, limit, offset, count, sorters) + print("The response of SourceUsagesApi->get_usages_by_source_id:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourceUsagesApi->get_usages_by_source_id: %s\n" % e) - path: /sp-config/export method: POST xCodeSample: @@ -14859,25 +14392,24 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.export_payload import ExportPayload from sailpoint.beta.models.sp_config_export_job import SpConfigExportJob - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - export_payload = '''{ + export_payload = '''{ "description" : "Export Job 1 Test" }''' # ExportPayload | Export options control what will be included in the export. - try: - # Initiates configuration objects export job - new_export_payload = ExportPayload.from_json(export_payload) - results = SPConfigApi(api_client).export_sp_config(export_payload=new_export_payload) - # Below is a request that includes all optional parameters - # results = SPConfigApi(api_client).export_sp_config(new_export_payload) - print("The response of SPConfigApi->export_sp_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling SPConfigApi->export_sp_config: %s\n" % e) + try: + # Initiates configuration objects export job + new_export_payload = ExportPayload.from_json(export_payload) + results = SPConfigApi(api_client).export_sp_config(export_payload=new_export_payload) + # Below is a request that includes all optional parameters + # results = SPConfigApi(api_client).export_sp_config(new_export_payload) + print("The response of SPConfigApi->export_sp_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SPConfigApi->export_sp_config: %s\n" % e) - path: /sp-config/export/{id}/download method: GET xCodeSample: @@ -14887,23 +14419,22 @@ from sailpoint.beta.api.sp_config_api import SPConfigApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.sp_config_export_results import SpConfigExportResults - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the export job whose results will be downloaded. # str | The ID of the export job whose results will be downloaded. - try: - # Download export job result. - - results = SPConfigApi(api_client).get_sp_config_export(id=id) - # Below is a request that includes all optional parameters - # results = SPConfigApi(api_client).get_sp_config_export(id) - print("The response of SPConfigApi->get_sp_config_export:\n") - pprint(results) - except Exception as e: - print("Exception when calling SPConfigApi->get_sp_config_export: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the export job whose results will be downloaded. # str | The ID of the export job whose results will be downloaded. + try: + # Download export job result. + + results = SPConfigApi(api_client).get_sp_config_export(id=id) + # Below is a request that includes all optional parameters + # results = SPConfigApi(api_client).get_sp_config_export(id) + print("The response of SPConfigApi->get_sp_config_export:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SPConfigApi->get_sp_config_export: %s\n" % e) - path: /sp-config/export/{id} method: GET xCodeSample: @@ -14913,23 +14444,22 @@ from sailpoint.beta.api.sp_config_api import SPConfigApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.sp_config_export_job_status import SpConfigExportJobStatus - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the export job whose status will be returned. # str | The ID of the export job whose status will be returned. - try: - # Get export job status - - results = SPConfigApi(api_client).get_sp_config_export_status(id=id) - # Below is a request that includes all optional parameters - # results = SPConfigApi(api_client).get_sp_config_export_status(id) - print("The response of SPConfigApi->get_sp_config_export_status:\n") - pprint(results) - except Exception as e: - print("Exception when calling SPConfigApi->get_sp_config_export_status: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the export job whose status will be returned. # str | The ID of the export job whose status will be returned. + try: + # Get export job status + + results = SPConfigApi(api_client).get_sp_config_export_status(id=id) + # Below is a request that includes all optional parameters + # results = SPConfigApi(api_client).get_sp_config_export_status(id) + print("The response of SPConfigApi->get_sp_config_export_status:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SPConfigApi->get_sp_config_export_status: %s\n" % e) - path: /sp-config/import/{id}/download method: GET xCodeSample: @@ -14939,23 +14469,22 @@ from sailpoint.beta.api.sp_config_api import SPConfigApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.sp_config_import_results import SpConfigImportResults - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the import job whose results will be downloaded. # str | The ID of the import job whose results will be downloaded. - try: - # Download import job result - - results = SPConfigApi(api_client).get_sp_config_import(id=id) - # Below is a request that includes all optional parameters - # results = SPConfigApi(api_client).get_sp_config_import(id) - print("The response of SPConfigApi->get_sp_config_import:\n") - pprint(results) - except Exception as e: - print("Exception when calling SPConfigApi->get_sp_config_import: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the import job whose results will be downloaded. # str | The ID of the import job whose results will be downloaded. + try: + # Download import job result + + results = SPConfigApi(api_client).get_sp_config_import(id=id) + # Below is a request that includes all optional parameters + # results = SPConfigApi(api_client).get_sp_config_import(id) + print("The response of SPConfigApi->get_sp_config_import:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SPConfigApi->get_sp_config_import: %s\n" % e) - path: /sp-config/import/{id} method: GET xCodeSample: @@ -14965,23 +14494,22 @@ from sailpoint.beta.api.sp_config_api import SPConfigApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.sp_config_import_job_status import SpConfigImportJobStatus - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the import job whose status will be returned. # str | The ID of the import job whose status will be returned. - try: - # Get import job status - - results = SPConfigApi(api_client).get_sp_config_import_status(id=id) - # Below is a request that includes all optional parameters - # results = SPConfigApi(api_client).get_sp_config_import_status(id) - print("The response of SPConfigApi->get_sp_config_import_status:\n") - pprint(results) - except Exception as e: - print("Exception when calling SPConfigApi->get_sp_config_import_status: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the import job whose status will be returned. # str | The ID of the import job whose status will be returned. + try: + # Get import job status + + results = SPConfigApi(api_client).get_sp_config_import_status(id=id) + # Below is a request that includes all optional parameters + # results = SPConfigApi(api_client).get_sp_config_import_status(id) + print("The response of SPConfigApi->get_sp_config_import_status:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SPConfigApi->get_sp_config_import_status: %s\n" % e) - path: /sp-config/import method: POST xCodeSample: @@ -14992,25 +14520,24 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.import_options import ImportOptions from sailpoint.beta.models.sp_config_job import SpConfigJob - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - data = None # bytearray | JSON file containing the objects to be imported. # bytearray | JSON file containing the objects to be imported. - preview = False # bool | This option is intended to give the user information about how an import operation would proceed, without having any effect on the target tenant. If this parameter is \"true\", no objects will be imported. Instead, the import process will pre-process the import file and attempt to resolve references within imported objects. The import result file will contain messages pertaining to how specific references were resolved, any errors associated with the preprocessing, and messages indicating which objects would be imported. (optional) (default to False) # bool | This option is intended to give the user information about how an import operation would proceed, without having any effect on the target tenant. If this parameter is \"true\", no objects will be imported. Instead, the import process will pre-process the import file and attempt to resolve references within imported objects. The import result file will contain messages pertaining to how specific references were resolved, any errors associated with the preprocessing, and messages indicating which objects would be imported. (optional) (default to False) - options = '''sailpoint.beta.ImportOptions()''' # ImportOptions | (optional) - try: - # Initiates configuration objects import job - - results = SPConfigApi(api_client).import_sp_config(data=data) - # Below is a request that includes all optional parameters - # results = SPConfigApi(api_client).import_sp_config(data, preview, options) - print("The response of SPConfigApi->import_sp_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling SPConfigApi->import_sp_config: %s\n" % e) + data = None # bytearray | JSON file containing the objects to be imported. # bytearray | JSON file containing the objects to be imported. + preview = False # bool | This option is intended to give the user information about how an import operation would proceed, without having any effect on the target tenant. If this parameter is \"true\", no objects will be imported. Instead, the import process will pre-process the import file and attempt to resolve references within imported objects. The import result file will contain messages pertaining to how specific references were resolved, any errors associated with the preprocessing, and messages indicating which objects would be imported. (optional) (default to False) # bool | This option is intended to give the user information about how an import operation would proceed, without having any effect on the target tenant. If this parameter is \"true\", no objects will be imported. Instead, the import process will pre-process the import file and attempt to resolve references within imported objects. The import result file will contain messages pertaining to how specific references were resolved, any errors associated with the preprocessing, and messages indicating which objects would be imported. (optional) (default to False) + options = '''sailpoint.beta.ImportOptions()''' # ImportOptions | (optional) + try: + # Initiates configuration objects import job + + results = SPConfigApi(api_client).import_sp_config(data=data) + # Below is a request that includes all optional parameters + # results = SPConfigApi(api_client).import_sp_config(data, preview, options) + print("The response of SPConfigApi->import_sp_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SPConfigApi->import_sp_config: %s\n" % e) - path: /sp-config/config-objects method: GET xCodeSample: @@ -15020,22 +14547,21 @@ from sailpoint.beta.api.sp_config_api import SPConfigApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.sp_config_object import SpConfigObject - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - try: - # Get config object details - - results = SPConfigApi(api_client).list_sp_config_objects() - # Below is a request that includes all optional parameters - # results = SPConfigApi(api_client).list_sp_config_objects() - print("The response of SPConfigApi->list_sp_config_objects:\n") - pprint(results) - except Exception as e: - print("Exception when calling SPConfigApi->list_sp_config_objects: %s\n" % e) + try: + # Get config object details + + results = SPConfigApi(api_client).list_sp_config_objects() + # Below is a request that includes all optional parameters + # results = SPConfigApi(api_client).list_sp_config_objects() + print("The response of SPConfigApi->list_sp_config_objects:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SPConfigApi->list_sp_config_objects: %s\n" % e) - path: /suggested-entitlement-description-batches/{batchId}/stats method: GET xCodeSample: @@ -15045,23 +14571,22 @@ from sailpoint.beta.api.suggested_entitlement_description_api import SuggestedEntitlementDescriptionApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.sed_batch_stats import SedBatchStats - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - batch_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | Batch Id # str | Batch Id - try: - # Submit Sed Batch Stats Request - - results = SuggestedEntitlementDescriptionApi(api_client).get_sed_batch_stats(batch_id=batch_id) - # Below is a request that includes all optional parameters - # results = SuggestedEntitlementDescriptionApi(api_client).get_sed_batch_stats(batch_id) - print("The response of SuggestedEntitlementDescriptionApi->get_sed_batch_stats:\n") - pprint(results) - except Exception as e: - print("Exception when calling SuggestedEntitlementDescriptionApi->get_sed_batch_stats: %s\n" % e) + batch_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | Batch Id # str | Batch Id + try: + # Submit Sed Batch Stats Request + + results = SuggestedEntitlementDescriptionApi(api_client).get_sed_batch_stats(batch_id=batch_id) + # Below is a request that includes all optional parameters + # results = SuggestedEntitlementDescriptionApi(api_client).get_sed_batch_stats(batch_id) + print("The response of SuggestedEntitlementDescriptionApi->get_sed_batch_stats:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SuggestedEntitlementDescriptionApi->get_sed_batch_stats: %s\n" % e) - path: /suggested-entitlement-description-batches method: GET xCodeSample: @@ -15071,22 +14596,21 @@ from sailpoint.beta.api.suggested_entitlement_description_api import SuggestedEntitlementDescriptionApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.sed_batch_status import SedBatchStatus - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - try: - # List Sed Batch Request - - results = SuggestedEntitlementDescriptionApi(api_client).get_sed_batches() - # Below is a request that includes all optional parameters - # results = SuggestedEntitlementDescriptionApi(api_client).get_sed_batches() - print("The response of SuggestedEntitlementDescriptionApi->get_sed_batches:\n") - pprint(results) - except Exception as e: - print("Exception when calling SuggestedEntitlementDescriptionApi->get_sed_batches: %s\n" % e) + try: + # List Sed Batch Request + + results = SuggestedEntitlementDescriptionApi(api_client).get_sed_batches() + # Below is a request that includes all optional parameters + # results = SuggestedEntitlementDescriptionApi(api_client).get_sed_batches() + print("The response of SuggestedEntitlementDescriptionApi->get_sed_batches:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SuggestedEntitlementDescriptionApi->get_sed_batches: %s\n" % e) - path: /suggested-entitlement-descriptions method: GET xCodeSample: @@ -15096,29 +14620,28 @@ from sailpoint.beta.api.suggested_entitlement_description_api import SuggestedEntitlementDescriptionApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.sed import Sed - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - limit = limit=25 # int | Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) # int | Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) - filters = 'displayName co \"Read and Write\"' # 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: **batchId**: *eq, ne* **displayName**: *eq, ne, co* **sourceName**: *eq, ne, co* **sourceId**: *eq, ne* **status**: *eq, ne* **fullText**: *co* (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: **batchId**: *eq, ne* **displayName**: *eq, ne, co* **sourceName**: *eq, ne, co* **sourceId**: *eq, ne* **status**: *eq, ne* **fullText**: *co* (optional) - sorters = 'sorters=displayName' # 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: **displayName, sourceName, status** (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: **displayName, sourceName, status** (optional) - count = count=true # 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. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). 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. (optional) # 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. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). 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. (optional) - count_only = count-only=true # 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. This parameter differs from the Coun parameter in that this one skip executing the actual query and always return an empty array. (optional) # 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. This parameter differs from the Coun parameter in that this one skip executing the actual query and always return an empty array. (optional) - requested_by_anyone = requested-by-anyone=true # bool | By default, the ListSeds API will only return items that you have requested to be generated. This option will allow you to see all items that have been requested (optional) # bool | By default, the ListSeds API will only return items that you have requested to be generated. This option will allow you to see all items that have been requested (optional) - show_pending_status_only = show-pending-status-only=true # bool | Will limit records to items that are in \"suggested\" or \"approved\" status (optional) # bool | Will limit records to items that are in \"suggested\" or \"approved\" status (optional) - try: - # List Suggested Entitlement Descriptions - - results = SuggestedEntitlementDescriptionApi(api_client).list_seds() - # Below is a request that includes all optional parameters - # results = SuggestedEntitlementDescriptionApi(api_client).list_seds(limit, filters, sorters, count, count_only, requested_by_anyone, show_pending_status_only) - print("The response of SuggestedEntitlementDescriptionApi->list_seds:\n") - pprint(results) - except Exception as e: - print("Exception when calling SuggestedEntitlementDescriptionApi->list_seds: %s\n" % e) + limit = limit=25 # int | Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) # int | Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) + filters = 'displayName co \"Read and Write\"' # 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: **batchId**: *eq, ne* **displayName**: *eq, ne, co* **sourceName**: *eq, ne, co* **sourceId**: *eq, ne* **status**: *eq, ne* **fullText**: *co* (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: **batchId**: *eq, ne* **displayName**: *eq, ne, co* **sourceName**: *eq, ne, co* **sourceId**: *eq, ne* **status**: *eq, ne* **fullText**: *co* (optional) + sorters = 'sorters=displayName' # 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: **displayName, sourceName, status** (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: **displayName, sourceName, status** (optional) + count = count=true # 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. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). 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. (optional) # 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. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). 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. (optional) + count_only = count-only=true # 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. This parameter differs from the Coun parameter in that this one skip executing the actual query and always return an empty array. (optional) # 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. This parameter differs from the Coun parameter in that this one skip executing the actual query and always return an empty array. (optional) + requested_by_anyone = requested-by-anyone=true # bool | By default, the ListSeds API will only return items that you have requested to be generated. This option will allow you to see all items that have been requested (optional) # bool | By default, the ListSeds API will only return items that you have requested to be generated. This option will allow you to see all items that have been requested (optional) + show_pending_status_only = show-pending-status-only=true # bool | Will limit records to items that are in \"suggested\" or \"approved\" status (optional) # bool | Will limit records to items that are in \"suggested\" or \"approved\" status (optional) + try: + # List Suggested Entitlement Descriptions + + results = SuggestedEntitlementDescriptionApi(api_client).list_seds() + # Below is a request that includes all optional parameters + # results = SuggestedEntitlementDescriptionApi(api_client).list_seds(limit, filters, sorters, count, count_only, requested_by_anyone, show_pending_status_only) + print("The response of SuggestedEntitlementDescriptionApi->list_seds:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SuggestedEntitlementDescriptionApi->list_seds: %s\n" % e) - path: /suggested-entitlement-descriptions method: PATCH xCodeSample: @@ -15129,24 +14652,23 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.sed import Sed from sailpoint.beta.models.sed_patch import SedPatch - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ebab396f-0af1-4050-89b7-dafc63ec70e7' # str | id is sed id # str | id is sed id - sed_patch = '''[sailpoint.beta.SedPatch()]''' # List[SedPatch] | Sed Patch Request - try: - # Patch Suggested Entitlement Description - new_sed_patch = SedPatch.from_json(sed_patch) - results = SuggestedEntitlementDescriptionApi(api_client).patch_sed(id=id, sed_patch=new_sed_patch) - # Below is a request that includes all optional parameters - # results = SuggestedEntitlementDescriptionApi(api_client).patch_sed(id, new_sed_patch) - print("The response of SuggestedEntitlementDescriptionApi->patch_sed:\n") - pprint(results) - except Exception as e: - print("Exception when calling SuggestedEntitlementDescriptionApi->patch_sed: %s\n" % e) + id = 'ebab396f-0af1-4050-89b7-dafc63ec70e7' # str | id is sed id # str | id is sed id + sed_patch = '''[sailpoint.beta.SedPatch()]''' # List[SedPatch] | Sed Patch Request + try: + # Patch Suggested Entitlement Description + new_sed_patch = SedPatch.from_json(sed_patch) + results = SuggestedEntitlementDescriptionApi(api_client).patch_sed(id=id, sed_patch=new_sed_patch) + # Below is a request that includes all optional parameters + # results = SuggestedEntitlementDescriptionApi(api_client).patch_sed(id, new_sed_patch) + print("The response of SuggestedEntitlementDescriptionApi->patch_sed:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SuggestedEntitlementDescriptionApi->patch_sed: %s\n" % e) - path: /suggested-entitlement-description-approvals method: POST xCodeSample: @@ -15157,23 +14679,22 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.sed_approval import SedApproval from sailpoint.beta.models.sed_approval_status import SedApprovalStatus - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - sed_approval = '''[sailpoint.beta.SedApproval()]''' # List[SedApproval] | Sed Approval - try: - # Submit Bulk Approval Request - new_sed_approval = SedApproval.from_json(sed_approval) - results = SuggestedEntitlementDescriptionApi(api_client).submit_sed_approval(sed_approval=new_sed_approval) - # Below is a request that includes all optional parameters - # results = SuggestedEntitlementDescriptionApi(api_client).submit_sed_approval(new_sed_approval) - print("The response of SuggestedEntitlementDescriptionApi->submit_sed_approval:\n") - pprint(results) - except Exception as e: - print("Exception when calling SuggestedEntitlementDescriptionApi->submit_sed_approval: %s\n" % e) + sed_approval = '''[sailpoint.beta.SedApproval()]''' # List[SedApproval] | Sed Approval + try: + # Submit Bulk Approval Request + new_sed_approval = SedApproval.from_json(sed_approval) + results = SuggestedEntitlementDescriptionApi(api_client).submit_sed_approval(sed_approval=new_sed_approval) + # Below is a request that includes all optional parameters + # results = SuggestedEntitlementDescriptionApi(api_client).submit_sed_approval(new_sed_approval) + print("The response of SuggestedEntitlementDescriptionApi->submit_sed_approval:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SuggestedEntitlementDescriptionApi->submit_sed_approval: %s\n" % e) - path: /suggested-entitlement-description-assignments method: POST xCodeSample: @@ -15184,29 +14705,28 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.sed_assignment import SedAssignment from sailpoint.beta.models.sed_assignment_response import SedAssignmentResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - sed_assignment = '''{ + sed_assignment = '''{ "assignee" : { "type" : "SOURCE_OWNER", "value" : "016629d1-1d25-463f-97f3-c6686846650" }, "items" : [ "016629d1-1d25-463f-97f3-0c6686846650", "016629d1-1d25-463f-97f3-0c6686846650" ] }''' # SedAssignment | Sed Assignment Request - try: - # Submit Sed Assignment Request - new_sed_assignment = SedAssignment.from_json(sed_assignment) - results = SuggestedEntitlementDescriptionApi(api_client).submit_sed_assignment(sed_assignment=new_sed_assignment) - # Below is a request that includes all optional parameters - # results = SuggestedEntitlementDescriptionApi(api_client).submit_sed_assignment(new_sed_assignment) - print("The response of SuggestedEntitlementDescriptionApi->submit_sed_assignment:\n") - pprint(results) - except Exception as e: - print("Exception when calling SuggestedEntitlementDescriptionApi->submit_sed_assignment: %s\n" % e) + try: + # Submit Sed Assignment Request + new_sed_assignment = SedAssignment.from_json(sed_assignment) + results = SuggestedEntitlementDescriptionApi(api_client).submit_sed_assignment(sed_assignment=new_sed_assignment) + # Below is a request that includes all optional parameters + # results = SuggestedEntitlementDescriptionApi(api_client).submit_sed_assignment(new_sed_assignment) + print("The response of SuggestedEntitlementDescriptionApi->submit_sed_assignment:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SuggestedEntitlementDescriptionApi->submit_sed_assignment: %s\n" % e) - path: /suggested-entitlement-description-batches method: POST xCodeSample: @@ -15217,26 +14737,25 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.sed_batch_request import SedBatchRequest from sailpoint.beta.models.sed_batch_response import SedBatchResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - sed_batch_request = '''{ + sed_batch_request = '''{ "entitlements" : [ "016629d1-1d25-463f-97f3-c6686846650", "016629d1-1d25-463f-97f3-c6686846650" ], "seds" : [ "016629d1-1d25-463f-97f3-c6686846650", "016629d1-1d25-463f-97f3-c6686846650" ] }''' # SedBatchRequest | Sed Batch Request (optional) - try: - # Submit Sed Batch Request - - results = SuggestedEntitlementDescriptionApi(api_client).submit_sed_batch_request() - # Below is a request that includes all optional parameters - # results = SuggestedEntitlementDescriptionApi(api_client).submit_sed_batch_request(new_sed_batch_request) - print("The response of SuggestedEntitlementDescriptionApi->submit_sed_batch_request:\n") - pprint(results) - except Exception as e: - print("Exception when calling SuggestedEntitlementDescriptionApi->submit_sed_batch_request: %s\n" % e) + try: + # Submit Sed Batch Request + + results = SuggestedEntitlementDescriptionApi(api_client).submit_sed_batch_request() + # Below is a request that includes all optional parameters + # results = SuggestedEntitlementDescriptionApi(api_client).submit_sed_batch_request(new_sed_batch_request) + print("The response of SuggestedEntitlementDescriptionApi->submit_sed_batch_request:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SuggestedEntitlementDescriptionApi->submit_sed_batch_request: %s\n" % e) - path: /tagged-objects/{type}/{id} method: DELETE xCodeSample: @@ -15245,22 +14764,21 @@ source: | from sailpoint.beta.api.tagged_objects_api import TaggedObjectsApi from sailpoint.beta.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - type = 'ROLE' # str | The type of object to delete tags from. # str | The type of object to delete tags from. - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the object to delete tags from. # str | The ID of the object to delete tags from. - try: - # Delete Object Tags - - TaggedObjectsApi(api_client).delete_tagged_object(type=type, id=id) - # Below is a request that includes all optional parameters - # TaggedObjectsApi(api_client).delete_tagged_object(type, id) - except Exception as e: - print("Exception when calling TaggedObjectsApi->delete_tagged_object: %s\n" % e) + type = 'ROLE' # str | The type of object to delete tags from. # str | The type of object to delete tags from. + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the object to delete tags from. # str | The ID of the object to delete tags from. + try: + # Delete Object Tags + + TaggedObjectsApi(api_client).delete_tagged_object(type=type, id=id) + # Below is a request that includes all optional parameters + # TaggedObjectsApi(api_client).delete_tagged_object(type, id) + except Exception as e: + print("Exception when calling TaggedObjectsApi->delete_tagged_object: %s\n" % e) - path: /tagged-objects/bulk-remove method: POST xCodeSample: @@ -15270,13 +14788,12 @@ from sailpoint.beta.api.tagged_objects_api import TaggedObjectsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.bulk_tagged_object import BulkTaggedObject - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - bulk_tagged_object = '''{ + bulk_tagged_object = '''{ "objectRefs" : [ { "name" : "William Wilson", "id" : "2c91808568c529c60168cca6f90c1313", @@ -15289,14 +14806,14 @@ "operation" : "MERGE", "tags" : [ "BU_FINANCE", "PCI" ] }''' # BulkTaggedObject | Supported object types are ACCESS_PROFILE, APPLICATION, CAMPAIGN, ENTITLEMENT, IDENTITY, ROLE, SOD_POLICY, SOURCE. - try: - # Remove Tags from Multiple Objects - new_bulk_tagged_object = BulkTaggedObject.from_json(bulk_tagged_object) - TaggedObjectsApi(api_client).delete_tags_to_many_object(bulk_tagged_object=new_bulk_tagged_object) - # Below is a request that includes all optional parameters - # TaggedObjectsApi(api_client).delete_tags_to_many_object(new_bulk_tagged_object) - except Exception as e: - print("Exception when calling TaggedObjectsApi->delete_tags_to_many_object: %s\n" % e) + try: + # Remove Tags from Multiple Objects + new_bulk_tagged_object = BulkTaggedObject.from_json(bulk_tagged_object) + TaggedObjectsApi(api_client).delete_tags_to_many_object(bulk_tagged_object=new_bulk_tagged_object) + # Below is a request that includes all optional parameters + # TaggedObjectsApi(api_client).delete_tags_to_many_object(new_bulk_tagged_object) + except Exception as e: + print("Exception when calling TaggedObjectsApi->delete_tags_to_many_object: %s\n" % e) - path: /tagged-objects/{type}/{id} method: GET xCodeSample: @@ -15306,24 +14823,23 @@ from sailpoint.beta.api.tagged_objects_api import TaggedObjectsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.tagged_object import TaggedObject - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - type = 'ROLE' # str | The type of tagged object to retrieve. # str | The type of tagged object to retrieve. - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the object reference to retrieve. # str | The ID of the object reference to retrieve. - try: - # Get Tagged Object - - results = TaggedObjectsApi(api_client).get_tagged_object(type=type, id=id) - # Below is a request that includes all optional parameters - # results = TaggedObjectsApi(api_client).get_tagged_object(type, id) - print("The response of TaggedObjectsApi->get_tagged_object:\n") - pprint(results) - except Exception as e: - print("Exception when calling TaggedObjectsApi->get_tagged_object: %s\n" % e) + type = 'ROLE' # str | The type of tagged object to retrieve. # str | The type of tagged object to retrieve. + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the object reference to retrieve. # str | The ID of the object reference to retrieve. + try: + # Get Tagged Object + + results = TaggedObjectsApi(api_client).get_tagged_object(type=type, id=id) + # Below is a request that includes all optional parameters + # results = TaggedObjectsApi(api_client).get_tagged_object(type, id) + print("The response of TaggedObjectsApi->get_tagged_object:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling TaggedObjectsApi->get_tagged_object: %s\n" % e) - path: /tagged-objects method: GET xCodeSample: @@ -15333,26 +14849,25 @@ from sailpoint.beta.api.tagged_objects_api import TaggedObjectsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.tagged_object import TaggedObject - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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 = 'tagName eq \"BU_FINANCE\"' # 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: **objectRef.id**: *eq, in* **objectRef.type**: *eq, in* **tagName**: *eq, in* (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: **objectRef.id**: *eq, in* **objectRef.type**: *eq, in* **tagName**: *eq, in* (optional) - try: - # List Tagged Objects - - results = TaggedObjectsApi(api_client).list_tagged_objects() - # Below is a request that includes all optional parameters - # results = TaggedObjectsApi(api_client).list_tagged_objects(limit, offset, count, filters) - print("The response of TaggedObjectsApi->list_tagged_objects:\n") - pprint(results) - except Exception as e: - print("Exception when calling TaggedObjectsApi->list_tagged_objects: %s\n" % e) + 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 = 'tagName eq \"BU_FINANCE\"' # 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: **objectRef.id**: *eq, in* **objectRef.type**: *eq, in* **tagName**: *eq, in* (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: **objectRef.id**: *eq, in* **objectRef.type**: *eq, in* **tagName**: *eq, in* (optional) + try: + # List Tagged Objects + + results = TaggedObjectsApi(api_client).list_tagged_objects() + # Below is a request that includes all optional parameters + # results = TaggedObjectsApi(api_client).list_tagged_objects(limit, offset, count, filters) + print("The response of TaggedObjectsApi->list_tagged_objects:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling TaggedObjectsApi->list_tagged_objects: %s\n" % e) - path: /tagged-objects/{type} method: GET xCodeSample: @@ -15362,27 +14877,26 @@ from sailpoint.beta.api.tagged_objects_api import TaggedObjectsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.tagged_object import TaggedObject - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - type = 'ROLE' # str | The type of tagged object to retrieve. # str | The type of tagged object to retrieve. - 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 = 'objectRef.id eq \"2c91808568c529c60168cca6f90c1313\"' # 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: **objectRef.id**: *eq* **objectRef.type**: *eq* (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: **objectRef.id**: *eq* **objectRef.type**: *eq* (optional) - try: - # List Tagged Objects by Type - - results = TaggedObjectsApi(api_client).list_tagged_objects_by_type(type=type) - # Below is a request that includes all optional parameters - # results = TaggedObjectsApi(api_client).list_tagged_objects_by_type(type, limit, offset, count, filters) - print("The response of TaggedObjectsApi->list_tagged_objects_by_type:\n") - pprint(results) - except Exception as e: - print("Exception when calling TaggedObjectsApi->list_tagged_objects_by_type: %s\n" % e) + type = 'ROLE' # str | The type of tagged object to retrieve. # str | The type of tagged object to retrieve. + 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 = 'objectRef.id eq \"2c91808568c529c60168cca6f90c1313\"' # 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: **objectRef.id**: *eq* **objectRef.type**: *eq* (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: **objectRef.id**: *eq* **objectRef.type**: *eq* (optional) + try: + # List Tagged Objects by Type + + results = TaggedObjectsApi(api_client).list_tagged_objects_by_type(type=type) + # Below is a request that includes all optional parameters + # results = TaggedObjectsApi(api_client).list_tagged_objects_by_type(type, limit, offset, count, filters) + print("The response of TaggedObjectsApi->list_tagged_objects_by_type:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling TaggedObjectsApi->list_tagged_objects_by_type: %s\n" % e) - path: /tagged-objects/{type}/{id} method: PUT xCodeSample: @@ -15392,15 +14906,14 @@ from sailpoint.beta.api.tagged_objects_api import TaggedObjectsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.tagged_object import TaggedObject - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - type = 'ROLE' # str | The type of tagged object to update. # str | The type of tagged object to update. - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the object reference to update. # str | The ID of the object reference to update. - tagged_object = '''{ + type = 'ROLE' # str | The type of tagged object to update. # str | The type of tagged object to update. + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the object reference to update. # str | The ID of the object reference to update. + tagged_object = '''{ "objectRef" : { "name" : "William Wilson", "id" : "2c91808568c529c60168cca6f90c1313", @@ -15408,16 +14921,16 @@ }, "tags" : [ "BU_FINANCE", "PCI" ] }''' # TaggedObject | - try: - # Update Tagged Object - new_tagged_object = TaggedObject.from_json(tagged_object) - results = TaggedObjectsApi(api_client).put_tagged_object(type=type, id=id, tagged_object=new_tagged_object) - # Below is a request that includes all optional parameters - # results = TaggedObjectsApi(api_client).put_tagged_object(type, id, new_tagged_object) - print("The response of TaggedObjectsApi->put_tagged_object:\n") - pprint(results) - except Exception as e: - print("Exception when calling TaggedObjectsApi->put_tagged_object: %s\n" % e) + try: + # Update Tagged Object + new_tagged_object = TaggedObject.from_json(tagged_object) + results = TaggedObjectsApi(api_client).put_tagged_object(type=type, id=id, tagged_object=new_tagged_object) + # Below is a request that includes all optional parameters + # results = TaggedObjectsApi(api_client).put_tagged_object(type, id, new_tagged_object) + print("The response of TaggedObjectsApi->put_tagged_object:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling TaggedObjectsApi->put_tagged_object: %s\n" % e) - path: /tagged-objects method: POST xCodeSample: @@ -15427,13 +14940,12 @@ from sailpoint.beta.api.tagged_objects_api import TaggedObjectsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.tagged_object import TaggedObject - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - tagged_object = '''{ + tagged_object = '''{ "objectRef" : { "name" : "William Wilson", "id" : "2c91808568c529c60168cca6f90c1313", @@ -15441,14 +14953,14 @@ }, "tags" : [ "BU_FINANCE", "PCI" ] }''' # TaggedObject | - try: - # Add Tag to Object - new_tagged_object = TaggedObject.from_json(tagged_object) - TaggedObjectsApi(api_client).set_tag_to_object(tagged_object=new_tagged_object) - # Below is a request that includes all optional parameters - # TaggedObjectsApi(api_client).set_tag_to_object(new_tagged_object) - except Exception as e: - print("Exception when calling TaggedObjectsApi->set_tag_to_object: %s\n" % e) + try: + # Add Tag to Object + new_tagged_object = TaggedObject.from_json(tagged_object) + TaggedObjectsApi(api_client).set_tag_to_object(tagged_object=new_tagged_object) + # Below is a request that includes all optional parameters + # TaggedObjectsApi(api_client).set_tag_to_object(new_tagged_object) + except Exception as e: + print("Exception when calling TaggedObjectsApi->set_tag_to_object: %s\n" % e) - path: /tagged-objects/bulk-add method: POST xCodeSample: @@ -15458,13 +14970,12 @@ from sailpoint.beta.api.tagged_objects_api import TaggedObjectsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.bulk_tagged_object import BulkTaggedObject - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - bulk_tagged_object = '''{ + bulk_tagged_object = '''{ "objectRefs" : [ { "name" : "William Wilson", "id" : "2c91808568c529c60168cca6f90c1313", @@ -15477,16 +14988,16 @@ "operation" : "MERGE", "tags" : [ "BU_FINANCE", "PCI" ] }''' # BulkTaggedObject | Supported object types are ACCESS_PROFILE, APPLICATION, CAMPAIGN, ENTITLEMENT, IDENTITY, ROLE, SOD_POLICY, SOURCE. - try: - # Tag Multiple Objects - new_bulk_tagged_object = BulkTaggedObject.from_json(bulk_tagged_object) - results = TaggedObjectsApi(api_client).set_tags_to_many_objects(bulk_tagged_object=new_bulk_tagged_object) - # Below is a request that includes all optional parameters - # results = TaggedObjectsApi(api_client).set_tags_to_many_objects(new_bulk_tagged_object) - print("The response of TaggedObjectsApi->set_tags_to_many_objects:\n") - pprint(results) - except Exception as e: - print("Exception when calling TaggedObjectsApi->set_tags_to_many_objects: %s\n" % e) + try: + # Tag Multiple Objects + new_bulk_tagged_object = BulkTaggedObject.from_json(bulk_tagged_object) + results = TaggedObjectsApi(api_client).set_tags_to_many_objects(bulk_tagged_object=new_bulk_tagged_object) + # Below is a request that includes all optional parameters + # results = TaggedObjectsApi(api_client).set_tags_to_many_objects(new_bulk_tagged_object) + print("The response of TaggedObjectsApi->set_tags_to_many_objects:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling TaggedObjectsApi->set_tags_to_many_objects: %s\n" % e) - path: /tags method: POST xCodeSample: @@ -15496,13 +15007,12 @@ from sailpoint.beta.api.tags_api import TagsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.tag import Tag - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - tag = '''{ + tag = '''{ "created" : "2022-05-04T14:48:49Z", "tagCategoryRefs" : [ { "name" : "CN=entitlement.490efde5,OU=OrgCo,OU=ServiceDept,DC=HQAD,DC=local", @@ -15517,16 +15027,16 @@ "modified" : "2022-07-14T16:31:11Z", "id" : "449ecdc0-d4ff-4341-acf6-92f6f7ce604f" }''' # Tag | - try: - # Create Tag - new_tag = Tag.from_json(tag) - results = TagsApi(api_client).create_tag(tag=new_tag) - # Below is a request that includes all optional parameters - # results = TagsApi(api_client).create_tag(new_tag) - print("The response of TagsApi->create_tag:\n") - pprint(results) - except Exception as e: - print("Exception when calling TagsApi->create_tag: %s\n" % e) + try: + # Create Tag + new_tag = Tag.from_json(tag) + results = TagsApi(api_client).create_tag(tag=new_tag) + # Below is a request that includes all optional parameters + # results = TagsApi(api_client).create_tag(new_tag) + print("The response of TagsApi->create_tag:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling TagsApi->create_tag: %s\n" % e) - path: /tags/{id} method: DELETE xCodeSample: @@ -15535,21 +15045,20 @@ source: | from sailpoint.beta.api.tags_api import TagsApi from sailpoint.beta.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '329d96cf-3bdb-40a9-988a-b5037ab89022' # str | The ID of the object reference to delete. # str | The ID of the object reference to delete. - try: - # Delete Tag - - TagsApi(api_client).delete_tag_by_id(id=id) - # Below is a request that includes all optional parameters - # TagsApi(api_client).delete_tag_by_id(id) - except Exception as e: - print("Exception when calling TagsApi->delete_tag_by_id: %s\n" % e) + id = '329d96cf-3bdb-40a9-988a-b5037ab89022' # str | The ID of the object reference to delete. # str | The ID of the object reference to delete. + try: + # Delete Tag + + TagsApi(api_client).delete_tag_by_id(id=id) + # Below is a request that includes all optional parameters + # TagsApi(api_client).delete_tag_by_id(id) + except Exception as e: + print("Exception when calling TagsApi->delete_tag_by_id: %s\n" % e) - path: /tags/{id} method: GET xCodeSample: @@ -15559,23 +15068,22 @@ from sailpoint.beta.api.tags_api import TagsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.tag import Tag - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '329d96cf-3bdb-40a9-988a-b5037ab89022' # str | The ID of the object reference to retrieve. # str | The ID of the object reference to retrieve. - try: - # Get Tag By Id - - results = TagsApi(api_client).get_tag_by_id(id=id) - # Below is a request that includes all optional parameters - # results = TagsApi(api_client).get_tag_by_id(id) - print("The response of TagsApi->get_tag_by_id:\n") - pprint(results) - except Exception as e: - print("Exception when calling TagsApi->get_tag_by_id: %s\n" % e) + id = '329d96cf-3bdb-40a9-988a-b5037ab89022' # str | The ID of the object reference to retrieve. # str | The ID of the object reference to retrieve. + try: + # Get Tag By Id + + results = TagsApi(api_client).get_tag_by_id(id=id) + # Below is a request that includes all optional parameters + # results = TagsApi(api_client).get_tag_by_id(id) + print("The response of TagsApi->get_tag_by_id:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling TagsApi->get_tag_by_id: %s\n" % e) - path: /tags method: GET xCodeSample: @@ -15585,27 +15093,26 @@ from sailpoint.beta.api.tags_api import TagsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.tag import Tag - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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 = 'id eq \"27462f54-61c7-4140-b5da-d5dbe27fc6db\"' # 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* (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* (optional) - sorters = 'name,-modified' # 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: **id, name, created, modified** (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: **id, name, created, modified** (optional) - try: - # List Tags - - results = TagsApi(api_client).list_tags() - # Below is a request that includes all optional parameters - # results = TagsApi(api_client).list_tags(limit, offset, count, filters, sorters) - print("The response of TagsApi->list_tags:\n") - pprint(results) - except Exception as e: - print("Exception when calling TagsApi->list_tags: %s\n" % e) + 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 = 'id eq \"27462f54-61c7-4140-b5da-d5dbe27fc6db\"' # 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* (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* (optional) + sorters = 'name,-modified' # 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: **id, name, created, modified** (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: **id, name, created, modified** (optional) + try: + # List Tags + + results = TagsApi(api_client).list_tags() + # Below is a request that includes all optional parameters + # results = TagsApi(api_client).list_tags(limit, offset, count, filters, sorters) + print("The response of TagsApi->list_tags:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling TagsApi->list_tags: %s\n" % e) - path: /task-status/pending-tasks method: HEAD xCodeSample: @@ -15614,23 +15121,22 @@ source: | from sailpoint.beta.api.task_management_api import TaskManagementApi from sailpoint.beta.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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) - 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) - 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) - try: - # Retrieve Pending Task List Headers - - TaskManagementApi(api_client).get_pending_task_headers() - # Below is a request that includes all optional parameters - # TaskManagementApi(api_client).get_pending_task_headers(offset, limit, count) - except Exception as e: - print("Exception when calling TaskManagementApi->get_pending_task_headers: %s\n" % e) + 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) + 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) + 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) + try: + # Retrieve Pending Task List Headers + + TaskManagementApi(api_client).get_pending_task_headers() + # Below is a request that includes all optional parameters + # TaskManagementApi(api_client).get_pending_task_headers(offset, limit, count) + except Exception as e: + print("Exception when calling TaskManagementApi->get_pending_task_headers: %s\n" % e) - path: /task-status/pending-tasks method: GET xCodeSample: @@ -15640,25 +15146,24 @@ from sailpoint.beta.api.task_management_api import TaskManagementApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.task_status import TaskStatus - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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) - 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) - 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) - try: - # Retrieve Pending Task Status List - - results = TaskManagementApi(api_client).get_pending_tasks() - # Below is a request that includes all optional parameters - # results = TaskManagementApi(api_client).get_pending_tasks(offset, limit, count) - print("The response of TaskManagementApi->get_pending_tasks:\n") - pprint(results) - except Exception as e: - print("Exception when calling TaskManagementApi->get_pending_tasks: %s\n" % e) + 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) + 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) + 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) + try: + # Retrieve Pending Task Status List + + results = TaskManagementApi(api_client).get_pending_tasks() + # Below is a request that includes all optional parameters + # results = TaskManagementApi(api_client).get_pending_tasks(offset, limit, count) + print("The response of TaskManagementApi->get_pending_tasks:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling TaskManagementApi->get_pending_tasks: %s\n" % e) - path: /task-status/{id} method: GET xCodeSample: @@ -15668,23 +15173,22 @@ from sailpoint.beta.api.task_management_api import TaskManagementApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.task_status import TaskStatus - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '00eebcf881994e419d72e757fd30dc0e' # str | Task ID. # str | Task ID. - try: - # Get Task Status by ID - - results = TaskManagementApi(api_client).get_task_status(id=id) - # Below is a request that includes all optional parameters - # results = TaskManagementApi(api_client).get_task_status(id) - print("The response of TaskManagementApi->get_task_status:\n") - pprint(results) - except Exception as e: - print("Exception when calling TaskManagementApi->get_task_status: %s\n" % e) + id = '00eebcf881994e419d72e757fd30dc0e' # str | Task ID. # str | Task ID. + try: + # Get Task Status by ID + + results = TaskManagementApi(api_client).get_task_status(id=id) + # Below is a request that includes all optional parameters + # results = TaskManagementApi(api_client).get_task_status(id) + print("The response of TaskManagementApi->get_task_status:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling TaskManagementApi->get_task_status: %s\n" % e) - path: /task-status method: GET xCodeSample: @@ -15694,27 +15198,26 @@ from sailpoint.beta.api.task_management_api import TaskManagementApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.task_status import TaskStatus - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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 = 'completionStatus eq \"Success\"' # 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* **sourceId**: *eq, in* **completionStatus**: *eq, in* **type**: *eq, in* (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* **sourceId**: *eq, in* **completionStatus**: *eq, in* **type**: *eq, in* (optional) - sorters = '-created' # 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** (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** (optional) - try: - # Retrieve Task Status List - - results = TaskManagementApi(api_client).get_task_status_list() - # Below is a request that includes all optional parameters - # results = TaskManagementApi(api_client).get_task_status_list(limit, offset, count, filters, sorters) - print("The response of TaskManagementApi->get_task_status_list:\n") - pprint(results) - except Exception as e: - print("Exception when calling TaskManagementApi->get_task_status_list: %s\n" % e) + 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 = 'completionStatus eq \"Success\"' # 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* **sourceId**: *eq, in* **completionStatus**: *eq, in* **type**: *eq, in* (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* **sourceId**: *eq, in* **completionStatus**: *eq, in* **type**: *eq, in* (optional) + sorters = '-created' # 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** (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** (optional) + try: + # Retrieve Task Status List + + results = TaskManagementApi(api_client).get_task_status_list() + # Below is a request that includes all optional parameters + # results = TaskManagementApi(api_client).get_task_status_list(limit, offset, count, filters, sorters) + print("The response of TaskManagementApi->get_task_status_list:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling TaskManagementApi->get_task_status_list: %s\n" % e) - path: /task-status/{id} method: PATCH xCodeSample: @@ -15725,24 +15228,23 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.json_patch_operation import JsonPatchOperation from sailpoint.beta.models.task_status import TaskStatus - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '00eebcf881994e419d72e757fd30dc0e' # str | Task ID. # str | Task ID. - json_patch_operation = '''[sailpoint.beta.JsonPatchOperation()]''' # List[JsonPatchOperation] | The JSONPatch payload used to update the object. - try: - # Update Task Status by ID - new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) - results = TaskManagementApi(api_client).update_task_status(id=id, json_patch_operation=new_json_patch_operation) - # Below is a request that includes all optional parameters - # results = TaskManagementApi(api_client).update_task_status(id, new_json_patch_operation) - print("The response of TaskManagementApi->update_task_status:\n") - pprint(results) - except Exception as e: - print("Exception when calling TaskManagementApi->update_task_status: %s\n" % e) + id = '00eebcf881994e419d72e757fd30dc0e' # str | Task ID. # str | Task ID. + json_patch_operation = '''[sailpoint.beta.JsonPatchOperation()]''' # List[JsonPatchOperation] | The JSONPatch payload used to update the object. + try: + # Update Task Status by ID + new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) + results = TaskManagementApi(api_client).update_task_status(id=id, json_patch_operation=new_json_patch_operation) + # Below is a request that includes all optional parameters + # results = TaskManagementApi(api_client).update_task_status(id, new_json_patch_operation) + print("The response of TaskManagementApi->update_task_status:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling TaskManagementApi->update_task_status: %s\n" % e) - path: /tenant method: GET xCodeSample: @@ -15752,22 +15254,21 @@ from sailpoint.beta.api.tenant_api import TenantApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.tenant import Tenant - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - try: - # Get Tenant Information. - - results = TenantApi(api_client).get_tenant() - # Below is a request that includes all optional parameters - # results = TenantApi(api_client).get_tenant() - print("The response of TenantApi->get_tenant:\n") - pprint(results) - except Exception as e: - print("Exception when calling TenantApi->get_tenant: %s\n" % e) + try: + # Get Tenant Information. + + results = TenantApi(api_client).get_tenant() + # Below is a request that includes all optional parameters + # results = TenantApi(api_client).get_tenant() + print("The response of TenantApi->get_tenant:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling TenantApi->get_tenant: %s\n" % e) - path: /transforms method: POST xCodeSample: @@ -15778,27 +15279,26 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.transform import Transform from sailpoint.beta.models.transform_read import TransformRead - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - transform = '''{ + transform = '''{ "name" : "Timestamp To Date", "attributes" : "{}", "type" : "dateFormat" }''' # Transform | The transform to be created. - try: - # Create transform - new_transform = Transform.from_json(transform) - results = TransformsApi(api_client).create_transform(transform=new_transform) - # Below is a request that includes all optional parameters - # results = TransformsApi(api_client).create_transform(new_transform) - print("The response of TransformsApi->create_transform:\n") - pprint(results) - except Exception as e: - print("Exception when calling TransformsApi->create_transform: %s\n" % e) + try: + # Create transform + new_transform = Transform.from_json(transform) + results = TransformsApi(api_client).create_transform(transform=new_transform) + # Below is a request that includes all optional parameters + # results = TransformsApi(api_client).create_transform(new_transform) + print("The response of TransformsApi->create_transform:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling TransformsApi->create_transform: %s\n" % e) - path: /transforms/{id} method: DELETE xCodeSample: @@ -15807,21 +15307,20 @@ source: | from sailpoint.beta.api.transforms_api import TransformsApi from sailpoint.beta.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2cd78adghjkja34jh2b1hkjhasuecd' # str | ID of the transform to delete # str | ID of the transform to delete - try: - # Delete a transform - - TransformsApi(api_client).delete_transform(id=id) - # Below is a request that includes all optional parameters - # TransformsApi(api_client).delete_transform(id) - except Exception as e: - print("Exception when calling TransformsApi->delete_transform: %s\n" % e) + id = '2cd78adghjkja34jh2b1hkjhasuecd' # str | ID of the transform to delete # str | ID of the transform to delete + try: + # Delete a transform + + TransformsApi(api_client).delete_transform(id=id) + # Below is a request that includes all optional parameters + # TransformsApi(api_client).delete_transform(id) + except Exception as e: + print("Exception when calling TransformsApi->delete_transform: %s\n" % e) - path: /transforms/{id} method: GET xCodeSample: @@ -15831,23 +15330,22 @@ from sailpoint.beta.api.transforms_api import TransformsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.transform_read import TransformRead - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2cd78adghjkja34jh2b1hkjhasuecd' # str | ID of the transform to retrieve # str | ID of the transform to retrieve - try: - # Transform by ID - - results = TransformsApi(api_client).get_transform(id=id) - # Below is a request that includes all optional parameters - # results = TransformsApi(api_client).get_transform(id) - print("The response of TransformsApi->get_transform:\n") - pprint(results) - except Exception as e: - print("Exception when calling TransformsApi->get_transform: %s\n" % e) + id = '2cd78adghjkja34jh2b1hkjhasuecd' # str | ID of the transform to retrieve # str | ID of the transform to retrieve + try: + # Transform by ID + + results = TransformsApi(api_client).get_transform(id=id) + # Below is a request that includes all optional parameters + # results = TransformsApi(api_client).get_transform(id) + print("The response of TransformsApi->get_transform:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling TransformsApi->get_transform: %s\n" % e) - path: /transforms method: GET xCodeSample: @@ -15857,27 +15355,26 @@ from sailpoint.beta.api.transforms_api import TransformsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.transform_read import TransformRead - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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) - 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) - 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) - name = 'ExampleTransformName123' # str | Name of the transform to retrieve from the list. (optional) # str | Name of the transform to retrieve from the list. (optional) - filters = 'name eq \"Uppercase\"' # 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: **internal**: *eq* **name**: *eq, 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: **internal**: *eq* **name**: *eq, sw* (optional) - try: - # List transforms - - results = TransformsApi(api_client).list_transforms() - # Below is a request that includes all optional parameters - # results = TransformsApi(api_client).list_transforms(offset, limit, count, name, filters) - print("The response of TransformsApi->list_transforms:\n") - pprint(results) - except Exception as e: - print("Exception when calling TransformsApi->list_transforms: %s\n" % e) + 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) + 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) + 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) + name = 'ExampleTransformName123' # str | Name of the transform to retrieve from the list. (optional) # str | Name of the transform to retrieve from the list. (optional) + filters = 'name eq \"Uppercase\"' # 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: **internal**: *eq* **name**: *eq, 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: **internal**: *eq* **name**: *eq, sw* (optional) + try: + # List transforms + + results = TransformsApi(api_client).list_transforms() + # Below is a request that includes all optional parameters + # results = TransformsApi(api_client).list_transforms(offset, limit, count, name, filters) + print("The response of TransformsApi->list_transforms:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling TransformsApi->list_transforms: %s\n" % e) - path: /transforms/{id} method: PUT xCodeSample: @@ -15888,28 +15385,27 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.transform import Transform from sailpoint.beta.models.transform_read import TransformRead - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2cd78adghjkja34jh2b1hkjhasuecd' # str | ID of the transform to update # str | ID of the transform to update - transform = '''{ + id = '2cd78adghjkja34jh2b1hkjhasuecd' # str | ID of the transform to update # str | ID of the transform to update + transform = '''{ "name" : "Timestamp To Date", "attributes" : "{}", "type" : "dateFormat" }''' # Transform | The updated transform object. Must include \"name\", \"type\", and \"attributes\" fields, but \"name\" and \"type\" must not be modified. (optional) - try: - # Update a transform - - results = TransformsApi(api_client).update_transform(id=id) - # Below is a request that includes all optional parameters - # results = TransformsApi(api_client).update_transform(id, new_transform) - print("The response of TransformsApi->update_transform:\n") - pprint(results) - except Exception as e: - print("Exception when calling TransformsApi->update_transform: %s\n" % e) + try: + # Update a transform + + results = TransformsApi(api_client).update_transform(id=id) + # Below is a request that includes all optional parameters + # results = TransformsApi(api_client).update_transform(id, new_transform) + print("The response of TransformsApi->update_transform:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling TransformsApi->update_transform: %s\n" % e) - path: /trigger-invocations/{id}/complete method: POST xCodeSample: @@ -15919,28 +15415,27 @@ from sailpoint.beta.api.triggers_api import TriggersApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.complete_invocation import CompleteInvocation - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '0f11f2a4-7c94-4bf3-a2bd-742580fe3bde' # str | The ID of the invocation to complete. # str | The ID of the invocation to complete. - complete_invocation = '''{ + id = '0f11f2a4-7c94-4bf3-a2bd-742580fe3bde' # str | The ID of the invocation to complete. # str | The ID of the invocation to complete. + complete_invocation = '''{ "output" : { "approved" : false }, "secret" : "0f11f2a4-7c94-4bf3-a2bd-742580fe3bde", "error" : "Access request is denied." }''' # CompleteInvocation | - try: - # Complete Trigger Invocation - new_complete_invocation = CompleteInvocation.from_json(complete_invocation) - TriggersApi(api_client).complete_trigger_invocation(id=id, complete_invocation=new_complete_invocation) - # Below is a request that includes all optional parameters - # TriggersApi(api_client).complete_trigger_invocation(id, new_complete_invocation) - except Exception as e: - print("Exception when calling TriggersApi->complete_trigger_invocation: %s\n" % e) + try: + # Complete Trigger Invocation + new_complete_invocation = CompleteInvocation.from_json(complete_invocation) + TriggersApi(api_client).complete_trigger_invocation(id=id, complete_invocation=new_complete_invocation) + # Below is a request that includes all optional parameters + # TriggersApi(api_client).complete_trigger_invocation(id, new_complete_invocation) + except Exception as e: + print("Exception when calling TriggersApi->complete_trigger_invocation: %s\n" % e) - path: /trigger-subscriptions method: POST xCodeSample: @@ -15951,13 +15446,12 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.subscription import Subscription from sailpoint.beta.models.subscription_post_request import SubscriptionPostRequest - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - subscription_post_request = '''{ + subscription_post_request = '''{ "filter" : "$[?($.identityId == \"201327fda1c44704ac01181e963d463c\")]", "httpConfig" : { "bearerTokenAuthConfig" : { @@ -15982,16 +15476,16 @@ "type" : "HTTP", "enabled" : true }''' # SubscriptionPostRequest | - try: - # Create a Subscription - new_subscription_post_request = SubscriptionPostRequest.from_json(subscription_post_request) - results = TriggersApi(api_client).create_subscription(subscription_post_request=new_subscription_post_request) - # Below is a request that includes all optional parameters - # results = TriggersApi(api_client).create_subscription(new_subscription_post_request) - print("The response of TriggersApi->create_subscription:\n") - pprint(results) - except Exception as e: - print("Exception when calling TriggersApi->create_subscription: %s\n" % e) + try: + # Create a Subscription + new_subscription_post_request = SubscriptionPostRequest.from_json(subscription_post_request) + results = TriggersApi(api_client).create_subscription(subscription_post_request=new_subscription_post_request) + # Below is a request that includes all optional parameters + # results = TriggersApi(api_client).create_subscription(new_subscription_post_request) + print("The response of TriggersApi->create_subscription:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling TriggersApi->create_subscription: %s\n" % e) - path: /trigger-subscriptions/{id} method: DELETE xCodeSample: @@ -16000,21 +15494,20 @@ source: | from sailpoint.beta.api.triggers_api import TriggersApi from sailpoint.beta.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '0f11f2a4-7c94-4bf3-a2bd-742580fe3bde' # str | Subscription ID # str | Subscription ID - try: - # Delete a Subscription - - TriggersApi(api_client).delete_subscription(id=id) - # Below is a request that includes all optional parameters - # TriggersApi(api_client).delete_subscription(id) - except Exception as e: - print("Exception when calling TriggersApi->delete_subscription: %s\n" % e) + id = '0f11f2a4-7c94-4bf3-a2bd-742580fe3bde' # str | Subscription ID # str | Subscription ID + try: + # Delete a Subscription + + TriggersApi(api_client).delete_subscription(id=id) + # Below is a request that includes all optional parameters + # TriggersApi(api_client).delete_subscription(id) + except Exception as e: + print("Exception when calling TriggersApi->delete_subscription: %s\n" % e) - path: /trigger-subscriptions method: GET xCodeSample: @@ -16024,27 +15517,26 @@ from sailpoint.beta.api.triggers_api import TriggersApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.subscription import Subscription - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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 = 'id eq \"12cff757-c0c0-413b-8ad7-2a47956d1e89\"' # 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* **triggerId**: *eq* **type**: *eq, 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* **triggerId**: *eq* **type**: *eq, le* (optional) - sorters = 'triggerName' # 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: **triggerId, triggerName** (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: **triggerId, triggerName** (optional) - try: - # List Subscriptions - - results = TriggersApi(api_client).list_subscriptions() - # Below is a request that includes all optional parameters - # results = TriggersApi(api_client).list_subscriptions(limit, offset, count, filters, sorters) - print("The response of TriggersApi->list_subscriptions:\n") - pprint(results) - except Exception as e: - print("Exception when calling TriggersApi->list_subscriptions: %s\n" % e) + 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 = 'id eq \"12cff757-c0c0-413b-8ad7-2a47956d1e89\"' # 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* **triggerId**: *eq* **type**: *eq, 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* **triggerId**: *eq* **type**: *eq, le* (optional) + sorters = 'triggerName' # 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: **triggerId, triggerName** (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: **triggerId, triggerName** (optional) + try: + # List Subscriptions + + results = TriggersApi(api_client).list_subscriptions() + # Below is a request that includes all optional parameters + # results = TriggersApi(api_client).list_subscriptions(limit, offset, count, filters, sorters) + print("The response of TriggersApi->list_subscriptions:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling TriggersApi->list_subscriptions: %s\n" % e) - path: /trigger-invocations/status method: GET xCodeSample: @@ -16054,27 +15546,26 @@ from sailpoint.beta.api.triggers_api import TriggersApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.invocation_status import InvocationStatus - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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 = 'triggerId eq \"idn:access-request-dynamic-approver\"' # 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: **triggerId**: *eq* **subscriptionId**: *eq* (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: **triggerId**: *eq* **subscriptionId**: *eq* (optional) - sorters = 'created' # 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: **triggerId, subscriptionName, created, completed** (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: **triggerId, subscriptionName, created, completed** (optional) - try: - # List Latest Invocation Statuses - - results = TriggersApi(api_client).list_trigger_invocation_status() - # Below is a request that includes all optional parameters - # results = TriggersApi(api_client).list_trigger_invocation_status(limit, offset, count, filters, sorters) - print("The response of TriggersApi->list_trigger_invocation_status:\n") - pprint(results) - except Exception as e: - print("Exception when calling TriggersApi->list_trigger_invocation_status: %s\n" % e) + 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 = 'triggerId eq \"idn:access-request-dynamic-approver\"' # 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: **triggerId**: *eq* **subscriptionId**: *eq* (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: **triggerId**: *eq* **subscriptionId**: *eq* (optional) + sorters = 'created' # 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: **triggerId, subscriptionName, created, completed** (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: **triggerId, subscriptionName, created, completed** (optional) + try: + # List Latest Invocation Statuses + + results = TriggersApi(api_client).list_trigger_invocation_status() + # Below is a request that includes all optional parameters + # results = TriggersApi(api_client).list_trigger_invocation_status(limit, offset, count, filters, sorters) + print("The response of TriggersApi->list_trigger_invocation_status:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling TriggersApi->list_trigger_invocation_status: %s\n" % e) - path: /triggers method: GET xCodeSample: @@ -16084,27 +15575,26 @@ from sailpoint.beta.api.triggers_api import TriggersApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.trigger import Trigger - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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 = 'id eq \"idn:access-request-post-approval\"' # 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, ge, 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, ge, le* (optional) - sorters = 'name' # 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: **id, 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: **id, name** (optional) - try: - # List Triggers - - results = TriggersApi(api_client).list_triggers() - # Below is a request that includes all optional parameters - # results = TriggersApi(api_client).list_triggers(limit, offset, count, filters, sorters) - print("The response of TriggersApi->list_triggers:\n") - pprint(results) - except Exception as e: - print("Exception when calling TriggersApi->list_triggers: %s\n" % e) + 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 = 'id eq \"idn:access-request-post-approval\"' # 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, ge, 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, ge, le* (optional) + sorters = 'name' # 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: **id, 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: **id, name** (optional) + try: + # List Triggers + + results = TriggersApi(api_client).list_triggers() + # Below is a request that includes all optional parameters + # results = TriggersApi(api_client).list_triggers(limit, offset, count, filters, sorters) + print("The response of TriggersApi->list_triggers:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling TriggersApi->list_triggers: %s\n" % e) - path: /trigger-subscriptions/{id} method: PATCH xCodeSample: @@ -16115,24 +15605,23 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.subscription import Subscription from sailpoint.beta.models.subscription_patch_request_inner import SubscriptionPatchRequestInner - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '0f11f2a4-7c94-4bf3-a2bd-742580fe3bde' # str | ID of the Subscription to patch # str | ID of the Subscription to patch - subscription_patch_request_inner = '''[sailpoint.beta.SubscriptionPatchRequestInner()]''' # List[SubscriptionPatchRequestInner] | - try: - # Patch a Subscription - new_subscription_patch_request_inner = SubscriptionPatchRequestInner.from_json(subscription_patch_request_inner) - results = TriggersApi(api_client).patch_subscription(id=id, subscription_patch_request_inner=new_subscription_patch_request_inner) - # Below is a request that includes all optional parameters - # results = TriggersApi(api_client).patch_subscription(id, new_subscription_patch_request_inner) - print("The response of TriggersApi->patch_subscription:\n") - pprint(results) - except Exception as e: - print("Exception when calling TriggersApi->patch_subscription: %s\n" % e) + id = '0f11f2a4-7c94-4bf3-a2bd-742580fe3bde' # str | ID of the Subscription to patch # str | ID of the Subscription to patch + subscription_patch_request_inner = '''[sailpoint.beta.SubscriptionPatchRequestInner()]''' # List[SubscriptionPatchRequestInner] | + try: + # Patch a Subscription + new_subscription_patch_request_inner = SubscriptionPatchRequestInner.from_json(subscription_patch_request_inner) + results = TriggersApi(api_client).patch_subscription(id=id, subscription_patch_request_inner=new_subscription_patch_request_inner) + # Below is a request that includes all optional parameters + # results = TriggersApi(api_client).patch_subscription(id, new_subscription_patch_request_inner) + print("The response of TriggersApi->patch_subscription:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling TriggersApi->patch_subscription: %s\n" % e) - path: /trigger-invocations/test method: POST xCodeSample: @@ -16143,13 +15632,12 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.invocation import Invocation from sailpoint.beta.models.test_invocation import TestInvocation - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - test_invocation = '''{ + test_invocation = '''{ "input" : { "identityId" : "201327fda1c44704ac01181e963d463c" }, @@ -16159,16 +15647,16 @@ "workflowId" : 1234 } }''' # TestInvocation | - try: - # Start a Test Invocation - new_test_invocation = TestInvocation.from_json(test_invocation) - results = TriggersApi(api_client).start_test_trigger_invocation(test_invocation=new_test_invocation) - # Below is a request that includes all optional parameters - # results = TriggersApi(api_client).start_test_trigger_invocation(new_test_invocation) - print("The response of TriggersApi->start_test_trigger_invocation:\n") - pprint(results) - except Exception as e: - print("Exception when calling TriggersApi->start_test_trigger_invocation: %s\n" % e) + try: + # Start a Test Invocation + new_test_invocation = TestInvocation.from_json(test_invocation) + results = TriggersApi(api_client).start_test_trigger_invocation(test_invocation=new_test_invocation) + # Below is a request that includes all optional parameters + # results = TriggersApi(api_client).start_test_trigger_invocation(new_test_invocation) + print("The response of TriggersApi->start_test_trigger_invocation:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling TriggersApi->start_test_trigger_invocation: %s\n" % e) - path: /trigger-subscriptions/validate-filter method: POST xCodeSample: @@ -16179,28 +15667,27 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.validate_filter_input_dto import ValidateFilterInputDto from sailpoint.beta.models.validate_filter_output_dto import ValidateFilterOutputDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - validate_filter_input_dto = '''{ + validate_filter_input_dto = '''{ "filter" : "$[?($.identityId == \"201327fda1c44704ac01181e963d463c\")]", "input" : { "identityId" : "201327fda1c44704ac01181e963d463c" } }''' # ValidateFilterInputDto | - try: - # Validate a Subscription Filter - new_validate_filter_input_dto = ValidateFilterInputDto.from_json(validate_filter_input_dto) - results = TriggersApi(api_client).test_subscription_filter(validate_filter_input_dto=new_validate_filter_input_dto) - # Below is a request that includes all optional parameters - # results = TriggersApi(api_client).test_subscription_filter(new_validate_filter_input_dto) - print("The response of TriggersApi->test_subscription_filter:\n") - pprint(results) - except Exception as e: - print("Exception when calling TriggersApi->test_subscription_filter: %s\n" % e) + try: + # Validate a Subscription Filter + new_validate_filter_input_dto = ValidateFilterInputDto.from_json(validate_filter_input_dto) + results = TriggersApi(api_client).test_subscription_filter(validate_filter_input_dto=new_validate_filter_input_dto) + # Below is a request that includes all optional parameters + # results = TriggersApi(api_client).test_subscription_filter(new_validate_filter_input_dto) + print("The response of TriggersApi->test_subscription_filter:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling TriggersApi->test_subscription_filter: %s\n" % e) - path: /trigger-subscriptions/{id} method: PUT xCodeSample: @@ -16211,14 +15698,13 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.subscription import Subscription from sailpoint.beta.models.subscription_put_request import SubscriptionPutRequest - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '0f11f2a4-7c94-4bf3-a2bd-742580fe3bde' # str | Subscription ID # str | Subscription ID - subscription_put_request = '''{ + id = '0f11f2a4-7c94-4bf3-a2bd-742580fe3bde' # str | Subscription ID # str | Subscription ID + subscription_put_request = '''{ "filter" : "$[?($.identityId == \"201327fda1c44704ac01181e963d463c\")]", "httpConfig" : { "bearerTokenAuthConfig" : { @@ -16242,16 +15728,16 @@ "type" : "HTTP", "enabled" : true }''' # SubscriptionPutRequest | - try: - # Update a Subscription - new_subscription_put_request = SubscriptionPutRequest.from_json(subscription_put_request) - results = TriggersApi(api_client).update_subscription(id=id, subscription_put_request=new_subscription_put_request) - # Below is a request that includes all optional parameters - # results = TriggersApi(api_client).update_subscription(id, new_subscription_put_request) - print("The response of TriggersApi->update_subscription:\n") - pprint(results) - except Exception as e: - print("Exception when calling TriggersApi->update_subscription: %s\n" % e) + try: + # Update a Subscription + new_subscription_put_request = SubscriptionPutRequest.from_json(subscription_put_request) + results = TriggersApi(api_client).update_subscription(id=id, subscription_put_request=new_subscription_put_request) + # Below is a request that includes all optional parameters + # results = TriggersApi(api_client).update_subscription(id, new_subscription_put_request) + print("The response of TriggersApi->update_subscription:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling TriggersApi->update_subscription: %s\n" % e) - path: /ui-metadata/tenant method: GET xCodeSample: @@ -16261,22 +15747,21 @@ from sailpoint.beta.api.ui_metadata_api import UIMetadataApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.tenant_ui_metadata_item_response import TenantUiMetadataItemResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - try: - # Get a tenant UI metadata - - results = UIMetadataApi(api_client).get_tenant_ui_metadata() - # Below is a request that includes all optional parameters - # results = UIMetadataApi(api_client).get_tenant_ui_metadata() - print("The response of UIMetadataApi->get_tenant_ui_metadata:\n") - pprint(results) - except Exception as e: - print("Exception when calling UIMetadataApi->get_tenant_ui_metadata: %s\n" % e) + try: + # Get a tenant UI metadata + + results = UIMetadataApi(api_client).get_tenant_ui_metadata() + # Below is a request that includes all optional parameters + # results = UIMetadataApi(api_client).get_tenant_ui_metadata() + print("The response of UIMetadataApi->get_tenant_ui_metadata:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling UIMetadataApi->get_tenant_ui_metadata: %s\n" % e) - path: /ui-metadata/tenant method: PUT xCodeSample: @@ -16287,27 +15772,26 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.tenant_ui_metadata_item_response import TenantUiMetadataItemResponse from sailpoint.beta.models.tenant_ui_metadata_item_update_request import TenantUiMetadataItemUpdateRequest - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - tenant_ui_metadata_item_update_request = '''{ + tenant_ui_metadata_item_update_request = '''{ "usernameEmptyText" : "Please provide your work email address...", "usernameLabel" : "Email", "iframeWhiteList" : "http://example.com http://example2.com" }''' # TenantUiMetadataItemUpdateRequest | - try: - # Update tenant UI metadata - new_tenant_ui_metadata_item_update_request = TenantUiMetadataItemUpdateRequest.from_json(tenant_ui_metadata_item_update_request) - results = UIMetadataApi(api_client).set_tenant_ui_metadata(tenant_ui_metadata_item_update_request=new_tenant_ui_metadata_item_update_request) - # Below is a request that includes all optional parameters - # results = UIMetadataApi(api_client).set_tenant_ui_metadata(new_tenant_ui_metadata_item_update_request) - print("The response of UIMetadataApi->set_tenant_ui_metadata:\n") - pprint(results) - except Exception as e: - print("Exception when calling UIMetadataApi->set_tenant_ui_metadata: %s\n" % e) + try: + # Update tenant UI metadata + new_tenant_ui_metadata_item_update_request = TenantUiMetadataItemUpdateRequest.from_json(tenant_ui_metadata_item_update_request) + results = UIMetadataApi(api_client).set_tenant_ui_metadata(tenant_ui_metadata_item_update_request=new_tenant_ui_metadata_item_update_request) + # Below is a request that includes all optional parameters + # results = UIMetadataApi(api_client).set_tenant_ui_metadata(new_tenant_ui_metadata_item_update_request) + print("The response of UIMetadataApi->set_tenant_ui_metadata:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling UIMetadataApi->set_tenant_ui_metadata: %s\n" % e) - path: /vendor-connector-mappings method: POST xCodeSample: @@ -16317,13 +15801,12 @@ from sailpoint.beta.api.vendor_connector_mappings_api import VendorConnectorMappingsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.vendor_connector_mapping import VendorConnectorMapping - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - vendor_connector_mapping = '''{ + vendor_connector_mapping = '''{ "createdAt" : "2024-03-13T12:56:19.391294Z", "deletedAt" : { "Valid" : false, @@ -16346,16 +15829,16 @@ "Time" : "2024-03-14T12:56:19.391294Z" } }''' # VendorConnectorMapping | - try: - # Create Vendor Connector Mapping - new_vendor_connector_mapping = VendorConnectorMapping.from_json(vendor_connector_mapping) - results = VendorConnectorMappingsApi(api_client).create_vendor_connector_mapping(vendor_connector_mapping=new_vendor_connector_mapping) - # Below is a request that includes all optional parameters - # results = VendorConnectorMappingsApi(api_client).create_vendor_connector_mapping(new_vendor_connector_mapping) - print("The response of VendorConnectorMappingsApi->create_vendor_connector_mapping:\n") - pprint(results) - except Exception as e: - print("Exception when calling VendorConnectorMappingsApi->create_vendor_connector_mapping: %s\n" % e) + try: + # Create Vendor Connector Mapping + new_vendor_connector_mapping = VendorConnectorMapping.from_json(vendor_connector_mapping) + results = VendorConnectorMappingsApi(api_client).create_vendor_connector_mapping(vendor_connector_mapping=new_vendor_connector_mapping) + # Below is a request that includes all optional parameters + # results = VendorConnectorMappingsApi(api_client).create_vendor_connector_mapping(new_vendor_connector_mapping) + print("The response of VendorConnectorMappingsApi->create_vendor_connector_mapping:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling VendorConnectorMappingsApi->create_vendor_connector_mapping: %s\n" % e) - path: /vendor-connector-mappings method: DELETE xCodeSample: @@ -16366,13 +15849,12 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.delete_vendor_connector_mapping200_response import DeleteVendorConnectorMapping200Response from sailpoint.beta.models.vendor_connector_mapping import VendorConnectorMapping - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - vendor_connector_mapping = '''{ + vendor_connector_mapping = '''{ "createdAt" : "2024-03-13T12:56:19.391294Z", "deletedAt" : { "Valid" : false, @@ -16395,16 +15877,16 @@ "Time" : "2024-03-14T12:56:19.391294Z" } }''' # VendorConnectorMapping | - try: - # Delete Vendor Connector Mapping - new_vendor_connector_mapping = VendorConnectorMapping.from_json(vendor_connector_mapping) - results = VendorConnectorMappingsApi(api_client).delete_vendor_connector_mapping(vendor_connector_mapping=new_vendor_connector_mapping) - # Below is a request that includes all optional parameters - # results = VendorConnectorMappingsApi(api_client).delete_vendor_connector_mapping(new_vendor_connector_mapping) - print("The response of VendorConnectorMappingsApi->delete_vendor_connector_mapping:\n") - pprint(results) - except Exception as e: - print("Exception when calling VendorConnectorMappingsApi->delete_vendor_connector_mapping: %s\n" % e) + try: + # Delete Vendor Connector Mapping + new_vendor_connector_mapping = VendorConnectorMapping.from_json(vendor_connector_mapping) + results = VendorConnectorMappingsApi(api_client).delete_vendor_connector_mapping(vendor_connector_mapping=new_vendor_connector_mapping) + # Below is a request that includes all optional parameters + # results = VendorConnectorMappingsApi(api_client).delete_vendor_connector_mapping(new_vendor_connector_mapping) + print("The response of VendorConnectorMappingsApi->delete_vendor_connector_mapping:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling VendorConnectorMappingsApi->delete_vendor_connector_mapping: %s\n" % e) - path: /vendor-connector-mappings method: GET xCodeSample: @@ -16414,22 +15896,21 @@ from sailpoint.beta.api.vendor_connector_mappings_api import VendorConnectorMappingsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.vendor_connector_mapping import VendorConnectorMapping - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - try: - # List Vendor Connector Mappings - - results = VendorConnectorMappingsApi(api_client).get_vendor_connector_mappings() - # Below is a request that includes all optional parameters - # results = VendorConnectorMappingsApi(api_client).get_vendor_connector_mappings() - print("The response of VendorConnectorMappingsApi->get_vendor_connector_mappings:\n") - pprint(results) - except Exception as e: - print("Exception when calling VendorConnectorMappingsApi->get_vendor_connector_mappings: %s\n" % e) + try: + # List Vendor Connector Mappings + + results = VendorConnectorMappingsApi(api_client).get_vendor_connector_mappings() + # Below is a request that includes all optional parameters + # results = VendorConnectorMappingsApi(api_client).get_vendor_connector_mappings() + print("The response of VendorConnectorMappingsApi->get_vendor_connector_mappings:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling VendorConnectorMappingsApi->get_vendor_connector_mappings: %s\n" % e) - path: /workflow-executions/{id}/cancel method: POST xCodeSample: @@ -16438,21 +15919,20 @@ source: | from sailpoint.beta.api.workflows_api import WorkflowsApi from sailpoint.beta.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | The workflow execution ID # str | The workflow execution ID - try: - # Cancel Workflow Execution by ID - - WorkflowsApi(api_client).cancel_workflow_execution(id=id) - # Below is a request that includes all optional parameters - # WorkflowsApi(api_client).cancel_workflow_execution(id) - except Exception as e: - print("Exception when calling WorkflowsApi->cancel_workflow_execution: %s\n" % e) + id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | The workflow execution ID # str | The workflow execution ID + try: + # Cancel Workflow Execution by ID + + WorkflowsApi(api_client).cancel_workflow_execution(id=id) + # Below is a request that includes all optional parameters + # WorkflowsApi(api_client).cancel_workflow_execution(id) + except Exception as e: + print("Exception when calling WorkflowsApi->cancel_workflow_execution: %s\n" % e) - path: /workflows method: POST xCodeSample: @@ -16463,23 +15943,22 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.create_workflow_request import CreateWorkflowRequest from sailpoint.beta.models.workflow import Workflow - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - create_workflow_request = '''{name=Send Email, owner={type=IDENTITY, id=2c91808568c529c60168cca6f90c1313, name=William Wilson}, description=Send an email to the identity who's attributes changed., definition={start=Send Email Test, steps={Send Email={actionId=sp:send-email, attributes={body=This is a test, from=sailpoint@sailpoint.com, recipientId.$=$.identity.id, subject=test}, nextStep=success, selectResult=null, type=action}, success={type=success}}}, enabled=false, trigger={type=EVENT, attributes={id=idn:identity-attributes-changed, filter=$.changes[?(@.attribute == 'manager')]}}}''' # CreateWorkflowRequest | - try: - # Create Workflow - new_create_workflow_request = CreateWorkflowRequest.from_json(create_workflow_request) - results = WorkflowsApi(api_client).create_workflow(create_workflow_request=new_create_workflow_request) - # Below is a request that includes all optional parameters - # results = WorkflowsApi(api_client).create_workflow(new_create_workflow_request) - print("The response of WorkflowsApi->create_workflow:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkflowsApi->create_workflow: %s\n" % e) + create_workflow_request = '''{name=Send Email, owner={type=IDENTITY, id=2c91808568c529c60168cca6f90c1313, name=William Wilson}, description=Send an email to the identity who's attributes changed., definition={start=Send Email Test, steps={Send Email={actionId=sp:send-email, attributes={body=This is a test, from=sailpoint@sailpoint.com, recipientId.$=$.identity.id, subject=test}, nextStep=success, selectResult=null, type=action}, success={type=success}}}, enabled=false, trigger={type=EVENT, attributes={id=idn:identity-attributes-changed, filter=$.changes[?(@.attribute == 'manager')]}}}''' # CreateWorkflowRequest | + try: + # Create Workflow + new_create_workflow_request = CreateWorkflowRequest.from_json(create_workflow_request) + results = WorkflowsApi(api_client).create_workflow(create_workflow_request=new_create_workflow_request) + # Below is a request that includes all optional parameters + # results = WorkflowsApi(api_client).create_workflow(new_create_workflow_request) + print("The response of WorkflowsApi->create_workflow:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkflowsApi->create_workflow: %s\n" % e) - path: /workflows/{id} method: DELETE xCodeSample: @@ -16488,21 +15967,20 @@ source: | from sailpoint.beta.api.workflows_api import WorkflowsApi from sailpoint.beta.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Id of the Workflow # str | Id of the Workflow - try: - # Delete Workflow By Id - - WorkflowsApi(api_client).delete_workflow(id=id) - # Below is a request that includes all optional parameters - # WorkflowsApi(api_client).delete_workflow(id) - except Exception as e: - print("Exception when calling WorkflowsApi->delete_workflow: %s\n" % e) + id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Id of the Workflow # str | Id of the Workflow + try: + # Delete Workflow By Id + + WorkflowsApi(api_client).delete_workflow(id=id) + # Below is a request that includes all optional parameters + # WorkflowsApi(api_client).delete_workflow(id) + except Exception as e: + print("Exception when calling WorkflowsApi->delete_workflow: %s\n" % e) - path: /workflows/{id} method: GET xCodeSample: @@ -16512,23 +15990,22 @@ from sailpoint.beta.api.workflows_api import WorkflowsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.workflow import Workflow - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Id of the workflow # str | Id of the workflow - try: - # Get Workflow By Id - - results = WorkflowsApi(api_client).get_workflow(id=id) - # Below is a request that includes all optional parameters - # results = WorkflowsApi(api_client).get_workflow(id) - print("The response of WorkflowsApi->get_workflow:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkflowsApi->get_workflow: %s\n" % e) + id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Id of the workflow # str | Id of the workflow + try: + # Get Workflow By Id + + results = WorkflowsApi(api_client).get_workflow(id=id) + # Below is a request that includes all optional parameters + # results = WorkflowsApi(api_client).get_workflow(id) + print("The response of WorkflowsApi->get_workflow:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkflowsApi->get_workflow: %s\n" % e) - path: /workflow-executions/{id} method: GET xCodeSample: @@ -16537,23 +16014,22 @@ source: | from sailpoint.beta.api.workflows_api import WorkflowsApi from sailpoint.beta.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Workflow execution ID. # str | Workflow execution ID. - try: - # Get Workflow Execution - - results = WorkflowsApi(api_client).get_workflow_execution(id=id) - # Below is a request that includes all optional parameters - # results = WorkflowsApi(api_client).get_workflow_execution(id) - print("The response of WorkflowsApi->get_workflow_execution:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkflowsApi->get_workflow_execution: %s\n" % e) + id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Workflow execution ID. # str | Workflow execution ID. + try: + # Get Workflow Execution + + results = WorkflowsApi(api_client).get_workflow_execution(id=id) + # Below is a request that includes all optional parameters + # results = WorkflowsApi(api_client).get_workflow_execution(id) + print("The response of WorkflowsApi->get_workflow_execution:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkflowsApi->get_workflow_execution: %s\n" % e) - path: /workflow-executions/{id}/history method: GET xCodeSample: @@ -16563,23 +16039,22 @@ from sailpoint.beta.api.workflows_api import WorkflowsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.workflow_execution_event import WorkflowExecutionEvent - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Id of the workflow execution # str | Id of the workflow execution - try: - # Get Workflow Execution History - - results = WorkflowsApi(api_client).get_workflow_execution_history(id=id) - # Below is a request that includes all optional parameters - # results = WorkflowsApi(api_client).get_workflow_execution_history(id) - print("The response of WorkflowsApi->get_workflow_execution_history:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkflowsApi->get_workflow_execution_history: %s\n" % e) + id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Id of the workflow execution # str | Id of the workflow execution + try: + # Get Workflow Execution History + + results = WorkflowsApi(api_client).get_workflow_execution_history(id=id) + # Below is a request that includes all optional parameters + # results = WorkflowsApi(api_client).get_workflow_execution_history(id) + print("The response of WorkflowsApi->get_workflow_execution_history:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkflowsApi->get_workflow_execution_history: %s\n" % e) - path: /workflows/{id}/executions method: GET xCodeSample: @@ -16589,27 +16064,26 @@ from sailpoint.beta.api.workflows_api import WorkflowsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.workflow_execution import WorkflowExecution - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Workflow ID. # str | Workflow ID. - 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 = 'status eq \"Failed\"' # 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: **startTime**: *eq, lt, le, gt, ge* **status**: *eq* (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: **startTime**: *eq, lt, le, gt, ge* **status**: *eq* (optional) - try: - # List Workflow Executions - - results = WorkflowsApi(api_client).get_workflow_executions(id=id) - # Below is a request that includes all optional parameters - # results = WorkflowsApi(api_client).get_workflow_executions(id, limit, offset, count, filters) - print("The response of WorkflowsApi->get_workflow_executions:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkflowsApi->get_workflow_executions: %s\n" % e) + id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Workflow ID. # str | Workflow ID. + 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 = 'status eq \"Failed\"' # 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: **startTime**: *eq, lt, le, gt, ge* **status**: *eq* (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: **startTime**: *eq, lt, le, gt, ge* **status**: *eq* (optional) + try: + # List Workflow Executions + + results = WorkflowsApi(api_client).get_workflow_executions(id=id) + # Below is a request that includes all optional parameters + # results = WorkflowsApi(api_client).get_workflow_executions(id, limit, offset, count, filters) + print("The response of WorkflowsApi->get_workflow_executions:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkflowsApi->get_workflow_executions: %s\n" % e) - path: /workflow-library method: GET xCodeSample: @@ -16619,24 +16093,23 @@ from sailpoint.beta.api.workflows_api import WorkflowsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.list_complete_workflow_library200_response_inner import ListCompleteWorkflowLibrary200ResponseInner - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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) - try: - # List Complete Workflow Library - - results = WorkflowsApi(api_client).list_complete_workflow_library() - # Below is a request that includes all optional parameters - # results = WorkflowsApi(api_client).list_complete_workflow_library(limit, offset) - print("The response of WorkflowsApi->list_complete_workflow_library:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkflowsApi->list_complete_workflow_library: %s\n" % e) + 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) + try: + # List Complete Workflow Library + + results = WorkflowsApi(api_client).list_complete_workflow_library() + # Below is a request that includes all optional parameters + # results = WorkflowsApi(api_client).list_complete_workflow_library(limit, offset) + print("The response of WorkflowsApi->list_complete_workflow_library:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkflowsApi->list_complete_workflow_library: %s\n" % e) - path: /workflow-library/actions method: GET xCodeSample: @@ -16646,25 +16119,24 @@ from sailpoint.beta.api.workflows_api import WorkflowsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.workflow_library_action import WorkflowLibraryAction - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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) - filters = 'id eq \"sp:create-campaign\"' # 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* (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* (optional) - try: - # List Workflow Library Actions - - results = WorkflowsApi(api_client).list_workflow_library_actions() - # Below is a request that includes all optional parameters - # results = WorkflowsApi(api_client).list_workflow_library_actions(limit, offset, filters) - print("The response of WorkflowsApi->list_workflow_library_actions:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkflowsApi->list_workflow_library_actions: %s\n" % e) + 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) + filters = 'id eq \"sp:create-campaign\"' # 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* (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* (optional) + try: + # List Workflow Library Actions + + results = WorkflowsApi(api_client).list_workflow_library_actions() + # Below is a request that includes all optional parameters + # results = WorkflowsApi(api_client).list_workflow_library_actions(limit, offset, filters) + print("The response of WorkflowsApi->list_workflow_library_actions:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkflowsApi->list_workflow_library_actions: %s\n" % e) - path: /workflow-library/operators method: GET xCodeSample: @@ -16674,22 +16146,21 @@ from sailpoint.beta.api.workflows_api import WorkflowsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.workflow_library_operator import WorkflowLibraryOperator - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - try: - # List Workflow Library Operators - - results = WorkflowsApi(api_client).list_workflow_library_operators() - # Below is a request that includes all optional parameters - # results = WorkflowsApi(api_client).list_workflow_library_operators() - print("The response of WorkflowsApi->list_workflow_library_operators:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkflowsApi->list_workflow_library_operators: %s\n" % e) + try: + # List Workflow Library Operators + + results = WorkflowsApi(api_client).list_workflow_library_operators() + # Below is a request that includes all optional parameters + # results = WorkflowsApi(api_client).list_workflow_library_operators() + print("The response of WorkflowsApi->list_workflow_library_operators:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkflowsApi->list_workflow_library_operators: %s\n" % e) - path: /workflow-library/triggers method: GET xCodeSample: @@ -16699,25 +16170,24 @@ from sailpoint.beta.api.workflows_api import WorkflowsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.workflow_library_trigger import WorkflowLibraryTrigger - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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) - filters = 'id eq \"idn:identity-attributes-changed\"' # 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* (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* (optional) - try: - # List Workflow Library Triggers - - results = WorkflowsApi(api_client).list_workflow_library_triggers() - # Below is a request that includes all optional parameters - # results = WorkflowsApi(api_client).list_workflow_library_triggers(limit, offset, filters) - print("The response of WorkflowsApi->list_workflow_library_triggers:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkflowsApi->list_workflow_library_triggers: %s\n" % e) + 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) + filters = 'id eq \"idn:identity-attributes-changed\"' # 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* (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* (optional) + try: + # List Workflow Library Triggers + + results = WorkflowsApi(api_client).list_workflow_library_triggers() + # Below is a request that includes all optional parameters + # results = WorkflowsApi(api_client).list_workflow_library_triggers(limit, offset, filters) + print("The response of WorkflowsApi->list_workflow_library_triggers:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkflowsApi->list_workflow_library_triggers: %s\n" % e) - path: /workflows method: GET xCodeSample: @@ -16727,22 +16197,21 @@ from sailpoint.beta.api.workflows_api import WorkflowsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.workflow import Workflow - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - try: - # List Workflows - - results = WorkflowsApi(api_client).list_workflows() - # Below is a request that includes all optional parameters - # results = WorkflowsApi(api_client).list_workflows() - print("The response of WorkflowsApi->list_workflows:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkflowsApi->list_workflows: %s\n" % e) + try: + # List Workflows + + results = WorkflowsApi(api_client).list_workflows() + # Below is a request that includes all optional parameters + # results = WorkflowsApi(api_client).list_workflows() + print("The response of WorkflowsApi->list_workflows:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkflowsApi->list_workflows: %s\n" % e) - path: /workflows/{id} method: PATCH xCodeSample: @@ -16753,24 +16222,23 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.json_patch_operation import JsonPatchOperation from sailpoint.beta.models.workflow import Workflow - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Id of the Workflow # str | Id of the Workflow - json_patch_operation = '''[{op=replace, path=/name, value=Send Email}, {op=replace, path=/owner, value={type=IDENTITY, id=2c91808568c529c60168cca6f90c1313, name=William Wilson}}, {op=replace, path=/description, value=Send an email to the identity who's attributes changed.}, {op=replace, path=/enabled, value=false}, {op=replace, path=/definition, value={start=Send Email Test, steps={Send Email={actionId=sp:send-email, attributes={body=This is a test, from=sailpoint@sailpoint.com, recipientId.$=$.identity.id, subject=test}, nextStep=success, selectResult=null, type=action}, success={type=success}}}}, {op=replace, path=/trigger, value={type=EVENT, attributes={id=idn:identity-attributes-changed}}}]''' # List[JsonPatchOperation] | - try: - # Patch Workflow - new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) - results = WorkflowsApi(api_client).patch_workflow(id=id, json_patch_operation=new_json_patch_operation) - # Below is a request that includes all optional parameters - # results = WorkflowsApi(api_client).patch_workflow(id, new_json_patch_operation) - print("The response of WorkflowsApi->patch_workflow:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkflowsApi->patch_workflow: %s\n" % e) + id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Id of the Workflow # str | Id of the Workflow + json_patch_operation = '''[{op=replace, path=/name, value=Send Email}, {op=replace, path=/owner, value={type=IDENTITY, id=2c91808568c529c60168cca6f90c1313, name=William Wilson}}, {op=replace, path=/description, value=Send an email to the identity who's attributes changed.}, {op=replace, path=/enabled, value=false}, {op=replace, path=/definition, value={start=Send Email Test, steps={Send Email={actionId=sp:send-email, attributes={body=This is a test, from=sailpoint@sailpoint.com, recipientId.$=$.identity.id, subject=test}, nextStep=success, selectResult=null, type=action}, success={type=success}}}}, {op=replace, path=/trigger, value={type=EVENT, attributes={id=idn:identity-attributes-changed}}}]''' # List[JsonPatchOperation] | + try: + # Patch Workflow + new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) + results = WorkflowsApi(api_client).patch_workflow(id=id, json_patch_operation=new_json_patch_operation) + # Below is a request that includes all optional parameters + # results = WorkflowsApi(api_client).patch_workflow(id, new_json_patch_operation) + print("The response of WorkflowsApi->patch_workflow:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkflowsApi->patch_workflow: %s\n" % e) - path: /workflows/execute/external/{id} method: POST xCodeSample: @@ -16781,24 +16249,23 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.post_external_execute_workflow200_response import PostExternalExecuteWorkflow200Response from sailpoint.beta.models.post_external_execute_workflow_request import PostExternalExecuteWorkflowRequest - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Id of the workflow # str | Id of the workflow - post_external_execute_workflow_request = '''sailpoint.beta.PostExternalExecuteWorkflowRequest()''' # PostExternalExecuteWorkflowRequest | (optional) - try: - # Execute Workflow via External Trigger - - results = WorkflowsApi(api_client).post_external_execute_workflow(id=id) - # Below is a request that includes all optional parameters - # results = WorkflowsApi(api_client).post_external_execute_workflow(id, new_post_external_execute_workflow_request) - print("The response of WorkflowsApi->post_external_execute_workflow:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkflowsApi->post_external_execute_workflow: %s\n" % e) + id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Id of the workflow # str | Id of the workflow + post_external_execute_workflow_request = '''sailpoint.beta.PostExternalExecuteWorkflowRequest()''' # PostExternalExecuteWorkflowRequest | (optional) + try: + # Execute Workflow via External Trigger + + results = WorkflowsApi(api_client).post_external_execute_workflow(id=id) + # Below is a request that includes all optional parameters + # results = WorkflowsApi(api_client).post_external_execute_workflow(id, new_post_external_execute_workflow_request) + print("The response of WorkflowsApi->post_external_execute_workflow:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkflowsApi->post_external_execute_workflow: %s\n" % e) - path: /workflows/{id}/external/oauth-clients method: POST xCodeSample: @@ -16808,23 +16275,22 @@ from sailpoint.beta.api.workflows_api import WorkflowsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.workflow_o_auth_client import WorkflowOAuthClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Id of the workflow # str | Id of the workflow - try: - # Generate External Trigger OAuth Client - - results = WorkflowsApi(api_client).post_workflow_external_trigger(id=id) - # Below is a request that includes all optional parameters - # results = WorkflowsApi(api_client).post_workflow_external_trigger(id) - print("The response of WorkflowsApi->post_workflow_external_trigger:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkflowsApi->post_workflow_external_trigger: %s\n" % e) + id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Id of the workflow # str | Id of the workflow + try: + # Generate External Trigger OAuth Client + + results = WorkflowsApi(api_client).post_workflow_external_trigger(id=id) + # Below is a request that includes all optional parameters + # results = WorkflowsApi(api_client).post_workflow_external_trigger(id) + print("The response of WorkflowsApi->post_workflow_external_trigger:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkflowsApi->post_workflow_external_trigger: %s\n" % e) - path: /workflows/execute/external/{id}/test method: POST xCodeSample: @@ -16835,24 +16301,23 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.test_external_execute_workflow200_response import TestExternalExecuteWorkflow200Response from sailpoint.beta.models.test_external_execute_workflow_request import TestExternalExecuteWorkflowRequest - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Id of the workflow # str | Id of the workflow - test_external_execute_workflow_request = '''sailpoint.beta.TestExternalExecuteWorkflowRequest()''' # TestExternalExecuteWorkflowRequest | (optional) - try: - # Test Workflow via External Trigger - - results = WorkflowsApi(api_client).test_external_execute_workflow(id=id) - # Below is a request that includes all optional parameters - # results = WorkflowsApi(api_client).test_external_execute_workflow(id, new_test_external_execute_workflow_request) - print("The response of WorkflowsApi->test_external_execute_workflow:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkflowsApi->test_external_execute_workflow: %s\n" % e) + id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Id of the workflow # str | Id of the workflow + test_external_execute_workflow_request = '''sailpoint.beta.TestExternalExecuteWorkflowRequest()''' # TestExternalExecuteWorkflowRequest | (optional) + try: + # Test Workflow via External Trigger + + results = WorkflowsApi(api_client).test_external_execute_workflow(id=id) + # Below is a request that includes all optional parameters + # results = WorkflowsApi(api_client).test_external_execute_workflow(id, new_test_external_execute_workflow_request) + print("The response of WorkflowsApi->test_external_execute_workflow:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkflowsApi->test_external_execute_workflow: %s\n" % e) - path: /workflows/{id}/test method: POST xCodeSample: @@ -16863,24 +16328,23 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.test_workflow200_response import TestWorkflow200Response from sailpoint.beta.models.test_workflow_request import TestWorkflowRequest - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Id of the workflow # str | Id of the workflow - test_workflow_request = '''{input={identity={id=ee769173319b41d19ccec6cea52f237b, name=john.doe, type=IDENTITY}, changes=[{attribute=department, oldValue=sales, newValue=marketing}, {attribute=manager, oldValue={id=ee769173319b41d19ccec6c235423237b, name=nice.guy, type=IDENTITY}, newValue={id=ee769173319b41d19ccec6c235423236c, name=mean.guy, type=IDENTITY}}, {attribute=email, oldValue=john.doe@hotmail.com, newValue=john.doe@gmail.com}]}}''' # TestWorkflowRequest | - try: - # Test Workflow By Id - new_test_workflow_request = TestWorkflowRequest.from_json(test_workflow_request) - results = WorkflowsApi(api_client).test_workflow(id=id, test_workflow_request=new_test_workflow_request) - # Below is a request that includes all optional parameters - # results = WorkflowsApi(api_client).test_workflow(id, new_test_workflow_request) - print("The response of WorkflowsApi->test_workflow:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkflowsApi->test_workflow: %s\n" % e) + id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Id of the workflow # str | Id of the workflow + test_workflow_request = '''{input={identity={id=ee769173319b41d19ccec6cea52f237b, name=john.doe, type=IDENTITY}, changes=[{attribute=department, oldValue=sales, newValue=marketing}, {attribute=manager, oldValue={id=ee769173319b41d19ccec6c235423237b, name=nice.guy, type=IDENTITY}, newValue={id=ee769173319b41d19ccec6c235423236c, name=mean.guy, type=IDENTITY}}, {attribute=email, oldValue=john.doe@hotmail.com, newValue=john.doe@gmail.com}]}}''' # TestWorkflowRequest | + try: + # Test Workflow By Id + new_test_workflow_request = TestWorkflowRequest.from_json(test_workflow_request) + results = WorkflowsApi(api_client).test_workflow(id=id, test_workflow_request=new_test_workflow_request) + # Below is a request that includes all optional parameters + # results = WorkflowsApi(api_client).test_workflow(id, new_test_workflow_request) + print("The response of WorkflowsApi->test_workflow:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkflowsApi->test_workflow: %s\n" % e) - path: /workflows/{id} method: PUT xCodeSample: @@ -16891,14 +16355,13 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.workflow import Workflow from sailpoint.beta.models.workflow_body import WorkflowBody - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Id of the Workflow # str | Id of the Workflow - workflow_body = '''{ + id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Id of the Workflow # str | Id of the Workflow + workflow_body = '''{ "owner" : { "name" : "William Wilson", "id" : "2c91808568c529c60168cca6f90c1313", @@ -16938,16 +16401,16 @@ }, "enabled" : false }''' # WorkflowBody | - try: - # Update Workflow - new_workflow_body = WorkflowBody.from_json(workflow_body) - results = WorkflowsApi(api_client).update_workflow(id=id, workflow_body=new_workflow_body) - # Below is a request that includes all optional parameters - # results = WorkflowsApi(api_client).update_workflow(id, new_workflow_body) - print("The response of WorkflowsApi->update_workflow:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkflowsApi->update_workflow: %s\n" % e) + try: + # Update Workflow + new_workflow_body = WorkflowBody.from_json(workflow_body) + results = WorkflowsApi(api_client).update_workflow(id=id, workflow_body=new_workflow_body) + # Below is a request that includes all optional parameters + # results = WorkflowsApi(api_client).update_workflow(id, new_workflow_body) + print("The response of WorkflowsApi->update_workflow:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkflowsApi->update_workflow: %s\n" % e) - path: /work-items/{id}/approve/{approvalItemId} method: POST xCodeSample: @@ -16957,24 +16420,23 @@ from sailpoint.beta.api.work_items_api import WorkItemsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.work_items import WorkItems - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the work item # str | The ID of the work item - approval_item_id = '1211bcaa32112bcef6122adb21cef1ac' # str | The ID of the approval item. # str | The ID of the approval item. - try: - # Approve an Approval Item - - results = WorkItemsApi(api_client).approve_approval_item(id=id, approval_item_id=approval_item_id) - # Below is a request that includes all optional parameters - # results = WorkItemsApi(api_client).approve_approval_item(id, approval_item_id) - print("The response of WorkItemsApi->approve_approval_item:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkItemsApi->approve_approval_item: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the work item # str | The ID of the work item + approval_item_id = '1211bcaa32112bcef6122adb21cef1ac' # str | The ID of the approval item. # str | The ID of the approval item. + try: + # Approve an Approval Item + + results = WorkItemsApi(api_client).approve_approval_item(id=id, approval_item_id=approval_item_id) + # Below is a request that includes all optional parameters + # results = WorkItemsApi(api_client).approve_approval_item(id, approval_item_id) + print("The response of WorkItemsApi->approve_approval_item:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkItemsApi->approve_approval_item: %s\n" % e) - path: /work-items/bulk-approve/{id} method: POST xCodeSample: @@ -16984,23 +16446,22 @@ from sailpoint.beta.api.work_items_api import WorkItemsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.work_items import WorkItems - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the work item # str | The ID of the work item - try: - # Bulk approve Approval Items - - results = WorkItemsApi(api_client).approve_approval_items_in_bulk(id=id) - # Below is a request that includes all optional parameters - # results = WorkItemsApi(api_client).approve_approval_items_in_bulk(id) - print("The response of WorkItemsApi->approve_approval_items_in_bulk:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkItemsApi->approve_approval_items_in_bulk: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the work item # str | The ID of the work item + try: + # Bulk approve Approval Items + + results = WorkItemsApi(api_client).approve_approval_items_in_bulk(id=id) + # Below is a request that includes all optional parameters + # results = WorkItemsApi(api_client).approve_approval_items_in_bulk(id) + print("The response of WorkItemsApi->approve_approval_items_in_bulk:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkItemsApi->approve_approval_items_in_bulk: %s\n" % e) - path: /work-items/{id} method: POST xCodeSample: @@ -17010,24 +16471,23 @@ from sailpoint.beta.api.work_items_api import WorkItemsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.work_items import WorkItems - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the work item # str | The ID of the work item - body = 'body_example' # str | Body is the request payload to create form definition request (optional) # str | Body is the request payload to create form definition request (optional) - try: - # Complete a Work Item - - results = WorkItemsApi(api_client).complete_work_item(id=id) - # Below is a request that includes all optional parameters - # results = WorkItemsApi(api_client).complete_work_item(id, new_body) - print("The response of WorkItemsApi->complete_work_item:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkItemsApi->complete_work_item: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the work item # str | The ID of the work item + body = 'body_example' # str | Body is the request payload to create form definition request (optional) # str | Body is the request payload to create form definition request (optional) + try: + # Complete a Work Item + + results = WorkItemsApi(api_client).complete_work_item(id=id) + # Below is a request that includes all optional parameters + # results = WorkItemsApi(api_client).complete_work_item(id, new_body) + print("The response of WorkItemsApi->complete_work_item:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkItemsApi->complete_work_item: %s\n" % e) - path: /work-items/{id}/forward method: POST xCodeSample: @@ -17037,26 +16497,25 @@ from sailpoint.beta.api.work_items_api import WorkItemsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.work_item_forward import WorkItemForward - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the work item # str | The ID of the work item - work_item_forward = '''{ + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the work item # str | The ID of the work item + work_item_forward = '''{ "targetOwnerId" : "2c9180835d2e5168015d32f890ca1581", "comment" : "I'm going on vacation.", "sendNotifications" : true }''' # WorkItemForward | - try: - # Forward a Work Item - new_work_item_forward = WorkItemForward.from_json(work_item_forward) - WorkItemsApi(api_client).forward_work_item(id=id, work_item_forward=new_work_item_forward) - # Below is a request that includes all optional parameters - # WorkItemsApi(api_client).forward_work_item(id, new_work_item_forward) - except Exception as e: - print("Exception when calling WorkItemsApi->forward_work_item: %s\n" % e) + try: + # Forward a Work Item + new_work_item_forward = WorkItemForward.from_json(work_item_forward) + WorkItemsApi(api_client).forward_work_item(id=id, work_item_forward=new_work_item_forward) + # Below is a request that includes all optional parameters + # WorkItemsApi(api_client).forward_work_item(id, new_work_item_forward) + except Exception as e: + print("Exception when calling WorkItemsApi->forward_work_item: %s\n" % e) - path: /work-items/completed method: GET xCodeSample: @@ -17066,26 +16525,25 @@ from sailpoint.beta.api.work_items_api import WorkItemsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.work_items import WorkItems - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - owner_id = 'owner_id_example' # str | The id of the owner of the work item list being requested. Either an admin, or the owning/current user must make this request. (optional) # str | The id of the owner of the work item list being requested. Either an admin, or the owning/current user must make this request. (optional) - 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) - try: - # Completed Work Items - - results = WorkItemsApi(api_client).get_completed_work_items() - # Below is a request that includes all optional parameters - # results = WorkItemsApi(api_client).get_completed_work_items(owner_id, limit, offset, count) - print("The response of WorkItemsApi->get_completed_work_items:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkItemsApi->get_completed_work_items: %s\n" % e) + owner_id = 'owner_id_example' # str | The id of the owner of the work item list being requested. Either an admin, or the owning/current user must make this request. (optional) # str | The id of the owner of the work item list being requested. Either an admin, or the owning/current user must make this request. (optional) + 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) + try: + # Completed Work Items + + results = WorkItemsApi(api_client).get_completed_work_items() + # Below is a request that includes all optional parameters + # results = WorkItemsApi(api_client).get_completed_work_items(owner_id, limit, offset, count) + print("The response of WorkItemsApi->get_completed_work_items:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkItemsApi->get_completed_work_items: %s\n" % e) - path: /work-items/completed/count method: GET xCodeSample: @@ -17095,23 +16553,22 @@ from sailpoint.beta.api.work_items_api import WorkItemsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.work_items_count import WorkItemsCount - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - owner_id = 'owner_id_example' # str | ID of the work item owner. (optional) # str | ID of the work item owner. (optional) - try: - # Count Completed Work Items - - results = WorkItemsApi(api_client).get_count_completed_work_items() - # Below is a request that includes all optional parameters - # results = WorkItemsApi(api_client).get_count_completed_work_items(owner_id) - print("The response of WorkItemsApi->get_count_completed_work_items:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkItemsApi->get_count_completed_work_items: %s\n" % e) + owner_id = 'owner_id_example' # str | ID of the work item owner. (optional) # str | ID of the work item owner. (optional) + try: + # Count Completed Work Items + + results = WorkItemsApi(api_client).get_count_completed_work_items() + # Below is a request that includes all optional parameters + # results = WorkItemsApi(api_client).get_count_completed_work_items(owner_id) + print("The response of WorkItemsApi->get_count_completed_work_items:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkItemsApi->get_count_completed_work_items: %s\n" % e) - path: /work-items/count method: GET xCodeSample: @@ -17121,23 +16578,22 @@ from sailpoint.beta.api.work_items_api import WorkItemsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.work_items_count import WorkItemsCount - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - owner_id = 'owner_id_example' # str | ID of the work item owner. (optional) # str | ID of the work item owner. (optional) - try: - # Count Work Items - - results = WorkItemsApi(api_client).get_count_work_items() - # Below is a request that includes all optional parameters - # results = WorkItemsApi(api_client).get_count_work_items(owner_id) - print("The response of WorkItemsApi->get_count_work_items:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkItemsApi->get_count_work_items: %s\n" % e) + owner_id = 'owner_id_example' # str | ID of the work item owner. (optional) # str | ID of the work item owner. (optional) + try: + # Count Work Items + + results = WorkItemsApi(api_client).get_count_work_items() + # Below is a request that includes all optional parameters + # results = WorkItemsApi(api_client).get_count_work_items(owner_id) + print("The response of WorkItemsApi->get_count_work_items:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkItemsApi->get_count_work_items: %s\n" % e) - path: /work-items/{id} method: GET xCodeSample: @@ -17146,24 +16602,23 @@ source: | from sailpoint.beta.api.work_items_api import WorkItemsApi from sailpoint.beta.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c9180835d191a86015d28455b4a2329' # str | ID of the work item. # str | ID of the work item. - owner_id = '2c9180835d191a86015d28455b4a2329' # str | ID of the work item owner. (optional) # str | ID of the work item owner. (optional) - try: - # Get a Work Item - - results = WorkItemsApi(api_client).get_work_item(id=id) - # Below is a request that includes all optional parameters - # results = WorkItemsApi(api_client).get_work_item(id, owner_id) - print("The response of WorkItemsApi->get_work_item:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkItemsApi->get_work_item: %s\n" % e) + id = '2c9180835d191a86015d28455b4a2329' # str | ID of the work item. # str | ID of the work item. + owner_id = '2c9180835d191a86015d28455b4a2329' # str | ID of the work item owner. (optional) # str | ID of the work item owner. (optional) + try: + # Get a Work Item + + results = WorkItemsApi(api_client).get_work_item(id=id) + # Below is a request that includes all optional parameters + # results = WorkItemsApi(api_client).get_work_item(id, owner_id) + print("The response of WorkItemsApi->get_work_item:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkItemsApi->get_work_item: %s\n" % e) - path: /work-items/summary method: GET xCodeSample: @@ -17173,23 +16628,22 @@ from sailpoint.beta.api.work_items_api import WorkItemsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.work_items_summary import WorkItemsSummary - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - owner_id = 'owner_id_example' # str | ID of the work item owner. (optional) # str | ID of the work item owner. (optional) - try: - # Work Items Summary - - results = WorkItemsApi(api_client).get_work_items_summary() - # Below is a request that includes all optional parameters - # results = WorkItemsApi(api_client).get_work_items_summary(owner_id) - print("The response of WorkItemsApi->get_work_items_summary:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkItemsApi->get_work_items_summary: %s\n" % e) + owner_id = 'owner_id_example' # str | ID of the work item owner. (optional) # str | ID of the work item owner. (optional) + try: + # Work Items Summary + + results = WorkItemsApi(api_client).get_work_items_summary() + # Below is a request that includes all optional parameters + # results = WorkItemsApi(api_client).get_work_items_summary(owner_id) + print("The response of WorkItemsApi->get_work_items_summary:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkItemsApi->get_work_items_summary: %s\n" % e) - path: /work-items method: GET xCodeSample: @@ -17199,26 +16653,25 @@ from sailpoint.beta.api.work_items_api import WorkItemsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.work_items import WorkItems - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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) - owner_id = 'owner_id_example' # str | ID of the work item owner. (optional) # str | ID of the work item owner. (optional) - try: - # List Work Items - - results = WorkItemsApi(api_client).list_work_items() - # Below is a request that includes all optional parameters - # results = WorkItemsApi(api_client).list_work_items(limit, offset, count, owner_id) - print("The response of WorkItemsApi->list_work_items:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkItemsApi->list_work_items: %s\n" % e) + 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) + owner_id = 'owner_id_example' # str | ID of the work item owner. (optional) # str | ID of the work item owner. (optional) + try: + # List Work Items + + results = WorkItemsApi(api_client).list_work_items() + # Below is a request that includes all optional parameters + # results = WorkItemsApi(api_client).list_work_items(limit, offset, count, owner_id) + print("The response of WorkItemsApi->list_work_items:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkItemsApi->list_work_items: %s\n" % e) - path: /work-items/{id}/reject/{approvalItemId} method: POST xCodeSample: @@ -17228,24 +16681,23 @@ from sailpoint.beta.api.work_items_api import WorkItemsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.work_items import WorkItems - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the work item # str | The ID of the work item - approval_item_id = '1211bcaa32112bcef6122adb21cef1ac' # str | The ID of the approval item. # str | The ID of the approval item. - try: - # Reject an Approval Item - - results = WorkItemsApi(api_client).reject_approval_item(id=id, approval_item_id=approval_item_id) - # Below is a request that includes all optional parameters - # results = WorkItemsApi(api_client).reject_approval_item(id, approval_item_id) - print("The response of WorkItemsApi->reject_approval_item:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkItemsApi->reject_approval_item: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the work item # str | The ID of the work item + approval_item_id = '1211bcaa32112bcef6122adb21cef1ac' # str | The ID of the approval item. # str | The ID of the approval item. + try: + # Reject an Approval Item + + results = WorkItemsApi(api_client).reject_approval_item(id=id, approval_item_id=approval_item_id) + # Below is a request that includes all optional parameters + # results = WorkItemsApi(api_client).reject_approval_item(id, approval_item_id) + print("The response of WorkItemsApi->reject_approval_item:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkItemsApi->reject_approval_item: %s\n" % e) - path: /work-items/bulk-reject/{id} method: POST xCodeSample: @@ -17255,23 +16707,22 @@ from sailpoint.beta.api.work_items_api import WorkItemsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.work_items import WorkItems - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the work item # str | The ID of the work item - try: - # Bulk reject Approval Items - - results = WorkItemsApi(api_client).reject_approval_items_in_bulk(id=id) - # Below is a request that includes all optional parameters - # results = WorkItemsApi(api_client).reject_approval_items_in_bulk(id) - print("The response of WorkItemsApi->reject_approval_items_in_bulk:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkItemsApi->reject_approval_items_in_bulk: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the work item # str | The ID of the work item + try: + # Bulk reject Approval Items + + results = WorkItemsApi(api_client).reject_approval_items_in_bulk(id=id) + # Below is a request that includes all optional parameters + # results = WorkItemsApi(api_client).reject_approval_items_in_bulk(id) + print("The response of WorkItemsApi->reject_approval_items_in_bulk:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkItemsApi->reject_approval_items_in_bulk: %s\n" % e) - path: /work-items/{id}/submit-account-selection method: POST xCodeSample: @@ -17281,24 +16732,23 @@ from sailpoint.beta.api.work_items_api import WorkItemsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.work_items import WorkItems - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the work item # str | The ID of the work item - request_body = {fieldName=fieldValue} # Dict[str, object] | Account Selection Data map, keyed on fieldName # Dict[str, object] | Account Selection Data map, keyed on fieldName - try: - # Submit Account Selections - new_request_body = RequestBody.from_json(request_body) - results = WorkItemsApi(api_client).submit_account_selection(id=id, request_body=new_request_body) - # Below is a request that includes all optional parameters - # results = WorkItemsApi(api_client).submit_account_selection(id, new_request_body) - print("The response of WorkItemsApi->submit_account_selection:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkItemsApi->submit_account_selection: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the work item # str | The ID of the work item + request_body = {fieldName=fieldValue} # Dict[str, object] | Account Selection Data map, keyed on fieldName # Dict[str, object] | Account Selection Data map, keyed on fieldName + try: + # Submit Account Selections + new_request_body = RequestBody.from_json(request_body) + results = WorkItemsApi(api_client).submit_account_selection(id=id, request_body=new_request_body) + # Below is a request that includes all optional parameters + # results = WorkItemsApi(api_client).submit_account_selection(id, new_request_body) + print("The response of WorkItemsApi->submit_account_selection:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkItemsApi->submit_account_selection: %s\n" % e) - path: /reassignment-configurations method: POST xCodeSample: @@ -17309,29 +16759,28 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.configuration_item_request import ConfigurationItemRequest from sailpoint.beta.models.configuration_item_response import ConfigurationItemResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - configuration_item_request = '''{ + configuration_item_request = '''{ "endDate" : "2022-07-30T17:00:00Z", "reassignedFromId" : "2c91808781a71ddb0181b9090b5c504e", "configType" : "ACCESS_REQUESTS", "reassignedToId" : "2c91808781a71ddb0181b9090b53504a", "startDate" : "2022-07-21T11:13:12.345Z" }''' # ConfigurationItemRequest | - try: - # Create a Reassignment Configuration - new_configuration_item_request = ConfigurationItemRequest.from_json(configuration_item_request) - results = WorkReassignmentApi(api_client).create_reassignment_configuration(configuration_item_request=new_configuration_item_request) - # Below is a request that includes all optional parameters - # results = WorkReassignmentApi(api_client).create_reassignment_configuration(new_configuration_item_request) - print("The response of WorkReassignmentApi->create_reassignment_configuration:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkReassignmentApi->create_reassignment_configuration: %s\n" % e) + try: + # Create a Reassignment Configuration + new_configuration_item_request = ConfigurationItemRequest.from_json(configuration_item_request) + results = WorkReassignmentApi(api_client).create_reassignment_configuration(configuration_item_request=new_configuration_item_request) + # Below is a request that includes all optional parameters + # results = WorkReassignmentApi(api_client).create_reassignment_configuration(new_configuration_item_request) + print("The response of WorkReassignmentApi->create_reassignment_configuration:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkReassignmentApi->create_reassignment_configuration: %s\n" % e) - path: /reassignment-configurations/{identityId}/{configType} method: DELETE xCodeSample: @@ -17341,22 +16790,21 @@ from sailpoint.beta.api.work_reassignment_api import WorkReassignmentApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.config_type_enum import ConfigTypeEnum - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - identity_id = '2c91808781a71ddb0181b9090b5c504e' # str | unique identity id # str | unique identity id - config_type = sailpoint.beta.ConfigTypeEnum() # ConfigTypeEnum | # ConfigTypeEnum | - try: - # Delete Reassignment Configuration - - WorkReassignmentApi(api_client).delete_reassignment_configuration(identity_id=identity_id, config_type=config_type) - # Below is a request that includes all optional parameters - # WorkReassignmentApi(api_client).delete_reassignment_configuration(identity_id, config_type) - except Exception as e: - print("Exception when calling WorkReassignmentApi->delete_reassignment_configuration: %s\n" % e) + identity_id = '2c91808781a71ddb0181b9090b5c504e' # str | unique identity id # str | unique identity id + config_type = sailpoint.beta.ConfigTypeEnum() # ConfigTypeEnum | # ConfigTypeEnum | + try: + # Delete Reassignment Configuration + + WorkReassignmentApi(api_client).delete_reassignment_configuration(identity_id=identity_id, config_type=config_type) + # Below is a request that includes all optional parameters + # WorkReassignmentApi(api_client).delete_reassignment_configuration(identity_id, config_type) + except Exception as e: + print("Exception when calling WorkReassignmentApi->delete_reassignment_configuration: %s\n" % e) - path: /reassignment-configurations/{identityId}/evaluate/{configType} method: GET xCodeSample: @@ -17367,25 +16815,24 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.config_type_enum import ConfigTypeEnum from sailpoint.beta.models.evaluate_response import EvaluateResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - identity_id = '2c91808781a71ddb0181b9090b5c504e' # str | unique identity id # str | unique identity id - config_type = sailpoint.beta.ConfigTypeEnum() # ConfigTypeEnum | Reassignment work type # ConfigTypeEnum | Reassignment work type - exclusion_filters = '''['SELF_REVIEW_DELEGATION']''' # List[str] | Exclusion filters that disable parts of the reassignment evaluation. Possible values are listed below: - `SELF_REVIEW_DELEGATION`: This will exclude delegations of self-review reassignments (optional) - try: - # Evaluate Reassignment Configuration - - results = WorkReassignmentApi(api_client).get_evaluate_reassignment_configuration(identity_id=identity_id, config_type=config_type) - # Below is a request that includes all optional parameters - # results = WorkReassignmentApi(api_client).get_evaluate_reassignment_configuration(identity_id, config_type, exclusion_filters) - print("The response of WorkReassignmentApi->get_evaluate_reassignment_configuration:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkReassignmentApi->get_evaluate_reassignment_configuration: %s\n" % e) + identity_id = '2c91808781a71ddb0181b9090b5c504e' # str | unique identity id # str | unique identity id + config_type = sailpoint.beta.ConfigTypeEnum() # ConfigTypeEnum | Reassignment work type # ConfigTypeEnum | Reassignment work type + exclusion_filters = '''['SELF_REVIEW_DELEGATION']''' # List[str] | Exclusion filters that disable parts of the reassignment evaluation. Possible values are listed below: - `SELF_REVIEW_DELEGATION`: This will exclude delegations of self-review reassignments (optional) + try: + # Evaluate Reassignment Configuration + + results = WorkReassignmentApi(api_client).get_evaluate_reassignment_configuration(identity_id=identity_id, config_type=config_type) + # Below is a request that includes all optional parameters + # results = WorkReassignmentApi(api_client).get_evaluate_reassignment_configuration(identity_id, config_type, exclusion_filters) + print("The response of WorkReassignmentApi->get_evaluate_reassignment_configuration:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkReassignmentApi->get_evaluate_reassignment_configuration: %s\n" % e) - path: /reassignment-configurations/types method: GET xCodeSample: @@ -17395,22 +16842,21 @@ from sailpoint.beta.api.work_reassignment_api import WorkReassignmentApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.config_type import ConfigType - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - try: - # List Reassignment Config Types - - results = WorkReassignmentApi(api_client).get_reassignment_config_types() - # Below is a request that includes all optional parameters - # results = WorkReassignmentApi(api_client).get_reassignment_config_types() - print("The response of WorkReassignmentApi->get_reassignment_config_types:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkReassignmentApi->get_reassignment_config_types: %s\n" % e) + try: + # List Reassignment Config Types + + results = WorkReassignmentApi(api_client).get_reassignment_config_types() + # Below is a request that includes all optional parameters + # results = WorkReassignmentApi(api_client).get_reassignment_config_types() + print("The response of WorkReassignmentApi->get_reassignment_config_types:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkReassignmentApi->get_reassignment_config_types: %s\n" % e) - path: /reassignment-configurations/{identityId} method: GET xCodeSample: @@ -17420,23 +16866,22 @@ from sailpoint.beta.api.work_reassignment_api import WorkReassignmentApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.configuration_response import ConfigurationResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - identity_id = '2c91808781a71ddb0181b9090b5c504f' # str | unique identity id # str | unique identity id - try: - # Get Reassignment Configuration - - results = WorkReassignmentApi(api_client).get_reassignment_configuration(identity_id=identity_id) - # Below is a request that includes all optional parameters - # results = WorkReassignmentApi(api_client).get_reassignment_configuration(identity_id) - print("The response of WorkReassignmentApi->get_reassignment_configuration:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkReassignmentApi->get_reassignment_configuration: %s\n" % e) + identity_id = '2c91808781a71ddb0181b9090b5c504f' # str | unique identity id # str | unique identity id + try: + # Get Reassignment Configuration + + results = WorkReassignmentApi(api_client).get_reassignment_configuration(identity_id=identity_id) + # Below is a request that includes all optional parameters + # results = WorkReassignmentApi(api_client).get_reassignment_configuration(identity_id) + print("The response of WorkReassignmentApi->get_reassignment_configuration:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkReassignmentApi->get_reassignment_configuration: %s\n" % e) - path: /reassignment-configurations/tenant-config method: GET xCodeSample: @@ -17446,22 +16891,21 @@ from sailpoint.beta.api.work_reassignment_api import WorkReassignmentApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.tenant_configuration_response import TenantConfigurationResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - try: - # Get Tenant-wide Reassignment Configuration settings - - results = WorkReassignmentApi(api_client).get_tenant_config_configuration() - # Below is a request that includes all optional parameters - # results = WorkReassignmentApi(api_client).get_tenant_config_configuration() - print("The response of WorkReassignmentApi->get_tenant_config_configuration:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkReassignmentApi->get_tenant_config_configuration: %s\n" % e) + try: + # Get Tenant-wide Reassignment Configuration settings + + results = WorkReassignmentApi(api_client).get_tenant_config_configuration() + # Below is a request that includes all optional parameters + # results = WorkReassignmentApi(api_client).get_tenant_config_configuration() + print("The response of WorkReassignmentApi->get_tenant_config_configuration:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkReassignmentApi->get_tenant_config_configuration: %s\n" % e) - path: /reassignment-configurations method: GET xCodeSample: @@ -17471,24 +16915,23 @@ from sailpoint.beta.api.work_reassignment_api import WorkReassignmentApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.configuration_response import ConfigurationResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - limit = 20 # int | Max number of results to return. (optional) (default to 20) # int | Max number of results to return. (optional) (default to 20) - offset = 10 # int | Offset into the full result set. Usually specified with *limit* to paginate through the results. Defaults to 0 if not specified. (optional) # int | Offset into the full result set. Usually specified with *limit* to paginate through the results. Defaults to 0 if not specified. (optional) - try: - # List Reassignment Configurations - - results = WorkReassignmentApi(api_client).list_reassignment_configurations() - # Below is a request that includes all optional parameters - # results = WorkReassignmentApi(api_client).list_reassignment_configurations(limit, offset) - print("The response of WorkReassignmentApi->list_reassignment_configurations:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkReassignmentApi->list_reassignment_configurations: %s\n" % e) + limit = 20 # int | Max number of results to return. (optional) (default to 20) # int | Max number of results to return. (optional) (default to 20) + offset = 10 # int | Offset into the full result set. Usually specified with *limit* to paginate through the results. Defaults to 0 if not specified. (optional) # int | Offset into the full result set. Usually specified with *limit* to paginate through the results. Defaults to 0 if not specified. (optional) + try: + # List Reassignment Configurations + + results = WorkReassignmentApi(api_client).list_reassignment_configurations() + # Below is a request that includes all optional parameters + # results = WorkReassignmentApi(api_client).list_reassignment_configurations(limit, offset) + print("The response of WorkReassignmentApi->list_reassignment_configurations:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkReassignmentApi->list_reassignment_configurations: %s\n" % e) - path: /reassignment-configurations/{identityId} method: PUT xCodeSample: @@ -17499,30 +16942,29 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.configuration_item_request import ConfigurationItemRequest from sailpoint.beta.models.configuration_item_response import ConfigurationItemResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - identity_id = '2c91808781a71ddb0181b9090b5c504e' # str | unique identity id # str | unique identity id - configuration_item_request = '''{ + identity_id = '2c91808781a71ddb0181b9090b5c504e' # str | unique identity id # str | unique identity id + configuration_item_request = '''{ "endDate" : "2022-07-30T17:00:00Z", "reassignedFromId" : "2c91808781a71ddb0181b9090b5c504e", "configType" : "ACCESS_REQUESTS", "reassignedToId" : "2c91808781a71ddb0181b9090b53504a", "startDate" : "2022-07-21T11:13:12.345Z" }''' # ConfigurationItemRequest | - try: - # Update Reassignment Configuration - new_configuration_item_request = ConfigurationItemRequest.from_json(configuration_item_request) - results = WorkReassignmentApi(api_client).put_reassignment_config(identity_id=identity_id, configuration_item_request=new_configuration_item_request) - # Below is a request that includes all optional parameters - # results = WorkReassignmentApi(api_client).put_reassignment_config(identity_id, new_configuration_item_request) - print("The response of WorkReassignmentApi->put_reassignment_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkReassignmentApi->put_reassignment_config: %s\n" % e) + try: + # Update Reassignment Configuration + new_configuration_item_request = ConfigurationItemRequest.from_json(configuration_item_request) + results = WorkReassignmentApi(api_client).put_reassignment_config(identity_id=identity_id, configuration_item_request=new_configuration_item_request) + # Below is a request that includes all optional parameters + # results = WorkReassignmentApi(api_client).put_reassignment_config(identity_id, new_configuration_item_request) + print("The response of WorkReassignmentApi->put_reassignment_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkReassignmentApi->put_reassignment_config: %s\n" % e) - path: /reassignment-configurations/tenant-config method: PUT xCodeSample: @@ -17533,24 +16975,23 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.tenant_configuration_request import TenantConfigurationRequest from sailpoint.beta.models.tenant_configuration_response import TenantConfigurationResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - tenant_configuration_request = '''{ + tenant_configuration_request = '''{ "configDetails" : { "disabled" : true } }''' # TenantConfigurationRequest | - try: - # Update Tenant-wide Reassignment Configuration settings - new_tenant_configuration_request = TenantConfigurationRequest.from_json(tenant_configuration_request) - results = WorkReassignmentApi(api_client).put_tenant_configuration(tenant_configuration_request=new_tenant_configuration_request) - # Below is a request that includes all optional parameters - # results = WorkReassignmentApi(api_client).put_tenant_configuration(new_tenant_configuration_request) - print("The response of WorkReassignmentApi->put_tenant_configuration:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkReassignmentApi->put_tenant_configuration: %s\n" % e) + try: + # Update Tenant-wide Reassignment Configuration settings + new_tenant_configuration_request = TenantConfigurationRequest.from_json(tenant_configuration_request) + results = WorkReassignmentApi(api_client).put_tenant_configuration(tenant_configuration_request=new_tenant_configuration_request) + # Below is a request that includes all optional parameters + # results = WorkReassignmentApi(api_client).put_tenant_configuration(new_tenant_configuration_request) + print("The response of WorkReassignmentApi->put_tenant_configuration:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkReassignmentApi->put_tenant_configuration: %s\n" % e) diff --git a/sailpoint/beta/docs/Methods/AccessModelMetadataApi.md b/sailpoint/beta/docs/Methods/AccessModelMetadataApi.md index 3e478cd2e..ba61b7858 100644 --- a/sailpoint/beta/docs/Methods/AccessModelMetadataApi.md +++ b/sailpoint/beta/docs/Methods/AccessModelMetadataApi.md @@ -66,7 +66,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.access_model_metadata_api import AccessModelMetadataApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.attribute_dto import AttributeDTO -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -81,7 +80,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccessModelMetadataApi(api_client).get_access_model_metadata_attribute(key) print("The response of AccessModelMetadataApi->get_access_model_metadata_attribute:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccessModelMetadataApi->get_access_model_metadata_attribute: %s\n" % e) ``` @@ -126,7 +125,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.access_model_metadata_api import AccessModelMetadataApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.attribute_value_dto import AttributeValueDTO -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -142,7 +140,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccessModelMetadataApi(api_client).get_access_model_metadata_attribute_value(key, value) print("The response of AccessModelMetadataApi->get_access_model_metadata_attribute_value:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccessModelMetadataApi->get_access_model_metadata_attribute_value: %s\n" % e) ``` @@ -186,7 +184,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.access_model_metadata_api import AccessModelMetadataApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.attribute_dto import AttributeDTO -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -201,7 +198,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccessModelMetadataApi(api_client).list_access_model_metadata_attribute(filters) print("The response of AccessModelMetadataApi->list_access_model_metadata_attribute:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccessModelMetadataApi->list_access_model_metadata_attribute: %s\n" % e) ``` @@ -245,7 +242,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.access_model_metadata_api import AccessModelMetadataApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.attribute_value_dto import AttributeValueDTO -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -260,7 +256,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccessModelMetadataApi(api_client).list_access_model_metadata_attribute_value(key) print("The response of AccessModelMetadataApi->list_access_model_metadata_attribute_value:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccessModelMetadataApi->list_access_model_metadata_attribute_value: %s\n" % e) ``` diff --git a/sailpoint/beta/docs/Methods/AccessProfilesApi.md b/sailpoint/beta/docs/Methods/AccessProfilesApi.md index 842d39f3a..c97cf5e92 100644 --- a/sailpoint/beta/docs/Methods/AccessProfilesApi.md +++ b/sailpoint/beta/docs/Methods/AccessProfilesApi.md @@ -96,7 +96,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.access_profiles_api import AccessProfilesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.access_profile import AccessProfile -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -195,7 +194,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccessProfilesApi(api_client).create_access_profile(new_access_profile) print("The response of AccessProfilesApi->create_access_profile:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccessProfilesApi->create_access_profile: %s\n" % e) ``` @@ -242,7 +241,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.beta.api.access_profiles_api import AccessProfilesApi from sailpoint.beta.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -304,7 +302,6 @@ from sailpoint.beta.api.access_profiles_api import AccessProfilesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.access_profile_bulk_delete_request import AccessProfileBulkDeleteRequest from sailpoint.beta.models.access_profile_bulk_delete_response import AccessProfileBulkDeleteResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -322,7 +319,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccessProfilesApi(api_client).delete_access_profiles_in_bulk(new_access_profile_bulk_delete_request) print("The response of AccessProfilesApi->delete_access_profiles_in_bulk:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccessProfilesApi->delete_access_profiles_in_bulk: %s\n" % e) ``` @@ -366,7 +363,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.access_profiles_api import AccessProfilesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.access_profile import AccessProfile -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -381,7 +377,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccessProfilesApi(api_client).get_access_profile(id) print("The response of AccessProfilesApi->get_access_profile:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccessProfilesApi->get_access_profile: %s\n" % e) ``` @@ -431,7 +427,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.access_profiles_api import AccessProfilesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.entitlement import Entitlement -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -451,7 +446,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccessProfilesApi(api_client).get_access_profile_entitlements(id, limit, offset, count, filters, sorters) print("The response of AccessProfilesApi->get_access_profile_entitlements:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccessProfilesApi->get_access_profile_entitlements: %s\n" % e) ``` @@ -503,7 +498,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.access_profiles_api import AccessProfilesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.access_profile import AccessProfile -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -525,7 +519,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccessProfilesApi(api_client).list_access_profiles(for_subadmin, limit, offset, count, filters, sorters, for_segment_ids, include_unsegmented) print("The response of AccessProfilesApi->list_access_profiles:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccessProfilesApi->list_access_profiles: %s\n" % e) ``` @@ -576,7 +570,6 @@ from sailpoint.beta.api.access_profiles_api import AccessProfilesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.access_profile import AccessProfile from sailpoint.beta.models.json_patch_operation import JsonPatchOperation -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -592,7 +585,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccessProfilesApi(api_client).patch_access_profile(id, new_json_patch_operation) print("The response of AccessProfilesApi->patch_access_profile:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccessProfilesApi->patch_access_profile: %s\n" % e) ``` @@ -644,7 +637,6 @@ from sailpoint.beta.api.access_profiles_api import AccessProfilesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.access_profile_bulk_update_request_inner import AccessProfileBulkUpdateRequestInner from sailpoint.beta.models.access_profile_update_item import AccessProfileUpdateItem -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -659,7 +651,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccessProfilesApi(api_client).update_access_profiles_in_bulk(new_access_profile_bulk_update_request_inner) print("The response of AccessProfilesApi->update_access_profiles_in_bulk:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccessProfilesApi->update_access_profiles_in_bulk: %s\n" % e) ``` diff --git a/sailpoint/beta/docs/Methods/AccessRequestApprovalsApi.md b/sailpoint/beta/docs/Methods/AccessRequestApprovalsApi.md index 3b6914fd1..891c02898 100644 --- a/sailpoint/beta/docs/Methods/AccessRequestApprovalsApi.md +++ b/sailpoint/beta/docs/Methods/AccessRequestApprovalsApi.md @@ -77,7 +77,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.access_request_approvals_api import AccessRequestApprovalsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.comment_dto import CommentDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -101,7 +100,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccessRequestApprovalsApi(api_client).approve_access_request(approval_id, new_comment_dto) print("The response of AccessRequestApprovalsApi->approve_access_request:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccessRequestApprovalsApi->approve_access_request: %s\n" % e) ``` @@ -147,7 +146,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.access_request_approvals_api import AccessRequestApprovalsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.forward_approval_dto import ForwardApprovalDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -166,7 +164,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccessRequestApprovalsApi(api_client).forward_access_request(approval_id, new_forward_approval_dto) print("The response of AccessRequestApprovalsApi->forward_access_request:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccessRequestApprovalsApi->forward_access_request: %s\n" % e) ``` @@ -211,7 +209,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.access_request_approvals_api import AccessRequestApprovalsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.approval_summary import ApprovalSummary -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -227,7 +224,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccessRequestApprovalsApi(api_client).get_access_request_approval_summary(owner_id, from_date) print("The response of AccessRequestApprovalsApi->get_access_request_approval_summary:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccessRequestApprovalsApi->get_access_request_approval_summary: %s\n" % e) ``` @@ -275,7 +272,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.access_request_approvals_api import AccessRequestApprovalsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.completed_approval import CompletedApproval -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -295,7 +291,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccessRequestApprovalsApi(api_client).list_completed_approvals(owner_id, limit, offset, count, filters, sorters) print("The response of AccessRequestApprovalsApi->list_completed_approvals:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccessRequestApprovalsApi->list_completed_approvals: %s\n" % e) ``` @@ -343,7 +339,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.access_request_approvals_api import AccessRequestApprovalsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.pending_approval import PendingApproval -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -363,7 +358,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccessRequestApprovalsApi(api_client).list_pending_approvals(owner_id, limit, offset, count, filters, sorters) print("The response of AccessRequestApprovalsApi->list_pending_approvals:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccessRequestApprovalsApi->list_pending_approvals: %s\n" % e) ``` @@ -409,7 +404,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.access_request_approvals_api import AccessRequestApprovalsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.comment_dto import CommentDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -433,7 +427,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccessRequestApprovalsApi(api_client).reject_access_request(approval_id, new_comment_dto) print("The response of AccessRequestApprovalsApi->reject_access_request:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccessRequestApprovalsApi->reject_access_request: %s\n" % e) ``` diff --git a/sailpoint/beta/docs/Methods/AccessRequestIdentityMetricsApi.md b/sailpoint/beta/docs/Methods/AccessRequestIdentityMetricsApi.md index c404fbc5d..b4db1a763 100644 --- a/sailpoint/beta/docs/Methods/AccessRequestIdentityMetricsApi.md +++ b/sailpoint/beta/docs/Methods/AccessRequestIdentityMetricsApi.md @@ -58,7 +58,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.beta.api.access_request_identity_metrics_api import AccessRequestIdentityMetricsApi from sailpoint.beta.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -75,7 +74,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccessRequestIdentityMetricsApi(api_client).get_access_request_identity_metrics(identity_id, requested_object_id, type) print("The response of AccessRequestIdentityMetricsApi->get_access_request_identity_metrics:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccessRequestIdentityMetricsApi->get_access_request_identity_metrics: %s\n" % e) ``` diff --git a/sailpoint/beta/docs/Methods/AccessRequestsApi.md b/sailpoint/beta/docs/Methods/AccessRequestsApi.md index 0697c83ec..f8f06cc53 100644 --- a/sailpoint/beta/docs/Methods/AccessRequestsApi.md +++ b/sailpoint/beta/docs/Methods/AccessRequestsApi.md @@ -75,7 +75,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.access_requests_api import AccessRequestsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.cancel_access_request import CancelAccessRequest -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -93,7 +92,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccessRequestsApi(api_client).cancel_access_request(new_cancel_access_request) print("The response of AccessRequestsApi->cancel_access_request:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccessRequestsApi->cancel_access_request: %s\n" % e) ``` @@ -148,7 +147,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.access_requests_api import AccessRequestsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.close_access_request import CloseAccessRequest -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -168,7 +166,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccessRequestsApi(api_client).close_access_request(new_close_access_request) print("The response of AccessRequestsApi->close_access_request:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccessRequestsApi->close_access_request: %s\n" % e) ``` @@ -243,7 +241,6 @@ from sailpoint.beta.api.access_requests_api import AccessRequestsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.access_request import AccessRequest from sailpoint.beta.models.access_request_response import AccessRequestResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -311,7 +308,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccessRequestsApi(api_client).create_access_request(new_access_request) print("The response of AccessRequestsApi->create_access_request:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccessRequestsApi->create_access_request: %s\n" % e) ``` @@ -352,7 +349,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.access_requests_api import AccessRequestsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.access_request_config import AccessRequestConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -366,7 +362,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccessRequestsApi(api_client).get_access_request_config() print("The response of AccessRequestsApi->get_access_request_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccessRequestsApi->get_access_request_config: %s\n" % e) ``` @@ -421,7 +417,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.access_requests_api import AccessRequestsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.requested_item_status import RequestedItemStatus -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -445,7 +440,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccessRequestsApi(api_client).list_access_request_status(requested_for, requested_by, regarding_identity, assigned_to, count, limit, offset, filters, sorters, request_state) print("The response of AccessRequestsApi->list_access_request_status:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccessRequestsApi->list_access_request_status: %s\n" % e) ``` @@ -489,7 +484,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.access_requests_api import AccessRequestsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.access_request_config import AccessRequestConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -529,7 +523,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccessRequestsApi(api_client).set_access_request_config(new_access_request_config) print("The response of AccessRequestsApi->set_access_request_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccessRequestsApi->set_access_request_config: %s\n" % e) ``` diff --git a/sailpoint/beta/docs/Methods/AccountActivitiesApi.md b/sailpoint/beta/docs/Methods/AccountActivitiesApi.md index 8e7fad411..824006147 100644 --- a/sailpoint/beta/docs/Methods/AccountActivitiesApi.md +++ b/sailpoint/beta/docs/Methods/AccountActivitiesApi.md @@ -88,7 +88,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.account_activities_api import AccountActivitiesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.cancelable_account_activity import CancelableAccountActivity -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -103,7 +102,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccountActivitiesApi(api_client).get_account_activity(id) print("The response of AccountActivitiesApi->get_account_activity:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccountActivitiesApi->get_account_activity: %s\n" % e) ``` @@ -155,7 +154,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.account_activities_api import AccountActivitiesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.cancelable_account_activity import CancelableAccountActivity -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -178,7 +176,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccountActivitiesApi(api_client).list_account_activities(requested_for, requested_by, regarding_identity, type, limit, offset, count, filters, sorters) print("The response of AccountActivitiesApi->list_account_activities:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccountActivitiesApi->list_account_activities: %s\n" % e) ``` diff --git a/sailpoint/beta/docs/Methods/AccountAggregationsApi.md b/sailpoint/beta/docs/Methods/AccountAggregationsApi.md index b1afb146d..61fb8548d 100644 --- a/sailpoint/beta/docs/Methods/AccountAggregationsApi.md +++ b/sailpoint/beta/docs/Methods/AccountAggregationsApi.md @@ -71,7 +71,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.account_aggregations_api import AccountAggregationsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.account_aggregation_status import AccountAggregationStatus -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -86,7 +85,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccountAggregationsApi(api_client).get_account_aggregation_status(id) print("The response of AccountAggregationsApi->get_account_aggregation_status:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccountAggregationsApi->get_account_aggregation_status: %s\n" % e) ``` diff --git a/sailpoint/beta/docs/Methods/AccountUsagesApi.md b/sailpoint/beta/docs/Methods/AccountUsagesApi.md index 741c263d7..be1aa6ffa 100644 --- a/sailpoint/beta/docs/Methods/AccountUsagesApi.md +++ b/sailpoint/beta/docs/Methods/AccountUsagesApi.md @@ -60,7 +60,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.account_usages_api import AccountUsagesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.account_usage import AccountUsage -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -79,7 +78,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccountUsagesApi(api_client).get_usages_by_account_id(account_id, limit, offset, count, sorters) print("The response of AccountUsagesApi->get_usages_by_account_id:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccountUsagesApi->get_usages_by_account_id: %s\n" % e) ``` diff --git a/sailpoint/beta/docs/Methods/AccountsApi.md b/sailpoint/beta/docs/Methods/AccountsApi.md index 58d451df4..d15b505fa 100644 --- a/sailpoint/beta/docs/Methods/AccountsApi.md +++ b/sailpoint/beta/docs/Methods/AccountsApi.md @@ -107,7 +107,6 @@ from sailpoint.beta.api.accounts_api import AccountsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.account_attributes_create import AccountAttributesCreate from sailpoint.beta.models.accounts_async_result import AccountsAsyncResult -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -131,7 +130,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccountsApi(api_client).create_account(new_account_attributes_create) print("The response of AccountsApi->create_account:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccountsApi->create_account: %s\n" % e) ``` @@ -180,7 +179,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.accounts_api import AccountsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.accounts_async_result import AccountsAsyncResult -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -195,7 +193,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccountsApi(api_client).delete_account(id) print("The response of AccountsApi->delete_account:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccountsApi->delete_account: %s\n" % e) ``` @@ -245,7 +243,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.accounts_api import AccountsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.task_result_dto import TaskResultDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -260,7 +257,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccountsApi(api_client).delete_account_async(id) print("The response of AccountsApi->delete_account_async:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccountsApi->delete_account_async: %s\n" % e) ``` @@ -308,7 +305,6 @@ from sailpoint.beta.api.accounts_api import AccountsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.account_toggle_request import AccountToggleRequest from sailpoint.beta.models.accounts_async_result import AccountsAsyncResult -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -327,7 +323,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccountsApi(api_client).disable_account(id, new_account_toggle_request) print("The response of AccountsApi->disable_account:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccountsApi->disable_account: %s\n" % e) ``` @@ -371,7 +367,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.beta.api.accounts_api import AccountsApi from sailpoint.beta.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -386,7 +381,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccountsApi(api_client).disable_account_for_identity(id) print("The response of AccountsApi->disable_account_for_identity:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccountsApi->disable_account_for_identity: %s\n" % e) ``` @@ -431,7 +426,6 @@ from sailpoint.beta.api.accounts_api import AccountsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.bulk_identities_accounts_response import BulkIdentitiesAccountsResponse from sailpoint.beta.models.identities_accounts_bulk_request import IdentitiesAccountsBulkRequest -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -448,7 +442,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccountsApi(api_client).disable_accounts_for_identities(new_identities_accounts_bulk_request) print("The response of AccountsApi->disable_accounts_for_identities:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccountsApi->disable_accounts_for_identities: %s\n" % e) ``` @@ -496,7 +490,6 @@ from sailpoint.beta.api.accounts_api import AccountsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.account_toggle_request import AccountToggleRequest from sailpoint.beta.models.accounts_async_result import AccountsAsyncResult -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -515,7 +508,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccountsApi(api_client).enable_account(id, new_account_toggle_request) print("The response of AccountsApi->enable_account:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccountsApi->enable_account: %s\n" % e) ``` @@ -559,7 +552,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.beta.api.accounts_api import AccountsApi from sailpoint.beta.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -574,7 +566,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccountsApi(api_client).enable_account_for_identity(id) print("The response of AccountsApi->enable_account_for_identity:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccountsApi->enable_account_for_identity: %s\n" % e) ``` @@ -619,7 +611,6 @@ from sailpoint.beta.api.accounts_api import AccountsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.bulk_identities_accounts_response import BulkIdentitiesAccountsResponse from sailpoint.beta.models.identities_accounts_bulk_request import IdentitiesAccountsBulkRequest -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -636,7 +627,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccountsApi(api_client).enable_accounts_for_identities(new_identities_accounts_bulk_request) print("The response of AccountsApi->enable_accounts_for_identities:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccountsApi->enable_accounts_for_identities: %s\n" % e) ``` @@ -682,7 +673,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.accounts_api import AccountsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.account import Account -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -697,7 +687,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccountsApi(api_client).get_account(id) print("The response of AccountsApi->get_account:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccountsApi->get_account: %s\n" % e) ``` @@ -746,7 +736,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.accounts_api import AccountsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.entitlement import Entitlement -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -764,7 +753,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccountsApi(api_client).get_account_entitlements(id, offset, limit, count) print("The response of AccountsApi->get_account_entitlements:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccountsApi->get_account_entitlements: %s\n" % e) ``` @@ -813,7 +802,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.accounts_api import AccountsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.account import Account -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -833,7 +821,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccountsApi(api_client).list_accounts(detail_level, limit, offset, count, filters, sorters) print("The response of AccountsApi->list_accounts:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccountsApi->list_accounts: %s\n" % e) ``` @@ -887,7 +875,6 @@ from sailpoint.beta.api.accounts_api import AccountsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.account_attributes import AccountAttributes from sailpoint.beta.models.accounts_async_result import AccountsAsyncResult -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -911,7 +898,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccountsApi(api_client).put_account(id, new_account_attributes) print("The response of AccountsApi->put_account:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccountsApi->put_account: %s\n" % e) ``` @@ -957,7 +944,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.accounts_api import AccountsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.accounts_async_result import AccountsAsyncResult -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -972,7 +958,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccountsApi(api_client).submit_reload_account(id) print("The response of AccountsApi->submit_reload_account:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccountsApi->submit_reload_account: %s\n" % e) ``` @@ -1021,7 +1007,6 @@ from sailpoint.beta.api.accounts_api import AccountsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.account_unlock_request import AccountUnlockRequest from sailpoint.beta.models.accounts_async_result import AccountsAsyncResult -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1041,7 +1026,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccountsApi(api_client).unlock_account(id, new_account_unlock_request) print("The response of AccountsApi->unlock_account:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccountsApi->unlock_account: %s\n" % e) ``` @@ -1097,7 +1082,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.beta.api.accounts_api import AccountsApi from sailpoint.beta.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1113,7 +1097,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccountsApi(api_client).update_account(id, new_request_body) print("The response of AccountsApi->update_account:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccountsApi->update_account: %s\n" % e) ``` diff --git a/sailpoint/beta/docs/Methods/ApplicationDiscoveryApi.md b/sailpoint/beta/docs/Methods/ApplicationDiscoveryApi.md index 62d702527..1cbad3cd1 100644 --- a/sailpoint/beta/docs/Methods/ApplicationDiscoveryApi.md +++ b/sailpoint/beta/docs/Methods/ApplicationDiscoveryApi.md @@ -59,7 +59,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.beta.api.application_discovery_api import ApplicationDiscoveryApi from sailpoint.beta.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -121,7 +120,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.application_discovery_api import ApplicationDiscoveryApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.get_discovered_applications200_response_inner import GetDiscoveredApplications200ResponseInner -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -140,7 +138,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ApplicationDiscoveryApi(api_client).get_discovered_applications(limit, offset, detail, filter, sorters) print("The response of ApplicationDiscoveryApi->get_discovered_applications:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ApplicationDiscoveryApi->get_discovered_applications: %s\n" % e) ``` @@ -184,7 +182,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.application_discovery_api import ApplicationDiscoveryApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.manual_discover_applications_template import ManualDiscoverApplicationsTemplate -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -198,7 +195,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ApplicationDiscoveryApi(api_client).get_manual_discover_applications_csv_template() print("The response of ApplicationDiscoveryApi->get_manual_discover_applications_csv_template:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ApplicationDiscoveryApi->get_manual_discover_applications_csv_template: %s\n" % e) ``` @@ -244,7 +241,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.application_discovery_api import ApplicationDiscoveryApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.json_patch_operations import JsonPatchOperations -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -302,7 +298,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.beta.api.application_discovery_api import ApplicationDiscoveryApi from sailpoint.beta.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() diff --git a/sailpoint/beta/docs/Methods/ApprovalsApi.md b/sailpoint/beta/docs/Methods/ApprovalsApi.md index 78aa17537..0f04b4074 100644 --- a/sailpoint/beta/docs/Methods/ApprovalsApi.md +++ b/sailpoint/beta/docs/Methods/ApprovalsApi.md @@ -57,7 +57,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.approvals_api import ApprovalsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.approval import Approval -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -72,7 +71,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ApprovalsApi(api_client).get_approval(id) print("The response of ApprovalsApi->get_approval:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ApprovalsApi->get_approval: %s\n" % e) ``` @@ -119,7 +118,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.approvals_api import ApprovalsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.approval import Approval -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -136,7 +134,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ApprovalsApi(api_client).get_approvals(mine, requester_id, filters) print("The response of ApprovalsApi->get_approvals:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ApprovalsApi->get_approvals: %s\n" % e) ``` diff --git a/sailpoint/beta/docs/Methods/AppsApi.md b/sailpoint/beta/docs/Methods/AppsApi.md index 6ae47a774..34d4650f6 100644 --- a/sailpoint/beta/docs/Methods/AppsApi.md +++ b/sailpoint/beta/docs/Methods/AppsApi.md @@ -69,7 +69,6 @@ from sailpoint.beta.api.apps_api import AppsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.source_app import SourceApp from sailpoint.beta.models.source_app_create_dto import SourceAppCreateDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -93,7 +92,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AppsApi(api_client).create_source_app(new_source_app_create_dto) print("The response of AppsApi->create_source_app:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AppsApi->create_source_app: %s\n" % e) ``` @@ -139,7 +138,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.apps_api import AppsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.access_profile_details import AccessProfileDetails -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -156,7 +154,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AppsApi(api_client).delete_access_profiles_from_source_app_by_bulk(id, new_request_body, limit) print("The response of AppsApi->delete_access_profiles_from_source_app_by_bulk:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AppsApi->delete_access_profiles_from_source_app_by_bulk: %s\n" % e) ``` @@ -200,7 +198,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.apps_api import AppsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.source_app import SourceApp -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -215,7 +212,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AppsApi(api_client).delete_source_app(id) print("The response of AppsApi->delete_source_app:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AppsApi->delete_source_app: %s\n" % e) ``` @@ -260,7 +257,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.apps_api import AppsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.source_app import SourceApp -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -275,7 +271,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AppsApi(api_client).get_source_app(id) print("The response of AppsApi->get_source_app:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AppsApi->get_source_app: %s\n" % e) ``` @@ -322,7 +318,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.apps_api import AppsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.access_profile_details import AccessProfileDetails -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -340,7 +335,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AppsApi(api_client).list_access_profiles_for_source_app(id, limit, offset, filters) print("The response of AppsApi->list_access_profiles_for_source_app:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AppsApi->list_access_profiles_for_source_app: %s\n" % e) ``` @@ -390,7 +385,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.apps_api import AppsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.source_app import SourceApp -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -409,7 +403,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AppsApi(api_client).list_all_source_app(limit, count, offset, sorters, filters) print("The response of AppsApi->list_all_source_app:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AppsApi->list_all_source_app: %s\n" % e) ``` @@ -457,7 +451,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.apps_api import AppsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.user_app import UserApp -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -475,7 +468,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AppsApi(api_client).list_all_user_apps(filters, limit, count, offset) print("The response of AppsApi->list_all_user_apps:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AppsApi->list_all_user_apps: %s\n" % e) ``` @@ -523,7 +516,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.apps_api import AppsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.source_app import SourceApp -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -542,7 +534,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AppsApi(api_client).list_assigned_source_app(limit, count, offset, sorters, filters) print("The response of AppsApi->list_assigned_source_app:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AppsApi->list_assigned_source_app: %s\n" % e) ``` @@ -589,7 +581,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.apps_api import AppsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.app_account_details import AppAccountDetails -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -607,7 +598,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AppsApi(api_client).list_available_accounts_for_user_app(id, limit, count, offset) print("The response of AppsApi->list_available_accounts_for_user_app:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AppsApi->list_available_accounts_for_user_app: %s\n" % e) ``` @@ -655,7 +646,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.apps_api import AppsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.source_app import SourceApp -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -674,7 +664,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AppsApi(api_client).list_available_source_apps(limit, count, offset, sorters, filters) print("The response of AppsApi->list_available_source_apps:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AppsApi->list_available_source_apps: %s\n" % e) ``` @@ -721,7 +711,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.apps_api import AppsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.user_app import UserApp -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -739,7 +728,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AppsApi(api_client).list_owned_user_apps(limit, count, offset, filters) print("The response of AppsApi->list_owned_user_apps:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AppsApi->list_owned_user_apps: %s\n" % e) ``` @@ -788,7 +777,6 @@ from sailpoint.beta.api.apps_api import AppsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.json_patch_operation import JsonPatchOperation from sailpoint.beta.models.source_app_patch_dto import SourceAppPatchDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -804,7 +792,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AppsApi(api_client).patch_source_app(id, new_json_patch_operation) print("The response of AppsApi->patch_source_app:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AppsApi->patch_source_app: %s\n" % e) ``` @@ -852,7 +840,6 @@ from sailpoint.beta.api.apps_api import AppsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.json_patch_operation import JsonPatchOperation from sailpoint.beta.models.user_app import UserApp -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -868,7 +855,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AppsApi(api_client).patch_user_app(id, new_json_patch_operation) print("The response of AppsApi->patch_user_app:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AppsApi->patch_user_app: %s\n" % e) ``` @@ -915,7 +902,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.apps_api import AppsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.source_app_bulk_update_request import SourceAppBulkUpdateRequest -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() diff --git a/sailpoint/beta/docs/Methods/AuthProfileApi.md b/sailpoint/beta/docs/Methods/AuthProfileApi.md index 961b9611e..c238e0009 100644 --- a/sailpoint/beta/docs/Methods/AuthProfileApi.md +++ b/sailpoint/beta/docs/Methods/AuthProfileApi.md @@ -62,7 +62,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.auth_profile_api import AuthProfileApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.auth_profile import AuthProfile -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -77,7 +76,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AuthProfileApi(api_client).get_profile_config(id) print("The response of AuthProfileApi->get_profile_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AuthProfileApi->get_profile_config: %s\n" % e) ``` @@ -118,7 +117,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.auth_profile_api import AuthProfileApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.auth_profile_summary import AuthProfileSummary -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -132,7 +130,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AuthProfileApi(api_client).get_profile_config_list() print("The response of AuthProfileApi->get_profile_config_list:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AuthProfileApi->get_profile_config_list: %s\n" % e) ``` @@ -179,7 +177,6 @@ from sailpoint.beta.api.auth_profile_api import AuthProfileApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.auth_profile import AuthProfile from sailpoint.beta.models.json_patch_operation import JsonPatchOperation -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -195,7 +192,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AuthProfileApi(api_client).patch_profile_config(id, new_json_patch_operation) print("The response of AuthProfileApi->patch_profile_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AuthProfileApi->patch_profile_config: %s\n" % e) ``` diff --git a/sailpoint/beta/docs/Methods/CertificationCampaignsApi.md b/sailpoint/beta/docs/Methods/CertificationCampaignsApi.md index 5d39bddec..e1209b300 100644 --- a/sailpoint/beta/docs/Methods/CertificationCampaignsApi.md +++ b/sailpoint/beta/docs/Methods/CertificationCampaignsApi.md @@ -156,7 +156,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.complete_campaign_options import CompleteCampaignOptions -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -174,7 +173,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationCampaignsApi(api_client).complete_campaign(id, new_complete_campaign_options) print("The response of CertificationCampaignsApi->complete_campaign:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationCampaignsApi->complete_campaign: %s\n" % e) ``` @@ -224,7 +223,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.campaign import Campaign -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -347,7 +345,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationCampaignsApi(api_client).create_campaign(new_campaign) print("The response of CertificationCampaignsApi->create_campaign:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationCampaignsApi->create_campaign: %s\n" % e) ``` @@ -397,7 +395,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.campaign_template import CampaignTemplate -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -535,7 +532,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationCampaignsApi(api_client).create_campaign_template(new_campaign_template) print("The response of CertificationCampaignsApi->create_campaign_template:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationCampaignsApi->create_campaign_template: %s\n" % e) ``` @@ -585,7 +582,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.beta.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.beta.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -648,7 +644,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.beta.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.beta.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -712,7 +707,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.delete_campaigns_request import DeleteCampaignsRequest -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -729,7 +723,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationCampaignsApi(api_client).delete_campaigns(new_delete_campaigns_request) print("The response of CertificationCampaignsApi->delete_campaigns:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationCampaignsApi->delete_campaigns: %s\n" % e) ``` @@ -784,7 +778,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.get_active_campaigns200_response_inner import GetActiveCampaigns200ResponseInner -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -804,7 +797,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationCampaignsApi(api_client).get_active_campaigns(detail, limit, offset, count, filters, sorters) print("The response of CertificationCampaignsApi->get_active_campaigns:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationCampaignsApi->get_active_campaigns: %s\n" % e) ``` @@ -855,7 +848,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.slimcampaign import Slimcampaign -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -870,7 +862,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationCampaignsApi(api_client).get_campaign(id) print("The response of CertificationCampaignsApi->get_campaign:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationCampaignsApi->get_campaign: %s\n" % e) ``` @@ -921,7 +913,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.campaign_report import CampaignReport -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -936,7 +927,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationCampaignsApi(api_client).get_campaign_reports(id) print("The response of CertificationCampaignsApi->get_campaign_reports:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationCampaignsApi->get_campaign_reports: %s\n" % e) ``` @@ -983,7 +974,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.campaign_reports_config import CampaignReportsConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -997,7 +987,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationCampaignsApi(api_client).get_campaign_reports_config() print("The response of CertificationCampaignsApi->get_campaign_reports_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationCampaignsApi->get_campaign_reports_config: %s\n" % e) ``` @@ -1048,7 +1038,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.campaign_template import CampaignTemplate -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1063,7 +1052,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationCampaignsApi(api_client).get_campaign_template(id) print("The response of CertificationCampaignsApi->get_campaign_template:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationCampaignsApi->get_campaign_template: %s\n" % e) ``` @@ -1114,7 +1103,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.schedule import Schedule -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1129,7 +1117,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationCampaignsApi(api_client).get_campaign_template_schedule(id) print("The response of CertificationCampaignsApi->get_campaign_template_schedule:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationCampaignsApi->get_campaign_template_schedule: %s\n" % e) ``` @@ -1185,7 +1173,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.campaign_template import CampaignTemplate -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1204,7 +1191,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationCampaignsApi(api_client).get_campaign_templates(limit, offset, count, sorters, filters) print("The response of CertificationCampaignsApi->get_campaign_templates:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationCampaignsApi->get_campaign_templates: %s\n" % e) ``` @@ -1257,7 +1244,6 @@ from sailpoint.beta.api.certification_campaigns_api import CertificationCampaign from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.admin_review_reassign import AdminReviewReassign from sailpoint.beta.models.certification_task import CertificationTask -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1280,7 +1266,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationCampaignsApi(api_client).move(id, new_admin_review_reassign) print("The response of CertificationCampaignsApi->move:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationCampaignsApi->move: %s\n" % e) ``` @@ -1333,7 +1319,6 @@ from sailpoint.beta.api.certification_campaigns_api import CertificationCampaign from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.campaign_template import CampaignTemplate from sailpoint.beta.models.json_patch_operation import JsonPatchOperation -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1349,7 +1334,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationCampaignsApi(api_client).patch_campaign_template(id, new_json_patch_operation) print("The response of CertificationCampaignsApi->patch_campaign_template:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationCampaignsApi->patch_campaign_template: %s\n" % e) ``` @@ -1399,7 +1384,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.campaign_reports_config import CampaignReportsConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1416,7 +1400,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationCampaignsApi(api_client).set_campaign_reports_config(new_campaign_reports_config) print("The response of CertificationCampaignsApi->set_campaign_reports_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationCampaignsApi->set_campaign_reports_config: %s\n" % e) ``` @@ -1469,7 +1453,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.schedule import Schedule -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1554,7 +1537,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.activate_campaign_options import ActivateCampaignOptions -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1572,7 +1554,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationCampaignsApi(api_client).start_campaign(id, new_activate_campaign_options) print("The response of CertificationCampaignsApi->start_campaign:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationCampaignsApi->start_campaign: %s\n" % e) ``` @@ -1622,7 +1604,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.beta.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.beta.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1637,7 +1618,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationCampaignsApi(api_client).start_campaign_remediation_scan(id) print("The response of CertificationCampaignsApi->start_campaign_remediation_scan:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationCampaignsApi->start_campaign_remediation_scan: %s\n" % e) ``` @@ -1689,7 +1670,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.report_type import ReportType -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1705,7 +1685,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationCampaignsApi(api_client).start_campaign_report(id, type) print("The response of CertificationCampaignsApi->start_campaign_report:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationCampaignsApi->start_campaign_report: %s\n" % e) ``` @@ -1767,7 +1747,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.campaign_reference import CampaignReference -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1782,7 +1761,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationCampaignsApi(api_client).start_generate_campaign_template(id) print("The response of CertificationCampaignsApi->start_generate_campaign_template:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationCampaignsApi->start_generate_campaign_template: %s\n" % e) ``` @@ -1834,7 +1813,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.slimcampaign import Slimcampaign -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1850,7 +1828,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationCampaignsApi(api_client).update_campaign(id, new_request_body) print("The response of CertificationCampaignsApi->update_campaign:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationCampaignsApi->update_campaign: %s\n" % e) ``` diff --git a/sailpoint/beta/docs/Methods/CertificationsApi.md b/sailpoint/beta/docs/Methods/CertificationsApi.md index b113dc764..f9a3059ce 100644 --- a/sailpoint/beta/docs/Methods/CertificationsApi.md +++ b/sailpoint/beta/docs/Methods/CertificationsApi.md @@ -82,7 +82,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.certifications_api import CertificationsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.permission_dto import PermissionDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -102,7 +101,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationsApi(api_client).get_identity_certification_item_permissions(certification_id, item_id, filters, limit, offset, count) print("The response of CertificationsApi->get_identity_certification_item_permissions:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationsApi->get_identity_certification_item_permissions: %s\n" % e) ``` @@ -147,7 +146,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.certifications_api import CertificationsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.identity_certification_task import IdentityCertificationTask -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -162,7 +160,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationsApi(api_client).get_identity_certification_pending_tasks(id) print("The response of CertificationsApi->get_identity_certification_pending_tasks:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationsApi->get_identity_certification_pending_tasks: %s\n" % e) ``` @@ -208,7 +206,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.certifications_api import CertificationsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.identity_certification_task import IdentityCertificationTask -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -224,7 +221,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationsApi(api_client).get_identity_certification_task_status(id, task_id) print("The response of CertificationsApi->get_identity_certification_task_status:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationsApi->get_identity_certification_task_status: %s\n" % e) ``` @@ -277,7 +274,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.certifications_api import CertificationsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.identity_reference_with_name_and_email import IdentityReferenceWithNameAndEmail -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -297,7 +293,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationsApi(api_client).list_certification_reviewers(id, limit, offset, count, filters, sorters) print("The response of CertificationsApi->list_certification_reviewers:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationsApi->list_certification_reviewers: %s\n" % e) ``` @@ -346,7 +342,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.certifications_api import CertificationsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.certification_dto import CertificationDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -366,7 +361,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationsApi(api_client).list_certifications(reviewer_identitiy, limit, offset, count, filters, sorters) print("The response of CertificationsApi->list_certifications:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationsApi->list_certifications: %s\n" % e) ``` @@ -416,7 +411,6 @@ from sailpoint.beta.api.certifications_api import CertificationsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.identity_certification_task import IdentityCertificationTask from sailpoint.beta.models.review_reassign import ReviewReassign -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -442,7 +436,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationsApi(api_client).submit_reassign_certs_async(id, new_review_reassign) print("The response of CertificationsApi->submit_reassign_certs_async:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationsApi->submit_reassign_certs_async: %s\n" % e) ``` diff --git a/sailpoint/beta/docs/Methods/ConnectorRuleManagementApi.md b/sailpoint/beta/docs/Methods/ConnectorRuleManagementApi.md index 99ae11b64..3c8af1fd9 100644 --- a/sailpoint/beta/docs/Methods/ConnectorRuleManagementApi.md +++ b/sailpoint/beta/docs/Methods/ConnectorRuleManagementApi.md @@ -66,7 +66,6 @@ from sailpoint.beta.api.connector_rule_management_api import ConnectorRuleManage from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.connector_rule_create_request import ConnectorRuleCreateRequest from sailpoint.beta.models.connector_rule_response import ConnectorRuleResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -106,7 +105,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ConnectorRuleManagementApi(api_client).create_connector_rule(new_connector_rule_create_request) print("The response of ConnectorRuleManagementApi->create_connector_rule:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ConnectorRuleManagementApi->create_connector_rule: %s\n" % e) ``` @@ -151,7 +150,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.beta.api.connector_rule_management_api import ConnectorRuleManagementApi from sailpoint.beta.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -210,7 +208,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.connector_rule_management_api import ConnectorRuleManagementApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.connector_rule_response import ConnectorRuleResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -225,7 +222,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ConnectorRuleManagementApi(api_client).get_connector_rule(id) print("The response of ConnectorRuleManagementApi->get_connector_rule:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ConnectorRuleManagementApi->get_connector_rule: %s\n" % e) ``` @@ -267,7 +264,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.connector_rule_management_api import ConnectorRuleManagementApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.connector_rule_response import ConnectorRuleResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -281,7 +277,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ConnectorRuleManagementApi(api_client).get_connector_rule_list() print("The response of ConnectorRuleManagementApi->get_connector_rule_list:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ConnectorRuleManagementApi->get_connector_rule_list: %s\n" % e) ``` @@ -329,7 +325,6 @@ from sailpoint.beta.api.connector_rule_management_api import ConnectorRuleManage from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.connector_rule_response import ConnectorRuleResponse from sailpoint.beta.models.connector_rule_update_request import ConnectorRuleUpdateRequest -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -371,7 +366,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ConnectorRuleManagementApi(api_client).update_connector_rule(id, new_connector_rule_update_request) print("The response of ConnectorRuleManagementApi->update_connector_rule:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ConnectorRuleManagementApi->update_connector_rule: %s\n" % e) ``` @@ -417,7 +412,6 @@ from sailpoint.beta.api.connector_rule_management_api import ConnectorRuleManage from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.connector_rule_validation_response import ConnectorRuleValidationResponse from sailpoint.beta.models.source_code import SourceCode -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -435,7 +429,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ConnectorRuleManagementApi(api_client).validate_connector_rule(new_source_code) print("The response of ConnectorRuleManagementApi->validate_connector_rule:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ConnectorRuleManagementApi->validate_connector_rule: %s\n" % e) ``` diff --git a/sailpoint/beta/docs/Methods/ConnectorsApi.md b/sailpoint/beta/docs/Methods/ConnectorsApi.md index 404c64caf..d2ab7768d 100644 --- a/sailpoint/beta/docs/Methods/ConnectorsApi.md +++ b/sailpoint/beta/docs/Methods/ConnectorsApi.md @@ -72,7 +72,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.connectors_api import ConnectorsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.v3_connector_dto import V3ConnectorDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -91,7 +90,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ConnectorsApi(api_client).get_connector_list(filters, limit, offset, count, locale) print("The response of ConnectorsApi->get_connector_list:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ConnectorsApi->get_connector_list: %s\n" % e) ``` diff --git a/sailpoint/beta/docs/Methods/CustomFormsApi.md b/sailpoint/beta/docs/Methods/CustomFormsApi.md index d107a893e..083a42eba 100644 --- a/sailpoint/beta/docs/Methods/CustomFormsApi.md +++ b/sailpoint/beta/docs/Methods/CustomFormsApi.md @@ -80,7 +80,6 @@ from sailpoint.beta.api.custom_forms_api import CustomFormsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.create_form_definition_request import CreateFormDefinitionRequest from sailpoint.beta.models.form_definition_response import FormDefinitionResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -205,7 +204,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CustomFormsApi(api_client).create_form_definition(new_create_form_definition_request) print("The response of CustomFormsApi->create_form_definition:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CustomFormsApi->create_form_definition: %s\n" % e) ``` @@ -250,7 +249,6 @@ from sailpoint.beta.api.custom_forms_api import CustomFormsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.create_form_definition_request import CreateFormDefinitionRequest from sailpoint.beta.models.form_definition_response import FormDefinitionResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -375,7 +373,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CustomFormsApi(api_client).create_form_definition_by_template(new_create_form_definition_request) print("The response of CustomFormsApi->create_form_definition_by_template:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CustomFormsApi->create_form_definition_by_template: %s\n" % e) ``` @@ -421,7 +419,6 @@ from sailpoint.beta.api.custom_forms_api import CustomFormsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.form_definition_dynamic_schema_request import FormDefinitionDynamicSchemaRequest from sailpoint.beta.models.form_definition_dynamic_schema_response import FormDefinitionDynamicSchemaResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -444,7 +441,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CustomFormsApi(api_client).create_form_definition_dynamic_schema(new_body) print("The response of CustomFormsApi->create_form_definition_dynamic_schema:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CustomFormsApi->create_form_definition_dynamic_schema: %s\n" % e) ``` @@ -493,7 +490,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.custom_forms_api import CustomFormsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.form_definition_file_upload_response import FormDefinitionFileUploadResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -509,7 +505,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CustomFormsApi(api_client).create_form_definition_file_request(form_definition_id, file) print("The response of CustomFormsApi->create_form_definition_file_request:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CustomFormsApi->create_form_definition_file_request: %s\n" % e) ``` @@ -554,7 +550,6 @@ from sailpoint.beta.api.custom_forms_api import CustomFormsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.create_form_instance_request import CreateFormInstanceRequest from sailpoint.beta.models.form_instance_response import FormInstanceResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -589,7 +584,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CustomFormsApi(api_client).create_form_instance(new_body) print("The response of CustomFormsApi->create_form_instance:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CustomFormsApi->create_form_instance: %s\n" % e) ``` @@ -633,7 +628,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.beta.api.custom_forms_api import CustomFormsApi from sailpoint.beta.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -648,7 +642,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CustomFormsApi(api_client).delete_form_definition(form_definition_id) print("The response of CustomFormsApi->delete_form_definition:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CustomFormsApi->delete_form_definition: %s\n" % e) ``` @@ -695,7 +689,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.custom_forms_api import CustomFormsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.export_form_definitions_by_tenant200_response_inner import ExportFormDefinitionsByTenant200ResponseInner -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -713,7 +706,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CustomFormsApi(api_client).export_form_definitions_by_tenant(offset, limit, filters, sorters) print("The response of CustomFormsApi->export_form_definitions_by_tenant:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CustomFormsApi->export_form_definitions_by_tenant: %s\n" % e) ``` @@ -759,7 +752,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.beta.api.custom_forms_api import CustomFormsApi from sailpoint.beta.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -775,7 +767,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CustomFormsApi(api_client).get_file_from_s3(form_definition_id, file_id) print("The response of CustomFormsApi->get_file_from_s3:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CustomFormsApi->get_file_from_s3: %s\n" % e) ``` @@ -820,7 +812,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.custom_forms_api import CustomFormsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.form_definition_response import FormDefinitionResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -835,7 +826,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CustomFormsApi(api_client).get_form_definition_by_key(form_definition_id) print("The response of CustomFormsApi->get_form_definition_by_key:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CustomFormsApi->get_form_definition_by_key: %s\n" % e) ``` @@ -880,7 +871,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.custom_forms_api import CustomFormsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.form_instance_response import FormInstanceResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -895,7 +885,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CustomFormsApi(api_client).get_form_instance_by_key(form_instance_id) print("The response of CustomFormsApi->get_form_instance_by_key:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CustomFormsApi->get_form_instance_by_key: %s\n" % e) ``` @@ -941,7 +931,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.beta.api.custom_forms_api import CustomFormsApi from sailpoint.beta.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -957,7 +946,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CustomFormsApi(api_client).get_form_instance_file(form_instance_id, file_id) print("The response of CustomFormsApi->get_form_instance_file:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CustomFormsApi->get_form_instance_file: %s\n" % e) ``` @@ -1002,7 +991,6 @@ from sailpoint.beta.api.custom_forms_api import CustomFormsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.import_form_definitions202_response import ImportFormDefinitions202Response from sailpoint.beta.models.import_form_definitions_request_inner import ImportFormDefinitionsRequestInner -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1017,7 +1005,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CustomFormsApi(api_client).import_form_definitions(new_body) print("The response of CustomFormsApi->import_form_definitions:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CustomFormsApi->import_form_definitions: %s\n" % e) ``` @@ -1063,7 +1051,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.custom_forms_api import CustomFormsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.form_definition_response import FormDefinitionResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1079,7 +1066,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CustomFormsApi(api_client).patch_form_definition(form_definition_id, new_body) print("The response of CustomFormsApi->patch_form_definition:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CustomFormsApi->patch_form_definition: %s\n" % e) ``` @@ -1126,7 +1113,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.custom_forms_api import CustomFormsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.form_instance_response import FormInstanceResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1142,7 +1128,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CustomFormsApi(api_client).patch_form_instance(form_instance_id, new_body) print("The response of CustomFormsApi->patch_form_instance:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CustomFormsApi->patch_form_instance: %s\n" % e) ``` @@ -1189,7 +1175,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.custom_forms_api import CustomFormsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.list_form_definitions_by_tenant_response import ListFormDefinitionsByTenantResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1207,7 +1192,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CustomFormsApi(api_client).search_form_definitions_by_tenant(offset, limit, filters, sorters) print("The response of CustomFormsApi->search_form_definitions_by_tenant:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CustomFormsApi->search_form_definitions_by_tenant: %s\n" % e) ``` @@ -1257,7 +1242,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.custom_forms_api import CustomFormsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.list_form_element_data_by_element_id_response import ListFormElementDataByElementIDResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1276,7 +1260,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CustomFormsApi(api_client).search_form_element_data_by_element_id(form_instance_id, form_element_id, limit, filters, query) print("The response of CustomFormsApi->search_form_element_data_by_element_id:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CustomFormsApi->search_form_element_data_by_element_id: %s\n" % e) ``` @@ -1317,7 +1301,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.custom_forms_api import CustomFormsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.form_instance_response import FormInstanceResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1331,7 +1314,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CustomFormsApi(api_client).search_form_instances_by_tenant() print("The response of CustomFormsApi->search_form_instances_by_tenant:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CustomFormsApi->search_form_instances_by_tenant: %s\n" % e) ``` @@ -1372,7 +1355,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.custom_forms_api import CustomFormsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.list_predefined_select_options_response import ListPredefinedSelectOptionsResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1386,7 +1368,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CustomFormsApi(api_client).search_pre_defined_select_options() print("The response of CustomFormsApi->search_pre_defined_select_options:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CustomFormsApi->search_pre_defined_select_options: %s\n" % e) ``` @@ -1436,7 +1418,6 @@ from sailpoint.beta.api.custom_forms_api import CustomFormsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.form_element_preview_request import FormElementPreviewRequest from sailpoint.beta.models.preview_data_source_response import PreviewDataSourceResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1465,7 +1446,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CustomFormsApi(api_client).show_preview_data_source(form_definition_id, limit, filters, query, new_form_element_preview_request) print("The response of CustomFormsApi->show_preview_data_source:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CustomFormsApi->show_preview_data_source: %s\n" % e) ``` diff --git a/sailpoint/beta/docs/Methods/CustomPasswordInstructionsApi.md b/sailpoint/beta/docs/Methods/CustomPasswordInstructionsApi.md index 8e0b53144..03e4dcf20 100644 --- a/sailpoint/beta/docs/Methods/CustomPasswordInstructionsApi.md +++ b/sailpoint/beta/docs/Methods/CustomPasswordInstructionsApi.md @@ -64,7 +64,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.custom_password_instructions_api import CustomPasswordInstructionsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.custom_password_instruction import CustomPasswordInstruction -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -83,7 +82,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CustomPasswordInstructionsApi(api_client).create_custom_password_instructions(new_custom_password_instruction) print("The response of CustomPasswordInstructionsApi->create_custom_password_instructions:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CustomPasswordInstructionsApi->create_custom_password_instructions: %s\n" % e) ``` @@ -126,7 +125,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.beta.api.custom_password_instructions_api import CustomPasswordInstructionsApi from sailpoint.beta.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -184,7 +182,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.custom_password_instructions_api import CustomPasswordInstructionsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.custom_password_instruction import CustomPasswordInstruction -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -200,7 +197,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CustomPasswordInstructionsApi(api_client).get_custom_password_instructions(page_id, locale) print("The response of CustomPasswordInstructionsApi->get_custom_password_instructions:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CustomPasswordInstructionsApi->get_custom_password_instructions: %s\n" % e) ``` diff --git a/sailpoint/beta/docs/Methods/EntitlementsApi.md b/sailpoint/beta/docs/Methods/EntitlementsApi.md index 9f46abcbb..5d005bfe4 100644 --- a/sailpoint/beta/docs/Methods/EntitlementsApi.md +++ b/sailpoint/beta/docs/Methods/EntitlementsApi.md @@ -115,7 +115,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.entitlements_api import EntitlementsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.entitlement import Entitlement -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -132,7 +131,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = EntitlementsApi(api_client).create_access_model_metadata_for_entitlement(id, attribute_key, attribute_value) print("The response of EntitlementsApi->create_access_model_metadata_for_entitlement:\n") - pprint(results) + 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: %s\n" % e) ``` @@ -177,7 +176,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.beta.api.entitlements_api import EntitlementsApi from sailpoint.beta.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -237,7 +235,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.entitlements_api import EntitlementsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.entitlement import Entitlement -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -252,7 +249,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = EntitlementsApi(api_client).get_entitlement(id) print("The response of EntitlementsApi->get_entitlement:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling EntitlementsApi->get_entitlement: %s\n" % e) ``` @@ -297,7 +294,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.entitlements_api import EntitlementsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.entitlement_request_config import EntitlementRequestConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -312,7 +308,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = EntitlementsApi(api_client).get_entitlement_request_config(id) print("The response of EntitlementsApi->get_entitlement_request_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling EntitlementsApi->get_entitlement_request_config: %s\n" % e) ``` @@ -364,7 +360,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.entitlements_api import EntitlementsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.load_entitlement_task import LoadEntitlementTask -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -380,7 +375,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = EntitlementsApi(api_client).import_entitlements_by_source(id, csv_file) print("The response of EntitlementsApi->import_entitlements_by_source:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling EntitlementsApi->import_entitlements_by_source: %s\n" % e) ``` @@ -430,7 +425,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.entitlements_api import EntitlementsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.entitlement import Entitlement -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -450,7 +444,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = EntitlementsApi(api_client).list_entitlement_children(id, limit, offset, count, sorters, filters) print("The response of EntitlementsApi->list_entitlement_children:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling EntitlementsApi->list_entitlement_children: %s\n" % e) ``` @@ -500,7 +494,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.entitlements_api import EntitlementsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.entitlement import Entitlement -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -520,7 +513,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = EntitlementsApi(api_client).list_entitlement_parents(id, limit, offset, count, sorters, filters) print("The response of EntitlementsApi->list_entitlement_parents:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling EntitlementsApi->list_entitlement_parents: %s\n" % e) ``` @@ -576,7 +569,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.entitlements_api import EntitlementsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.entitlement import Entitlement -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -599,7 +591,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = EntitlementsApi(api_client).list_entitlements(account_id, segmented_for_identity, for_segment_ids, include_unsegmented, offset, limit, count, sorters, filters) print("The response of EntitlementsApi->list_entitlements:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling EntitlementsApi->list_entitlements: %s\n" % e) ``` @@ -652,7 +644,6 @@ from sailpoint.beta.api.entitlements_api import EntitlementsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.entitlement import Entitlement from sailpoint.beta.models.json_patch_operation import JsonPatchOperation -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -668,7 +659,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = EntitlementsApi(api_client).patch_entitlement(id, new_json_patch_operation) print("The response of EntitlementsApi->patch_entitlement:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling EntitlementsApi->patch_entitlement: %s\n" % e) ``` @@ -714,7 +705,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.entitlements_api import EntitlementsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.entitlement_request_config import EntitlementRequestConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -742,7 +732,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = EntitlementsApi(api_client).put_entitlement_request_config(id, new_entitlement_request_config) print("The response of EntitlementsApi->put_entitlement_request_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling EntitlementsApi->put_entitlement_request_config: %s\n" % e) ``` @@ -787,7 +777,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.entitlements_api import EntitlementsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.entitlement_source_reset_base_reference_dto import EntitlementSourceResetBaseReferenceDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -802,7 +791,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = EntitlementsApi(api_client).reset_source_entitlements(source_id) print("The response of EntitlementsApi->reset_source_entitlements:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling EntitlementsApi->reset_source_entitlements: %s\n" % e) ``` @@ -859,7 +848,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.entitlements_api import EntitlementsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.entitlement_bulk_update_request import EntitlementBulkUpdateRequest -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() diff --git a/sailpoint/beta/docs/Methods/GovernanceGroupsApi.md b/sailpoint/beta/docs/Methods/GovernanceGroupsApi.md index 678f3f601..407249e44 100644 --- a/sailpoint/beta/docs/Methods/GovernanceGroupsApi.md +++ b/sailpoint/beta/docs/Methods/GovernanceGroupsApi.md @@ -67,7 +67,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.governance_groups_api import GovernanceGroupsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.workgroup_dto import WorkgroupDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -97,7 +96,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = GovernanceGroupsApi(api_client).create_workgroup(new_workgroup_dto) print("The response of GovernanceGroupsApi->create_workgroup:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling GovernanceGroupsApi->create_workgroup: %s\n" % e) ``` @@ -140,7 +139,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.beta.api.governance_groups_api import GovernanceGroupsApi from sailpoint.beta.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -203,7 +201,6 @@ from sailpoint.beta.api.governance_groups_api import GovernanceGroupsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.bulk_workgroup_members_request_inner import BulkWorkgroupMembersRequestInner from sailpoint.beta.models.workgroup_member_delete_item import WorkgroupMemberDeleteItem -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -219,7 +216,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = GovernanceGroupsApi(api_client).delete_workgroup_members(workgroup_id, new_bulk_workgroup_members_request_inner) print("The response of GovernanceGroupsApi->delete_workgroup_members:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling GovernanceGroupsApi->delete_workgroup_members: %s\n" % e) ``` @@ -275,7 +272,6 @@ from sailpoint.beta.api.governance_groups_api import GovernanceGroupsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.workgroup_bulk_delete_request import WorkgroupBulkDeleteRequest from sailpoint.beta.models.workgroup_delete_item import WorkgroupDeleteItem -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -292,7 +288,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = GovernanceGroupsApi(api_client).delete_workgroups_in_bulk(new_workgroup_bulk_delete_request) print("The response of GovernanceGroupsApi->delete_workgroups_in_bulk:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling GovernanceGroupsApi->delete_workgroups_in_bulk: %s\n" % e) ``` @@ -336,7 +332,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.governance_groups_api import GovernanceGroupsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.workgroup_dto import WorkgroupDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -351,7 +346,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = GovernanceGroupsApi(api_client).get_workgroup(id) print("The response of GovernanceGroupsApi->get_workgroup:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling GovernanceGroupsApi->get_workgroup: %s\n" % e) ``` @@ -399,7 +394,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.governance_groups_api import GovernanceGroupsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.workgroup_connection_dto import WorkgroupConnectionDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -418,7 +412,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = GovernanceGroupsApi(api_client).list_connections(workgroup_id, offset, limit, count, sorters) print("The response of GovernanceGroupsApi->list_connections:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling GovernanceGroupsApi->list_connections: %s\n" % e) ``` @@ -466,7 +460,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.governance_groups_api import GovernanceGroupsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.list_workgroup_members200_response_inner import ListWorkgroupMembers200ResponseInner -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -485,7 +478,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = GovernanceGroupsApi(api_client).list_workgroup_members(workgroup_id, offset, limit, count, sorters) print("The response of GovernanceGroupsApi->list_workgroup_members:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling GovernanceGroupsApi->list_workgroup_members: %s\n" % e) ``` @@ -533,7 +526,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.governance_groups_api import GovernanceGroupsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.workgroup_dto import WorkgroupDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -552,7 +544,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = GovernanceGroupsApi(api_client).list_workgroups(offset, limit, count, filters, sorters) print("The response of GovernanceGroupsApi->list_workgroups:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling GovernanceGroupsApi->list_workgroups: %s\n" % e) ``` @@ -604,7 +596,6 @@ from sailpoint.beta.api.governance_groups_api import GovernanceGroupsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.json_patch_operation import JsonPatchOperation from sailpoint.beta.models.workgroup_dto import WorkgroupDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -620,7 +611,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = GovernanceGroupsApi(api_client).patch_workgroup(id, new_json_patch_operation) print("The response of GovernanceGroupsApi->patch_workgroup:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling GovernanceGroupsApi->patch_workgroup: %s\n" % e) ``` @@ -670,7 +661,6 @@ from sailpoint.beta.api.governance_groups_api import GovernanceGroupsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.bulk_workgroup_members_request_inner import BulkWorkgroupMembersRequestInner from sailpoint.beta.models.workgroup_member_add_item import WorkgroupMemberAddItem -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -686,7 +676,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = GovernanceGroupsApi(api_client).update_workgroup_members(workgroup_id, new_bulk_workgroup_members_request_inner) print("The response of GovernanceGroupsApi->update_workgroup_members:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling GovernanceGroupsApi->update_workgroup_members: %s\n" % e) ``` diff --git a/sailpoint/beta/docs/Methods/IAIAccessRequestRecommendationsApi.md b/sailpoint/beta/docs/Methods/IAIAccessRequestRecommendationsApi.md index 04199c279..a23c09dfa 100644 --- a/sailpoint/beta/docs/Methods/IAIAccessRequestRecommendationsApi.md +++ b/sailpoint/beta/docs/Methods/IAIAccessRequestRecommendationsApi.md @@ -61,7 +61,6 @@ from sailpoint.beta.api.iai_access_request_recommendations_api import IAIAccessR from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.access_request_recommendation_action_item_dto import AccessRequestRecommendationActionItemDto from sailpoint.beta.models.access_request_recommendation_action_item_response_dto import AccessRequestRecommendationActionItemResponseDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -82,7 +81,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIAccessRequestRecommendationsApi(api_client).add_access_request_recommendations_ignored_item(new_access_request_recommendation_action_item_dto) print("The response of IAIAccessRequestRecommendationsApi->add_access_request_recommendations_ignored_item:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIAccessRequestRecommendationsApi->add_access_request_recommendations_ignored_item: %s\n" % e) ``` @@ -127,7 +126,6 @@ from sailpoint.beta.api.iai_access_request_recommendations_api import IAIAccessR from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.access_request_recommendation_action_item_dto import AccessRequestRecommendationActionItemDto from sailpoint.beta.models.access_request_recommendation_action_item_response_dto import AccessRequestRecommendationActionItemResponseDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -148,7 +146,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIAccessRequestRecommendationsApi(api_client).add_access_request_recommendations_requested_item(new_access_request_recommendation_action_item_dto) print("The response of IAIAccessRequestRecommendationsApi->add_access_request_recommendations_requested_item:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIAccessRequestRecommendationsApi->add_access_request_recommendations_requested_item: %s\n" % e) ``` @@ -193,7 +191,6 @@ from sailpoint.beta.api.iai_access_request_recommendations_api import IAIAccessR from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.access_request_recommendation_action_item_dto import AccessRequestRecommendationActionItemDto from sailpoint.beta.models.access_request_recommendation_action_item_response_dto import AccessRequestRecommendationActionItemResponseDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -214,7 +211,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIAccessRequestRecommendationsApi(api_client).add_access_request_recommendations_viewed_item(new_access_request_recommendation_action_item_dto) print("The response of IAIAccessRequestRecommendationsApi->add_access_request_recommendations_viewed_item:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIAccessRequestRecommendationsApi->add_access_request_recommendations_viewed_item: %s\n" % e) ``` @@ -259,7 +256,6 @@ from sailpoint.beta.api.iai_access_request_recommendations_api import IAIAccessR from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.access_request_recommendation_action_item_dto import AccessRequestRecommendationActionItemDto from sailpoint.beta.models.access_request_recommendation_action_item_response_dto import AccessRequestRecommendationActionItemResponseDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -274,7 +270,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIAccessRequestRecommendationsApi(api_client).add_access_request_recommendations_viewed_items(new_access_request_recommendation_action_item_dto) print("The response of IAIAccessRequestRecommendationsApi->add_access_request_recommendations_viewed_items:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIAccessRequestRecommendationsApi->add_access_request_recommendations_viewed_items: %s\n" % e) ``` @@ -324,7 +320,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.iai_access_request_recommendations_api import IAIAccessRequestRecommendationsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.access_request_recommendation_item_detail import AccessRequestRecommendationItemDetail -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -345,7 +340,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIAccessRequestRecommendationsApi(api_client).get_access_request_recommendations(identity_id, limit, offset, count, include_translation_messages, filters, sorters) print("The response of IAIAccessRequestRecommendationsApi->get_access_request_recommendations:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIAccessRequestRecommendationsApi->get_access_request_recommendations: %s\n" % e) ``` @@ -393,7 +388,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.iai_access_request_recommendations_api import IAIAccessRequestRecommendationsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.access_request_recommendation_action_item_response_dto import AccessRequestRecommendationActionItemResponseDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -412,7 +406,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIAccessRequestRecommendationsApi(api_client).get_access_request_recommendations_ignored_items(limit, offset, count, filters, sorters) print("The response of IAIAccessRequestRecommendationsApi->get_access_request_recommendations_ignored_items:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIAccessRequestRecommendationsApi->get_access_request_recommendations_ignored_items: %s\n" % e) ``` @@ -460,7 +454,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.iai_access_request_recommendations_api import IAIAccessRequestRecommendationsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.access_request_recommendation_action_item_response_dto import AccessRequestRecommendationActionItemResponseDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -479,7 +472,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIAccessRequestRecommendationsApi(api_client).get_access_request_recommendations_requested_items(limit, offset, count, filters, sorters) print("The response of IAIAccessRequestRecommendationsApi->get_access_request_recommendations_requested_items:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIAccessRequestRecommendationsApi->get_access_request_recommendations_requested_items: %s\n" % e) ``` @@ -527,7 +520,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.iai_access_request_recommendations_api import IAIAccessRequestRecommendationsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.access_request_recommendation_action_item_response_dto import AccessRequestRecommendationActionItemResponseDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -546,7 +538,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIAccessRequestRecommendationsApi(api_client).get_access_request_recommendations_viewed_items(limit, offset, count, filters, sorters) print("The response of IAIAccessRequestRecommendationsApi->get_access_request_recommendations_viewed_items:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIAccessRequestRecommendationsApi->get_access_request_recommendations_viewed_items: %s\n" % e) ``` diff --git a/sailpoint/beta/docs/Methods/IAICommonAccessApi.md b/sailpoint/beta/docs/Methods/IAICommonAccessApi.md index 9b9ce4267..e67b026fd 100644 --- a/sailpoint/beta/docs/Methods/IAICommonAccessApi.md +++ b/sailpoint/beta/docs/Methods/IAICommonAccessApi.md @@ -56,7 +56,6 @@ from sailpoint.beta.api.iai_common_access_api import IAICommonAccessApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.common_access_item_request import CommonAccessItemRequest from sailpoint.beta.models.common_access_item_response import CommonAccessItemResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -81,7 +80,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAICommonAccessApi(api_client).create_common_access(new_common_access_item_request) print("The response of IAICommonAccessApi->create_common_access:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAICommonAccessApi->create_common_access: %s\n" % e) ``` @@ -128,7 +127,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.iai_common_access_api import IAICommonAccessApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.common_access_response import CommonAccessResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -147,7 +145,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAICommonAccessApi(api_client).get_common_access(offset, limit, count, filters, sorters) print("The response of IAICommonAccessApi->get_common_access:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAICommonAccessApi->get_common_access: %s\n" % e) ``` @@ -191,7 +189,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.iai_common_access_api import IAICommonAccessApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.common_access_id_status import CommonAccessIDStatus -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -206,7 +203,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAICommonAccessApi(api_client).update_common_access_status_in_bulk(new_common_access_id_status) print("The response of IAICommonAccessApi->update_common_access_status_in_bulk:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAICommonAccessApi->update_common_access_status_in_bulk: %s\n" % e) ``` diff --git a/sailpoint/beta/docs/Methods/IAIMessageCatalogsApi.md b/sailpoint/beta/docs/Methods/IAIMessageCatalogsApi.md index 2f2c73c4b..893b55cc2 100644 --- a/sailpoint/beta/docs/Methods/IAIMessageCatalogsApi.md +++ b/sailpoint/beta/docs/Methods/IAIMessageCatalogsApi.md @@ -53,7 +53,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.iai_message_catalogs_api import IAIMessageCatalogsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.message_catalog_dto import MessageCatalogDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -68,7 +67,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIMessageCatalogsApi(api_client).get_message_catalogs(catalog_id) print("The response of IAIMessageCatalogsApi->get_message_catalogs:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIMessageCatalogsApi->get_message_catalogs: %s\n" % e) ``` diff --git a/sailpoint/beta/docs/Methods/IAIOutliersApi.md b/sailpoint/beta/docs/Methods/IAIOutliersApi.md index 63e912795..76743e1e3 100644 --- a/sailpoint/beta/docs/Methods/IAIOutliersApi.md +++ b/sailpoint/beta/docs/Methods/IAIOutliersApi.md @@ -63,7 +63,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.beta.api.iai_outliers_api import IAIOutliersApi from sailpoint.beta.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -78,7 +77,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIOutliersApi(api_client).export_outliers_zip(type) print("The response of IAIOutliersApi->export_outliers_zip:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIOutliersApi->export_outliers_zip: %s\n" % e) ``` @@ -127,7 +126,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.iai_outliers_api import IAIOutliersApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.outlier_summary import OutlierSummary -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -146,7 +144,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIOutliersApi(api_client).get_identity_outlier_snapshots(limit, offset, type, filters, sorters) print("The response of IAIOutliersApi->get_identity_outlier_snapshots:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIOutliersApi->get_identity_outlier_snapshots: %s\n" % e) ``` @@ -195,7 +193,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.iai_outliers_api import IAIOutliersApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.outlier import Outlier -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -215,7 +212,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIOutliersApi(api_client).get_identity_outliers(limit, offset, count, type, filters, sorters) print("The response of IAIOutliersApi->get_identity_outliers:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIOutliersApi->get_identity_outliers: %s\n" % e) ``` @@ -260,7 +257,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.iai_outliers_api import IAIOutliersApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.latest_outlier_summary import LatestOutlierSummary -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -275,7 +271,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIOutliersApi(api_client).get_latest_identity_outlier_snapshots(type) print("The response of IAIOutliersApi->get_latest_identity_outlier_snapshots:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIOutliersApi->get_latest_identity_outlier_snapshots: %s\n" % e) ``` @@ -323,7 +319,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.iai_outliers_api import IAIOutliersApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.outlier_feature_summary import OutlierFeatureSummary -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -338,7 +333,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIOutliersApi(api_client).get_outlier_contributing_feature_summary(outlier_feature_id) print("The response of IAIOutliersApi->get_outlier_contributing_feature_summary:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIOutliersApi->get_outlier_contributing_feature_summary: %s\n" % e) ``` @@ -391,7 +386,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.iai_outliers_api import IAIOutliersApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.outlier_contributing_feature import OutlierContributingFeature -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -411,7 +405,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIOutliersApi(api_client).get_peer_group_outliers_contributing_features(outlier_id, limit, offset, count, include_translation_messages, sorters) print("The response of IAIOutliersApi->get_peer_group_outliers_contributing_features:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIOutliersApi->get_peer_group_outliers_contributing_features: %s\n" % e) ``` @@ -454,7 +448,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.beta.api.iai_outliers_api import IAIOutliersApi from sailpoint.beta.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -521,7 +514,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.iai_outliers_api import IAIOutliersApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.outliers_contributing_feature_access_items import OutliersContributingFeatureAccessItems -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -542,7 +534,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIOutliersApi(api_client).list_outliers_contributing_feature_access_items(outlier_id, contributing_feature_name, limit, offset, count, access_type, sorters) print("The response of IAIOutliersApi->list_outliers_contributing_feature_access_items:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIOutliersApi->list_outliers_contributing_feature_access_items: %s\n" % e) ``` @@ -585,7 +577,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.beta.api.iai_outliers_api import IAIOutliersApi from sailpoint.beta.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() diff --git a/sailpoint/beta/docs/Methods/IAIPeerGroupStrategiesApi.md b/sailpoint/beta/docs/Methods/IAIPeerGroupStrategiesApi.md index 15b5b516d..e17088ce4 100644 --- a/sailpoint/beta/docs/Methods/IAIPeerGroupStrategiesApi.md +++ b/sailpoint/beta/docs/Methods/IAIPeerGroupStrategiesApi.md @@ -59,7 +59,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.iai_peer_group_strategies_api import IAIPeerGroupStrategiesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.peer_group_member import PeerGroupMember -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -77,7 +76,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIPeerGroupStrategiesApi(api_client).get_peer_group_outliers(strategy, limit, offset, count) print("The response of IAIPeerGroupStrategiesApi->get_peer_group_outliers:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIPeerGroupStrategiesApi->get_peer_group_outliers: %s\n" % e) ``` diff --git a/sailpoint/beta/docs/Methods/IAIRecommendationsApi.md b/sailpoint/beta/docs/Methods/IAIRecommendationsApi.md index 44e0ef149..751849e03 100644 --- a/sailpoint/beta/docs/Methods/IAIRecommendationsApi.md +++ b/sailpoint/beta/docs/Methods/IAIRecommendationsApi.md @@ -56,7 +56,6 @@ from sailpoint.beta.api.iai_recommendations_api import IAIRecommendationsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.recommendation_request_dto import RecommendationRequestDto from sailpoint.beta.models.recommendation_response_dto import RecommendationResponseDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -89,7 +88,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIRecommendationsApi(api_client).get_recommendations(new_recommendation_request_dto) print("The response of IAIRecommendationsApi->get_recommendations:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIRecommendationsApi->get_recommendations: %s\n" % e) ``` @@ -130,7 +129,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.iai_recommendations_api import IAIRecommendationsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.recommendation_config_dto import RecommendationConfigDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -144,7 +142,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIRecommendationsApi(api_client).get_recommendations_config() print("The response of IAIRecommendationsApi->get_recommendations_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIRecommendationsApi->get_recommendations_config: %s\n" % e) ``` @@ -188,7 +186,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.iai_recommendations_api import IAIRecommendationsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.recommendation_config_dto import RecommendationConfigDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -208,7 +205,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIRecommendationsApi(api_client).update_recommendations_config(new_recommendation_config_dto) print("The response of IAIRecommendationsApi->update_recommendations_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIRecommendationsApi->update_recommendations_config: %s\n" % e) ``` diff --git a/sailpoint/beta/docs/Methods/IAIRoleMiningApi.md b/sailpoint/beta/docs/Methods/IAIRoleMiningApi.md index 550ab1e20..8e799b82f 100644 --- a/sailpoint/beta/docs/Methods/IAIRoleMiningApi.md +++ b/sailpoint/beta/docs/Methods/IAIRoleMiningApi.md @@ -82,7 +82,6 @@ from sailpoint.beta.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.role_mining_potential_role_provision_request import RoleMiningPotentialRoleProvisionRequest from sailpoint.beta.models.role_mining_potential_role_summary import RoleMiningPotentialRoleSummary -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -107,7 +106,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIRoleMiningApi(api_client).create_potential_role_provision_request(session_id, potential_role_id, min_entitlement_popularity, include_common_access, new_role_mining_potential_role_provision_request) print("The response of IAIRoleMiningApi->create_potential_role_provision_request:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIRoleMiningApi->create_potential_role_provision_request: %s\n" % e) ``` @@ -152,7 +151,6 @@ from sailpoint.beta.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.role_mining_session_dto import RoleMiningSessionDto from sailpoint.beta.models.role_mining_session_response import RoleMiningSessionResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -198,7 +196,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIRoleMiningApi(api_client).create_role_mining_sessions(new_role_mining_session_dto) print("The response of IAIRoleMiningApi->create_role_mining_sessions:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIRoleMiningApi->create_role_mining_sessions: %s\n" % e) ``` @@ -242,7 +240,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.beta.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.beta.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -259,7 +256,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIRoleMiningApi(api_client).download_role_mining_potential_role_zip(session_id, potential_role_id, export_id) print("The response of IAIRoleMiningApi->download_role_mining_potential_role_zip:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIRoleMiningApi->download_role_mining_potential_role_zip: %s\n" % e) ``` @@ -302,7 +299,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.beta.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.beta.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -318,7 +314,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIRoleMiningApi(api_client).export_role_mining_potential_role(session_id, potential_role_id) print("The response of IAIRoleMiningApi->export_role_mining_potential_role:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIRoleMiningApi->export_role_mining_potential_role: %s\n" % e) ``` @@ -364,7 +360,6 @@ from sailpoint.beta.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.role_mining_potential_role_export_request import RoleMiningPotentialRoleExportRequest from sailpoint.beta.models.role_mining_potential_role_export_response import RoleMiningPotentialRoleExportResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -384,7 +379,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIRoleMiningApi(api_client).export_role_mining_potential_role_async(session_id, potential_role_id, new_role_mining_potential_role_export_request) print("The response of IAIRoleMiningApi->export_role_mining_potential_role_async:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIRoleMiningApi->export_role_mining_potential_role_async: %s\n" % e) ``` @@ -429,7 +424,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.role_mining_potential_role_export_response import RoleMiningPotentialRoleExportResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -446,7 +440,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIRoleMiningApi(api_client).export_role_mining_potential_role_status(session_id, potential_role_id, export_id) print("The response of IAIRoleMiningApi->export_role_mining_potential_role_status:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIRoleMiningApi->export_role_mining_potential_role_status: %s\n" % e) ``` @@ -494,7 +488,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.role_mining_potential_role_summary import RoleMiningPotentialRoleSummary -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -513,7 +506,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIRoleMiningApi(api_client).get_all_potential_role_summaries(sorters, filters, offset, limit, count) print("The response of IAIRoleMiningApi->get_all_potential_role_summaries:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIRoleMiningApi->get_all_potential_role_summaries: %s\n" % e) ``` @@ -557,7 +550,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.beta.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.beta.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -574,7 +566,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIRoleMiningApi(api_client).get_entitlement_distribution_potential_role(session_id, potential_role_id, include_common_access) print("The response of IAIRoleMiningApi->get_entitlement_distribution_potential_role:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIRoleMiningApi->get_entitlement_distribution_potential_role: %s\n" % e) ``` @@ -625,7 +617,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.role_mining_entitlement import RoleMiningEntitlement -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -647,7 +638,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIRoleMiningApi(api_client).get_entitlements_potential_role(session_id, potential_role_id, include_common_access, sorters, filters, offset, limit, count) print("The response of IAIRoleMiningApi->get_entitlements_potential_role:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIRoleMiningApi->get_entitlements_potential_role: %s\n" % e) ``` @@ -696,7 +687,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.role_mining_entitlement import RoleMiningEntitlement -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -717,7 +707,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIRoleMiningApi(api_client).get_excluded_entitlements_potential_role(session_id, potential_role_id, sorters, filters, offset, limit, count) print("The response of IAIRoleMiningApi->get_excluded_entitlements_potential_role:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIRoleMiningApi->get_excluded_entitlements_potential_role: %s\n" % e) ``` @@ -766,7 +756,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.role_mining_identity import RoleMiningIdentity -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -787,7 +776,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIRoleMiningApi(api_client).get_identities_potential_role(session_id, potential_role_id, sorters, filters, offset, limit, count) print("The response of IAIRoleMiningApi->get_identities_potential_role:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIRoleMiningApi->get_identities_potential_role: %s\n" % e) ``` @@ -832,7 +821,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.role_mining_potential_role import RoleMiningPotentialRole -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -848,7 +836,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIRoleMiningApi(api_client).get_potential_role(session_id, potential_role_id) print("The response of IAIRoleMiningApi->get_potential_role:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIRoleMiningApi->get_potential_role: %s\n" % e) ``` @@ -897,7 +885,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.role_mining_potential_role_application import RoleMiningPotentialRoleApplication -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -917,7 +904,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIRoleMiningApi(api_client).get_potential_role_applications(session_id, potential_role_id, filters, offset, limit, count) print("The response of IAIRoleMiningApi->get_potential_role_applications:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIRoleMiningApi->get_potential_role_applications: %s\n" % e) ``` @@ -966,7 +953,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.role_mining_potential_role_entitlements import RoleMiningPotentialRoleEntitlements -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -986,7 +972,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIRoleMiningApi(api_client).get_potential_role_entitlements(session_id, potential_role_id, filters, offset, limit, count) print("The response of IAIRoleMiningApi->get_potential_role_entitlements:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIRoleMiningApi->get_potential_role_entitlements: %s\n" % e) ``` @@ -1035,7 +1021,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.role_mining_potential_role_source_usage import RoleMiningPotentialRoleSourceUsage -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1055,7 +1040,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIRoleMiningApi(api_client).get_potential_role_source_identity_usage(potential_role_id, source_id, sorters, offset, limit, count) print("The response of IAIRoleMiningApi->get_potential_role_source_identity_usage:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIRoleMiningApi->get_potential_role_source_identity_usage: %s\n" % e) ``` @@ -1104,7 +1089,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.role_mining_potential_role_summary import RoleMiningPotentialRoleSummary -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1124,7 +1108,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIRoleMiningApi(api_client).get_potential_role_summaries(session_id, sorters, filters, offset, limit, count) print("The response of IAIRoleMiningApi->get_potential_role_summaries:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIRoleMiningApi->get_potential_role_summaries: %s\n" % e) ``` @@ -1168,7 +1152,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.role_mining_potential_role import RoleMiningPotentialRole -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1183,7 +1166,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIRoleMiningApi(api_client).get_role_mining_potential_role(potential_role_id) print("The response of IAIRoleMiningApi->get_role_mining_potential_role:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIRoleMiningApi->get_role_mining_potential_role: %s\n" % e) ``` @@ -1228,7 +1211,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.role_mining_session_response import RoleMiningSessionResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1243,7 +1225,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIRoleMiningApi(api_client).get_role_mining_session(session_id) print("The response of IAIRoleMiningApi->get_role_mining_session:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIRoleMiningApi->get_role_mining_session: %s\n" % e) ``` @@ -1286,7 +1268,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.role_mining_session_status import RoleMiningSessionStatus -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1301,7 +1282,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIRoleMiningApi(api_client).get_role_mining_session_status(session_id) print("The response of IAIRoleMiningApi->get_role_mining_session_status:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIRoleMiningApi->get_role_mining_session_status: %s\n" % e) ``` @@ -1349,7 +1330,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.role_mining_session_response import RoleMiningSessionResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1368,7 +1348,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIRoleMiningApi(api_client).get_role_mining_sessions(filters, sorters, offset, limit, count) print("The response of IAIRoleMiningApi->get_role_mining_sessions:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIRoleMiningApi->get_role_mining_sessions: %s\n" % e) ``` @@ -1415,7 +1395,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.role_mining_session_draft_role_dto import RoleMiningSessionDraftRoleDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1433,7 +1412,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIRoleMiningApi(api_client).get_saved_potential_roles(sorters, offset, limit, count) print("The response of IAIRoleMiningApi->get_saved_potential_roles:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIRoleMiningApi->get_saved_potential_roles: %s\n" % e) ``` @@ -1492,7 +1471,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.patch_potential_role_request_inner import PatchPotentialRoleRequestInner -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1509,7 +1487,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIRoleMiningApi(api_client).patch_potential_role(session_id, potential_role_id, new_patch_potential_role_request_inner) print("The response of IAIRoleMiningApi->patch_potential_role:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIRoleMiningApi->patch_potential_role: %s\n" % e) ``` @@ -1567,7 +1545,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.patch_potential_role_request_inner import PatchPotentialRoleRequestInner -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1583,7 +1560,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIRoleMiningApi(api_client).patch_role_mining_potential_role(potential_role_id, new_patch_potential_role_request_inner) print("The response of IAIRoleMiningApi->patch_role_mining_potential_role:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIRoleMiningApi->patch_role_mining_potential_role: %s\n" % e) ``` @@ -1629,7 +1606,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.json_patch_operation import JsonPatchOperation -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1645,7 +1621,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIRoleMiningApi(api_client).patch_role_mining_session(session_id, new_json_patch_operation) print("The response of IAIRoleMiningApi->patch_role_mining_session:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIRoleMiningApi->patch_role_mining_session: %s\n" % e) ``` @@ -1691,7 +1667,6 @@ from sailpoint.beta.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.role_mining_potential_role import RoleMiningPotentialRole from sailpoint.beta.models.role_mining_potential_role_edit_entitlements import RoleMiningPotentialRoleEditEntitlements -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1711,7 +1686,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIRoleMiningApi(api_client).update_entitlements_potential_role(session_id, potential_role_id, new_role_mining_potential_role_edit_entitlements) print("The response of IAIRoleMiningApi->update_entitlements_potential_role:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIRoleMiningApi->update_entitlements_potential_role: %s\n" % e) ``` diff --git a/sailpoint/beta/docs/Methods/IconsApi.md b/sailpoint/beta/docs/Methods/IconsApi.md index 44e0ba7d3..7bf446698 100644 --- a/sailpoint/beta/docs/Methods/IconsApi.md +++ b/sailpoint/beta/docs/Methods/IconsApi.md @@ -57,7 +57,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.beta.api.icons_api import IconsApi from sailpoint.beta.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -118,7 +117,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.icons_api import IconsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.set_icon200_response import SetIcon200Response -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -135,7 +133,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IconsApi(api_client).set_icon(object_type, object_id, image) print("The response of IconsApi->set_icon:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IconsApi->set_icon: %s\n" % e) ``` diff --git a/sailpoint/beta/docs/Methods/IdentitiesApi.md b/sailpoint/beta/docs/Methods/IdentitiesApi.md index 5406e8bba..e4af8710d 100644 --- a/sailpoint/beta/docs/Methods/IdentitiesApi.md +++ b/sailpoint/beta/docs/Methods/IdentitiesApi.md @@ -78,7 +78,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.beta.api.identities_api import IdentitiesApi from sailpoint.beta.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -136,7 +135,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.identities_api import IdentitiesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.identity import Identity -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -151,7 +149,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentitiesApi(api_client).get_identity(id) print("The response of IdentitiesApi->get_identity:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentitiesApi->get_identity: %s\n" % e) ``` @@ -198,7 +196,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.identities_api import IdentitiesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.identity_ownership_association_details import IdentityOwnershipAssociationDetails -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -213,7 +210,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentitiesApi(api_client).get_identity_ownership_details(identity_id) print("The response of IdentitiesApi->get_identity_ownership_details:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentitiesApi->get_identity_ownership_details: %s\n" % e) ``` @@ -259,7 +256,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.identities_api import IdentitiesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.role_assignment_dto import RoleAssignmentDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -275,7 +271,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentitiesApi(api_client).get_role_assignment(identity_id, assignment_id) print("The response of IdentitiesApi->get_role_assignment:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentitiesApi->get_role_assignment: %s\n" % e) ``` @@ -322,7 +318,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.identities_api import IdentitiesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.get_role_assignments200_response_inner import GetRoleAssignments200ResponseInner -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -339,7 +334,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentitiesApi(api_client).get_role_assignments(identity_id, role_id, role_name) print("The response of IdentitiesApi->get_role_assignments:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentitiesApi->get_role_assignments: %s\n" % e) ``` @@ -388,7 +383,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.identities_api import IdentitiesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.identity import Identity -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -408,7 +402,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentitiesApi(api_client).list_identities(filters, sorters, default_filter, count, limit, offset) print("The response of IdentitiesApi->list_identities:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentitiesApi->list_identities: %s\n" % e) ``` @@ -452,7 +446,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.beta.api.identities_api import IdentitiesApi from sailpoint.beta.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -512,7 +505,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.identities_api import IdentitiesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.send_account_verification_request import SendAccountVerificationRequest -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -580,7 +572,6 @@ from sailpoint.beta.api.identities_api import IdentitiesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.invite_identities_request import InviteIdentitiesRequest from sailpoint.beta.models.task_status import TaskStatus -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -598,7 +589,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentitiesApi(api_client).start_identities_invite(new_invite_identities_request) print("The response of IdentitiesApi->start_identities_invite:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentitiesApi->start_identities_invite: %s\n" % e) ``` @@ -654,7 +645,6 @@ from sailpoint.beta.api.identities_api import IdentitiesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.process_identities_request import ProcessIdentitiesRequest from sailpoint.beta.models.task_result_response import TaskResultResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -671,7 +661,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentitiesApi(api_client).start_identity_processing(new_process_identities_request) print("The response of IdentitiesApi->start_identity_processing:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentitiesApi->start_identity_processing: %s\n" % e) ``` @@ -716,7 +706,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.identities_api import IdentitiesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.identity_sync_job import IdentitySyncJob -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -731,7 +720,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentitiesApi(api_client).synchronize_attributes_for_identity(identity_id) print("The response of IdentitiesApi->synchronize_attributes_for_identity:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentitiesApi->synchronize_attributes_for_identity: %s\n" % e) ``` diff --git a/sailpoint/beta/docs/Methods/IdentityAttributesApi.md b/sailpoint/beta/docs/Methods/IdentityAttributesApi.md index 180b093e9..6459154ce 100644 --- a/sailpoint/beta/docs/Methods/IdentityAttributesApi.md +++ b/sailpoint/beta/docs/Methods/IdentityAttributesApi.md @@ -59,7 +59,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.identity_attributes_api import IdentityAttributesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.identity_attribute import IdentityAttribute -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -95,7 +94,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentityAttributesApi(api_client).create_identity_attribute(new_identity_attribute) print("The response of IdentityAttributesApi->create_identity_attribute:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentityAttributesApi->create_identity_attribute: %s\n" % e) ``` @@ -139,7 +138,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.beta.api.identity_attributes_api import IdentityAttributesApi from sailpoint.beta.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -197,7 +195,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.identity_attributes_api import IdentityAttributesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.identity_attribute_names import IdentityAttributeNames -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -257,7 +254,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.identity_attributes_api import IdentityAttributesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.identity_attribute import IdentityAttribute -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -272,7 +268,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentityAttributesApi(api_client).get_identity_attribute(name) print("The response of IdentityAttributesApi->get_identity_attribute:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentityAttributesApi->get_identity_attribute: %s\n" % e) ``` @@ -319,7 +315,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.identity_attributes_api import IdentityAttributesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.identity_attribute import IdentityAttribute -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -337,7 +332,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentityAttributesApi(api_client).list_identity_attributes(include_system, include_silent, searchable_only, count) print("The response of IdentityAttributesApi->list_identity_attributes:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentityAttributesApi->list_identity_attributes: %s\n" % e) ``` @@ -383,7 +378,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.identity_attributes_api import IdentityAttributesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.identity_attribute import IdentityAttribute -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -420,7 +414,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentityAttributesApi(api_client).put_identity_attribute(name, new_identity_attribute) print("The response of IdentityAttributesApi->put_identity_attribute:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentityAttributesApi->put_identity_attribute: %s\n" % e) ``` diff --git a/sailpoint/beta/docs/Methods/IdentityHistoryApi.md b/sailpoint/beta/docs/Methods/IdentityHistoryApi.md index 1198f8716..998cf032c 100644 --- a/sailpoint/beta/docs/Methods/IdentityHistoryApi.md +++ b/sailpoint/beta/docs/Methods/IdentityHistoryApi.md @@ -69,7 +69,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.identity_history_api import IdentityHistoryApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.identity_compare_response import IdentityCompareResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -90,7 +89,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentityHistoryApi(api_client).compare_identity_snapshots(id, snapshot1, snapshot2, access_item_types, limit, offset, count) print("The response of IdentityHistoryApi->compare_identity_snapshots:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentityHistoryApi->compare_identity_snapshots: %s\n" % e) ``` @@ -141,7 +140,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.identity_history_api import IdentityHistoryApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.access_item_diff import AccessItemDiff -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -163,7 +161,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentityHistoryApi(api_client).compare_identity_snapshots_access_type(id, access_type, access_associated, snapshot1, snapshot2, limit, offset, count) print("The response of IdentityHistoryApi->compare_identity_snapshots_access_type:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentityHistoryApi->compare_identity_snapshots_access_type: %s\n" % e) ``` @@ -207,7 +205,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.identity_history_api import IdentityHistoryApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.identity_history_response import IdentityHistoryResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -222,7 +219,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentityHistoryApi(api_client).get_historical_identity(id) print("The response of IdentityHistoryApi->get_historical_identity:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentityHistoryApi->get_historical_identity: %s\n" % e) ``` @@ -273,7 +270,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.identity_history_api import IdentityHistoryApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.get_historical_identity_events200_response_inner import GetHistoricalIdentityEvents200ResponseInner -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -294,7 +290,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentityHistoryApi(api_client).get_historical_identity_events(id, var_from, event_types, access_item_types, limit, offset, count) print("The response of IdentityHistoryApi->get_historical_identity_events:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentityHistoryApi->get_historical_identity_events: %s\n" % e) ``` @@ -339,7 +335,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.identity_history_api import IdentityHistoryApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.identity_history_response import IdentityHistoryResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -355,7 +350,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentityHistoryApi(api_client).get_identity_snapshot(id, var_date) print("The response of IdentityHistoryApi->get_identity_snapshot:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentityHistoryApi->get_identity_snapshot: %s\n" % e) ``` @@ -405,7 +400,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.identity_history_api import IdentityHistoryApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.metric_response import MetricResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -426,7 +420,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentityHistoryApi(api_client).get_identity_snapshot_summary(id, before, interval, time_zone, limit, offset, count) print("The response of IdentityHistoryApi->get_identity_snapshot_summary:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentityHistoryApi->get_identity_snapshot_summary: %s\n" % e) ``` @@ -469,7 +463,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.beta.api.identity_history_api import IdentityHistoryApi from sailpoint.beta.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -484,7 +477,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentityHistoryApi(api_client).get_identity_start_date(id) print("The response of IdentityHistoryApi->get_identity_start_date:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentityHistoryApi->get_identity_start_date: %s\n" % e) ``` @@ -532,7 +525,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.identity_history_api import IdentityHistoryApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.identity_list_item import IdentityListItem -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -551,7 +543,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentityHistoryApi(api_client).list_historical_identities(starts_with_query, is_deleted, is_active, limit, offset) print("The response of IdentityHistoryApi->list_historical_identities:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentityHistoryApi->list_historical_identities: %s\n" % e) ``` @@ -603,7 +595,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.identity_history_api import IdentityHistoryApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.list_identity_access_items200_response_inner import ListIdentityAccessItems200ResponseInner -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -625,7 +616,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentityHistoryApi(api_client).list_identity_access_items(id, type, filters, sorters, query, limit, count, offset) print("The response of IdentityHistoryApi->list_identity_access_items:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentityHistoryApi->list_identity_access_items: %s\n" % e) ``` @@ -672,7 +663,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.identity_history_api import IdentityHistoryApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.list_identity_access_items200_response_inner import ListIdentityAccessItems200ResponseInner -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -689,7 +679,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentityHistoryApi(api_client).list_identity_snapshot_access_items(id, var_date, type) print("The response of IdentityHistoryApi->list_identity_snapshot_access_items:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentityHistoryApi->list_identity_snapshot_access_items: %s\n" % e) ``` @@ -738,7 +728,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.identity_history_api import IdentityHistoryApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.identity_snapshot_summary_response import IdentitySnapshotSummaryResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -758,7 +747,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentityHistoryApi(api_client).list_identity_snapshots(id, start, interval, limit, offset, count) print("The response of IdentityHistoryApi->list_identity_snapshots:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentityHistoryApi->list_identity_snapshots: %s\n" % e) ``` diff --git a/sailpoint/beta/docs/Methods/IdentityProfilesApi.md b/sailpoint/beta/docs/Methods/IdentityProfilesApi.md index 84d7ff40c..536ebd373 100644 --- a/sailpoint/beta/docs/Methods/IdentityProfilesApi.md +++ b/sailpoint/beta/docs/Methods/IdentityProfilesApi.md @@ -75,7 +75,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.identity_profiles_api import IdentityProfilesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.identity_profile import IdentityProfile -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -138,7 +137,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentityProfilesApi(api_client).create_identity_profile(new_identity_profile) print("The response of IdentityProfilesApi->create_identity_profile:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentityProfilesApi->create_identity_profile: %s\n" % e) ``` @@ -185,7 +184,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.identity_profiles_api import IdentityProfilesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.task_result_simplified import TaskResultSimplified -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -200,7 +198,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentityProfilesApi(api_client).delete_identity_profile(identity_profile_id) print("The response of IdentityProfilesApi->delete_identity_profile:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentityProfilesApi->delete_identity_profile: %s\n" % e) ``` @@ -250,7 +248,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.identity_profiles_api import IdentityProfilesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.task_result_simplified import TaskResultSimplified -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -265,7 +262,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentityProfilesApi(api_client).delete_identity_profiles(new_request_body) print("The response of IdentityProfilesApi->delete_identity_profiles:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentityProfilesApi->delete_identity_profiles: %s\n" % e) ``` @@ -314,7 +311,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.identity_profiles_api import IdentityProfilesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.identity_profile_exported_object import IdentityProfileExportedObject -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -333,7 +329,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentityProfilesApi(api_client).export_identity_profiles(limit, offset, count, filters, sorters) print("The response of IdentityProfilesApi->export_identity_profiles:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentityProfilesApi->export_identity_profiles: %s\n" % e) ``` @@ -379,7 +375,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.identity_profiles_api import IdentityProfilesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.identity_attribute_config import IdentityAttributeConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -394,7 +389,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentityProfilesApi(api_client).get_default_identity_attribute_config(identity_profile_id) print("The response of IdentityProfilesApi->get_default_identity_attribute_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentityProfilesApi->get_default_identity_attribute_config: %s\n" % e) ``` @@ -440,7 +435,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.identity_profiles_api import IdentityProfilesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.identity_profile import IdentityProfile -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -455,7 +449,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentityProfilesApi(api_client).get_identity_profile(identity_profile_id) print("The response of IdentityProfilesApi->get_identity_profile:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentityProfilesApi->get_identity_profile: %s\n" % e) ``` @@ -500,7 +494,6 @@ from sailpoint.beta.api.identity_profiles_api import IdentityProfilesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.identity_profile_exported_object import IdentityProfileExportedObject from sailpoint.beta.models.object_import_result import ObjectImportResult -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -515,7 +508,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentityProfilesApi(api_client).import_identity_profiles(new_identity_profile_exported_object) print("The response of IdentityProfilesApi->import_identity_profiles:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentityProfilesApi->import_identity_profiles: %s\n" % e) ``` @@ -564,7 +557,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.identity_profiles_api import IdentityProfilesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.identity_profile import IdentityProfile -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -583,7 +575,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentityProfilesApi(api_client).list_identity_profiles(limit, offset, count, filters, sorters) print("The response of IdentityProfilesApi->list_identity_profiles:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentityProfilesApi->list_identity_profiles: %s\n" % e) ``` @@ -630,7 +622,6 @@ from sailpoint.beta.api.identity_profiles_api import IdentityProfilesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.identity_preview_request import IdentityPreviewRequest from sailpoint.beta.models.identity_preview_response import IdentityPreviewResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -671,7 +662,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentityProfilesApi(api_client).show_generate_identity_preview(new_identity_preview_request) print("The response of IdentityProfilesApi->show_generate_identity_preview:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentityProfilesApi->show_generate_identity_preview: %s\n" % e) ``` @@ -720,7 +711,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.beta.api.identity_profiles_api import IdentityProfilesApi from sailpoint.beta.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -735,7 +725,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentityProfilesApi(api_client).sync_identity_profile(identity_profile_id) print("The response of IdentityProfilesApi->sync_identity_profile:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentityProfilesApi->sync_identity_profile: %s\n" % e) ``` @@ -790,7 +780,6 @@ from sailpoint.beta.api.identity_profiles_api import IdentityProfilesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.identity_profile import IdentityProfile from sailpoint.beta.models.json_patch_operation import JsonPatchOperation -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -806,7 +795,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentityProfilesApi(api_client).update_identity_profile(identity_profile_id, new_json_patch_operation) print("The response of IdentityProfilesApi->update_identity_profile:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentityProfilesApi->update_identity_profile: %s\n" % e) ``` diff --git a/sailpoint/beta/docs/Methods/LaunchersApi.md b/sailpoint/beta/docs/Methods/LaunchersApi.md index 551b306a1..32e548073 100644 --- a/sailpoint/beta/docs/Methods/LaunchersApi.md +++ b/sailpoint/beta/docs/Methods/LaunchersApi.md @@ -63,7 +63,6 @@ from sailpoint.beta.api.launchers_api import LaunchersApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.launcher import Launcher from sailpoint.beta.models.launcher_request import LauncherRequest -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -88,7 +87,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = LaunchersApi(api_client).create_launcher(new_launcher_request) print("The response of LaunchersApi->create_launcher:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling LaunchersApi->create_launcher: %s\n" % e) ``` @@ -132,7 +131,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.beta.api.launchers_api import LaunchersApi from sailpoint.beta.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -190,7 +188,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.launchers_api import LaunchersApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.launcher import Launcher -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -205,7 +202,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = LaunchersApi(api_client).get_launcher(launcher_id) print("The response of LaunchersApi->get_launcher:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling LaunchersApi->get_launcher: %s\n" % e) ``` @@ -252,7 +249,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.launchers_api import LaunchersApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.get_launchers200_response import GetLaunchers200Response -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -269,7 +265,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = LaunchersApi(api_client).get_launchers(filters, next, limit) print("The response of LaunchersApi->get_launchers:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling LaunchersApi->get_launchers: %s\n" % e) ``` @@ -316,7 +312,6 @@ from sailpoint.beta.api.launchers_api import LaunchersApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.launcher import Launcher from sailpoint.beta.models.launcher_request import LauncherRequest -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -342,7 +337,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = LaunchersApi(api_client).put_launcher(launcher_id, new_launcher_request) print("The response of LaunchersApi->put_launcher:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling LaunchersApi->put_launcher: %s\n" % e) ``` @@ -387,7 +382,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.launchers_api import LaunchersApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.start_launcher200_response import StartLauncher200Response -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -402,7 +396,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = LaunchersApi(api_client).start_launcher(launcher_id) print("The response of LaunchersApi->start_launcher:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling LaunchersApi->start_launcher: %s\n" % e) ``` diff --git a/sailpoint/beta/docs/Methods/LifecycleStatesApi.md b/sailpoint/beta/docs/Methods/LifecycleStatesApi.md index 09f61af5d..ce5a440de 100644 --- a/sailpoint/beta/docs/Methods/LifecycleStatesApi.md +++ b/sailpoint/beta/docs/Methods/LifecycleStatesApi.md @@ -94,7 +94,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.lifecycle_states_api import LifecycleStatesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.lifecycle_state import LifecycleState -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -110,7 +109,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = LifecycleStatesApi(api_client).get_lifecycle_states(identity_profile_id, lifecycle_state_id) print("The response of LifecycleStatesApi->get_lifecycle_states:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling LifecycleStatesApi->get_lifecycle_states: %s\n" % e) ``` @@ -160,7 +159,6 @@ from sailpoint.beta.api.lifecycle_states_api import LifecycleStatesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.json_patch_operation import JsonPatchOperation from sailpoint.beta.models.lifecycle_state import LifecycleState -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -177,7 +175,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = LifecycleStatesApi(api_client).update_lifecycle_states(identity_profile_id, lifecycle_state_id, new_json_patch_operation) print("The response of LifecycleStatesApi->update_lifecycle_states:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling LifecycleStatesApi->update_lifecycle_states: %s\n" % e) ``` diff --git a/sailpoint/beta/docs/Methods/MFAConfigurationApi.md b/sailpoint/beta/docs/Methods/MFAConfigurationApi.md index 83a83c72c..0eccd7136 100644 --- a/sailpoint/beta/docs/Methods/MFAConfigurationApi.md +++ b/sailpoint/beta/docs/Methods/MFAConfigurationApi.md @@ -60,7 +60,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.mfa_configuration_api import MFAConfigurationApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.mfa_okta_config import MfaOktaConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -75,7 +74,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = MFAConfigurationApi(api_client).delete_mfa_config(method) print("The response of MFAConfigurationApi->delete_mfa_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling MFAConfigurationApi->delete_mfa_config: %s\n" % e) ``` @@ -116,7 +115,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.mfa_configuration_api import MFAConfigurationApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.mfa_duo_config import MfaDuoConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -130,7 +128,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = MFAConfigurationApi(api_client).get_mfa_duo_config() print("The response of MFAConfigurationApi->get_mfa_duo_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling MFAConfigurationApi->get_mfa_duo_config: %s\n" % e) ``` @@ -174,7 +172,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.mfa_configuration_api import MFAConfigurationApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.kba_question import KbaQuestion -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -189,7 +186,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = MFAConfigurationApi(api_client).get_mfa_kba_config(all_languages) print("The response of MFAConfigurationApi->get_mfa_kba_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling MFAConfigurationApi->get_mfa_kba_config: %s\n" % e) ``` @@ -230,7 +227,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.mfa_configuration_api import MFAConfigurationApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.mfa_okta_config import MfaOktaConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -244,7 +240,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = MFAConfigurationApi(api_client).get_mfa_okta_config() print("The response of MFAConfigurationApi->get_mfa_okta_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling MFAConfigurationApi->get_mfa_okta_config: %s\n" % e) ``` @@ -288,7 +284,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.mfa_configuration_api import MFAConfigurationApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.mfa_duo_config import MfaDuoConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -313,7 +308,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = MFAConfigurationApi(api_client).set_mfa_duo_config(new_mfa_duo_config) print("The response of MFAConfigurationApi->set_mfa_duo_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling MFAConfigurationApi->set_mfa_duo_config: %s\n" % e) ``` @@ -357,7 +352,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.mfa_configuration_api import MFAConfigurationApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.mfa_okta_config import MfaOktaConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -378,7 +372,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = MFAConfigurationApi(api_client).set_mfa_okta_config(new_mfa_okta_config) print("The response of MFAConfigurationApi->set_mfa_okta_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling MFAConfigurationApi->set_mfa_okta_config: %s\n" % e) ``` @@ -423,7 +417,6 @@ from sailpoint.beta.api.mfa_configuration_api import MFAConfigurationApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.kba_answer_request_item import KbaAnswerRequestItem from sailpoint.beta.models.kba_answer_response_item import KbaAnswerResponseItem -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -438,7 +431,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = MFAConfigurationApi(api_client).set_mfakba_config(new_kba_answer_request_item) print("The response of MFAConfigurationApi->set_mfakba_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling MFAConfigurationApi->set_mfakba_config: %s\n" % e) ``` @@ -482,7 +475,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.mfa_configuration_api import MFAConfigurationApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.mfa_config_test_response import MfaConfigTestResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -497,7 +489,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = MFAConfigurationApi(api_client).test_mfa_config(method) print("The response of MFAConfigurationApi->test_mfa_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling MFAConfigurationApi->test_mfa_config: %s\n" % e) ``` diff --git a/sailpoint/beta/docs/Methods/MFAControllerApi.md b/sailpoint/beta/docs/Methods/MFAControllerApi.md index e5ed1f56b..81f67bac9 100644 --- a/sailpoint/beta/docs/Methods/MFAControllerApi.md +++ b/sailpoint/beta/docs/Methods/MFAControllerApi.md @@ -59,7 +59,6 @@ from sailpoint.beta.api.mfa_controller_api import MFAControllerApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.send_token_request import SendTokenRequest from sailpoint.beta.models.send_token_response import SendTokenResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -77,7 +76,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = MFAControllerApi(api_client).create_send_token(new_send_token_request) print("The response of MFAControllerApi->create_send_token:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling MFAControllerApi->create_send_token: %s\n" % e) ``` @@ -123,7 +122,6 @@ from sailpoint.beta.api.mfa_controller_api import MFAControllerApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.verification_poll_request import VerificationPollRequest from sailpoint.beta.models.verification_response import VerificationResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -141,7 +139,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = MFAControllerApi(api_client).ping_verification_status(method, new_verification_poll_request) print("The response of MFAControllerApi->ping_verification_status:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling MFAControllerApi->ping_verification_status: %s\n" % e) ``` @@ -186,7 +184,6 @@ from sailpoint.beta.api.mfa_controller_api import MFAControllerApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.duo_verification_request import DuoVerificationRequest from sailpoint.beta.models.verification_response import VerificationResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -204,7 +201,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = MFAControllerApi(api_client).send_duo_verify_request(new_duo_verification_request) print("The response of MFAControllerApi->send_duo_verify_request:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling MFAControllerApi->send_duo_verify_request: %s\n" % e) ``` @@ -249,7 +246,6 @@ from sailpoint.beta.api.mfa_controller_api import MFAControllerApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.kba_answer_request_item import KbaAnswerRequestItem from sailpoint.beta.models.kba_auth_response import KbaAuthResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -264,7 +260,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = MFAControllerApi(api_client).send_kba_answers(new_kba_answer_request_item) print("The response of MFAControllerApi->send_kba_answers:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling MFAControllerApi->send_kba_answers: %s\n" % e) ``` @@ -309,7 +305,6 @@ from sailpoint.beta.api.mfa_controller_api import MFAControllerApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.okta_verification_request import OktaVerificationRequest from sailpoint.beta.models.verification_response import VerificationResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -326,7 +321,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = MFAControllerApi(api_client).send_okta_verify_request(new_okta_verification_request) print("The response of MFAControllerApi->send_okta_verify_request:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling MFAControllerApi->send_okta_verify_request: %s\n" % e) ``` @@ -371,7 +366,6 @@ from sailpoint.beta.api.mfa_controller_api import MFAControllerApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.token_auth_request import TokenAuthRequest from sailpoint.beta.models.token_auth_response import TokenAuthResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -390,7 +384,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = MFAControllerApi(api_client).send_token_auth_request(new_token_auth_request) print("The response of MFAControllerApi->send_token_auth_request:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling MFAControllerApi->send_token_auth_request: %s\n" % e) ``` diff --git a/sailpoint/beta/docs/Methods/ManagedClientsApi.md b/sailpoint/beta/docs/Methods/ManagedClientsApi.md index c594e97e2..fa7b16f06 100644 --- a/sailpoint/beta/docs/Methods/ManagedClientsApi.md +++ b/sailpoint/beta/docs/Methods/ManagedClientsApi.md @@ -62,7 +62,6 @@ from sailpoint.beta.api.managed_clients_api import ManagedClientsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.managed_client_status import ManagedClientStatus from sailpoint.beta.models.managed_client_type import ManagedClientType -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -78,7 +77,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ManagedClientsApi(api_client).get_managed_client_status(id, type) print("The response of ManagedClientsApi->get_managed_client_status:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ManagedClientsApi->get_managed_client_status: %s\n" % e) ``` @@ -128,7 +127,6 @@ from sailpoint.beta.api.managed_clients_api import ManagedClientsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.managed_client_status import ManagedClientStatus from sailpoint.beta.models.managed_client_status_agg_response import ManagedClientStatusAggResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -169,7 +167,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ManagedClientsApi(api_client).update_managed_client_status(id, new_managed_client_status) print("The response of ManagedClientsApi->update_managed_client_status:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ManagedClientsApi->update_managed_client_status: %s\n" % e) ``` diff --git a/sailpoint/beta/docs/Methods/ManagedClustersApi.md b/sailpoint/beta/docs/Methods/ManagedClustersApi.md index ba65ffc17..551ff71cd 100644 --- a/sailpoint/beta/docs/Methods/ManagedClustersApi.md +++ b/sailpoint/beta/docs/Methods/ManagedClustersApi.md @@ -62,7 +62,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.managed_clusters_api import ManagedClustersApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.client_log_configuration import ClientLogConfiguration -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -77,7 +76,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ManagedClustersApi(api_client).get_client_log_configuration(id) print("The response of ManagedClustersApi->get_client_log_configuration:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ManagedClustersApi->get_client_log_configuration: %s\n" % e) ``` @@ -125,7 +124,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.managed_clusters_api import ManagedClustersApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.managed_cluster import ManagedCluster -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -140,7 +138,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ManagedClustersApi(api_client).get_managed_cluster(id) print("The response of ManagedClustersApi->get_managed_cluster:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ManagedClustersApi->get_managed_cluster: %s\n" % e) ``` @@ -190,7 +188,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.managed_clusters_api import ManagedClustersApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.managed_cluster import ManagedCluster -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -208,7 +205,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ManagedClustersApi(api_client).get_managed_clusters(offset, limit, count, filters) print("The response of ManagedClustersApi->get_managed_clusters:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ManagedClustersApi->get_managed_clusters: %s\n" % e) ``` @@ -257,7 +254,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.managed_clusters_api import ManagedClustersApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.client_log_configuration import ClientLogConfiguration -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -279,7 +275,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ManagedClustersApi(api_client).put_client_log_configuration(id, new_client_log_configuration) print("The response of ManagedClustersApi->put_client_log_configuration:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ManagedClustersApi->put_client_log_configuration: %s\n" % e) ``` diff --git a/sailpoint/beta/docs/Methods/MultiHostIntegrationApi.md b/sailpoint/beta/docs/Methods/MultiHostIntegrationApi.md index 3227067ae..e62574ed6 100644 --- a/sailpoint/beta/docs/Methods/MultiHostIntegrationApi.md +++ b/sailpoint/beta/docs/Methods/MultiHostIntegrationApi.md @@ -72,7 +72,6 @@ from sailpoint.beta.api.multi_host_integration_api import MultiHostIntegrationAp from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.multi_host_integrations import MultiHostIntegrations from sailpoint.beta.models.multi_host_integrations_create import MultiHostIntegrationsCreate -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -112,7 +111,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = MultiHostIntegrationApi(api_client).create_multi_host_integration(new_multi_host_integrations_create) print("The response of MultiHostIntegrationApi->create_multi_host_integration:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling MultiHostIntegrationApi->create_multi_host_integration: %s\n" % e) ``` @@ -160,7 +159,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.multi_host_integration_api import MultiHostIntegrationApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.multi_host_integrations_create_sources import MultiHostIntegrationsCreateSources -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -220,7 +218,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.beta.api.multi_host_integration_api import MultiHostIntegrationApi from sailpoint.beta.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -280,7 +277,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.multi_host_integration_api import MultiHostIntegrationApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.multi_host_integrations_agg_schedule_update import MultiHostIntegrationsAggScheduleUpdate -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -295,7 +291,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = MultiHostIntegrationApi(api_client).get_acct_aggregation_groups(multihost_id) print("The response of MultiHostIntegrationApi->get_acct_aggregation_groups:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling MultiHostIntegrationApi->get_acct_aggregation_groups: %s\n" % e) ``` @@ -342,7 +338,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.multi_host_integration_api import MultiHostIntegrationApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.multi_host_integrations_agg_schedule_update import MultiHostIntegrationsAggScheduleUpdate -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -357,7 +352,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = MultiHostIntegrationApi(api_client).get_entitlement_aggregation_groups(multi_host_id) print("The response of MultiHostIntegrationApi->get_entitlement_aggregation_groups:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling MultiHostIntegrationApi->get_entitlement_aggregation_groups: %s\n" % e) ``` @@ -404,7 +399,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.multi_host_integration_api import MultiHostIntegrationApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.multi_host_integrations import MultiHostIntegrations -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -419,7 +413,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = MultiHostIntegrationApi(api_client).get_multi_host_integrations(multihost_id) print("The response of MultiHostIntegrationApi->get_multi_host_integrations:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling MultiHostIntegrationApi->get_multi_host_integrations: %s\n" % e) ``` @@ -471,7 +465,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.multi_host_integration_api import MultiHostIntegrationApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.multi_host_integrations import MultiHostIntegrations -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -491,7 +484,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = MultiHostIntegrationApi(api_client).get_multi_host_integrations_list(offset, limit, sorters, filters, count, for_subadmin) print("The response of MultiHostIntegrationApi->get_multi_host_integrations_list:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling MultiHostIntegrationApi->get_multi_host_integrations_list: %s\n" % e) ``` @@ -538,7 +531,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.multi_host_integration_api import MultiHostIntegrationApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.source_creation_errors import SourceCreationErrors -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -553,7 +545,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = MultiHostIntegrationApi(api_client).get_multi_host_source_creation_errors(multi_host_id) print("The response of MultiHostIntegrationApi->get_multi_host_source_creation_errors:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling MultiHostIntegrationApi->get_multi_host_source_creation_errors: %s\n" % e) ``` @@ -597,7 +589,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.multi_host_integration_api import MultiHostIntegrationApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.multi_host_integration_template_type import MultiHostIntegrationTemplateType -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -611,7 +602,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = MultiHostIntegrationApi(api_client).get_multihost_integration_types() print("The response of MultiHostIntegrationApi->get_multihost_integration_types:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling MultiHostIntegrationApi->get_multihost_integration_types: %s\n" % e) ``` @@ -663,7 +654,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.multi_host_integration_api import MultiHostIntegrationApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.multi_host_sources import MultiHostSources -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -683,7 +673,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = MultiHostIntegrationApi(api_client).get_sources_within_multi_host(multihost_id, offset, limit, sorters, filters, count) print("The response of MultiHostIntegrationApi->get_sources_within_multi_host:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling MultiHostIntegrationApi->get_sources_within_multi_host: %s\n" % e) ``` @@ -729,7 +719,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.beta.api.multi_host_integration_api import MultiHostIntegrationApi from sailpoint.beta.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -790,7 +779,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.multi_host_integration_api import MultiHostIntegrationApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.test_source_connection_multihost200_response import TestSourceConnectionMultihost200Response -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -806,7 +794,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = MultiHostIntegrationApi(api_client).test_source_connection_multihost(multihost_id, source_id) print("The response of MultiHostIntegrationApi->test_source_connection_multihost:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling MultiHostIntegrationApi->test_source_connection_multihost: %s\n" % e) ``` @@ -854,7 +842,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.multi_host_integration_api import MultiHostIntegrationApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.update_multi_host_sources_request_inner import UpdateMultiHostSourcesRequestInner -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() diff --git a/sailpoint/beta/docs/Methods/NonEmployeeLifecycleManagementApi.md b/sailpoint/beta/docs/Methods/NonEmployeeLifecycleManagementApi.md index 287f7b366..09e6f868a 100644 --- a/sailpoint/beta/docs/Methods/NonEmployeeLifecycleManagementApi.md +++ b/sailpoint/beta/docs/Methods/NonEmployeeLifecycleManagementApi.md @@ -117,7 +117,6 @@ from sailpoint.beta.api.non_employee_lifecycle_management_api import NonEmployee from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.non_employee_approval_decision import NonEmployeeApprovalDecision from sailpoint.beta.models.non_employee_approval_item import NonEmployeeApprovalItem -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -135,7 +134,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NonEmployeeLifecycleManagementApi(api_client).approve_non_employee_request(id, new_non_employee_approval_decision) print("The response of NonEmployeeLifecycleManagementApi->approve_non_employee_request:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NonEmployeeLifecycleManagementApi->approve_non_employee_request: %s\n" % e) ``` @@ -182,7 +181,6 @@ from sailpoint.beta.api.non_employee_lifecycle_management_api import NonEmployee from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.non_employee_record import NonEmployeeRecord from sailpoint.beta.models.non_employee_request_body import NonEmployeeRequestBody -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -210,7 +208,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NonEmployeeLifecycleManagementApi(api_client).create_non_employee_record(new_non_employee_request_body) print("The response of NonEmployeeLifecycleManagementApi->create_non_employee_record:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NonEmployeeLifecycleManagementApi->create_non_employee_record: %s\n" % e) ``` @@ -255,7 +253,6 @@ from sailpoint.beta.api.non_employee_lifecycle_management_api import NonEmployee from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.non_employee_request import NonEmployeeRequest from sailpoint.beta.models.non_employee_request_body import NonEmployeeRequestBody -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -283,7 +280,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NonEmployeeLifecycleManagementApi(api_client).create_non_employee_request(new_non_employee_request_body) print("The response of NonEmployeeLifecycleManagementApi->create_non_employee_request:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NonEmployeeLifecycleManagementApi->create_non_employee_request: %s\n" % e) ``` @@ -328,7 +325,6 @@ from sailpoint.beta.api.non_employee_lifecycle_management_api import NonEmployee from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.non_employee_source_request_body import NonEmployeeSourceRequestBody from sailpoint.beta.models.non_employee_source_with_cloud_external_id import NonEmployeeSourceWithCloudExternalId -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -368,7 +364,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NonEmployeeLifecycleManagementApi(api_client).create_non_employee_source(new_non_employee_source_request_body) print("The response of NonEmployeeLifecycleManagementApi->create_non_employee_source:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NonEmployeeLifecycleManagementApi->create_non_employee_source: %s\n" % e) ``` @@ -414,7 +410,6 @@ from sailpoint.beta.api.non_employee_lifecycle_management_api import NonEmployee from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.non_employee_schema_attribute import NonEmployeeSchemaAttribute from sailpoint.beta.models.non_employee_schema_attribute_body import NonEmployeeSchemaAttributeBody -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -437,7 +432,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NonEmployeeLifecycleManagementApi(api_client).create_non_employee_source_schema_attributes(source_id, new_non_employee_schema_attribute_body) print("The response of NonEmployeeLifecycleManagementApi->create_non_employee_source_schema_attributes:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NonEmployeeLifecycleManagementApi->create_non_employee_source_schema_attributes: %s\n" % e) ``` @@ -480,7 +475,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.beta.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.beta.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -539,7 +533,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.delete_non_employee_record_in_bulk_request import DeleteNonEmployeeRecordInBulkRequest -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -596,7 +589,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.beta.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.beta.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -654,7 +646,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.beta.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.beta.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -711,7 +702,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.beta.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.beta.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -767,7 +757,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.beta.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.beta.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -824,7 +813,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.beta.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.beta.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -883,7 +871,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.beta.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.beta.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -941,7 +928,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.non_employee_approval_item_detail import NonEmployeeApprovalItemDetail -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -957,7 +943,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_approval(id, include_detail) print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_approval:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_approval: %s\n" % e) ``` @@ -1001,7 +987,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.non_employee_approval_summary import NonEmployeeApprovalSummary -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1016,7 +1001,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_approval_summary(requested_for) print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_approval_summary:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_approval_summary: %s\n" % e) ``` @@ -1061,7 +1046,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.non_employee_bulk_upload_status import NonEmployeeBulkUploadStatus -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1076,7 +1060,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_bulk_upload_status(id) print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_bulk_upload_status:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_bulk_upload_status: %s\n" % e) ``` @@ -1120,7 +1104,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.non_employee_record import NonEmployeeRecord -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1135,7 +1118,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_record(id) print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_record:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_record: %s\n" % e) ``` @@ -1180,7 +1163,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.non_employee_request import NonEmployeeRequest -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1195,7 +1177,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_request(id) print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_request:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_request: %s\n" % e) ``` @@ -1239,7 +1221,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.non_employee_request_summary import NonEmployeeRequestSummary -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1254,7 +1235,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_request_summary(requested_for) print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_request_summary:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_request_summary: %s\n" % e) ``` @@ -1299,7 +1280,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.non_employee_schema_attribute import NonEmployeeSchemaAttribute -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1315,7 +1295,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_schema_attribute(attribute_id, source_id) print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_schema_attribute:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_schema_attribute: %s\n" % e) ``` @@ -1359,7 +1339,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.non_employee_source import NonEmployeeSource -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1374,7 +1353,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_source(source_id) print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_source:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_source: %s\n" % e) ``` @@ -1419,7 +1398,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.non_employee_schema_attribute import NonEmployeeSchemaAttribute -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1434,7 +1412,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_source_schema_attributes(source_id) print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_source_schema_attributes:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_source_schema_attributes: %s\n" % e) ``` @@ -1482,7 +1460,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.non_employee_bulk_upload_job import NonEmployeeBulkUploadJob -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1498,7 +1475,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NonEmployeeLifecycleManagementApi(api_client).import_non_employee_records_in_bulk(id, data) print("The response of NonEmployeeLifecycleManagementApi->import_non_employee_records_in_bulk:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NonEmployeeLifecycleManagementApi->import_non_employee_records_in_bulk: %s\n" % e) ``` @@ -1547,7 +1524,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.non_employee_approval_item import NonEmployeeApprovalItem -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1567,7 +1543,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NonEmployeeLifecycleManagementApi(api_client).list_non_employee_approval(requested_for, limit, offset, count, filters, sorters) print("The response of NonEmployeeLifecycleManagementApi->list_non_employee_approval:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NonEmployeeLifecycleManagementApi->list_non_employee_approval: %s\n" % e) ``` @@ -1615,7 +1591,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.non_employee_record import NonEmployeeRecord -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1634,7 +1609,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NonEmployeeLifecycleManagementApi(api_client).list_non_employee_records(limit, offset, count, sorters, filters) print("The response of NonEmployeeLifecycleManagementApi->list_non_employee_records:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NonEmployeeLifecycleManagementApi->list_non_employee_records: %s\n" % e) ``` @@ -1683,7 +1658,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.non_employee_request import NonEmployeeRequest -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1703,7 +1677,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NonEmployeeLifecycleManagementApi(api_client).list_non_employee_requests(requested_for, limit, offset, count, sorters, filters) print("The response of NonEmployeeLifecycleManagementApi->list_non_employee_requests:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NonEmployeeLifecycleManagementApi->list_non_employee_requests: %s\n" % e) ``` @@ -1754,7 +1728,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.non_employee_source_with_ne_count import NonEmployeeSourceWithNECount -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1774,7 +1747,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NonEmployeeLifecycleManagementApi(api_client).list_non_employee_sources(limit, offset, count, requested_for, non_employee_count, sorters) print("The response of NonEmployeeLifecycleManagementApi->list_non_employee_sources:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NonEmployeeLifecycleManagementApi->list_non_employee_sources: %s\n" % e) ``` @@ -1821,7 +1794,6 @@ from sailpoint.beta.api.non_employee_lifecycle_management_api import NonEmployee from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.json_patch_operation import JsonPatchOperation from sailpoint.beta.models.non_employee_record import NonEmployeeRecord -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1837,7 +1809,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NonEmployeeLifecycleManagementApi(api_client).patch_non_employee_record(id, new_json_patch_operation) print("The response of NonEmployeeLifecycleManagementApi->patch_non_employee_record:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NonEmployeeLifecycleManagementApi->patch_non_employee_record: %s\n" % e) ``` @@ -1886,7 +1858,6 @@ from sailpoint.beta.api.non_employee_lifecycle_management_api import NonEmployee from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.json_patch_operation import JsonPatchOperation from sailpoint.beta.models.non_employee_schema_attribute import NonEmployeeSchemaAttribute -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1903,7 +1874,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NonEmployeeLifecycleManagementApi(api_client).patch_non_employee_schema_attribute(attribute_id, source_id, new_json_patch_operation) print("The response of NonEmployeeLifecycleManagementApi->patch_non_employee_schema_attribute:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NonEmployeeLifecycleManagementApi->patch_non_employee_schema_attribute: %s\n" % e) ``` @@ -1949,7 +1920,6 @@ from sailpoint.beta.api.non_employee_lifecycle_management_api import NonEmployee from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.json_patch_operation import JsonPatchOperation from sailpoint.beta.models.non_employee_source import NonEmployeeSource -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1965,7 +1935,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NonEmployeeLifecycleManagementApi(api_client).patch_non_employee_source(source_id, new_json_patch_operation) print("The response of NonEmployeeLifecycleManagementApi->patch_non_employee_source:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NonEmployeeLifecycleManagementApi->patch_non_employee_source: %s\n" % e) ``` @@ -2011,7 +1981,6 @@ from sailpoint.beta.api.non_employee_lifecycle_management_api import NonEmployee from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.non_employee_approval_item import NonEmployeeApprovalItem from sailpoint.beta.models.non_employee_reject_approval_decision import NonEmployeeRejectApprovalDecision -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -2029,7 +1998,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NonEmployeeLifecycleManagementApi(api_client).reject_non_employee_request(id, new_non_employee_reject_approval_decision) print("The response of NonEmployeeLifecycleManagementApi->reject_non_employee_request:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NonEmployeeLifecycleManagementApi->reject_non_employee_request: %s\n" % e) ``` @@ -2076,7 +2045,6 @@ from sailpoint.beta.api.non_employee_lifecycle_management_api import NonEmployee from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.non_employee_record import NonEmployeeRecord from sailpoint.beta.models.non_employee_request_body import NonEmployeeRequestBody -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -2105,7 +2073,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NonEmployeeLifecycleManagementApi(api_client).update_non_employee_record(id, new_non_employee_request_body) print("The response of NonEmployeeLifecycleManagementApi->update_non_employee_record:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NonEmployeeLifecycleManagementApi->update_non_employee_record: %s\n" % e) ``` diff --git a/sailpoint/beta/docs/Methods/NotificationsApi.md b/sailpoint/beta/docs/Methods/NotificationsApi.md index a86413b6b..b525acb51 100644 --- a/sailpoint/beta/docs/Methods/NotificationsApi.md +++ b/sailpoint/beta/docs/Methods/NotificationsApi.md @@ -69,7 +69,6 @@ from sailpoint.beta.api.notifications_api import NotificationsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.domain_address import DomainAddress from sailpoint.beta.models.domain_status_dto import DomainStatusDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -86,7 +85,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NotificationsApi(api_client).create_domain_dkim(new_domain_address) print("The response of NotificationsApi->create_domain_dkim:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NotificationsApi->create_domain_dkim: %s\n" % e) ``` @@ -132,7 +131,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.notifications_api import NotificationsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.template_dto import TemplateDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -164,7 +162,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NotificationsApi(api_client).create_notification_template(new_template_dto) print("The response of NotificationsApi->create_notification_template:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NotificationsApi->create_notification_template: %s\n" % e) ``` @@ -208,7 +206,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.notifications_api import NotificationsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.email_status_dto import EmailStatusDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -228,7 +225,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NotificationsApi(api_client).create_verified_from_address(new_email_status_dto) print("The response of NotificationsApi->create_verified_from_address:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NotificationsApi->create_verified_from_address: %s\n" % e) ``` @@ -272,7 +269,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.notifications_api import NotificationsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.template_bulk_delete_dto import TemplateBulkDeleteDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -329,7 +325,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.beta.api.notifications_api import NotificationsApi from sailpoint.beta.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -383,7 +378,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.notifications_api import NotificationsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.dkim_attributes import DkimAttributes -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -397,7 +391,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NotificationsApi(api_client).get_dkim_attributes() print("The response of NotificationsApi->get_dkim_attributes:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NotificationsApi->get_dkim_attributes: %s\n" % e) ``` @@ -441,7 +435,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.notifications_api import NotificationsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.mail_from_attributes import MailFromAttributes -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -456,7 +449,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NotificationsApi(api_client).get_mail_from_attributes(identity_id) print("The response of NotificationsApi->get_mail_from_attributes:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NotificationsApi->get_mail_from_attributes: %s\n" % e) ``` @@ -500,7 +493,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.notifications_api import NotificationsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.template_dto import TemplateDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -515,7 +507,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NotificationsApi(api_client).get_notification_template(id) print("The response of NotificationsApi->get_notification_template:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NotificationsApi->get_notification_template: %s\n" % e) ``` @@ -557,7 +549,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.notifications_api import NotificationsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.notification_template_context import NotificationTemplateContext -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -571,7 +562,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NotificationsApi(api_client).get_notifications_template_context() print("The response of NotificationsApi->get_notifications_template_context:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NotificationsApi->get_notifications_template_context: %s\n" % e) ``` @@ -618,7 +609,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.notifications_api import NotificationsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.email_status_dto import EmailStatusDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -637,7 +627,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NotificationsApi(api_client).list_from_addresses(limit, offset, count, filters, sorters) print("The response of NotificationsApi->list_from_addresses:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NotificationsApi->list_from_addresses: %s\n" % e) ``` @@ -682,7 +672,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.notifications_api import NotificationsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.preferences_dto import PreferencesDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -697,7 +686,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NotificationsApi(api_client).list_notification_preferences(key) print("The response of NotificationsApi->list_notification_preferences:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NotificationsApi->list_notification_preferences: %s\n" % e) ``` @@ -743,7 +732,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.notifications_api import NotificationsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.template_dto_default import TemplateDtoDefault -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -760,7 +748,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NotificationsApi(api_client).list_notification_template_defaults(limit, offset, filters) print("The response of NotificationsApi->list_notification_template_defaults:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NotificationsApi->list_notification_template_defaults: %s\n" % e) ``` @@ -806,7 +794,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.notifications_api import NotificationsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.template_dto import TemplateDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -823,7 +810,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NotificationsApi(api_client).list_notification_templates(limit, offset, filters) print("The response of NotificationsApi->list_notification_templates:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NotificationsApi->list_notification_templates: %s\n" % e) ``` @@ -868,7 +855,6 @@ from sailpoint.beta.api.notifications_api import NotificationsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.mail_from_attributes import MailFromAttributes from sailpoint.beta.models.mail_from_attributes_dto import MailFromAttributesDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -886,7 +872,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NotificationsApi(api_client).put_mail_from_attributes(new_mail_from_attributes_dto) print("The response of NotificationsApi->put_mail_from_attributes:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NotificationsApi->put_mail_from_attributes: %s\n" % e) ``` @@ -931,7 +917,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.notifications_api import NotificationsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.send_test_notification_request_dto import SendTestNotificationRequestDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() diff --git a/sailpoint/beta/docs/Methods/OAuthClientsApi.md b/sailpoint/beta/docs/Methods/OAuthClientsApi.md index c5f291b96..470d5838b 100644 --- a/sailpoint/beta/docs/Methods/OAuthClientsApi.md +++ b/sailpoint/beta/docs/Methods/OAuthClientsApi.md @@ -61,7 +61,6 @@ from sailpoint.beta.api.o_auth_clients_api import OAuthClientsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.create_o_auth_client_request import CreateOAuthClientRequest from sailpoint.beta.models.create_o_auth_client_response import CreateOAuthClientResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -92,7 +91,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = OAuthClientsApi(api_client).create_oauth_client(new_create_o_auth_client_request) print("The response of OAuthClientsApi->create_oauth_client:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling OAuthClientsApi->create_oauth_client: %s\n" % e) ``` @@ -136,7 +135,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.beta.api.o_auth_clients_api import OAuthClientsApi from sailpoint.beta.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -194,7 +192,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.o_auth_clients_api import OAuthClientsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.get_o_auth_client_response import GetOAuthClientResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -209,7 +206,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = OAuthClientsApi(api_client).get_oauth_client(id) print("The response of OAuthClientsApi->get_oauth_client:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling OAuthClientsApi->get_oauth_client: %s\n" % e) ``` @@ -253,7 +250,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.o_auth_clients_api import OAuthClientsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.get_o_auth_client_response import GetOAuthClientResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -268,7 +264,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = OAuthClientsApi(api_client).list_oauth_clients(filters) print("The response of OAuthClientsApi->list_oauth_clients:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling OAuthClientsApi->list_oauth_clients: %s\n" % e) ``` @@ -317,7 +313,6 @@ from sailpoint.beta.api.o_auth_clients_api import OAuthClientsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.get_o_auth_client_response import GetOAuthClientResponse from sailpoint.beta.models.json_patch_operation import JsonPatchOperation -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -333,7 +328,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = OAuthClientsApi(api_client).patch_oauth_client(id, new_json_patch_operation) print("The response of OAuthClientsApi->patch_oauth_client:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling OAuthClientsApi->patch_oauth_client: %s\n" % e) ``` diff --git a/sailpoint/beta/docs/Methods/OrgConfigApi.md b/sailpoint/beta/docs/Methods/OrgConfigApi.md index d40a92a62..059189f7a 100644 --- a/sailpoint/beta/docs/Methods/OrgConfigApi.md +++ b/sailpoint/beta/docs/Methods/OrgConfigApi.md @@ -55,7 +55,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.org_config_api import OrgConfigApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.org_config import OrgConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -69,7 +68,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = OrgConfigApi(api_client).get_org_config() print("The response of OrgConfigApi->get_org_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling OrgConfigApi->get_org_config: %s\n" % e) ``` @@ -109,7 +108,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.beta.api.org_config_api import OrgConfigApi from sailpoint.beta.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -123,7 +121,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = OrgConfigApi(api_client).get_valid_time_zones() print("The response of OrgConfigApi->get_valid_time_zones:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling OrgConfigApi->get_valid_time_zones: %s\n" % e) ``` @@ -169,7 +167,6 @@ from sailpoint.beta.api.org_config_api import OrgConfigApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.json_patch_operation import JsonPatchOperation from sailpoint.beta.models.org_config import OrgConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -184,7 +181,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = OrgConfigApi(api_client).patch_org_config(new_json_patch_operation) print("The response of OrgConfigApi->patch_org_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling OrgConfigApi->patch_org_config: %s\n" % e) ``` diff --git a/sailpoint/beta/docs/Methods/PasswordConfigurationApi.md b/sailpoint/beta/docs/Methods/PasswordConfigurationApi.md index 5883dce7b..87d389087 100644 --- a/sailpoint/beta/docs/Methods/PasswordConfigurationApi.md +++ b/sailpoint/beta/docs/Methods/PasswordConfigurationApi.md @@ -63,7 +63,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.password_configuration_api import PasswordConfigurationApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.password_org_config import PasswordOrgConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -83,7 +82,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = PasswordConfigurationApi(api_client).create_password_org_config(new_password_org_config) print("The response of PasswordConfigurationApi->create_password_org_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling PasswordConfigurationApi->create_password_org_config: %s\n" % e) ``` @@ -124,7 +123,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.password_configuration_api import PasswordConfigurationApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.password_org_config import PasswordOrgConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -138,7 +136,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = PasswordConfigurationApi(api_client).get_password_org_config() print("The response of PasswordConfigurationApi->get_password_org_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling PasswordConfigurationApi->get_password_org_config: %s\n" % e) ``` @@ -184,7 +182,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.password_configuration_api import PasswordConfigurationApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.password_org_config import PasswordOrgConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -204,7 +201,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = PasswordConfigurationApi(api_client).put_password_org_config(new_password_org_config) print("The response of PasswordConfigurationApi->put_password_org_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling PasswordConfigurationApi->put_password_org_config: %s\n" % e) ``` diff --git a/sailpoint/beta/docs/Methods/PasswordDictionaryApi.md b/sailpoint/beta/docs/Methods/PasswordDictionaryApi.md index 7b5a11161..eeb2171b6 100644 --- a/sailpoint/beta/docs/Methods/PasswordDictionaryApi.md +++ b/sailpoint/beta/docs/Methods/PasswordDictionaryApi.md @@ -126,7 +126,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.beta.api.password_dictionary_api import PasswordDictionaryApi from sailpoint.beta.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -140,7 +139,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = PasswordDictionaryApi(api_client).get_password_dictionary() print("The response of PasswordDictionaryApi->get_password_dictionary:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling PasswordDictionaryApi->get_password_dictionary: %s\n" % e) ``` @@ -213,7 +212,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.beta.api.password_dictionary_api import PasswordDictionaryApi from sailpoint.beta.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() diff --git a/sailpoint/beta/docs/Methods/PasswordManagementApi.md b/sailpoint/beta/docs/Methods/PasswordManagementApi.md index 27ff4059c..bd1204509 100644 --- a/sailpoint/beta/docs/Methods/PasswordManagementApi.md +++ b/sailpoint/beta/docs/Methods/PasswordManagementApi.md @@ -81,7 +81,6 @@ from sailpoint.beta.api.password_management_api import PasswordManagementApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.password_digit_token import PasswordDigitToken from sailpoint.beta.models.password_digit_token_reset import PasswordDigitTokenReset -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -100,7 +99,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = PasswordManagementApi(api_client).create_digit_token(new_password_digit_token_reset) print("The response of PasswordManagementApi->create_digit_token:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling PasswordManagementApi->create_digit_token: %s\n" % e) ``` @@ -144,7 +143,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.password_management_api import PasswordManagementApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.password_status import PasswordStatus -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -159,7 +157,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = PasswordManagementApi(api_client).get_identity_password_change_status(id) print("The response of PasswordManagementApi->get_identity_password_change_status:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling PasswordManagementApi->get_identity_password_change_status: %s\n" % e) ``` @@ -212,7 +210,6 @@ from sailpoint.beta.api.password_management_api import PasswordManagementApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.password_info import PasswordInfo from sailpoint.beta.models.password_info_query_dto import PasswordInfoQueryDTO -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -230,7 +227,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = PasswordManagementApi(api_client).query_password_info(new_password_info_query_dto) print("The response of PasswordManagementApi->query_password_info:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling PasswordManagementApi->query_password_info: %s\n" % e) ``` @@ -318,7 +315,6 @@ from sailpoint.beta.api.password_management_api import PasswordManagementApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.password_change_request import PasswordChangeRequest from sailpoint.beta.models.password_change_response import PasswordChangeResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -339,7 +335,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = PasswordManagementApi(api_client).set_identity_password(new_password_change_request) print("The response of PasswordManagementApi->set_identity_password:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling PasswordManagementApi->set_identity_password: %s\n" % e) ``` diff --git a/sailpoint/beta/docs/Methods/PasswordPoliciesApi.md b/sailpoint/beta/docs/Methods/PasswordPoliciesApi.md index 79748878b..d0dad2691 100644 --- a/sailpoint/beta/docs/Methods/PasswordPoliciesApi.md +++ b/sailpoint/beta/docs/Methods/PasswordPoliciesApi.md @@ -67,7 +67,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.password_policies_api import PasswordPoliciesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.password_policy_v3_dto import PasswordPolicyV3Dto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -114,7 +113,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = PasswordPoliciesApi(api_client).create_password_policy(new_password_policy_v3_dto) print("The response of PasswordPoliciesApi->create_password_policy:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling PasswordPoliciesApi->create_password_policy: %s\n" % e) ``` @@ -158,7 +157,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.beta.api.password_policies_api import PasswordPoliciesApi from sailpoint.beta.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -216,7 +214,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.password_policies_api import PasswordPoliciesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.password_policy_v3_dto import PasswordPolicyV3Dto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -231,7 +228,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = PasswordPoliciesApi(api_client).get_password_policy_by_id(id) print("The response of PasswordPoliciesApi->get_password_policy_by_id:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling PasswordPoliciesApi->get_password_policy_by_id: %s\n" % e) ``` @@ -278,7 +275,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.password_policies_api import PasswordPoliciesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.password_policy_v3_dto import PasswordPolicyV3Dto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -295,7 +291,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = PasswordPoliciesApi(api_client).list_password_policies(limit, offset, count) print("The response of PasswordPoliciesApi->list_password_policies:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling PasswordPoliciesApi->list_password_policies: %s\n" % e) ``` @@ -341,7 +337,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.password_policies_api import PasswordPoliciesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.password_policy_v3_dto import PasswordPolicyV3Dto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -389,7 +384,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = PasswordPoliciesApi(api_client).set_password_policy(id, new_password_policy_v3_dto) print("The response of PasswordPoliciesApi->set_password_policy:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling PasswordPoliciesApi->set_password_policy: %s\n" % e) ``` diff --git a/sailpoint/beta/docs/Methods/PasswordSyncGroupsApi.md b/sailpoint/beta/docs/Methods/PasswordSyncGroupsApi.md index b9aa3e9fa..a56dc4870 100644 --- a/sailpoint/beta/docs/Methods/PasswordSyncGroupsApi.md +++ b/sailpoint/beta/docs/Methods/PasswordSyncGroupsApi.md @@ -89,7 +89,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.password_sync_groups_api import PasswordSyncGroupsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.password_sync_group import PasswordSyncGroup -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -111,7 +110,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = PasswordSyncGroupsApi(api_client).create_password_sync_group(new_password_sync_group) print("The response of PasswordSyncGroupsApi->create_password_sync_group:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling PasswordSyncGroupsApi->create_password_sync_group: %s\n" % e) ``` @@ -154,7 +153,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.beta.api.password_sync_groups_api import PasswordSyncGroupsApi from sailpoint.beta.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -212,7 +210,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.password_sync_groups_api import PasswordSyncGroupsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.password_sync_group import PasswordSyncGroup -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -227,7 +224,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = PasswordSyncGroupsApi(api_client).get_password_sync_group(id) print("The response of PasswordSyncGroupsApi->get_password_sync_group:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling PasswordSyncGroupsApi->get_password_sync_group: %s\n" % e) ``` @@ -273,7 +270,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.password_sync_groups_api import PasswordSyncGroupsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.password_sync_group import PasswordSyncGroup -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -290,7 +286,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = PasswordSyncGroupsApi(api_client).get_password_sync_groups(limit, offset, count) print("The response of PasswordSyncGroupsApi->get_password_sync_groups:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling PasswordSyncGroupsApi->get_password_sync_groups: %s\n" % e) ``` @@ -336,7 +332,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.password_sync_groups_api import PasswordSyncGroupsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.password_sync_group import PasswordSyncGroup -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -359,7 +354,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = PasswordSyncGroupsApi(api_client).update_password_sync_group(id, new_password_sync_group) print("The response of PasswordSyncGroupsApi->update_password_sync_group:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling PasswordSyncGroupsApi->update_password_sync_group: %s\n" % e) ``` diff --git a/sailpoint/beta/docs/Methods/PersonalAccessTokensApi.md b/sailpoint/beta/docs/Methods/PersonalAccessTokensApi.md index f3682e940..6ec880dee 100644 --- a/sailpoint/beta/docs/Methods/PersonalAccessTokensApi.md +++ b/sailpoint/beta/docs/Methods/PersonalAccessTokensApi.md @@ -68,7 +68,6 @@ from sailpoint.beta.api.personal_access_tokens_api import PersonalAccessTokensAp from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.create_personal_access_token_request import CreatePersonalAccessTokenRequest from sailpoint.beta.models.create_personal_access_token_response import CreatePersonalAccessTokenResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -87,7 +86,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = PersonalAccessTokensApi(api_client).create_personal_access_token(new_create_personal_access_token_request) print("The response of PersonalAccessTokensApi->create_personal_access_token:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling PersonalAccessTokensApi->create_personal_access_token: %s\n" % e) ``` @@ -131,7 +130,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.beta.api.personal_access_tokens_api import PersonalAccessTokensApi from sailpoint.beta.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -189,7 +187,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.personal_access_tokens_api import PersonalAccessTokensApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.get_personal_access_token_response import GetPersonalAccessTokenResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -205,7 +202,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = PersonalAccessTokensApi(api_client).list_personal_access_tokens(owner_id, filters) print("The response of PersonalAccessTokensApi->list_personal_access_tokens:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling PersonalAccessTokensApi->list_personal_access_tokens: %s\n" % e) ``` @@ -252,7 +249,6 @@ from sailpoint.beta.api.personal_access_tokens_api import PersonalAccessTokensAp from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.get_personal_access_token_response import GetPersonalAccessTokenResponse from sailpoint.beta.models.json_patch_operation import JsonPatchOperation -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -268,7 +264,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = PersonalAccessTokensApi(api_client).patch_personal_access_token(id, new_json_patch_operation) print("The response of PersonalAccessTokensApi->patch_personal_access_token:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling PersonalAccessTokensApi->patch_personal_access_token: %s\n" % e) ``` diff --git a/sailpoint/beta/docs/Methods/PublicIdentitiesConfigApi.md b/sailpoint/beta/docs/Methods/PublicIdentitiesConfigApi.md index 8e0febc27..7382bf01c 100644 --- a/sailpoint/beta/docs/Methods/PublicIdentitiesConfigApi.md +++ b/sailpoint/beta/docs/Methods/PublicIdentitiesConfigApi.md @@ -61,7 +61,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.public_identities_config_api import PublicIdentitiesConfigApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.public_identity_config import PublicIdentityConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -75,7 +74,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = PublicIdentitiesConfigApi(api_client).get_public_identity_config() print("The response of PublicIdentitiesConfigApi->get_public_identity_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling PublicIdentitiesConfigApi->get_public_identity_config: %s\n" % e) ``` @@ -119,7 +118,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.public_identities_config_api import PublicIdentitiesConfigApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.public_identity_config import PublicIdentityConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -148,7 +146,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = PublicIdentitiesConfigApi(api_client).update_public_identity_config(new_public_identity_config) print("The response of PublicIdentitiesConfigApi->update_public_identity_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling PublicIdentitiesConfigApi->update_public_identity_config: %s\n" % e) ``` diff --git a/sailpoint/beta/docs/Methods/RequestableObjectsApi.md b/sailpoint/beta/docs/Methods/RequestableObjectsApi.md index 32d91b7eb..7fc4682c8 100644 --- a/sailpoint/beta/docs/Methods/RequestableObjectsApi.md +++ b/sailpoint/beta/docs/Methods/RequestableObjectsApi.md @@ -67,7 +67,6 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.requestable_object import RequestableObject from sailpoint.beta.models.requestable_object_request_status import RequestableObjectRequestStatus from sailpoint.beta.models.requestable_object_type import RequestableObjectType -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -90,7 +89,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = RequestableObjectsApi(api_client).list_requestable_objects(identity_id, types, term, statuses, limit, offset, count, filters, sorters) print("The response of RequestableObjectsApi->list_requestable_objects:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling RequestableObjectsApi->list_requestable_objects: %s\n" % e) ``` diff --git a/sailpoint/beta/docs/Methods/RoleInsightsApi.md b/sailpoint/beta/docs/Methods/RoleInsightsApi.md index dd2bdbc00..1c1994820 100644 --- a/sailpoint/beta/docs/Methods/RoleInsightsApi.md +++ b/sailpoint/beta/docs/Methods/RoleInsightsApi.md @@ -61,7 +61,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.role_insights_api import RoleInsightsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.role_insights_response import RoleInsightsResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -75,7 +74,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = RoleInsightsApi(api_client).create_role_insight_requests() print("The response of RoleInsightsApi->create_role_insight_requests:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling RoleInsightsApi->create_role_insight_requests: %s\n" % e) ``` @@ -119,7 +118,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.beta.api.role_insights_api import RoleInsightsApi from sailpoint.beta.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -136,7 +134,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = RoleInsightsApi(api_client).download_role_insights_entitlements_changes(insight_id, sorters, filters) print("The response of RoleInsightsApi->download_role_insights_entitlements_changes:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling RoleInsightsApi->download_role_insights_entitlements_changes: %s\n" % e) ``` @@ -186,7 +184,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.role_insights_api import RoleInsightsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.role_insights_identities import RoleInsightsIdentities -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -208,7 +205,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = RoleInsightsApi(api_client).get_entitlement_changes_identities(insight_id, entitlement_id, has_entitlement, offset, limit, count, sorters, filters) print("The response of RoleInsightsApi->get_entitlement_changes_identities:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling RoleInsightsApi->get_entitlement_changes_identities: %s\n" % e) ``` @@ -251,7 +248,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.role_insights_api import RoleInsightsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.role_insight import RoleInsight -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -266,7 +262,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = RoleInsightsApi(api_client).get_role_insight(insight_id) print("The response of RoleInsightsApi->get_role_insight:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling RoleInsightsApi->get_role_insight: %s\n" % e) ``` @@ -313,7 +309,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.role_insights_api import RoleInsightsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.role_insight import RoleInsight -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -332,7 +327,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = RoleInsightsApi(api_client).get_role_insights(offset, limit, count, sorters, filters) print("The response of RoleInsightsApi->get_role_insights:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling RoleInsightsApi->get_role_insights: %s\n" % e) ``` @@ -376,7 +371,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.role_insights_api import RoleInsightsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.role_insights_entitlement import RoleInsightsEntitlement -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -392,7 +386,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = RoleInsightsApi(api_client).get_role_insights_current_entitlements(insight_id, filters) print("The response of RoleInsightsApi->get_role_insights_current_entitlements:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling RoleInsightsApi->get_role_insights_current_entitlements: %s\n" % e) ``` @@ -437,7 +431,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.role_insights_api import RoleInsightsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.role_insights_entitlement_changes import RoleInsightsEntitlementChanges -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -454,7 +447,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = RoleInsightsApi(api_client).get_role_insights_entitlements_changes(insight_id, sorters, filters) print("The response of RoleInsightsApi->get_role_insights_entitlements_changes:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling RoleInsightsApi->get_role_insights_entitlements_changes: %s\n" % e) ``` @@ -501,7 +494,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.role_insights_api import RoleInsightsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.role_insights_response import RoleInsightsResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -516,7 +508,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = RoleInsightsApi(api_client).get_role_insights_requests(id) print("The response of RoleInsightsApi->get_role_insights_requests:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling RoleInsightsApi->get_role_insights_requests: %s\n" % e) ``` @@ -556,7 +548,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.role_insights_api import RoleInsightsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.role_insights_summary import RoleInsightsSummary -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -570,7 +561,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = RoleInsightsApi(api_client).get_role_insights_summary() print("The response of RoleInsightsApi->get_role_insights_summary:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling RoleInsightsApi->get_role_insights_summary: %s\n" % e) ``` diff --git a/sailpoint/beta/docs/Methods/RolesApi.md b/sailpoint/beta/docs/Methods/RolesApi.md index 321e811dd..ebda72af7 100644 --- a/sailpoint/beta/docs/Methods/RolesApi.md +++ b/sailpoint/beta/docs/Methods/RolesApi.md @@ -103,7 +103,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.roles_api import RolesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.role import Role -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -275,7 +274,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = RolesApi(api_client).create_role(new_role) print("The response of RolesApi->create_role:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling RolesApi->create_role: %s\n" % e) ``` @@ -323,7 +322,6 @@ from sailpoint.beta.api.roles_api import RolesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.role_bulk_delete_request import RoleBulkDeleteRequest from sailpoint.beta.models.task_result_dto import TaskResultDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -340,7 +338,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = RolesApi(api_client).delete_bulk_roles(new_role_bulk_delete_request) print("The response of RolesApi->delete_bulk_roles:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling RolesApi->delete_bulk_roles: %s\n" % e) ``` @@ -385,7 +383,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.beta.api.roles_api import RolesApi from sailpoint.beta.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -443,7 +440,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.roles_api import RolesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.role import Role -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -458,7 +454,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = RolesApi(api_client).get_role(id) print("The response of RolesApi->get_role:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling RolesApi->get_role: %s\n" % e) ``` @@ -507,7 +503,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.roles_api import RolesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.role_identity import RoleIdentity -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -527,7 +522,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = RolesApi(api_client).get_role_assigned_identities(id, limit, offset, count, filters, sorters) print("The response of RolesApi->get_role_assigned_identities:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling RolesApi->get_role_assigned_identities: %s\n" % e) ``` @@ -576,7 +571,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.roles_api import RolesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.entitlement import Entitlement -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -596,7 +590,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = RolesApi(api_client).get_role_entitlements(id, limit, offset, count, filters, sorters) print("The response of RolesApi->get_role_entitlements:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling RolesApi->get_role_entitlements: %s\n" % e) ``` @@ -649,7 +643,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.roles_api import RolesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.role import Role -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -671,7 +664,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = RolesApi(api_client).list_roles(for_subadmin, limit, offset, count, filters, sorters, for_segment_ids, include_unsegmented) print("The response of RolesApi->list_roles:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling RolesApi->list_roles: %s\n" % e) ``` @@ -737,7 +730,6 @@ from sailpoint.beta.api.roles_api import RolesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.json_patch_operation import JsonPatchOperation from sailpoint.beta.models.role import Role -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -753,7 +745,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = RolesApi(api_client).patch_role(id, new_json_patch_operation) print("The response of RolesApi->patch_role:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling RolesApi->patch_role: %s\n" % e) ``` diff --git a/sailpoint/beta/docs/Methods/SIMIntegrationsApi.md b/sailpoint/beta/docs/Methods/SIMIntegrationsApi.md index def022ce3..11d985d8c 100644 --- a/sailpoint/beta/docs/Methods/SIMIntegrationsApi.md +++ b/sailpoint/beta/docs/Methods/SIMIntegrationsApi.md @@ -68,7 +68,6 @@ from sailpoint.beta.api.sim_integrations_api import SIMIntegrationsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.service_desk_integration_dto import ServiceDeskIntegrationDto from sailpoint.beta.models.sim_integration_details import SimIntegrationDetails -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -100,7 +99,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SIMIntegrationsApi(api_client).create_sim_integration(new_sim_integration_details) print("The response of SIMIntegrationsApi->create_sim_integration:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SIMIntegrationsApi->create_sim_integration: %s\n" % e) ``` @@ -144,7 +143,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.beta.api.sim_integrations_api import SIMIntegrationsApi from sailpoint.beta.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -202,7 +200,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.sim_integrations_api import SIMIntegrationsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.service_desk_integration_dto import ServiceDeskIntegrationDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -217,7 +214,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SIMIntegrationsApi(api_client).get_sim_integration(id) print("The response of SIMIntegrationsApi->get_sim_integration:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SIMIntegrationsApi->get_sim_integration: %s\n" % e) ``` @@ -259,7 +256,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.sim_integrations_api import SIMIntegrationsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.service_desk_integration_dto import ServiceDeskIntegrationDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -273,7 +269,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SIMIntegrationsApi(api_client).get_sim_integrations() print("The response of SIMIntegrationsApi->get_sim_integrations:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SIMIntegrationsApi->get_sim_integrations: %s\n" % e) ``` @@ -320,7 +316,6 @@ from sailpoint.beta.api.sim_integrations_api import SIMIntegrationsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.json_patch import JsonPatch from sailpoint.beta.models.service_desk_integration_dto import ServiceDeskIntegrationDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -336,7 +331,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SIMIntegrationsApi(api_client).patch_before_provisioning_rule(id, new_json_patch) print("The response of SIMIntegrationsApi->patch_before_provisioning_rule:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SIMIntegrationsApi->patch_before_provisioning_rule: %s\n" % e) ``` @@ -383,7 +378,6 @@ from sailpoint.beta.api.sim_integrations_api import SIMIntegrationsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.json_patch import JsonPatch from sailpoint.beta.models.service_desk_integration_dto import ServiceDeskIntegrationDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -399,7 +393,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SIMIntegrationsApi(api_client).patch_sim_attributes(id, new_json_patch) print("The response of SIMIntegrationsApi->patch_sim_attributes:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SIMIntegrationsApi->patch_sim_attributes: %s\n" % e) ``` @@ -446,7 +440,6 @@ from sailpoint.beta.api.sim_integrations_api import SIMIntegrationsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.service_desk_integration_dto import ServiceDeskIntegrationDto from sailpoint.beta.models.sim_integration_details import SimIntegrationDetails -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -479,7 +472,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SIMIntegrationsApi(api_client).put_sim_integration(id, new_sim_integration_details) print("The response of SIMIntegrationsApi->put_sim_integration:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SIMIntegrationsApi->put_sim_integration: %s\n" % e) ``` diff --git a/sailpoint/beta/docs/Methods/SODPoliciesApi.md b/sailpoint/beta/docs/Methods/SODPoliciesApi.md index a9032af50..4d3852000 100644 --- a/sailpoint/beta/docs/Methods/SODPoliciesApi.md +++ b/sailpoint/beta/docs/Methods/SODPoliciesApi.md @@ -98,7 +98,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.sod_policies_api import SODPoliciesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.sod_policy import SodPolicy -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -168,7 +167,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SODPoliciesApi(api_client).create_sod_policy(new_sod_policy) print("The response of SODPoliciesApi->create_sod_policy:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SODPoliciesApi->create_sod_policy: %s\n" % e) ``` @@ -217,7 +216,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.beta.api.sod_policies_api import SODPoliciesApi from sailpoint.beta.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -279,7 +277,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.beta.api.sod_policies_api import SODPoliciesApi from sailpoint.beta.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -341,7 +338,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.beta.api.sod_policies_api import SODPoliciesApi from sailpoint.beta.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -357,7 +353,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SODPoliciesApi(api_client).get_custom_violation_report(report_result_id, file_name) print("The response of SODPoliciesApi->get_custom_violation_report:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SODPoliciesApi->get_custom_violation_report: %s\n" % e) ``` @@ -405,7 +401,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.beta.api.sod_policies_api import SODPoliciesApi from sailpoint.beta.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -420,7 +415,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SODPoliciesApi(api_client).get_default_violation_report(report_result_id) print("The response of SODPoliciesApi->get_default_violation_report:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SODPoliciesApi->get_default_violation_report: %s\n" % e) ``` @@ -465,7 +460,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.sod_policies_api import SODPoliciesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.report_result_reference import ReportResultReference -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -479,7 +473,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SODPoliciesApi(api_client).get_sod_all_report_run_status() print("The response of SODPoliciesApi->get_sod_all_report_run_status:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SODPoliciesApi->get_sod_all_report_run_status: %s\n" % e) ``` @@ -528,7 +522,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.sod_policies_api import SODPoliciesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.sod_policy import SodPolicy -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -543,7 +536,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SODPoliciesApi(api_client).get_sod_policy(id) print("The response of SODPoliciesApi->get_sod_policy:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SODPoliciesApi->get_sod_policy: %s\n" % e) ``` @@ -591,7 +584,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.sod_policies_api import SODPoliciesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.sod_policy_schedule import SodPolicySchedule -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -606,7 +598,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SODPoliciesApi(api_client).get_sod_policy_schedule(id) print("The response of SODPoliciesApi->get_sod_policy_schedule:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SODPoliciesApi->get_sod_policy_schedule: %s\n" % e) ``` @@ -655,7 +647,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.sod_policies_api import SODPoliciesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.report_result_reference import ReportResultReference -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -670,7 +661,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SODPoliciesApi(api_client).get_sod_violation_report_run_status(report_result_id) print("The response of SODPoliciesApi->get_sod_violation_report_run_status:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SODPoliciesApi->get_sod_violation_report_run_status: %s\n" % e) ``` @@ -719,7 +710,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.sod_policies_api import SODPoliciesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.report_result_reference import ReportResultReference -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -734,7 +724,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SODPoliciesApi(api_client).get_sod_violation_report_status(id) print("The response of SODPoliciesApi->get_sod_violation_report_status:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SODPoliciesApi->get_sod_violation_report_status: %s\n" % e) ``` @@ -786,7 +776,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.sod_policies_api import SODPoliciesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.sod_policy import SodPolicy -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -805,7 +794,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SODPoliciesApi(api_client).list_sod_policies(limit, offset, count, filters, sorters) print("The response of SODPoliciesApi->list_sod_policies:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SODPoliciesApi->list_sod_policies: %s\n" % e) ``` @@ -856,7 +845,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.sod_policies_api import SODPoliciesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.sod_policy import SodPolicy -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -872,7 +860,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SODPoliciesApi(api_client).patch_sod_policy(id, new_request_body) print("The response of SODPoliciesApi->patch_sod_policy:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SODPoliciesApi->patch_sod_policy: %s\n" % e) ``` @@ -921,7 +909,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.sod_policies_api import SODPoliciesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.sod_policy_schedule import SodPolicySchedule -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1022,7 +1009,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SODPoliciesApi(api_client).put_policy_schedule(id, new_sod_policy_schedule) print("The response of SODPoliciesApi->put_policy_schedule:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SODPoliciesApi->put_policy_schedule: %s\n" % e) ``` @@ -1072,7 +1059,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.sod_policies_api import SODPoliciesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.sod_policy import SodPolicy -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1143,7 +1129,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SODPoliciesApi(api_client).put_sod_policy(id, new_sod_policy) print("The response of SODPoliciesApi->put_sod_policy:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SODPoliciesApi->put_sod_policy: %s\n" % e) ``` @@ -1192,7 +1178,6 @@ from sailpoint.beta.api.sod_policies_api import SODPoliciesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.multi_policy_request import MultiPolicyRequest from sailpoint.beta.models.report_result_reference import ReportResultReference -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1209,7 +1194,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SODPoliciesApi(api_client).start_sod_all_policies_for_org(new_multi_policy_request) print("The response of SODPoliciesApi->start_sod_all_policies_for_org:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SODPoliciesApi->start_sod_all_policies_for_org: %s\n" % e) ``` @@ -1258,7 +1243,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.sod_policies_api import SODPoliciesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.report_result_reference import ReportResultReference -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1273,7 +1257,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SODPoliciesApi(api_client).start_sod_policy(id) print("The response of SODPoliciesApi->start_sod_policy:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SODPoliciesApi->start_sod_policy: %s\n" % e) ``` diff --git a/sailpoint/beta/docs/Methods/SODViolationsApi.md b/sailpoint/beta/docs/Methods/SODViolationsApi.md index bb107f3c0..3be208768 100644 --- a/sailpoint/beta/docs/Methods/SODViolationsApi.md +++ b/sailpoint/beta/docs/Methods/SODViolationsApi.md @@ -78,7 +78,6 @@ from sailpoint.beta.api.sod_violations_api import SODViolationsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.identity_with_new_access import IdentityWithNewAccess from sailpoint.beta.models.violation_prediction import ViolationPrediction -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -104,7 +103,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SODViolationsApi(api_client).start_predict_sod_violations(new_identity_with_new_access) print("The response of SODViolationsApi->start_predict_sod_violations:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SODViolationsApi->start_predict_sod_violations: %s\n" % e) ``` diff --git a/sailpoint/beta/docs/Methods/SPConfigApi.md b/sailpoint/beta/docs/Methods/SPConfigApi.md index 3225574c1..a65912635 100644 --- a/sailpoint/beta/docs/Methods/SPConfigApi.md +++ b/sailpoint/beta/docs/Methods/SPConfigApi.md @@ -62,7 +62,6 @@ from sailpoint.beta.api.sp_config_api import SPConfigApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.export_payload import ExportPayload from sailpoint.beta.models.sp_config_export_job import SpConfigExportJob -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -79,7 +78,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SPConfigApi(api_client).export_sp_config(new_export_payload) print("The response of SPConfigApi->export_sp_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SPConfigApi->export_sp_config: %s\n" % e) ``` @@ -126,7 +125,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.sp_config_api import SPConfigApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.sp_config_export_results import SpConfigExportResults -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -141,7 +139,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SPConfigApi(api_client).get_sp_config_export(id) print("The response of SPConfigApi->get_sp_config_export:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SPConfigApi->get_sp_config_export: %s\n" % e) ``` @@ -188,7 +186,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.sp_config_api import SPConfigApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.sp_config_export_job_status import SpConfigExportJobStatus -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -203,7 +200,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SPConfigApi(api_client).get_sp_config_export_status(id) print("The response of SPConfigApi->get_sp_config_export_status:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SPConfigApi->get_sp_config_export_status: %s\n" % e) ``` @@ -250,7 +247,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.sp_config_api import SPConfigApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.sp_config_import_results import SpConfigImportResults -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -265,7 +261,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SPConfigApi(api_client).get_sp_config_import(id) print("The response of SPConfigApi->get_sp_config_import:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SPConfigApi->get_sp_config_import: %s\n" % e) ``` @@ -311,7 +307,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.sp_config_api import SPConfigApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.sp_config_import_job_status import SpConfigImportJobStatus -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -326,7 +321,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SPConfigApi(api_client).get_sp_config_import_status(id) print("The response of SPConfigApi->get_sp_config_import_status:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SPConfigApi->get_sp_config_import_status: %s\n" % e) ``` @@ -384,7 +379,6 @@ from sailpoint.beta.api.sp_config_api import SPConfigApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.import_options import ImportOptions from sailpoint.beta.models.sp_config_job import SpConfigJob -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -401,7 +395,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SPConfigApi(api_client).import_sp_config(data, preview, options) print("The response of SPConfigApi->import_sp_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SPConfigApi->import_sp_config: %s\n" % e) ``` @@ -443,7 +437,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.sp_config_api import SPConfigApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.sp_config_object import SpConfigObject -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -457,7 +450,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SPConfigApi(api_client).list_sp_config_objects() print("The response of SPConfigApi->list_sp_config_objects:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SPConfigApi->list_sp_config_objects: %s\n" % e) ``` diff --git a/sailpoint/beta/docs/Methods/SearchAttributeConfigurationApi.md b/sailpoint/beta/docs/Methods/SearchAttributeConfigurationApi.md index e74cc7817..a85dc4212 100644 --- a/sailpoint/beta/docs/Methods/SearchAttributeConfigurationApi.md +++ b/sailpoint/beta/docs/Methods/SearchAttributeConfigurationApi.md @@ -77,7 +77,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.search_attribute_configuration_api import SearchAttributeConfigurationApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.search_attribute_config import SearchAttributeConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -99,7 +98,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SearchAttributeConfigurationApi(api_client).create_search_attribute_config(new_search_attribute_config) print("The response of SearchAttributeConfigurationApi->create_search_attribute_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SearchAttributeConfigurationApi->create_search_attribute_config: %s\n" % e) ``` @@ -142,7 +141,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.beta.api.search_attribute_configuration_api import SearchAttributeConfigurationApi from sailpoint.beta.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -201,7 +199,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.search_attribute_configuration_api import SearchAttributeConfigurationApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.search_attribute_config import SearchAttributeConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -217,7 +214,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SearchAttributeConfigurationApi(api_client).get_search_attribute_config(limit, offset) print("The response of SearchAttributeConfigurationApi->get_search_attribute_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SearchAttributeConfigurationApi->get_search_attribute_config: %s\n" % e) ``` @@ -262,7 +259,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.search_attribute_configuration_api import SearchAttributeConfigurationApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.search_attribute_config import SearchAttributeConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -277,7 +273,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SearchAttributeConfigurationApi(api_client).get_single_search_attribute_config(name) print("The response of SearchAttributeConfigurationApi->get_single_search_attribute_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SearchAttributeConfigurationApi->get_single_search_attribute_config: %s\n" % e) ``` @@ -326,7 +322,6 @@ from sailpoint.beta.api.search_attribute_configuration_api import SearchAttribut from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.json_patch_operation import JsonPatchOperation from sailpoint.beta.models.search_attribute_config import SearchAttributeConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -342,7 +337,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SearchAttributeConfigurationApi(api_client).patch_search_attribute_config(name, new_json_patch_operation) print("The response of SearchAttributeConfigurationApi->patch_search_attribute_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SearchAttributeConfigurationApi->patch_search_attribute_config: %s\n" % e) ``` diff --git a/sailpoint/beta/docs/Methods/SegmentsApi.md b/sailpoint/beta/docs/Methods/SegmentsApi.md index d47857ce1..0e99294a2 100644 --- a/sailpoint/beta/docs/Methods/SegmentsApi.md +++ b/sailpoint/beta/docs/Methods/SegmentsApi.md @@ -76,7 +76,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.segments_api import SegmentsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.segment import Segment -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -114,7 +113,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SegmentsApi(api_client).create_segment(new_segment) print("The response of SegmentsApi->create_segment:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SegmentsApi->create_segment: %s\n" % e) ``` @@ -160,7 +159,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.beta.api.segments_api import SegmentsApi from sailpoint.beta.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -219,7 +217,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.segments_api import SegmentsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.segment import Segment -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -234,7 +231,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SegmentsApi(api_client).get_segment(id) print("The response of SegmentsApi->get_segment:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SegmentsApi->get_segment: %s\n" % e) ``` @@ -281,7 +278,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.segments_api import SegmentsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.segment import Segment -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -298,7 +294,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SegmentsApi(api_client).list_segments(limit, offset, count) print("The response of SegmentsApi->list_segments:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SegmentsApi->list_segments: %s\n" % e) ``` @@ -346,7 +342,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.segments_api import SegmentsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.segment import Segment -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -362,7 +357,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SegmentsApi(api_client).patch_segment(id, new_request_body) print("The response of SegmentsApi->patch_segment:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SegmentsApi->patch_segment: %s\n" % e) ``` diff --git a/sailpoint/beta/docs/Methods/ServiceDeskIntegrationApi.md b/sailpoint/beta/docs/Methods/ServiceDeskIntegrationApi.md index 2e49f4715..375b90219 100644 --- a/sailpoint/beta/docs/Methods/ServiceDeskIntegrationApi.md +++ b/sailpoint/beta/docs/Methods/ServiceDeskIntegrationApi.md @@ -87,7 +87,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.service_desk_integration_api import ServiceDeskIntegrationApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.service_desk_integration_dto import ServiceDeskIntegrationDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -132,7 +131,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ServiceDeskIntegrationApi(api_client).create_service_desk_integration(new_service_desk_integration_dto) print("The response of ServiceDeskIntegrationApi->create_service_desk_integration:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ServiceDeskIntegrationApi->create_service_desk_integration: %s\n" % e) ``` @@ -176,7 +175,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.beta.api.service_desk_integration_api import ServiceDeskIntegrationApi from sailpoint.beta.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -234,7 +232,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.service_desk_integration_api import ServiceDeskIntegrationApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.service_desk_integration_dto import ServiceDeskIntegrationDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -249,7 +246,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ServiceDeskIntegrationApi(api_client).get_service_desk_integration(id) print("The response of ServiceDeskIntegrationApi->get_service_desk_integration:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ServiceDeskIntegrationApi->get_service_desk_integration: %s\n" % e) ``` @@ -298,7 +295,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.service_desk_integration_api import ServiceDeskIntegrationApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.service_desk_integration_dto import ServiceDeskIntegrationDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -317,7 +313,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ServiceDeskIntegrationApi(api_client).get_service_desk_integration_list(offset, limit, sorters, filters, count) print("The response of ServiceDeskIntegrationApi->get_service_desk_integration_list:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ServiceDeskIntegrationApi->get_service_desk_integration_list: %s\n" % e) ``` @@ -362,7 +358,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.service_desk_integration_api import ServiceDeskIntegrationApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.service_desk_integration_template_dto import ServiceDeskIntegrationTemplateDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -377,7 +372,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ServiceDeskIntegrationApi(api_client).get_service_desk_integration_template(script_name) print("The response of ServiceDeskIntegrationApi->get_service_desk_integration_template:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ServiceDeskIntegrationApi->get_service_desk_integration_template: %s\n" % e) ``` @@ -419,7 +414,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.service_desk_integration_api import ServiceDeskIntegrationApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.service_desk_integration_template_type import ServiceDeskIntegrationTemplateType -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -433,7 +427,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ServiceDeskIntegrationApi(api_client).get_service_desk_integration_types() print("The response of ServiceDeskIntegrationApi->get_service_desk_integration_types:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ServiceDeskIntegrationApi->get_service_desk_integration_types: %s\n" % e) ``` @@ -475,7 +469,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.service_desk_integration_api import ServiceDeskIntegrationApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.queued_check_config_details import QueuedCheckConfigDetails -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -489,7 +482,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ServiceDeskIntegrationApi(api_client).get_status_check_details() print("The response of ServiceDeskIntegrationApi->get_status_check_details:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ServiceDeskIntegrationApi->get_status_check_details: %s\n" % e) ``` @@ -536,7 +529,6 @@ from sailpoint.beta.api.service_desk_integration_api import ServiceDeskIntegrati from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.patch_service_desk_integration_request import PatchServiceDeskIntegrationRequest from sailpoint.beta.models.service_desk_integration_dto import ServiceDeskIntegrationDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -552,7 +544,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ServiceDeskIntegrationApi(api_client).patch_service_desk_integration(id, new_patch_service_desk_integration_request) print("The response of ServiceDeskIntegrationApi->patch_service_desk_integration:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ServiceDeskIntegrationApi->patch_service_desk_integration: %s\n" % e) ``` @@ -598,7 +590,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.service_desk_integration_api import ServiceDeskIntegrationApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.service_desk_integration_dto import ServiceDeskIntegrationDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -644,7 +635,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ServiceDeskIntegrationApi(api_client).put_service_desk_integration(id, new_service_desk_integration_dto) print("The response of ServiceDeskIntegrationApi->put_service_desk_integration:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ServiceDeskIntegrationApi->put_service_desk_integration: %s\n" % e) ``` @@ -689,7 +680,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.service_desk_integration_api import ServiceDeskIntegrationApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.queued_check_config_details import QueuedCheckConfigDetails -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -707,7 +697,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ServiceDeskIntegrationApi(api_client).update_status_check_details(new_queued_check_config_details) print("The response of ServiceDeskIntegrationApi->update_status_check_details:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ServiceDeskIntegrationApi->update_status_check_details: %s\n" % e) ``` diff --git a/sailpoint/beta/docs/Methods/SourceUsagesApi.md b/sailpoint/beta/docs/Methods/SourceUsagesApi.md index 843b85713..0cb4b879b 100644 --- a/sailpoint/beta/docs/Methods/SourceUsagesApi.md +++ b/sailpoint/beta/docs/Methods/SourceUsagesApi.md @@ -57,7 +57,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.source_usages_api import SourceUsagesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.source_usage_status import SourceUsageStatus -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -72,7 +71,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourceUsagesApi(api_client).get_status_by_source_id(source_id) print("The response of SourceUsagesApi->get_status_by_source_id:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourceUsagesApi->get_status_by_source_id: %s\n" % e) ``` @@ -120,7 +119,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.source_usages_api import SourceUsagesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.source_usage import SourceUsage -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -139,7 +137,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourceUsagesApi(api_client).get_usages_by_source_id(source_id, limit, offset, count, sorters) print("The response of SourceUsagesApi->get_usages_by_source_id:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourceUsagesApi->get_usages_by_source_id: %s\n" % e) ``` diff --git a/sailpoint/beta/docs/Methods/SourcesApi.md b/sailpoint/beta/docs/Methods/SourcesApi.md index 963ac7f41..afb06edfd 100644 --- a/sailpoint/beta/docs/Methods/SourcesApi.md +++ b/sailpoint/beta/docs/Methods/SourcesApi.md @@ -156,7 +156,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.provisioning_policy_dto import ProvisioningPolicyDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -211,7 +210,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).create_provisioning_policy(source_id, new_provisioning_policy_dto) print("The response of SourcesApi->create_provisioning_policy:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->create_provisioning_policy: %s\n" % e) ``` @@ -257,7 +256,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.source import Source -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -355,7 +353,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).create_source(new_source, provision_as_csv) print("The response of SourcesApi->create_source:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->create_source: %s\n" % e) ``` @@ -400,7 +398,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.model_schema import ModelSchema -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -416,7 +413,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).create_source_schema(source_id, new_model_schema) print("The response of SourcesApi->create_source_schema:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->create_source_schema: %s\n" % e) ``` @@ -463,7 +460,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.delete202_response import Delete202Response -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -478,7 +474,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).delete(id) print("The response of SourcesApi->delete:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->delete: %s\n" % e) ``` @@ -528,7 +524,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.task_result_dto import TaskResultDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -543,7 +538,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).delete_accounts_async(source_id) print("The response of SourcesApi->delete_accounts_async:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->delete_accounts_async: %s\n" % e) ``` @@ -588,7 +583,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -647,7 +641,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.usage_type import UsageType -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -706,7 +699,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -765,7 +757,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.correlation_config import CorrelationConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -780,7 +771,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).get_correlation_config(source_id) print("The response of SourcesApi->get_correlation_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->get_correlation_config: %s\n" % e) ``` @@ -826,7 +817,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.native_change_detection_config import NativeChangeDetectionConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -841,7 +831,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).get_native_change_detection_config(source_id) print("The response of SourcesApi->get_native_change_detection_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->get_native_change_detection_config: %s\n" % e) ``` @@ -888,7 +878,6 @@ from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.provisioning_policy_dto import ProvisioningPolicyDto from sailpoint.beta.models.usage_type import UsageType -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -904,7 +893,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).get_provisioning_policy(source_id, usage_type) print("The response of SourcesApi->get_provisioning_policy:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->get_provisioning_policy: %s\n" % e) ``` @@ -950,7 +939,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.source import Source -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -965,7 +953,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).get_source(id) print("The response of SourcesApi->get_source:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->get_source: %s\n" % e) ``` @@ -1009,7 +997,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1068,7 +1055,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.attr_sync_source_config import AttrSyncSourceConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1083,7 +1069,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).get_source_attr_sync_config(id) print("The response of SourcesApi->get_source_attr_sync_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->get_source_attr_sync_config: %s\n" % e) ``` @@ -1129,7 +1115,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.connector_detail import ConnectorDetail -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1145,7 +1130,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).get_source_config(id, locale) print("The response of SourcesApi->get_source_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->get_source_config: %s\n" % e) ``` @@ -1195,7 +1180,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.source_entitlement_request_config import SourceEntitlementRequestConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1210,7 +1194,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).get_source_entitlement_request_config(source_id) print("The response of SourcesApi->get_source_entitlement_request_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->get_source_entitlement_request_config: %s\n" % e) ``` @@ -1255,7 +1239,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1316,7 +1299,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.model_schema import ModelSchema -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1332,7 +1314,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).get_source_schema(source_id, schema_id) print("The response of SourcesApi->get_source_schema:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->get_source_schema: %s\n" % e) ``` @@ -1379,7 +1361,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.model_schema import ModelSchema -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1396,7 +1377,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).get_source_schemas(source_id, include_types, include_names) print("The response of SourcesApi->get_source_schemas:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->get_source_schemas: %s\n" % e) ``` @@ -1445,7 +1426,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.load_accounts_task import LoadAccountsTask -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1462,7 +1442,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).import_accounts(source_id, file, disable_optimization) print("The response of SourcesApi->import_accounts:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->import_accounts: %s\n" % e) ``` @@ -1510,7 +1490,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.load_entitlement_task import LoadEntitlementTask -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1526,7 +1505,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).import_entitlements(source_id, file) print("The response of SourcesApi->import_entitlements:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->import_entitlements: %s\n" % e) ``` @@ -1571,7 +1550,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.model_schema import ModelSchema -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1587,7 +1565,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).import_source_accounts_schema(source_id, file) print("The response of SourcesApi->import_source_accounts_schema:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->import_source_accounts_schema: %s\n" % e) ``` @@ -1633,7 +1611,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.source import Source -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1649,7 +1626,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).import_source_connector_file(source_id, file) print("The response of SourcesApi->import_source_connector_file:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->import_source_connector_file: %s\n" % e) ``` @@ -1695,7 +1672,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.model_schema import ModelSchema -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1712,7 +1688,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).import_source_entitlements_schema(source_id, schema_name, file) print("The response of SourcesApi->import_source_entitlements_schema:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->import_source_entitlements_schema: %s\n" % e) ``` @@ -1757,7 +1733,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.load_uncorrelated_accounts_task import LoadUncorrelatedAccountsTask -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1773,7 +1748,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).import_uncorrelated_accounts(source_id, file) print("The response of SourcesApi->import_uncorrelated_accounts:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->import_uncorrelated_accounts: %s\n" % e) ``` @@ -1818,7 +1793,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.provisioning_policy_dto import ProvisioningPolicyDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1833,7 +1807,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).list_provisioning_policies(source_id) print("The response of SourcesApi->list_provisioning_policies:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->list_provisioning_policies: %s\n" % e) ``` @@ -1886,7 +1860,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.source import Source -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1907,7 +1880,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).list_sources(limit, offset, count, filters, sorters, for_subadmin, include_idn_source) print("The response of SourcesApi->list_sources:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->list_sources: %s\n" % e) ``` @@ -1955,7 +1928,6 @@ from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.resource_objects_request import ResourceObjectsRequest from sailpoint.beta.models.resource_objects_response import ResourceObjectsResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1974,7 +1946,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).peek_resource_objects(source_id, new_resource_objects_request) print("The response of SourcesApi->peek_resource_objects:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->peek_resource_objects: %s\n" % e) ``` @@ -2020,7 +1992,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.status_response import StatusResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -2035,7 +2006,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).ping_cluster(source_id) print("The response of SourcesApi->ping_cluster:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->ping_cluster: %s\n" % e) ``` @@ -2081,7 +2052,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.correlation_config import CorrelationConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -2117,7 +2087,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).put_correlation_config(source_id, new_correlation_config) print("The response of SourcesApi->put_correlation_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->put_correlation_config: %s\n" % e) ``` @@ -2165,7 +2135,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.native_change_detection_config import NativeChangeDetectionConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -2188,7 +2157,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).put_native_change_detection_config(source_id, new_native_change_detection_config) print("The response of SourcesApi->put_native_change_detection_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->put_native_change_detection_config: %s\n" % e) ``` @@ -2238,7 +2207,6 @@ from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.provisioning_policy_dto import ProvisioningPolicyDto from sailpoint.beta.models.usage_type import UsageType -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -2294,7 +2262,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).put_provisioning_policy(source_id, usage_type, new_provisioning_policy_dto) print("The response of SourcesApi->put_provisioning_policy:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->put_provisioning_policy: %s\n" % e) ``` @@ -2354,7 +2322,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.source import Source -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -2452,7 +2419,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).put_source(id, new_source) print("The response of SourcesApi->put_source:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->put_source: %s\n" % e) ``` @@ -2500,7 +2467,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.attr_sync_source_config import AttrSyncSourceConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -2533,7 +2499,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).put_source_attr_sync_config(id, new_attr_sync_source_config) print("The response of SourcesApi->put_source_attr_sync_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->put_source_attr_sync_config: %s\n" % e) ``` @@ -2585,7 +2551,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.model_schema import ModelSchema -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -2602,7 +2567,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).put_source_schema(source_id, schema_id, new_model_schema) print("The response of SourcesApi->put_source_schema:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->put_source_schema: %s\n" % e) ``` @@ -2648,7 +2613,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.source_sync_job import SourceSyncJob -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -2663,7 +2627,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).sync_attributes_for_source(source_id) print("The response of SourcesApi->sync_attributes_for_source:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->sync_attributes_for_source: %s\n" % e) ``` @@ -2709,7 +2673,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.status_response import StatusResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -2724,7 +2687,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).test_source_configuration(source_id) print("The response of SourcesApi->test_source_configuration:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->test_source_configuration: %s\n" % e) ``` @@ -2770,7 +2733,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.status_response import StatusResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -2785,7 +2747,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).test_source_connection(source_id) print("The response of SourcesApi->test_source_connection:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->test_source_connection: %s\n" % e) ``` @@ -2831,7 +2793,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.provisioning_policy_dto import ProvisioningPolicyDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -2847,7 +2808,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).update_provisioning_policies_in_bulk(source_id, new_provisioning_policy_dto) print("The response of SourcesApi->update_provisioning_policies_in_bulk:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->update_provisioning_policies_in_bulk: %s\n" % e) ``` @@ -2898,7 +2859,6 @@ from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.json_patch_operation import JsonPatchOperation from sailpoint.beta.models.provisioning_policy_dto import ProvisioningPolicyDto from sailpoint.beta.models.usage_type import UsageType -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -2915,7 +2875,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).update_provisioning_policy(source_id, usage_type, new_json_patch_operation) print("The response of SourcesApi->update_provisioning_policy:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->update_provisioning_policy: %s\n" % e) ``` @@ -2978,7 +2938,6 @@ from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.json_patch_operation import JsonPatchOperation from sailpoint.beta.models.source import Source -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -2994,7 +2953,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).update_source(id, new_json_patch_operation) print("The response of SourcesApi->update_source:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->update_source: %s\n" % e) ``` @@ -3045,7 +3004,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.source_entitlement_request_config import SourceEntitlementRequestConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -3073,7 +3031,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).update_source_entitlement_request_config(source_id, new_source_entitlement_request_config) print("The response of SourcesApi->update_source_entitlement_request_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->update_source_entitlement_request_config: %s\n" % e) ``` @@ -3150,7 +3108,6 @@ from sailpoint.beta.api.sources_api import SourcesApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.json_patch_operation import JsonPatchOperation from sailpoint.beta.models.model_schema import ModelSchema -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -3167,7 +3124,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).update_source_schema(source_id, schema_id, new_json_patch_operation) print("The response of SourcesApi->update_source_schema:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->update_source_schema: %s\n" % e) ``` diff --git a/sailpoint/beta/docs/Methods/SuggestedEntitlementDescriptionApi.md b/sailpoint/beta/docs/Methods/SuggestedEntitlementDescriptionApi.md index 6f965267e..775bdd9fa 100644 --- a/sailpoint/beta/docs/Methods/SuggestedEntitlementDescriptionApi.md +++ b/sailpoint/beta/docs/Methods/SuggestedEntitlementDescriptionApi.md @@ -67,7 +67,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.suggested_entitlement_description_api import SuggestedEntitlementDescriptionApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.sed_batch_stats import SedBatchStats -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -82,7 +81,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SuggestedEntitlementDescriptionApi(api_client).get_sed_batch_stats(batch_id) print("The response of SuggestedEntitlementDescriptionApi->get_sed_batch_stats:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SuggestedEntitlementDescriptionApi->get_sed_batch_stats: %s\n" % e) ``` @@ -125,7 +124,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.suggested_entitlement_description_api import SuggestedEntitlementDescriptionApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.sed_batch_status import SedBatchStatus -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -139,7 +137,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SuggestedEntitlementDescriptionApi(api_client).get_sed_batches() print("The response of SuggestedEntitlementDescriptionApi->get_sed_batches:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SuggestedEntitlementDescriptionApi->get_sed_batches: %s\n" % e) ``` @@ -204,7 +202,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.suggested_entitlement_description_api import SuggestedEntitlementDescriptionApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.sed import Sed -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -225,7 +222,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SuggestedEntitlementDescriptionApi(api_client).list_seds(limit, filters, sorters, count, count_only, requested_by_anyone, show_pending_status_only) print("The response of SuggestedEntitlementDescriptionApi->list_seds:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SuggestedEntitlementDescriptionApi->list_seds: %s\n" % e) ``` @@ -272,7 +269,6 @@ from sailpoint.beta.api.suggested_entitlement_description_api import SuggestedEn from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.sed import Sed from sailpoint.beta.models.sed_patch import SedPatch -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -288,7 +284,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SuggestedEntitlementDescriptionApi(api_client).patch_sed(id, new_sed_patch) print("The response of SuggestedEntitlementDescriptionApi->patch_sed:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SuggestedEntitlementDescriptionApi->patch_sed: %s\n" % e) ``` @@ -335,7 +331,6 @@ from sailpoint.beta.api.suggested_entitlement_description_api import SuggestedEn from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.sed_approval import SedApproval from sailpoint.beta.models.sed_approval_status import SedApprovalStatus -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -350,7 +345,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SuggestedEntitlementDescriptionApi(api_client).submit_sed_approval(new_sed_approval) print("The response of SuggestedEntitlementDescriptionApi->submit_sed_approval:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SuggestedEntitlementDescriptionApi->submit_sed_approval: %s\n" % e) ``` @@ -397,7 +392,6 @@ from sailpoint.beta.api.suggested_entitlement_description_api import SuggestedEn from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.sed_assignment import SedAssignment from sailpoint.beta.models.sed_assignment_response import SedAssignmentResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -418,7 +412,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SuggestedEntitlementDescriptionApi(api_client).submit_sed_assignment(new_sed_assignment) print("The response of SuggestedEntitlementDescriptionApi->submit_sed_assignment:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SuggestedEntitlementDescriptionApi->submit_sed_assignment: %s\n" % e) ``` @@ -468,7 +462,6 @@ from sailpoint.beta.api.suggested_entitlement_description_api import SuggestedEn from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.sed_batch_request import SedBatchRequest from sailpoint.beta.models.sed_batch_response import SedBatchResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -486,7 +479,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SuggestedEntitlementDescriptionApi(api_client).submit_sed_batch_request(new_sed_batch_request) print("The response of SuggestedEntitlementDescriptionApi->submit_sed_batch_request:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SuggestedEntitlementDescriptionApi->submit_sed_batch_request: %s\n" % e) ``` diff --git a/sailpoint/beta/docs/Methods/TaggedObjectsApi.md b/sailpoint/beta/docs/Methods/TaggedObjectsApi.md index e6dc2bbe1..1f08a8578 100644 --- a/sailpoint/beta/docs/Methods/TaggedObjectsApi.md +++ b/sailpoint/beta/docs/Methods/TaggedObjectsApi.md @@ -113,7 +113,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.beta.api.tagged_objects_api import TaggedObjectsApi from sailpoint.beta.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -173,7 +172,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.tagged_objects_api import TaggedObjectsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.bulk_tagged_object import BulkTaggedObject -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -243,7 +241,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.tagged_objects_api import TaggedObjectsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.tagged_object import TaggedObject -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -259,7 +256,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = TaggedObjectsApi(api_client).get_tagged_object(type, id) print("The response of TaggedObjectsApi->get_tagged_object:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling TaggedObjectsApi->get_tagged_object: %s\n" % e) ``` @@ -308,7 +305,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.tagged_objects_api import TaggedObjectsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.tagged_object import TaggedObject -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -326,7 +322,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = TaggedObjectsApi(api_client).list_tagged_objects(limit, offset, count, filters) print("The response of TaggedObjectsApi->list_tagged_objects:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling TaggedObjectsApi->list_tagged_objects: %s\n" % e) ``` @@ -376,7 +372,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.tagged_objects_api import TaggedObjectsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.tagged_object import TaggedObject -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -395,7 +390,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = TaggedObjectsApi(api_client).list_tagged_objects_by_type(type, limit, offset, count, filters) print("The response of TaggedObjectsApi->list_tagged_objects_by_type:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling TaggedObjectsApi->list_tagged_objects_by_type: %s\n" % e) ``` @@ -441,7 +436,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.tagged_objects_api import TaggedObjectsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.tagged_object import TaggedObject -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -465,7 +459,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = TaggedObjectsApi(api_client).put_tagged_object(type, id, new_tagged_object) print("The response of TaggedObjectsApi->put_tagged_object:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling TaggedObjectsApi->put_tagged_object: %s\n" % e) ``` @@ -511,7 +505,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.tagged_objects_api import TaggedObjectsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.tagged_object import TaggedObject -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -577,7 +570,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.tagged_objects_api import TaggedObjectsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.bulk_tagged_object import BulkTaggedObject -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -604,7 +596,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = TaggedObjectsApi(api_client).set_tags_to_many_objects(new_bulk_tagged_object) print("The response of TaggedObjectsApi->set_tags_to_many_objects:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling TaggedObjectsApi->set_tags_to_many_objects: %s\n" % e) ``` diff --git a/sailpoint/beta/docs/Methods/TagsApi.md b/sailpoint/beta/docs/Methods/TagsApi.md index 4a927e79d..dff3007fb 100644 --- a/sailpoint/beta/docs/Methods/TagsApi.md +++ b/sailpoint/beta/docs/Methods/TagsApi.md @@ -58,7 +58,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.tags_api import TagsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.tag import Tag -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -87,7 +86,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = TagsApi(api_client).create_tag(new_tag) print("The response of TagsApi->create_tag:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling TagsApi->create_tag: %s\n" % e) ``` @@ -133,7 +132,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.beta.api.tags_api import TagsApi from sailpoint.beta.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -193,7 +191,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.tags_api import TagsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.tag import Tag -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -208,7 +205,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = TagsApi(api_client).get_tag_by_id(id) print("The response of TagsApi->get_tag_by_id:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling TagsApi->get_tag_by_id: %s\n" % e) ``` @@ -258,7 +255,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.tags_api import TagsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.tag import Tag -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -277,7 +273,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = TagsApi(api_client).list_tags(limit, offset, count, filters, sorters) print("The response of TagsApi->list_tags:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling TagsApi->list_tags: %s\n" % e) ``` diff --git a/sailpoint/beta/docs/Methods/TaskManagementApi.md b/sailpoint/beta/docs/Methods/TaskManagementApi.md index 205b194d5..4c12262c6 100644 --- a/sailpoint/beta/docs/Methods/TaskManagementApi.md +++ b/sailpoint/beta/docs/Methods/TaskManagementApi.md @@ -59,7 +59,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.beta.api.task_management_api import TaskManagementApi from sailpoint.beta.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -121,7 +120,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.task_management_api import TaskManagementApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.task_status import TaskStatus -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -138,7 +136,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = TaskManagementApi(api_client).get_pending_tasks(offset, limit, count) print("The response of TaskManagementApi->get_pending_tasks:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling TaskManagementApi->get_pending_tasks: %s\n" % e) ``` @@ -183,7 +181,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.task_management_api import TaskManagementApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.task_status import TaskStatus -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -198,7 +195,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = TaskManagementApi(api_client).get_task_status(id) print("The response of TaskManagementApi->get_task_status:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling TaskManagementApi->get_task_status: %s\n" % e) ``` @@ -248,7 +245,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.task_management_api import TaskManagementApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.task_status import TaskStatus -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -267,7 +263,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = TaskManagementApi(api_client).get_task_status_list(limit, offset, count, filters, sorters) print("The response of TaskManagementApi->get_task_status_list:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling TaskManagementApi->get_task_status_list: %s\n" % e) ``` @@ -314,7 +310,6 @@ from sailpoint.beta.api.task_management_api import TaskManagementApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.json_patch_operation import JsonPatchOperation from sailpoint.beta.models.task_status import TaskStatus -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -330,7 +325,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = TaskManagementApi(api_client).update_task_status(id, new_json_patch_operation) print("The response of TaskManagementApi->update_task_status:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling TaskManagementApi->update_task_status: %s\n" % e) ``` diff --git a/sailpoint/beta/docs/Methods/TenantApi.md b/sailpoint/beta/docs/Methods/TenantApi.md index 078a86621..d07b6ef94 100644 --- a/sailpoint/beta/docs/Methods/TenantApi.md +++ b/sailpoint/beta/docs/Methods/TenantApi.md @@ -51,7 +51,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.tenant_api import TenantApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.tenant import Tenant -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -65,7 +64,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = TenantApi(api_client).get_tenant() print("The response of TenantApi->get_tenant:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling TenantApi->get_tenant: %s\n" % e) ``` diff --git a/sailpoint/beta/docs/Methods/TransformsApi.md b/sailpoint/beta/docs/Methods/TransformsApi.md index 7c604c090..25d9f75d8 100644 --- a/sailpoint/beta/docs/Methods/TransformsApi.md +++ b/sailpoint/beta/docs/Methods/TransformsApi.md @@ -64,7 +64,6 @@ from sailpoint.beta.api.transforms_api import TransformsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.transform import Transform from sailpoint.beta.models.transform_read import TransformRead -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -83,7 +82,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = TransformsApi(api_client).create_transform(new_transform) print("The response of TransformsApi->create_transform:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling TransformsApi->create_transform: %s\n" % e) ``` @@ -128,7 +127,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.beta.api.transforms_api import TransformsApi from sailpoint.beta.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -187,7 +185,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.transforms_api import TransformsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.transform_read import TransformRead -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -202,7 +199,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = TransformsApi(api_client).get_transform(id) print("The response of TransformsApi->get_transform:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling TransformsApi->get_transform: %s\n" % e) ``` @@ -252,7 +249,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.transforms_api import TransformsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.transform_read import TransformRead -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -271,7 +267,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = TransformsApi(api_client).list_transforms(offset, limit, count, name, filters) print("The response of TransformsApi->list_transforms:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling TransformsApi->list_transforms: %s\n" % e) ``` @@ -319,7 +315,6 @@ from sailpoint.beta.api.transforms_api import TransformsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.transform import Transform from sailpoint.beta.models.transform_read import TransformRead -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -339,7 +334,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = TransformsApi(api_client).update_transform(id, new_transform) print("The response of TransformsApi->update_transform:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling TransformsApi->update_transform: %s\n" % e) ``` diff --git a/sailpoint/beta/docs/Methods/TriggersApi.md b/sailpoint/beta/docs/Methods/TriggersApi.md index cbb1594d1..1e5790878 100644 --- a/sailpoint/beta/docs/Methods/TriggersApi.md +++ b/sailpoint/beta/docs/Methods/TriggersApi.md @@ -104,7 +104,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.triggers_api import TriggersApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.complete_invocation import CompleteInvocation -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -171,7 +170,6 @@ from sailpoint.beta.api.triggers_api import TriggersApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.subscription import Subscription from sailpoint.beta.models.subscription_post_request import SubscriptionPostRequest -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -210,7 +208,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = TriggersApi(api_client).create_subscription(new_subscription_post_request) print("The response of TriggersApi->create_subscription:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling TriggersApi->create_subscription: %s\n" % e) ``` @@ -254,7 +252,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.beta.api.triggers_api import TriggersApi from sailpoint.beta.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -315,7 +312,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.triggers_api import TriggersApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.subscription import Subscription -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -334,7 +330,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = TriggersApi(api_client).list_subscriptions(limit, offset, count, filters, sorters) print("The response of TriggersApi->list_subscriptions:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling TriggersApi->list_subscriptions: %s\n" % e) ``` @@ -384,7 +380,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.triggers_api import TriggersApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.invocation_status import InvocationStatus -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -403,7 +398,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = TriggersApi(api_client).list_trigger_invocation_status(limit, offset, count, filters, sorters) print("The response of TriggersApi->list_trigger_invocation_status:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling TriggersApi->list_trigger_invocation_status: %s\n" % e) ``` @@ -451,7 +446,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.triggers_api import TriggersApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.trigger import Trigger -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -470,7 +464,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = TriggersApi(api_client).list_triggers(limit, offset, count, filters, sorters) print("The response of TriggersApi->list_triggers:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling TriggersApi->list_triggers: %s\n" % e) ``` @@ -519,7 +513,6 @@ from sailpoint.beta.api.triggers_api import TriggersApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.subscription import Subscription from sailpoint.beta.models.subscription_patch_request_inner import SubscriptionPatchRequestInner -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -535,7 +528,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = TriggersApi(api_client).patch_subscription(id, new_subscription_patch_request_inner) print("The response of TriggersApi->patch_subscription:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling TriggersApi->patch_subscription: %s\n" % e) ``` @@ -581,7 +574,6 @@ from sailpoint.beta.api.triggers_api import TriggersApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.invocation import Invocation from sailpoint.beta.models.test_invocation import TestInvocation -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -605,7 +597,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = TriggersApi(api_client).start_test_trigger_invocation(new_test_invocation) print("The response of TriggersApi->start_test_trigger_invocation:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling TriggersApi->start_test_trigger_invocation: %s\n" % e) ``` @@ -651,7 +643,6 @@ from sailpoint.beta.api.triggers_api import TriggersApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.validate_filter_input_dto import ValidateFilterInputDto from sailpoint.beta.models.validate_filter_output_dto import ValidateFilterOutputDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -671,7 +662,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = TriggersApi(api_client).test_subscription_filter(new_validate_filter_input_dto) print("The response of TriggersApi->test_subscription_filter:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling TriggersApi->test_subscription_filter: %s\n" % e) ``` @@ -727,7 +718,6 @@ from sailpoint.beta.api.triggers_api import TriggersApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.subscription import Subscription from sailpoint.beta.models.subscription_put_request import SubscriptionPutRequest -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -766,7 +756,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = TriggersApi(api_client).update_subscription(id, new_subscription_put_request) print("The response of TriggersApi->update_subscription:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling TriggersApi->update_subscription: %s\n" % e) ``` diff --git a/sailpoint/beta/docs/Methods/UIMetadataApi.md b/sailpoint/beta/docs/Methods/UIMetadataApi.md index 06a54a724..016509a64 100644 --- a/sailpoint/beta/docs/Methods/UIMetadataApi.md +++ b/sailpoint/beta/docs/Methods/UIMetadataApi.md @@ -54,7 +54,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.ui_metadata_api import UIMetadataApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.tenant_ui_metadata_item_response import TenantUiMetadataItemResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -68,7 +67,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = UIMetadataApi(api_client).get_tenant_ui_metadata() print("The response of UIMetadataApi->get_tenant_ui_metadata:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling UIMetadataApi->get_tenant_ui_metadata: %s\n" % e) ``` @@ -115,7 +114,6 @@ from sailpoint.beta.api.ui_metadata_api import UIMetadataApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.tenant_ui_metadata_item_response import TenantUiMetadataItemResponse from sailpoint.beta.models.tenant_ui_metadata_item_update_request import TenantUiMetadataItemUpdateRequest -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -134,7 +132,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = UIMetadataApi(api_client).set_tenant_ui_metadata(new_tenant_ui_metadata_item_update_request) print("The response of UIMetadataApi->set_tenant_ui_metadata:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling UIMetadataApi->set_tenant_ui_metadata: %s\n" % e) ``` diff --git a/sailpoint/beta/docs/Methods/VendorConnectorMappingsApi.md b/sailpoint/beta/docs/Methods/VendorConnectorMappingsApi.md index 5d92d5c7d..6ae8a1681 100644 --- a/sailpoint/beta/docs/Methods/VendorConnectorMappingsApi.md +++ b/sailpoint/beta/docs/Methods/VendorConnectorMappingsApi.md @@ -61,7 +61,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.vendor_connector_mappings_api import VendorConnectorMappingsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.vendor_connector_mapping import VendorConnectorMapping -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -98,7 +97,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = VendorConnectorMappingsApi(api_client).create_vendor_connector_mapping(new_vendor_connector_mapping) print("The response of VendorConnectorMappingsApi->create_vendor_connector_mapping:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling VendorConnectorMappingsApi->create_vendor_connector_mapping: %s\n" % e) ``` @@ -145,7 +144,6 @@ from sailpoint.beta.api.vendor_connector_mappings_api import VendorConnectorMapp from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.delete_vendor_connector_mapping200_response import DeleteVendorConnectorMapping200Response from sailpoint.beta.models.vendor_connector_mapping import VendorConnectorMapping -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -182,7 +180,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = VendorConnectorMappingsApi(api_client).delete_vendor_connector_mapping(new_vendor_connector_mapping) print("The response of VendorConnectorMappingsApi->delete_vendor_connector_mapping:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling VendorConnectorMappingsApi->delete_vendor_connector_mapping: %s\n" % e) ``` @@ -225,7 +223,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.vendor_connector_mappings_api import VendorConnectorMappingsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.vendor_connector_mapping import VendorConnectorMapping -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -239,7 +236,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = VendorConnectorMappingsApi(api_client).get_vendor_connector_mappings() print("The response of VendorConnectorMappingsApi->get_vendor_connector_mappings:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling VendorConnectorMappingsApi->get_vendor_connector_mappings: %s\n" % e) ``` diff --git a/sailpoint/beta/docs/Methods/WorkItemsApi.md b/sailpoint/beta/docs/Methods/WorkItemsApi.md index 4c35ee8bd..dcbdbd2cc 100644 --- a/sailpoint/beta/docs/Methods/WorkItemsApi.md +++ b/sailpoint/beta/docs/Methods/WorkItemsApi.md @@ -78,7 +78,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.work_items_api import WorkItemsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.work_items import WorkItems -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -94,7 +93,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkItemsApi(api_client).approve_approval_item(id, approval_item_id) print("The response of WorkItemsApi->approve_approval_item:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkItemsApi->approve_approval_item: %s\n" % e) ``` @@ -136,7 +135,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.work_items_api import WorkItemsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.work_items import WorkItems -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -151,7 +149,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkItemsApi(api_client).approve_approval_items_in_bulk(id) print("The response of WorkItemsApi->approve_approval_items_in_bulk:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkItemsApi->approve_approval_items_in_bulk: %s\n" % e) ``` @@ -197,7 +195,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.work_items_api import WorkItemsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.work_items import WorkItems -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -213,7 +210,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkItemsApi(api_client).complete_work_item(id, new_body) print("The response of WorkItemsApi->complete_work_item:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkItemsApi->complete_work_item: %s\n" % e) ``` @@ -258,7 +255,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.work_items_api import WorkItemsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.work_item_forward import WorkItemForward -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -321,7 +317,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.work_items_api import WorkItemsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.work_items import WorkItems -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -339,7 +334,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkItemsApi(api_client).get_completed_work_items(owner_id, limit, offset, count) print("The response of WorkItemsApi->get_completed_work_items:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkItemsApi->get_completed_work_items: %s\n" % e) ``` @@ -381,7 +376,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.work_items_api import WorkItemsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.work_items_count import WorkItemsCount -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -396,7 +390,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkItemsApi(api_client).get_count_completed_work_items(owner_id) print("The response of WorkItemsApi->get_count_completed_work_items:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkItemsApi->get_count_completed_work_items: %s\n" % e) ``` @@ -438,7 +432,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.work_items_api import WorkItemsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.work_items_count import WorkItemsCount -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -453,7 +446,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkItemsApi(api_client).get_count_work_items(owner_id) print("The response of WorkItemsApi->get_count_work_items:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkItemsApi->get_count_work_items: %s\n" % e) ``` @@ -498,7 +491,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.beta.api.work_items_api import WorkItemsApi from sailpoint.beta.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -514,7 +506,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkItemsApi(api_client).get_work_item(id, owner_id) print("The response of WorkItemsApi->get_work_item:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkItemsApi->get_work_item: %s\n" % e) ``` @@ -556,7 +548,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.work_items_api import WorkItemsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.work_items_summary import WorkItemsSummary -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -571,7 +562,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkItemsApi(api_client).get_work_items_summary(owner_id) print("The response of WorkItemsApi->get_work_items_summary:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkItemsApi->get_work_items_summary: %s\n" % e) ``` @@ -616,7 +607,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.work_items_api import WorkItemsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.work_items import WorkItems -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -634,7 +624,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkItemsApi(api_client).list_work_items(limit, offset, count, owner_id) print("The response of WorkItemsApi->list_work_items:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkItemsApi->list_work_items: %s\n" % e) ``` @@ -677,7 +667,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.work_items_api import WorkItemsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.work_items import WorkItems -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -693,7 +682,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkItemsApi(api_client).reject_approval_item(id, approval_item_id) print("The response of WorkItemsApi->reject_approval_item:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkItemsApi->reject_approval_item: %s\n" % e) ``` @@ -735,7 +724,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.work_items_api import WorkItemsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.work_items import WorkItems -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -750,7 +738,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkItemsApi(api_client).reject_approval_items_in_bulk(id) print("The response of WorkItemsApi->reject_approval_items_in_bulk:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkItemsApi->reject_approval_items_in_bulk: %s\n" % e) ``` @@ -793,7 +781,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.work_items_api import WorkItemsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.work_items import WorkItems -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -809,7 +796,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkItemsApi(api_client).submit_account_selection(id, new_request_body) print("The response of WorkItemsApi->submit_account_selection:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkItemsApi->submit_account_selection: %s\n" % e) ``` diff --git a/sailpoint/beta/docs/Methods/WorkReassignmentApi.md b/sailpoint/beta/docs/Methods/WorkReassignmentApi.md index 37fd65654..8feba74df 100644 --- a/sailpoint/beta/docs/Methods/WorkReassignmentApi.md +++ b/sailpoint/beta/docs/Methods/WorkReassignmentApi.md @@ -72,7 +72,6 @@ from sailpoint.beta.api.work_reassignment_api import WorkReassignmentApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.configuration_item_request import ConfigurationItemRequest from sailpoint.beta.models.configuration_item_response import ConfigurationItemResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -93,7 +92,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkReassignmentApi(api_client).create_reassignment_configuration(new_configuration_item_request) print("The response of WorkReassignmentApi->create_reassignment_configuration:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkReassignmentApi->create_reassignment_configuration: %s\n" % e) ``` @@ -138,7 +137,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.work_reassignment_api import WorkReassignmentApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.config_type_enum import ConfigTypeEnum -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -199,7 +197,6 @@ from sailpoint.beta.api.work_reassignment_api import WorkReassignmentApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.config_type_enum import ConfigTypeEnum from sailpoint.beta.models.evaluate_response import EvaluateResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -216,7 +213,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkReassignmentApi(api_client).get_evaluate_reassignment_configuration(identity_id, config_type, exclusion_filters) print("The response of WorkReassignmentApi->get_evaluate_reassignment_configuration:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkReassignmentApi->get_evaluate_reassignment_configuration: %s\n" % e) ``` @@ -257,7 +254,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.work_reassignment_api import WorkReassignmentApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.config_type import ConfigType -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -271,7 +267,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkReassignmentApi(api_client).get_reassignment_config_types() print("The response of WorkReassignmentApi->get_reassignment_config_types:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkReassignmentApi->get_reassignment_config_types: %s\n" % e) ``` @@ -316,7 +312,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.work_reassignment_api import WorkReassignmentApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.configuration_response import ConfigurationResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -331,7 +326,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkReassignmentApi(api_client).get_reassignment_configuration(identity_id) print("The response of WorkReassignmentApi->get_reassignment_configuration:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkReassignmentApi->get_reassignment_configuration: %s\n" % e) ``` @@ -373,7 +368,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.work_reassignment_api import WorkReassignmentApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.tenant_configuration_response import TenantConfigurationResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -387,7 +381,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkReassignmentApi(api_client).get_tenant_config_configuration() print("The response of WorkReassignmentApi->get_tenant_config_configuration:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkReassignmentApi->get_tenant_config_configuration: %s\n" % e) ``` @@ -433,7 +427,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.work_reassignment_api import WorkReassignmentApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.configuration_response import ConfigurationResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -449,7 +442,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkReassignmentApi(api_client).list_reassignment_configurations(limit, offset) print("The response of WorkReassignmentApi->list_reassignment_configurations:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkReassignmentApi->list_reassignment_configurations: %s\n" % e) ``` @@ -495,7 +488,6 @@ from sailpoint.beta.api.work_reassignment_api import WorkReassignmentApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.configuration_item_request import ConfigurationItemRequest from sailpoint.beta.models.configuration_item_response import ConfigurationItemResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -517,7 +509,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkReassignmentApi(api_client).put_reassignment_config(identity_id, new_configuration_item_request) print("The response of WorkReassignmentApi->put_reassignment_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkReassignmentApi->put_reassignment_config: %s\n" % e) ``` @@ -562,7 +554,6 @@ from sailpoint.beta.api.work_reassignment_api import WorkReassignmentApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.tenant_configuration_request import TenantConfigurationRequest from sailpoint.beta.models.tenant_configuration_response import TenantConfigurationResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -581,7 +572,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkReassignmentApi(api_client).put_tenant_configuration(new_tenant_configuration_request) print("The response of WorkReassignmentApi->put_tenant_configuration:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkReassignmentApi->put_tenant_configuration: %s\n" % e) ``` diff --git a/sailpoint/beta/docs/Methods/WorkflowsApi.md b/sailpoint/beta/docs/Methods/WorkflowsApi.md index c587ffdce..1b34e4f96 100644 --- a/sailpoint/beta/docs/Methods/WorkflowsApi.md +++ b/sailpoint/beta/docs/Methods/WorkflowsApi.md @@ -71,7 +71,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.beta.api.workflows_api import WorkflowsApi from sailpoint.beta.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -129,7 +128,6 @@ from sailpoint.beta.api.workflows_api import WorkflowsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.create_workflow_request import CreateWorkflowRequest from sailpoint.beta.models.workflow import Workflow -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -144,7 +142,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkflowsApi(api_client).create_workflow(new_create_workflow_request) print("The response of WorkflowsApi->create_workflow:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkflowsApi->create_workflow: %s\n" % e) ``` @@ -187,7 +185,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.beta.api.workflows_api import WorkflowsApi from sailpoint.beta.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -244,7 +241,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.workflows_api import WorkflowsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.workflow import Workflow -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -259,7 +255,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkflowsApi(api_client).get_workflow(id) print("The response of WorkflowsApi->get_workflow:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkflowsApi->get_workflow: %s\n" % e) ``` @@ -303,7 +299,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.beta.api.workflows_api import WorkflowsApi from sailpoint.beta.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -318,7 +313,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkflowsApi(api_client).get_workflow_execution(id) print("The response of WorkflowsApi->get_workflow_execution:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkflowsApi->get_workflow_execution: %s\n" % e) ``` @@ -363,7 +358,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.workflows_api import WorkflowsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.workflow_execution_event import WorkflowExecutionEvent -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -378,7 +372,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkflowsApi(api_client).get_workflow_execution_history(id) print("The response of WorkflowsApi->get_workflow_execution_history:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkflowsApi->get_workflow_execution_history: %s\n" % e) ``` @@ -437,7 +431,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.workflows_api import WorkflowsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.workflow_execution import WorkflowExecution -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -456,7 +449,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkflowsApi(api_client).get_workflow_executions(id, limit, offset, count, filters) print("The response of WorkflowsApi->get_workflow_executions:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkflowsApi->get_workflow_executions: %s\n" % e) ``` @@ -501,7 +494,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.workflows_api import WorkflowsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.list_complete_workflow_library200_response_inner import ListCompleteWorkflowLibrary200ResponseInner -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -517,7 +509,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkflowsApi(api_client).list_complete_workflow_library(limit, offset) print("The response of WorkflowsApi->list_complete_workflow_library:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkflowsApi->list_complete_workflow_library: %s\n" % e) ``` @@ -563,7 +555,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.workflows_api import WorkflowsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.workflow_library_action import WorkflowLibraryAction -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -580,7 +571,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkflowsApi(api_client).list_workflow_library_actions(limit, offset, filters) print("The response of WorkflowsApi->list_workflow_library_actions:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkflowsApi->list_workflow_library_actions: %s\n" % e) ``` @@ -621,7 +612,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.workflows_api import WorkflowsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.workflow_library_operator import WorkflowLibraryOperator -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -635,7 +625,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkflowsApi(api_client).list_workflow_library_operators() print("The response of WorkflowsApi->list_workflow_library_operators:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkflowsApi->list_workflow_library_operators: %s\n" % e) ``` @@ -681,7 +671,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.workflows_api import WorkflowsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.workflow_library_trigger import WorkflowLibraryTrigger -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -698,7 +687,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkflowsApi(api_client).list_workflow_library_triggers(limit, offset, filters) print("The response of WorkflowsApi->list_workflow_library_triggers:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkflowsApi->list_workflow_library_triggers: %s\n" % e) ``` @@ -739,7 +728,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.workflows_api import WorkflowsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.workflow import Workflow -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -753,7 +741,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkflowsApi(api_client).list_workflows() print("The response of WorkflowsApi->list_workflows:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkflowsApi->list_workflows: %s\n" % e) ``` @@ -799,7 +787,6 @@ from sailpoint.beta.api.workflows_api import WorkflowsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.json_patch_operation import JsonPatchOperation from sailpoint.beta.models.workflow import Workflow -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -815,7 +802,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkflowsApi(api_client).patch_workflow(id, new_json_patch_operation) print("The response of WorkflowsApi->patch_workflow:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkflowsApi->patch_workflow: %s\n" % e) ``` @@ -861,7 +848,6 @@ from sailpoint.beta.api.workflows_api import WorkflowsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.post_external_execute_workflow200_response import PostExternalExecuteWorkflow200Response from sailpoint.beta.models.post_external_execute_workflow_request import PostExternalExecuteWorkflowRequest -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -877,7 +863,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkflowsApi(api_client).post_external_execute_workflow(id, new_post_external_execute_workflow_request) print("The response of WorkflowsApi->post_external_execute_workflow:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkflowsApi->post_external_execute_workflow: %s\n" % e) ``` @@ -921,7 +907,6 @@ Code | Description | Data Type | Response headers | from sailpoint.beta.api.workflows_api import WorkflowsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.workflow_o_auth_client import WorkflowOAuthClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -936,7 +921,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkflowsApi(api_client).post_workflow_external_trigger(id) print("The response of WorkflowsApi->post_workflow_external_trigger:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkflowsApi->post_workflow_external_trigger: %s\n" % e) ``` @@ -982,7 +967,6 @@ from sailpoint.beta.api.workflows_api import WorkflowsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.test_external_execute_workflow200_response import TestExternalExecuteWorkflow200Response from sailpoint.beta.models.test_external_execute_workflow_request import TestExternalExecuteWorkflowRequest -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -998,7 +982,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkflowsApi(api_client).test_external_execute_workflow(id, new_test_external_execute_workflow_request) print("The response of WorkflowsApi->test_external_execute_workflow:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkflowsApi->test_external_execute_workflow: %s\n" % e) ``` @@ -1046,7 +1030,6 @@ from sailpoint.beta.api.workflows_api import WorkflowsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.test_workflow200_response import TestWorkflow200Response from sailpoint.beta.models.test_workflow_request import TestWorkflowRequest -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1062,7 +1045,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkflowsApi(api_client).test_workflow(id, new_test_workflow_request) print("The response of WorkflowsApi->test_workflow:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkflowsApi->test_workflow: %s\n" % e) ``` @@ -1108,7 +1091,6 @@ from sailpoint.beta.api.workflows_api import WorkflowsApi from sailpoint.beta.api_client import ApiClient from sailpoint.beta.models.workflow import Workflow from sailpoint.beta.models.workflow_body import WorkflowBody -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1163,7 +1145,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkflowsApi(api_client).update_workflow(id, new_workflow_body) print("The response of WorkflowsApi->update_workflow:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkflowsApi->update_workflow: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Examples/python_code_examples_overlay.yaml b/sailpoint/v2024/docs/Examples/python_code_examples_overlay.yaml index abd7c3f7f..a4bab1207 100644 --- a/sailpoint/v2024/docs/Examples/python_code_examples_overlay.yaml +++ b/sailpoint/v2024/docs/Examples/python_code_examples_overlay.yaml @@ -7,25 +7,24 @@ from sailpoint.v2024.api.access_model_metadata_api import AccessModelMetadataApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.attribute_dto import AttributeDTO - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - key = 'iscPrivacy' # str | Technical name of the Attribute. # str | Technical name of the Attribute. - 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 Access Model Metadata Attribute - - results = AccessModelMetadataApi(api_client).get_access_model_metadata_attribute(key=key, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = AccessModelMetadataApi(api_client).get_access_model_metadata_attribute(key, x_sail_point_experimental) - print("The response of AccessModelMetadataApi->get_access_model_metadata_attribute:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccessModelMetadataApi->get_access_model_metadata_attribute: %s\n" % e) + key = 'iscPrivacy' # str | Technical name of the Attribute. # str | Technical name of the Attribute. + 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 Access Model Metadata Attribute + + results = AccessModelMetadataApi(api_client).get_access_model_metadata_attribute(key=key, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = AccessModelMetadataApi(api_client).get_access_model_metadata_attribute(key, x_sail_point_experimental) + print("The response of AccessModelMetadataApi->get_access_model_metadata_attribute:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccessModelMetadataApi->get_access_model_metadata_attribute: %s\n" % e) - path: /access-model-metadata/attributes/{key}/values/{value} method: GET xCodeSample: @@ -35,26 +34,25 @@ from sailpoint.v2024.api.access_model_metadata_api import AccessModelMetadataApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.attribute_value_dto import AttributeValueDTO - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - key = 'iscPrivacy' # str | Technical name of the Attribute. # str | Technical name of the Attribute. - value = 'public' # str | Technical name of the Attribute value. # str | Technical name of the Attribute value. - 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 Access Model Metadata Value - - results = AccessModelMetadataApi(api_client).get_access_model_metadata_attribute_value(key=key, value=value, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = AccessModelMetadataApi(api_client).get_access_model_metadata_attribute_value(key, value, x_sail_point_experimental) - print("The response of AccessModelMetadataApi->get_access_model_metadata_attribute_value:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccessModelMetadataApi->get_access_model_metadata_attribute_value: %s\n" % e) + key = 'iscPrivacy' # str | Technical name of the Attribute. # str | Technical name of the Attribute. + value = 'public' # str | Technical name of the Attribute value. # str | Technical name of the Attribute value. + 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 Access Model Metadata Value + + results = AccessModelMetadataApi(api_client).get_access_model_metadata_attribute_value(key=key, value=value, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = AccessModelMetadataApi(api_client).get_access_model_metadata_attribute_value(key, value, x_sail_point_experimental) + print("The response of AccessModelMetadataApi->get_access_model_metadata_attribute_value:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccessModelMetadataApi->get_access_model_metadata_attribute_value: %s\n" % e) - path: /access-model-metadata/attributes method: GET xCodeSample: @@ -64,25 +62,24 @@ from sailpoint.v2024.api.access_model_metadata_api import AccessModelMetadataApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.attribute_dto import AttributeDTO - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - filters = 'name eq \"Privacy\"' # 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: **name**: *eq* **type**: *eq* **status**: *eq* **objectTypes**: *eq* Supported composite operators: *and* (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: **name**: *eq* **type**: *eq* **status**: *eq* **objectTypes**: *eq* Supported composite operators: *and* (optional) - try: - # List Access Model Metadata Attributes - - results = AccessModelMetadataApi(api_client).list_access_model_metadata_attribute(x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = AccessModelMetadataApi(api_client).list_access_model_metadata_attribute(x_sail_point_experimental, filters) - print("The response of AccessModelMetadataApi->list_access_model_metadata_attribute:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccessModelMetadataApi->list_access_model_metadata_attribute: %s\n" % e) + 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') + filters = 'name eq \"Privacy\"' # 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: **name**: *eq* **type**: *eq* **status**: *eq* **objectTypes**: *eq* Supported composite operators: *and* (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: **name**: *eq* **type**: *eq* **status**: *eq* **objectTypes**: *eq* Supported composite operators: *and* (optional) + try: + # List Access Model Metadata Attributes + + results = AccessModelMetadataApi(api_client).list_access_model_metadata_attribute(x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = AccessModelMetadataApi(api_client).list_access_model_metadata_attribute(x_sail_point_experimental, filters) + print("The response of AccessModelMetadataApi->list_access_model_metadata_attribute:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccessModelMetadataApi->list_access_model_metadata_attribute: %s\n" % e) - path: /access-model-metadata/attributes/{key}/values method: GET xCodeSample: @@ -92,25 +89,24 @@ from sailpoint.v2024.api.access_model_metadata_api import AccessModelMetadataApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.attribute_value_dto import AttributeValueDTO - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - key = 'iscPrivacy' # str | Technical name of the Attribute. # str | Technical name of the Attribute. - 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: - # List Access Model Metadata Values - - results = AccessModelMetadataApi(api_client).list_access_model_metadata_attribute_value(key=key, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = AccessModelMetadataApi(api_client).list_access_model_metadata_attribute_value(key, x_sail_point_experimental) - print("The response of AccessModelMetadataApi->list_access_model_metadata_attribute_value:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccessModelMetadataApi->list_access_model_metadata_attribute_value: %s\n" % e) + key = 'iscPrivacy' # str | Technical name of the Attribute. # str | Technical name of the Attribute. + 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: + # List Access Model Metadata Values + + results = AccessModelMetadataApi(api_client).list_access_model_metadata_attribute_value(key=key, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = AccessModelMetadataApi(api_client).list_access_model_metadata_attribute_value(key, x_sail_point_experimental) + print("The response of AccessModelMetadataApi->list_access_model_metadata_attribute_value:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccessModelMetadataApi->list_access_model_metadata_attribute_value: %s\n" % e) - path: /access-profiles method: POST xCodeSample: @@ -120,13 +116,12 @@ from sailpoint.v2024.api.access_profiles_api import AccessProfilesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.access_profile import AccessProfile - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - access_profile = '''{ + access_profile = '''{ "owner" : { "name" : "support", "id" : "2c9180a46faadee4016fb4e018c20639", @@ -211,16 +206,16 @@ "id" : "2c91808a7190d06e01719938fcd20792", "requestable" : true }''' # AccessProfile | - try: - # Create Access Profile - new_access_profile = AccessProfile.from_json(access_profile) - results = AccessProfilesApi(api_client).create_access_profile(access_profile=new_access_profile) - # Below is a request that includes all optional parameters - # results = AccessProfilesApi(api_client).create_access_profile(new_access_profile) - print("The response of AccessProfilesApi->create_access_profile:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccessProfilesApi->create_access_profile: %s\n" % e) + try: + # Create Access Profile + new_access_profile = AccessProfile.from_json(access_profile) + results = AccessProfilesApi(api_client).create_access_profile(access_profile=new_access_profile) + # Below is a request that includes all optional parameters + # results = AccessProfilesApi(api_client).create_access_profile(new_access_profile) + print("The response of AccessProfilesApi->create_access_profile:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccessProfilesApi->create_access_profile: %s\n" % e) - path: /access-profiles/{id} method: DELETE xCodeSample: @@ -229,21 +224,20 @@ source: | from sailpoint.v2024.api.access_profiles_api import AccessProfilesApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808a7813090a017814121919ecca' # str | ID of the Access Profile to delete # str | ID of the Access Profile to delete - try: - # Delete the specified Access Profile - - AccessProfilesApi(api_client).delete_access_profile(id=id) - # Below is a request that includes all optional parameters - # AccessProfilesApi(api_client).delete_access_profile(id) - except Exception as e: - print("Exception when calling AccessProfilesApi->delete_access_profile: %s\n" % e) + id = '2c91808a7813090a017814121919ecca' # str | ID of the Access Profile to delete # str | ID of the Access Profile to delete + try: + # Delete the specified Access Profile + + AccessProfilesApi(api_client).delete_access_profile(id=id) + # Below is a request that includes all optional parameters + # AccessProfilesApi(api_client).delete_access_profile(id) + except Exception as e: + print("Exception when calling AccessProfilesApi->delete_access_profile: %s\n" % e) - path: /access-profiles/bulk-delete method: POST xCodeSample: @@ -254,26 +248,25 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.access_profile_bulk_delete_request import AccessProfileBulkDeleteRequest from sailpoint.v2024.models.access_profile_bulk_delete_response import AccessProfileBulkDeleteResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - access_profile_bulk_delete_request = '''{ + access_profile_bulk_delete_request = '''{ "accessProfileIds" : [ "2c9180847812e0b1017817051919ecca", "2c9180887812e0b201781e129f151816" ], "bestEffortOnly" : true }''' # AccessProfileBulkDeleteRequest | - try: - # Delete Access Profile(s) - new_access_profile_bulk_delete_request = AccessProfileBulkDeleteRequest.from_json(access_profile_bulk_delete_request) - results = AccessProfilesApi(api_client).delete_access_profiles_in_bulk(access_profile_bulk_delete_request=new_access_profile_bulk_delete_request) - # Below is a request that includes all optional parameters - # results = AccessProfilesApi(api_client).delete_access_profiles_in_bulk(new_access_profile_bulk_delete_request) - print("The response of AccessProfilesApi->delete_access_profiles_in_bulk:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccessProfilesApi->delete_access_profiles_in_bulk: %s\n" % e) + try: + # Delete Access Profile(s) + new_access_profile_bulk_delete_request = AccessProfileBulkDeleteRequest.from_json(access_profile_bulk_delete_request) + results = AccessProfilesApi(api_client).delete_access_profiles_in_bulk(access_profile_bulk_delete_request=new_access_profile_bulk_delete_request) + # Below is a request that includes all optional parameters + # results = AccessProfilesApi(api_client).delete_access_profiles_in_bulk(new_access_profile_bulk_delete_request) + print("The response of AccessProfilesApi->delete_access_profiles_in_bulk:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccessProfilesApi->delete_access_profiles_in_bulk: %s\n" % e) - path: /access-profiles/{id} method: GET xCodeSample: @@ -283,23 +276,22 @@ from sailpoint.v2024.api.access_profiles_api import AccessProfilesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.access_profile import AccessProfile - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c9180837ca6693d017ca8d097500149' # str | ID of the Access Profile # str | ID of the Access Profile - try: - # Get an Access Profile - - results = AccessProfilesApi(api_client).get_access_profile(id=id) - # Below is a request that includes all optional parameters - # results = AccessProfilesApi(api_client).get_access_profile(id) - print("The response of AccessProfilesApi->get_access_profile:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccessProfilesApi->get_access_profile: %s\n" % e) + id = '2c9180837ca6693d017ca8d097500149' # str | ID of the Access Profile # str | ID of the Access Profile + try: + # Get an Access Profile + + results = AccessProfilesApi(api_client).get_access_profile(id=id) + # Below is a request that includes all optional parameters + # results = AccessProfilesApi(api_client).get_access_profile(id) + print("The response of AccessProfilesApi->get_access_profile:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccessProfilesApi->get_access_profile: %s\n" % e) - path: /access-profiles/{id}/entitlements method: GET xCodeSample: @@ -309,28 +301,27 @@ from sailpoint.v2024.api.access_profiles_api import AccessProfilesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.entitlement import Entitlement - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808a7813090a017814121919ecca' # str | ID of the access profile containing the entitlements. # str | ID of the access profile containing the entitlements. - 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 = 'attribute eq \"memberOf\"' # 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, sw* **attribute**: *eq, sw* **value**: *eq, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **source.id**: *eq, in* Filtering is not supported for access profiles and entitlements that have the '+' symbol in their names. (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, sw* **attribute**: *eq, sw* **value**: *eq, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **source.id**: *eq, in* Filtering is not supported for access profiles and entitlements that have the '+' symbol in their names. (optional) - sorters = 'name,-modified' # 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: **name, attribute, value, created, modified** (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: **name, attribute, value, created, modified** (optional) - try: - # List Access Profile's Entitlements - - results = AccessProfilesApi(api_client).get_access_profile_entitlements(id=id) - # Below is a request that includes all optional parameters - # results = AccessProfilesApi(api_client).get_access_profile_entitlements(id, limit, offset, count, filters, sorters) - print("The response of AccessProfilesApi->get_access_profile_entitlements:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccessProfilesApi->get_access_profile_entitlements: %s\n" % e) + id = '2c91808a7813090a017814121919ecca' # str | ID of the access profile containing the entitlements. # str | ID of the access profile containing the entitlements. + 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 = 'attribute eq \"memberOf\"' # 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, sw* **attribute**: *eq, sw* **value**: *eq, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **source.id**: *eq, in* Filtering is not supported for access profiles and entitlements that have the '+' symbol in their names. (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, sw* **attribute**: *eq, sw* **value**: *eq, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **source.id**: *eq, in* Filtering is not supported for access profiles and entitlements that have the '+' symbol in their names. (optional) + sorters = 'name,-modified' # 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: **name, attribute, value, created, modified** (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: **name, attribute, value, created, modified** (optional) + try: + # List Access Profile's Entitlements + + results = AccessProfilesApi(api_client).get_access_profile_entitlements(id=id) + # Below is a request that includes all optional parameters + # results = AccessProfilesApi(api_client).get_access_profile_entitlements(id, limit, offset, count, filters, sorters) + print("The response of AccessProfilesApi->get_access_profile_entitlements:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccessProfilesApi->get_access_profile_entitlements: %s\n" % e) - path: /access-profiles method: GET xCodeSample: @@ -340,30 +331,29 @@ from sailpoint.v2024.api.access_profiles_api import AccessProfilesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.access_profile import AccessProfile - from pprint import pprint - from sailpoint.configuration import Configuration - configuration = Configuration() - - - with ApiClient(configuration) as api_client: - for_subadmin = '8c190e6787aa4ed9a90bd9d5344523fb' # str | Filters the returned list according to what is visible to the indicated ROLE_SUBADMIN or SOURCE_SUBADMIN identity. The value of the parameter is either an identity ID or the special value **me**, which is shorthand for the calling identity's ID. If you specify an identity that isn't a subadmin, the API returns a 400 Bad Request error. (optional) # str | Filters the returned list according to what is visible to the indicated ROLE_SUBADMIN or SOURCE_SUBADMIN identity. The value of the parameter is either an identity ID or the special value **me**, which is shorthand for the calling identity's ID. If you specify an identity that isn't a subadmin, the API returns a 400 Bad Request error. (optional) - 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 \"SailPoint Support\"' # 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, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **requestable**: *eq* **source.id**: *eq, in* Supported composite operators are *and, or* Filtering is not supported for access profiles and entitlements that have the '+' symbol in their names. (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, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **requestable**: *eq* **source.id**: *eq, in* Supported composite operators are *and, or* Filtering is not supported for access profiles and entitlements that have the '+' symbol in their names. (optional) - sorters = 'name,-modified' # 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: **name, created, modified** (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: **name, created, modified** (optional) - for_segment_ids = '0b5c9f25-83c6-4762-9073-e38f7bb2ae26,2e8d8180-24bc-4d21-91c6-7affdb473b0d' # str | Filters access profiles to only those assigned to the segment(s) with the specified IDs. If segmentation is currently unavailable, specifying this parameter results in an error. (optional) # str | Filters access profiles to only those assigned to the segment(s) with the specified IDs. If segmentation is currently unavailable, specifying this parameter results in an error. (optional) - include_unsegmented = True # bool | Indicates whether the response list should contain unsegmented access profiles. If `for-segment-ids` is absent or empty, specifying *include-unsegmented* as `false` results in an error. (optional) (default to True) # bool | Indicates whether the response list should contain unsegmented access profiles. If `for-segment-ids` is absent or empty, specifying *include-unsegmented* as `false` results in an error. (optional) (default to True) - try: - # List Access Profiles - - results = AccessProfilesApi(api_client).list_access_profiles() - # Below is a request that includes all optional parameters - # results = AccessProfilesApi(api_client).list_access_profiles(for_subadmin, limit, offset, count, filters, sorters, for_segment_ids, include_unsegmented) - print("The response of AccessProfilesApi->list_access_profiles:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccessProfilesApi->list_access_profiles: %s\n" % e) + from sailpoint.configuration import Configuration + configuration = Configuration() + + + with ApiClient(configuration) as api_client: + for_subadmin = '8c190e6787aa4ed9a90bd9d5344523fb' # str | Filters the returned list according to what is visible to the indicated ROLE_SUBADMIN or SOURCE_SUBADMIN identity. The value of the parameter is either an identity ID or the special value **me**, which is shorthand for the calling identity's ID. If you specify an identity that isn't a subadmin, the API returns a 400 Bad Request error. (optional) # str | Filters the returned list according to what is visible to the indicated ROLE_SUBADMIN or SOURCE_SUBADMIN identity. The value of the parameter is either an identity ID or the special value **me**, which is shorthand for the calling identity's ID. If you specify an identity that isn't a subadmin, the API returns a 400 Bad Request error. (optional) + 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 \"SailPoint Support\"' # 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, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **requestable**: *eq* **source.id**: *eq, in* Supported composite operators are *and, or* Filtering is not supported for access profiles and entitlements that have the '+' symbol in their names. (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, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **requestable**: *eq* **source.id**: *eq, in* Supported composite operators are *and, or* Filtering is not supported for access profiles and entitlements that have the '+' symbol in their names. (optional) + sorters = 'name,-modified' # 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: **name, created, modified** (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: **name, created, modified** (optional) + for_segment_ids = '0b5c9f25-83c6-4762-9073-e38f7bb2ae26,2e8d8180-24bc-4d21-91c6-7affdb473b0d' # str | Filters access profiles to only those assigned to the segment(s) with the specified IDs. If segmentation is currently unavailable, specifying this parameter results in an error. (optional) # str | Filters access profiles to only those assigned to the segment(s) with the specified IDs. If segmentation is currently unavailable, specifying this parameter results in an error. (optional) + include_unsegmented = True # bool | Indicates whether the response list should contain unsegmented access profiles. If `for-segment-ids` is absent or empty, specifying *include-unsegmented* as `false` results in an error. (optional) (default to True) # bool | Indicates whether the response list should contain unsegmented access profiles. If `for-segment-ids` is absent or empty, specifying *include-unsegmented* as `false` results in an error. (optional) (default to True) + try: + # List Access Profiles + + results = AccessProfilesApi(api_client).list_access_profiles() + # Below is a request that includes all optional parameters + # results = AccessProfilesApi(api_client).list_access_profiles(for_subadmin, limit, offset, count, filters, sorters, for_segment_ids, include_unsegmented) + print("The response of AccessProfilesApi->list_access_profiles:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccessProfilesApi->list_access_profiles: %s\n" % e) - path: /access-profiles/{id} method: PATCH xCodeSample: @@ -374,24 +364,23 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.access_profile import AccessProfile from sailpoint.v2024.models.json_patch_operation import JsonPatchOperation - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808a7813090a017814121919ecca' # str | ID of the Access Profile to patch # str | ID of the Access Profile to patch - json_patch_operation = '''[{op=add, path=/entitlements, value=[{id=2c9180857725c14301772a93bb77242d, type=ENTITLEMENT, name=AD User Group}]}]''' # List[JsonPatchOperation] | - try: - # Patch a specified Access Profile - new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) - results = AccessProfilesApi(api_client).patch_access_profile(id=id, json_patch_operation=new_json_patch_operation) - # Below is a request that includes all optional parameters - # results = AccessProfilesApi(api_client).patch_access_profile(id, new_json_patch_operation) - print("The response of AccessProfilesApi->patch_access_profile:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccessProfilesApi->patch_access_profile: %s\n" % e) + id = '2c91808a7813090a017814121919ecca' # str | ID of the Access Profile to patch # str | ID of the Access Profile to patch + json_patch_operation = '''[{op=add, path=/entitlements, value=[{id=2c9180857725c14301772a93bb77242d, type=ENTITLEMENT, name=AD User Group}]}]''' # List[JsonPatchOperation] | + try: + # Patch a specified Access Profile + new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) + results = AccessProfilesApi(api_client).patch_access_profile(id=id, json_patch_operation=new_json_patch_operation) + # Below is a request that includes all optional parameters + # results = AccessProfilesApi(api_client).patch_access_profile(id, new_json_patch_operation) + print("The response of AccessProfilesApi->patch_access_profile:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccessProfilesApi->patch_access_profile: %s\n" % e) - path: /access-profiles/bulk-update-requestable method: POST xCodeSample: @@ -402,25 +391,24 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.access_profile_bulk_update_request_inner import AccessProfileBulkUpdateRequestInner from sailpoint.v2024.models.access_profile_update_item import AccessProfileUpdateItem - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - access_profile_bulk_update_request_inner = '''[{id=464ae7bf-791e-49fd-b746-06a2e4a89635, requestable=false}]''' # List[AccessProfileBulkUpdateRequestInner] | - try: - # Update Access Profile(s) requestable field. - new_access_profile_bulk_update_request_inner = AccessProfileBulkUpdateRequestInner.from_json(access_profile_bulk_update_request_inner) - results = AccessProfilesApi(api_client).update_access_profiles_in_bulk(x_sail_point_experimental=x_sail_point_experimental, access_profile_bulk_update_request_inner=new_access_profile_bulk_update_request_inner) - # Below is a request that includes all optional parameters - # results = AccessProfilesApi(api_client).update_access_profiles_in_bulk(x_sail_point_experimental, new_access_profile_bulk_update_request_inner) - print("The response of AccessProfilesApi->update_access_profiles_in_bulk:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccessProfilesApi->update_access_profiles_in_bulk: %s\n" % e) + 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') + access_profile_bulk_update_request_inner = '''[{id=464ae7bf-791e-49fd-b746-06a2e4a89635, requestable=false}]''' # List[AccessProfileBulkUpdateRequestInner] | + try: + # Update Access Profile(s) requestable field. + new_access_profile_bulk_update_request_inner = AccessProfileBulkUpdateRequestInner.from_json(access_profile_bulk_update_request_inner) + results = AccessProfilesApi(api_client).update_access_profiles_in_bulk(x_sail_point_experimental=x_sail_point_experimental, access_profile_bulk_update_request_inner=new_access_profile_bulk_update_request_inner) + # Below is a request that includes all optional parameters + # results = AccessProfilesApi(api_client).update_access_profiles_in_bulk(x_sail_point_experimental, new_access_profile_bulk_update_request_inner) + print("The response of AccessProfilesApi->update_access_profiles_in_bulk:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccessProfilesApi->update_access_profiles_in_bulk: %s\n" % e) - path: /access-request-approvals/{approvalId}/approve method: POST xCodeSample: @@ -430,14 +418,13 @@ from sailpoint.v2024.api.access_request_approvals_api import AccessRequestApprovalsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.comment_dto import CommentDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - approval_id = '2c91808b7294bea301729568c68c002e' # str | Approval ID. # str | Approval ID. - comment_dto = '''{ + approval_id = '2c91808b7294bea301729568c68c002e' # str | Approval ID. # str | Approval ID. + comment_dto = '''{ "created" : "2017-07-11T18:45:37.098Z", "author" : { "name" : "john.doe", @@ -446,16 +433,16 @@ }, "comment" : "This is a comment." }''' # CommentDto | Reviewer's comment. (optional) - try: - # Approve Access Request Approval - - results = AccessRequestApprovalsApi(api_client).approve_access_request(approval_id=approval_id) - # Below is a request that includes all optional parameters - # results = AccessRequestApprovalsApi(api_client).approve_access_request(approval_id, new_comment_dto) - print("The response of AccessRequestApprovalsApi->approve_access_request:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccessRequestApprovalsApi->approve_access_request: %s\n" % e) + try: + # Approve Access Request Approval + + results = AccessRequestApprovalsApi(api_client).approve_access_request(approval_id=approval_id) + # Below is a request that includes all optional parameters + # results = AccessRequestApprovalsApi(api_client).approve_access_request(approval_id, new_comment_dto) + print("The response of AccessRequestApprovalsApi->approve_access_request:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccessRequestApprovalsApi->approve_access_request: %s\n" % e) - path: /access-request-approvals/{approvalId}/forward method: POST xCodeSample: @@ -465,27 +452,26 @@ from sailpoint.v2024.api.access_request_approvals_api import AccessRequestApprovalsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.forward_approval_dto import ForwardApprovalDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - approval_id = '2c91808b7294bea301729568c68c002e' # str | Approval ID. # str | Approval ID. - forward_approval_dto = '''{ + approval_id = '2c91808b7294bea301729568c68c002e' # str | Approval ID. # str | Approval ID. + forward_approval_dto = '''{ "newOwnerId" : "2c91808568c529c60168cca6f90c1314", "comment" : "2c91808568c529c60168cca6f90c1313" }''' # ForwardApprovalDto | Information about the forwarded approval. - try: - # Forward Access Request Approval - new_forward_approval_dto = ForwardApprovalDto.from_json(forward_approval_dto) - results = AccessRequestApprovalsApi(api_client).forward_access_request(approval_id=approval_id, forward_approval_dto=new_forward_approval_dto) - # Below is a request that includes all optional parameters - # results = AccessRequestApprovalsApi(api_client).forward_access_request(approval_id, new_forward_approval_dto) - print("The response of AccessRequestApprovalsApi->forward_access_request:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccessRequestApprovalsApi->forward_access_request: %s\n" % e) + try: + # Forward Access Request Approval + new_forward_approval_dto = ForwardApprovalDto.from_json(forward_approval_dto) + results = AccessRequestApprovalsApi(api_client).forward_access_request(approval_id=approval_id, forward_approval_dto=new_forward_approval_dto) + # Below is a request that includes all optional parameters + # results = AccessRequestApprovalsApi(api_client).forward_access_request(approval_id, new_forward_approval_dto) + print("The response of AccessRequestApprovalsApi->forward_access_request:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccessRequestApprovalsApi->forward_access_request: %s\n" % e) - path: /access-request-approvals/approval-summary method: GET xCodeSample: @@ -495,24 +481,23 @@ from sailpoint.v2024.api.access_request_approvals_api import AccessRequestApprovalsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.approval_summary import ApprovalSummary - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - owner_id = '2c91808568c529c60168cca6f90c1313' # str | The ID of the owner or approver identity of the approvals. If present, the value returns approval summary for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN user can also fetch all the approvals in the org, when owner-id is not used. * Non ORG_ADMIN users can only specify *me* or pass their own identity ID value. (optional) # str | The ID of the owner or approver identity of the approvals. If present, the value returns approval summary for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN user can also fetch all the approvals in the org, when owner-id is not used. * Non ORG_ADMIN users can only specify *me* or pass their own identity ID value. (optional) - from_date = 'from-date=2020-03-19T19:59:11Z' # str | This is the date and time the results will be shown from. It must be in a valid ISO-8601 format. (optional) # str | This is the date and time the results will be shown from. It must be in a valid ISO-8601 format. (optional) - try: - # Get Access Requests Approvals Number - - results = AccessRequestApprovalsApi(api_client).get_access_request_approval_summary() - # Below is a request that includes all optional parameters - # results = AccessRequestApprovalsApi(api_client).get_access_request_approval_summary(owner_id, from_date) - print("The response of AccessRequestApprovalsApi->get_access_request_approval_summary:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccessRequestApprovalsApi->get_access_request_approval_summary: %s\n" % e) + owner_id = '2c91808568c529c60168cca6f90c1313' # str | The ID of the owner or approver identity of the approvals. If present, the value returns approval summary for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN user can also fetch all the approvals in the org, when owner-id is not used. * Non ORG_ADMIN users can only specify *me* or pass their own identity ID value. (optional) # str | The ID of the owner or approver identity of the approvals. If present, the value returns approval summary for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN user can also fetch all the approvals in the org, when owner-id is not used. * Non ORG_ADMIN users can only specify *me* or pass their own identity ID value. (optional) + from_date = 'from-date=2020-03-19T19:59:11Z' # str | This is the date and time the results will be shown from. It must be in a valid ISO-8601 format. (optional) # str | This is the date and time the results will be shown from. It must be in a valid ISO-8601 format. (optional) + try: + # Get Access Requests Approvals Number + + results = AccessRequestApprovalsApi(api_client).get_access_request_approval_summary() + # Below is a request that includes all optional parameters + # results = AccessRequestApprovalsApi(api_client).get_access_request_approval_summary(owner_id, from_date) + print("The response of AccessRequestApprovalsApi->get_access_request_approval_summary:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccessRequestApprovalsApi->get_access_request_approval_summary: %s\n" % e) - path: /access-request-approvals/{accessRequestId}/approvers method: GET xCodeSample: @@ -522,26 +507,25 @@ from sailpoint.v2024.api.access_request_approvals_api import AccessRequestApprovalsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.access_request_approvers_list_response import AccessRequestApproversListResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - access_request_id = '2c91808568c529c60168cca6f90c1313' # str | Access Request ID. # str | Access Request ID. - limit = 250 # int | Max number of results to return. (optional) (default to 250) # int | Max number of results to return. (optional) (default to 250) - offset = 10 # int | Offset into the full result set. Usually specified with *limit* to paginate through the results. Defaults to 0 if not specified. (optional) # int | Offset into the full result set. Usually specified with *limit* to paginate through the results. Defaults to 0 if not specified. (optional) - count = False # bool | If this is true, the *X-Total-Count* response header populates with the number of results that would be returned if limit and offset were ignored. (optional) (default to False) # bool | If this is true, the *X-Total-Count* response header populates with the number of results that would be returned if limit and offset were ignored. (optional) (default to False) - try: - # Access Request Approvers - - results = AccessRequestApprovalsApi(api_client).list_access_request_approvers(access_request_id=access_request_id) - # Below is a request that includes all optional parameters - # results = AccessRequestApprovalsApi(api_client).list_access_request_approvers(access_request_id, limit, offset, count) - print("The response of AccessRequestApprovalsApi->list_access_request_approvers:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccessRequestApprovalsApi->list_access_request_approvers: %s\n" % e) + access_request_id = '2c91808568c529c60168cca6f90c1313' # str | Access Request ID. # str | Access Request ID. + limit = 250 # int | Max number of results to return. (optional) (default to 250) # int | Max number of results to return. (optional) (default to 250) + offset = 10 # int | Offset into the full result set. Usually specified with *limit* to paginate through the results. Defaults to 0 if not specified. (optional) # int | Offset into the full result set. Usually specified with *limit* to paginate through the results. Defaults to 0 if not specified. (optional) + count = False # bool | If this is true, the *X-Total-Count* response header populates with the number of results that would be returned if limit and offset were ignored. (optional) (default to False) # bool | If this is true, the *X-Total-Count* response header populates with the number of results that would be returned if limit and offset were ignored. (optional) (default to False) + try: + # Access Request Approvers + + results = AccessRequestApprovalsApi(api_client).list_access_request_approvers(access_request_id=access_request_id) + # Below is a request that includes all optional parameters + # results = AccessRequestApprovalsApi(api_client).list_access_request_approvers(access_request_id, limit, offset, count) + print("The response of AccessRequestApprovalsApi->list_access_request_approvers:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccessRequestApprovalsApi->list_access_request_approvers: %s\n" % e) - path: /access-request-approvals/completed method: GET xCodeSample: @@ -551,28 +535,27 @@ from sailpoint.v2024.api.access_request_approvals_api import AccessRequestApprovalsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.completed_approval import CompletedApproval - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - owner_id = '2c91808568c529c60168cca6f90c1313' # str | If present, the value returns only completed approvals for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN users can also fetch all the approvals in the org, when owner-id is not used. * Non-ORG_ADMIN users can only specify *me* or pass their own identity ID value. (optional) # str | If present, the value returns only completed approvals for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN users can also fetch all the approvals in the org, when owner-id is not used. * Non-ORG_ADMIN users can only specify *me* or pass their own identity ID value. (optional) - 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 = 'id eq \"2c91808568c529c60168cca6f90c1313\"' # 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, ge, gt, le, lt, ne, isnull, sw* **requestedFor.id**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **modified**: *gt, lt, ge, le, eq, in, ne, 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, ge, gt, le, lt, ne, isnull, sw* **requestedFor.id**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **modified**: *gt, lt, ge, le, eq, in, ne, sw* (optional) - sorters = 'modified' # 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** (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** (optional) - try: - # Completed Access Request Approvals List - - results = AccessRequestApprovalsApi(api_client).list_completed_approvals() - # Below is a request that includes all optional parameters - # results = AccessRequestApprovalsApi(api_client).list_completed_approvals(owner_id, limit, offset, count, filters, sorters) - print("The response of AccessRequestApprovalsApi->list_completed_approvals:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccessRequestApprovalsApi->list_completed_approvals: %s\n" % e) + owner_id = '2c91808568c529c60168cca6f90c1313' # str | If present, the value returns only completed approvals for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN users can also fetch all the approvals in the org, when owner-id is not used. * Non-ORG_ADMIN users can only specify *me* or pass their own identity ID value. (optional) # str | If present, the value returns only completed approvals for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN users can also fetch all the approvals in the org, when owner-id is not used. * Non-ORG_ADMIN users can only specify *me* or pass their own identity ID value. (optional) + 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 = 'id eq \"2c91808568c529c60168cca6f90c1313\"' # 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, ge, gt, le, lt, ne, isnull, sw* **requestedFor.id**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **modified**: *gt, lt, ge, le, eq, in, ne, 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, ge, gt, le, lt, ne, isnull, sw* **requestedFor.id**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **modified**: *gt, lt, ge, le, eq, in, ne, sw* (optional) + sorters = 'modified' # 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** (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** (optional) + try: + # Completed Access Request Approvals List + + results = AccessRequestApprovalsApi(api_client).list_completed_approvals() + # Below is a request that includes all optional parameters + # results = AccessRequestApprovalsApi(api_client).list_completed_approvals(owner_id, limit, offset, count, filters, sorters) + print("The response of AccessRequestApprovalsApi->list_completed_approvals:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccessRequestApprovalsApi->list_completed_approvals: %s\n" % e) - path: /access-request-approvals/pending method: GET xCodeSample: @@ -582,28 +565,27 @@ from sailpoint.v2024.api.access_request_approvals_api import AccessRequestApprovalsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.pending_approval import PendingApproval - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - owner_id = '2c91808568c529c60168cca6f90c1313' # str | If present, the value returns only pending approvals for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN users can also fetch all the approvals in the org, when owner-id is not used. * Non-ORG_ADMIN users can only specify *me* or pass their own identity ID value. (optional) # str | If present, the value returns only pending approvals for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN users can also fetch all the approvals in the org, when owner-id is not used. * Non-ORG_ADMIN users can only specify *me* or pass their own identity ID value. (optional) - 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 = 'id eq \"2c91808568c529c60168cca6f90c1313\"' # 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* **requestedFor.id**: *eq, in* **modified**: *gt, lt, ge, le, eq, in* **accessRequestId**: *eq, in* (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* **requestedFor.id**: *eq, in* **modified**: *gt, lt, ge, le, eq, in* **accessRequestId**: *eq, in* (optional) - sorters = 'modified' # 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** (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** (optional) - try: - # Pending Access Request Approvals List - - results = AccessRequestApprovalsApi(api_client).list_pending_approvals() - # Below is a request that includes all optional parameters - # results = AccessRequestApprovalsApi(api_client).list_pending_approvals(owner_id, limit, offset, count, filters, sorters) - print("The response of AccessRequestApprovalsApi->list_pending_approvals:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccessRequestApprovalsApi->list_pending_approvals: %s\n" % e) + owner_id = '2c91808568c529c60168cca6f90c1313' # str | If present, the value returns only pending approvals for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN users can also fetch all the approvals in the org, when owner-id is not used. * Non-ORG_ADMIN users can only specify *me* or pass their own identity ID value. (optional) # str | If present, the value returns only pending approvals for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN users can also fetch all the approvals in the org, when owner-id is not used. * Non-ORG_ADMIN users can only specify *me* or pass their own identity ID value. (optional) + 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 = 'id eq \"2c91808568c529c60168cca6f90c1313\"' # 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* **requestedFor.id**: *eq, in* **modified**: *gt, lt, ge, le, eq, in* **accessRequestId**: *eq, in* (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* **requestedFor.id**: *eq, in* **modified**: *gt, lt, ge, le, eq, in* **accessRequestId**: *eq, in* (optional) + sorters = 'modified' # 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** (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** (optional) + try: + # Pending Access Request Approvals List + + results = AccessRequestApprovalsApi(api_client).list_pending_approvals() + # Below is a request that includes all optional parameters + # results = AccessRequestApprovalsApi(api_client).list_pending_approvals(owner_id, limit, offset, count, filters, sorters) + print("The response of AccessRequestApprovalsApi->list_pending_approvals:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccessRequestApprovalsApi->list_pending_approvals: %s\n" % e) - path: /access-request-approvals/{approvalId}/reject method: POST xCodeSample: @@ -613,14 +595,13 @@ from sailpoint.v2024.api.access_request_approvals_api import AccessRequestApprovalsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.comment_dto import CommentDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - approval_id = '2c91808b7294bea301729568c68c002e' # str | Approval ID. # str | Approval ID. - comment_dto = '''{ + approval_id = '2c91808b7294bea301729568c68c002e' # str | Approval ID. # str | Approval ID. + comment_dto = '''{ "created" : "2017-07-11T18:45:37.098Z", "author" : { "name" : "john.doe", @@ -629,16 +610,16 @@ }, "comment" : "This is a comment." }''' # CommentDto | Reviewer's comment. - try: - # Reject Access Request Approval - new_comment_dto = CommentDto.from_json(comment_dto) - results = AccessRequestApprovalsApi(api_client).reject_access_request(approval_id=approval_id, comment_dto=new_comment_dto) - # Below is a request that includes all optional parameters - # results = AccessRequestApprovalsApi(api_client).reject_access_request(approval_id, new_comment_dto) - print("The response of AccessRequestApprovalsApi->reject_access_request:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccessRequestApprovalsApi->reject_access_request: %s\n" % e) + try: + # Reject Access Request Approval + new_comment_dto = CommentDto.from_json(comment_dto) + results = AccessRequestApprovalsApi(api_client).reject_access_request(approval_id=approval_id, comment_dto=new_comment_dto) + # Below is a request that includes all optional parameters + # results = AccessRequestApprovalsApi(api_client).reject_access_request(approval_id, new_comment_dto) + print("The response of AccessRequestApprovalsApi->reject_access_request:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccessRequestApprovalsApi->reject_access_request: %s\n" % e) - path: /access-request-identity-metrics/{identityId}/requested-objects/{requestedObjectId}/type/{type} method: GET xCodeSample: @@ -647,25 +628,24 @@ source: | from sailpoint.v2024.api.access_request_identity_metrics_api import AccessRequestIdentityMetricsApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - identity_id = '7025c863-c270-4ba6-beea-edf3cb091573' # str | Manager's identity ID. # str | Manager's identity ID. - requested_object_id = '2db501be-f0fb-4cc5-a695-334133c52891' # str | Requested access item's ID. # str | Requested access item's ID. - type = 'ENTITLEMENT' # str | Requested access item's type. # str | Requested access item's type. - try: - # Return access request identity metrics - - results = AccessRequestIdentityMetricsApi(api_client).get_access_request_identity_metrics(identity_id=identity_id, requested_object_id=requested_object_id, type=type) - # Below is a request that includes all optional parameters - # results = AccessRequestIdentityMetricsApi(api_client).get_access_request_identity_metrics(identity_id, requested_object_id, type) - print("The response of AccessRequestIdentityMetricsApi->get_access_request_identity_metrics:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccessRequestIdentityMetricsApi->get_access_request_identity_metrics: %s\n" % e) + identity_id = '7025c863-c270-4ba6-beea-edf3cb091573' # str | Manager's identity ID. # str | Manager's identity ID. + requested_object_id = '2db501be-f0fb-4cc5-a695-334133c52891' # str | Requested access item's ID. # str | Requested access item's ID. + type = 'ENTITLEMENT' # str | Requested access item's type. # str | Requested access item's type. + try: + # Return access request identity metrics + + results = AccessRequestIdentityMetricsApi(api_client).get_access_request_identity_metrics(identity_id=identity_id, requested_object_id=requested_object_id, type=type) + # Below is a request that includes all optional parameters + # results = AccessRequestIdentityMetricsApi(api_client).get_access_request_identity_metrics(identity_id, requested_object_id, type) + print("The response of AccessRequestIdentityMetricsApi->get_access_request_identity_metrics:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccessRequestIdentityMetricsApi->get_access_request_identity_metrics: %s\n" % e) - path: /access-request-approvals/bulk-approve method: POST xCodeSample: @@ -675,26 +655,25 @@ from sailpoint.v2024.api.access_requests_api import AccessRequestsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.bulk_approve_access_request import BulkApproveAccessRequest - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - bulk_approve_access_request = '''{ + bulk_approve_access_request = '''{ "comment" : "I approve these request items", "approvalIds" : [ "2c9180835d2e5168015d32f890ca1581", "2c9180835d2e5168015d32f890ca1582" ] }''' # BulkApproveAccessRequest | - try: - # Bulk Approve Access Request - new_bulk_approve_access_request = BulkApproveAccessRequest.from_json(bulk_approve_access_request) - results = AccessRequestsApi(api_client).approve_bulk_access_request(bulk_approve_access_request=new_bulk_approve_access_request) - # Below is a request that includes all optional parameters - # results = AccessRequestsApi(api_client).approve_bulk_access_request(new_bulk_approve_access_request) - print("The response of AccessRequestsApi->approve_bulk_access_request:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccessRequestsApi->approve_bulk_access_request: %s\n" % e) + try: + # Bulk Approve Access Request + new_bulk_approve_access_request = BulkApproveAccessRequest.from_json(bulk_approve_access_request) + results = AccessRequestsApi(api_client).approve_bulk_access_request(bulk_approve_access_request=new_bulk_approve_access_request) + # Below is a request that includes all optional parameters + # results = AccessRequestsApi(api_client).approve_bulk_access_request(new_bulk_approve_access_request) + print("The response of AccessRequestsApi->approve_bulk_access_request:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccessRequestsApi->approve_bulk_access_request: %s\n" % e) - path: /access-requests/cancel method: POST xCodeSample: @@ -704,26 +683,25 @@ from sailpoint.v2024.api.access_requests_api import AccessRequestsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.cancel_access_request import CancelAccessRequest - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - cancel_access_request = '''{ + cancel_access_request = '''{ "accountActivityId" : "2c9180835d2e5168015d32f890ca1581", "comment" : "I requested this role by mistake." }''' # CancelAccessRequest | - try: - # Cancel Access Request - new_cancel_access_request = CancelAccessRequest.from_json(cancel_access_request) - results = AccessRequestsApi(api_client).cancel_access_request(cancel_access_request=new_cancel_access_request) - # Below is a request that includes all optional parameters - # results = AccessRequestsApi(api_client).cancel_access_request(new_cancel_access_request) - print("The response of AccessRequestsApi->cancel_access_request:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccessRequestsApi->cancel_access_request: %s\n" % e) + try: + # Cancel Access Request + new_cancel_access_request = CancelAccessRequest.from_json(cancel_access_request) + results = AccessRequestsApi(api_client).cancel_access_request(cancel_access_request=new_cancel_access_request) + # Below is a request that includes all optional parameters + # results = AccessRequestsApi(api_client).cancel_access_request(new_cancel_access_request) + print("The response of AccessRequestsApi->cancel_access_request:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccessRequestsApi->cancel_access_request: %s\n" % e) - path: /access-requests/bulk-cancel method: POST xCodeSample: @@ -733,26 +711,25 @@ from sailpoint.v2024.api.access_requests_api import AccessRequestsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.bulk_cancel_access_request import BulkCancelAccessRequest - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - bulk_cancel_access_request = '''{ + bulk_cancel_access_request = '''{ "accessRequestIds" : [ "2c9180835d2e5168015d32f890ca1581", "2c9180835d2e5168015d32f890ca1582" ], "comment" : "I requested this role by mistake." }''' # BulkCancelAccessRequest | - try: - # Bulk Cancel Access Request - new_bulk_cancel_access_request = BulkCancelAccessRequest.from_json(bulk_cancel_access_request) - results = AccessRequestsApi(api_client).cancel_access_request_in_bulk(bulk_cancel_access_request=new_bulk_cancel_access_request) - # Below is a request that includes all optional parameters - # results = AccessRequestsApi(api_client).cancel_access_request_in_bulk(new_bulk_cancel_access_request) - print("The response of AccessRequestsApi->cancel_access_request_in_bulk:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccessRequestsApi->cancel_access_request_in_bulk: %s\n" % e) + try: + # Bulk Cancel Access Request + new_bulk_cancel_access_request = BulkCancelAccessRequest.from_json(bulk_cancel_access_request) + results = AccessRequestsApi(api_client).cancel_access_request_in_bulk(bulk_cancel_access_request=new_bulk_cancel_access_request) + # Below is a request that includes all optional parameters + # results = AccessRequestsApi(api_client).cancel_access_request_in_bulk(new_bulk_cancel_access_request) + print("The response of AccessRequestsApi->cancel_access_request_in_bulk:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccessRequestsApi->cancel_access_request_in_bulk: %s\n" % e) - path: /access-requests/close method: POST xCodeSample: @@ -762,30 +739,29 @@ from sailpoint.v2024.api.access_requests_api import AccessRequestsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.close_access_request import CloseAccessRequest - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - close_access_request = '''{ + 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') + close_access_request = '''{ "executionStatus" : "Terminated", "accessRequestIds" : [ "2c90ad2a70ace7d50170acf22ca90010" ], "completionStatus" : "Failure", "message" : "The IdentityNow Administrator manually closed this request." }''' # CloseAccessRequest | - try: - # Close Access Request - new_close_access_request = CloseAccessRequest.from_json(close_access_request) - results = AccessRequestsApi(api_client).close_access_request(x_sail_point_experimental=x_sail_point_experimental, close_access_request=new_close_access_request) - # Below is a request that includes all optional parameters - # results = AccessRequestsApi(api_client).close_access_request(x_sail_point_experimental, new_close_access_request) - print("The response of AccessRequestsApi->close_access_request:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccessRequestsApi->close_access_request: %s\n" % e) + try: + # Close Access Request + new_close_access_request = CloseAccessRequest.from_json(close_access_request) + results = AccessRequestsApi(api_client).close_access_request(x_sail_point_experimental=x_sail_point_experimental, close_access_request=new_close_access_request) + # Below is a request that includes all optional parameters + # results = AccessRequestsApi(api_client).close_access_request(x_sail_point_experimental, new_close_access_request) + print("The response of AccessRequestsApi->close_access_request:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccessRequestsApi->close_access_request: %s\n" % e) - path: /access-requests method: POST xCodeSample: @@ -796,13 +772,12 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.access_request import AccessRequest from sailpoint.v2024.models.access_request_response import AccessRequestResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - access_request = '''{ + access_request = '''{ "requestedFor" : [ "2c918084660f45d6016617daa9210584", "2c918084660f45d6016617daa9210584" ], "clientMetadata" : { "requestedAppId" : "2c91808f7892918f0178b78da4a305a1", @@ -856,16 +831,16 @@ "type" : "ACCESS_PROFILE" } ] }''' # AccessRequest | - try: - # Submit Access Request - new_access_request = AccessRequest.from_json(access_request) - results = AccessRequestsApi(api_client).create_access_request(access_request=new_access_request) - # Below is a request that includes all optional parameters - # results = AccessRequestsApi(api_client).create_access_request(new_access_request) - print("The response of AccessRequestsApi->create_access_request:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccessRequestsApi->create_access_request: %s\n" % e) + try: + # Submit Access Request + new_access_request = AccessRequest.from_json(access_request) + results = AccessRequestsApi(api_client).create_access_request(access_request=new_access_request) + # Below is a request that includes all optional parameters + # results = AccessRequestsApi(api_client).create_access_request(new_access_request) + print("The response of AccessRequestsApi->create_access_request:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccessRequestsApi->create_access_request: %s\n" % e) - path: /access-request-config method: GET xCodeSample: @@ -875,22 +850,21 @@ from sailpoint.v2024.api.access_requests_api import AccessRequestsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.access_request_config import AccessRequestConfig - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - try: - # Get Access Request Configuration - - results = AccessRequestsApi(api_client).get_access_request_config() - # Below is a request that includes all optional parameters - # results = AccessRequestsApi(api_client).get_access_request_config() - print("The response of AccessRequestsApi->get_access_request_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccessRequestsApi->get_access_request_config: %s\n" % e) + try: + # Get Access Request Configuration + + results = AccessRequestsApi(api_client).get_access_request_config() + # Below is a request that includes all optional parameters + # results = AccessRequestsApi(api_client).get_access_request_config() + print("The response of AccessRequestsApi->get_access_request_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccessRequestsApi->get_access_request_config: %s\n" % e) - path: /access-request-status method: GET xCodeSample: @@ -900,32 +874,31 @@ from sailpoint.v2024.api.access_requests_api import AccessRequestsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.requested_item_status import RequestedItemStatus - from pprint import pprint - from sailpoint.configuration import Configuration - configuration = Configuration() - - - with ApiClient(configuration) as api_client: - requested_for = '2c9180877b2b6ea4017b2c545f971429' # str | Filter the results by the identity the requests were made for. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) # str | Filter the results by the identity the requests were made for. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) - requested_by = '2c9180877b2b6ea4017b2c545f971429' # str | Filter the results by the identity who made the requests. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) # str | Filter the results by the identity who made the requests. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) - regarding_identity = '2c9180877b2b6ea4017b2c545f971429' # str | Filter the results by the specified identity who is either the requester or target of the requests. *me* indicates the current user. Mutually exclusive with *requested-for* and *requested-by*. (optional) # str | Filter the results by the specified identity who is either the requester or target of the requests. *me* indicates the current user. Mutually exclusive with *requested-for* and *requested-by*. (optional) - assigned_to = '2c9180877b2b6ea4017b2c545f971429' # str | Filter the results by the specified identity who is the owner of the Identity Request Work Item. *me* indicates the current user. (optional) # str | Filter the results by the specified identity who is the owner of the Identity Request Work Item. *me* indicates the current user. (optional) - count = False # bool | If this is true, the *X-Total-Count* response header populates with the number of results that would be returned if limit and offset were ignored. (optional) (default to False) # bool | If this is true, the *X-Total-Count* response header populates with the number of results that would be returned if limit and offset were ignored. (optional) (default to False) - limit = 250 # int | Max number of results to return. (optional) (default to 250) # int | Max number of results to return. (optional) (default to 250) - offset = 10 # int | Offset into the full result set. Usually specified with *limit* to paginate through the results. Defaults to 0 if not specified. (optional) # int | Offset into the full result set. Usually specified with *limit* to paginate through the results. Defaults to 0 if not specified. (optional) - filters = 'accountActivityItemId eq \"2c918086771c86df0177401efcdf54c0\"' # 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: **accessRequestId**: *in* **accountActivityItemId**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **created**: *eq, in, ge, gt, le, lt, ne, isnull, 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: **accessRequestId**: *in* **accountActivityItemId**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **created**: *eq, in, ge, gt, le, lt, ne, isnull, sw* (optional) - sorters = 'created' # 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, accountActivityItemId, 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, accountActivityItemId, name** (optional) - request_state = 'request-state=EXECUTING' # str | Filter the results by the state of the request. The only valid value is *EXECUTING*. (optional) # str | Filter the results by the state of the request. The only valid value is *EXECUTING*. (optional) - try: - # Access Request Status - - results = AccessRequestsApi(api_client).list_access_request_status() - # Below is a request that includes all optional parameters - # results = AccessRequestsApi(api_client).list_access_request_status(requested_for, requested_by, regarding_identity, assigned_to, count, limit, offset, filters, sorters, request_state) - print("The response of AccessRequestsApi->list_access_request_status:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccessRequestsApi->list_access_request_status: %s\n" % e) + from sailpoint.configuration import Configuration + configuration = Configuration() + + + with ApiClient(configuration) as api_client: + requested_for = '2c9180877b2b6ea4017b2c545f971429' # str | Filter the results by the identity the requests were made for. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) # str | Filter the results by the identity the requests were made for. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) + requested_by = '2c9180877b2b6ea4017b2c545f971429' # str | Filter the results by the identity who made the requests. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) # str | Filter the results by the identity who made the requests. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) + regarding_identity = '2c9180877b2b6ea4017b2c545f971429' # str | Filter the results by the specified identity who is either the requester or target of the requests. *me* indicates the current user. Mutually exclusive with *requested-for* and *requested-by*. (optional) # str | Filter the results by the specified identity who is either the requester or target of the requests. *me* indicates the current user. Mutually exclusive with *requested-for* and *requested-by*. (optional) + assigned_to = '2c9180877b2b6ea4017b2c545f971429' # str | Filter the results by the specified identity who is the owner of the Identity Request Work Item. *me* indicates the current user. (optional) # str | Filter the results by the specified identity who is the owner of the Identity Request Work Item. *me* indicates the current user. (optional) + count = False # bool | If this is true, the *X-Total-Count* response header populates with the number of results that would be returned if limit and offset were ignored. (optional) (default to False) # bool | If this is true, the *X-Total-Count* response header populates with the number of results that would be returned if limit and offset were ignored. (optional) (default to False) + limit = 250 # int | Max number of results to return. (optional) (default to 250) # int | Max number of results to return. (optional) (default to 250) + offset = 10 # int | Offset into the full result set. Usually specified with *limit* to paginate through the results. Defaults to 0 if not specified. (optional) # int | Offset into the full result set. Usually specified with *limit* to paginate through the results. Defaults to 0 if not specified. (optional) + filters = 'accountActivityItemId eq \"2c918086771c86df0177401efcdf54c0\"' # 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: **accessRequestId**: *in* **accountActivityItemId**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **created**: *eq, in, ge, gt, le, lt, ne, isnull, 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: **accessRequestId**: *in* **accountActivityItemId**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **created**: *eq, in, ge, gt, le, lt, ne, isnull, sw* (optional) + sorters = 'created' # 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, accountActivityItemId, 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, accountActivityItemId, name** (optional) + request_state = 'request-state=EXECUTING' # str | Filter the results by the state of the request. The only valid value is *EXECUTING*. (optional) # str | Filter the results by the state of the request. The only valid value is *EXECUTING*. (optional) + try: + # Access Request Status + + results = AccessRequestsApi(api_client).list_access_request_status() + # Below is a request that includes all optional parameters + # results = AccessRequestsApi(api_client).list_access_request_status(requested_for, requested_by, regarding_identity, assigned_to, count, limit, offset, filters, sorters, request_state) + print("The response of AccessRequestsApi->list_access_request_status:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccessRequestsApi->list_access_request_status: %s\n" % e) - path: /access-request-administration method: GET xCodeSample: @@ -935,32 +908,31 @@ from sailpoint.v2024.api.access_requests_api import AccessRequestsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.access_request_admin_item_status import AccessRequestAdminItemStatus - from pprint import pprint - from sailpoint.configuration import Configuration - configuration = Configuration() - - - with ApiClient(configuration) as api_client: - requested_for = '2c9180877b2b6ea4017b2c545f971429' # str | Filter the results by the identity the requests were made for. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) # str | Filter the results by the identity the requests were made for. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) - requested_by = '2c9180877b2b6ea4017b2c545f971429' # str | Filter the results by the identity who made the requests. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) # str | Filter the results by the identity who made the requests. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) - regarding_identity = '2c9180877b2b6ea4017b2c545f971429' # str | Filter the results by the specified identity who is either the requester or target of the requests. *me* indicates the current user. Mutually exclusive with *requested-for* and *requested-by*. (optional) # str | Filter the results by the specified identity who is either the requester or target of the requests. *me* indicates the current user. Mutually exclusive with *requested-for* and *requested-by*. (optional) - assigned_to = '2c9180877b2b6ea4017b2c545f971429' # str | Filter the results by the specified identity who is the owner of the Identity Request Work Item. *me* indicates the current user. (optional) # str | Filter the results by the specified identity who is the owner of the Identity Request Work Item. *me* indicates the current user. (optional) - count = False # bool | If this is true, the *X-Total-Count* response header populates with the number of results that would be returned if limit and offset were ignored. (optional) (default to False) # bool | If this is true, the *X-Total-Count* response header populates with the number of results that would be returned if limit and offset were ignored. (optional) (default to False) - limit = 250 # int | Max number of results to return. (optional) (default to 250) # int | Max number of results to return. (optional) (default to 250) - offset = 10 # int | Offset into the full result set. Usually specified with *limit* to paginate through the results. Defaults to 0 if not specified. (optional) # int | Offset into the full result set. Usually specified with *limit* to paginate through the results. Defaults to 0 if not specified. (optional) - filters = 'accountActivityItemId eq \"2c918086771c86df0177401efcdf54c0\"' # 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: **accountActivityItemId**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **accessRequestId**: *in* **status**: *in, eq, ne* **created**: *eq, in, ge, gt, le, lt, ne, isnull, 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: **accountActivityItemId**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **accessRequestId**: *in* **status**: *in, eq, ne* **created**: *eq, in, ge, gt, le, lt, ne, isnull, sw* (optional) - sorters = 'created' # 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, accountActivityItemId, name, accessRequestId** (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, accountActivityItemId, name, accessRequestId** (optional) - request_state = 'request-state=EXECUTING' # str | Filter the results by the state of the request. The only valid value is *EXECUTING*. (optional) # str | Filter the results by the state of the request. The only valid value is *EXECUTING*. (optional) - try: - # Access Request Status for Administrators - - results = AccessRequestsApi(api_client).list_administrators_access_request_status() - # Below is a request that includes all optional parameters - # results = AccessRequestsApi(api_client).list_administrators_access_request_status(requested_for, requested_by, regarding_identity, assigned_to, count, limit, offset, filters, sorters, request_state) - print("The response of AccessRequestsApi->list_administrators_access_request_status:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccessRequestsApi->list_administrators_access_request_status: %s\n" % e) + from sailpoint.configuration import Configuration + configuration = Configuration() + + + with ApiClient(configuration) as api_client: + requested_for = '2c9180877b2b6ea4017b2c545f971429' # str | Filter the results by the identity the requests were made for. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) # str | Filter the results by the identity the requests were made for. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) + requested_by = '2c9180877b2b6ea4017b2c545f971429' # str | Filter the results by the identity who made the requests. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) # str | Filter the results by the identity who made the requests. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) + regarding_identity = '2c9180877b2b6ea4017b2c545f971429' # str | Filter the results by the specified identity who is either the requester or target of the requests. *me* indicates the current user. Mutually exclusive with *requested-for* and *requested-by*. (optional) # str | Filter the results by the specified identity who is either the requester or target of the requests. *me* indicates the current user. Mutually exclusive with *requested-for* and *requested-by*. (optional) + assigned_to = '2c9180877b2b6ea4017b2c545f971429' # str | Filter the results by the specified identity who is the owner of the Identity Request Work Item. *me* indicates the current user. (optional) # str | Filter the results by the specified identity who is the owner of the Identity Request Work Item. *me* indicates the current user. (optional) + count = False # bool | If this is true, the *X-Total-Count* response header populates with the number of results that would be returned if limit and offset were ignored. (optional) (default to False) # bool | If this is true, the *X-Total-Count* response header populates with the number of results that would be returned if limit and offset were ignored. (optional) (default to False) + limit = 250 # int | Max number of results to return. (optional) (default to 250) # int | Max number of results to return. (optional) (default to 250) + offset = 10 # int | Offset into the full result set. Usually specified with *limit* to paginate through the results. Defaults to 0 if not specified. (optional) # int | Offset into the full result set. Usually specified with *limit* to paginate through the results. Defaults to 0 if not specified. (optional) + filters = 'accountActivityItemId eq \"2c918086771c86df0177401efcdf54c0\"' # 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: **accountActivityItemId**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **accessRequestId**: *in* **status**: *in, eq, ne* **created**: *eq, in, ge, gt, le, lt, ne, isnull, 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: **accountActivityItemId**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **accessRequestId**: *in* **status**: *in, eq, ne* **created**: *eq, in, ge, gt, le, lt, ne, isnull, sw* (optional) + sorters = 'created' # 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, accountActivityItemId, name, accessRequestId** (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, accountActivityItemId, name, accessRequestId** (optional) + request_state = 'request-state=EXECUTING' # str | Filter the results by the state of the request. The only valid value is *EXECUTING*. (optional) # str | Filter the results by the state of the request. The only valid value is *EXECUTING*. (optional) + try: + # Access Request Status for Administrators + + results = AccessRequestsApi(api_client).list_administrators_access_request_status() + # Below is a request that includes all optional parameters + # results = AccessRequestsApi(api_client).list_administrators_access_request_status(requested_for, requested_by, regarding_identity, assigned_to, count, limit, offset, filters, sorters, request_state) + print("The response of AccessRequestsApi->list_administrators_access_request_status:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccessRequestsApi->list_administrators_access_request_status: %s\n" % e) - path: /access-request-config method: PUT xCodeSample: @@ -970,13 +942,12 @@ from sailpoint.v2024.api.access_requests_api import AccessRequestsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.access_request_config import AccessRequestConfig - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - access_request_config = '''{ + access_request_config = '''{ "requestOnBehalfOfConfig" : { "allowRequestOnBehalfOfEmployeeByManager" : true, "allowRequestOnBehalfOfAnyoneByAnyone" : true @@ -1002,16 +973,16 @@ "reauthorizationEnabled" : true, "approvalsMustBeExternal" : true }''' # AccessRequestConfig | - try: - # Update Access Request Configuration - new_access_request_config = AccessRequestConfig.from_json(access_request_config) - results = AccessRequestsApi(api_client).set_access_request_config(access_request_config=new_access_request_config) - # Below is a request that includes all optional parameters - # results = AccessRequestsApi(api_client).set_access_request_config(new_access_request_config) - print("The response of AccessRequestsApi->set_access_request_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccessRequestsApi->set_access_request_config: %s\n" % e) + try: + # Update Access Request Configuration + new_access_request_config = AccessRequestConfig.from_json(access_request_config) + results = AccessRequestsApi(api_client).set_access_request_config(access_request_config=new_access_request_config) + # Below is a request that includes all optional parameters + # results = AccessRequestsApi(api_client).set_access_request_config(new_access_request_config) + print("The response of AccessRequestsApi->set_access_request_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccessRequestsApi->set_access_request_config: %s\n" % e) - path: /account-activities/{id} method: GET xCodeSample: @@ -1021,23 +992,22 @@ from sailpoint.v2024.api.account_activities_api import AccountActivitiesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.account_activity import AccountActivity - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The account activity id # str | The account activity id - try: - # Get an Account Activity - - results = AccountActivitiesApi(api_client).get_account_activity(id=id) - # Below is a request that includes all optional parameters - # results = AccountActivitiesApi(api_client).get_account_activity(id) - print("The response of AccountActivitiesApi->get_account_activity:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccountActivitiesApi->get_account_activity: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The account activity id # str | The account activity id + try: + # Get an Account Activity + + results = AccountActivitiesApi(api_client).get_account_activity(id=id) + # Below is a request that includes all optional parameters + # results = AccountActivitiesApi(api_client).get_account_activity(id) + print("The response of AccountActivitiesApi->get_account_activity:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccountActivitiesApi->get_account_activity: %s\n" % e) - path: /account-activities method: GET xCodeSample: @@ -1047,30 +1017,29 @@ from sailpoint.v2024.api.account_activities_api import AccountActivitiesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.account_activity import AccountActivity - from pprint import pprint - from sailpoint.configuration import Configuration - configuration = Configuration() - - - with ApiClient(configuration) as api_client: - requested_for = '2c91808568c529c60168cca6f90c1313' # str | The identity that the activity was requested for. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) # str | The identity that the activity was requested for. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) - requested_by = '2c91808568c529c60168cca6f90c1313' # str | The identity that requested the activity. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) # str | The identity that requested the activity. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) - regarding_identity = '2c91808568c529c60168cca6f90c1313' # str | The specified identity will be either the requester or target of the account activity. *me* indicates the current user. Mutually exclusive with *requested-for* and *requested-by*. (optional) # str | The specified identity will be either the requester or target of the account activity. *me* indicates the current user. Mutually exclusive with *requested-for* and *requested-by*. (optional) - 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 = 'type eq \"Identity Refresh\"' # 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: **type**: *eq, in, ge, le, lt, ne, isnull, sw* **created**: *gt, lt, ge, le, eq, in, ne, isnull, sw* **modified**: *gt, lt, ge, le, eq, in, ne, isnull, 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: **type**: *eq, in, ge, le, lt, ne, isnull, sw* **created**: *gt, lt, ge, le, eq, in, ne, isnull, sw* **modified**: *gt, lt, ge, le, eq, in, ne, isnull, sw* (optional) - sorters = 'created' # 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: **type, created, modified** (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: **type, created, modified** (optional) - try: - # List Account Activities - - results = AccountActivitiesApi(api_client).list_account_activities() - # Below is a request that includes all optional parameters - # results = AccountActivitiesApi(api_client).list_account_activities(requested_for, requested_by, regarding_identity, limit, offset, count, filters, sorters) - print("The response of AccountActivitiesApi->list_account_activities:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccountActivitiesApi->list_account_activities: %s\n" % e) + from sailpoint.configuration import Configuration + configuration = Configuration() + + + with ApiClient(configuration) as api_client: + requested_for = '2c91808568c529c60168cca6f90c1313' # str | The identity that the activity was requested for. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) # str | The identity that the activity was requested for. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) + requested_by = '2c91808568c529c60168cca6f90c1313' # str | The identity that requested the activity. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) # str | The identity that requested the activity. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) + regarding_identity = '2c91808568c529c60168cca6f90c1313' # str | The specified identity will be either the requester or target of the account activity. *me* indicates the current user. Mutually exclusive with *requested-for* and *requested-by*. (optional) # str | The specified identity will be either the requester or target of the account activity. *me* indicates the current user. Mutually exclusive with *requested-for* and *requested-by*. (optional) + 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 = 'type eq \"Identity Refresh\"' # 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: **type**: *eq, in, ge, le, lt, ne, isnull, sw* **created**: *gt, lt, ge, le, eq, in, ne, isnull, sw* **modified**: *gt, lt, ge, le, eq, in, ne, isnull, 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: **type**: *eq, in, ge, le, lt, ne, isnull, sw* **created**: *gt, lt, ge, le, eq, in, ne, isnull, sw* **modified**: *gt, lt, ge, le, eq, in, ne, isnull, sw* (optional) + sorters = 'created' # 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: **type, created, modified** (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: **type, created, modified** (optional) + try: + # List Account Activities + + results = AccountActivitiesApi(api_client).list_account_activities() + # Below is a request that includes all optional parameters + # results = AccountActivitiesApi(api_client).list_account_activities(requested_for, requested_by, regarding_identity, limit, offset, count, filters, sorters) + print("The response of AccountActivitiesApi->list_account_activities:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccountActivitiesApi->list_account_activities: %s\n" % e) - path: /account-aggregations/{id}/status method: GET xCodeSample: @@ -1080,25 +1049,24 @@ from sailpoint.v2024.api.account_aggregations_api import AccountAggregationsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.account_aggregation_status import AccountAggregationStatus - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = '2c91808477a6b0c60177a81146b8110b' # str | The account aggregation id # str | The account aggregation id - 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: - # In-progress Account Aggregation status - - results = AccountAggregationsApi(api_client).get_account_aggregation_status(id=id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = AccountAggregationsApi(api_client).get_account_aggregation_status(id, x_sail_point_experimental) - print("The response of AccountAggregationsApi->get_account_aggregation_status:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccountAggregationsApi->get_account_aggregation_status: %s\n" % e) + id = '2c91808477a6b0c60177a81146b8110b' # str | The account aggregation id # str | The account aggregation id + 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: + # In-progress Account Aggregation status + + results = AccountAggregationsApi(api_client).get_account_aggregation_status(id=id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = AccountAggregationsApi(api_client).get_account_aggregation_status(id, x_sail_point_experimental) + print("The response of AccountAggregationsApi->get_account_aggregation_status:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccountAggregationsApi->get_account_aggregation_status: %s\n" % e) - path: /accounts method: POST xCodeSample: @@ -1109,13 +1077,12 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.account_attributes_create import AccountAttributesCreate from sailpoint.v2024.models.accounts_async_result import AccountsAsyncResult - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - account_attributes_create = '''{ + account_attributes_create = '''{ "attributes" : { "sourceId" : "34bfcbe116c9407464af37acbaf7a4dc", "city" : "Austin", @@ -1125,16 +1092,16 @@ "mail" : "john.doe@sailpoint.com" } }''' # AccountAttributesCreate | - try: - # Create Account - new_account_attributes_create = AccountAttributesCreate.from_json(account_attributes_create) - results = AccountsApi(api_client).create_account(account_attributes_create=new_account_attributes_create) - # Below is a request that includes all optional parameters - # results = AccountsApi(api_client).create_account(new_account_attributes_create) - print("The response of AccountsApi->create_account:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccountsApi->create_account: %s\n" % e) + try: + # Create Account + new_account_attributes_create = AccountAttributesCreate.from_json(account_attributes_create) + results = AccountsApi(api_client).create_account(account_attributes_create=new_account_attributes_create) + # Below is a request that includes all optional parameters + # results = AccountsApi(api_client).create_account(new_account_attributes_create) + print("The response of AccountsApi->create_account:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccountsApi->create_account: %s\n" % e) - path: /accounts/{id} method: DELETE xCodeSample: @@ -1144,23 +1111,22 @@ from sailpoint.v2024.api.accounts_api import AccountsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.accounts_async_result import AccountsAsyncResult - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | Account ID. # str | Account ID. - try: - # Delete Account - - results = AccountsApi(api_client).delete_account(id=id) - # Below is a request that includes all optional parameters - # results = AccountsApi(api_client).delete_account(id) - print("The response of AccountsApi->delete_account:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccountsApi->delete_account: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | Account ID. # str | Account ID. + try: + # Delete Account + + results = AccountsApi(api_client).delete_account(id=id) + # Below is a request that includes all optional parameters + # results = AccountsApi(api_client).delete_account(id) + print("The response of AccountsApi->delete_account:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccountsApi->delete_account: %s\n" % e) - path: /accounts/{id}/remove method: POST xCodeSample: @@ -1170,25 +1136,24 @@ from sailpoint.v2024.api.accounts_api import AccountsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.task_result_dto import TaskResultDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = 'c350d6aa4f104c61b062cb632421ad10' # str | The account id # str | The account id - 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: - # Remove Account - - results = AccountsApi(api_client).delete_account_async(id=id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = AccountsApi(api_client).delete_account_async(id, x_sail_point_experimental) - print("The response of AccountsApi->delete_account_async:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccountsApi->delete_account_async: %s\n" % e) + id = 'c350d6aa4f104c61b062cb632421ad10' # str | The account id # str | The account id + 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: + # Remove Account + + results = AccountsApi(api_client).delete_account_async(id=id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = AccountsApi(api_client).delete_account_async(id, x_sail_point_experimental) + print("The response of AccountsApi->delete_account_async:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccountsApi->delete_account_async: %s\n" % e) - path: /accounts/{id}/disable method: POST xCodeSample: @@ -1199,27 +1164,26 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.account_toggle_request import AccountToggleRequest from sailpoint.v2024.models.accounts_async_result import AccountsAsyncResult - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The account id # str | The account id - account_toggle_request = '''{ + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The account id # str | The account id + account_toggle_request = '''{ "forceProvisioning" : false, "externalVerificationId" : "3f9180835d2e5168015d32f890ca1581" }''' # AccountToggleRequest | - try: - # Disable Account - new_account_toggle_request = AccountToggleRequest.from_json(account_toggle_request) - results = AccountsApi(api_client).disable_account(id=id, account_toggle_request=new_account_toggle_request) - # Below is a request that includes all optional parameters - # results = AccountsApi(api_client).disable_account(id, new_account_toggle_request) - print("The response of AccountsApi->disable_account:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccountsApi->disable_account: %s\n" % e) + try: + # Disable Account + new_account_toggle_request = AccountToggleRequest.from_json(account_toggle_request) + results = AccountsApi(api_client).disable_account(id=id, account_toggle_request=new_account_toggle_request) + # Below is a request that includes all optional parameters + # results = AccountsApi(api_client).disable_account(id, new_account_toggle_request) + print("The response of AccountsApi->disable_account:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccountsApi->disable_account: %s\n" % e) - path: /identities-accounts/{id}/disable method: POST xCodeSample: @@ -1228,25 +1192,24 @@ source: | from sailpoint.v2024.api.accounts_api import AccountsApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = '2c91808384203c2d018437e631158309' # str | The identity id. # str | The identity id. - 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: - # Disable IDN Account for Identity - - results = AccountsApi(api_client).disable_account_for_identity(id=id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = AccountsApi(api_client).disable_account_for_identity(id, x_sail_point_experimental) - print("The response of AccountsApi->disable_account_for_identity:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccountsApi->disable_account_for_identity: %s\n" % e) + id = '2c91808384203c2d018437e631158309' # str | The identity id. # str | The identity id. + 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: + # Disable IDN Account for Identity + + results = AccountsApi(api_client).disable_account_for_identity(id=id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = AccountsApi(api_client).disable_account_for_identity(id, x_sail_point_experimental) + print("The response of AccountsApi->disable_account_for_identity:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccountsApi->disable_account_for_identity: %s\n" % e) - path: /identities-accounts/disable method: POST xCodeSample: @@ -1257,27 +1220,26 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.bulk_identities_accounts_response import BulkIdentitiesAccountsResponse from sailpoint.v2024.models.identities_accounts_bulk_request import IdentitiesAccountsBulkRequest - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - identities_accounts_bulk_request = '''{ + 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') + identities_accounts_bulk_request = '''{ "identityIds" : [ "2c91808384203c2d018437e631158308", "2c9180858082150f0180893dbaf553fe" ] }''' # IdentitiesAccountsBulkRequest | - try: - # Disable IDN Accounts for Identities - new_identities_accounts_bulk_request = IdentitiesAccountsBulkRequest.from_json(identities_accounts_bulk_request) - results = AccountsApi(api_client).disable_accounts_for_identities(x_sail_point_experimental=x_sail_point_experimental, identities_accounts_bulk_request=new_identities_accounts_bulk_request) - # Below is a request that includes all optional parameters - # results = AccountsApi(api_client).disable_accounts_for_identities(x_sail_point_experimental, new_identities_accounts_bulk_request) - print("The response of AccountsApi->disable_accounts_for_identities:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccountsApi->disable_accounts_for_identities: %s\n" % e) + try: + # Disable IDN Accounts for Identities + new_identities_accounts_bulk_request = IdentitiesAccountsBulkRequest.from_json(identities_accounts_bulk_request) + results = AccountsApi(api_client).disable_accounts_for_identities(x_sail_point_experimental=x_sail_point_experimental, identities_accounts_bulk_request=new_identities_accounts_bulk_request) + # Below is a request that includes all optional parameters + # results = AccountsApi(api_client).disable_accounts_for_identities(x_sail_point_experimental, new_identities_accounts_bulk_request) + print("The response of AccountsApi->disable_accounts_for_identities:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccountsApi->disable_accounts_for_identities: %s\n" % e) - path: /accounts/{id}/enable method: POST xCodeSample: @@ -1288,27 +1250,26 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.account_toggle_request import AccountToggleRequest from sailpoint.v2024.models.accounts_async_result import AccountsAsyncResult - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The account id # str | The account id - account_toggle_request = '''{ + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The account id # str | The account id + account_toggle_request = '''{ "forceProvisioning" : false, "externalVerificationId" : "3f9180835d2e5168015d32f890ca1581" }''' # AccountToggleRequest | - try: - # Enable Account - new_account_toggle_request = AccountToggleRequest.from_json(account_toggle_request) - results = AccountsApi(api_client).enable_account(id=id, account_toggle_request=new_account_toggle_request) - # Below is a request that includes all optional parameters - # results = AccountsApi(api_client).enable_account(id, new_account_toggle_request) - print("The response of AccountsApi->enable_account:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccountsApi->enable_account: %s\n" % e) + try: + # Enable Account + new_account_toggle_request = AccountToggleRequest.from_json(account_toggle_request) + results = AccountsApi(api_client).enable_account(id=id, account_toggle_request=new_account_toggle_request) + # Below is a request that includes all optional parameters + # results = AccountsApi(api_client).enable_account(id, new_account_toggle_request) + print("The response of AccountsApi->enable_account:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccountsApi->enable_account: %s\n" % e) - path: /identities-accounts/{id}/enable method: POST xCodeSample: @@ -1317,25 +1278,24 @@ source: | from sailpoint.v2024.api.accounts_api import AccountsApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = '2c91808384203c2d018437e631158309' # str | The identity id. # str | The identity id. - 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: - # Enable IDN Account for Identity - - results = AccountsApi(api_client).enable_account_for_identity(id=id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = AccountsApi(api_client).enable_account_for_identity(id, x_sail_point_experimental) - print("The response of AccountsApi->enable_account_for_identity:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccountsApi->enable_account_for_identity: %s\n" % e) + id = '2c91808384203c2d018437e631158309' # str | The identity id. # str | The identity id. + 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: + # Enable IDN Account for Identity + + results = AccountsApi(api_client).enable_account_for_identity(id=id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = AccountsApi(api_client).enable_account_for_identity(id, x_sail_point_experimental) + print("The response of AccountsApi->enable_account_for_identity:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccountsApi->enable_account_for_identity: %s\n" % e) - path: /identities-accounts/enable method: POST xCodeSample: @@ -1346,27 +1306,26 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.bulk_identities_accounts_response import BulkIdentitiesAccountsResponse from sailpoint.v2024.models.identities_accounts_bulk_request import IdentitiesAccountsBulkRequest - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - identities_accounts_bulk_request = '''{ + 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') + identities_accounts_bulk_request = '''{ "identityIds" : [ "2c91808384203c2d018437e631158308", "2c9180858082150f0180893dbaf553fe" ] }''' # IdentitiesAccountsBulkRequest | - try: - # Enable IDN Accounts for Identities - new_identities_accounts_bulk_request = IdentitiesAccountsBulkRequest.from_json(identities_accounts_bulk_request) - results = AccountsApi(api_client).enable_accounts_for_identities(x_sail_point_experimental=x_sail_point_experimental, identities_accounts_bulk_request=new_identities_accounts_bulk_request) - # Below is a request that includes all optional parameters - # results = AccountsApi(api_client).enable_accounts_for_identities(x_sail_point_experimental, new_identities_accounts_bulk_request) - print("The response of AccountsApi->enable_accounts_for_identities:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccountsApi->enable_accounts_for_identities: %s\n" % e) + try: + # Enable IDN Accounts for Identities + new_identities_accounts_bulk_request = IdentitiesAccountsBulkRequest.from_json(identities_accounts_bulk_request) + results = AccountsApi(api_client).enable_accounts_for_identities(x_sail_point_experimental=x_sail_point_experimental, identities_accounts_bulk_request=new_identities_accounts_bulk_request) + # Below is a request that includes all optional parameters + # results = AccountsApi(api_client).enable_accounts_for_identities(x_sail_point_experimental, new_identities_accounts_bulk_request) + print("The response of AccountsApi->enable_accounts_for_identities:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccountsApi->enable_accounts_for_identities: %s\n" % e) - path: /accounts/{id} method: GET xCodeSample: @@ -1376,23 +1335,22 @@ from sailpoint.v2024.api.accounts_api import AccountsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.account import Account - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | Account ID. # str | Account ID. - try: - # Account Details - - results = AccountsApi(api_client).get_account(id=id) - # Below is a request that includes all optional parameters - # results = AccountsApi(api_client).get_account(id) - print("The response of AccountsApi->get_account:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccountsApi->get_account: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | Account ID. # str | Account ID. + try: + # Account Details + + results = AccountsApi(api_client).get_account(id=id) + # Below is a request that includes all optional parameters + # results = AccountsApi(api_client).get_account(id) + print("The response of AccountsApi->get_account:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccountsApi->get_account: %s\n" % e) - path: /accounts/{id}/entitlements method: GET xCodeSample: @@ -1402,26 +1360,25 @@ from sailpoint.v2024.api.accounts_api import AccountsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.entitlement import Entitlement - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The account id # str | The account id - 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) - try: - # Account Entitlements - - results = AccountsApi(api_client).get_account_entitlements(id=id) - # Below is a request that includes all optional parameters - # results = AccountsApi(api_client).get_account_entitlements(id, limit, offset, count) - print("The response of AccountsApi->get_account_entitlements:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccountsApi->get_account_entitlements: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The account id # str | The account id + 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) + try: + # Account Entitlements + + results = AccountsApi(api_client).get_account_entitlements(id=id) + # Below is a request that includes all optional parameters + # results = AccountsApi(api_client).get_account_entitlements(id, limit, offset, count) + print("The response of AccountsApi->get_account_entitlements:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccountsApi->get_account_entitlements: %s\n" % e) - path: /accounts method: GET xCodeSample: @@ -1431,28 +1388,27 @@ from sailpoint.v2024.api.accounts_api import AccountsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.account import Account - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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) - detail_level = 'FULL' # str | This value determines whether the API provides `SLIM` or increased level of detail (`FULL`) for each account in the returned list. `FULL` is the default behavior. (optional) # str | This value determines whether the API provides `SLIM` or increased level of detail (`FULL`) for each account in the returned list. `FULL` is the default behavior. (optional) - filters = 'identityId eq \"2c9180858082150f0180893dbaf44201\"' # 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* **identityId**: *eq, in, sw* **name**: *eq, in, sw* **nativeIdentity**: *eq, in, sw* **hasEntitlements**: *eq* **sourceId**: *eq, in, sw* **uncorrelated**: *eq* **entitlements**: *eq* **origin**: *eq, in* **manuallyCorrelated**: *eq* **identity.name**: *eq, in, sw* **identity.correlated**: *eq* **identity.identityState**: *eq, in* **source.displayableName**: *eq, in* **source.authoritative**: *eq* **source.connectionType**: *eq, in* **recommendation.method**: *eq, in, isnull* **created**: *eq, ge, gt, le, lt* **modified**: *eq, ge, gt, le, lt* (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* **identityId**: *eq, in, sw* **name**: *eq, in, sw* **nativeIdentity**: *eq, in, sw* **hasEntitlements**: *eq* **sourceId**: *eq, in, sw* **uncorrelated**: *eq* **entitlements**: *eq* **origin**: *eq, in* **manuallyCorrelated**: *eq* **identity.name**: *eq, in, sw* **identity.correlated**: *eq* **identity.identityState**: *eq, in* **source.displayableName**: *eq, in* **source.authoritative**: *eq* **source.connectionType**: *eq, in* **recommendation.method**: *eq, in, isnull* **created**: *eq, ge, gt, le, lt* **modified**: *eq, ge, gt, le, lt* (optional) - sorters = 'id,name' # 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: **id, name, created, modified, sourceId, identityId, nativeIdentity, uuid, manuallyCorrelated, entitlements, origin, identity.name, identity.identityState, identity.correlated, source.displayableName, source.authoritative, source.connectionType** (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: **id, name, created, modified, sourceId, identityId, nativeIdentity, uuid, manuallyCorrelated, entitlements, origin, identity.name, identity.identityState, identity.correlated, source.displayableName, source.authoritative, source.connectionType** (optional) - try: - # Accounts List - - results = AccountsApi(api_client).list_accounts() - # Below is a request that includes all optional parameters - # results = AccountsApi(api_client).list_accounts(limit, offset, count, detail_level, filters, sorters) - print("The response of AccountsApi->list_accounts:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccountsApi->list_accounts: %s\n" % e) + 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) + detail_level = 'FULL' # str | This value determines whether the API provides `SLIM` or increased level of detail (`FULL`) for each account in the returned list. `FULL` is the default behavior. (optional) # str | This value determines whether the API provides `SLIM` or increased level of detail (`FULL`) for each account in the returned list. `FULL` is the default behavior. (optional) + filters = 'identityId eq \"2c9180858082150f0180893dbaf44201\"' # 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* **identityId**: *eq, in, sw* **name**: *eq, in, sw* **nativeIdentity**: *eq, in, sw* **hasEntitlements**: *eq* **sourceId**: *eq, in, sw* **uncorrelated**: *eq* **entitlements**: *eq* **origin**: *eq, in* **manuallyCorrelated**: *eq* **identity.name**: *eq, in, sw* **identity.correlated**: *eq* **identity.identityState**: *eq, in* **source.displayableName**: *eq, in* **source.authoritative**: *eq* **source.connectionType**: *eq, in* **recommendation.method**: *eq, in, isnull* **created**: *eq, ge, gt, le, lt* **modified**: *eq, ge, gt, le, lt* (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* **identityId**: *eq, in, sw* **name**: *eq, in, sw* **nativeIdentity**: *eq, in, sw* **hasEntitlements**: *eq* **sourceId**: *eq, in, sw* **uncorrelated**: *eq* **entitlements**: *eq* **origin**: *eq, in* **manuallyCorrelated**: *eq* **identity.name**: *eq, in, sw* **identity.correlated**: *eq* **identity.identityState**: *eq, in* **source.displayableName**: *eq, in* **source.authoritative**: *eq* **source.connectionType**: *eq, in* **recommendation.method**: *eq, in, isnull* **created**: *eq, ge, gt, le, lt* **modified**: *eq, ge, gt, le, lt* (optional) + sorters = 'id,name' # 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: **id, name, created, modified, sourceId, identityId, nativeIdentity, uuid, manuallyCorrelated, entitlements, origin, identity.name, identity.identityState, identity.correlated, source.displayableName, source.authoritative, source.connectionType** (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: **id, name, created, modified, sourceId, identityId, nativeIdentity, uuid, manuallyCorrelated, entitlements, origin, identity.name, identity.identityState, identity.correlated, source.displayableName, source.authoritative, source.connectionType** (optional) + try: + # Accounts List + + results = AccountsApi(api_client).list_accounts() + # Below is a request that includes all optional parameters + # results = AccountsApi(api_client).list_accounts(limit, offset, count, detail_level, filters, sorters) + print("The response of AccountsApi->list_accounts:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccountsApi->list_accounts: %s\n" % e) - path: /accounts/{id} method: PUT xCodeSample: @@ -1463,14 +1419,13 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.account_attributes import AccountAttributes from sailpoint.v2024.models.accounts_async_result import AccountsAsyncResult - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | Account ID. # str | Account ID. - account_attributes = '''{ + id = 'ef38f94347e94562b5bb8424a56397d8' # str | Account ID. # str | Account ID. + account_attributes = '''{ "attributes" : { "city" : "Austin", "displayName" : "John Doe", @@ -1479,16 +1434,16 @@ "mail" : "john.doe@sailpoint.com" } }''' # AccountAttributes | - try: - # Update Account - new_account_attributes = AccountAttributes.from_json(account_attributes) - results = AccountsApi(api_client).put_account(id=id, account_attributes=new_account_attributes) - # Below is a request that includes all optional parameters - # results = AccountsApi(api_client).put_account(id, new_account_attributes) - print("The response of AccountsApi->put_account:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccountsApi->put_account: %s\n" % e) + try: + # Update Account + new_account_attributes = AccountAttributes.from_json(account_attributes) + results = AccountsApi(api_client).put_account(id=id, account_attributes=new_account_attributes) + # Below is a request that includes all optional parameters + # results = AccountsApi(api_client).put_account(id, new_account_attributes) + print("The response of AccountsApi->put_account:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccountsApi->put_account: %s\n" % e) - path: /accounts/{id}/reload method: POST xCodeSample: @@ -1498,23 +1453,22 @@ from sailpoint.v2024.api.accounts_api import AccountsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.accounts_async_result import AccountsAsyncResult - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The account id # str | The account id - try: - # Reload Account - - results = AccountsApi(api_client).submit_reload_account(id=id) - # Below is a request that includes all optional parameters - # results = AccountsApi(api_client).submit_reload_account(id) - print("The response of AccountsApi->submit_reload_account:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccountsApi->submit_reload_account: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The account id # str | The account id + try: + # Reload Account + + results = AccountsApi(api_client).submit_reload_account(id=id) + # Below is a request that includes all optional parameters + # results = AccountsApi(api_client).submit_reload_account(id) + print("The response of AccountsApi->submit_reload_account:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccountsApi->submit_reload_account: %s\n" % e) - path: /accounts/{id}/unlock method: POST xCodeSample: @@ -1525,28 +1479,27 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.account_unlock_request import AccountUnlockRequest from sailpoint.v2024.models.accounts_async_result import AccountsAsyncResult - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The account ID. # str | The account ID. - account_unlock_request = '''{ + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The account ID. # str | The account ID. + account_unlock_request = '''{ "forceProvisioning" : false, "externalVerificationId" : "3f9180835d2e5168015d32f890ca1581", "unlockIDNAccount" : false }''' # AccountUnlockRequest | - try: - # Unlock Account - new_account_unlock_request = AccountUnlockRequest.from_json(account_unlock_request) - results = AccountsApi(api_client).unlock_account(id=id, account_unlock_request=new_account_unlock_request) - # Below is a request that includes all optional parameters - # results = AccountsApi(api_client).unlock_account(id, new_account_unlock_request) - print("The response of AccountsApi->unlock_account:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccountsApi->unlock_account: %s\n" % e) + try: + # Unlock Account + new_account_unlock_request = AccountUnlockRequest.from_json(account_unlock_request) + results = AccountsApi(api_client).unlock_account(id=id, account_unlock_request=new_account_unlock_request) + # Below is a request that includes all optional parameters + # results = AccountsApi(api_client).unlock_account(id, new_account_unlock_request) + print("The response of AccountsApi->unlock_account:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccountsApi->unlock_account: %s\n" % e) - path: /accounts/{id} method: PATCH xCodeSample: @@ -1555,24 +1508,23 @@ source: | from sailpoint.v2024.api.accounts_api import AccountsApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | Account ID. # str | Account ID. - request_body = '''[{op=remove, path=/identityId}]''' # List[object] | A list of account update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. - try: - # Update Account - new_request_body = RequestBody.from_json(request_body) - results = AccountsApi(api_client).update_account(id=id, request_body=new_request_body) - # Below is a request that includes all optional parameters - # results = AccountsApi(api_client).update_account(id, new_request_body) - print("The response of AccountsApi->update_account:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccountsApi->update_account: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | Account ID. # str | Account ID. + request_body = '''[{op=remove, path=/identityId}]''' # List[object] | A list of account update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. + try: + # Update Account + new_request_body = RequestBody.from_json(request_body) + results = AccountsApi(api_client).update_account(id=id, request_body=new_request_body) + # Below is a request that includes all optional parameters + # results = AccountsApi(api_client).update_account(id, new_request_body) + print("The response of AccountsApi->update_account:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccountsApi->update_account: %s\n" % e) - path: /account-usages/{accountId}/summaries method: GET xCodeSample: @@ -1582,27 +1534,26 @@ from sailpoint.v2024.api.account_usages_api import AccountUsagesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.account_usage import AccountUsage - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - account_id = 'ef38f94347e94562b5bb8424a56397d8' # str | ID of IDN account # str | ID of IDN account - 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) - sorters = '-date' # 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: **date** (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: **date** (optional) - try: - # Returns account usage insights - - results = AccountUsagesApi(api_client).get_usages_by_account_id(account_id=account_id) - # Below is a request that includes all optional parameters - # results = AccountUsagesApi(api_client).get_usages_by_account_id(account_id, limit, offset, count, sorters) - print("The response of AccountUsagesApi->get_usages_by_account_id:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccountUsagesApi->get_usages_by_account_id: %s\n" % e) + account_id = 'ef38f94347e94562b5bb8424a56397d8' # str | ID of IDN account # str | ID of IDN account + 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) + sorters = '-date' # 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: **date** (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: **date** (optional) + try: + # Returns account usage insights + + results = AccountUsagesApi(api_client).get_usages_by_account_id(account_id=account_id) + # Below is a request that includes all optional parameters + # results = AccountUsagesApi(api_client).get_usages_by_account_id(account_id, limit, offset, count, sorters) + print("The response of AccountUsagesApi->get_usages_by_account_id:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccountUsagesApi->get_usages_by_account_id: %s\n" % e) - path: /discovered-applications method: GET xCodeSample: @@ -1612,27 +1563,26 @@ from sailpoint.v2024.api.application_discovery_api import ApplicationDiscoveryApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.get_discovered_applications200_response_inner import GetDiscoveredApplications200ResponseInner - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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) - detail = 'FULL' # str | Determines whether slim, or increased level of detail is provided for each discovered application in the returned list. SLIM is the default behavior. (optional) # str | Determines whether slim, or increased level of detail is provided for each discovered application in the returned list. SLIM is the default behavior. (optional) - filter = 'name eq \"Okta\" and description co \"Okta\" and discoverySource in (\"csv\", \"Okta Saas\")' # 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: **name**: *eq, sw, co* **description**: *eq, sw, co* **createdAtStart**: *eq, le, ge* **createdAtEnd**: *eq, le, ge* **discoveredAtStart**: *eq, le, ge* **discoveredAtEnd**: *eq, le, ge* **discoverySource**: *eq, in* (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: **name**: *eq, sw, co* **description**: *eq, sw, co* **createdAtStart**: *eq, le, ge* **createdAtEnd**: *eq, le, ge* **discoveredAtStart**: *eq, le, ge* **discoveredAtEnd**: *eq, le, ge* **discoverySource**: *eq, in* (optional) - sorters = 'name' # 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: **name, description, discoveredAt, discoverySource** (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: **name, description, discoveredAt, discoverySource** (optional) - try: - # Get Discovered Applications for Tenant - - results = ApplicationDiscoveryApi(api_client).get_discovered_applications() - # Below is a request that includes all optional parameters - # results = ApplicationDiscoveryApi(api_client).get_discovered_applications(limit, offset, detail, filter, sorters) - print("The response of ApplicationDiscoveryApi->get_discovered_applications:\n") - pprint(results) - except Exception as e: - print("Exception when calling ApplicationDiscoveryApi->get_discovered_applications: %s\n" % e) + 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) + detail = 'FULL' # str | Determines whether slim, or increased level of detail is provided for each discovered application in the returned list. SLIM is the default behavior. (optional) # str | Determines whether slim, or increased level of detail is provided for each discovered application in the returned list. SLIM is the default behavior. (optional) + filter = 'name eq \"Okta\" and description co \"Okta\" and discoverySource in (\"csv\", \"Okta Saas\")' # 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: **name**: *eq, sw, co* **description**: *eq, sw, co* **createdAtStart**: *eq, le, ge* **createdAtEnd**: *eq, le, ge* **discoveredAtStart**: *eq, le, ge* **discoveredAtEnd**: *eq, le, ge* **discoverySource**: *eq, in* (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: **name**: *eq, sw, co* **description**: *eq, sw, co* **createdAtStart**: *eq, le, ge* **createdAtEnd**: *eq, le, ge* **discoveredAtStart**: *eq, le, ge* **discoveredAtEnd**: *eq, le, ge* **discoverySource**: *eq, in* (optional) + sorters = 'name' # 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: **name, description, discoveredAt, discoverySource** (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: **name, description, discoveredAt, discoverySource** (optional) + try: + # Get Discovered Applications for Tenant + + results = ApplicationDiscoveryApi(api_client).get_discovered_applications() + # Below is a request that includes all optional parameters + # results = ApplicationDiscoveryApi(api_client).get_discovered_applications(limit, offset, detail, filter, sorters) + print("The response of ApplicationDiscoveryApi->get_discovered_applications:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ApplicationDiscoveryApi->get_discovered_applications: %s\n" % e) - path: /manual-discover-applications-template method: GET xCodeSample: @@ -1642,22 +1592,21 @@ from sailpoint.v2024.api.application_discovery_api import ApplicationDiscoveryApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.manual_discover_applications_template import ManualDiscoverApplicationsTemplate - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - try: - # Download CSV Template for Discovery - - results = ApplicationDiscoveryApi(api_client).get_manual_discover_applications_csv_template() - # Below is a request that includes all optional parameters - # results = ApplicationDiscoveryApi(api_client).get_manual_discover_applications_csv_template() - print("The response of ApplicationDiscoveryApi->get_manual_discover_applications_csv_template:\n") - pprint(results) - except Exception as e: - print("Exception when calling ApplicationDiscoveryApi->get_manual_discover_applications_csv_template: %s\n" % e) + try: + # Download CSV Template for Discovery + + results = ApplicationDiscoveryApi(api_client).get_manual_discover_applications_csv_template() + # Below is a request that includes all optional parameters + # results = ApplicationDiscoveryApi(api_client).get_manual_discover_applications_csv_template() + print("The response of ApplicationDiscoveryApi->get_manual_discover_applications_csv_template:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ApplicationDiscoveryApi->get_manual_discover_applications_csv_template: %s\n" % e) - path: /manual-discover-applications method: POST xCodeSample: @@ -1666,21 +1615,20 @@ source: | from sailpoint.v2024.api.application_discovery_api import ApplicationDiscoveryApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - file = None # bytearray | The CSV file to upload containing `application_name` and `description` columns. Each row represents an application to be discovered. # bytearray | The CSV file to upload containing `application_name` and `description` columns. Each row represents an application to be discovered. - try: - # Upload CSV to Discover Applications - - ApplicationDiscoveryApi(api_client).send_manual_discover_applications_csv_template(file=file) - # Below is a request that includes all optional parameters - # ApplicationDiscoveryApi(api_client).send_manual_discover_applications_csv_template(file) - except Exception as e: - print("Exception when calling ApplicationDiscoveryApi->send_manual_discover_applications_csv_template: %s\n" % e) + file = None # bytearray | The CSV file to upload containing `application_name` and `description` columns. Each row represents an application to be discovered. # bytearray | The CSV file to upload containing `application_name` and `description` columns. Each row represents an application to be discovered. + try: + # Upload CSV to Discover Applications + + ApplicationDiscoveryApi(api_client).send_manual_discover_applications_csv_template(file=file) + # Below is a request that includes all optional parameters + # ApplicationDiscoveryApi(api_client).send_manual_discover_applications_csv_template(file) + except Exception as e: + print("Exception when calling ApplicationDiscoveryApi->send_manual_discover_applications_csv_template: %s\n" % e) - path: /generic-approvals/{id} method: GET xCodeSample: @@ -1690,25 +1638,24 @@ from sailpoint.v2024.api.approvals_api import ApprovalsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.approval import Approval - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = '38453251-6be2-5f8f-df93-5ce19e295837' # str | ID of the approval that is to be returned # str | ID of the approval that is to be returned - 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 an approval - - results = ApprovalsApi(api_client).get_approval(id=id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = ApprovalsApi(api_client).get_approval(id, x_sail_point_experimental) - print("The response of ApprovalsApi->get_approval:\n") - pprint(results) - except Exception as e: - print("Exception when calling ApprovalsApi->get_approval: %s\n" % e) + id = '38453251-6be2-5f8f-df93-5ce19e295837' # str | ID of the approval that is to be returned # str | ID of the approval that is to be returned + 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 an approval + + results = ApprovalsApi(api_client).get_approval(id=id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = ApprovalsApi(api_client).get_approval(id, x_sail_point_experimental) + print("The response of ApprovalsApi->get_approval:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ApprovalsApi->get_approval: %s\n" % e) - path: /generic-approvals method: GET xCodeSample: @@ -1718,27 +1665,26 @@ from sailpoint.v2024.api.approvals_api import ApprovalsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.approval import Approval - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - mine = true # bool | Returns the list of approvals for the current caller (optional) # bool | Returns the list of approvals for the current caller (optional) - requester_id = '17e633e7d57e481569df76323169deb6a' # str | Returns the list of approvals for a given requester ID (optional) # str | Returns the list of approvals for a given requester ID (optional) - filters = 'filters=status eq PENDING' # 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: **status**: *eq* **referenceType**: *eq* (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: **status**: *eq* **referenceType**: *eq* (optional) - try: - # Get Approvals - - results = ApprovalsApi(api_client).get_approvals(x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = ApprovalsApi(api_client).get_approvals(x_sail_point_experimental, mine, requester_id, filters) - print("The response of ApprovalsApi->get_approvals:\n") - pprint(results) - except Exception as e: - print("Exception when calling ApprovalsApi->get_approvals: %s\n" % e) + 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') + mine = true # bool | Returns the list of approvals for the current caller (optional) # bool | Returns the list of approvals for the current caller (optional) + requester_id = '17e633e7d57e481569df76323169deb6a' # str | Returns the list of approvals for a given requester ID (optional) # str | Returns the list of approvals for a given requester ID (optional) + filters = 'filters=status eq PENDING' # 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: **status**: *eq* **referenceType**: *eq* (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: **status**: *eq* **referenceType**: *eq* (optional) + try: + # Get Approvals + + results = ApprovalsApi(api_client).get_approvals(x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = ApprovalsApi(api_client).get_approvals(x_sail_point_experimental, mine, requester_id, filters) + print("The response of ApprovalsApi->get_approvals:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ApprovalsApi->get_approvals: %s\n" % e) - path: /source-apps method: POST xCodeSample: @@ -1749,15 +1695,14 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.source_app import SourceApp from sailpoint.v2024.models.source_app_create_dto import SourceAppCreateDto - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - source_app_create_dto = '''{ + 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') + source_app_create_dto = '''{ "name" : "my app", "description" : "the source app for engineers", "accountSource" : { @@ -1767,16 +1712,16 @@ }, "matchAllAccounts" : true }''' # SourceAppCreateDto | - try: - # Create source app - new_source_app_create_dto = SourceAppCreateDto.from_json(source_app_create_dto) - results = AppsApi(api_client).create_source_app(x_sail_point_experimental=x_sail_point_experimental, source_app_create_dto=new_source_app_create_dto) - # Below is a request that includes all optional parameters - # results = AppsApi(api_client).create_source_app(x_sail_point_experimental, new_source_app_create_dto) - print("The response of AppsApi->create_source_app:\n") - pprint(results) - except Exception as e: - print("Exception when calling AppsApi->create_source_app: %s\n" % e) + try: + # Create source app + new_source_app_create_dto = SourceAppCreateDto.from_json(source_app_create_dto) + results = AppsApi(api_client).create_source_app(x_sail_point_experimental=x_sail_point_experimental, source_app_create_dto=new_source_app_create_dto) + # Below is a request that includes all optional parameters + # results = AppsApi(api_client).create_source_app(x_sail_point_experimental, new_source_app_create_dto) + print("The response of AppsApi->create_source_app:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AppsApi->create_source_app: %s\n" % e) - path: /source-apps/{id}/access-profiles/bulk-remove method: POST xCodeSample: @@ -1786,27 +1731,26 @@ from sailpoint.v2024.api.apps_api import AppsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.access_profile_details import AccessProfileDetails - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = '2c91808a7813090a017814121e121518' # str | ID of the source app # str | ID of the source app - 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 = '''[c9575abb5e3a4e3db82b2f989a738aa2, c9dc28e148a24d65b3ccb5fb8ca5ddd9]''' # List[str] | - 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) - try: - # Bulk remove access profiles from the specified source app - new_request_body = RequestBody.from_json(request_body) - results = AppsApi(api_client).delete_access_profiles_from_source_app_by_bulk(id=id, x_sail_point_experimental=x_sail_point_experimental, request_body=new_request_body) - # Below is a request that includes all optional parameters - # results = AppsApi(api_client).delete_access_profiles_from_source_app_by_bulk(id, x_sail_point_experimental, new_request_body, limit) - print("The response of AppsApi->delete_access_profiles_from_source_app_by_bulk:\n") - pprint(results) - except Exception as e: - print("Exception when calling AppsApi->delete_access_profiles_from_source_app_by_bulk: %s\n" % e) + id = '2c91808a7813090a017814121e121518' # str | ID of the source app # str | ID of the source app + 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 = '''[c9575abb5e3a4e3db82b2f989a738aa2, c9dc28e148a24d65b3ccb5fb8ca5ddd9]''' # List[str] | + 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) + try: + # Bulk remove access profiles from the specified source app + new_request_body = RequestBody.from_json(request_body) + results = AppsApi(api_client).delete_access_profiles_from_source_app_by_bulk(id=id, x_sail_point_experimental=x_sail_point_experimental, request_body=new_request_body) + # Below is a request that includes all optional parameters + # results = AppsApi(api_client).delete_access_profiles_from_source_app_by_bulk(id, x_sail_point_experimental, new_request_body, limit) + print("The response of AppsApi->delete_access_profiles_from_source_app_by_bulk:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AppsApi->delete_access_profiles_from_source_app_by_bulk: %s\n" % e) - path: /source-apps/{id} method: DELETE xCodeSample: @@ -1816,25 +1760,24 @@ from sailpoint.v2024.api.apps_api import AppsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.source_app import SourceApp - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = '2c9180835d191a86015d28455b4a2329' # str | source app ID. # str | source app ID. - 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: - # Delete source app by ID - - results = AppsApi(api_client).delete_source_app(id=id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = AppsApi(api_client).delete_source_app(id, x_sail_point_experimental) - print("The response of AppsApi->delete_source_app:\n") - pprint(results) - except Exception as e: - print("Exception when calling AppsApi->delete_source_app: %s\n" % e) + id = '2c9180835d191a86015d28455b4a2329' # str | source app ID. # str | source app ID. + 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: + # Delete source app by ID + + results = AppsApi(api_client).delete_source_app(id=id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = AppsApi(api_client).delete_source_app(id, x_sail_point_experimental) + print("The response of AppsApi->delete_source_app:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AppsApi->delete_source_app: %s\n" % e) - path: /source-apps/{id} method: GET xCodeSample: @@ -1844,25 +1787,24 @@ from sailpoint.v2024.api.apps_api import AppsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.source_app import SourceApp - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = '2c91808a7813090a017814121e121518' # str | ID of the source app # str | ID of the source app - 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 source app by ID - - results = AppsApi(api_client).get_source_app(id=id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = AppsApi(api_client).get_source_app(id, x_sail_point_experimental) - print("The response of AppsApi->get_source_app:\n") - pprint(results) - except Exception as e: - print("Exception when calling AppsApi->get_source_app: %s\n" % e) + id = '2c91808a7813090a017814121e121518' # str | ID of the source app # str | ID of the source app + 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 source app by ID + + results = AppsApi(api_client).get_source_app(id=id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = AppsApi(api_client).get_source_app(id, x_sail_point_experimental) + print("The response of AppsApi->get_source_app:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AppsApi->get_source_app: %s\n" % e) - path: /source-apps/{id}/access-profiles method: GET xCodeSample: @@ -1872,28 +1814,27 @@ from sailpoint.v2024.api.apps_api import AppsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.access_profile_details import AccessProfileDetails - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = '2c91808a7813090a017814121e121518' # str | ID of the source app # str | ID of the source app - 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') - 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) - filters = 'name eq \"developer access profile\"' # 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* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, 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* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* (optional) - try: - # List access profiles for the specified source app - - results = AppsApi(api_client).list_access_profiles_for_source_app(id=id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = AppsApi(api_client).list_access_profiles_for_source_app(id, x_sail_point_experimental, limit, offset, filters) - print("The response of AppsApi->list_access_profiles_for_source_app:\n") - pprint(results) - except Exception as e: - print("Exception when calling AppsApi->list_access_profiles_for_source_app: %s\n" % e) + id = '2c91808a7813090a017814121e121518' # str | ID of the source app # str | ID of the source app + 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') + 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) + filters = 'name eq \"developer access profile\"' # 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* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, 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* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* (optional) + try: + # List access profiles for the specified source app + + results = AppsApi(api_client).list_access_profiles_for_source_app(id=id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = AppsApi(api_client).list_access_profiles_for_source_app(id, x_sail_point_experimental, limit, offset, filters) + print("The response of AppsApi->list_access_profiles_for_source_app:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AppsApi->list_access_profiles_for_source_app: %s\n" % e) - path: /source-apps/all method: GET xCodeSample: @@ -1903,29 +1844,28 @@ from sailpoint.v2024.api.apps_api import AppsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.source_app import SourceApp - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (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) - 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) - 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) - sorters = 'name,-modified' # 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: **id, name, created, modified, owner.id, accountSource.id** (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: **id, name, created, modified, owner.id, accountSource.id** (optional) - filters = 'enabled eq true' # 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, co, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **accountSource.id**: *eq, in* **enabled**: *eq* (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, co, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **accountSource.id**: *eq, in* **enabled**: *eq* (optional) - try: - # List all source apps - - results = AppsApi(api_client).list_all_source_app(x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = AppsApi(api_client).list_all_source_app(x_sail_point_experimental, limit, count, offset, sorters, filters) - print("The response of AppsApi->list_all_source_app:\n") - pprint(results) - except Exception as e: - print("Exception when calling AppsApi->list_all_source_app: %s\n" % e) + 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') + 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) + 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) + 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) + sorters = 'name,-modified' # 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: **id, name, created, modified, owner.id, accountSource.id** (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: **id, name, created, modified, owner.id, accountSource.id** (optional) + filters = 'enabled eq true' # 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, co, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **accountSource.id**: *eq, in* **enabled**: *eq* (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, co, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **accountSource.id**: *eq, in* **enabled**: *eq* (optional) + try: + # List all source apps + + results = AppsApi(api_client).list_all_source_app(x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = AppsApi(api_client).list_all_source_app(x_sail_point_experimental, limit, count, offset, sorters, filters) + print("The response of AppsApi->list_all_source_app:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AppsApi->list_all_source_app: %s\n" % e) - path: /user-apps/all method: GET xCodeSample: @@ -1935,28 +1875,27 @@ from sailpoint.v2024.api.apps_api import AppsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.user_app import UserApp - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - filters = 'name eq \"user app name\"' # 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* **ownerId**: *eq* **ownerName**: *eq, sw* **ownerAlias**: *eq, sw* **accountId**: *eq* **sourceAppId**: *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* **ownerId**: *eq* **ownerName**: *eq, sw* **ownerAlias**: *eq, sw* **accountId**: *eq* **sourceAppId**: *eq* - 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') - 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) - 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) - 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) - try: - # List all user apps - - results = AppsApi(api_client).list_all_user_apps(filters=filters, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = AppsApi(api_client).list_all_user_apps(filters, x_sail_point_experimental, limit, count, offset) - print("The response of AppsApi->list_all_user_apps:\n") - pprint(results) - except Exception as e: - print("Exception when calling AppsApi->list_all_user_apps: %s\n" % e) + filters = 'name eq \"user app name\"' # 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* **ownerId**: *eq* **ownerName**: *eq, sw* **ownerAlias**: *eq, sw* **accountId**: *eq* **sourceAppId**: *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* **ownerId**: *eq* **ownerName**: *eq, sw* **ownerAlias**: *eq, sw* **accountId**: *eq* **sourceAppId**: *eq* + 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') + 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) + 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) + 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) + try: + # List all user apps + + results = AppsApi(api_client).list_all_user_apps(filters=filters, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = AppsApi(api_client).list_all_user_apps(filters, x_sail_point_experimental, limit, count, offset) + print("The response of AppsApi->list_all_user_apps:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AppsApi->list_all_user_apps: %s\n" % e) - path: /source-apps/assigned method: GET xCodeSample: @@ -1966,29 +1905,28 @@ from sailpoint.v2024.api.apps_api import AppsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.source_app import SourceApp - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (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) - 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) - 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) - sorters = 'name,-modified' # 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: **id, name, created, modified, accountSource.id** (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: **id, name, created, modified, accountSource.id** (optional) - filters = 'name eq \"source app name\"' # 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, co, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **accountSource.id**: *eq, in* (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, co, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **accountSource.id**: *eq, in* (optional) - try: - # List assigned source apps - - results = AppsApi(api_client).list_assigned_source_app(x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = AppsApi(api_client).list_assigned_source_app(x_sail_point_experimental, limit, count, offset, sorters, filters) - print("The response of AppsApi->list_assigned_source_app:\n") - pprint(results) - except Exception as e: - print("Exception when calling AppsApi->list_assigned_source_app: %s\n" % e) + 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') + 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) + 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) + 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) + sorters = 'name,-modified' # 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: **id, name, created, modified, accountSource.id** (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: **id, name, created, modified, accountSource.id** (optional) + filters = 'name eq \"source app name\"' # 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, co, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **accountSource.id**: *eq, in* (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, co, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **accountSource.id**: *eq, in* (optional) + try: + # List assigned source apps + + results = AppsApi(api_client).list_assigned_source_app(x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = AppsApi(api_client).list_assigned_source_app(x_sail_point_experimental, limit, count, offset, sorters, filters) + print("The response of AppsApi->list_assigned_source_app:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AppsApi->list_assigned_source_app: %s\n" % e) - path: /user-apps/{id}/available-accounts method: GET xCodeSample: @@ -1998,27 +1936,26 @@ from sailpoint.v2024.api.apps_api import AppsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.app_account_details import AppAccountDetails - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = '2c91808a7813090a017814121e121518' # str | ID of the user app # str | ID of the user app - 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') - 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) - 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) - try: - # List available accounts for user app - - results = AppsApi(api_client).list_available_accounts_for_user_app(id=id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = AppsApi(api_client).list_available_accounts_for_user_app(id, x_sail_point_experimental, limit, count) - print("The response of AppsApi->list_available_accounts_for_user_app:\n") - pprint(results) - except Exception as e: - print("Exception when calling AppsApi->list_available_accounts_for_user_app: %s\n" % e) + id = '2c91808a7813090a017814121e121518' # str | ID of the user app # str | ID of the user app + 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') + 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) + 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) + try: + # List available accounts for user app + + results = AppsApi(api_client).list_available_accounts_for_user_app(id=id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = AppsApi(api_client).list_available_accounts_for_user_app(id, x_sail_point_experimental, limit, count) + print("The response of AppsApi->list_available_accounts_for_user_app:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AppsApi->list_available_accounts_for_user_app: %s\n" % e) - path: /source-apps method: GET xCodeSample: @@ -2028,29 +1965,28 @@ from sailpoint.v2024.api.apps_api import AppsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.source_app import SourceApp - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (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) - 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) - 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) - sorters = 'name,-modified' # 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: **id, name, created, modified, owner.id, accountSource.id** (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: **id, name, created, modified, owner.id, accountSource.id** (optional) - filters = 'name eq \"source app name\"' # 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, co, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **accountSource.id**: *eq, in* (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, co, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **accountSource.id**: *eq, in* (optional) - try: - # List available source apps - - results = AppsApi(api_client).list_available_source_apps(x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = AppsApi(api_client).list_available_source_apps(x_sail_point_experimental, limit, count, offset, sorters, filters) - print("The response of AppsApi->list_available_source_apps:\n") - pprint(results) - except Exception as e: - print("Exception when calling AppsApi->list_available_source_apps: %s\n" % e) + 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') + 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) + 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) + 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) + sorters = 'name,-modified' # 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: **id, name, created, modified, owner.id, accountSource.id** (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: **id, name, created, modified, owner.id, accountSource.id** (optional) + filters = 'name eq \"source app name\"' # 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, co, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **accountSource.id**: *eq, in* (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, co, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **accountSource.id**: *eq, in* (optional) + try: + # List available source apps + + results = AppsApi(api_client).list_available_source_apps(x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = AppsApi(api_client).list_available_source_apps(x_sail_point_experimental, limit, count, offset, sorters, filters) + print("The response of AppsApi->list_available_source_apps:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AppsApi->list_available_source_apps: %s\n" % e) - path: /user-apps method: GET xCodeSample: @@ -2060,28 +1996,27 @@ from sailpoint.v2024.api.apps_api import AppsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.user_app import UserApp - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (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) - 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) - 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) - filters = 'name eq \"user app name\"' # 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* **ownerName**: *eq, sw* **ownerAlias**: *eq, sw* **accountId**: *eq* **sourceAppId**: *eq* (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* **ownerName**: *eq, sw* **ownerAlias**: *eq, sw* **accountId**: *eq* **sourceAppId**: *eq* (optional) - try: - # List owned user apps - - results = AppsApi(api_client).list_owned_user_apps(x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = AppsApi(api_client).list_owned_user_apps(x_sail_point_experimental, limit, count, offset, filters) - print("The response of AppsApi->list_owned_user_apps:\n") - pprint(results) - except Exception as e: - print("Exception when calling AppsApi->list_owned_user_apps: %s\n" % e) + 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') + 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) + 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) + 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) + filters = 'name eq \"user app name\"' # 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* **ownerName**: *eq, sw* **ownerAlias**: *eq, sw* **accountId**: *eq* **sourceAppId**: *eq* (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* **ownerName**: *eq, sw* **ownerAlias**: *eq, sw* **accountId**: *eq* **sourceAppId**: *eq* (optional) + try: + # List owned user apps + + results = AppsApi(api_client).list_owned_user_apps(x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = AppsApi(api_client).list_owned_user_apps(x_sail_point_experimental, limit, count, offset, filters) + print("The response of AppsApi->list_owned_user_apps:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AppsApi->list_owned_user_apps: %s\n" % e) - path: /source-apps/{id} method: PATCH xCodeSample: @@ -2092,26 +2027,25 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.json_patch_operation import JsonPatchOperation from sailpoint.v2024.models.source_app_patch_dto import SourceAppPatchDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = '2c91808a7813090a017814121e121518' # str | ID of the source app to patch # str | ID of the source app to patch - 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') - json_patch_operation = '''[{op=replace, path=/enabled, value=true}, {op=replace, path=/matchAllAccounts, value=true}]''' # List[JsonPatchOperation] | (optional) - try: - # Patch source app by ID - - results = AppsApi(api_client).patch_source_app(id=id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = AppsApi(api_client).patch_source_app(id, x_sail_point_experimental, new_json_patch_operation) - print("The response of AppsApi->patch_source_app:\n") - pprint(results) - except Exception as e: - print("Exception when calling AppsApi->patch_source_app: %s\n" % e) + id = '2c91808a7813090a017814121e121518' # str | ID of the source app to patch # str | ID of the source app to patch + 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') + json_patch_operation = '''[{op=replace, path=/enabled, value=true}, {op=replace, path=/matchAllAccounts, value=true}]''' # List[JsonPatchOperation] | (optional) + try: + # Patch source app by ID + + results = AppsApi(api_client).patch_source_app(id=id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = AppsApi(api_client).patch_source_app(id, x_sail_point_experimental, new_json_patch_operation) + print("The response of AppsApi->patch_source_app:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AppsApi->patch_source_app: %s\n" % e) - path: /user-apps/{id} method: PATCH xCodeSample: @@ -2122,26 +2056,25 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.json_patch_operation import JsonPatchOperation from sailpoint.v2024.models.user_app import UserApp - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = '2c91808a7813090a017814121e121518' # str | ID of the user app to patch # str | ID of the user app to patch - 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') - json_patch_operation = '''[sailpoint.v2024.JsonPatchOperation()]''' # List[JsonPatchOperation] | (optional) - try: - # Patch user app by ID - - results = AppsApi(api_client).patch_user_app(id=id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = AppsApi(api_client).patch_user_app(id, x_sail_point_experimental, new_json_patch_operation) - print("The response of AppsApi->patch_user_app:\n") - pprint(results) - except Exception as e: - print("Exception when calling AppsApi->patch_user_app: %s\n" % e) + id = '2c91808a7813090a017814121e121518' # str | ID of the user app to patch # str | ID of the user app to patch + 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') + json_patch_operation = '''[sailpoint.v2024.JsonPatchOperation()]''' # List[JsonPatchOperation] | (optional) + try: + # Patch user app by ID + + results = AppsApi(api_client).patch_user_app(id=id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = AppsApi(api_client).patch_user_app(id, x_sail_point_experimental, new_json_patch_operation) + print("The response of AppsApi->patch_user_app:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AppsApi->patch_user_app: %s\n" % e) - path: /source-apps/bulk-update method: POST xCodeSample: @@ -2151,15 +2084,14 @@ from sailpoint.v2024.api.apps_api import AppsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.source_app_bulk_update_request import SourceAppBulkUpdateRequest - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - source_app_bulk_update_request = '''{ + 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') + source_app_bulk_update_request = '''{ "appIds" : [ "2c91808a7624751a01762f19d665220d", "2c91808a7624751a01762f19d67c220e", "2c91808a7624751a01762f19d692220f" ], "jsonPatch" : [ { "op" : "replace", @@ -2171,14 +2103,14 @@ "value" : false } ] }''' # SourceAppBulkUpdateRequest | (optional) - try: - # Bulk update source apps - - AppsApi(api_client).update_source_apps_in_bulk(x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # AppsApi(api_client).update_source_apps_in_bulk(x_sail_point_experimental, new_source_app_bulk_update_request) - except Exception as e: - print("Exception when calling AppsApi->update_source_apps_in_bulk: %s\n" % e) + try: + # Bulk update source apps + + AppsApi(api_client).update_source_apps_in_bulk(x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # AppsApi(api_client).update_source_apps_in_bulk(x_sail_point_experimental, new_source_app_bulk_update_request) + except Exception as e: + print("Exception when calling AppsApi->update_source_apps_in_bulk: %s\n" % e) - path: /auth-profiles/{id} method: GET xCodeSample: @@ -2188,25 +2120,24 @@ from sailpoint.v2024.api.auth_profile_api import AuthProfileApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.auth_profile import AuthProfile - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - id = '2c91808a7813090a017814121919ecca' # str | ID of the Auth Profile to patch. # str | ID of the Auth Profile to patch. - try: - # Get Auth Profile - - results = AuthProfileApi(api_client).get_profile_config(x_sail_point_experimental=x_sail_point_experimental, id=id) - # Below is a request that includes all optional parameters - # results = AuthProfileApi(api_client).get_profile_config(x_sail_point_experimental, id) - print("The response of AuthProfileApi->get_profile_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling AuthProfileApi->get_profile_config: %s\n" % e) + 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') + id = '2c91808a7813090a017814121919ecca' # str | ID of the Auth Profile to patch. # str | ID of the Auth Profile to patch. + try: + # Get Auth Profile + + results = AuthProfileApi(api_client).get_profile_config(x_sail_point_experimental=x_sail_point_experimental, id=id) + # Below is a request that includes all optional parameters + # results = AuthProfileApi(api_client).get_profile_config(x_sail_point_experimental, id) + print("The response of AuthProfileApi->get_profile_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AuthProfileApi->get_profile_config: %s\n" % e) - path: /auth-profiles method: GET xCodeSample: @@ -2216,24 +2147,23 @@ from sailpoint.v2024.api.auth_profile_api import AuthProfileApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.auth_profile_summary import AuthProfileSummary - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - try: - # Get list of Auth Profiles - - results = AuthProfileApi(api_client).get_profile_config_list(x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = AuthProfileApi(api_client).get_profile_config_list(x_sail_point_experimental) - print("The response of AuthProfileApi->get_profile_config_list:\n") - pprint(results) - except Exception as e: - print("Exception when calling AuthProfileApi->get_profile_config_list: %s\n" % e) + 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 list of Auth Profiles + + results = AuthProfileApi(api_client).get_profile_config_list(x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = AuthProfileApi(api_client).get_profile_config_list(x_sail_point_experimental) + print("The response of AuthProfileApi->get_profile_config_list:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AuthProfileApi->get_profile_config_list: %s\n" % e) - path: /auth-profiles/{id} method: PATCH xCodeSample: @@ -2244,26 +2174,25 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.auth_profile import AuthProfile from sailpoint.v2024.models.json_patch_operation import JsonPatchOperation - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = '2c91808a7813090a017814121919ecca' # str | ID of the Auth Profile to patch. # str | ID of the Auth Profile to patch. - 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') - json_patch_operation = '''[sailpoint.v2024.JsonPatchOperation()]''' # List[JsonPatchOperation] | - try: - # Patch a specified Auth Profile - new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) - results = AuthProfileApi(api_client).patch_profile_config(id=id, x_sail_point_experimental=x_sail_point_experimental, json_patch_operation=new_json_patch_operation) - # Below is a request that includes all optional parameters - # results = AuthProfileApi(api_client).patch_profile_config(id, x_sail_point_experimental, new_json_patch_operation) - print("The response of AuthProfileApi->patch_profile_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling AuthProfileApi->patch_profile_config: %s\n" % e) + id = '2c91808a7813090a017814121919ecca' # str | ID of the Auth Profile to patch. # str | ID of the Auth Profile to patch. + 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') + json_patch_operation = '''[sailpoint.v2024.JsonPatchOperation()]''' # List[JsonPatchOperation] | + try: + # Patch a specified Auth Profile + new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) + results = AuthProfileApi(api_client).patch_profile_config(id=id, x_sail_point_experimental=x_sail_point_experimental, json_patch_operation=new_json_patch_operation) + # Below is a request that includes all optional parameters + # results = AuthProfileApi(api_client).patch_profile_config(id, x_sail_point_experimental, new_json_patch_operation) + print("The response of AuthProfileApi->patch_profile_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AuthProfileApi->patch_profile_config: %s\n" % e) - path: /auth-users/{id} method: GET xCodeSample: @@ -2273,23 +2202,22 @@ from sailpoint.v2024.api.auth_users_api import AuthUsersApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.auth_user import AuthUser - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | Identity ID # str | Identity ID - try: - # Auth User Details - - results = AuthUsersApi(api_client).get_auth_user(id=id) - # Below is a request that includes all optional parameters - # results = AuthUsersApi(api_client).get_auth_user(id) - print("The response of AuthUsersApi->get_auth_user:\n") - pprint(results) - except Exception as e: - print("Exception when calling AuthUsersApi->get_auth_user: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | Identity ID # str | Identity ID + try: + # Auth User Details + + results = AuthUsersApi(api_client).get_auth_user(id=id) + # Below is a request that includes all optional parameters + # results = AuthUsersApi(api_client).get_auth_user(id) + print("The response of AuthUsersApi->get_auth_user:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AuthUsersApi->get_auth_user: %s\n" % e) - path: /auth-users/{id} method: PATCH xCodeSample: @@ -2300,24 +2228,23 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.auth_user import AuthUser from sailpoint.v2024.models.json_patch_operation import JsonPatchOperation - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | Identity ID # str | Identity ID - json_patch_operation = '''[{op=replace, path=/capabilities, value=[ORG_ADMIN]}]''' # List[JsonPatchOperation] | A list of auth user update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. - try: - # Auth User Update - new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) - results = AuthUsersApi(api_client).patch_auth_user(id=id, json_patch_operation=new_json_patch_operation) - # Below is a request that includes all optional parameters - # results = AuthUsersApi(api_client).patch_auth_user(id, new_json_patch_operation) - print("The response of AuthUsersApi->patch_auth_user:\n") - pprint(results) - except Exception as e: - print("Exception when calling AuthUsersApi->patch_auth_user: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | Identity ID # str | Identity ID + json_patch_operation = '''[{op=replace, path=/capabilities, value=[ORG_ADMIN]}]''' # List[JsonPatchOperation] | A list of auth user update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. + try: + # Auth User Update + new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) + results = AuthUsersApi(api_client).patch_auth_user(id=id, json_patch_operation=new_json_patch_operation) + # Below is a request that includes all optional parameters + # results = AuthUsersApi(api_client).patch_auth_user(id, new_json_patch_operation) + print("The response of AuthUsersApi->patch_auth_user:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AuthUsersApi->patch_auth_user: %s\n" % e) - path: /brandings method: POST xCodeSample: @@ -2327,30 +2254,29 @@ from sailpoint.v2024.api.branding_api import BrandingApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.branding_item import BrandingItem - from pprint import pprint - from sailpoint.configuration import Configuration - configuration = Configuration() - - - with ApiClient(configuration) as api_client: - name = 'name_example' # str | name of branding item # str | name of branding item - product_name = 'product_name_example' # str | product name # str | product name - action_button_color = 'action_button_color_example' # str | hex value of color for action button (optional) # str | hex value of color for action button (optional) - active_link_color = 'active_link_color_example' # str | hex value of color for link (optional) # str | hex value of color for link (optional) - navigation_color = 'navigation_color_example' # str | hex value of color for navigation bar (optional) # str | hex value of color for navigation bar (optional) - email_from_address = 'email_from_address_example' # str | email from address (optional) # str | email from address (optional) - login_informational_message = 'login_informational_message_example' # str | login information message (optional) # str | login information message (optional) - file_standard = None # bytearray | png file with logo (optional) # bytearray | png file with logo (optional) - try: - # Create a branding item - - results = BrandingApi(api_client).create_branding_item(name=name, product_name=product_name) - # Below is a request that includes all optional parameters - # results = BrandingApi(api_client).create_branding_item(name, product_name, action_button_color, active_link_color, navigation_color, email_from_address, login_informational_message, file_standard) - print("The response of BrandingApi->create_branding_item:\n") - pprint(results) - except Exception as e: - print("Exception when calling BrandingApi->create_branding_item: %s\n" % e) + from sailpoint.configuration import Configuration + configuration = Configuration() + + + with ApiClient(configuration) as api_client: + name = 'name_example' # str | name of branding item # str | name of branding item + product_name = 'product_name_example' # str | product name # str | product name + action_button_color = 'action_button_color_example' # str | hex value of color for action button (optional) # str | hex value of color for action button (optional) + active_link_color = 'active_link_color_example' # str | hex value of color for link (optional) # str | hex value of color for link (optional) + navigation_color = 'navigation_color_example' # str | hex value of color for navigation bar (optional) # str | hex value of color for navigation bar (optional) + email_from_address = 'email_from_address_example' # str | email from address (optional) # str | email from address (optional) + login_informational_message = 'login_informational_message_example' # str | login information message (optional) # str | login information message (optional) + file_standard = None # bytearray | png file with logo (optional) # bytearray | png file with logo (optional) + try: + # Create a branding item + + results = BrandingApi(api_client).create_branding_item(name=name, product_name=product_name) + # Below is a request that includes all optional parameters + # results = BrandingApi(api_client).create_branding_item(name, product_name, action_button_color, active_link_color, navigation_color, email_from_address, login_informational_message, file_standard) + print("The response of BrandingApi->create_branding_item:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling BrandingApi->create_branding_item: %s\n" % e) - path: /brandings/{name} method: DELETE xCodeSample: @@ -2359,21 +2285,20 @@ source: | from sailpoint.v2024.api.branding_api import BrandingApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - name = 'default' # str | The name of the branding item to be deleted # str | The name of the branding item to be deleted - try: - # Delete a branding item - - BrandingApi(api_client).delete_branding(name=name) - # Below is a request that includes all optional parameters - # BrandingApi(api_client).delete_branding(name) - except Exception as e: - print("Exception when calling BrandingApi->delete_branding: %s\n" % e) + name = 'default' # str | The name of the branding item to be deleted # str | The name of the branding item to be deleted + try: + # Delete a branding item + + BrandingApi(api_client).delete_branding(name=name) + # Below is a request that includes all optional parameters + # BrandingApi(api_client).delete_branding(name) + except Exception as e: + print("Exception when calling BrandingApi->delete_branding: %s\n" % e) - path: /brandings/{name} method: GET xCodeSample: @@ -2383,23 +2308,22 @@ from sailpoint.v2024.api.branding_api import BrandingApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.branding_item import BrandingItem - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - name = 'default' # str | The name of the branding item to be retrieved # str | The name of the branding item to be retrieved - try: - # Get a branding item - - results = BrandingApi(api_client).get_branding(name=name) - # Below is a request that includes all optional parameters - # results = BrandingApi(api_client).get_branding(name) - print("The response of BrandingApi->get_branding:\n") - pprint(results) - except Exception as e: - print("Exception when calling BrandingApi->get_branding: %s\n" % e) + name = 'default' # str | The name of the branding item to be retrieved # str | The name of the branding item to be retrieved + try: + # Get a branding item + + results = BrandingApi(api_client).get_branding(name=name) + # Below is a request that includes all optional parameters + # results = BrandingApi(api_client).get_branding(name) + print("The response of BrandingApi->get_branding:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling BrandingApi->get_branding: %s\n" % e) - path: /brandings method: GET xCodeSample: @@ -2409,22 +2333,21 @@ from sailpoint.v2024.api.branding_api import BrandingApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.branding_item import BrandingItem - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - try: - # List of branding items - - results = BrandingApi(api_client).get_branding_list() - # Below is a request that includes all optional parameters - # results = BrandingApi(api_client).get_branding_list() - print("The response of BrandingApi->get_branding_list:\n") - pprint(results) - except Exception as e: - print("Exception when calling BrandingApi->get_branding_list: %s\n" % e) + try: + # List of branding items + + results = BrandingApi(api_client).get_branding_list() + # Below is a request that includes all optional parameters + # results = BrandingApi(api_client).get_branding_list() + print("The response of BrandingApi->get_branding_list:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling BrandingApi->get_branding_list: %s\n" % e) - path: /brandings/{name} method: PUT xCodeSample: @@ -2434,31 +2357,30 @@ from sailpoint.v2024.api.branding_api import BrandingApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.branding_item import BrandingItem - from pprint import pprint - from sailpoint.configuration import Configuration - configuration = Configuration() - - - with ApiClient(configuration) as api_client: - name = 'default' # str | The name of the branding item to be retrieved # str | The name of the branding item to be retrieved - name2 = 'name_example' # str | name of branding item # str | name of branding item - product_name = 'product_name_example' # str | product name # str | product name - action_button_color = 'action_button_color_example' # str | hex value of color for action button (optional) # str | hex value of color for action button (optional) - active_link_color = 'active_link_color_example' # str | hex value of color for link (optional) # str | hex value of color for link (optional) - navigation_color = 'navigation_color_example' # str | hex value of color for navigation bar (optional) # str | hex value of color for navigation bar (optional) - email_from_address = 'email_from_address_example' # str | email from address (optional) # str | email from address (optional) - login_informational_message = 'login_informational_message_example' # str | login information message (optional) # str | login information message (optional) - file_standard = None # bytearray | png file with logo (optional) # bytearray | png file with logo (optional) - try: - # Update a branding item - - results = BrandingApi(api_client).set_branding_item(name=name, name2=name2, product_name=product_name) - # Below is a request that includes all optional parameters - # results = BrandingApi(api_client).set_branding_item(name, name2, product_name, action_button_color, active_link_color, navigation_color, email_from_address, login_informational_message, file_standard) - print("The response of BrandingApi->set_branding_item:\n") - pprint(results) - except Exception as e: - print("Exception when calling BrandingApi->set_branding_item: %s\n" % e) + from sailpoint.configuration import Configuration + configuration = Configuration() + + + with ApiClient(configuration) as api_client: + name = 'default' # str | The name of the branding item to be retrieved # str | The name of the branding item to be retrieved + name2 = 'name_example' # str | name of branding item # str | name of branding item + product_name = 'product_name_example' # str | product name # str | product name + action_button_color = 'action_button_color_example' # str | hex value of color for action button (optional) # str | hex value of color for action button (optional) + active_link_color = 'active_link_color_example' # str | hex value of color for link (optional) # str | hex value of color for link (optional) + navigation_color = 'navigation_color_example' # str | hex value of color for navigation bar (optional) # str | hex value of color for navigation bar (optional) + email_from_address = 'email_from_address_example' # str | email from address (optional) # str | email from address (optional) + login_informational_message = 'login_informational_message_example' # str | login information message (optional) # str | login information message (optional) + file_standard = None # bytearray | png file with logo (optional) # bytearray | png file with logo (optional) + try: + # Update a branding item + + results = BrandingApi(api_client).set_branding_item(name=name, name2=name2, product_name=product_name) + # Below is a request that includes all optional parameters + # results = BrandingApi(api_client).set_branding_item(name, name2, product_name, action_button_color, active_link_color, navigation_color, email_from_address, login_informational_message, file_standard) + print("The response of BrandingApi->set_branding_item:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling BrandingApi->set_branding_item: %s\n" % e) - path: /campaign-filters method: POST xCodeSample: @@ -2468,13 +2390,12 @@ from sailpoint.v2024.api.certification_campaign_filters_api import CertificationCampaignFiltersApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.campaign_filter_details import CampaignFilterDetails - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - campaign_filter_details = '''{ + campaign_filter_details = '''{ "owner" : "SailPoint Support", "mode" : "INCLUSION", "isSystemFilter" : false, @@ -2492,16 +2413,16 @@ "suppressMatchedItems" : false } ] }''' # CampaignFilterDetails | - try: - # Create Campaign Filter - new_campaign_filter_details = CampaignFilterDetails.from_json(campaign_filter_details) - results = CertificationCampaignFiltersApi(api_client).create_campaign_filter(campaign_filter_details=new_campaign_filter_details) - # Below is a request that includes all optional parameters - # results = CertificationCampaignFiltersApi(api_client).create_campaign_filter(new_campaign_filter_details) - print("The response of CertificationCampaignFiltersApi->create_campaign_filter:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationCampaignFiltersApi->create_campaign_filter: %s\n" % e) + try: + # Create Campaign Filter + new_campaign_filter_details = CampaignFilterDetails.from_json(campaign_filter_details) + results = CertificationCampaignFiltersApi(api_client).create_campaign_filter(campaign_filter_details=new_campaign_filter_details) + # Below is a request that includes all optional parameters + # results = CertificationCampaignFiltersApi(api_client).create_campaign_filter(new_campaign_filter_details) + print("The response of CertificationCampaignFiltersApi->create_campaign_filter:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationCampaignFiltersApi->create_campaign_filter: %s\n" % e) - path: /campaign-filters/delete method: POST xCodeSample: @@ -2510,21 +2431,20 @@ source: | from sailpoint.v2024.api.certification_campaign_filters_api import CertificationCampaignFiltersApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - request_body = '''['request_body_example']''' # List[str] | A json list of IDs of campaign filters to delete. - try: - # Deletes Campaign Filters - new_request_body = RequestBody.from_json(request_body) - CertificationCampaignFiltersApi(api_client).delete_campaign_filters(request_body=new_request_body) - # Below is a request that includes all optional parameters - # CertificationCampaignFiltersApi(api_client).delete_campaign_filters(new_request_body) - except Exception as e: - print("Exception when calling CertificationCampaignFiltersApi->delete_campaign_filters: %s\n" % e) + request_body = '''['request_body_example']''' # List[str] | A json list of IDs of campaign filters to delete. + try: + # Deletes Campaign Filters + new_request_body = RequestBody.from_json(request_body) + CertificationCampaignFiltersApi(api_client).delete_campaign_filters(request_body=new_request_body) + # Below is a request that includes all optional parameters + # CertificationCampaignFiltersApi(api_client).delete_campaign_filters(new_request_body) + except Exception as e: + print("Exception when calling CertificationCampaignFiltersApi->delete_campaign_filters: %s\n" % e) - path: /campaign-filters/{id} method: GET xCodeSample: @@ -2534,23 +2454,22 @@ from sailpoint.v2024.api.certification_campaign_filters_api import CertificationCampaignFiltersApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.campaign_filter_details import CampaignFilterDetails - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'e9f9a1397b842fd5a65842087040d3ac' # str | The ID of the campaign filter to be retrieved. # str | The ID of the campaign filter to be retrieved. - try: - # Get Campaign Filter by ID - - results = CertificationCampaignFiltersApi(api_client).get_campaign_filter_by_id(id=id) - # Below is a request that includes all optional parameters - # results = CertificationCampaignFiltersApi(api_client).get_campaign_filter_by_id(id) - print("The response of CertificationCampaignFiltersApi->get_campaign_filter_by_id:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationCampaignFiltersApi->get_campaign_filter_by_id: %s\n" % e) + id = 'e9f9a1397b842fd5a65842087040d3ac' # str | The ID of the campaign filter to be retrieved. # str | The ID of the campaign filter to be retrieved. + try: + # Get Campaign Filter by ID + + results = CertificationCampaignFiltersApi(api_client).get_campaign_filter_by_id(id=id) + # Below is a request that includes all optional parameters + # results = CertificationCampaignFiltersApi(api_client).get_campaign_filter_by_id(id) + print("The response of CertificationCampaignFiltersApi->get_campaign_filter_by_id:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationCampaignFiltersApi->get_campaign_filter_by_id: %s\n" % e) - path: /campaign-filters method: GET xCodeSample: @@ -2560,25 +2479,24 @@ from sailpoint.v2024.api.certification_campaign_filters_api import CertificationCampaignFiltersApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.list_campaign_filters200_response import ListCampaignFilters200Response - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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) - start = 0 # int | Start/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 | Start/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) - include_system_filters = True # bool | If this is true, the API includes system filters in the count and results. Otherwise it excludes them. If no value is provided, the default is true. (optional) (default to True) # bool | If this is true, the API includes system filters in the count and results. Otherwise it excludes them. If no value is provided, the default is true. (optional) (default to True) - try: - # List Campaign Filters - - results = CertificationCampaignFiltersApi(api_client).list_campaign_filters() - # Below is a request that includes all optional parameters - # results = CertificationCampaignFiltersApi(api_client).list_campaign_filters(limit, start, include_system_filters) - print("The response of CertificationCampaignFiltersApi->list_campaign_filters:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationCampaignFiltersApi->list_campaign_filters: %s\n" % e) + 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) + start = 0 # int | Start/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 | Start/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) + include_system_filters = True # bool | If this is true, the API includes system filters in the count and results. Otherwise it excludes them. If no value is provided, the default is true. (optional) (default to True) # bool | If this is true, the API includes system filters in the count and results. Otherwise it excludes them. If no value is provided, the default is true. (optional) (default to True) + try: + # List Campaign Filters + + results = CertificationCampaignFiltersApi(api_client).list_campaign_filters() + # Below is a request that includes all optional parameters + # results = CertificationCampaignFiltersApi(api_client).list_campaign_filters(limit, start, include_system_filters) + print("The response of CertificationCampaignFiltersApi->list_campaign_filters:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationCampaignFiltersApi->list_campaign_filters: %s\n" % e) - path: /campaign-filters/{id} method: POST xCodeSample: @@ -2588,14 +2506,13 @@ from sailpoint.v2024.api.certification_campaign_filters_api import CertificationCampaignFiltersApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.campaign_filter_details import CampaignFilterDetails - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - filter_id = 'e9f9a1397b842fd5a65842087040d3ac' # str | The ID of the campaign filter being modified. # str | The ID of the campaign filter being modified. - campaign_filter_details = '''{ + filter_id = 'e9f9a1397b842fd5a65842087040d3ac' # str | The ID of the campaign filter being modified. # str | The ID of the campaign filter being modified. + campaign_filter_details = '''{ "owner" : "SailPoint Support", "mode" : "INCLUSION", "isSystemFilter" : false, @@ -2613,16 +2530,16 @@ "suppressMatchedItems" : false } ] }''' # CampaignFilterDetails | A campaign filter details with updated field values. - try: - # Updates a Campaign Filter - new_campaign_filter_details = CampaignFilterDetails.from_json(campaign_filter_details) - results = CertificationCampaignFiltersApi(api_client).update_campaign_filter(filter_id=filter_id, campaign_filter_details=new_campaign_filter_details) - # Below is a request that includes all optional parameters - # results = CertificationCampaignFiltersApi(api_client).update_campaign_filter(filter_id, new_campaign_filter_details) - print("The response of CertificationCampaignFiltersApi->update_campaign_filter:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationCampaignFiltersApi->update_campaign_filter: %s\n" % e) + try: + # Updates a Campaign Filter + new_campaign_filter_details = CampaignFilterDetails.from_json(campaign_filter_details) + results = CertificationCampaignFiltersApi(api_client).update_campaign_filter(filter_id=filter_id, campaign_filter_details=new_campaign_filter_details) + # Below is a request that includes all optional parameters + # results = CertificationCampaignFiltersApi(api_client).update_campaign_filter(filter_id, new_campaign_filter_details) + print("The response of CertificationCampaignFiltersApi->update_campaign_filter:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationCampaignFiltersApi->update_campaign_filter: %s\n" % e) - path: /campaigns/{id}/complete method: POST xCodeSample: @@ -2632,26 +2549,25 @@ from sailpoint.v2024.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.campaign_complete_options import CampaignCompleteOptions - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | Campaign ID. # str | Campaign ID. - campaign_complete_options = '''{ + id = 'ef38f94347e94562b5bb8424a56397d8' # str | Campaign ID. # str | Campaign ID. + campaign_complete_options = '''{ "autoCompleteAction" : "REVOKE" }''' # CampaignCompleteOptions | Optional. Default behavior is for the campaign to auto-approve upon completion, unless autoCompleteAction=REVOKE (optional) - try: - # Complete a Campaign - - results = CertificationCampaignsApi(api_client).complete_campaign(id=id) - # Below is a request that includes all optional parameters - # results = CertificationCampaignsApi(api_client).complete_campaign(id, new_campaign_complete_options) - print("The response of CertificationCampaignsApi->complete_campaign:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationCampaignsApi->complete_campaign: %s\n" % e) + try: + # Complete a Campaign + + results = CertificationCampaignsApi(api_client).complete_campaign(id=id) + # Below is a request that includes all optional parameters + # results = CertificationCampaignsApi(api_client).complete_campaign(id, new_campaign_complete_options) + print("The response of CertificationCampaignsApi->complete_campaign:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationCampaignsApi->complete_campaign: %s\n" % e) - path: /campaigns method: POST xCodeSample: @@ -2661,13 +2577,12 @@ from sailpoint.v2024.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.campaign import Campaign - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - campaign = '''{ + campaign = '''{ "totalCertifications" : 100, "sourcesWithOrphanEntitlements" : [ { "name" : "Source with orphan entitlements", @@ -2777,16 +2692,16 @@ "status" : "ACTIVE", "correlatedStatus" : "CORRELATED" }''' # Campaign | - try: - # Create a campaign - new_campaign = Campaign.from_json(campaign) - results = CertificationCampaignsApi(api_client).create_campaign(campaign=new_campaign) - # Below is a request that includes all optional parameters - # results = CertificationCampaignsApi(api_client).create_campaign(new_campaign) - print("The response of CertificationCampaignsApi->create_campaign:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationCampaignsApi->create_campaign: %s\n" % e) + try: + # Create a campaign + new_campaign = Campaign.from_json(campaign) + results = CertificationCampaignsApi(api_client).create_campaign(campaign=new_campaign) + # Below is a request that includes all optional parameters + # results = CertificationCampaignsApi(api_client).create_campaign(new_campaign) + print("The response of CertificationCampaignsApi->create_campaign:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationCampaignsApi->create_campaign: %s\n" % e) - path: /campaign-templates method: POST xCodeSample: @@ -2796,13 +2711,12 @@ from sailpoint.v2024.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.campaign_template import CampaignTemplate - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - campaign_template = '''{ + campaign_template = '''{ "ownerRef" : { "name" : "Mister Manager", "id" : "2c918086676d3e0601677611dbde220f", @@ -2927,16 +2841,16 @@ }, "id" : "2c9079b270a266a60170a277bb960008" }''' # CampaignTemplate | - try: - # Create a Campaign Template - new_campaign_template = CampaignTemplate.from_json(campaign_template) - results = CertificationCampaignsApi(api_client).create_campaign_template(campaign_template=new_campaign_template) - # Below is a request that includes all optional parameters - # results = CertificationCampaignsApi(api_client).create_campaign_template(new_campaign_template) - print("The response of CertificationCampaignsApi->create_campaign_template:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationCampaignsApi->create_campaign_template: %s\n" % e) + try: + # Create a Campaign Template + new_campaign_template = CampaignTemplate.from_json(campaign_template) + results = CertificationCampaignsApi(api_client).create_campaign_template(campaign_template=new_campaign_template) + # Below is a request that includes all optional parameters + # results = CertificationCampaignsApi(api_client).create_campaign_template(new_campaign_template) + print("The response of CertificationCampaignsApi->create_campaign_template:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationCampaignsApi->create_campaign_template: %s\n" % e) - path: /campaign-templates/{id} method: DELETE xCodeSample: @@ -2945,21 +2859,20 @@ source: | from sailpoint.v2024.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c9180835d191a86015d28455b4a2329' # str | ID of the campaign template being deleted. # str | ID of the campaign template being deleted. - try: - # Delete a Campaign Template - - CertificationCampaignsApi(api_client).delete_campaign_template(id=id) - # Below is a request that includes all optional parameters - # CertificationCampaignsApi(api_client).delete_campaign_template(id) - except Exception as e: - print("Exception when calling CertificationCampaignsApi->delete_campaign_template: %s\n" % e) + id = '2c9180835d191a86015d28455b4a2329' # str | ID of the campaign template being deleted. # str | ID of the campaign template being deleted. + try: + # Delete a Campaign Template + + CertificationCampaignsApi(api_client).delete_campaign_template(id=id) + # Below is a request that includes all optional parameters + # CertificationCampaignsApi(api_client).delete_campaign_template(id) + except Exception as e: + print("Exception when calling CertificationCampaignsApi->delete_campaign_template: %s\n" % e) - path: /campaign-templates/{id}/schedule method: DELETE xCodeSample: @@ -2968,21 +2881,20 @@ source: | from sailpoint.v2024.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '04bedce387bd47b2ae1f86eb0bb36dee' # str | ID of the campaign template whose schedule is being deleted. # str | ID of the campaign template whose schedule is being deleted. - try: - # Delete Campaign Template Schedule - - CertificationCampaignsApi(api_client).delete_campaign_template_schedule(id=id) - # Below is a request that includes all optional parameters - # CertificationCampaignsApi(api_client).delete_campaign_template_schedule(id) - except Exception as e: - print("Exception when calling CertificationCampaignsApi->delete_campaign_template_schedule: %s\n" % e) + id = '04bedce387bd47b2ae1f86eb0bb36dee' # str | ID of the campaign template whose schedule is being deleted. # str | ID of the campaign template whose schedule is being deleted. + try: + # Delete Campaign Template Schedule + + CertificationCampaignsApi(api_client).delete_campaign_template_schedule(id=id) + # Below is a request that includes all optional parameters + # CertificationCampaignsApi(api_client).delete_campaign_template_schedule(id) + except Exception as e: + print("Exception when calling CertificationCampaignsApi->delete_campaign_template_schedule: %s\n" % e) - path: /campaigns/delete method: POST xCodeSample: @@ -2992,25 +2904,24 @@ from sailpoint.v2024.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.campaigns_delete_request import CampaignsDeleteRequest - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - campaigns_delete_request = '''{ + campaigns_delete_request = '''{ "ids" : [ "2c9180887335cee10173490db1776c26", "2c9180836a712436016a7125a90c0021" ] }''' # CampaignsDeleteRequest | IDs of the campaigns to delete. - try: - # Delete Campaigns - new_campaigns_delete_request = CampaignsDeleteRequest.from_json(campaigns_delete_request) - results = CertificationCampaignsApi(api_client).delete_campaigns(campaigns_delete_request=new_campaigns_delete_request) - # Below is a request that includes all optional parameters - # results = CertificationCampaignsApi(api_client).delete_campaigns(new_campaigns_delete_request) - print("The response of CertificationCampaignsApi->delete_campaigns:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationCampaignsApi->delete_campaigns: %s\n" % e) + try: + # Delete Campaigns + new_campaigns_delete_request = CampaignsDeleteRequest.from_json(campaigns_delete_request) + results = CertificationCampaignsApi(api_client).delete_campaigns(campaigns_delete_request=new_campaigns_delete_request) + # Below is a request that includes all optional parameters + # results = CertificationCampaignsApi(api_client).delete_campaigns(new_campaigns_delete_request) + print("The response of CertificationCampaignsApi->delete_campaigns:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationCampaignsApi->delete_campaigns: %s\n" % e) - path: /campaigns method: GET xCodeSample: @@ -3020,28 +2931,27 @@ from sailpoint.v2024.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.get_active_campaigns200_response_inner import GetActiveCampaigns200ResponseInner - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - detail = 'FULL' # str | Determines whether slim, or increased level of detail is provided for each campaign in the returned list. Slim is the default behavior. (optional) # str | Determines whether slim, or increased level of detail is provided for each campaign in the returned list. Slim is the default behavior. (optional) - 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 \"Manager Campaign\"' # 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, sw* **status**: *eq, in* (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, sw* **status**: *eq, in* (optional) - sorters = 'name' # 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: **name, created** (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: **name, created** (optional) - try: - # List Campaigns - - results = CertificationCampaignsApi(api_client).get_active_campaigns() - # Below is a request that includes all optional parameters - # results = CertificationCampaignsApi(api_client).get_active_campaigns(detail, limit, offset, count, filters, sorters) - print("The response of CertificationCampaignsApi->get_active_campaigns:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationCampaignsApi->get_active_campaigns: %s\n" % e) + detail = 'FULL' # str | Determines whether slim, or increased level of detail is provided for each campaign in the returned list. Slim is the default behavior. (optional) # str | Determines whether slim, or increased level of detail is provided for each campaign in the returned list. Slim is the default behavior. (optional) + 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 \"Manager Campaign\"' # 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, sw* **status**: *eq, in* (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, sw* **status**: *eq, in* (optional) + sorters = 'name' # 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: **name, created** (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: **name, created** (optional) + try: + # List Campaigns + + results = CertificationCampaignsApi(api_client).get_active_campaigns() + # Below is a request that includes all optional parameters + # results = CertificationCampaignsApi(api_client).get_active_campaigns(detail, limit, offset, count, filters, sorters) + print("The response of CertificationCampaignsApi->get_active_campaigns:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationCampaignsApi->get_active_campaigns: %s\n" % e) - path: /campaigns/{id} method: GET xCodeSample: @@ -3051,24 +2961,23 @@ from sailpoint.v2024.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.get_active_campaigns200_response_inner import GetActiveCampaigns200ResponseInner - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808571bcfcf80171c23e4b4221fc' # str | ID of the campaign to be retrieved. # str | ID of the campaign to be retrieved. - detail = 'FULL' # str | Determines whether slim, or increased level of detail is provided for each campaign in the returned list. Slim is the default behavior. (optional) # str | Determines whether slim, or increased level of detail is provided for each campaign in the returned list. Slim is the default behavior. (optional) - try: - # Get Campaign - - results = CertificationCampaignsApi(api_client).get_campaign(id=id) - # Below is a request that includes all optional parameters - # results = CertificationCampaignsApi(api_client).get_campaign(id, detail) - print("The response of CertificationCampaignsApi->get_campaign:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationCampaignsApi->get_campaign: %s\n" % e) + id = '2c91808571bcfcf80171c23e4b4221fc' # str | ID of the campaign to be retrieved. # str | ID of the campaign to be retrieved. + detail = 'FULL' # str | Determines whether slim, or increased level of detail is provided for each campaign in the returned list. Slim is the default behavior. (optional) # str | Determines whether slim, or increased level of detail is provided for each campaign in the returned list. Slim is the default behavior. (optional) + try: + # Get Campaign + + results = CertificationCampaignsApi(api_client).get_campaign(id=id) + # Below is a request that includes all optional parameters + # results = CertificationCampaignsApi(api_client).get_campaign(id, detail) + print("The response of CertificationCampaignsApi->get_campaign:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationCampaignsApi->get_campaign: %s\n" % e) - path: /campaigns/{id}/reports method: GET xCodeSample: @@ -3078,23 +2987,22 @@ from sailpoint.v2024.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.campaign_report import CampaignReport - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808571bcfcf80171c23e4b4221fc' # str | ID of the campaign whose reports are being fetched. # str | ID of the campaign whose reports are being fetched. - try: - # Get Campaign Reports - - results = CertificationCampaignsApi(api_client).get_campaign_reports(id=id) - # Below is a request that includes all optional parameters - # results = CertificationCampaignsApi(api_client).get_campaign_reports(id) - print("The response of CertificationCampaignsApi->get_campaign_reports:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationCampaignsApi->get_campaign_reports: %s\n" % e) + id = '2c91808571bcfcf80171c23e4b4221fc' # str | ID of the campaign whose reports are being fetched. # str | ID of the campaign whose reports are being fetched. + try: + # Get Campaign Reports + + results = CertificationCampaignsApi(api_client).get_campaign_reports(id=id) + # Below is a request that includes all optional parameters + # results = CertificationCampaignsApi(api_client).get_campaign_reports(id) + print("The response of CertificationCampaignsApi->get_campaign_reports:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationCampaignsApi->get_campaign_reports: %s\n" % e) - path: /campaigns/reports-configuration method: GET xCodeSample: @@ -3104,22 +3012,21 @@ from sailpoint.v2024.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.campaign_reports_config import CampaignReportsConfig - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - try: - # Get Campaign Reports Configuration - - results = CertificationCampaignsApi(api_client).get_campaign_reports_config() - # Below is a request that includes all optional parameters - # results = CertificationCampaignsApi(api_client).get_campaign_reports_config() - print("The response of CertificationCampaignsApi->get_campaign_reports_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationCampaignsApi->get_campaign_reports_config: %s\n" % e) + try: + # Get Campaign Reports Configuration + + results = CertificationCampaignsApi(api_client).get_campaign_reports_config() + # Below is a request that includes all optional parameters + # results = CertificationCampaignsApi(api_client).get_campaign_reports_config() + print("The response of CertificationCampaignsApi->get_campaign_reports_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationCampaignsApi->get_campaign_reports_config: %s\n" % e) - path: /campaign-templates/{id} method: GET xCodeSample: @@ -3129,23 +3036,22 @@ from sailpoint.v2024.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.campaign_template import CampaignTemplate - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c9180835d191a86015d28455b4a2329' # str | Requested campaign template's ID. # str | Requested campaign template's ID. - try: - # Get a Campaign Template - - results = CertificationCampaignsApi(api_client).get_campaign_template(id=id) - # Below is a request that includes all optional parameters - # results = CertificationCampaignsApi(api_client).get_campaign_template(id) - print("The response of CertificationCampaignsApi->get_campaign_template:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationCampaignsApi->get_campaign_template: %s\n" % e) + id = '2c9180835d191a86015d28455b4a2329' # str | Requested campaign template's ID. # str | Requested campaign template's ID. + try: + # Get a Campaign Template + + results = CertificationCampaignsApi(api_client).get_campaign_template(id=id) + # Below is a request that includes all optional parameters + # results = CertificationCampaignsApi(api_client).get_campaign_template(id) + print("The response of CertificationCampaignsApi->get_campaign_template:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationCampaignsApi->get_campaign_template: %s\n" % e) - path: /campaign-templates/{id}/schedule method: GET xCodeSample: @@ -3155,23 +3061,22 @@ from sailpoint.v2024.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.schedule import Schedule - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '04bedce387bd47b2ae1f86eb0bb36dee' # str | ID of the campaign template whose schedule is being fetched. # str | ID of the campaign template whose schedule is being fetched. - try: - # Get Campaign Template Schedule - - results = CertificationCampaignsApi(api_client).get_campaign_template_schedule(id=id) - # Below is a request that includes all optional parameters - # results = CertificationCampaignsApi(api_client).get_campaign_template_schedule(id) - print("The response of CertificationCampaignsApi->get_campaign_template_schedule:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationCampaignsApi->get_campaign_template_schedule: %s\n" % e) + id = '04bedce387bd47b2ae1f86eb0bb36dee' # str | ID of the campaign template whose schedule is being fetched. # str | ID of the campaign template whose schedule is being fetched. + try: + # Get Campaign Template Schedule + + results = CertificationCampaignsApi(api_client).get_campaign_template_schedule(id=id) + # Below is a request that includes all optional parameters + # results = CertificationCampaignsApi(api_client).get_campaign_template_schedule(id) + print("The response of CertificationCampaignsApi->get_campaign_template_schedule:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationCampaignsApi->get_campaign_template_schedule: %s\n" % e) - path: /campaign-templates method: GET xCodeSample: @@ -3181,27 +3086,26 @@ from sailpoint.v2024.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.campaign_template import CampaignTemplate - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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) - sorters = 'name' # 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: **name, created, modified** (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: **name, created, modified** (optional) - filters = 'name eq \"manager template\"' # 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: **name**: *eq, ge, gt, in, le, lt, ne, sw* **id**: *eq, ge, gt, in, le, lt, ne, 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: **name**: *eq, ge, gt, in, le, lt, ne, sw* **id**: *eq, ge, gt, in, le, lt, ne, sw* (optional) - try: - # List Campaign Templates - - results = CertificationCampaignsApi(api_client).get_campaign_templates() - # Below is a request that includes all optional parameters - # results = CertificationCampaignsApi(api_client).get_campaign_templates(limit, offset, count, sorters, filters) - print("The response of CertificationCampaignsApi->get_campaign_templates:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationCampaignsApi->get_campaign_templates: %s\n" % e) + 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) + sorters = 'name' # 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: **name, created, modified** (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: **name, created, modified** (optional) + filters = 'name eq \"manager template\"' # 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: **name**: *eq, ge, gt, in, le, lt, ne, sw* **id**: *eq, ge, gt, in, le, lt, ne, 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: **name**: *eq, ge, gt, in, le, lt, ne, sw* **id**: *eq, ge, gt, in, le, lt, ne, sw* (optional) + try: + # List Campaign Templates + + results = CertificationCampaignsApi(api_client).get_campaign_templates() + # Below is a request that includes all optional parameters + # results = CertificationCampaignsApi(api_client).get_campaign_templates(limit, offset, count, sorters, filters) + print("The response of CertificationCampaignsApi->get_campaign_templates:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationCampaignsApi->get_campaign_templates: %s\n" % e) - path: /campaigns/{id}/reassign method: POST xCodeSample: @@ -3212,14 +3116,13 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.admin_review_reassign import AdminReviewReassign from sailpoint.v2024.models.certification_task import CertificationTask - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The certification campaign ID # str | The certification campaign ID - admin_review_reassign = '''{ + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The certification campaign ID # str | The certification campaign ID + admin_review_reassign = '''{ "certificationIds" : [ "af3859464779471211bb8424a563abc1", "af3859464779471211bb8424a563abc2", "af3859464779471211bb8424a563abc3" ], "reason" : "reassigned for some reason", "reassignTo" : { @@ -3227,16 +3130,16 @@ "type" : "IDENTITY" } }''' # AdminReviewReassign | - try: - # Reassign Certifications - new_admin_review_reassign = AdminReviewReassign.from_json(admin_review_reassign) - results = CertificationCampaignsApi(api_client).move(id=id, admin_review_reassign=new_admin_review_reassign) - # Below is a request that includes all optional parameters - # results = CertificationCampaignsApi(api_client).move(id, new_admin_review_reassign) - print("The response of CertificationCampaignsApi->move:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationCampaignsApi->move: %s\n" % e) + try: + # Reassign Certifications + new_admin_review_reassign = AdminReviewReassign.from_json(admin_review_reassign) + results = CertificationCampaignsApi(api_client).move(id=id, admin_review_reassign=new_admin_review_reassign) + # Below is a request that includes all optional parameters + # results = CertificationCampaignsApi(api_client).move(id, new_admin_review_reassign) + print("The response of CertificationCampaignsApi->move:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationCampaignsApi->move: %s\n" % e) - path: /campaign-templates/{id} method: PATCH xCodeSample: @@ -3247,24 +3150,23 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.campaign_template import CampaignTemplate from sailpoint.v2024.models.json_patch_operation import JsonPatchOperation - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c9180835d191a86015d28455b4a2329' # str | ID of the campaign template being modified. # str | ID of the campaign template being modified. - json_patch_operation = '''[{op=replace, path=/description, value=Updated description!}, {op=replace, path=/campaign/filter/id, value=ff80818155fe8c080155fe8d925b0316}]''' # List[JsonPatchOperation] | A list of campaign update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * description * deadlineDuration * campaign (all fields that are allowed during create) - try: - # Update a Campaign Template - new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) - results = CertificationCampaignsApi(api_client).patch_campaign_template(id=id, json_patch_operation=new_json_patch_operation) - # Below is a request that includes all optional parameters - # results = CertificationCampaignsApi(api_client).patch_campaign_template(id, new_json_patch_operation) - print("The response of CertificationCampaignsApi->patch_campaign_template:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationCampaignsApi->patch_campaign_template: %s\n" % e) + id = '2c9180835d191a86015d28455b4a2329' # str | ID of the campaign template being modified. # str | ID of the campaign template being modified. + json_patch_operation = '''[{op=replace, path=/description, value=Updated description!}, {op=replace, path=/campaign/filter/id, value=ff80818155fe8c080155fe8d925b0316}]''' # List[JsonPatchOperation] | A list of campaign update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * description * deadlineDuration * campaign (all fields that are allowed during create) + try: + # Update a Campaign Template + new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) + results = CertificationCampaignsApi(api_client).patch_campaign_template(id=id, json_patch_operation=new_json_patch_operation) + # Below is a request that includes all optional parameters + # results = CertificationCampaignsApi(api_client).patch_campaign_template(id, new_json_patch_operation) + print("The response of CertificationCampaignsApi->patch_campaign_template:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationCampaignsApi->patch_campaign_template: %s\n" % e) - path: /campaigns/reports-configuration method: PUT xCodeSample: @@ -3274,25 +3176,24 @@ from sailpoint.v2024.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.campaign_reports_config import CampaignReportsConfig - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - campaign_reports_config = '''{ + campaign_reports_config = '''{ "identityAttributeColumns" : [ "firstname", "lastname" ] }''' # CampaignReportsConfig | Campaign report configuration. - try: - # Set Campaign Reports Configuration - new_campaign_reports_config = CampaignReportsConfig.from_json(campaign_reports_config) - results = CertificationCampaignsApi(api_client).set_campaign_reports_config(campaign_reports_config=new_campaign_reports_config) - # Below is a request that includes all optional parameters - # results = CertificationCampaignsApi(api_client).set_campaign_reports_config(new_campaign_reports_config) - print("The response of CertificationCampaignsApi->set_campaign_reports_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationCampaignsApi->set_campaign_reports_config: %s\n" % e) + try: + # Set Campaign Reports Configuration + new_campaign_reports_config = CampaignReportsConfig.from_json(campaign_reports_config) + results = CertificationCampaignsApi(api_client).set_campaign_reports_config(campaign_reports_config=new_campaign_reports_config) + # Below is a request that includes all optional parameters + # results = CertificationCampaignsApi(api_client).set_campaign_reports_config(new_campaign_reports_config) + print("The response of CertificationCampaignsApi->set_campaign_reports_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationCampaignsApi->set_campaign_reports_config: %s\n" % e) - path: /campaign-templates/{id}/schedule method: PUT xCodeSample: @@ -3302,14 +3203,13 @@ from sailpoint.v2024.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.schedule import Schedule - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '04bedce387bd47b2ae1f86eb0bb36dee' # str | ID of the campaign template being scheduled. # str | ID of the campaign template being scheduled. - schedule = '''{ + id = '04bedce387bd47b2ae1f86eb0bb36dee' # str | ID of the campaign template being scheduled. # str | ID of the campaign template being scheduled. + schedule = '''{ "hours" : { "values" : [ "1" ], "interval" : 2, @@ -3329,14 +3229,14 @@ "expiration" : "2000-01-23T04:56:07.000+00:00", "type" : "WEEKLY" }''' # Schedule | (optional) - try: - # Set Campaign Template Schedule - - CertificationCampaignsApi(api_client).set_campaign_template_schedule(id=id) - # Below is a request that includes all optional parameters - # CertificationCampaignsApi(api_client).set_campaign_template_schedule(id, new_schedule) - except Exception as e: - print("Exception when calling CertificationCampaignsApi->set_campaign_template_schedule: %s\n" % e) + try: + # Set Campaign Template Schedule + + CertificationCampaignsApi(api_client).set_campaign_template_schedule(id=id) + # Below is a request that includes all optional parameters + # CertificationCampaignsApi(api_client).set_campaign_template_schedule(id, new_schedule) + except Exception as e: + print("Exception when calling CertificationCampaignsApi->set_campaign_template_schedule: %s\n" % e) - path: /campaigns/{id}/activate method: POST xCodeSample: @@ -3346,26 +3246,25 @@ from sailpoint.v2024.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.activate_campaign_options import ActivateCampaignOptions - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | Campaign ID. # str | Campaign ID. - activate_campaign_options = '''{ + id = 'ef38f94347e94562b5bb8424a56397d8' # str | Campaign ID. # str | Campaign ID. + activate_campaign_options = '''{ "timeZone" : "-05:00" }''' # ActivateCampaignOptions | Optional. If no timezone is specified, the standard UTC timezone is used (i.e. UTC+00:00). Although this can take any timezone, the intended value is the caller's timezone. The activation time calculated from the given timezone may cause the campaign deadline time to be modified, but it will remain within the original date. The timezone must be in a valid ISO 8601 format. (optional) - try: - # Activate a Campaign - - results = CertificationCampaignsApi(api_client).start_campaign(id=id) - # Below is a request that includes all optional parameters - # results = CertificationCampaignsApi(api_client).start_campaign(id, new_activate_campaign_options) - print("The response of CertificationCampaignsApi->start_campaign:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationCampaignsApi->start_campaign: %s\n" % e) + try: + # Activate a Campaign + + results = CertificationCampaignsApi(api_client).start_campaign(id=id) + # Below is a request that includes all optional parameters + # results = CertificationCampaignsApi(api_client).start_campaign(id, new_activate_campaign_options) + print("The response of CertificationCampaignsApi->start_campaign:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationCampaignsApi->start_campaign: %s\n" % e) - path: /campaigns/{id}/run-remediation-scan method: POST xCodeSample: @@ -3374,23 +3273,22 @@ source: | from sailpoint.v2024.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808571bcfcf80171c23e4b4221fc' # str | ID of the campaign the remediation scan is being run for. # str | ID of the campaign the remediation scan is being run for. - try: - # Run Campaign Remediation Scan - - results = CertificationCampaignsApi(api_client).start_campaign_remediation_scan(id=id) - # Below is a request that includes all optional parameters - # results = CertificationCampaignsApi(api_client).start_campaign_remediation_scan(id) - print("The response of CertificationCampaignsApi->start_campaign_remediation_scan:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationCampaignsApi->start_campaign_remediation_scan: %s\n" % e) + id = '2c91808571bcfcf80171c23e4b4221fc' # str | ID of the campaign the remediation scan is being run for. # str | ID of the campaign the remediation scan is being run for. + try: + # Run Campaign Remediation Scan + + results = CertificationCampaignsApi(api_client).start_campaign_remediation_scan(id=id) + # Below is a request that includes all optional parameters + # results = CertificationCampaignsApi(api_client).start_campaign_remediation_scan(id) + print("The response of CertificationCampaignsApi->start_campaign_remediation_scan:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationCampaignsApi->start_campaign_remediation_scan: %s\n" % e) - path: /campaigns/{id}/run-report/{type} method: POST xCodeSample: @@ -3400,24 +3298,23 @@ from sailpoint.v2024.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.report_type import ReportType - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808571bcfcf80171c23e4b4221fc' # str | ID of the campaign the report is being run for. # str | ID of the campaign the report is being run for. - type = sailpoint.v2024.ReportType() # ReportType | Type of the report to run. # ReportType | Type of the report to run. - try: - # Run Campaign Report - - results = CertificationCampaignsApi(api_client).start_campaign_report(id=id, type=type) - # Below is a request that includes all optional parameters - # results = CertificationCampaignsApi(api_client).start_campaign_report(id, type) - print("The response of CertificationCampaignsApi->start_campaign_report:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationCampaignsApi->start_campaign_report: %s\n" % e) + id = '2c91808571bcfcf80171c23e4b4221fc' # str | ID of the campaign the report is being run for. # str | ID of the campaign the report is being run for. + type = sailpoint.v2024.ReportType() # ReportType | Type of the report to run. # ReportType | Type of the report to run. + try: + # Run Campaign Report + + results = CertificationCampaignsApi(api_client).start_campaign_report(id=id, type=type) + # Below is a request that includes all optional parameters + # results = CertificationCampaignsApi(api_client).start_campaign_report(id, type) + print("The response of CertificationCampaignsApi->start_campaign_report:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationCampaignsApi->start_campaign_report: %s\n" % e) - path: /campaign-templates/{id}/generate method: POST xCodeSample: @@ -3427,23 +3324,22 @@ from sailpoint.v2024.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.campaign_reference import CampaignReference - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c9180835d191a86015d28455b4a2329' # str | ID of the campaign template to use for generation. # str | ID of the campaign template to use for generation. - try: - # Generate a Campaign from Template - - results = CertificationCampaignsApi(api_client).start_generate_campaign_template(id=id) - # Below is a request that includes all optional parameters - # results = CertificationCampaignsApi(api_client).start_generate_campaign_template(id) - print("The response of CertificationCampaignsApi->start_generate_campaign_template:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationCampaignsApi->start_generate_campaign_template: %s\n" % e) + id = '2c9180835d191a86015d28455b4a2329' # str | ID of the campaign template to use for generation. # str | ID of the campaign template to use for generation. + try: + # Generate a Campaign from Template + + results = CertificationCampaignsApi(api_client).start_generate_campaign_template(id=id) + # Below is a request that includes all optional parameters + # results = CertificationCampaignsApi(api_client).start_generate_campaign_template(id) + print("The response of CertificationCampaignsApi->start_generate_campaign_template:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationCampaignsApi->start_generate_campaign_template: %s\n" % e) - path: /campaigns/{id} method: PATCH xCodeSample: @@ -3454,24 +3350,23 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.json_patch_operation import JsonPatchOperation from sailpoint.v2024.models.slim_campaign import SlimCampaign - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808571bcfcf80171c23e4b4221fc' # str | ID of the campaign template being modified. # str | ID of the campaign template being modified. - json_patch_operation = '''[{op=replace, path=/name, value=This field has been updated!}, {op=copy, from=/name, path=/description}]''' # List[JsonPatchOperation] | A list of campaign update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The fields that can be patched differ based on the status of the campaign. When the campaign is in the *STAGED* status, you can patch these fields: * name * description * recommendationsEnabled * deadline * emailNotificationEnabled * autoRevokeAllowed When the campaign is in the *ACTIVE* status, you can patch these fields: * deadline - try: - # Update a Campaign - new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) - results = CertificationCampaignsApi(api_client).update_campaign(id=id, json_patch_operation=new_json_patch_operation) - # Below is a request that includes all optional parameters - # results = CertificationCampaignsApi(api_client).update_campaign(id, new_json_patch_operation) - print("The response of CertificationCampaignsApi->update_campaign:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationCampaignsApi->update_campaign: %s\n" % e) + id = '2c91808571bcfcf80171c23e4b4221fc' # str | ID of the campaign template being modified. # str | ID of the campaign template being modified. + json_patch_operation = '''[{op=replace, path=/name, value=This field has been updated!}, {op=copy, from=/name, path=/description}]''' # List[JsonPatchOperation] | A list of campaign update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The fields that can be patched differ based on the status of the campaign. When the campaign is in the *STAGED* status, you can patch these fields: * name * description * recommendationsEnabled * deadline * emailNotificationEnabled * autoRevokeAllowed When the campaign is in the *ACTIVE* status, you can patch these fields: * deadline + try: + # Update a Campaign + new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) + results = CertificationCampaignsApi(api_client).update_campaign(id=id, json_patch_operation=new_json_patch_operation) + # Below is a request that includes all optional parameters + # results = CertificationCampaignsApi(api_client).update_campaign(id, new_json_patch_operation) + print("The response of CertificationCampaignsApi->update_campaign:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationCampaignsApi->update_campaign: %s\n" % e) - path: /certification-tasks/{id} method: GET xCodeSample: @@ -3481,23 +3376,22 @@ from sailpoint.v2024.api.certifications_api import CertificationsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.certification_task import CertificationTask - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '63b32151-26c0-42f4-9299-8898dc1c9daa' # str | The task ID # str | The task ID - try: - # Certification Task by ID - - results = CertificationsApi(api_client).get_certification_task(id=id) - # Below is a request that includes all optional parameters - # results = CertificationsApi(api_client).get_certification_task(id) - print("The response of CertificationsApi->get_certification_task:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationsApi->get_certification_task: %s\n" % e) + id = '63b32151-26c0-42f4-9299-8898dc1c9daa' # str | The task ID # str | The task ID + try: + # Certification Task by ID + + results = CertificationsApi(api_client).get_certification_task(id=id) + # Below is a request that includes all optional parameters + # results = CertificationsApi(api_client).get_certification_task(id) + print("The response of CertificationsApi->get_certification_task:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationsApi->get_certification_task: %s\n" % e) - path: /certifications/{id} method: GET xCodeSample: @@ -3507,23 +3401,22 @@ from sailpoint.v2024.api.certifications_api import CertificationsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.identity_certification_dto import IdentityCertificationDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The certification id # str | The certification id - try: - # Identity Certification by ID - - results = CertificationsApi(api_client).get_identity_certification(id=id) - # Below is a request that includes all optional parameters - # results = CertificationsApi(api_client).get_identity_certification(id) - print("The response of CertificationsApi->get_identity_certification:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationsApi->get_identity_certification: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The certification id # str | The certification id + try: + # Identity Certification by ID + + results = CertificationsApi(api_client).get_identity_certification(id=id) + # Below is a request that includes all optional parameters + # results = CertificationsApi(api_client).get_identity_certification(id) + print("The response of CertificationsApi->get_identity_certification:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationsApi->get_identity_certification: %s\n" % e) - path: /certifications/{certificationId}/access-review-items/{itemId}/permissions method: GET xCodeSample: @@ -3533,28 +3426,27 @@ from sailpoint.v2024.api.certifications_api import CertificationsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.permission_dto import PermissionDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - certification_id = 'ef38f94347e94562b5bb8424a56397d8' # str | The certification ID # str | The certification ID - item_id = '2c91808671bcbab40171bd945d961227' # str | The certification item ID # str | The certification item ID - filters = 'target eq \"SYS.OBJAUTH2\"' # 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: **target**: *eq, sw* **rights**: *ca* Supported composite operators: *and, or* All field values (second filter operands) are case-insensitive for this API. Only a single *and* or *or* composite filter operator may be used. It must also be used between a target filter and a rights filter, not between 2 filters for the same field. For example, the following is valid: `?filters=rights+ca+(%22CREATE%22)+and+target+eq+%22SYS.OBJAUTH2%22` The following is invalid: 1?filters=rights+ca+(%22CREATE%22)+and+rights+ca+(%SELECT%22)1 (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: **target**: *eq, sw* **rights**: *ca* Supported composite operators: *and, or* All field values (second filter operands) are case-insensitive for this API. Only a single *and* or *or* composite filter operator may be used. It must also be used between a target filter and a rights filter, not between 2 filters for the same field. For example, the following is valid: `?filters=rights+ca+(%22CREATE%22)+and+target+eq+%22SYS.OBJAUTH2%22` The following is invalid: 1?filters=rights+ca+(%22CREATE%22)+and+rights+ca+(%SELECT%22)1 (optional) - 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) - try: - # Permissions for Entitlement Certification Item - - results = CertificationsApi(api_client).get_identity_certification_item_permissions(certification_id=certification_id, item_id=item_id) - # Below is a request that includes all optional parameters - # results = CertificationsApi(api_client).get_identity_certification_item_permissions(certification_id, item_id, filters, limit, offset, count) - print("The response of CertificationsApi->get_identity_certification_item_permissions:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationsApi->get_identity_certification_item_permissions: %s\n" % e) + certification_id = 'ef38f94347e94562b5bb8424a56397d8' # str | The certification ID # str | The certification ID + item_id = '2c91808671bcbab40171bd945d961227' # str | The certification item ID # str | The certification item ID + filters = 'target eq \"SYS.OBJAUTH2\"' # 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: **target**: *eq, sw* **rights**: *ca* Supported composite operators: *and, or* All field values (second filter operands) are case-insensitive for this API. Only a single *and* or *or* composite filter operator may be used. It must also be used between a target filter and a rights filter, not between 2 filters for the same field. For example, the following is valid: `?filters=rights+ca+(%22CREATE%22)+and+target+eq+%22SYS.OBJAUTH2%22` The following is invalid: 1?filters=rights+ca+(%22CREATE%22)+and+rights+ca+(%SELECT%22)1 (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: **target**: *eq, sw* **rights**: *ca* Supported composite operators: *and, or* All field values (second filter operands) are case-insensitive for this API. Only a single *and* or *or* composite filter operator may be used. It must also be used between a target filter and a rights filter, not between 2 filters for the same field. For example, the following is valid: `?filters=rights+ca+(%22CREATE%22)+and+target+eq+%22SYS.OBJAUTH2%22` The following is invalid: 1?filters=rights+ca+(%22CREATE%22)+and+rights+ca+(%SELECT%22)1 (optional) + 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) + try: + # Permissions for Entitlement Certification Item + + results = CertificationsApi(api_client).get_identity_certification_item_permissions(certification_id=certification_id, item_id=item_id) + # Below is a request that includes all optional parameters + # results = CertificationsApi(api_client).get_identity_certification_item_permissions(certification_id, item_id, filters, limit, offset, count) + print("The response of CertificationsApi->get_identity_certification_item_permissions:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationsApi->get_identity_certification_item_permissions: %s\n" % e) - path: /certification-tasks method: GET xCodeSample: @@ -3564,27 +3456,26 @@ from sailpoint.v2024.api.certifications_api import CertificationsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.certification_task import CertificationTask - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - reviewer_identity = 'Ada.1de82e55078344' # str | The ID of reviewer identity. *me* indicates the current user. (optional) # str | The ID of reviewer identity. *me* indicates the current user. (optional) - 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 = 'type eq \"ADMIN_REASSIGN\"' # 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* **targetId**: *eq, in* **type**: *eq, in* (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* **targetId**: *eq, in* **type**: *eq, in* (optional) - try: - # List of Pending Certification Tasks - - results = CertificationsApi(api_client).get_pending_certification_tasks() - # Below is a request that includes all optional parameters - # results = CertificationsApi(api_client).get_pending_certification_tasks(reviewer_identity, limit, offset, count, filters) - print("The response of CertificationsApi->get_pending_certification_tasks:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationsApi->get_pending_certification_tasks: %s\n" % e) + reviewer_identity = 'Ada.1de82e55078344' # str | The ID of reviewer identity. *me* indicates the current user. (optional) # str | The ID of reviewer identity. *me* indicates the current user. (optional) + 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 = 'type eq \"ADMIN_REASSIGN\"' # 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* **targetId**: *eq, in* **type**: *eq, in* (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* **targetId**: *eq, in* **type**: *eq, in* (optional) + try: + # List of Pending Certification Tasks + + results = CertificationsApi(api_client).get_pending_certification_tasks() + # Below is a request that includes all optional parameters + # results = CertificationsApi(api_client).get_pending_certification_tasks(reviewer_identity, limit, offset, count, filters) + print("The response of CertificationsApi->get_pending_certification_tasks:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationsApi->get_pending_certification_tasks: %s\n" % e) - path: /certifications/{id}/reviewers method: GET xCodeSample: @@ -3594,28 +3485,27 @@ from sailpoint.v2024.api.certifications_api import CertificationsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.identity_reference_with_name_and_email import IdentityReferenceWithNameAndEmail - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The certification ID # str | The certification ID - 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 \"Bob\"' # 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, sw* **email**: *eq, 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* **name**: *eq, sw* **email**: *eq, sw* (optional) - sorters = 'name' # 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: **name, email** (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: **name, email** (optional) - try: - # List of Reviewers for certification - - results = CertificationsApi(api_client).list_certification_reviewers(id=id) - # Below is a request that includes all optional parameters - # results = CertificationsApi(api_client).list_certification_reviewers(id, limit, offset, count, filters, sorters) - print("The response of CertificationsApi->list_certification_reviewers:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationsApi->list_certification_reviewers: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The certification ID # str | The certification ID + 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 \"Bob\"' # 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, sw* **email**: *eq, 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* **name**: *eq, sw* **email**: *eq, sw* (optional) + sorters = 'name' # 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: **name, email** (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: **name, email** (optional) + try: + # List of Reviewers for certification + + results = CertificationsApi(api_client).list_certification_reviewers(id=id) + # Below is a request that includes all optional parameters + # results = CertificationsApi(api_client).list_certification_reviewers(id, limit, offset, count, filters, sorters) + print("The response of CertificationsApi->list_certification_reviewers:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationsApi->list_certification_reviewers: %s\n" % e) - path: /certifications/{id}/access-review-items method: GET xCodeSample: @@ -3625,31 +3515,30 @@ from sailpoint.v2024.api.certifications_api import CertificationsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.access_review_item import AccessReviewItem - from pprint import pprint - from sailpoint.configuration import Configuration - configuration = Configuration() - - - with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The identity campaign certification ID # str | The identity campaign certification ID - 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 = 'id eq \"ef38f94347e94562b5bb8424a56397d8\"' # 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* **type**: *eq* **access.type**: *eq* **completed**: *eq, ne* **identitySummary.id**: *eq, in* **identitySummary.name**: *eq, sw* **access.id**: *eq, in* **access.name**: *eq, sw* **entitlement.sourceName**: *eq, sw* **accessProfile.sourceName**: *eq, 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* **type**: *eq* **access.type**: *eq* **completed**: *eq, ne* **identitySummary.id**: *eq, in* **identitySummary.name**: *eq, sw* **access.id**: *eq, in* **access.name**: *eq, sw* **entitlement.sourceName**: *eq, sw* **accessProfile.sourceName**: *eq, sw* (optional) - sorters = 'access.name,-accessProfile.sourceName' # 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: **identitySummary.name, access.name, access.type, entitlement.sourceName, accessProfile.sourceName** (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: **identitySummary.name, access.name, access.type, entitlement.sourceName, accessProfile.sourceName** (optional) - entitlements = 'identityEntitlement' # str | Filter results to view access review items that pertain to any of the specified comma-separated entitlement IDs. An error will occur if this param is used with **access-profiles** or **roles** as only one of these query params can be used at a time. (optional) # str | Filter results to view access review items that pertain to any of the specified comma-separated entitlement IDs. An error will occur if this param is used with **access-profiles** or **roles** as only one of these query params can be used at a time. (optional) - access_profiles = 'accessProfile1' # str | Filter results to view access review items that pertain to any of the specified comma-separated access-profle IDs. An error will occur if this param is used with **entitlements** or **roles** as only one of these query params can be used at a time. (optional) # str | Filter results to view access review items that pertain to any of the specified comma-separated access-profle IDs. An error will occur if this param is used with **entitlements** or **roles** as only one of these query params can be used at a time. (optional) - roles = 'userRole' # str | Filter results to view access review items that pertain to any of the specified comma-separated role IDs. An error will occur if this param is used with **entitlements** or **access-profiles** as only one of these query params can be used at a time. (optional) # str | Filter results to view access review items that pertain to any of the specified comma-separated role IDs. An error will occur if this param is used with **entitlements** or **access-profiles** as only one of these query params can be used at a time. (optional) - try: - # List of Access Review Items - - results = CertificationsApi(api_client).list_identity_access_review_items(id=id) - # Below is a request that includes all optional parameters - # results = CertificationsApi(api_client).list_identity_access_review_items(id, limit, offset, count, filters, sorters, entitlements, access_profiles, roles) - print("The response of CertificationsApi->list_identity_access_review_items:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationsApi->list_identity_access_review_items: %s\n" % e) + from sailpoint.configuration import Configuration + configuration = Configuration() + + + with ApiClient(configuration) as api_client: + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The identity campaign certification ID # str | The identity campaign certification ID + 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 = 'id eq \"ef38f94347e94562b5bb8424a56397d8\"' # 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* **type**: *eq* **access.type**: *eq* **completed**: *eq, ne* **identitySummary.id**: *eq, in* **identitySummary.name**: *eq, sw* **access.id**: *eq, in* **access.name**: *eq, sw* **entitlement.sourceName**: *eq, sw* **accessProfile.sourceName**: *eq, 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* **type**: *eq* **access.type**: *eq* **completed**: *eq, ne* **identitySummary.id**: *eq, in* **identitySummary.name**: *eq, sw* **access.id**: *eq, in* **access.name**: *eq, sw* **entitlement.sourceName**: *eq, sw* **accessProfile.sourceName**: *eq, sw* (optional) + sorters = 'access.name,-accessProfile.sourceName' # 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: **identitySummary.name, access.name, access.type, entitlement.sourceName, accessProfile.sourceName** (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: **identitySummary.name, access.name, access.type, entitlement.sourceName, accessProfile.sourceName** (optional) + entitlements = 'identityEntitlement' # str | Filter results to view access review items that pertain to any of the specified comma-separated entitlement IDs. An error will occur if this param is used with **access-profiles** or **roles** as only one of these query params can be used at a time. (optional) # str | Filter results to view access review items that pertain to any of the specified comma-separated entitlement IDs. An error will occur if this param is used with **access-profiles** or **roles** as only one of these query params can be used at a time. (optional) + access_profiles = 'accessProfile1' # str | Filter results to view access review items that pertain to any of the specified comma-separated access-profle IDs. An error will occur if this param is used with **entitlements** or **roles** as only one of these query params can be used at a time. (optional) # str | Filter results to view access review items that pertain to any of the specified comma-separated access-profle IDs. An error will occur if this param is used with **entitlements** or **roles** as only one of these query params can be used at a time. (optional) + roles = 'userRole' # str | Filter results to view access review items that pertain to any of the specified comma-separated role IDs. An error will occur if this param is used with **entitlements** or **access-profiles** as only one of these query params can be used at a time. (optional) # str | Filter results to view access review items that pertain to any of the specified comma-separated role IDs. An error will occur if this param is used with **entitlements** or **access-profiles** as only one of these query params can be used at a time. (optional) + try: + # List of Access Review Items + + results = CertificationsApi(api_client).list_identity_access_review_items(id=id) + # Below is a request that includes all optional parameters + # results = CertificationsApi(api_client).list_identity_access_review_items(id, limit, offset, count, filters, sorters, entitlements, access_profiles, roles) + print("The response of CertificationsApi->list_identity_access_review_items:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationsApi->list_identity_access_review_items: %s\n" % e) - path: /certifications method: GET xCodeSample: @@ -3659,28 +3548,27 @@ from sailpoint.v2024.api.certifications_api import CertificationsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.identity_certification_dto import IdentityCertificationDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - reviewer_identity = 'me' # str | Reviewer's identity. *me* indicates the current user. (optional) # str | Reviewer's identity. *me* indicates the current user. (optional) - 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 = 'id eq \"ef38f94347e94562b5bb8424a56397d8\"' # 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* **campaign.id**: *eq, in* **phase**: *eq* **completed**: *eq* (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* **campaign.id**: *eq, in* **phase**: *eq* **completed**: *eq* (optional) - sorters = 'name,due' # 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: **name, due, signed** (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: **name, due, signed** (optional) - try: - # List Identity Campaign Certifications - - results = CertificationsApi(api_client).list_identity_certifications() - # Below is a request that includes all optional parameters - # results = CertificationsApi(api_client).list_identity_certifications(reviewer_identity, limit, offset, count, filters, sorters) - print("The response of CertificationsApi->list_identity_certifications:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationsApi->list_identity_certifications: %s\n" % e) + reviewer_identity = 'me' # str | Reviewer's identity. *me* indicates the current user. (optional) # str | Reviewer's identity. *me* indicates the current user. (optional) + 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 = 'id eq \"ef38f94347e94562b5bb8424a56397d8\"' # 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* **campaign.id**: *eq, in* **phase**: *eq* **completed**: *eq* (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* **campaign.id**: *eq, in* **phase**: *eq* **completed**: *eq* (optional) + sorters = 'name,due' # 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: **name, due, signed** (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: **name, due, signed** (optional) + try: + # List Identity Campaign Certifications + + results = CertificationsApi(api_client).list_identity_certifications() + # Below is a request that includes all optional parameters + # results = CertificationsApi(api_client).list_identity_certifications(reviewer_identity, limit, offset, count, filters, sorters) + print("The response of CertificationsApi->list_identity_certifications:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationsApi->list_identity_certifications: %s\n" % e) - path: /certifications/{id}/decide method: POST xCodeSample: @@ -3691,24 +3579,23 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.identity_certification_dto import IdentityCertificationDto from sailpoint.v2024.models.review_decision import ReviewDecision - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the identity campaign certification on which to make decisions # str | The ID of the identity campaign certification on which to make decisions - review_decision = '''[{id=ef38f94347e94562b5bb8424a56396b5, decision=APPROVE, bulk=true, comments=This user still needs access to this source.}, {id=ef38f94347e94562b5bb8424a56397d8, decision=APPROVE, bulk=true, comments=This user still needs access to this source too.}]''' # List[ReviewDecision] | A non-empty array of decisions to be made. - try: - # Decide on a Certification Item - new_review_decision = ReviewDecision.from_json(review_decision) - results = CertificationsApi(api_client).make_identity_decision(id=id, review_decision=new_review_decision) - # Below is a request that includes all optional parameters - # results = CertificationsApi(api_client).make_identity_decision(id, new_review_decision) - print("The response of CertificationsApi->make_identity_decision:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationsApi->make_identity_decision: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the identity campaign certification on which to make decisions # str | The ID of the identity campaign certification on which to make decisions + review_decision = '''[{id=ef38f94347e94562b5bb8424a56396b5, decision=APPROVE, bulk=true, comments=This user still needs access to this source.}, {id=ef38f94347e94562b5bb8424a56397d8, decision=APPROVE, bulk=true, comments=This user still needs access to this source too.}]''' # List[ReviewDecision] | A non-empty array of decisions to be made. + try: + # Decide on a Certification Item + new_review_decision = ReviewDecision.from_json(review_decision) + results = CertificationsApi(api_client).make_identity_decision(id=id, review_decision=new_review_decision) + # Below is a request that includes all optional parameters + # results = CertificationsApi(api_client).make_identity_decision(id, new_review_decision) + print("The response of CertificationsApi->make_identity_decision:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationsApi->make_identity_decision: %s\n" % e) - path: /certifications/{id}/reassign method: POST xCodeSample: @@ -3719,14 +3606,13 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.identity_certification_dto import IdentityCertificationDto from sailpoint.v2024.models.review_reassign import ReviewReassign - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The identity campaign certification ID # str | The identity campaign certification ID - review_reassign = '''{ + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The identity campaign certification ID # str | The identity campaign certification ID + review_reassign = '''{ "reason" : "reassigned for some reason", "reassignTo" : "ef38f94347e94562b5bb8424a56397d8", "reassign" : [ { @@ -3737,16 +3623,16 @@ "type" : "ITEM" } ] }''' # ReviewReassign | - try: - # Reassign Identities or Items - new_review_reassign = ReviewReassign.from_json(review_reassign) - results = CertificationsApi(api_client).reassign_identity_certifications(id=id, review_reassign=new_review_reassign) - # Below is a request that includes all optional parameters - # results = CertificationsApi(api_client).reassign_identity_certifications(id, new_review_reassign) - print("The response of CertificationsApi->reassign_identity_certifications:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationsApi->reassign_identity_certifications: %s\n" % e) + try: + # Reassign Identities or Items + new_review_reassign = ReviewReassign.from_json(review_reassign) + results = CertificationsApi(api_client).reassign_identity_certifications(id=id, review_reassign=new_review_reassign) + # Below is a request that includes all optional parameters + # results = CertificationsApi(api_client).reassign_identity_certifications(id, new_review_reassign) + print("The response of CertificationsApi->reassign_identity_certifications:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationsApi->reassign_identity_certifications: %s\n" % e) - path: /certifications/{id}/sign-off method: POST xCodeSample: @@ -3756,23 +3642,22 @@ from sailpoint.v2024.api.certifications_api import CertificationsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.identity_certification_dto import IdentityCertificationDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The identity campaign certification ID # str | The identity campaign certification ID - try: - # Finalize Identity Certification Decisions - - results = CertificationsApi(api_client).sign_off_identity_certification(id=id) - # Below is a request that includes all optional parameters - # results = CertificationsApi(api_client).sign_off_identity_certification(id) - print("The response of CertificationsApi->sign_off_identity_certification:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationsApi->sign_off_identity_certification: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The identity campaign certification ID # str | The identity campaign certification ID + try: + # Finalize Identity Certification Decisions + + results = CertificationsApi(api_client).sign_off_identity_certification(id=id) + # Below is a request that includes all optional parameters + # results = CertificationsApi(api_client).sign_off_identity_certification(id) + print("The response of CertificationsApi->sign_off_identity_certification:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationsApi->sign_off_identity_certification: %s\n" % e) - path: /certifications/{id}/reassign-async method: POST xCodeSample: @@ -3783,14 +3668,13 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.certification_task import CertificationTask from sailpoint.v2024.models.review_reassign import ReviewReassign - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The identity campaign certification ID # str | The identity campaign certification ID - review_reassign = '''{ + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The identity campaign certification ID # str | The identity campaign certification ID + review_reassign = '''{ "reason" : "reassigned for some reason", "reassignTo" : "ef38f94347e94562b5bb8424a56397d8", "reassign" : [ { @@ -3801,16 +3685,16 @@ "type" : "ITEM" } ] }''' # ReviewReassign | - try: - # Reassign Certifications Asynchronously - new_review_reassign = ReviewReassign.from_json(review_reassign) - results = CertificationsApi(api_client).submit_reassign_certs_async(id=id, review_reassign=new_review_reassign) - # Below is a request that includes all optional parameters - # results = CertificationsApi(api_client).submit_reassign_certs_async(id, new_review_reassign) - print("The response of CertificationsApi->submit_reassign_certs_async:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationsApi->submit_reassign_certs_async: %s\n" % e) + try: + # Reassign Certifications Asynchronously + new_review_reassign = ReviewReassign.from_json(review_reassign) + results = CertificationsApi(api_client).submit_reassign_certs_async(id=id, review_reassign=new_review_reassign) + # Below is a request that includes all optional parameters + # results = CertificationsApi(api_client).submit_reassign_certs_async(id, new_review_reassign) + print("The response of CertificationsApi->submit_reassign_certs_async:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationsApi->submit_reassign_certs_async: %s\n" % e) - path: /certifications/{id}/access-summaries/{type} method: GET xCodeSample: @@ -3820,29 +3704,28 @@ from sailpoint.v2024.api.certification_summaries_api import CertificationSummariesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.access_summary import AccessSummary - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The identity campaign certification ID # str | The identity campaign certification ID - type = 'ACCESS_PROFILE' # str | The type of access review item to retrieve summaries for # str | The type of access review item to retrieve summaries for - 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 = 'access.id eq \"ef38f94347e94562b5bb8424a56397d8\"' # 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: **completed**: *eq, ne* **access.id**: *eq, in* **access.name**: *eq, sw* **entitlement.sourceName**: *eq, sw* **accessProfile.sourceName**: *eq, 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: **completed**: *eq, ne* **access.id**: *eq, in* **access.name**: *eq, sw* **entitlement.sourceName**: *eq, sw* **accessProfile.sourceName**: *eq, sw* (optional) - sorters = 'access.name' # 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: **access.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: **access.name** (optional) - try: - # Access Summaries - - results = CertificationSummariesApi(api_client).get_identity_access_summaries(id=id, type=type) - # Below is a request that includes all optional parameters - # results = CertificationSummariesApi(api_client).get_identity_access_summaries(id, type, limit, offset, count, filters, sorters) - print("The response of CertificationSummariesApi->get_identity_access_summaries:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationSummariesApi->get_identity_access_summaries: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The identity campaign certification ID # str | The identity campaign certification ID + type = 'ACCESS_PROFILE' # str | The type of access review item to retrieve summaries for # str | The type of access review item to retrieve summaries for + 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 = 'access.id eq \"ef38f94347e94562b5bb8424a56397d8\"' # 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: **completed**: *eq, ne* **access.id**: *eq, in* **access.name**: *eq, sw* **entitlement.sourceName**: *eq, sw* **accessProfile.sourceName**: *eq, 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: **completed**: *eq, ne* **access.id**: *eq, in* **access.name**: *eq, sw* **entitlement.sourceName**: *eq, sw* **accessProfile.sourceName**: *eq, sw* (optional) + sorters = 'access.name' # 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: **access.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: **access.name** (optional) + try: + # Access Summaries + + results = CertificationSummariesApi(api_client).get_identity_access_summaries(id=id, type=type) + # Below is a request that includes all optional parameters + # results = CertificationSummariesApi(api_client).get_identity_access_summaries(id, type, limit, offset, count, filters, sorters) + print("The response of CertificationSummariesApi->get_identity_access_summaries:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationSummariesApi->get_identity_access_summaries: %s\n" % e) - path: /certifications/{id}/decision-summary method: GET xCodeSample: @@ -3852,24 +3735,23 @@ from sailpoint.v2024.api.certification_summaries_api import CertificationSummariesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.identity_cert_decision_summary import IdentityCertDecisionSummary - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The certification ID # str | The certification ID - filters = 'identitySummary.id eq \"ef38f94347e94562b5bb8424a56397d8\"' # 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: **identitySummary.id**: *eq, in* (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: **identitySummary.id**: *eq, in* (optional) - try: - # Summary of Certification Decisions - - results = CertificationSummariesApi(api_client).get_identity_decision_summary(id=id) - # Below is a request that includes all optional parameters - # results = CertificationSummariesApi(api_client).get_identity_decision_summary(id, filters) - print("The response of CertificationSummariesApi->get_identity_decision_summary:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationSummariesApi->get_identity_decision_summary: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The certification ID # str | The certification ID + filters = 'identitySummary.id eq \"ef38f94347e94562b5bb8424a56397d8\"' # 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: **identitySummary.id**: *eq, in* (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: **identitySummary.id**: *eq, in* (optional) + try: + # Summary of Certification Decisions + + results = CertificationSummariesApi(api_client).get_identity_decision_summary(id=id) + # Below is a request that includes all optional parameters + # results = CertificationSummariesApi(api_client).get_identity_decision_summary(id, filters) + print("The response of CertificationSummariesApi->get_identity_decision_summary:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationSummariesApi->get_identity_decision_summary: %s\n" % e) - path: /certifications/{id}/identity-summaries method: GET xCodeSample: @@ -3879,28 +3761,27 @@ from sailpoint.v2024.api.certification_summaries_api import CertificationSummariesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.certification_identity_summary import CertificationIdentitySummary - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The identity campaign certification ID # str | The identity campaign certification ID - 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 = 'id eq \"ef38f94347e94562b5bb8424a56397d8\"' # 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* **completed**: *eq, ne* **name**: *eq, 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* **completed**: *eq, ne* **name**: *eq, sw* (optional) - sorters = 'name' # 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: **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: **name** (optional) - try: - # Identity Summaries for Campaign Certification - - results = CertificationSummariesApi(api_client).get_identity_summaries(id=id) - # Below is a request that includes all optional parameters - # results = CertificationSummariesApi(api_client).get_identity_summaries(id, limit, offset, count, filters, sorters) - print("The response of CertificationSummariesApi->get_identity_summaries:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationSummariesApi->get_identity_summaries: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The identity campaign certification ID # str | The identity campaign certification ID + 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 = 'id eq \"ef38f94347e94562b5bb8424a56397d8\"' # 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* **completed**: *eq, ne* **name**: *eq, 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* **completed**: *eq, ne* **name**: *eq, sw* (optional) + sorters = 'name' # 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: **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: **name** (optional) + try: + # Identity Summaries for Campaign Certification + + results = CertificationSummariesApi(api_client).get_identity_summaries(id=id) + # Below is a request that includes all optional parameters + # results = CertificationSummariesApi(api_client).get_identity_summaries(id, limit, offset, count, filters, sorters) + print("The response of CertificationSummariesApi->get_identity_summaries:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationSummariesApi->get_identity_summaries: %s\n" % e) - path: /certifications/{id}/identity-summaries/{identitySummaryId} method: GET xCodeSample: @@ -3910,24 +3791,23 @@ from sailpoint.v2024.api.certification_summaries_api import CertificationSummariesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.certification_identity_summary import CertificationIdentitySummary - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The identity campaign certification ID # str | The identity campaign certification ID - identity_summary_id = '2c91808772a504f50172a9540e501ba8' # str | The identity summary ID # str | The identity summary ID - try: - # Summary for Identity - - results = CertificationSummariesApi(api_client).get_identity_summary(id=id, identity_summary_id=identity_summary_id) - # Below is a request that includes all optional parameters - # results = CertificationSummariesApi(api_client).get_identity_summary(id, identity_summary_id) - print("The response of CertificationSummariesApi->get_identity_summary:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationSummariesApi->get_identity_summary: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The identity campaign certification ID # str | The identity campaign certification ID + identity_summary_id = '2c91808772a504f50172a9540e501ba8' # str | The identity summary ID # str | The identity summary ID + try: + # Summary for Identity + + results = CertificationSummariesApi(api_client).get_identity_summary(id=id, identity_summary_id=identity_summary_id) + # Below is a request that includes all optional parameters + # results = CertificationSummariesApi(api_client).get_identity_summary(id, identity_summary_id) + print("The response of CertificationSummariesApi->get_identity_summary:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationSummariesApi->get_identity_summary: %s\n" % e) - path: /configuration-hub/deploys method: POST xCodeSample: @@ -3938,25 +3818,24 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.deploy_request import DeployRequest from sailpoint.v2024.models.deploy_response import DeployResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - deploy_request = '''{ + deploy_request = '''{ "draftId" : "3d0fe04b-57df-4a46-a83b-8f04b0f9d10b" }''' # DeployRequest | The deploy request body. - try: - # Create a Deploy - new_deploy_request = DeployRequest.from_json(deploy_request) - results = ConfigurationHubApi(api_client).create_deploy(deploy_request=new_deploy_request) - # Below is a request that includes all optional parameters - # results = ConfigurationHubApi(api_client).create_deploy(new_deploy_request) - print("The response of ConfigurationHubApi->create_deploy:\n") - pprint(results) - except Exception as e: - print("Exception when calling ConfigurationHubApi->create_deploy: %s\n" % e) + try: + # Create a Deploy + new_deploy_request = DeployRequest.from_json(deploy_request) + results = ConfigurationHubApi(api_client).create_deploy(deploy_request=new_deploy_request) + # Below is a request that includes all optional parameters + # results = ConfigurationHubApi(api_client).create_deploy(new_deploy_request) + print("The response of ConfigurationHubApi->create_deploy:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ConfigurationHubApi->create_deploy: %s\n" % e) - path: /configuration-hub/object-mappings/{sourceOrg} method: POST xCodeSample: @@ -3967,30 +3846,29 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.object_mapping_request import ObjectMappingRequest from sailpoint.v2024.models.object_mapping_response import ObjectMappingResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_org = 'source-org' # str | The name of the source org. # str | The name of the source org. - object_mapping_request = '''{ + source_org = 'source-org' # str | The name of the source org. # str | The name of the source org. + object_mapping_request = '''{ "targetValue" : "My New Governance Group Name", "jsonPath" : "$.name", "sourceValue" : "My Governance Group Name", "enabled" : false, "objectType" : "IDENTITY" }''' # ObjectMappingRequest | The object mapping request body. - try: - # Creates an object mapping - new_object_mapping_request = ObjectMappingRequest.from_json(object_mapping_request) - results = ConfigurationHubApi(api_client).create_object_mapping(source_org=source_org, object_mapping_request=new_object_mapping_request) - # Below is a request that includes all optional parameters - # results = ConfigurationHubApi(api_client).create_object_mapping(source_org, new_object_mapping_request) - print("The response of ConfigurationHubApi->create_object_mapping:\n") - pprint(results) - except Exception as e: - print("Exception when calling ConfigurationHubApi->create_object_mapping: %s\n" % e) + try: + # Creates an object mapping + new_object_mapping_request = ObjectMappingRequest.from_json(object_mapping_request) + results = ConfigurationHubApi(api_client).create_object_mapping(source_org=source_org, object_mapping_request=new_object_mapping_request) + # Below is a request that includes all optional parameters + # results = ConfigurationHubApi(api_client).create_object_mapping(source_org, new_object_mapping_request) + print("The response of ConfigurationHubApi->create_object_mapping:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ConfigurationHubApi->create_object_mapping: %s\n" % e) - path: /configuration-hub/object-mappings/{sourceOrg}/bulk-create method: POST xCodeSample: @@ -4001,14 +3879,13 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.object_mapping_bulk_create_request import ObjectMappingBulkCreateRequest from sailpoint.v2024.models.object_mapping_bulk_create_response import ObjectMappingBulkCreateResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_org = 'source-org' # str | The name of the source org. # str | The name of the source org. - object_mapping_bulk_create_request = '''{ + source_org = 'source-org' # str | The name of the source org. # str | The name of the source org. + object_mapping_bulk_create_request = '''{ "newObjectsMappings" : [ { "targetValue" : "My New Governance Group Name", "jsonPath" : "$.name", @@ -4023,16 +3900,16 @@ "objectType" : "IDENTITY" } ] }''' # ObjectMappingBulkCreateRequest | The bulk create object mapping request body. - try: - # Bulk creates object mappings - new_object_mapping_bulk_create_request = ObjectMappingBulkCreateRequest.from_json(object_mapping_bulk_create_request) - results = ConfigurationHubApi(api_client).create_object_mappings(source_org=source_org, object_mapping_bulk_create_request=new_object_mapping_bulk_create_request) - # Below is a request that includes all optional parameters - # results = ConfigurationHubApi(api_client).create_object_mappings(source_org, new_object_mapping_bulk_create_request) - print("The response of ConfigurationHubApi->create_object_mappings:\n") - pprint(results) - except Exception as e: - print("Exception when calling ConfigurationHubApi->create_object_mappings: %s\n" % e) + try: + # Bulk creates object mappings + new_object_mapping_bulk_create_request = ObjectMappingBulkCreateRequest.from_json(object_mapping_bulk_create_request) + results = ConfigurationHubApi(api_client).create_object_mappings(source_org=source_org, object_mapping_bulk_create_request=new_object_mapping_bulk_create_request) + # Below is a request that includes all optional parameters + # results = ConfigurationHubApi(api_client).create_object_mappings(source_org, new_object_mapping_bulk_create_request) + print("The response of ConfigurationHubApi->create_object_mappings:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ConfigurationHubApi->create_object_mappings: %s\n" % e) - path: /configuration-hub/backups/uploads method: POST xCodeSample: @@ -4042,24 +3919,23 @@ from sailpoint.v2024.api.configuration_hub_api import ConfigurationHubApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.backup_response import BackupResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - data = None # bytearray | JSON file containing the objects to be imported. # bytearray | JSON file containing the objects to be imported. - name = 'name_example' # str | Name that will be assigned to the uploaded configuration file. # str | Name that will be assigned to the uploaded configuration file. - try: - # Upload a Configuration - - results = ConfigurationHubApi(api_client).create_uploaded_configuration(data=data, name=name) - # Below is a request that includes all optional parameters - # results = ConfigurationHubApi(api_client).create_uploaded_configuration(data, name) - print("The response of ConfigurationHubApi->create_uploaded_configuration:\n") - pprint(results) - except Exception as e: - print("Exception when calling ConfigurationHubApi->create_uploaded_configuration: %s\n" % e) + data = None # bytearray | JSON file containing the objects to be imported. # bytearray | JSON file containing the objects to be imported. + name = 'name_example' # str | Name that will be assigned to the uploaded configuration file. # str | Name that will be assigned to the uploaded configuration file. + try: + # Upload a Configuration + + results = ConfigurationHubApi(api_client).create_uploaded_configuration(data=data, name=name) + # Below is a request that includes all optional parameters + # results = ConfigurationHubApi(api_client).create_uploaded_configuration(data, name) + print("The response of ConfigurationHubApi->create_uploaded_configuration:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ConfigurationHubApi->create_uploaded_configuration: %s\n" % e) - path: /configuration-hub/backups/{id} method: DELETE xCodeSample: @@ -4068,21 +3944,20 @@ source: | from sailpoint.v2024.api.configuration_hub_api import ConfigurationHubApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '07659d7d-2cce-47c0-9e49-185787ee565a' # str | The id of the backup to delete. # str | The id of the backup to delete. - try: - # Delete a Backup - - ConfigurationHubApi(api_client).delete_backup(id=id) - # Below is a request that includes all optional parameters - # ConfigurationHubApi(api_client).delete_backup(id) - except Exception as e: - print("Exception when calling ConfigurationHubApi->delete_backup: %s\n" % e) + id = '07659d7d-2cce-47c0-9e49-185787ee565a' # str | The id of the backup to delete. # str | The id of the backup to delete. + try: + # Delete a Backup + + ConfigurationHubApi(api_client).delete_backup(id=id) + # Below is a request that includes all optional parameters + # ConfigurationHubApi(api_client).delete_backup(id) + except Exception as e: + print("Exception when calling ConfigurationHubApi->delete_backup: %s\n" % e) - path: /configuration-hub/drafts/{id} method: DELETE xCodeSample: @@ -4091,21 +3966,20 @@ source: | from sailpoint.v2024.api.configuration_hub_api import ConfigurationHubApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '07659d7d-2cce-47c0-9e49-185787ee565a' # str | The id of the draft to delete. # str | The id of the draft to delete. - try: - # Delete a draft - - ConfigurationHubApi(api_client).delete_draft(id=id) - # Below is a request that includes all optional parameters - # ConfigurationHubApi(api_client).delete_draft(id) - except Exception as e: - print("Exception when calling ConfigurationHubApi->delete_draft: %s\n" % e) + id = '07659d7d-2cce-47c0-9e49-185787ee565a' # str | The id of the draft to delete. # str | The id of the draft to delete. + try: + # Delete a draft + + ConfigurationHubApi(api_client).delete_draft(id=id) + # Below is a request that includes all optional parameters + # ConfigurationHubApi(api_client).delete_draft(id) + except Exception as e: + print("Exception when calling ConfigurationHubApi->delete_draft: %s\n" % e) - path: /configuration-hub/object-mappings/{sourceOrg}/{objectMappingId} method: DELETE xCodeSample: @@ -4114,22 +3988,21 @@ source: | from sailpoint.v2024.api.configuration_hub_api import ConfigurationHubApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_org = 'source-org' # str | The name of the source org. # str | The name of the source org. - object_mapping_id = '3d6e0144-963f-4bd6-8d8d-d77b4e507ce4' # str | The id of the object mapping to be deleted. # str | The id of the object mapping to be deleted. - try: - # Deletes an object mapping - - ConfigurationHubApi(api_client).delete_object_mapping(source_org=source_org, object_mapping_id=object_mapping_id) - # Below is a request that includes all optional parameters - # ConfigurationHubApi(api_client).delete_object_mapping(source_org, object_mapping_id) - except Exception as e: - print("Exception when calling ConfigurationHubApi->delete_object_mapping: %s\n" % e) + source_org = 'source-org' # str | The name of the source org. # str | The name of the source org. + object_mapping_id = '3d6e0144-963f-4bd6-8d8d-d77b4e507ce4' # str | The id of the object mapping to be deleted. # str | The id of the object mapping to be deleted. + try: + # Deletes an object mapping + + ConfigurationHubApi(api_client).delete_object_mapping(source_org=source_org, object_mapping_id=object_mapping_id) + # Below is a request that includes all optional parameters + # ConfigurationHubApi(api_client).delete_object_mapping(source_org, object_mapping_id) + except Exception as e: + print("Exception when calling ConfigurationHubApi->delete_object_mapping: %s\n" % e) - path: /configuration-hub/backups/uploads/{id} method: DELETE xCodeSample: @@ -4138,21 +4011,20 @@ source: | from sailpoint.v2024.api.configuration_hub_api import ConfigurationHubApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '3d0fe04b-57df-4a46-a83b-8f04b0f9d10b' # str | The id of the uploaded configuration. # str | The id of the uploaded configuration. - try: - # Delete an Uploaded Configuration - - ConfigurationHubApi(api_client).delete_uploaded_configuration(id=id) - # Below is a request that includes all optional parameters - # ConfigurationHubApi(api_client).delete_uploaded_configuration(id) - except Exception as e: - print("Exception when calling ConfigurationHubApi->delete_uploaded_configuration: %s\n" % e) + id = '3d0fe04b-57df-4a46-a83b-8f04b0f9d10b' # str | The id of the uploaded configuration. # str | The id of the uploaded configuration. + try: + # Delete an Uploaded Configuration + + ConfigurationHubApi(api_client).delete_uploaded_configuration(id=id) + # Below is a request that includes all optional parameters + # ConfigurationHubApi(api_client).delete_uploaded_configuration(id) + except Exception as e: + print("Exception when calling ConfigurationHubApi->delete_uploaded_configuration: %s\n" % e) - path: /configuration-hub/deploys/{id} method: GET xCodeSample: @@ -4162,23 +4034,22 @@ from sailpoint.v2024.api.configuration_hub_api import ConfigurationHubApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.deploy_response import DeployResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '3d0fe04b-57df-4a46-a83b-8f04b0f9d10b' # str | The id of the deploy. # str | The id of the deploy. - try: - # Get a Deploy - - results = ConfigurationHubApi(api_client).get_deploy(id=id) - # Below is a request that includes all optional parameters - # results = ConfigurationHubApi(api_client).get_deploy(id) - print("The response of ConfigurationHubApi->get_deploy:\n") - pprint(results) - except Exception as e: - print("Exception when calling ConfigurationHubApi->get_deploy: %s\n" % e) + id = '3d0fe04b-57df-4a46-a83b-8f04b0f9d10b' # str | The id of the deploy. # str | The id of the deploy. + try: + # Get a Deploy + + results = ConfigurationHubApi(api_client).get_deploy(id=id) + # Below is a request that includes all optional parameters + # results = ConfigurationHubApi(api_client).get_deploy(id) + print("The response of ConfigurationHubApi->get_deploy:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ConfigurationHubApi->get_deploy: %s\n" % e) - path: /configuration-hub/object-mappings/{sourceOrg} method: GET xCodeSample: @@ -4188,23 +4059,22 @@ from sailpoint.v2024.api.configuration_hub_api import ConfigurationHubApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.object_mapping_response import ObjectMappingResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_org = 'source-org' # str | The name of the source org. # str | The name of the source org. - try: - # Gets list of object mappings - - results = ConfigurationHubApi(api_client).get_object_mappings(source_org=source_org) - # Below is a request that includes all optional parameters - # results = ConfigurationHubApi(api_client).get_object_mappings(source_org) - print("The response of ConfigurationHubApi->get_object_mappings:\n") - pprint(results) - except Exception as e: - print("Exception when calling ConfigurationHubApi->get_object_mappings: %s\n" % e) + source_org = 'source-org' # str | The name of the source org. # str | The name of the source org. + try: + # Gets list of object mappings + + results = ConfigurationHubApi(api_client).get_object_mappings(source_org=source_org) + # Below is a request that includes all optional parameters + # results = ConfigurationHubApi(api_client).get_object_mappings(source_org) + print("The response of ConfigurationHubApi->get_object_mappings:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ConfigurationHubApi->get_object_mappings: %s\n" % e) - path: /configuration-hub/backups/uploads/{id} method: GET xCodeSample: @@ -4214,23 +4084,22 @@ from sailpoint.v2024.api.configuration_hub_api import ConfigurationHubApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.backup_response import BackupResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '3d0fe04b-57df-4a46-a83b-8f04b0f9d10b' # str | The id of the uploaded configuration. # str | The id of the uploaded configuration. - try: - # Get an Uploaded Configuration - - results = ConfigurationHubApi(api_client).get_uploaded_configuration(id=id) - # Below is a request that includes all optional parameters - # results = ConfigurationHubApi(api_client).get_uploaded_configuration(id) - print("The response of ConfigurationHubApi->get_uploaded_configuration:\n") - pprint(results) - except Exception as e: - print("Exception when calling ConfigurationHubApi->get_uploaded_configuration: %s\n" % e) + id = '3d0fe04b-57df-4a46-a83b-8f04b0f9d10b' # str | The id of the uploaded configuration. # str | The id of the uploaded configuration. + try: + # Get an Uploaded Configuration + + results = ConfigurationHubApi(api_client).get_uploaded_configuration(id=id) + # Below is a request that includes all optional parameters + # results = ConfigurationHubApi(api_client).get_uploaded_configuration(id) + print("The response of ConfigurationHubApi->get_uploaded_configuration:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ConfigurationHubApi->get_uploaded_configuration: %s\n" % e) - path: /configuration-hub/backups method: GET xCodeSample: @@ -4240,23 +4109,22 @@ from sailpoint.v2024.api.configuration_hub_api import ConfigurationHubApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.backup_response import BackupResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - filters = 'status eq \"COMPLETE\"' # 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: **status**: *eq* (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: **status**: *eq* (optional) - try: - # List Backups - - results = ConfigurationHubApi(api_client).list_backups() - # Below is a request that includes all optional parameters - # results = ConfigurationHubApi(api_client).list_backups(filters) - print("The response of ConfigurationHubApi->list_backups:\n") - pprint(results) - except Exception as e: - print("Exception when calling ConfigurationHubApi->list_backups: %s\n" % e) + filters = 'status eq \"COMPLETE\"' # 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: **status**: *eq* (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: **status**: *eq* (optional) + try: + # List Backups + + results = ConfigurationHubApi(api_client).list_backups() + # Below is a request that includes all optional parameters + # results = ConfigurationHubApi(api_client).list_backups(filters) + print("The response of ConfigurationHubApi->list_backups:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ConfigurationHubApi->list_backups: %s\n" % e) - path: /configuration-hub/deploys method: GET xCodeSample: @@ -4266,22 +4134,21 @@ from sailpoint.v2024.api.configuration_hub_api import ConfigurationHubApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.list_deploys200_response import ListDeploys200Response - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - try: - # List Deploys - - results = ConfigurationHubApi(api_client).list_deploys() - # Below is a request that includes all optional parameters - # results = ConfigurationHubApi(api_client).list_deploys() - print("The response of ConfigurationHubApi->list_deploys:\n") - pprint(results) - except Exception as e: - print("Exception when calling ConfigurationHubApi->list_deploys: %s\n" % e) + try: + # List Deploys + + results = ConfigurationHubApi(api_client).list_deploys() + # Below is a request that includes all optional parameters + # results = ConfigurationHubApi(api_client).list_deploys() + print("The response of ConfigurationHubApi->list_deploys:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ConfigurationHubApi->list_deploys: %s\n" % e) - path: /configuration-hub/drafts method: GET xCodeSample: @@ -4291,23 +4158,22 @@ from sailpoint.v2024.api.configuration_hub_api import ConfigurationHubApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.draft_response import DraftResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - filters = 'status eq \"COMPLETE\"' # 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: **status**: *eq* **approvalStatus**: *eq* (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: **status**: *eq* **approvalStatus**: *eq* (optional) - try: - # List Drafts - - results = ConfigurationHubApi(api_client).list_drafts() - # Below is a request that includes all optional parameters - # results = ConfigurationHubApi(api_client).list_drafts(filters) - print("The response of ConfigurationHubApi->list_drafts:\n") - pprint(results) - except Exception as e: - print("Exception when calling ConfigurationHubApi->list_drafts: %s\n" % e) + filters = 'status eq \"COMPLETE\"' # 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: **status**: *eq* **approvalStatus**: *eq* (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: **status**: *eq* **approvalStatus**: *eq* (optional) + try: + # List Drafts + + results = ConfigurationHubApi(api_client).list_drafts() + # Below is a request that includes all optional parameters + # results = ConfigurationHubApi(api_client).list_drafts(filters) + print("The response of ConfigurationHubApi->list_drafts:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ConfigurationHubApi->list_drafts: %s\n" % e) - path: /configuration-hub/backups/uploads method: GET xCodeSample: @@ -4317,23 +4183,22 @@ from sailpoint.v2024.api.configuration_hub_api import ConfigurationHubApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.backup_response import BackupResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - filters = 'status eq \"COMPLETE\"' # 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: **status**: *eq* (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: **status**: *eq* (optional) - try: - # List Uploaded Configurations - - results = ConfigurationHubApi(api_client).list_uploaded_configurations() - # Below is a request that includes all optional parameters - # results = ConfigurationHubApi(api_client).list_uploaded_configurations(filters) - print("The response of ConfigurationHubApi->list_uploaded_configurations:\n") - pprint(results) - except Exception as e: - print("Exception when calling ConfigurationHubApi->list_uploaded_configurations: %s\n" % e) + filters = 'status eq \"COMPLETE\"' # 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: **status**: *eq* (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: **status**: *eq* (optional) + try: + # List Uploaded Configurations + + results = ConfigurationHubApi(api_client).list_uploaded_configurations() + # Below is a request that includes all optional parameters + # results = ConfigurationHubApi(api_client).list_uploaded_configurations(filters) + print("The response of ConfigurationHubApi->list_uploaded_configurations:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ConfigurationHubApi->list_uploaded_configurations: %s\n" % e) - path: /configuration-hub/object-mappings/{sourceOrg}/bulk-patch method: POST xCodeSample: @@ -4344,14 +4209,13 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.object_mapping_bulk_patch_request import ObjectMappingBulkPatchRequest from sailpoint.v2024.models.object_mapping_bulk_patch_response import ObjectMappingBulkPatchResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_org = 'source-org' # str | The name of the source org. # str | The name of the source org. - object_mapping_bulk_patch_request = '''{ + source_org = 'source-org' # str | The name of the source org. # str | The name of the source org. + object_mapping_bulk_patch_request = '''{ "patches" : { "603b1a61-d03d-4ed1-864f-a508fbd1995d" : [ { "op" : "replace", @@ -4365,16 +4229,16 @@ } ] } }''' # ObjectMappingBulkPatchRequest | The object mapping request body. - try: - # Bulk updates object mappings - new_object_mapping_bulk_patch_request = ObjectMappingBulkPatchRequest.from_json(object_mapping_bulk_patch_request) - results = ConfigurationHubApi(api_client).update_object_mappings(source_org=source_org, object_mapping_bulk_patch_request=new_object_mapping_bulk_patch_request) - # Below is a request that includes all optional parameters - # results = ConfigurationHubApi(api_client).update_object_mappings(source_org, new_object_mapping_bulk_patch_request) - print("The response of ConfigurationHubApi->update_object_mappings:\n") - pprint(results) - except Exception as e: - print("Exception when calling ConfigurationHubApi->update_object_mappings: %s\n" % e) + try: + # Bulk updates object mappings + new_object_mapping_bulk_patch_request = ObjectMappingBulkPatchRequest.from_json(object_mapping_bulk_patch_request) + results = ConfigurationHubApi(api_client).update_object_mappings(source_org=source_org, object_mapping_bulk_patch_request=new_object_mapping_bulk_patch_request) + # Below is a request that includes all optional parameters + # results = ConfigurationHubApi(api_client).update_object_mappings(source_org, new_object_mapping_bulk_patch_request) + print("The response of ConfigurationHubApi->update_object_mappings:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ConfigurationHubApi->update_object_mappings: %s\n" % e) - path: /connector-rules method: POST xCodeSample: @@ -4385,15 +4249,14 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.connector_rule_create_request import ConnectorRuleCreateRequest from sailpoint.v2024.models.connector_rule_response import ConnectorRuleResponse - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - connector_rule_create_request = '''{ + 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') + connector_rule_create_request = '''{ "sourceCode" : { "version" : "1.0", "script" : "return \"Mr. \" + firstName;" @@ -4419,16 +4282,16 @@ "attributes" : { }, "type" : "BuildMap" }''' # ConnectorRuleCreateRequest | Connector rule to create. - try: - # Create Connector Rule - new_connector_rule_create_request = ConnectorRuleCreateRequest.from_json(connector_rule_create_request) - results = ConnectorRuleManagementApi(api_client).create_connector_rule(x_sail_point_experimental=x_sail_point_experimental, connector_rule_create_request=new_connector_rule_create_request) - # Below is a request that includes all optional parameters - # results = ConnectorRuleManagementApi(api_client).create_connector_rule(x_sail_point_experimental, new_connector_rule_create_request) - print("The response of ConnectorRuleManagementApi->create_connector_rule:\n") - pprint(results) - except Exception as e: - print("Exception when calling ConnectorRuleManagementApi->create_connector_rule: %s\n" % e) + try: + # Create Connector Rule + new_connector_rule_create_request = ConnectorRuleCreateRequest.from_json(connector_rule_create_request) + results = ConnectorRuleManagementApi(api_client).create_connector_rule(x_sail_point_experimental=x_sail_point_experimental, connector_rule_create_request=new_connector_rule_create_request) + # Below is a request that includes all optional parameters + # results = ConnectorRuleManagementApi(api_client).create_connector_rule(x_sail_point_experimental, new_connector_rule_create_request) + print("The response of ConnectorRuleManagementApi->create_connector_rule:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ConnectorRuleManagementApi->create_connector_rule: %s\n" % e) - path: /connector-rules/{id} method: DELETE xCodeSample: @@ -4437,23 +4300,22 @@ source: | from sailpoint.v2024.api.connector_rule_management_api import ConnectorRuleManagementApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | ID of the connector rule to delete. # str | ID of the connector rule 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') - try: - # Delete Connector Rule - - ConnectorRuleManagementApi(api_client).delete_connector_rule(id=id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # ConnectorRuleManagementApi(api_client).delete_connector_rule(id, x_sail_point_experimental) - except Exception as e: - print("Exception when calling ConnectorRuleManagementApi->delete_connector_rule: %s\n" % e) + id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | ID of the connector rule to delete. # str | ID of the connector rule 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') + try: + # Delete Connector Rule + + ConnectorRuleManagementApi(api_client).delete_connector_rule(id=id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # ConnectorRuleManagementApi(api_client).delete_connector_rule(id, x_sail_point_experimental) + except Exception as e: + print("Exception when calling ConnectorRuleManagementApi->delete_connector_rule: %s\n" % e) - path: /connector-rules/{id} method: GET xCodeSample: @@ -4463,25 +4325,24 @@ from sailpoint.v2024.api.connector_rule_management_api import ConnectorRuleManagementApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.connector_rule_response import ConnectorRuleResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | ID of the connector rule to get. # str | ID of the connector rule to get. - 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 Connector Rule - - results = ConnectorRuleManagementApi(api_client).get_connector_rule(id=id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = ConnectorRuleManagementApi(api_client).get_connector_rule(id, x_sail_point_experimental) - print("The response of ConnectorRuleManagementApi->get_connector_rule:\n") - pprint(results) - except Exception as e: - print("Exception when calling ConnectorRuleManagementApi->get_connector_rule: %s\n" % e) + id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | ID of the connector rule to get. # str | ID of the connector rule to get. + 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 Connector Rule + + results = ConnectorRuleManagementApi(api_client).get_connector_rule(id=id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = ConnectorRuleManagementApi(api_client).get_connector_rule(id, x_sail_point_experimental) + print("The response of ConnectorRuleManagementApi->get_connector_rule:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ConnectorRuleManagementApi->get_connector_rule: %s\n" % e) - path: /connector-rules method: GET xCodeSample: @@ -4491,27 +4352,26 @@ from sailpoint.v2024.api.connector_rule_management_api import ConnectorRuleManagementApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.connector_rule_response import ConnectorRuleResponse - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - limit = 50 # int | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) # int | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) - 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) - try: - # List Connector Rules - - results = ConnectorRuleManagementApi(api_client).get_connector_rule_list(x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = ConnectorRuleManagementApi(api_client).get_connector_rule_list(x_sail_point_experimental, limit, offset, count) - print("The response of ConnectorRuleManagementApi->get_connector_rule_list:\n") - pprint(results) - except Exception as e: - print("Exception when calling ConnectorRuleManagementApi->get_connector_rule_list: %s\n" % e) + 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') + limit = 50 # int | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) # int | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) + 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) + try: + # List Connector Rules + + results = ConnectorRuleManagementApi(api_client).get_connector_rule_list(x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = ConnectorRuleManagementApi(api_client).get_connector_rule_list(x_sail_point_experimental, limit, offset, count) + print("The response of ConnectorRuleManagementApi->get_connector_rule_list:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ConnectorRuleManagementApi->get_connector_rule_list: %s\n" % e) - path: /connector-rules/{id} method: PUT xCodeSample: @@ -4522,16 +4382,15 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.connector_rule_response import ConnectorRuleResponse from sailpoint.v2024.models.connector_rule_update_request import ConnectorRuleUpdateRequest - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | ID of the connector rule to update. # str | ID of the connector rule to update. - 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') - connector_rule_update_request = '''{ + id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | ID of the connector rule to update. # str | ID of the connector rule to update. + 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') + connector_rule_update_request = '''{ "sourceCode" : { "version" : "1.0", "script" : "return \"Mr. \" + firstName;" @@ -4558,16 +4417,16 @@ "id" : "8113d48c0b914f17b4c6072d4dcb9dfe", "type" : "BuildMap" }''' # ConnectorRuleUpdateRequest | Connector rule with updated data. (optional) - try: - # Update Connector Rule - - results = ConnectorRuleManagementApi(api_client).put_connector_rule(id=id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = ConnectorRuleManagementApi(api_client).put_connector_rule(id, x_sail_point_experimental, new_connector_rule_update_request) - print("The response of ConnectorRuleManagementApi->put_connector_rule:\n") - pprint(results) - except Exception as e: - print("Exception when calling ConnectorRuleManagementApi->put_connector_rule: %s\n" % e) + try: + # Update Connector Rule + + results = ConnectorRuleManagementApi(api_client).put_connector_rule(id=id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = ConnectorRuleManagementApi(api_client).put_connector_rule(id, x_sail_point_experimental, new_connector_rule_update_request) + print("The response of ConnectorRuleManagementApi->put_connector_rule:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ConnectorRuleManagementApi->put_connector_rule: %s\n" % e) - path: /connector-rules/validate method: POST xCodeSample: @@ -4578,28 +4437,27 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.connector_rule_validation_response import ConnectorRuleValidationResponse from sailpoint.v2024.models.source_code import SourceCode - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - source_code = '''{ + 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') + source_code = '''{ "version" : "1.0", "script" : "return \"Mr. \" + firstName;" }''' # SourceCode | Code to validate. - try: - # Validate Connector Rule - new_source_code = SourceCode.from_json(source_code) - results = ConnectorRuleManagementApi(api_client).test_connector_rule(x_sail_point_experimental=x_sail_point_experimental, source_code=new_source_code) - # Below is a request that includes all optional parameters - # results = ConnectorRuleManagementApi(api_client).test_connector_rule(x_sail_point_experimental, new_source_code) - print("The response of ConnectorRuleManagementApi->test_connector_rule:\n") - pprint(results) - except Exception as e: - print("Exception when calling ConnectorRuleManagementApi->test_connector_rule: %s\n" % e) + try: + # Validate Connector Rule + new_source_code = SourceCode.from_json(source_code) + results = ConnectorRuleManagementApi(api_client).test_connector_rule(x_sail_point_experimental=x_sail_point_experimental, source_code=new_source_code) + # Below is a request that includes all optional parameters + # results = ConnectorRuleManagementApi(api_client).test_connector_rule(x_sail_point_experimental, new_source_code) + print("The response of ConnectorRuleManagementApi->test_connector_rule:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ConnectorRuleManagementApi->test_connector_rule: %s\n" % e) - path: /connectors method: POST xCodeSample: @@ -4610,29 +4468,28 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.v3_connector_dto import V3ConnectorDto from sailpoint.v2024.models.v3_create_connector_dto import V3CreateConnectorDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - v3_create_connector_dto = '''{ + v3_create_connector_dto = '''{ "name" : "custom connector", "directConnect" : true, "className" : "sailpoint.connector.OpenConnectorAdapter", "type" : "custom connector type", "status" : "RELEASED" }''' # V3CreateConnectorDto | - try: - # Create Custom Connector - new_v3_create_connector_dto = V3CreateConnectorDto.from_json(v3_create_connector_dto) - results = ConnectorsApi(api_client).create_custom_connector(v3_create_connector_dto=new_v3_create_connector_dto) - # Below is a request that includes all optional parameters - # results = ConnectorsApi(api_client).create_custom_connector(new_v3_create_connector_dto) - print("The response of ConnectorsApi->create_custom_connector:\n") - pprint(results) - except Exception as e: - print("Exception when calling ConnectorsApi->create_custom_connector: %s\n" % e) + try: + # Create Custom Connector + new_v3_create_connector_dto = V3CreateConnectorDto.from_json(v3_create_connector_dto) + results = ConnectorsApi(api_client).create_custom_connector(v3_create_connector_dto=new_v3_create_connector_dto) + # Below is a request that includes all optional parameters + # results = ConnectorsApi(api_client).create_custom_connector(new_v3_create_connector_dto) + print("The response of ConnectorsApi->create_custom_connector:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ConnectorsApi->create_custom_connector: %s\n" % e) - path: /connectors/{scriptName} method: DELETE xCodeSample: @@ -4641,21 +4498,20 @@ source: | from sailpoint.v2024.api.connectors_api import ConnectorsApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - script_name = 'aScriptName' # str | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. # str | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. - try: - # Delete Connector by Script Name - - ConnectorsApi(api_client).delete_custom_connector(script_name=script_name) - # Below is a request that includes all optional parameters - # ConnectorsApi(api_client).delete_custom_connector(script_name) - except Exception as e: - print("Exception when calling ConnectorsApi->delete_custom_connector: %s\n" % e) + script_name = 'aScriptName' # str | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. # str | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. + try: + # Delete Connector by Script Name + + ConnectorsApi(api_client).delete_custom_connector(script_name=script_name) + # Below is a request that includes all optional parameters + # ConnectorsApi(api_client).delete_custom_connector(script_name) + except Exception as e: + print("Exception when calling ConnectorsApi->delete_custom_connector: %s\n" % e) - path: /connectors/{scriptName} method: GET xCodeSample: @@ -4665,24 +4521,23 @@ from sailpoint.v2024.api.connectors_api import ConnectorsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.connector_detail import ConnectorDetail - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - script_name = 'aScriptName' # str | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. # str | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. - locale = 'de' # str | The locale to apply to the config. If no viable locale is given, it will default to \"en\" (optional) # str | The locale to apply to the config. If no viable locale is given, it will default to \"en\" (optional) - try: - # Get Connector by Script Name - - results = ConnectorsApi(api_client).get_connector(script_name=script_name) - # Below is a request that includes all optional parameters - # results = ConnectorsApi(api_client).get_connector(script_name, locale) - print("The response of ConnectorsApi->get_connector:\n") - pprint(results) - except Exception as e: - print("Exception when calling ConnectorsApi->get_connector: %s\n" % e) + script_name = 'aScriptName' # str | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. # str | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. + locale = 'de' # str | The locale to apply to the config. If no viable locale is given, it will default to \"en\" (optional) # str | The locale to apply to the config. If no viable locale is given, it will default to \"en\" (optional) + try: + # Get Connector by Script Name + + results = ConnectorsApi(api_client).get_connector(script_name=script_name) + # Below is a request that includes all optional parameters + # results = ConnectorsApi(api_client).get_connector(script_name, locale) + print("The response of ConnectorsApi->get_connector:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ConnectorsApi->get_connector: %s\n" % e) - path: /connectors/{scriptName}/correlation-config method: GET xCodeSample: @@ -4691,23 +4546,22 @@ source: | from sailpoint.v2024.api.connectors_api import ConnectorsApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - script_name = 'aScriptName' # str | The scriptName value of the connector. Scriptname is the unique id generated at connector creation. # str | The scriptName value of the connector. Scriptname is the unique id generated at connector creation. - try: - # Get Connector Correlation Configuration - - results = ConnectorsApi(api_client).get_connector_correlation_config(script_name=script_name) - # Below is a request that includes all optional parameters - # results = ConnectorsApi(api_client).get_connector_correlation_config(script_name) - print("The response of ConnectorsApi->get_connector_correlation_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling ConnectorsApi->get_connector_correlation_config: %s\n" % e) + script_name = 'aScriptName' # str | The scriptName value of the connector. Scriptname is the unique id generated at connector creation. # str | The scriptName value of the connector. Scriptname is the unique id generated at connector creation. + try: + # Get Connector Correlation Configuration + + results = ConnectorsApi(api_client).get_connector_correlation_config(script_name=script_name) + # Below is a request that includes all optional parameters + # results = ConnectorsApi(api_client).get_connector_correlation_config(script_name) + print("The response of ConnectorsApi->get_connector_correlation_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ConnectorsApi->get_connector_correlation_config: %s\n" % e) - path: /connectors method: GET xCodeSample: @@ -4717,27 +4571,26 @@ from sailpoint.v2024.api.connectors_api import ConnectorsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.v3_connector_dto import V3ConnectorDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - filters = 'directConnect eq \"true\"' # 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: **name**: *sw, co* **type**: *sw, co, eq* **directConnect**: *eq* **category**: *eq* **features**: *ca* **labels**: *ca* (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: **name**: *sw, co* **type**: *sw, co, eq* **directConnect**: *eq* **category**: *eq* **features**: *ca* **labels**: *ca* (optional) - 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) - locale = 'de' # str | The locale to apply to the config. If no viable locale is given, it will default to \"en\" (optional) # str | The locale to apply to the config. If no viable locale is given, it will default to \"en\" (optional) - try: - # Get Connector List - - results = ConnectorsApi(api_client).get_connector_list() - # Below is a request that includes all optional parameters - # results = ConnectorsApi(api_client).get_connector_list(filters, limit, offset, count, locale) - print("The response of ConnectorsApi->get_connector_list:\n") - pprint(results) - except Exception as e: - print("Exception when calling ConnectorsApi->get_connector_list: %s\n" % e) + filters = 'directConnect eq \"true\"' # 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: **name**: *sw, co* **type**: *sw, co, eq* **directConnect**: *eq* **category**: *eq* **features**: *ca* **labels**: *ca* (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: **name**: *sw, co* **type**: *sw, co, eq* **directConnect**: *eq* **category**: *eq* **features**: *ca* **labels**: *ca* (optional) + 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) + locale = 'de' # str | The locale to apply to the config. If no viable locale is given, it will default to \"en\" (optional) # str | The locale to apply to the config. If no viable locale is given, it will default to \"en\" (optional) + try: + # Get Connector List + + results = ConnectorsApi(api_client).get_connector_list() + # Below is a request that includes all optional parameters + # results = ConnectorsApi(api_client).get_connector_list(filters, limit, offset, count, locale) + print("The response of ConnectorsApi->get_connector_list:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ConnectorsApi->get_connector_list: %s\n" % e) - path: /connectors/{scriptName}/source-config method: GET xCodeSample: @@ -4746,23 +4599,22 @@ source: | from sailpoint.v2024.api.connectors_api import ConnectorsApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - script_name = 'aScriptName' # str | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. # str | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. - try: - # Get Connector Source Configuration - - results = ConnectorsApi(api_client).get_connector_source_config(script_name=script_name) - # Below is a request that includes all optional parameters - # results = ConnectorsApi(api_client).get_connector_source_config(script_name) - print("The response of ConnectorsApi->get_connector_source_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling ConnectorsApi->get_connector_source_config: %s\n" % e) + script_name = 'aScriptName' # str | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. # str | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. + try: + # Get Connector Source Configuration + + results = ConnectorsApi(api_client).get_connector_source_config(script_name=script_name) + # Below is a request that includes all optional parameters + # results = ConnectorsApi(api_client).get_connector_source_config(script_name) + print("The response of ConnectorsApi->get_connector_source_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ConnectorsApi->get_connector_source_config: %s\n" % e) - path: /connectors/{scriptName}/source-template method: GET xCodeSample: @@ -4771,23 +4623,22 @@ source: | from sailpoint.v2024.api.connectors_api import ConnectorsApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - script_name = 'aScriptName' # str | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. # str | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. - try: - # Get Connector Source Template - - results = ConnectorsApi(api_client).get_connector_source_template(script_name=script_name) - # Below is a request that includes all optional parameters - # results = ConnectorsApi(api_client).get_connector_source_template(script_name) - print("The response of ConnectorsApi->get_connector_source_template:\n") - pprint(results) - except Exception as e: - print("Exception when calling ConnectorsApi->get_connector_source_template: %s\n" % e) + script_name = 'aScriptName' # str | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. # str | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. + try: + # Get Connector Source Template + + results = ConnectorsApi(api_client).get_connector_source_template(script_name=script_name) + # Below is a request that includes all optional parameters + # results = ConnectorsApi(api_client).get_connector_source_template(script_name) + print("The response of ConnectorsApi->get_connector_source_template:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ConnectorsApi->get_connector_source_template: %s\n" % e) - path: /connectors/{scriptName}/translations/{locale} method: GET xCodeSample: @@ -4796,24 +4647,23 @@ source: | from sailpoint.v2024.api.connectors_api import ConnectorsApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - script_name = 'aScriptName' # str | The scriptName value of the connector. Scriptname is the unique id generated at connector creation. # str | The scriptName value of the connector. Scriptname is the unique id generated at connector creation. - locale = 'de' # str | The locale to apply to the config. If no viable locale is given, it will default to \"en\" # str | The locale to apply to the config. If no viable locale is given, it will default to \"en\" - try: - # Get Connector Translations - - results = ConnectorsApi(api_client).get_connector_translations(script_name=script_name, locale=locale) - # Below is a request that includes all optional parameters - # results = ConnectorsApi(api_client).get_connector_translations(script_name, locale) - print("The response of ConnectorsApi->get_connector_translations:\n") - pprint(results) - except Exception as e: - print("Exception when calling ConnectorsApi->get_connector_translations: %s\n" % e) + script_name = 'aScriptName' # str | The scriptName value of the connector. Scriptname is the unique id generated at connector creation. # str | The scriptName value of the connector. Scriptname is the unique id generated at connector creation. + locale = 'de' # str | The locale to apply to the config. If no viable locale is given, it will default to \"en\" # str | The locale to apply to the config. If no viable locale is given, it will default to \"en\" + try: + # Get Connector Translations + + results = ConnectorsApi(api_client).get_connector_translations(script_name=script_name, locale=locale) + # Below is a request that includes all optional parameters + # results = ConnectorsApi(api_client).get_connector_translations(script_name, locale) + print("The response of ConnectorsApi->get_connector_translations:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ConnectorsApi->get_connector_translations: %s\n" % e) - path: /connectors/{scriptName}/correlation-config method: PUT xCodeSample: @@ -4823,24 +4673,23 @@ from sailpoint.v2024.api.connectors_api import ConnectorsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.update_detail import UpdateDetail - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - script_name = 'aScriptName' # str | The scriptName value of the connector. Scriptname is the unique id generated at connector creation. # str | The scriptName value of the connector. Scriptname is the unique id generated at connector creation. - file = None # bytearray | connector correlation config xml file # bytearray | connector correlation config xml file - try: - # Update Connector Correlation Configuration - - results = ConnectorsApi(api_client).put_connector_correlation_config(script_name=script_name, file=file) - # Below is a request that includes all optional parameters - # results = ConnectorsApi(api_client).put_connector_correlation_config(script_name, file) - print("The response of ConnectorsApi->put_connector_correlation_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling ConnectorsApi->put_connector_correlation_config: %s\n" % e) + script_name = 'aScriptName' # str | The scriptName value of the connector. Scriptname is the unique id generated at connector creation. # str | The scriptName value of the connector. Scriptname is the unique id generated at connector creation. + file = None # bytearray | connector correlation config xml file # bytearray | connector correlation config xml file + try: + # Update Connector Correlation Configuration + + results = ConnectorsApi(api_client).put_connector_correlation_config(script_name=script_name, file=file) + # Below is a request that includes all optional parameters + # results = ConnectorsApi(api_client).put_connector_correlation_config(script_name, file) + print("The response of ConnectorsApi->put_connector_correlation_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ConnectorsApi->put_connector_correlation_config: %s\n" % e) - path: /connectors/{scriptName}/source-config method: PUT xCodeSample: @@ -4850,24 +4699,23 @@ from sailpoint.v2024.api.connectors_api import ConnectorsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.update_detail import UpdateDetail - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - script_name = 'aScriptName' # str | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. # str | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. - file = None # bytearray | connector source config xml file # bytearray | connector source config xml file - try: - # Update Connector Source Configuration - - results = ConnectorsApi(api_client).put_connector_source_config(script_name=script_name, file=file) - # Below is a request that includes all optional parameters - # results = ConnectorsApi(api_client).put_connector_source_config(script_name, file) - print("The response of ConnectorsApi->put_connector_source_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling ConnectorsApi->put_connector_source_config: %s\n" % e) + script_name = 'aScriptName' # str | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. # str | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. + file = None # bytearray | connector source config xml file # bytearray | connector source config xml file + try: + # Update Connector Source Configuration + + results = ConnectorsApi(api_client).put_connector_source_config(script_name=script_name, file=file) + # Below is a request that includes all optional parameters + # results = ConnectorsApi(api_client).put_connector_source_config(script_name, file) + print("The response of ConnectorsApi->put_connector_source_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ConnectorsApi->put_connector_source_config: %s\n" % e) - path: /connectors/{scriptName}/source-template method: PUT xCodeSample: @@ -4877,24 +4725,23 @@ from sailpoint.v2024.api.connectors_api import ConnectorsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.update_detail import UpdateDetail - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - script_name = 'aScriptName' # str | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. # str | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. - file = None # bytearray | connector source template xml file # bytearray | connector source template xml file - try: - # Update Connector Source Template - - results = ConnectorsApi(api_client).put_connector_source_template(script_name=script_name, file=file) - # Below is a request that includes all optional parameters - # results = ConnectorsApi(api_client).put_connector_source_template(script_name, file) - print("The response of ConnectorsApi->put_connector_source_template:\n") - pprint(results) - except Exception as e: - print("Exception when calling ConnectorsApi->put_connector_source_template: %s\n" % e) + script_name = 'aScriptName' # str | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. # str | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. + file = None # bytearray | connector source template xml file # bytearray | connector source template xml file + try: + # Update Connector Source Template + + results = ConnectorsApi(api_client).put_connector_source_template(script_name=script_name, file=file) + # Below is a request that includes all optional parameters + # results = ConnectorsApi(api_client).put_connector_source_template(script_name, file) + print("The response of ConnectorsApi->put_connector_source_template:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ConnectorsApi->put_connector_source_template: %s\n" % e) - path: /connectors/{scriptName}/translations/{locale} method: PUT xCodeSample: @@ -4904,24 +4751,23 @@ from sailpoint.v2024.api.connectors_api import ConnectorsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.update_detail import UpdateDetail - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - script_name = 'aScriptName' # str | The scriptName value of the connector. Scriptname is the unique id generated at connector creation. # str | The scriptName value of the connector. Scriptname is the unique id generated at connector creation. - locale = 'de' # str | The locale to apply to the config. If no viable locale is given, it will default to \"en\" # str | The locale to apply to the config. If no viable locale is given, it will default to \"en\" - try: - # Update Connector Translations - - results = ConnectorsApi(api_client).put_connector_translations(script_name=script_name, locale=locale) - # Below is a request that includes all optional parameters - # results = ConnectorsApi(api_client).put_connector_translations(script_name, locale) - print("The response of ConnectorsApi->put_connector_translations:\n") - pprint(results) - except Exception as e: - print("Exception when calling ConnectorsApi->put_connector_translations: %s\n" % e) + script_name = 'aScriptName' # str | The scriptName value of the connector. Scriptname is the unique id generated at connector creation. # str | The scriptName value of the connector. Scriptname is the unique id generated at connector creation. + locale = 'de' # str | The locale to apply to the config. If no viable locale is given, it will default to \"en\" # str | The locale to apply to the config. If no viable locale is given, it will default to \"en\" + try: + # Update Connector Translations + + results = ConnectorsApi(api_client).put_connector_translations(script_name=script_name, locale=locale) + # Below is a request that includes all optional parameters + # results = ConnectorsApi(api_client).put_connector_translations(script_name, locale) + print("The response of ConnectorsApi->put_connector_translations:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ConnectorsApi->put_connector_translations: %s\n" % e) - path: /connectors/{scriptName} method: PATCH xCodeSample: @@ -4932,24 +4778,23 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.connector_detail import ConnectorDetail from sailpoint.v2024.models.json_patch_operation import JsonPatchOperation - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - script_name = 'aScriptName' # str | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. # str | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. - json_patch_operation = '''[sailpoint.v2024.JsonPatchOperation()]''' # List[JsonPatchOperation] | A list of connector detail update operations - try: - # Update Connector by Script Name - new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) - results = ConnectorsApi(api_client).update_connector(script_name=script_name, json_patch_operation=new_json_patch_operation) - # Below is a request that includes all optional parameters - # results = ConnectorsApi(api_client).update_connector(script_name, new_json_patch_operation) - print("The response of ConnectorsApi->update_connector:\n") - pprint(results) - except Exception as e: - print("Exception when calling ConnectorsApi->update_connector: %s\n" % e) + script_name = 'aScriptName' # str | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. # str | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. + json_patch_operation = '''[sailpoint.v2024.JsonPatchOperation()]''' # List[JsonPatchOperation] | A list of connector detail update operations + try: + # Update Connector by Script Name + new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) + results = ConnectorsApi(api_client).update_connector(script_name=script_name, json_patch_operation=new_json_patch_operation) + # Below is a request that includes all optional parameters + # results = ConnectorsApi(api_client).update_connector(script_name, new_json_patch_operation) + print("The response of ConnectorsApi->update_connector:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ConnectorsApi->update_connector: %s\n" % e) - path: /form-definitions method: POST xCodeSample: @@ -4960,15 +4805,14 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.create_form_definition_request import CreateFormDefinitionRequest from sailpoint.v2024.models.form_definition_response import FormDefinitionResponse - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - body = '''{ + 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') + body = '''{ "owner" : { "name" : "Grant Smith", "id" : "2c9180867624cbd7017642d8c8c81f67", @@ -5079,16 +4923,16 @@ "key" : "department" } ] }''' # CreateFormDefinitionRequest | Body is the request payload to create form definition request (optional) - try: - # Creates a form definition. - - results = CustomFormsApi(api_client).create_form_definition(x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = CustomFormsApi(api_client).create_form_definition(x_sail_point_experimental, new_body) - print("The response of CustomFormsApi->create_form_definition:\n") - pprint(results) - except Exception as e: - print("Exception when calling CustomFormsApi->create_form_definition: %s\n" % e) + try: + # Creates a form definition. + + results = CustomFormsApi(api_client).create_form_definition(x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = CustomFormsApi(api_client).create_form_definition(x_sail_point_experimental, new_body) + print("The response of CustomFormsApi->create_form_definition:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CustomFormsApi->create_form_definition: %s\n" % e) - path: /form-definitions/forms-action-dynamic-schema method: POST xCodeSample: @@ -5099,15 +4943,14 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.form_definition_dynamic_schema_request import FormDefinitionDynamicSchemaRequest from sailpoint.v2024.models.form_definition_dynamic_schema_response import FormDefinitionDynamicSchemaResponse - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - body = '''{ + 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') + body = '''{ "description" : "A description", "attributes" : { "formDefinitionId" : "00000000-0000-0000-0000-000000000000" @@ -5116,16 +4959,16 @@ "type" : "action", "versionNumber" : 1 }''' # FormDefinitionDynamicSchemaRequest | Body is the request payload to create a form definition dynamic schema (optional) - try: - # Generate JSON Schema dynamically. - - results = CustomFormsApi(api_client).create_form_definition_dynamic_schema(x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = CustomFormsApi(api_client).create_form_definition_dynamic_schema(x_sail_point_experimental, new_body) - print("The response of CustomFormsApi->create_form_definition_dynamic_schema:\n") - pprint(results) - except Exception as e: - print("Exception when calling CustomFormsApi->create_form_definition_dynamic_schema: %s\n" % e) + try: + # Generate JSON Schema dynamically. + + results = CustomFormsApi(api_client).create_form_definition_dynamic_schema(x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = CustomFormsApi(api_client).create_form_definition_dynamic_schema(x_sail_point_experimental, new_body) + print("The response of CustomFormsApi->create_form_definition_dynamic_schema:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CustomFormsApi->create_form_definition_dynamic_schema: %s\n" % e) - path: /form-definitions/{formDefinitionID}/upload method: POST xCodeSample: @@ -5135,26 +4978,25 @@ from sailpoint.v2024.api.custom_forms_api import CustomFormsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.form_definition_file_upload_response import FormDefinitionFileUploadResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - form_definition_id = '00000000-0000-0000-0000-000000000000' # str | FormDefinitionID String specifying FormDefinitionID # str | FormDefinitionID String specifying FormDefinitionID - 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') - file = None # bytearray | File specifying the multipart # bytearray | File specifying the multipart - try: - # Upload new form definition file. - - results = CustomFormsApi(api_client).create_form_definition_file_request(form_definition_id=form_definition_id, x_sail_point_experimental=x_sail_point_experimental, file=file) - # Below is a request that includes all optional parameters - # results = CustomFormsApi(api_client).create_form_definition_file_request(form_definition_id, x_sail_point_experimental, file) - print("The response of CustomFormsApi->create_form_definition_file_request:\n") - pprint(results) - except Exception as e: - print("Exception when calling CustomFormsApi->create_form_definition_file_request: %s\n" % e) + form_definition_id = '00000000-0000-0000-0000-000000000000' # str | FormDefinitionID String specifying FormDefinitionID # str | FormDefinitionID String specifying FormDefinitionID + 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') + file = None # bytearray | File specifying the multipart # bytearray | File specifying the multipart + try: + # Upload new form definition file. + + results = CustomFormsApi(api_client).create_form_definition_file_request(form_definition_id=form_definition_id, x_sail_point_experimental=x_sail_point_experimental, file=file) + # Below is a request that includes all optional parameters + # results = CustomFormsApi(api_client).create_form_definition_file_request(form_definition_id, x_sail_point_experimental, file) + print("The response of CustomFormsApi->create_form_definition_file_request:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CustomFormsApi->create_form_definition_file_request: %s\n" % e) - path: /form-instances method: POST xCodeSample: @@ -5165,15 +5007,14 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.create_form_instance_request import CreateFormInstanceRequest from sailpoint.v2024.models.form_instance_response import FormInstanceResponse - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - body = '''{ + 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') + body = '''{ "formInput" : { "input1" : "Sales" }, @@ -5194,16 +5035,16 @@ "state" : "ASSIGNED", "ttl" : 1571827560 }''' # CreateFormInstanceRequest | Body is the request payload to create a form instance (optional) - try: - # Creates a form instance. - - results = CustomFormsApi(api_client).create_form_instance(x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = CustomFormsApi(api_client).create_form_instance(x_sail_point_experimental, new_body) - print("The response of CustomFormsApi->create_form_instance:\n") - pprint(results) - except Exception as e: - print("Exception when calling CustomFormsApi->create_form_instance: %s\n" % e) + try: + # Creates a form instance. + + results = CustomFormsApi(api_client).create_form_instance(x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = CustomFormsApi(api_client).create_form_instance(x_sail_point_experimental, new_body) + print("The response of CustomFormsApi->create_form_instance:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CustomFormsApi->create_form_instance: %s\n" % e) - path: /form-definitions/{formDefinitionID} method: DELETE xCodeSample: @@ -5212,25 +5053,24 @@ source: | from sailpoint.v2024.api.custom_forms_api import CustomFormsApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - form_definition_id = '00000000-0000-0000-0000-000000000000' # str | Form definition ID # str | Form definition ID - 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: - # Deletes a form definition. - - results = CustomFormsApi(api_client).delete_form_definition(form_definition_id=form_definition_id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = CustomFormsApi(api_client).delete_form_definition(form_definition_id, x_sail_point_experimental) - print("The response of CustomFormsApi->delete_form_definition:\n") - pprint(results) - except Exception as e: - print("Exception when calling CustomFormsApi->delete_form_definition: %s\n" % e) + form_definition_id = '00000000-0000-0000-0000-000000000000' # str | Form definition ID # str | Form definition ID + 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: + # Deletes a form definition. + + results = CustomFormsApi(api_client).delete_form_definition(form_definition_id=form_definition_id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = CustomFormsApi(api_client).delete_form_definition(form_definition_id, x_sail_point_experimental) + print("The response of CustomFormsApi->delete_form_definition:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CustomFormsApi->delete_form_definition: %s\n" % e) - path: /form-definitions/export method: GET xCodeSample: @@ -5240,28 +5080,27 @@ from sailpoint.v2024.api.custom_forms_api import CustomFormsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.export_form_definitions_by_tenant200_response_inner import ExportFormDefinitionsByTenant200ResponseInner - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - offset = 0 # int | Offset Integer specifying the offset of the first result from the beginning of the collection. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). The offset value is record-based, not page-based, and the index starts at 0. (optional) (default to 0) # int | Offset Integer specifying the offset of the first result from the beginning of the collection. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). The offset value is record-based, not page-based, and the index starts at 0. (optional) (default to 0) - limit = 250 # int | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 250) # int | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 250) - filters = 'name sw \"my form\"' # 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: **name**: *eq, gt, sw, in* **description**: *eq, gt, sw, in* **created**: *eq, gt, sw, in* **modified**: *eq, gt, sw, in* (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: **name**: *eq, gt, sw, in* **description**: *eq, gt, sw, in* **created**: *eq, gt, sw, in* **modified**: *eq, gt, sw, in* (optional) - sorters = 'name' # 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: **name, description, created, modified** (optional) (default to 'name') # 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: **name, description, created, modified** (optional) (default to 'name') - try: - # List form definitions by tenant. - - results = CustomFormsApi(api_client).export_form_definitions_by_tenant(x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = CustomFormsApi(api_client).export_form_definitions_by_tenant(x_sail_point_experimental, offset, limit, filters, sorters) - print("The response of CustomFormsApi->export_form_definitions_by_tenant:\n") - pprint(results) - except Exception as e: - print("Exception when calling CustomFormsApi->export_form_definitions_by_tenant: %s\n" % e) + 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') + offset = 0 # int | Offset Integer specifying the offset of the first result from the beginning of the collection. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). The offset value is record-based, not page-based, and the index starts at 0. (optional) (default to 0) # int | Offset Integer specifying the offset of the first result from the beginning of the collection. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). The offset value is record-based, not page-based, and the index starts at 0. (optional) (default to 0) + limit = 250 # int | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 250) # int | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 250) + filters = 'name sw \"my form\"' # 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: **name**: *eq, gt, sw, in* **description**: *eq, gt, sw, in* **created**: *eq, gt, sw, in* **modified**: *eq, gt, sw, in* (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: **name**: *eq, gt, sw, in* **description**: *eq, gt, sw, in* **created**: *eq, gt, sw, in* **modified**: *eq, gt, sw, in* (optional) + sorters = 'name' # 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: **name, description, created, modified** (optional) (default to 'name') # 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: **name, description, created, modified** (optional) (default to 'name') + try: + # List form definitions by tenant. + + results = CustomFormsApi(api_client).export_form_definitions_by_tenant(x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = CustomFormsApi(api_client).export_form_definitions_by_tenant(x_sail_point_experimental, offset, limit, filters, sorters) + print("The response of CustomFormsApi->export_form_definitions_by_tenant:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CustomFormsApi->export_form_definitions_by_tenant: %s\n" % e) - path: /form-definitions/{formDefinitionID}/file/{fileID} method: GET xCodeSample: @@ -5270,26 +5109,25 @@ source: | from sailpoint.v2024.api.custom_forms_api import CustomFormsApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - form_definition_id = '00000000-0000-0000-0000-000000000000' # str | FormDefinitionID Form definition ID # str | FormDefinitionID Form definition ID - file_id = '00000031N0J7R2B57M8YG73J7M.png' # str | FileID String specifying the hashed name of the uploaded file we are retrieving. # str | FileID String specifying the hashed name of the uploaded file we are retrieving. - 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: - # Download definition file by fileId. - - results = CustomFormsApi(api_client).get_file_from_s3(form_definition_id=form_definition_id, file_id=file_id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = CustomFormsApi(api_client).get_file_from_s3(form_definition_id, file_id, x_sail_point_experimental) - print("The response of CustomFormsApi->get_file_from_s3:\n") - pprint(results) - except Exception as e: - print("Exception when calling CustomFormsApi->get_file_from_s3: %s\n" % e) + form_definition_id = '00000000-0000-0000-0000-000000000000' # str | FormDefinitionID Form definition ID # str | FormDefinitionID Form definition ID + file_id = '00000031N0J7R2B57M8YG73J7M.png' # str | FileID String specifying the hashed name of the uploaded file we are retrieving. # str | FileID String specifying the hashed name of the uploaded file we are retrieving. + 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: + # Download definition file by fileId. + + results = CustomFormsApi(api_client).get_file_from_s3(form_definition_id=form_definition_id, file_id=file_id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = CustomFormsApi(api_client).get_file_from_s3(form_definition_id, file_id, x_sail_point_experimental) + print("The response of CustomFormsApi->get_file_from_s3:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CustomFormsApi->get_file_from_s3: %s\n" % e) - path: /form-definitions/{formDefinitionID} method: GET xCodeSample: @@ -5299,25 +5137,24 @@ from sailpoint.v2024.api.custom_forms_api import CustomFormsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.form_definition_response import FormDefinitionResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - form_definition_id = '00000000-0000-0000-0000-000000000000' # str | Form definition ID # str | Form definition ID - 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: - # Return a form definition. - - results = CustomFormsApi(api_client).get_form_definition_by_key(form_definition_id=form_definition_id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = CustomFormsApi(api_client).get_form_definition_by_key(form_definition_id, x_sail_point_experimental) - print("The response of CustomFormsApi->get_form_definition_by_key:\n") - pprint(results) - except Exception as e: - print("Exception when calling CustomFormsApi->get_form_definition_by_key: %s\n" % e) + form_definition_id = '00000000-0000-0000-0000-000000000000' # str | Form definition ID # str | Form definition ID + 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: + # Return a form definition. + + results = CustomFormsApi(api_client).get_form_definition_by_key(form_definition_id=form_definition_id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = CustomFormsApi(api_client).get_form_definition_by_key(form_definition_id, x_sail_point_experimental) + print("The response of CustomFormsApi->get_form_definition_by_key:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CustomFormsApi->get_form_definition_by_key: %s\n" % e) - path: /form-instances/{formInstanceID} method: GET xCodeSample: @@ -5327,25 +5164,24 @@ from sailpoint.v2024.api.custom_forms_api import CustomFormsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.form_instance_response import FormInstanceResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - form_instance_id = '00000000-0000-0000-0000-000000000000' # str | Form instance ID # str | Form instance ID - 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: - # Returns a form instance. - - results = CustomFormsApi(api_client).get_form_instance_by_key(form_instance_id=form_instance_id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = CustomFormsApi(api_client).get_form_instance_by_key(form_instance_id, x_sail_point_experimental) - print("The response of CustomFormsApi->get_form_instance_by_key:\n") - pprint(results) - except Exception as e: - print("Exception when calling CustomFormsApi->get_form_instance_by_key: %s\n" % e) + form_instance_id = '00000000-0000-0000-0000-000000000000' # str | Form instance ID # str | Form instance ID + 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: + # Returns a form instance. + + results = CustomFormsApi(api_client).get_form_instance_by_key(form_instance_id=form_instance_id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = CustomFormsApi(api_client).get_form_instance_by_key(form_instance_id, x_sail_point_experimental) + print("The response of CustomFormsApi->get_form_instance_by_key:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CustomFormsApi->get_form_instance_by_key: %s\n" % e) - path: /form-instances/{formInstanceID}/file/{fileID} method: GET xCodeSample: @@ -5354,26 +5190,25 @@ source: | from sailpoint.v2024.api.custom_forms_api import CustomFormsApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - form_instance_id = '00000000-0000-0000-0000-000000000000' # str | FormInstanceID Form instance ID # str | FormInstanceID Form instance ID - file_id = '00000031N0J7R2B57M8YG73J7M.png' # str | FileID String specifying the hashed name of the uploaded file we are retrieving. # str | FileID String specifying the hashed name of the uploaded file we are retrieving. - 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: - # Download instance file by fileId. - - results = CustomFormsApi(api_client).get_form_instance_file(form_instance_id=form_instance_id, file_id=file_id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = CustomFormsApi(api_client).get_form_instance_file(form_instance_id, file_id, x_sail_point_experimental) - print("The response of CustomFormsApi->get_form_instance_file:\n") - pprint(results) - except Exception as e: - print("Exception when calling CustomFormsApi->get_form_instance_file: %s\n" % e) + form_instance_id = '00000000-0000-0000-0000-000000000000' # str | FormInstanceID Form instance ID # str | FormInstanceID Form instance ID + file_id = '00000031N0J7R2B57M8YG73J7M.png' # str | FileID String specifying the hashed name of the uploaded file we are retrieving. # str | FileID String specifying the hashed name of the uploaded file we are retrieving. + 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: + # Download instance file by fileId. + + results = CustomFormsApi(api_client).get_form_instance_file(form_instance_id=form_instance_id, file_id=file_id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = CustomFormsApi(api_client).get_form_instance_file(form_instance_id, file_id, x_sail_point_experimental) + print("The response of CustomFormsApi->get_form_instance_file:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CustomFormsApi->get_form_instance_file: %s\n" % e) - path: /form-definitions/import method: POST xCodeSample: @@ -5384,25 +5219,24 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.import_form_definitions202_response import ImportFormDefinitions202Response from sailpoint.v2024.models.import_form_definitions_request_inner import ImportFormDefinitionsRequestInner - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - body = '''[{version=1, self={name=All fields not required, id=05ed4edb-d0a9-41d9-ad0c-2f6e486ec4aa, type=FORM_DEFINITION}, object={id=05ed4edb-d0a9-41d9-ad0c-2f6e486ec4aa, name=All fields not required, description=description, owner={type=IDENTITY, id=3447d8ec2602455ab6f1e8408a0f0150}, usedBy=[{type=WORKFLOW, id=5008594c-dacc-4295-8fee-41df60477304}, {type=WORKFLOW, id=97e75a75-c179-4fbc-a2da-b5fa4aaa8743}], formInput=[{type=STRING, label=input1, description=A single dynamic scalar value (i.e. number, string, date, etc) that can be passed into the form for use in conditional logic}], formElements=[{id=3069272797630701, elementType=SECTION, config={label=First Section, formElements=[{id=3069272797630700, elementType=TEXT, key=firstName, config={label=First Name}}, {id=3498415402897539, elementType=TEXT, key=lastName, config={label=Last Name}}]}}], formConditions=[{ruleOperator=AND, rules=[{sourceType=INPUT, source=Department, operator=EQ, valueType=STRING, value=Sales}], effects=[{effectType=HIDE, config={element=2614088730489570}}]}], created=2022-10-04T19:27:04.456Z, modified=2022-11-16T20:45:02.172Z}}]''' # List[ImportFormDefinitionsRequestInner] | Body is the request payload to import form definitions (optional) - try: - # Import form definitions from export. - - results = CustomFormsApi(api_client).import_form_definitions(x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = CustomFormsApi(api_client).import_form_definitions(x_sail_point_experimental, new_body) - print("The response of CustomFormsApi->import_form_definitions:\n") - pprint(results) - except Exception as e: - print("Exception when calling CustomFormsApi->import_form_definitions: %s\n" % e) + 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') + body = '''[{version=1, self={name=All fields not required, id=05ed4edb-d0a9-41d9-ad0c-2f6e486ec4aa, type=FORM_DEFINITION}, object={id=05ed4edb-d0a9-41d9-ad0c-2f6e486ec4aa, name=All fields not required, description=description, owner={type=IDENTITY, id=3447d8ec2602455ab6f1e8408a0f0150}, usedBy=[{type=WORKFLOW, id=5008594c-dacc-4295-8fee-41df60477304}, {type=WORKFLOW, id=97e75a75-c179-4fbc-a2da-b5fa4aaa8743}], formInput=[{type=STRING, label=input1, description=A single dynamic scalar value (i.e. number, string, date, etc) that can be passed into the form for use in conditional logic}], formElements=[{id=3069272797630701, elementType=SECTION, config={label=First Section, formElements=[{id=3069272797630700, elementType=TEXT, key=firstName, config={label=First Name}}, {id=3498415402897539, elementType=TEXT, key=lastName, config={label=Last Name}}]}}], formConditions=[{ruleOperator=AND, rules=[{sourceType=INPUT, source=Department, operator=EQ, valueType=STRING, value=Sales}], effects=[{effectType=HIDE, config={element=2614088730489570}}]}], created=2022-10-04T19:27:04.456Z, modified=2022-11-16T20:45:02.172Z}}]''' # List[ImportFormDefinitionsRequestInner] | Body is the request payload to import form definitions (optional) + try: + # Import form definitions from export. + + results = CustomFormsApi(api_client).import_form_definitions(x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = CustomFormsApi(api_client).import_form_definitions(x_sail_point_experimental, new_body) + print("The response of CustomFormsApi->import_form_definitions:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CustomFormsApi->import_form_definitions: %s\n" % e) - path: /form-definitions/{formDefinitionID} method: PATCH xCodeSample: @@ -5412,26 +5246,25 @@ from sailpoint.v2024.api.custom_forms_api import CustomFormsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.form_definition_response import FormDefinitionResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - form_definition_id = '00000000-0000-0000-0000-000000000000' # str | Form definition ID # str | Form definition ID - 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') - body = '''[{op=replace, path=/description, value=test-description}]''' # List[Dict[str, object]] | Body is the request payload to patch a form definition, check: https://jsonpatch.com (optional) - try: - # Patch a form definition. - - results = CustomFormsApi(api_client).patch_form_definition(form_definition_id=form_definition_id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = CustomFormsApi(api_client).patch_form_definition(form_definition_id, x_sail_point_experimental, new_body) - print("The response of CustomFormsApi->patch_form_definition:\n") - pprint(results) - except Exception as e: - print("Exception when calling CustomFormsApi->patch_form_definition: %s\n" % e) + form_definition_id = '00000000-0000-0000-0000-000000000000' # str | Form definition ID # str | Form definition ID + 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') + body = '''[{op=replace, path=/description, value=test-description}]''' # List[Dict[str, object]] | Body is the request payload to patch a form definition, check: https://jsonpatch.com (optional) + try: + # Patch a form definition. + + results = CustomFormsApi(api_client).patch_form_definition(form_definition_id=form_definition_id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = CustomFormsApi(api_client).patch_form_definition(form_definition_id, x_sail_point_experimental, new_body) + print("The response of CustomFormsApi->patch_form_definition:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CustomFormsApi->patch_form_definition: %s\n" % e) - path: /form-instances/{formInstanceID} method: PATCH xCodeSample: @@ -5441,26 +5274,25 @@ from sailpoint.v2024.api.custom_forms_api import CustomFormsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.form_instance_response import FormInstanceResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - form_instance_id = '00000000-0000-0000-0000-000000000000' # str | Form instance ID # str | Form instance ID - 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') - body = '''[{op=replace, path=/state, value=SUBMITTED}, {op=replace, path=/formData, value={a-key-1=a-value-1, a-key-2=true, a-key-3=1}}]''' # List[Dict[str, object]] | Body is the request payload to patch a form instance, check: https://jsonpatch.com (optional) - try: - # Patch a form instance. - - results = CustomFormsApi(api_client).patch_form_instance(form_instance_id=form_instance_id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = CustomFormsApi(api_client).patch_form_instance(form_instance_id, x_sail_point_experimental, new_body) - print("The response of CustomFormsApi->patch_form_instance:\n") - pprint(results) - except Exception as e: - print("Exception when calling CustomFormsApi->patch_form_instance: %s\n" % e) + form_instance_id = '00000000-0000-0000-0000-000000000000' # str | Form instance ID # str | Form instance ID + 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') + body = '''[{op=replace, path=/state, value=SUBMITTED}, {op=replace, path=/formData, value={a-key-1=a-value-1, a-key-2=true, a-key-3=1}}]''' # List[Dict[str, object]] | Body is the request payload to patch a form instance, check: https://jsonpatch.com (optional) + try: + # Patch a form instance. + + results = CustomFormsApi(api_client).patch_form_instance(form_instance_id=form_instance_id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = CustomFormsApi(api_client).patch_form_instance(form_instance_id, x_sail_point_experimental, new_body) + print("The response of CustomFormsApi->patch_form_instance:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CustomFormsApi->patch_form_instance: %s\n" % e) - path: /form-definitions method: GET xCodeSample: @@ -5470,28 +5302,27 @@ from sailpoint.v2024.api.custom_forms_api import CustomFormsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.list_form_definitions_by_tenant_response import ListFormDefinitionsByTenantResponse - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - offset = 0 # int | Offset Integer specifying the offset of the first result from the beginning of the collection. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). The offset value is record-based, not page-based, and the index starts at 0. (optional) (default to 0) # int | Offset Integer specifying the offset of the first result from the beginning of the collection. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). The offset value is record-based, not page-based, and the index starts at 0. (optional) (default to 0) - limit = 250 # int | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 250) # int | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 250) - filters = 'name sw \"my form\"' # 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: **name**: *eq, gt, sw, in* **description**: *eq, gt, sw, in* **created**: *eq, gt, sw, in* **modified**: *eq, gt, sw, in* (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: **name**: *eq, gt, sw, in* **description**: *eq, gt, sw, in* **created**: *eq, gt, sw, in* **modified**: *eq, gt, sw, in* (optional) - sorters = 'name' # 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: **name, description, created, modified** (optional) (default to 'name') # 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: **name, description, created, modified** (optional) (default to 'name') - try: - # Export form definitions by tenant. - - results = CustomFormsApi(api_client).search_form_definitions_by_tenant(x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = CustomFormsApi(api_client).search_form_definitions_by_tenant(x_sail_point_experimental, offset, limit, filters, sorters) - print("The response of CustomFormsApi->search_form_definitions_by_tenant:\n") - pprint(results) - except Exception as e: - print("Exception when calling CustomFormsApi->search_form_definitions_by_tenant: %s\n" % e) + 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') + offset = 0 # int | Offset Integer specifying the offset of the first result from the beginning of the collection. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). The offset value is record-based, not page-based, and the index starts at 0. (optional) (default to 0) # int | Offset Integer specifying the offset of the first result from the beginning of the collection. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). The offset value is record-based, not page-based, and the index starts at 0. (optional) (default to 0) + limit = 250 # int | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 250) # int | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 250) + filters = 'name sw \"my form\"' # 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: **name**: *eq, gt, sw, in* **description**: *eq, gt, sw, in* **created**: *eq, gt, sw, in* **modified**: *eq, gt, sw, in* (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: **name**: *eq, gt, sw, in* **description**: *eq, gt, sw, in* **created**: *eq, gt, sw, in* **modified**: *eq, gt, sw, in* (optional) + sorters = 'name' # 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: **name, description, created, modified** (optional) (default to 'name') # 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: **name, description, created, modified** (optional) (default to 'name') + try: + # Export form definitions by tenant. + + results = CustomFormsApi(api_client).search_form_definitions_by_tenant(x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = CustomFormsApi(api_client).search_form_definitions_by_tenant(x_sail_point_experimental, offset, limit, filters, sorters) + print("The response of CustomFormsApi->search_form_definitions_by_tenant:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CustomFormsApi->search_form_definitions_by_tenant: %s\n" % e) - path: /form-instances/{formInstanceID}/data-source/{formElementID} method: GET xCodeSample: @@ -5501,29 +5332,28 @@ from sailpoint.v2024.api.custom_forms_api import CustomFormsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.list_form_element_data_by_element_id_response import ListFormElementDataByElementIDResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - form_instance_id = '00000000-0000-0000-0000-000000000000' # str | Form instance ID # str | Form instance ID - form_element_id = '1' # str | Form element ID # str | Form element ID - 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') - limit = 250 # int | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 250) # int | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 250) - filters = 'value eq \"ID01\"' # 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: **value**: *eq, ne, in* Supported composite operators: *not* Only a single *not* may be used, and it can only be used with the `in` operator. The `not` composite operator must be used in front of the field. For example, the following is valid: `not value in (\"ID01\")` (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: **value**: *eq, ne, in* Supported composite operators: *not* Only a single *not* may be used, and it can only be used with the `in` operator. The `not` composite operator must be used in front of the field. For example, the following is valid: `not value in (\"ID01\")` (optional) - query = 'support' # str | String that is passed to the underlying API to filter other (non-ID) fields. For example, for access profile data sources, this string will be passed to the access profile api and used with a \"starts with\" filter against several fields. (optional) # str | String that is passed to the underlying API to filter other (non-ID) fields. For example, for access profile data sources, this string will be passed to the access profile api and used with a \"starts with\" filter against several fields. (optional) - try: - # Retrieves dynamic data by element. - - results = CustomFormsApi(api_client).search_form_element_data_by_element_id(form_instance_id=form_instance_id, form_element_id=form_element_id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = CustomFormsApi(api_client).search_form_element_data_by_element_id(form_instance_id, form_element_id, x_sail_point_experimental, limit, filters, query) - print("The response of CustomFormsApi->search_form_element_data_by_element_id:\n") - pprint(results) - except Exception as e: - print("Exception when calling CustomFormsApi->search_form_element_data_by_element_id: %s\n" % e) + form_instance_id = '00000000-0000-0000-0000-000000000000' # str | Form instance ID # str | Form instance ID + form_element_id = '1' # str | Form element ID # str | Form element ID + 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') + limit = 250 # int | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 250) # int | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 250) + filters = 'value eq \"ID01\"' # 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: **value**: *eq, ne, in* Supported composite operators: *not* Only a single *not* may be used, and it can only be used with the `in` operator. The `not` composite operator must be used in front of the field. For example, the following is valid: `not value in (\"ID01\")` (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: **value**: *eq, ne, in* Supported composite operators: *not* Only a single *not* may be used, and it can only be used with the `in` operator. The `not` composite operator must be used in front of the field. For example, the following is valid: `not value in (\"ID01\")` (optional) + query = 'support' # str | String that is passed to the underlying API to filter other (non-ID) fields. For example, for access profile data sources, this string will be passed to the access profile api and used with a \"starts with\" filter against several fields. (optional) # str | String that is passed to the underlying API to filter other (non-ID) fields. For example, for access profile data sources, this string will be passed to the access profile api and used with a \"starts with\" filter against several fields. (optional) + try: + # Retrieves dynamic data by element. + + results = CustomFormsApi(api_client).search_form_element_data_by_element_id(form_instance_id=form_instance_id, form_element_id=form_element_id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = CustomFormsApi(api_client).search_form_element_data_by_element_id(form_instance_id, form_element_id, x_sail_point_experimental, limit, filters, query) + print("The response of CustomFormsApi->search_form_element_data_by_element_id:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CustomFormsApi->search_form_element_data_by_element_id: %s\n" % e) - path: /form-instances method: GET xCodeSample: @@ -5533,24 +5363,23 @@ from sailpoint.v2024.api.custom_forms_api import CustomFormsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.list_form_instances_by_tenant_response import ListFormInstancesByTenantResponse - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - try: - # List form instances by tenant. - - results = CustomFormsApi(api_client).search_form_instances_by_tenant(x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = CustomFormsApi(api_client).search_form_instances_by_tenant(x_sail_point_experimental) - print("The response of CustomFormsApi->search_form_instances_by_tenant:\n") - pprint(results) - except Exception as e: - print("Exception when calling CustomFormsApi->search_form_instances_by_tenant: %s\n" % e) + 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: + # List form instances by tenant. + + results = CustomFormsApi(api_client).search_form_instances_by_tenant(x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = CustomFormsApi(api_client).search_form_instances_by_tenant(x_sail_point_experimental) + print("The response of CustomFormsApi->search_form_instances_by_tenant:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CustomFormsApi->search_form_instances_by_tenant: %s\n" % e) - path: /form-definitions/predefined-select-options method: GET xCodeSample: @@ -5560,24 +5389,23 @@ from sailpoint.v2024.api.custom_forms_api import CustomFormsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.list_predefined_select_options_response import ListPredefinedSelectOptionsResponse - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - try: - # List predefined select options. - - results = CustomFormsApi(api_client).search_pre_defined_select_options(x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = CustomFormsApi(api_client).search_pre_defined_select_options(x_sail_point_experimental) - print("The response of CustomFormsApi->search_pre_defined_select_options:\n") - pprint(results) - except Exception as e: - print("Exception when calling CustomFormsApi->search_pre_defined_select_options: %s\n" % e) + 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: + # List predefined select options. + + results = CustomFormsApi(api_client).search_pre_defined_select_options(x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = CustomFormsApi(api_client).search_pre_defined_select_options(x_sail_point_experimental) + print("The response of CustomFormsApi->search_pre_defined_select_options:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CustomFormsApi->search_pre_defined_select_options: %s\n" % e) - path: /form-definitions/{formDefinitionID}/data-source method: POST xCodeSample: @@ -5588,19 +5416,18 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.form_element_preview_request import FormElementPreviewRequest from sailpoint.v2024.models.preview_data_source_response import PreviewDataSourceResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - form_definition_id = '00000000-0000-0000-0000-000000000000' # str | Form definition ID # str | Form definition ID - 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') - limit = 10 # int | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 10) # int | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 10) - filters = 'value eq \"ID01\"' # 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: **value**: *eq, ne, in* Supported composite operators: *not* Only a single *not* may be used, and it can only be used with the `in` operator. The `not` composite operator must be used in front of the field. For example, the following is valid: `not value in (\"ID01\")` (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: **value**: *eq, ne, in* Supported composite operators: *not* Only a single *not* may be used, and it can only be used with the `in` operator. The `not` composite operator must be used in front of the field. For example, the following is valid: `not value in (\"ID01\")` (optional) - query = 'ac' # str | String that is passed to the underlying API to filter other (non-ID) fields. For example, for access profile data sources, this string will be passed to the access profile api and used with a \"starts with\" filter against several fields. (optional) # str | String that is passed to the underlying API to filter other (non-ID) fields. For example, for access profile data sources, this string will be passed to the access profile api and used with a \"starts with\" filter against several fields. (optional) - form_element_preview_request = '''{ + form_definition_id = '00000000-0000-0000-0000-000000000000' # str | Form definition ID # str | Form definition ID + 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') + limit = 10 # int | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 10) # int | Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional) (default to 10) + filters = 'value eq \"ID01\"' # 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: **value**: *eq, ne, in* Supported composite operators: *not* Only a single *not* may be used, and it can only be used with the `in` operator. The `not` composite operator must be used in front of the field. For example, the following is valid: `not value in (\"ID01\")` (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: **value**: *eq, ne, in* Supported composite operators: *not* Only a single *not* may be used, and it can only be used with the `in` operator. The `not` composite operator must be used in front of the field. For example, the following is valid: `not value in (\"ID01\")` (optional) + query = 'ac' # str | String that is passed to the underlying API to filter other (non-ID) fields. For example, for access profile data sources, this string will be passed to the access profile api and used with a \"starts with\" filter against several fields. (optional) # str | String that is passed to the underlying API to filter other (non-ID) fields. For example, for access profile data sources, this string will be passed to the access profile api and used with a \"starts with\" filter against several fields. (optional) + form_element_preview_request = '''{ "dataSource" : { "config" : { "indices" : [ "identities" ], @@ -5611,16 +5438,16 @@ "dataSourceType" : "STATIC" } }''' # FormElementPreviewRequest | Body is the request payload to create a form definition dynamic schema (optional) - try: - # Preview form definition data source. - - results = CustomFormsApi(api_client).show_preview_data_source(form_definition_id=form_definition_id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = CustomFormsApi(api_client).show_preview_data_source(form_definition_id, x_sail_point_experimental, limit, filters, query, new_form_element_preview_request) - print("The response of CustomFormsApi->show_preview_data_source:\n") - pprint(results) - except Exception as e: - print("Exception when calling CustomFormsApi->show_preview_data_source: %s\n" % e) + try: + # Preview form definition data source. + + results = CustomFormsApi(api_client).show_preview_data_source(form_definition_id=form_definition_id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = CustomFormsApi(api_client).show_preview_data_source(form_definition_id, x_sail_point_experimental, limit, filters, query, new_form_element_preview_request) + print("The response of CustomFormsApi->show_preview_data_source:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CustomFormsApi->show_preview_data_source: %s\n" % e) - path: /custom-password-instructions method: POST xCodeSample: @@ -5630,29 +5457,28 @@ from sailpoint.v2024.api.custom_password_instructions_api import CustomPasswordInstructionsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.custom_password_instruction import CustomPasswordInstruction - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - custom_password_instruction = '''{ + 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') + custom_password_instruction = '''{ "pageContent" : "Please enter a new password. Your password must be at least 8 characters long and contain at least one number and one letter.", "pageId" : "change-password:enter-password", "locale" : "en" }''' # CustomPasswordInstruction | - try: - # Create Custom Password Instructions - new_custom_password_instruction = CustomPasswordInstruction.from_json(custom_password_instruction) - results = CustomPasswordInstructionsApi(api_client).create_custom_password_instructions(x_sail_point_experimental=x_sail_point_experimental, custom_password_instruction=new_custom_password_instruction) - # Below is a request that includes all optional parameters - # results = CustomPasswordInstructionsApi(api_client).create_custom_password_instructions(x_sail_point_experimental, new_custom_password_instruction) - print("The response of CustomPasswordInstructionsApi->create_custom_password_instructions:\n") - pprint(results) - except Exception as e: - print("Exception when calling CustomPasswordInstructionsApi->create_custom_password_instructions: %s\n" % e) + try: + # Create Custom Password Instructions + new_custom_password_instruction = CustomPasswordInstruction.from_json(custom_password_instruction) + results = CustomPasswordInstructionsApi(api_client).create_custom_password_instructions(x_sail_point_experimental=x_sail_point_experimental, custom_password_instruction=new_custom_password_instruction) + # Below is a request that includes all optional parameters + # results = CustomPasswordInstructionsApi(api_client).create_custom_password_instructions(x_sail_point_experimental, new_custom_password_instruction) + print("The response of CustomPasswordInstructionsApi->create_custom_password_instructions:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CustomPasswordInstructionsApi->create_custom_password_instructions: %s\n" % e) - path: /custom-password-instructions/{pageId} method: DELETE xCodeSample: @@ -5661,24 +5487,23 @@ source: | from sailpoint.v2024.api.custom_password_instructions_api import CustomPasswordInstructionsApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - page_id = 'mfa:select' # str | The page ID of custom password instructions to delete. # str | The page ID of custom password instructions 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') - locale = 'locale_example' # str | The locale for the custom instructions, a BCP47 language tag. The default value is \\\"default\\\". (optional) # str | The locale for the custom instructions, a BCP47 language tag. The default value is \\\"default\\\". (optional) - try: - # Delete Custom Password Instructions by page ID - - CustomPasswordInstructionsApi(api_client).delete_custom_password_instructions(page_id=page_id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # CustomPasswordInstructionsApi(api_client).delete_custom_password_instructions(page_id, x_sail_point_experimental, locale) - except Exception as e: - print("Exception when calling CustomPasswordInstructionsApi->delete_custom_password_instructions: %s\n" % e) + page_id = 'mfa:select' # str | The page ID of custom password instructions to delete. # str | The page ID of custom password instructions 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') + locale = 'locale_example' # str | The locale for the custom instructions, a BCP47 language tag. The default value is \\\"default\\\". (optional) # str | The locale for the custom instructions, a BCP47 language tag. The default value is \\\"default\\\". (optional) + try: + # Delete Custom Password Instructions by page ID + + CustomPasswordInstructionsApi(api_client).delete_custom_password_instructions(page_id=page_id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # CustomPasswordInstructionsApi(api_client).delete_custom_password_instructions(page_id, x_sail_point_experimental, locale) + except Exception as e: + print("Exception when calling CustomPasswordInstructionsApi->delete_custom_password_instructions: %s\n" % e) - path: /custom-password-instructions/{pageId} method: GET xCodeSample: @@ -5688,26 +5513,25 @@ from sailpoint.v2024.api.custom_password_instructions_api import CustomPasswordInstructionsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.custom_password_instruction import CustomPasswordInstruction - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - page_id = 'mfa:select' # str | The page ID of custom password instructions to query. # str | The page ID of custom password instructions to query. - 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') - locale = 'locale_example' # str | The locale for the custom instructions, a BCP47 language tag. The default value is \\\"default\\\". (optional) # str | The locale for the custom instructions, a BCP47 language tag. The default value is \\\"default\\\". (optional) - try: - # Get Custom Password Instructions by Page ID - - results = CustomPasswordInstructionsApi(api_client).get_custom_password_instructions(page_id=page_id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = CustomPasswordInstructionsApi(api_client).get_custom_password_instructions(page_id, x_sail_point_experimental, locale) - print("The response of CustomPasswordInstructionsApi->get_custom_password_instructions:\n") - pprint(results) - except Exception as e: - print("Exception when calling CustomPasswordInstructionsApi->get_custom_password_instructions: %s\n" % e) + page_id = 'mfa:select' # str | The page ID of custom password instructions to query. # str | The page ID of custom password instructions to query. + 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') + locale = 'locale_example' # str | The locale for the custom instructions, a BCP47 language tag. The default value is \\\"default\\\". (optional) # str | The locale for the custom instructions, a BCP47 language tag. The default value is \\\"default\\\". (optional) + try: + # Get Custom Password Instructions by Page ID + + results = CustomPasswordInstructionsApi(api_client).get_custom_password_instructions(page_id=page_id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = CustomPasswordInstructionsApi(api_client).get_custom_password_instructions(page_id, x_sail_point_experimental, locale) + print("The response of CustomPasswordInstructionsApi->get_custom_password_instructions:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CustomPasswordInstructionsApi->get_custom_password_instructions: %s\n" % e) - path: /data-segments method: POST xCodeSample: @@ -5717,23 +5541,22 @@ from sailpoint.v2024.api.data_segmentation_api import DataSegmentationApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.data_segment import DataSegment - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - data_segment = '''sailpoint.v2024.DataSegment()''' # DataSegment | - try: - # Create Segment - new_data_segment = DataSegment.from_json(data_segment) - results = DataSegmentationApi(api_client).create_data_segment(data_segment=new_data_segment) - # Below is a request that includes all optional parameters - # results = DataSegmentationApi(api_client).create_data_segment(new_data_segment) - print("The response of DataSegmentationApi->create_data_segment:\n") - pprint(results) - except Exception as e: - print("Exception when calling DataSegmentationApi->create_data_segment: %s\n" % e) + data_segment = '''sailpoint.v2024.DataSegment()''' # DataSegment | + try: + # Create Segment + new_data_segment = DataSegment.from_json(data_segment) + results = DataSegmentationApi(api_client).create_data_segment(data_segment=new_data_segment) + # Below is a request that includes all optional parameters + # results = DataSegmentationApi(api_client).create_data_segment(new_data_segment) + print("The response of DataSegmentationApi->create_data_segment:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling DataSegmentationApi->create_data_segment: %s\n" % e) - path: /data-segments/{segmentId} method: DELETE xCodeSample: @@ -5742,24 +5565,23 @@ source: | from sailpoint.v2024.api.data_segmentation_api import DataSegmentationApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = '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 ID - - DataSegmentationApi(api_client).delete_data_segment(id=id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # DataSegmentationApi(api_client).delete_data_segment(id, x_sail_point_experimental, published) - except Exception as e: - print("Exception when calling DataSegmentationApi->delete_data_segment: %s\n" % e) + id = '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 ID + + DataSegmentationApi(api_client).delete_data_segment(id=id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # DataSegmentationApi(api_client).delete_data_segment(id, x_sail_point_experimental, published) + except Exception as e: + print("Exception when calling DataSegmentationApi->delete_data_segment: %s\n" % e) - path: /data-segments/{segmentId} method: GET xCodeSample: @@ -5769,25 +5591,24 @@ from sailpoint.v2024.api.data_segmentation_api import DataSegmentationApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.data_segment import DataSegment - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = '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 ID - - results = DataSegmentationApi(api_client).get_data_segment(id=id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = DataSegmentationApi(api_client).get_data_segment(id, x_sail_point_experimental) - print("The response of DataSegmentationApi->get_data_segment:\n") - pprint(results) - except Exception as e: - print("Exception when calling DataSegmentationApi->get_data_segment: %s\n" % e) + id = '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 ID + + results = DataSegmentationApi(api_client).get_data_segment(id=id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = DataSegmentationApi(api_client).get_data_segment(id, x_sail_point_experimental) + print("The response of DataSegmentationApi->get_data_segment:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling DataSegmentationApi->get_data_segment: %s\n" % e) - path: /data-segments/membership/{identityId} method: GET xCodeSample: @@ -5796,25 +5617,24 @@ source: | from sailpoint.v2024.api.data_segmentation_api import DataSegmentationApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - identity_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 ID - - results = DataSegmentationApi(api_client).get_data_segment_identity_membership(identity_id=identity_id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = DataSegmentationApi(api_client).get_data_segment_identity_membership(identity_id, x_sail_point_experimental) - print("The response of DataSegmentationApi->get_data_segment_identity_membership:\n") - pprint(results) - except Exception as e: - print("Exception when calling DataSegmentationApi->get_data_segment_identity_membership: %s\n" % e) + identity_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 ID + + results = DataSegmentationApi(api_client).get_data_segment_identity_membership(identity_id=identity_id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = DataSegmentationApi(api_client).get_data_segment_identity_membership(identity_id, x_sail_point_experimental) + print("The response of DataSegmentationApi->get_data_segment_identity_membership:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling DataSegmentationApi->get_data_segment_identity_membership: %s\n" % e) - path: /data-segments/user-enabled/{identityId} method: GET xCodeSample: @@ -5823,25 +5643,24 @@ source: | from sailpoint.v2024.api.data_segmentation_api import DataSegmentationApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - identity_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 Identity - - results = DataSegmentationApi(api_client).get_data_segmentation_enabled_for_user(identity_id=identity_id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = DataSegmentationApi(api_client).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(results) - except Exception as e: - print("Exception when calling DataSegmentationApi->get_data_segmentation_enabled_for_user: %s\n" % e) + identity_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 Identity + + results = DataSegmentationApi(api_client).get_data_segmentation_enabled_for_user(identity_id=identity_id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = DataSegmentationApi(api_client).get_data_segmentation_enabled_for_user(identity_id, x_sail_point_experimental) + print("The response of DataSegmentationApi->get_data_segmentation_enabled_for_user:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling DataSegmentationApi->get_data_segmentation_enabled_for_user: %s\n" % e) - path: /data-segments method: GET xCodeSample: @@ -5851,31 +5670,30 @@ from sailpoint.v2024.api.data_segmentation_api import DataSegmentationApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.data_segment import DataSegment - from pprint import pprint 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. (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 Segments - - results = DataSegmentationApi(api_client).list_data_segments(x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = DataSegmentationApi(api_client).list_data_segments(x_sail_point_experimental, enabled, unique, published, limit, offset, count, filters) - print("The response of DataSegmentationApi->list_data_segments:\n") - pprint(results) - except Exception as e: - print("Exception when calling DataSegmentationApi->list_data_segments: %s\n" % e) + 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') + 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 Segments + + results = DataSegmentationApi(api_client).list_data_segments(x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = DataSegmentationApi(api_client).list_data_segments(x_sail_point_experimental, enabled, unique, published, limit, offset, count, filters) + print("The response of DataSegmentationApi->list_data_segments:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling DataSegmentationApi->list_data_segments: %s\n" % e) - path: /data-segments/{segmentId} method: PATCH xCodeSample: @@ -5885,26 +5703,25 @@ from sailpoint.v2024.api.data_segmentation_api import DataSegmentationApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.data_segment import DataSegment - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = '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 - try: - # Update Segment - new_request_body = RequestBody.from_json(request_body) - results = DataSegmentationApi(api_client).patch_data_segment(id=id, x_sail_point_experimental=x_sail_point_experimental, request_body=new_request_body) - # Below is a request that includes all optional parameters - # results = DataSegmentationApi(api_client).patch_data_segment(id, x_sail_point_experimental, new_request_body) - print("The response of DataSegmentationApi->patch_data_segment:\n") - pprint(results) - except Exception as e: - print("Exception when calling DataSegmentationApi->patch_data_segment: %s\n" % e) + id = '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 + try: + # Update Segment + new_request_body = RequestBody.from_json(request_body) + results = DataSegmentationApi(api_client).patch_data_segment(id=id, x_sail_point_experimental=x_sail_point_experimental, request_body=new_request_body) + # Below is a request that includes all optional parameters + # results = DataSegmentationApi(api_client).patch_data_segment(id, x_sail_point_experimental, new_request_body) + print("The response of DataSegmentationApi->patch_data_segment:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling DataSegmentationApi->patch_data_segment: %s\n" % e) - path: /data-segments/{segmentId} method: POST xCodeSample: @@ -5913,24 +5730,23 @@ source: | from sailpoint.v2024.api.data_segmentation_api import DataSegmentationApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint 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. (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 publish - publish_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 ID - new_request_body = RequestBody.from_json(request_body) - DataSegmentationApi(api_client).publish_data_segment(x_sail_point_experimental=x_sail_point_experimental, request_body=new_request_body) - # Below is a request that includes all optional parameters - # DataSegmentationApi(api_client).publish_data_segment(x_sail_point_experimental, new_request_body, publish_all) - except Exception as e: - print("Exception when calling DataSegmentationApi->publish_data_segment: %s\n" % e) + 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 = '''['request_body_example']''' # List[str] | A list of segment ids that you wish to publish + publish_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 ID + new_request_body = RequestBody.from_json(request_body) + DataSegmentationApi(api_client).publish_data_segment(x_sail_point_experimental=x_sail_point_experimental, request_body=new_request_body) + # Below is a request that includes all optional parameters + # DataSegmentationApi(api_client).publish_data_segment(x_sail_point_experimental, new_request_body, publish_all) + except Exception as e: + print("Exception when calling DataSegmentationApi->publish_data_segment: %s\n" % e) - path: /roles/{roleId}/dimensions method: POST xCodeSample: @@ -5940,14 +5756,13 @@ from sailpoint.v2024.api.dimensions_api import DimensionsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.dimension import Dimension - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - role_id = '6603fba3004f43c687610a29195252ce' # str | Parent Role Id of the dimension. # str | Parent Role Id of the dimension. - dimension = '''{ + role_id = '6603fba3004f43c687610a29195252ce' # str | Parent Role Id of the dimension. # str | Parent Role Id of the dimension. + dimension = '''{ "owner" : { "name" : "support", "id" : "2c9180a46faadee4016fb4e018c20639", @@ -6034,16 +5849,16 @@ }, "parentId" : "2c918086749d78830174a1a40e121518" }''' # Dimension | - try: - # Create a Dimension - new_dimension = Dimension.from_json(dimension) - results = DimensionsApi(api_client).create_dimension(role_id=role_id, dimension=new_dimension) - # Below is a request that includes all optional parameters - # results = DimensionsApi(api_client).create_dimension(role_id, new_dimension) - print("The response of DimensionsApi->create_dimension:\n") - pprint(results) - except Exception as e: - print("Exception when calling DimensionsApi->create_dimension: %s\n" % e) + try: + # Create a Dimension + new_dimension = Dimension.from_json(dimension) + results = DimensionsApi(api_client).create_dimension(role_id=role_id, dimension=new_dimension) + # Below is a request that includes all optional parameters + # results = DimensionsApi(api_client).create_dimension(role_id, new_dimension) + print("The response of DimensionsApi->create_dimension:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling DimensionsApi->create_dimension: %s\n" % e) - path: /roles/{roleId}/dimensions/bulk-delete method: POST xCodeSample: @@ -6054,26 +5869,25 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.dimension_bulk_delete_request import DimensionBulkDeleteRequest from sailpoint.v2024.models.task_result_dto import TaskResultDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - role_id = '6603fba3004f43c687610a29195252ce' # str | Parent Role Id of the dimensions. # str | Parent Role Id of the dimensions. - dimension_bulk_delete_request = '''{ + role_id = '6603fba3004f43c687610a29195252ce' # str | Parent Role Id of the dimensions. # str | Parent Role Id of the dimensions. + dimension_bulk_delete_request = '''{ "dimensionIds" : [ "2c9180847812e0b1017817051919ecca", "2c9180887812e0b201781e129f151816" ] }''' # DimensionBulkDeleteRequest | - try: - # Delete Dimension(s) - new_dimension_bulk_delete_request = DimensionBulkDeleteRequest.from_json(dimension_bulk_delete_request) - results = DimensionsApi(api_client).delete_bulk_dimensions(role_id=role_id, dimension_bulk_delete_request=new_dimension_bulk_delete_request) - # Below is a request that includes all optional parameters - # results = DimensionsApi(api_client).delete_bulk_dimensions(role_id, new_dimension_bulk_delete_request) - print("The response of DimensionsApi->delete_bulk_dimensions:\n") - pprint(results) - except Exception as e: - print("Exception when calling DimensionsApi->delete_bulk_dimensions: %s\n" % e) + try: + # Delete Dimension(s) + new_dimension_bulk_delete_request = DimensionBulkDeleteRequest.from_json(dimension_bulk_delete_request) + results = DimensionsApi(api_client).delete_bulk_dimensions(role_id=role_id, dimension_bulk_delete_request=new_dimension_bulk_delete_request) + # Below is a request that includes all optional parameters + # results = DimensionsApi(api_client).delete_bulk_dimensions(role_id, new_dimension_bulk_delete_request) + print("The response of DimensionsApi->delete_bulk_dimensions:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling DimensionsApi->delete_bulk_dimensions: %s\n" % e) - path: /roles/{roleId}/dimensions/{dimensionId} method: DELETE xCodeSample: @@ -6082,22 +5896,21 @@ source: | from sailpoint.v2024.api.dimensions_api import DimensionsApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - role_id = '6603fba3004f43c687610a29195252ce' # str | Parent Role Id of the dimension. # str | Parent Role Id of the dimension. - dimension_id = '2c9180835d191a86015d28455b4a2329' # str | Id of the Dimension # str | Id of the Dimension - try: - # Delete a Dimension - - DimensionsApi(api_client).delete_dimension(role_id=role_id, dimension_id=dimension_id) - # Below is a request that includes all optional parameters - # DimensionsApi(api_client).delete_dimension(role_id, dimension_id) - except Exception as e: - print("Exception when calling DimensionsApi->delete_dimension: %s\n" % e) + role_id = '6603fba3004f43c687610a29195252ce' # str | Parent Role Id of the dimension. # str | Parent Role Id of the dimension. + dimension_id = '2c9180835d191a86015d28455b4a2329' # str | Id of the Dimension # str | Id of the Dimension + try: + # Delete a Dimension + + DimensionsApi(api_client).delete_dimension(role_id=role_id, dimension_id=dimension_id) + # Below is a request that includes all optional parameters + # DimensionsApi(api_client).delete_dimension(role_id, dimension_id) + except Exception as e: + print("Exception when calling DimensionsApi->delete_dimension: %s\n" % e) - path: /roles/{roleId}/dimensions/{dimensionId} method: GET xCodeSample: @@ -6107,24 +5920,23 @@ from sailpoint.v2024.api.dimensions_api import DimensionsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.dimension import Dimension - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - role_id = '6603fba3004f43c687610a29195252ce' # str | Parent Role Id of the dimension. # str | Parent Role Id of the dimension. - dimension_id = '2c9180835d191a86015d28455b4a2329' # str | Id of the Dimension # str | Id of the Dimension - try: - # Get a Dimension under Role. - - results = DimensionsApi(api_client).get_dimension(role_id=role_id, dimension_id=dimension_id) - # Below is a request that includes all optional parameters - # results = DimensionsApi(api_client).get_dimension(role_id, dimension_id) - print("The response of DimensionsApi->get_dimension:\n") - pprint(results) - except Exception as e: - print("Exception when calling DimensionsApi->get_dimension: %s\n" % e) + role_id = '6603fba3004f43c687610a29195252ce' # str | Parent Role Id of the dimension. # str | Parent Role Id of the dimension. + dimension_id = '2c9180835d191a86015d28455b4a2329' # str | Id of the Dimension # str | Id of the Dimension + try: + # Get a Dimension under Role. + + results = DimensionsApi(api_client).get_dimension(role_id=role_id, dimension_id=dimension_id) + # Below is a request that includes all optional parameters + # results = DimensionsApi(api_client).get_dimension(role_id, dimension_id) + print("The response of DimensionsApi->get_dimension:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling DimensionsApi->get_dimension: %s\n" % e) - path: /roles/{roleId}/dimensions/{dimensionId}/entitlements method: GET xCodeSample: @@ -6134,29 +5946,28 @@ from sailpoint.v2024.api.dimensions_api import DimensionsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.entitlement import Entitlement - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - role_id = '6603fba3004f43c687610a29195252ce' # str | Parent Role Id of the dimension. # str | Parent Role Id of the dimension. - dimension_id = '2c9180835d191a86015d28455b4a2329' # str | Id of the Dimension # str | Id of the Dimension - 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 = 'attribute eq \"memberOf\"' # 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, sw* **attribute**: *eq, sw* **value**: *eq, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **source.id**: *eq, in* (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, sw* **attribute**: *eq, sw* **value**: *eq, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **source.id**: *eq, in* (optional) - sorters = 'name,-modified' # 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: **name, attribute, value, created, modified** (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: **name, attribute, value, created, modified** (optional) - try: - # List Dimension's Entitlements - - results = DimensionsApi(api_client).get_dimension_entitlements(role_id=role_id, dimension_id=dimension_id) - # Below is a request that includes all optional parameters - # results = DimensionsApi(api_client).get_dimension_entitlements(role_id, dimension_id, limit, offset, count, filters, sorters) - print("The response of DimensionsApi->get_dimension_entitlements:\n") - pprint(results) - except Exception as e: - print("Exception when calling DimensionsApi->get_dimension_entitlements: %s\n" % e) + role_id = '6603fba3004f43c687610a29195252ce' # str | Parent Role Id of the dimension. # str | Parent Role Id of the dimension. + dimension_id = '2c9180835d191a86015d28455b4a2329' # str | Id of the Dimension # str | Id of the Dimension + 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 = 'attribute eq \"memberOf\"' # 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, sw* **attribute**: *eq, sw* **value**: *eq, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **source.id**: *eq, in* (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, sw* **attribute**: *eq, sw* **value**: *eq, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **source.id**: *eq, in* (optional) + sorters = 'name,-modified' # 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: **name, attribute, value, created, modified** (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: **name, attribute, value, created, modified** (optional) + try: + # List Dimension's Entitlements + + results = DimensionsApi(api_client).get_dimension_entitlements(role_id=role_id, dimension_id=dimension_id) + # Below is a request that includes all optional parameters + # results = DimensionsApi(api_client).get_dimension_entitlements(role_id, dimension_id, limit, offset, count, filters, sorters) + print("The response of DimensionsApi->get_dimension_entitlements:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling DimensionsApi->get_dimension_entitlements: %s\n" % e) - path: /roles/{roleId}/dimensions/{dimensionId}/access-profiles method: GET xCodeSample: @@ -6166,29 +5977,28 @@ from sailpoint.v2024.api.dimensions_api import DimensionsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.access_profile import AccessProfile - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - role_id = '6603fba3004f43c687610a29195252ce' # str | Parent Role Id of the dimension. # str | Parent Role Id of the dimension. - dimension_id = '2c9180835d191a86015d28455b4a2329' # str | Id of the Dimension # str | Id of the Dimension - 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 = 'source.id eq \"2c91808982f979270182f99e386d00fa\"' # 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, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **source.id**: *eq, in* (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, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **source.id**: *eq, in* (optional) - sorters = 'name,-modified' # 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: **name, created, modified** (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: **name, created, modified** (optional) - try: - # List Dimension's Access Profiles - - results = DimensionsApi(api_client).list_dimension_access_profiles(role_id=role_id, dimension_id=dimension_id) - # Below is a request that includes all optional parameters - # results = DimensionsApi(api_client).list_dimension_access_profiles(role_id, dimension_id, limit, offset, count, filters, sorters) - print("The response of DimensionsApi->list_dimension_access_profiles:\n") - pprint(results) - except Exception as e: - print("Exception when calling DimensionsApi->list_dimension_access_profiles: %s\n" % e) + role_id = '6603fba3004f43c687610a29195252ce' # str | Parent Role Id of the dimension. # str | Parent Role Id of the dimension. + dimension_id = '2c9180835d191a86015d28455b4a2329' # str | Id of the Dimension # str | Id of the Dimension + 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 = 'source.id eq \"2c91808982f979270182f99e386d00fa\"' # 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, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **source.id**: *eq, in* (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, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **source.id**: *eq, in* (optional) + sorters = 'name,-modified' # 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: **name, created, modified** (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: **name, created, modified** (optional) + try: + # List Dimension's Access Profiles + + results = DimensionsApi(api_client).list_dimension_access_profiles(role_id=role_id, dimension_id=dimension_id) + # Below is a request that includes all optional parameters + # results = DimensionsApi(api_client).list_dimension_access_profiles(role_id, dimension_id, limit, offset, count, filters, sorters) + print("The response of DimensionsApi->list_dimension_access_profiles:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling DimensionsApi->list_dimension_access_profiles: %s\n" % e) - path: /roles/{roleId}/dimensions method: GET xCodeSample: @@ -6198,29 +6008,28 @@ from sailpoint.v2024.api.dimensions_api import DimensionsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.dimension import Dimension - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - role_id = '6603fba3004f43c687610a29195252ce' # str | Parent Role Id of the dimension. # str | Parent Role Id of the dimension. - for_subadmin = '5168015d32f890ca15812c9180835d2e' # str | If provided, filters the returned list according to what is visible to the indicated ROLE_SUBADMIN Identity. The value of the parameter is either an Identity ID, or the special value **me**, which is shorthand for the calling Identity's ID. A 400 Bad Request error is returned if the **for-subadmin** parameter is specified for an Identity that is not a subadmin. (optional) # str | If provided, filters the returned list according to what is visible to the indicated ROLE_SUBADMIN Identity. The value of the parameter is either an Identity ID, or the special value **me**, which is shorthand for the calling Identity's ID. A 400 Bad Request error is returned if the **for-subadmin** parameter is specified for an Identity that is not a subadmin. (optional) - limit = 50 # int | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) # int | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) - 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 = 'id eq \'2c918086749d78830174a1a40e121518\'' # 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, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* (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, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* (optional) - sorters = 'name,-modified' # 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: **name, created, modified** (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: **name, created, modified** (optional) - try: - # List Dimensions - - results = DimensionsApi(api_client).list_dimensions(role_id=role_id) - # Below is a request that includes all optional parameters - # results = DimensionsApi(api_client).list_dimensions(role_id, for_subadmin, limit, offset, count, filters, sorters) - print("The response of DimensionsApi->list_dimensions:\n") - pprint(results) - except Exception as e: - print("Exception when calling DimensionsApi->list_dimensions: %s\n" % e) + role_id = '6603fba3004f43c687610a29195252ce' # str | Parent Role Id of the dimension. # str | Parent Role Id of the dimension. + for_subadmin = '5168015d32f890ca15812c9180835d2e' # str | If provided, filters the returned list according to what is visible to the indicated ROLE_SUBADMIN Identity. The value of the parameter is either an Identity ID, or the special value **me**, which is shorthand for the calling Identity's ID. A 400 Bad Request error is returned if the **for-subadmin** parameter is specified for an Identity that is not a subadmin. (optional) # str | If provided, filters the returned list according to what is visible to the indicated ROLE_SUBADMIN Identity. The value of the parameter is either an Identity ID, or the special value **me**, which is shorthand for the calling Identity's ID. A 400 Bad Request error is returned if the **for-subadmin** parameter is specified for an Identity that is not a subadmin. (optional) + limit = 50 # int | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) # int | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) + 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 = 'id eq \'2c918086749d78830174a1a40e121518\'' # 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, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* (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, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* (optional) + sorters = 'name,-modified' # 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: **name, created, modified** (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: **name, created, modified** (optional) + try: + # List Dimensions + + results = DimensionsApi(api_client).list_dimensions(role_id=role_id) + # Below is a request that includes all optional parameters + # results = DimensionsApi(api_client).list_dimensions(role_id, for_subadmin, limit, offset, count, filters, sorters) + print("The response of DimensionsApi->list_dimensions:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling DimensionsApi->list_dimensions: %s\n" % e) - path: /roles/{roleId}/dimensions/{dimensionId} method: PATCH xCodeSample: @@ -6231,25 +6040,24 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.dimension import Dimension from sailpoint.v2024.models.json_patch_operation import JsonPatchOperation - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - role_id = '6603fba3004f43c687610a29195252ce' # str | Parent Role Id of the dimension. # str | Parent Role Id of the dimension. - dimension_id = '2c9180835d191a86015d28455b4a2329' # str | Id of the Dimension # str | Id of the Dimension - json_patch_operation = '''[{op=replace, path=/description, value=Test Description}, {op=replace, path=/name, value=new name}]''' # List[JsonPatchOperation] | - try: - # Patch a specified Dimension - new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) - results = DimensionsApi(api_client).patch_dimension(role_id=role_id, dimension_id=dimension_id, json_patch_operation=new_json_patch_operation) - # Below is a request that includes all optional parameters - # results = DimensionsApi(api_client).patch_dimension(role_id, dimension_id, new_json_patch_operation) - print("The response of DimensionsApi->patch_dimension:\n") - pprint(results) - except Exception as e: - print("Exception when calling DimensionsApi->patch_dimension: %s\n" % e) + role_id = '6603fba3004f43c687610a29195252ce' # str | Parent Role Id of the dimension. # str | Parent Role Id of the dimension. + dimension_id = '2c9180835d191a86015d28455b4a2329' # str | Id of the Dimension # str | Id of the Dimension + json_patch_operation = '''[{op=replace, path=/description, value=Test Description}, {op=replace, path=/name, value=new name}]''' # List[JsonPatchOperation] | + try: + # Patch a specified Dimension + new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) + results = DimensionsApi(api_client).patch_dimension(role_id=role_id, dimension_id=dimension_id, json_patch_operation=new_json_patch_operation) + # Below is a request that includes all optional parameters + # results = DimensionsApi(api_client).patch_dimension(role_id, dimension_id, new_json_patch_operation) + print("The response of DimensionsApi->patch_dimension:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling DimensionsApi->patch_dimension: %s\n" % e) - path: /entitlements/{id}/access-model-metadata/{attributeKey}/values/{attributeValue} method: POST xCodeSample: @@ -6259,27 +6067,26 @@ from sailpoint.v2024.api.entitlements_api import EntitlementsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.entitlement import Entitlement - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = '2c91808c74ff913f0175097daa9d59cd' # str | The entitlement id. # str | The entitlement id. - attribute_key = 'iscPrivacy' # str | Technical name of the Attribute. # str | Technical name of the Attribute. - attribute_value = 'public' # str | Technical name of the Attribute Value. # str | Technical name of the Attribute Value. - 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: - # Add metadata to an entitlement. - - results = EntitlementsApi(api_client).create_access_model_metadata_for_entitlement(id=id, attribute_key=attribute_key, attribute_value=attribute_value, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = EntitlementsApi(api_client).create_access_model_metadata_for_entitlement(id, attribute_key, attribute_value, x_sail_point_experimental) - print("The response of EntitlementsApi->create_access_model_metadata_for_entitlement:\n") - pprint(results) - except Exception as e: - print("Exception when calling EntitlementsApi->create_access_model_metadata_for_entitlement: %s\n" % e) + id = '2c91808c74ff913f0175097daa9d59cd' # str | The entitlement id. # str | The entitlement id. + attribute_key = 'iscPrivacy' # str | Technical name of the Attribute. # str | Technical name of the Attribute. + attribute_value = 'public' # str | Technical name of the Attribute Value. # str | Technical name of the Attribute Value. + 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: + # Add metadata to an entitlement. + + results = EntitlementsApi(api_client).create_access_model_metadata_for_entitlement(id=id, attribute_key=attribute_key, attribute_value=attribute_value, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = EntitlementsApi(api_client).create_access_model_metadata_for_entitlement(id, attribute_key, attribute_value, x_sail_point_experimental) + print("The response of EntitlementsApi->create_access_model_metadata_for_entitlement:\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: %s\n" % e) - path: /entitlements/{id}/access-model-metadata/{attributeKey}/values/{attributeValue} method: DELETE xCodeSample: @@ -6288,25 +6095,24 @@ source: | from sailpoint.v2024.api.entitlements_api import EntitlementsApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = '2c91808c74ff913f0175097daa9d59cd' # str | The entitlement id. # str | The entitlement id. - attribute_key = 'iscPrivacy' # str | Technical name of the Attribute. # str | Technical name of the Attribute. - attribute_value = 'public' # str | Technical name of the Attribute Value. # str | Technical name of the Attribute Value. - 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: - # Remove metadata from an entitlement. - - EntitlementsApi(api_client).delete_access_model_metadata_from_entitlement(id=id, attribute_key=attribute_key, attribute_value=attribute_value, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # EntitlementsApi(api_client).delete_access_model_metadata_from_entitlement(id, attribute_key, attribute_value, x_sail_point_experimental) - except Exception as e: - print("Exception when calling EntitlementsApi->delete_access_model_metadata_from_entitlement: %s\n" % e) + id = '2c91808c74ff913f0175097daa9d59cd' # str | The entitlement id. # str | The entitlement id. + attribute_key = 'iscPrivacy' # str | Technical name of the Attribute. # str | Technical name of the Attribute. + attribute_value = 'public' # str | Technical name of the Attribute Value. # str | Technical name of the Attribute Value. + 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: + # Remove metadata from an entitlement. + + EntitlementsApi(api_client).delete_access_model_metadata_from_entitlement(id=id, attribute_key=attribute_key, attribute_value=attribute_value, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # EntitlementsApi(api_client).delete_access_model_metadata_from_entitlement(id, attribute_key, attribute_value, x_sail_point_experimental) + except Exception as e: + print("Exception when calling EntitlementsApi->delete_access_model_metadata_from_entitlement: %s\n" % e) - path: /entitlements/{id} method: GET xCodeSample: @@ -6316,25 +6122,24 @@ from sailpoint.v2024.api.entitlements_api import EntitlementsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.entitlement import Entitlement - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = '2c91808874ff91550175097daaec161c' # str | The entitlement ID # str | The entitlement ID - 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 an entitlement - - results = EntitlementsApi(api_client).get_entitlement(id=id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = EntitlementsApi(api_client).get_entitlement(id, x_sail_point_experimental) - print("The response of EntitlementsApi->get_entitlement:\n") - pprint(results) - except Exception as e: - print("Exception when calling EntitlementsApi->get_entitlement: %s\n" % e) + id = '2c91808874ff91550175097daaec161c' # str | The entitlement ID # str | The entitlement ID + 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 an entitlement + + results = EntitlementsApi(api_client).get_entitlement(id=id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = EntitlementsApi(api_client).get_entitlement(id, x_sail_point_experimental) + print("The response of EntitlementsApi->get_entitlement:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling EntitlementsApi->get_entitlement: %s\n" % e) - path: /entitlements/{id}/entitlement-request-config method: GET xCodeSample: @@ -6344,25 +6149,24 @@ from sailpoint.v2024.api.entitlements_api import EntitlementsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.entitlement_request_config import EntitlementRequestConfig - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = '2c91808874ff91550175097daaec161c' # str | Entitlement Id # str | Entitlement Id - 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 Entitlement Request Config - - results = EntitlementsApi(api_client).get_entitlement_request_config(id=id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = EntitlementsApi(api_client).get_entitlement_request_config(id, x_sail_point_experimental) - print("The response of EntitlementsApi->get_entitlement_request_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling EntitlementsApi->get_entitlement_request_config: %s\n" % e) + id = '2c91808874ff91550175097daaec161c' # str | Entitlement Id # str | Entitlement Id + 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 Entitlement Request Config + + results = EntitlementsApi(api_client).get_entitlement_request_config(id=id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = EntitlementsApi(api_client).get_entitlement_request_config(id, x_sail_point_experimental) + print("The response of EntitlementsApi->get_entitlement_request_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling EntitlementsApi->get_entitlement_request_config: %s\n" % e) - path: /entitlements/aggregate/sources/{id} method: POST xCodeSample: @@ -6372,26 +6176,25 @@ from sailpoint.v2024.api.entitlements_api import EntitlementsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.load_entitlement_task import LoadEntitlementTask - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | Source Id # str | Source Id - 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') - csv_file = None # bytearray | The CSV file containing the source entitlements to aggregate. (optional) # bytearray | The CSV file containing the source entitlements to aggregate. (optional) - try: - # Aggregate Entitlements - - results = EntitlementsApi(api_client).import_entitlements_by_source(id=id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = EntitlementsApi(api_client).import_entitlements_by_source(id, x_sail_point_experimental, csv_file) - print("The response of EntitlementsApi->import_entitlements_by_source:\n") - pprint(results) - except Exception as e: - print("Exception when calling EntitlementsApi->import_entitlements_by_source: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | Source Id # str | Source Id + 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') + csv_file = None # bytearray | The CSV file containing the source entitlements to aggregate. (optional) # bytearray | The CSV file containing the source entitlements to aggregate. (optional) + try: + # Aggregate Entitlements + + results = EntitlementsApi(api_client).import_entitlements_by_source(id=id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = EntitlementsApi(api_client).import_entitlements_by_source(id, x_sail_point_experimental, csv_file) + print("The response of EntitlementsApi->import_entitlements_by_source:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling EntitlementsApi->import_entitlements_by_source: %s\n" % e) - path: /entitlements/{id}/children method: GET xCodeSample: @@ -6401,30 +6204,29 @@ from sailpoint.v2024.api.entitlements_api import EntitlementsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.entitlement import Entitlement - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = '2c91808874ff91550175097daaec161c' # str | Entitlement Id # str | Entitlement Id - 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') - 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) - sorters = 'name,-modified' # 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: **id, name, created, modified, type, attribute, value, source.id** (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: **id, name, created, modified, type, attribute, value, source.id** (optional) - filters = 'attribute eq \"memberOf\"' # 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* **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* (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* **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* (optional) - try: - # List of entitlements children - - results = EntitlementsApi(api_client).list_entitlement_children(id=id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = EntitlementsApi(api_client).list_entitlement_children(id, x_sail_point_experimental, limit, offset, count, sorters, filters) - print("The response of EntitlementsApi->list_entitlement_children:\n") - pprint(results) - except Exception as e: - print("Exception when calling EntitlementsApi->list_entitlement_children: %s\n" % e) + id = '2c91808874ff91550175097daaec161c' # str | Entitlement Id # str | Entitlement Id + 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') + 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) + sorters = 'name,-modified' # 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: **id, name, created, modified, type, attribute, value, source.id** (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: **id, name, created, modified, type, attribute, value, source.id** (optional) + filters = 'attribute eq \"memberOf\"' # 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* **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* (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* **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* (optional) + try: + # List of entitlements children + + results = EntitlementsApi(api_client).list_entitlement_children(id=id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = EntitlementsApi(api_client).list_entitlement_children(id, x_sail_point_experimental, limit, offset, count, sorters, filters) + print("The response of EntitlementsApi->list_entitlement_children:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling EntitlementsApi->list_entitlement_children: %s\n" % e) - path: /entitlements/{id}/parents method: GET xCodeSample: @@ -6434,30 +6236,29 @@ from sailpoint.v2024.api.entitlements_api import EntitlementsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.entitlement import Entitlement - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = '2c91808c74ff913f0175097daa9d59cd' # str | Entitlement Id # str | Entitlement Id - 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') - 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) - sorters = 'name,-modified' # 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: **id, name, created, modified, type, attribute, value, source.id** (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: **id, name, created, modified, type, attribute, value, source.id** (optional) - filters = 'attribute eq \"memberOf\"' # 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* **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* (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* **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* (optional) - try: - # List of entitlements parents - - results = EntitlementsApi(api_client).list_entitlement_parents(id=id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = EntitlementsApi(api_client).list_entitlement_parents(id, x_sail_point_experimental, limit, offset, count, sorters, filters) - print("The response of EntitlementsApi->list_entitlement_parents:\n") - pprint(results) - except Exception as e: - print("Exception when calling EntitlementsApi->list_entitlement_parents: %s\n" % e) + id = '2c91808c74ff913f0175097daa9d59cd' # str | Entitlement Id # str | Entitlement Id + 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') + 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) + sorters = 'name,-modified' # 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: **id, name, created, modified, type, attribute, value, source.id** (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: **id, name, created, modified, type, attribute, value, source.id** (optional) + filters = 'attribute eq \"memberOf\"' # 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* **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* (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* **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* (optional) + try: + # List of entitlements parents + + results = EntitlementsApi(api_client).list_entitlement_parents(id=id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = EntitlementsApi(api_client).list_entitlement_parents(id, x_sail_point_experimental, limit, offset, count, sorters, filters) + print("The response of EntitlementsApi->list_entitlement_parents:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling EntitlementsApi->list_entitlement_parents: %s\n" % e) - path: /entitlements method: GET xCodeSample: @@ -6467,33 +6268,32 @@ from sailpoint.v2024.api.entitlements_api import EntitlementsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.entitlement import Entitlement - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - account_id = 'ef38f94347e94562b5bb8424a56397d8' # str | The account ID. If specified, returns only entitlements associated with the given Account. Cannot be specified with the **filters**, **segmented-for-identity**, **for-segment-ids**, or **include-unsegmented** param(s). (optional) # str | The account ID. If specified, returns only entitlements associated with the given Account. Cannot be specified with the **filters**, **segmented-for-identity**, **for-segment-ids**, or **include-unsegmented** param(s). (optional) - segmented_for_identity = 'me' # str | 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. By convention, the value **me** can stand in for the current user's Identity ID. Cannot be specified with the **account-id** or **for-segment-ids** param(s). It is also illegal to specify a value that refers to a different user's Identity. (optional) # str | 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. By convention, the value **me** can stand in for the current user's Identity ID. Cannot be specified with the **account-id** or **for-segment-ids** param(s). It is also illegal to specify a value that refers to a different user's Identity. (optional) - for_segment_ids = '041727d4-7d95-4779-b891-93cf41e98249,a378c9fa-bae5-494c-804e-a1e30f69f649' # str | If present and not empty, additionally filters Access Profiles to those which are assigned to the Segment(s) with the specified IDs. Cannot be specified with the **account-id** or **segmented-for-identity** param(s). (optional) # str | If present and not empty, additionally filters Access Profiles to those which are assigned to the Segment(s) with the specified IDs. Cannot be specified with the **account-id** or **segmented-for-identity** param(s). (optional) - include_unsegmented = True # bool | 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. (optional) (default to True) # bool | 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. (optional) (default to True) - 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) - 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) - 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) - sorters = 'name,-modified' # 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: **id, name, created, modified, type, attribute, value, source.id, requestable** (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: **id, name, created, modified, type, attribute, value, source.id, requestable** (optional) - filters = 'attribute eq \"memberOf\"' # 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* **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* (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* **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* (optional) - try: - # Gets a list of entitlements. - - results = EntitlementsApi(api_client).list_entitlements(x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = EntitlementsApi(api_client).list_entitlements(x_sail_point_experimental, account_id, segmented_for_identity, for_segment_ids, include_unsegmented, offset, limit, count, sorters, filters) - print("The response of EntitlementsApi->list_entitlements:\n") - pprint(results) - except Exception as e: - print("Exception when calling EntitlementsApi->list_entitlements: %s\n" % e) + 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') + account_id = 'ef38f94347e94562b5bb8424a56397d8' # str | The account ID. If specified, returns only entitlements associated with the given Account. Cannot be specified with the **filters**, **segmented-for-identity**, **for-segment-ids**, or **include-unsegmented** param(s). (optional) # str | The account ID. If specified, returns only entitlements associated with the given Account. Cannot be specified with the **filters**, **segmented-for-identity**, **for-segment-ids**, or **include-unsegmented** param(s). (optional) + segmented_for_identity = 'me' # str | 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. By convention, the value **me** can stand in for the current user's Identity ID. Cannot be specified with the **account-id** or **for-segment-ids** param(s). It is also illegal to specify a value that refers to a different user's Identity. (optional) # str | 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. By convention, the value **me** can stand in for the current user's Identity ID. Cannot be specified with the **account-id** or **for-segment-ids** param(s). It is also illegal to specify a value that refers to a different user's Identity. (optional) + for_segment_ids = '041727d4-7d95-4779-b891-93cf41e98249,a378c9fa-bae5-494c-804e-a1e30f69f649' # str | If present and not empty, additionally filters Access Profiles to those which are assigned to the Segment(s) with the specified IDs. Cannot be specified with the **account-id** or **segmented-for-identity** param(s). (optional) # str | If present and not empty, additionally filters Access Profiles to those which are assigned to the Segment(s) with the specified IDs. Cannot be specified with the **account-id** or **segmented-for-identity** param(s). (optional) + include_unsegmented = True # bool | 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. (optional) (default to True) # bool | 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. (optional) (default to True) + 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) + 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) + 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) + sorters = 'name,-modified' # 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: **id, name, created, modified, type, attribute, value, source.id, requestable** (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: **id, name, created, modified, type, attribute, value, source.id, requestable** (optional) + filters = 'attribute eq \"memberOf\"' # 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* **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* (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* **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* (optional) + try: + # Gets a list of entitlements. + + results = EntitlementsApi(api_client).list_entitlements(x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = EntitlementsApi(api_client).list_entitlements(x_sail_point_experimental, account_id, segmented_for_identity, for_segment_ids, include_unsegmented, offset, limit, count, sorters, filters) + print("The response of EntitlementsApi->list_entitlements:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling EntitlementsApi->list_entitlements: %s\n" % e) - path: /entitlements/{id} method: PATCH xCodeSample: @@ -6504,26 +6304,25 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.entitlement import Entitlement from sailpoint.v2024.models.json_patch_operation import JsonPatchOperation - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = '2c91808a7813090a017814121e121518' # str | ID of the entitlement to patch # str | ID of the entitlement to patch - 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') - json_patch_operation = '''[{op=replace, path=/requestable, value=true}, {op=replace, path=/privileged, value=true}]''' # List[JsonPatchOperation] | (optional) - try: - # Patch an entitlement - - results = EntitlementsApi(api_client).patch_entitlement(id=id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = EntitlementsApi(api_client).patch_entitlement(id, x_sail_point_experimental, new_json_patch_operation) - print("The response of EntitlementsApi->patch_entitlement:\n") - pprint(results) - except Exception as e: - print("Exception when calling EntitlementsApi->patch_entitlement: %s\n" % e) + id = '2c91808a7813090a017814121e121518' # str | ID of the entitlement to patch # str | ID of the entitlement to patch + 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') + json_patch_operation = '''[{op=replace, path=/requestable, value=true}, {op=replace, path=/privileged, value=true}]''' # List[JsonPatchOperation] | (optional) + try: + # Patch an entitlement + + results = EntitlementsApi(api_client).patch_entitlement(id=id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = EntitlementsApi(api_client).patch_entitlement(id, x_sail_point_experimental, new_json_patch_operation) + print("The response of EntitlementsApi->patch_entitlement:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling EntitlementsApi->patch_entitlement: %s\n" % e) - path: /entitlements/{id}/entitlement-request-config method: PUT xCodeSample: @@ -6533,31 +6332,30 @@ from sailpoint.v2024.api.entitlements_api import EntitlementsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.entitlement_request_config import EntitlementRequestConfig - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = '2c91808a7813090a017814121e121518' # str | Entitlement ID # str | Entitlement ID - 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') - entitlement_request_config = '''{ + id = '2c91808a7813090a017814121e121518' # str | Entitlement ID # str | Entitlement ID + 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') + entitlement_request_config = '''{ "requestCommentsRequired" : false, "deniedCommentsRequired" : false, "allowEntitlementRequest" : true, "grantRequestApprovalSchemes" : "entitlementOwner, sourceOwner, manager, workgroup:2c918084660f45d6016617daa9210584" }''' # EntitlementRequestConfig | - try: - # Replace Entitlement Request Config - new_entitlement_request_config = EntitlementRequestConfig.from_json(entitlement_request_config) - results = EntitlementsApi(api_client).put_entitlement_request_config(id=id, x_sail_point_experimental=x_sail_point_experimental, entitlement_request_config=new_entitlement_request_config) - # Below is a request that includes all optional parameters - # results = EntitlementsApi(api_client).put_entitlement_request_config(id, x_sail_point_experimental, new_entitlement_request_config) - print("The response of EntitlementsApi->put_entitlement_request_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling EntitlementsApi->put_entitlement_request_config: %s\n" % e) + try: + # Replace Entitlement Request Config + new_entitlement_request_config = EntitlementRequestConfig.from_json(entitlement_request_config) + results = EntitlementsApi(api_client).put_entitlement_request_config(id=id, x_sail_point_experimental=x_sail_point_experimental, entitlement_request_config=new_entitlement_request_config) + # Below is a request that includes all optional parameters + # results = EntitlementsApi(api_client).put_entitlement_request_config(id, x_sail_point_experimental, new_entitlement_request_config) + print("The response of EntitlementsApi->put_entitlement_request_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling EntitlementsApi->put_entitlement_request_config: %s\n" % e) - path: /entitlements/reset/sources/{id} method: POST xCodeSample: @@ -6567,25 +6365,24 @@ from sailpoint.v2024.api.entitlements_api import EntitlementsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.entitlement_source_reset_base_reference_dto import EntitlementSourceResetBaseReferenceDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = '2c91808a7813090a017814121919ecca' # str | ID of source for the entitlement reset # str | ID of source for the entitlement reset - 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: - # Reset Source Entitlements - - results = EntitlementsApi(api_client).reset_source_entitlements(id=id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = EntitlementsApi(api_client).reset_source_entitlements(id, x_sail_point_experimental) - print("The response of EntitlementsApi->reset_source_entitlements:\n") - pprint(results) - except Exception as e: - print("Exception when calling EntitlementsApi->reset_source_entitlements: %s\n" % e) + id = '2c91808a7813090a017814121919ecca' # str | ID of source for the entitlement reset # str | ID of source for the entitlement reset + 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: + # Reset Source Entitlements + + results = EntitlementsApi(api_client).reset_source_entitlements(id=id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = EntitlementsApi(api_client).reset_source_entitlements(id, x_sail_point_experimental) + print("The response of EntitlementsApi->reset_source_entitlements:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling EntitlementsApi->reset_source_entitlements: %s\n" % e) - path: /entitlements/bulk-update method: POST xCodeSample: @@ -6595,15 +6392,14 @@ from sailpoint.v2024.api.entitlements_api import EntitlementsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.entitlement_bulk_update_request import EntitlementBulkUpdateRequest - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - entitlement_bulk_update_request = '''{ + 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') + entitlement_bulk_update_request = '''{ "entitlementIds" : [ "2c91808a7624751a01762f19d665220d", "2c91808a7624751a01762f19d67c220e", "2c91808a7624751a01762f19d692220f" ], "jsonPatch" : [ { "op" : "replace", @@ -6615,14 +6411,14 @@ "value" : false } ] }''' # EntitlementBulkUpdateRequest | - try: - # Bulk update an entitlement list - new_entitlement_bulk_update_request = EntitlementBulkUpdateRequest.from_json(entitlement_bulk_update_request) - EntitlementsApi(api_client).update_entitlements_in_bulk(x_sail_point_experimental=x_sail_point_experimental, entitlement_bulk_update_request=new_entitlement_bulk_update_request) - # Below is a request that includes all optional parameters - # EntitlementsApi(api_client).update_entitlements_in_bulk(x_sail_point_experimental, new_entitlement_bulk_update_request) - except Exception as e: - print("Exception when calling EntitlementsApi->update_entitlements_in_bulk: %s\n" % e) + try: + # Bulk update an entitlement list + new_entitlement_bulk_update_request = EntitlementBulkUpdateRequest.from_json(entitlement_bulk_update_request) + EntitlementsApi(api_client).update_entitlements_in_bulk(x_sail_point_experimental=x_sail_point_experimental, entitlement_bulk_update_request=new_entitlement_bulk_update_request) + # Below is a request that includes all optional parameters + # EntitlementsApi(api_client).update_entitlements_in_bulk(x_sail_point_experimental, new_entitlement_bulk_update_request) + except Exception as e: + print("Exception when calling EntitlementsApi->update_entitlements_in_bulk: %s\n" % e) - path: /auth-org/network-config method: POST xCodeSample: @@ -6632,27 +6428,26 @@ from sailpoint.v2024.api.global_tenant_security_settings_api import GlobalTenantSecuritySettingsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.network_configuration import NetworkConfiguration - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - network_configuration = '''{ + network_configuration = '''{ "range" : [ "1.3.7.2", "255.255.255.252/30" ], "whitelisted" : true, "geolocation" : [ "CA", "FR", "HT" ] }''' # NetworkConfiguration | Network configuration creation request body. The following constraints ensure the request body conforms to certain logical guidelines, which are: 1. Each string element in the range array must be a valid ip address or ip subnet mask. 2. Each string element in the geolocation array must be 2 characters, and they can only be uppercase letters. - try: - # Create security network configuration. - new_network_configuration = NetworkConfiguration.from_json(network_configuration) - results = GlobalTenantSecuritySettingsApi(api_client).create_auth_org_network_config(network_configuration=new_network_configuration) - # Below is a request that includes all optional parameters - # results = GlobalTenantSecuritySettingsApi(api_client).create_auth_org_network_config(new_network_configuration) - print("The response of GlobalTenantSecuritySettingsApi->create_auth_org_network_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling GlobalTenantSecuritySettingsApi->create_auth_org_network_config: %s\n" % e) + try: + # Create security network configuration. + new_network_configuration = NetworkConfiguration.from_json(network_configuration) + results = GlobalTenantSecuritySettingsApi(api_client).create_auth_org_network_config(network_configuration=new_network_configuration) + # Below is a request that includes all optional parameters + # results = GlobalTenantSecuritySettingsApi(api_client).create_auth_org_network_config(new_network_configuration) + print("The response of GlobalTenantSecuritySettingsApi->create_auth_org_network_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling GlobalTenantSecuritySettingsApi->create_auth_org_network_config: %s\n" % e) - path: /auth-org/network-config method: GET xCodeSample: @@ -6662,22 +6457,21 @@ from sailpoint.v2024.api.global_tenant_security_settings_api import GlobalTenantSecuritySettingsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.network_configuration import NetworkConfiguration - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - try: - # Get security network configuration. - - results = GlobalTenantSecuritySettingsApi(api_client).get_auth_org_network_config() - # Below is a request that includes all optional parameters - # results = GlobalTenantSecuritySettingsApi(api_client).get_auth_org_network_config() - print("The response of GlobalTenantSecuritySettingsApi->get_auth_org_network_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling GlobalTenantSecuritySettingsApi->get_auth_org_network_config: %s\n" % e) + try: + # Get security network configuration. + + results = GlobalTenantSecuritySettingsApi(api_client).get_auth_org_network_config() + # Below is a request that includes all optional parameters + # results = GlobalTenantSecuritySettingsApi(api_client).get_auth_org_network_config() + print("The response of GlobalTenantSecuritySettingsApi->get_auth_org_network_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling GlobalTenantSecuritySettingsApi->get_auth_org_network_config: %s\n" % e) - path: /auth-org/network-config method: PATCH xCodeSample: @@ -6688,23 +6482,22 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.json_patch_operation import JsonPatchOperation from sailpoint.v2024.models.network_configuration import NetworkConfiguration - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - json_patch_operation = '''[{op=replace, path=/whitelisted, value=false,}, {op=add, path=/geolocation, value=[AF, HN, ES]}]''' # List[JsonPatchOperation] | A list of auth org network configuration update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Ensures that the patched Network Config conforms to certain logical guidelines, which are: 1. Each string element in the range array must be a valid ip address or ip subnet mask. 2. Each string element in the geolocation array must be 2 characters, and they can only be uppercase letters. - try: - # Update security network configuration. - new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) - results = GlobalTenantSecuritySettingsApi(api_client).patch_auth_org_network_config(json_patch_operation=new_json_patch_operation) - # Below is a request that includes all optional parameters - # results = GlobalTenantSecuritySettingsApi(api_client).patch_auth_org_network_config(new_json_patch_operation) - print("The response of GlobalTenantSecuritySettingsApi->patch_auth_org_network_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling GlobalTenantSecuritySettingsApi->patch_auth_org_network_config: %s\n" % e) + json_patch_operation = '''[{op=replace, path=/whitelisted, value=false,}, {op=add, path=/geolocation, value=[AF, HN, ES]}]''' # List[JsonPatchOperation] | A list of auth org network configuration update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Ensures that the patched Network Config conforms to certain logical guidelines, which are: 1. Each string element in the range array must be a valid ip address or ip subnet mask. 2. Each string element in the geolocation array must be 2 characters, and they can only be uppercase letters. + try: + # Update security network configuration. + new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) + results = GlobalTenantSecuritySettingsApi(api_client).patch_auth_org_network_config(json_patch_operation=new_json_patch_operation) + # Below is a request that includes all optional parameters + # results = GlobalTenantSecuritySettingsApi(api_client).patch_auth_org_network_config(new_json_patch_operation) + print("The response of GlobalTenantSecuritySettingsApi->patch_auth_org_network_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling GlobalTenantSecuritySettingsApi->patch_auth_org_network_config: %s\n" % e) - path: /workgroups method: POST xCodeSample: @@ -6714,15 +6507,14 @@ from sailpoint.v2024.api.governance_groups_api import GovernanceGroupsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.workgroup_dto import WorkgroupDto - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - workgroup_dto = '''{ + 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') + workgroup_dto = '''{ "owner" : { "emailAddress" : "support@sailpoint.com", "displayName" : "Support", @@ -6738,16 +6530,16 @@ "modified" : "2022-01-06T19:51:13Z", "id" : "2c91808568c529c60168cca6f90c1313" }''' # WorkgroupDto | - try: - # Create a new Governance Group. - new_workgroup_dto = WorkgroupDto.from_json(workgroup_dto) - results = GovernanceGroupsApi(api_client).create_workgroup(x_sail_point_experimental=x_sail_point_experimental, workgroup_dto=new_workgroup_dto) - # Below is a request that includes all optional parameters - # results = GovernanceGroupsApi(api_client).create_workgroup(x_sail_point_experimental, new_workgroup_dto) - print("The response of GovernanceGroupsApi->create_workgroup:\n") - pprint(results) - except Exception as e: - print("Exception when calling GovernanceGroupsApi->create_workgroup: %s\n" % e) + try: + # Create a new Governance Group. + new_workgroup_dto = WorkgroupDto.from_json(workgroup_dto) + results = GovernanceGroupsApi(api_client).create_workgroup(x_sail_point_experimental=x_sail_point_experimental, workgroup_dto=new_workgroup_dto) + # Below is a request that includes all optional parameters + # results = GovernanceGroupsApi(api_client).create_workgroup(x_sail_point_experimental, new_workgroup_dto) + print("The response of GovernanceGroupsApi->create_workgroup:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling GovernanceGroupsApi->create_workgroup: %s\n" % e) - path: /workgroups/{id} method: DELETE xCodeSample: @@ -6756,23 +6548,22 @@ source: | from sailpoint.v2024.api.governance_groups_api import GovernanceGroupsApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = '2c9180837ca6693d017ca8d097500149' # str | ID of the Governance Group # str | ID of the Governance Group - 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: - # Delete a Governance Group - - GovernanceGroupsApi(api_client).delete_workgroup(id=id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # GovernanceGroupsApi(api_client).delete_workgroup(id, x_sail_point_experimental) - except Exception as e: - print("Exception when calling GovernanceGroupsApi->delete_workgroup: %s\n" % e) + id = '2c9180837ca6693d017ca8d097500149' # str | ID of the Governance Group # str | ID of the Governance Group + 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: + # Delete a Governance Group + + GovernanceGroupsApi(api_client).delete_workgroup(id=id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # GovernanceGroupsApi(api_client).delete_workgroup(id, x_sail_point_experimental) + except Exception as e: + print("Exception when calling GovernanceGroupsApi->delete_workgroup: %s\n" % e) - path: /workgroups/{workgroupId}/members/bulk-delete method: POST xCodeSample: @@ -6783,26 +6574,25 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.identity_preview_response_identity import IdentityPreviewResponseIdentity from sailpoint.v2024.models.workgroup_member_delete_item import WorkgroupMemberDeleteItem - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - workgroup_id = '2c91808a7813090a017814121919ecca' # str | ID of the Governance Group. # str | ID of the Governance Group. - 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') - identity_preview_response_identity = '''[sailpoint.v2024.IdentityPreviewResponseIdentity()]''' # List[IdentityPreviewResponseIdentity] | List of identities to be removed from a Governance Group members list. - try: - # Remove members from Governance Group - new_identity_preview_response_identity = IdentityPreviewResponseIdentity.from_json(identity_preview_response_identity) - results = GovernanceGroupsApi(api_client).delete_workgroup_members(workgroup_id=workgroup_id, x_sail_point_experimental=x_sail_point_experimental, identity_preview_response_identity=new_identity_preview_response_identity) - # Below is a request that includes all optional parameters - # results = GovernanceGroupsApi(api_client).delete_workgroup_members(workgroup_id, x_sail_point_experimental, new_identity_preview_response_identity) - print("The response of GovernanceGroupsApi->delete_workgroup_members:\n") - pprint(results) - except Exception as e: - print("Exception when calling GovernanceGroupsApi->delete_workgroup_members: %s\n" % e) + workgroup_id = '2c91808a7813090a017814121919ecca' # str | ID of the Governance Group. # str | ID of the Governance Group. + 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') + identity_preview_response_identity = '''[sailpoint.v2024.IdentityPreviewResponseIdentity()]''' # List[IdentityPreviewResponseIdentity] | List of identities to be removed from a Governance Group members list. + try: + # Remove members from Governance Group + new_identity_preview_response_identity = IdentityPreviewResponseIdentity.from_json(identity_preview_response_identity) + results = GovernanceGroupsApi(api_client).delete_workgroup_members(workgroup_id=workgroup_id, x_sail_point_experimental=x_sail_point_experimental, identity_preview_response_identity=new_identity_preview_response_identity) + # Below is a request that includes all optional parameters + # results = GovernanceGroupsApi(api_client).delete_workgroup_members(workgroup_id, x_sail_point_experimental, new_identity_preview_response_identity) + print("The response of GovernanceGroupsApi->delete_workgroup_members:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling GovernanceGroupsApi->delete_workgroup_members: %s\n" % e) - path: /workgroups/bulk-delete method: POST xCodeSample: @@ -6813,27 +6603,26 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.workgroup_bulk_delete_request import WorkgroupBulkDeleteRequest from sailpoint.v2024.models.workgroup_delete_item import WorkgroupDeleteItem - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - workgroup_bulk_delete_request = '''{ + 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') + workgroup_bulk_delete_request = '''{ "ids" : [ "567a697e-885b-495a-afc5-d55e1c23a302", "c7b0f7b2-1e78-4063-b294-a555333dacd2" ] }''' # WorkgroupBulkDeleteRequest | - try: - # Delete Governance Group(s) - new_workgroup_bulk_delete_request = WorkgroupBulkDeleteRequest.from_json(workgroup_bulk_delete_request) - results = GovernanceGroupsApi(api_client).delete_workgroups_in_bulk(x_sail_point_experimental=x_sail_point_experimental, workgroup_bulk_delete_request=new_workgroup_bulk_delete_request) - # Below is a request that includes all optional parameters - # results = GovernanceGroupsApi(api_client).delete_workgroups_in_bulk(x_sail_point_experimental, new_workgroup_bulk_delete_request) - print("The response of GovernanceGroupsApi->delete_workgroups_in_bulk:\n") - pprint(results) - except Exception as e: - print("Exception when calling GovernanceGroupsApi->delete_workgroups_in_bulk: %s\n" % e) + try: + # Delete Governance Group(s) + new_workgroup_bulk_delete_request = WorkgroupBulkDeleteRequest.from_json(workgroup_bulk_delete_request) + results = GovernanceGroupsApi(api_client).delete_workgroups_in_bulk(x_sail_point_experimental=x_sail_point_experimental, workgroup_bulk_delete_request=new_workgroup_bulk_delete_request) + # Below is a request that includes all optional parameters + # results = GovernanceGroupsApi(api_client).delete_workgroups_in_bulk(x_sail_point_experimental, new_workgroup_bulk_delete_request) + print("The response of GovernanceGroupsApi->delete_workgroups_in_bulk:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling GovernanceGroupsApi->delete_workgroups_in_bulk: %s\n" % e) - path: /workgroups/{id} method: GET xCodeSample: @@ -6843,25 +6632,24 @@ from sailpoint.v2024.api.governance_groups_api import GovernanceGroupsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.workgroup_dto import WorkgroupDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = '2c9180837ca6693d017ca8d097500149' # str | ID of the Governance Group # str | ID of the Governance Group - 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 Governance Group by Id - - results = GovernanceGroupsApi(api_client).get_workgroup(id=id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = GovernanceGroupsApi(api_client).get_workgroup(id, x_sail_point_experimental) - print("The response of GovernanceGroupsApi->get_workgroup:\n") - pprint(results) - except Exception as e: - print("Exception when calling GovernanceGroupsApi->get_workgroup: %s\n" % e) + id = '2c9180837ca6693d017ca8d097500149' # str | ID of the Governance Group # str | ID of the Governance Group + 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 Governance Group by Id + + results = GovernanceGroupsApi(api_client).get_workgroup(id=id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = GovernanceGroupsApi(api_client).get_workgroup(id, x_sail_point_experimental) + print("The response of GovernanceGroupsApi->get_workgroup:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling GovernanceGroupsApi->get_workgroup: %s\n" % e) - path: /workgroups/{workgroupId}/connections method: GET xCodeSample: @@ -6871,29 +6659,28 @@ from sailpoint.v2024.api.governance_groups_api import GovernanceGroupsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.workgroup_connection_dto import WorkgroupConnectionDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - workgroup_id = '2c91808a7813090a017814121919ecca' # str | ID of the Governance Group. # str | ID of the Governance Group. - 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') - 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) - limit = 50 # int | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) # int | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) - 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) - sorters = 'name,-modified' # 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: **name, created, modified** (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: **name, created, modified** (optional) - try: - # List connections for Governance Group - - results = GovernanceGroupsApi(api_client).list_connections(workgroup_id=workgroup_id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = GovernanceGroupsApi(api_client).list_connections(workgroup_id, x_sail_point_experimental, offset, limit, count, sorters) - print("The response of GovernanceGroupsApi->list_connections:\n") - pprint(results) - except Exception as e: - print("Exception when calling GovernanceGroupsApi->list_connections: %s\n" % e) + workgroup_id = '2c91808a7813090a017814121919ecca' # str | ID of the Governance Group. # str | ID of the Governance Group. + 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') + 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) + limit = 50 # int | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) # int | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) + 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) + sorters = 'name,-modified' # 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: **name, created, modified** (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: **name, created, modified** (optional) + try: + # List connections for Governance Group + + results = GovernanceGroupsApi(api_client).list_connections(workgroup_id=workgroup_id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = GovernanceGroupsApi(api_client).list_connections(workgroup_id, x_sail_point_experimental, offset, limit, count, sorters) + print("The response of GovernanceGroupsApi->list_connections:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling GovernanceGroupsApi->list_connections: %s\n" % e) - path: /workgroups/{workgroupId}/members method: GET xCodeSample: @@ -6903,29 +6690,28 @@ from sailpoint.v2024.api.governance_groups_api import GovernanceGroupsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.list_workgroup_members200_response_inner import ListWorkgroupMembers200ResponseInner - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - workgroup_id = '2c91808a7813090a017814121919ecca' # str | ID of the Governance Group. # str | ID of the Governance Group. - 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') - 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) - limit = 50 # int | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) # int | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) - 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) - sorters = 'name,-modified' # 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: **name, created, modified** (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: **name, created, modified** (optional) - try: - # List Governance Group Members - - results = GovernanceGroupsApi(api_client).list_workgroup_members(workgroup_id=workgroup_id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = GovernanceGroupsApi(api_client).list_workgroup_members(workgroup_id, x_sail_point_experimental, offset, limit, count, sorters) - print("The response of GovernanceGroupsApi->list_workgroup_members:\n") - pprint(results) - except Exception as e: - print("Exception when calling GovernanceGroupsApi->list_workgroup_members: %s\n" % e) + workgroup_id = '2c91808a7813090a017814121919ecca' # str | ID of the Governance Group. # str | ID of the Governance Group. + 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') + 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) + limit = 50 # int | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) # int | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) + 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) + sorters = 'name,-modified' # 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: **name, created, modified** (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: **name, created, modified** (optional) + try: + # List Governance Group Members + + results = GovernanceGroupsApi(api_client).list_workgroup_members(workgroup_id=workgroup_id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = GovernanceGroupsApi(api_client).list_workgroup_members(workgroup_id, x_sail_point_experimental, offset, limit, count, sorters) + print("The response of GovernanceGroupsApi->list_workgroup_members:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling GovernanceGroupsApi->list_workgroup_members: %s\n" % e) - path: /workgroups method: GET xCodeSample: @@ -6935,29 +6721,28 @@ from sailpoint.v2024.api.governance_groups_api import GovernanceGroupsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.workgroup_dto import WorkgroupDto - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - 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) - limit = 50 # int | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) # int | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) - 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 sw \"Test\"' # 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, sw, in* **memberships.identityId**: *eq, in* (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, sw, in* **memberships.identityId**: *eq, in* (optional) - sorters = 'name,-modified' # 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: **name, created, modified, id, description** (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: **name, created, modified, id, description** (optional) - try: - # List Governance Groups - - results = GovernanceGroupsApi(api_client).list_workgroups(x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = GovernanceGroupsApi(api_client).list_workgroups(x_sail_point_experimental, offset, limit, count, filters, sorters) - print("The response of GovernanceGroupsApi->list_workgroups:\n") - pprint(results) - except Exception as e: - print("Exception when calling GovernanceGroupsApi->list_workgroups: %s\n" % e) + 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') + 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) + limit = 50 # int | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) # int | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) + 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 sw \"Test\"' # 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, sw, in* **memberships.identityId**: *eq, in* (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, sw, in* **memberships.identityId**: *eq, in* (optional) + sorters = 'name,-modified' # 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: **name, created, modified, id, description** (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: **name, created, modified, id, description** (optional) + try: + # List Governance Groups + + results = GovernanceGroupsApi(api_client).list_workgroups(x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = GovernanceGroupsApi(api_client).list_workgroups(x_sail_point_experimental, offset, limit, count, filters, sorters) + print("The response of GovernanceGroupsApi->list_workgroups:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling GovernanceGroupsApi->list_workgroups: %s\n" % e) - path: /workgroups/{id} method: PATCH xCodeSample: @@ -6968,26 +6753,25 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.json_patch_operation import JsonPatchOperation from sailpoint.v2024.models.workgroup_dto import WorkgroupDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = '2c9180837ca6693d017ca8d097500149' # str | ID of the Governance Group # str | ID of the Governance Group - 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') - json_patch_operation = '''[{op=replace, path=/description, value=Governance Group new description.}]''' # List[JsonPatchOperation] | (optional) - try: - # Patch a Governance Group - - results = GovernanceGroupsApi(api_client).patch_workgroup(id=id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = GovernanceGroupsApi(api_client).patch_workgroup(id, x_sail_point_experimental, new_json_patch_operation) - print("The response of GovernanceGroupsApi->patch_workgroup:\n") - pprint(results) - except Exception as e: - print("Exception when calling GovernanceGroupsApi->patch_workgroup: %s\n" % e) + id = '2c9180837ca6693d017ca8d097500149' # str | ID of the Governance Group # str | ID of the Governance Group + 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') + json_patch_operation = '''[{op=replace, path=/description, value=Governance Group new description.}]''' # List[JsonPatchOperation] | (optional) + try: + # Patch a Governance Group + + results = GovernanceGroupsApi(api_client).patch_workgroup(id=id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = GovernanceGroupsApi(api_client).patch_workgroup(id, x_sail_point_experimental, new_json_patch_operation) + print("The response of GovernanceGroupsApi->patch_workgroup:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling GovernanceGroupsApi->patch_workgroup: %s\n" % e) - path: /workgroups/{workgroupId}/members/bulk-add method: POST xCodeSample: @@ -6998,26 +6782,25 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.identity_preview_response_identity import IdentityPreviewResponseIdentity from sailpoint.v2024.models.workgroup_member_add_item import WorkgroupMemberAddItem - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - workgroup_id = '2c91808a7813090a017814121919ecca' # str | ID of the Governance Group. # str | ID of the Governance Group. - 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') - identity_preview_response_identity = '''[sailpoint.v2024.IdentityPreviewResponseIdentity()]''' # List[IdentityPreviewResponseIdentity] | List of identities to be added to a Governance Group members list. - try: - # Add members to Governance Group - new_identity_preview_response_identity = IdentityPreviewResponseIdentity.from_json(identity_preview_response_identity) - results = GovernanceGroupsApi(api_client).update_workgroup_members(workgroup_id=workgroup_id, x_sail_point_experimental=x_sail_point_experimental, identity_preview_response_identity=new_identity_preview_response_identity) - # Below is a request that includes all optional parameters - # results = GovernanceGroupsApi(api_client).update_workgroup_members(workgroup_id, x_sail_point_experimental, new_identity_preview_response_identity) - print("The response of GovernanceGroupsApi->update_workgroup_members:\n") - pprint(results) - except Exception as e: - print("Exception when calling GovernanceGroupsApi->update_workgroup_members: %s\n" % e) + workgroup_id = '2c91808a7813090a017814121919ecca' # str | ID of the Governance Group. # str | ID of the Governance Group. + 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') + identity_preview_response_identity = '''[sailpoint.v2024.IdentityPreviewResponseIdentity()]''' # List[IdentityPreviewResponseIdentity] | List of identities to be added to a Governance Group members list. + try: + # Add members to Governance Group + new_identity_preview_response_identity = IdentityPreviewResponseIdentity.from_json(identity_preview_response_identity) + results = GovernanceGroupsApi(api_client).update_workgroup_members(workgroup_id=workgroup_id, x_sail_point_experimental=x_sail_point_experimental, identity_preview_response_identity=new_identity_preview_response_identity) + # Below is a request that includes all optional parameters + # results = GovernanceGroupsApi(api_client).update_workgroup_members(workgroup_id, x_sail_point_experimental, new_identity_preview_response_identity) + print("The response of GovernanceGroupsApi->update_workgroup_members:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling GovernanceGroupsApi->update_workgroup_members: %s\n" % e) - path: /ai-access-request-recommendations/ignored-items method: POST xCodeSample: @@ -7028,31 +6811,30 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.access_request_recommendation_action_item_dto import AccessRequestRecommendationActionItemDto from sailpoint.v2024.models.access_request_recommendation_action_item_response_dto import AccessRequestRecommendationActionItemResponseDto - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - access_request_recommendation_action_item_dto = '''{ + 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') + access_request_recommendation_action_item_dto = '''{ "access" : { "id" : "2c9180835d2e5168015d32f890ca1581", "type" : "ACCESS_PROFILE" }, "identityId" : "2c91808570313110017040b06f344ec9" }''' # AccessRequestRecommendationActionItemDto | The recommended access item to ignore for an identity. - try: - # Ignore Access Request Recommendation - new_access_request_recommendation_action_item_dto = AccessRequestRecommendationActionItemDto.from_json(access_request_recommendation_action_item_dto) - results = IAIAccessRequestRecommendationsApi(api_client).add_access_request_recommendations_ignored_item(x_sail_point_experimental=x_sail_point_experimental, access_request_recommendation_action_item_dto=new_access_request_recommendation_action_item_dto) - # Below is a request that includes all optional parameters - # results = IAIAccessRequestRecommendationsApi(api_client).add_access_request_recommendations_ignored_item(x_sail_point_experimental, new_access_request_recommendation_action_item_dto) - print("The response of IAIAccessRequestRecommendationsApi->add_access_request_recommendations_ignored_item:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIAccessRequestRecommendationsApi->add_access_request_recommendations_ignored_item: %s\n" % e) + try: + # Ignore Access Request Recommendation + new_access_request_recommendation_action_item_dto = AccessRequestRecommendationActionItemDto.from_json(access_request_recommendation_action_item_dto) + results = IAIAccessRequestRecommendationsApi(api_client).add_access_request_recommendations_ignored_item(x_sail_point_experimental=x_sail_point_experimental, access_request_recommendation_action_item_dto=new_access_request_recommendation_action_item_dto) + # Below is a request that includes all optional parameters + # results = IAIAccessRequestRecommendationsApi(api_client).add_access_request_recommendations_ignored_item(x_sail_point_experimental, new_access_request_recommendation_action_item_dto) + print("The response of IAIAccessRequestRecommendationsApi->add_access_request_recommendations_ignored_item:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIAccessRequestRecommendationsApi->add_access_request_recommendations_ignored_item: %s\n" % e) - path: /ai-access-request-recommendations/requested-items method: POST xCodeSample: @@ -7063,31 +6845,30 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.access_request_recommendation_action_item_dto import AccessRequestRecommendationActionItemDto from sailpoint.v2024.models.access_request_recommendation_action_item_response_dto import AccessRequestRecommendationActionItemResponseDto - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - access_request_recommendation_action_item_dto = '''{ + 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') + access_request_recommendation_action_item_dto = '''{ "access" : { "id" : "2c9180835d2e5168015d32f890ca1581", "type" : "ACCESS_PROFILE" }, "identityId" : "2c91808570313110017040b06f344ec9" }''' # AccessRequestRecommendationActionItemDto | The recommended access item that was requested for an identity. - try: - # Accept Access Request Recommendation - new_access_request_recommendation_action_item_dto = AccessRequestRecommendationActionItemDto.from_json(access_request_recommendation_action_item_dto) - results = IAIAccessRequestRecommendationsApi(api_client).add_access_request_recommendations_requested_item(x_sail_point_experimental=x_sail_point_experimental, access_request_recommendation_action_item_dto=new_access_request_recommendation_action_item_dto) - # Below is a request that includes all optional parameters - # results = IAIAccessRequestRecommendationsApi(api_client).add_access_request_recommendations_requested_item(x_sail_point_experimental, new_access_request_recommendation_action_item_dto) - print("The response of IAIAccessRequestRecommendationsApi->add_access_request_recommendations_requested_item:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIAccessRequestRecommendationsApi->add_access_request_recommendations_requested_item: %s\n" % e) + try: + # Accept Access Request Recommendation + new_access_request_recommendation_action_item_dto = AccessRequestRecommendationActionItemDto.from_json(access_request_recommendation_action_item_dto) + results = IAIAccessRequestRecommendationsApi(api_client).add_access_request_recommendations_requested_item(x_sail_point_experimental=x_sail_point_experimental, access_request_recommendation_action_item_dto=new_access_request_recommendation_action_item_dto) + # Below is a request that includes all optional parameters + # results = IAIAccessRequestRecommendationsApi(api_client).add_access_request_recommendations_requested_item(x_sail_point_experimental, new_access_request_recommendation_action_item_dto) + print("The response of IAIAccessRequestRecommendationsApi->add_access_request_recommendations_requested_item:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIAccessRequestRecommendationsApi->add_access_request_recommendations_requested_item: %s\n" % e) - path: /ai-access-request-recommendations/viewed-items method: POST xCodeSample: @@ -7098,31 +6879,30 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.access_request_recommendation_action_item_dto import AccessRequestRecommendationActionItemDto from sailpoint.v2024.models.access_request_recommendation_action_item_response_dto import AccessRequestRecommendationActionItemResponseDto - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - access_request_recommendation_action_item_dto = '''{ + 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') + access_request_recommendation_action_item_dto = '''{ "access" : { "id" : "2c9180835d2e5168015d32f890ca1581", "type" : "ACCESS_PROFILE" }, "identityId" : "2c91808570313110017040b06f344ec9" }''' # AccessRequestRecommendationActionItemDto | The recommended access that was viewed for an identity. - try: - # Mark Viewed Access Request Recommendations - new_access_request_recommendation_action_item_dto = AccessRequestRecommendationActionItemDto.from_json(access_request_recommendation_action_item_dto) - results = IAIAccessRequestRecommendationsApi(api_client).add_access_request_recommendations_viewed_item(x_sail_point_experimental=x_sail_point_experimental, access_request_recommendation_action_item_dto=new_access_request_recommendation_action_item_dto) - # Below is a request that includes all optional parameters - # results = IAIAccessRequestRecommendationsApi(api_client).add_access_request_recommendations_viewed_item(x_sail_point_experimental, new_access_request_recommendation_action_item_dto) - print("The response of IAIAccessRequestRecommendationsApi->add_access_request_recommendations_viewed_item:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIAccessRequestRecommendationsApi->add_access_request_recommendations_viewed_item: %s\n" % e) + try: + # Mark Viewed Access Request Recommendations + new_access_request_recommendation_action_item_dto = AccessRequestRecommendationActionItemDto.from_json(access_request_recommendation_action_item_dto) + results = IAIAccessRequestRecommendationsApi(api_client).add_access_request_recommendations_viewed_item(x_sail_point_experimental=x_sail_point_experimental, access_request_recommendation_action_item_dto=new_access_request_recommendation_action_item_dto) + # Below is a request that includes all optional parameters + # results = IAIAccessRequestRecommendationsApi(api_client).add_access_request_recommendations_viewed_item(x_sail_point_experimental, new_access_request_recommendation_action_item_dto) + print("The response of IAIAccessRequestRecommendationsApi->add_access_request_recommendations_viewed_item:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIAccessRequestRecommendationsApi->add_access_request_recommendations_viewed_item: %s\n" % e) - path: /ai-access-request-recommendations/viewed-items/bulk-create method: POST xCodeSample: @@ -7133,25 +6913,24 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.access_request_recommendation_action_item_dto import AccessRequestRecommendationActionItemDto from sailpoint.v2024.models.access_request_recommendation_action_item_response_dto import AccessRequestRecommendationActionItemResponseDto - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - access_request_recommendation_action_item_dto = '''[sailpoint.v2024.AccessRequestRecommendationActionItemDto()]''' # List[AccessRequestRecommendationActionItemDto] | The recommended access items that were viewed for an identity. - try: - # Bulk Mark Viewed Access Request Recommendations - new_access_request_recommendation_action_item_dto = AccessRequestRecommendationActionItemDto.from_json(access_request_recommendation_action_item_dto) - results = IAIAccessRequestRecommendationsApi(api_client).add_access_request_recommendations_viewed_items(x_sail_point_experimental=x_sail_point_experimental, access_request_recommendation_action_item_dto=new_access_request_recommendation_action_item_dto) - # Below is a request that includes all optional parameters - # results = IAIAccessRequestRecommendationsApi(api_client).add_access_request_recommendations_viewed_items(x_sail_point_experimental, new_access_request_recommendation_action_item_dto) - print("The response of IAIAccessRequestRecommendationsApi->add_access_request_recommendations_viewed_items:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIAccessRequestRecommendationsApi->add_access_request_recommendations_viewed_items: %s\n" % e) + 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') + access_request_recommendation_action_item_dto = '''[sailpoint.v2024.AccessRequestRecommendationActionItemDto()]''' # List[AccessRequestRecommendationActionItemDto] | The recommended access items that were viewed for an identity. + try: + # Bulk Mark Viewed Access Request Recommendations + new_access_request_recommendation_action_item_dto = AccessRequestRecommendationActionItemDto.from_json(access_request_recommendation_action_item_dto) + results = IAIAccessRequestRecommendationsApi(api_client).add_access_request_recommendations_viewed_items(x_sail_point_experimental=x_sail_point_experimental, access_request_recommendation_action_item_dto=new_access_request_recommendation_action_item_dto) + # Below is a request that includes all optional parameters + # results = IAIAccessRequestRecommendationsApi(api_client).add_access_request_recommendations_viewed_items(x_sail_point_experimental, new_access_request_recommendation_action_item_dto) + print("The response of IAIAccessRequestRecommendationsApi->add_access_request_recommendations_viewed_items:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIAccessRequestRecommendationsApi->add_access_request_recommendations_viewed_items: %s\n" % e) - path: /ai-access-request-recommendations method: GET xCodeSample: @@ -7161,31 +6940,30 @@ from sailpoint.v2024.api.iai_access_request_recommendations_api import IAIAccessRequestRecommendationsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.access_request_recommendation_item_detail import AccessRequestRecommendationItemDetail - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - identity_id = 'me' # str | Get access request recommendations for an identityId. *me* indicates the current user. (optional) (default to 'me') # str | Get access request recommendations for an identityId. *me* indicates the current user. (optional) (default to 'me') - limit = 15 # int | Max number of results to return. (optional) (default to 15) # int | Max number of results to return. (optional) (default to 15) - 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) - include_translation_messages = False # bool | If *true* it will populate a list of translation messages in the response. (optional) (default to False) # bool | If *true* it will populate a list of translation messages in the response. (optional) (default to False) - filters = 'access.name co \"admin\"' # 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: **access.name**: *co* **access.type**: *eq, in* **access.description**: *co, eq, in* (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: **access.name**: *co* **access.type**: *eq, in* **access.description**: *co, eq, in* (optional) - sorters = 'access.name' # 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: **access.name, access.type** By default the recommendations are sorted by highest confidence first. (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: **access.name, access.type** By default the recommendations are sorted by highest confidence first. (optional) - try: - # Identity Access Request Recommendations - - results = IAIAccessRequestRecommendationsApi(api_client).get_access_request_recommendations(x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = IAIAccessRequestRecommendationsApi(api_client).get_access_request_recommendations(x_sail_point_experimental, identity_id, limit, offset, count, include_translation_messages, filters, sorters) - print("The response of IAIAccessRequestRecommendationsApi->get_access_request_recommendations:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIAccessRequestRecommendationsApi->get_access_request_recommendations: %s\n" % e) + 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') + identity_id = 'me' # str | Get access request recommendations for an identityId. *me* indicates the current user. (optional) (default to 'me') # str | Get access request recommendations for an identityId. *me* indicates the current user. (optional) (default to 'me') + limit = 15 # int | Max number of results to return. (optional) (default to 15) # int | Max number of results to return. (optional) (default to 15) + 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) + include_translation_messages = False # bool | If *true* it will populate a list of translation messages in the response. (optional) (default to False) # bool | If *true* it will populate a list of translation messages in the response. (optional) (default to False) + filters = 'access.name co \"admin\"' # 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: **access.name**: *co* **access.type**: *eq, in* **access.description**: *co, eq, in* (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: **access.name**: *co* **access.type**: *eq, in* **access.description**: *co, eq, in* (optional) + sorters = 'access.name' # 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: **access.name, access.type** By default the recommendations are sorted by highest confidence first. (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: **access.name, access.type** By default the recommendations are sorted by highest confidence first. (optional) + try: + # Identity Access Request Recommendations + + results = IAIAccessRequestRecommendationsApi(api_client).get_access_request_recommendations(x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = IAIAccessRequestRecommendationsApi(api_client).get_access_request_recommendations(x_sail_point_experimental, identity_id, limit, offset, count, include_translation_messages, filters, sorters) + print("The response of IAIAccessRequestRecommendationsApi->get_access_request_recommendations:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIAccessRequestRecommendationsApi->get_access_request_recommendations: %s\n" % e) - path: /ai-access-request-recommendations/config method: GET xCodeSample: @@ -7195,24 +6973,23 @@ from sailpoint.v2024.api.iai_access_request_recommendations_api import IAIAccessRequestRecommendationsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.access_request_recommendation_config_dto import AccessRequestRecommendationConfigDto - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - try: - # Get Access Request Recommendations config - - results = IAIAccessRequestRecommendationsApi(api_client).get_access_request_recommendations_config(x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = IAIAccessRequestRecommendationsApi(api_client).get_access_request_recommendations_config(x_sail_point_experimental) - print("The response of IAIAccessRequestRecommendationsApi->get_access_request_recommendations_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIAccessRequestRecommendationsApi->get_access_request_recommendations_config: %s\n" % e) + 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 Access Request Recommendations config + + results = IAIAccessRequestRecommendationsApi(api_client).get_access_request_recommendations_config(x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = IAIAccessRequestRecommendationsApi(api_client).get_access_request_recommendations_config(x_sail_point_experimental) + print("The response of IAIAccessRequestRecommendationsApi->get_access_request_recommendations_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIAccessRequestRecommendationsApi->get_access_request_recommendations_config: %s\n" % e) - path: /ai-access-request-recommendations/ignored-items method: GET xCodeSample: @@ -7222,29 +6999,28 @@ from sailpoint.v2024.api.iai_access_request_recommendations_api import IAIAccessRequestRecommendationsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.access_request_recommendation_action_item_response_dto import AccessRequestRecommendationActionItemResponseDto - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (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 = 'identityId eq \"2c9180846b0a0583016b299f210c1314\"' # 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: **access.id**: *eq, in* **access.type**: *eq, in* **identityId**: *eq, in* (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: **access.id**: *eq, in* **access.type**: *eq, in* **identityId**: *eq, in* (optional) - sorters = 'access.id' # 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: **access.id, access.type, identityId, timestamp** (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: **access.id, access.type, identityId, timestamp** (optional) - try: - # List Ignored Access Request Recommendations - - results = IAIAccessRequestRecommendationsApi(api_client).get_access_request_recommendations_ignored_items(x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = IAIAccessRequestRecommendationsApi(api_client).get_access_request_recommendations_ignored_items(x_sail_point_experimental, limit, offset, count, filters, sorters) - print("The response of IAIAccessRequestRecommendationsApi->get_access_request_recommendations_ignored_items:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIAccessRequestRecommendationsApi->get_access_request_recommendations_ignored_items: %s\n" % e) + 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') + 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 = 'identityId eq \"2c9180846b0a0583016b299f210c1314\"' # 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: **access.id**: *eq, in* **access.type**: *eq, in* **identityId**: *eq, in* (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: **access.id**: *eq, in* **access.type**: *eq, in* **identityId**: *eq, in* (optional) + sorters = 'access.id' # 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: **access.id, access.type, identityId, timestamp** (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: **access.id, access.type, identityId, timestamp** (optional) + try: + # List Ignored Access Request Recommendations + + results = IAIAccessRequestRecommendationsApi(api_client).get_access_request_recommendations_ignored_items(x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = IAIAccessRequestRecommendationsApi(api_client).get_access_request_recommendations_ignored_items(x_sail_point_experimental, limit, offset, count, filters, sorters) + print("The response of IAIAccessRequestRecommendationsApi->get_access_request_recommendations_ignored_items:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIAccessRequestRecommendationsApi->get_access_request_recommendations_ignored_items: %s\n" % e) - path: /ai-access-request-recommendations/requested-items method: GET xCodeSample: @@ -7254,29 +7030,28 @@ from sailpoint.v2024.api.iai_access_request_recommendations_api import IAIAccessRequestRecommendationsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.access_request_recommendation_action_item_response_dto import AccessRequestRecommendationActionItemResponseDto - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (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 = 'access.id eq \"2c9180846b0a0583016b299f210c1314\"' # 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: **access.id**: *eq, in* **access.type**: *eq, in* **identityId**: *eq, in* (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: **access.id**: *eq, in* **access.type**: *eq, in* **identityId**: *eq, in* (optional) - sorters = 'access.id' # 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: **access.id, access.type, identityId, timestamp** (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: **access.id, access.type, identityId, timestamp** (optional) - try: - # List Accepted Access Request Recommendations - - results = IAIAccessRequestRecommendationsApi(api_client).get_access_request_recommendations_requested_items(x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = IAIAccessRequestRecommendationsApi(api_client).get_access_request_recommendations_requested_items(x_sail_point_experimental, limit, offset, count, filters, sorters) - print("The response of IAIAccessRequestRecommendationsApi->get_access_request_recommendations_requested_items:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIAccessRequestRecommendationsApi->get_access_request_recommendations_requested_items: %s\n" % e) + 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') + 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 = 'access.id eq \"2c9180846b0a0583016b299f210c1314\"' # 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: **access.id**: *eq, in* **access.type**: *eq, in* **identityId**: *eq, in* (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: **access.id**: *eq, in* **access.type**: *eq, in* **identityId**: *eq, in* (optional) + sorters = 'access.id' # 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: **access.id, access.type, identityId, timestamp** (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: **access.id, access.type, identityId, timestamp** (optional) + try: + # List Accepted Access Request Recommendations + + results = IAIAccessRequestRecommendationsApi(api_client).get_access_request_recommendations_requested_items(x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = IAIAccessRequestRecommendationsApi(api_client).get_access_request_recommendations_requested_items(x_sail_point_experimental, limit, offset, count, filters, sorters) + print("The response of IAIAccessRequestRecommendationsApi->get_access_request_recommendations_requested_items:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIAccessRequestRecommendationsApi->get_access_request_recommendations_requested_items: %s\n" % e) - path: /ai-access-request-recommendations/viewed-items method: GET xCodeSample: @@ -7286,29 +7061,28 @@ from sailpoint.v2024.api.iai_access_request_recommendations_api import IAIAccessRequestRecommendationsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.access_request_recommendation_action_item_response_dto import AccessRequestRecommendationActionItemResponseDto - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (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 = 'access.id eq \"2c9180846b0a0583016b299f210c1314\"' # 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: **access.id**: *eq, in* **access.type**: *eq, in* **identityId**: *eq, in* (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: **access.id**: *eq, in* **access.type**: *eq, in* **identityId**: *eq, in* (optional) - sorters = 'access.id' # 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: **access.id, access.type, identityId, timestamp** (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: **access.id, access.type, identityId, timestamp** (optional) - try: - # List Viewed Access Request Recommendations - - results = IAIAccessRequestRecommendationsApi(api_client).get_access_request_recommendations_viewed_items(x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = IAIAccessRequestRecommendationsApi(api_client).get_access_request_recommendations_viewed_items(x_sail_point_experimental, limit, offset, count, filters, sorters) - print("The response of IAIAccessRequestRecommendationsApi->get_access_request_recommendations_viewed_items:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIAccessRequestRecommendationsApi->get_access_request_recommendations_viewed_items: %s\n" % e) + 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') + 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 = 'access.id eq \"2c9180846b0a0583016b299f210c1314\"' # 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: **access.id**: *eq, in* **access.type**: *eq, in* **identityId**: *eq, in* (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: **access.id**: *eq, in* **access.type**: *eq, in* **identityId**: *eq, in* (optional) + sorters = 'access.id' # 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: **access.id, access.type, identityId, timestamp** (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: **access.id, access.type, identityId, timestamp** (optional) + try: + # List Viewed Access Request Recommendations + + results = IAIAccessRequestRecommendationsApi(api_client).get_access_request_recommendations_viewed_items(x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = IAIAccessRequestRecommendationsApi(api_client).get_access_request_recommendations_viewed_items(x_sail_point_experimental, limit, offset, count, filters, sorters) + print("The response of IAIAccessRequestRecommendationsApi->get_access_request_recommendations_viewed_items:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIAccessRequestRecommendationsApi->get_access_request_recommendations_viewed_items: %s\n" % e) - path: /ai-access-request-recommendations/config method: PUT xCodeSample: @@ -7318,15 +7092,14 @@ from sailpoint.v2024.api.iai_access_request_recommendations_api import IAIAccessRequestRecommendationsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.access_request_recommendation_config_dto import AccessRequestRecommendationConfigDto - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - access_request_recommendation_config_dto = '''{ + 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') + access_request_recommendation_config_dto = '''{ "scoreThreshold" : 0.5, "startDateAttribute" : "startDate", "restrictionAttribute" : "location", @@ -7334,16 +7107,16 @@ "joinerAttribute" : "isJoiner", "useRestrictionAttribute" : true }''' # AccessRequestRecommendationConfigDto | The desired configurations for Access Request Recommender for the tenant. - try: - # Update Access Request Recommendations config - new_access_request_recommendation_config_dto = AccessRequestRecommendationConfigDto.from_json(access_request_recommendation_config_dto) - results = IAIAccessRequestRecommendationsApi(api_client).set_access_request_recommendations_config(x_sail_point_experimental=x_sail_point_experimental, access_request_recommendation_config_dto=new_access_request_recommendation_config_dto) - # Below is a request that includes all optional parameters - # results = IAIAccessRequestRecommendationsApi(api_client).set_access_request_recommendations_config(x_sail_point_experimental, new_access_request_recommendation_config_dto) - print("The response of IAIAccessRequestRecommendationsApi->set_access_request_recommendations_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIAccessRequestRecommendationsApi->set_access_request_recommendations_config: %s\n" % e) + try: + # Update Access Request Recommendations config + new_access_request_recommendation_config_dto = AccessRequestRecommendationConfigDto.from_json(access_request_recommendation_config_dto) + results = IAIAccessRequestRecommendationsApi(api_client).set_access_request_recommendations_config(x_sail_point_experimental=x_sail_point_experimental, access_request_recommendation_config_dto=new_access_request_recommendation_config_dto) + # Below is a request that includes all optional parameters + # results = IAIAccessRequestRecommendationsApi(api_client).set_access_request_recommendations_config(x_sail_point_experimental, new_access_request_recommendation_config_dto) + print("The response of IAIAccessRequestRecommendationsApi->set_access_request_recommendations_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIAccessRequestRecommendationsApi->set_access_request_recommendations_config: %s\n" % e) - path: /common-access method: POST xCodeSample: @@ -7354,15 +7127,14 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.common_access_item_request import CommonAccessItemRequest from sailpoint.v2024.models.common_access_item_response import CommonAccessItemResponse - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - common_access_item_request = '''{ + 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') + common_access_item_request = '''{ "access" : { "ownerName" : "ownerName", "name" : "name", @@ -7373,16 +7145,16 @@ }, "status" : "CONFIRMED" }''' # CommonAccessItemRequest | - try: - # Create common access items - new_common_access_item_request = CommonAccessItemRequest.from_json(common_access_item_request) - results = IAICommonAccessApi(api_client).create_common_access(x_sail_point_experimental=x_sail_point_experimental, common_access_item_request=new_common_access_item_request) - # Below is a request that includes all optional parameters - # results = IAICommonAccessApi(api_client).create_common_access(x_sail_point_experimental, new_common_access_item_request) - print("The response of IAICommonAccessApi->create_common_access:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAICommonAccessApi->create_common_access: %s\n" % e) + try: + # Create common access items + new_common_access_item_request = CommonAccessItemRequest.from_json(common_access_item_request) + results = IAICommonAccessApi(api_client).create_common_access(x_sail_point_experimental=x_sail_point_experimental, common_access_item_request=new_common_access_item_request) + # Below is a request that includes all optional parameters + # results = IAICommonAccessApi(api_client).create_common_access(x_sail_point_experimental, new_common_access_item_request) + print("The response of IAICommonAccessApi->create_common_access:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAICommonAccessApi->create_common_access: %s\n" % e) - path: /common-access method: GET xCodeSample: @@ -7392,29 +7164,28 @@ from sailpoint.v2024.api.iai_common_access_api import IAICommonAccessApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.common_access_response import CommonAccessResponse - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - 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) - 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) - 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 = 'access.type eq \"ROLE\"' # 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: **status**: *eq, sw* **reviewedByUser** *eq* **access.id**: *eq, sw* **access.type**: *eq* **access.name**: *sw, eq* **access.description**: *sw, eq* (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: **status**: *eq, sw* **reviewedByUser** *eq* **access.id**: *eq, sw* **access.type**: *eq* **access.name**: *sw, eq* **access.description**: *sw, eq* (optional) - sorters = 'access.name' # 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: **access.name, status** By default the common access items are sorted by name, ascending. (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: **access.name, status** By default the common access items are sorted by name, ascending. (optional) - try: - # Get a paginated list of common access - - results = IAICommonAccessApi(api_client).get_common_access(x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = IAICommonAccessApi(api_client).get_common_access(x_sail_point_experimental, offset, limit, count, filters, sorters) - print("The response of IAICommonAccessApi->get_common_access:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAICommonAccessApi->get_common_access: %s\n" % e) + 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') + 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) + 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) + 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 = 'access.type eq \"ROLE\"' # 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: **status**: *eq, sw* **reviewedByUser** *eq* **access.id**: *eq, sw* **access.type**: *eq* **access.name**: *sw, eq* **access.description**: *sw, eq* (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: **status**: *eq, sw* **reviewedByUser** *eq* **access.id**: *eq, sw* **access.type**: *eq* **access.name**: *sw, eq* **access.description**: *sw, eq* (optional) + sorters = 'access.name' # 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: **access.name, status** By default the common access items are sorted by name, ascending. (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: **access.name, status** By default the common access items are sorted by name, ascending. (optional) + try: + # Get a paginated list of common access + + results = IAICommonAccessApi(api_client).get_common_access(x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = IAICommonAccessApi(api_client).get_common_access(x_sail_point_experimental, offset, limit, count, filters, sorters) + print("The response of IAICommonAccessApi->get_common_access:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAICommonAccessApi->get_common_access: %s\n" % e) - path: /common-access/update-status method: POST xCodeSample: @@ -7424,25 +7195,24 @@ from sailpoint.v2024.api.iai_common_access_api import IAICommonAccessApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.common_access_id_status import CommonAccessIDStatus - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - common_access_id_status = '''[sailpoint.v2024.CommonAccessIDStatus()]''' # List[CommonAccessIDStatus] | Confirm or deny in bulk the common access ids that are (or aren't) common access - try: - # Bulk update common access status - new_common_access_id_status = CommonAccessIdStatus.from_json(common_access_id_status) - results = IAICommonAccessApi(api_client).update_common_access_status_in_bulk(x_sail_point_experimental=x_sail_point_experimental, common_access_id_status=new_common_access_id_status) - # Below is a request that includes all optional parameters - # results = IAICommonAccessApi(api_client).update_common_access_status_in_bulk(x_sail_point_experimental, new_common_access_id_status) - print("The response of IAICommonAccessApi->update_common_access_status_in_bulk:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAICommonAccessApi->update_common_access_status_in_bulk: %s\n" % e) + 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') + common_access_id_status = '''[sailpoint.v2024.CommonAccessIDStatus()]''' # List[CommonAccessIDStatus] | Confirm or deny in bulk the common access ids that are (or aren't) common access + try: + # Bulk update common access status + new_common_access_id_status = CommonAccessIdStatus.from_json(common_access_id_status) + results = IAICommonAccessApi(api_client).update_common_access_status_in_bulk(x_sail_point_experimental=x_sail_point_experimental, common_access_id_status=new_common_access_id_status) + # Below is a request that includes all optional parameters + # results = IAICommonAccessApi(api_client).update_common_access_status_in_bulk(x_sail_point_experimental, new_common_access_id_status) + print("The response of IAICommonAccessApi->update_common_access_status_in_bulk:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAICommonAccessApi->update_common_access_status_in_bulk: %s\n" % e) - path: /outliers/export method: GET xCodeSample: @@ -7451,25 +7221,24 @@ source: | from sailpoint.v2024.api.iai_outliers_api import IAIOutliersApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - type = 'LOW_SIMILARITY' # str | Type of the identity outliers snapshot to filter on (optional) # str | Type of the identity outliers snapshot to filter on (optional) - try: - # IAI Identity Outliers Export - - results = IAIOutliersApi(api_client).export_outliers_zip(x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = IAIOutliersApi(api_client).export_outliers_zip(x_sail_point_experimental, type) - print("The response of IAIOutliersApi->export_outliers_zip:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIOutliersApi->export_outliers_zip: %s\n" % e) + 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') + type = 'LOW_SIMILARITY' # str | Type of the identity outliers snapshot to filter on (optional) # str | Type of the identity outliers snapshot to filter on (optional) + try: + # IAI Identity Outliers Export + + results = IAIOutliersApi(api_client).export_outliers_zip(x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = IAIOutliersApi(api_client).export_outliers_zip(x_sail_point_experimental, type) + print("The response of IAIOutliersApi->export_outliers_zip:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIOutliersApi->export_outliers_zip: %s\n" % e) - path: /outlier-summaries method: GET xCodeSample: @@ -7479,29 +7248,28 @@ from sailpoint.v2024.api.iai_outliers_api import IAIOutliersApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.outlier_summary import OutlierSummary - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (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) - type = 'LOW_SIMILARITY' # str | Type of the identity outliers snapshot to filter on (optional) # str | Type of the identity outliers snapshot to filter on (optional) - filters = 'snapshotDate ge \"2022-02-07T20:13:29.356648026Z\"' # 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: **snapshotDate**: *ge, 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: **snapshotDate**: *ge, le* (optional) - sorters = 'snapshotDate' # 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: **snapshotDate** (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: **snapshotDate** (optional) - try: - # IAI Identity Outliers Summary - - results = IAIOutliersApi(api_client).get_identity_outlier_snapshots(x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = IAIOutliersApi(api_client).get_identity_outlier_snapshots(x_sail_point_experimental, limit, offset, type, filters, sorters) - print("The response of IAIOutliersApi->get_identity_outlier_snapshots:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIOutliersApi->get_identity_outlier_snapshots: %s\n" % e) + 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') + 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) + type = 'LOW_SIMILARITY' # str | Type of the identity outliers snapshot to filter on (optional) # str | Type of the identity outliers snapshot to filter on (optional) + filters = 'snapshotDate ge \"2022-02-07T20:13:29.356648026Z\"' # 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: **snapshotDate**: *ge, 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: **snapshotDate**: *ge, le* (optional) + sorters = 'snapshotDate' # 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: **snapshotDate** (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: **snapshotDate** (optional) + try: + # IAI Identity Outliers Summary + + results = IAIOutliersApi(api_client).get_identity_outlier_snapshots(x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = IAIOutliersApi(api_client).get_identity_outlier_snapshots(x_sail_point_experimental, limit, offset, type, filters, sorters) + print("The response of IAIOutliersApi->get_identity_outlier_snapshots:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIOutliersApi->get_identity_outlier_snapshots: %s\n" % e) - path: /outliers method: GET xCodeSample: @@ -7511,30 +7279,29 @@ from sailpoint.v2024.api.iai_outliers_api import IAIOutliersApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.outlier import Outlier - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (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) - type = 'LOW_SIMILARITY' # str | Type of the identity outliers snapshot to filter on (optional) # str | Type of the identity outliers snapshot to filter on (optional) - filters = 'attributes.displayName sw \"John\" and certStatus eq \"false\"' # 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: **attributes**: *eq, sw, co, in* **firstDetectionDate**: *ge, le* **certStatus**: *eq* **ignored**: *eq* **score**: *ge, 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: **attributes**: *eq, sw, co, in* **firstDetectionDate**: *ge, le* **certStatus**: *eq* **ignored**: *eq* **score**: *ge, le* (optional) - sorters = 'attributes.displayName,firstDetectionDate,-score' # 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: **firstDetectionDate, attributes, score** (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: **firstDetectionDate, attributes, score** (optional) - try: - # IAI Get Identity Outliers - - results = IAIOutliersApi(api_client).get_identity_outliers(x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = IAIOutliersApi(api_client).get_identity_outliers(x_sail_point_experimental, limit, offset, count, type, filters, sorters) - print("The response of IAIOutliersApi->get_identity_outliers:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIOutliersApi->get_identity_outliers: %s\n" % e) + 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') + 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) + type = 'LOW_SIMILARITY' # str | Type of the identity outliers snapshot to filter on (optional) # str | Type of the identity outliers snapshot to filter on (optional) + filters = 'attributes.displayName sw \"John\" and certStatus eq \"false\"' # 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: **attributes**: *eq, sw, co, in* **firstDetectionDate**: *ge, le* **certStatus**: *eq* **ignored**: *eq* **score**: *ge, 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: **attributes**: *eq, sw, co, in* **firstDetectionDate**: *ge, le* **certStatus**: *eq* **ignored**: *eq* **score**: *ge, le* (optional) + sorters = 'attributes.displayName,firstDetectionDate,-score' # 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: **firstDetectionDate, attributes, score** (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: **firstDetectionDate, attributes, score** (optional) + try: + # IAI Get Identity Outliers + + results = IAIOutliersApi(api_client).get_identity_outliers(x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = IAIOutliersApi(api_client).get_identity_outliers(x_sail_point_experimental, limit, offset, count, type, filters, sorters) + print("The response of IAIOutliersApi->get_identity_outliers:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIOutliersApi->get_identity_outliers: %s\n" % e) - path: /outlier-summaries/latest method: GET xCodeSample: @@ -7544,25 +7311,24 @@ from sailpoint.v2024.api.iai_outliers_api import IAIOutliersApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.latest_outlier_summary import LatestOutlierSummary - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - type = 'LOW_SIMILARITY' # str | Type of the identity outliers snapshot to filter on (optional) # str | Type of the identity outliers snapshot to filter on (optional) - try: - # IAI Identity Outliers Latest Summary - - results = IAIOutliersApi(api_client).get_latest_identity_outlier_snapshots(x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = IAIOutliersApi(api_client).get_latest_identity_outlier_snapshots(x_sail_point_experimental, type) - print("The response of IAIOutliersApi->get_latest_identity_outlier_snapshots:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIOutliersApi->get_latest_identity_outlier_snapshots: %s\n" % e) + 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') + type = 'LOW_SIMILARITY' # str | Type of the identity outliers snapshot to filter on (optional) # str | Type of the identity outliers snapshot to filter on (optional) + try: + # IAI Identity Outliers Latest Summary + + results = IAIOutliersApi(api_client).get_latest_identity_outlier_snapshots(x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = IAIOutliersApi(api_client).get_latest_identity_outlier_snapshots(x_sail_point_experimental, type) + print("The response of IAIOutliersApi->get_latest_identity_outlier_snapshots:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIOutliersApi->get_latest_identity_outlier_snapshots: %s\n" % e) - path: /outlier-feature-summaries/{outlierFeatureId} method: GET xCodeSample: @@ -7572,25 +7338,24 @@ from sailpoint.v2024.api.iai_outliers_api import IAIOutliersApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.outlier_feature_summary import OutlierFeatureSummary - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - outlier_feature_id = '04654b66-7561-4090-94f9-abee0722a1af' # str | Contributing feature id # str | Contributing feature id - 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 identity outlier contibuting feature summary - - results = IAIOutliersApi(api_client).get_outlier_contributing_feature_summary(outlier_feature_id=outlier_feature_id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = IAIOutliersApi(api_client).get_outlier_contributing_feature_summary(outlier_feature_id, x_sail_point_experimental) - print("The response of IAIOutliersApi->get_outlier_contributing_feature_summary:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIOutliersApi->get_outlier_contributing_feature_summary: %s\n" % e) + outlier_feature_id = '04654b66-7561-4090-94f9-abee0722a1af' # str | Contributing feature id # str | Contributing feature id + 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 identity outlier contibuting feature summary + + results = IAIOutliersApi(api_client).get_outlier_contributing_feature_summary(outlier_feature_id=outlier_feature_id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = IAIOutliersApi(api_client).get_outlier_contributing_feature_summary(outlier_feature_id, x_sail_point_experimental) + print("The response of IAIOutliersApi->get_outlier_contributing_feature_summary:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIOutliersApi->get_outlier_contributing_feature_summary: %s\n" % e) - path: /outliers/{outlierId}/contributing-features method: GET xCodeSample: @@ -7600,30 +7365,29 @@ from sailpoint.v2024.api.iai_outliers_api import IAIOutliersApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.outlier_contributing_feature import OutlierContributingFeature - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - outlier_id = '2c918085842e69ae018432d22ccb212f' # str | The outlier id # str | The outlier id - 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') - 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) - include_translation_messages = 'include-translation-messages=' # str | Whether or not to include translation messages object in returned response (optional) # str | Whether or not to include translation messages object in returned response (optional) - sorters = 'importance' # 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: **importance** (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: **importance** (optional) - try: - # Get identity outlier's contibuting features - - results = IAIOutliersApi(api_client).get_peer_group_outliers_contributing_features(outlier_id=outlier_id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = IAIOutliersApi(api_client).get_peer_group_outliers_contributing_features(outlier_id, x_sail_point_experimental, limit, offset, count, include_translation_messages, sorters) - print("The response of IAIOutliersApi->get_peer_group_outliers_contributing_features:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIOutliersApi->get_peer_group_outliers_contributing_features: %s\n" % e) + outlier_id = '2c918085842e69ae018432d22ccb212f' # str | The outlier id # str | The outlier id + 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') + 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) + include_translation_messages = 'include-translation-messages=' # str | Whether or not to include translation messages object in returned response (optional) # str | Whether or not to include translation messages object in returned response (optional) + sorters = 'importance' # 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: **importance** (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: **importance** (optional) + try: + # Get identity outlier's contibuting features + + results = IAIOutliersApi(api_client).get_peer_group_outliers_contributing_features(outlier_id=outlier_id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = IAIOutliersApi(api_client).get_peer_group_outliers_contributing_features(outlier_id, x_sail_point_experimental, limit, offset, count, include_translation_messages, sorters) + print("The response of IAIOutliersApi->get_peer_group_outliers_contributing_features:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIOutliersApi->get_peer_group_outliers_contributing_features: %s\n" % e) - path: /outliers/ignore method: POST xCodeSample: @@ -7632,23 +7396,22 @@ source: | from sailpoint.v2024.api.iai_outliers_api import IAIOutliersApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - request_body = '''['request_body_example']''' # List[str] | - try: - # IAI Identity Outliers Ignore - new_request_body = RequestBody.from_json(request_body) - IAIOutliersApi(api_client).ignore_identity_outliers(x_sail_point_experimental=x_sail_point_experimental, request_body=new_request_body) - # Below is a request that includes all optional parameters - # IAIOutliersApi(api_client).ignore_identity_outliers(x_sail_point_experimental, new_request_body) - except Exception as e: - print("Exception when calling IAIOutliersApi->ignore_identity_outliers: %s\n" % e) + 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 = '''['request_body_example']''' # List[str] | + try: + # IAI Identity Outliers Ignore + new_request_body = RequestBody.from_json(request_body) + IAIOutliersApi(api_client).ignore_identity_outliers(x_sail_point_experimental=x_sail_point_experimental, request_body=new_request_body) + # Below is a request that includes all optional parameters + # IAIOutliersApi(api_client).ignore_identity_outliers(x_sail_point_experimental, new_request_body) + except Exception as e: + print("Exception when calling IAIOutliersApi->ignore_identity_outliers: %s\n" % e) - path: /outliers/{outlierId}/feature-details/{contributingFeatureName}/access-items method: GET xCodeSample: @@ -7658,31 +7421,30 @@ from sailpoint.v2024.api.iai_outliers_api import IAIOutliersApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.outliers_contributing_feature_access_items import OutliersContributingFeatureAccessItems - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - outlier_id = '2c918085842e69ae018432d22ccb212f' # str | The outlier id # str | The outlier id - contributing_feature_name = 'entitlement_count' # str | The name of contributing feature # str | The name of contributing feature - 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') - 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) - access_type = 'ENTITLEMENT' # str | The type of access item for the identity outlier contributing feature. If not provided, it returns all. (optional) # str | The type of access item for the identity outlier contributing feature. If not provided, it returns all. (optional) - sorters = 'displayName' # 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: **displayName** (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: **displayName** (optional) - try: - # Gets a list of access items associated with each identity outlier contributing feature - - results = IAIOutliersApi(api_client).list_outliers_contributing_feature_access_items(outlier_id=outlier_id, contributing_feature_name=contributing_feature_name, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = IAIOutliersApi(api_client).list_outliers_contributing_feature_access_items(outlier_id, contributing_feature_name, x_sail_point_experimental, limit, offset, count, access_type, sorters) - print("The response of IAIOutliersApi->list_outliers_contributing_feature_access_items:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIOutliersApi->list_outliers_contributing_feature_access_items: %s\n" % e) + outlier_id = '2c918085842e69ae018432d22ccb212f' # str | The outlier id # str | The outlier id + contributing_feature_name = 'entitlement_count' # str | The name of contributing feature # str | The name of contributing feature + 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') + 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) + access_type = 'ENTITLEMENT' # str | The type of access item for the identity outlier contributing feature. If not provided, it returns all. (optional) # str | The type of access item for the identity outlier contributing feature. If not provided, it returns all. (optional) + sorters = 'displayName' # 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: **displayName** (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: **displayName** (optional) + try: + # Gets a list of access items associated with each identity outlier contributing feature + + results = IAIOutliersApi(api_client).list_outliers_contributing_feature_access_items(outlier_id=outlier_id, contributing_feature_name=contributing_feature_name, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = IAIOutliersApi(api_client).list_outliers_contributing_feature_access_items(outlier_id, contributing_feature_name, x_sail_point_experimental, limit, offset, count, access_type, sorters) + print("The response of IAIOutliersApi->list_outliers_contributing_feature_access_items:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIOutliersApi->list_outliers_contributing_feature_access_items: %s\n" % e) - path: /outliers/unignore method: POST xCodeSample: @@ -7691,23 +7453,22 @@ source: | from sailpoint.v2024.api.iai_outliers_api import IAIOutliersApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - request_body = '''['request_body_example']''' # List[str] | - try: - # IAI Identity Outliers Unignore - new_request_body = RequestBody.from_json(request_body) - IAIOutliersApi(api_client).un_ignore_identity_outliers(x_sail_point_experimental=x_sail_point_experimental, request_body=new_request_body) - # Below is a request that includes all optional parameters - # IAIOutliersApi(api_client).un_ignore_identity_outliers(x_sail_point_experimental, new_request_body) - except Exception as e: - print("Exception when calling IAIOutliersApi->un_ignore_identity_outliers: %s\n" % e) + 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 = '''['request_body_example']''' # List[str] | + try: + # IAI Identity Outliers Unignore + new_request_body = RequestBody.from_json(request_body) + IAIOutliersApi(api_client).un_ignore_identity_outliers(x_sail_point_experimental=x_sail_point_experimental, request_body=new_request_body) + # Below is a request that includes all optional parameters + # IAIOutliersApi(api_client).un_ignore_identity_outliers(x_sail_point_experimental, new_request_body) + except Exception as e: + print("Exception when calling IAIOutliersApi->un_ignore_identity_outliers: %s\n" % e) - path: /peer-group-strategies/{strategy}/identity-outliers method: GET xCodeSample: @@ -7717,28 +7478,27 @@ from sailpoint.v2024.api.iai_peer_group_strategies_api import IAIPeerGroupStrategiesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.peer_group_member import PeerGroupMember - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - strategy = 'entitlement' # str | The strategy used to create peer groups. Currently, 'entitlement' is supported. # str | The strategy used to create peer groups. Currently, 'entitlement' is supported. - 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') - 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) - try: - # Identity Outliers List - - results = IAIPeerGroupStrategiesApi(api_client).get_peer_group_outliers(strategy=strategy, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = IAIPeerGroupStrategiesApi(api_client).get_peer_group_outliers(strategy, x_sail_point_experimental, limit, offset, count) - print("The response of IAIPeerGroupStrategiesApi->get_peer_group_outliers:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIPeerGroupStrategiesApi->get_peer_group_outliers: %s\n" % e) + strategy = 'entitlement' # str | The strategy used to create peer groups. Currently, 'entitlement' is supported. # str | The strategy used to create peer groups. Currently, 'entitlement' is supported. + 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') + 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) + try: + # Identity Outliers List + + results = IAIPeerGroupStrategiesApi(api_client).get_peer_group_outliers(strategy=strategy, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = IAIPeerGroupStrategiesApi(api_client).get_peer_group_outliers(strategy, x_sail_point_experimental, limit, offset, count) + print("The response of IAIPeerGroupStrategiesApi->get_peer_group_outliers:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIPeerGroupStrategiesApi->get_peer_group_outliers: %s\n" % e) - path: /recommendations/request method: POST xCodeSample: @@ -7749,15 +7509,14 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.recommendation_request_dto import RecommendationRequestDto from sailpoint.v2024.models.recommendation_response_dto import RecommendationResponseDto - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - recommendation_request_dto = '''{ + 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') + recommendation_request_dto = '''{ "prescribeMode" : false, "excludeInterpretations" : false, "requests" : [ { @@ -7776,16 +7535,16 @@ "includeTranslationMessages" : false, "includeDebugInformation" : true }''' # RecommendationRequestDto | - try: - # Returns Recommendation Based on Object - new_recommendation_request_dto = RecommendationRequestDto.from_json(recommendation_request_dto) - results = IAIRecommendationsApi(api_client).get_recommendations(x_sail_point_experimental=x_sail_point_experimental, recommendation_request_dto=new_recommendation_request_dto) - # Below is a request that includes all optional parameters - # results = IAIRecommendationsApi(api_client).get_recommendations(x_sail_point_experimental, new_recommendation_request_dto) - print("The response of IAIRecommendationsApi->get_recommendations:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIRecommendationsApi->get_recommendations: %s\n" % e) + try: + # Returns Recommendation Based on Object + new_recommendation_request_dto = RecommendationRequestDto.from_json(recommendation_request_dto) + results = IAIRecommendationsApi(api_client).get_recommendations(x_sail_point_experimental=x_sail_point_experimental, recommendation_request_dto=new_recommendation_request_dto) + # Below is a request that includes all optional parameters + # results = IAIRecommendationsApi(api_client).get_recommendations(x_sail_point_experimental, new_recommendation_request_dto) + print("The response of IAIRecommendationsApi->get_recommendations:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIRecommendationsApi->get_recommendations: %s\n" % e) - path: /recommendations/config method: GET xCodeSample: @@ -7795,24 +7554,23 @@ from sailpoint.v2024.api.iai_recommendations_api import IAIRecommendationsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.recommendation_config_dto import RecommendationConfigDto - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - try: - # Get certification recommendation config values - - results = IAIRecommendationsApi(api_client).get_recommendations_config(x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = IAIRecommendationsApi(api_client).get_recommendations_config(x_sail_point_experimental) - print("The response of IAIRecommendationsApi->get_recommendations_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIRecommendationsApi->get_recommendations_config: %s\n" % e) + 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 certification recommendation config values + + results = IAIRecommendationsApi(api_client).get_recommendations_config(x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = IAIRecommendationsApi(api_client).get_recommendations_config(x_sail_point_experimental) + print("The response of IAIRecommendationsApi->get_recommendations_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIRecommendationsApi->get_recommendations_config: %s\n" % e) - path: /recommendations/config method: PUT xCodeSample: @@ -7822,30 +7580,29 @@ from sailpoint.v2024.api.iai_recommendations_api import IAIRecommendationsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.recommendation_config_dto import RecommendationConfigDto - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - recommendation_config_dto = '''{ + 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') + recommendation_config_dto = '''{ "recommenderFeatures" : [ "jobTitle", "location", "peer_group", "department", "active" ], "peerGroupPercentageThreshold" : 0.5, "runAutoSelectOnce" : false, "onlyTuneThreshold" : false }''' # RecommendationConfigDto | - try: - # Update certification recommendation config values - new_recommendation_config_dto = RecommendationConfigDto.from_json(recommendation_config_dto) - results = IAIRecommendationsApi(api_client).update_recommendations_config(x_sail_point_experimental=x_sail_point_experimental, recommendation_config_dto=new_recommendation_config_dto) - # Below is a request that includes all optional parameters - # results = IAIRecommendationsApi(api_client).update_recommendations_config(x_sail_point_experimental, new_recommendation_config_dto) - print("The response of IAIRecommendationsApi->update_recommendations_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIRecommendationsApi->update_recommendations_config: %s\n" % e) + try: + # Update certification recommendation config values + new_recommendation_config_dto = RecommendationConfigDto.from_json(recommendation_config_dto) + results = IAIRecommendationsApi(api_client).update_recommendations_config(x_sail_point_experimental=x_sail_point_experimental, recommendation_config_dto=new_recommendation_config_dto) + # Below is a request that includes all optional parameters + # results = IAIRecommendationsApi(api_client).update_recommendations_config(x_sail_point_experimental, new_recommendation_config_dto) + print("The response of IAIRecommendationsApi->update_recommendations_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIRecommendationsApi->update_recommendations_config: %s\n" % e) - path: /role-mining-sessions/{sessionId}/potential-roles/{potentialRoleId}/provision method: POST xCodeSample: @@ -7856,35 +7613,34 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role_mining_potential_role_provision_request import RoleMiningPotentialRoleProvisionRequest from sailpoint.v2024.models.role_mining_potential_role_summary import RoleMiningPotentialRoleSummary - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - session_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role mining session id # str | The role mining session id - potential_role_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | A potential role id in a role mining session # str | A potential role id in a role mining session - 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') - min_entitlement_popularity = 0 # int | Minimum popularity required for an entitlement to be included in the provisioned role. (optional) (default to 0) # int | Minimum popularity required for an entitlement to be included in the provisioned role. (optional) (default to 0) - include_common_access = True # bool | Boolean determining whether common access entitlements will be included in the provisioned role. (optional) (default to True) # bool | Boolean determining whether common access entitlements will be included in the provisioned role. (optional) (default to True) - role_mining_potential_role_provision_request = '''{ + session_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role mining session id # str | The role mining session id + potential_role_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | A potential role id in a role mining session # str | A potential role id in a role mining session + 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') + min_entitlement_popularity = 0 # int | Minimum popularity required for an entitlement to be included in the provisioned role. (optional) (default to 0) # int | Minimum popularity required for an entitlement to be included in the provisioned role. (optional) (default to 0) + include_common_access = True # bool | Boolean determining whether common access entitlements will be included in the provisioned role. (optional) (default to True) # bool | Boolean determining whether common access entitlements will be included in the provisioned role. (optional) (default to True) + role_mining_potential_role_provision_request = '''{ "includeIdentities" : true, "roleName" : "Finance - Accounting", "ownerId" : "2b568c65bc3c4c57a43bd97e3a8e41", "roleDescription" : "General access for accounting department", "directlyAssignedEntitlements" : false }''' # RoleMiningPotentialRoleProvisionRequest | Required information to create a new role (optional) - try: - # Create request to provision a potential role into an actual role. - - results = IAIRoleMiningApi(api_client).create_potential_role_provision_request(session_id=session_id, potential_role_id=potential_role_id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = IAIRoleMiningApi(api_client).create_potential_role_provision_request(session_id, potential_role_id, x_sail_point_experimental, min_entitlement_popularity, include_common_access, new_role_mining_potential_role_provision_request) - print("The response of IAIRoleMiningApi->create_potential_role_provision_request:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIRoleMiningApi->create_potential_role_provision_request: %s\n" % e) + try: + # Create request to provision a potential role into an actual role. + + results = IAIRoleMiningApi(api_client).create_potential_role_provision_request(session_id=session_id, potential_role_id=potential_role_id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = IAIRoleMiningApi(api_client).create_potential_role_provision_request(session_id, potential_role_id, x_sail_point_experimental, min_entitlement_popularity, include_common_access, new_role_mining_potential_role_provision_request) + print("The response of IAIRoleMiningApi->create_potential_role_provision_request:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIRoleMiningApi->create_potential_role_provision_request: %s\n" % e) - path: /role-mining-sessions method: POST xCodeSample: @@ -7895,15 +7651,14 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role_mining_session_dto import RoleMiningSessionDto from sailpoint.v2024.models.role_mining_session_response import RoleMiningSessionResponse - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - role_mining_session_dto = '''{ + 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') + role_mining_session_dto = '''{ "emailRecipientId" : "2c918090761a5aac0176215c46a62d58", "prescribedPruneThreshold" : 10, "pruneThreshold" : 50, @@ -7935,16 +7690,16 @@ "identityCount" : 0, "type" : "SPECIALIZED" }''' # RoleMiningSessionDto | Role mining session parameters - try: - # Create a role mining session - new_role_mining_session_dto = RoleMiningSessionDto.from_json(role_mining_session_dto) - results = IAIRoleMiningApi(api_client).create_role_mining_sessions(x_sail_point_experimental=x_sail_point_experimental, role_mining_session_dto=new_role_mining_session_dto) - # Below is a request that includes all optional parameters - # results = IAIRoleMiningApi(api_client).create_role_mining_sessions(x_sail_point_experimental, new_role_mining_session_dto) - print("The response of IAIRoleMiningApi->create_role_mining_sessions:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIRoleMiningApi->create_role_mining_sessions: %s\n" % e) + try: + # Create a role mining session + new_role_mining_session_dto = RoleMiningSessionDto.from_json(role_mining_session_dto) + results = IAIRoleMiningApi(api_client).create_role_mining_sessions(x_sail_point_experimental=x_sail_point_experimental, role_mining_session_dto=new_role_mining_session_dto) + # Below is a request that includes all optional parameters + # results = IAIRoleMiningApi(api_client).create_role_mining_sessions(x_sail_point_experimental, new_role_mining_session_dto) + print("The response of IAIRoleMiningApi->create_role_mining_sessions:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIRoleMiningApi->create_role_mining_sessions: %s\n" % e) - path: /role-mining-sessions/{sessionId}/potential-roles/{potentialRoleId}/export-async/{exportId}/download method: GET xCodeSample: @@ -7953,27 +7708,26 @@ source: | from sailpoint.v2024.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - session_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role mining session id # str | The role mining session id - potential_role_id = '278359a6-04b7-4669-9468-924cf580964a' # str | A potential role id in a role mining session # str | A potential role id in a role mining session - export_id = '4940ffd4-836f-48a3-b2b0-6d498c3fdf40' # str | The id of a previously run export job for this potential role # str | The id of a previously run export job for this potential role - 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: - # Export (download) details for a potential role in a role mining session - - results = IAIRoleMiningApi(api_client).download_role_mining_potential_role_zip(session_id=session_id, potential_role_id=potential_role_id, export_id=export_id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = IAIRoleMiningApi(api_client).download_role_mining_potential_role_zip(session_id, potential_role_id, export_id, x_sail_point_experimental) - print("The response of IAIRoleMiningApi->download_role_mining_potential_role_zip:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIRoleMiningApi->download_role_mining_potential_role_zip: %s\n" % e) + session_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role mining session id # str | The role mining session id + potential_role_id = '278359a6-04b7-4669-9468-924cf580964a' # str | A potential role id in a role mining session # str | A potential role id in a role mining session + export_id = '4940ffd4-836f-48a3-b2b0-6d498c3fdf40' # str | The id of a previously run export job for this potential role # str | The id of a previously run export job for this potential role + 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: + # Export (download) details for a potential role in a role mining session + + results = IAIRoleMiningApi(api_client).download_role_mining_potential_role_zip(session_id=session_id, potential_role_id=potential_role_id, export_id=export_id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = IAIRoleMiningApi(api_client).download_role_mining_potential_role_zip(session_id, potential_role_id, export_id, x_sail_point_experimental) + print("The response of IAIRoleMiningApi->download_role_mining_potential_role_zip:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIRoleMiningApi->download_role_mining_potential_role_zip: %s\n" % e) - path: /role-mining-sessions/{sessionId}/potential-roles/{potentialRoleId}/export method: GET xCodeSample: @@ -7982,26 +7736,25 @@ source: | from sailpoint.v2024.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - session_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role mining session id # str | The role mining session id - potential_role_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | A potential role id in a role mining session # str | A potential role id in a role mining session - 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: - # Export (download) details for a potential role in a role mining session - - results = IAIRoleMiningApi(api_client).export_role_mining_potential_role(session_id=session_id, potential_role_id=potential_role_id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = IAIRoleMiningApi(api_client).export_role_mining_potential_role(session_id, potential_role_id, x_sail_point_experimental) - print("The response of IAIRoleMiningApi->export_role_mining_potential_role:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIRoleMiningApi->export_role_mining_potential_role: %s\n" % e) + session_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role mining session id # str | The role mining session id + potential_role_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | A potential role id in a role mining session # str | A potential role id in a role mining session + 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: + # Export (download) details for a potential role in a role mining session + + results = IAIRoleMiningApi(api_client).export_role_mining_potential_role(session_id=session_id, potential_role_id=potential_role_id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = IAIRoleMiningApi(api_client).export_role_mining_potential_role(session_id, potential_role_id, x_sail_point_experimental) + print("The response of IAIRoleMiningApi->export_role_mining_potential_role:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIRoleMiningApi->export_role_mining_potential_role: %s\n" % e) - path: /role-mining-sessions/{sessionId}/potential-roles/{potentialRoleId}/export-async method: POST xCodeSample: @@ -8012,30 +7765,29 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role_mining_potential_role_export_request import RoleMiningPotentialRoleExportRequest from sailpoint.v2024.models.role_mining_potential_role_export_response import RoleMiningPotentialRoleExportResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - session_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role mining session id # str | The role mining session id - potential_role_id = '278359a6-04b7-4669-9468-924cf580964a' # str | A potential role id in a role mining session # str | A potential role id in a role mining session - 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') - role_mining_potential_role_export_request = '''{ + session_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role mining session id # str | The role mining session id + potential_role_id = '278359a6-04b7-4669-9468-924cf580964a' # str | A potential role id in a role mining session # str | A potential role id in a role mining session + 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') + role_mining_potential_role_export_request = '''{ "minEntitlementPopularity" : 0, "includeCommonAccess" : true }''' # RoleMiningPotentialRoleExportRequest | (optional) - try: - # Asynchronously export details for a potential role in a role mining session and upload to S3 - - results = IAIRoleMiningApi(api_client).export_role_mining_potential_role_async(session_id=session_id, potential_role_id=potential_role_id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = IAIRoleMiningApi(api_client).export_role_mining_potential_role_async(session_id, potential_role_id, x_sail_point_experimental, new_role_mining_potential_role_export_request) - print("The response of IAIRoleMiningApi->export_role_mining_potential_role_async:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIRoleMiningApi->export_role_mining_potential_role_async: %s\n" % e) + try: + # Asynchronously export details for a potential role in a role mining session and upload to S3 + + results = IAIRoleMiningApi(api_client).export_role_mining_potential_role_async(session_id=session_id, potential_role_id=potential_role_id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = IAIRoleMiningApi(api_client).export_role_mining_potential_role_async(session_id, potential_role_id, x_sail_point_experimental, new_role_mining_potential_role_export_request) + print("The response of IAIRoleMiningApi->export_role_mining_potential_role_async:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIRoleMiningApi->export_role_mining_potential_role_async: %s\n" % e) - path: /role-mining-sessions/{sessionId}/potential-roles/{potentialRoleId}/export-async/{exportId} method: GET xCodeSample: @@ -8045,27 +7797,26 @@ from sailpoint.v2024.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role_mining_potential_role_export_response import RoleMiningPotentialRoleExportResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - session_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role mining session id # str | The role mining session id - potential_role_id = '278359a6-04b7-4669-9468-924cf580964a' # str | A potential role id in a role mining session # str | A potential role id in a role mining session - export_id = '4940ffd4-836f-48a3-b2b0-6d498c3fdf40' # str | The id of a previously run export job for this potential role # str | The id of a previously run export job for this potential role - 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: - # Retrieve status of a potential role export job - - results = IAIRoleMiningApi(api_client).export_role_mining_potential_role_status(session_id=session_id, potential_role_id=potential_role_id, export_id=export_id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = IAIRoleMiningApi(api_client).export_role_mining_potential_role_status(session_id, potential_role_id, export_id, x_sail_point_experimental) - print("The response of IAIRoleMiningApi->export_role_mining_potential_role_status:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIRoleMiningApi->export_role_mining_potential_role_status: %s\n" % e) + session_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role mining session id # str | The role mining session id + potential_role_id = '278359a6-04b7-4669-9468-924cf580964a' # str | A potential role id in a role mining session # str | A potential role id in a role mining session + export_id = '4940ffd4-836f-48a3-b2b0-6d498c3fdf40' # str | The id of a previously run export job for this potential role # str | The id of a previously run export job for this potential role + 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: + # Retrieve status of a potential role export job + + results = IAIRoleMiningApi(api_client).export_role_mining_potential_role_status(session_id=session_id, potential_role_id=potential_role_id, export_id=export_id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = IAIRoleMiningApi(api_client).export_role_mining_potential_role_status(session_id, potential_role_id, export_id, x_sail_point_experimental) + print("The response of IAIRoleMiningApi->export_role_mining_potential_role_status:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIRoleMiningApi->export_role_mining_potential_role_status: %s\n" % e) - path: /role-mining-potential-roles method: GET xCodeSample: @@ -8075,29 +7826,28 @@ from sailpoint.v2024.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role_mining_potential_role_summary import RoleMiningPotentialRoleSummary - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - sorters = 'createdDate' # 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: **createdDate, identityCount, entitlementCount, freshness, quality** (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: **createdDate, identityCount, entitlementCount, freshness, quality** (optional) - filters = '(createdByName co \"int\") and (createdById sw \"2c9180907\") and (type eq \"COMMON\") and ((name co \"entt\") or (saved eq true))' # 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: **createdById**: *eq, sw, co* **createdByName**: *eq, sw, co* **description**: *sw, co* **endDate**: *le, lt* **freshness**: *eq, ge, gt, le, lt* **name**: *eq, sw, co, ge, gt, le, lt* **quality**: *eq, ge, gt, le, lt* **startDate**: *ge, gt* **saved**: *eq* **type**: *eq, ge, gt, le, lt* **scopingMethod**: *eq* **sessionState**: *eq* **identityAttribute**: *co* (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: **createdById**: *eq, sw, co* **createdByName**: *eq, sw, co* **description**: *sw, co* **endDate**: *le, lt* **freshness**: *eq, ge, gt, le, lt* **name**: *eq, sw, co, ge, gt, le, lt* **quality**: *eq, ge, gt, le, lt* **startDate**: *ge, gt* **saved**: *eq* **type**: *eq, ge, gt, le, lt* **scopingMethod**: *eq* **sessionState**: *eq* **identityAttribute**: *co* (optional) - 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) - 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) - 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) - try: - # Retrieves all potential role summaries - - results = IAIRoleMiningApi(api_client).get_all_potential_role_summaries(x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = IAIRoleMiningApi(api_client).get_all_potential_role_summaries(x_sail_point_experimental, sorters, filters, offset, limit, count) - print("The response of IAIRoleMiningApi->get_all_potential_role_summaries:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIRoleMiningApi->get_all_potential_role_summaries: %s\n" % e) + 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') + sorters = 'createdDate' # 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: **createdDate, identityCount, entitlementCount, freshness, quality** (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: **createdDate, identityCount, entitlementCount, freshness, quality** (optional) + filters = '(createdByName co \"int\") and (createdById sw \"2c9180907\") and (type eq \"COMMON\") and ((name co \"entt\") or (saved eq true))' # 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: **createdById**: *eq, sw, co* **createdByName**: *eq, sw, co* **description**: *sw, co* **endDate**: *le, lt* **freshness**: *eq, ge, gt, le, lt* **name**: *eq, sw, co, ge, gt, le, lt* **quality**: *eq, ge, gt, le, lt* **startDate**: *ge, gt* **saved**: *eq* **type**: *eq, ge, gt, le, lt* **scopingMethod**: *eq* **sessionState**: *eq* **identityAttribute**: *co* (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: **createdById**: *eq, sw, co* **createdByName**: *eq, sw, co* **description**: *sw, co* **endDate**: *le, lt* **freshness**: *eq, ge, gt, le, lt* **name**: *eq, sw, co, ge, gt, le, lt* **quality**: *eq, ge, gt, le, lt* **startDate**: *ge, gt* **saved**: *eq* **type**: *eq, ge, gt, le, lt* **scopingMethod**: *eq* **sessionState**: *eq* **identityAttribute**: *co* (optional) + 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) + 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) + 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) + try: + # Retrieves all potential role summaries + + results = IAIRoleMiningApi(api_client).get_all_potential_role_summaries(x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = IAIRoleMiningApi(api_client).get_all_potential_role_summaries(x_sail_point_experimental, sorters, filters, offset, limit, count) + print("The response of IAIRoleMiningApi->get_all_potential_role_summaries:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIRoleMiningApi->get_all_potential_role_summaries: %s\n" % e) - path: /role-mining-sessions/{sessionId}/potential-roles/{potentialRoleId}/entitlement-popularity-distribution method: GET xCodeSample: @@ -8106,27 +7856,26 @@ source: | from sailpoint.v2024.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - session_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role mining session id # str | The role mining session id - potential_role_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | A potential role id in a role mining session # str | A potential role id in a role mining session - 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') - include_common_access = True # bool | Boolean determining whether common access entitlements will be included or not (optional) # bool | Boolean determining whether common access entitlements will be included or not (optional) - try: - # Retrieves entitlement popularity distribution for a potential role in a role mining session - - results = IAIRoleMiningApi(api_client).get_entitlement_distribution_potential_role(session_id=session_id, potential_role_id=potential_role_id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = IAIRoleMiningApi(api_client).get_entitlement_distribution_potential_role(session_id, potential_role_id, x_sail_point_experimental, include_common_access) - print("The response of IAIRoleMiningApi->get_entitlement_distribution_potential_role:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIRoleMiningApi->get_entitlement_distribution_potential_role: %s\n" % e) + session_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role mining session id # str | The role mining session id + potential_role_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | A potential role id in a role mining session # str | A potential role id in a role mining session + 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') + include_common_access = True # bool | Boolean determining whether common access entitlements will be included or not (optional) # bool | Boolean determining whether common access entitlements will be included or not (optional) + try: + # Retrieves entitlement popularity distribution for a potential role in a role mining session + + results = IAIRoleMiningApi(api_client).get_entitlement_distribution_potential_role(session_id=session_id, potential_role_id=potential_role_id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = IAIRoleMiningApi(api_client).get_entitlement_distribution_potential_role(session_id, potential_role_id, x_sail_point_experimental, include_common_access) + print("The response of IAIRoleMiningApi->get_entitlement_distribution_potential_role:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIRoleMiningApi->get_entitlement_distribution_potential_role: %s\n" % e) - path: /role-mining-sessions/{sessionId}/potential-roles/{potentialRoleId}/entitlement-popularities method: GET xCodeSample: @@ -8136,32 +7885,31 @@ from sailpoint.v2024.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role_mining_entitlement import RoleMiningEntitlement - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - session_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role mining session id # str | The role mining session id - potential_role_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | A potential role id in a role mining session # str | A potential role id in a role mining session - 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') - include_common_access = True # bool | Boolean determining whether common access entitlements will be included or not (optional) (default to True) # bool | Boolean determining whether common access entitlements will be included or not (optional) (default to True) - sorters = 'popularity' # 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: **popularity, entitlementName, applicationName** The default sort is **popularity** in descending order. (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: **popularity, entitlementName, applicationName** The default sort is **popularity** in descending order. (optional) - filters = 'applicationName sw \"AD\"' # 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: **applicationName**: *sw* **entitlementRef.name**: *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: **applicationName**: *sw* **entitlementRef.name**: *sw* (optional) - 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) - 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) - 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) - try: - # Retrieves entitlements for a potential role in a role mining session - - results = IAIRoleMiningApi(api_client).get_entitlements_potential_role(session_id=session_id, potential_role_id=potential_role_id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = IAIRoleMiningApi(api_client).get_entitlements_potential_role(session_id, potential_role_id, x_sail_point_experimental, include_common_access, sorters, filters, offset, limit, count) - print("The response of IAIRoleMiningApi->get_entitlements_potential_role:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIRoleMiningApi->get_entitlements_potential_role: %s\n" % e) + session_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role mining session id # str | The role mining session id + potential_role_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | A potential role id in a role mining session # str | A potential role id in a role mining session + 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') + include_common_access = True # bool | Boolean determining whether common access entitlements will be included or not (optional) (default to True) # bool | Boolean determining whether common access entitlements will be included or not (optional) (default to True) + sorters = 'popularity' # 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: **popularity, entitlementName, applicationName** The default sort is **popularity** in descending order. (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: **popularity, entitlementName, applicationName** The default sort is **popularity** in descending order. (optional) + filters = 'applicationName sw \"AD\"' # 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: **applicationName**: *sw* **entitlementRef.name**: *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: **applicationName**: *sw* **entitlementRef.name**: *sw* (optional) + 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) + 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) + 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) + try: + # Retrieves entitlements for a potential role in a role mining session + + results = IAIRoleMiningApi(api_client).get_entitlements_potential_role(session_id=session_id, potential_role_id=potential_role_id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = IAIRoleMiningApi(api_client).get_entitlements_potential_role(session_id, potential_role_id, x_sail_point_experimental, include_common_access, sorters, filters, offset, limit, count) + print("The response of IAIRoleMiningApi->get_entitlements_potential_role:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIRoleMiningApi->get_entitlements_potential_role: %s\n" % e) - path: /role-mining-sessions/{sessionId}/potential-roles/{potentialRoleId}/excluded-entitlements method: GET xCodeSample: @@ -8171,31 +7919,30 @@ from sailpoint.v2024.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role_mining_entitlement import RoleMiningEntitlement - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - session_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role mining session id # str | The role mining session id - potential_role_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | A potential role id in a role mining session # str | A potential role id in a role mining session - 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') - sorters = 'populariity' # 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: **popularity** (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: **popularity** (optional) - filters = 'applicationName sw \"AD\"' # 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: **applicationName**: *sw* **entitlementRef.name**: *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: **applicationName**: *sw* **entitlementRef.name**: *sw* (optional) - 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) - 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) - 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) - try: - # Retrieves excluded entitlements for a potential role in a role mining session - - results = IAIRoleMiningApi(api_client).get_excluded_entitlements_potential_role(session_id=session_id, potential_role_id=potential_role_id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = IAIRoleMiningApi(api_client).get_excluded_entitlements_potential_role(session_id, potential_role_id, x_sail_point_experimental, sorters, filters, offset, limit, count) - print("The response of IAIRoleMiningApi->get_excluded_entitlements_potential_role:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIRoleMiningApi->get_excluded_entitlements_potential_role: %s\n" % e) + session_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role mining session id # str | The role mining session id + potential_role_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | A potential role id in a role mining session # str | A potential role id in a role mining session + 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') + sorters = 'populariity' # 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: **popularity** (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: **popularity** (optional) + filters = 'applicationName sw \"AD\"' # 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: **applicationName**: *sw* **entitlementRef.name**: *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: **applicationName**: *sw* **entitlementRef.name**: *sw* (optional) + 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) + 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) + 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) + try: + # Retrieves excluded entitlements for a potential role in a role mining session + + results = IAIRoleMiningApi(api_client).get_excluded_entitlements_potential_role(session_id=session_id, potential_role_id=potential_role_id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = IAIRoleMiningApi(api_client).get_excluded_entitlements_potential_role(session_id, potential_role_id, x_sail_point_experimental, sorters, filters, offset, limit, count) + print("The response of IAIRoleMiningApi->get_excluded_entitlements_potential_role:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIRoleMiningApi->get_excluded_entitlements_potential_role: %s\n" % e) - path: /role-mining-sessions/{sessionId}/potential-roles/{potentialRoleId}/identities method: GET xCodeSample: @@ -8205,31 +7952,30 @@ from sailpoint.v2024.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role_mining_identity import RoleMiningIdentity - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - session_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role mining session id # str | The role mining session id - potential_role_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | A potential role id in a role mining session # str | A potential role id in a role mining session - 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') - sorters = 'name' # 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: **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: **name** (optional) - filters = 'filters_example' # 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: **name**: *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: **name**: *sw* (optional) - 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) - 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) - 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) - try: - # Retrieves identities for a potential role in a role mining session - - results = IAIRoleMiningApi(api_client).get_identities_potential_role(session_id=session_id, potential_role_id=potential_role_id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = IAIRoleMiningApi(api_client).get_identities_potential_role(session_id, potential_role_id, x_sail_point_experimental, sorters, filters, offset, limit, count) - print("The response of IAIRoleMiningApi->get_identities_potential_role:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIRoleMiningApi->get_identities_potential_role: %s\n" % e) + session_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role mining session id # str | The role mining session id + potential_role_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | A potential role id in a role mining session # str | A potential role id in a role mining session + 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') + sorters = 'name' # 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: **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: **name** (optional) + filters = 'filters_example' # 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: **name**: *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: **name**: *sw* (optional) + 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) + 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) + 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) + try: + # Retrieves identities for a potential role in a role mining session + + results = IAIRoleMiningApi(api_client).get_identities_potential_role(session_id=session_id, potential_role_id=potential_role_id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = IAIRoleMiningApi(api_client).get_identities_potential_role(session_id, potential_role_id, x_sail_point_experimental, sorters, filters, offset, limit, count) + print("The response of IAIRoleMiningApi->get_identities_potential_role:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIRoleMiningApi->get_identities_potential_role: %s\n" % e) - path: /role-mining-sessions/{sessionId}/potential-role-summaries/{potentialRoleId} method: GET xCodeSample: @@ -8239,26 +7985,25 @@ from sailpoint.v2024.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role_mining_potential_role import RoleMiningPotentialRole - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - session_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role mining session id # str | The role mining session id - potential_role_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | A potential role id in a role mining session # str | A potential role id in a role mining session - 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: - # Retrieves a specific potential role - - results = IAIRoleMiningApi(api_client).get_potential_role(session_id=session_id, potential_role_id=potential_role_id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = IAIRoleMiningApi(api_client).get_potential_role(session_id, potential_role_id, x_sail_point_experimental) - print("The response of IAIRoleMiningApi->get_potential_role:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIRoleMiningApi->get_potential_role: %s\n" % e) + session_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role mining session id # str | The role mining session id + potential_role_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | A potential role id in a role mining session # str | A potential role id in a role mining session + 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: + # Retrieves a specific potential role + + results = IAIRoleMiningApi(api_client).get_potential_role(session_id=session_id, potential_role_id=potential_role_id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = IAIRoleMiningApi(api_client).get_potential_role(session_id, potential_role_id, x_sail_point_experimental) + print("The response of IAIRoleMiningApi->get_potential_role:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIRoleMiningApi->get_potential_role: %s\n" % e) - path: /role-mining-sessions/{sessionId}/potential-role-summaries/{potentialRoleId}/applications method: GET xCodeSample: @@ -8268,30 +8013,29 @@ from sailpoint.v2024.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role_mining_potential_role_application import RoleMiningPotentialRoleApplication - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - session_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role mining session id # str | The role mining session id - potential_role_id = '62f28d91-7d9f-4d17-be15-666d5b41d77f' # str | A potential role id in a role mining session # str | A potential role id in a role mining session - 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') - filters = 'applicationName sw \"test\"' # 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: **applicationName**: *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: **applicationName**: *sw* (optional) - 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) - 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) - 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) - try: - # Retrieves the applications of a potential role for a role mining session - - results = IAIRoleMiningApi(api_client).get_potential_role_applications(session_id=session_id, potential_role_id=potential_role_id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = IAIRoleMiningApi(api_client).get_potential_role_applications(session_id, potential_role_id, x_sail_point_experimental, filters, offset, limit, count) - print("The response of IAIRoleMiningApi->get_potential_role_applications:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIRoleMiningApi->get_potential_role_applications: %s\n" % e) + session_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role mining session id # str | The role mining session id + potential_role_id = '62f28d91-7d9f-4d17-be15-666d5b41d77f' # str | A potential role id in a role mining session # str | A potential role id in a role mining session + 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') + filters = 'applicationName sw \"test\"' # 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: **applicationName**: *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: **applicationName**: *sw* (optional) + 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) + 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) + 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) + try: + # Retrieves the applications of a potential role for a role mining session + + results = IAIRoleMiningApi(api_client).get_potential_role_applications(session_id=session_id, potential_role_id=potential_role_id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = IAIRoleMiningApi(api_client).get_potential_role_applications(session_id, potential_role_id, x_sail_point_experimental, filters, offset, limit, count) + print("The response of IAIRoleMiningApi->get_potential_role_applications:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIRoleMiningApi->get_potential_role_applications: %s\n" % e) - path: /role-mining-sessions/{sessionId}/potential-role-summaries/{potentialRoleId}/entitlements method: GET xCodeSample: @@ -8301,30 +8045,29 @@ from sailpoint.v2024.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role_mining_potential_role_entitlements import RoleMiningPotentialRoleEntitlements - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - session_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role mining session id # str | The role mining session id - potential_role_id = '62f28d91-7d9f-4d17-be15-666d5b41d77f' # str | A potential role id in a role mining session # str | A potential role id in a role mining session - 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') - filters = 'entitlementRef.name sw \"test\"' # 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: **entitlementRef.name**: *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: **entitlementRef.name**: *sw* (optional) - 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) - 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) - 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) - try: - # Retrieves the entitlements of a potential role for a role mining session - - results = IAIRoleMiningApi(api_client).get_potential_role_entitlements(session_id=session_id, potential_role_id=potential_role_id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = IAIRoleMiningApi(api_client).get_potential_role_entitlements(session_id, potential_role_id, x_sail_point_experimental, filters, offset, limit, count) - print("The response of IAIRoleMiningApi->get_potential_role_entitlements:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIRoleMiningApi->get_potential_role_entitlements: %s\n" % e) + session_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role mining session id # str | The role mining session id + potential_role_id = '62f28d91-7d9f-4d17-be15-666d5b41d77f' # str | A potential role id in a role mining session # str | A potential role id in a role mining session + 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') + filters = 'entitlementRef.name sw \"test\"' # 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: **entitlementRef.name**: *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: **entitlementRef.name**: *sw* (optional) + 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) + 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) + 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) + try: + # Retrieves the entitlements of a potential role for a role mining session + + results = IAIRoleMiningApi(api_client).get_potential_role_entitlements(session_id=session_id, potential_role_id=potential_role_id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = IAIRoleMiningApi(api_client).get_potential_role_entitlements(session_id, potential_role_id, x_sail_point_experimental, filters, offset, limit, count) + print("The response of IAIRoleMiningApi->get_potential_role_entitlements:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIRoleMiningApi->get_potential_role_entitlements: %s\n" % e) - path: /role-mining-potential-roles/{potentialRoleId}/sources/{sourceId}/identityUsage method: GET xCodeSample: @@ -8334,30 +8077,29 @@ from sailpoint.v2024.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role_mining_potential_role_source_usage import RoleMiningPotentialRoleSourceUsage - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - potential_role_id = 'e0cc5d7d-bf7f-4f81-b2af-8885b09d9923' # str | A potential role id # str | A potential role id - source_id = '2c9180877620c1460176267f336a106f' # str | A source id # str | A source id - 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') - sorters = '-usageCount' # str | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters/) Sorting is supported for the following fields: **displayName, email, usageCount** (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 is supported for the following fields: **displayName, email, usageCount** (optional) - 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) - 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) - 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) - try: - # Retrieves potential role source usage - - results = IAIRoleMiningApi(api_client).get_potential_role_source_identity_usage(potential_role_id=potential_role_id, source_id=source_id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = IAIRoleMiningApi(api_client).get_potential_role_source_identity_usage(potential_role_id, source_id, x_sail_point_experimental, sorters, offset, limit, count) - print("The response of IAIRoleMiningApi->get_potential_role_source_identity_usage:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIRoleMiningApi->get_potential_role_source_identity_usage: %s\n" % e) + potential_role_id = 'e0cc5d7d-bf7f-4f81-b2af-8885b09d9923' # str | A potential role id # str | A potential role id + source_id = '2c9180877620c1460176267f336a106f' # str | A source id # str | A source id + 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') + sorters = '-usageCount' # str | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters/) Sorting is supported for the following fields: **displayName, email, usageCount** (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 is supported for the following fields: **displayName, email, usageCount** (optional) + 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) + 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) + 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) + try: + # Retrieves potential role source usage + + results = IAIRoleMiningApi(api_client).get_potential_role_source_identity_usage(potential_role_id=potential_role_id, source_id=source_id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = IAIRoleMiningApi(api_client).get_potential_role_source_identity_usage(potential_role_id, source_id, x_sail_point_experimental, sorters, offset, limit, count) + print("The response of IAIRoleMiningApi->get_potential_role_source_identity_usage:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIRoleMiningApi->get_potential_role_source_identity_usage: %s\n" % e) - path: /role-mining-sessions/{sessionId}/potential-role-summaries method: GET xCodeSample: @@ -8367,30 +8109,29 @@ from sailpoint.v2024.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role_mining_potential_role_summary import RoleMiningPotentialRoleSummary - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - session_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role mining session id # str | The role mining session id - 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') - sorters = 'createdDate' # 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: **createdDate** (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: **createdDate** (optional) - filters = '(createdByName co \"int\")and (createdById sw \"2c9180907\")and (type eq \"COMMON\")and ((name co \"entt\")or (saved eq true))' # 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: **createdById**: *eq, sw, co* **createdByName**: *eq, sw, co* **description**: *sw, co* **endDate**: *le, lt* **freshness**: *eq, ge, gt, le, lt* **name**: *eq, sw, co* **quality**: *eq, ge, gt, le, lt* **startDate**: *ge, gt* **saved**: *eq* **type**: *eq* (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: **createdById**: *eq, sw, co* **createdByName**: *eq, sw, co* **description**: *sw, co* **endDate**: *le, lt* **freshness**: *eq, ge, gt, le, lt* **name**: *eq, sw, co* **quality**: *eq, ge, gt, le, lt* **startDate**: *ge, gt* **saved**: *eq* **type**: *eq* (optional) - 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) - 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) - 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) - try: - # Retrieves all potential role summaries - - results = IAIRoleMiningApi(api_client).get_potential_role_summaries(session_id=session_id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = IAIRoleMiningApi(api_client).get_potential_role_summaries(session_id, x_sail_point_experimental, sorters, filters, offset, limit, count) - print("The response of IAIRoleMiningApi->get_potential_role_summaries:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIRoleMiningApi->get_potential_role_summaries: %s\n" % e) + session_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role mining session id # str | The role mining session id + 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') + sorters = 'createdDate' # 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: **createdDate** (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: **createdDate** (optional) + filters = '(createdByName co \"int\")and (createdById sw \"2c9180907\")and (type eq \"COMMON\")and ((name co \"entt\")or (saved eq true))' # 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: **createdById**: *eq, sw, co* **createdByName**: *eq, sw, co* **description**: *sw, co* **endDate**: *le, lt* **freshness**: *eq, ge, gt, le, lt* **name**: *eq, sw, co* **quality**: *eq, ge, gt, le, lt* **startDate**: *ge, gt* **saved**: *eq* **type**: *eq* (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: **createdById**: *eq, sw, co* **createdByName**: *eq, sw, co* **description**: *sw, co* **endDate**: *le, lt* **freshness**: *eq, ge, gt, le, lt* **name**: *eq, sw, co* **quality**: *eq, ge, gt, le, lt* **startDate**: *ge, gt* **saved**: *eq* **type**: *eq* (optional) + 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) + 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) + 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) + try: + # Retrieves all potential role summaries + + results = IAIRoleMiningApi(api_client).get_potential_role_summaries(session_id=session_id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = IAIRoleMiningApi(api_client).get_potential_role_summaries(session_id, x_sail_point_experimental, sorters, filters, offset, limit, count) + print("The response of IAIRoleMiningApi->get_potential_role_summaries:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIRoleMiningApi->get_potential_role_summaries: %s\n" % e) - path: /role-mining-potential-roles/{potentialRoleId} method: GET xCodeSample: @@ -8400,25 +8141,24 @@ from sailpoint.v2024.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role_mining_potential_role import RoleMiningPotentialRole - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - potential_role_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | A potential role id # str | A potential role id - 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: - # Retrieves a specific potential role - - results = IAIRoleMiningApi(api_client).get_role_mining_potential_role(potential_role_id=potential_role_id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = IAIRoleMiningApi(api_client).get_role_mining_potential_role(potential_role_id, x_sail_point_experimental) - print("The response of IAIRoleMiningApi->get_role_mining_potential_role:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIRoleMiningApi->get_role_mining_potential_role: %s\n" % e) + potential_role_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | A potential role id # str | A potential role id + 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: + # Retrieves a specific potential role + + results = IAIRoleMiningApi(api_client).get_role_mining_potential_role(potential_role_id=potential_role_id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = IAIRoleMiningApi(api_client).get_role_mining_potential_role(potential_role_id, x_sail_point_experimental) + print("The response of IAIRoleMiningApi->get_role_mining_potential_role:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIRoleMiningApi->get_role_mining_potential_role: %s\n" % e) - path: /role-mining-sessions/{sessionId} method: GET xCodeSample: @@ -8428,25 +8168,24 @@ from sailpoint.v2024.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role_mining_session_response import RoleMiningSessionResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - session_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role mining session id to be retrieved. # str | The role mining session id to be retrieved. - 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 a role mining session - - results = IAIRoleMiningApi(api_client).get_role_mining_session(session_id=session_id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = IAIRoleMiningApi(api_client).get_role_mining_session(session_id, x_sail_point_experimental) - print("The response of IAIRoleMiningApi->get_role_mining_session:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIRoleMiningApi->get_role_mining_session: %s\n" % e) + session_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role mining session id to be retrieved. # str | The role mining session id to be retrieved. + 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 a role mining session + + results = IAIRoleMiningApi(api_client).get_role_mining_session(session_id=session_id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = IAIRoleMiningApi(api_client).get_role_mining_session(session_id, x_sail_point_experimental) + print("The response of IAIRoleMiningApi->get_role_mining_session:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIRoleMiningApi->get_role_mining_session: %s\n" % e) - path: /role-mining-sessions/{sessionId}/status method: GET xCodeSample: @@ -8456,25 +8195,24 @@ from sailpoint.v2024.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role_mining_session_status import RoleMiningSessionStatus - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - session_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role mining session id # str | The role mining session id - 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 role mining session status state - - results = IAIRoleMiningApi(api_client).get_role_mining_session_status(session_id=session_id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = IAIRoleMiningApi(api_client).get_role_mining_session_status(session_id, x_sail_point_experimental) - print("The response of IAIRoleMiningApi->get_role_mining_session_status:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIRoleMiningApi->get_role_mining_session_status: %s\n" % e) + session_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role mining session id # str | The role mining session id + 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 role mining session status state + + results = IAIRoleMiningApi(api_client).get_role_mining_session_status(session_id=session_id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = IAIRoleMiningApi(api_client).get_role_mining_session_status(session_id, x_sail_point_experimental) + print("The response of IAIRoleMiningApi->get_role_mining_session_status:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIRoleMiningApi->get_role_mining_session_status: %s\n" % e) - path: /role-mining-sessions method: GET xCodeSample: @@ -8484,29 +8222,28 @@ from sailpoint.v2024.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role_mining_session_dto import RoleMiningSessionDto - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - filters = 'saved eq \"true\" and name sw \"RM Session\"' # 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: **saved**: *eq* **name**: *eq, 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: **saved**: *eq* **name**: *eq, sw* (optional) - sorters = 'createdBy,createdDate' # 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: **createdBy, createdDate** (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: **createdBy, createdDate** (optional) - 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) - 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) - 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) - try: - # Retrieves all role mining sessions - - results = IAIRoleMiningApi(api_client).get_role_mining_sessions(x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = IAIRoleMiningApi(api_client).get_role_mining_sessions(x_sail_point_experimental, filters, sorters, offset, limit, count) - print("The response of IAIRoleMiningApi->get_role_mining_sessions:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIRoleMiningApi->get_role_mining_sessions: %s\n" % e) + 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') + filters = 'saved eq \"true\" and name sw \"RM Session\"' # 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: **saved**: *eq* **name**: *eq, 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: **saved**: *eq* **name**: *eq, sw* (optional) + sorters = 'createdBy,createdDate' # 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: **createdBy, createdDate** (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: **createdBy, createdDate** (optional) + 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) + 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) + 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) + try: + # Retrieves all role mining sessions + + results = IAIRoleMiningApi(api_client).get_role_mining_sessions(x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = IAIRoleMiningApi(api_client).get_role_mining_sessions(x_sail_point_experimental, filters, sorters, offset, limit, count) + print("The response of IAIRoleMiningApi->get_role_mining_sessions:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIRoleMiningApi->get_role_mining_sessions: %s\n" % e) - path: /role-mining-potential-roles/saved method: GET xCodeSample: @@ -8516,28 +8253,27 @@ from sailpoint.v2024.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role_mining_session_draft_role_dto import RoleMiningSessionDraftRoleDto - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - sorters = 'modified' # str | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters/) Sorting is supported for the following fields: **modified** (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 is supported for the following fields: **modified** (optional) - 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) - 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) - 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) - try: - # Retrieves all saved potential roles - - results = IAIRoleMiningApi(api_client).get_saved_potential_roles(x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = IAIRoleMiningApi(api_client).get_saved_potential_roles(x_sail_point_experimental, sorters, offset, limit, count) - print("The response of IAIRoleMiningApi->get_saved_potential_roles:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIRoleMiningApi->get_saved_potential_roles: %s\n" % e) + 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') + sorters = 'modified' # str | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters/) Sorting is supported for the following fields: **modified** (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 is supported for the following fields: **modified** (optional) + 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) + 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) + 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) + try: + # Retrieves all saved potential roles + + results = IAIRoleMiningApi(api_client).get_saved_potential_roles(x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = IAIRoleMiningApi(api_client).get_saved_potential_roles(x_sail_point_experimental, sorters, offset, limit, count) + print("The response of IAIRoleMiningApi->get_saved_potential_roles:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIRoleMiningApi->get_saved_potential_roles: %s\n" % e) - path: /role-mining-sessions/{sessionId}/potential-role-summaries/{potentialRoleId} method: PATCH xCodeSample: @@ -8547,27 +8283,26 @@ from sailpoint.v2024.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.patch_potential_role_request_inner import PatchPotentialRoleRequestInner - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - session_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role mining session id # str | The role mining session id - potential_role_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The potential role summary id # str | The potential role summary id - 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') - patch_potential_role_request_inner = '''[{op=remove, path=/description}, {op=replace, path=/description, value=Acct I - Potential Role}, {op=remove, path=/saved}, {op=replace, path=/saved, value=false}, {op=remove, path=/name}, {op=replace, path=/name, value=Potential Role Accounting}]''' # List[PatchPotentialRoleRequestInner] | - try: - # Update a potential role - new_patch_potential_role_request_inner = PatchPotentialRoleRequestInner.from_json(patch_potential_role_request_inner) - results = IAIRoleMiningApi(api_client).patch_potential_role(session_id=session_id, potential_role_id=potential_role_id, x_sail_point_experimental=x_sail_point_experimental, patch_potential_role_request_inner=new_patch_potential_role_request_inner) - # Below is a request that includes all optional parameters - # results = IAIRoleMiningApi(api_client).patch_potential_role(session_id, potential_role_id, x_sail_point_experimental, new_patch_potential_role_request_inner) - print("The response of IAIRoleMiningApi->patch_potential_role:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIRoleMiningApi->patch_potential_role: %s\n" % e) + session_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role mining session id # str | The role mining session id + potential_role_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The potential role summary id # str | The potential role summary id + 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') + patch_potential_role_request_inner = '''[{op=remove, path=/description}, {op=replace, path=/description, value=Acct I - Potential Role}, {op=remove, path=/saved}, {op=replace, path=/saved, value=false}, {op=remove, path=/name}, {op=replace, path=/name, value=Potential Role Accounting}]''' # List[PatchPotentialRoleRequestInner] | + try: + # Update a potential role + new_patch_potential_role_request_inner = PatchPotentialRoleRequestInner.from_json(patch_potential_role_request_inner) + results = IAIRoleMiningApi(api_client).patch_potential_role(session_id=session_id, potential_role_id=potential_role_id, x_sail_point_experimental=x_sail_point_experimental, patch_potential_role_request_inner=new_patch_potential_role_request_inner) + # Below is a request that includes all optional parameters + # results = IAIRoleMiningApi(api_client).patch_potential_role(session_id, potential_role_id, x_sail_point_experimental, new_patch_potential_role_request_inner) + print("The response of IAIRoleMiningApi->patch_potential_role:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIRoleMiningApi->patch_potential_role: %s\n" % e) - path: /role-mining-potential-roles/{potentialRoleId} method: PATCH xCodeSample: @@ -8577,27 +8312,26 @@ from sailpoint.v2024.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.patch_potential_role_request_inner import PatchPotentialRoleRequestInner - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - session_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role mining session id # str | The role mining session id - potential_role_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The potential role summary id # str | The potential role summary id - 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') - patch_potential_role_request_inner = '''[{op=remove, path=/description}, {op=replace, path=/description, value=Acct I - Potential Role}, {op=remove, path=/saved}, {op=replace, path=/saved, value=false}, {op=remove, path=/name}, {op=replace, path=/name, value=Potential Role Accounting}]''' # List[PatchPotentialRoleRequestInner] | - try: - # Update a potential role - new_patch_potential_role_request_inner = PatchPotentialRoleRequestInner.from_json(patch_potential_role_request_inner) - results = IAIRoleMiningApi(api_client).patch_potential_role_0(session_id=session_id, potential_role_id=potential_role_id, x_sail_point_experimental=x_sail_point_experimental, patch_potential_role_request_inner=new_patch_potential_role_request_inner) - # Below is a request that includes all optional parameters - # results = IAIRoleMiningApi(api_client).patch_potential_role_0(session_id, potential_role_id, x_sail_point_experimental, new_patch_potential_role_request_inner) - print("The response of IAIRoleMiningApi->patch_potential_role_0:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIRoleMiningApi->patch_potential_role_0: %s\n" % e) + session_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role mining session id # str | The role mining session id + potential_role_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The potential role summary id # str | The potential role summary id + 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') + patch_potential_role_request_inner = '''[{op=remove, path=/description}, {op=replace, path=/description, value=Acct I - Potential Role}, {op=remove, path=/saved}, {op=replace, path=/saved, value=false}, {op=remove, path=/name}, {op=replace, path=/name, value=Potential Role Accounting}]''' # List[PatchPotentialRoleRequestInner] | + try: + # Update a potential role + new_patch_potential_role_request_inner = PatchPotentialRoleRequestInner.from_json(patch_potential_role_request_inner) + results = IAIRoleMiningApi(api_client).patch_potential_role_0(session_id=session_id, potential_role_id=potential_role_id, x_sail_point_experimental=x_sail_point_experimental, patch_potential_role_request_inner=new_patch_potential_role_request_inner) + # Below is a request that includes all optional parameters + # results = IAIRoleMiningApi(api_client).patch_potential_role_0(session_id, potential_role_id, x_sail_point_experimental, new_patch_potential_role_request_inner) + print("The response of IAIRoleMiningApi->patch_potential_role_0:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIRoleMiningApi->patch_potential_role_0: %s\n" % e) - path: /role-mining-sessions/{sessionId} method: PATCH xCodeSample: @@ -8607,26 +8341,25 @@ from sailpoint.v2024.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.json_patch_operation import JsonPatchOperation - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - session_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role mining session id to be patched # str | The role mining session id to be patched - 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') - json_patch_operation = '''[{op=replace, path=/pruneThreshold, value=83}, {op=replace, path=/minNumIdentitiesInPotentialRole, value=10}, {op=replace, path=/saved, value=false}, {op=replace, path=/name, value=RM Session - 07/10/22}, {op=add, path=/name, value=RM Session - 07/10/22}]''' # List[JsonPatchOperation] | Replace pruneThreshold and/or minNumIdentitiesInPotentialRole in role mining session. Update saved status or saved name for a role mining session. - try: - # Patch a role mining session - new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) - results = IAIRoleMiningApi(api_client).patch_role_mining_session(session_id=session_id, x_sail_point_experimental=x_sail_point_experimental, json_patch_operation=new_json_patch_operation) - # Below is a request that includes all optional parameters - # results = IAIRoleMiningApi(api_client).patch_role_mining_session(session_id, x_sail_point_experimental, new_json_patch_operation) - print("The response of IAIRoleMiningApi->patch_role_mining_session:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIRoleMiningApi->patch_role_mining_session: %s\n" % e) + session_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role mining session id to be patched # str | The role mining session id to be patched + 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') + json_patch_operation = '''[{op=replace, path=/pruneThreshold, value=83}, {op=replace, path=/minNumIdentitiesInPotentialRole, value=10}, {op=replace, path=/saved, value=false}, {op=replace, path=/name, value=RM Session - 07/10/22}, {op=add, path=/name, value=RM Session - 07/10/22}]''' # List[JsonPatchOperation] | Replace pruneThreshold and/or minNumIdentitiesInPotentialRole in role mining session. Update saved status or saved name for a role mining session. + try: + # Patch a role mining session + new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) + results = IAIRoleMiningApi(api_client).patch_role_mining_session(session_id=session_id, x_sail_point_experimental=x_sail_point_experimental, json_patch_operation=new_json_patch_operation) + # Below is a request that includes all optional parameters + # results = IAIRoleMiningApi(api_client).patch_role_mining_session(session_id, x_sail_point_experimental, new_json_patch_operation) + print("The response of IAIRoleMiningApi->patch_role_mining_session:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIRoleMiningApi->patch_role_mining_session: %s\n" % e) - path: /role-mining-sessions/{sessionId}/potential-roles/{potentialRoleId}/edit-entitlements method: POST xCodeSample: @@ -8637,30 +8370,29 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role_mining_potential_role import RoleMiningPotentialRole from sailpoint.v2024.models.role_mining_potential_role_edit_entitlements import RoleMiningPotentialRoleEditEntitlements - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - session_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role mining session id # str | The role mining session id - potential_role_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | A potential role id in a role mining session # str | A potential role id in a role mining session - 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') - role_mining_potential_role_edit_entitlements = '''{ + session_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role mining session id # str | The role mining session id + potential_role_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | A potential role id in a role mining session # str | A potential role id in a role mining session + 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') + role_mining_potential_role_edit_entitlements = '''{ "ids" : [ "entId1", "entId2" ], "exclude" : true }''' # RoleMiningPotentialRoleEditEntitlements | Role mining session parameters - try: - # Edit entitlements for a potential role to exclude some entitlements - new_role_mining_potential_role_edit_entitlements = RoleMiningPotentialRoleEditEntitlements.from_json(role_mining_potential_role_edit_entitlements) - results = IAIRoleMiningApi(api_client).update_entitlements_potential_role(session_id=session_id, potential_role_id=potential_role_id, x_sail_point_experimental=x_sail_point_experimental, role_mining_potential_role_edit_entitlements=new_role_mining_potential_role_edit_entitlements) - # Below is a request that includes all optional parameters - # results = IAIRoleMiningApi(api_client).update_entitlements_potential_role(session_id, potential_role_id, x_sail_point_experimental, new_role_mining_potential_role_edit_entitlements) - print("The response of IAIRoleMiningApi->update_entitlements_potential_role:\n") - pprint(results) - except Exception as e: - print("Exception when calling IAIRoleMiningApi->update_entitlements_potential_role: %s\n" % e) + try: + # Edit entitlements for a potential role to exclude some entitlements + new_role_mining_potential_role_edit_entitlements = RoleMiningPotentialRoleEditEntitlements.from_json(role_mining_potential_role_edit_entitlements) + results = IAIRoleMiningApi(api_client).update_entitlements_potential_role(session_id=session_id, potential_role_id=potential_role_id, x_sail_point_experimental=x_sail_point_experimental, role_mining_potential_role_edit_entitlements=new_role_mining_potential_role_edit_entitlements) + # Below is a request that includes all optional parameters + # results = IAIRoleMiningApi(api_client).update_entitlements_potential_role(session_id, potential_role_id, x_sail_point_experimental, new_role_mining_potential_role_edit_entitlements) + print("The response of IAIRoleMiningApi->update_entitlements_potential_role:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IAIRoleMiningApi->update_entitlements_potential_role: %s\n" % e) - path: /icons/{objectType}/{objectId} method: DELETE xCodeSample: @@ -8669,24 +8401,23 @@ source: | from sailpoint.v2024.api.icons_api import IconsApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - object_type = 'application' # str | Object type. Available options ['application'] # str | Object type. Available options ['application'] - object_id = 'a291e870-48c3-4953-b656-fb5ce2a93169' # str | Object id. # str | Object id. - 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: - # Delete an icon - - IconsApi(api_client).delete_icon(object_type=object_type, object_id=object_id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # IconsApi(api_client).delete_icon(object_type, object_id, x_sail_point_experimental) - except Exception as e: - print("Exception when calling IconsApi->delete_icon: %s\n" % e) + object_type = 'application' # str | Object type. Available options ['application'] # str | Object type. Available options ['application'] + object_id = 'a291e870-48c3-4953-b656-fb5ce2a93169' # str | Object id. # str | Object id. + 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: + # Delete an icon + + IconsApi(api_client).delete_icon(object_type=object_type, object_id=object_id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # IconsApi(api_client).delete_icon(object_type, object_id, x_sail_point_experimental) + except Exception as e: + print("Exception when calling IconsApi->delete_icon: %s\n" % e) - path: /icons/{objectType}/{objectId} method: PUT xCodeSample: @@ -8696,27 +8427,26 @@ from sailpoint.v2024.api.icons_api import IconsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.set_icon200_response import SetIcon200Response - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - object_type = 'application' # str | Object type. Available options ['application'] # str | Object type. Available options ['application'] - object_id = 'a291e870-48c3-4953-b656-fb5ce2a93169' # str | Object id. # str | Object id. - 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') - image = None # bytearray | file with icon. Allowed mime-types ['image/png', 'image/jpeg'] # bytearray | file with icon. Allowed mime-types ['image/png', 'image/jpeg'] - try: - # Update an icon - - results = IconsApi(api_client).set_icon(object_type=object_type, object_id=object_id, x_sail_point_experimental=x_sail_point_experimental, image=image) - # Below is a request that includes all optional parameters - # results = IconsApi(api_client).set_icon(object_type, object_id, x_sail_point_experimental, image) - print("The response of IconsApi->set_icon:\n") - pprint(results) - except Exception as e: - print("Exception when calling IconsApi->set_icon: %s\n" % e) + object_type = 'application' # str | Object type. Available options ['application'] # str | Object type. Available options ['application'] + object_id = 'a291e870-48c3-4953-b656-fb5ce2a93169' # str | Object id. # str | Object id. + 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') + image = None # bytearray | file with icon. Allowed mime-types ['image/png', 'image/jpeg'] # bytearray | file with icon. Allowed mime-types ['image/png', 'image/jpeg'] + try: + # Update an icon + + results = IconsApi(api_client).set_icon(object_type=object_type, object_id=object_id, x_sail_point_experimental=x_sail_point_experimental, image=image) + # Below is a request that includes all optional parameters + # results = IconsApi(api_client).set_icon(object_type, object_id, x_sail_point_experimental, image) + print("The response of IconsApi->set_icon:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IconsApi->set_icon: %s\n" % e) - path: /identities/{id} method: DELETE xCodeSample: @@ -8725,23 +8455,22 @@ source: | from sailpoint.v2024.api.identities_api import IdentitiesApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | Identity Id # str | Identity Id - 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: - # Delete identity - - IdentitiesApi(api_client).delete_identity(id=id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # IdentitiesApi(api_client).delete_identity(id, x_sail_point_experimental) - except Exception as e: - print("Exception when calling IdentitiesApi->delete_identity: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | Identity Id # str | Identity Id + 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: + # Delete identity + + IdentitiesApi(api_client).delete_identity(id=id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # IdentitiesApi(api_client).delete_identity(id, x_sail_point_experimental) + except Exception as e: + print("Exception when calling IdentitiesApi->delete_identity: %s\n" % e) - path: /identities/{id} method: GET xCodeSample: @@ -8751,25 +8480,24 @@ from sailpoint.v2024.api.identities_api import IdentitiesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.identity import Identity - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | Identity Id # str | Identity Id - 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: - # Identity Details - - results = IdentitiesApi(api_client).get_identity(id=id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = IdentitiesApi(api_client).get_identity(id, x_sail_point_experimental) - print("The response of IdentitiesApi->get_identity:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentitiesApi->get_identity: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | Identity Id # str | Identity Id + 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: + # Identity Details + + results = IdentitiesApi(api_client).get_identity(id=id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = IdentitiesApi(api_client).get_identity(id, x_sail_point_experimental) + print("The response of IdentitiesApi->get_identity:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentitiesApi->get_identity: %s\n" % e) - path: /identities/{identityId}/ownership method: GET xCodeSample: @@ -8779,25 +8507,24 @@ from sailpoint.v2024.api.identities_api import IdentitiesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.identity_ownership_association_details import IdentityOwnershipAssociationDetails - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - identity_id = 'ff8081814d2a8036014d701f3fbf53fa' # str | Identity ID. # str | Identity ID. - 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 ownership details - - results = IdentitiesApi(api_client).get_identity_ownership_details(identity_id=identity_id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = IdentitiesApi(api_client).get_identity_ownership_details(identity_id, x_sail_point_experimental) - print("The response of IdentitiesApi->get_identity_ownership_details:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentitiesApi->get_identity_ownership_details: %s\n" % e) + identity_id = 'ff8081814d2a8036014d701f3fbf53fa' # str | Identity ID. # str | Identity ID. + 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 ownership details + + results = IdentitiesApi(api_client).get_identity_ownership_details(identity_id=identity_id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = IdentitiesApi(api_client).get_identity_ownership_details(identity_id, x_sail_point_experimental) + print("The response of IdentitiesApi->get_identity_ownership_details:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentitiesApi->get_identity_ownership_details: %s\n" % e) - path: /identities/{identityId}/role-assignments/{assignmentId} method: GET xCodeSample: @@ -8807,26 +8534,25 @@ from sailpoint.v2024.api.identities_api import IdentitiesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role_assignment_dto import RoleAssignmentDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - identity_id = 'ef38f94347e94562b5bb8424a56397d8' # str | Identity Id # str | Identity Id - assignment_id = '1cbb0705b38c4226b1334eadd8874086' # str | Assignment Id # str | Assignment Id - 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: - # Role assignment details - - results = IdentitiesApi(api_client).get_role_assignment(identity_id=identity_id, assignment_id=assignment_id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = IdentitiesApi(api_client).get_role_assignment(identity_id, assignment_id, x_sail_point_experimental) - print("The response of IdentitiesApi->get_role_assignment:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentitiesApi->get_role_assignment: %s\n" % e) + identity_id = 'ef38f94347e94562b5bb8424a56397d8' # str | Identity Id # str | Identity Id + assignment_id = '1cbb0705b38c4226b1334eadd8874086' # str | Assignment Id # str | Assignment Id + 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: + # Role assignment details + + results = IdentitiesApi(api_client).get_role_assignment(identity_id=identity_id, assignment_id=assignment_id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = IdentitiesApi(api_client).get_role_assignment(identity_id, assignment_id, x_sail_point_experimental) + print("The response of IdentitiesApi->get_role_assignment:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentitiesApi->get_role_assignment: %s\n" % e) - path: /identities/{identityId}/role-assignments method: GET xCodeSample: @@ -8836,27 +8562,26 @@ from sailpoint.v2024.api.identities_api import IdentitiesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.get_role_assignments200_response_inner import GetRoleAssignments200ResponseInner - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - identity_id = 'ef38f94347e94562b5bb8424a56397d8' # str | Identity Id to get the role assignments for # str | Identity Id to get the role assignments for - 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') - role_id = 'e7697a1e96d04db1ac7b0f4544915d2c' # str | Role Id to filter the role assignments with (optional) # str | Role Id to filter the role assignments with (optional) - role_name = 'Engineer' # str | Role name to filter the role assignments with (optional) # str | Role name to filter the role assignments with (optional) - try: - # List role assignments - - results = IdentitiesApi(api_client).get_role_assignments(identity_id=identity_id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = IdentitiesApi(api_client).get_role_assignments(identity_id, x_sail_point_experimental, role_id, role_name) - print("The response of IdentitiesApi->get_role_assignments:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentitiesApi->get_role_assignments: %s\n" % e) + identity_id = 'ef38f94347e94562b5bb8424a56397d8' # str | Identity Id to get the role assignments for # str | Identity Id to get the role assignments for + 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') + role_id = 'e7697a1e96d04db1ac7b0f4544915d2c' # str | Role Id to filter the role assignments with (optional) # str | Role Id to filter the role assignments with (optional) + role_name = 'Engineer' # str | Role name to filter the role assignments with (optional) # str | Role name to filter the role assignments with (optional) + try: + # List role assignments + + results = IdentitiesApi(api_client).get_role_assignments(identity_id=identity_id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = IdentitiesApi(api_client).get_role_assignments(identity_id, x_sail_point_experimental, role_id, role_name) + print("The response of IdentitiesApi->get_role_assignments:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentitiesApi->get_role_assignments: %s\n" % e) - path: /identities method: GET xCodeSample: @@ -8866,30 +8591,29 @@ from sailpoint.v2024.api.identities_api import IdentitiesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.identity import Identity - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - filters = 'id eq \"6c9079b270a266a60170a2779fcb0006\" or correlated eq false' # 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, sw* **alias**: *eq, sw* **firstname**: *eq, sw* **lastname**: *eq, sw* **email**: *eq, sw* **cloudStatus**: *eq* **processingState**: *eq* **correlated**: *eq* **protected**: *eq* (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, sw* **alias**: *eq, sw* **firstname**: *eq, sw* **lastname**: *eq, sw* **email**: *eq, sw* **cloudStatus**: *eq* **processingState**: *eq* **correlated**: *eq* **protected**: *eq* (optional) - sorters = 'name,-cloudStatus' # 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: **name, alias, cloudStatus** (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: **name, alias, cloudStatus** (optional) - default_filter = CORRELATED_ONLY # str | Adds additional filter to filters query parameter. CORRELATED_ONLY adds correlated=true and returns only identities that are correlated. NONE does not add any and returns all identities that satisfy filters query parameter. (optional) (default to CORRELATED_ONLY) # str | Adds additional filter to filters query parameter. CORRELATED_ONLY adds correlated=true and returns only identities that are correlated. NONE does not add any and returns all identities that satisfy filters query parameter. (optional) (default to CORRELATED_ONLY) - 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) - 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) - try: - # List Identities - - results = IdentitiesApi(api_client).list_identities(x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = IdentitiesApi(api_client).list_identities(x_sail_point_experimental, filters, sorters, default_filter, count, limit, offset) - print("The response of IdentitiesApi->list_identities:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentitiesApi->list_identities: %s\n" % e) + 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') + filters = 'id eq \"6c9079b270a266a60170a2779fcb0006\" or correlated eq false' # 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, sw* **alias**: *eq, sw* **firstname**: *eq, sw* **lastname**: *eq, sw* **email**: *eq, sw* **cloudStatus**: *eq* **processingState**: *eq* **correlated**: *eq* **protected**: *eq* (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, sw* **alias**: *eq, sw* **firstname**: *eq, sw* **lastname**: *eq, sw* **email**: *eq, sw* **cloudStatus**: *eq* **processingState**: *eq* **correlated**: *eq* **protected**: *eq* (optional) + sorters = 'name,-cloudStatus' # 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: **name, alias, cloudStatus** (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: **name, alias, cloudStatus** (optional) + default_filter = CORRELATED_ONLY # str | Adds additional filter to filters query parameter. CORRELATED_ONLY adds correlated=true and returns only identities that are correlated. NONE does not add any and returns all identities that satisfy filters query parameter. (optional) (default to CORRELATED_ONLY) # str | Adds additional filter to filters query parameter. CORRELATED_ONLY adds correlated=true and returns only identities that are correlated. NONE does not add any and returns all identities that satisfy filters query parameter. (optional) (default to CORRELATED_ONLY) + 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) + 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) + try: + # List Identities + + results = IdentitiesApi(api_client).list_identities(x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = IdentitiesApi(api_client).list_identities(x_sail_point_experimental, filters, sorters, default_filter, count, limit, offset) + print("The response of IdentitiesApi->list_identities:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentitiesApi->list_identities: %s\n" % e) - path: /identities/{id}/reset method: POST xCodeSample: @@ -8898,23 +8622,22 @@ source: | from sailpoint.v2024.api.identities_api import IdentitiesApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - identity_id = 'ef38f94347e94562b5bb8424a56397d8' # str | Identity Id # str | Identity Id - 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: - # Reset an identity - - IdentitiesApi(api_client).reset_identity(identity_id=identity_id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # IdentitiesApi(api_client).reset_identity(identity_id, x_sail_point_experimental) - except Exception as e: - print("Exception when calling IdentitiesApi->reset_identity: %s\n" % e) + identity_id = 'ef38f94347e94562b5bb8424a56397d8' # str | Identity Id # str | Identity Id + 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: + # Reset an identity + + IdentitiesApi(api_client).reset_identity(identity_id=identity_id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # IdentitiesApi(api_client).reset_identity(identity_id, x_sail_point_experimental) + except Exception as e: + print("Exception when calling IdentitiesApi->reset_identity: %s\n" % e) - path: /identities/{id}/verification/account/send method: POST xCodeSample: @@ -8924,27 +8647,26 @@ from sailpoint.v2024.api.identities_api import IdentitiesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.send_account_verification_request import SendAccountVerificationRequest - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - id = 'ef38f94347e94562b5bb8424a56397d8' # str | Identity ID # str | Identity ID - send_account_verification_request = '''{ + 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') + id = 'ef38f94347e94562b5bb8424a56397d8' # str | Identity ID # str | Identity ID + send_account_verification_request = '''{ "sourceName" : "Active Directory Source", "via" : "EMAIL_WORK" }''' # SendAccountVerificationRequest | - try: - # Send password reset email - new_send_account_verification_request = SendAccountVerificationRequest.from_json(send_account_verification_request) - IdentitiesApi(api_client).send_identity_verification_account_token(x_sail_point_experimental=x_sail_point_experimental, id=id, send_account_verification_request=new_send_account_verification_request) - # Below is a request that includes all optional parameters - # IdentitiesApi(api_client).send_identity_verification_account_token(x_sail_point_experimental, id, new_send_account_verification_request) - except Exception as e: - print("Exception when calling IdentitiesApi->send_identity_verification_account_token: %s\n" % e) + try: + # Send password reset email + new_send_account_verification_request = SendAccountVerificationRequest.from_json(send_account_verification_request) + IdentitiesApi(api_client).send_identity_verification_account_token(x_sail_point_experimental=x_sail_point_experimental, id=id, send_account_verification_request=new_send_account_verification_request) + # Below is a request that includes all optional parameters + # IdentitiesApi(api_client).send_identity_verification_account_token(x_sail_point_experimental, id, new_send_account_verification_request) + except Exception as e: + print("Exception when calling IdentitiesApi->send_identity_verification_account_token: %s\n" % e) - path: /identities/invite method: POST xCodeSample: @@ -8955,28 +8677,27 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.invite_identities_request import InviteIdentitiesRequest from sailpoint.v2024.models.task_status import TaskStatus - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - invite_identities_request = '''{ + 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') + invite_identities_request = '''{ "ids" : [ "2b568c65bc3c4c57a43bd97e3a8e55", "2c9180867769897d01776ed5f125512f" ], "uninvited" : false }''' # InviteIdentitiesRequest | - try: - # Invite identities to register - new_invite_identities_request = InviteIdentitiesRequest.from_json(invite_identities_request) - results = IdentitiesApi(api_client).start_identities_invite(x_sail_point_experimental=x_sail_point_experimental, invite_identities_request=new_invite_identities_request) - # Below is a request that includes all optional parameters - # results = IdentitiesApi(api_client).start_identities_invite(x_sail_point_experimental, new_invite_identities_request) - print("The response of IdentitiesApi->start_identities_invite:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentitiesApi->start_identities_invite: %s\n" % e) + try: + # Invite identities to register + new_invite_identities_request = InviteIdentitiesRequest.from_json(invite_identities_request) + results = IdentitiesApi(api_client).start_identities_invite(x_sail_point_experimental=x_sail_point_experimental, invite_identities_request=new_invite_identities_request) + # Below is a request that includes all optional parameters + # results = IdentitiesApi(api_client).start_identities_invite(x_sail_point_experimental, new_invite_identities_request) + print("The response of IdentitiesApi->start_identities_invite:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentitiesApi->start_identities_invite: %s\n" % e) - path: /identities/process method: POST xCodeSample: @@ -8987,27 +8708,26 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.process_identities_request import ProcessIdentitiesRequest from sailpoint.v2024.models.task_result_response import TaskResultResponse - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - process_identities_request = '''{ + 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') + process_identities_request = '''{ "identityIds" : [ "ef38f94347e94562b5bb8424a56397d8", "ef38f94347e94562b5bb8424a56397d8", "ef38f94347e94562b5bb8424a56397d8", "ef38f94347e94562b5bb8424a56397d8", "ef38f94347e94562b5bb8424a56397d8" ] }''' # ProcessIdentitiesRequest | - try: - # Process a list of identityIds - new_process_identities_request = ProcessIdentitiesRequest.from_json(process_identities_request) - results = IdentitiesApi(api_client).start_identity_processing(x_sail_point_experimental=x_sail_point_experimental, process_identities_request=new_process_identities_request) - # Below is a request that includes all optional parameters - # results = IdentitiesApi(api_client).start_identity_processing(x_sail_point_experimental, new_process_identities_request) - print("The response of IdentitiesApi->start_identity_processing:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentitiesApi->start_identity_processing: %s\n" % e) + try: + # Process a list of identityIds + new_process_identities_request = ProcessIdentitiesRequest.from_json(process_identities_request) + results = IdentitiesApi(api_client).start_identity_processing(x_sail_point_experimental=x_sail_point_experimental, process_identities_request=new_process_identities_request) + # Below is a request that includes all optional parameters + # results = IdentitiesApi(api_client).start_identity_processing(x_sail_point_experimental, new_process_identities_request) + print("The response of IdentitiesApi->start_identity_processing:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentitiesApi->start_identity_processing: %s\n" % e) - path: /identities/{identityId}/synchronize-attributes method: POST xCodeSample: @@ -9017,25 +8737,24 @@ from sailpoint.v2024.api.identities_api import IdentitiesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.identity_sync_job import IdentitySyncJob - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - identity_id = 'identity_id_example' # str | The Identity id # str | The Identity id - 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: - # Attribute synchronization for single identity. - - results = IdentitiesApi(api_client).synchronize_attributes_for_identity(identity_id=identity_id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = IdentitiesApi(api_client).synchronize_attributes_for_identity(identity_id, x_sail_point_experimental) - print("The response of IdentitiesApi->synchronize_attributes_for_identity:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentitiesApi->synchronize_attributes_for_identity: %s\n" % e) + identity_id = 'identity_id_example' # str | The Identity id # str | The Identity id + 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: + # Attribute synchronization for single identity. + + results = IdentitiesApi(api_client).synchronize_attributes_for_identity(identity_id=identity_id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = IdentitiesApi(api_client).synchronize_attributes_for_identity(identity_id, x_sail_point_experimental) + print("The response of IdentitiesApi->synchronize_attributes_for_identity:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentitiesApi->synchronize_attributes_for_identity: %s\n" % e) - path: /identity-attributes method: POST xCodeSample: @@ -9045,15 +8764,14 @@ from sailpoint.v2024.api.identity_attributes_api import IdentityAttributesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.identity_attribute import IdentityAttribute - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - identity_attribute = '''{ + 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') + identity_attribute = '''{ "standard" : false, "system" : false, "sources" : [ { @@ -9075,16 +8793,16 @@ "searchable" : false, "multi" : false }''' # IdentityAttribute | - try: - # Create Identity Attribute - new_identity_attribute = IdentityAttribute.from_json(identity_attribute) - results = IdentityAttributesApi(api_client).create_identity_attribute(x_sail_point_experimental=x_sail_point_experimental, identity_attribute=new_identity_attribute) - # Below is a request that includes all optional parameters - # results = IdentityAttributesApi(api_client).create_identity_attribute(x_sail_point_experimental, new_identity_attribute) - print("The response of IdentityAttributesApi->create_identity_attribute:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentityAttributesApi->create_identity_attribute: %s\n" % e) + try: + # Create Identity Attribute + new_identity_attribute = IdentityAttribute.from_json(identity_attribute) + results = IdentityAttributesApi(api_client).create_identity_attribute(x_sail_point_experimental=x_sail_point_experimental, identity_attribute=new_identity_attribute) + # Below is a request that includes all optional parameters + # results = IdentityAttributesApi(api_client).create_identity_attribute(x_sail_point_experimental, new_identity_attribute) + print("The response of IdentityAttributesApi->create_identity_attribute:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentityAttributesApi->create_identity_attribute: %s\n" % e) - path: /identity-attributes/{name} method: DELETE xCodeSample: @@ -9093,23 +8811,22 @@ source: | from sailpoint.v2024.api.identity_attributes_api import IdentityAttributesApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - name = 'displayName' # str | The attribute's technical name. # str | The attribute's technical name. - 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: - # Delete Identity Attribute - - IdentityAttributesApi(api_client).delete_identity_attribute(name=name, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # IdentityAttributesApi(api_client).delete_identity_attribute(name, x_sail_point_experimental) - except Exception as e: - print("Exception when calling IdentityAttributesApi->delete_identity_attribute: %s\n" % e) + name = 'displayName' # str | The attribute's technical name. # str | The attribute's technical name. + 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: + # Delete Identity Attribute + + IdentityAttributesApi(api_client).delete_identity_attribute(name=name, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # IdentityAttributesApi(api_client).delete_identity_attribute(name, x_sail_point_experimental) + except Exception as e: + print("Exception when calling IdentityAttributesApi->delete_identity_attribute: %s\n" % e) - path: /identity-attributes/bulk-delete method: DELETE xCodeSample: @@ -9119,25 +8836,24 @@ from sailpoint.v2024.api.identity_attributes_api import IdentityAttributesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.identity_attribute_names import IdentityAttributeNames - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - identity_attribute_names = '''{ + 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') + identity_attribute_names = '''{ "ids" : [ "name", "displayName" ] }''' # IdentityAttributeNames | - try: - # Bulk delete Identity Attributes - new_identity_attribute_names = IdentityAttributeNames.from_json(identity_attribute_names) - IdentityAttributesApi(api_client).delete_identity_attributes_in_bulk(x_sail_point_experimental=x_sail_point_experimental, identity_attribute_names=new_identity_attribute_names) - # Below is a request that includes all optional parameters - # IdentityAttributesApi(api_client).delete_identity_attributes_in_bulk(x_sail_point_experimental, new_identity_attribute_names) - except Exception as e: - print("Exception when calling IdentityAttributesApi->delete_identity_attributes_in_bulk: %s\n" % e) + try: + # Bulk delete Identity Attributes + new_identity_attribute_names = IdentityAttributeNames.from_json(identity_attribute_names) + IdentityAttributesApi(api_client).delete_identity_attributes_in_bulk(x_sail_point_experimental=x_sail_point_experimental, identity_attribute_names=new_identity_attribute_names) + # Below is a request that includes all optional parameters + # IdentityAttributesApi(api_client).delete_identity_attributes_in_bulk(x_sail_point_experimental, new_identity_attribute_names) + except Exception as e: + print("Exception when calling IdentityAttributesApi->delete_identity_attributes_in_bulk: %s\n" % e) - path: /identity-attributes/{name} method: GET xCodeSample: @@ -9147,25 +8863,24 @@ from sailpoint.v2024.api.identity_attributes_api import IdentityAttributesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.identity_attribute import IdentityAttribute - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - name = 'displayName' # str | The attribute's technical name. # str | The attribute's technical name. - 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 Identity Attribute - - results = IdentityAttributesApi(api_client).get_identity_attribute(name=name, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = IdentityAttributesApi(api_client).get_identity_attribute(name, x_sail_point_experimental) - print("The response of IdentityAttributesApi->get_identity_attribute:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentityAttributesApi->get_identity_attribute: %s\n" % e) + name = 'displayName' # str | The attribute's technical name. # str | The attribute's technical name. + 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 Identity Attribute + + results = IdentityAttributesApi(api_client).get_identity_attribute(name=name, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = IdentityAttributesApi(api_client).get_identity_attribute(name, x_sail_point_experimental) + print("The response of IdentityAttributesApi->get_identity_attribute:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentityAttributesApi->get_identity_attribute: %s\n" % e) - path: /identity-attributes method: GET xCodeSample: @@ -9175,28 +8890,27 @@ from sailpoint.v2024.api.identity_attributes_api import IdentityAttributesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.identity_attribute import IdentityAttribute - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - include_system = False # bool | Include 'system' attributes in the response. (optional) (default to False) # bool | Include 'system' attributes in the response. (optional) (default to False) - include_silent = False # bool | Include 'silent' attributes in the response. (optional) (default to False) # bool | Include 'silent' attributes in the response. (optional) (default to False) - searchable_only = False # bool | Include only 'searchable' attributes in the response. (optional) (default to False) # bool | Include only 'searchable' attributes in the response. (optional) (default to False) - 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) - try: - # List Identity Attributes - - results = IdentityAttributesApi(api_client).list_identity_attributes(x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = IdentityAttributesApi(api_client).list_identity_attributes(x_sail_point_experimental, include_system, include_silent, searchable_only, count) - print("The response of IdentityAttributesApi->list_identity_attributes:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentityAttributesApi->list_identity_attributes: %s\n" % e) + 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') + include_system = False # bool | Include 'system' attributes in the response. (optional) (default to False) # bool | Include 'system' attributes in the response. (optional) (default to False) + include_silent = False # bool | Include 'silent' attributes in the response. (optional) (default to False) # bool | Include 'silent' attributes in the response. (optional) (default to False) + searchable_only = False # bool | Include only 'searchable' attributes in the response. (optional) (default to False) # bool | Include only 'searchable' attributes in the response. (optional) (default to False) + 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) + try: + # List Identity Attributes + + results = IdentityAttributesApi(api_client).list_identity_attributes(x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = IdentityAttributesApi(api_client).list_identity_attributes(x_sail_point_experimental, include_system, include_silent, searchable_only, count) + print("The response of IdentityAttributesApi->list_identity_attributes:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentityAttributesApi->list_identity_attributes: %s\n" % e) - path: /identity-attributes/{name} method: PUT xCodeSample: @@ -9206,16 +8920,15 @@ from sailpoint.v2024.api.identity_attributes_api import IdentityAttributesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.identity_attribute import IdentityAttribute - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - name = 'displayName' # str | The attribute's technical name. # str | The attribute's technical name. - 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') - identity_attribute = '''{ + name = 'displayName' # str | The attribute's technical name. # str | The attribute's technical name. + 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') + identity_attribute = '''{ "standard" : false, "system" : false, "sources" : [ { @@ -9237,16 +8950,16 @@ "searchable" : false, "multi" : false }''' # IdentityAttribute | - try: - # Update Identity Attribute - new_identity_attribute = IdentityAttribute.from_json(identity_attribute) - results = IdentityAttributesApi(api_client).put_identity_attribute(name=name, x_sail_point_experimental=x_sail_point_experimental, identity_attribute=new_identity_attribute) - # Below is a request that includes all optional parameters - # results = IdentityAttributesApi(api_client).put_identity_attribute(name, x_sail_point_experimental, new_identity_attribute) - print("The response of IdentityAttributesApi->put_identity_attribute:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentityAttributesApi->put_identity_attribute: %s\n" % e) + try: + # Update Identity Attribute + new_identity_attribute = IdentityAttribute.from_json(identity_attribute) + results = IdentityAttributesApi(api_client).put_identity_attribute(name=name, x_sail_point_experimental=x_sail_point_experimental, identity_attribute=new_identity_attribute) + # Below is a request that includes all optional parameters + # results = IdentityAttributesApi(api_client).put_identity_attribute(name, x_sail_point_experimental, new_identity_attribute) + print("The response of IdentityAttributesApi->put_identity_attribute:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentityAttributesApi->put_identity_attribute: %s\n" % e) - path: /historical-identities/{id}/compare method: GET xCodeSample: @@ -9256,31 +8969,30 @@ from sailpoint.v2024.api.identity_history_api import IdentityHistoryApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.identity_compare_response import IdentityCompareResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | The identity id # str | The identity id - 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') - snapshot1 = '2007-03-01T13:00:00Z' # str | The snapshot 1 of identity (optional) # str | The snapshot 1 of identity (optional) - snapshot2 = '2008-03-01T13:00:00Z' # str | The snapshot 2 of identity (optional) # str | The snapshot 2 of identity (optional) - access_item_types = '''['access_item_types_example']''' # List[str] | An optional list of access item types (app, account, entitlement, etc...) to return. If null or empty, all access items types are returned (optional) - 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) - try: - # Gets a difference of count for each access item types for the given identity between 2 snapshots - - results = IdentityHistoryApi(api_client).compare_identity_snapshots(id=id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = IdentityHistoryApi(api_client).compare_identity_snapshots(id, x_sail_point_experimental, snapshot1, snapshot2, access_item_types, limit, offset, count) - print("The response of IdentityHistoryApi->compare_identity_snapshots:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentityHistoryApi->compare_identity_snapshots: %s\n" % e) + id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | The identity id # str | The identity id + 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') + snapshot1 = '2007-03-01T13:00:00Z' # str | The snapshot 1 of identity (optional) # str | The snapshot 1 of identity (optional) + snapshot2 = '2008-03-01T13:00:00Z' # str | The snapshot 2 of identity (optional) # str | The snapshot 2 of identity (optional) + access_item_types = '''['access_item_types_example']''' # List[str] | An optional list of access item types (app, account, entitlement, etc...) to return. If null or empty, all access items types are returned (optional) + 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) + try: + # Gets a difference of count for each access item types for the given identity between 2 snapshots + + results = IdentityHistoryApi(api_client).compare_identity_snapshots(id=id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = IdentityHistoryApi(api_client).compare_identity_snapshots(id, x_sail_point_experimental, snapshot1, snapshot2, access_item_types, limit, offset, count) + print("The response of IdentityHistoryApi->compare_identity_snapshots:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentityHistoryApi->compare_identity_snapshots: %s\n" % e) - path: /historical-identities/{id}/compare/{access-type} method: GET xCodeSample: @@ -9290,32 +9002,31 @@ from sailpoint.v2024.api.identity_history_api import IdentityHistoryApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.access_item_diff import AccessItemDiff - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | The identity id # str | The identity id - access_type = 'role' # str | The specific type which needs to be compared # str | The specific type which needs to be compared - 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') - access_associated = 2007-03-01T13:00:00Z # bool | Indicates if added or removed access needs to be returned. true - added, false - removed, null - both added & removed (optional) # bool | Indicates if added or removed access needs to be returned. true - added, false - removed, null - both added & removed (optional) - snapshot1 = '2008-03-01T13:00:00Z' # str | The snapshot 1 of identity (optional) # str | The snapshot 1 of identity (optional) - snapshot2 = '2009-03-01T13:00:00Z' # str | The snapshot 2 of identity (optional) # str | The snapshot 2 of identity (optional) - 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) - try: - # Gets a list of differences of specific accessType for the given identity between 2 snapshots - - results = IdentityHistoryApi(api_client).compare_identity_snapshots_access_type(id=id, access_type=access_type, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = IdentityHistoryApi(api_client).compare_identity_snapshots_access_type(id, access_type, x_sail_point_experimental, access_associated, snapshot1, snapshot2, limit, offset, count) - print("The response of IdentityHistoryApi->compare_identity_snapshots_access_type:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentityHistoryApi->compare_identity_snapshots_access_type: %s\n" % e) + id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | The identity id # str | The identity id + access_type = 'role' # str | The specific type which needs to be compared # str | The specific type which needs to be compared + 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') + access_associated = 2007-03-01T13:00:00Z # bool | Indicates if added or removed access needs to be returned. true - added, false - removed, null - both added & removed (optional) # bool | Indicates if added or removed access needs to be returned. true - added, false - removed, null - both added & removed (optional) + snapshot1 = '2008-03-01T13:00:00Z' # str | The snapshot 1 of identity (optional) # str | The snapshot 1 of identity (optional) + snapshot2 = '2009-03-01T13:00:00Z' # str | The snapshot 2 of identity (optional) # str | The snapshot 2 of identity (optional) + 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) + try: + # Gets a list of differences of specific accessType for the given identity between 2 snapshots + + results = IdentityHistoryApi(api_client).compare_identity_snapshots_access_type(id=id, access_type=access_type, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = IdentityHistoryApi(api_client).compare_identity_snapshots_access_type(id, access_type, x_sail_point_experimental, access_associated, snapshot1, snapshot2, limit, offset, count) + print("The response of IdentityHistoryApi->compare_identity_snapshots_access_type:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentityHistoryApi->compare_identity_snapshots_access_type: %s\n" % e) - path: /historical-identities/{id} method: GET xCodeSample: @@ -9325,25 +9036,24 @@ from sailpoint.v2024.api.identity_history_api import IdentityHistoryApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.identity_history_response import IdentityHistoryResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | The identity id # str | The identity id - 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 latest snapshot of identity - - results = IdentityHistoryApi(api_client).get_historical_identity(id=id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = IdentityHistoryApi(api_client).get_historical_identity(id, x_sail_point_experimental) - print("The response of IdentityHistoryApi->get_historical_identity:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentityHistoryApi->get_historical_identity: %s\n" % e) + id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | The identity id # str | The identity id + 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 latest snapshot of identity + + results = IdentityHistoryApi(api_client).get_historical_identity(id=id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = IdentityHistoryApi(api_client).get_historical_identity(id, x_sail_point_experimental) + print("The response of IdentityHistoryApi->get_historical_identity:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentityHistoryApi->get_historical_identity: %s\n" % e) - path: /historical-identities/{id}/events method: GET xCodeSample: @@ -9353,31 +9063,30 @@ from sailpoint.v2024.api.identity_history_api import IdentityHistoryApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.get_historical_identity_events200_response_inner import GetHistoricalIdentityEvents200ResponseInner - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | The identity id # str | The identity id - 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') - var_from = '2024-03-01T13:00:00Z' # str | The optional instant until which access events are returned (optional) # str | The optional instant until which access events are returned (optional) - event_types = '''['[AccessAddedEvent, AccessRemovedEvent]']''' # List[str] | An optional list of event types to return. If null or empty, all events are returned (optional) - access_item_types = '''['[entitlement, account]']''' # List[str] | An optional list of access item types (app, account, entitlement, etc...) to return. If null or empty, all access items types are returned (optional) - 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) - try: - # Lists all events for the given identity - - results = IdentityHistoryApi(api_client).get_historical_identity_events(id=id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = IdentityHistoryApi(api_client).get_historical_identity_events(id, x_sail_point_experimental, var_from, event_types, access_item_types, limit, offset, count) - print("The response of IdentityHistoryApi->get_historical_identity_events:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentityHistoryApi->get_historical_identity_events: %s\n" % e) + id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | The identity id # str | The identity id + 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') + var_from = '2024-03-01T13:00:00Z' # str | The optional instant until which access events are returned (optional) # str | The optional instant until which access events are returned (optional) + event_types = '''['[AccessAddedEvent, AccessRemovedEvent]']''' # List[str] | An optional list of event types to return. If null or empty, all events are returned (optional) + access_item_types = '''['[entitlement, account]']''' # List[str] | An optional list of access item types (app, account, entitlement, etc...) to return. If null or empty, all access items types are returned (optional) + 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) + try: + # Lists all events for the given identity + + results = IdentityHistoryApi(api_client).get_historical_identity_events(id=id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = IdentityHistoryApi(api_client).get_historical_identity_events(id, x_sail_point_experimental, var_from, event_types, access_item_types, limit, offset, count) + print("The response of IdentityHistoryApi->get_historical_identity_events:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentityHistoryApi->get_historical_identity_events: %s\n" % e) - path: /historical-identities/{id}/snapshots/{date} method: GET xCodeSample: @@ -9387,26 +9096,25 @@ from sailpoint.v2024.api.identity_history_api import IdentityHistoryApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.identity_history_response import IdentityHistoryResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | The identity id # str | The identity id - var_date = '2007-03-01T13:00:00Z' # str | The specified date # str | The specified date - 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: - # Gets an identity snapshot at a given date - - results = IdentityHistoryApi(api_client).get_identity_snapshot(id=id, var_date=var_date, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = IdentityHistoryApi(api_client).get_identity_snapshot(id, var_date, x_sail_point_experimental) - print("The response of IdentityHistoryApi->get_identity_snapshot:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentityHistoryApi->get_identity_snapshot: %s\n" % e) + id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | The identity id # str | The identity id + var_date = '2007-03-01T13:00:00Z' # str | The specified date # str | The specified date + 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: + # Gets an identity snapshot at a given date + + results = IdentityHistoryApi(api_client).get_identity_snapshot(id=id, var_date=var_date, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = IdentityHistoryApi(api_client).get_identity_snapshot(id, var_date, x_sail_point_experimental) + print("The response of IdentityHistoryApi->get_identity_snapshot:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentityHistoryApi->get_identity_snapshot: %s\n" % e) - path: /historical-identities/{id}/snapshot-summary method: GET xCodeSample: @@ -9416,31 +9124,30 @@ from sailpoint.v2024.api.identity_history_api import IdentityHistoryApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.metric_response import MetricResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | The identity id # str | The identity id - 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') - before = '2007-03-01T13:00:00Z' # str | The date before which snapshot summary is required (optional) # str | The date before which snapshot summary is required (optional) - interval = 'interval_example' # str | The interval indicating day or month. Defaults to month if not specified (optional) # str | The interval indicating day or month. Defaults to month if not specified (optional) - time_zone = 'UTC' # str | The time zone. Defaults to UTC if not provided (optional) # str | The time zone. Defaults to UTC if not provided (optional) - 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) - try: - # Gets the summary for the event count for a specific identity - - results = IdentityHistoryApi(api_client).get_identity_snapshot_summary(id=id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = IdentityHistoryApi(api_client).get_identity_snapshot_summary(id, x_sail_point_experimental, before, interval, time_zone, limit, offset, count) - print("The response of IdentityHistoryApi->get_identity_snapshot_summary:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentityHistoryApi->get_identity_snapshot_summary: %s\n" % e) + id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | The identity id # str | The identity id + 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') + before = '2007-03-01T13:00:00Z' # str | The date before which snapshot summary is required (optional) # str | The date before which snapshot summary is required (optional) + interval = 'interval_example' # str | The interval indicating day or month. Defaults to month if not specified (optional) # str | The interval indicating day or month. Defaults to month if not specified (optional) + time_zone = 'UTC' # str | The time zone. Defaults to UTC if not provided (optional) # str | The time zone. Defaults to UTC if not provided (optional) + 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) + try: + # Gets the summary for the event count for a specific identity + + results = IdentityHistoryApi(api_client).get_identity_snapshot_summary(id=id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = IdentityHistoryApi(api_client).get_identity_snapshot_summary(id, x_sail_point_experimental, before, interval, time_zone, limit, offset, count) + print("The response of IdentityHistoryApi->get_identity_snapshot_summary:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentityHistoryApi->get_identity_snapshot_summary: %s\n" % e) - path: /historical-identities/{id}/start-date method: GET xCodeSample: @@ -9449,25 +9156,24 @@ source: | from sailpoint.v2024.api.identity_history_api import IdentityHistoryApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | The identity id # str | The identity id - 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: - # Gets the start date of the identity - - results = IdentityHistoryApi(api_client).get_identity_start_date(id=id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = IdentityHistoryApi(api_client).get_identity_start_date(id, x_sail_point_experimental) - print("The response of IdentityHistoryApi->get_identity_start_date:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentityHistoryApi->get_identity_start_date: %s\n" % e) + id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | The identity id # str | The identity id + 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: + # Gets the start date of the identity + + results = IdentityHistoryApi(api_client).get_identity_start_date(id=id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = IdentityHistoryApi(api_client).get_identity_start_date(id, x_sail_point_experimental) + print("The response of IdentityHistoryApi->get_identity_start_date:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentityHistoryApi->get_identity_start_date: %s\n" % e) - path: /historical-identities method: GET xCodeSample: @@ -9477,29 +9183,28 @@ from sailpoint.v2024.api.identity_history_api import IdentityHistoryApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.identity_list_item import IdentityListItem - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - starts_with_query = 'Ada' # str | This param is used for starts-with search for first, last and display name of the identity (optional) # str | This param is used for starts-with search for first, last and display name of the identity (optional) - is_deleted = true # bool | Indicates if we want to only list down deleted identities or not. (optional) # bool | Indicates if we want to only list down deleted identities or not. (optional) - is_active = true # bool | Indicates if we want to only list active or inactive identities. (optional) # bool | Indicates if we want to only list active or inactive identities. (optional) - 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) - try: - # Lists all the identities - - results = IdentityHistoryApi(api_client).list_historical_identities(x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = IdentityHistoryApi(api_client).list_historical_identities(x_sail_point_experimental, starts_with_query, is_deleted, is_active, limit, offset) - print("The response of IdentityHistoryApi->list_historical_identities:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentityHistoryApi->list_historical_identities: %s\n" % e) + 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') + starts_with_query = 'Ada' # str | This param is used for starts-with search for first, last and display name of the identity (optional) # str | This param is used for starts-with search for first, last and display name of the identity (optional) + is_deleted = true # bool | Indicates if we want to only list down deleted identities or not. (optional) # bool | Indicates if we want to only list down deleted identities or not. (optional) + is_active = true # bool | Indicates if we want to only list active or inactive identities. (optional) # bool | Indicates if we want to only list active or inactive identities. (optional) + 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) + try: + # Lists all the identities + + results = IdentityHistoryApi(api_client).list_historical_identities(x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = IdentityHistoryApi(api_client).list_historical_identities(x_sail_point_experimental, starts_with_query, is_deleted, is_active, limit, offset) + print("The response of IdentityHistoryApi->list_historical_identities:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentityHistoryApi->list_historical_identities: %s\n" % e) - path: /historical-identities/{id}/access-items method: GET xCodeSample: @@ -9509,29 +9214,28 @@ from sailpoint.v2024.api.identity_history_api import IdentityHistoryApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.list_identity_access_items200_response_inner import ListIdentityAccessItems200ResponseInner - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | The identity id # str | The identity id - 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') - type = 'account' # str | The type of access item for the identity. If not provided, it defaults to account (optional) # str | The type of access item for the identity. If not provided, it defaults to account (optional) - 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) - 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) - 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) - try: - # List Access Items by Identity - - results = IdentityHistoryApi(api_client).list_identity_access_items(id=id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = IdentityHistoryApi(api_client).list_identity_access_items(id, x_sail_point_experimental, type, limit, count, offset) - print("The response of IdentityHistoryApi->list_identity_access_items:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentityHistoryApi->list_identity_access_items: %s\n" % e) + id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | The identity id # str | The identity id + 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') + type = 'account' # str | The type of access item for the identity. If not provided, it defaults to account (optional) # str | The type of access item for the identity. If not provided, it defaults to account (optional) + 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) + 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) + 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) + try: + # List Access Items by Identity + + results = IdentityHistoryApi(api_client).list_identity_access_items(id=id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = IdentityHistoryApi(api_client).list_identity_access_items(id, x_sail_point_experimental, type, limit, count, offset) + print("The response of IdentityHistoryApi->list_identity_access_items:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentityHistoryApi->list_identity_access_items: %s\n" % e) - path: /historical-identities/{id}/snapshots/{date}/access-items method: GET xCodeSample: @@ -9541,27 +9245,26 @@ from sailpoint.v2024.api.identity_history_api import IdentityHistoryApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.list_identity_access_items200_response_inner import ListIdentityAccessItems200ResponseInner - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | The identity id # str | The identity id - var_date = '2007-03-01T13:00:00Z' # str | The specified date # str | The specified date - 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') - type = 'account' # str | The access item type (optional) # str | The access item type (optional) - try: - # Gets the list of identity access items at a given date filterd by item type - - results = IdentityHistoryApi(api_client).list_identity_snapshot_access_items(id=id, var_date=var_date, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = IdentityHistoryApi(api_client).list_identity_snapshot_access_items(id, var_date, x_sail_point_experimental, type) - print("The response of IdentityHistoryApi->list_identity_snapshot_access_items:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentityHistoryApi->list_identity_snapshot_access_items: %s\n" % e) + id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | The identity id # str | The identity id + var_date = '2007-03-01T13:00:00Z' # str | The specified date # str | The specified date + 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') + type = 'account' # str | The access item type (optional) # str | The access item type (optional) + try: + # Gets the list of identity access items at a given date filterd by item type + + results = IdentityHistoryApi(api_client).list_identity_snapshot_access_items(id=id, var_date=var_date, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = IdentityHistoryApi(api_client).list_identity_snapshot_access_items(id, var_date, x_sail_point_experimental, type) + print("The response of IdentityHistoryApi->list_identity_snapshot_access_items:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentityHistoryApi->list_identity_snapshot_access_items: %s\n" % e) - path: /historical-identities/{id}/snapshots method: GET xCodeSample: @@ -9571,30 +9274,29 @@ from sailpoint.v2024.api.identity_history_api import IdentityHistoryApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.identity_snapshot_summary_response import IdentitySnapshotSummaryResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | The identity id # str | The identity id - 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') - start = '2007-03-01T13:00:00Z' # str | The specified start date (optional) # str | The specified start date (optional) - interval = 'interval_example' # str | The interval indicating the range in day or month for the specified interval-name (optional) # str | The interval indicating the range in day or month for the specified interval-name (optional) - 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) - try: - # Lists all the snapshots for the identity - - results = IdentityHistoryApi(api_client).list_identity_snapshots(id=id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = IdentityHistoryApi(api_client).list_identity_snapshots(id, x_sail_point_experimental, start, interval, limit, offset, count) - print("The response of IdentityHistoryApi->list_identity_snapshots:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentityHistoryApi->list_identity_snapshots: %s\n" % e) + id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | The identity id # str | The identity id + 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') + start = '2007-03-01T13:00:00Z' # str | The specified start date (optional) # str | The specified start date (optional) + interval = 'interval_example' # str | The interval indicating the range in day or month for the specified interval-name (optional) # str | The interval indicating the range in day or month for the specified interval-name (optional) + 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) + try: + # Lists all the snapshots for the identity + + results = IdentityHistoryApi(api_client).list_identity_snapshots(id=id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = IdentityHistoryApi(api_client).list_identity_snapshots(id, x_sail_point_experimental, start, interval, limit, offset, count) + print("The response of IdentityHistoryApi->list_identity_snapshots:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentityHistoryApi->list_identity_snapshots: %s\n" % e) - path: /identity-profiles method: POST xCodeSample: @@ -9604,13 +9306,12 @@ from sailpoint.v2024.api.identity_profiles_api import IdentityProfilesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.identity_profile import IdentityProfile - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - identity_profile = '''{ + identity_profile = '''{ "owner" : { "name" : "William Wilson", "id" : "2c9180835d191a86015d28455b4b232a", @@ -9659,16 +9360,16 @@ "modified" : "2015-05-28T14:07:17Z", "id" : "id12345" }''' # IdentityProfile | - try: - # Create Identity Profile - new_identity_profile = IdentityProfile.from_json(identity_profile) - results = IdentityProfilesApi(api_client).create_identity_profile(identity_profile=new_identity_profile) - # Below is a request that includes all optional parameters - # results = IdentityProfilesApi(api_client).create_identity_profile(new_identity_profile) - print("The response of IdentityProfilesApi->create_identity_profile:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentityProfilesApi->create_identity_profile: %s\n" % e) + try: + # Create Identity Profile + new_identity_profile = IdentityProfile.from_json(identity_profile) + results = IdentityProfilesApi(api_client).create_identity_profile(identity_profile=new_identity_profile) + # Below is a request that includes all optional parameters + # results = IdentityProfilesApi(api_client).create_identity_profile(new_identity_profile) + print("The response of IdentityProfilesApi->create_identity_profile:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentityProfilesApi->create_identity_profile: %s\n" % e) - path: /identity-profiles/{identity-profile-id} method: DELETE xCodeSample: @@ -9678,23 +9379,22 @@ from sailpoint.v2024.api.identity_profiles_api import IdentityProfilesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.task_result_simplified import TaskResultSimplified - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - identity_profile_id = 'ef38f94347e94562b5bb8424a56397d8' # str | Identity profile ID. # str | Identity profile ID. - try: - # Delete Identity Profile - - results = IdentityProfilesApi(api_client).delete_identity_profile(identity_profile_id=identity_profile_id) - # Below is a request that includes all optional parameters - # results = IdentityProfilesApi(api_client).delete_identity_profile(identity_profile_id) - print("The response of IdentityProfilesApi->delete_identity_profile:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentityProfilesApi->delete_identity_profile: %s\n" % e) + identity_profile_id = 'ef38f94347e94562b5bb8424a56397d8' # str | Identity profile ID. # str | Identity profile ID. + try: + # Delete Identity Profile + + results = IdentityProfilesApi(api_client).delete_identity_profile(identity_profile_id=identity_profile_id) + # Below is a request that includes all optional parameters + # results = IdentityProfilesApi(api_client).delete_identity_profile(identity_profile_id) + print("The response of IdentityProfilesApi->delete_identity_profile:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentityProfilesApi->delete_identity_profile: %s\n" % e) - path: /identity-profiles/bulk-delete method: POST xCodeSample: @@ -9704,23 +9404,22 @@ from sailpoint.v2024.api.identity_profiles_api import IdentityProfilesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.task_result_simplified import TaskResultSimplified - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - request_body = '''['request_body_example']''' # List[str] | Identity Profile bulk delete request body. - try: - # Delete Identity Profiles - new_request_body = RequestBody.from_json(request_body) - results = IdentityProfilesApi(api_client).delete_identity_profiles(request_body=new_request_body) - # Below is a request that includes all optional parameters - # results = IdentityProfilesApi(api_client).delete_identity_profiles(new_request_body) - print("The response of IdentityProfilesApi->delete_identity_profiles:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentityProfilesApi->delete_identity_profiles: %s\n" % e) + request_body = '''['request_body_example']''' # List[str] | Identity Profile bulk delete request body. + try: + # Delete Identity Profiles + new_request_body = RequestBody.from_json(request_body) + results = IdentityProfilesApi(api_client).delete_identity_profiles(request_body=new_request_body) + # Below is a request that includes all optional parameters + # results = IdentityProfilesApi(api_client).delete_identity_profiles(new_request_body) + print("The response of IdentityProfilesApi->delete_identity_profiles:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentityProfilesApi->delete_identity_profiles: %s\n" % e) - path: /identity-profiles/export method: GET xCodeSample: @@ -9730,27 +9429,26 @@ from sailpoint.v2024.api.identity_profiles_api import IdentityProfilesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.identity_profile_exported_object import IdentityProfileExportedObject - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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 = 'id eq \"ef38f94347e94562b5bb8424a56397d8\"' # 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, ne* **name**: *eq, ne* **priority**: *eq, ne* (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, ne* **name**: *eq, ne* **priority**: *eq, ne* (optional) - sorters = 'id,name' # 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: **id, name, priority** (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: **id, name, priority** (optional) - try: - # Export Identity Profiles - - results = IdentityProfilesApi(api_client).export_identity_profiles() - # Below is a request that includes all optional parameters - # results = IdentityProfilesApi(api_client).export_identity_profiles(limit, offset, count, filters, sorters) - print("The response of IdentityProfilesApi->export_identity_profiles:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentityProfilesApi->export_identity_profiles: %s\n" % e) + 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 = 'id eq \"ef38f94347e94562b5bb8424a56397d8\"' # 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, ne* **name**: *eq, ne* **priority**: *eq, ne* (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, ne* **name**: *eq, ne* **priority**: *eq, ne* (optional) + sorters = 'id,name' # 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: **id, name, priority** (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: **id, name, priority** (optional) + try: + # Export Identity Profiles + + results = IdentityProfilesApi(api_client).export_identity_profiles() + # Below is a request that includes all optional parameters + # results = IdentityProfilesApi(api_client).export_identity_profiles(limit, offset, count, filters, sorters) + print("The response of IdentityProfilesApi->export_identity_profiles:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentityProfilesApi->export_identity_profiles: %s\n" % e) - path: /identity-profiles/identity-preview method: POST xCodeSample: @@ -9761,15 +9459,14 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.identity_preview_request import IdentityPreviewRequest from sailpoint.v2024.models.identity_preview_response import IdentityPreviewResponse - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - identity_preview_request = '''{ + 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') + identity_preview_request = '''{ "identityId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", "identityAttributeConfig" : { "attributeTransforms" : [ { @@ -9796,16 +9493,16 @@ "enabled" : true } }''' # IdentityPreviewRequest | Identity Preview request body. - try: - # Generate Identity Profile Preview - new_identity_preview_request = IdentityPreviewRequest.from_json(identity_preview_request) - results = IdentityProfilesApi(api_client).generate_identity_preview(x_sail_point_experimental=x_sail_point_experimental, identity_preview_request=new_identity_preview_request) - # Below is a request that includes all optional parameters - # results = IdentityProfilesApi(api_client).generate_identity_preview(x_sail_point_experimental, new_identity_preview_request) - print("The response of IdentityProfilesApi->generate_identity_preview:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentityProfilesApi->generate_identity_preview: %s\n" % e) + try: + # Generate Identity Profile Preview + new_identity_preview_request = IdentityPreviewRequest.from_json(identity_preview_request) + results = IdentityProfilesApi(api_client).generate_identity_preview(x_sail_point_experimental=x_sail_point_experimental, identity_preview_request=new_identity_preview_request) + # Below is a request that includes all optional parameters + # results = IdentityProfilesApi(api_client).generate_identity_preview(x_sail_point_experimental, new_identity_preview_request) + print("The response of IdentityProfilesApi->generate_identity_preview:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentityProfilesApi->generate_identity_preview: %s\n" % e) - path: /identity-profiles/{identity-profile-id}/default-identity-attribute-config method: GET xCodeSample: @@ -9815,23 +9512,22 @@ from sailpoint.v2024.api.identity_profiles_api import IdentityProfilesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.identity_attribute_config import IdentityAttributeConfig - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - identity_profile_id = '2b838de9-db9b-abcf-e646-d4f274ad4238' # str | The Identity Profile ID. # str | The Identity Profile ID. - try: - # Get default Identity Attribute Config - - results = IdentityProfilesApi(api_client).get_default_identity_attribute_config(identity_profile_id=identity_profile_id) - # Below is a request that includes all optional parameters - # results = IdentityProfilesApi(api_client).get_default_identity_attribute_config(identity_profile_id) - print("The response of IdentityProfilesApi->get_default_identity_attribute_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentityProfilesApi->get_default_identity_attribute_config: %s\n" % e) + identity_profile_id = '2b838de9-db9b-abcf-e646-d4f274ad4238' # str | The Identity Profile ID. # str | The Identity Profile ID. + try: + # Get default Identity Attribute Config + + results = IdentityProfilesApi(api_client).get_default_identity_attribute_config(identity_profile_id=identity_profile_id) + # Below is a request that includes all optional parameters + # results = IdentityProfilesApi(api_client).get_default_identity_attribute_config(identity_profile_id) + print("The response of IdentityProfilesApi->get_default_identity_attribute_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentityProfilesApi->get_default_identity_attribute_config: %s\n" % e) - path: /identity-profiles/{identity-profile-id} method: GET xCodeSample: @@ -9841,23 +9537,22 @@ from sailpoint.v2024.api.identity_profiles_api import IdentityProfilesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.identity_profile import IdentityProfile - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - identity_profile_id = '2b838de9-db9b-abcf-e646-d4f274ad4238' # str | Identity profile ID. # str | Identity profile ID. - try: - # Get Identity Profile - - results = IdentityProfilesApi(api_client).get_identity_profile(identity_profile_id=identity_profile_id) - # Below is a request that includes all optional parameters - # results = IdentityProfilesApi(api_client).get_identity_profile(identity_profile_id) - print("The response of IdentityProfilesApi->get_identity_profile:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentityProfilesApi->get_identity_profile: %s\n" % e) + identity_profile_id = '2b838de9-db9b-abcf-e646-d4f274ad4238' # str | Identity profile ID. # str | Identity profile ID. + try: + # Get Identity Profile + + results = IdentityProfilesApi(api_client).get_identity_profile(identity_profile_id=identity_profile_id) + # Below is a request that includes all optional parameters + # results = IdentityProfilesApi(api_client).get_identity_profile(identity_profile_id) + print("The response of IdentityProfilesApi->get_identity_profile:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentityProfilesApi->get_identity_profile: %s\n" % e) - path: /identity-profiles/import method: POST xCodeSample: @@ -9868,23 +9563,22 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.identity_profile_exported_object import IdentityProfileExportedObject from sailpoint.v2024.models.object_import_result import ObjectImportResult - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - identity_profile_exported_object = '''[sailpoint.v2024.IdentityProfileExportedObject()]''' # List[IdentityProfileExportedObject] | Previously exported Identity Profiles. - try: - # Import Identity Profiles - new_identity_profile_exported_object = IdentityProfileExportedObject.from_json(identity_profile_exported_object) - results = IdentityProfilesApi(api_client).import_identity_profiles(identity_profile_exported_object=new_identity_profile_exported_object) - # Below is a request that includes all optional parameters - # results = IdentityProfilesApi(api_client).import_identity_profiles(new_identity_profile_exported_object) - print("The response of IdentityProfilesApi->import_identity_profiles:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentityProfilesApi->import_identity_profiles: %s\n" % e) + identity_profile_exported_object = '''[sailpoint.v2024.IdentityProfileExportedObject()]''' # List[IdentityProfileExportedObject] | Previously exported Identity Profiles. + try: + # Import Identity Profiles + new_identity_profile_exported_object = IdentityProfileExportedObject.from_json(identity_profile_exported_object) + results = IdentityProfilesApi(api_client).import_identity_profiles(identity_profile_exported_object=new_identity_profile_exported_object) + # Below is a request that includes all optional parameters + # results = IdentityProfilesApi(api_client).import_identity_profiles(new_identity_profile_exported_object) + print("The response of IdentityProfilesApi->import_identity_profiles:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentityProfilesApi->import_identity_profiles: %s\n" % e) - path: /identity-profiles method: GET xCodeSample: @@ -9894,27 +9588,26 @@ from sailpoint.v2024.api.identity_profiles_api import IdentityProfilesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.identity_profile import IdentityProfile - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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 = 'id eq \"ef38f94347e94562b5bb8424a56397d8\"' # 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, ne, ge, gt, in, le, sw* **name**: *eq, ne, ge, gt, in, le, sw* **priority**: *eq, ne* (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, ne, ge, gt, in, le, sw* **name**: *eq, ne, ge, gt, in, le, sw* **priority**: *eq, ne* (optional) - sorters = 'id,name' # 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: **id, name, priority, created, modified, owner.id, owner.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: **id, name, priority, created, modified, owner.id, owner.name** (optional) - try: - # List Identity Profiles - - results = IdentityProfilesApi(api_client).list_identity_profiles() - # Below is a request that includes all optional parameters - # results = IdentityProfilesApi(api_client).list_identity_profiles(limit, offset, count, filters, sorters) - print("The response of IdentityProfilesApi->list_identity_profiles:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentityProfilesApi->list_identity_profiles: %s\n" % e) + 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 = 'id eq \"ef38f94347e94562b5bb8424a56397d8\"' # 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, ne, ge, gt, in, le, sw* **name**: *eq, ne, ge, gt, in, le, sw* **priority**: *eq, ne* (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, ne, ge, gt, in, le, sw* **name**: *eq, ne, ge, gt, in, le, sw* **priority**: *eq, ne* (optional) + sorters = 'id,name' # 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: **id, name, priority, created, modified, owner.id, owner.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: **id, name, priority, created, modified, owner.id, owner.name** (optional) + try: + # List Identity Profiles + + results = IdentityProfilesApi(api_client).list_identity_profiles() + # Below is a request that includes all optional parameters + # results = IdentityProfilesApi(api_client).list_identity_profiles(limit, offset, count, filters, sorters) + print("The response of IdentityProfilesApi->list_identity_profiles:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentityProfilesApi->list_identity_profiles: %s\n" % e) - path: /identity-profiles/{identity-profile-id}/process-identities method: POST xCodeSample: @@ -9923,23 +9616,22 @@ source: | from sailpoint.v2024.api.identity_profiles_api import IdentityProfilesApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - identity_profile_id = 'ef38f94347e94562b5bb8424a56397d8' # str | The Identity Profile ID to be processed # str | The Identity Profile ID to be processed - try: - # Process identities under profile - - results = IdentityProfilesApi(api_client).sync_identity_profile(identity_profile_id=identity_profile_id) - # Below is a request that includes all optional parameters - # results = IdentityProfilesApi(api_client).sync_identity_profile(identity_profile_id) - print("The response of IdentityProfilesApi->sync_identity_profile:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentityProfilesApi->sync_identity_profile: %s\n" % e) + identity_profile_id = 'ef38f94347e94562b5bb8424a56397d8' # str | The Identity Profile ID to be processed # str | The Identity Profile ID to be processed + try: + # Process identities under profile + + results = IdentityProfilesApi(api_client).sync_identity_profile(identity_profile_id=identity_profile_id) + # Below is a request that includes all optional parameters + # results = IdentityProfilesApi(api_client).sync_identity_profile(identity_profile_id) + print("The response of IdentityProfilesApi->sync_identity_profile:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentityProfilesApi->sync_identity_profile: %s\n" % e) - path: /identity-profiles/{identity-profile-id} method: PATCH xCodeSample: @@ -9950,24 +9642,23 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.identity_profile import IdentityProfile from sailpoint.v2024.models.json_patch_operation import JsonPatchOperation - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - identity_profile_id = 'ef38f94347e94562b5bb8424a56397d8' # str | Identity profile ID. # str | Identity profile ID. - json_patch_operation = '''[{op=add, path=/identityAttributeConfig/attributeTransforms/0, value={identityAttributeName=location, transformDefinition={type=accountAttribute, attributes={sourceName=Employees, attributeName=location, sourceId=2c91808878b7d63b0178c66ffcdc4ce4}}}}]''' # List[JsonPatchOperation] | List of identity profile update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. - try: - # Update Identity Profile - new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) - results = IdentityProfilesApi(api_client).update_identity_profile(identity_profile_id=identity_profile_id, json_patch_operation=new_json_patch_operation) - # Below is a request that includes all optional parameters - # results = IdentityProfilesApi(api_client).update_identity_profile(identity_profile_id, new_json_patch_operation) - print("The response of IdentityProfilesApi->update_identity_profile:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentityProfilesApi->update_identity_profile: %s\n" % e) + identity_profile_id = 'ef38f94347e94562b5bb8424a56397d8' # str | Identity profile ID. # str | Identity profile ID. + json_patch_operation = '''[{op=add, path=/identityAttributeConfig/attributeTransforms/0, value={identityAttributeName=location, transformDefinition={type=accountAttribute, attributes={sourceName=Employees, attributeName=location, sourceId=2c91808878b7d63b0178c66ffcdc4ce4}}}}]''' # List[JsonPatchOperation] | List of identity profile update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. + try: + # Update Identity Profile + new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) + results = IdentityProfilesApi(api_client).update_identity_profile(identity_profile_id=identity_profile_id, json_patch_operation=new_json_patch_operation) + # Below is a request that includes all optional parameters + # results = IdentityProfilesApi(api_client).update_identity_profile(identity_profile_id, new_json_patch_operation) + print("The response of IdentityProfilesApi->update_identity_profile:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentityProfilesApi->update_identity_profile: %s\n" % e) - path: /identity-profiles/{identity-profile-id}/lifecycle-states method: POST xCodeSample: @@ -9977,14 +9668,13 @@ from sailpoint.v2024.api.lifecycle_states_api import LifecycleStatesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.lifecycle_state import LifecycleState - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - identity_profile_id = '2b838de9-db9b-abcf-e646-d4f274ad4238' # str | Identity profile ID. # str | Identity profile ID. - lifecycle_state = '''{ + identity_profile_id = '2b838de9-db9b-abcf-e646-d4f274ad4238' # str | Identity profile ID. # str | Identity profile ID. + lifecycle_state = '''{ "accessProfileIds" : [ "2c918084660f45d6016617daa9210584", "2c918084660f45d6016617daa9210500" ], "emailNotificationOption" : { "notifyManagers" : true, @@ -10009,16 +9699,16 @@ "identityState" : "identityState", "enabled" : true }''' # LifecycleState | Lifecycle state to be created. - try: - # Create Lifecycle State - new_lifecycle_state = LifecycleState.from_json(lifecycle_state) - results = LifecycleStatesApi(api_client).create_lifecycle_state(identity_profile_id=identity_profile_id, lifecycle_state=new_lifecycle_state) - # Below is a request that includes all optional parameters - # results = LifecycleStatesApi(api_client).create_lifecycle_state(identity_profile_id, new_lifecycle_state) - print("The response of LifecycleStatesApi->create_lifecycle_state:\n") - pprint(results) - except Exception as e: - print("Exception when calling LifecycleStatesApi->create_lifecycle_state: %s\n" % e) + try: + # Create Lifecycle State + new_lifecycle_state = LifecycleState.from_json(lifecycle_state) + results = LifecycleStatesApi(api_client).create_lifecycle_state(identity_profile_id=identity_profile_id, lifecycle_state=new_lifecycle_state) + # Below is a request that includes all optional parameters + # results = LifecycleStatesApi(api_client).create_lifecycle_state(identity_profile_id, new_lifecycle_state) + print("The response of LifecycleStatesApi->create_lifecycle_state:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling LifecycleStatesApi->create_lifecycle_state: %s\n" % e) - path: /identity-profiles/{identity-profile-id}/lifecycle-states/{lifecycle-state-id} method: DELETE xCodeSample: @@ -10028,24 +9718,23 @@ from sailpoint.v2024.api.lifecycle_states_api import LifecycleStatesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.lifecyclestate_deleted import LifecyclestateDeleted - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - identity_profile_id = '2b838de9-db9b-abcf-e646-d4f274ad4238' # str | Identity profile ID. # str | Identity profile ID. - lifecycle_state_id = 'ef38f94347e94562b5bb8424a56397d8' # str | Lifecycle state ID. # str | Lifecycle state ID. - try: - # Delete Lifecycle State - - results = LifecycleStatesApi(api_client).delete_lifecycle_state(identity_profile_id=identity_profile_id, lifecycle_state_id=lifecycle_state_id) - # Below is a request that includes all optional parameters - # results = LifecycleStatesApi(api_client).delete_lifecycle_state(identity_profile_id, lifecycle_state_id) - print("The response of LifecycleStatesApi->delete_lifecycle_state:\n") - pprint(results) - except Exception as e: - print("Exception when calling LifecycleStatesApi->delete_lifecycle_state: %s\n" % e) + identity_profile_id = '2b838de9-db9b-abcf-e646-d4f274ad4238' # str | Identity profile ID. # str | Identity profile ID. + lifecycle_state_id = 'ef38f94347e94562b5bb8424a56397d8' # str | Lifecycle state ID. # str | Lifecycle state ID. + try: + # Delete Lifecycle State + + results = LifecycleStatesApi(api_client).delete_lifecycle_state(identity_profile_id=identity_profile_id, lifecycle_state_id=lifecycle_state_id) + # Below is a request that includes all optional parameters + # results = LifecycleStatesApi(api_client).delete_lifecycle_state(identity_profile_id, lifecycle_state_id) + print("The response of LifecycleStatesApi->delete_lifecycle_state:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling LifecycleStatesApi->delete_lifecycle_state: %s\n" % e) - path: /identity-profiles/{identity-profile-id}/lifecycle-states/{lifecycle-state-id} method: GET xCodeSample: @@ -10055,24 +9744,23 @@ from sailpoint.v2024.api.lifecycle_states_api import LifecycleStatesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.lifecycle_state import LifecycleState - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - identity_profile_id = '2b838de9-db9b-abcf-e646-d4f274ad4238' # str | Identity profile ID. # str | Identity profile ID. - lifecycle_state_id = 'ef38f94347e94562b5bb8424a56397d8' # str | Lifecycle state ID. # str | Lifecycle state ID. - try: - # Get Lifecycle State - - results = LifecycleStatesApi(api_client).get_lifecycle_state(identity_profile_id=identity_profile_id, lifecycle_state_id=lifecycle_state_id) - # Below is a request that includes all optional parameters - # results = LifecycleStatesApi(api_client).get_lifecycle_state(identity_profile_id, lifecycle_state_id) - print("The response of LifecycleStatesApi->get_lifecycle_state:\n") - pprint(results) - except Exception as e: - print("Exception when calling LifecycleStatesApi->get_lifecycle_state: %s\n" % e) + identity_profile_id = '2b838de9-db9b-abcf-e646-d4f274ad4238' # str | Identity profile ID. # str | Identity profile ID. + lifecycle_state_id = 'ef38f94347e94562b5bb8424a56397d8' # str | Lifecycle state ID. # str | Lifecycle state ID. + try: + # Get Lifecycle State + + results = LifecycleStatesApi(api_client).get_lifecycle_state(identity_profile_id=identity_profile_id, lifecycle_state_id=lifecycle_state_id) + # Below is a request that includes all optional parameters + # results = LifecycleStatesApi(api_client).get_lifecycle_state(identity_profile_id, lifecycle_state_id) + print("The response of LifecycleStatesApi->get_lifecycle_state:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling LifecycleStatesApi->get_lifecycle_state: %s\n" % e) - path: /identity-profiles/{identity-profile-id}/lifecycle-states method: GET xCodeSample: @@ -10082,27 +9770,26 @@ from sailpoint.v2024.api.lifecycle_states_api import LifecycleStatesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.lifecycle_state import LifecycleState - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - identity_profile_id = '2b838de9-db9b-abcf-e646-d4f274ad4238' # str | Identity profile ID. # str | Identity profile ID. - 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) - sorters = 'created,modified' # 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** (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** (optional) - try: - # Lists LifecycleStates - - results = LifecycleStatesApi(api_client).get_lifecycle_states(identity_profile_id=identity_profile_id) - # Below is a request that includes all optional parameters - # results = LifecycleStatesApi(api_client).get_lifecycle_states(identity_profile_id, limit, offset, count, sorters) - print("The response of LifecycleStatesApi->get_lifecycle_states:\n") - pprint(results) - except Exception as e: - print("Exception when calling LifecycleStatesApi->get_lifecycle_states: %s\n" % e) + identity_profile_id = '2b838de9-db9b-abcf-e646-d4f274ad4238' # str | Identity profile ID. # str | Identity profile ID. + 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) + sorters = 'created,modified' # 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** (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** (optional) + try: + # Lists LifecycleStates + + results = LifecycleStatesApi(api_client).get_lifecycle_states(identity_profile_id=identity_profile_id) + # Below is a request that includes all optional parameters + # results = LifecycleStatesApi(api_client).get_lifecycle_states(identity_profile_id, limit, offset, count, sorters) + print("The response of LifecycleStatesApi->get_lifecycle_states:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling LifecycleStatesApi->get_lifecycle_states: %s\n" % e) - path: /identities/{identity-id}/set-lifecycle-state method: POST xCodeSample: @@ -10113,24 +9800,23 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.set_lifecycle_state200_response import SetLifecycleState200Response from sailpoint.v2024.models.set_lifecycle_state_request import SetLifecycleStateRequest - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - identity_id = '2c9180857893f1290178944561990364' # str | ID of the identity to update. # str | ID of the identity to update. - set_lifecycle_state_request = '''sailpoint.v2024.SetLifecycleStateRequest()''' # SetLifecycleStateRequest | - try: - # Set Lifecycle State - new_set_lifecycle_state_request = SetLifecycleStateRequest.from_json(set_lifecycle_state_request) - results = LifecycleStatesApi(api_client).set_lifecycle_state(identity_id=identity_id, set_lifecycle_state_request=new_set_lifecycle_state_request) - # Below is a request that includes all optional parameters - # results = LifecycleStatesApi(api_client).set_lifecycle_state(identity_id, new_set_lifecycle_state_request) - print("The response of LifecycleStatesApi->set_lifecycle_state:\n") - pprint(results) - except Exception as e: - print("Exception when calling LifecycleStatesApi->set_lifecycle_state: %s\n" % e) + identity_id = '2c9180857893f1290178944561990364' # str | ID of the identity to update. # str | ID of the identity to update. + set_lifecycle_state_request = '''sailpoint.v2024.SetLifecycleStateRequest()''' # SetLifecycleStateRequest | + try: + # Set Lifecycle State + new_set_lifecycle_state_request = SetLifecycleStateRequest.from_json(set_lifecycle_state_request) + results = LifecycleStatesApi(api_client).set_lifecycle_state(identity_id=identity_id, set_lifecycle_state_request=new_set_lifecycle_state_request) + # Below is a request that includes all optional parameters + # results = LifecycleStatesApi(api_client).set_lifecycle_state(identity_id, new_set_lifecycle_state_request) + print("The response of LifecycleStatesApi->set_lifecycle_state:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling LifecycleStatesApi->set_lifecycle_state: %s\n" % e) - path: /identity-profiles/{identity-profile-id}/lifecycle-states/{lifecycle-state-id} method: PATCH xCodeSample: @@ -10141,25 +9827,24 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.json_patch_operation import JsonPatchOperation from sailpoint.v2024.models.lifecycle_state import LifecycleState - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - identity_profile_id = '2b838de9-db9b-abcf-e646-d4f274ad4238' # str | Identity profile ID. # str | Identity profile ID. - lifecycle_state_id = 'ef38f94347e94562b5bb8424a56397d8' # str | Lifecycle state ID. # str | Lifecycle state ID. - json_patch_operation = '''[{op=replace, path=/description, value=Updated description!}, {op=replace, path=/accessProfileIds, value=[2c918087742bab150174407a80f3125e, 2c918087742bab150174407a80f3124f]}, {op=replace, path=/accountActions, value=[{action=ENABLE, sourceIds=[2c9180846a2f82fb016a481c1b1560c5, 2c9180846a2f82fb016a481c1b1560cc]}, {action=DISABLE, sourceIds=[2c91808869a0c9980169a207258513fb]}]}, {op=replace, path=/emailNotificationOption, value={notifyManagers=true, notifyAllAdmins=false, notifySpecificUsers=false, emailAddressList=[]}}]''' # List[JsonPatchOperation] | A list of lifecycle state update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields can be updated: * enabled * description * accountActions * accessProfileIds * emailNotificationOption - try: - # Update Lifecycle State - new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) - results = LifecycleStatesApi(api_client).update_lifecycle_states(identity_profile_id=identity_profile_id, lifecycle_state_id=lifecycle_state_id, json_patch_operation=new_json_patch_operation) - # Below is a request that includes all optional parameters - # results = LifecycleStatesApi(api_client).update_lifecycle_states(identity_profile_id, lifecycle_state_id, new_json_patch_operation) - print("The response of LifecycleStatesApi->update_lifecycle_states:\n") - pprint(results) - except Exception as e: - print("Exception when calling LifecycleStatesApi->update_lifecycle_states: %s\n" % e) + identity_profile_id = '2b838de9-db9b-abcf-e646-d4f274ad4238' # str | Identity profile ID. # str | Identity profile ID. + lifecycle_state_id = 'ef38f94347e94562b5bb8424a56397d8' # str | Lifecycle state ID. # str | Lifecycle state ID. + json_patch_operation = '''[{op=replace, path=/description, value=Updated description!}, {op=replace, path=/accessProfileIds, value=[2c918087742bab150174407a80f3125e, 2c918087742bab150174407a80f3124f]}, {op=replace, path=/accountActions, value=[{action=ENABLE, sourceIds=[2c9180846a2f82fb016a481c1b1560c5, 2c9180846a2f82fb016a481c1b1560cc]}, {action=DISABLE, sourceIds=[2c91808869a0c9980169a207258513fb]}]}, {op=replace, path=/emailNotificationOption, value={notifyManagers=true, notifyAllAdmins=false, notifySpecificUsers=false, emailAddressList=[]}}]''' # List[JsonPatchOperation] | A list of lifecycle state update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields can be updated: * enabled * description * accountActions * accessProfileIds * emailNotificationOption + try: + # Update Lifecycle State + new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) + results = LifecycleStatesApi(api_client).update_lifecycle_states(identity_profile_id=identity_profile_id, lifecycle_state_id=lifecycle_state_id, json_patch_operation=new_json_patch_operation) + # Below is a request that includes all optional parameters + # results = LifecycleStatesApi(api_client).update_lifecycle_states(identity_profile_id, lifecycle_state_id, new_json_patch_operation) + print("The response of LifecycleStatesApi->update_lifecycle_states:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling LifecycleStatesApi->update_lifecycle_states: %s\n" % e) - path: /machine-accounts/{id} method: GET xCodeSample: @@ -10169,25 +9854,24 @@ from sailpoint.v2024.api.machine_accounts_api import MachineAccountsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.machine_account import MachineAccount - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | Machine Account ID. # str | Machine Account ID. - 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: - # Machine Account Details - - results = MachineAccountsApi(api_client).get_machine_account(id=id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = MachineAccountsApi(api_client).get_machine_account(id, x_sail_point_experimental) - print("The response of MachineAccountsApi->get_machine_account:\n") - pprint(results) - except Exception as e: - print("Exception when calling MachineAccountsApi->get_machine_account: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | Machine Account ID. # str | Machine Account ID. + 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: + # Machine Account Details + + results = MachineAccountsApi(api_client).get_machine_account(id=id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = MachineAccountsApi(api_client).get_machine_account(id, x_sail_point_experimental) + print("The response of MachineAccountsApi->get_machine_account:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling MachineAccountsApi->get_machine_account: %s\n" % e) - path: /machine-accounts method: GET xCodeSample: @@ -10197,29 +9881,28 @@ from sailpoint.v2024.api.machine_accounts_api import MachineAccountsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.machine_account import MachineAccount - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (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 = 'identityId eq \"2c9180858082150f0180893dbaf44201\"' # 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* **nativeIdentity**: *eq, in, sw* **machineIdentity**: *eq, in, sw* **description**: *eq, in, sw* **ownerIdentity**: *eq, in, sw* **ownerIdentityId**: *eq, in, sw* **entitlements**: *eq* **accessType**: *eq, in, sw* **subType**: *eq, in, sw* **environment**: *eq, in, sw* **classificationMethod**: *eq, in, sw* **manuallyCorrelated**: *eq* **manuallyEdited**: *eq* **identity**: *eq, in, sw* **source**: *eq, in* **hasEntitlement**: *eq* **locked**: *eq* **connectorAttributes**: *eq* (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* **nativeIdentity**: *eq, in, sw* **machineIdentity**: *eq, in, sw* **description**: *eq, in, sw* **ownerIdentity**: *eq, in, sw* **ownerIdentityId**: *eq, in, sw* **entitlements**: *eq* **accessType**: *eq, in, sw* **subType**: *eq, in, sw* **environment**: *eq, in, sw* **classificationMethod**: *eq, in, sw* **manuallyCorrelated**: *eq* **manuallyEdited**: *eq* **identity**: *eq, in, sw* **source**: *eq, in* **hasEntitlement**: *eq* **locked**: *eq* **connectorAttributes**: *eq* (optional) - sorters = 'id,name' # 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: **id, name, created, modified, machineIdentity, identity.id, nativeIdentity, uuid, manuallyCorrelated, connectorAttributes, entitlements, identity.name, identity.type, source.id, source.name, source.type** (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: **id, name, created, modified, machineIdentity, identity.id, nativeIdentity, uuid, manuallyCorrelated, connectorAttributes, entitlements, identity.name, identity.type, source.id, source.name, source.type** (optional) - try: - # Machine Accounts List - - results = MachineAccountsApi(api_client).list_machine_accounts(x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = MachineAccountsApi(api_client).list_machine_accounts(x_sail_point_experimental, limit, offset, count, filters, sorters) - print("The response of MachineAccountsApi->list_machine_accounts:\n") - pprint(results) - except Exception as e: - print("Exception when calling MachineAccountsApi->list_machine_accounts: %s\n" % e) + 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') + 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 = 'identityId eq \"2c9180858082150f0180893dbaf44201\"' # 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* **nativeIdentity**: *eq, in, sw* **machineIdentity**: *eq, in, sw* **description**: *eq, in, sw* **ownerIdentity**: *eq, in, sw* **ownerIdentityId**: *eq, in, sw* **entitlements**: *eq* **accessType**: *eq, in, sw* **subType**: *eq, in, sw* **environment**: *eq, in, sw* **classificationMethod**: *eq, in, sw* **manuallyCorrelated**: *eq* **manuallyEdited**: *eq* **identity**: *eq, in, sw* **source**: *eq, in* **hasEntitlement**: *eq* **locked**: *eq* **connectorAttributes**: *eq* (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* **nativeIdentity**: *eq, in, sw* **machineIdentity**: *eq, in, sw* **description**: *eq, in, sw* **ownerIdentity**: *eq, in, sw* **ownerIdentityId**: *eq, in, sw* **entitlements**: *eq* **accessType**: *eq, in, sw* **subType**: *eq, in, sw* **environment**: *eq, in, sw* **classificationMethod**: *eq, in, sw* **manuallyCorrelated**: *eq* **manuallyEdited**: *eq* **identity**: *eq, in, sw* **source**: *eq, in* **hasEntitlement**: *eq* **locked**: *eq* **connectorAttributes**: *eq* (optional) + sorters = 'id,name' # 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: **id, name, created, modified, machineIdentity, identity.id, nativeIdentity, uuid, manuallyCorrelated, connectorAttributes, entitlements, identity.name, identity.type, source.id, source.name, source.type** (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: **id, name, created, modified, machineIdentity, identity.id, nativeIdentity, uuid, manuallyCorrelated, connectorAttributes, entitlements, identity.name, identity.type, source.id, source.name, source.type** (optional) + try: + # Machine Accounts List + + results = MachineAccountsApi(api_client).list_machine_accounts(x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = MachineAccountsApi(api_client).list_machine_accounts(x_sail_point_experimental, limit, offset, count, filters, sorters) + print("The response of MachineAccountsApi->list_machine_accounts:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling MachineAccountsApi->list_machine_accounts: %s\n" % e) - path: /machine-accounts/{id} method: PATCH xCodeSample: @@ -10229,26 +9912,25 @@ from sailpoint.v2024.api.machine_accounts_api import MachineAccountsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.machine_account import MachineAccount - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | Machine Account ID. # str | Machine Account ID. - 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 = '''{Add machine identity attribute={value=[{op=add, path=/environment, value=test}]}, Replace machine identity attribute={value=[{op=replace, path=/environment, value=test}]}, Remove machine identity attribute={value=[{op=remove, path=/environment}]}}''' # List[object] | A JSON of updated values [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * description * ownerIdentity * subType * accessType * environment * attributes * classificationMethod * manuallyEdited * nativeIdentity * uuid * source * manuallyCorrelated * enabled * locked * hasEntitlements * connectorAttributes - try: - # Update a Machine Account - new_request_body = RequestBody.from_json(request_body) - results = MachineAccountsApi(api_client).update_machine_account(id=id, x_sail_point_experimental=x_sail_point_experimental, request_body=new_request_body) - # Below is a request that includes all optional parameters - # results = MachineAccountsApi(api_client).update_machine_account(id, x_sail_point_experimental, new_request_body) - print("The response of MachineAccountsApi->update_machine_account:\n") - pprint(results) - except Exception as e: - print("Exception when calling MachineAccountsApi->update_machine_account: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | Machine Account ID. # str | Machine Account ID. + 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 = '''{Add machine identity attribute={value=[{op=add, path=/environment, value=test}]}, Replace machine identity attribute={value=[{op=replace, path=/environment, value=test}]}, Remove machine identity attribute={value=[{op=remove, path=/environment}]}}''' # List[object] | A JSON of updated values [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * description * ownerIdentity * subType * accessType * environment * attributes * classificationMethod * manuallyEdited * nativeIdentity * uuid * source * manuallyCorrelated * enabled * locked * hasEntitlements * connectorAttributes + try: + # Update a Machine Account + new_request_body = RequestBody.from_json(request_body) + results = MachineAccountsApi(api_client).update_machine_account(id=id, x_sail_point_experimental=x_sail_point_experimental, request_body=new_request_body) + # Below is a request that includes all optional parameters + # results = MachineAccountsApi(api_client).update_machine_account(id, x_sail_point_experimental, new_request_body) + print("The response of MachineAccountsApi->update_machine_account:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling MachineAccountsApi->update_machine_account: %s\n" % e) - path: /machine-identities method: POST xCodeSample: @@ -10258,15 +9940,14 @@ from sailpoint.v2024.api.machine_identities_api import MachineIdentitiesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.machine_identity import MachineIdentity - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - machine_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') + machine_identity = '''{ "created" : "2015-05-28T14:07:17Z", "businessApplication" : "ADService", "name" : "aName", @@ -10276,16 +9957,16 @@ "id" : "id12345", "manuallyEdited" : true }''' # MachineIdentity | - try: - # Create Machine Identities - new_machine_identity = MachineIdentity.from_json(machine_identity) - results = MachineIdentitiesApi(api_client).create_machine_identity(x_sail_point_experimental=x_sail_point_experimental, machine_identity=new_machine_identity) - # Below is a request that includes all optional parameters - # results = MachineIdentitiesApi(api_client).create_machine_identity(x_sail_point_experimental, new_machine_identity) - print("The response of MachineIdentitiesApi->create_machine_identity:\n") - pprint(results) - except Exception as e: - print("Exception when calling MachineIdentitiesApi->create_machine_identity: %s\n" % e) + try: + # Create Machine Identities + new_machine_identity = MachineIdentity.from_json(machine_identity) + results = MachineIdentitiesApi(api_client).create_machine_identity(x_sail_point_experimental=x_sail_point_experimental, machine_identity=new_machine_identity) + # Below is a request that includes all optional parameters + # results = MachineIdentitiesApi(api_client).create_machine_identity(x_sail_point_experimental, new_machine_identity) + print("The response of MachineIdentitiesApi->create_machine_identity:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling MachineIdentitiesApi->create_machine_identity: %s\n" % e) - path: /machine-identities/{id} method: DELETE xCodeSample: @@ -10294,23 +9975,22 @@ source: | from sailpoint.v2024.api.machine_identities_api import MachineIdentitiesApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | Machine Identity ID # str | Machine Identity ID - 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: - # Delete machine identity - - MachineIdentitiesApi(api_client).delete_machine_identity(id=id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # MachineIdentitiesApi(api_client).delete_machine_identity(id, x_sail_point_experimental) - except Exception as e: - print("Exception when calling MachineIdentitiesApi->delete_machine_identity: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | Machine Identity ID # str | Machine Identity ID + 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: + # Delete machine identity + + MachineIdentitiesApi(api_client).delete_machine_identity(id=id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # MachineIdentitiesApi(api_client).delete_machine_identity(id, x_sail_point_experimental) + except Exception as e: + print("Exception when calling MachineIdentitiesApi->delete_machine_identity: %s\n" % e) - path: /machine-identities/{id} method: GET xCodeSample: @@ -10320,25 +10000,24 @@ from sailpoint.v2024.api.machine_identities_api import MachineIdentitiesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.machine_identity import MachineIdentity - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | Machine Identity ID # str | Machine Identity ID - 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: - # Machine Identity Details - - results = MachineIdentitiesApi(api_client).get_machine_identity(id=id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = MachineIdentitiesApi(api_client).get_machine_identity(id, x_sail_point_experimental) - print("The response of MachineIdentitiesApi->get_machine_identity:\n") - pprint(results) - except Exception as e: - print("Exception when calling MachineIdentitiesApi->get_machine_identity: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | Machine Identity ID # str | Machine Identity ID + 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: + # Machine Identity Details + + results = MachineIdentitiesApi(api_client).get_machine_identity(id=id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = MachineIdentitiesApi(api_client).get_machine_identity(id, x_sail_point_experimental) + print("The response of MachineIdentitiesApi->get_machine_identity:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling MachineIdentitiesApi->get_machine_identity: %s\n" % e) - path: /machine-identities method: GET xCodeSample: @@ -10348,29 +10027,28 @@ from sailpoint.v2024.api.machine_identities_api import MachineIdentitiesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.machine_identity import MachineIdentity - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - filters = 'identityId eq \"2c9180858082150f0180893dbaf44201\"' # 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* **displayName**: *eq, in, sw* **cisIdentityId**: *eq, in, sw* **description**: *eq, in, sw* **businessApplication**: *eq, in, sw* **attributes**: *eq* **manuallyEdited**: *eq* (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* **displayName**: *eq, in, sw* **cisIdentityId**: *eq, in, sw* **description**: *eq, in, sw* **businessApplication**: *eq, in, sw* **attributes**: *eq* **manuallyEdited**: *eq* (optional) - sorters = 'businessApplication' # 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: **businessApplication, 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: **businessApplication, 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 [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) - 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) - try: - # List Machine Identities - - results = MachineIdentitiesApi(api_client).list_machine_identities(x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = MachineIdentitiesApi(api_client).list_machine_identities(x_sail_point_experimental, filters, sorters, count, limit, offset) - print("The response of MachineIdentitiesApi->list_machine_identities:\n") - pprint(results) - except Exception as e: - print("Exception when calling MachineIdentitiesApi->list_machine_identities: %s\n" % e) + 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') + filters = 'identityId eq \"2c9180858082150f0180893dbaf44201\"' # 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* **displayName**: *eq, in, sw* **cisIdentityId**: *eq, in, sw* **description**: *eq, in, sw* **businessApplication**: *eq, in, sw* **attributes**: *eq* **manuallyEdited**: *eq* (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* **displayName**: *eq, in, sw* **cisIdentityId**: *eq, in, sw* **description**: *eq, in, sw* **businessApplication**: *eq, in, sw* **attributes**: *eq* **manuallyEdited**: *eq* (optional) + sorters = 'businessApplication' # 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: **businessApplication, 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: **businessApplication, 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 [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) + 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) + try: + # List Machine Identities + + results = MachineIdentitiesApi(api_client).list_machine_identities(x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = MachineIdentitiesApi(api_client).list_machine_identities(x_sail_point_experimental, filters, sorters, count, limit, offset) + print("The response of MachineIdentitiesApi->list_machine_identities:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling MachineIdentitiesApi->list_machine_identities: %s\n" % e) - path: /machine-identities/{id} method: PATCH xCodeSample: @@ -10380,26 +10058,25 @@ from sailpoint.v2024.api.machine_identities_api import MachineIdentitiesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.machine_identity import MachineIdentity - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | Machine Identity ID. # str | Machine Identity ID. - 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 = '''{Add machine identity attribute={value=[{op=add, path=/attributes/securityRisk, value=medium}]}, Replace machine identity attribute={value=[{op=replace, path=/attributes/securityRisk, value=medium}]}, Remove machine identity attribute={value=[{op=remove, path=/attributes/securityRisk}]}}''' # List[object] | A JSON of updated values [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. - try: - # Update a Machine Identity - new_request_body = RequestBody.from_json(request_body) - results = MachineIdentitiesApi(api_client).update_machine_identity(id=id, x_sail_point_experimental=x_sail_point_experimental, request_body=new_request_body) - # Below is a request that includes all optional parameters - # results = MachineIdentitiesApi(api_client).update_machine_identity(id, x_sail_point_experimental, new_request_body) - print("The response of MachineIdentitiesApi->update_machine_identity:\n") - pprint(results) - except Exception as e: - print("Exception when calling MachineIdentitiesApi->update_machine_identity: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | Machine Identity ID. # str | Machine Identity ID. + 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 = '''{Add machine identity attribute={value=[{op=add, path=/attributes/securityRisk, value=medium}]}, Replace machine identity attribute={value=[{op=replace, path=/attributes/securityRisk, value=medium}]}, Remove machine identity attribute={value=[{op=remove, path=/attributes/securityRisk}]}}''' # List[object] | A JSON of updated values [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. + try: + # Update a Machine Identity + new_request_body = RequestBody.from_json(request_body) + results = MachineIdentitiesApi(api_client).update_machine_identity(id=id, x_sail_point_experimental=x_sail_point_experimental, request_body=new_request_body) + # Below is a request that includes all optional parameters + # results = MachineIdentitiesApi(api_client).update_machine_identity(id, x_sail_point_experimental, new_request_body) + print("The response of MachineIdentitiesApi->update_machine_identity:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling MachineIdentitiesApi->update_machine_identity: %s\n" % e) - path: /managed-clients method: POST xCodeSample: @@ -10410,28 +10087,27 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.managed_client import ManagedClient from sailpoint.v2024.models.managed_client_request import ManagedClientRequest - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - managed_client_request = '''{ + managed_client_request = '''{ "name" : "aName", "description" : "A short description of the ManagedClient", "clusterId" : "aClusterId", "type" : "VA" }''' # ManagedClientRequest | - try: - # Create Managed Client - new_managed_client_request = ManagedClientRequest.from_json(managed_client_request) - results = ManagedClientsApi(api_client).create_managed_client(managed_client_request=new_managed_client_request) - # Below is a request that includes all optional parameters - # results = ManagedClientsApi(api_client).create_managed_client(new_managed_client_request) - print("The response of ManagedClientsApi->create_managed_client:\n") - pprint(results) - except Exception as e: - print("Exception when calling ManagedClientsApi->create_managed_client: %s\n" % e) + try: + # Create Managed Client + new_managed_client_request = ManagedClientRequest.from_json(managed_client_request) + results = ManagedClientsApi(api_client).create_managed_client(managed_client_request=new_managed_client_request) + # Below is a request that includes all optional parameters + # results = ManagedClientsApi(api_client).create_managed_client(new_managed_client_request) + print("The response of ManagedClientsApi->create_managed_client:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ManagedClientsApi->create_managed_client: %s\n" % e) - path: /managed-clients/{id} method: DELETE xCodeSample: @@ -10440,21 +10116,20 @@ source: | from sailpoint.v2024.api.managed_clients_api import ManagedClientsApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '4440278c-0ce2-41ee-a0a9-f5cfd5e8d3b7' # str | Managed client ID. # str | Managed client ID. - try: - # Delete Managed Client - - ManagedClientsApi(api_client).delete_managed_client(id=id) - # Below is a request that includes all optional parameters - # ManagedClientsApi(api_client).delete_managed_client(id) - except Exception as e: - print("Exception when calling ManagedClientsApi->delete_managed_client: %s\n" % e) + id = '4440278c-0ce2-41ee-a0a9-f5cfd5e8d3b7' # str | Managed client ID. # str | Managed client ID. + try: + # Delete Managed Client + + ManagedClientsApi(api_client).delete_managed_client(id=id) + # Below is a request that includes all optional parameters + # ManagedClientsApi(api_client).delete_managed_client(id) + except Exception as e: + print("Exception when calling ManagedClientsApi->delete_managed_client: %s\n" % e) - path: /managed-clients/{id} method: GET xCodeSample: @@ -10464,23 +10139,22 @@ from sailpoint.v2024.api.managed_clients_api import ManagedClientsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.managed_client import ManagedClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '4440278c-0ce2-41ee-a0a9-f5cfd5e8d3b7' # str | Managed client ID. # str | Managed client ID. - try: - # Get Managed Client - - results = ManagedClientsApi(api_client).get_managed_client(id=id) - # Below is a request that includes all optional parameters - # results = ManagedClientsApi(api_client).get_managed_client(id) - print("The response of ManagedClientsApi->get_managed_client:\n") - pprint(results) - except Exception as e: - print("Exception when calling ManagedClientsApi->get_managed_client: %s\n" % e) + id = '4440278c-0ce2-41ee-a0a9-f5cfd5e8d3b7' # str | Managed client ID. # str | Managed client ID. + try: + # Get Managed Client + + results = ManagedClientsApi(api_client).get_managed_client(id=id) + # Below is a request that includes all optional parameters + # results = ManagedClientsApi(api_client).get_managed_client(id) + print("The response of ManagedClientsApi->get_managed_client:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ManagedClientsApi->get_managed_client: %s\n" % e) - path: /managed-clients/{id}/status method: GET xCodeSample: @@ -10491,24 +10165,23 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.managed_client_status import ManagedClientStatus from sailpoint.v2024.models.managed_client_type import ManagedClientType - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'aClientId' # str | Managed client ID to get status for. # str | Managed client ID to get status for. - type = sailpoint.v2024.ManagedClientType() # ManagedClientType | Managed client type to get status for. # ManagedClientType | Managed client type to get status for. - try: - # Get Managed Client Status - - results = ManagedClientsApi(api_client).get_managed_client_status(id=id, type=type) - # Below is a request that includes all optional parameters - # results = ManagedClientsApi(api_client).get_managed_client_status(id, type) - print("The response of ManagedClientsApi->get_managed_client_status:\n") - pprint(results) - except Exception as e: - print("Exception when calling ManagedClientsApi->get_managed_client_status: %s\n" % e) + id = 'aClientId' # str | Managed client ID to get status for. # str | Managed client ID to get status for. + type = sailpoint.v2024.ManagedClientType() # ManagedClientType | Managed client type to get status for. # ManagedClientType | Managed client type to get status for. + try: + # Get Managed Client Status + + results = ManagedClientsApi(api_client).get_managed_client_status(id=id, type=type) + # Below is a request that includes all optional parameters + # results = ManagedClientsApi(api_client).get_managed_client_status(id, type) + print("The response of ManagedClientsApi->get_managed_client_status:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ManagedClientsApi->get_managed_client_status: %s\n" % e) - path: /managed-clients method: GET xCodeSample: @@ -10518,26 +10191,25 @@ from sailpoint.v2024.api.managed_clients_api import ManagedClientsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.managed_client import ManagedClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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) - 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) - 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 \"client name\"' # 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* **name**: *eq* **clientId**: *eq* **clusterId**: *eq* (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* **name**: *eq* **clientId**: *eq* **clusterId**: *eq* (optional) - try: - # Get Managed Clients - - results = ManagedClientsApi(api_client).get_managed_clients() - # Below is a request that includes all optional parameters - # results = ManagedClientsApi(api_client).get_managed_clients(offset, limit, count, filters) - print("The response of ManagedClientsApi->get_managed_clients:\n") - pprint(results) - except Exception as e: - print("Exception when calling ManagedClientsApi->get_managed_clients: %s\n" % e) + 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) + 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) + 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 \"client name\"' # 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* **name**: *eq* **clientId**: *eq* **clusterId**: *eq* (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* **name**: *eq* **clientId**: *eq* **clusterId**: *eq* (optional) + try: + # Get Managed Clients + + results = ManagedClientsApi(api_client).get_managed_clients() + # Below is a request that includes all optional parameters + # results = ManagedClientsApi(api_client).get_managed_clients(offset, limit, count, filters) + print("The response of ManagedClientsApi->get_managed_clients:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ManagedClientsApi->get_managed_clients: %s\n" % e) - path: /managed-clients/{id} method: PATCH xCodeSample: @@ -10548,24 +10220,23 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.json_patch_operation import JsonPatchOperation from sailpoint.v2024.models.managed_client import ManagedClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '4440278c-0ce2-41ee-a0a9-f5cfd5e8d3b7' # str | Managed client ID. # str | Managed client ID. - json_patch_operation = '''[sailpoint.v2024.JsonPatchOperation()]''' # List[JsonPatchOperation] | JSONPatch payload used to update the object. - try: - # Update Managed Client - new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) - results = ManagedClientsApi(api_client).update_managed_client(id=id, json_patch_operation=new_json_patch_operation) - # Below is a request that includes all optional parameters - # results = ManagedClientsApi(api_client).update_managed_client(id, new_json_patch_operation) - print("The response of ManagedClientsApi->update_managed_client:\n") - pprint(results) - except Exception as e: - print("Exception when calling ManagedClientsApi->update_managed_client: %s\n" % e) + id = '4440278c-0ce2-41ee-a0a9-f5cfd5e8d3b7' # str | Managed client ID. # str | Managed client ID. + json_patch_operation = '''[sailpoint.v2024.JsonPatchOperation()]''' # List[JsonPatchOperation] | JSONPatch payload used to update the object. + try: + # Update Managed Client + new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) + results = ManagedClientsApi(api_client).update_managed_client(id=id, json_patch_operation=new_json_patch_operation) + # Below is a request that includes all optional parameters + # results = ManagedClientsApi(api_client).update_managed_client(id, new_json_patch_operation) + print("The response of ManagedClientsApi->update_managed_client:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ManagedClientsApi->update_managed_client: %s\n" % e) - path: /managed-clusters method: POST xCodeSample: @@ -10576,13 +10247,12 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.managed_cluster import ManagedCluster from sailpoint.v2024.models.managed_cluster_request import ManagedClusterRequest - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - managed_cluster_request = '''{ + managed_cluster_request = '''{ "configuration" : { "clusterExternalId" : "externalId", "ccgVersion" : "77.0.0" @@ -10591,16 +10261,16 @@ "description" : "A short description of the managed cluster.", "type" : "idn" }''' # ManagedClusterRequest | - try: - # Create Create Managed Cluster - new_managed_cluster_request = ManagedClusterRequest.from_json(managed_cluster_request) - results = ManagedClustersApi(api_client).create_managed_cluster(managed_cluster_request=new_managed_cluster_request) - # Below is a request that includes all optional parameters - # results = ManagedClustersApi(api_client).create_managed_cluster(new_managed_cluster_request) - print("The response of ManagedClustersApi->create_managed_cluster:\n") - pprint(results) - except Exception as e: - print("Exception when calling ManagedClustersApi->create_managed_cluster: %s\n" % e) + try: + # Create Create Managed Cluster + new_managed_cluster_request = ManagedClusterRequest.from_json(managed_cluster_request) + results = ManagedClustersApi(api_client).create_managed_cluster(managed_cluster_request=new_managed_cluster_request) + # Below is a request that includes all optional parameters + # results = ManagedClustersApi(api_client).create_managed_cluster(new_managed_cluster_request) + print("The response of ManagedClustersApi->create_managed_cluster:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ManagedClustersApi->create_managed_cluster: %s\n" % e) - path: /managed-clusters/{id} method: DELETE xCodeSample: @@ -10609,22 +10279,21 @@ source: | from sailpoint.v2024.api.managed_clusters_api import ManagedClustersApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c9180897de347a2017de8859e8c5039' # str | Managed cluster ID. # str | Managed cluster ID. - remove_clients = False # bool | Flag to determine the need to delete a cluster with clients. (optional) (default to False) # bool | Flag to determine the need to delete a cluster with clients. (optional) (default to False) - try: - # Delete Managed Cluster - - ManagedClustersApi(api_client).delete_managed_cluster(id=id) - # Below is a request that includes all optional parameters - # ManagedClustersApi(api_client).delete_managed_cluster(id, remove_clients) - except Exception as e: - print("Exception when calling ManagedClustersApi->delete_managed_cluster: %s\n" % e) + id = '2c9180897de347a2017de8859e8c5039' # str | Managed cluster ID. # str | Managed cluster ID. + remove_clients = False # bool | Flag to determine the need to delete a cluster with clients. (optional) (default to False) # bool | Flag to determine the need to delete a cluster with clients. (optional) (default to False) + try: + # Delete Managed Cluster + + ManagedClustersApi(api_client).delete_managed_cluster(id=id) + # Below is a request that includes all optional parameters + # ManagedClustersApi(api_client).delete_managed_cluster(id, remove_clients) + except Exception as e: + print("Exception when calling ManagedClustersApi->delete_managed_cluster: %s\n" % e) - path: /managed-clusters/{id}/log-config method: GET xCodeSample: @@ -10634,23 +10303,22 @@ from sailpoint.v2024.api.managed_clusters_api import ManagedClustersApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.client_log_configuration import ClientLogConfiguration - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2b838de9-db9b-abcf-e646-d4f274ad4238' # str | ID of managed cluster to get log configuration for. # str | ID of managed cluster to get log configuration for. - try: - # Get Managed Cluster Log Configuration - - results = ManagedClustersApi(api_client).get_client_log_configuration(id=id) - # Below is a request that includes all optional parameters - # results = ManagedClustersApi(api_client).get_client_log_configuration(id) - print("The response of ManagedClustersApi->get_client_log_configuration:\n") - pprint(results) - except Exception as e: - print("Exception when calling ManagedClustersApi->get_client_log_configuration: %s\n" % e) + id = '2b838de9-db9b-abcf-e646-d4f274ad4238' # str | ID of managed cluster to get log configuration for. # str | ID of managed cluster to get log configuration for. + try: + # Get Managed Cluster Log Configuration + + results = ManagedClustersApi(api_client).get_client_log_configuration(id=id) + # Below is a request that includes all optional parameters + # results = ManagedClustersApi(api_client).get_client_log_configuration(id) + print("The response of ManagedClustersApi->get_client_log_configuration:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ManagedClustersApi->get_client_log_configuration: %s\n" % e) - path: /managed-clusters/{id} method: GET xCodeSample: @@ -10660,23 +10328,22 @@ from sailpoint.v2024.api.managed_clusters_api import ManagedClustersApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.managed_cluster import ManagedCluster - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c9180897de347a2017de8859e8c5039' # str | Managed cluster ID. # str | Managed cluster ID. - try: - # Get Managed Cluster - - results = ManagedClustersApi(api_client).get_managed_cluster(id=id) - # Below is a request that includes all optional parameters - # results = ManagedClustersApi(api_client).get_managed_cluster(id) - print("The response of ManagedClustersApi->get_managed_cluster:\n") - pprint(results) - except Exception as e: - print("Exception when calling ManagedClustersApi->get_managed_cluster: %s\n" % e) + id = '2c9180897de347a2017de8859e8c5039' # str | Managed cluster ID. # str | Managed cluster ID. + try: + # Get Managed Cluster + + results = ManagedClustersApi(api_client).get_managed_cluster(id=id) + # Below is a request that includes all optional parameters + # results = ManagedClustersApi(api_client).get_managed_cluster(id) + print("The response of ManagedClustersApi->get_managed_cluster:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ManagedClustersApi->get_managed_cluster: %s\n" % e) - path: /managed-clusters method: GET xCodeSample: @@ -10686,26 +10353,25 @@ from sailpoint.v2024.api.managed_clusters_api import ManagedClustersApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.managed_cluster import ManagedCluster - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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) - 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) - 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 = 'operational eq \"operation\"' # 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: **operational**: *eq* (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: **operational**: *eq* (optional) - try: - # Get Managed Clusters - - results = ManagedClustersApi(api_client).get_managed_clusters() - # Below is a request that includes all optional parameters - # results = ManagedClustersApi(api_client).get_managed_clusters(offset, limit, count, filters) - print("The response of ManagedClustersApi->get_managed_clusters:\n") - pprint(results) - except Exception as e: - print("Exception when calling ManagedClustersApi->get_managed_clusters: %s\n" % e) + 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) + 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) + 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 = 'operational eq \"operation\"' # 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: **operational**: *eq* (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: **operational**: *eq* (optional) + try: + # Get Managed Clusters + + results = ManagedClustersApi(api_client).get_managed_clusters() + # Below is a request that includes all optional parameters + # results = ManagedClustersApi(api_client).get_managed_clusters(offset, limit, count, filters) + print("The response of ManagedClustersApi->get_managed_clusters:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ManagedClustersApi->get_managed_clusters: %s\n" % e) - path: /managed-clusters/{id}/log-config method: PUT xCodeSample: @@ -10716,24 +10382,23 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.client_log_configuration import ClientLogConfiguration from sailpoint.v2024.models.put_client_log_configuration_request import PutClientLogConfigurationRequest - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2b838de9-db9b-abcf-e646-d4f274ad4238' # str | ID of the managed cluster to update the log configuration for. # str | ID of the managed cluster to update the log configuration for. - put_client_log_configuration_request = '''sailpoint.v2024.PutClientLogConfigurationRequest()''' # PutClientLogConfigurationRequest | Client log configuration for the given managed cluster. - try: - # Update Managed Cluster Log Configuration - new_put_client_log_configuration_request = PutClientLogConfigurationRequest.from_json(put_client_log_configuration_request) - results = ManagedClustersApi(api_client).put_client_log_configuration(id=id, put_client_log_configuration_request=new_put_client_log_configuration_request) - # Below is a request that includes all optional parameters - # results = ManagedClustersApi(api_client).put_client_log_configuration(id, new_put_client_log_configuration_request) - print("The response of ManagedClustersApi->put_client_log_configuration:\n") - pprint(results) - except Exception as e: - print("Exception when calling ManagedClustersApi->put_client_log_configuration: %s\n" % e) + id = '2b838de9-db9b-abcf-e646-d4f274ad4238' # str | ID of the managed cluster to update the log configuration for. # str | ID of the managed cluster to update the log configuration for. + put_client_log_configuration_request = '''sailpoint.v2024.PutClientLogConfigurationRequest()''' # PutClientLogConfigurationRequest | Client log configuration for the given managed cluster. + try: + # Update Managed Cluster Log Configuration + new_put_client_log_configuration_request = PutClientLogConfigurationRequest.from_json(put_client_log_configuration_request) + results = ManagedClustersApi(api_client).put_client_log_configuration(id=id, put_client_log_configuration_request=new_put_client_log_configuration_request) + # Below is a request that includes all optional parameters + # results = ManagedClustersApi(api_client).put_client_log_configuration(id, new_put_client_log_configuration_request) + print("The response of ManagedClustersApi->put_client_log_configuration:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ManagedClustersApi->put_client_log_configuration: %s\n" % e) - path: /managed-clusters/{id}/manualUpgrade method: POST xCodeSample: @@ -10743,23 +10408,22 @@ from sailpoint.v2024.api.managed_clusters_api import ManagedClustersApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.cluster_manual_upgrade import ClusterManualUpgrade - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2b838de9-db9b-abcf-e646-d4f274ad4238' # str | ID of managed cluster to trigger manual upgrade. # str | ID of managed cluster to trigger manual upgrade. - try: - # Trigger Manual Upgrade for Managed Cluster - - results = ManagedClustersApi(api_client).update(id=id) - # Below is a request that includes all optional parameters - # results = ManagedClustersApi(api_client).update(id) - print("The response of ManagedClustersApi->update:\n") - pprint(results) - except Exception as e: - print("Exception when calling ManagedClustersApi->update: %s\n" % e) + id = '2b838de9-db9b-abcf-e646-d4f274ad4238' # str | ID of managed cluster to trigger manual upgrade. # str | ID of managed cluster to trigger manual upgrade. + try: + # Trigger Manual Upgrade for Managed Cluster + + results = ManagedClustersApi(api_client).update(id=id) + # Below is a request that includes all optional parameters + # results = ManagedClustersApi(api_client).update(id) + print("The response of ManagedClustersApi->update:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ManagedClustersApi->update: %s\n" % e) - path: /managed-clusters/{id} method: PATCH xCodeSample: @@ -10770,24 +10434,23 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.json_patch_operation import JsonPatchOperation from sailpoint.v2024.models.managed_cluster import ManagedCluster - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c9180897de347a2017de8859e8c5039' # str | Managed cluster ID. # str | Managed cluster ID. - json_patch_operation = '''[sailpoint.v2024.JsonPatchOperation()]''' # List[JsonPatchOperation] | JSONPatch payload used to update the object. - try: - # Update Managed Cluster - new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) - results = ManagedClustersApi(api_client).update_managed_cluster(id=id, json_patch_operation=new_json_patch_operation) - # Below is a request that includes all optional parameters - # results = ManagedClustersApi(api_client).update_managed_cluster(id, new_json_patch_operation) - print("The response of ManagedClustersApi->update_managed_cluster:\n") - pprint(results) - except Exception as e: - print("Exception when calling ManagedClustersApi->update_managed_cluster: %s\n" % e) + id = '2c9180897de347a2017de8859e8c5039' # str | Managed cluster ID. # str | Managed cluster ID. + json_patch_operation = '''[sailpoint.v2024.JsonPatchOperation()]''' # List[JsonPatchOperation] | JSONPatch payload used to update the object. + try: + # Update Managed Cluster + new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) + results = ManagedClustersApi(api_client).update_managed_cluster(id=id, json_patch_operation=new_json_patch_operation) + # Below is a request that includes all optional parameters + # results = ManagedClustersApi(api_client).update_managed_cluster(id, new_json_patch_operation) + print("The response of ManagedClustersApi->update_managed_cluster:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ManagedClustersApi->update_managed_cluster: %s\n" % e) - path: /mfa/duo-web/config method: GET xCodeSample: @@ -10797,22 +10460,21 @@ from sailpoint.v2024.api.mfa_configuration_api import MFAConfigurationApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.mfa_duo_config import MfaDuoConfig - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - try: - # Configuration of Duo MFA method - - results = MFAConfigurationApi(api_client).get_mfa_duo_config() - # Below is a request that includes all optional parameters - # results = MFAConfigurationApi(api_client).get_mfa_duo_config() - print("The response of MFAConfigurationApi->get_mfa_duo_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling MFAConfigurationApi->get_mfa_duo_config: %s\n" % e) + try: + # Configuration of Duo MFA method + + results = MFAConfigurationApi(api_client).get_mfa_duo_config() + # Below is a request that includes all optional parameters + # results = MFAConfigurationApi(api_client).get_mfa_duo_config() + print("The response of MFAConfigurationApi->get_mfa_duo_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling MFAConfigurationApi->get_mfa_duo_config: %s\n" % e) - path: /mfa/kba/config method: GET xCodeSample: @@ -10822,23 +10484,22 @@ from sailpoint.v2024.api.mfa_configuration_api import MFAConfigurationApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.kba_question import KbaQuestion - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - all_languages = allLanguages=true # bool | Indicator whether the question text should be returned in all configured languages * If true, the question text is returned in all languages that it is configured in. * If false, the question text is returned in the user locale if available, else for the default locale. * If not passed, it behaves the same way as passing this parameter as false (optional) # bool | Indicator whether the question text should be returned in all configured languages * If true, the question text is returned in all languages that it is configured in. * If false, the question text is returned in the user locale if available, else for the default locale. * If not passed, it behaves the same way as passing this parameter as false (optional) - try: - # Configuration of KBA MFA method - - results = MFAConfigurationApi(api_client).get_mfa_kba_config() - # Below is a request that includes all optional parameters - # results = MFAConfigurationApi(api_client).get_mfa_kba_config(all_languages) - print("The response of MFAConfigurationApi->get_mfa_kba_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling MFAConfigurationApi->get_mfa_kba_config: %s\n" % e) + all_languages = allLanguages=true # bool | Indicator whether the question text should be returned in all configured languages * If true, the question text is returned in all languages that it is configured in. * If false, the question text is returned in the user locale if available, else for the default locale. * If not passed, it behaves the same way as passing this parameter as false (optional) # bool | Indicator whether the question text should be returned in all configured languages * If true, the question text is returned in all languages that it is configured in. * If false, the question text is returned in the user locale if available, else for the default locale. * If not passed, it behaves the same way as passing this parameter as false (optional) + try: + # Configuration of KBA MFA method + + results = MFAConfigurationApi(api_client).get_mfa_kba_config() + # Below is a request that includes all optional parameters + # results = MFAConfigurationApi(api_client).get_mfa_kba_config(all_languages) + print("The response of MFAConfigurationApi->get_mfa_kba_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling MFAConfigurationApi->get_mfa_kba_config: %s\n" % e) - path: /mfa/okta-verify/config method: GET xCodeSample: @@ -10848,22 +10509,21 @@ from sailpoint.v2024.api.mfa_configuration_api import MFAConfigurationApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.mfa_okta_config import MfaOktaConfig - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - try: - # Configuration of Okta MFA method - - results = MFAConfigurationApi(api_client).get_mfa_okta_config() - # Below is a request that includes all optional parameters - # results = MFAConfigurationApi(api_client).get_mfa_okta_config() - print("The response of MFAConfigurationApi->get_mfa_okta_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling MFAConfigurationApi->get_mfa_okta_config: %s\n" % e) + try: + # Configuration of Okta MFA method + + results = MFAConfigurationApi(api_client).get_mfa_okta_config() + # Below is a request that includes all optional parameters + # results = MFAConfigurationApi(api_client).get_mfa_okta_config() + print("The response of MFAConfigurationApi->get_mfa_okta_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling MFAConfigurationApi->get_mfa_okta_config: %s\n" % e) - path: /mfa/duo-web/config method: PUT xCodeSample: @@ -10873,13 +10533,12 @@ from sailpoint.v2024.api.mfa_configuration_api import MFAConfigurationApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.mfa_duo_config import MfaDuoConfig - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - mfa_duo_config = '''{ + mfa_duo_config = '''{ "accessKey" : "qw123Y3QlA5UqocYpdU3rEkzrK2D497y", "host" : "example.com", "configProperties" : { @@ -10890,16 +10549,16 @@ "enabled" : true, "identityAttribute" : "email" }''' # MfaDuoConfig | - try: - # Set Duo MFA configuration - new_mfa_duo_config = MfaDuoConfig.from_json(mfa_duo_config) - results = MFAConfigurationApi(api_client).set_mfa_duo_config(mfa_duo_config=new_mfa_duo_config) - # Below is a request that includes all optional parameters - # results = MFAConfigurationApi(api_client).set_mfa_duo_config(new_mfa_duo_config) - print("The response of MFAConfigurationApi->set_mfa_duo_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling MFAConfigurationApi->set_mfa_duo_config: %s\n" % e) + try: + # Set Duo MFA configuration + new_mfa_duo_config = MfaDuoConfig.from_json(mfa_duo_config) + results = MFAConfigurationApi(api_client).set_mfa_duo_config(mfa_duo_config=new_mfa_duo_config) + # Below is a request that includes all optional parameters + # results = MFAConfigurationApi(api_client).set_mfa_duo_config(new_mfa_duo_config) + print("The response of MFAConfigurationApi->set_mfa_duo_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling MFAConfigurationApi->set_mfa_duo_config: %s\n" % e) - path: /mfa/okta-verify/config method: PUT xCodeSample: @@ -10909,29 +10568,28 @@ from sailpoint.v2024.api.mfa_configuration_api import MFAConfigurationApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.mfa_okta_config import MfaOktaConfig - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - mfa_okta_config = '''{ + mfa_okta_config = '''{ "accessKey" : "qw123Y3QlA5UqocYpdU3rEkzrK2D497y", "host" : "example.com", "mfaMethod" : "okta-verify", "enabled" : true, "identityAttribute" : "email" }''' # MfaOktaConfig | - try: - # Set Okta MFA configuration - new_mfa_okta_config = MfaOktaConfig.from_json(mfa_okta_config) - results = MFAConfigurationApi(api_client).set_mfa_okta_config(mfa_okta_config=new_mfa_okta_config) - # Below is a request that includes all optional parameters - # results = MFAConfigurationApi(api_client).set_mfa_okta_config(new_mfa_okta_config) - print("The response of MFAConfigurationApi->set_mfa_okta_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling MFAConfigurationApi->set_mfa_okta_config: %s\n" % e) + try: + # Set Okta MFA configuration + new_mfa_okta_config = MfaOktaConfig.from_json(mfa_okta_config) + results = MFAConfigurationApi(api_client).set_mfa_okta_config(mfa_okta_config=new_mfa_okta_config) + # Below is a request that includes all optional parameters + # results = MFAConfigurationApi(api_client).set_mfa_okta_config(new_mfa_okta_config) + print("The response of MFAConfigurationApi->set_mfa_okta_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling MFAConfigurationApi->set_mfa_okta_config: %s\n" % e) - path: /mfa/kba/config/answers method: POST xCodeSample: @@ -10942,23 +10600,22 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.kba_answer_request_item import KbaAnswerRequestItem from sailpoint.v2024.models.kba_answer_response_item import KbaAnswerResponseItem - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - kba_answer_request_item = '''[{id=173423, answer=822cd15d6c15aa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a0859a2fea34}, {id=c54fee53-2d63-4fc5-9259-3e93b9994135, answer=9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08}]''' # List[KbaAnswerRequestItem] | - try: - # Set MFA KBA configuration - new_kba_answer_request_item = KbaAnswerRequestItem.from_json(kba_answer_request_item) - results = MFAConfigurationApi(api_client).set_mfakba_config(kba_answer_request_item=new_kba_answer_request_item) - # Below is a request that includes all optional parameters - # results = MFAConfigurationApi(api_client).set_mfakba_config(new_kba_answer_request_item) - print("The response of MFAConfigurationApi->set_mfakba_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling MFAConfigurationApi->set_mfakba_config: %s\n" % e) + kba_answer_request_item = '''[{id=173423, answer=822cd15d6c15aa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a0859a2fea34}, {id=c54fee53-2d63-4fc5-9259-3e93b9994135, answer=9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08}]''' # List[KbaAnswerRequestItem] | + try: + # Set MFA KBA configuration + new_kba_answer_request_item = KbaAnswerRequestItem.from_json(kba_answer_request_item) + results = MFAConfigurationApi(api_client).set_mfakba_config(kba_answer_request_item=new_kba_answer_request_item) + # Below is a request that includes all optional parameters + # results = MFAConfigurationApi(api_client).set_mfakba_config(new_kba_answer_request_item) + print("The response of MFAConfigurationApi->set_mfakba_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling MFAConfigurationApi->set_mfakba_config: %s\n" % e) - path: /mfa/{method}/test method: GET xCodeSample: @@ -10968,23 +10625,22 @@ from sailpoint.v2024.api.mfa_configuration_api import MFAConfigurationApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.mfa_config_test_response import MfaConfigTestResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - method = 'okta-verify' # str | The name of the MFA method. The currently supported method names are 'okta-verify' and 'duo-web'. # str | The name of the MFA method. The currently supported method names are 'okta-verify' and 'duo-web'. - try: - # MFA method's test configuration - - results = MFAConfigurationApi(api_client).test_mfa_config(method=method) - # Below is a request that includes all optional parameters - # results = MFAConfigurationApi(api_client).test_mfa_config(method) - print("The response of MFAConfigurationApi->test_mfa_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling MFAConfigurationApi->test_mfa_config: %s\n" % e) + method = 'okta-verify' # str | The name of the MFA method. The currently supported method names are 'okta-verify' and 'duo-web'. # str | The name of the MFA method. The currently supported method names are 'okta-verify' and 'duo-web'. + try: + # MFA method's test configuration + + results = MFAConfigurationApi(api_client).test_mfa_config(method=method) + # Below is a request that includes all optional parameters + # results = MFAConfigurationApi(api_client).test_mfa_config(method) + print("The response of MFAConfigurationApi->test_mfa_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling MFAConfigurationApi->test_mfa_config: %s\n" % e) - path: /non-employee-approvals/{id}/approve method: POST xCodeSample: @@ -10995,26 +10651,25 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.non_employee_approval_decision import NonEmployeeApprovalDecision from sailpoint.v2024.models.non_employee_approval_item import NonEmployeeApprovalItem - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'e136567de87e4d029e60b3c3c55db56d' # str | Non-Employee approval item id (UUID) # str | Non-Employee approval item id (UUID) - non_employee_approval_decision = '''{ + id = 'e136567de87e4d029e60b3c3c55db56d' # str | Non-Employee approval item id (UUID) # str | Non-Employee approval item id (UUID) + non_employee_approval_decision = '''{ "comment" : "Approved by manager" }''' # NonEmployeeApprovalDecision | - try: - # Approve a Non-Employee Request - new_non_employee_approval_decision = NonEmployeeApprovalDecision.from_json(non_employee_approval_decision) - results = NonEmployeeLifecycleManagementApi(api_client).approve_non_employee_request(id=id, non_employee_approval_decision=new_non_employee_approval_decision) - # Below is a request that includes all optional parameters - # results = NonEmployeeLifecycleManagementApi(api_client).approve_non_employee_request(id, new_non_employee_approval_decision) - print("The response of NonEmployeeLifecycleManagementApi->approve_non_employee_request:\n") - pprint(results) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->approve_non_employee_request: %s\n" % e) + try: + # Approve a Non-Employee Request + new_non_employee_approval_decision = NonEmployeeApprovalDecision.from_json(non_employee_approval_decision) + results = NonEmployeeLifecycleManagementApi(api_client).approve_non_employee_request(id=id, non_employee_approval_decision=new_non_employee_approval_decision) + # Below is a request that includes all optional parameters + # results = NonEmployeeLifecycleManagementApi(api_client).approve_non_employee_request(id, new_non_employee_approval_decision) + print("The response of NonEmployeeLifecycleManagementApi->approve_non_employee_request:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->approve_non_employee_request: %s\n" % e) - path: /non-employee-records method: POST xCodeSample: @@ -11025,13 +10680,12 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.non_employee_record import NonEmployeeRecord from sailpoint.v2024.models.non_employee_request_body import NonEmployeeRequestBody - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - non_employee_request_body = '''{ + non_employee_request_body = '''{ "sourceId" : "2c91808568c529c60168cca6f90c1313", "firstName" : "William", "lastName" : "Smith", @@ -11045,16 +10699,16 @@ "email" : "william.smith@example.com", "startDate" : "2020-03-24T00:00:00-05:00" }''' # NonEmployeeRequestBody | Non-Employee record creation request body. - try: - # Create Non-Employee Record - new_non_employee_request_body = NonEmployeeRequestBody.from_json(non_employee_request_body) - results = NonEmployeeLifecycleManagementApi(api_client).create_non_employee_record(non_employee_request_body=new_non_employee_request_body) - # Below is a request that includes all optional parameters - # results = NonEmployeeLifecycleManagementApi(api_client).create_non_employee_record(new_non_employee_request_body) - print("The response of NonEmployeeLifecycleManagementApi->create_non_employee_record:\n") - pprint(results) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->create_non_employee_record: %s\n" % e) + try: + # Create Non-Employee Record + new_non_employee_request_body = NonEmployeeRequestBody.from_json(non_employee_request_body) + results = NonEmployeeLifecycleManagementApi(api_client).create_non_employee_record(non_employee_request_body=new_non_employee_request_body) + # Below is a request that includes all optional parameters + # results = NonEmployeeLifecycleManagementApi(api_client).create_non_employee_record(new_non_employee_request_body) + print("The response of NonEmployeeLifecycleManagementApi->create_non_employee_record:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->create_non_employee_record: %s\n" % e) - path: /non-employee-requests method: POST xCodeSample: @@ -11065,13 +10719,12 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.non_employee_request import NonEmployeeRequest from sailpoint.v2024.models.non_employee_request_body import NonEmployeeRequestBody - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - non_employee_request_body = '''{ + non_employee_request_body = '''{ "sourceId" : "2c91808568c529c60168cca6f90c1313", "firstName" : "William", "lastName" : "Smith", @@ -11085,16 +10738,16 @@ "email" : "william.smith@example.com", "startDate" : "2020-03-24T00:00:00-05:00" }''' # NonEmployeeRequestBody | Non-Employee creation request body - try: - # Create Non-Employee Request - new_non_employee_request_body = NonEmployeeRequestBody.from_json(non_employee_request_body) - results = NonEmployeeLifecycleManagementApi(api_client).create_non_employee_request(non_employee_request_body=new_non_employee_request_body) - # Below is a request that includes all optional parameters - # results = NonEmployeeLifecycleManagementApi(api_client).create_non_employee_request(new_non_employee_request_body) - print("The response of NonEmployeeLifecycleManagementApi->create_non_employee_request:\n") - pprint(results) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->create_non_employee_request: %s\n" % e) + try: + # Create Non-Employee Request + new_non_employee_request_body = NonEmployeeRequestBody.from_json(non_employee_request_body) + results = NonEmployeeLifecycleManagementApi(api_client).create_non_employee_request(non_employee_request_body=new_non_employee_request_body) + # Below is a request that includes all optional parameters + # results = NonEmployeeLifecycleManagementApi(api_client).create_non_employee_request(new_non_employee_request_body) + print("The response of NonEmployeeLifecycleManagementApi->create_non_employee_request:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->create_non_employee_request: %s\n" % e) - path: /non-employee-sources method: POST xCodeSample: @@ -11105,13 +10758,12 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.non_employee_source_request_body import NonEmployeeSourceRequestBody from sailpoint.v2024.models.non_employee_source_with_cloud_external_id import NonEmployeeSourceWithCloudExternalId - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - non_employee_source_request_body = '''{ + non_employee_source_request_body = '''{ "owner" : { "id" : "2c91808570313110017040b06f344ec9" }, @@ -11137,16 +10789,16 @@ "id" : "2c91808570313110017040b06f344ec9" } ] }''' # NonEmployeeSourceRequestBody | Non-Employee source creation request body. - try: - # Create Non-Employee Source - new_non_employee_source_request_body = NonEmployeeSourceRequestBody.from_json(non_employee_source_request_body) - results = NonEmployeeLifecycleManagementApi(api_client).create_non_employee_source(non_employee_source_request_body=new_non_employee_source_request_body) - # Below is a request that includes all optional parameters - # results = NonEmployeeLifecycleManagementApi(api_client).create_non_employee_source(new_non_employee_source_request_body) - print("The response of NonEmployeeLifecycleManagementApi->create_non_employee_source:\n") - pprint(results) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->create_non_employee_source: %s\n" % e) + try: + # Create Non-Employee Source + new_non_employee_source_request_body = NonEmployeeSourceRequestBody.from_json(non_employee_source_request_body) + results = NonEmployeeLifecycleManagementApi(api_client).create_non_employee_source(non_employee_source_request_body=new_non_employee_source_request_body) + # Below is a request that includes all optional parameters + # results = NonEmployeeLifecycleManagementApi(api_client).create_non_employee_source(new_non_employee_source_request_body) + print("The response of NonEmployeeLifecycleManagementApi->create_non_employee_source:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->create_non_employee_source: %s\n" % e) - path: /non-employee-sources/{sourceId}/schema-attributes method: POST xCodeSample: @@ -11157,14 +10809,13 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.non_employee_schema_attribute import NonEmployeeSchemaAttribute from sailpoint.v2024.models.non_employee_schema_attribute_body import NonEmployeeSchemaAttributeBody - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = 'ef38f94347e94562b5bb8424a56397d8' # str | The Source id # str | The Source id - non_employee_schema_attribute_body = '''{ + source_id = 'ef38f94347e94562b5bb8424a56397d8' # str | The Source id # str | The Source id + non_employee_schema_attribute_body = '''{ "helpText" : "The unique identifier for the account", "label" : "Account Name", "placeholder" : "Enter a unique user name for this account.", @@ -11172,16 +10823,16 @@ "technicalName" : "account.name", "required" : true }''' # NonEmployeeSchemaAttributeBody | - try: - # Create a new Schema Attribute for Non-Employee Source - new_non_employee_schema_attribute_body = NonEmployeeSchemaAttributeBody.from_json(non_employee_schema_attribute_body) - results = NonEmployeeLifecycleManagementApi(api_client).create_non_employee_source_schema_attributes(source_id=source_id, non_employee_schema_attribute_body=new_non_employee_schema_attribute_body) - # Below is a request that includes all optional parameters - # results = NonEmployeeLifecycleManagementApi(api_client).create_non_employee_source_schema_attributes(source_id, new_non_employee_schema_attribute_body) - print("The response of NonEmployeeLifecycleManagementApi->create_non_employee_source_schema_attributes:\n") - pprint(results) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->create_non_employee_source_schema_attributes: %s\n" % e) + try: + # Create a new Schema Attribute for Non-Employee Source + new_non_employee_schema_attribute_body = NonEmployeeSchemaAttributeBody.from_json(non_employee_schema_attribute_body) + results = NonEmployeeLifecycleManagementApi(api_client).create_non_employee_source_schema_attributes(source_id=source_id, non_employee_schema_attribute_body=new_non_employee_schema_attribute_body) + # Below is a request that includes all optional parameters + # results = NonEmployeeLifecycleManagementApi(api_client).create_non_employee_source_schema_attributes(source_id, new_non_employee_schema_attribute_body) + print("The response of NonEmployeeLifecycleManagementApi->create_non_employee_source_schema_attributes:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->create_non_employee_source_schema_attributes: %s\n" % e) - path: /non-employee-records/{id} method: DELETE xCodeSample: @@ -11190,21 +10841,20 @@ source: | from sailpoint.v2024.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | Non-Employee record id (UUID) # str | Non-Employee record id (UUID) - try: - # Delete Non-Employee Record - - NonEmployeeLifecycleManagementApi(api_client).delete_non_employee_record(id=id) - # Below is a request that includes all optional parameters - # NonEmployeeLifecycleManagementApi(api_client).delete_non_employee_record(id) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->delete_non_employee_record: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | Non-Employee record id (UUID) # str | Non-Employee record id (UUID) + try: + # Delete Non-Employee Record + + NonEmployeeLifecycleManagementApi(api_client).delete_non_employee_record(id=id) + # Below is a request that includes all optional parameters + # NonEmployeeLifecycleManagementApi(api_client).delete_non_employee_record(id) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->delete_non_employee_record: %s\n" % e) - path: /non-employee-records/bulk-delete method: POST xCodeSample: @@ -11214,21 +10864,20 @@ from sailpoint.v2024.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.delete_non_employee_records_in_bulk_request import DeleteNonEmployeeRecordsInBulkRequest - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - delete_non_employee_records_in_bulk_request = '''sailpoint.v2024.DeleteNonEmployeeRecordsInBulkRequest()''' # DeleteNonEmployeeRecordsInBulkRequest | Non-Employee bulk delete request body. - try: - # Delete Multiple Non-Employee Records - new_delete_non_employee_records_in_bulk_request = DeleteNonEmployeeRecordsInBulkRequest.from_json(delete_non_employee_records_in_bulk_request) - NonEmployeeLifecycleManagementApi(api_client).delete_non_employee_records_in_bulk(delete_non_employee_records_in_bulk_request=new_delete_non_employee_records_in_bulk_request) - # Below is a request that includes all optional parameters - # NonEmployeeLifecycleManagementApi(api_client).delete_non_employee_records_in_bulk(new_delete_non_employee_records_in_bulk_request) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->delete_non_employee_records_in_bulk: %s\n" % e) + delete_non_employee_records_in_bulk_request = '''sailpoint.v2024.DeleteNonEmployeeRecordsInBulkRequest()''' # DeleteNonEmployeeRecordsInBulkRequest | Non-Employee bulk delete request body. + try: + # Delete Multiple Non-Employee Records + new_delete_non_employee_records_in_bulk_request = DeleteNonEmployeeRecordsInBulkRequest.from_json(delete_non_employee_records_in_bulk_request) + NonEmployeeLifecycleManagementApi(api_client).delete_non_employee_records_in_bulk(delete_non_employee_records_in_bulk_request=new_delete_non_employee_records_in_bulk_request) + # Below is a request that includes all optional parameters + # NonEmployeeLifecycleManagementApi(api_client).delete_non_employee_records_in_bulk(new_delete_non_employee_records_in_bulk_request) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->delete_non_employee_records_in_bulk: %s\n" % e) - path: /non-employee-requests/{id} method: DELETE xCodeSample: @@ -11237,21 +10886,20 @@ source: | from sailpoint.v2024.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ac110005-7156-1150-8171-5b292e3e0084' # str | Non-Employee request id in the UUID format # str | Non-Employee request id in the UUID format - try: - # Delete Non-Employee Request - - NonEmployeeLifecycleManagementApi(api_client).delete_non_employee_request(id=id) - # Below is a request that includes all optional parameters - # NonEmployeeLifecycleManagementApi(api_client).delete_non_employee_request(id) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->delete_non_employee_request: %s\n" % e) + id = 'ac110005-7156-1150-8171-5b292e3e0084' # str | Non-Employee request id in the UUID format # str | Non-Employee request id in the UUID format + try: + # Delete Non-Employee Request + + NonEmployeeLifecycleManagementApi(api_client).delete_non_employee_request(id=id) + # Below is a request that includes all optional parameters + # NonEmployeeLifecycleManagementApi(api_client).delete_non_employee_request(id) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->delete_non_employee_request: %s\n" % e) - path: /non-employee-sources/{sourceId}/schema-attributes/{attributeId} method: DELETE xCodeSample: @@ -11260,22 +10908,21 @@ source: | from sailpoint.v2024.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - attribute_id = 'ef38f94347e94562b5bb8424a56397d8' # str | The Schema Attribute Id (UUID) # str | The Schema Attribute Id (UUID) - source_id = 'ef38f94347e94562b5bb8424a56397d8' # str | The Source id # str | The Source id - try: - # Delete a Schema Attribute for Non-Employee Source - - NonEmployeeLifecycleManagementApi(api_client).delete_non_employee_schema_attribute(attribute_id=attribute_id, source_id=source_id) - # Below is a request that includes all optional parameters - # NonEmployeeLifecycleManagementApi(api_client).delete_non_employee_schema_attribute(attribute_id, source_id) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->delete_non_employee_schema_attribute: %s\n" % e) + attribute_id = 'ef38f94347e94562b5bb8424a56397d8' # str | The Schema Attribute Id (UUID) # str | The Schema Attribute Id (UUID) + source_id = 'ef38f94347e94562b5bb8424a56397d8' # str | The Source id # str | The Source id + try: + # Delete a Schema Attribute for Non-Employee Source + + NonEmployeeLifecycleManagementApi(api_client).delete_non_employee_schema_attribute(attribute_id=attribute_id, source_id=source_id) + # Below is a request that includes all optional parameters + # NonEmployeeLifecycleManagementApi(api_client).delete_non_employee_schema_attribute(attribute_id, source_id) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->delete_non_employee_schema_attribute: %s\n" % e) - path: /non-employee-sources/{sourceId} method: DELETE xCodeSample: @@ -11284,21 +10931,20 @@ source: | from sailpoint.v2024.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = 'e136567de87e4d029e60b3c3c55db56d' # str | Source Id # str | Source Id - try: - # Delete Non-Employee Source - - NonEmployeeLifecycleManagementApi(api_client).delete_non_employee_source(source_id=source_id) - # Below is a request that includes all optional parameters - # NonEmployeeLifecycleManagementApi(api_client).delete_non_employee_source(source_id) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->delete_non_employee_source: %s\n" % e) + source_id = 'e136567de87e4d029e60b3c3c55db56d' # str | Source Id # str | Source Id + try: + # Delete Non-Employee Source + + NonEmployeeLifecycleManagementApi(api_client).delete_non_employee_source(source_id=source_id) + # Below is a request that includes all optional parameters + # NonEmployeeLifecycleManagementApi(api_client).delete_non_employee_source(source_id) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->delete_non_employee_source: %s\n" % e) - path: /non-employee-sources/{sourceId}/schema-attributes method: DELETE xCodeSample: @@ -11307,21 +10953,20 @@ source: | from sailpoint.v2024.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = 'ef38f94347e94562b5bb8424a56397d8' # str | The Source id # str | The Source id - try: - # Delete all custom schema attributes for Non-Employee Source - - NonEmployeeLifecycleManagementApi(api_client).delete_non_employee_source_schema_attributes(source_id=source_id) - # Below is a request that includes all optional parameters - # NonEmployeeLifecycleManagementApi(api_client).delete_non_employee_source_schema_attributes(source_id) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->delete_non_employee_source_schema_attributes: %s\n" % e) + source_id = 'ef38f94347e94562b5bb8424a56397d8' # str | The Source id # str | The Source id + try: + # Delete all custom schema attributes for Non-Employee Source + + NonEmployeeLifecycleManagementApi(api_client).delete_non_employee_source_schema_attributes(source_id=source_id) + # Below is a request that includes all optional parameters + # NonEmployeeLifecycleManagementApi(api_client).delete_non_employee_source_schema_attributes(source_id) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->delete_non_employee_source_schema_attributes: %s\n" % e) - path: /non-employee-sources/{id}/non-employees/download method: GET xCodeSample: @@ -11330,21 +10975,20 @@ source: | from sailpoint.v2024.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'e136567de87e4d029e60b3c3c55db56d' # str | Source Id (UUID) # str | Source Id (UUID) - try: - # Exports Non-Employee Records to CSV - - NonEmployeeLifecycleManagementApi(api_client).export_non_employee_records(id=id) - # Below is a request that includes all optional parameters - # NonEmployeeLifecycleManagementApi(api_client).export_non_employee_records(id) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->export_non_employee_records: %s\n" % e) + id = 'e136567de87e4d029e60b3c3c55db56d' # str | Source Id (UUID) # str | Source Id (UUID) + try: + # Exports Non-Employee Records to CSV + + NonEmployeeLifecycleManagementApi(api_client).export_non_employee_records(id=id) + # Below is a request that includes all optional parameters + # NonEmployeeLifecycleManagementApi(api_client).export_non_employee_records(id) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->export_non_employee_records: %s\n" % e) - path: /non-employee-sources/{id}/schema-attributes-template/download method: GET xCodeSample: @@ -11353,21 +10997,20 @@ source: | from sailpoint.v2024.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | Source Id (UUID) # str | Source Id (UUID) - try: - # Exports Source Schema Template - - NonEmployeeLifecycleManagementApi(api_client).export_non_employee_source_schema_template(id=id) - # Below is a request that includes all optional parameters - # NonEmployeeLifecycleManagementApi(api_client).export_non_employee_source_schema_template(id) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->export_non_employee_source_schema_template: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | Source Id (UUID) # str | Source Id (UUID) + try: + # Exports Source Schema Template + + NonEmployeeLifecycleManagementApi(api_client).export_non_employee_source_schema_template(id=id) + # Below is a request that includes all optional parameters + # NonEmployeeLifecycleManagementApi(api_client).export_non_employee_source_schema_template(id) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->export_non_employee_source_schema_template: %s\n" % e) - path: /non-employee-approvals/{id} method: GET xCodeSample: @@ -11377,24 +11020,23 @@ from sailpoint.v2024.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.non_employee_approval_item_detail import NonEmployeeApprovalItemDetail - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'e136567de87e4d029e60b3c3c55db56d' # str | Non-Employee approval item id (UUID) # str | Non-Employee approval item id (UUID) - include_detail = true # bool | The object nonEmployeeRequest will not be included detail when set to false. *Default value is true* (optional) # bool | The object nonEmployeeRequest will not be included detail when set to false. *Default value is true* (optional) - try: - # Get a non-employee approval item detail - - results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_approval(id=id) - # Below is a request that includes all optional parameters - # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_approval(id, include_detail) - print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_approval:\n") - pprint(results) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_approval: %s\n" % e) + id = 'e136567de87e4d029e60b3c3c55db56d' # str | Non-Employee approval item id (UUID) # str | Non-Employee approval item id (UUID) + include_detail = true # bool | The object nonEmployeeRequest will not be included detail when set to false. *Default value is true* (optional) # bool | The object nonEmployeeRequest will not be included detail when set to false. *Default value is true* (optional) + try: + # Get a non-employee approval item detail + + results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_approval(id=id) + # Below is a request that includes all optional parameters + # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_approval(id, include_detail) + print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_approval:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_approval: %s\n" % e) - path: /non-employee-approvals/summary/{requested-for} method: GET xCodeSample: @@ -11404,23 +11046,22 @@ from sailpoint.v2024.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.non_employee_approval_summary import NonEmployeeApprovalSummary - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - requested_for = '2c91808280430dfb0180431a59440460' # str | The identity (UUID) of the approver for whom for whom the summary is being retrieved. Use \"me\" instead to indicate the current user. # str | The identity (UUID) of the approver for whom for whom the summary is being retrieved. Use \"me\" instead to indicate the current user. - try: - # Get Summary of Non-Employee Approval Requests - - results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_approval_summary(requested_for=requested_for) - # Below is a request that includes all optional parameters - # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_approval_summary(requested_for) - print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_approval_summary:\n") - pprint(results) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_approval_summary: %s\n" % e) + requested_for = '2c91808280430dfb0180431a59440460' # str | The identity (UUID) of the approver for whom for whom the summary is being retrieved. Use \"me\" instead to indicate the current user. # str | The identity (UUID) of the approver for whom for whom the summary is being retrieved. Use \"me\" instead to indicate the current user. + try: + # Get Summary of Non-Employee Approval Requests + + results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_approval_summary(requested_for=requested_for) + # Below is a request that includes all optional parameters + # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_approval_summary(requested_for) + print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_approval_summary:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_approval_summary: %s\n" % e) - path: /non-employee-sources/{id}/non-employee-bulk-upload/status method: GET xCodeSample: @@ -11430,23 +11071,22 @@ from sailpoint.v2024.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.non_employee_bulk_upload_status import NonEmployeeBulkUploadStatus - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'e136567de87e4d029e60b3c3c55db56d' # str | Source ID (UUID) # str | Source ID (UUID) - try: - # Obtain the status of bulk upload on the source - - results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_bulk_upload_status(id=id) - # Below is a request that includes all optional parameters - # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_bulk_upload_status(id) - print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_bulk_upload_status:\n") - pprint(results) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_bulk_upload_status: %s\n" % e) + id = 'e136567de87e4d029e60b3c3c55db56d' # str | Source ID (UUID) # str | Source ID (UUID) + try: + # Obtain the status of bulk upload on the source + + results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_bulk_upload_status(id=id) + # Below is a request that includes all optional parameters + # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_bulk_upload_status(id) + print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_bulk_upload_status:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_bulk_upload_status: %s\n" % e) - path: /non-employee-records/{id} method: GET xCodeSample: @@ -11456,23 +11096,22 @@ from sailpoint.v2024.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.non_employee_record import NonEmployeeRecord - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | Non-Employee record id (UUID) # str | Non-Employee record id (UUID) - try: - # Get a Non-Employee Record - - results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_record(id=id) - # Below is a request that includes all optional parameters - # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_record(id) - print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_record:\n") - pprint(results) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_record: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | Non-Employee record id (UUID) # str | Non-Employee record id (UUID) + try: + # Get a Non-Employee Record + + results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_record(id=id) + # Below is a request that includes all optional parameters + # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_record(id) + print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_record:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_record: %s\n" % e) - path: /non-employee-requests/{id} method: GET xCodeSample: @@ -11482,23 +11121,22 @@ from sailpoint.v2024.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.non_employee_request import NonEmployeeRequest - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ac110005-7156-1150-8171-5b292e3e0084' # str | Non-Employee request id (UUID) # str | Non-Employee request id (UUID) - try: - # Get a Non-Employee Request - - results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_request(id=id) - # Below is a request that includes all optional parameters - # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_request(id) - print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_request:\n") - pprint(results) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_request: %s\n" % e) + id = 'ac110005-7156-1150-8171-5b292e3e0084' # str | Non-Employee request id (UUID) # str | Non-Employee request id (UUID) + try: + # Get a Non-Employee Request + + results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_request(id=id) + # Below is a request that includes all optional parameters + # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_request(id) + print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_request:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_request: %s\n" % e) - path: /non-employee-requests/summary/{requested-for} method: GET xCodeSample: @@ -11508,23 +11146,22 @@ from sailpoint.v2024.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.non_employee_request_summary import NonEmployeeRequestSummary - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - requested_for = '2c91808280430dfb0180431a59440460' # str | The identity (UUID) of the non-employee account manager for whom the summary is being retrieved. Use \"me\" instead to indicate the current user. # str | The identity (UUID) of the non-employee account manager for whom the summary is being retrieved. Use \"me\" instead to indicate the current user. - try: - # Get Summary of Non-Employee Requests - - results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_request_summary(requested_for=requested_for) - # Below is a request that includes all optional parameters - # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_request_summary(requested_for) - print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_request_summary:\n") - pprint(results) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_request_summary: %s\n" % e) + requested_for = '2c91808280430dfb0180431a59440460' # str | The identity (UUID) of the non-employee account manager for whom the summary is being retrieved. Use \"me\" instead to indicate the current user. # str | The identity (UUID) of the non-employee account manager for whom the summary is being retrieved. Use \"me\" instead to indicate the current user. + try: + # Get Summary of Non-Employee Requests + + results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_request_summary(requested_for=requested_for) + # Below is a request that includes all optional parameters + # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_request_summary(requested_for) + print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_request_summary:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_request_summary: %s\n" % e) - path: /non-employee-sources/{sourceId}/schema-attributes/{attributeId} method: GET xCodeSample: @@ -11534,24 +11171,23 @@ from sailpoint.v2024.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.non_employee_schema_attribute import NonEmployeeSchemaAttribute - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - attribute_id = 'ef38f94347e94562b5bb8424a56397d8' # str | The Schema Attribute Id (UUID) # str | The Schema Attribute Id (UUID) - source_id = 'ef38f94347e94562b5bb8424a56397d8' # str | The Source id # str | The Source id - try: - # Get Schema Attribute Non-Employee Source - - results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_schema_attribute(attribute_id=attribute_id, source_id=source_id) - # Below is a request that includes all optional parameters - # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_schema_attribute(attribute_id, source_id) - print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_schema_attribute:\n") - pprint(results) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_schema_attribute: %s\n" % e) + attribute_id = 'ef38f94347e94562b5bb8424a56397d8' # str | The Schema Attribute Id (UUID) # str | The Schema Attribute Id (UUID) + source_id = 'ef38f94347e94562b5bb8424a56397d8' # str | The Source id # str | The Source id + try: + # Get Schema Attribute Non-Employee Source + + results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_schema_attribute(attribute_id=attribute_id, source_id=source_id) + # Below is a request that includes all optional parameters + # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_schema_attribute(attribute_id, source_id) + print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_schema_attribute:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_schema_attribute: %s\n" % e) - path: /non-employee-sources/{sourceId} method: GET xCodeSample: @@ -11561,23 +11197,22 @@ from sailpoint.v2024.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.non_employee_source import NonEmployeeSource - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '2c91808b7c28b350017c2a2ec5790aa1' # str | Source Id # str | Source Id - try: - # Get a Non-Employee Source - - results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_source(source_id=source_id) - # Below is a request that includes all optional parameters - # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_source(source_id) - print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_source:\n") - pprint(results) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_source: %s\n" % e) + source_id = '2c91808b7c28b350017c2a2ec5790aa1' # str | Source Id # str | Source Id + try: + # Get a Non-Employee Source + + results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_source(source_id=source_id) + # Below is a request that includes all optional parameters + # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_source(source_id) + print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_source:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_source: %s\n" % e) - path: /non-employee-sources/{sourceId}/schema-attributes method: GET xCodeSample: @@ -11587,23 +11222,22 @@ from sailpoint.v2024.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.non_employee_schema_attribute import NonEmployeeSchemaAttribute - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = 'ef38f94347e94562b5bb8424a56397d8' # str | The Source id # str | The Source id - try: - # List Schema Attributes Non-Employee Source - - results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_source_schema_attributes(source_id=source_id) - # Below is a request that includes all optional parameters - # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_source_schema_attributes(source_id) - print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_source_schema_attributes:\n") - pprint(results) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_source_schema_attributes: %s\n" % e) + source_id = 'ef38f94347e94562b5bb8424a56397d8' # str | The Source id # str | The Source id + try: + # List Schema Attributes Non-Employee Source + + results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_source_schema_attributes(source_id=source_id) + # Below is a request that includes all optional parameters + # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_source_schema_attributes(source_id) + print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_source_schema_attributes:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_source_schema_attributes: %s\n" % e) - path: /non-employee-sources/{id}/non-employee-bulk-upload method: POST xCodeSample: @@ -11613,24 +11247,23 @@ from sailpoint.v2024.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.non_employee_bulk_upload_job import NonEmployeeBulkUploadJob - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'e136567de87e4d029e60b3c3c55db56d' # str | Source Id (UUID) # str | Source Id (UUID) - data = None # bytearray | # bytearray | - try: - # Imports, or Updates, Non-Employee Records - - results = NonEmployeeLifecycleManagementApi(api_client).import_non_employee_records_in_bulk(id=id, data=data) - # Below is a request that includes all optional parameters - # results = NonEmployeeLifecycleManagementApi(api_client).import_non_employee_records_in_bulk(id, data) - print("The response of NonEmployeeLifecycleManagementApi->import_non_employee_records_in_bulk:\n") - pprint(results) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->import_non_employee_records_in_bulk: %s\n" % e) + id = 'e136567de87e4d029e60b3c3c55db56d' # str | Source Id (UUID) # str | Source Id (UUID) + data = None # bytearray | # bytearray | + try: + # Imports, or Updates, Non-Employee Records + + results = NonEmployeeLifecycleManagementApi(api_client).import_non_employee_records_in_bulk(id=id, data=data) + # Below is a request that includes all optional parameters + # results = NonEmployeeLifecycleManagementApi(api_client).import_non_employee_records_in_bulk(id, data) + print("The response of NonEmployeeLifecycleManagementApi->import_non_employee_records_in_bulk:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->import_non_employee_records_in_bulk: %s\n" % e) - path: /non-employee-approvals method: GET xCodeSample: @@ -11640,28 +11273,27 @@ from sailpoint.v2024.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.non_employee_approval_item import NonEmployeeApprovalItem - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - requested_for = '2c91808280430dfb0180431a59440460' # str | The identity for whom the request was made. *me* indicates the current user. (optional) # str | The identity for whom the request was made. *me* indicates the current user. (optional) - 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 = 'approvalStatus eq \"Pending\"' # 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: **approvalStatus**: *eq* (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: **approvalStatus**: *eq* (optional) - sorters = 'created' # 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** (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** (optional) - try: - # Get List of Non-Employee Approval Requests - - results = NonEmployeeLifecycleManagementApi(api_client).list_non_employee_approvals() - # Below is a request that includes all optional parameters - # results = NonEmployeeLifecycleManagementApi(api_client).list_non_employee_approvals(requested_for, limit, offset, count, filters, sorters) - print("The response of NonEmployeeLifecycleManagementApi->list_non_employee_approvals:\n") - pprint(results) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->list_non_employee_approvals: %s\n" % e) + requested_for = '2c91808280430dfb0180431a59440460' # str | The identity for whom the request was made. *me* indicates the current user. (optional) # str | The identity for whom the request was made. *me* indicates the current user. (optional) + 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 = 'approvalStatus eq \"Pending\"' # 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: **approvalStatus**: *eq* (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: **approvalStatus**: *eq* (optional) + sorters = 'created' # 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** (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** (optional) + try: + # Get List of Non-Employee Approval Requests + + results = NonEmployeeLifecycleManagementApi(api_client).list_non_employee_approvals() + # Below is a request that includes all optional parameters + # results = NonEmployeeLifecycleManagementApi(api_client).list_non_employee_approvals(requested_for, limit, offset, count, filters, sorters) + print("The response of NonEmployeeLifecycleManagementApi->list_non_employee_approvals:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->list_non_employee_approvals: %s\n" % e) - path: /non-employee-records method: GET xCodeSample: @@ -11671,27 +11303,26 @@ from sailpoint.v2024.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.non_employee_record import NonEmployeeRecord - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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) - sorters = 'accountName,sourceId' # 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: **id, accountName, sourceId, manager, firstName, lastName, email, phone, startDate, endDate, created, modified** (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: **id, accountName, sourceId, manager, firstName, lastName, email, phone, startDate, endDate, created, modified** (optional) - filters = 'sourceId eq \"2c91808568c529c60168cca6f90c1313\"' # 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: **sourceId**: *eq* (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: **sourceId**: *eq* (optional) - try: - # List Non-Employee Records - - results = NonEmployeeLifecycleManagementApi(api_client).list_non_employee_records() - # Below is a request that includes all optional parameters - # results = NonEmployeeLifecycleManagementApi(api_client).list_non_employee_records(limit, offset, count, sorters, filters) - print("The response of NonEmployeeLifecycleManagementApi->list_non_employee_records:\n") - pprint(results) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->list_non_employee_records: %s\n" % e) + 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) + sorters = 'accountName,sourceId' # 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: **id, accountName, sourceId, manager, firstName, lastName, email, phone, startDate, endDate, created, modified** (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: **id, accountName, sourceId, manager, firstName, lastName, email, phone, startDate, endDate, created, modified** (optional) + filters = 'sourceId eq \"2c91808568c529c60168cca6f90c1313\"' # 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: **sourceId**: *eq* (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: **sourceId**: *eq* (optional) + try: + # List Non-Employee Records + + results = NonEmployeeLifecycleManagementApi(api_client).list_non_employee_records() + # Below is a request that includes all optional parameters + # results = NonEmployeeLifecycleManagementApi(api_client).list_non_employee_records(limit, offset, count, sorters, filters) + print("The response of NonEmployeeLifecycleManagementApi->list_non_employee_records:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->list_non_employee_records: %s\n" % e) - path: /non-employee-requests method: GET xCodeSample: @@ -11701,28 +11332,27 @@ from sailpoint.v2024.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.non_employee_request import NonEmployeeRequest - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - requested_for = 'e136567de87e4d029e60b3c3c55db56d' # str | The identity for whom the request was made. *me* indicates the current user. # str | The identity for whom the request was made. *me* indicates the current user. - 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) - sorters = 'created,approvalStatus' # 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, approvalStatus, firstName, lastName, email, phone, accountName, startDate, endDate** (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, approvalStatus, firstName, lastName, email, phone, accountName, startDate, endDate** (optional) - filters = 'sourceId eq \"2c91808568c529c60168cca6f90c1313\"' # 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: **sourceId**: *eq* (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: **sourceId**: *eq* (optional) - try: - # List Non-Employee Requests - - results = NonEmployeeLifecycleManagementApi(api_client).list_non_employee_requests(requested_for=requested_for) - # Below is a request that includes all optional parameters - # results = NonEmployeeLifecycleManagementApi(api_client).list_non_employee_requests(requested_for, limit, offset, count, sorters, filters) - print("The response of NonEmployeeLifecycleManagementApi->list_non_employee_requests:\n") - pprint(results) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->list_non_employee_requests: %s\n" % e) + requested_for = 'e136567de87e4d029e60b3c3c55db56d' # str | The identity for whom the request was made. *me* indicates the current user. # str | The identity for whom the request was made. *me* indicates the current user. + 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) + sorters = 'created,approvalStatus' # 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, approvalStatus, firstName, lastName, email, phone, accountName, startDate, endDate** (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, approvalStatus, firstName, lastName, email, phone, accountName, startDate, endDate** (optional) + filters = 'sourceId eq \"2c91808568c529c60168cca6f90c1313\"' # 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: **sourceId**: *eq* (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: **sourceId**: *eq* (optional) + try: + # List Non-Employee Requests + + results = NonEmployeeLifecycleManagementApi(api_client).list_non_employee_requests(requested_for=requested_for) + # Below is a request that includes all optional parameters + # results = NonEmployeeLifecycleManagementApi(api_client).list_non_employee_requests(requested_for, limit, offset, count, sorters, filters) + print("The response of NonEmployeeLifecycleManagementApi->list_non_employee_requests:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->list_non_employee_requests: %s\n" % e) - path: /non-employee-sources method: GET xCodeSample: @@ -11732,28 +11362,27 @@ from sailpoint.v2024.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.non_employee_source_with_ne_count import NonEmployeeSourceWithNECount - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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) - requested_for = 'me' # str | Identity the request was made for. Use 'me' to indicate the current user. (optional) # str | Identity the request was made for. Use 'me' to indicate the current user. (optional) - non_employee_count = False # bool | Flag that determines whether the API will return a non-employee count associated with the source. (optional) (default to False) # bool | Flag that determines whether the API will return a non-employee count associated with the source. (optional) (default to False) - sorters = 'name,created' # 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: **name, created, sourceId** (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: **name, created, sourceId** (optional) - try: - # List Non-Employee Sources - - results = NonEmployeeLifecycleManagementApi(api_client).list_non_employee_sources() - # Below is a request that includes all optional parameters - # results = NonEmployeeLifecycleManagementApi(api_client).list_non_employee_sources(limit, offset, count, requested_for, non_employee_count, sorters) - print("The response of NonEmployeeLifecycleManagementApi->list_non_employee_sources:\n") - pprint(results) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->list_non_employee_sources: %s\n" % e) + 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) + requested_for = 'me' # str | Identity the request was made for. Use 'me' to indicate the current user. (optional) # str | Identity the request was made for. Use 'me' to indicate the current user. (optional) + non_employee_count = False # bool | Flag that determines whether the API will return a non-employee count associated with the source. (optional) (default to False) # bool | Flag that determines whether the API will return a non-employee count associated with the source. (optional) (default to False) + sorters = 'name,created' # 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: **name, created, sourceId** (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: **name, created, sourceId** (optional) + try: + # List Non-Employee Sources + + results = NonEmployeeLifecycleManagementApi(api_client).list_non_employee_sources() + # Below is a request that includes all optional parameters + # results = NonEmployeeLifecycleManagementApi(api_client).list_non_employee_sources(limit, offset, count, requested_for, non_employee_count, sorters) + print("The response of NonEmployeeLifecycleManagementApi->list_non_employee_sources:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->list_non_employee_sources: %s\n" % e) - path: /non-employee-records/{id} method: PATCH xCodeSample: @@ -11764,24 +11393,23 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.json_patch_operation import JsonPatchOperation from sailpoint.v2024.models.non_employee_record import NonEmployeeRecord - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | Non-employee record id (UUID) # str | Non-employee record id (UUID) - json_patch_operation = '''[{op=replace, path=/endDate, value=2019-08-23T18:40:35.772Z}]''' # List[JsonPatchOperation] | A list of non-employee update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Attributes are restricted by user type. Owner of source can update end date. Organization admins can update all available fields. - try: - # Patch Non-Employee Record - new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) - results = NonEmployeeLifecycleManagementApi(api_client).patch_non_employee_record(id=id, json_patch_operation=new_json_patch_operation) - # Below is a request that includes all optional parameters - # results = NonEmployeeLifecycleManagementApi(api_client).patch_non_employee_record(id, new_json_patch_operation) - print("The response of NonEmployeeLifecycleManagementApi->patch_non_employee_record:\n") - pprint(results) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->patch_non_employee_record: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | Non-employee record id (UUID) # str | Non-employee record id (UUID) + json_patch_operation = '''[{op=replace, path=/endDate, value=2019-08-23T18:40:35.772Z}]''' # List[JsonPatchOperation] | A list of non-employee update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Attributes are restricted by user type. Owner of source can update end date. Organization admins can update all available fields. + try: + # Patch Non-Employee Record + new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) + results = NonEmployeeLifecycleManagementApi(api_client).patch_non_employee_record(id=id, json_patch_operation=new_json_patch_operation) + # Below is a request that includes all optional parameters + # results = NonEmployeeLifecycleManagementApi(api_client).patch_non_employee_record(id, new_json_patch_operation) + print("The response of NonEmployeeLifecycleManagementApi->patch_non_employee_record:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->patch_non_employee_record: %s\n" % e) - path: /non-employee-sources/{sourceId}/schema-attributes/{attributeId} method: PATCH xCodeSample: @@ -11792,25 +11420,24 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.json_patch_operation import JsonPatchOperation from sailpoint.v2024.models.non_employee_schema_attribute import NonEmployeeSchemaAttribute - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - attribute_id = 'ef38f94347e94562b5bb8424a56397d8' # str | The Schema Attribute Id (UUID) # str | The Schema Attribute Id (UUID) - source_id = 'ef38f94347e94562b5bb8424a56397d8' # str | The Source id # str | The Source id - json_patch_operation = '''[{op=replace, path=/label, value={new attribute label=null}}]''' # List[JsonPatchOperation] | A list of schema attribute update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following properties are allowed for update ':' 'label', 'helpText', 'placeholder', 'required'. - try: - # Patch a Schema Attribute for Non-Employee Source - new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) - results = NonEmployeeLifecycleManagementApi(api_client).patch_non_employee_schema_attribute(attribute_id=attribute_id, source_id=source_id, json_patch_operation=new_json_patch_operation) - # Below is a request that includes all optional parameters - # results = NonEmployeeLifecycleManagementApi(api_client).patch_non_employee_schema_attribute(attribute_id, source_id, new_json_patch_operation) - print("The response of NonEmployeeLifecycleManagementApi->patch_non_employee_schema_attribute:\n") - pprint(results) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->patch_non_employee_schema_attribute: %s\n" % e) + attribute_id = 'ef38f94347e94562b5bb8424a56397d8' # str | The Schema Attribute Id (UUID) # str | The Schema Attribute Id (UUID) + source_id = 'ef38f94347e94562b5bb8424a56397d8' # str | The Source id # str | The Source id + json_patch_operation = '''[{op=replace, path=/label, value={new attribute label=null}}]''' # List[JsonPatchOperation] | A list of schema attribute update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following properties are allowed for update ':' 'label', 'helpText', 'placeholder', 'required'. + try: + # Patch a Schema Attribute for Non-Employee Source + new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) + results = NonEmployeeLifecycleManagementApi(api_client).patch_non_employee_schema_attribute(attribute_id=attribute_id, source_id=source_id, json_patch_operation=new_json_patch_operation) + # Below is a request that includes all optional parameters + # results = NonEmployeeLifecycleManagementApi(api_client).patch_non_employee_schema_attribute(attribute_id, source_id, new_json_patch_operation) + print("The response of NonEmployeeLifecycleManagementApi->patch_non_employee_schema_attribute:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->patch_non_employee_schema_attribute: %s\n" % e) - path: /non-employee-sources/{sourceId} method: PATCH xCodeSample: @@ -11821,24 +11448,23 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.json_patch_operation import JsonPatchOperation from sailpoint.v2024.models.non_employee_source import NonEmployeeSource - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = 'e136567de87e4d029e60b3c3c55db56d' # str | Source Id # str | Source Id - json_patch_operation = '''[{op=replace, path=/name, value={new name=null}}, {op=replace, path=/approvers, value=[2c91809f703bb37a017040a2fe8748c7, 48b1f463c9e8427db5a5071bd81914b8]}]''' # List[JsonPatchOperation] | A list of non-employee source update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. - try: - # Patch a Non-Employee Source - new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) - results = NonEmployeeLifecycleManagementApi(api_client).patch_non_employee_source(source_id=source_id, json_patch_operation=new_json_patch_operation) - # Below is a request that includes all optional parameters - # results = NonEmployeeLifecycleManagementApi(api_client).patch_non_employee_source(source_id, new_json_patch_operation) - print("The response of NonEmployeeLifecycleManagementApi->patch_non_employee_source:\n") - pprint(results) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->patch_non_employee_source: %s\n" % e) + source_id = 'e136567de87e4d029e60b3c3c55db56d' # str | Source Id # str | Source Id + json_patch_operation = '''[{op=replace, path=/name, value={new name=null}}, {op=replace, path=/approvers, value=[2c91809f703bb37a017040a2fe8748c7, 48b1f463c9e8427db5a5071bd81914b8]}]''' # List[JsonPatchOperation] | A list of non-employee source update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. + try: + # Patch a Non-Employee Source + new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) + results = NonEmployeeLifecycleManagementApi(api_client).patch_non_employee_source(source_id=source_id, json_patch_operation=new_json_patch_operation) + # Below is a request that includes all optional parameters + # results = NonEmployeeLifecycleManagementApi(api_client).patch_non_employee_source(source_id, new_json_patch_operation) + print("The response of NonEmployeeLifecycleManagementApi->patch_non_employee_source:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->patch_non_employee_source: %s\n" % e) - path: /non-employee-approvals/{id}/reject method: POST xCodeSample: @@ -11849,26 +11475,25 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.non_employee_approval_item import NonEmployeeApprovalItem from sailpoint.v2024.models.non_employee_reject_approval_decision import NonEmployeeRejectApprovalDecision - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'e136567de87e4d029e60b3c3c55db56d' # str | Non-Employee approval item id (UUID) # str | Non-Employee approval item id (UUID) - non_employee_reject_approval_decision = '''{ + id = 'e136567de87e4d029e60b3c3c55db56d' # str | Non-Employee approval item id (UUID) # str | Non-Employee approval item id (UUID) + non_employee_reject_approval_decision = '''{ "comment" : "approved" }''' # NonEmployeeRejectApprovalDecision | - try: - # Reject a Non-Employee Request - new_non_employee_reject_approval_decision = NonEmployeeRejectApprovalDecision.from_json(non_employee_reject_approval_decision) - results = NonEmployeeLifecycleManagementApi(api_client).reject_non_employee_request(id=id, non_employee_reject_approval_decision=new_non_employee_reject_approval_decision) - # Below is a request that includes all optional parameters - # results = NonEmployeeLifecycleManagementApi(api_client).reject_non_employee_request(id, new_non_employee_reject_approval_decision) - print("The response of NonEmployeeLifecycleManagementApi->reject_non_employee_request:\n") - pprint(results) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->reject_non_employee_request: %s\n" % e) + try: + # Reject a Non-Employee Request + new_non_employee_reject_approval_decision = NonEmployeeRejectApprovalDecision.from_json(non_employee_reject_approval_decision) + results = NonEmployeeLifecycleManagementApi(api_client).reject_non_employee_request(id=id, non_employee_reject_approval_decision=new_non_employee_reject_approval_decision) + # Below is a request that includes all optional parameters + # results = NonEmployeeLifecycleManagementApi(api_client).reject_non_employee_request(id, new_non_employee_reject_approval_decision) + print("The response of NonEmployeeLifecycleManagementApi->reject_non_employee_request:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->reject_non_employee_request: %s\n" % e) - path: /non-employee-records/{id} method: PUT xCodeSample: @@ -11879,14 +11504,13 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.non_employee_record import NonEmployeeRecord from sailpoint.v2024.models.non_employee_request_body import NonEmployeeRequestBody - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | Non-employee record id (UUID) # str | Non-employee record id (UUID) - non_employee_request_body = '''{ + id = 'ef38f94347e94562b5bb8424a56397d8' # str | Non-employee record id (UUID) # str | Non-employee record id (UUID) + non_employee_request_body = '''{ "sourceId" : "2c91808568c529c60168cca6f90c1313", "firstName" : "William", "lastName" : "Smith", @@ -11900,16 +11524,16 @@ "email" : "william.smith@example.com", "startDate" : "2020-03-24T00:00:00-05:00" }''' # NonEmployeeRequestBody | Non-employee record creation request body. Attributes are restricted by user type. Owner of source can update end date. Organization admins can update all available fields. - try: - # Update Non-Employee Record - new_non_employee_request_body = NonEmployeeRequestBody.from_json(non_employee_request_body) - results = NonEmployeeLifecycleManagementApi(api_client).update_non_employee_record(id=id, non_employee_request_body=new_non_employee_request_body) - # Below is a request that includes all optional parameters - # results = NonEmployeeLifecycleManagementApi(api_client).update_non_employee_record(id, new_non_employee_request_body) - print("The response of NonEmployeeLifecycleManagementApi->update_non_employee_record:\n") - pprint(results) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->update_non_employee_record: %s\n" % e) + try: + # Update Non-Employee Record + new_non_employee_request_body = NonEmployeeRequestBody.from_json(non_employee_request_body) + results = NonEmployeeLifecycleManagementApi(api_client).update_non_employee_record(id=id, non_employee_request_body=new_non_employee_request_body) + # Below is a request that includes all optional parameters + # results = NonEmployeeLifecycleManagementApi(api_client).update_non_employee_record(id, new_non_employee_request_body) + print("The response of NonEmployeeLifecycleManagementApi->update_non_employee_record:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->update_non_employee_record: %s\n" % e) - path: /verified-domains method: POST xCodeSample: @@ -11920,27 +11544,26 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.domain_address import DomainAddress from sailpoint.v2024.models.domain_status_dto import DomainStatusDto - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - domain_address = '''{ + 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') + domain_address = '''{ "domain" : "sailpoint.com" }''' # DomainAddress | - try: - # Verify domain address via DKIM - new_domain_address = DomainAddress.from_json(domain_address) - results = NotificationsApi(api_client).create_domain_dkim(x_sail_point_experimental=x_sail_point_experimental, domain_address=new_domain_address) - # Below is a request that includes all optional parameters - # results = NotificationsApi(api_client).create_domain_dkim(x_sail_point_experimental, new_domain_address) - print("The response of NotificationsApi->create_domain_dkim:\n") - pprint(results) - except Exception as e: - print("Exception when calling NotificationsApi->create_domain_dkim: %s\n" % e) + try: + # Verify domain address via DKIM + new_domain_address = DomainAddress.from_json(domain_address) + results = NotificationsApi(api_client).create_domain_dkim(x_sail_point_experimental=x_sail_point_experimental, domain_address=new_domain_address) + # Below is a request that includes all optional parameters + # results = NotificationsApi(api_client).create_domain_dkim(x_sail_point_experimental, new_domain_address) + print("The response of NotificationsApi->create_domain_dkim:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NotificationsApi->create_domain_dkim: %s\n" % e) - path: /notification-templates method: POST xCodeSample: @@ -11950,15 +11573,14 @@ from sailpoint.v2024.api.notifications_api import NotificationsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.template_dto import TemplateDto - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - template_dto = '''{ + 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') + template_dto = '''{ "slackTemplate" : "slackTemplate", "footer" : "footer", "teamsTemplate" : "teamsTemplate", @@ -11976,16 +11598,16 @@ "id" : "c17bea3a-574d-453c-9e04-4365fbf5af0b", "key" : "cloud_manual_work_item_summary" }''' # TemplateDto | - try: - # Create Notification Template - new_template_dto = TemplateDto.from_json(template_dto) - results = NotificationsApi(api_client).create_notification_template(x_sail_point_experimental=x_sail_point_experimental, template_dto=new_template_dto) - # Below is a request that includes all optional parameters - # results = NotificationsApi(api_client).create_notification_template(x_sail_point_experimental, new_template_dto) - print("The response of NotificationsApi->create_notification_template:\n") - pprint(results) - except Exception as e: - print("Exception when calling NotificationsApi->create_notification_template: %s\n" % e) + try: + # Create Notification Template + new_template_dto = TemplateDto.from_json(template_dto) + results = NotificationsApi(api_client).create_notification_template(x_sail_point_experimental=x_sail_point_experimental, template_dto=new_template_dto) + # Below is a request that includes all optional parameters + # results = NotificationsApi(api_client).create_notification_template(x_sail_point_experimental, new_template_dto) + print("The response of NotificationsApi->create_notification_template:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NotificationsApi->create_notification_template: %s\n" % e) - path: /verified-from-addresses method: POST xCodeSample: @@ -11995,30 +11617,29 @@ from sailpoint.v2024.api.notifications_api import NotificationsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.email_status_dto import EmailStatusDto - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - email_status_dto = '''{ + 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') + email_status_dto = '''{ "isVerifiedByDomain" : false, "verificationStatus" : "PENDING", "id" : "id", "email" : "sender@example.com" }''' # EmailStatusDto | - try: - # Create Verified From Address - new_email_status_dto = EmailStatusDto.from_json(email_status_dto) - results = NotificationsApi(api_client).create_verified_from_address(x_sail_point_experimental=x_sail_point_experimental, email_status_dto=new_email_status_dto) - # Below is a request that includes all optional parameters - # results = NotificationsApi(api_client).create_verified_from_address(x_sail_point_experimental, new_email_status_dto) - print("The response of NotificationsApi->create_verified_from_address:\n") - pprint(results) - except Exception as e: - print("Exception when calling NotificationsApi->create_verified_from_address: %s\n" % e) + try: + # Create Verified From Address + new_email_status_dto = EmailStatusDto.from_json(email_status_dto) + results = NotificationsApi(api_client).create_verified_from_address(x_sail_point_experimental=x_sail_point_experimental, email_status_dto=new_email_status_dto) + # Below is a request that includes all optional parameters + # results = NotificationsApi(api_client).create_verified_from_address(x_sail_point_experimental, new_email_status_dto) + print("The response of NotificationsApi->create_verified_from_address:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NotificationsApi->create_verified_from_address: %s\n" % e) - path: /notification-templates/bulk-delete method: POST xCodeSample: @@ -12028,23 +11649,22 @@ from sailpoint.v2024.api.notifications_api import NotificationsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.template_bulk_delete_dto import TemplateBulkDeleteDto - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - template_bulk_delete_dto = '''[sailpoint.v2024.TemplateBulkDeleteDto()]''' # List[TemplateBulkDeleteDto] | - try: - # Bulk Delete Notification Templates - new_template_bulk_delete_dto = TemplateBulkDeleteDto.from_json(template_bulk_delete_dto) - NotificationsApi(api_client).delete_notification_templates_in_bulk(x_sail_point_experimental=x_sail_point_experimental, template_bulk_delete_dto=new_template_bulk_delete_dto) - # Below is a request that includes all optional parameters - # NotificationsApi(api_client).delete_notification_templates_in_bulk(x_sail_point_experimental, new_template_bulk_delete_dto) - except Exception as e: - print("Exception when calling NotificationsApi->delete_notification_templates_in_bulk: %s\n" % e) + 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') + template_bulk_delete_dto = '''[sailpoint.v2024.TemplateBulkDeleteDto()]''' # List[TemplateBulkDeleteDto] | + try: + # Bulk Delete Notification Templates + new_template_bulk_delete_dto = TemplateBulkDeleteDto.from_json(template_bulk_delete_dto) + NotificationsApi(api_client).delete_notification_templates_in_bulk(x_sail_point_experimental=x_sail_point_experimental, template_bulk_delete_dto=new_template_bulk_delete_dto) + # Below is a request that includes all optional parameters + # NotificationsApi(api_client).delete_notification_templates_in_bulk(x_sail_point_experimental, new_template_bulk_delete_dto) + except Exception as e: + print("Exception when calling NotificationsApi->delete_notification_templates_in_bulk: %s\n" % e) - path: /verified-from-addresses/{id} method: DELETE xCodeSample: @@ -12053,23 +11673,22 @@ source: | from sailpoint.v2024.api.notifications_api import NotificationsApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = 'id_example' # str | # str | - 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: - # Delete Verified From Address - - NotificationsApi(api_client).delete_verified_from_address(id=id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # NotificationsApi(api_client).delete_verified_from_address(id, x_sail_point_experimental) - except Exception as e: - print("Exception when calling NotificationsApi->delete_verified_from_address: %s\n" % e) + id = 'id_example' # str | # str | + 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: + # Delete Verified From Address + + NotificationsApi(api_client).delete_verified_from_address(id=id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # NotificationsApi(api_client).delete_verified_from_address(id, x_sail_point_experimental) + except Exception as e: + print("Exception when calling NotificationsApi->delete_verified_from_address: %s\n" % e) - path: /verified-domains method: GET xCodeSample: @@ -12079,24 +11698,23 @@ from sailpoint.v2024.api.notifications_api import NotificationsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.dkim_attributes import DkimAttributes - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - try: - # Get DKIM Attributes - - results = NotificationsApi(api_client).get_dkim_attributes(x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = NotificationsApi(api_client).get_dkim_attributes(x_sail_point_experimental) - print("The response of NotificationsApi->get_dkim_attributes:\n") - pprint(results) - except Exception as e: - print("Exception when calling NotificationsApi->get_dkim_attributes: %s\n" % e) + 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 DKIM Attributes + + results = NotificationsApi(api_client).get_dkim_attributes(x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = NotificationsApi(api_client).get_dkim_attributes(x_sail_point_experimental) + print("The response of NotificationsApi->get_dkim_attributes:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NotificationsApi->get_dkim_attributes: %s\n" % e) - path: /mail-from-attributes/{identity} method: GET xCodeSample: @@ -12106,25 +11724,24 @@ from sailpoint.v2024.api.notifications_api import NotificationsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.mail_from_attributes import MailFromAttributes - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = 'bobsmith@sailpoint.com' # str | Returns the MX and TXT record to be put in your DNS, as well as the MAIL FROM domain status # str | Returns the MX and TXT record to be put in your DNS, as well as the MAIL FROM domain status - 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 MAIL FROM Attributes - - results = NotificationsApi(api_client).get_mail_from_attributes(id=id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = NotificationsApi(api_client).get_mail_from_attributes(id, x_sail_point_experimental) - print("The response of NotificationsApi->get_mail_from_attributes:\n") - pprint(results) - except Exception as e: - print("Exception when calling NotificationsApi->get_mail_from_attributes: %s\n" % e) + id = 'bobsmith@sailpoint.com' # str | Returns the MX and TXT record to be put in your DNS, as well as the MAIL FROM domain status # str | Returns the MX and TXT record to be put in your DNS, as well as the MAIL FROM domain status + 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 MAIL FROM Attributes + + results = NotificationsApi(api_client).get_mail_from_attributes(id=id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = NotificationsApi(api_client).get_mail_from_attributes(id, x_sail_point_experimental) + print("The response of NotificationsApi->get_mail_from_attributes:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NotificationsApi->get_mail_from_attributes: %s\n" % e) - path: /notification-templates/{id} method: GET xCodeSample: @@ -12134,25 +11751,24 @@ from sailpoint.v2024.api.notifications_api import NotificationsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.template_dto import TemplateDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Id of the Notification Template # str | Id of the Notification Template - 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 Notification Template By Id - - results = NotificationsApi(api_client).get_notification_template(id=id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = NotificationsApi(api_client).get_notification_template(id, x_sail_point_experimental) - print("The response of NotificationsApi->get_notification_template:\n") - pprint(results) - except Exception as e: - print("Exception when calling NotificationsApi->get_notification_template: %s\n" % e) + id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Id of the Notification Template # str | Id of the Notification Template + 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 Notification Template By Id + + results = NotificationsApi(api_client).get_notification_template(id=id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = NotificationsApi(api_client).get_notification_template(id, x_sail_point_experimental) + print("The response of NotificationsApi->get_notification_template:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NotificationsApi->get_notification_template: %s\n" % e) - path: /notification-template-context method: GET xCodeSample: @@ -12162,24 +11778,23 @@ from sailpoint.v2024.api.notifications_api import NotificationsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.notification_template_context import NotificationTemplateContext - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - try: - # Get Notification Template Context - - results = NotificationsApi(api_client).get_notifications_template_context(x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = NotificationsApi(api_client).get_notifications_template_context(x_sail_point_experimental) - print("The response of NotificationsApi->get_notifications_template_context:\n") - pprint(results) - except Exception as e: - print("Exception when calling NotificationsApi->get_notifications_template_context: %s\n" % e) + 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 Notification Template Context + + results = NotificationsApi(api_client).get_notifications_template_context(x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = NotificationsApi(api_client).get_notifications_template_context(x_sail_point_experimental) + print("The response of NotificationsApi->get_notifications_template_context:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NotificationsApi->get_notifications_template_context: %s\n" % e) - path: /verified-from-addresses method: GET xCodeSample: @@ -12189,29 +11804,28 @@ from sailpoint.v2024.api.notifications_api import NotificationsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.email_status_dto import EmailStatusDto - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (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 = 'email eq \"john.doe@company.com\"' # 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: **email**: *eq, ge, le, 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: **email**: *eq, ge, le, sw* (optional) - sorters = 'email' # 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: **email** (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: **email** (optional) - try: - # List From Addresses - - results = NotificationsApi(api_client).list_from_addresses(x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = NotificationsApi(api_client).list_from_addresses(x_sail_point_experimental, limit, offset, count, filters, sorters) - print("The response of NotificationsApi->list_from_addresses:\n") - pprint(results) - except Exception as e: - print("Exception when calling NotificationsApi->list_from_addresses: %s\n" % e) + 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') + 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 = 'email eq \"john.doe@company.com\"' # 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: **email**: *eq, ge, le, 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: **email**: *eq, ge, le, sw* (optional) + sorters = 'email' # 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: **email** (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: **email** (optional) + try: + # List From Addresses + + results = NotificationsApi(api_client).list_from_addresses(x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = NotificationsApi(api_client).list_from_addresses(x_sail_point_experimental, limit, offset, count, filters, sorters) + print("The response of NotificationsApi->list_from_addresses:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NotificationsApi->list_from_addresses: %s\n" % e) - path: /notification-preferences/{key} method: GET xCodeSample: @@ -12221,24 +11835,23 @@ from sailpoint.v2024.api.notifications_api import NotificationsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.preferences_dto import PreferencesDto - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - try: - # List Notification Preferences for tenant. - - results = NotificationsApi(api_client).list_notification_preferences(x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = NotificationsApi(api_client).list_notification_preferences(x_sail_point_experimental) - print("The response of NotificationsApi->list_notification_preferences:\n") - pprint(results) - except Exception as e: - print("Exception when calling NotificationsApi->list_notification_preferences: %s\n" % e) + 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: + # List Notification Preferences for tenant. + + results = NotificationsApi(api_client).list_notification_preferences(x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = NotificationsApi(api_client).list_notification_preferences(x_sail_point_experimental) + print("The response of NotificationsApi->list_notification_preferences:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NotificationsApi->list_notification_preferences: %s\n" % e) - path: /notification-template-defaults method: GET xCodeSample: @@ -12248,27 +11861,26 @@ from sailpoint.v2024.api.notifications_api import NotificationsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.template_dto_default import TemplateDtoDefault - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (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) - filters = 'key eq \"cloud_manual_work_item_summary\"' # 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: **key**: *eq, in, sw* **medium**: *eq, sw* **locale**: *eq, 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: **key**: *eq, in, sw* **medium**: *eq, sw* **locale**: *eq, sw* (optional) - try: - # List Notification Template Defaults - - results = NotificationsApi(api_client).list_notification_template_defaults(x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = NotificationsApi(api_client).list_notification_template_defaults(x_sail_point_experimental, limit, offset, filters) - print("The response of NotificationsApi->list_notification_template_defaults:\n") - pprint(results) - except Exception as e: - print("Exception when calling NotificationsApi->list_notification_template_defaults: %s\n" % e) + 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') + 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) + filters = 'key eq \"cloud_manual_work_item_summary\"' # 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: **key**: *eq, in, sw* **medium**: *eq, sw* **locale**: *eq, 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: **key**: *eq, in, sw* **medium**: *eq, sw* **locale**: *eq, sw* (optional) + try: + # List Notification Template Defaults + + results = NotificationsApi(api_client).list_notification_template_defaults(x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = NotificationsApi(api_client).list_notification_template_defaults(x_sail_point_experimental, limit, offset, filters) + print("The response of NotificationsApi->list_notification_template_defaults:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NotificationsApi->list_notification_template_defaults: %s\n" % e) - path: /notification-templates method: GET xCodeSample: @@ -12278,27 +11890,26 @@ from sailpoint.v2024.api.notifications_api import NotificationsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.template_dto import TemplateDto - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (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) - filters = 'medium eq \"EMAIL\"' # 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: **key**: *eq, in, sw* **medium**: *eq, sw* **locale**: *eq, 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: **key**: *eq, in, sw* **medium**: *eq, sw* **locale**: *eq, sw* (optional) - try: - # List Notification Templates - - results = NotificationsApi(api_client).list_notification_templates(x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = NotificationsApi(api_client).list_notification_templates(x_sail_point_experimental, limit, offset, filters) - print("The response of NotificationsApi->list_notification_templates:\n") - pprint(results) - except Exception as e: - print("Exception when calling NotificationsApi->list_notification_templates: %s\n" % e) + 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') + 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) + filters = 'medium eq \"EMAIL\"' # 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: **key**: *eq, in, sw* **medium**: *eq, sw* **locale**: *eq, 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: **key**: *eq, in, sw* **medium**: *eq, sw* **locale**: *eq, sw* (optional) + try: + # List Notification Templates + + results = NotificationsApi(api_client).list_notification_templates(x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = NotificationsApi(api_client).list_notification_templates(x_sail_point_experimental, limit, offset, filters) + print("The response of NotificationsApi->list_notification_templates:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NotificationsApi->list_notification_templates: %s\n" % e) - path: /mail-from-attributes method: PUT xCodeSample: @@ -12309,28 +11920,27 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.mail_from_attributes import MailFromAttributes from sailpoint.v2024.models.mail_from_attributes_dto import MailFromAttributesDto - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - mail_from_attributes_dto = '''{ + 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') + mail_from_attributes_dto = '''{ "identity" : "BobSmith@sailpoint.com", "mailFromDomain" : "example.sailpoint.com" }''' # MailFromAttributesDto | - try: - # Change MAIL FROM domain - new_mail_from_attributes_dto = MailFromAttributesDto.from_json(mail_from_attributes_dto) - results = NotificationsApi(api_client).put_mail_from_attributes(x_sail_point_experimental=x_sail_point_experimental, mail_from_attributes_dto=new_mail_from_attributes_dto) - # Below is a request that includes all optional parameters - # results = NotificationsApi(api_client).put_mail_from_attributes(x_sail_point_experimental, new_mail_from_attributes_dto) - print("The response of NotificationsApi->put_mail_from_attributes:\n") - pprint(results) - except Exception as e: - print("Exception when calling NotificationsApi->put_mail_from_attributes: %s\n" % e) + try: + # Change MAIL FROM domain + new_mail_from_attributes_dto = MailFromAttributesDto.from_json(mail_from_attributes_dto) + results = NotificationsApi(api_client).put_mail_from_attributes(x_sail_point_experimental=x_sail_point_experimental, mail_from_attributes_dto=new_mail_from_attributes_dto) + # Below is a request that includes all optional parameters + # results = NotificationsApi(api_client).put_mail_from_attributes(x_sail_point_experimental, new_mail_from_attributes_dto) + print("The response of NotificationsApi->put_mail_from_attributes:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NotificationsApi->put_mail_from_attributes: %s\n" % e) - path: /send-test-notification method: POST xCodeSample: @@ -12340,27 +11950,26 @@ from sailpoint.v2024.api.notifications_api import NotificationsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.send_test_notification_request_dto import SendTestNotificationRequestDto - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - send_test_notification_request_dto = '''{ + 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') + send_test_notification_request_dto = '''{ "context" : "{}", "medium" : "EMAIL", "key" : "cloud_manual_work_item_summary" }''' # SendTestNotificationRequestDto | - try: - # Send Test Notification - new_send_test_notification_request_dto = SendTestNotificationRequestDto.from_json(send_test_notification_request_dto) - NotificationsApi(api_client).send_test_notification(x_sail_point_experimental=x_sail_point_experimental, send_test_notification_request_dto=new_send_test_notification_request_dto) - # Below is a request that includes all optional parameters - # NotificationsApi(api_client).send_test_notification(x_sail_point_experimental, new_send_test_notification_request_dto) - except Exception as e: - print("Exception when calling NotificationsApi->send_test_notification: %s\n" % e) + try: + # Send Test Notification + new_send_test_notification_request_dto = SendTestNotificationRequestDto.from_json(send_test_notification_request_dto) + NotificationsApi(api_client).send_test_notification(x_sail_point_experimental=x_sail_point_experimental, send_test_notification_request_dto=new_send_test_notification_request_dto) + # Below is a request that includes all optional parameters + # NotificationsApi(api_client).send_test_notification(x_sail_point_experimental, new_send_test_notification_request_dto) + except Exception as e: + print("Exception when calling NotificationsApi->send_test_notification: %s\n" % e) - path: /oauth-clients method: POST xCodeSample: @@ -12371,13 +11980,12 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.create_o_auth_client_request import CreateOAuthClientRequest from sailpoint.v2024.models.create_o_auth_client_response import CreateOAuthClientResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - create_o_auth_client_request = '''{ + create_o_auth_client_request = '''{ "internal" : false, "businessName" : "Acme-Solar", "description" : "An API client used for the authorization_code, refresh_token, and client_credentials flows", @@ -12394,16 +12002,16 @@ "name" : "Demo API Client", "claimsSupported" : false }''' # CreateOAuthClientRequest | - try: - # Create OAuth Client - new_create_o_auth_client_request = CreateOAuthClientRequest.from_json(create_o_auth_client_request) - results = OAuthClientsApi(api_client).create_oauth_client(create_o_auth_client_request=new_create_o_auth_client_request) - # Below is a request that includes all optional parameters - # results = OAuthClientsApi(api_client).create_oauth_client(new_create_o_auth_client_request) - print("The response of OAuthClientsApi->create_oauth_client:\n") - pprint(results) - except Exception as e: - print("Exception when calling OAuthClientsApi->create_oauth_client: %s\n" % e) + try: + # Create OAuth Client + new_create_o_auth_client_request = CreateOAuthClientRequest.from_json(create_o_auth_client_request) + results = OAuthClientsApi(api_client).create_oauth_client(create_o_auth_client_request=new_create_o_auth_client_request) + # Below is a request that includes all optional parameters + # results = OAuthClientsApi(api_client).create_oauth_client(new_create_o_auth_client_request) + print("The response of OAuthClientsApi->create_oauth_client:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling OAuthClientsApi->create_oauth_client: %s\n" % e) - path: /oauth-clients/{id} method: DELETE xCodeSample: @@ -12412,21 +12020,20 @@ source: | from sailpoint.v2024.api.o_auth_clients_api import OAuthClientsApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The OAuth client id # str | The OAuth client id - try: - # Delete OAuth Client - - OAuthClientsApi(api_client).delete_oauth_client(id=id) - # Below is a request that includes all optional parameters - # OAuthClientsApi(api_client).delete_oauth_client(id) - except Exception as e: - print("Exception when calling OAuthClientsApi->delete_oauth_client: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The OAuth client id # str | The OAuth client id + try: + # Delete OAuth Client + + OAuthClientsApi(api_client).delete_oauth_client(id=id) + # Below is a request that includes all optional parameters + # OAuthClientsApi(api_client).delete_oauth_client(id) + except Exception as e: + print("Exception when calling OAuthClientsApi->delete_oauth_client: %s\n" % e) - path: /oauth-clients/{id} method: GET xCodeSample: @@ -12436,23 +12043,22 @@ from sailpoint.v2024.api.o_auth_clients_api import OAuthClientsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.get_o_auth_client_response import GetOAuthClientResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The OAuth client id # str | The OAuth client id - try: - # Get OAuth Client - - results = OAuthClientsApi(api_client).get_oauth_client(id=id) - # Below is a request that includes all optional parameters - # results = OAuthClientsApi(api_client).get_oauth_client(id) - print("The response of OAuthClientsApi->get_oauth_client:\n") - pprint(results) - except Exception as e: - print("Exception when calling OAuthClientsApi->get_oauth_client: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The OAuth client id # str | The OAuth client id + try: + # Get OAuth Client + + results = OAuthClientsApi(api_client).get_oauth_client(id=id) + # Below is a request that includes all optional parameters + # results = OAuthClientsApi(api_client).get_oauth_client(id) + print("The response of OAuthClientsApi->get_oauth_client:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling OAuthClientsApi->get_oauth_client: %s\n" % e) - path: /oauth-clients method: GET xCodeSample: @@ -12462,23 +12068,22 @@ from sailpoint.v2024.api.o_auth_clients_api import OAuthClientsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.get_o_auth_client_response import GetOAuthClientResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - filters = 'lastUsed le 2023-02-05T10:59:27.214Z' # 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: **lastUsed**: *le, isnull* (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: **lastUsed**: *le, isnull* (optional) - try: - # List OAuth Clients - - results = OAuthClientsApi(api_client).list_oauth_clients() - # Below is a request that includes all optional parameters - # results = OAuthClientsApi(api_client).list_oauth_clients(filters) - print("The response of OAuthClientsApi->list_oauth_clients:\n") - pprint(results) - except Exception as e: - print("Exception when calling OAuthClientsApi->list_oauth_clients: %s\n" % e) + filters = 'lastUsed le 2023-02-05T10:59:27.214Z' # 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: **lastUsed**: *le, isnull* (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: **lastUsed**: *le, isnull* (optional) + try: + # List OAuth Clients + + results = OAuthClientsApi(api_client).list_oauth_clients() + # Below is a request that includes all optional parameters + # results = OAuthClientsApi(api_client).list_oauth_clients(filters) + print("The response of OAuthClientsApi->list_oauth_clients:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling OAuthClientsApi->list_oauth_clients: %s\n" % e) - path: /oauth-clients/{id} method: PATCH xCodeSample: @@ -12489,24 +12094,23 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.get_o_auth_client_response import GetOAuthClientResponse from sailpoint.v2024.models.json_patch_operation import JsonPatchOperation - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The OAuth client id # str | The OAuth client id - json_patch_operation = '''[{op=replace, path=/strongAuthSupported, value=true}, {op=replace, path=/businessName, value=acme-solar}]''' # List[JsonPatchOperation] | A list of OAuth client update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * tenant * businessName * homepageUrl * name * description * accessTokenValiditySeconds * refreshTokenValiditySeconds * redirectUris * grantTypes * accessType * enabled * strongAuthSupported * claimsSupported - try: - # Patch OAuth Client - new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) - results = OAuthClientsApi(api_client).patch_oauth_client(id=id, json_patch_operation=new_json_patch_operation) - # Below is a request that includes all optional parameters - # results = OAuthClientsApi(api_client).patch_oauth_client(id, new_json_patch_operation) - print("The response of OAuthClientsApi->patch_oauth_client:\n") - pprint(results) - except Exception as e: - print("Exception when calling OAuthClientsApi->patch_oauth_client: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The OAuth client id # str | The OAuth client id + json_patch_operation = '''[{op=replace, path=/strongAuthSupported, value=true}, {op=replace, path=/businessName, value=acme-solar}]''' # List[JsonPatchOperation] | A list of OAuth client update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * tenant * businessName * homepageUrl * name * description * accessTokenValiditySeconds * refreshTokenValiditySeconds * redirectUris * grantTypes * accessType * enabled * strongAuthSupported * claimsSupported + try: + # Patch OAuth Client + new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) + results = OAuthClientsApi(api_client).patch_oauth_client(id=id, json_patch_operation=new_json_patch_operation) + # Below is a request that includes all optional parameters + # results = OAuthClientsApi(api_client).patch_oauth_client(id, new_json_patch_operation) + print("The response of OAuthClientsApi->patch_oauth_client:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling OAuthClientsApi->patch_oauth_client: %s\n" % e) - path: /org-config method: GET xCodeSample: @@ -12516,24 +12120,23 @@ from sailpoint.v2024.api.org_config_api import OrgConfigApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.org_config import OrgConfig - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - try: - # Get Org Config Settings - - results = OrgConfigApi(api_client).get_org_config(x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = OrgConfigApi(api_client).get_org_config(x_sail_point_experimental) - print("The response of OrgConfigApi->get_org_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling OrgConfigApi->get_org_config: %s\n" % e) + 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 Org Config Settings + + results = OrgConfigApi(api_client).get_org_config(x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = OrgConfigApi(api_client).get_org_config(x_sail_point_experimental) + print("The response of OrgConfigApi->get_org_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling OrgConfigApi->get_org_config: %s\n" % e) - path: /org-config/valid-time-zones method: GET xCodeSample: @@ -12542,27 +12145,26 @@ source: | from sailpoint.v2024.api.org_config_api import OrgConfigApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - limit = 50 # int | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) # int | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) - 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) - try: - # Get Valid Time Zones - - results = OrgConfigApi(api_client).get_valid_time_zones(x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = OrgConfigApi(api_client).get_valid_time_zones(x_sail_point_experimental, limit, offset, count) - print("The response of OrgConfigApi->get_valid_time_zones:\n") - pprint(results) - except Exception as e: - print("Exception when calling OrgConfigApi->get_valid_time_zones: %s\n" % e) + 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') + limit = 50 # int | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) # int | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) + 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) + try: + # Get Valid Time Zones + + results = OrgConfigApi(api_client).get_valid_time_zones(x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = OrgConfigApi(api_client).get_valid_time_zones(x_sail_point_experimental, limit, offset, count) + print("The response of OrgConfigApi->get_valid_time_zones:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling OrgConfigApi->get_valid_time_zones: %s\n" % e) - path: /org-config method: PATCH xCodeSample: @@ -12573,25 +12175,24 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.json_patch_operation import JsonPatchOperation from sailpoint.v2024.models.org_config import OrgConfig - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - json_patch_operation = '''[{op=replace, path=/timeZone, value=America/Toronto}]''' # List[JsonPatchOperation] | A list of schema attribute update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. - try: - # Patch Org Config - new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) - results = OrgConfigApi(api_client).patch_org_config(x_sail_point_experimental=x_sail_point_experimental, json_patch_operation=new_json_patch_operation) - # Below is a request that includes all optional parameters - # results = OrgConfigApi(api_client).patch_org_config(x_sail_point_experimental, new_json_patch_operation) - print("The response of OrgConfigApi->patch_org_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling OrgConfigApi->patch_org_config: %s\n" % e) + 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') + json_patch_operation = '''[{op=replace, path=/timeZone, value=America/Toronto}]''' # List[JsonPatchOperation] | A list of schema attribute update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. + try: + # Patch Org Config + new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) + results = OrgConfigApi(api_client).patch_org_config(x_sail_point_experimental=x_sail_point_experimental, json_patch_operation=new_json_patch_operation) + # Below is a request that includes all optional parameters + # results = OrgConfigApi(api_client).patch_org_config(x_sail_point_experimental, new_json_patch_operation) + print("The response of OrgConfigApi->patch_org_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling OrgConfigApi->patch_org_config: %s\n" % e) - path: /password-org-config method: POST xCodeSample: @@ -12601,28 +12202,27 @@ from sailpoint.v2024.api.password_configuration_api import PasswordConfigurationApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.password_org_config import PasswordOrgConfig - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - password_org_config = '''{ + password_org_config = '''{ "digitTokenLength" : 9, "digitTokenEnabled" : true, "digitTokenDurationMinutes" : 10, "customInstructionsEnabled" : true }''' # PasswordOrgConfig | - try: - # Create Password Org Config - new_password_org_config = PasswordOrgConfig.from_json(password_org_config) - results = PasswordConfigurationApi(api_client).create_password_org_config(password_org_config=new_password_org_config) - # Below is a request that includes all optional parameters - # results = PasswordConfigurationApi(api_client).create_password_org_config(new_password_org_config) - print("The response of PasswordConfigurationApi->create_password_org_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling PasswordConfigurationApi->create_password_org_config: %s\n" % e) + try: + # Create Password Org Config + new_password_org_config = PasswordOrgConfig.from_json(password_org_config) + results = PasswordConfigurationApi(api_client).create_password_org_config(password_org_config=new_password_org_config) + # Below is a request that includes all optional parameters + # results = PasswordConfigurationApi(api_client).create_password_org_config(new_password_org_config) + print("The response of PasswordConfigurationApi->create_password_org_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling PasswordConfigurationApi->create_password_org_config: %s\n" % e) - path: /password-org-config method: GET xCodeSample: @@ -12632,22 +12232,21 @@ from sailpoint.v2024.api.password_configuration_api import PasswordConfigurationApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.password_org_config import PasswordOrgConfig - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - try: - # Get Password Org Config - - results = PasswordConfigurationApi(api_client).get_password_org_config() - # Below is a request that includes all optional parameters - # results = PasswordConfigurationApi(api_client).get_password_org_config() - print("The response of PasswordConfigurationApi->get_password_org_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling PasswordConfigurationApi->get_password_org_config: %s\n" % e) + try: + # Get Password Org Config + + results = PasswordConfigurationApi(api_client).get_password_org_config() + # Below is a request that includes all optional parameters + # results = PasswordConfigurationApi(api_client).get_password_org_config() + print("The response of PasswordConfigurationApi->get_password_org_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling PasswordConfigurationApi->get_password_org_config: %s\n" % e) - path: /password-org-config method: PUT xCodeSample: @@ -12657,28 +12256,27 @@ from sailpoint.v2024.api.password_configuration_api import PasswordConfigurationApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.password_org_config import PasswordOrgConfig - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - password_org_config = '''{ + password_org_config = '''{ "digitTokenLength" : 9, "digitTokenEnabled" : true, "digitTokenDurationMinutes" : 10, "customInstructionsEnabled" : true }''' # PasswordOrgConfig | - try: - # Update Password Org Config - new_password_org_config = PasswordOrgConfig.from_json(password_org_config) - results = PasswordConfigurationApi(api_client).put_password_org_config(password_org_config=new_password_org_config) - # Below is a request that includes all optional parameters - # results = PasswordConfigurationApi(api_client).put_password_org_config(new_password_org_config) - print("The response of PasswordConfigurationApi->put_password_org_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling PasswordConfigurationApi->put_password_org_config: %s\n" % e) + try: + # Update Password Org Config + new_password_org_config = PasswordOrgConfig.from_json(password_org_config) + results = PasswordConfigurationApi(api_client).put_password_org_config(password_org_config=new_password_org_config) + # Below is a request that includes all optional parameters + # results = PasswordConfigurationApi(api_client).put_password_org_config(new_password_org_config) + print("The response of PasswordConfigurationApi->put_password_org_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling PasswordConfigurationApi->put_password_org_config: %s\n" % e) - path: /password-dictionary method: GET xCodeSample: @@ -12687,22 +12285,21 @@ source: | from sailpoint.v2024.api.password_dictionary_api import PasswordDictionaryApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - try: - # Get Password Dictionary - - results = PasswordDictionaryApi(api_client).get_password_dictionary() - # Below is a request that includes all optional parameters - # results = PasswordDictionaryApi(api_client).get_password_dictionary() - print("The response of PasswordDictionaryApi->get_password_dictionary:\n") - pprint(results) - except Exception as e: - print("Exception when calling PasswordDictionaryApi->get_password_dictionary: %s\n" % e) + try: + # Get Password Dictionary + + results = PasswordDictionaryApi(api_client).get_password_dictionary() + # Below is a request that includes all optional parameters + # results = PasswordDictionaryApi(api_client).get_password_dictionary() + print("The response of PasswordDictionaryApi->get_password_dictionary:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling PasswordDictionaryApi->get_password_dictionary: %s\n" % e) - path: /password-dictionary method: PUT xCodeSample: @@ -12711,21 +12308,20 @@ source: | from sailpoint.v2024.api.password_dictionary_api import PasswordDictionaryApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - file = None # bytearray | (optional) # bytearray | (optional) - try: - # Update Password Dictionary - - PasswordDictionaryApi(api_client).put_password_dictionary() - # Below is a request that includes all optional parameters - # PasswordDictionaryApi(api_client).put_password_dictionary(file) - except Exception as e: - print("Exception when calling PasswordDictionaryApi->put_password_dictionary: %s\n" % e) + file = None # bytearray | (optional) # bytearray | (optional) + try: + # Update Password Dictionary + + PasswordDictionaryApi(api_client).put_password_dictionary() + # Below is a request that includes all optional parameters + # PasswordDictionaryApi(api_client).put_password_dictionary(file) + except Exception as e: + print("Exception when calling PasswordDictionaryApi->put_password_dictionary: %s\n" % e) - path: /generate-password-reset-token/digit method: POST xCodeSample: @@ -12736,29 +12332,28 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.password_digit_token import PasswordDigitToken from sailpoint.v2024.models.password_digit_token_reset import PasswordDigitTokenReset - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - password_digit_token_reset = '''{ + 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') + password_digit_token_reset = '''{ "durationMinutes" : 5, "length" : 8, "userId" : "Abby.Smith" }''' # PasswordDigitTokenReset | - try: - # Generate a digit token - new_password_digit_token_reset = PasswordDigitTokenReset.from_json(password_digit_token_reset) - results = PasswordManagementApi(api_client).create_digit_token(x_sail_point_experimental=x_sail_point_experimental, password_digit_token_reset=new_password_digit_token_reset) - # Below is a request that includes all optional parameters - # results = PasswordManagementApi(api_client).create_digit_token(x_sail_point_experimental, new_password_digit_token_reset) - print("The response of PasswordManagementApi->create_digit_token:\n") - pprint(results) - except Exception as e: - print("Exception when calling PasswordManagementApi->create_digit_token: %s\n" % e) + try: + # Generate a digit token + new_password_digit_token_reset = PasswordDigitTokenReset.from_json(password_digit_token_reset) + results = PasswordManagementApi(api_client).create_digit_token(x_sail_point_experimental=x_sail_point_experimental, password_digit_token_reset=new_password_digit_token_reset) + # Below is a request that includes all optional parameters + # results = PasswordManagementApi(api_client).create_digit_token(x_sail_point_experimental, new_password_digit_token_reset) + print("The response of PasswordManagementApi->create_digit_token:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling PasswordManagementApi->create_digit_token: %s\n" % e) - path: /password-change-status/{id} method: GET xCodeSample: @@ -12768,23 +12363,22 @@ from sailpoint.v2024.api.password_management_api import PasswordManagementApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.password_status import PasswordStatus - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '089899f13a8f4da7824996191587bab9' # str | Password change request ID # str | Password change request ID - try: - # Get Password Change Request Status - - results = PasswordManagementApi(api_client).get_password_change_status(id=id) - # Below is a request that includes all optional parameters - # results = PasswordManagementApi(api_client).get_password_change_status(id) - print("The response of PasswordManagementApi->get_password_change_status:\n") - pprint(results) - except Exception as e: - print("Exception when calling PasswordManagementApi->get_password_change_status: %s\n" % e) + id = '089899f13a8f4da7824996191587bab9' # str | Password change request ID # str | Password change request ID + try: + # Get Password Change Request Status + + results = PasswordManagementApi(api_client).get_password_change_status(id=id) + # Below is a request that includes all optional parameters + # results = PasswordManagementApi(api_client).get_password_change_status(id) + print("The response of PasswordManagementApi->get_password_change_status:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling PasswordManagementApi->get_password_change_status: %s\n" % e) - path: /query-password-info method: POST xCodeSample: @@ -12795,26 +12389,25 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.password_info import PasswordInfo from sailpoint.v2024.models.password_info_query_dto import PasswordInfoQueryDTO - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - password_info_query_dto = '''{ + password_info_query_dto = '''{ "sourceName" : "My-AD", "userName" : "Abby.Smith" }''' # PasswordInfoQueryDTO | - try: - # Query Password Info - new_password_info_query_dto = PasswordInfoQueryDto.from_json(password_info_query_dto) - results = PasswordManagementApi(api_client).query_password_info(password_info_query_dto=new_password_info_query_dto) - # Below is a request that includes all optional parameters - # results = PasswordManagementApi(api_client).query_password_info(new_password_info_query_dto) - print("The response of PasswordManagementApi->query_password_info:\n") - pprint(results) - except Exception as e: - print("Exception when calling PasswordManagementApi->query_password_info: %s\n" % e) + try: + # Query Password Info + new_password_info_query_dto = PasswordInfoQueryDto.from_json(password_info_query_dto) + results = PasswordManagementApi(api_client).query_password_info(password_info_query_dto=new_password_info_query_dto) + # Below is a request that includes all optional parameters + # results = PasswordManagementApi(api_client).query_password_info(new_password_info_query_dto) + print("The response of PasswordManagementApi->query_password_info:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling PasswordManagementApi->query_password_info: %s\n" % e) - path: /set-password method: POST xCodeSample: @@ -12825,29 +12418,28 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.password_change_request import PasswordChangeRequest from sailpoint.v2024.models.password_change_response import PasswordChangeResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - password_change_request = '''{ + password_change_request = '''{ "sourceId" : "8a807d4c73c545510173c545d4b60246", "accountId" : "CN=Abby Smith,OU=Austin,OU=Americas,OU=Demo,DC=seri,DC=acme,DC=com", "identityId" : "8a807d4c73c545510173c545f0a002ff", "publicKeyId" : "YWQ2NjQ4MTItZjY0NC00MWExLWFjMjktOGNmMzU3Y2VlNjk2", "encryptedPassword" : "XzN+YwKgr2C+InkMYFMBG3UtjMEw5ZIql/XFlXo8cJNeslmkplx6vn4kd4/43IF9STBk5RnzR6XmjpEO+FwHDoiBwYZAkAZK/Iswxk4OdybG6Y4MStJCOCiK8osKr35IMMSV/mbO4wAeltoCk7daTWzTGLiI6UaT5tf+F2EgdjJZ7YqM8W8r7aUWsm3p2Xt01Y46ZRx0QaM91QruiIx2rECFT2pUO0wr+7oQ77jypATyGWRtADsu3YcvCk/6U5MqCnXMzKBcRas7NnZdSL/d5H1GglVGz3VLPMaivG4/oL4chOMmFCRl/zVsGxZ9RhN8rxsRGFFKn+rhExTi+bax3A==" }''' # PasswordChangeRequest | - try: - # Set Identity's Password - new_password_change_request = PasswordChangeRequest.from_json(password_change_request) - results = PasswordManagementApi(api_client).set_password(password_change_request=new_password_change_request) - # Below is a request that includes all optional parameters - # results = PasswordManagementApi(api_client).set_password(new_password_change_request) - print("The response of PasswordManagementApi->set_password:\n") - pprint(results) - except Exception as e: - print("Exception when calling PasswordManagementApi->set_password: %s\n" % e) + try: + # Set Identity's Password + new_password_change_request = PasswordChangeRequest.from_json(password_change_request) + results = PasswordManagementApi(api_client).set_password(password_change_request=new_password_change_request) + # Below is a request that includes all optional parameters + # results = PasswordManagementApi(api_client).set_password(new_password_change_request) + print("The response of PasswordManagementApi->set_password:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling PasswordManagementApi->set_password: %s\n" % e) - path: /password-policies method: POST xCodeSample: @@ -12857,13 +12449,12 @@ from sailpoint.v2024.api.password_policies_api import PasswordPoliciesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.password_policy_v3_dto import PasswordPolicyV3Dto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - password_policy_v3_dto = '''{ + password_policy_v3_dto = '''{ "validateAgainstAccountName" : true, "minLength" : 8, "description" : "Information about the Password Policy", @@ -12896,16 +12487,16 @@ "name" : "PasswordPolicy Example", "maxLength" : 25 }''' # PasswordPolicyV3Dto | - try: - # Create Password Policy - new_password_policy_v3_dto = PasswordPolicyV3Dto.from_json(password_policy_v3_dto) - results = PasswordPoliciesApi(api_client).create_password_policy(password_policy_v3_dto=new_password_policy_v3_dto) - # Below is a request that includes all optional parameters - # results = PasswordPoliciesApi(api_client).create_password_policy(new_password_policy_v3_dto) - print("The response of PasswordPoliciesApi->create_password_policy:\n") - pprint(results) - except Exception as e: - print("Exception when calling PasswordPoliciesApi->create_password_policy: %s\n" % e) + try: + # Create Password Policy + new_password_policy_v3_dto = PasswordPolicyV3Dto.from_json(password_policy_v3_dto) + results = PasswordPoliciesApi(api_client).create_password_policy(password_policy_v3_dto=new_password_policy_v3_dto) + # Below is a request that includes all optional parameters + # results = PasswordPoliciesApi(api_client).create_password_policy(new_password_policy_v3_dto) + print("The response of PasswordPoliciesApi->create_password_policy:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling PasswordPoliciesApi->create_password_policy: %s\n" % e) - path: /password-policies/{id} method: DELETE xCodeSample: @@ -12914,21 +12505,20 @@ source: | from sailpoint.v2024.api.password_policies_api import PasswordPoliciesApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ff808081838d9e9d01838da6a03e0002' # str | The ID of password policy to delete. # str | The ID of password policy to delete. - try: - # Delete Password Policy by ID - - PasswordPoliciesApi(api_client).delete_password_policy(id=id) - # Below is a request that includes all optional parameters - # PasswordPoliciesApi(api_client).delete_password_policy(id) - except Exception as e: - print("Exception when calling PasswordPoliciesApi->delete_password_policy: %s\n" % e) + id = 'ff808081838d9e9d01838da6a03e0002' # str | The ID of password policy to delete. # str | The ID of password policy to delete. + try: + # Delete Password Policy by ID + + PasswordPoliciesApi(api_client).delete_password_policy(id=id) + # Below is a request that includes all optional parameters + # PasswordPoliciesApi(api_client).delete_password_policy(id) + except Exception as e: + print("Exception when calling PasswordPoliciesApi->delete_password_policy: %s\n" % e) - path: /password-policies/{id} method: GET xCodeSample: @@ -12938,23 +12528,22 @@ from sailpoint.v2024.api.password_policies_api import PasswordPoliciesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.password_policy_v3_dto import PasswordPolicyV3Dto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ff808081838d9e9d01838da6a03e0005' # str | The ID of password policy to retrieve. # str | The ID of password policy to retrieve. - try: - # Get Password Policy by ID - - results = PasswordPoliciesApi(api_client).get_password_policy_by_id(id=id) - # Below is a request that includes all optional parameters - # results = PasswordPoliciesApi(api_client).get_password_policy_by_id(id) - print("The response of PasswordPoliciesApi->get_password_policy_by_id:\n") - pprint(results) - except Exception as e: - print("Exception when calling PasswordPoliciesApi->get_password_policy_by_id: %s\n" % e) + id = 'ff808081838d9e9d01838da6a03e0005' # str | The ID of password policy to retrieve. # str | The ID of password policy to retrieve. + try: + # Get Password Policy by ID + + results = PasswordPoliciesApi(api_client).get_password_policy_by_id(id=id) + # Below is a request that includes all optional parameters + # results = PasswordPoliciesApi(api_client).get_password_policy_by_id(id) + print("The response of PasswordPoliciesApi->get_password_policy_by_id:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling PasswordPoliciesApi->get_password_policy_by_id: %s\n" % e) - path: /password-policies method: GET xCodeSample: @@ -12964,25 +12553,24 @@ from sailpoint.v2024.api.password_policies_api import PasswordPoliciesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.password_policy_v3_dto import PasswordPolicyV3Dto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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) - try: - # List Password Policies - - results = PasswordPoliciesApi(api_client).list_password_policies() - # Below is a request that includes all optional parameters - # results = PasswordPoliciesApi(api_client).list_password_policies(limit, offset, count) - print("The response of PasswordPoliciesApi->list_password_policies:\n") - pprint(results) - except Exception as e: - print("Exception when calling PasswordPoliciesApi->list_password_policies: %s\n" % e) + 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) + try: + # List Password Policies + + results = PasswordPoliciesApi(api_client).list_password_policies() + # Below is a request that includes all optional parameters + # results = PasswordPoliciesApi(api_client).list_password_policies(limit, offset, count) + print("The response of PasswordPoliciesApi->list_password_policies:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling PasswordPoliciesApi->list_password_policies: %s\n" % e) - path: /password-policies/{id} method: PUT xCodeSample: @@ -12992,14 +12580,13 @@ from sailpoint.v2024.api.password_policies_api import PasswordPoliciesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.password_policy_v3_dto import PasswordPolicyV3Dto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ff808081838d9e9d01838da6a03e0007' # str | The ID of password policy to update. # str | The ID of password policy to update. - password_policy_v3_dto = '''{ + id = 'ff808081838d9e9d01838da6a03e0007' # str | The ID of password policy to update. # str | The ID of password policy to update. + password_policy_v3_dto = '''{ "validateAgainstAccountName" : true, "minLength" : 8, "description" : "Information about the Password Policy", @@ -13032,16 +12619,16 @@ "name" : "PasswordPolicy Example", "maxLength" : 25 }''' # PasswordPolicyV3Dto | - try: - # Update Password Policy by ID - new_password_policy_v3_dto = PasswordPolicyV3Dto.from_json(password_policy_v3_dto) - results = PasswordPoliciesApi(api_client).set_password_policy(id=id, password_policy_v3_dto=new_password_policy_v3_dto) - # Below is a request that includes all optional parameters - # results = PasswordPoliciesApi(api_client).set_password_policy(id, new_password_policy_v3_dto) - print("The response of PasswordPoliciesApi->set_password_policy:\n") - pprint(results) - except Exception as e: - print("Exception when calling PasswordPoliciesApi->set_password_policy: %s\n" % e) + try: + # Update Password Policy by ID + new_password_policy_v3_dto = PasswordPolicyV3Dto.from_json(password_policy_v3_dto) + results = PasswordPoliciesApi(api_client).set_password_policy(id=id, password_policy_v3_dto=new_password_policy_v3_dto) + # Below is a request that includes all optional parameters + # results = PasswordPoliciesApi(api_client).set_password_policy(id, new_password_policy_v3_dto) + print("The response of PasswordPoliciesApi->set_password_policy:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling PasswordPoliciesApi->set_password_policy: %s\n" % e) - path: /password-sync-groups method: POST xCodeSample: @@ -13051,13 +12638,12 @@ from sailpoint.v2024.api.password_sync_groups_api import PasswordSyncGroupsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.password_sync_group import PasswordSyncGroup - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - password_sync_group = '''{ + password_sync_group = '''{ "created" : "2023-03-16T04:00:00Z", "name" : "Password Sync Group 1", "modified" : "2023-03-16T04:00:00Z", @@ -13065,16 +12651,16 @@ "id" : "6881f631-3bd5-4213-9c75-8e05cc3e35dd", "sourceIds" : [ "2c918084660f45d6016617daa9210584", "2c918084660f45d6016617daa9210500" ] }''' # PasswordSyncGroup | - try: - # Create Password Sync Group - new_password_sync_group = PasswordSyncGroup.from_json(password_sync_group) - results = PasswordSyncGroupsApi(api_client).create_password_sync_group(password_sync_group=new_password_sync_group) - # Below is a request that includes all optional parameters - # results = PasswordSyncGroupsApi(api_client).create_password_sync_group(new_password_sync_group) - print("The response of PasswordSyncGroupsApi->create_password_sync_group:\n") - pprint(results) - except Exception as e: - print("Exception when calling PasswordSyncGroupsApi->create_password_sync_group: %s\n" % e) + try: + # Create Password Sync Group + new_password_sync_group = PasswordSyncGroup.from_json(password_sync_group) + results = PasswordSyncGroupsApi(api_client).create_password_sync_group(password_sync_group=new_password_sync_group) + # Below is a request that includes all optional parameters + # results = PasswordSyncGroupsApi(api_client).create_password_sync_group(new_password_sync_group) + print("The response of PasswordSyncGroupsApi->create_password_sync_group:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling PasswordSyncGroupsApi->create_password_sync_group: %s\n" % e) - path: /password-sync-groups/{id} method: DELETE xCodeSample: @@ -13083,21 +12669,20 @@ source: | from sailpoint.v2024.api.password_sync_groups_api import PasswordSyncGroupsApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '6881f631-3bd5-4213-9c75-8e05cc3e35dd' # str | The ID of password sync group to delete. # str | The ID of password sync group to delete. - try: - # Delete Password Sync Group by ID - - PasswordSyncGroupsApi(api_client).delete_password_sync_group(id=id) - # Below is a request that includes all optional parameters - # PasswordSyncGroupsApi(api_client).delete_password_sync_group(id) - except Exception as e: - print("Exception when calling PasswordSyncGroupsApi->delete_password_sync_group: %s\n" % e) + id = '6881f631-3bd5-4213-9c75-8e05cc3e35dd' # str | The ID of password sync group to delete. # str | The ID of password sync group to delete. + try: + # Delete Password Sync Group by ID + + PasswordSyncGroupsApi(api_client).delete_password_sync_group(id=id) + # Below is a request that includes all optional parameters + # PasswordSyncGroupsApi(api_client).delete_password_sync_group(id) + except Exception as e: + print("Exception when calling PasswordSyncGroupsApi->delete_password_sync_group: %s\n" % e) - path: /password-sync-groups/{id} method: GET xCodeSample: @@ -13107,23 +12692,22 @@ from sailpoint.v2024.api.password_sync_groups_api import PasswordSyncGroupsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.password_sync_group import PasswordSyncGroup - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '6881f631-3bd5-4213-9c75-8e05cc3e35dd' # str | The ID of password sync group to retrieve. # str | The ID of password sync group to retrieve. - try: - # Get Password Sync Group by ID - - results = PasswordSyncGroupsApi(api_client).get_password_sync_group(id=id) - # Below is a request that includes all optional parameters - # results = PasswordSyncGroupsApi(api_client).get_password_sync_group(id) - print("The response of PasswordSyncGroupsApi->get_password_sync_group:\n") - pprint(results) - except Exception as e: - print("Exception when calling PasswordSyncGroupsApi->get_password_sync_group: %s\n" % e) + id = '6881f631-3bd5-4213-9c75-8e05cc3e35dd' # str | The ID of password sync group to retrieve. # str | The ID of password sync group to retrieve. + try: + # Get Password Sync Group by ID + + results = PasswordSyncGroupsApi(api_client).get_password_sync_group(id=id) + # Below is a request that includes all optional parameters + # results = PasswordSyncGroupsApi(api_client).get_password_sync_group(id) + print("The response of PasswordSyncGroupsApi->get_password_sync_group:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling PasswordSyncGroupsApi->get_password_sync_group: %s\n" % e) - path: /password-sync-groups method: GET xCodeSample: @@ -13133,25 +12717,24 @@ from sailpoint.v2024.api.password_sync_groups_api import PasswordSyncGroupsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.password_sync_group import PasswordSyncGroup - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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) - try: - # Get Password Sync Group List - - results = PasswordSyncGroupsApi(api_client).get_password_sync_groups() - # Below is a request that includes all optional parameters - # results = PasswordSyncGroupsApi(api_client).get_password_sync_groups(limit, offset, count) - print("The response of PasswordSyncGroupsApi->get_password_sync_groups:\n") - pprint(results) - except Exception as e: - print("Exception when calling PasswordSyncGroupsApi->get_password_sync_groups: %s\n" % e) + 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) + try: + # Get Password Sync Group List + + results = PasswordSyncGroupsApi(api_client).get_password_sync_groups() + # Below is a request that includes all optional parameters + # results = PasswordSyncGroupsApi(api_client).get_password_sync_groups(limit, offset, count) + print("The response of PasswordSyncGroupsApi->get_password_sync_groups:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling PasswordSyncGroupsApi->get_password_sync_groups: %s\n" % e) - path: /password-sync-groups/{id} method: PUT xCodeSample: @@ -13161,14 +12744,13 @@ from sailpoint.v2024.api.password_sync_groups_api import PasswordSyncGroupsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.password_sync_group import PasswordSyncGroup - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '6881f631-3bd5-4213-9c75-8e05cc3e35dd' # str | The ID of password sync group to update. # str | The ID of password sync group to update. - password_sync_group = '''{ + id = '6881f631-3bd5-4213-9c75-8e05cc3e35dd' # str | The ID of password sync group to update. # str | The ID of password sync group to update. + password_sync_group = '''{ "created" : "2023-03-16T04:00:00Z", "name" : "Password Sync Group 1", "modified" : "2023-03-16T04:00:00Z", @@ -13176,16 +12758,16 @@ "id" : "6881f631-3bd5-4213-9c75-8e05cc3e35dd", "sourceIds" : [ "2c918084660f45d6016617daa9210584", "2c918084660f45d6016617daa9210500" ] }''' # PasswordSyncGroup | - try: - # Update Password Sync Group by ID - new_password_sync_group = PasswordSyncGroup.from_json(password_sync_group) - results = PasswordSyncGroupsApi(api_client).update_password_sync_group(id=id, password_sync_group=new_password_sync_group) - # Below is a request that includes all optional parameters - # results = PasswordSyncGroupsApi(api_client).update_password_sync_group(id, new_password_sync_group) - print("The response of PasswordSyncGroupsApi->update_password_sync_group:\n") - pprint(results) - except Exception as e: - print("Exception when calling PasswordSyncGroupsApi->update_password_sync_group: %s\n" % e) + try: + # Update Password Sync Group by ID + new_password_sync_group = PasswordSyncGroup.from_json(password_sync_group) + results = PasswordSyncGroupsApi(api_client).update_password_sync_group(id=id, password_sync_group=new_password_sync_group) + # Below is a request that includes all optional parameters + # results = PasswordSyncGroupsApi(api_client).update_password_sync_group(id, new_password_sync_group) + print("The response of PasswordSyncGroupsApi->update_password_sync_group:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling PasswordSyncGroupsApi->update_password_sync_group: %s\n" % e) - path: /personal-access-tokens method: POST xCodeSample: @@ -13196,27 +12778,26 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.create_personal_access_token_request import CreatePersonalAccessTokenRequest from sailpoint.v2024.models.create_personal_access_token_response import CreatePersonalAccessTokenResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - create_personal_access_token_request = '''{ + create_personal_access_token_request = '''{ "scope" : [ "demo:personal-access-token-scope:first", "demo:personal-access-token-scope:second" ], "accessTokenValiditySeconds" : 36900, "name" : "NodeJS Integration" }''' # CreatePersonalAccessTokenRequest | Name and scope of personal access token. - try: - # Create Personal Access Token - new_create_personal_access_token_request = CreatePersonalAccessTokenRequest.from_json(create_personal_access_token_request) - results = PersonalAccessTokensApi(api_client).create_personal_access_token(create_personal_access_token_request=new_create_personal_access_token_request) - # Below is a request that includes all optional parameters - # results = PersonalAccessTokensApi(api_client).create_personal_access_token(new_create_personal_access_token_request) - print("The response of PersonalAccessTokensApi->create_personal_access_token:\n") - pprint(results) - except Exception as e: - print("Exception when calling PersonalAccessTokensApi->create_personal_access_token: %s\n" % e) + try: + # Create Personal Access Token + new_create_personal_access_token_request = CreatePersonalAccessTokenRequest.from_json(create_personal_access_token_request) + results = PersonalAccessTokensApi(api_client).create_personal_access_token(create_personal_access_token_request=new_create_personal_access_token_request) + # Below is a request that includes all optional parameters + # results = PersonalAccessTokensApi(api_client).create_personal_access_token(new_create_personal_access_token_request) + print("The response of PersonalAccessTokensApi->create_personal_access_token:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling PersonalAccessTokensApi->create_personal_access_token: %s\n" % e) - path: /personal-access-tokens/{id} method: DELETE xCodeSample: @@ -13225,21 +12806,20 @@ source: | from sailpoint.v2024.api.personal_access_tokens_api import PersonalAccessTokensApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The personal access token id # str | The personal access token id - try: - # Delete Personal Access Token - - PersonalAccessTokensApi(api_client).delete_personal_access_token(id=id) - # Below is a request that includes all optional parameters - # PersonalAccessTokensApi(api_client).delete_personal_access_token(id) - except Exception as e: - print("Exception when calling PersonalAccessTokensApi->delete_personal_access_token: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The personal access token id # str | The personal access token id + try: + # Delete Personal Access Token + + PersonalAccessTokensApi(api_client).delete_personal_access_token(id=id) + # Below is a request that includes all optional parameters + # PersonalAccessTokensApi(api_client).delete_personal_access_token(id) + except Exception as e: + print("Exception when calling PersonalAccessTokensApi->delete_personal_access_token: %s\n" % e) - path: /personal-access-tokens method: GET xCodeSample: @@ -13249,24 +12829,23 @@ from sailpoint.v2024.api.personal_access_tokens_api import PersonalAccessTokensApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.get_personal_access_token_response import GetPersonalAccessTokenResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - owner_id = '2c9180867b50d088017b554662fb281e' # str | The identity ID of the owner whose personal access tokens should be listed. If \"me\", the caller should have the following right: 'idn:my-personal-access-tokens:read' If an actual owner ID or if the `owner-id` parameter is omitted in the request, the caller should have the following right: 'idn:all-personal-access-tokens:read'. If the caller has the following right, then managed personal access tokens associated with `owner-id` will be retrieved: 'idn:managed-personal-access-tokens:read' (optional) # str | The identity ID of the owner whose personal access tokens should be listed. If \"me\", the caller should have the following right: 'idn:my-personal-access-tokens:read' If an actual owner ID or if the `owner-id` parameter is omitted in the request, the caller should have the following right: 'idn:all-personal-access-tokens:read'. If the caller has the following right, then managed personal access tokens associated with `owner-id` will be retrieved: 'idn:managed-personal-access-tokens:read' (optional) - filters = 'lastUsed le 2023-02-05T10:59:27.214Z' # 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: **lastUsed**: *le, isnull* (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: **lastUsed**: *le, isnull* (optional) - try: - # List Personal Access Tokens - - results = PersonalAccessTokensApi(api_client).list_personal_access_tokens() - # Below is a request that includes all optional parameters - # results = PersonalAccessTokensApi(api_client).list_personal_access_tokens(owner_id, filters) - print("The response of PersonalAccessTokensApi->list_personal_access_tokens:\n") - pprint(results) - except Exception as e: - print("Exception when calling PersonalAccessTokensApi->list_personal_access_tokens: %s\n" % e) + owner_id = '2c9180867b50d088017b554662fb281e' # str | The identity ID of the owner whose personal access tokens should be listed. If \"me\", the caller should have the following right: 'idn:my-personal-access-tokens:read' If an actual owner ID or if the `owner-id` parameter is omitted in the request, the caller should have the following right: 'idn:all-personal-access-tokens:read'. If the caller has the following right, then managed personal access tokens associated with `owner-id` will be retrieved: 'idn:managed-personal-access-tokens:read' (optional) # str | The identity ID of the owner whose personal access tokens should be listed. If \"me\", the caller should have the following right: 'idn:my-personal-access-tokens:read' If an actual owner ID or if the `owner-id` parameter is omitted in the request, the caller should have the following right: 'idn:all-personal-access-tokens:read'. If the caller has the following right, then managed personal access tokens associated with `owner-id` will be retrieved: 'idn:managed-personal-access-tokens:read' (optional) + filters = 'lastUsed le 2023-02-05T10:59:27.214Z' # 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: **lastUsed**: *le, isnull* (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: **lastUsed**: *le, isnull* (optional) + try: + # List Personal Access Tokens + + results = PersonalAccessTokensApi(api_client).list_personal_access_tokens() + # Below is a request that includes all optional parameters + # results = PersonalAccessTokensApi(api_client).list_personal_access_tokens(owner_id, filters) + print("The response of PersonalAccessTokensApi->list_personal_access_tokens:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling PersonalAccessTokensApi->list_personal_access_tokens: %s\n" % e) - path: /personal-access-tokens/{id} method: PATCH xCodeSample: @@ -13277,24 +12856,23 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.get_personal_access_token_response import GetPersonalAccessTokenResponse from sailpoint.v2024.models.json_patch_operation import JsonPatchOperation - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The Personal Access Token id # str | The Personal Access Token id - json_patch_operation = '''[{op=replace, path=/name, value=New name}, {op=replace, path=/scope, value=[sp:scopes:all]}]''' # List[JsonPatchOperation] | A list of OAuth client update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * scope - try: - # Patch Personal Access Token - new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) - results = PersonalAccessTokensApi(api_client).patch_personal_access_token(id=id, json_patch_operation=new_json_patch_operation) - # Below is a request that includes all optional parameters - # results = PersonalAccessTokensApi(api_client).patch_personal_access_token(id, new_json_patch_operation) - print("The response of PersonalAccessTokensApi->patch_personal_access_token:\n") - pprint(results) - except Exception as e: - print("Exception when calling PersonalAccessTokensApi->patch_personal_access_token: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The Personal Access Token id # str | The Personal Access Token id + json_patch_operation = '''[{op=replace, path=/name, value=New name}, {op=replace, path=/scope, value=[sp:scopes:all]}]''' # List[JsonPatchOperation] | A list of OAuth client update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * scope + try: + # Patch Personal Access Token + new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) + results = PersonalAccessTokensApi(api_client).patch_personal_access_token(id=id, json_patch_operation=new_json_patch_operation) + # Below is a request that includes all optional parameters + # results = PersonalAccessTokensApi(api_client).patch_personal_access_token(id, new_json_patch_operation) + print("The response of PersonalAccessTokensApi->patch_personal_access_token:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling PersonalAccessTokensApi->patch_personal_access_token: %s\n" % e) - path: /public-identities method: GET xCodeSample: @@ -13304,28 +12882,27 @@ from sailpoint.v2024.api.public_identities_api import PublicIdentitiesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.public_identity import PublicIdentity - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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 = 'firstname eq \"John\"' # 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* **alias**: *eq, sw* **email**: *eq, sw* **firstname**: *eq, sw* **lastname**: *eq, 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* **alias**: *eq, sw* **email**: *eq, sw* **firstname**: *eq, sw* **lastname**: *eq, sw* (optional) - add_core_filters = False # bool | If *true*, only get identities which satisfy ALL the following criteria in addition to any criteria specified by *filters*: - Should be either correlated or protected. - Should not be \"spadmin\" or \"cloudadmin\". - uid should not be null. - lastname should not be null. - email should not be null. (optional) (default to False) # bool | If *true*, only get identities which satisfy ALL the following criteria in addition to any criteria specified by *filters*: - Should be either correlated or protected. - Should not be \"spadmin\" or \"cloudadmin\". - uid should not be null. - lastname should not be null. - email should not be null. (optional) (default to False) - sorters = 'name' # 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: **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: **name** (optional) - try: - # Get list of public identities - - results = PublicIdentitiesApi(api_client).get_public_identities() - # Below is a request that includes all optional parameters - # results = PublicIdentitiesApi(api_client).get_public_identities(limit, offset, count, filters, add_core_filters, sorters) - print("The response of PublicIdentitiesApi->get_public_identities:\n") - pprint(results) - except Exception as e: - print("Exception when calling PublicIdentitiesApi->get_public_identities: %s\n" % e) + 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 = 'firstname eq \"John\"' # 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* **alias**: *eq, sw* **email**: *eq, sw* **firstname**: *eq, sw* **lastname**: *eq, 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* **alias**: *eq, sw* **email**: *eq, sw* **firstname**: *eq, sw* **lastname**: *eq, sw* (optional) + add_core_filters = False # bool | If *true*, only get identities which satisfy ALL the following criteria in addition to any criteria specified by *filters*: - Should be either correlated or protected. - Should not be \"spadmin\" or \"cloudadmin\". - uid should not be null. - lastname should not be null. - email should not be null. (optional) (default to False) # bool | If *true*, only get identities which satisfy ALL the following criteria in addition to any criteria specified by *filters*: - Should be either correlated or protected. - Should not be \"spadmin\" or \"cloudadmin\". - uid should not be null. - lastname should not be null. - email should not be null. (optional) (default to False) + sorters = 'name' # 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: **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: **name** (optional) + try: + # Get list of public identities + + results = PublicIdentitiesApi(api_client).get_public_identities() + # Below is a request that includes all optional parameters + # results = PublicIdentitiesApi(api_client).get_public_identities(limit, offset, count, filters, add_core_filters, sorters) + print("The response of PublicIdentitiesApi->get_public_identities:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling PublicIdentitiesApi->get_public_identities: %s\n" % e) - path: /public-identities-config method: GET xCodeSample: @@ -13335,22 +12912,21 @@ from sailpoint.v2024.api.public_identities_config_api import PublicIdentitiesConfigApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.public_identity_config import PublicIdentityConfig - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - try: - # Get the Public Identities Configuration - - results = PublicIdentitiesConfigApi(api_client).get_public_identity_config() - # Below is a request that includes all optional parameters - # results = PublicIdentitiesConfigApi(api_client).get_public_identity_config() - print("The response of PublicIdentitiesConfigApi->get_public_identity_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling PublicIdentitiesConfigApi->get_public_identity_config: %s\n" % e) + try: + # Get the Public Identities Configuration + + results = PublicIdentitiesConfigApi(api_client).get_public_identity_config() + # Below is a request that includes all optional parameters + # results = PublicIdentitiesConfigApi(api_client).get_public_identity_config() + print("The response of PublicIdentitiesConfigApi->get_public_identity_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling PublicIdentitiesConfigApi->get_public_identity_config: %s\n" % e) - path: /public-identities-config method: PUT xCodeSample: @@ -13360,13 +12936,12 @@ from sailpoint.v2024.api.public_identities_config_api import PublicIdentitiesConfigApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.public_identity_config import PublicIdentityConfig - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - public_identity_config = '''{ + public_identity_config = '''{ "modified" : "2018-06-25T20:22:28.104Z", "attributes" : [ { "name" : "Country", @@ -13381,16 +12956,16 @@ "type" : "IDENTITY" } }''' # PublicIdentityConfig | - try: - # Update the Public Identities Configuration - new_public_identity_config = PublicIdentityConfig.from_json(public_identity_config) - results = PublicIdentitiesConfigApi(api_client).update_public_identity_config(public_identity_config=new_public_identity_config) - # Below is a request that includes all optional parameters - # results = PublicIdentitiesConfigApi(api_client).update_public_identity_config(new_public_identity_config) - print("The response of PublicIdentitiesConfigApi->update_public_identity_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling PublicIdentitiesConfigApi->update_public_identity_config: %s\n" % e) + try: + # Update the Public Identities Configuration + new_public_identity_config = PublicIdentityConfig.from_json(public_identity_config) + results = PublicIdentitiesConfigApi(api_client).update_public_identity_config(public_identity_config=new_public_identity_config) + # Below is a request that includes all optional parameters + # results = PublicIdentitiesConfigApi(api_client).update_public_identity_config(new_public_identity_config) + print("The response of PublicIdentitiesConfigApi->update_public_identity_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling PublicIdentitiesConfigApi->update_public_identity_config: %s\n" % e) - path: /reports/{id}/cancel method: POST xCodeSample: @@ -13399,21 +12974,20 @@ source: | from sailpoint.v2024.api.reports_data_extraction_api import ReportsDataExtractionApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'a1ed223247144cc29d23c632624b4767' # str | ID of the running Report to cancel # str | ID of the running Report to cancel - try: - # Cancel Report - - ReportsDataExtractionApi(api_client).cancel_report(id=id) - # Below is a request that includes all optional parameters - # ReportsDataExtractionApi(api_client).cancel_report(id) - except Exception as e: - print("Exception when calling ReportsDataExtractionApi->cancel_report: %s\n" % e) + id = 'a1ed223247144cc29d23c632624b4767' # str | ID of the running Report to cancel # str | ID of the running Report to cancel + try: + # Cancel Report + + ReportsDataExtractionApi(api_client).cancel_report(id=id) + # Below is a request that includes all optional parameters + # ReportsDataExtractionApi(api_client).cancel_report(id) + except Exception as e: + print("Exception when calling ReportsDataExtractionApi->cancel_report: %s\n" % e) - path: /reports/{taskResultId} method: GET xCodeSample: @@ -13422,26 +12996,25 @@ source: | from sailpoint.v2024.api.reports_data_extraction_api import ReportsDataExtractionApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - task_result_id = 'ef38f94347e94562b5bb8424a56397d8' # str | Unique identifier of the task result which handled report # str | Unique identifier of the task result which handled report - file_format = 'csv' # str | Output format of the requested report file # str | Output format of the requested report file - name = 'Identities Details Report' # str | preferred Report file name, by default will be used report name from task result. (optional) # str | preferred Report file name, by default will be used report name from task result. (optional) - auditable = False # bool | Enables auditing for current report download. Will create an audit event and sent it to the REPORT cloud-audit kafka topic. Event will be created if there is any result present by requested taskResultId. (optional) (default to False) # bool | Enables auditing for current report download. Will create an audit event and sent it to the REPORT cloud-audit kafka topic. Event will be created if there is any result present by requested taskResultId. (optional) (default to False) - try: - # Get Report File - - results = ReportsDataExtractionApi(api_client).get_report(task_result_id=task_result_id, file_format=file_format) - # Below is a request that includes all optional parameters - # results = ReportsDataExtractionApi(api_client).get_report(task_result_id, file_format, name, auditable) - print("The response of ReportsDataExtractionApi->get_report:\n") - pprint(results) - except Exception as e: - print("Exception when calling ReportsDataExtractionApi->get_report: %s\n" % e) + task_result_id = 'ef38f94347e94562b5bb8424a56397d8' # str | Unique identifier of the task result which handled report # str | Unique identifier of the task result which handled report + file_format = 'csv' # str | Output format of the requested report file # str | Output format of the requested report file + name = 'Identities Details Report' # str | preferred Report file name, by default will be used report name from task result. (optional) # str | preferred Report file name, by default will be used report name from task result. (optional) + auditable = False # bool | Enables auditing for current report download. Will create an audit event and sent it to the REPORT cloud-audit kafka topic. Event will be created if there is any result present by requested taskResultId. (optional) (default to False) # bool | Enables auditing for current report download. Will create an audit event and sent it to the REPORT cloud-audit kafka topic. Event will be created if there is any result present by requested taskResultId. (optional) (default to False) + try: + # Get Report File + + results = ReportsDataExtractionApi(api_client).get_report(task_result_id=task_result_id, file_format=file_format) + # Below is a request that includes all optional parameters + # results = ReportsDataExtractionApi(api_client).get_report(task_result_id, file_format, name, auditable) + print("The response of ReportsDataExtractionApi->get_report:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ReportsDataExtractionApi->get_report: %s\n" % e) - path: /reports/{taskResultId}/result method: GET xCodeSample: @@ -13451,24 +13024,23 @@ from sailpoint.v2024.api.reports_data_extraction_api import ReportsDataExtractionApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.report_results import ReportResults - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - task_result_id = 'ef38f94347e94562b5bb8424a56397d8' # str | Unique identifier of the task result which handled report # str | Unique identifier of the task result which handled report - completed = False # bool | state of task result to apply ordering when results are fetching from the DB (optional) (default to False) # bool | state of task result to apply ordering when results are fetching from the DB (optional) (default to False) - try: - # Get Report Result - - results = ReportsDataExtractionApi(api_client).get_report_result(task_result_id=task_result_id) - # Below is a request that includes all optional parameters - # results = ReportsDataExtractionApi(api_client).get_report_result(task_result_id, completed) - print("The response of ReportsDataExtractionApi->get_report_result:\n") - pprint(results) - except Exception as e: - print("Exception when calling ReportsDataExtractionApi->get_report_result: %s\n" % e) + task_result_id = 'ef38f94347e94562b5bb8424a56397d8' # str | Unique identifier of the task result which handled report # str | Unique identifier of the task result which handled report + completed = False # bool | state of task result to apply ordering when results are fetching from the DB (optional) (default to False) # bool | state of task result to apply ordering when results are fetching from the DB (optional) (default to False) + try: + # Get Report Result + + results = ReportsDataExtractionApi(api_client).get_report_result(task_result_id=task_result_id) + # Below is a request that includes all optional parameters + # results = ReportsDataExtractionApi(api_client).get_report_result(task_result_id, completed) + print("The response of ReportsDataExtractionApi->get_report_result:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ReportsDataExtractionApi->get_report_result: %s\n" % e) - path: /reports/run method: POST xCodeSample: @@ -13479,29 +13051,28 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.report_details import ReportDetails from sailpoint.v2024.models.task_result_details import TaskResultDetails - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - report_details = '''{ + report_details = '''{ "reportType" : "ACCOUNTS", "arguments" : { "application" : "2c9180897e7742b2017e781782f705b9", "sourceName" : "Active Directory" } }''' # ReportDetails | - try: - # Run Report - new_report_details = ReportDetails.from_json(report_details) - results = ReportsDataExtractionApi(api_client).start_report(report_details=new_report_details) - # Below is a request that includes all optional parameters - # results = ReportsDataExtractionApi(api_client).start_report(new_report_details) - print("The response of ReportsDataExtractionApi->start_report:\n") - pprint(results) - except Exception as e: - print("Exception when calling ReportsDataExtractionApi->start_report: %s\n" % e) + try: + # Run Report + new_report_details = ReportDetails.from_json(report_details) + results = ReportsDataExtractionApi(api_client).start_report(report_details=new_report_details) + # Below is a request that includes all optional parameters + # results = ReportsDataExtractionApi(api_client).start_report(new_report_details) + print("The response of ReportsDataExtractionApi->start_report:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ReportsDataExtractionApi->start_report: %s\n" % e) - path: /requestable-objects method: GET xCodeSample: @@ -13513,31 +13084,30 @@ from sailpoint.v2024.models.requestable_object import RequestableObject from sailpoint.v2024.models.requestable_object_request_status import RequestableObjectRequestStatus from sailpoint.v2024.models.requestable_object_type import RequestableObjectType - from pprint import pprint - from sailpoint.configuration import Configuration - configuration = Configuration() - - - with ApiClient(configuration) as api_client: - identity_id = 'e7eab60924f64aa284175b9fa3309599' # str | If present, the value returns only requestable objects for the specified identity. * Admin users can call this with any identity ID value. * Non-admin users can only specify *me* or pass their own identity ID value. * If absent, returns a list of all requestable objects for the tenant. Only admin users can make such a call. In this case, the available, pending, assigned accesses will not be annotated in the result. (optional) # str | If present, the value returns only requestable objects for the specified identity. * Admin users can call this with any identity ID value. * Non-admin users can only specify *me* or pass their own identity ID value. * If absent, returns a list of all requestable objects for the tenant. Only admin users can make such a call. In this case, the available, pending, assigned accesses will not be annotated in the result. (optional) - types = '''[sailpoint.v2024.RequestableObjectType()]''' # List[RequestableObjectType] | Filters the results to the specified type/types, where each type is one of `ROLE` or `ACCESS_PROFILE`. If absent, all types are returned. SailPoint may add support for additional types in the future without notice. (optional) - term = 'Finance Role' # str | Allows searching requestable access items with a partial match on the name or description. If `term` is provided, then the API will ignore the `filter` query parameter. (optional) # str | Allows searching requestable access items with a partial match on the name or description. If `term` is provided, then the API will ignore the `filter` query parameter. (optional) - statuses = '''[sailpoint.v2024.RequestableObjectRequestStatus()]''' # List[RequestableObjectRequestStatus] | Filters the result to the specified status/statuses, where each status is one of `AVAILABLE`, `ASSIGNED`, or `PENDING`. Specifying this parameter without also specifying an `identity-id` parameter results in an error. SailPoint may add additional statuses in the future without notice. (optional) - 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 sw \"bob\"' # 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* (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* (optional) - sorters = 'name' # 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: **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: **name** (optional) - try: - # Requestable Objects List - - results = RequestableObjectsApi(api_client).list_requestable_objects() - # Below is a request that includes all optional parameters - # results = RequestableObjectsApi(api_client).list_requestable_objects(identity_id, types, term, statuses, limit, offset, count, filters, sorters) - print("The response of RequestableObjectsApi->list_requestable_objects:\n") - pprint(results) - except Exception as e: - print("Exception when calling RequestableObjectsApi->list_requestable_objects: %s\n" % e) + from sailpoint.configuration import Configuration + configuration = Configuration() + + + with ApiClient(configuration) as api_client: + identity_id = 'e7eab60924f64aa284175b9fa3309599' # str | If present, the value returns only requestable objects for the specified identity. * Admin users can call this with any identity ID value. * Non-admin users can only specify *me* or pass their own identity ID value. * If absent, returns a list of all requestable objects for the tenant. Only admin users can make such a call. In this case, the available, pending, assigned accesses will not be annotated in the result. (optional) # str | If present, the value returns only requestable objects for the specified identity. * Admin users can call this with any identity ID value. * Non-admin users can only specify *me* or pass their own identity ID value. * If absent, returns a list of all requestable objects for the tenant. Only admin users can make such a call. In this case, the available, pending, assigned accesses will not be annotated in the result. (optional) + types = '''[sailpoint.v2024.RequestableObjectType()]''' # List[RequestableObjectType] | Filters the results to the specified type/types, where each type is one of `ROLE` or `ACCESS_PROFILE`. If absent, all types are returned. SailPoint may add support for additional types in the future without notice. (optional) + term = 'Finance Role' # str | Allows searching requestable access items with a partial match on the name or description. If `term` is provided, then the API will ignore the `filter` query parameter. (optional) # str | Allows searching requestable access items with a partial match on the name or description. If `term` is provided, then the API will ignore the `filter` query parameter. (optional) + statuses = '''[sailpoint.v2024.RequestableObjectRequestStatus()]''' # List[RequestableObjectRequestStatus] | Filters the result to the specified status/statuses, where each status is one of `AVAILABLE`, `ASSIGNED`, or `PENDING`. Specifying this parameter without also specifying an `identity-id` parameter results in an error. SailPoint may add additional statuses in the future without notice. (optional) + 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 sw \"bob\"' # 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* (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* (optional) + sorters = 'name' # 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: **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: **name** (optional) + try: + # Requestable Objects List + + results = RequestableObjectsApi(api_client).list_requestable_objects() + # Below is a request that includes all optional parameters + # results = RequestableObjectsApi(api_client).list_requestable_objects(identity_id, types, term, statuses, limit, offset, count, filters, sorters) + print("The response of RequestableObjectsApi->list_requestable_objects:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling RequestableObjectsApi->list_requestable_objects: %s\n" % e) - path: /role-insights/requests method: POST xCodeSample: @@ -13547,24 +13117,23 @@ from sailpoint.v2024.api.role_insights_api import RoleInsightsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role_insights_response import RoleInsightsResponse - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - try: - # Generate insights for roles - - results = RoleInsightsApi(api_client).create_role_insight_requests(x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = RoleInsightsApi(api_client).create_role_insight_requests(x_sail_point_experimental) - print("The response of RoleInsightsApi->create_role_insight_requests:\n") - pprint(results) - except Exception as e: - print("Exception when calling RoleInsightsApi->create_role_insight_requests: %s\n" % e) + 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: + # Generate insights for roles + + results = RoleInsightsApi(api_client).create_role_insight_requests(x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = RoleInsightsApi(api_client).create_role_insight_requests(x_sail_point_experimental) + print("The response of RoleInsightsApi->create_role_insight_requests:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling RoleInsightsApi->create_role_insight_requests: %s\n" % e) - path: /role-insights/{insightId}/entitlement-changes/download method: GET xCodeSample: @@ -13573,27 +13142,26 @@ source: | from sailpoint.v2024.api.role_insights_api import RoleInsightsApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - insight_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role insight id # str | The role insight id - 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') - sorters = 'identitiesWithAccess' # 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: **identitiesWithAccess** The default sort is **identitiesWithAccess** in descending order. (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: **identitiesWithAccess** The default sort is **identitiesWithAccess** in descending order. (optional) - filters = 'name sw \"r\"' # 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: **name**: *sw* **description**: *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: **name**: *sw* **description**: *sw* (optional) - try: - # Download entitlement insights for a role - - results = RoleInsightsApi(api_client).download_role_insights_entitlements_changes(insight_id=insight_id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = RoleInsightsApi(api_client).download_role_insights_entitlements_changes(insight_id, x_sail_point_experimental, sorters, filters) - print("The response of RoleInsightsApi->download_role_insights_entitlements_changes:\n") - pprint(results) - except Exception as e: - print("Exception when calling RoleInsightsApi->download_role_insights_entitlements_changes: %s\n" % e) + insight_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role insight id # str | The role insight id + 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') + sorters = 'identitiesWithAccess' # 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: **identitiesWithAccess** The default sort is **identitiesWithAccess** in descending order. (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: **identitiesWithAccess** The default sort is **identitiesWithAccess** in descending order. (optional) + filters = 'name sw \"r\"' # 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: **name**: *sw* **description**: *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: **name**: *sw* **description**: *sw* (optional) + try: + # Download entitlement insights for a role + + results = RoleInsightsApi(api_client).download_role_insights_entitlements_changes(insight_id=insight_id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = RoleInsightsApi(api_client).download_role_insights_entitlements_changes(insight_id, x_sail_point_experimental, sorters, filters) + print("The response of RoleInsightsApi->download_role_insights_entitlements_changes:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling RoleInsightsApi->download_role_insights_entitlements_changes: %s\n" % e) - path: /role-insights/{insightId}/entitlement-changes/{entitlementId}/identities method: GET xCodeSample: @@ -13603,32 +13171,31 @@ from sailpoint.v2024.api.role_insights_api import RoleInsightsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role_insights_identities import RoleInsightsIdentities - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - insight_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role insight id # str | The role insight id - entitlement_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The entitlement id # str | The entitlement id - 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') - has_entitlement = False # bool | Identity has this entitlement or not (optional) (default to False) # bool | Identity has this entitlement or not (optional) (default to False) - 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) - 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) - 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) - sorters = 'name' # 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: **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: **name** (optional) - filters = 'name sw \"Jan\"' # 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: **name**: *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: **name**: *sw* (optional) - try: - # Get identities for a suggested entitlement (for a role) - - results = RoleInsightsApi(api_client).get_entitlement_changes_identities(insight_id=insight_id, entitlement_id=entitlement_id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = RoleInsightsApi(api_client).get_entitlement_changes_identities(insight_id, entitlement_id, x_sail_point_experimental, has_entitlement, offset, limit, count, sorters, filters) - print("The response of RoleInsightsApi->get_entitlement_changes_identities:\n") - pprint(results) - except Exception as e: - print("Exception when calling RoleInsightsApi->get_entitlement_changes_identities: %s\n" % e) + insight_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role insight id # str | The role insight id + entitlement_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The entitlement id # str | The entitlement id + 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') + has_entitlement = False # bool | Identity has this entitlement or not (optional) (default to False) # bool | Identity has this entitlement or not (optional) (default to False) + 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) + 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) + 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) + sorters = 'name' # 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: **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: **name** (optional) + filters = 'name sw \"Jan\"' # 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: **name**: *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: **name**: *sw* (optional) + try: + # Get identities for a suggested entitlement (for a role) + + results = RoleInsightsApi(api_client).get_entitlement_changes_identities(insight_id=insight_id, entitlement_id=entitlement_id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = RoleInsightsApi(api_client).get_entitlement_changes_identities(insight_id, entitlement_id, x_sail_point_experimental, has_entitlement, offset, limit, count, sorters, filters) + print("The response of RoleInsightsApi->get_entitlement_changes_identities:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling RoleInsightsApi->get_entitlement_changes_identities: %s\n" % e) - path: /role-insights/{insightId} method: GET xCodeSample: @@ -13638,25 +13205,24 @@ from sailpoint.v2024.api.role_insights_api import RoleInsightsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role_insight import RoleInsight - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - insight_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role insight id # str | The role insight id - 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 a single role insight - - results = RoleInsightsApi(api_client).get_role_insight(insight_id=insight_id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = RoleInsightsApi(api_client).get_role_insight(insight_id, x_sail_point_experimental) - print("The response of RoleInsightsApi->get_role_insight:\n") - pprint(results) - except Exception as e: - print("Exception when calling RoleInsightsApi->get_role_insight: %s\n" % e) + insight_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role insight id # str | The role insight id + 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 a single role insight + + results = RoleInsightsApi(api_client).get_role_insight(insight_id=insight_id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = RoleInsightsApi(api_client).get_role_insight(insight_id, x_sail_point_experimental) + print("The response of RoleInsightsApi->get_role_insight:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling RoleInsightsApi->get_role_insight: %s\n" % e) - path: /role-insights method: GET xCodeSample: @@ -13666,29 +13232,28 @@ from sailpoint.v2024.api.role_insights_api import RoleInsightsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role_insight import RoleInsight - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - 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) - 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) - 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) - sorters = 'numberOfUpdates' # 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: **numberOfUpdates, identitiesWithAccess, totalNumberOfIdentities** (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: **numberOfUpdates, identitiesWithAccess, totalNumberOfIdentities** (optional) - filters = 'name sw \"John\"' # 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: **name**: *sw* **ownerName**: *sw* **description**: *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: **name**: *sw* **ownerName**: *sw* **description**: *sw* (optional) - try: - # Get role insights - - results = RoleInsightsApi(api_client).get_role_insights(x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = RoleInsightsApi(api_client).get_role_insights(x_sail_point_experimental, offset, limit, count, sorters, filters) - print("The response of RoleInsightsApi->get_role_insights:\n") - pprint(results) - except Exception as e: - print("Exception when calling RoleInsightsApi->get_role_insights: %s\n" % e) + 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') + 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) + 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) + 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) + sorters = 'numberOfUpdates' # 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: **numberOfUpdates, identitiesWithAccess, totalNumberOfIdentities** (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: **numberOfUpdates, identitiesWithAccess, totalNumberOfIdentities** (optional) + filters = 'name sw \"John\"' # 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: **name**: *sw* **ownerName**: *sw* **description**: *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: **name**: *sw* **ownerName**: *sw* **description**: *sw* (optional) + try: + # Get role insights + + results = RoleInsightsApi(api_client).get_role_insights(x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = RoleInsightsApi(api_client).get_role_insights(x_sail_point_experimental, offset, limit, count, sorters, filters) + print("The response of RoleInsightsApi->get_role_insights:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling RoleInsightsApi->get_role_insights: %s\n" % e) - path: /role-insights/{insightId}/current-entitlements method: GET xCodeSample: @@ -13698,26 +13263,25 @@ from sailpoint.v2024.api.role_insights_api import RoleInsightsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role_insights_entitlement import RoleInsightsEntitlement - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - insight_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role insight id # str | The role insight id - 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') - filters = 'name sw \"r\"' # 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: **name**: *sw* **description**: *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: **name**: *sw* **description**: *sw* (optional) - try: - # Get current entitlement for a role - - results = RoleInsightsApi(api_client).get_role_insights_current_entitlements(insight_id=insight_id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = RoleInsightsApi(api_client).get_role_insights_current_entitlements(insight_id, x_sail_point_experimental, filters) - print("The response of RoleInsightsApi->get_role_insights_current_entitlements:\n") - pprint(results) - except Exception as e: - print("Exception when calling RoleInsightsApi->get_role_insights_current_entitlements: %s\n" % e) + insight_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role insight id # str | The role insight id + 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') + filters = 'name sw \"r\"' # 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: **name**: *sw* **description**: *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: **name**: *sw* **description**: *sw* (optional) + try: + # Get current entitlement for a role + + results = RoleInsightsApi(api_client).get_role_insights_current_entitlements(insight_id=insight_id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = RoleInsightsApi(api_client).get_role_insights_current_entitlements(insight_id, x_sail_point_experimental, filters) + print("The response of RoleInsightsApi->get_role_insights_current_entitlements:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling RoleInsightsApi->get_role_insights_current_entitlements: %s\n" % e) - path: /role-insights/{insightId}/entitlement-changes method: GET xCodeSample: @@ -13727,27 +13291,26 @@ from sailpoint.v2024.api.role_insights_api import RoleInsightsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role_insights_entitlement_changes import RoleInsightsEntitlementChanges - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - insight_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role insight id # str | The role insight id - 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') - sorters = 'sorters_example' # 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: **identitiesWithAccess, 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: **identitiesWithAccess, name** (optional) - filters = 'name sw \"Admin\"' # 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: **name**: *sw* **description**: *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: **name**: *sw* **description**: *sw* (optional) - try: - # Get entitlement insights for a role - - results = RoleInsightsApi(api_client).get_role_insights_entitlements_changes(insight_id=insight_id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = RoleInsightsApi(api_client).get_role_insights_entitlements_changes(insight_id, x_sail_point_experimental, sorters, filters) - print("The response of RoleInsightsApi->get_role_insights_entitlements_changes:\n") - pprint(results) - except Exception as e: - print("Exception when calling RoleInsightsApi->get_role_insights_entitlements_changes: %s\n" % e) + insight_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role insight id # str | The role insight id + 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') + sorters = 'sorters_example' # 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: **identitiesWithAccess, 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: **identitiesWithAccess, name** (optional) + filters = 'name sw \"Admin\"' # 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: **name**: *sw* **description**: *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: **name**: *sw* **description**: *sw* (optional) + try: + # Get entitlement insights for a role + + results = RoleInsightsApi(api_client).get_role_insights_entitlements_changes(insight_id=insight_id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = RoleInsightsApi(api_client).get_role_insights_entitlements_changes(insight_id, x_sail_point_experimental, sorters, filters) + print("The response of RoleInsightsApi->get_role_insights_entitlements_changes:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling RoleInsightsApi->get_role_insights_entitlements_changes: %s\n" % e) - path: /role-insights/requests/{id} method: GET xCodeSample: @@ -13757,25 +13320,24 @@ from sailpoint.v2024.api.role_insights_api import RoleInsightsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role_insights_response import RoleInsightsResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role insights request id # str | The role insights request id - 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: - # Returns metadata from prior request. - - results = RoleInsightsApi(api_client).get_role_insights_requests(id=id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = RoleInsightsApi(api_client).get_role_insights_requests(id, x_sail_point_experimental) - print("The response of RoleInsightsApi->get_role_insights_requests:\n") - pprint(results) - except Exception as e: - print("Exception when calling RoleInsightsApi->get_role_insights_requests: %s\n" % e) + id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | The role insights request id # str | The role insights request id + 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: + # Returns metadata from prior request. + + results = RoleInsightsApi(api_client).get_role_insights_requests(id=id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = RoleInsightsApi(api_client).get_role_insights_requests(id, x_sail_point_experimental) + print("The response of RoleInsightsApi->get_role_insights_requests:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling RoleInsightsApi->get_role_insights_requests: %s\n" % e) - path: /role-insights/summary method: GET xCodeSample: @@ -13785,24 +13347,23 @@ from sailpoint.v2024.api.role_insights_api import RoleInsightsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role_insights_summary import RoleInsightsSummary - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - try: - # Get role insights summary information - - results = RoleInsightsApi(api_client).get_role_insights_summary(x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = RoleInsightsApi(api_client).get_role_insights_summary(x_sail_point_experimental) - print("The response of RoleInsightsApi->get_role_insights_summary:\n") - pprint(results) - except Exception as e: - print("Exception when calling RoleInsightsApi->get_role_insights_summary: %s\n" % e) + 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 role insights summary information + + results = RoleInsightsApi(api_client).get_role_insights_summary(x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = RoleInsightsApi(api_client).get_role_insights_summary(x_sail_point_experimental) + print("The response of RoleInsightsApi->get_role_insights_summary:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling RoleInsightsApi->get_role_insights_summary: %s\n" % e) - path: /roles method: POST xCodeSample: @@ -13812,13 +13373,12 @@ from sailpoint.v2024.api.roles_api import RolesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role import Role - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - role = '''{ + role = '''{ "owner" : { "name" : "support", "id" : "2c9180a46faadee4016fb4e018c20639", @@ -13976,16 +13536,16 @@ "id" : "2c918086749d78830174a1a40e121518", "requestable" : true }''' # Role | - try: - # Create a Role - new_role = Role.from_json(role) - results = RolesApi(api_client).create_role(role=new_role) - # Below is a request that includes all optional parameters - # results = RolesApi(api_client).create_role(new_role) - print("The response of RolesApi->create_role:\n") - pprint(results) - except Exception as e: - print("Exception when calling RolesApi->create_role: %s\n" % e) + try: + # Create a Role + new_role = Role.from_json(role) + results = RolesApi(api_client).create_role(role=new_role) + # Below is a request that includes all optional parameters + # results = RolesApi(api_client).create_role(new_role) + print("The response of RolesApi->create_role:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling RolesApi->create_role: %s\n" % e) - path: /roles/bulk-delete method: POST xCodeSample: @@ -13996,25 +13556,24 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role_bulk_delete_request import RoleBulkDeleteRequest from sailpoint.v2024.models.task_result_dto import TaskResultDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - role_bulk_delete_request = '''{ + role_bulk_delete_request = '''{ "roleIds" : [ "2c9180847812e0b1017817051919ecca", "2c9180887812e0b201781e129f151816" ] }''' # RoleBulkDeleteRequest | - try: - # Delete Role(s) - new_role_bulk_delete_request = RoleBulkDeleteRequest.from_json(role_bulk_delete_request) - results = RolesApi(api_client).delete_bulk_roles(role_bulk_delete_request=new_role_bulk_delete_request) - # Below is a request that includes all optional parameters - # results = RolesApi(api_client).delete_bulk_roles(new_role_bulk_delete_request) - print("The response of RolesApi->delete_bulk_roles:\n") - pprint(results) - except Exception as e: - print("Exception when calling RolesApi->delete_bulk_roles: %s\n" % e) + try: + # Delete Role(s) + new_role_bulk_delete_request = RoleBulkDeleteRequest.from_json(role_bulk_delete_request) + results = RolesApi(api_client).delete_bulk_roles(role_bulk_delete_request=new_role_bulk_delete_request) + # Below is a request that includes all optional parameters + # results = RolesApi(api_client).delete_bulk_roles(new_role_bulk_delete_request) + print("The response of RolesApi->delete_bulk_roles:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling RolesApi->delete_bulk_roles: %s\n" % e) - path: /roles/{id}/access-model-metadata/{attributeKey}/values/{attributeValue} method: DELETE xCodeSample: @@ -14023,23 +13582,22 @@ source: | from sailpoint.v2024.api.roles_api import RolesApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808c74ff913f0175097daa9d59cd' # str | The role's id. # str | The role's id. - attribute_key = 'iscPrivacy' # str | Technical name of the Attribute. # str | Technical name of the Attribute. - attribute_value = 'public' # str | Technical name of the Attribute Value. # str | Technical name of the Attribute Value. - try: - # Remove a Metadata From Role. - - RolesApi(api_client).delete_metadata_from_role_by_key_and_value(id=id, attribute_key=attribute_key, attribute_value=attribute_value) - # Below is a request that includes all optional parameters - # RolesApi(api_client).delete_metadata_from_role_by_key_and_value(id, attribute_key, attribute_value) - except Exception as e: - print("Exception when calling RolesApi->delete_metadata_from_role_by_key_and_value: %s\n" % e) + id = '2c91808c74ff913f0175097daa9d59cd' # str | The role's id. # str | The role's id. + attribute_key = 'iscPrivacy' # str | Technical name of the Attribute. # str | Technical name of the Attribute. + attribute_value = 'public' # str | Technical name of the Attribute Value. # str | Technical name of the Attribute Value. + try: + # Remove a Metadata From Role. + + RolesApi(api_client).delete_metadata_from_role_by_key_and_value(id=id, attribute_key=attribute_key, attribute_value=attribute_value) + # Below is a request that includes all optional parameters + # RolesApi(api_client).delete_metadata_from_role_by_key_and_value(id, attribute_key, attribute_value) + except Exception as e: + print("Exception when calling RolesApi->delete_metadata_from_role_by_key_and_value: %s\n" % e) - path: /roles/{id} method: DELETE xCodeSample: @@ -14048,21 +13606,20 @@ source: | from sailpoint.v2024.api.roles_api import RolesApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808a7813090a017814121e121518' # str | ID of the Role # str | ID of the Role - try: - # Delete a Role - - RolesApi(api_client).delete_role(id=id) - # Below is a request that includes all optional parameters - # RolesApi(api_client).delete_role(id) - except Exception as e: - print("Exception when calling RolesApi->delete_role: %s\n" % e) + id = '2c91808a7813090a017814121e121518' # str | ID of the Role # str | ID of the Role + try: + # Delete a Role + + RolesApi(api_client).delete_role(id=id) + # Below is a request that includes all optional parameters + # RolesApi(api_client).delete_role(id) + except Exception as e: + print("Exception when calling RolesApi->delete_role: %s\n" % e) - path: /roles/access-model-metadata/bulk-update method: GET xCodeSample: @@ -14072,22 +13629,21 @@ from sailpoint.v2024.api.roles_api import RolesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role_get_all_bulk_update_response import RoleGetAllBulkUpdateResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - try: - # Get Bulk-Update Statuses - - results = RolesApi(api_client).get_bulk_update_status() - # Below is a request that includes all optional parameters - # results = RolesApi(api_client).get_bulk_update_status() - print("The response of RolesApi->get_bulk_update_status:\n") - pprint(results) - except Exception as e: - print("Exception when calling RolesApi->get_bulk_update_status: %s\n" % e) + try: + # Get Bulk-Update Statuses + + results = RolesApi(api_client).get_bulk_update_status() + # Below is a request that includes all optional parameters + # results = RolesApi(api_client).get_bulk_update_status() + print("The response of RolesApi->get_bulk_update_status:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling RolesApi->get_bulk_update_status: %s\n" % e) - path: /roles/access-model-metadata/bulk-update/id method: GET xCodeSample: @@ -14097,23 +13653,22 @@ from sailpoint.v2024.api.roles_api import RolesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role_bulk_update_response import RoleBulkUpdateResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'c24359c389374d0fb8585698a2189e3d' # str | The Id of the bulk update task. # str | The Id of the bulk update task. - try: - # Get Bulk-Update Status by ID - - results = RolesApi(api_client).get_bulk_update_status_by_id(id=id) - # Below is a request that includes all optional parameters - # results = RolesApi(api_client).get_bulk_update_status_by_id(id) - print("The response of RolesApi->get_bulk_update_status_by_id:\n") - pprint(results) - except Exception as e: - print("Exception when calling RolesApi->get_bulk_update_status_by_id: %s\n" % e) + id = 'c24359c389374d0fb8585698a2189e3d' # str | The Id of the bulk update task. # str | The Id of the bulk update task. + try: + # Get Bulk-Update Status by ID + + results = RolesApi(api_client).get_bulk_update_status_by_id(id=id) + # Below is a request that includes all optional parameters + # results = RolesApi(api_client).get_bulk_update_status_by_id(id) + print("The response of RolesApi->get_bulk_update_status_by_id:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling RolesApi->get_bulk_update_status_by_id: %s\n" % e) - path: /roles/{id} method: GET xCodeSample: @@ -14123,23 +13678,22 @@ from sailpoint.v2024.api.roles_api import RolesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role import Role - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808a7813090a017814121e121518' # str | ID of the Role # str | ID of the Role - try: - # Get a Role - - results = RolesApi(api_client).get_role(id=id) - # Below is a request that includes all optional parameters - # results = RolesApi(api_client).get_role(id) - print("The response of RolesApi->get_role:\n") - pprint(results) - except Exception as e: - print("Exception when calling RolesApi->get_role: %s\n" % e) + id = '2c91808a7813090a017814121e121518' # str | ID of the Role # str | ID of the Role + try: + # Get a Role + + results = RolesApi(api_client).get_role(id=id) + # Below is a request that includes all optional parameters + # results = RolesApi(api_client).get_role(id) + print("The response of RolesApi->get_role:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling RolesApi->get_role: %s\n" % e) - path: /roles/{id}/assigned-identities method: GET xCodeSample: @@ -14149,28 +13703,27 @@ from sailpoint.v2024.api.roles_api import RolesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role_identity import RoleIdentity - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808a7813090a017814121e121518' # str | ID of the Role for which the assigned Identities are to be listed # str | ID of the Role for which the assigned Identities are to be listed - 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 sw Joe' # 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* **aliasName**: *eq, sw* **email**: *eq, sw* **name**: *eq, sw, co* (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* **aliasName**: *eq, sw* **email**: *eq, sw* **name**: *eq, sw, co* (optional) - sorters = 'aliasName,name' # 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: **id, name, aliasName, email** (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: **id, name, aliasName, email** (optional) - try: - # List Identities assigned a Role - - results = RolesApi(api_client).get_role_assigned_identities(id=id) - # Below is a request that includes all optional parameters - # results = RolesApi(api_client).get_role_assigned_identities(id, limit, offset, count, filters, sorters) - print("The response of RolesApi->get_role_assigned_identities:\n") - pprint(results) - except Exception as e: - print("Exception when calling RolesApi->get_role_assigned_identities: %s\n" % e) + id = '2c91808a7813090a017814121e121518' # str | ID of the Role for which the assigned Identities are to be listed # str | ID of the Role for which the assigned Identities are to be listed + 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 sw Joe' # 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* **aliasName**: *eq, sw* **email**: *eq, sw* **name**: *eq, sw, co* (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* **aliasName**: *eq, sw* **email**: *eq, sw* **name**: *eq, sw, co* (optional) + sorters = 'aliasName,name' # 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: **id, name, aliasName, email** (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: **id, name, aliasName, email** (optional) + try: + # List Identities assigned a Role + + results = RolesApi(api_client).get_role_assigned_identities(id=id) + # Below is a request that includes all optional parameters + # results = RolesApi(api_client).get_role_assigned_identities(id, limit, offset, count, filters, sorters) + print("The response of RolesApi->get_role_assigned_identities:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling RolesApi->get_role_assigned_identities: %s\n" % e) - path: /roles/{id}/entitlements method: GET xCodeSample: @@ -14180,30 +13733,29 @@ from sailpoint.v2024.api.roles_api import RolesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.entitlement import Entitlement - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = '2c91808a7813090a017814121919ecca' # str | Containing role's ID. # str | Containing role's ID. - 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') - limit = 50 # int | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) # int | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) - 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 = 'attribute eq \"memberOf\"' # 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, sw* **attribute**: *eq, sw* **value**: *eq, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **source.id**: *eq, in* (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, sw* **attribute**: *eq, sw* **value**: *eq, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **source.id**: *eq, in* (optional) - sorters = 'name,-modified' # 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: **name, attribute, value, created, modified** (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: **name, attribute, value, created, modified** (optional) - try: - # List Role's Entitlements - - results = RolesApi(api_client).get_role_entitlements(id=id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = RolesApi(api_client).get_role_entitlements(id, x_sail_point_experimental, limit, offset, count, filters, sorters) - print("The response of RolesApi->get_role_entitlements:\n") - pprint(results) - except Exception as e: - print("Exception when calling RolesApi->get_role_entitlements: %s\n" % e) + id = '2c91808a7813090a017814121919ecca' # str | Containing role's ID. # str | Containing role's ID. + 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') + limit = 50 # int | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) # int | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) + 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 = 'attribute eq \"memberOf\"' # 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, sw* **attribute**: *eq, sw* **value**: *eq, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **source.id**: *eq, in* (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, sw* **attribute**: *eq, sw* **value**: *eq, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **source.id**: *eq, in* (optional) + sorters = 'name,-modified' # 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: **name, attribute, value, created, modified** (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: **name, attribute, value, created, modified** (optional) + try: + # List Role's Entitlements + + results = RolesApi(api_client).get_role_entitlements(id=id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = RolesApi(api_client).get_role_entitlements(id, x_sail_point_experimental, limit, offset, count, filters, sorters) + print("The response of RolesApi->get_role_entitlements:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling RolesApi->get_role_entitlements: %s\n" % e) - path: /roles method: GET xCodeSample: @@ -14213,30 +13765,29 @@ from sailpoint.v2024.api.roles_api import RolesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role import Role - from pprint import pprint - from sailpoint.configuration import Configuration - configuration = Configuration() - - - with ApiClient(configuration) as api_client: - for_subadmin = '5168015d32f890ca15812c9180835d2e' # str | If provided, filters the returned list according to what is visible to the indicated ROLE_SUBADMIN Identity. The value of the parameter is either an Identity ID, or the special value **me**, which is shorthand for the calling Identity's ID. A 400 Bad Request error is returned if the **for-subadmin** parameter is specified for an Identity that is not a subadmin. (optional) # str | If provided, filters the returned list according to what is visible to the indicated ROLE_SUBADMIN Identity. The value of the parameter is either an Identity ID, or the special value **me**, which is shorthand for the calling Identity's ID. A 400 Bad Request error is returned if the **for-subadmin** parameter is specified for an Identity that is not a subadmin. (optional) - limit = 50 # int | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) # int | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) - 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 = 'requestable eq false' # 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, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **requestable**: *eq* (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, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **requestable**: *eq* (optional) - sorters = 'name,-modified' # 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: **name, created, modified** (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: **name, created, modified** (optional) - for_segment_ids = '0b5c9f25-83c6-4762-9073-e38f7bb2ae26,2e8d8180-24bc-4d21-91c6-7affdb473b0d' # str | If present and not empty, additionally filters Roles to those which are assigned to the Segment(s) with the specified IDs. If segmentation is currently unavailable, specifying this parameter results in an error. (optional) # str | If present and not empty, additionally filters Roles to those which are assigned to the Segment(s) with the specified IDs. If segmentation is currently unavailable, specifying this parameter results in an error. (optional) - include_unsegmented = True # bool | Whether or not the response list should contain unsegmented Roles. If *for-segment-ids* is absent or empty, specifying *include-unsegmented* as false results in an error. (optional) (default to True) # bool | Whether or not the response list should contain unsegmented Roles. If *for-segment-ids* is absent or empty, specifying *include-unsegmented* as false results in an error. (optional) (default to True) - try: - # List Roles - - results = RolesApi(api_client).list_roles() - # Below is a request that includes all optional parameters - # results = RolesApi(api_client).list_roles(for_subadmin, limit, offset, count, filters, sorters, for_segment_ids, include_unsegmented) - print("The response of RolesApi->list_roles:\n") - pprint(results) - except Exception as e: - print("Exception when calling RolesApi->list_roles: %s\n" % e) + from sailpoint.configuration import Configuration + configuration = Configuration() + + + with ApiClient(configuration) as api_client: + for_subadmin = '5168015d32f890ca15812c9180835d2e' # str | If provided, filters the returned list according to what is visible to the indicated ROLE_SUBADMIN Identity. The value of the parameter is either an Identity ID, or the special value **me**, which is shorthand for the calling Identity's ID. A 400 Bad Request error is returned if the **for-subadmin** parameter is specified for an Identity that is not a subadmin. (optional) # str | If provided, filters the returned list according to what is visible to the indicated ROLE_SUBADMIN Identity. The value of the parameter is either an Identity ID, or the special value **me**, which is shorthand for the calling Identity's ID. A 400 Bad Request error is returned if the **for-subadmin** parameter is specified for an Identity that is not a subadmin. (optional) + limit = 50 # int | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) # int | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) + 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 = 'requestable eq false' # 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, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **requestable**: *eq* (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, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **requestable**: *eq* (optional) + sorters = 'name,-modified' # 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: **name, created, modified** (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: **name, created, modified** (optional) + for_segment_ids = '0b5c9f25-83c6-4762-9073-e38f7bb2ae26,2e8d8180-24bc-4d21-91c6-7affdb473b0d' # str | If present and not empty, additionally filters Roles to those which are assigned to the Segment(s) with the specified IDs. If segmentation is currently unavailable, specifying this parameter results in an error. (optional) # str | If present and not empty, additionally filters Roles to those which are assigned to the Segment(s) with the specified IDs. If segmentation is currently unavailable, specifying this parameter results in an error. (optional) + include_unsegmented = True # bool | Whether or not the response list should contain unsegmented Roles. If *for-segment-ids* is absent or empty, specifying *include-unsegmented* as false results in an error. (optional) (default to True) # bool | Whether or not the response list should contain unsegmented Roles. If *for-segment-ids* is absent or empty, specifying *include-unsegmented* as false results in an error. (optional) (default to True) + try: + # List Roles + + results = RolesApi(api_client).list_roles() + # Below is a request that includes all optional parameters + # results = RolesApi(api_client).list_roles(for_subadmin, limit, offset, count, filters, sorters, for_segment_ids, include_unsegmented) + print("The response of RolesApi->list_roles:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling RolesApi->list_roles: %s\n" % e) - path: /roles/{id} method: PATCH xCodeSample: @@ -14247,24 +13798,23 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.json_patch_operation import JsonPatchOperation from sailpoint.v2024.models.role import Role - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808a7813090a017814121e121518' # str | ID of the Role to patch # str | ID of the Role to patch - json_patch_operation = '''[{op=replace, path=/requestable, value=true}, {op=replace, path=/enabled, value=true}]''' # List[JsonPatchOperation] | - try: - # Patch a specified Role - new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) - results = RolesApi(api_client).patch_role(id=id, json_patch_operation=new_json_patch_operation) - # Below is a request that includes all optional parameters - # results = RolesApi(api_client).patch_role(id, new_json_patch_operation) - print("The response of RolesApi->patch_role:\n") - pprint(results) - except Exception as e: - print("Exception when calling RolesApi->patch_role: %s\n" % e) + id = '2c91808a7813090a017814121e121518' # str | ID of the Role to patch # str | ID of the Role to patch + json_patch_operation = '''[{op=replace, path=/requestable, value=true}, {op=replace, path=/enabled, value=true}]''' # List[JsonPatchOperation] | + try: + # Patch a specified Role + new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) + results = RolesApi(api_client).patch_role(id=id, json_patch_operation=new_json_patch_operation) + # Below is a request that includes all optional parameters + # results = RolesApi(api_client).patch_role(id, new_json_patch_operation) + print("The response of RolesApi->patch_role:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling RolesApi->patch_role: %s\n" % e) - path: /roles/filter method: POST xCodeSample: @@ -14275,36 +13825,35 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role import Role from sailpoint.v2024.models.role_list_filter_dto import RoleListFilterDTO - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - for_subadmin = '5168015d32f890ca15812c9180835d2e' # str | If provided, filters the returned list according to what is visible to the indicated ROLE_SUBADMIN Identity. The value of the parameter is either an Identity ID, or the special value **me**, which is shorthand for the calling Identity's ID. A 400 Bad Request error is returned if the **for-subadmin** parameter is specified for an Identity that is not a subadmin. (optional) # str | If provided, filters the returned list according to what is visible to the indicated ROLE_SUBADMIN Identity. The value of the parameter is either an Identity ID, or the special value **me**, which is shorthand for the calling Identity's ID. A 400 Bad Request error is returned if the **for-subadmin** parameter is specified for an Identity that is not a subadmin. (optional) - limit = 50 # 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 50) # 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 50) - 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) - sorters = 'name,-modified' # 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: **name, created, modified** (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: **name, created, modified** (optional) - for_segment_ids = '0b5c9f25-83c6-4762-9073-e38f7bb2ae26,2e8d8180-24bc-4d21-91c6-7affdb473b0d' # str | If present and not empty, additionally filters Roles to those which are assigned to the Segment(s) with the specified IDs. If segmentation is currently unavailable, specifying this parameter results in an error. (optional) # str | If present and not empty, additionally filters Roles to those which are assigned to the Segment(s) with the specified IDs. If segmentation is currently unavailable, specifying this parameter results in an error. (optional) - include_unsegmented = True # bool | Whether or not the response list should contain unsegmented Roles. If *for-segment-ids* is absent or empty, specifying *include-unsegmented* as false results in an error. (optional) (default to True) # bool | Whether or not the response list should contain unsegmented Roles. If *for-segment-ids* is absent or empty, specifying *include-unsegmented* as false results in an error. (optional) (default to True) - role_list_filter_dto = '''{ + for_subadmin = '5168015d32f890ca15812c9180835d2e' # str | If provided, filters the returned list according to what is visible to the indicated ROLE_SUBADMIN Identity. The value of the parameter is either an Identity ID, or the special value **me**, which is shorthand for the calling Identity's ID. A 400 Bad Request error is returned if the **for-subadmin** parameter is specified for an Identity that is not a subadmin. (optional) # str | If provided, filters the returned list according to what is visible to the indicated ROLE_SUBADMIN Identity. The value of the parameter is either an Identity ID, or the special value **me**, which is shorthand for the calling Identity's ID. A 400 Bad Request error is returned if the **for-subadmin** parameter is specified for an Identity that is not a subadmin. (optional) + limit = 50 # 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 50) # 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 50) + 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) + sorters = 'name,-modified' # 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: **name, created, modified** (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: **name, created, modified** (optional) + for_segment_ids = '0b5c9f25-83c6-4762-9073-e38f7bb2ae26,2e8d8180-24bc-4d21-91c6-7affdb473b0d' # str | If present and not empty, additionally filters Roles to those which are assigned to the Segment(s) with the specified IDs. If segmentation is currently unavailable, specifying this parameter results in an error. (optional) # str | If present and not empty, additionally filters Roles to those which are assigned to the Segment(s) with the specified IDs. If segmentation is currently unavailable, specifying this parameter results in an error. (optional) + include_unsegmented = True # bool | Whether or not the response list should contain unsegmented Roles. If *for-segment-ids* is absent or empty, specifying *include-unsegmented* as false results in an error. (optional) (default to True) # bool | Whether or not the response list should contain unsegmented Roles. If *for-segment-ids* is absent or empty, specifying *include-unsegmented* as false results in an error. (optional) (default to True) + role_list_filter_dto = '''{ "ammKeyValues" : [ { "attribute" : "iscFederalClassifications", "values" : [ "secret" ] } ], "filters" : "dimensional eq false" }''' # RoleListFilterDTO | (optional) - try: - # Filter Roles by Metadata - - results = RolesApi(api_client).search_roles_by_filter() - # Below is a request that includes all optional parameters - # results = RolesApi(api_client).search_roles_by_filter(for_subadmin, limit, offset, count, sorters, for_segment_ids, include_unsegmented, new_role_list_filter_dto) - print("The response of RolesApi->search_roles_by_filter:\n") - pprint(results) - except Exception as e: - print("Exception when calling RolesApi->search_roles_by_filter: %s\n" % e) + try: + # Filter Roles by Metadata + + results = RolesApi(api_client).search_roles_by_filter() + # Below is a request that includes all optional parameters + # results = RolesApi(api_client).search_roles_by_filter(for_subadmin, limit, offset, count, sorters, for_segment_ids, include_unsegmented, new_role_list_filter_dto) + print("The response of RolesApi->search_roles_by_filter:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling RolesApi->search_roles_by_filter: %s\n" % e) - path: /roles/{id}/access-model-metadata/{attributeKey}/values/{attributeValue} method: POST xCodeSample: @@ -14314,25 +13863,24 @@ from sailpoint.v2024.api.roles_api import RolesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role import Role - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'c24359c389374d0fb8585698a2189e3d' # str | The Id of a role # str | The Id of a role - attribute_key = 'iscPrivacy' # str | Technical name of the Attribute. # str | Technical name of the Attribute. - attribute_value = 'public' # str | Technical name of the Attribute Value. # str | Technical name of the Attribute Value. - try: - # Add a Metadata to Role. - - results = RolesApi(api_client).update_attribute_key_and_value_to_role(id=id, attribute_key=attribute_key, attribute_value=attribute_value) - # Below is a request that includes all optional parameters - # results = RolesApi(api_client).update_attribute_key_and_value_to_role(id, attribute_key, attribute_value) - print("The response of RolesApi->update_attribute_key_and_value_to_role:\n") - pprint(results) - except Exception as e: - print("Exception when calling RolesApi->update_attribute_key_and_value_to_role: %s\n" % e) + id = 'c24359c389374d0fb8585698a2189e3d' # str | The Id of a role # str | The Id of a role + attribute_key = 'iscPrivacy' # str | Technical name of the Attribute. # str | Technical name of the Attribute. + attribute_value = 'public' # str | Technical name of the Attribute Value. # str | Technical name of the Attribute Value. + try: + # Add a Metadata to Role. + + results = RolesApi(api_client).update_attribute_key_and_value_to_role(id=id, attribute_key=attribute_key, attribute_value=attribute_value) + # Below is a request that includes all optional parameters + # results = RolesApi(api_client).update_attribute_key_and_value_to_role(id, attribute_key, attribute_value) + print("The response of RolesApi->update_attribute_key_and_value_to_role:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling RolesApi->update_attribute_key_and_value_to_role: %s\n" % e) - path: /roles/access-model-metadata/bulk-update/filter method: POST xCodeSample: @@ -14343,13 +13891,12 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role_bulk_update_response import RoleBulkUpdateResponse from sailpoint.v2024.models.role_metadata_bulk_update_by_filter_request import RoleMetadataBulkUpdateByFilterRequest - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - role_metadata_bulk_update_by_filter_request = '''{ + role_metadata_bulk_update_by_filter_request = '''{ "values" : [ { "attribute" : "iscFederalClassifications", "values" : [ "topSecret" ] @@ -14358,16 +13905,16 @@ "replaceScope" : "ALL", "operation" : "REPLACE" }''' # RoleMetadataBulkUpdateByFilterRequest | - try: - # Bulk-Update Roles' Metadata by Filters - new_role_metadata_bulk_update_by_filter_request = RoleMetadataBulkUpdateByFilterRequest.from_json(role_metadata_bulk_update_by_filter_request) - results = RolesApi(api_client).update_roles_metadata_by_filter(role_metadata_bulk_update_by_filter_request=new_role_metadata_bulk_update_by_filter_request) - # Below is a request that includes all optional parameters - # results = RolesApi(api_client).update_roles_metadata_by_filter(new_role_metadata_bulk_update_by_filter_request) - print("The response of RolesApi->update_roles_metadata_by_filter:\n") - pprint(results) - except Exception as e: - print("Exception when calling RolesApi->update_roles_metadata_by_filter: %s\n" % e) + try: + # Bulk-Update Roles' Metadata by Filters + new_role_metadata_bulk_update_by_filter_request = RoleMetadataBulkUpdateByFilterRequest.from_json(role_metadata_bulk_update_by_filter_request) + results = RolesApi(api_client).update_roles_metadata_by_filter(role_metadata_bulk_update_by_filter_request=new_role_metadata_bulk_update_by_filter_request) + # Below is a request that includes all optional parameters + # results = RolesApi(api_client).update_roles_metadata_by_filter(new_role_metadata_bulk_update_by_filter_request) + print("The response of RolesApi->update_roles_metadata_by_filter:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling RolesApi->update_roles_metadata_by_filter: %s\n" % e) - path: /roles/access-model-metadata/bulk-update/ids method: POST xCodeSample: @@ -14378,13 +13925,12 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role_bulk_update_response import RoleBulkUpdateResponse from sailpoint.v2024.models.role_metadata_bulk_update_by_id_request import RoleMetadataBulkUpdateByIdRequest - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - role_metadata_bulk_update_by_id_request = '''{ + role_metadata_bulk_update_by_id_request = '''{ "roles" : [ "b1db89554cfa431cb8b9921ea38d9367" ], "values" : [ { "attribute" : "iscFederalClassifications", @@ -14393,16 +13939,16 @@ "replaceScope" : "ALL", "operation" : "REPLACE" }''' # RoleMetadataBulkUpdateByIdRequest | - try: - # Bulk-Update Roles' Metadata by ID - new_role_metadata_bulk_update_by_id_request = RoleMetadataBulkUpdateByIdRequest.from_json(role_metadata_bulk_update_by_id_request) - results = RolesApi(api_client).update_roles_metadata_by_ids(role_metadata_bulk_update_by_id_request=new_role_metadata_bulk_update_by_id_request) - # Below is a request that includes all optional parameters - # results = RolesApi(api_client).update_roles_metadata_by_ids(new_role_metadata_bulk_update_by_id_request) - print("The response of RolesApi->update_roles_metadata_by_ids:\n") - pprint(results) - except Exception as e: - print("Exception when calling RolesApi->update_roles_metadata_by_ids: %s\n" % e) + try: + # Bulk-Update Roles' Metadata by ID + new_role_metadata_bulk_update_by_id_request = RoleMetadataBulkUpdateByIdRequest.from_json(role_metadata_bulk_update_by_id_request) + results = RolesApi(api_client).update_roles_metadata_by_ids(role_metadata_bulk_update_by_id_request=new_role_metadata_bulk_update_by_id_request) + # Below is a request that includes all optional parameters + # results = RolesApi(api_client).update_roles_metadata_by_ids(new_role_metadata_bulk_update_by_id_request) + print("The response of RolesApi->update_roles_metadata_by_ids:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling RolesApi->update_roles_metadata_by_ids: %s\n" % e) - path: /roles/access-model-metadata/bulk-update/query method: POST xCodeSample: @@ -14413,13 +13959,12 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role_bulk_update_response import RoleBulkUpdateResponse from sailpoint.v2024.models.role_metadata_bulk_update_by_query_request import RoleMetadataBulkUpdateByQueryRequest - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - role_metadata_bulk_update_by_query_request = '''{ + role_metadata_bulk_update_by_query_request = '''{ "query" : { "query\"" : { "indices" : [ "roles" ], @@ -14443,16 +13988,16 @@ "replaceScope" : "ALL", "operation" : "REPLACE" }''' # RoleMetadataBulkUpdateByQueryRequest | - try: - # Bulk-Update Roles' Metadata by Query - new_role_metadata_bulk_update_by_query_request = RoleMetadataBulkUpdateByQueryRequest.from_json(role_metadata_bulk_update_by_query_request) - results = RolesApi(api_client).update_roles_metadata_by_query(role_metadata_bulk_update_by_query_request=new_role_metadata_bulk_update_by_query_request) - # Below is a request that includes all optional parameters - # results = RolesApi(api_client).update_roles_metadata_by_query(new_role_metadata_bulk_update_by_query_request) - print("The response of RolesApi->update_roles_metadata_by_query:\n") - pprint(results) - except Exception as e: - print("Exception when calling RolesApi->update_roles_metadata_by_query: %s\n" % e) + try: + # Bulk-Update Roles' Metadata by Query + new_role_metadata_bulk_update_by_query_request = RoleMetadataBulkUpdateByQueryRequest.from_json(role_metadata_bulk_update_by_query_request) + results = RolesApi(api_client).update_roles_metadata_by_query(role_metadata_bulk_update_by_query_request=new_role_metadata_bulk_update_by_query_request) + # Below is a request that includes all optional parameters + # results = RolesApi(api_client).update_roles_metadata_by_query(new_role_metadata_bulk_update_by_query_request) + print("The response of RolesApi->update_roles_metadata_by_query:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling RolesApi->update_roles_metadata_by_query: %s\n" % e) - path: /saved-searches method: POST xCodeSample: @@ -14463,23 +14008,22 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.create_saved_search_request import CreateSavedSearchRequest from sailpoint.v2024.models.saved_search import SavedSearch - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - create_saved_search_request = '''sailpoint.v2024.CreateSavedSearchRequest()''' # CreateSavedSearchRequest | The saved search to persist. - try: - # Create a saved search - new_create_saved_search_request = CreateSavedSearchRequest.from_json(create_saved_search_request) - results = SavedSearchApi(api_client).create_saved_search(create_saved_search_request=new_create_saved_search_request) - # Below is a request that includes all optional parameters - # results = SavedSearchApi(api_client).create_saved_search(new_create_saved_search_request) - print("The response of SavedSearchApi->create_saved_search:\n") - pprint(results) - except Exception as e: - print("Exception when calling SavedSearchApi->create_saved_search: %s\n" % e) + create_saved_search_request = '''sailpoint.v2024.CreateSavedSearchRequest()''' # CreateSavedSearchRequest | The saved search to persist. + try: + # Create a saved search + new_create_saved_search_request = CreateSavedSearchRequest.from_json(create_saved_search_request) + results = SavedSearchApi(api_client).create_saved_search(create_saved_search_request=new_create_saved_search_request) + # Below is a request that includes all optional parameters + # results = SavedSearchApi(api_client).create_saved_search(new_create_saved_search_request) + print("The response of SavedSearchApi->create_saved_search:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SavedSearchApi->create_saved_search: %s\n" % e) - path: /saved-searches/{id} method: DELETE xCodeSample: @@ -14488,21 +14032,20 @@ source: | from sailpoint.v2024.api.saved_search_api import SavedSearchApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808568c529c60168cca6f90c1313' # str | ID of the requested document. # str | ID of the requested document. - try: - # Delete document by ID - - SavedSearchApi(api_client).delete_saved_search(id=id) - # Below is a request that includes all optional parameters - # SavedSearchApi(api_client).delete_saved_search(id) - except Exception as e: - print("Exception when calling SavedSearchApi->delete_saved_search: %s\n" % e) + id = '2c91808568c529c60168cca6f90c1313' # str | ID of the requested document. # str | ID of the requested document. + try: + # Delete document by ID + + SavedSearchApi(api_client).delete_saved_search(id=id) + # Below is a request that includes all optional parameters + # SavedSearchApi(api_client).delete_saved_search(id) + except Exception as e: + print("Exception when calling SavedSearchApi->delete_saved_search: %s\n" % e) - path: /saved-searches/{id}/execute method: POST xCodeSample: @@ -14512,14 +14055,13 @@ from sailpoint.v2024.api.saved_search_api import SavedSearchApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.search_arguments import SearchArguments - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808568c529c60168cca6f90c1313' # str | ID of the requested document. # str | ID of the requested document. - search_arguments = '''{ + id = '2c91808568c529c60168cca6f90c1313' # str | ID of the requested document. # str | ID of the requested document. + search_arguments = '''{ "owner" : "", "recipients" : [ { "id" : "2c91808568c529c60168cca6f90c1313", @@ -14530,14 +14072,14 @@ } ], "scheduleId" : "7a724640-0c17-4ce9-a8c3-4a89738459c8" }''' # SearchArguments | When saved search execution is triggered by a scheduled search, *scheduleId* will specify the ID of the triggering scheduled search. If *scheduleId* is not specified (when execution is triggered by a UI test), the *owner* and *recipients* arguments must be provided. - try: - # Execute a saved search by ID - new_search_arguments = SearchArguments.from_json(search_arguments) - SavedSearchApi(api_client).execute_saved_search(id=id, search_arguments=new_search_arguments) - # Below is a request that includes all optional parameters - # SavedSearchApi(api_client).execute_saved_search(id, new_search_arguments) - except Exception as e: - print("Exception when calling SavedSearchApi->execute_saved_search: %s\n" % e) + try: + # Execute a saved search by ID + new_search_arguments = SearchArguments.from_json(search_arguments) + SavedSearchApi(api_client).execute_saved_search(id=id, search_arguments=new_search_arguments) + # Below is a request that includes all optional parameters + # SavedSearchApi(api_client).execute_saved_search(id, new_search_arguments) + except Exception as e: + print("Exception when calling SavedSearchApi->execute_saved_search: %s\n" % e) - path: /saved-searches/{id} method: GET xCodeSample: @@ -14547,23 +14089,22 @@ from sailpoint.v2024.api.saved_search_api import SavedSearchApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.saved_search import SavedSearch - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808568c529c60168cca6f90c1313' # str | ID of the requested document. # str | ID of the requested document. - try: - # Return saved search by ID - - results = SavedSearchApi(api_client).get_saved_search(id=id) - # Below is a request that includes all optional parameters - # results = SavedSearchApi(api_client).get_saved_search(id) - print("The response of SavedSearchApi->get_saved_search:\n") - pprint(results) - except Exception as e: - print("Exception when calling SavedSearchApi->get_saved_search: %s\n" % e) + id = '2c91808568c529c60168cca6f90c1313' # str | ID of the requested document. # str | ID of the requested document. + try: + # Return saved search by ID + + results = SavedSearchApi(api_client).get_saved_search(id=id) + # Below is a request that includes all optional parameters + # results = SavedSearchApi(api_client).get_saved_search(id) + print("The response of SavedSearchApi->get_saved_search:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SavedSearchApi->get_saved_search: %s\n" % e) - path: /saved-searches method: GET xCodeSample: @@ -14573,26 +14114,25 @@ from sailpoint.v2024.api.saved_search_api import SavedSearchApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.saved_search import SavedSearch - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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) - 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) - 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 = 'owner.id eq \"7a724640-0c17-4ce9-a8c3-4a89738459c8\"' # 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: **owner.id**: *eq* (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: **owner.id**: *eq* (optional) - try: - # A list of Saved Searches - - results = SavedSearchApi(api_client).list_saved_searches() - # Below is a request that includes all optional parameters - # results = SavedSearchApi(api_client).list_saved_searches(offset, limit, count, filters) - print("The response of SavedSearchApi->list_saved_searches:\n") - pprint(results) - except Exception as e: - print("Exception when calling SavedSearchApi->list_saved_searches: %s\n" % e) + 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) + 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) + 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 = 'owner.id eq \"7a724640-0c17-4ce9-a8c3-4a89738459c8\"' # 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: **owner.id**: *eq* (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: **owner.id**: *eq* (optional) + try: + # A list of Saved Searches + + results = SavedSearchApi(api_client).list_saved_searches() + # Below is a request that includes all optional parameters + # results = SavedSearchApi(api_client).list_saved_searches(offset, limit, count, filters) + print("The response of SavedSearchApi->list_saved_searches:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SavedSearchApi->list_saved_searches: %s\n" % e) - path: /saved-searches/{id} method: PUT xCodeSample: @@ -14602,14 +14142,13 @@ from sailpoint.v2024.api.saved_search_api import SavedSearchApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.saved_search import SavedSearch - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808568c529c60168cca6f90c1313' # str | ID of the requested document. # str | ID of the requested document. - saved_search = '''{ + id = '2c91808568c529c60168cca6f90c1313' # str | ID of the requested document. # str | ID of the requested document. + saved_search = '''{ "owner" : { "id" : "2c91808568c529c60168cca6f90c1313", "type" : "IDENTITY" @@ -14654,16 +14193,16 @@ "id" : "0de46054-fe90-434a-b84e-c6b3359d0c64", "fields" : [ "disabled" ] }''' # SavedSearch | The saved search to persist. - try: - # Updates an existing saved search - new_saved_search = SavedSearch.from_json(saved_search) - results = SavedSearchApi(api_client).put_saved_search(id=id, saved_search=new_saved_search) - # Below is a request that includes all optional parameters - # results = SavedSearchApi(api_client).put_saved_search(id, new_saved_search) - print("The response of SavedSearchApi->put_saved_search:\n") - pprint(results) - except Exception as e: - print("Exception when calling SavedSearchApi->put_saved_search: %s\n" % e) + try: + # Updates an existing saved search + new_saved_search = SavedSearch.from_json(saved_search) + results = SavedSearchApi(api_client).put_saved_search(id=id, saved_search=new_saved_search) + # Below is a request that includes all optional parameters + # results = SavedSearchApi(api_client).put_saved_search(id, new_saved_search) + print("The response of SavedSearchApi->put_saved_search:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SavedSearchApi->put_saved_search: %s\n" % e) - path: /scheduled-searches method: POST xCodeSample: @@ -14674,23 +14213,22 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.create_scheduled_search_request import CreateScheduledSearchRequest from sailpoint.v2024.models.scheduled_search import ScheduledSearch - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - create_scheduled_search_request = '''{savedSearchId=9c620e13-cd33-4804-a13d-403bd7bcdbad, schedule={type=DAILY, hours={type=LIST, values=[9]}}, recipients=[{type=IDENTITY, id=2c9180867624cbd7017642d8c8c81f67}]}''' # CreateScheduledSearchRequest | The scheduled search to persist. - try: - # Create a new scheduled search - new_create_scheduled_search_request = CreateScheduledSearchRequest.from_json(create_scheduled_search_request) - results = ScheduledSearchApi(api_client).create_scheduled_search(create_scheduled_search_request=new_create_scheduled_search_request) - # Below is a request that includes all optional parameters - # results = ScheduledSearchApi(api_client).create_scheduled_search(new_create_scheduled_search_request) - print("The response of ScheduledSearchApi->create_scheduled_search:\n") - pprint(results) - except Exception as e: - print("Exception when calling ScheduledSearchApi->create_scheduled_search: %s\n" % e) + create_scheduled_search_request = '''{savedSearchId=9c620e13-cd33-4804-a13d-403bd7bcdbad, schedule={type=DAILY, hours={type=LIST, values=[9]}}, recipients=[{type=IDENTITY, id=2c9180867624cbd7017642d8c8c81f67}]}''' # CreateScheduledSearchRequest | The scheduled search to persist. + try: + # Create a new scheduled search + new_create_scheduled_search_request = CreateScheduledSearchRequest.from_json(create_scheduled_search_request) + results = ScheduledSearchApi(api_client).create_scheduled_search(create_scheduled_search_request=new_create_scheduled_search_request) + # Below is a request that includes all optional parameters + # results = ScheduledSearchApi(api_client).create_scheduled_search(new_create_scheduled_search_request) + print("The response of ScheduledSearchApi->create_scheduled_search:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ScheduledSearchApi->create_scheduled_search: %s\n" % e) - path: /scheduled-searches/{id} method: DELETE xCodeSample: @@ -14699,21 +14237,20 @@ source: | from sailpoint.v2024.api.scheduled_search_api import ScheduledSearchApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808568c529c60168cca6f90c1313' # str | ID of the requested document. # str | ID of the requested document. - try: - # Delete a Scheduled Search - - ScheduledSearchApi(api_client).delete_scheduled_search(id=id) - # Below is a request that includes all optional parameters - # ScheduledSearchApi(api_client).delete_scheduled_search(id) - except Exception as e: - print("Exception when calling ScheduledSearchApi->delete_scheduled_search: %s\n" % e) + id = '2c91808568c529c60168cca6f90c1313' # str | ID of the requested document. # str | ID of the requested document. + try: + # Delete a Scheduled Search + + ScheduledSearchApi(api_client).delete_scheduled_search(id=id) + # Below is a request that includes all optional parameters + # ScheduledSearchApi(api_client).delete_scheduled_search(id) + except Exception as e: + print("Exception when calling ScheduledSearchApi->delete_scheduled_search: %s\n" % e) - path: /scheduled-searches/{id} method: GET xCodeSample: @@ -14723,23 +14260,22 @@ from sailpoint.v2024.api.scheduled_search_api import ScheduledSearchApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.scheduled_search import ScheduledSearch - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808568c529c60168cca6f90c1313' # str | ID of the requested document. # str | ID of the requested document. - try: - # Get a Scheduled Search - - results = ScheduledSearchApi(api_client).get_scheduled_search(id=id) - # Below is a request that includes all optional parameters - # results = ScheduledSearchApi(api_client).get_scheduled_search(id) - print("The response of ScheduledSearchApi->get_scheduled_search:\n") - pprint(results) - except Exception as e: - print("Exception when calling ScheduledSearchApi->get_scheduled_search: %s\n" % e) + id = '2c91808568c529c60168cca6f90c1313' # str | ID of the requested document. # str | ID of the requested document. + try: + # Get a Scheduled Search + + results = ScheduledSearchApi(api_client).get_scheduled_search(id=id) + # Below is a request that includes all optional parameters + # results = ScheduledSearchApi(api_client).get_scheduled_search(id) + print("The response of ScheduledSearchApi->get_scheduled_search:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ScheduledSearchApi->get_scheduled_search: %s\n" % e) - path: /scheduled-searches method: GET xCodeSample: @@ -14749,26 +14285,25 @@ from sailpoint.v2024.api.scheduled_search_api import ScheduledSearchApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.scheduled_search import ScheduledSearch - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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) - 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) - 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 = 'savedSearchId eq \"6cc0945d-9eeb-4948-9033-72d066e1153e\"' # 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: **owner.id**: *eq* **savedSearchId**: *eq* (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: **owner.id**: *eq* **savedSearchId**: *eq* (optional) - try: - # List scheduled searches - - results = ScheduledSearchApi(api_client).list_scheduled_search() - # Below is a request that includes all optional parameters - # results = ScheduledSearchApi(api_client).list_scheduled_search(offset, limit, count, filters) - print("The response of ScheduledSearchApi->list_scheduled_search:\n") - pprint(results) - except Exception as e: - print("Exception when calling ScheduledSearchApi->list_scheduled_search: %s\n" % e) + 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) + 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) + 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 = 'savedSearchId eq \"6cc0945d-9eeb-4948-9033-72d066e1153e\"' # 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: **owner.id**: *eq* **savedSearchId**: *eq* (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: **owner.id**: *eq* **savedSearchId**: *eq* (optional) + try: + # List scheduled searches + + results = ScheduledSearchApi(api_client).list_scheduled_search() + # Below is a request that includes all optional parameters + # results = ScheduledSearchApi(api_client).list_scheduled_search(offset, limit, count, filters) + print("The response of ScheduledSearchApi->list_scheduled_search:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ScheduledSearchApi->list_scheduled_search: %s\n" % e) - path: /scheduled-searches/{id}/unsubscribe method: POST xCodeSample: @@ -14778,25 +14313,24 @@ from sailpoint.v2024.api.scheduled_search_api import ScheduledSearchApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.typed_reference import TypedReference - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808568c529c60168cca6f90c1313' # str | ID of the requested document. # str | ID of the requested document. - typed_reference = '''{ + id = '2c91808568c529c60168cca6f90c1313' # str | ID of the requested document. # str | ID of the requested document. + typed_reference = '''{ "id" : "2c91808568c529c60168cca6f90c1313", "type" : "IDENTITY" }''' # TypedReference | The recipient to be removed from the scheduled search. - try: - # Unsubscribe a recipient from Scheduled Search - new_typed_reference = TypedReference.from_json(typed_reference) - ScheduledSearchApi(api_client).unsubscribe_scheduled_search(id=id, typed_reference=new_typed_reference) - # Below is a request that includes all optional parameters - # ScheduledSearchApi(api_client).unsubscribe_scheduled_search(id, new_typed_reference) - except Exception as e: - print("Exception when calling ScheduledSearchApi->unsubscribe_scheduled_search: %s\n" % e) + try: + # Unsubscribe a recipient from Scheduled Search + new_typed_reference = TypedReference.from_json(typed_reference) + ScheduledSearchApi(api_client).unsubscribe_scheduled_search(id=id, typed_reference=new_typed_reference) + # Below is a request that includes all optional parameters + # ScheduledSearchApi(api_client).unsubscribe_scheduled_search(id, new_typed_reference) + except Exception as e: + print("Exception when calling ScheduledSearchApi->unsubscribe_scheduled_search: %s\n" % e) - path: /scheduled-searches/{id} method: PUT xCodeSample: @@ -14806,14 +14340,13 @@ from sailpoint.v2024.api.scheduled_search_api import ScheduledSearchApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.scheduled_search import ScheduledSearch - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808568c529c60168cca6f90c1313' # str | ID of the requested document. # str | ID of the requested document. - scheduled_search = '''{ + id = '2c91808568c529c60168cca6f90c1313' # str | ID of the requested document. # str | ID of the requested document. + scheduled_search = '''{ "owner" : { "id" : "2c9180867624cbd7017642d8c8c81f67", "type" : "IDENTITY" @@ -14904,16 +14437,16 @@ "id" : "0de46054-fe90-434a-b84e-c6b3359d0c64", "emailEmptyResults" : false }''' # ScheduledSearch | The scheduled search to persist. - try: - # Update an existing Scheduled Search - new_scheduled_search = ScheduledSearch.from_json(scheduled_search) - results = ScheduledSearchApi(api_client).update_scheduled_search(id=id, scheduled_search=new_scheduled_search) - # Below is a request that includes all optional parameters - # results = ScheduledSearchApi(api_client).update_scheduled_search(id, new_scheduled_search) - print("The response of ScheduledSearchApi->update_scheduled_search:\n") - pprint(results) - except Exception as e: - print("Exception when calling ScheduledSearchApi->update_scheduled_search: %s\n" % e) + try: + # Update an existing Scheduled Search + new_scheduled_search = ScheduledSearch.from_json(scheduled_search) + results = ScheduledSearchApi(api_client).update_scheduled_search(id=id, scheduled_search=new_scheduled_search) + # Below is a request that includes all optional parameters + # results = ScheduledSearchApi(api_client).update_scheduled_search(id, new_scheduled_search) + print("The response of ScheduledSearchApi->update_scheduled_search:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ScheduledSearchApi->update_scheduled_search: %s\n" % e) - path: /search/aggregate method: POST xCodeSample: @@ -14924,13 +14457,12 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.aggregation_result import AggregationResult from sailpoint.v2024.models.search import Search - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - search = '''{ + search = '''{ "queryDsl" : { "match" : { "name" : "john.doe" @@ -15047,19 +14579,19 @@ } } }''' # Search | - 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) - 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) - 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) - try: - # Perform a Search Query Aggregation - new_search = Search.from_json(search) - results = SearchApi(api_client).search_aggregate(search=new_search) - # Below is a request that includes all optional parameters - # results = SearchApi(api_client).search_aggregate(new_search, offset, limit, count) - print("The response of SearchApi->search_aggregate:\n") - pprint(results) - except Exception as e: - print("Exception when calling SearchApi->search_aggregate: %s\n" % e) + 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) + 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) + 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) + try: + # Perform a Search Query Aggregation + new_search = Search.from_json(search) + results = SearchApi(api_client).search_aggregate(search=new_search) + # Below is a request that includes all optional parameters + # results = SearchApi(api_client).search_aggregate(new_search, offset, limit, count) + print("The response of SearchApi->search_aggregate:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SearchApi->search_aggregate: %s\n" % e) - path: /search/count method: POST xCodeSample: @@ -15069,13 +14601,12 @@ from sailpoint.v2024.api.search_api import SearchApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.search import Search - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - search = '''{ + search = '''{ "queryDsl" : { "match" : { "name" : "john.doe" @@ -15192,14 +14723,14 @@ } } }''' # Search | - try: - # Count Documents Satisfying a Query - new_search = Search.from_json(search) - SearchApi(api_client).search_count(search=new_search) - # Below is a request that includes all optional parameters - # SearchApi(api_client).search_count(new_search) - except Exception as e: - print("Exception when calling SearchApi->search_count: %s\n" % e) + try: + # Count Documents Satisfying a Query + new_search = Search.from_json(search) + SearchApi(api_client).search_count(search=new_search) + # Below is a request that includes all optional parameters + # SearchApi(api_client).search_count(new_search) + except Exception as e: + print("Exception when calling SearchApi->search_count: %s\n" % e) - path: /search/{index}/{id} method: GET xCodeSample: @@ -15208,24 +14739,23 @@ source: | from sailpoint.v2024.api.search_api import SearchApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - index = 'identities' # str | The index from which to fetch the specified document. The currently supported index names are: *accessprofiles*, *accountactivities*, *entitlements*, *events*, *identities*, and *roles*. # str | The index from which to fetch the specified document. The currently supported index names are: *accessprofiles*, *accountactivities*, *entitlements*, *events*, *identities*, and *roles*. - id = '2c91808568c529c60168cca6f90c1313' # str | ID of the requested document. # str | ID of the requested document. - try: - # Get a Document by ID - - results = SearchApi(api_client).search_get(index=index, id=id) - # Below is a request that includes all optional parameters - # results = SearchApi(api_client).search_get(index, id) - print("The response of SearchApi->search_get:\n") - pprint(results) - except Exception as e: - print("Exception when calling SearchApi->search_get: %s\n" % e) + index = 'identities' # str | The index from which to fetch the specified document. The currently supported index names are: *accessprofiles*, *accountactivities*, *entitlements*, *events*, *identities*, and *roles*. # str | The index from which to fetch the specified document. The currently supported index names are: *accessprofiles*, *accountactivities*, *entitlements*, *events*, *identities*, and *roles*. + id = '2c91808568c529c60168cca6f90c1313' # str | ID of the requested document. # str | ID of the requested document. + try: + # Get a Document by ID + + results = SearchApi(api_client).search_get(index=index, id=id) + # Below is a request that includes all optional parameters + # results = SearchApi(api_client).search_get(index, id) + print("The response of SearchApi->search_get:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SearchApi->search_get: %s\n" % e) - path: /search method: POST xCodeSample: @@ -15235,13 +14765,12 @@ from sailpoint.v2024.api.search_api import SearchApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.search import Search - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - search = '''{ + search = '''{ "queryDsl" : { "match" : { "name" : "john.doe" @@ -15358,19 +14887,19 @@ } } }''' # Search | - 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) - 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) - 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) - try: - # Perform Search - new_search = Search.from_json(search) - results = SearchApi(api_client).search_post(search=new_search) - # Below is a request that includes all optional parameters - # results = SearchApi(api_client).search_post(new_search, offset, limit, count) - print("The response of SearchApi->search_post:\n") - pprint(results) - except Exception as e: - print("Exception when calling SearchApi->search_post: %s\n" % e) + 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) + 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) + 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) + try: + # Perform Search + new_search = Search.from_json(search) + results = SearchApi(api_client).search_post(search=new_search) + # Below is a request that includes all optional parameters + # results = SearchApi(api_client).search_post(new_search, offset, limit, count) + print("The response of SearchApi->search_post:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SearchApi->search_post: %s\n" % e) - path: /accounts/search-attribute-config method: POST xCodeSample: @@ -15380,15 +14909,14 @@ from sailpoint.v2024.api.search_attribute_configuration_api import SearchAttributeConfigurationApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.search_attribute_config import SearchAttributeConfig - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - search_attribute_config = '''{ + 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') + search_attribute_config = '''{ "displayName" : "New Mail Attribute", "name" : "newMailAttribute", "applicationAttributes" : { @@ -15396,16 +14924,16 @@ "2c91808b79fd2422017a0b36008f396b" : "employeeNumber" } }''' # SearchAttributeConfig | - try: - # Create Extended Search Attributes - new_search_attribute_config = SearchAttributeConfig.from_json(search_attribute_config) - results = SearchAttributeConfigurationApi(api_client).create_search_attribute_config(x_sail_point_experimental=x_sail_point_experimental, search_attribute_config=new_search_attribute_config) - # Below is a request that includes all optional parameters - # results = SearchAttributeConfigurationApi(api_client).create_search_attribute_config(x_sail_point_experimental, new_search_attribute_config) - print("The response of SearchAttributeConfigurationApi->create_search_attribute_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling SearchAttributeConfigurationApi->create_search_attribute_config: %s\n" % e) + try: + # Create Extended Search Attributes + new_search_attribute_config = SearchAttributeConfig.from_json(search_attribute_config) + results = SearchAttributeConfigurationApi(api_client).create_search_attribute_config(x_sail_point_experimental=x_sail_point_experimental, search_attribute_config=new_search_attribute_config) + # Below is a request that includes all optional parameters + # results = SearchAttributeConfigurationApi(api_client).create_search_attribute_config(x_sail_point_experimental, new_search_attribute_config) + print("The response of SearchAttributeConfigurationApi->create_search_attribute_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SearchAttributeConfigurationApi->create_search_attribute_config: %s\n" % e) - path: /accounts/search-attribute-config/{name} method: DELETE xCodeSample: @@ -15414,23 +14942,22 @@ source: | from sailpoint.v2024.api.search_attribute_configuration_api import SearchAttributeConfigurationApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - name = 'newMailAttribute' # str | Name of the extended search attribute configuration to delete. # str | Name of the extended search attribute configuration 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') - try: - # Delete Extended Search Attribute - - SearchAttributeConfigurationApi(api_client).delete_search_attribute_config(name=name, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # SearchAttributeConfigurationApi(api_client).delete_search_attribute_config(name, x_sail_point_experimental) - except Exception as e: - print("Exception when calling SearchAttributeConfigurationApi->delete_search_attribute_config: %s\n" % e) + name = 'newMailAttribute' # str | Name of the extended search attribute configuration to delete. # str | Name of the extended search attribute configuration 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') + try: + # Delete Extended Search Attribute + + SearchAttributeConfigurationApi(api_client).delete_search_attribute_config(name=name, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # SearchAttributeConfigurationApi(api_client).delete_search_attribute_config(name, x_sail_point_experimental) + except Exception as e: + print("Exception when calling SearchAttributeConfigurationApi->delete_search_attribute_config: %s\n" % e) - path: /accounts/search-attribute-config method: GET xCodeSample: @@ -15440,26 +14967,25 @@ from sailpoint.v2024.api.search_attribute_configuration_api import SearchAttributeConfigurationApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.search_attribute_config import SearchAttributeConfig - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (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) - try: - # List Extended Search Attributes - - results = SearchAttributeConfigurationApi(api_client).get_search_attribute_config(x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = SearchAttributeConfigurationApi(api_client).get_search_attribute_config(x_sail_point_experimental, limit, offset) - print("The response of SearchAttributeConfigurationApi->get_search_attribute_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling SearchAttributeConfigurationApi->get_search_attribute_config: %s\n" % e) + 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') + 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) + try: + # List Extended Search Attributes + + results = SearchAttributeConfigurationApi(api_client).get_search_attribute_config(x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = SearchAttributeConfigurationApi(api_client).get_search_attribute_config(x_sail_point_experimental, limit, offset) + print("The response of SearchAttributeConfigurationApi->get_search_attribute_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SearchAttributeConfigurationApi->get_search_attribute_config: %s\n" % e) - path: /accounts/search-attribute-config/{name} method: GET xCodeSample: @@ -15469,25 +14995,24 @@ from sailpoint.v2024.api.search_attribute_configuration_api import SearchAttributeConfigurationApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.search_attribute_config import SearchAttributeConfig - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - name = 'newMailAttribute' # str | Name of the extended search attribute configuration to get. # str | Name of the extended search attribute configuration to get. - 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 Extended Search Attribute - - results = SearchAttributeConfigurationApi(api_client).get_single_search_attribute_config(name=name, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = SearchAttributeConfigurationApi(api_client).get_single_search_attribute_config(name, x_sail_point_experimental) - print("The response of SearchAttributeConfigurationApi->get_single_search_attribute_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling SearchAttributeConfigurationApi->get_single_search_attribute_config: %s\n" % e) + name = 'newMailAttribute' # str | Name of the extended search attribute configuration to get. # str | Name of the extended search attribute configuration to get. + 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 Extended Search Attribute + + results = SearchAttributeConfigurationApi(api_client).get_single_search_attribute_config(name=name, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = SearchAttributeConfigurationApi(api_client).get_single_search_attribute_config(name, x_sail_point_experimental) + print("The response of SearchAttributeConfigurationApi->get_single_search_attribute_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SearchAttributeConfigurationApi->get_single_search_attribute_config: %s\n" % e) - path: /accounts/search-attribute-config/{name} method: PATCH xCodeSample: @@ -15498,26 +15023,25 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.json_patch_operation import JsonPatchOperation from sailpoint.v2024.models.search_attribute_config import SearchAttributeConfig - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - name = 'promotedMailAttribute' # str | Name of the search attribute configuration to patch. # str | Name of the search attribute configuration to patch. - 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') - json_patch_operation = '''[{op=replace, path=/name, value=newAttributeName}, {op=replace, path=/displayName, value=new attribute display name}, {op=add, path=/applicationAttributes, value={2c91808b79fd2422017a0b35d30f3968=employeeNumber}}]''' # List[JsonPatchOperation] | - try: - # Update Extended Search Attribute - new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) - results = SearchAttributeConfigurationApi(api_client).patch_search_attribute_config(name=name, x_sail_point_experimental=x_sail_point_experimental, json_patch_operation=new_json_patch_operation) - # Below is a request that includes all optional parameters - # results = SearchAttributeConfigurationApi(api_client).patch_search_attribute_config(name, x_sail_point_experimental, new_json_patch_operation) - print("The response of SearchAttributeConfigurationApi->patch_search_attribute_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling SearchAttributeConfigurationApi->patch_search_attribute_config: %s\n" % e) + name = 'promotedMailAttribute' # str | Name of the search attribute configuration to patch. # str | Name of the search attribute configuration to patch. + 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') + json_patch_operation = '''[{op=replace, path=/name, value=newAttributeName}, {op=replace, path=/displayName, value=new attribute display name}, {op=add, path=/applicationAttributes, value={2c91808b79fd2422017a0b35d30f3968=employeeNumber}}]''' # List[JsonPatchOperation] | + try: + # Update Extended Search Attribute + new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) + results = SearchAttributeConfigurationApi(api_client).patch_search_attribute_config(name=name, x_sail_point_experimental=x_sail_point_experimental, json_patch_operation=new_json_patch_operation) + # Below is a request that includes all optional parameters + # results = SearchAttributeConfigurationApi(api_client).patch_search_attribute_config(name, x_sail_point_experimental, new_json_patch_operation) + print("The response of SearchAttributeConfigurationApi->patch_search_attribute_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SearchAttributeConfigurationApi->patch_search_attribute_config: %s\n" % e) - path: /segments method: POST xCodeSample: @@ -15527,13 +15051,12 @@ from sailpoint.v2024.api.segments_api import SegmentsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.segment import Segment - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - segment = '''{ + segment = '''{ "owner" : { "name" : "support", "id" : "2c9180a46faadee4016fb4e018c20639", @@ -15557,16 +15080,16 @@ "active" : true, "id" : "0f11f2a4-7c94-4bf3-a2bd-742580fe3bde" }''' # Segment | - try: - # Create Segment - new_segment = Segment.from_json(segment) - results = SegmentsApi(api_client).create_segment(segment=new_segment) - # Below is a request that includes all optional parameters - # results = SegmentsApi(api_client).create_segment(new_segment) - print("The response of SegmentsApi->create_segment:\n") - pprint(results) - except Exception as e: - print("Exception when calling SegmentsApi->create_segment: %s\n" % e) + try: + # Create Segment + new_segment = Segment.from_json(segment) + results = SegmentsApi(api_client).create_segment(segment=new_segment) + # Below is a request that includes all optional parameters + # results = SegmentsApi(api_client).create_segment(new_segment) + print("The response of SegmentsApi->create_segment:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SegmentsApi->create_segment: %s\n" % e) - path: /segments/{id} method: DELETE xCodeSample: @@ -15575,21 +15098,20 @@ source: | from sailpoint.v2024.api.segments_api import SegmentsApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The segment ID to delete. # str | The segment ID to delete. - try: - # Delete Segment by ID - - SegmentsApi(api_client).delete_segment(id=id) - # Below is a request that includes all optional parameters - # SegmentsApi(api_client).delete_segment(id) - except Exception as e: - print("Exception when calling SegmentsApi->delete_segment: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The segment ID to delete. # str | The segment ID to delete. + try: + # Delete Segment by ID + + SegmentsApi(api_client).delete_segment(id=id) + # Below is a request that includes all optional parameters + # SegmentsApi(api_client).delete_segment(id) + except Exception as e: + print("Exception when calling SegmentsApi->delete_segment: %s\n" % e) - path: /segments/{id} method: GET xCodeSample: @@ -15599,23 +15121,22 @@ from sailpoint.v2024.api.segments_api import SegmentsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.segment import Segment - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The segment ID to retrieve. # str | The segment ID to retrieve. - try: - # Get Segment by ID - - results = SegmentsApi(api_client).get_segment(id=id) - # Below is a request that includes all optional parameters - # results = SegmentsApi(api_client).get_segment(id) - print("The response of SegmentsApi->get_segment:\n") - pprint(results) - except Exception as e: - print("Exception when calling SegmentsApi->get_segment: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The segment ID to retrieve. # str | The segment ID to retrieve. + try: + # Get Segment by ID + + results = SegmentsApi(api_client).get_segment(id=id) + # Below is a request that includes all optional parameters + # results = SegmentsApi(api_client).get_segment(id) + print("The response of SegmentsApi->get_segment:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SegmentsApi->get_segment: %s\n" % e) - path: /segments method: GET xCodeSample: @@ -15625,25 +15146,24 @@ from sailpoint.v2024.api.segments_api import SegmentsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.segment import Segment - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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) - try: - # List Segments - - results = SegmentsApi(api_client).list_segments() - # Below is a request that includes all optional parameters - # results = SegmentsApi(api_client).list_segments(limit, offset, count) - print("The response of SegmentsApi->list_segments:\n") - pprint(results) - except Exception as e: - print("Exception when calling SegmentsApi->list_segments: %s\n" % e) + 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) + try: + # List Segments + + results = SegmentsApi(api_client).list_segments() + # Below is a request that includes all optional parameters + # results = SegmentsApi(api_client).list_segments(limit, offset, count) + print("The response of SegmentsApi->list_segments:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SegmentsApi->list_segments: %s\n" % e) - path: /segments/{id} method: PATCH xCodeSample: @@ -15653,24 +15173,23 @@ from sailpoint.v2024.api.segments_api import SegmentsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.segment import Segment - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The segment ID to modify. # str | The segment ID to modify. - request_body = '''[{op=replace, path=/visibilityCriteria, 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 * owner * visibilityCriteria * active - try: - # Update Segment - new_request_body = RequestBody.from_json(request_body) - results = SegmentsApi(api_client).patch_segment(id=id, request_body=new_request_body) - # Below is a request that includes all optional parameters - # results = SegmentsApi(api_client).patch_segment(id, new_request_body) - print("The response of SegmentsApi->patch_segment:\n") - pprint(results) - except Exception as e: - print("Exception when calling SegmentsApi->patch_segment: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The segment ID to modify. # str | The segment ID to modify. + request_body = '''[{op=replace, path=/visibilityCriteria, 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 * owner * visibilityCriteria * active + try: + # Update Segment + new_request_body = RequestBody.from_json(request_body) + results = SegmentsApi(api_client).patch_segment(id=id, request_body=new_request_body) + # Below is a request that includes all optional parameters + # results = SegmentsApi(api_client).patch_segment(id, new_request_body) + print("The response of SegmentsApi->patch_segment:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SegmentsApi->patch_segment: %s\n" % e) - path: /service-desk-integrations method: POST xCodeSample: @@ -15680,13 +15199,12 @@ from sailpoint.v2024.api.service_desk_integration_api import ServiceDeskIntegrationApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.service_desk_integration_dto import ServiceDeskIntegrationDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - service_desk_integration_dto = '''{ + service_desk_integration_dto = '''{ "ownerRef" : "", "cluster" : "xyzzy999", "created" : "2024-01-17T18:45:25.994Z", @@ -15720,16 +15238,16 @@ "id" : "62945a496ef440189b1f03e3623411c8", "beforeProvisioningRule" : "" }''' # ServiceDeskIntegrationDto | The specifics of a new integration to create - try: - # Create new Service Desk integration - new_service_desk_integration_dto = ServiceDeskIntegrationDto.from_json(service_desk_integration_dto) - results = ServiceDeskIntegrationApi(api_client).create_service_desk_integration(service_desk_integration_dto=new_service_desk_integration_dto) - # Below is a request that includes all optional parameters - # results = ServiceDeskIntegrationApi(api_client).create_service_desk_integration(new_service_desk_integration_dto) - print("The response of ServiceDeskIntegrationApi->create_service_desk_integration:\n") - pprint(results) - except Exception as e: - print("Exception when calling ServiceDeskIntegrationApi->create_service_desk_integration: %s\n" % e) + try: + # Create new Service Desk integration + new_service_desk_integration_dto = ServiceDeskIntegrationDto.from_json(service_desk_integration_dto) + results = ServiceDeskIntegrationApi(api_client).create_service_desk_integration(service_desk_integration_dto=new_service_desk_integration_dto) + # Below is a request that includes all optional parameters + # results = ServiceDeskIntegrationApi(api_client).create_service_desk_integration(new_service_desk_integration_dto) + print("The response of ServiceDeskIntegrationApi->create_service_desk_integration:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ServiceDeskIntegrationApi->create_service_desk_integration: %s\n" % e) - path: /service-desk-integrations/{id} method: DELETE xCodeSample: @@ -15738,21 +15256,20 @@ source: | from sailpoint.v2024.api.service_desk_integration_api import ServiceDeskIntegrationApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'anId' # str | ID of Service Desk integration to delete # str | ID of Service Desk integration to delete - try: - # Delete a Service Desk integration - - ServiceDeskIntegrationApi(api_client).delete_service_desk_integration(id=id) - # Below is a request that includes all optional parameters - # ServiceDeskIntegrationApi(api_client).delete_service_desk_integration(id) - except Exception as e: - print("Exception when calling ServiceDeskIntegrationApi->delete_service_desk_integration: %s\n" % e) + id = 'anId' # str | ID of Service Desk integration to delete # str | ID of Service Desk integration to delete + try: + # Delete a Service Desk integration + + ServiceDeskIntegrationApi(api_client).delete_service_desk_integration(id=id) + # Below is a request that includes all optional parameters + # ServiceDeskIntegrationApi(api_client).delete_service_desk_integration(id) + except Exception as e: + print("Exception when calling ServiceDeskIntegrationApi->delete_service_desk_integration: %s\n" % e) - path: /service-desk-integrations/{id} method: GET xCodeSample: @@ -15762,23 +15279,22 @@ from sailpoint.v2024.api.service_desk_integration_api import ServiceDeskIntegrationApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.service_desk_integration_dto import ServiceDeskIntegrationDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'anId' # str | ID of the Service Desk integration to get # str | ID of the Service Desk integration to get - try: - # Get a Service Desk integration - - results = ServiceDeskIntegrationApi(api_client).get_service_desk_integration(id=id) - # Below is a request that includes all optional parameters - # results = ServiceDeskIntegrationApi(api_client).get_service_desk_integration(id) - print("The response of ServiceDeskIntegrationApi->get_service_desk_integration:\n") - pprint(results) - except Exception as e: - print("Exception when calling ServiceDeskIntegrationApi->get_service_desk_integration: %s\n" % e) + id = 'anId' # str | ID of the Service Desk integration to get # str | ID of the Service Desk integration to get + try: + # Get a Service Desk integration + + results = ServiceDeskIntegrationApi(api_client).get_service_desk_integration(id=id) + # Below is a request that includes all optional parameters + # results = ServiceDeskIntegrationApi(api_client).get_service_desk_integration(id) + print("The response of ServiceDeskIntegrationApi->get_service_desk_integration:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ServiceDeskIntegrationApi->get_service_desk_integration: %s\n" % e) - path: /service-desk-integrations/templates/{scriptName} method: GET xCodeSample: @@ -15788,23 +15304,22 @@ from sailpoint.v2024.api.service_desk_integration_api import ServiceDeskIntegrationApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.service_desk_integration_template_dto import ServiceDeskIntegrationTemplateDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - script_name = 'aScriptName' # str | The scriptName value of the Service Desk integration template to get # str | The scriptName value of the Service Desk integration template to get - try: - # Service Desk integration template by scriptName - - results = ServiceDeskIntegrationApi(api_client).get_service_desk_integration_template(script_name=script_name) - # Below is a request that includes all optional parameters - # results = ServiceDeskIntegrationApi(api_client).get_service_desk_integration_template(script_name) - print("The response of ServiceDeskIntegrationApi->get_service_desk_integration_template:\n") - pprint(results) - except Exception as e: - print("Exception when calling ServiceDeskIntegrationApi->get_service_desk_integration_template: %s\n" % e) + script_name = 'aScriptName' # str | The scriptName value of the Service Desk integration template to get # str | The scriptName value of the Service Desk integration template to get + try: + # Service Desk integration template by scriptName + + results = ServiceDeskIntegrationApi(api_client).get_service_desk_integration_template(script_name=script_name) + # Below is a request that includes all optional parameters + # results = ServiceDeskIntegrationApi(api_client).get_service_desk_integration_template(script_name) + print("The response of ServiceDeskIntegrationApi->get_service_desk_integration_template:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ServiceDeskIntegrationApi->get_service_desk_integration_template: %s\n" % e) - path: /service-desk-integrations/types method: GET xCodeSample: @@ -15814,22 +15329,21 @@ from sailpoint.v2024.api.service_desk_integration_api import ServiceDeskIntegrationApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.service_desk_integration_template_type import ServiceDeskIntegrationTemplateType - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - try: - # List Service Desk integration types - - results = ServiceDeskIntegrationApi(api_client).get_service_desk_integration_types() - # Below is a request that includes all optional parameters - # results = ServiceDeskIntegrationApi(api_client).get_service_desk_integration_types() - print("The response of ServiceDeskIntegrationApi->get_service_desk_integration_types:\n") - pprint(results) - except Exception as e: - print("Exception when calling ServiceDeskIntegrationApi->get_service_desk_integration_types: %s\n" % e) + try: + # List Service Desk integration types + + results = ServiceDeskIntegrationApi(api_client).get_service_desk_integration_types() + # Below is a request that includes all optional parameters + # results = ServiceDeskIntegrationApi(api_client).get_service_desk_integration_types() + print("The response of ServiceDeskIntegrationApi->get_service_desk_integration_types:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ServiceDeskIntegrationApi->get_service_desk_integration_types: %s\n" % e) - path: /service-desk-integrations method: GET xCodeSample: @@ -15839,27 +15353,26 @@ from sailpoint.v2024.api.service_desk_integration_api import ServiceDeskIntegrationApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.service_desk_integration_dto import ServiceDeskIntegrationDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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) - 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) - sorters = 'name' # 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: **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: **name** (optional) - filters = 'name eq \"John Doe\"' # 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* **type**: *eq, in* **cluster**: *eq, in* (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* **type**: *eq, in* **cluster**: *eq, in* (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 [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) - try: - # List existing Service Desk integrations - - results = ServiceDeskIntegrationApi(api_client).get_service_desk_integrations() - # Below is a request that includes all optional parameters - # results = ServiceDeskIntegrationApi(api_client).get_service_desk_integrations(offset, limit, sorters, filters, count) - print("The response of ServiceDeskIntegrationApi->get_service_desk_integrations:\n") - pprint(results) - except Exception as e: - print("Exception when calling ServiceDeskIntegrationApi->get_service_desk_integrations: %s\n" % e) + 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) + 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) + sorters = 'name' # 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: **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: **name** (optional) + filters = 'name eq \"John Doe\"' # 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* **type**: *eq, in* **cluster**: *eq, in* (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* **type**: *eq, in* **cluster**: *eq, in* (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 [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) + try: + # List existing Service Desk integrations + + results = ServiceDeskIntegrationApi(api_client).get_service_desk_integrations() + # Below is a request that includes all optional parameters + # results = ServiceDeskIntegrationApi(api_client).get_service_desk_integrations(offset, limit, sorters, filters, count) + print("The response of ServiceDeskIntegrationApi->get_service_desk_integrations:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ServiceDeskIntegrationApi->get_service_desk_integrations: %s\n" % e) - path: /service-desk-integrations/status-check-configuration method: GET xCodeSample: @@ -15869,22 +15382,21 @@ from sailpoint.v2024.api.service_desk_integration_api import ServiceDeskIntegrationApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.queued_check_config_details import QueuedCheckConfigDetails - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - try: - # Get the time check configuration - - results = ServiceDeskIntegrationApi(api_client).get_status_check_details() - # Below is a request that includes all optional parameters - # results = ServiceDeskIntegrationApi(api_client).get_status_check_details() - print("The response of ServiceDeskIntegrationApi->get_status_check_details:\n") - pprint(results) - except Exception as e: - print("Exception when calling ServiceDeskIntegrationApi->get_status_check_details: %s\n" % e) + try: + # Get the time check configuration + + results = ServiceDeskIntegrationApi(api_client).get_status_check_details() + # Below is a request that includes all optional parameters + # results = ServiceDeskIntegrationApi(api_client).get_status_check_details() + print("The response of ServiceDeskIntegrationApi->get_status_check_details:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ServiceDeskIntegrationApi->get_status_check_details: %s\n" % e) - path: /service-desk-integrations/{id} method: PATCH xCodeSample: @@ -15895,24 +15407,23 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.patch_service_desk_integration_request import PatchServiceDeskIntegrationRequest from sailpoint.v2024.models.service_desk_integration_dto import ServiceDeskIntegrationDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'anId' # str | ID of the Service Desk integration to update # str | ID of the Service Desk integration to update - patch_service_desk_integration_request = '''sailpoint.v2024.PatchServiceDeskIntegrationRequest()''' # PatchServiceDeskIntegrationRequest | A list of SDIM update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Only `replace` operations are accepted by this endpoint. A 403 Forbidden Error indicates that a PATCH operation was attempted that is not allowed. - try: - # Patch a Service Desk Integration - new_patch_service_desk_integration_request = PatchServiceDeskIntegrationRequest.from_json(patch_service_desk_integration_request) - results = ServiceDeskIntegrationApi(api_client).patch_service_desk_integration(id=id, patch_service_desk_integration_request=new_patch_service_desk_integration_request) - # Below is a request that includes all optional parameters - # results = ServiceDeskIntegrationApi(api_client).patch_service_desk_integration(id, new_patch_service_desk_integration_request) - print("The response of ServiceDeskIntegrationApi->patch_service_desk_integration:\n") - pprint(results) - except Exception as e: - print("Exception when calling ServiceDeskIntegrationApi->patch_service_desk_integration: %s\n" % e) + id = 'anId' # str | ID of the Service Desk integration to update # str | ID of the Service Desk integration to update + patch_service_desk_integration_request = '''sailpoint.v2024.PatchServiceDeskIntegrationRequest()''' # PatchServiceDeskIntegrationRequest | A list of SDIM update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Only `replace` operations are accepted by this endpoint. A 403 Forbidden Error indicates that a PATCH operation was attempted that is not allowed. + try: + # Patch a Service Desk Integration + new_patch_service_desk_integration_request = PatchServiceDeskIntegrationRequest.from_json(patch_service_desk_integration_request) + results = ServiceDeskIntegrationApi(api_client).patch_service_desk_integration(id=id, patch_service_desk_integration_request=new_patch_service_desk_integration_request) + # Below is a request that includes all optional parameters + # results = ServiceDeskIntegrationApi(api_client).patch_service_desk_integration(id, new_patch_service_desk_integration_request) + print("The response of ServiceDeskIntegrationApi->patch_service_desk_integration:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ServiceDeskIntegrationApi->patch_service_desk_integration: %s\n" % e) - path: /service-desk-integrations/{id} method: PUT xCodeSample: @@ -15922,14 +15433,13 @@ from sailpoint.v2024.api.service_desk_integration_api import ServiceDeskIntegrationApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.service_desk_integration_dto import ServiceDeskIntegrationDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'anId' # str | ID of the Service Desk integration to update # str | ID of the Service Desk integration to update - service_desk_integration_dto = '''{ + id = 'anId' # str | ID of the Service Desk integration to update # str | ID of the Service Desk integration to update + service_desk_integration_dto = '''{ "ownerRef" : "", "cluster" : "xyzzy999", "created" : "2024-01-17T18:45:25.994Z", @@ -15963,16 +15473,16 @@ "id" : "62945a496ef440189b1f03e3623411c8", "beforeProvisioningRule" : "" }''' # ServiceDeskIntegrationDto | The specifics of the integration to update - try: - # Update a Service Desk integration - new_service_desk_integration_dto = ServiceDeskIntegrationDto.from_json(service_desk_integration_dto) - results = ServiceDeskIntegrationApi(api_client).put_service_desk_integration(id=id, service_desk_integration_dto=new_service_desk_integration_dto) - # Below is a request that includes all optional parameters - # results = ServiceDeskIntegrationApi(api_client).put_service_desk_integration(id, new_service_desk_integration_dto) - print("The response of ServiceDeskIntegrationApi->put_service_desk_integration:\n") - pprint(results) - except Exception as e: - print("Exception when calling ServiceDeskIntegrationApi->put_service_desk_integration: %s\n" % e) + try: + # Update a Service Desk integration + new_service_desk_integration_dto = ServiceDeskIntegrationDto.from_json(service_desk_integration_dto) + results = ServiceDeskIntegrationApi(api_client).put_service_desk_integration(id=id, service_desk_integration_dto=new_service_desk_integration_dto) + # Below is a request that includes all optional parameters + # results = ServiceDeskIntegrationApi(api_client).put_service_desk_integration(id, new_service_desk_integration_dto) + print("The response of ServiceDeskIntegrationApi->put_service_desk_integration:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ServiceDeskIntegrationApi->put_service_desk_integration: %s\n" % e) - path: /service-desk-integrations/status-check-configuration method: PUT xCodeSample: @@ -15982,26 +15492,25 @@ from sailpoint.v2024.api.service_desk_integration_api import ServiceDeskIntegrationApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.queued_check_config_details import QueuedCheckConfigDetails - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - queued_check_config_details = '''{ + queued_check_config_details = '''{ "provisioningStatusCheckIntervalMinutes" : "30", "provisioningMaxStatusCheckDays" : "2" }''' # QueuedCheckConfigDetails | The modified time check configuration - try: - # Update the time check configuration - new_queued_check_config_details = QueuedCheckConfigDetails.from_json(queued_check_config_details) - results = ServiceDeskIntegrationApi(api_client).update_status_check_details(queued_check_config_details=new_queued_check_config_details) - # Below is a request that includes all optional parameters - # results = ServiceDeskIntegrationApi(api_client).update_status_check_details(new_queued_check_config_details) - print("The response of ServiceDeskIntegrationApi->update_status_check_details:\n") - pprint(results) - except Exception as e: - print("Exception when calling ServiceDeskIntegrationApi->update_status_check_details: %s\n" % e) + try: + # Update the time check configuration + new_queued_check_config_details = QueuedCheckConfigDetails.from_json(queued_check_config_details) + results = ServiceDeskIntegrationApi(api_client).update_status_check_details(queued_check_config_details=new_queued_check_config_details) + # Below is a request that includes all optional parameters + # results = ServiceDeskIntegrationApi(api_client).update_status_check_details(new_queued_check_config_details) + print("The response of ServiceDeskIntegrationApi->update_status_check_details:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ServiceDeskIntegrationApi->update_status_check_details: %s\n" % e) - path: /sim-integrations method: POST xCodeSample: @@ -16012,15 +15521,14 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.service_desk_integration_dto import ServiceDeskIntegrationDto from sailpoint.v2024.models.sim_integration_details import SimIntegrationDetails - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - sim_integration_details = '''{ + 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') + sim_integration_details = '''{ "cluster" : "xyzzy999", "statusMap" : "{closed_cancelled=Failed, closed_complete=Committed, closed_incomplete=Failed, closed_rejected=Failed, in_process=Queued, requested=Queued}", "request" : "{description=SailPoint Access Request,, req_description=The Service Request created by SailPoint ServiceNow Service Integration Module (SIM).,, req_short_description=SailPoint New Access Request Created from IdentityNow,, short_description=SailPoint Access Request $!plan.arguments.identityRequestId}", @@ -16038,16 +15546,16 @@ "type" : "IDENTITY" } }''' # SimIntegrationDetails | DTO containing the details of the SIM integration - try: - # Create new SIM integration - new_sim_integration_details = SimIntegrationDetails.from_json(sim_integration_details) - results = SIMIntegrationsApi(api_client).create_sim_integration(x_sail_point_experimental=x_sail_point_experimental, sim_integration_details=new_sim_integration_details) - # Below is a request that includes all optional parameters - # results = SIMIntegrationsApi(api_client).create_sim_integration(x_sail_point_experimental, new_sim_integration_details) - print("The response of SIMIntegrationsApi->create_sim_integration:\n") - pprint(results) - except Exception as e: - print("Exception when calling SIMIntegrationsApi->create_sim_integration: %s\n" % e) + try: + # Create new SIM integration + new_sim_integration_details = SimIntegrationDetails.from_json(sim_integration_details) + results = SIMIntegrationsApi(api_client).create_sim_integration(x_sail_point_experimental=x_sail_point_experimental, sim_integration_details=new_sim_integration_details) + # Below is a request that includes all optional parameters + # results = SIMIntegrationsApi(api_client).create_sim_integration(x_sail_point_experimental, new_sim_integration_details) + print("The response of SIMIntegrationsApi->create_sim_integration:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SIMIntegrationsApi->create_sim_integration: %s\n" % e) - path: /sim-integrations/{id} method: DELETE xCodeSample: @@ -16056,23 +15564,22 @@ source: | from sailpoint.v2024.api.sim_integrations_api import SIMIntegrationsApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = '12345' # str | The id of the integration to delete. # str | The id of the integration 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') - try: - # Delete a SIM integration - - SIMIntegrationsApi(api_client).delete_sim_integration(id=id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # SIMIntegrationsApi(api_client).delete_sim_integration(id, x_sail_point_experimental) - except Exception as e: - print("Exception when calling SIMIntegrationsApi->delete_sim_integration: %s\n" % e) + id = '12345' # str | The id of the integration to delete. # str | The id of the integration 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') + try: + # Delete a SIM integration + + SIMIntegrationsApi(api_client).delete_sim_integration(id=id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # SIMIntegrationsApi(api_client).delete_sim_integration(id, x_sail_point_experimental) + except Exception as e: + print("Exception when calling SIMIntegrationsApi->delete_sim_integration: %s\n" % e) - path: /sim-integrations/{id} method: GET xCodeSample: @@ -16082,25 +15589,24 @@ from sailpoint.v2024.api.sim_integrations_api import SIMIntegrationsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.service_desk_integration_dto import ServiceDeskIntegrationDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = '12345' # str | The id of the integration. # str | The id of the integration. - 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 a SIM integration details. - - results = SIMIntegrationsApi(api_client).get_sim_integration(id=id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = SIMIntegrationsApi(api_client).get_sim_integration(id, x_sail_point_experimental) - print("The response of SIMIntegrationsApi->get_sim_integration:\n") - pprint(results) - except Exception as e: - print("Exception when calling SIMIntegrationsApi->get_sim_integration: %s\n" % e) + id = '12345' # str | The id of the integration. # str | The id of the integration. + 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 a SIM integration details. + + results = SIMIntegrationsApi(api_client).get_sim_integration(id=id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = SIMIntegrationsApi(api_client).get_sim_integration(id, x_sail_point_experimental) + print("The response of SIMIntegrationsApi->get_sim_integration:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SIMIntegrationsApi->get_sim_integration: %s\n" % e) - path: /sim-integrations method: GET xCodeSample: @@ -16110,24 +15616,23 @@ from sailpoint.v2024.api.sim_integrations_api import SIMIntegrationsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.service_desk_integration_dto import ServiceDeskIntegrationDto - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - try: - # List the existing SIM integrations. - - results = SIMIntegrationsApi(api_client).get_sim_integrations(x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = SIMIntegrationsApi(api_client).get_sim_integrations(x_sail_point_experimental) - print("The response of SIMIntegrationsApi->get_sim_integrations:\n") - pprint(results) - except Exception as e: - print("Exception when calling SIMIntegrationsApi->get_sim_integrations: %s\n" % e) + 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: + # List the existing SIM integrations. + + results = SIMIntegrationsApi(api_client).get_sim_integrations(x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = SIMIntegrationsApi(api_client).get_sim_integrations(x_sail_point_experimental) + print("The response of SIMIntegrationsApi->get_sim_integrations:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SIMIntegrationsApi->get_sim_integrations: %s\n" % e) - path: /sim-integrations/{id}/beforeProvisioningRule method: PATCH xCodeSample: @@ -16138,16 +15643,15 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.json_patch import JsonPatch from sailpoint.v2024.models.service_desk_integration_dto import ServiceDeskIntegrationDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = '12345' # str | SIM integration id # str | SIM integration id - 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') - json_patch = '''{ + id = '12345' # str | SIM integration id # str | SIM integration id + 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') + json_patch = '''{ "operations" : [ { "op" : "replace", "path" : "/description", @@ -16158,16 +15662,16 @@ "value" : "New description" } ] }''' # JsonPatch | The JsonPatch object that describes the changes of SIM beforeProvisioningRule. - try: - # Patch a SIM beforeProvisioningRule attribute. - new_json_patch = JsonPatch.from_json(json_patch) - results = SIMIntegrationsApi(api_client).patch_before_provisioning_rule(id=id, x_sail_point_experimental=x_sail_point_experimental, json_patch=new_json_patch) - # Below is a request that includes all optional parameters - # results = SIMIntegrationsApi(api_client).patch_before_provisioning_rule(id, x_sail_point_experimental, new_json_patch) - print("The response of SIMIntegrationsApi->patch_before_provisioning_rule:\n") - pprint(results) - except Exception as e: - print("Exception when calling SIMIntegrationsApi->patch_before_provisioning_rule: %s\n" % e) + try: + # Patch a SIM beforeProvisioningRule attribute. + new_json_patch = JsonPatch.from_json(json_patch) + results = SIMIntegrationsApi(api_client).patch_before_provisioning_rule(id=id, x_sail_point_experimental=x_sail_point_experimental, json_patch=new_json_patch) + # Below is a request that includes all optional parameters + # results = SIMIntegrationsApi(api_client).patch_before_provisioning_rule(id, x_sail_point_experimental, new_json_patch) + print("The response of SIMIntegrationsApi->patch_before_provisioning_rule:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SIMIntegrationsApi->patch_before_provisioning_rule: %s\n" % e) - path: /sim-integrations/{id} method: PATCH xCodeSample: @@ -16178,16 +15682,15 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.json_patch import JsonPatch from sailpoint.v2024.models.service_desk_integration_dto import ServiceDeskIntegrationDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = '12345' # str | SIM integration id # str | SIM integration id - 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') - json_patch = '''{ + id = '12345' # str | SIM integration id # str | SIM integration id + 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') + json_patch = '''{ "operations" : [ { "op" : "replace", "path" : "/description", @@ -16198,16 +15701,16 @@ "value" : "New description" } ] }''' # JsonPatch | The JsonPatch object that describes the changes of SIM - try: - # Patch a SIM attribute. - new_json_patch = JsonPatch.from_json(json_patch) - results = SIMIntegrationsApi(api_client).patch_sim_attributes(id=id, x_sail_point_experimental=x_sail_point_experimental, json_patch=new_json_patch) - # Below is a request that includes all optional parameters - # results = SIMIntegrationsApi(api_client).patch_sim_attributes(id, x_sail_point_experimental, new_json_patch) - print("The response of SIMIntegrationsApi->patch_sim_attributes:\n") - pprint(results) - except Exception as e: - print("Exception when calling SIMIntegrationsApi->patch_sim_attributes: %s\n" % e) + try: + # Patch a SIM attribute. + new_json_patch = JsonPatch.from_json(json_patch) + results = SIMIntegrationsApi(api_client).patch_sim_attributes(id=id, x_sail_point_experimental=x_sail_point_experimental, json_patch=new_json_patch) + # Below is a request that includes all optional parameters + # results = SIMIntegrationsApi(api_client).patch_sim_attributes(id, x_sail_point_experimental, new_json_patch) + print("The response of SIMIntegrationsApi->patch_sim_attributes:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SIMIntegrationsApi->patch_sim_attributes: %s\n" % e) - path: /sim-integrations/{id} method: PUT xCodeSample: @@ -16218,16 +15721,15 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.service_desk_integration_dto import ServiceDeskIntegrationDto from sailpoint.v2024.models.sim_integration_details import SimIntegrationDetails - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = '12345' # str | The id of the integration. # str | The id of the integration. - 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') - sim_integration_details = '''{ + id = '12345' # str | The id of the integration. # str | The id of the integration. + 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') + sim_integration_details = '''{ "cluster" : "xyzzy999", "statusMap" : "{closed_cancelled=Failed, closed_complete=Committed, closed_incomplete=Failed, closed_rejected=Failed, in_process=Queued, requested=Queued}", "request" : "{description=SailPoint Access Request,, req_description=The Service Request created by SailPoint ServiceNow Service Integration Module (SIM).,, req_short_description=SailPoint New Access Request Created from IdentityNow,, short_description=SailPoint Access Request $!plan.arguments.identityRequestId}", @@ -16245,16 +15747,16 @@ "type" : "IDENTITY" } }''' # SimIntegrationDetails | The full DTO of the integration containing the updated model - try: - # Update an existing SIM integration - new_sim_integration_details = SimIntegrationDetails.from_json(sim_integration_details) - results = SIMIntegrationsApi(api_client).put_sim_integration(id=id, x_sail_point_experimental=x_sail_point_experimental, sim_integration_details=new_sim_integration_details) - # Below is a request that includes all optional parameters - # results = SIMIntegrationsApi(api_client).put_sim_integration(id, x_sail_point_experimental, new_sim_integration_details) - print("The response of SIMIntegrationsApi->put_sim_integration:\n") - pprint(results) - except Exception as e: - print("Exception when calling SIMIntegrationsApi->put_sim_integration: %s\n" % e) + try: + # Update an existing SIM integration + new_sim_integration_details = SimIntegrationDetails.from_json(sim_integration_details) + results = SIMIntegrationsApi(api_client).put_sim_integration(id=id, x_sail_point_experimental=x_sail_point_experimental, sim_integration_details=new_sim_integration_details) + # Below is a request that includes all optional parameters + # results = SIMIntegrationsApi(api_client).put_sim_integration(id, x_sail_point_experimental, new_sim_integration_details) + print("The response of SIMIntegrationsApi->put_sim_integration:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SIMIntegrationsApi->put_sim_integration: %s\n" % e) - path: /sod-policies method: POST xCodeSample: @@ -16264,13 +15766,12 @@ from sailpoint.v2024.api.sod_policies_api import SODPoliciesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.sod_policy import SodPolicy - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - sod_policy = '''{ + sod_policy = '''{ "conflictingAccessCriteria" : { "leftCriteria" : { "name" : "money-in", @@ -16326,16 +15827,16 @@ "state" : "ENFORCED", "externalPolicyReference" : "XYZ policy" }''' # SodPolicy | - try: - # Create SOD policy - new_sod_policy = SodPolicy.from_json(sod_policy) - results = SODPoliciesApi(api_client).create_sod_policy(sod_policy=new_sod_policy) - # Below is a request that includes all optional parameters - # results = SODPoliciesApi(api_client).create_sod_policy(new_sod_policy) - print("The response of SODPoliciesApi->create_sod_policy:\n") - pprint(results) - except Exception as e: - print("Exception when calling SODPoliciesApi->create_sod_policy: %s\n" % e) + try: + # Create SOD policy + new_sod_policy = SodPolicy.from_json(sod_policy) + results = SODPoliciesApi(api_client).create_sod_policy(sod_policy=new_sod_policy) + # Below is a request that includes all optional parameters + # results = SODPoliciesApi(api_client).create_sod_policy(new_sod_policy) + print("The response of SODPoliciesApi->create_sod_policy:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SODPoliciesApi->create_sod_policy: %s\n" % e) - path: /sod-policies/{id} method: DELETE xCodeSample: @@ -16344,22 +15845,21 @@ source: | from sailpoint.v2024.api.sod_policies_api import SODPoliciesApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f943-47e9-4562-b5bb-8424a56397d8' # str | The ID of the SOD Policy to delete. # str | The ID of the SOD Policy to delete. - logical = True # bool | Indicates whether this is a soft delete (logical true) or a hard delete. Soft delete marks the policy as deleted and just save it with this status. It could be fully deleted or recovered further. Hard delete vise versa permanently delete SOD request during this call. (optional) (default to True) # bool | Indicates whether this is a soft delete (logical true) or a hard delete. Soft delete marks the policy as deleted and just save it with this status. It could be fully deleted or recovered further. Hard delete vise versa permanently delete SOD request during this call. (optional) (default to True) - try: - # Delete SOD policy by ID - - SODPoliciesApi(api_client).delete_sod_policy(id=id) - # Below is a request that includes all optional parameters - # SODPoliciesApi(api_client).delete_sod_policy(id, logical) - except Exception as e: - print("Exception when calling SODPoliciesApi->delete_sod_policy: %s\n" % e) + id = 'ef38f943-47e9-4562-b5bb-8424a56397d8' # str | The ID of the SOD Policy to delete. # str | The ID of the SOD Policy to delete. + logical = True # bool | Indicates whether this is a soft delete (logical true) or a hard delete. Soft delete marks the policy as deleted and just save it with this status. It could be fully deleted or recovered further. Hard delete vise versa permanently delete SOD request during this call. (optional) (default to True) # bool | Indicates whether this is a soft delete (logical true) or a hard delete. Soft delete marks the policy as deleted and just save it with this status. It could be fully deleted or recovered further. Hard delete vise versa permanently delete SOD request during this call. (optional) (default to True) + try: + # Delete SOD policy by ID + + SODPoliciesApi(api_client).delete_sod_policy(id=id) + # Below is a request that includes all optional parameters + # SODPoliciesApi(api_client).delete_sod_policy(id, logical) + except Exception as e: + print("Exception when calling SODPoliciesApi->delete_sod_policy: %s\n" % e) - path: /sod-policies/{id}/schedule method: DELETE xCodeSample: @@ -16368,21 +15868,20 @@ source: | from sailpoint.v2024.api.sod_policies_api import SODPoliciesApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f943-47e9-4562-b5bb-8424a56397d8' # str | The ID of the SOD policy the schedule must be deleted for. # str | The ID of the SOD policy the schedule must be deleted for. - try: - # Delete SOD policy schedule - - SODPoliciesApi(api_client).delete_sod_policy_schedule(id=id) - # Below is a request that includes all optional parameters - # SODPoliciesApi(api_client).delete_sod_policy_schedule(id) - except Exception as e: - print("Exception when calling SODPoliciesApi->delete_sod_policy_schedule: %s\n" % e) + id = 'ef38f943-47e9-4562-b5bb-8424a56397d8' # str | The ID of the SOD policy the schedule must be deleted for. # str | The ID of the SOD policy the schedule must be deleted for. + try: + # Delete SOD policy schedule + + SODPoliciesApi(api_client).delete_sod_policy_schedule(id=id) + # Below is a request that includes all optional parameters + # SODPoliciesApi(api_client).delete_sod_policy_schedule(id) + except Exception as e: + print("Exception when calling SODPoliciesApi->delete_sod_policy_schedule: %s\n" % e) - path: /sod-violation-report/{reportResultId}/download/{fileName} method: GET xCodeSample: @@ -16391,24 +15890,23 @@ source: | from sailpoint.v2024.api.sod_policies_api import SODPoliciesApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - report_result_id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the report reference to download. # str | The ID of the report reference to download. - file_name = 'custom-name' # str | Custom Name for the file. # str | Custom Name for the file. - try: - # Download custom violation report - - results = SODPoliciesApi(api_client).get_custom_violation_report(report_result_id=report_result_id, file_name=file_name) - # Below is a request that includes all optional parameters - # results = SODPoliciesApi(api_client).get_custom_violation_report(report_result_id, file_name) - print("The response of SODPoliciesApi->get_custom_violation_report:\n") - pprint(results) - except Exception as e: - print("Exception when calling SODPoliciesApi->get_custom_violation_report: %s\n" % e) + report_result_id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the report reference to download. # str | The ID of the report reference to download. + file_name = 'custom-name' # str | Custom Name for the file. # str | Custom Name for the file. + try: + # Download custom violation report + + results = SODPoliciesApi(api_client).get_custom_violation_report(report_result_id=report_result_id, file_name=file_name) + # Below is a request that includes all optional parameters + # results = SODPoliciesApi(api_client).get_custom_violation_report(report_result_id, file_name) + print("The response of SODPoliciesApi->get_custom_violation_report:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SODPoliciesApi->get_custom_violation_report: %s\n" % e) - path: /sod-violation-report/{reportResultId}/download method: GET xCodeSample: @@ -16417,23 +15915,22 @@ source: | from sailpoint.v2024.api.sod_policies_api import SODPoliciesApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - report_result_id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the report reference to download. # str | The ID of the report reference to download. - try: - # Download violation report - - results = SODPoliciesApi(api_client).get_default_violation_report(report_result_id=report_result_id) - # Below is a request that includes all optional parameters - # results = SODPoliciesApi(api_client).get_default_violation_report(report_result_id) - print("The response of SODPoliciesApi->get_default_violation_report:\n") - pprint(results) - except Exception as e: - print("Exception when calling SODPoliciesApi->get_default_violation_report: %s\n" % e) + report_result_id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the report reference to download. # str | The ID of the report reference to download. + try: + # Download violation report + + results = SODPoliciesApi(api_client).get_default_violation_report(report_result_id=report_result_id) + # Below is a request that includes all optional parameters + # results = SODPoliciesApi(api_client).get_default_violation_report(report_result_id) + print("The response of SODPoliciesApi->get_default_violation_report:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SODPoliciesApi->get_default_violation_report: %s\n" % e) - path: /sod-violation-report method: GET xCodeSample: @@ -16443,22 +15940,21 @@ from sailpoint.v2024.api.sod_policies_api import SODPoliciesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.report_result_reference import ReportResultReference - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - try: - # Get multi-report run task status - - results = SODPoliciesApi(api_client).get_sod_all_report_run_status() - # Below is a request that includes all optional parameters - # results = SODPoliciesApi(api_client).get_sod_all_report_run_status() - print("The response of SODPoliciesApi->get_sod_all_report_run_status:\n") - pprint(results) - except Exception as e: - print("Exception when calling SODPoliciesApi->get_sod_all_report_run_status: %s\n" % e) + try: + # Get multi-report run task status + + results = SODPoliciesApi(api_client).get_sod_all_report_run_status() + # Below is a request that includes all optional parameters + # results = SODPoliciesApi(api_client).get_sod_all_report_run_status() + print("The response of SODPoliciesApi->get_sod_all_report_run_status:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SODPoliciesApi->get_sod_all_report_run_status: %s\n" % e) - path: /sod-policies/{id} method: GET xCodeSample: @@ -16468,23 +15964,22 @@ from sailpoint.v2024.api.sod_policies_api import SODPoliciesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.sod_policy import SodPolicy - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f943-47e9-4562-b5bb-8424a56397d8' # str | The ID of the SOD Policy to retrieve. # str | The ID of the SOD Policy to retrieve. - try: - # Get SOD policy by ID - - results = SODPoliciesApi(api_client).get_sod_policy(id=id) - # Below is a request that includes all optional parameters - # results = SODPoliciesApi(api_client).get_sod_policy(id) - print("The response of SODPoliciesApi->get_sod_policy:\n") - pprint(results) - except Exception as e: - print("Exception when calling SODPoliciesApi->get_sod_policy: %s\n" % e) + id = 'ef38f943-47e9-4562-b5bb-8424a56397d8' # str | The ID of the SOD Policy to retrieve. # str | The ID of the SOD Policy to retrieve. + try: + # Get SOD policy by ID + + results = SODPoliciesApi(api_client).get_sod_policy(id=id) + # Below is a request that includes all optional parameters + # results = SODPoliciesApi(api_client).get_sod_policy(id) + print("The response of SODPoliciesApi->get_sod_policy:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SODPoliciesApi->get_sod_policy: %s\n" % e) - path: /sod-policies/{id}/schedule method: GET xCodeSample: @@ -16494,23 +15989,22 @@ from sailpoint.v2024.api.sod_policies_api import SODPoliciesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.sod_policy_schedule import SodPolicySchedule - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f943-47e9-4562-b5bb-8424a56397d8' # str | The ID of the SOD policy schedule to retrieve. # str | The ID of the SOD policy schedule to retrieve. - try: - # Get SOD policy schedule - - results = SODPoliciesApi(api_client).get_sod_policy_schedule(id=id) - # Below is a request that includes all optional parameters - # results = SODPoliciesApi(api_client).get_sod_policy_schedule(id) - print("The response of SODPoliciesApi->get_sod_policy_schedule:\n") - pprint(results) - except Exception as e: - print("Exception when calling SODPoliciesApi->get_sod_policy_schedule: %s\n" % e) + id = 'ef38f943-47e9-4562-b5bb-8424a56397d8' # str | The ID of the SOD policy schedule to retrieve. # str | The ID of the SOD policy schedule to retrieve. + try: + # Get SOD policy schedule + + results = SODPoliciesApi(api_client).get_sod_policy_schedule(id=id) + # Below is a request that includes all optional parameters + # results = SODPoliciesApi(api_client).get_sod_policy_schedule(id) + print("The response of SODPoliciesApi->get_sod_policy_schedule:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SODPoliciesApi->get_sod_policy_schedule: %s\n" % e) - path: /sod-policies/sod-violation-report-status/{reportResultId} method: GET xCodeSample: @@ -16520,23 +16014,22 @@ from sailpoint.v2024.api.sod_policies_api import SODPoliciesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.report_result_reference import ReportResultReference - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - report_result_id = '2e8d8180-24bc-4d21-91c6-7affdb473b0d' # str | The ID of the report reference to retrieve. # str | The ID of the report reference to retrieve. - try: - # Get violation report run status - - results = SODPoliciesApi(api_client).get_sod_violation_report_run_status(report_result_id=report_result_id) - # Below is a request that includes all optional parameters - # results = SODPoliciesApi(api_client).get_sod_violation_report_run_status(report_result_id) - print("The response of SODPoliciesApi->get_sod_violation_report_run_status:\n") - pprint(results) - except Exception as e: - print("Exception when calling SODPoliciesApi->get_sod_violation_report_run_status: %s\n" % e) + report_result_id = '2e8d8180-24bc-4d21-91c6-7affdb473b0d' # str | The ID of the report reference to retrieve. # str | The ID of the report reference to retrieve. + try: + # Get violation report run status + + results = SODPoliciesApi(api_client).get_sod_violation_report_run_status(report_result_id=report_result_id) + # Below is a request that includes all optional parameters + # results = SODPoliciesApi(api_client).get_sod_violation_report_run_status(report_result_id) + print("The response of SODPoliciesApi->get_sod_violation_report_run_status:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SODPoliciesApi->get_sod_violation_report_run_status: %s\n" % e) - path: /sod-policies/{id}/violation-report method: GET xCodeSample: @@ -16546,23 +16039,22 @@ from sailpoint.v2024.api.sod_policies_api import SODPoliciesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.report_result_reference import ReportResultReference - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f943-47e9-4562-b5bb-8424a56397d8' # str | The ID of the violation report to retrieve status for. # str | The ID of the violation report to retrieve status for. - try: - # Get SOD violation report status - - results = SODPoliciesApi(api_client).get_sod_violation_report_status(id=id) - # Below is a request that includes all optional parameters - # results = SODPoliciesApi(api_client).get_sod_violation_report_status(id) - print("The response of SODPoliciesApi->get_sod_violation_report_status:\n") - pprint(results) - except Exception as e: - print("Exception when calling SODPoliciesApi->get_sod_violation_report_status: %s\n" % e) + id = 'ef38f943-47e9-4562-b5bb-8424a56397d8' # str | The ID of the violation report to retrieve status for. # str | The ID of the violation report to retrieve status for. + try: + # Get SOD violation report status + + results = SODPoliciesApi(api_client).get_sod_violation_report_status(id=id) + # Below is a request that includes all optional parameters + # results = SODPoliciesApi(api_client).get_sod_violation_report_status(id) + print("The response of SODPoliciesApi->get_sod_violation_report_status:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SODPoliciesApi->get_sod_violation_report_status: %s\n" % e) - path: /sod-policies method: GET xCodeSample: @@ -16572,27 +16064,26 @@ from sailpoint.v2024.api.sod_policies_api import SODPoliciesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.sod_policy import SodPolicy - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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 = 'id eq \"bc693f07e7b645539626c25954c58554\"' # 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* **state**: *eq, in* (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* **state**: *eq, in* (optional) - sorters = 'id,name' # 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: **id, name, created, modified, description** (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: **id, name, created, modified, description** (optional) - try: - # List SOD policies - - results = SODPoliciesApi(api_client).list_sod_policies() - # Below is a request that includes all optional parameters - # results = SODPoliciesApi(api_client).list_sod_policies(limit, offset, count, filters, sorters) - print("The response of SODPoliciesApi->list_sod_policies:\n") - pprint(results) - except Exception as e: - print("Exception when calling SODPoliciesApi->list_sod_policies: %s\n" % e) + 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 = 'id eq \"bc693f07e7b645539626c25954c58554\"' # 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* **state**: *eq, in* (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* **state**: *eq, in* (optional) + sorters = 'id,name' # 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: **id, name, created, modified, description** (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: **id, name, created, modified, description** (optional) + try: + # List SOD policies + + results = SODPoliciesApi(api_client).list_sod_policies() + # Below is a request that includes all optional parameters + # results = SODPoliciesApi(api_client).list_sod_policies(limit, offset, count, filters, sorters) + print("The response of SODPoliciesApi->list_sod_policies:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SODPoliciesApi->list_sod_policies: %s\n" % e) - path: /sod-policies/{id} method: PATCH xCodeSample: @@ -16603,24 +16094,23 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.json_patch_operation import JsonPatchOperation from sailpoint.v2024.models.sod_policy import SodPolicy - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c918083-5d19-1a86-015d-28455b4a2329' # str | The ID of the SOD policy being modified. # str | The ID of the SOD policy being modified. - json_patch_operation = '''[{op=replace, path=/description, value=Modified description}, {op=replace, path=/conflictingAccessCriteria/leftCriteria/name, value=money-in-modified}, {op=replace, path=/conflictingAccessCriteria/rightCriteria, value={name=money-out-modified, criteriaList=[{type=ENTITLEMENT, id=2c918087682f9a86016839c0509c1ab2}]}}]''' # List[JsonPatchOperation] | A list of SOD Policy update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * description * ownerRef * externalPolicyReference * compensatingControls * correctionAdvice * state * tags * violationOwnerAssignmentConfig * scheduled * conflictingAccessCriteria - try: - # Patch SOD policy by ID - new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) - results = SODPoliciesApi(api_client).patch_sod_policy(id=id, json_patch_operation=new_json_patch_operation) - # Below is a request that includes all optional parameters - # results = SODPoliciesApi(api_client).patch_sod_policy(id, new_json_patch_operation) - print("The response of SODPoliciesApi->patch_sod_policy:\n") - pprint(results) - except Exception as e: - print("Exception when calling SODPoliciesApi->patch_sod_policy: %s\n" % e) + id = '2c918083-5d19-1a86-015d-28455b4a2329' # str | The ID of the SOD policy being modified. # str | The ID of the SOD policy being modified. + json_patch_operation = '''[{op=replace, path=/description, value=Modified description}, {op=replace, path=/conflictingAccessCriteria/leftCriteria/name, value=money-in-modified}, {op=replace, path=/conflictingAccessCriteria/rightCriteria, value={name=money-out-modified, criteriaList=[{type=ENTITLEMENT, id=2c918087682f9a86016839c0509c1ab2}]}}]''' # List[JsonPatchOperation] | A list of SOD Policy update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * description * ownerRef * externalPolicyReference * compensatingControls * correctionAdvice * state * tags * violationOwnerAssignmentConfig * scheduled * conflictingAccessCriteria + try: + # Patch SOD policy by ID + new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) + results = SODPoliciesApi(api_client).patch_sod_policy(id=id, json_patch_operation=new_json_patch_operation) + # Below is a request that includes all optional parameters + # results = SODPoliciesApi(api_client).patch_sod_policy(id, new_json_patch_operation) + print("The response of SODPoliciesApi->patch_sod_policy:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SODPoliciesApi->patch_sod_policy: %s\n" % e) - path: /sod-policies/{id}/schedule method: PUT xCodeSample: @@ -16630,14 +16120,13 @@ from sailpoint.v2024.api.sod_policies_api import SODPoliciesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.sod_policy_schedule import SodPolicySchedule - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f943-47e9-4562-b5bb-8424a56397d8' # str | The ID of the SOD policy to update its schedule. # str | The ID of the SOD policy to update its schedule. - sod_policy_schedule = '''{ + id = 'ef38f943-47e9-4562-b5bb-8424a56397d8' # str | The ID of the SOD policy to update its schedule. # str | The ID of the SOD policy to update its schedule. + sod_policy_schedule = '''{ "schedule" : { "hours" : { "accountMatchConfig" : { @@ -16723,16 +16212,16 @@ "description" : "Schedule for policy xyz", "emailEmptyResults" : false }''' # SodPolicySchedule | - try: - # Update SOD Policy schedule - new_sod_policy_schedule = SodPolicySchedule.from_json(sod_policy_schedule) - results = SODPoliciesApi(api_client).put_policy_schedule(id=id, sod_policy_schedule=new_sod_policy_schedule) - # Below is a request that includes all optional parameters - # results = SODPoliciesApi(api_client).put_policy_schedule(id, new_sod_policy_schedule) - print("The response of SODPoliciesApi->put_policy_schedule:\n") - pprint(results) - except Exception as e: - print("Exception when calling SODPoliciesApi->put_policy_schedule: %s\n" % e) + try: + # Update SOD Policy schedule + new_sod_policy_schedule = SodPolicySchedule.from_json(sod_policy_schedule) + results = SODPoliciesApi(api_client).put_policy_schedule(id=id, sod_policy_schedule=new_sod_policy_schedule) + # Below is a request that includes all optional parameters + # results = SODPoliciesApi(api_client).put_policy_schedule(id, new_sod_policy_schedule) + print("The response of SODPoliciesApi->put_policy_schedule:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SODPoliciesApi->put_policy_schedule: %s\n" % e) - path: /sod-policies/{id} method: PUT xCodeSample: @@ -16742,14 +16231,13 @@ from sailpoint.v2024.api.sod_policies_api import SODPoliciesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.sod_policy import SodPolicy - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f943-47e9-4562-b5bb-8424a56397d8' # str | The ID of the SOD policy to update. # str | The ID of the SOD policy to update. - sod_policy = '''{ + id = 'ef38f943-47e9-4562-b5bb-8424a56397d8' # str | The ID of the SOD policy to update. # str | The ID of the SOD policy to update. + sod_policy = '''{ "conflictingAccessCriteria" : { "leftCriteria" : { "name" : "money-in", @@ -16805,16 +16293,16 @@ "state" : "ENFORCED", "externalPolicyReference" : "XYZ policy" }''' # SodPolicy | - try: - # Update SOD policy by ID - new_sod_policy = SodPolicy.from_json(sod_policy) - results = SODPoliciesApi(api_client).put_sod_policy(id=id, sod_policy=new_sod_policy) - # Below is a request that includes all optional parameters - # results = SODPoliciesApi(api_client).put_sod_policy(id, new_sod_policy) - print("The response of SODPoliciesApi->put_sod_policy:\n") - pprint(results) - except Exception as e: - print("Exception when calling SODPoliciesApi->put_sod_policy: %s\n" % e) + try: + # Update SOD policy by ID + new_sod_policy = SodPolicy.from_json(sod_policy) + results = SODPoliciesApi(api_client).put_sod_policy(id=id, sod_policy=new_sod_policy) + # Below is a request that includes all optional parameters + # results = SODPoliciesApi(api_client).put_sod_policy(id, new_sod_policy) + print("The response of SODPoliciesApi->put_sod_policy:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SODPoliciesApi->put_sod_policy: %s\n" % e) - path: /sod-policies/{id}/evaluate method: POST xCodeSample: @@ -16824,23 +16312,22 @@ from sailpoint.v2024.api.sod_policies_api import SODPoliciesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.report_result_reference import ReportResultReference - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f943-47e9-4562-b5bb-8424a56397d8' # str | The SOD policy ID to run. # str | The SOD policy ID to run. - try: - # Evaluate one policy by ID - - results = SODPoliciesApi(api_client).start_evaluate_sod_policy(id=id) - # Below is a request that includes all optional parameters - # results = SODPoliciesApi(api_client).start_evaluate_sod_policy(id) - print("The response of SODPoliciesApi->start_evaluate_sod_policy:\n") - pprint(results) - except Exception as e: - print("Exception when calling SODPoliciesApi->start_evaluate_sod_policy: %s\n" % e) + id = 'ef38f943-47e9-4562-b5bb-8424a56397d8' # str | The SOD policy ID to run. # str | The SOD policy ID to run. + try: + # Evaluate one policy by ID + + results = SODPoliciesApi(api_client).start_evaluate_sod_policy(id=id) + # Below is a request that includes all optional parameters + # results = SODPoliciesApi(api_client).start_evaluate_sod_policy(id) + print("The response of SODPoliciesApi->start_evaluate_sod_policy:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SODPoliciesApi->start_evaluate_sod_policy: %s\n" % e) - path: /sod-violation-report/run method: POST xCodeSample: @@ -16851,25 +16338,24 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.multi_policy_request import MultiPolicyRequest from sailpoint.v2024.models.report_result_reference import ReportResultReference - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - multi_policy_request = '''{ + multi_policy_request = '''{ "filteredPolicyList" : [ "[b868cd40-ffa4-4337-9c07-1a51846cfa94, 63a07a7b-39a4-48aa-956d-50c827deba2a]", "[b868cd40-ffa4-4337-9c07-1a51846cfa94, 63a07a7b-39a4-48aa-956d-50c827deba2a]" ] }''' # MultiPolicyRequest | (optional) - try: - # Runs all policies for org - - results = SODPoliciesApi(api_client).start_sod_all_policies_for_org() - # Below is a request that includes all optional parameters - # results = SODPoliciesApi(api_client).start_sod_all_policies_for_org(new_multi_policy_request) - print("The response of SODPoliciesApi->start_sod_all_policies_for_org:\n") - pprint(results) - except Exception as e: - print("Exception when calling SODPoliciesApi->start_sod_all_policies_for_org: %s\n" % e) + try: + # Runs all policies for org + + results = SODPoliciesApi(api_client).start_sod_all_policies_for_org() + # Below is a request that includes all optional parameters + # results = SODPoliciesApi(api_client).start_sod_all_policies_for_org(new_multi_policy_request) + print("The response of SODPoliciesApi->start_sod_all_policies_for_org:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SODPoliciesApi->start_sod_all_policies_for_org: %s\n" % e) - path: /sod-policies/{id}/violation-report/run method: POST xCodeSample: @@ -16879,23 +16365,22 @@ from sailpoint.v2024.api.sod_policies_api import SODPoliciesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.report_result_reference import ReportResultReference - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f943-47e9-4562-b5bb-8424a56397d8' # str | The SOD policy ID to run. # str | The SOD policy ID to run. - try: - # Runs SOD policy violation report - - results = SODPoliciesApi(api_client).start_sod_policy(id=id) - # Below is a request that includes all optional parameters - # results = SODPoliciesApi(api_client).start_sod_policy(id) - print("The response of SODPoliciesApi->start_sod_policy:\n") - pprint(results) - except Exception as e: - print("Exception when calling SODPoliciesApi->start_sod_policy: %s\n" % e) + id = 'ef38f943-47e9-4562-b5bb-8424a56397d8' # str | The SOD policy ID to run. # str | The SOD policy ID to run. + try: + # Runs SOD policy violation report + + results = SODPoliciesApi(api_client).start_sod_policy(id=id) + # Below is a request that includes all optional parameters + # results = SODPoliciesApi(api_client).start_sod_policy(id) + print("The response of SODPoliciesApi->start_sod_policy:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SODPoliciesApi->start_sod_policy: %s\n" % e) - path: /sod-violations/predict method: POST xCodeSample: @@ -16906,13 +16391,12 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.identity_with_new_access import IdentityWithNewAccess from sailpoint.v2024.models.violation_prediction import ViolationPrediction - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - identity_with_new_access = '''{ + identity_with_new_access = '''{ "identityId" : "2c91808568c529c60168cca6f90c1313", "accessRefs" : [ { "type" : "ENTITLEMENT", @@ -16924,16 +16408,16 @@ "name" : "CN=Information Technology,OU=test,OU=test-service,DC=TestAD,DC=local" } ] }''' # IdentityWithNewAccess | - try: - # Predict SOD violations for identity. - new_identity_with_new_access = IdentityWithNewAccess.from_json(identity_with_new_access) - results = SODViolationsApi(api_client).start_predict_sod_violations(identity_with_new_access=new_identity_with_new_access) - # Below is a request that includes all optional parameters - # results = SODViolationsApi(api_client).start_predict_sod_violations(new_identity_with_new_access) - print("The response of SODViolationsApi->start_predict_sod_violations:\n") - pprint(results) - except Exception as e: - print("Exception when calling SODViolationsApi->start_predict_sod_violations: %s\n" % e) + try: + # Predict SOD violations for identity. + new_identity_with_new_access = IdentityWithNewAccess.from_json(identity_with_new_access) + results = SODViolationsApi(api_client).start_predict_sod_violations(identity_with_new_access=new_identity_with_new_access) + # Below is a request that includes all optional parameters + # results = SODViolationsApi(api_client).start_predict_sod_violations(new_identity_with_new_access) + print("The response of SODViolationsApi->start_predict_sod_violations:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SODViolationsApi->start_predict_sod_violations: %s\n" % e) - path: /sod-violations/check method: POST xCodeSample: @@ -16944,23 +16428,22 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.identity_with_new_access1 import IdentityWithNewAccess1 from sailpoint.v2024.models.sod_violation_check import SodViolationCheck - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - identity_with_new_access1 = '''{identityId=2c91808568c529c60168cca6f90c1313, accessRefs=[{type=ENTITLEMENT, id=2c918087682f9a86016839c050861ab1, name=CN=Information Access,OU=test,OU=test-service,DC=TestAD,DC=local}, {type=ENTITLEMENT, id=2c918087682f9a86016839c0509c1ab2, name=CN=Information Technology,OU=test,OU=test-service,DC=TestAD,DC=local}], clientMetadata={additionalProp1=string, additionalProp2=string, additionalProp3=string}}''' # IdentityWithNewAccess1 | - try: - # Check SOD violations - new_identity_with_new_access1 = IdentityWithNewAccess1.from_json(identity_with_new_access1) - results = SODViolationsApi(api_client).start_violation_check(identity_with_new_access1=new_identity_with_new_access1) - # Below is a request that includes all optional parameters - # results = SODViolationsApi(api_client).start_violation_check(new_identity_with_new_access1) - print("The response of SODViolationsApi->start_violation_check:\n") - pprint(results) - except Exception as e: - print("Exception when calling SODViolationsApi->start_violation_check: %s\n" % e) + identity_with_new_access1 = '''{identityId=2c91808568c529c60168cca6f90c1313, accessRefs=[{type=ENTITLEMENT, id=2c918087682f9a86016839c050861ab1, name=CN=Information Access,OU=test,OU=test-service,DC=TestAD,DC=local}, {type=ENTITLEMENT, id=2c918087682f9a86016839c0509c1ab2, name=CN=Information Technology,OU=test,OU=test-service,DC=TestAD,DC=local}], clientMetadata={additionalProp1=string, additionalProp2=string, additionalProp3=string}}''' # IdentityWithNewAccess1 | + try: + # Check SOD violations + new_identity_with_new_access1 = IdentityWithNewAccess1.from_json(identity_with_new_access1) + results = SODViolationsApi(api_client).start_violation_check(identity_with_new_access1=new_identity_with_new_access1) + # Below is a request that includes all optional parameters + # results = SODViolationsApi(api_client).start_violation_check(new_identity_with_new_access1) + print("The response of SODViolationsApi->start_violation_check:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SODViolationsApi->start_violation_check: %s\n" % e) - path: /sources/{sourceId}/provisioning-policies method: POST xCodeSample: @@ -16970,14 +16453,13 @@ from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.provisioning_policy_dto import ProvisioningPolicyDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source id # str | The Source id - provisioning_policy_dto = '''{ + source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source id # str | The Source id + provisioning_policy_dto = '''{ "name" : "example provisioning policy for inactive identities", "description" : "this provisioning policy creates access based on an identity going inactive", "fields" : [ { @@ -17017,16 +16499,16 @@ } ], "usageType" : "CREATE" }''' # ProvisioningPolicyDto | - try: - # Create Provisioning Policy - new_provisioning_policy_dto = ProvisioningPolicyDto.from_json(provisioning_policy_dto) - results = SourcesApi(api_client).create_provisioning_policy(source_id=source_id, provisioning_policy_dto=new_provisioning_policy_dto) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).create_provisioning_policy(source_id, new_provisioning_policy_dto) - print("The response of SourcesApi->create_provisioning_policy:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->create_provisioning_policy: %s\n" % e) + try: + # Create Provisioning Policy + new_provisioning_policy_dto = ProvisioningPolicyDto.from_json(provisioning_policy_dto) + results = SourcesApi(api_client).create_provisioning_policy(source_id=source_id, provisioning_policy_dto=new_provisioning_policy_dto) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).create_provisioning_policy(source_id, new_provisioning_policy_dto) + print("The response of SourcesApi->create_provisioning_policy:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->create_provisioning_policy: %s\n" % e) - path: /sources method: POST xCodeSample: @@ -17036,13 +16518,12 @@ from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.source import Source - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source = '''{ + source = '''{ "cluster" : { "name" : "Corporate Cluster", "id" : "2c9180866166b5b0016167c32ef31a66", @@ -17125,17 +16606,17 @@ "status" : "SOURCE_STATE_HEALTHY", "since" : "2021-09-28T15:48:29.3801666300Z" }''' # Source | - provision_as_csv = false # bool | If this parameter is `true`, it configures the source as a Delimited File (CSV) source. Setting this to `true` will automatically set the `type` of the source to `DelimitedFile`. You must use this query parameter to create a Delimited File source as you would in the UI. If you don't set this query parameter and you attempt to set the `type` attribute directly, the request won't correctly generate the source. (optional) # bool | If this parameter is `true`, it configures the source as a Delimited File (CSV) source. Setting this to `true` will automatically set the `type` of the source to `DelimitedFile`. You must use this query parameter to create a Delimited File source as you would in the UI. If you don't set this query parameter and you attempt to set the `type` attribute directly, the request won't correctly generate the source. (optional) - try: - # Creates a source in IdentityNow. - new_source = Source.from_json(source) - results = SourcesApi(api_client).create_source(source=new_source) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).create_source(new_source, provision_as_csv) - print("The response of SourcesApi->create_source:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->create_source: %s\n" % e) + provision_as_csv = false # bool | If this parameter is `true`, it configures the source as a Delimited File (CSV) source. Setting this to `true` will automatically set the `type` of the source to `DelimitedFile`. You must use this query parameter to create a Delimited File source as you would in the UI. If you don't set this query parameter and you attempt to set the `type` attribute directly, the request won't correctly generate the source. (optional) # bool | If this parameter is `true`, it configures the source as a Delimited File (CSV) source. Setting this to `true` will automatically set the `type` of the source to `DelimitedFile`. You must use this query parameter to create a Delimited File source as you would in the UI. If you don't set this query parameter and you attempt to set the `type` attribute directly, the request won't correctly generate the source. (optional) + try: + # Creates a source in IdentityNow. + new_source = Source.from_json(source) + results = SourcesApi(api_client).create_source(source=new_source) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).create_source(new_source, provision_as_csv) + print("The response of SourcesApi->create_source:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->create_source: %s\n" % e) - path: /sources/{sourceId}/schedules method: POST xCodeSample: @@ -17145,24 +16626,23 @@ from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.schedule1 import Schedule1 - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '2c9180835d191a86015d28455b4a2329' # str | Source ID. # str | Source ID. - schedule1 = '''sailpoint.v2024.Schedule1()''' # Schedule1 | - try: - # Create Schedule on Source - new_schedule1 = Schedule1.from_json(schedule1) - results = SourcesApi(api_client).create_source_schedule(source_id=source_id, schedule1=new_schedule1) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).create_source_schedule(source_id, new_schedule1) - print("The response of SourcesApi->create_source_schedule:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->create_source_schedule: %s\n" % e) + source_id = '2c9180835d191a86015d28455b4a2329' # str | Source ID. # str | Source ID. + schedule1 = '''sailpoint.v2024.Schedule1()''' # Schedule1 | + try: + # Create Schedule on Source + new_schedule1 = Schedule1.from_json(schedule1) + results = SourcesApi(api_client).create_source_schedule(source_id=source_id, schedule1=new_schedule1) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).create_source_schedule(source_id, new_schedule1) + print("The response of SourcesApi->create_source_schedule:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->create_source_schedule: %s\n" % e) - path: /sources/{sourceId}/schemas method: POST xCodeSample: @@ -17172,24 +16652,23 @@ from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.model_schema import ModelSchema - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '2c9180835d191a86015d28455b4a2329' # str | Source ID. # str | Source ID. - model_schema = '''sailpoint.v2024.ModelSchema()''' # ModelSchema | - try: - # Create Schema on Source - new_model_schema = ModelSchema.from_json(model_schema) - results = SourcesApi(api_client).create_source_schema(source_id=source_id, model_schema=new_model_schema) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).create_source_schema(source_id, new_model_schema) - print("The response of SourcesApi->create_source_schema:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->create_source_schema: %s\n" % e) + source_id = '2c9180835d191a86015d28455b4a2329' # str | Source ID. # str | Source ID. + model_schema = '''sailpoint.v2024.ModelSchema()''' # ModelSchema | + try: + # Create Schema on Source + new_model_schema = ModelSchema.from_json(model_schema) + results = SourcesApi(api_client).create_source_schema(source_id=source_id, model_schema=new_model_schema) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).create_source_schema(source_id, new_model_schema) + print("The response of SourcesApi->create_source_schema:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->create_source_schema: %s\n" % e) - path: /sources/{id}/remove-accounts method: POST xCodeSample: @@ -17199,25 +16678,24 @@ from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.task_result_dto import TaskResultDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = 'ebbf35756e1140699ce52b233121384a' # str | The source id # str | The source id - 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: - # Remove All Accounts in a Source - - results = SourcesApi(api_client).delete_accounts_async(id=id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).delete_accounts_async(id, x_sail_point_experimental) - print("The response of SourcesApi->delete_accounts_async:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->delete_accounts_async: %s\n" % e) + id = 'ebbf35756e1140699ce52b233121384a' # str | The source id # str | The source id + 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: + # Remove All Accounts in a Source + + results = SourcesApi(api_client).delete_accounts_async(id=id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).delete_accounts_async(id, x_sail_point_experimental) + print("The response of SourcesApi->delete_accounts_async:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->delete_accounts_async: %s\n" % e) - path: /sources/{sourceId}/native-change-detection-config method: DELETE xCodeSample: @@ -17226,23 +16704,22 @@ source: | from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = '2c9180835d191a86015d28455b4a2329' # str | The source id # str | The source id - 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: - # Delete Native Change Detection Configuration - - SourcesApi(api_client).delete_native_change_detection_config(id=id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # SourcesApi(api_client).delete_native_change_detection_config(id, x_sail_point_experimental) - except Exception as e: - print("Exception when calling SourcesApi->delete_native_change_detection_config: %s\n" % e) + id = '2c9180835d191a86015d28455b4a2329' # str | The source id # str | The source id + 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: + # Delete Native Change Detection Configuration + + SourcesApi(api_client).delete_native_change_detection_config(id=id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # SourcesApi(api_client).delete_native_change_detection_config(id, x_sail_point_experimental) + except Exception as e: + print("Exception when calling SourcesApi->delete_native_change_detection_config: %s\n" % e) - path: /sources/{sourceId}/provisioning-policies/{usageType} method: DELETE xCodeSample: @@ -17252,22 +16729,21 @@ from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.usage_type import UsageType - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source ID. # str | The Source ID. - usage_type = sailpoint.v2024.UsageType() # UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. # UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. - try: - # Delete Provisioning Policy by UsageType - - SourcesApi(api_client).delete_provisioning_policy(source_id=source_id, usage_type=usage_type) - # Below is a request that includes all optional parameters - # SourcesApi(api_client).delete_provisioning_policy(source_id, usage_type) - except Exception as e: - print("Exception when calling SourcesApi->delete_provisioning_policy: %s\n" % e) + source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source ID. # str | The Source ID. + usage_type = sailpoint.v2024.UsageType() # UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. # UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. + try: + # Delete Provisioning Policy by UsageType + + SourcesApi(api_client).delete_provisioning_policy(source_id=source_id, usage_type=usage_type) + # Below is a request that includes all optional parameters + # SourcesApi(api_client).delete_provisioning_policy(source_id, usage_type) + except Exception as e: + print("Exception when calling SourcesApi->delete_provisioning_policy: %s\n" % e) - path: /sources/{id} method: DELETE xCodeSample: @@ -17277,23 +16753,22 @@ from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.delete_source202_response import DeleteSource202Response - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c9180835d191a86015d28455b4a2329' # str | Source ID. # str | Source ID. - try: - # Delete Source by ID - - results = SourcesApi(api_client).delete_source(id=id) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).delete_source(id) - print("The response of SourcesApi->delete_source:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->delete_source: %s\n" % e) + id = '2c9180835d191a86015d28455b4a2329' # str | Source ID. # str | Source ID. + try: + # Delete Source by ID + + results = SourcesApi(api_client).delete_source(id=id) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).delete_source(id) + print("The response of SourcesApi->delete_source:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->delete_source: %s\n" % e) - path: /sources/{sourceId}/schedules/{scheduleType} method: DELETE xCodeSample: @@ -17302,22 +16777,21 @@ source: | from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source id. # str | The Source id. - schedule_type = 'ACCOUNT_AGGREGATION' # str | The Schedule type. # str | The Schedule type. - try: - # Delete Source Schedule by type. - - SourcesApi(api_client).delete_source_schedule(source_id=source_id, schedule_type=schedule_type) - # Below is a request that includes all optional parameters - # SourcesApi(api_client).delete_source_schedule(source_id, schedule_type) - except Exception as e: - print("Exception when calling SourcesApi->delete_source_schedule: %s\n" % e) + source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source id. # str | The Source id. + schedule_type = 'ACCOUNT_AGGREGATION' # str | The Schedule type. # str | The Schedule type. + try: + # Delete Source Schedule by type. + + SourcesApi(api_client).delete_source_schedule(source_id=source_id, schedule_type=schedule_type) + # Below is a request that includes all optional parameters + # SourcesApi(api_client).delete_source_schedule(source_id, schedule_type) + except Exception as e: + print("Exception when calling SourcesApi->delete_source_schedule: %s\n" % e) - path: /sources/{sourceId}/schemas/{schemaId} method: DELETE xCodeSample: @@ -17326,22 +16800,21 @@ source: | from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source id. # str | The Source id. - schema_id = '2c9180835d191a86015d28455b4a2329' # str | The Schema id. # str | The Schema id. - try: - # Delete Source Schema by ID - - SourcesApi(api_client).delete_source_schema(source_id=source_id, schema_id=schema_id) - # Below is a request that includes all optional parameters - # SourcesApi(api_client).delete_source_schema(source_id, schema_id) - except Exception as e: - print("Exception when calling SourcesApi->delete_source_schema: %s\n" % e) + source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source id. # str | The Source id. + schema_id = '2c9180835d191a86015d28455b4a2329' # str | The Schema id. # str | The Schema id. + try: + # Delete Source Schema by ID + + SourcesApi(api_client).delete_source_schema(source_id=source_id, schema_id=schema_id) + # Below is a request that includes all optional parameters + # SourcesApi(api_client).delete_source_schema(source_id, schema_id) + except Exception as e: + print("Exception when calling SourcesApi->delete_source_schema: %s\n" % e) - path: /sources/{id}/schemas/accounts method: GET xCodeSample: @@ -17350,21 +16823,20 @@ source: | from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | The Source id # str | The Source id - try: - # Downloads source accounts schema template - - SourcesApi(api_client).get_accounts_schema(id=id) - # Below is a request that includes all optional parameters - # SourcesApi(api_client).get_accounts_schema(id) - except Exception as e: - print("Exception when calling SourcesApi->get_accounts_schema: %s\n" % e) + id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | The Source id # str | The Source id + try: + # Downloads source accounts schema template + + SourcesApi(api_client).get_accounts_schema(id=id) + # Below is a request that includes all optional parameters + # SourcesApi(api_client).get_accounts_schema(id) + except Exception as e: + print("Exception when calling SourcesApi->get_accounts_schema: %s\n" % e) - path: /sources/{id}/correlation-config method: GET xCodeSample: @@ -17374,23 +16846,22 @@ from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.correlation_config import CorrelationConfig - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c9180835d191a86015d28455b4a2329' # str | The source id # str | The source id - try: - # Get Source Correlation Configuration - - results = SourcesApi(api_client).get_correlation_config(id=id) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).get_correlation_config(id) - print("The response of SourcesApi->get_correlation_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->get_correlation_config: %s\n" % e) + id = '2c9180835d191a86015d28455b4a2329' # str | The source id # str | The source id + try: + # Get Source Correlation Configuration + + results = SourcesApi(api_client).get_correlation_config(id=id) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).get_correlation_config(id) + print("The response of SourcesApi->get_correlation_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->get_correlation_config: %s\n" % e) - path: /sources/{id}/schemas/entitlements method: GET xCodeSample: @@ -17399,22 +16870,21 @@ source: | from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | The Source id # str | The Source id - schema_name = '?schemaName=group' # str | Name of entitlement schema (optional) # str | Name of entitlement schema (optional) - try: - # Downloads source entitlements schema template - - SourcesApi(api_client).get_entitlements_schema(id=id) - # Below is a request that includes all optional parameters - # SourcesApi(api_client).get_entitlements_schema(id, schema_name) - except Exception as e: - print("Exception when calling SourcesApi->get_entitlements_schema: %s\n" % e) + id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | The Source id # str | The Source id + schema_name = '?schemaName=group' # str | Name of entitlement schema (optional) # str | Name of entitlement schema (optional) + try: + # Downloads source entitlements schema template + + SourcesApi(api_client).get_entitlements_schema(id=id) + # Below is a request that includes all optional parameters + # SourcesApi(api_client).get_entitlements_schema(id, schema_name) + except Exception as e: + print("Exception when calling SourcesApi->get_entitlements_schema: %s\n" % e) - path: /sources/{sourceId}/native-change-detection-config method: GET xCodeSample: @@ -17424,25 +16894,24 @@ from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.native_change_detection_config import NativeChangeDetectionConfig - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = '2c9180835d191a86015d28455b4a2329' # str | The source id # str | The source id - 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: - # Native Change Detection Configuration - - results = SourcesApi(api_client).get_native_change_detection_config(id=id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).get_native_change_detection_config(id, x_sail_point_experimental) - print("The response of SourcesApi->get_native_change_detection_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->get_native_change_detection_config: %s\n" % e) + id = '2c9180835d191a86015d28455b4a2329' # str | The source id # str | The source id + 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: + # Native Change Detection Configuration + + results = SourcesApi(api_client).get_native_change_detection_config(id=id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).get_native_change_detection_config(id, x_sail_point_experimental) + print("The response of SourcesApi->get_native_change_detection_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->get_native_change_detection_config: %s\n" % e) - path: /sources/{sourceId}/provisioning-policies/{usageType} method: GET xCodeSample: @@ -17453,24 +16922,23 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.provisioning_policy_dto import ProvisioningPolicyDto from sailpoint.v2024.models.usage_type import UsageType - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source ID. # str | The Source ID. - usage_type = sailpoint.v2024.UsageType() # UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. # UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. - try: - # Get Provisioning Policy by UsageType - - results = SourcesApi(api_client).get_provisioning_policy(source_id=source_id, usage_type=usage_type) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).get_provisioning_policy(source_id, usage_type) - print("The response of SourcesApi->get_provisioning_policy:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->get_provisioning_policy: %s\n" % e) + source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source ID. # str | The Source ID. + usage_type = sailpoint.v2024.UsageType() # UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. # UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. + try: + # Get Provisioning Policy by UsageType + + results = SourcesApi(api_client).get_provisioning_policy(source_id=source_id, usage_type=usage_type) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).get_provisioning_policy(source_id, usage_type) + print("The response of SourcesApi->get_provisioning_policy:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->get_provisioning_policy: %s\n" % e) - path: /sources/{id} method: GET xCodeSample: @@ -17480,23 +16948,22 @@ from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.source import Source - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c9180835d191a86015d28455b4a2329' # str | Source ID. # str | Source ID. - try: - # Get Source by ID - - results = SourcesApi(api_client).get_source(id=id) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).get_source(id) - print("The response of SourcesApi->get_source:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->get_source: %s\n" % e) + id = '2c9180835d191a86015d28455b4a2329' # str | Source ID. # str | Source ID. + try: + # Get Source by ID + + results = SourcesApi(api_client).get_source(id=id) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).get_source(id) + print("The response of SourcesApi->get_source:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->get_source: %s\n" % e) - path: /sources/{id}/attribute-sync-config method: GET xCodeSample: @@ -17506,25 +16973,24 @@ from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.attr_sync_source_config import AttrSyncSourceConfig - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = '2c9180835d191a86015d28455b4a2329' # str | The source id # str | The source id - 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: - # Attribute Sync Config - - results = SourcesApi(api_client).get_source_attr_sync_config(id=id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).get_source_attr_sync_config(id, x_sail_point_experimental) - print("The response of SourcesApi->get_source_attr_sync_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->get_source_attr_sync_config: %s\n" % e) + id = '2c9180835d191a86015d28455b4a2329' # str | The source id # str | The source id + 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: + # Attribute Sync Config + + results = SourcesApi(api_client).get_source_attr_sync_config(id=id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).get_source_attr_sync_config(id, x_sail_point_experimental) + print("The response of SourcesApi->get_source_attr_sync_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->get_source_attr_sync_config: %s\n" % e) - path: /sources/{id}/connectors/source-config method: GET xCodeSample: @@ -17534,26 +17000,25 @@ from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.connector_detail import ConnectorDetail - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = 'id_example' # str | The Source id # str | The Source id - 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') - locale = 'locale_example' # str | The locale to apply to the config. If no viable locale is given, it will default to \"en\" (optional) # str | The locale to apply to the config. If no viable locale is given, it will default to \"en\" (optional) - try: - # Gets source config with language translations - - results = SourcesApi(api_client).get_source_config(id=id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).get_source_config(id, x_sail_point_experimental, locale) - print("The response of SourcesApi->get_source_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->get_source_config: %s\n" % e) + id = 'id_example' # str | The Source id # str | The Source id + 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') + locale = 'locale_example' # str | The locale to apply to the config. If no viable locale is given, it will default to \"en\" (optional) # str | The locale to apply to the config. If no viable locale is given, it will default to \"en\" (optional) + try: + # Gets source config with language translations + + results = SourcesApi(api_client).get_source_config(id=id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).get_source_config(id, x_sail_point_experimental, locale) + print("The response of SourcesApi->get_source_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->get_source_config: %s\n" % e) - path: /sources/{sourceId}/connections method: GET xCodeSample: @@ -17563,23 +17028,22 @@ from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.source_connections_dto import SourceConnectionsDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '2c9180835d191a86015d28455b4a2329' # str | Source ID. # str | Source ID. - try: - # Get Source Connections by ID - - results = SourcesApi(api_client).get_source_connections(source_id=source_id) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).get_source_connections(source_id) - print("The response of SourcesApi->get_source_connections:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->get_source_connections: %s\n" % e) + source_id = '2c9180835d191a86015d28455b4a2329' # str | Source ID. # str | Source ID. + try: + # Get Source Connections by ID + + results = SourcesApi(api_client).get_source_connections(source_id=source_id) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).get_source_connections(source_id) + print("The response of SourcesApi->get_source_connections:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->get_source_connections: %s\n" % e) - path: /sources/{id}/entitlement-request-config method: GET xCodeSample: @@ -17589,24 +17053,23 @@ from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.source_entitlement_request_config import SourceEntitlementRequestConfig - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - try: - # Get Source Entitlement Request Configuration - - results = SourcesApi(api_client).get_source_entitlement_request_config(x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).get_source_entitlement_request_config(x_sail_point_experimental) - print("The response of SourcesApi->get_source_entitlement_request_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->get_source_entitlement_request_config: %s\n" % e) + 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 Source Entitlement Request Configuration + + results = SourcesApi(api_client).get_source_entitlement_request_config(x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).get_source_entitlement_request_config(x_sail_point_experimental) + print("The response of SourcesApi->get_source_entitlement_request_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->get_source_entitlement_request_config: %s\n" % e) - path: /sources/{sourceId}/source-health method: GET xCodeSample: @@ -17616,23 +17079,22 @@ from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.source_health_dto import SourceHealthDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source id. # str | The Source id. - try: - # Fetches source health by id - - results = SourcesApi(api_client).get_source_health(source_id=source_id) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).get_source_health(source_id) - print("The response of SourcesApi->get_source_health:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->get_source_health: %s\n" % e) + source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source id. # str | The Source id. + try: + # Fetches source health by id + + results = SourcesApi(api_client).get_source_health(source_id=source_id) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).get_source_health(source_id) + print("The response of SourcesApi->get_source_health:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->get_source_health: %s\n" % e) - path: /sources/{sourceId}/schedules/{scheduleType} method: GET xCodeSample: @@ -17642,24 +17104,23 @@ from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.schedule1 import Schedule1 - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source id. # str | The Source id. - schedule_type = 'ACCOUNT_AGGREGATION' # str | The Schedule type. # str | The Schedule type. - try: - # Get Source Schedule by Type - - results = SourcesApi(api_client).get_source_schedule(source_id=source_id, schedule_type=schedule_type) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).get_source_schedule(source_id, schedule_type) - print("The response of SourcesApi->get_source_schedule:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->get_source_schedule: %s\n" % e) + source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source id. # str | The Source id. + schedule_type = 'ACCOUNT_AGGREGATION' # str | The Schedule type. # str | The Schedule type. + try: + # Get Source Schedule by Type + + results = SourcesApi(api_client).get_source_schedule(source_id=source_id, schedule_type=schedule_type) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).get_source_schedule(source_id, schedule_type) + print("The response of SourcesApi->get_source_schedule:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->get_source_schedule: %s\n" % e) - path: /sources/{sourceId}/schedules method: GET xCodeSample: @@ -17669,23 +17130,22 @@ from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.schedule1 import Schedule1 - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '2c9180835d191a86015d28455b4a2329' # str | Source ID. # str | Source ID. - try: - # List Schedules on Source - - results = SourcesApi(api_client).get_source_schedules(source_id=source_id) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).get_source_schedules(source_id) - print("The response of SourcesApi->get_source_schedules:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->get_source_schedules: %s\n" % e) + source_id = '2c9180835d191a86015d28455b4a2329' # str | Source ID. # str | Source ID. + try: + # List Schedules on Source + + results = SourcesApi(api_client).get_source_schedules(source_id=source_id) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).get_source_schedules(source_id) + print("The response of SourcesApi->get_source_schedules:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->get_source_schedules: %s\n" % e) - path: /sources/{sourceId}/schemas/{schemaId} method: GET xCodeSample: @@ -17695,24 +17155,23 @@ from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.model_schema import ModelSchema - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source id. # str | The Source id. - schema_id = '2c9180835d191a86015d28455b4a2329' # str | The Schema id. # str | The Schema id. - try: - # Get Source Schema by ID - - results = SourcesApi(api_client).get_source_schema(source_id=source_id, schema_id=schema_id) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).get_source_schema(source_id, schema_id) - print("The response of SourcesApi->get_source_schema:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->get_source_schema: %s\n" % e) + source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source id. # str | The Source id. + schema_id = '2c9180835d191a86015d28455b4a2329' # str | The Schema id. # str | The Schema id. + try: + # Get Source Schema by ID + + results = SourcesApi(api_client).get_source_schema(source_id=source_id, schema_id=schema_id) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).get_source_schema(source_id, schema_id) + print("The response of SourcesApi->get_source_schema:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->get_source_schema: %s\n" % e) - path: /sources/{sourceId}/schemas method: GET xCodeSample: @@ -17722,25 +17181,24 @@ from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.model_schema import ModelSchema - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '2c9180835d191a86015d28455b4a2329' # str | Source ID. # str | Source ID. - include_types = 'group' # str | If set to 'group', then the account schema is filtered and only group schemas are returned. Only a value of 'group' is recognized presently. Note: The API will check whether include-types is group or not, if not, it will list schemas based on include-names, if include-names is not provided, it will list all schemas. (optional) # str | If set to 'group', then the account schema is filtered and only group schemas are returned. Only a value of 'group' is recognized presently. Note: The API will check whether include-types is group or not, if not, it will list schemas based on include-names, if include-names is not provided, it will list all schemas. (optional) - include_names = 'account' # str | A comma-separated list of schema names to filter result. (optional) # str | A comma-separated list of schema names to filter result. (optional) - try: - # List Schemas on Source - - results = SourcesApi(api_client).get_source_schemas(source_id=source_id) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).get_source_schemas(source_id, include_types, include_names) - print("The response of SourcesApi->get_source_schemas:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->get_source_schemas: %s\n" % e) + source_id = '2c9180835d191a86015d28455b4a2329' # str | Source ID. # str | Source ID. + include_types = 'group' # str | If set to 'group', then the account schema is filtered and only group schemas are returned. Only a value of 'group' is recognized presently. Note: The API will check whether include-types is group or not, if not, it will list schemas based on include-names, if include-names is not provided, it will list all schemas. (optional) # str | If set to 'group', then the account schema is filtered and only group schemas are returned. Only a value of 'group' is recognized presently. Note: The API will check whether include-types is group or not, if not, it will list schemas based on include-names, if include-names is not provided, it will list all schemas. (optional) + include_names = 'account' # str | A comma-separated list of schema names to filter result. (optional) # str | A comma-separated list of schema names to filter result. (optional) + try: + # List Schemas on Source + + results = SourcesApi(api_client).get_source_schemas(source_id=source_id) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).get_source_schemas(source_id, include_types, include_names) + print("The response of SourcesApi->get_source_schemas:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->get_source_schemas: %s\n" % e) - path: /sources/{id}/load-accounts method: POST xCodeSample: @@ -17750,27 +17208,26 @@ from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.load_accounts_task import LoadAccountsTask - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | Source Id # str | Source Id - 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') - file = None # bytearray | The CSV file containing the source accounts to aggregate. (optional) # bytearray | The CSV file containing the source accounts to aggregate. (optional) - disable_optimization = 'disable_optimization_example' # str | Use this flag to reprocess every account whether or not the data has changed. (optional) # str | Use this flag to reprocess every account whether or not the data has changed. (optional) - try: - # Account Aggregation - - results = SourcesApi(api_client).import_accounts(id=id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).import_accounts(id, x_sail_point_experimental, file, disable_optimization) - print("The response of SourcesApi->import_accounts:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->import_accounts: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | Source Id # str | Source Id + 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') + file = None # bytearray | The CSV file containing the source accounts to aggregate. (optional) # bytearray | The CSV file containing the source accounts to aggregate. (optional) + disable_optimization = 'disable_optimization_example' # str | Use this flag to reprocess every account whether or not the data has changed. (optional) # str | Use this flag to reprocess every account whether or not the data has changed. (optional) + try: + # Account Aggregation + + results = SourcesApi(api_client).import_accounts(id=id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).import_accounts(id, x_sail_point_experimental, file, disable_optimization) + print("The response of SourcesApi->import_accounts:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->import_accounts: %s\n" % e) - path: /sources/{id}/schemas/accounts method: POST xCodeSample: @@ -17780,24 +17237,23 @@ from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.model_schema import ModelSchema - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | The Source id # str | The Source id - file = None # bytearray | (optional) # bytearray | (optional) - try: - # Uploads source accounts schema template - - results = SourcesApi(api_client).import_accounts_schema(id=id) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).import_accounts_schema(id, file) - print("The response of SourcesApi->import_accounts_schema:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->import_accounts_schema: %s\n" % e) + id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | The Source id # str | The Source id + file = None # bytearray | (optional) # bytearray | (optional) + try: + # Uploads source accounts schema template + + results = SourcesApi(api_client).import_accounts_schema(id=id) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).import_accounts_schema(id, file) + print("The response of SourcesApi->import_accounts_schema:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->import_accounts_schema: %s\n" % e) - path: /sources/{sourceId}/upload-connector-file method: POST xCodeSample: @@ -17807,24 +17263,23 @@ from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.source import Source - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source id. # str | The Source id. - file = None # bytearray | (optional) # bytearray | (optional) - try: - # Upload connector file to source - - results = SourcesApi(api_client).import_connector_file(source_id=source_id) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).import_connector_file(source_id, file) - print("The response of SourcesApi->import_connector_file:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->import_connector_file: %s\n" % e) + source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source id. # str | The Source id. + file = None # bytearray | (optional) # bytearray | (optional) + try: + # Upload connector file to source + + results = SourcesApi(api_client).import_connector_file(source_id=source_id) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).import_connector_file(source_id, file) + print("The response of SourcesApi->import_connector_file:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->import_connector_file: %s\n" % e) - path: /sources/{id}/schemas/entitlements method: POST xCodeSample: @@ -17834,25 +17289,24 @@ from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.model_schema import ModelSchema - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | The Source id # str | The Source id - schema_name = '?schemaName=group' # str | Name of entitlement schema (optional) # str | Name of entitlement schema (optional) - file = None # bytearray | (optional) # bytearray | (optional) - try: - # Uploads source entitlements schema template - - results = SourcesApi(api_client).import_entitlements_schema(id=id) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).import_entitlements_schema(id, schema_name, file) - print("The response of SourcesApi->import_entitlements_schema:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->import_entitlements_schema: %s\n" % e) + id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | The Source id # str | The Source id + schema_name = '?schemaName=group' # str | Name of entitlement schema (optional) # str | Name of entitlement schema (optional) + file = None # bytearray | (optional) # bytearray | (optional) + try: + # Uploads source entitlements schema template + + results = SourcesApi(api_client).import_entitlements_schema(id=id) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).import_entitlements_schema(id, schema_name, file) + print("The response of SourcesApi->import_entitlements_schema:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->import_entitlements_schema: %s\n" % e) - path: /sources/{id}/load-uncorrelated-accounts method: POST xCodeSample: @@ -17862,26 +17316,25 @@ from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.load_uncorrelated_accounts_task import LoadUncorrelatedAccountsTask - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = '75dbec1ebe154d5785da27b95e1dd5d7' # str | Source Id # str | Source Id - 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') - file = None # bytearray | (optional) # bytearray | (optional) - try: - # Process Uncorrelated Accounts - - results = SourcesApi(api_client).import_uncorrelated_accounts(id=id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).import_uncorrelated_accounts(id, x_sail_point_experimental, file) - print("The response of SourcesApi->import_uncorrelated_accounts:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->import_uncorrelated_accounts: %s\n" % e) + id = '75dbec1ebe154d5785da27b95e1dd5d7' # str | Source Id # str | Source Id + 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') + file = None # bytearray | (optional) # bytearray | (optional) + try: + # Process Uncorrelated Accounts + + results = SourcesApi(api_client).import_uncorrelated_accounts(id=id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).import_uncorrelated_accounts(id, x_sail_point_experimental, file) + print("The response of SourcesApi->import_uncorrelated_accounts:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->import_uncorrelated_accounts: %s\n" % e) - path: /sources/{sourceId}/provisioning-policies method: GET xCodeSample: @@ -17891,23 +17344,22 @@ from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.provisioning_policy_dto import ProvisioningPolicyDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source id # str | The Source id - try: - # Lists ProvisioningPolicies - - results = SourcesApi(api_client).list_provisioning_policies(source_id=source_id) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).list_provisioning_policies(source_id) - print("The response of SourcesApi->list_provisioning_policies:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->list_provisioning_policies: %s\n" % e) + source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source id # str | The Source id + try: + # Lists ProvisioningPolicies + + results = SourcesApi(api_client).list_provisioning_policies(source_id=source_id) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).list_provisioning_policies(source_id) + print("The response of SourcesApi->list_provisioning_policies:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->list_provisioning_policies: %s\n" % e) - path: /sources method: GET xCodeSample: @@ -17917,29 +17369,28 @@ from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.source import Source - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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 \"Employees\"' # 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, ge, gt, le, lt, ne, isnull, sw* **name**: *co, eq, in, sw, ge, gt, ne, isnull* **type**: *eq, in, ge, gt, ne, isnull, sw* **owner.id**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **features**: *ca, co* **created**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **modified**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **managementWorkgroup.id**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **description**: *eq, sw* **authoritative**: *eq, ne, isnull* **healthy**: *isnull* **status**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **connectionType**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **connectorName**: *eq, ge, gt, in, ne, isnull, sw* **category**: *co, eq, ge, gt, in, le, lt, ne, 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, ge, gt, le, lt, ne, isnull, sw* **name**: *co, eq, in, sw, ge, gt, ne, isnull* **type**: *eq, in, ge, gt, ne, isnull, sw* **owner.id**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **features**: *ca, co* **created**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **modified**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **managementWorkgroup.id**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **description**: *eq, sw* **authoritative**: *eq, ne, isnull* **healthy**: *isnull* **status**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **connectionType**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **connectorName**: *eq, ge, gt, in, ne, isnull, sw* **category**: *co, eq, ge, gt, in, le, lt, ne, sw* (optional) - sorters = 'name' # 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: **type, created, modified, name, owner.name, healthy, status, id, description, owner.id, accountCorrelationConfig.id, accountCorrelationConfig.name, managerCorrelationRule.type, managerCorrelationRule.id, managerCorrelationRule.name, authoritative, managementWorkgroup.id, connectorName, connectionType** (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: **type, created, modified, name, owner.name, healthy, status, id, description, owner.id, accountCorrelationConfig.id, accountCorrelationConfig.name, managerCorrelationRule.type, managerCorrelationRule.id, managerCorrelationRule.name, authoritative, managementWorkgroup.id, connectorName, connectionType** (optional) - for_subadmin = 'name' # str | Filter the returned list of sources for the identity specified by the parameter, which is the id of an identity with the role SOURCE_SUBADMIN. By convention, the value **me** indicates the identity id of the current user. Subadmins may only view Sources which they are able to administer; all other Sources will be filtered out when this parameter is set. If the current user is a SOURCE_SUBADMIN but fails to pass a valid value for this parameter, a 403 Forbidden is returned. (optional) # str | Filter the returned list of sources for the identity specified by the parameter, which is the id of an identity with the role SOURCE_SUBADMIN. By convention, the value **me** indicates the identity id of the current user. Subadmins may only view Sources which they are able to administer; all other Sources will be filtered out when this parameter is set. If the current user is a SOURCE_SUBADMIN but fails to pass a valid value for this parameter, a 403 Forbidden is returned. (optional) - include_idn_source = False # bool | Include the IdentityNow source in the response. (optional) (default to False) # bool | Include the IdentityNow source in the response. (optional) (default to False) - try: - # Lists all sources in IdentityNow. - - results = SourcesApi(api_client).list_sources() - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).list_sources(limit, offset, count, filters, sorters, for_subadmin, include_idn_source) - print("The response of SourcesApi->list_sources:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->list_sources: %s\n" % e) + 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 \"Employees\"' # 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, ge, gt, le, lt, ne, isnull, sw* **name**: *co, eq, in, sw, ge, gt, ne, isnull* **type**: *eq, in, ge, gt, ne, isnull, sw* **owner.id**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **features**: *ca, co* **created**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **modified**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **managementWorkgroup.id**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **description**: *eq, sw* **authoritative**: *eq, ne, isnull* **healthy**: *isnull* **status**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **connectionType**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **connectorName**: *eq, ge, gt, in, ne, isnull, sw* **category**: *co, eq, ge, gt, in, le, lt, ne, 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, ge, gt, le, lt, ne, isnull, sw* **name**: *co, eq, in, sw, ge, gt, ne, isnull* **type**: *eq, in, ge, gt, ne, isnull, sw* **owner.id**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **features**: *ca, co* **created**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **modified**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **managementWorkgroup.id**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **description**: *eq, sw* **authoritative**: *eq, ne, isnull* **healthy**: *isnull* **status**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **connectionType**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **connectorName**: *eq, ge, gt, in, ne, isnull, sw* **category**: *co, eq, ge, gt, in, le, lt, ne, sw* (optional) + sorters = 'name' # 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: **type, created, modified, name, owner.name, healthy, status, id, description, owner.id, accountCorrelationConfig.id, accountCorrelationConfig.name, managerCorrelationRule.type, managerCorrelationRule.id, managerCorrelationRule.name, authoritative, managementWorkgroup.id, connectorName, connectionType** (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: **type, created, modified, name, owner.name, healthy, status, id, description, owner.id, accountCorrelationConfig.id, accountCorrelationConfig.name, managerCorrelationRule.type, managerCorrelationRule.id, managerCorrelationRule.name, authoritative, managementWorkgroup.id, connectorName, connectionType** (optional) + for_subadmin = 'name' # str | Filter the returned list of sources for the identity specified by the parameter, which is the id of an identity with the role SOURCE_SUBADMIN. By convention, the value **me** indicates the identity id of the current user. Subadmins may only view Sources which they are able to administer; all other Sources will be filtered out when this parameter is set. If the current user is a SOURCE_SUBADMIN but fails to pass a valid value for this parameter, a 403 Forbidden is returned. (optional) # str | Filter the returned list of sources for the identity specified by the parameter, which is the id of an identity with the role SOURCE_SUBADMIN. By convention, the value **me** indicates the identity id of the current user. Subadmins may only view Sources which they are able to administer; all other Sources will be filtered out when this parameter is set. If the current user is a SOURCE_SUBADMIN but fails to pass a valid value for this parameter, a 403 Forbidden is returned. (optional) + include_idn_source = False # bool | Include the IdentityNow source in the response. (optional) (default to False) # bool | Include the IdentityNow source in the response. (optional) (default to False) + try: + # Lists all sources in IdentityNow. + + results = SourcesApi(api_client).list_sources() + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).list_sources(limit, offset, count, filters, sorters, for_subadmin, include_idn_source) + print("The response of SourcesApi->list_sources:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->list_sources: %s\n" % e) - path: /sources/{sourceId}/connector/peek-resource-objects method: POST xCodeSample: @@ -17950,29 +17401,28 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.resource_objects_request import ResourceObjectsRequest from sailpoint.v2024.models.resource_objects_response import ResourceObjectsResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - source_id = 'cef3ee201db947c5912551015ba0c679' # str | The ID of the Source # str | The ID of the Source - 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') - resource_objects_request = '''{ + source_id = 'cef3ee201db947c5912551015ba0c679' # str | The ID of the Source # str | The ID of the Source + 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') + resource_objects_request = '''{ "maxCount" : 100, "objectType" : "group" }''' # ResourceObjectsRequest | - try: - # Peek source connector's resource objects - new_resource_objects_request = ResourceObjectsRequest.from_json(resource_objects_request) - results = SourcesApi(api_client).peek_resource_objects(source_id=source_id, x_sail_point_experimental=x_sail_point_experimental, resource_objects_request=new_resource_objects_request) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).peek_resource_objects(source_id, x_sail_point_experimental, new_resource_objects_request) - print("The response of SourcesApi->peek_resource_objects:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->peek_resource_objects: %s\n" % e) + try: + # Peek source connector's resource objects + new_resource_objects_request = ResourceObjectsRequest.from_json(resource_objects_request) + results = SourcesApi(api_client).peek_resource_objects(source_id=source_id, x_sail_point_experimental=x_sail_point_experimental, resource_objects_request=new_resource_objects_request) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).peek_resource_objects(source_id, x_sail_point_experimental, new_resource_objects_request) + print("The response of SourcesApi->peek_resource_objects:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->peek_resource_objects: %s\n" % e) - path: /sources/{sourceId}/connector/ping-cluster method: POST xCodeSample: @@ -17982,25 +17432,24 @@ from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.status_response import StatusResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - source_id = 'cef3ee201db947c5912551015ba0c679' # str | The ID of the Source # str | The ID of the Source - 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: - # Ping cluster for source connector - - results = SourcesApi(api_client).ping_cluster(source_id=source_id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).ping_cluster(source_id, x_sail_point_experimental) - print("The response of SourcesApi->ping_cluster:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->ping_cluster: %s\n" % e) + source_id = 'cef3ee201db947c5912551015ba0c679' # str | The ID of the Source # str | The ID of the Source + 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: + # Ping cluster for source connector + + results = SourcesApi(api_client).ping_cluster(source_id=source_id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).ping_cluster(source_id, x_sail_point_experimental) + print("The response of SourcesApi->ping_cluster:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->ping_cluster: %s\n" % e) - path: /sources/{id}/correlation-config method: PUT xCodeSample: @@ -18010,14 +17459,13 @@ from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.correlation_config import CorrelationConfig - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c9180835d191a86015d28455b4a2329' # str | The source id # str | The source id - correlation_config = '''{ + id = '2c9180835d191a86015d28455b4a2329' # str | The source id # str | The source id + correlation_config = '''{ "attributeAssignments" : [ { "filterString" : "first_name == \"John\"", "ignoreCase" : false, @@ -18038,16 +17486,16 @@ "name" : "Source [source] Account Correlation", "id" : "2c9180835d191a86015d28455b4a2329" }''' # CorrelationConfig | - try: - # Update Source Correlation Configuration - new_correlation_config = CorrelationConfig.from_json(correlation_config) - results = SourcesApi(api_client).put_correlation_config(id=id, correlation_config=new_correlation_config) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).put_correlation_config(id, new_correlation_config) - print("The response of SourcesApi->put_correlation_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->put_correlation_config: %s\n" % e) + try: + # Update Source Correlation Configuration + new_correlation_config = CorrelationConfig.from_json(correlation_config) + results = SourcesApi(api_client).put_correlation_config(id=id, correlation_config=new_correlation_config) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).put_correlation_config(id, new_correlation_config) + print("The response of SourcesApi->put_correlation_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->put_correlation_config: %s\n" % e) - path: /sources/{sourceId}/native-change-detection-config method: PUT xCodeSample: @@ -18057,16 +17505,15 @@ from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.native_change_detection_config import NativeChangeDetectionConfig - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = '2c9180835d191a86015d28455b4a2329' # str | The source id # str | The source id - 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') - native_change_detection_config = '''{ + id = '2c9180835d191a86015d28455b4a2329' # str | The source id # str | The source id + 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') + native_change_detection_config = '''{ "selectedEntitlements" : [ "memberOf", "memberOfSharedMailbox" ], "operations" : [ "ACCOUNT_UPDATED", "ACCOUNT_DELETED" ], "selectedNonEntitlementAttributes" : [ "lastName", "phoneNumber", "objectType", "servicePrincipalName" ], @@ -18074,16 +17521,16 @@ "allEntitlements" : false, "enabled" : true }''' # NativeChangeDetectionConfig | - try: - # Update Native Change Detection Configuration - new_native_change_detection_config = NativeChangeDetectionConfig.from_json(native_change_detection_config) - results = SourcesApi(api_client).put_native_change_detection_config(id=id, x_sail_point_experimental=x_sail_point_experimental, native_change_detection_config=new_native_change_detection_config) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).put_native_change_detection_config(id, x_sail_point_experimental, new_native_change_detection_config) - print("The response of SourcesApi->put_native_change_detection_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->put_native_change_detection_config: %s\n" % e) + try: + # Update Native Change Detection Configuration + new_native_change_detection_config = NativeChangeDetectionConfig.from_json(native_change_detection_config) + results = SourcesApi(api_client).put_native_change_detection_config(id=id, x_sail_point_experimental=x_sail_point_experimental, native_change_detection_config=new_native_change_detection_config) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).put_native_change_detection_config(id, x_sail_point_experimental, new_native_change_detection_config) + print("The response of SourcesApi->put_native_change_detection_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->put_native_change_detection_config: %s\n" % e) - path: /sources/{sourceId}/provisioning-policies/{usageType} method: PUT xCodeSample: @@ -18094,15 +17541,14 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.provisioning_policy_dto import ProvisioningPolicyDto from sailpoint.v2024.models.usage_type import UsageType - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source ID. # str | The Source ID. - usage_type = sailpoint.v2024.UsageType() # UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. # UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. - provisioning_policy_dto = '''{ + source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source ID. # str | The Source ID. + usage_type = sailpoint.v2024.UsageType() # UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. # UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. + provisioning_policy_dto = '''{ "name" : "example provisioning policy for inactive identities", "description" : "this provisioning policy creates access based on an identity going inactive", "fields" : [ { @@ -18142,16 +17588,16 @@ } ], "usageType" : "CREATE" }''' # ProvisioningPolicyDto | - try: - # Update Provisioning Policy by UsageType - new_provisioning_policy_dto = ProvisioningPolicyDto.from_json(provisioning_policy_dto) - results = SourcesApi(api_client).put_provisioning_policy(source_id=source_id, usage_type=usage_type, provisioning_policy_dto=new_provisioning_policy_dto) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).put_provisioning_policy(source_id, usage_type, new_provisioning_policy_dto) - print("The response of SourcesApi->put_provisioning_policy:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->put_provisioning_policy: %s\n" % e) + try: + # Update Provisioning Policy by UsageType + new_provisioning_policy_dto = ProvisioningPolicyDto.from_json(provisioning_policy_dto) + results = SourcesApi(api_client).put_provisioning_policy(source_id=source_id, usage_type=usage_type, provisioning_policy_dto=new_provisioning_policy_dto) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).put_provisioning_policy(source_id, usage_type, new_provisioning_policy_dto) + print("The response of SourcesApi->put_provisioning_policy:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->put_provisioning_policy: %s\n" % e) - path: /sources/{id} method: PUT xCodeSample: @@ -18161,14 +17607,13 @@ from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.source import Source - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c9180835d191a86015d28455b4a2329' # str | Source ID. # str | Source ID. - source = '''{ + id = '2c9180835d191a86015d28455b4a2329' # str | Source ID. # str | Source ID. + source = '''{ "cluster" : { "name" : "Corporate Cluster", "id" : "2c9180866166b5b0016167c32ef31a66", @@ -18251,16 +17696,16 @@ "status" : "SOURCE_STATE_HEALTHY", "since" : "2021-09-28T15:48:29.3801666300Z" }''' # Source | - try: - # Update Source (Full) - new_source = Source.from_json(source) - results = SourcesApi(api_client).put_source(id=id, source=new_source) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).put_source(id, new_source) - print("The response of SourcesApi->put_source:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->put_source: %s\n" % e) + try: + # Update Source (Full) + new_source = Source.from_json(source) + results = SourcesApi(api_client).put_source(id=id, source=new_source) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).put_source(id, new_source) + print("The response of SourcesApi->put_source:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->put_source: %s\n" % e) - path: /sources/{id}/attribute-sync-config method: PUT xCodeSample: @@ -18270,16 +17715,15 @@ from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.attr_sync_source_config import AttrSyncSourceConfig - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = '2c9180835d191a86015d28455b4a2329' # str | The source id # str | The source id - 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') - attr_sync_source_config = '''{ + id = '2c9180835d191a86015d28455b4a2329' # str | The source id # str | The source id + 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') + attr_sync_source_config = '''{ "attributes" : [ { "name" : "email", "displayName" : "Email", @@ -18297,16 +17741,16 @@ "type" : "SOURCE" } }''' # AttrSyncSourceConfig | - try: - # Update Attribute Sync Config - new_attr_sync_source_config = AttrSyncSourceConfig.from_json(attr_sync_source_config) - results = SourcesApi(api_client).put_source_attr_sync_config(id=id, x_sail_point_experimental=x_sail_point_experimental, attr_sync_source_config=new_attr_sync_source_config) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).put_source_attr_sync_config(id, x_sail_point_experimental, new_attr_sync_source_config) - print("The response of SourcesApi->put_source_attr_sync_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->put_source_attr_sync_config: %s\n" % e) + try: + # Update Attribute Sync Config + new_attr_sync_source_config = AttrSyncSourceConfig.from_json(attr_sync_source_config) + results = SourcesApi(api_client).put_source_attr_sync_config(id=id, x_sail_point_experimental=x_sail_point_experimental, attr_sync_source_config=new_attr_sync_source_config) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).put_source_attr_sync_config(id, x_sail_point_experimental, new_attr_sync_source_config) + print("The response of SourcesApi->put_source_attr_sync_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->put_source_attr_sync_config: %s\n" % e) - path: /sources/{sourceId}/schemas/{schemaId} method: PUT xCodeSample: @@ -18316,25 +17760,24 @@ from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.model_schema import ModelSchema - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source id. # str | The Source id. - schema_id = '2c9180835d191a86015d28455b4a2329' # str | The Schema id. # str | The Schema id. - model_schema = '''sailpoint.v2024.ModelSchema()''' # ModelSchema | - try: - # Update Source Schema (Full) - new_model_schema = ModelSchema.from_json(model_schema) - results = SourcesApi(api_client).put_source_schema(source_id=source_id, schema_id=schema_id, model_schema=new_model_schema) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).put_source_schema(source_id, schema_id, new_model_schema) - print("The response of SourcesApi->put_source_schema:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->put_source_schema: %s\n" % e) + source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source id. # str | The Source id. + schema_id = '2c9180835d191a86015d28455b4a2329' # str | The Schema id. # str | The Schema id. + model_schema = '''sailpoint.v2024.ModelSchema()''' # ModelSchema | + try: + # Update Source Schema (Full) + new_model_schema = ModelSchema.from_json(model_schema) + results = SourcesApi(api_client).put_source_schema(source_id=source_id, schema_id=schema_id, model_schema=new_model_schema) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).put_source_schema(source_id, schema_id, new_model_schema) + print("The response of SourcesApi->put_source_schema:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->put_source_schema: %s\n" % e) - path: /sources/{id}/synchronize-attributes method: POST xCodeSample: @@ -18344,25 +17787,24 @@ from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.source_sync_job import SourceSyncJob - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = 'id_example' # str | The Source id # str | The Source id - 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: - # Synchronize single source attributes. - - results = SourcesApi(api_client).sync_attributes_for_source(id=id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).sync_attributes_for_source(id, x_sail_point_experimental) - print("The response of SourcesApi->sync_attributes_for_source:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->sync_attributes_for_source: %s\n" % e) + id = 'id_example' # str | The Source id # str | The Source id + 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: + # Synchronize single source attributes. + + results = SourcesApi(api_client).sync_attributes_for_source(id=id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).sync_attributes_for_source(id, x_sail_point_experimental) + print("The response of SourcesApi->sync_attributes_for_source:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->sync_attributes_for_source: %s\n" % e) - path: /sources/{sourceId}/connector/test-configuration method: POST xCodeSample: @@ -18372,25 +17814,24 @@ from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.status_response import StatusResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - source_id = 'cef3ee201db947c5912551015ba0c679' # str | The ID of the Source # str | The ID of the Source - 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: - # Test configuration for source connector - - results = SourcesApi(api_client).test_source_configuration(source_id=source_id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).test_source_configuration(source_id, x_sail_point_experimental) - print("The response of SourcesApi->test_source_configuration:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->test_source_configuration: %s\n" % e) + source_id = 'cef3ee201db947c5912551015ba0c679' # str | The ID of the Source # str | The ID of the Source + 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: + # Test configuration for source connector + + results = SourcesApi(api_client).test_source_configuration(source_id=source_id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).test_source_configuration(source_id, x_sail_point_experimental) + print("The response of SourcesApi->test_source_configuration:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->test_source_configuration: %s\n" % e) - path: /sources/{sourceId}/connector/check-connection method: POST xCodeSample: @@ -18400,25 +17841,24 @@ from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.status_response import StatusResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - source_id = 'cef3ee201db947c5912551015ba0c679' # str | The ID of the Source. # str | The ID of the Source. - 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: - # Check connection for source connector. - - results = SourcesApi(api_client).test_source_connection(source_id=source_id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).test_source_connection(source_id, x_sail_point_experimental) - print("The response of SourcesApi->test_source_connection:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->test_source_connection: %s\n" % e) + source_id = 'cef3ee201db947c5912551015ba0c679' # str | The ID of the Source. # str | The ID of the Source. + 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: + # Check connection for source connector. + + results = SourcesApi(api_client).test_source_connection(source_id=source_id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).test_source_connection(source_id, x_sail_point_experimental) + print("The response of SourcesApi->test_source_connection:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->test_source_connection: %s\n" % e) - path: /sources/{sourceId}/password-policies method: PATCH xCodeSample: @@ -18428,24 +17868,23 @@ from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.password_policy_holders_dto_inner import PasswordPolicyHoldersDtoInner - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | The Source id # str | The Source id - password_policy_holders_dto_inner = '''[sailpoint.v2024.PasswordPolicyHoldersDtoInner()]''' # List[PasswordPolicyHoldersDtoInner] | - try: - # Update Password Policy - new_password_policy_holders_dto_inner = PasswordPolicyHoldersDtoInner.from_json(password_policy_holders_dto_inner) - results = SourcesApi(api_client).update_password_policy_holders(source_id=source_id, password_policy_holders_dto_inner=new_password_policy_holders_dto_inner) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).update_password_policy_holders(source_id, new_password_policy_holders_dto_inner) - print("The response of SourcesApi->update_password_policy_holders:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->update_password_policy_holders: %s\n" % e) + source_id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | The Source id # str | The Source id + password_policy_holders_dto_inner = '''[sailpoint.v2024.PasswordPolicyHoldersDtoInner()]''' # List[PasswordPolicyHoldersDtoInner] | + try: + # Update Password Policy + new_password_policy_holders_dto_inner = PasswordPolicyHoldersDtoInner.from_json(password_policy_holders_dto_inner) + results = SourcesApi(api_client).update_password_policy_holders(source_id=source_id, password_policy_holders_dto_inner=new_password_policy_holders_dto_inner) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).update_password_policy_holders(source_id, new_password_policy_holders_dto_inner) + print("The response of SourcesApi->update_password_policy_holders:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->update_password_policy_holders: %s\n" % e) - path: /sources/{sourceId}/provisioning-policies/bulk-update method: POST xCodeSample: @@ -18455,24 +17894,23 @@ from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.provisioning_policy_dto import ProvisioningPolicyDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source id. # str | The Source id. - provisioning_policy_dto = '''[sailpoint.v2024.ProvisioningPolicyDto()]''' # List[ProvisioningPolicyDto] | - try: - # Bulk Update Provisioning Policies - new_provisioning_policy_dto = ProvisioningPolicyDto.from_json(provisioning_policy_dto) - results = SourcesApi(api_client).update_provisioning_policies_in_bulk(source_id=source_id, provisioning_policy_dto=new_provisioning_policy_dto) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).update_provisioning_policies_in_bulk(source_id, new_provisioning_policy_dto) - print("The response of SourcesApi->update_provisioning_policies_in_bulk:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->update_provisioning_policies_in_bulk: %s\n" % e) + source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source id. # str | The Source id. + provisioning_policy_dto = '''[sailpoint.v2024.ProvisioningPolicyDto()]''' # List[ProvisioningPolicyDto] | + try: + # Bulk Update Provisioning Policies + new_provisioning_policy_dto = ProvisioningPolicyDto.from_json(provisioning_policy_dto) + results = SourcesApi(api_client).update_provisioning_policies_in_bulk(source_id=source_id, provisioning_policy_dto=new_provisioning_policy_dto) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).update_provisioning_policies_in_bulk(source_id, new_provisioning_policy_dto) + print("The response of SourcesApi->update_provisioning_policies_in_bulk:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->update_provisioning_policies_in_bulk: %s\n" % e) - path: /sources/{sourceId}/provisioning-policies/{usageType} method: PATCH xCodeSample: @@ -18484,25 +17922,24 @@ from sailpoint.v2024.models.json_patch_operation import JsonPatchOperation from sailpoint.v2024.models.provisioning_policy_dto import ProvisioningPolicyDto from sailpoint.v2024.models.usage_type import UsageType - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source id. # str | The Source id. - usage_type = sailpoint.v2024.UsageType() # UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. # UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. - json_patch_operation = '''[{op=add, path=/fields/0, value={name=email, transform={type=identityAttribute, attributes={name=email}}, attributes={}, isRequired=false, type=string, isMultiValued=false}}]''' # List[JsonPatchOperation] | The JSONPatch payload used to update the schema. - try: - # Partial update of Provisioning Policy - new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) - results = SourcesApi(api_client).update_provisioning_policy(source_id=source_id, usage_type=usage_type, json_patch_operation=new_json_patch_operation) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).update_provisioning_policy(source_id, usage_type, new_json_patch_operation) - print("The response of SourcesApi->update_provisioning_policy:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->update_provisioning_policy: %s\n" % e) + source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source id. # str | The Source id. + usage_type = sailpoint.v2024.UsageType() # UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. # UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. + json_patch_operation = '''[{op=add, path=/fields/0, value={name=email, transform={type=identityAttribute, attributes={name=email}}, attributes={}, isRequired=false, type=string, isMultiValued=false}}]''' # List[JsonPatchOperation] | The JSONPatch payload used to update the schema. + try: + # Partial update of Provisioning Policy + new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) + results = SourcesApi(api_client).update_provisioning_policy(source_id=source_id, usage_type=usage_type, json_patch_operation=new_json_patch_operation) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).update_provisioning_policy(source_id, usage_type, new_json_patch_operation) + print("The response of SourcesApi->update_provisioning_policy:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->update_provisioning_policy: %s\n" % e) - path: /sources/{id} method: PATCH xCodeSample: @@ -18513,24 +17950,23 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.json_patch_operation import JsonPatchOperation from sailpoint.v2024.models.source import Source - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c9180835d191a86015d28455b4a2329' # str | Source ID. # str | Source ID. - json_patch_operation = '''[{op=replace, path=/description, value=new description}]''' # List[JsonPatchOperation] | A list of account update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Any password changes are submitted as plain-text and encrypted upon receipt in Identity Security Cloud (ISC). - try: - # Update Source (Partial) - new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) - results = SourcesApi(api_client).update_source(id=id, json_patch_operation=new_json_patch_operation) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).update_source(id, new_json_patch_operation) - print("The response of SourcesApi->update_source:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->update_source: %s\n" % e) + id = '2c9180835d191a86015d28455b4a2329' # str | Source ID. # str | Source ID. + json_patch_operation = '''[{op=replace, path=/description, value=new description}]''' # List[JsonPatchOperation] | A list of account update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Any password changes are submitted as plain-text and encrypted upon receipt in Identity Security Cloud (ISC). + try: + # Update Source (Partial) + new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) + results = SourcesApi(api_client).update_source(id=id, json_patch_operation=new_json_patch_operation) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).update_source(id, new_json_patch_operation) + print("The response of SourcesApi->update_source:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->update_source: %s\n" % e) - path: /sources/{id}/entitlement-request-config method: PUT xCodeSample: @@ -18540,15 +17976,14 @@ from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.source_entitlement_request_config import SourceEntitlementRequestConfig - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - source_entitlement_request_config = '''{ + 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') + source_entitlement_request_config = '''{ "accessRequestConfig" : { "denialCommentRequired" : false, "approvalSchemes" : [ { @@ -18561,16 +17996,16 @@ "requestCommentRequired" : true } }''' # SourceEntitlementRequestConfig | - try: - # Update Source Entitlement Request Configuration - new_source_entitlement_request_config = SourceEntitlementRequestConfig.from_json(source_entitlement_request_config) - results = SourcesApi(api_client).update_source_entitlement_request_config(x_sail_point_experimental=x_sail_point_experimental, source_entitlement_request_config=new_source_entitlement_request_config) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).update_source_entitlement_request_config(x_sail_point_experimental, new_source_entitlement_request_config) - print("The response of SourcesApi->update_source_entitlement_request_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->update_source_entitlement_request_config: %s\n" % e) + try: + # Update Source Entitlement Request Configuration + new_source_entitlement_request_config = SourceEntitlementRequestConfig.from_json(source_entitlement_request_config) + results = SourcesApi(api_client).update_source_entitlement_request_config(x_sail_point_experimental=x_sail_point_experimental, source_entitlement_request_config=new_source_entitlement_request_config) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).update_source_entitlement_request_config(x_sail_point_experimental, new_source_entitlement_request_config) + print("The response of SourcesApi->update_source_entitlement_request_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->update_source_entitlement_request_config: %s\n" % e) - path: /sources/{sourceId}/schedules/{scheduleType} method: PATCH xCodeSample: @@ -18581,25 +18016,24 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.json_patch_operation import JsonPatchOperation from sailpoint.v2024.models.schedule1 import Schedule1 - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source id. # str | The Source id. - schedule_type = 'ACCOUNT_AGGREGATION' # str | The Schedule type. # str | The Schedule type. - json_patch_operation = '''[{op=replace, path=/cronExpression, value=0 0 6 * * ?}]''' # List[JsonPatchOperation] | The JSONPatch payload used to update the schedule. - try: - # Update Source Schedule (Partial) - new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) - results = SourcesApi(api_client).update_source_schedule(source_id=source_id, schedule_type=schedule_type, json_patch_operation=new_json_patch_operation) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).update_source_schedule(source_id, schedule_type, new_json_patch_operation) - print("The response of SourcesApi->update_source_schedule:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->update_source_schedule: %s\n" % e) + source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source id. # str | The Source id. + schedule_type = 'ACCOUNT_AGGREGATION' # str | The Schedule type. # str | The Schedule type. + json_patch_operation = '''[{op=replace, path=/cronExpression, value=0 0 6 * * ?}]''' # List[JsonPatchOperation] | The JSONPatch payload used to update the schedule. + try: + # Update Source Schedule (Partial) + new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) + results = SourcesApi(api_client).update_source_schedule(source_id=source_id, schedule_type=schedule_type, json_patch_operation=new_json_patch_operation) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).update_source_schedule(source_id, schedule_type, new_json_patch_operation) + print("The response of SourcesApi->update_source_schedule:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->update_source_schedule: %s\n" % e) - path: /sources/{sourceId}/schemas/{schemaId} method: PATCH xCodeSample: @@ -18610,25 +18044,24 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.json_patch_operation import JsonPatchOperation from sailpoint.v2024.models.model_schema import ModelSchema - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source id. # str | The Source id. - schema_id = '2c9180835d191a86015d28455b4a2329' # str | The Schema id. # str | The Schema id. - json_patch_operation = '''[{op=add, path=/attributes/-, value={name=location, type=STRING, schema=null, description=Employee location, isMulti=false, isEntitlement=false, isGroup=false}}]''' # List[JsonPatchOperation] | The JSONPatch payload used to update the schema. - try: - # Update Source Schema (Partial) - new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) - results = SourcesApi(api_client).update_source_schema(source_id=source_id, schema_id=schema_id, json_patch_operation=new_json_patch_operation) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).update_source_schema(source_id, schema_id, new_json_patch_operation) - print("The response of SourcesApi->update_source_schema:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->update_source_schema: %s\n" % e) + source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source id. # str | The Source id. + schema_id = '2c9180835d191a86015d28455b4a2329' # str | The Schema id. # str | The Schema id. + json_patch_operation = '''[{op=add, path=/attributes/-, value={name=location, type=STRING, schema=null, description=Employee location, isMulti=false, isEntitlement=false, isGroup=false}}]''' # List[JsonPatchOperation] | The JSONPatch payload used to update the schema. + try: + # Update Source Schema (Partial) + new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) + results = SourcesApi(api_client).update_source_schema(source_id=source_id, schema_id=schema_id, json_patch_operation=new_json_patch_operation) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).update_source_schema(source_id, schema_id, new_json_patch_operation) + print("The response of SourcesApi->update_source_schema:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->update_source_schema: %s\n" % e) - path: /source-usages/{sourceId}/status method: GET xCodeSample: @@ -18638,23 +18071,22 @@ from sailpoint.v2024.api.source_usages_api import SourceUsagesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.source_usage_status import SourceUsageStatus - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '2c9180835d191a86015d28455b4a2329' # str | ID of IDN source # str | ID of IDN source - try: - # Finds status of source usage - - results = SourceUsagesApi(api_client).get_status_by_source_id(source_id=source_id) - # Below is a request that includes all optional parameters - # results = SourceUsagesApi(api_client).get_status_by_source_id(source_id) - print("The response of SourceUsagesApi->get_status_by_source_id:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourceUsagesApi->get_status_by_source_id: %s\n" % e) + source_id = '2c9180835d191a86015d28455b4a2329' # str | ID of IDN source # str | ID of IDN source + try: + # Finds status of source usage + + results = SourceUsagesApi(api_client).get_status_by_source_id(source_id=source_id) + # Below is a request that includes all optional parameters + # results = SourceUsagesApi(api_client).get_status_by_source_id(source_id) + print("The response of SourceUsagesApi->get_status_by_source_id:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourceUsagesApi->get_status_by_source_id: %s\n" % e) - path: /source-usages/{sourceId}/summaries method: GET xCodeSample: @@ -18664,27 +18096,26 @@ from sailpoint.v2024.api.source_usages_api import SourceUsagesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.source_usage import SourceUsage - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '2c9180835d191a86015d28455b4a2329' # str | ID of IDN source # str | ID of IDN source - 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) - sorters = '-date' # 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: **date** (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: **date** (optional) - try: - # Returns source usage insights - - results = SourceUsagesApi(api_client).get_usages_by_source_id(source_id=source_id) - # Below is a request that includes all optional parameters - # results = SourceUsagesApi(api_client).get_usages_by_source_id(source_id, limit, offset, count, sorters) - print("The response of SourceUsagesApi->get_usages_by_source_id:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourceUsagesApi->get_usages_by_source_id: %s\n" % e) + source_id = '2c9180835d191a86015d28455b4a2329' # str | ID of IDN source # str | ID of IDN source + 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) + sorters = '-date' # 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: **date** (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: **date** (optional) + try: + # Returns source usage insights + + results = SourceUsagesApi(api_client).get_usages_by_source_id(source_id=source_id) + # Below is a request that includes all optional parameters + # results = SourceUsagesApi(api_client).get_usages_by_source_id(source_id, limit, offset, count, sorters) + print("The response of SourceUsagesApi->get_usages_by_source_id:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourceUsagesApi->get_usages_by_source_id: %s\n" % e) - path: /sp-config/export method: POST xCodeSample: @@ -18695,25 +18126,24 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.export_payload import ExportPayload from sailpoint.v2024.models.sp_config_export_job import SpConfigExportJob - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - export_payload = '''{ + export_payload = '''{ "description" : "Export Job 1 Test" }''' # ExportPayload | Export options control what will be included in the export. - try: - # Initiates configuration objects export job - new_export_payload = ExportPayload.from_json(export_payload) - results = SPConfigApi(api_client).export_sp_config(export_payload=new_export_payload) - # Below is a request that includes all optional parameters - # results = SPConfigApi(api_client).export_sp_config(new_export_payload) - print("The response of SPConfigApi->export_sp_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling SPConfigApi->export_sp_config: %s\n" % e) + try: + # Initiates configuration objects export job + new_export_payload = ExportPayload.from_json(export_payload) + results = SPConfigApi(api_client).export_sp_config(export_payload=new_export_payload) + # Below is a request that includes all optional parameters + # results = SPConfigApi(api_client).export_sp_config(new_export_payload) + print("The response of SPConfigApi->export_sp_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SPConfigApi->export_sp_config: %s\n" % e) - path: /sp-config/export/{id}/download method: GET xCodeSample: @@ -18723,23 +18153,22 @@ from sailpoint.v2024.api.sp_config_api import SPConfigApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.sp_config_export_results import SpConfigExportResults - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the export job whose results will be downloaded. # str | The ID of the export job whose results will be downloaded. - try: - # Download export job result. - - results = SPConfigApi(api_client).get_sp_config_export(id=id) - # Below is a request that includes all optional parameters - # results = SPConfigApi(api_client).get_sp_config_export(id) - print("The response of SPConfigApi->get_sp_config_export:\n") - pprint(results) - except Exception as e: - print("Exception when calling SPConfigApi->get_sp_config_export: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the export job whose results will be downloaded. # str | The ID of the export job whose results will be downloaded. + try: + # Download export job result. + + results = SPConfigApi(api_client).get_sp_config_export(id=id) + # Below is a request that includes all optional parameters + # results = SPConfigApi(api_client).get_sp_config_export(id) + print("The response of SPConfigApi->get_sp_config_export:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SPConfigApi->get_sp_config_export: %s\n" % e) - path: /sp-config/export/{id} method: GET xCodeSample: @@ -18749,23 +18178,22 @@ from sailpoint.v2024.api.sp_config_api import SPConfigApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.sp_config_export_job_status import SpConfigExportJobStatus - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the export job whose status will be returned. # str | The ID of the export job whose status will be returned. - try: - # Get export job status - - results = SPConfigApi(api_client).get_sp_config_export_status(id=id) - # Below is a request that includes all optional parameters - # results = SPConfigApi(api_client).get_sp_config_export_status(id) - print("The response of SPConfigApi->get_sp_config_export_status:\n") - pprint(results) - except Exception as e: - print("Exception when calling SPConfigApi->get_sp_config_export_status: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the export job whose status will be returned. # str | The ID of the export job whose status will be returned. + try: + # Get export job status + + results = SPConfigApi(api_client).get_sp_config_export_status(id=id) + # Below is a request that includes all optional parameters + # results = SPConfigApi(api_client).get_sp_config_export_status(id) + print("The response of SPConfigApi->get_sp_config_export_status:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SPConfigApi->get_sp_config_export_status: %s\n" % e) - path: /sp-config/import/{id}/download method: GET xCodeSample: @@ -18775,23 +18203,22 @@ from sailpoint.v2024.api.sp_config_api import SPConfigApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.sp_config_import_results import SpConfigImportResults - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the import job whose results will be downloaded. # str | The ID of the import job whose results will be downloaded. - try: - # Download import job result - - results = SPConfigApi(api_client).get_sp_config_import(id=id) - # Below is a request that includes all optional parameters - # results = SPConfigApi(api_client).get_sp_config_import(id) - print("The response of SPConfigApi->get_sp_config_import:\n") - pprint(results) - except Exception as e: - print("Exception when calling SPConfigApi->get_sp_config_import: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the import job whose results will be downloaded. # str | The ID of the import job whose results will be downloaded. + try: + # Download import job result + + results = SPConfigApi(api_client).get_sp_config_import(id=id) + # Below is a request that includes all optional parameters + # results = SPConfigApi(api_client).get_sp_config_import(id) + print("The response of SPConfigApi->get_sp_config_import:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SPConfigApi->get_sp_config_import: %s\n" % e) - path: /sp-config/import/{id} method: GET xCodeSample: @@ -18801,23 +18228,22 @@ from sailpoint.v2024.api.sp_config_api import SPConfigApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.sp_config_import_job_status import SpConfigImportJobStatus - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the import job whose status will be returned. # str | The ID of the import job whose status will be returned. - try: - # Get import job status - - results = SPConfigApi(api_client).get_sp_config_import_status(id=id) - # Below is a request that includes all optional parameters - # results = SPConfigApi(api_client).get_sp_config_import_status(id) - print("The response of SPConfigApi->get_sp_config_import_status:\n") - pprint(results) - except Exception as e: - print("Exception when calling SPConfigApi->get_sp_config_import_status: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the import job whose status will be returned. # str | The ID of the import job whose status will be returned. + try: + # Get import job status + + results = SPConfigApi(api_client).get_sp_config_import_status(id=id) + # Below is a request that includes all optional parameters + # results = SPConfigApi(api_client).get_sp_config_import_status(id) + print("The response of SPConfigApi->get_sp_config_import_status:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SPConfigApi->get_sp_config_import_status: %s\n" % e) - path: /sp-config/import method: POST xCodeSample: @@ -18828,25 +18254,24 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.import_options import ImportOptions from sailpoint.v2024.models.sp_config_job import SpConfigJob - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - data = None # bytearray | JSON file containing the objects to be imported. # bytearray | JSON file containing the objects to be imported. - preview = False # bool | This option is intended to give the user information about how an import operation would proceed, without having any effect on the target tenant. If this parameter is \"true\", no objects will be imported. Instead, the import process will pre-process the import file and attempt to resolve references within imported objects. The import result file will contain messages pertaining to how specific references were resolved, any errors associated with the preprocessing, and messages indicating which objects would be imported. (optional) (default to False) # bool | This option is intended to give the user information about how an import operation would proceed, without having any effect on the target tenant. If this parameter is \"true\", no objects will be imported. Instead, the import process will pre-process the import file and attempt to resolve references within imported objects. The import result file will contain messages pertaining to how specific references were resolved, any errors associated with the preprocessing, and messages indicating which objects would be imported. (optional) (default to False) - options = '''sailpoint.v2024.ImportOptions()''' # ImportOptions | (optional) - try: - # Initiates configuration objects import job - - results = SPConfigApi(api_client).import_sp_config(data=data) - # Below is a request that includes all optional parameters - # results = SPConfigApi(api_client).import_sp_config(data, preview, options) - print("The response of SPConfigApi->import_sp_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling SPConfigApi->import_sp_config: %s\n" % e) + data = None # bytearray | JSON file containing the objects to be imported. # bytearray | JSON file containing the objects to be imported. + preview = False # bool | This option is intended to give the user information about how an import operation would proceed, without having any effect on the target tenant. If this parameter is \"true\", no objects will be imported. Instead, the import process will pre-process the import file and attempt to resolve references within imported objects. The import result file will contain messages pertaining to how specific references were resolved, any errors associated with the preprocessing, and messages indicating which objects would be imported. (optional) (default to False) # bool | This option is intended to give the user information about how an import operation would proceed, without having any effect on the target tenant. If this parameter is \"true\", no objects will be imported. Instead, the import process will pre-process the import file and attempt to resolve references within imported objects. The import result file will contain messages pertaining to how specific references were resolved, any errors associated with the preprocessing, and messages indicating which objects would be imported. (optional) (default to False) + options = '''sailpoint.v2024.ImportOptions()''' # ImportOptions | (optional) + try: + # Initiates configuration objects import job + + results = SPConfigApi(api_client).import_sp_config(data=data) + # Below is a request that includes all optional parameters + # results = SPConfigApi(api_client).import_sp_config(data, preview, options) + print("The response of SPConfigApi->import_sp_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SPConfigApi->import_sp_config: %s\n" % e) - path: /sp-config/config-objects method: GET xCodeSample: @@ -18856,22 +18281,21 @@ from sailpoint.v2024.api.sp_config_api import SPConfigApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.sp_config_object import SpConfigObject - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - try: - # Get config object details - - results = SPConfigApi(api_client).list_sp_config_objects() - # Below is a request that includes all optional parameters - # results = SPConfigApi(api_client).list_sp_config_objects() - print("The response of SPConfigApi->list_sp_config_objects:\n") - pprint(results) - except Exception as e: - print("Exception when calling SPConfigApi->list_sp_config_objects: %s\n" % e) + try: + # Get config object details + + results = SPConfigApi(api_client).list_sp_config_objects() + # Below is a request that includes all optional parameters + # results = SPConfigApi(api_client).list_sp_config_objects() + print("The response of SPConfigApi->list_sp_config_objects:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SPConfigApi->list_sp_config_objects: %s\n" % e) - path: /suggested-entitlement-description-batches/{batchId}/stats method: GET xCodeSample: @@ -18881,23 +18305,22 @@ from sailpoint.v2024.api.suggested_entitlement_description_api import SuggestedEntitlementDescriptionApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.sed_batch_stats import SedBatchStats - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - batch_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | Batch Id # str | Batch Id - try: - # Submit Sed Batch Stats Request - - results = SuggestedEntitlementDescriptionApi(api_client).get_sed_batch_stats(batch_id=batch_id) - # Below is a request that includes all optional parameters - # results = SuggestedEntitlementDescriptionApi(api_client).get_sed_batch_stats(batch_id) - print("The response of SuggestedEntitlementDescriptionApi->get_sed_batch_stats:\n") - pprint(results) - except Exception as e: - print("Exception when calling SuggestedEntitlementDescriptionApi->get_sed_batch_stats: %s\n" % e) + batch_id = '8c190e67-87aa-4ed9-a90b-d9d5344523fb' # str | Batch Id # str | Batch Id + try: + # Submit Sed Batch Stats Request + + results = SuggestedEntitlementDescriptionApi(api_client).get_sed_batch_stats(batch_id=batch_id) + # Below is a request that includes all optional parameters + # results = SuggestedEntitlementDescriptionApi(api_client).get_sed_batch_stats(batch_id) + print("The response of SuggestedEntitlementDescriptionApi->get_sed_batch_stats:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SuggestedEntitlementDescriptionApi->get_sed_batch_stats: %s\n" % e) - path: /suggested-entitlement-description-batches method: GET xCodeSample: @@ -18907,22 +18330,21 @@ from sailpoint.v2024.api.suggested_entitlement_description_api import SuggestedEntitlementDescriptionApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.sed_batch_status import SedBatchStatus - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - try: - # List Sed Batch Request - - results = SuggestedEntitlementDescriptionApi(api_client).get_sed_batches() - # Below is a request that includes all optional parameters - # results = SuggestedEntitlementDescriptionApi(api_client).get_sed_batches() - print("The response of SuggestedEntitlementDescriptionApi->get_sed_batches:\n") - pprint(results) - except Exception as e: - print("Exception when calling SuggestedEntitlementDescriptionApi->get_sed_batches: %s\n" % e) + try: + # List Sed Batch Request + + results = SuggestedEntitlementDescriptionApi(api_client).get_sed_batches() + # Below is a request that includes all optional parameters + # results = SuggestedEntitlementDescriptionApi(api_client).get_sed_batches() + print("The response of SuggestedEntitlementDescriptionApi->get_sed_batches:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SuggestedEntitlementDescriptionApi->get_sed_batches: %s\n" % e) - path: /suggested-entitlement-descriptions method: GET xCodeSample: @@ -18932,30 +18354,29 @@ from sailpoint.v2024.api.suggested_entitlement_description_api import SuggestedEntitlementDescriptionApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.sed import Sed - from pprint import pprint - from sailpoint.configuration import Configuration - configuration = Configuration() - - - with ApiClient(configuration) as api_client: - 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 = 'displayName co \"Read and Write\"' # 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: **batchId**: *eq, ne* **displayName**: *eq, ne, co* **sourceName**: *eq, ne, co* **sourceId**: *eq, ne* **status**: *eq, ne* **fullText**: *co* (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: **batchId**: *eq, ne* **displayName**: *eq, ne, co* **sourceName**: *eq, ne, co* **sourceId**: *eq, ne* **status**: *eq, ne* **fullText**: *co* (optional) - sorters = 'sorters=displayName' # 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: **displayName, sourceName, status** (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: **displayName, sourceName, status** (optional) - count_only = 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. This parameter differs from the count parameter in that this one skips executing the actual query and always return an empty array. (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. This parameter differs from the count parameter in that this one skips executing the actual query and always return an empty array. (optional) (default to False) - requested_by_anyone = False # bool | By default, the ListSeds API will only return items that you have requested to be generated. This option will allow you to see all items that have been requested (optional) (default to False) # bool | By default, the ListSeds API will only return items that you have requested to be generated. This option will allow you to see all items that have been requested (optional) (default to False) - show_pending_status_only = False # bool | Will limit records to items that are in \"suggested\" or \"approved\" status (optional) (default to False) # bool | Will limit records to items that are in \"suggested\" or \"approved\" status (optional) (default to False) - try: - # List Suggested Entitlement Descriptions - - results = SuggestedEntitlementDescriptionApi(api_client).list_seds() - # Below is a request that includes all optional parameters - # results = SuggestedEntitlementDescriptionApi(api_client).list_seds(limit, offset, count, filters, sorters, count_only, requested_by_anyone, show_pending_status_only) - print("The response of SuggestedEntitlementDescriptionApi->list_seds:\n") - pprint(results) - except Exception as e: - print("Exception when calling SuggestedEntitlementDescriptionApi->list_seds: %s\n" % e) + from sailpoint.configuration import Configuration + configuration = Configuration() + + + with ApiClient(configuration) as api_client: + 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 = 'displayName co \"Read and Write\"' # 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: **batchId**: *eq, ne* **displayName**: *eq, ne, co* **sourceName**: *eq, ne, co* **sourceId**: *eq, ne* **status**: *eq, ne* **fullText**: *co* (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: **batchId**: *eq, ne* **displayName**: *eq, ne, co* **sourceName**: *eq, ne, co* **sourceId**: *eq, ne* **status**: *eq, ne* **fullText**: *co* (optional) + sorters = 'sorters=displayName' # 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: **displayName, sourceName, status** (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: **displayName, sourceName, status** (optional) + count_only = 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. This parameter differs from the count parameter in that this one skips executing the actual query and always return an empty array. (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. This parameter differs from the count parameter in that this one skips executing the actual query and always return an empty array. (optional) (default to False) + requested_by_anyone = False # bool | By default, the ListSeds API will only return items that you have requested to be generated. This option will allow you to see all items that have been requested (optional) (default to False) # bool | By default, the ListSeds API will only return items that you have requested to be generated. This option will allow you to see all items that have been requested (optional) (default to False) + show_pending_status_only = False # bool | Will limit records to items that are in \"suggested\" or \"approved\" status (optional) (default to False) # bool | Will limit records to items that are in \"suggested\" or \"approved\" status (optional) (default to False) + try: + # List Suggested Entitlement Descriptions + + results = SuggestedEntitlementDescriptionApi(api_client).list_seds() + # Below is a request that includes all optional parameters + # results = SuggestedEntitlementDescriptionApi(api_client).list_seds(limit, offset, count, filters, sorters, count_only, requested_by_anyone, show_pending_status_only) + print("The response of SuggestedEntitlementDescriptionApi->list_seds:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SuggestedEntitlementDescriptionApi->list_seds: %s\n" % e) - path: /suggested-entitlement-descriptions method: PATCH xCodeSample: @@ -18966,24 +18387,23 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.sed import Sed from sailpoint.v2024.models.sed_patch import SedPatch - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ebab396f-0af1-4050-89b7-dafc63ec70e7' # str | id is sed id # str | id is sed id - sed_patch = '''[sailpoint.v2024.SedPatch()]''' # List[SedPatch] | Sed Patch Request - try: - # Patch Suggested Entitlement Description - new_sed_patch = SedPatch.from_json(sed_patch) - results = SuggestedEntitlementDescriptionApi(api_client).patch_sed(id=id, sed_patch=new_sed_patch) - # Below is a request that includes all optional parameters - # results = SuggestedEntitlementDescriptionApi(api_client).patch_sed(id, new_sed_patch) - print("The response of SuggestedEntitlementDescriptionApi->patch_sed:\n") - pprint(results) - except Exception as e: - print("Exception when calling SuggestedEntitlementDescriptionApi->patch_sed: %s\n" % e) + id = 'ebab396f-0af1-4050-89b7-dafc63ec70e7' # str | id is sed id # str | id is sed id + sed_patch = '''[sailpoint.v2024.SedPatch()]''' # List[SedPatch] | Sed Patch Request + try: + # Patch Suggested Entitlement Description + new_sed_patch = SedPatch.from_json(sed_patch) + results = SuggestedEntitlementDescriptionApi(api_client).patch_sed(id=id, sed_patch=new_sed_patch) + # Below is a request that includes all optional parameters + # results = SuggestedEntitlementDescriptionApi(api_client).patch_sed(id, new_sed_patch) + print("The response of SuggestedEntitlementDescriptionApi->patch_sed:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SuggestedEntitlementDescriptionApi->patch_sed: %s\n" % e) - path: /suggested-entitlement-description-approvals method: POST xCodeSample: @@ -18994,23 +18414,22 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.sed_approval import SedApproval from sailpoint.v2024.models.sed_approval_status import SedApprovalStatus - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - sed_approval = '''[sailpoint.v2024.SedApproval()]''' # List[SedApproval] | Sed Approval - try: - # Submit Bulk Approval Request - new_sed_approval = SedApproval.from_json(sed_approval) - results = SuggestedEntitlementDescriptionApi(api_client).submit_sed_approval(sed_approval=new_sed_approval) - # Below is a request that includes all optional parameters - # results = SuggestedEntitlementDescriptionApi(api_client).submit_sed_approval(new_sed_approval) - print("The response of SuggestedEntitlementDescriptionApi->submit_sed_approval:\n") - pprint(results) - except Exception as e: - print("Exception when calling SuggestedEntitlementDescriptionApi->submit_sed_approval: %s\n" % e) + sed_approval = '''[sailpoint.v2024.SedApproval()]''' # List[SedApproval] | Sed Approval + try: + # Submit Bulk Approval Request + new_sed_approval = SedApproval.from_json(sed_approval) + results = SuggestedEntitlementDescriptionApi(api_client).submit_sed_approval(sed_approval=new_sed_approval) + # Below is a request that includes all optional parameters + # results = SuggestedEntitlementDescriptionApi(api_client).submit_sed_approval(new_sed_approval) + print("The response of SuggestedEntitlementDescriptionApi->submit_sed_approval:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SuggestedEntitlementDescriptionApi->submit_sed_approval: %s\n" % e) - path: /suggested-entitlement-description-assignments method: POST xCodeSample: @@ -19021,29 +18440,28 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.sed_assignment import SedAssignment from sailpoint.v2024.models.sed_assignment_response import SedAssignmentResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - sed_assignment = '''{ + sed_assignment = '''{ "assignee" : { "type" : "SOURCE_OWNER", "value" : "016629d1-1d25-463f-97f3-c6686846650" }, "items" : [ "016629d1-1d25-463f-97f3-0c6686846650", "016629d1-1d25-463f-97f3-0c6686846650" ] }''' # SedAssignment | Sed Assignment Request - try: - # Submit Sed Assignment Request - new_sed_assignment = SedAssignment.from_json(sed_assignment) - results = SuggestedEntitlementDescriptionApi(api_client).submit_sed_assignment(sed_assignment=new_sed_assignment) - # Below is a request that includes all optional parameters - # results = SuggestedEntitlementDescriptionApi(api_client).submit_sed_assignment(new_sed_assignment) - print("The response of SuggestedEntitlementDescriptionApi->submit_sed_assignment:\n") - pprint(results) - except Exception as e: - print("Exception when calling SuggestedEntitlementDescriptionApi->submit_sed_assignment: %s\n" % e) + try: + # Submit Sed Assignment Request + new_sed_assignment = SedAssignment.from_json(sed_assignment) + results = SuggestedEntitlementDescriptionApi(api_client).submit_sed_assignment(sed_assignment=new_sed_assignment) + # Below is a request that includes all optional parameters + # results = SuggestedEntitlementDescriptionApi(api_client).submit_sed_assignment(new_sed_assignment) + print("The response of SuggestedEntitlementDescriptionApi->submit_sed_assignment:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SuggestedEntitlementDescriptionApi->submit_sed_assignment: %s\n" % e) - path: /suggested-entitlement-description-batches method: POST xCodeSample: @@ -19054,26 +18472,25 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.sed_batch_request import SedBatchRequest from sailpoint.v2024.models.sed_batch_response import SedBatchResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - sed_batch_request = '''{ + sed_batch_request = '''{ "entitlements" : [ "016629d1-1d25-463f-97f3-c6686846650", "016629d1-1d25-463f-97f3-c6686846650" ], "seds" : [ "016629d1-1d25-463f-97f3-c6686846650", "016629d1-1d25-463f-97f3-c6686846650" ] }''' # SedBatchRequest | Sed Batch Request (optional) - try: - # Submit Sed Batch Request - - results = SuggestedEntitlementDescriptionApi(api_client).submit_sed_batch_request() - # Below is a request that includes all optional parameters - # results = SuggestedEntitlementDescriptionApi(api_client).submit_sed_batch_request(new_sed_batch_request) - print("The response of SuggestedEntitlementDescriptionApi->submit_sed_batch_request:\n") - pprint(results) - except Exception as e: - print("Exception when calling SuggestedEntitlementDescriptionApi->submit_sed_batch_request: %s\n" % e) + try: + # Submit Sed Batch Request + + results = SuggestedEntitlementDescriptionApi(api_client).submit_sed_batch_request() + # Below is a request that includes all optional parameters + # results = SuggestedEntitlementDescriptionApi(api_client).submit_sed_batch_request(new_sed_batch_request) + print("The response of SuggestedEntitlementDescriptionApi->submit_sed_batch_request:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SuggestedEntitlementDescriptionApi->submit_sed_batch_request: %s\n" % e) - path: /tagged-objects/{type}/{id} method: DELETE xCodeSample: @@ -19082,22 +18499,21 @@ source: | from sailpoint.v2024.api.tagged_objects_api import TaggedObjectsApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - type = 'ROLE' # str | The type of object to delete tags from. # str | The type of object to delete tags from. - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the object to delete tags from. # str | The ID of the object to delete tags from. - try: - # Delete Object Tags - - TaggedObjectsApi(api_client).delete_tagged_object(type=type, id=id) - # Below is a request that includes all optional parameters - # TaggedObjectsApi(api_client).delete_tagged_object(type, id) - except Exception as e: - print("Exception when calling TaggedObjectsApi->delete_tagged_object: %s\n" % e) + type = 'ROLE' # str | The type of object to delete tags from. # str | The type of object to delete tags from. + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the object to delete tags from. # str | The ID of the object to delete tags from. + try: + # Delete Object Tags + + TaggedObjectsApi(api_client).delete_tagged_object(type=type, id=id) + # Below is a request that includes all optional parameters + # TaggedObjectsApi(api_client).delete_tagged_object(type, id) + except Exception as e: + print("Exception when calling TaggedObjectsApi->delete_tagged_object: %s\n" % e) - path: /tagged-objects/bulk-remove method: POST xCodeSample: @@ -19107,13 +18523,12 @@ from sailpoint.v2024.api.tagged_objects_api import TaggedObjectsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.bulk_remove_tagged_object import BulkRemoveTaggedObject - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - bulk_remove_tagged_object = '''{ + bulk_remove_tagged_object = '''{ "objectRefs" : [ { "name" : "William Wilson", "id" : "2c91808568c529c60168cca6f90c1313", @@ -19125,14 +18540,14 @@ } ], "tags" : [ "BU_FINANCE", "PCI" ] }''' # BulkRemoveTaggedObject | Supported object types are ACCESS_PROFILE, APPLICATION, CAMPAIGN, ENTITLEMENT, IDENTITY, ROLE, SOD_POLICY, SOURCE. - try: - # Remove Tags from Multiple Objects - new_bulk_remove_tagged_object = BulkRemoveTaggedObject.from_json(bulk_remove_tagged_object) - TaggedObjectsApi(api_client).delete_tags_to_many_object(bulk_remove_tagged_object=new_bulk_remove_tagged_object) - # Below is a request that includes all optional parameters - # TaggedObjectsApi(api_client).delete_tags_to_many_object(new_bulk_remove_tagged_object) - except Exception as e: - print("Exception when calling TaggedObjectsApi->delete_tags_to_many_object: %s\n" % e) + try: + # Remove Tags from Multiple Objects + new_bulk_remove_tagged_object = BulkRemoveTaggedObject.from_json(bulk_remove_tagged_object) + TaggedObjectsApi(api_client).delete_tags_to_many_object(bulk_remove_tagged_object=new_bulk_remove_tagged_object) + # Below is a request that includes all optional parameters + # TaggedObjectsApi(api_client).delete_tags_to_many_object(new_bulk_remove_tagged_object) + except Exception as e: + print("Exception when calling TaggedObjectsApi->delete_tags_to_many_object: %s\n" % e) - path: /tagged-objects/{type}/{id} method: GET xCodeSample: @@ -19142,24 +18557,23 @@ from sailpoint.v2024.api.tagged_objects_api import TaggedObjectsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.tagged_object import TaggedObject - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - type = 'ROLE' # str | The type of tagged object to retrieve. # str | The type of tagged object to retrieve. - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the object reference to retrieve. # str | The ID of the object reference to retrieve. - try: - # Get Tagged Object - - results = TaggedObjectsApi(api_client).get_tagged_object(type=type, id=id) - # Below is a request that includes all optional parameters - # results = TaggedObjectsApi(api_client).get_tagged_object(type, id) - print("The response of TaggedObjectsApi->get_tagged_object:\n") - pprint(results) - except Exception as e: - print("Exception when calling TaggedObjectsApi->get_tagged_object: %s\n" % e) + type = 'ROLE' # str | The type of tagged object to retrieve. # str | The type of tagged object to retrieve. + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the object reference to retrieve. # str | The ID of the object reference to retrieve. + try: + # Get Tagged Object + + results = TaggedObjectsApi(api_client).get_tagged_object(type=type, id=id) + # Below is a request that includes all optional parameters + # results = TaggedObjectsApi(api_client).get_tagged_object(type, id) + print("The response of TaggedObjectsApi->get_tagged_object:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling TaggedObjectsApi->get_tagged_object: %s\n" % e) - path: /tagged-objects method: GET xCodeSample: @@ -19169,26 +18583,25 @@ from sailpoint.v2024.api.tagged_objects_api import TaggedObjectsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.tagged_object import TaggedObject - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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 = 'tagName eq \"BU_FINANCE\"' # 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: **objectRef.id**: *eq, in* **objectRef.type**: *eq, in* **tagName**: *eq, in* (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: **objectRef.id**: *eq, in* **objectRef.type**: *eq, in* **tagName**: *eq, in* (optional) - try: - # List Tagged Objects - - results = TaggedObjectsApi(api_client).list_tagged_objects() - # Below is a request that includes all optional parameters - # results = TaggedObjectsApi(api_client).list_tagged_objects(limit, offset, count, filters) - print("The response of TaggedObjectsApi->list_tagged_objects:\n") - pprint(results) - except Exception as e: - print("Exception when calling TaggedObjectsApi->list_tagged_objects: %s\n" % e) + 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 = 'tagName eq \"BU_FINANCE\"' # 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: **objectRef.id**: *eq, in* **objectRef.type**: *eq, in* **tagName**: *eq, in* (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: **objectRef.id**: *eq, in* **objectRef.type**: *eq, in* **tagName**: *eq, in* (optional) + try: + # List Tagged Objects + + results = TaggedObjectsApi(api_client).list_tagged_objects() + # Below is a request that includes all optional parameters + # results = TaggedObjectsApi(api_client).list_tagged_objects(limit, offset, count, filters) + print("The response of TaggedObjectsApi->list_tagged_objects:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling TaggedObjectsApi->list_tagged_objects: %s\n" % e) - path: /tagged-objects/{type} method: GET xCodeSample: @@ -19198,27 +18611,26 @@ from sailpoint.v2024.api.tagged_objects_api import TaggedObjectsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.tagged_object import TaggedObject - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - type = 'ROLE' # str | The type of tagged object to retrieve. # str | The type of tagged object to retrieve. - 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 = 'objectRef.id eq \"2c91808568c529c60168cca6f90c1313\"' # 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: **objectRef.id**: *eq* **objectRef.type**: *eq* (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: **objectRef.id**: *eq* **objectRef.type**: *eq* (optional) - try: - # List Tagged Objects by Type - - results = TaggedObjectsApi(api_client).list_tagged_objects_by_type(type=type) - # Below is a request that includes all optional parameters - # results = TaggedObjectsApi(api_client).list_tagged_objects_by_type(type, limit, offset, count, filters) - print("The response of TaggedObjectsApi->list_tagged_objects_by_type:\n") - pprint(results) - except Exception as e: - print("Exception when calling TaggedObjectsApi->list_tagged_objects_by_type: %s\n" % e) + type = 'ROLE' # str | The type of tagged object to retrieve. # str | The type of tagged object to retrieve. + 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 = 'objectRef.id eq \"2c91808568c529c60168cca6f90c1313\"' # 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: **objectRef.id**: *eq* **objectRef.type**: *eq* (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: **objectRef.id**: *eq* **objectRef.type**: *eq* (optional) + try: + # List Tagged Objects by Type + + results = TaggedObjectsApi(api_client).list_tagged_objects_by_type(type=type) + # Below is a request that includes all optional parameters + # results = TaggedObjectsApi(api_client).list_tagged_objects_by_type(type, limit, offset, count, filters) + print("The response of TaggedObjectsApi->list_tagged_objects_by_type:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling TaggedObjectsApi->list_tagged_objects_by_type: %s\n" % e) - path: /tagged-objects/{type}/{id} method: PUT xCodeSample: @@ -19228,15 +18640,14 @@ from sailpoint.v2024.api.tagged_objects_api import TaggedObjectsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.tagged_object import TaggedObject - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - type = 'ROLE' # str | The type of tagged object to update. # str | The type of tagged object to update. - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the object reference to update. # str | The ID of the object reference to update. - tagged_object = '''{ + type = 'ROLE' # str | The type of tagged object to update. # str | The type of tagged object to update. + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the object reference to update. # str | The ID of the object reference to update. + tagged_object = '''{ "objectRef" : { "name" : "William Wilson", "id" : "2c91808568c529c60168cca6f90c1313", @@ -19244,16 +18655,16 @@ }, "tags" : [ "BU_FINANCE", "PCI" ] }''' # TaggedObject | - try: - # Update Tagged Object - new_tagged_object = TaggedObject.from_json(tagged_object) - results = TaggedObjectsApi(api_client).put_tagged_object(type=type, id=id, tagged_object=new_tagged_object) - # Below is a request that includes all optional parameters - # results = TaggedObjectsApi(api_client).put_tagged_object(type, id, new_tagged_object) - print("The response of TaggedObjectsApi->put_tagged_object:\n") - pprint(results) - except Exception as e: - print("Exception when calling TaggedObjectsApi->put_tagged_object: %s\n" % e) + try: + # Update Tagged Object + new_tagged_object = TaggedObject.from_json(tagged_object) + results = TaggedObjectsApi(api_client).put_tagged_object(type=type, id=id, tagged_object=new_tagged_object) + # Below is a request that includes all optional parameters + # results = TaggedObjectsApi(api_client).put_tagged_object(type, id, new_tagged_object) + print("The response of TaggedObjectsApi->put_tagged_object:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling TaggedObjectsApi->put_tagged_object: %s\n" % e) - path: /tagged-objects method: POST xCodeSample: @@ -19263,13 +18674,12 @@ from sailpoint.v2024.api.tagged_objects_api import TaggedObjectsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.tagged_object import TaggedObject - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - tagged_object = '''{ + tagged_object = '''{ "objectRef" : { "name" : "William Wilson", "id" : "2c91808568c529c60168cca6f90c1313", @@ -19277,14 +18687,14 @@ }, "tags" : [ "BU_FINANCE", "PCI" ] }''' # TaggedObject | - try: - # Add Tag to Object - new_tagged_object = TaggedObject.from_json(tagged_object) - TaggedObjectsApi(api_client).set_tag_to_object(tagged_object=new_tagged_object) - # Below is a request that includes all optional parameters - # TaggedObjectsApi(api_client).set_tag_to_object(new_tagged_object) - except Exception as e: - print("Exception when calling TaggedObjectsApi->set_tag_to_object: %s\n" % e) + try: + # Add Tag to Object + new_tagged_object = TaggedObject.from_json(tagged_object) + TaggedObjectsApi(api_client).set_tag_to_object(tagged_object=new_tagged_object) + # Below is a request that includes all optional parameters + # TaggedObjectsApi(api_client).set_tag_to_object(new_tagged_object) + except Exception as e: + print("Exception when calling TaggedObjectsApi->set_tag_to_object: %s\n" % e) - path: /tagged-objects/bulk-add method: POST xCodeSample: @@ -19295,13 +18705,12 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.bulk_add_tagged_object import BulkAddTaggedObject from sailpoint.v2024.models.bulk_tagged_object_response import BulkTaggedObjectResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - bulk_add_tagged_object = '''{ + bulk_add_tagged_object = '''{ "objectRefs" : [ { "name" : "William Wilson", "id" : "2c91808568c529c60168cca6f90c1313", @@ -19314,16 +18723,16 @@ "operation" : "MERGE", "tags" : [ "BU_FINANCE", "PCI" ] }''' # BulkAddTaggedObject | Supported object types are ACCESS_PROFILE, APPLICATION, CAMPAIGN, ENTITLEMENT, IDENTITY, ROLE, SOD_POLICY, SOURCE. - try: - # Tag Multiple Objects - new_bulk_add_tagged_object = BulkAddTaggedObject.from_json(bulk_add_tagged_object) - results = TaggedObjectsApi(api_client).set_tags_to_many_objects(bulk_add_tagged_object=new_bulk_add_tagged_object) - # Below is a request that includes all optional parameters - # results = TaggedObjectsApi(api_client).set_tags_to_many_objects(new_bulk_add_tagged_object) - print("The response of TaggedObjectsApi->set_tags_to_many_objects:\n") - pprint(results) - except Exception as e: - print("Exception when calling TaggedObjectsApi->set_tags_to_many_objects: %s\n" % e) + try: + # Tag Multiple Objects + new_bulk_add_tagged_object = BulkAddTaggedObject.from_json(bulk_add_tagged_object) + results = TaggedObjectsApi(api_client).set_tags_to_many_objects(bulk_add_tagged_object=new_bulk_add_tagged_object) + # Below is a request that includes all optional parameters + # results = TaggedObjectsApi(api_client).set_tags_to_many_objects(new_bulk_add_tagged_object) + print("The response of TaggedObjectsApi->set_tags_to_many_objects:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling TaggedObjectsApi->set_tags_to_many_objects: %s\n" % e) - path: /task-status/pending-tasks method: HEAD xCodeSample: @@ -19332,25 +18741,24 @@ source: | from sailpoint.v2024.api.task_management_api import TaskManagementApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - 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) - 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) - 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) - try: - # Retrieve Pending Task List Headers - - TaskManagementApi(api_client).get_pending_task_headers(x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # TaskManagementApi(api_client).get_pending_task_headers(x_sail_point_experimental, offset, limit, count) - except Exception as e: - print("Exception when calling TaskManagementApi->get_pending_task_headers: %s\n" % e) + 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') + 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) + 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) + 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) + try: + # Retrieve Pending Task List Headers + + TaskManagementApi(api_client).get_pending_task_headers(x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # TaskManagementApi(api_client).get_pending_task_headers(x_sail_point_experimental, offset, limit, count) + except Exception as e: + print("Exception when calling TaskManagementApi->get_pending_task_headers: %s\n" % e) - path: /task-status/pending-tasks method: GET xCodeSample: @@ -19360,27 +18768,26 @@ from sailpoint.v2024.api.task_management_api import TaskManagementApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.task_status import TaskStatus - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - 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) - 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) - 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) - try: - # Retrieve Pending Task Status List - - results = TaskManagementApi(api_client).get_pending_tasks(x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = TaskManagementApi(api_client).get_pending_tasks(x_sail_point_experimental, offset, limit, count) - print("The response of TaskManagementApi->get_pending_tasks:\n") - pprint(results) - except Exception as e: - print("Exception when calling TaskManagementApi->get_pending_tasks: %s\n" % e) + 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') + 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) + 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) + 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) + try: + # Retrieve Pending Task Status List + + results = TaskManagementApi(api_client).get_pending_tasks(x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = TaskManagementApi(api_client).get_pending_tasks(x_sail_point_experimental, offset, limit, count) + print("The response of TaskManagementApi->get_pending_tasks:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling TaskManagementApi->get_pending_tasks: %s\n" % e) - path: /task-status/{id} method: GET xCodeSample: @@ -19390,25 +18797,24 @@ from sailpoint.v2024.api.task_management_api import TaskManagementApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.task_status import TaskStatus - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = '00eebcf881994e419d72e757fd30dc0e' # str | Task ID. # str | Task ID. - 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 Task Status by ID - - results = TaskManagementApi(api_client).get_task_status(id=id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = TaskManagementApi(api_client).get_task_status(id, x_sail_point_experimental) - print("The response of TaskManagementApi->get_task_status:\n") - pprint(results) - except Exception as e: - print("Exception when calling TaskManagementApi->get_task_status: %s\n" % e) + id = '00eebcf881994e419d72e757fd30dc0e' # str | Task ID. # str | Task ID. + 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 Task Status by ID + + results = TaskManagementApi(api_client).get_task_status(id=id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = TaskManagementApi(api_client).get_task_status(id, x_sail_point_experimental) + print("The response of TaskManagementApi->get_task_status:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling TaskManagementApi->get_task_status: %s\n" % e) - path: /task-status method: GET xCodeSample: @@ -19418,29 +18824,28 @@ from sailpoint.v2024.api.task_management_api import TaskManagementApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.task_status import TaskStatus - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (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 = 'completionStatus eq \"Success\"' # 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* **sourceId**: *eq, in* **completionStatus**: *eq, in* **type**: *eq, in* (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* **sourceId**: *eq, in* **completionStatus**: *eq, in* **type**: *eq, in* (optional) - sorters = '-created' # 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** (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** (optional) - try: - # Retrieve Task Status List - - results = TaskManagementApi(api_client).get_task_status_list(x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = TaskManagementApi(api_client).get_task_status_list(x_sail_point_experimental, limit, offset, count, filters, sorters) - print("The response of TaskManagementApi->get_task_status_list:\n") - pprint(results) - except Exception as e: - print("Exception when calling TaskManagementApi->get_task_status_list: %s\n" % e) + 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') + 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 = 'completionStatus eq \"Success\"' # 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* **sourceId**: *eq, in* **completionStatus**: *eq, in* **type**: *eq, in* (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* **sourceId**: *eq, in* **completionStatus**: *eq, in* **type**: *eq, in* (optional) + sorters = '-created' # 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** (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** (optional) + try: + # Retrieve Task Status List + + results = TaskManagementApi(api_client).get_task_status_list(x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = TaskManagementApi(api_client).get_task_status_list(x_sail_point_experimental, limit, offset, count, filters, sorters) + print("The response of TaskManagementApi->get_task_status_list:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling TaskManagementApi->get_task_status_list: %s\n" % e) - path: /task-status/{id} method: PATCH xCodeSample: @@ -19451,26 +18856,25 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.json_patch_operation import JsonPatchOperation from sailpoint.v2024.models.task_status import TaskStatus - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = '00eebcf881994e419d72e757fd30dc0e' # str | Task ID. # str | Task ID. - 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') - json_patch_operation = '''[sailpoint.v2024.JsonPatchOperation()]''' # List[JsonPatchOperation] | The JSONPatch payload used to update the object. - try: - # Update Task Status by ID - new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) - results = TaskManagementApi(api_client).update_task_status(id=id, x_sail_point_experimental=x_sail_point_experimental, json_patch_operation=new_json_patch_operation) - # Below is a request that includes all optional parameters - # results = TaskManagementApi(api_client).update_task_status(id, x_sail_point_experimental, new_json_patch_operation) - print("The response of TaskManagementApi->update_task_status:\n") - pprint(results) - except Exception as e: - print("Exception when calling TaskManagementApi->update_task_status: %s\n" % e) + id = '00eebcf881994e419d72e757fd30dc0e' # str | Task ID. # str | Task ID. + 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') + json_patch_operation = '''[sailpoint.v2024.JsonPatchOperation()]''' # List[JsonPatchOperation] | The JSONPatch payload used to update the object. + try: + # Update Task Status by ID + new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) + results = TaskManagementApi(api_client).update_task_status(id=id, x_sail_point_experimental=x_sail_point_experimental, json_patch_operation=new_json_patch_operation) + # Below is a request that includes all optional parameters + # results = TaskManagementApi(api_client).update_task_status(id, x_sail_point_experimental, new_json_patch_operation) + print("The response of TaskManagementApi->update_task_status:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling TaskManagementApi->update_task_status: %s\n" % e) - path: /tenant method: GET xCodeSample: @@ -19480,22 +18884,21 @@ from sailpoint.v2024.api.tenant_api import TenantApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.tenant import Tenant - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - try: - # Get Tenant Information. - - results = TenantApi(api_client).get_tenant() - # Below is a request that includes all optional parameters - # results = TenantApi(api_client).get_tenant() - print("The response of TenantApi->get_tenant:\n") - pprint(results) - except Exception as e: - print("Exception when calling TenantApi->get_tenant: %s\n" % e) + try: + # Get Tenant Information. + + results = TenantApi(api_client).get_tenant() + # Below is a request that includes all optional parameters + # results = TenantApi(api_client).get_tenant() + print("The response of TenantApi->get_tenant:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling TenantApi->get_tenant: %s\n" % e) - path: /transforms method: POST xCodeSample: @@ -19506,27 +18909,26 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.transform import Transform from sailpoint.v2024.models.transform_read import TransformRead - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - transform = '''{ + transform = '''{ "name" : "Timestamp To Date", "attributes" : "{}", "type" : "dateFormat" }''' # Transform | The transform to be created. - try: - # Create transform - new_transform = Transform.from_json(transform) - results = TransformsApi(api_client).create_transform(transform=new_transform) - # Below is a request that includes all optional parameters - # results = TransformsApi(api_client).create_transform(new_transform) - print("The response of TransformsApi->create_transform:\n") - pprint(results) - except Exception as e: - print("Exception when calling TransformsApi->create_transform: %s\n" % e) + try: + # Create transform + new_transform = Transform.from_json(transform) + results = TransformsApi(api_client).create_transform(transform=new_transform) + # Below is a request that includes all optional parameters + # results = TransformsApi(api_client).create_transform(new_transform) + print("The response of TransformsApi->create_transform:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling TransformsApi->create_transform: %s\n" % e) - path: /transforms/{id} method: DELETE xCodeSample: @@ -19535,21 +18937,20 @@ source: | from sailpoint.v2024.api.transforms_api import TransformsApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2cd78adghjkja34jh2b1hkjhasuecd' # str | ID of the transform to delete # str | ID of the transform to delete - try: - # Delete a transform - - TransformsApi(api_client).delete_transform(id=id) - # Below is a request that includes all optional parameters - # TransformsApi(api_client).delete_transform(id) - except Exception as e: - print("Exception when calling TransformsApi->delete_transform: %s\n" % e) + id = '2cd78adghjkja34jh2b1hkjhasuecd' # str | ID of the transform to delete # str | ID of the transform to delete + try: + # Delete a transform + + TransformsApi(api_client).delete_transform(id=id) + # Below is a request that includes all optional parameters + # TransformsApi(api_client).delete_transform(id) + except Exception as e: + print("Exception when calling TransformsApi->delete_transform: %s\n" % e) - path: /transforms/{id} method: GET xCodeSample: @@ -19559,23 +18960,22 @@ from sailpoint.v2024.api.transforms_api import TransformsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.transform_read import TransformRead - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2cd78adghjkja34jh2b1hkjhasuecd' # str | ID of the transform to retrieve # str | ID of the transform to retrieve - try: - # Transform by ID - - results = TransformsApi(api_client).get_transform(id=id) - # Below is a request that includes all optional parameters - # results = TransformsApi(api_client).get_transform(id) - print("The response of TransformsApi->get_transform:\n") - pprint(results) - except Exception as e: - print("Exception when calling TransformsApi->get_transform: %s\n" % e) + id = '2cd78adghjkja34jh2b1hkjhasuecd' # str | ID of the transform to retrieve # str | ID of the transform to retrieve + try: + # Transform by ID + + results = TransformsApi(api_client).get_transform(id=id) + # Below is a request that includes all optional parameters + # results = TransformsApi(api_client).get_transform(id) + print("The response of TransformsApi->get_transform:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling TransformsApi->get_transform: %s\n" % e) - path: /transforms method: GET xCodeSample: @@ -19585,27 +18985,26 @@ from sailpoint.v2024.api.transforms_api import TransformsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.transform_read import TransformRead - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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) - 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) - 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) - name = 'ExampleTransformName123' # str | Name of the transform to retrieve from the list. (optional) # str | Name of the transform to retrieve from the list. (optional) - filters = 'name eq \"Uppercase\"' # 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: **internal**: *eq* **name**: *eq, 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: **internal**: *eq* **name**: *eq, sw* (optional) - try: - # List transforms - - results = TransformsApi(api_client).list_transforms() - # Below is a request that includes all optional parameters - # results = TransformsApi(api_client).list_transforms(offset, limit, count, name, filters) - print("The response of TransformsApi->list_transforms:\n") - pprint(results) - except Exception as e: - print("Exception when calling TransformsApi->list_transforms: %s\n" % e) + 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) + 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) + 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) + name = 'ExampleTransformName123' # str | Name of the transform to retrieve from the list. (optional) # str | Name of the transform to retrieve from the list. (optional) + filters = 'name eq \"Uppercase\"' # 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: **internal**: *eq* **name**: *eq, 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: **internal**: *eq* **name**: *eq, sw* (optional) + try: + # List transforms + + results = TransformsApi(api_client).list_transforms() + # Below is a request that includes all optional parameters + # results = TransformsApi(api_client).list_transforms(offset, limit, count, name, filters) + print("The response of TransformsApi->list_transforms:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling TransformsApi->list_transforms: %s\n" % e) - path: /transforms/{id} method: PUT xCodeSample: @@ -19616,28 +19015,27 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.transform import Transform from sailpoint.v2024.models.transform_read import TransformRead - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2cd78adghjkja34jh2b1hkjhasuecd' # str | ID of the transform to update # str | ID of the transform to update - transform = '''{ + id = '2cd78adghjkja34jh2b1hkjhasuecd' # str | ID of the transform to update # str | ID of the transform to update + transform = '''{ "name" : "Timestamp To Date", "attributes" : "{}", "type" : "dateFormat" }''' # Transform | The updated transform object. Must include \"name\", \"type\", and \"attributes\" fields, but \"name\" and \"type\" must not be modified. (optional) - try: - # Update a transform - - results = TransformsApi(api_client).update_transform(id=id) - # Below is a request that includes all optional parameters - # results = TransformsApi(api_client).update_transform(id, new_transform) - print("The response of TransformsApi->update_transform:\n") - pprint(results) - except Exception as e: - print("Exception when calling TransformsApi->update_transform: %s\n" % e) + try: + # Update a transform + + results = TransformsApi(api_client).update_transform(id=id) + # Below is a request that includes all optional parameters + # results = TransformsApi(api_client).update_transform(id, new_transform) + print("The response of TransformsApi->update_transform:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling TransformsApi->update_transform: %s\n" % e) - path: /trigger-invocations/{id}/complete method: POST xCodeSample: @@ -19647,30 +19045,29 @@ from sailpoint.v2024.api.triggers_api import TriggersApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.complete_invocation import CompleteInvocation - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = '0f11f2a4-7c94-4bf3-a2bd-742580fe3bde' # str | The ID of the invocation to complete. # str | The ID of the invocation to complete. - 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') - complete_invocation = '''{ + id = '0f11f2a4-7c94-4bf3-a2bd-742580fe3bde' # str | The ID of the invocation to complete. # str | The ID of the invocation to complete. + 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') + complete_invocation = '''{ "output" : { "approved" : false }, "secret" : "0f11f2a4-7c94-4bf3-a2bd-742580fe3bde", "error" : "Access request is denied." }''' # CompleteInvocation | - try: - # Complete Trigger Invocation - new_complete_invocation = CompleteInvocation.from_json(complete_invocation) - TriggersApi(api_client).complete_trigger_invocation(id=id, x_sail_point_experimental=x_sail_point_experimental, complete_invocation=new_complete_invocation) - # Below is a request that includes all optional parameters - # TriggersApi(api_client).complete_trigger_invocation(id, x_sail_point_experimental, new_complete_invocation) - except Exception as e: - print("Exception when calling TriggersApi->complete_trigger_invocation: %s\n" % e) + try: + # Complete Trigger Invocation + new_complete_invocation = CompleteInvocation.from_json(complete_invocation) + TriggersApi(api_client).complete_trigger_invocation(id=id, x_sail_point_experimental=x_sail_point_experimental, complete_invocation=new_complete_invocation) + # Below is a request that includes all optional parameters + # TriggersApi(api_client).complete_trigger_invocation(id, x_sail_point_experimental, new_complete_invocation) + except Exception as e: + print("Exception when calling TriggersApi->complete_trigger_invocation: %s\n" % e) - path: /trigger-subscriptions method: POST xCodeSample: @@ -19681,15 +19078,14 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.subscription import Subscription from sailpoint.v2024.models.subscription_post_request import SubscriptionPostRequest - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - subscription_post_request = '''{ + 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') + subscription_post_request = '''{ "filter" : "$[?($.identityId == \"201327fda1c44704ac01181e963d463c\")]", "httpConfig" : { "bearerTokenAuthConfig" : { @@ -19714,16 +19110,16 @@ "type" : "HTTP", "enabled" : true }''' # SubscriptionPostRequest | - try: - # Create a Subscription - new_subscription_post_request = SubscriptionPostRequest.from_json(subscription_post_request) - results = TriggersApi(api_client).create_subscription(x_sail_point_experimental=x_sail_point_experimental, subscription_post_request=new_subscription_post_request) - # Below is a request that includes all optional parameters - # results = TriggersApi(api_client).create_subscription(x_sail_point_experimental, new_subscription_post_request) - print("The response of TriggersApi->create_subscription:\n") - pprint(results) - except Exception as e: - print("Exception when calling TriggersApi->create_subscription: %s\n" % e) + try: + # Create a Subscription + new_subscription_post_request = SubscriptionPostRequest.from_json(subscription_post_request) + results = TriggersApi(api_client).create_subscription(x_sail_point_experimental=x_sail_point_experimental, subscription_post_request=new_subscription_post_request) + # Below is a request that includes all optional parameters + # results = TriggersApi(api_client).create_subscription(x_sail_point_experimental, new_subscription_post_request) + print("The response of TriggersApi->create_subscription:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling TriggersApi->create_subscription: %s\n" % e) - path: /trigger-subscriptions/{id} method: DELETE xCodeSample: @@ -19732,23 +19128,22 @@ source: | from sailpoint.v2024.api.triggers_api import TriggersApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = '0f11f2a4-7c94-4bf3-a2bd-742580fe3bde' # str | Subscription ID # str | Subscription ID - 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: - # Delete a Subscription - - TriggersApi(api_client).delete_subscription(id=id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # TriggersApi(api_client).delete_subscription(id, x_sail_point_experimental) - except Exception as e: - print("Exception when calling TriggersApi->delete_subscription: %s\n" % e) + id = '0f11f2a4-7c94-4bf3-a2bd-742580fe3bde' # str | Subscription ID # str | Subscription ID + 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: + # Delete a Subscription + + TriggersApi(api_client).delete_subscription(id=id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # TriggersApi(api_client).delete_subscription(id, x_sail_point_experimental) + except Exception as e: + print("Exception when calling TriggersApi->delete_subscription: %s\n" % e) - path: /trigger-subscriptions method: GET xCodeSample: @@ -19758,29 +19153,28 @@ from sailpoint.v2024.api.triggers_api import TriggersApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.subscription import Subscription - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (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 = 'id eq \"12cff757-c0c0-413b-8ad7-2a47956d1e89\"' # 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* **triggerId**: *eq* **type**: *eq, 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* **triggerId**: *eq* **type**: *eq, le* (optional) - sorters = 'triggerName' # 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: **triggerId, triggerName** (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: **triggerId, triggerName** (optional) - try: - # List Subscriptions - - results = TriggersApi(api_client).list_subscriptions(x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = TriggersApi(api_client).list_subscriptions(x_sail_point_experimental, limit, offset, count, filters, sorters) - print("The response of TriggersApi->list_subscriptions:\n") - pprint(results) - except Exception as e: - print("Exception when calling TriggersApi->list_subscriptions: %s\n" % e) + 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') + 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 = 'id eq \"12cff757-c0c0-413b-8ad7-2a47956d1e89\"' # 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* **triggerId**: *eq* **type**: *eq, 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* **triggerId**: *eq* **type**: *eq, le* (optional) + sorters = 'triggerName' # 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: **triggerId, triggerName** (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: **triggerId, triggerName** (optional) + try: + # List Subscriptions + + results = TriggersApi(api_client).list_subscriptions(x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = TriggersApi(api_client).list_subscriptions(x_sail_point_experimental, limit, offset, count, filters, sorters) + print("The response of TriggersApi->list_subscriptions:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling TriggersApi->list_subscriptions: %s\n" % e) - path: /trigger-invocations/status method: GET xCodeSample: @@ -19790,29 +19184,28 @@ from sailpoint.v2024.api.triggers_api import TriggersApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.invocation_status import InvocationStatus - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (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 = 'triggerId eq \"idn:access-request-dynamic-approver\"' # 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: **triggerId**: *eq* **subscriptionId**: *eq* (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: **triggerId**: *eq* **subscriptionId**: *eq* (optional) - sorters = 'created' # 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: **triggerId, subscriptionName, created, completed** (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: **triggerId, subscriptionName, created, completed** (optional) - try: - # List Latest Invocation Statuses - - results = TriggersApi(api_client).list_trigger_invocation_status(x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = TriggersApi(api_client).list_trigger_invocation_status(x_sail_point_experimental, limit, offset, count, filters, sorters) - print("The response of TriggersApi->list_trigger_invocation_status:\n") - pprint(results) - except Exception as e: - print("Exception when calling TriggersApi->list_trigger_invocation_status: %s\n" % e) + 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') + 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 = 'triggerId eq \"idn:access-request-dynamic-approver\"' # 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: **triggerId**: *eq* **subscriptionId**: *eq* (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: **triggerId**: *eq* **subscriptionId**: *eq* (optional) + sorters = 'created' # 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: **triggerId, subscriptionName, created, completed** (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: **triggerId, subscriptionName, created, completed** (optional) + try: + # List Latest Invocation Statuses + + results = TriggersApi(api_client).list_trigger_invocation_status(x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = TriggersApi(api_client).list_trigger_invocation_status(x_sail_point_experimental, limit, offset, count, filters, sorters) + print("The response of TriggersApi->list_trigger_invocation_status:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling TriggersApi->list_trigger_invocation_status: %s\n" % e) - path: /triggers method: GET xCodeSample: @@ -19822,29 +19215,28 @@ from sailpoint.v2024.api.triggers_api import TriggersApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.trigger import Trigger - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (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 = 'id eq \"idn:access-request-post-approval\"' # 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, ge, 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, ge, le* (optional) - sorters = 'name' # 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: **id, 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: **id, name** (optional) - try: - # List Triggers - - results = TriggersApi(api_client).list_triggers(x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = TriggersApi(api_client).list_triggers(x_sail_point_experimental, limit, offset, count, filters, sorters) - print("The response of TriggersApi->list_triggers:\n") - pprint(results) - except Exception as e: - print("Exception when calling TriggersApi->list_triggers: %s\n" % e) + 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') + 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 = 'id eq \"idn:access-request-post-approval\"' # 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, ge, 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, ge, le* (optional) + sorters = 'name' # 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: **id, 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: **id, name** (optional) + try: + # List Triggers + + results = TriggersApi(api_client).list_triggers(x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = TriggersApi(api_client).list_triggers(x_sail_point_experimental, limit, offset, count, filters, sorters) + print("The response of TriggersApi->list_triggers:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling TriggersApi->list_triggers: %s\n" % e) - path: /trigger-subscriptions/{id} method: PATCH xCodeSample: @@ -19855,26 +19247,25 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.subscription import Subscription from sailpoint.v2024.models.subscription_patch_request_inner import SubscriptionPatchRequestInner - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = '0f11f2a4-7c94-4bf3-a2bd-742580fe3bde' # str | ID of the Subscription to patch # str | ID of the Subscription to patch - 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') - subscription_patch_request_inner = '''[sailpoint.v2024.SubscriptionPatchRequestInner()]''' # List[SubscriptionPatchRequestInner] | - try: - # Patch a Subscription - new_subscription_patch_request_inner = SubscriptionPatchRequestInner.from_json(subscription_patch_request_inner) - results = TriggersApi(api_client).patch_subscription(id=id, x_sail_point_experimental=x_sail_point_experimental, subscription_patch_request_inner=new_subscription_patch_request_inner) - # Below is a request that includes all optional parameters - # results = TriggersApi(api_client).patch_subscription(id, x_sail_point_experimental, new_subscription_patch_request_inner) - print("The response of TriggersApi->patch_subscription:\n") - pprint(results) - except Exception as e: - print("Exception when calling TriggersApi->patch_subscription: %s\n" % e) + id = '0f11f2a4-7c94-4bf3-a2bd-742580fe3bde' # str | ID of the Subscription to patch # str | ID of the Subscription to patch + 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') + subscription_patch_request_inner = '''[sailpoint.v2024.SubscriptionPatchRequestInner()]''' # List[SubscriptionPatchRequestInner] | + try: + # Patch a Subscription + new_subscription_patch_request_inner = SubscriptionPatchRequestInner.from_json(subscription_patch_request_inner) + results = TriggersApi(api_client).patch_subscription(id=id, x_sail_point_experimental=x_sail_point_experimental, subscription_patch_request_inner=new_subscription_patch_request_inner) + # Below is a request that includes all optional parameters + # results = TriggersApi(api_client).patch_subscription(id, x_sail_point_experimental, new_subscription_patch_request_inner) + print("The response of TriggersApi->patch_subscription:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling TriggersApi->patch_subscription: %s\n" % e) - path: /trigger-invocations/test method: POST xCodeSample: @@ -19885,15 +19276,14 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.invocation import Invocation from sailpoint.v2024.models.test_invocation import TestInvocation - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - test_invocation = '''{ + 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') + test_invocation = '''{ "input" : { "identityId" : "201327fda1c44704ac01181e963d463c" }, @@ -19903,16 +19293,16 @@ "workflowId" : 1234 } }''' # TestInvocation | - try: - # Start a Test Invocation - new_test_invocation = TestInvocation.from_json(test_invocation) - results = TriggersApi(api_client).start_test_trigger_invocation(x_sail_point_experimental=x_sail_point_experimental, test_invocation=new_test_invocation) - # Below is a request that includes all optional parameters - # results = TriggersApi(api_client).start_test_trigger_invocation(x_sail_point_experimental, new_test_invocation) - print("The response of TriggersApi->start_test_trigger_invocation:\n") - pprint(results) - except Exception as e: - print("Exception when calling TriggersApi->start_test_trigger_invocation: %s\n" % e) + try: + # Start a Test Invocation + new_test_invocation = TestInvocation.from_json(test_invocation) + results = TriggersApi(api_client).start_test_trigger_invocation(x_sail_point_experimental=x_sail_point_experimental, test_invocation=new_test_invocation) + # Below is a request that includes all optional parameters + # results = TriggersApi(api_client).start_test_trigger_invocation(x_sail_point_experimental, new_test_invocation) + print("The response of TriggersApi->start_test_trigger_invocation:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling TriggersApi->start_test_trigger_invocation: %s\n" % e) - path: /trigger-subscriptions/validate-filter method: POST xCodeSample: @@ -19923,30 +19313,29 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.validate_filter_input_dto import ValidateFilterInputDto from sailpoint.v2024.models.validate_filter_output_dto import ValidateFilterOutputDto - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - validate_filter_input_dto = '''{ + 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') + validate_filter_input_dto = '''{ "filter" : "$[?($.identityId == \"201327fda1c44704ac01181e963d463c\")]", "input" : { "identityId" : "201327fda1c44704ac01181e963d463c" } }''' # ValidateFilterInputDto | - try: - # Validate a Subscription Filter - new_validate_filter_input_dto = ValidateFilterInputDto.from_json(validate_filter_input_dto) - results = TriggersApi(api_client).test_subscription_filter(x_sail_point_experimental=x_sail_point_experimental, validate_filter_input_dto=new_validate_filter_input_dto) - # Below is a request that includes all optional parameters - # results = TriggersApi(api_client).test_subscription_filter(x_sail_point_experimental, new_validate_filter_input_dto) - print("The response of TriggersApi->test_subscription_filter:\n") - pprint(results) - except Exception as e: - print("Exception when calling TriggersApi->test_subscription_filter: %s\n" % e) + try: + # Validate a Subscription Filter + new_validate_filter_input_dto = ValidateFilterInputDto.from_json(validate_filter_input_dto) + results = TriggersApi(api_client).test_subscription_filter(x_sail_point_experimental=x_sail_point_experimental, validate_filter_input_dto=new_validate_filter_input_dto) + # Below is a request that includes all optional parameters + # results = TriggersApi(api_client).test_subscription_filter(x_sail_point_experimental, new_validate_filter_input_dto) + print("The response of TriggersApi->test_subscription_filter:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling TriggersApi->test_subscription_filter: %s\n" % e) - path: /trigger-subscriptions/{id} method: PUT xCodeSample: @@ -19957,16 +19346,15 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.subscription import Subscription from sailpoint.v2024.models.subscription_put_request import SubscriptionPutRequest - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = '0f11f2a4-7c94-4bf3-a2bd-742580fe3bde' # str | Subscription ID # str | Subscription ID - 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') - subscription_put_request = '''{ + id = '0f11f2a4-7c94-4bf3-a2bd-742580fe3bde' # str | Subscription ID # str | Subscription ID + 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') + subscription_put_request = '''{ "filter" : "$[?($.identityId == \"201327fda1c44704ac01181e963d463c\")]", "httpConfig" : { "bearerTokenAuthConfig" : { @@ -19990,16 +19378,16 @@ "type" : "HTTP", "enabled" : true }''' # SubscriptionPutRequest | - try: - # Update a Subscription - new_subscription_put_request = SubscriptionPutRequest.from_json(subscription_put_request) - results = TriggersApi(api_client).update_subscription(id=id, x_sail_point_experimental=x_sail_point_experimental, subscription_put_request=new_subscription_put_request) - # Below is a request that includes all optional parameters - # results = TriggersApi(api_client).update_subscription(id, x_sail_point_experimental, new_subscription_put_request) - print("The response of TriggersApi->update_subscription:\n") - pprint(results) - except Exception as e: - print("Exception when calling TriggersApi->update_subscription: %s\n" % e) + try: + # Update a Subscription + new_subscription_put_request = SubscriptionPutRequest.from_json(subscription_put_request) + results = TriggersApi(api_client).update_subscription(id=id, x_sail_point_experimental=x_sail_point_experimental, subscription_put_request=new_subscription_put_request) + # Below is a request that includes all optional parameters + # results = TriggersApi(api_client).update_subscription(id, x_sail_point_experimental, new_subscription_put_request) + print("The response of TriggersApi->update_subscription:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling TriggersApi->update_subscription: %s\n" % e) - path: /ui-metadata/tenant method: GET xCodeSample: @@ -20009,24 +19397,23 @@ from sailpoint.v2024.api.ui_metadata_api import UIMetadataApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.tenant_ui_metadata_item_response import TenantUiMetadataItemResponse - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - try: - # Get a tenant UI metadata - - results = UIMetadataApi(api_client).get_tenant_ui_metadata(x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = UIMetadataApi(api_client).get_tenant_ui_metadata(x_sail_point_experimental) - print("The response of UIMetadataApi->get_tenant_ui_metadata:\n") - pprint(results) - except Exception as e: - print("Exception when calling UIMetadataApi->get_tenant_ui_metadata: %s\n" % e) + 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 a tenant UI metadata + + results = UIMetadataApi(api_client).get_tenant_ui_metadata(x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = UIMetadataApi(api_client).get_tenant_ui_metadata(x_sail_point_experimental) + print("The response of UIMetadataApi->get_tenant_ui_metadata:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling UIMetadataApi->get_tenant_ui_metadata: %s\n" % e) - path: /ui-metadata/tenant method: PUT xCodeSample: @@ -20037,29 +19424,28 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.tenant_ui_metadata_item_response import TenantUiMetadataItemResponse from sailpoint.v2024.models.tenant_ui_metadata_item_update_request import TenantUiMetadataItemUpdateRequest - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - tenant_ui_metadata_item_update_request = '''{ + 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') + tenant_ui_metadata_item_update_request = '''{ "usernameEmptyText" : "Please provide your work email address...", "usernameLabel" : "Email", "iframeWhiteList" : "http://example.com http://example2.com" }''' # TenantUiMetadataItemUpdateRequest | - try: - # Update tenant UI metadata - new_tenant_ui_metadata_item_update_request = TenantUiMetadataItemUpdateRequest.from_json(tenant_ui_metadata_item_update_request) - results = UIMetadataApi(api_client).set_tenant_ui_metadata(x_sail_point_experimental=x_sail_point_experimental, tenant_ui_metadata_item_update_request=new_tenant_ui_metadata_item_update_request) - # Below is a request that includes all optional parameters - # results = UIMetadataApi(api_client).set_tenant_ui_metadata(x_sail_point_experimental, new_tenant_ui_metadata_item_update_request) - print("The response of UIMetadataApi->set_tenant_ui_metadata:\n") - pprint(results) - except Exception as e: - print("Exception when calling UIMetadataApi->set_tenant_ui_metadata: %s\n" % e) + try: + # Update tenant UI metadata + new_tenant_ui_metadata_item_update_request = TenantUiMetadataItemUpdateRequest.from_json(tenant_ui_metadata_item_update_request) + results = UIMetadataApi(api_client).set_tenant_ui_metadata(x_sail_point_experimental=x_sail_point_experimental, tenant_ui_metadata_item_update_request=new_tenant_ui_metadata_item_update_request) + # Below is a request that includes all optional parameters + # results = UIMetadataApi(api_client).set_tenant_ui_metadata(x_sail_point_experimental, new_tenant_ui_metadata_item_update_request) + print("The response of UIMetadataApi->set_tenant_ui_metadata:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling UIMetadataApi->set_tenant_ui_metadata: %s\n" % e) - path: /vendor-connector-mappings method: POST xCodeSample: @@ -20069,13 +19455,12 @@ from sailpoint.v2024.api.vendor_connector_mappings_api import VendorConnectorMappingsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.vendor_connector_mapping import VendorConnectorMapping - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - vendor_connector_mapping = '''{ + vendor_connector_mapping = '''{ "createdAt" : "2024-03-13T12:56:19.391294Z", "deletedAt" : { "Valid" : false, @@ -20098,16 +19483,16 @@ "Time" : "2024-03-14T12:56:19.391294Z" } }''' # VendorConnectorMapping | - try: - # Create Vendor Connector Mapping - new_vendor_connector_mapping = VendorConnectorMapping.from_json(vendor_connector_mapping) - results = VendorConnectorMappingsApi(api_client).create_vendor_connector_mapping(vendor_connector_mapping=new_vendor_connector_mapping) - # Below is a request that includes all optional parameters - # results = VendorConnectorMappingsApi(api_client).create_vendor_connector_mapping(new_vendor_connector_mapping) - print("The response of VendorConnectorMappingsApi->create_vendor_connector_mapping:\n") - pprint(results) - except Exception as e: - print("Exception when calling VendorConnectorMappingsApi->create_vendor_connector_mapping: %s\n" % e) + try: + # Create Vendor Connector Mapping + new_vendor_connector_mapping = VendorConnectorMapping.from_json(vendor_connector_mapping) + results = VendorConnectorMappingsApi(api_client).create_vendor_connector_mapping(vendor_connector_mapping=new_vendor_connector_mapping) + # Below is a request that includes all optional parameters + # results = VendorConnectorMappingsApi(api_client).create_vendor_connector_mapping(new_vendor_connector_mapping) + print("The response of VendorConnectorMappingsApi->create_vendor_connector_mapping:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling VendorConnectorMappingsApi->create_vendor_connector_mapping: %s\n" % e) - path: /vendor-connector-mappings method: DELETE xCodeSample: @@ -20118,13 +19503,12 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.delete_vendor_connector_mapping200_response import DeleteVendorConnectorMapping200Response from sailpoint.v2024.models.vendor_connector_mapping import VendorConnectorMapping - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - vendor_connector_mapping = '''{ + vendor_connector_mapping = '''{ "createdAt" : "2024-03-13T12:56:19.391294Z", "deletedAt" : { "Valid" : false, @@ -20147,16 +19531,16 @@ "Time" : "2024-03-14T12:56:19.391294Z" } }''' # VendorConnectorMapping | - try: - # Delete Vendor Connector Mapping - new_vendor_connector_mapping = VendorConnectorMapping.from_json(vendor_connector_mapping) - results = VendorConnectorMappingsApi(api_client).delete_vendor_connector_mapping(vendor_connector_mapping=new_vendor_connector_mapping) - # Below is a request that includes all optional parameters - # results = VendorConnectorMappingsApi(api_client).delete_vendor_connector_mapping(new_vendor_connector_mapping) - print("The response of VendorConnectorMappingsApi->delete_vendor_connector_mapping:\n") - pprint(results) - except Exception as e: - print("Exception when calling VendorConnectorMappingsApi->delete_vendor_connector_mapping: %s\n" % e) + try: + # Delete Vendor Connector Mapping + new_vendor_connector_mapping = VendorConnectorMapping.from_json(vendor_connector_mapping) + results = VendorConnectorMappingsApi(api_client).delete_vendor_connector_mapping(vendor_connector_mapping=new_vendor_connector_mapping) + # Below is a request that includes all optional parameters + # results = VendorConnectorMappingsApi(api_client).delete_vendor_connector_mapping(new_vendor_connector_mapping) + print("The response of VendorConnectorMappingsApi->delete_vendor_connector_mapping:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling VendorConnectorMappingsApi->delete_vendor_connector_mapping: %s\n" % e) - path: /vendor-connector-mappings method: GET xCodeSample: @@ -20166,22 +19550,21 @@ from sailpoint.v2024.api.vendor_connector_mappings_api import VendorConnectorMappingsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.vendor_connector_mapping import VendorConnectorMapping - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - try: - # List Vendor Connector Mappings - - results = VendorConnectorMappingsApi(api_client).get_vendor_connector_mappings() - # Below is a request that includes all optional parameters - # results = VendorConnectorMappingsApi(api_client).get_vendor_connector_mappings() - print("The response of VendorConnectorMappingsApi->get_vendor_connector_mappings:\n") - pprint(results) - except Exception as e: - print("Exception when calling VendorConnectorMappingsApi->get_vendor_connector_mappings: %s\n" % e) + try: + # List Vendor Connector Mappings + + results = VendorConnectorMappingsApi(api_client).get_vendor_connector_mappings() + # Below is a request that includes all optional parameters + # results = VendorConnectorMappingsApi(api_client).get_vendor_connector_mappings() + print("The response of VendorConnectorMappingsApi->get_vendor_connector_mappings:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling VendorConnectorMappingsApi->get_vendor_connector_mappings: %s\n" % e) - path: /workflow-executions/{id}/cancel method: POST xCodeSample: @@ -20190,21 +19573,20 @@ source: | from sailpoint.v2024.api.workflows_api import WorkflowsApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | The workflow execution ID # str | The workflow execution ID - try: - # Cancel Workflow Execution by ID - - WorkflowsApi(api_client).cancel_workflow_execution(id=id) - # Below is a request that includes all optional parameters - # WorkflowsApi(api_client).cancel_workflow_execution(id) - except Exception as e: - print("Exception when calling WorkflowsApi->cancel_workflow_execution: %s\n" % e) + id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | The workflow execution ID # str | The workflow execution ID + try: + # Cancel Workflow Execution by ID + + WorkflowsApi(api_client).cancel_workflow_execution(id=id) + # Below is a request that includes all optional parameters + # WorkflowsApi(api_client).cancel_workflow_execution(id) + except Exception as e: + print("Exception when calling WorkflowsApi->cancel_workflow_execution: %s\n" % e) - path: /workflows/execute/external/{id} method: POST xCodeSample: @@ -20215,24 +19597,23 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.create_external_execute_workflow200_response import CreateExternalExecuteWorkflow200Response from sailpoint.v2024.models.create_external_execute_workflow_request import CreateExternalExecuteWorkflowRequest - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Id of the workflow # str | Id of the workflow - create_external_execute_workflow_request = '''sailpoint.v2024.CreateExternalExecuteWorkflowRequest()''' # CreateExternalExecuteWorkflowRequest | (optional) - try: - # Execute Workflow via External Trigger - - results = WorkflowsApi(api_client).create_external_execute_workflow(id=id) - # Below is a request that includes all optional parameters - # results = WorkflowsApi(api_client).create_external_execute_workflow(id, new_create_external_execute_workflow_request) - print("The response of WorkflowsApi->create_external_execute_workflow:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkflowsApi->create_external_execute_workflow: %s\n" % e) + id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Id of the workflow # str | Id of the workflow + create_external_execute_workflow_request = '''sailpoint.v2024.CreateExternalExecuteWorkflowRequest()''' # CreateExternalExecuteWorkflowRequest | (optional) + try: + # Execute Workflow via External Trigger + + results = WorkflowsApi(api_client).create_external_execute_workflow(id=id) + # Below is a request that includes all optional parameters + # results = WorkflowsApi(api_client).create_external_execute_workflow(id, new_create_external_execute_workflow_request) + print("The response of WorkflowsApi->create_external_execute_workflow:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkflowsApi->create_external_execute_workflow: %s\n" % e) - path: /workflows method: POST xCodeSample: @@ -20243,23 +19624,22 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.create_workflow_request import CreateWorkflowRequest from sailpoint.v2024.models.workflow import Workflow - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - create_workflow_request = '''{name=Send Email, owner={type=IDENTITY, id=2c91808568c529c60168cca6f90c1313, name=William Wilson}, description=Send an email to the identity who's attributes changed., definition={start=Send Email Test, steps={Send Email={actionId=sp:send-email, attributes={body=This is a test, from=sailpoint@sailpoint.com, recipientId.$=$.identity.id, subject=test}, nextStep=success, selectResult=null, type=action}, success={type=success}}}, enabled=false, trigger={type=EVENT, attributes={id=idn:identity-attributes-changed, filter=$.changes[?(@.attribute == 'manager')]}}}''' # CreateWorkflowRequest | - try: - # Create Workflow - new_create_workflow_request = CreateWorkflowRequest.from_json(create_workflow_request) - results = WorkflowsApi(api_client).create_workflow(create_workflow_request=new_create_workflow_request) - # Below is a request that includes all optional parameters - # results = WorkflowsApi(api_client).create_workflow(new_create_workflow_request) - print("The response of WorkflowsApi->create_workflow:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkflowsApi->create_workflow: %s\n" % e) + create_workflow_request = '''{name=Send Email, owner={type=IDENTITY, id=2c91808568c529c60168cca6f90c1313, name=William Wilson}, description=Send an email to the identity who's attributes changed., definition={start=Send Email Test, steps={Send Email={actionId=sp:send-email, attributes={body=This is a test, from=sailpoint@sailpoint.com, recipientId.$=$.identity.id, subject=test}, nextStep=success, selectResult=null, type=action}, success={type=success}}}, enabled=false, trigger={type=EVENT, attributes={id=idn:identity-attributes-changed, filter=$.changes[?(@.attribute == 'manager')]}}}''' # CreateWorkflowRequest | + try: + # Create Workflow + new_create_workflow_request = CreateWorkflowRequest.from_json(create_workflow_request) + results = WorkflowsApi(api_client).create_workflow(create_workflow_request=new_create_workflow_request) + # Below is a request that includes all optional parameters + # results = WorkflowsApi(api_client).create_workflow(new_create_workflow_request) + print("The response of WorkflowsApi->create_workflow:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkflowsApi->create_workflow: %s\n" % e) - path: /workflows/{id}/external/oauth-clients method: POST xCodeSample: @@ -20269,23 +19649,22 @@ from sailpoint.v2024.api.workflows_api import WorkflowsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.workflow_o_auth_client import WorkflowOAuthClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Id of the workflow # str | Id of the workflow - try: - # Generate External Trigger OAuth Client - - results = WorkflowsApi(api_client).create_workflow_external_trigger(id=id) - # Below is a request that includes all optional parameters - # results = WorkflowsApi(api_client).create_workflow_external_trigger(id) - print("The response of WorkflowsApi->create_workflow_external_trigger:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkflowsApi->create_workflow_external_trigger: %s\n" % e) + id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Id of the workflow # str | Id of the workflow + try: + # Generate External Trigger OAuth Client + + results = WorkflowsApi(api_client).create_workflow_external_trigger(id=id) + # Below is a request that includes all optional parameters + # results = WorkflowsApi(api_client).create_workflow_external_trigger(id) + print("The response of WorkflowsApi->create_workflow_external_trigger:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkflowsApi->create_workflow_external_trigger: %s\n" % e) - path: /workflows/{id} method: DELETE xCodeSample: @@ -20294,21 +19673,20 @@ source: | from sailpoint.v2024.api.workflows_api import WorkflowsApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Id of the Workflow # str | Id of the Workflow - try: - # Delete Workflow By Id - - WorkflowsApi(api_client).delete_workflow(id=id) - # Below is a request that includes all optional parameters - # WorkflowsApi(api_client).delete_workflow(id) - except Exception as e: - print("Exception when calling WorkflowsApi->delete_workflow: %s\n" % e) + id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Id of the Workflow # str | Id of the Workflow + try: + # Delete Workflow By Id + + WorkflowsApi(api_client).delete_workflow(id=id) + # Below is a request that includes all optional parameters + # WorkflowsApi(api_client).delete_workflow(id) + except Exception as e: + print("Exception when calling WorkflowsApi->delete_workflow: %s\n" % e) - path: /workflows/{id} method: GET xCodeSample: @@ -20318,23 +19696,22 @@ from sailpoint.v2024.api.workflows_api import WorkflowsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.workflow import Workflow - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Id of the workflow # str | Id of the workflow - try: - # Get Workflow By Id - - results = WorkflowsApi(api_client).get_workflow(id=id) - # Below is a request that includes all optional parameters - # results = WorkflowsApi(api_client).get_workflow(id) - print("The response of WorkflowsApi->get_workflow:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkflowsApi->get_workflow: %s\n" % e) + id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Id of the workflow # str | Id of the workflow + try: + # Get Workflow By Id + + results = WorkflowsApi(api_client).get_workflow(id=id) + # Below is a request that includes all optional parameters + # results = WorkflowsApi(api_client).get_workflow(id) + print("The response of WorkflowsApi->get_workflow:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkflowsApi->get_workflow: %s\n" % e) - path: /workflow-executions/{id} method: GET xCodeSample: @@ -20343,23 +19720,22 @@ source: | from sailpoint.v2024.api.workflows_api import WorkflowsApi from sailpoint.v2024.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Workflow execution ID. # str | Workflow execution ID. - try: - # Get Workflow Execution - - results = WorkflowsApi(api_client).get_workflow_execution(id=id) - # Below is a request that includes all optional parameters - # results = WorkflowsApi(api_client).get_workflow_execution(id) - print("The response of WorkflowsApi->get_workflow_execution:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkflowsApi->get_workflow_execution: %s\n" % e) + id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Workflow execution ID. # str | Workflow execution ID. + try: + # Get Workflow Execution + + results = WorkflowsApi(api_client).get_workflow_execution(id=id) + # Below is a request that includes all optional parameters + # results = WorkflowsApi(api_client).get_workflow_execution(id) + print("The response of WorkflowsApi->get_workflow_execution:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkflowsApi->get_workflow_execution: %s\n" % e) - path: /workflow-executions/{id}/history method: GET xCodeSample: @@ -20369,23 +19745,22 @@ from sailpoint.v2024.api.workflows_api import WorkflowsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.workflow_execution_event import WorkflowExecutionEvent - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Id of the workflow execution # str | Id of the workflow execution - try: - # Get Workflow Execution History - - results = WorkflowsApi(api_client).get_workflow_execution_history(id=id) - # Below is a request that includes all optional parameters - # results = WorkflowsApi(api_client).get_workflow_execution_history(id) - print("The response of WorkflowsApi->get_workflow_execution_history:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkflowsApi->get_workflow_execution_history: %s\n" % e) + id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Id of the workflow execution # str | Id of the workflow execution + try: + # Get Workflow Execution History + + results = WorkflowsApi(api_client).get_workflow_execution_history(id=id) + # Below is a request that includes all optional parameters + # results = WorkflowsApi(api_client).get_workflow_execution_history(id) + print("The response of WorkflowsApi->get_workflow_execution_history:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkflowsApi->get_workflow_execution_history: %s\n" % e) - path: /workflows/{id}/executions method: GET xCodeSample: @@ -20395,27 +19770,26 @@ from sailpoint.v2024.api.workflows_api import WorkflowsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.workflow_execution import WorkflowExecution - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Workflow ID. # str | Workflow ID. - 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 = 'status eq \"Failed\"' # 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: **start_time**: *eq, lt, le, gt, ge* **status**: *eq* (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: **start_time**: *eq, lt, le, gt, ge* **status**: *eq* (optional) - try: - # List Workflow Executions - - results = WorkflowsApi(api_client).get_workflow_executions(id=id) - # Below is a request that includes all optional parameters - # results = WorkflowsApi(api_client).get_workflow_executions(id, limit, offset, count, filters) - print("The response of WorkflowsApi->get_workflow_executions:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkflowsApi->get_workflow_executions: %s\n" % e) + id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Workflow ID. # str | Workflow ID. + 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 = 'status eq \"Failed\"' # 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: **start_time**: *eq, lt, le, gt, ge* **status**: *eq* (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: **start_time**: *eq, lt, le, gt, ge* **status**: *eq* (optional) + try: + # List Workflow Executions + + results = WorkflowsApi(api_client).get_workflow_executions(id=id) + # Below is a request that includes all optional parameters + # results = WorkflowsApi(api_client).get_workflow_executions(id, limit, offset, count, filters) + print("The response of WorkflowsApi->get_workflow_executions:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkflowsApi->get_workflow_executions: %s\n" % e) - path: /workflow-library method: GET xCodeSample: @@ -20425,24 +19799,23 @@ from sailpoint.v2024.api.workflows_api import WorkflowsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.list_complete_workflow_library200_response_inner import ListCompleteWorkflowLibrary200ResponseInner - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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) - try: - # List Complete Workflow Library - - results = WorkflowsApi(api_client).list_complete_workflow_library() - # Below is a request that includes all optional parameters - # results = WorkflowsApi(api_client).list_complete_workflow_library(limit, offset) - print("The response of WorkflowsApi->list_complete_workflow_library:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkflowsApi->list_complete_workflow_library: %s\n" % e) + 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) + try: + # List Complete Workflow Library + + results = WorkflowsApi(api_client).list_complete_workflow_library() + # Below is a request that includes all optional parameters + # results = WorkflowsApi(api_client).list_complete_workflow_library(limit, offset) + print("The response of WorkflowsApi->list_complete_workflow_library:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkflowsApi->list_complete_workflow_library: %s\n" % e) - path: /workflow-library/actions method: GET xCodeSample: @@ -20452,25 +19825,24 @@ from sailpoint.v2024.api.workflows_api import WorkflowsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.workflow_library_action import WorkflowLibraryAction - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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) - filters = 'id eq \"sp:create-campaign\"' # 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* (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* (optional) - try: - # List Workflow Library Actions - - results = WorkflowsApi(api_client).list_workflow_library_actions() - # Below is a request that includes all optional parameters - # results = WorkflowsApi(api_client).list_workflow_library_actions(limit, offset, filters) - print("The response of WorkflowsApi->list_workflow_library_actions:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkflowsApi->list_workflow_library_actions: %s\n" % e) + 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) + filters = 'id eq \"sp:create-campaign\"' # 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* (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* (optional) + try: + # List Workflow Library Actions + + results = WorkflowsApi(api_client).list_workflow_library_actions() + # Below is a request that includes all optional parameters + # results = WorkflowsApi(api_client).list_workflow_library_actions(limit, offset, filters) + print("The response of WorkflowsApi->list_workflow_library_actions:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkflowsApi->list_workflow_library_actions: %s\n" % e) - path: /workflow-library/operators method: GET xCodeSample: @@ -20480,22 +19852,21 @@ from sailpoint.v2024.api.workflows_api import WorkflowsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.workflow_library_operator import WorkflowLibraryOperator - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - try: - # List Workflow Library Operators - - results = WorkflowsApi(api_client).list_workflow_library_operators() - # Below is a request that includes all optional parameters - # results = WorkflowsApi(api_client).list_workflow_library_operators() - print("The response of WorkflowsApi->list_workflow_library_operators:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkflowsApi->list_workflow_library_operators: %s\n" % e) + try: + # List Workflow Library Operators + + results = WorkflowsApi(api_client).list_workflow_library_operators() + # Below is a request that includes all optional parameters + # results = WorkflowsApi(api_client).list_workflow_library_operators() + print("The response of WorkflowsApi->list_workflow_library_operators:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkflowsApi->list_workflow_library_operators: %s\n" % e) - path: /workflow-library/triggers method: GET xCodeSample: @@ -20505,25 +19876,24 @@ from sailpoint.v2024.api.workflows_api import WorkflowsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.workflow_library_trigger import WorkflowLibraryTrigger - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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) - filters = 'id eq \"idn:identity-attributes-changed\"' # 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* (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* (optional) - try: - # List Workflow Library Triggers - - results = WorkflowsApi(api_client).list_workflow_library_triggers() - # Below is a request that includes all optional parameters - # results = WorkflowsApi(api_client).list_workflow_library_triggers(limit, offset, filters) - print("The response of WorkflowsApi->list_workflow_library_triggers:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkflowsApi->list_workflow_library_triggers: %s\n" % e) + 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) + filters = 'id eq \"idn:identity-attributes-changed\"' # 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* (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* (optional) + try: + # List Workflow Library Triggers + + results = WorkflowsApi(api_client).list_workflow_library_triggers() + # Below is a request that includes all optional parameters + # results = WorkflowsApi(api_client).list_workflow_library_triggers(limit, offset, filters) + print("The response of WorkflowsApi->list_workflow_library_triggers:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkflowsApi->list_workflow_library_triggers: %s\n" % e) - path: /workflows method: GET xCodeSample: @@ -20533,22 +19903,21 @@ from sailpoint.v2024.api.workflows_api import WorkflowsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.workflow import Workflow - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - try: - # List Workflows - - results = WorkflowsApi(api_client).list_workflows() - # Below is a request that includes all optional parameters - # results = WorkflowsApi(api_client).list_workflows() - print("The response of WorkflowsApi->list_workflows:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkflowsApi->list_workflows: %s\n" % e) + try: + # List Workflows + + results = WorkflowsApi(api_client).list_workflows() + # Below is a request that includes all optional parameters + # results = WorkflowsApi(api_client).list_workflows() + print("The response of WorkflowsApi->list_workflows:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkflowsApi->list_workflows: %s\n" % e) - path: /workflows/{id} method: PATCH xCodeSample: @@ -20559,24 +19928,23 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.json_patch_operation import JsonPatchOperation from sailpoint.v2024.models.workflow import Workflow - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Id of the Workflow # str | Id of the Workflow - json_patch_operation = '''[{op=replace, path=/name, value=Send Email}, {op=replace, path=/owner, value={type=IDENTITY, id=2c91808568c529c60168cca6f90c1313, name=William Wilson}}, {op=replace, path=/description, value=Send an email to the identity who's attributes changed.}, {op=replace, path=/enabled, value=false}, {op=replace, path=/definition, value={start=Send Email Test, steps={Send Email={actionId=sp:send-email, attributes={body=This is a test, from=sailpoint@sailpoint.com, recipientId.$=$.identity.id, subject=test}, nextStep=success, selectResult=null, type=action}, success={type=success}}}}, {op=replace, path=/trigger, value={type=EVENT, attributes={id=idn:identity-attributes-changed}}}]''' # List[JsonPatchOperation] | - try: - # Patch Workflow - new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) - results = WorkflowsApi(api_client).patch_workflow(id=id, json_patch_operation=new_json_patch_operation) - # Below is a request that includes all optional parameters - # results = WorkflowsApi(api_client).patch_workflow(id, new_json_patch_operation) - print("The response of WorkflowsApi->patch_workflow:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkflowsApi->patch_workflow: %s\n" % e) + id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Id of the Workflow # str | Id of the Workflow + json_patch_operation = '''[{op=replace, path=/name, value=Send Email}, {op=replace, path=/owner, value={type=IDENTITY, id=2c91808568c529c60168cca6f90c1313, name=William Wilson}}, {op=replace, path=/description, value=Send an email to the identity who's attributes changed.}, {op=replace, path=/enabled, value=false}, {op=replace, path=/definition, value={start=Send Email Test, steps={Send Email={actionId=sp:send-email, attributes={body=This is a test, from=sailpoint@sailpoint.com, recipientId.$=$.identity.id, subject=test}, nextStep=success, selectResult=null, type=action}, success={type=success}}}}, {op=replace, path=/trigger, value={type=EVENT, attributes={id=idn:identity-attributes-changed}}}]''' # List[JsonPatchOperation] | + try: + # Patch Workflow + new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) + results = WorkflowsApi(api_client).patch_workflow(id=id, json_patch_operation=new_json_patch_operation) + # Below is a request that includes all optional parameters + # results = WorkflowsApi(api_client).patch_workflow(id, new_json_patch_operation) + print("The response of WorkflowsApi->patch_workflow:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkflowsApi->patch_workflow: %s\n" % e) - path: /workflows/{id} method: PUT xCodeSample: @@ -20587,14 +19955,13 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.workflow import Workflow from sailpoint.v2024.models.workflow_body import WorkflowBody - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Id of the Workflow # str | Id of the Workflow - workflow_body = '''{ + id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Id of the Workflow # str | Id of the Workflow + workflow_body = '''{ "owner" : { "name" : "William Wilson", "id" : "2c91808568c529c60168cca6f90c1313", @@ -20634,16 +20001,16 @@ }, "enabled" : false }''' # WorkflowBody | - try: - # Update Workflow - new_workflow_body = WorkflowBody.from_json(workflow_body) - results = WorkflowsApi(api_client).put_workflow(id=id, workflow_body=new_workflow_body) - # Below is a request that includes all optional parameters - # results = WorkflowsApi(api_client).put_workflow(id, new_workflow_body) - print("The response of WorkflowsApi->put_workflow:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkflowsApi->put_workflow: %s\n" % e) + try: + # Update Workflow + new_workflow_body = WorkflowBody.from_json(workflow_body) + results = WorkflowsApi(api_client).put_workflow(id=id, workflow_body=new_workflow_body) + # Below is a request that includes all optional parameters + # results = WorkflowsApi(api_client).put_workflow(id, new_workflow_body) + print("The response of WorkflowsApi->put_workflow:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkflowsApi->put_workflow: %s\n" % e) - path: /workflows/execute/external/{id}/test method: POST xCodeSample: @@ -20654,24 +20021,23 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.test_external_execute_workflow200_response import TestExternalExecuteWorkflow200Response from sailpoint.v2024.models.test_external_execute_workflow_request import TestExternalExecuteWorkflowRequest - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Id of the workflow # str | Id of the workflow - test_external_execute_workflow_request = '''sailpoint.v2024.TestExternalExecuteWorkflowRequest()''' # TestExternalExecuteWorkflowRequest | (optional) - try: - # Test Workflow via External Trigger - - results = WorkflowsApi(api_client).test_external_execute_workflow(id=id) - # Below is a request that includes all optional parameters - # results = WorkflowsApi(api_client).test_external_execute_workflow(id, new_test_external_execute_workflow_request) - print("The response of WorkflowsApi->test_external_execute_workflow:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkflowsApi->test_external_execute_workflow: %s\n" % e) + id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Id of the workflow # str | Id of the workflow + test_external_execute_workflow_request = '''sailpoint.v2024.TestExternalExecuteWorkflowRequest()''' # TestExternalExecuteWorkflowRequest | (optional) + try: + # Test Workflow via External Trigger + + results = WorkflowsApi(api_client).test_external_execute_workflow(id=id) + # Below is a request that includes all optional parameters + # results = WorkflowsApi(api_client).test_external_execute_workflow(id, new_test_external_execute_workflow_request) + print("The response of WorkflowsApi->test_external_execute_workflow:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkflowsApi->test_external_execute_workflow: %s\n" % e) - path: /workflows/{id}/test method: POST xCodeSample: @@ -20682,24 +20048,23 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.test_workflow200_response import TestWorkflow200Response from sailpoint.v2024.models.test_workflow_request import TestWorkflowRequest - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Id of the workflow # str | Id of the workflow - test_workflow_request = '''{input={identity={id=ee769173319b41d19ccec6cea52f237b, name=john.doe, type=IDENTITY}, changes=[{attribute=department, oldValue=sales, newValue=marketing}, {attribute=manager, oldValue={id=ee769173319b41d19ccec6c235423237b, name=nice.guy, type=IDENTITY}, newValue={id=ee769173319b41d19ccec6c235423236c, name=mean.guy, type=IDENTITY}}, {attribute=email, oldValue=john.doe@hotmail.com, newValue=john.doe@gmail.com}]}}''' # TestWorkflowRequest | - try: - # Test Workflow By Id - new_test_workflow_request = TestWorkflowRequest.from_json(test_workflow_request) - results = WorkflowsApi(api_client).test_workflow(id=id, test_workflow_request=new_test_workflow_request) - # Below is a request that includes all optional parameters - # results = WorkflowsApi(api_client).test_workflow(id, new_test_workflow_request) - print("The response of WorkflowsApi->test_workflow:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkflowsApi->test_workflow: %s\n" % e) + id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Id of the workflow # str | Id of the workflow + test_workflow_request = '''{input={identity={id=ee769173319b41d19ccec6cea52f237b, name=john.doe, type=IDENTITY}, changes=[{attribute=department, oldValue=sales, newValue=marketing}, {attribute=manager, oldValue={id=ee769173319b41d19ccec6c235423237b, name=nice.guy, type=IDENTITY}, newValue={id=ee769173319b41d19ccec6c235423236c, name=mean.guy, type=IDENTITY}}, {attribute=email, oldValue=john.doe@hotmail.com, newValue=john.doe@gmail.com}]}}''' # TestWorkflowRequest | + try: + # Test Workflow By Id + new_test_workflow_request = TestWorkflowRequest.from_json(test_workflow_request) + results = WorkflowsApi(api_client).test_workflow(id=id, test_workflow_request=new_test_workflow_request) + # Below is a request that includes all optional parameters + # results = WorkflowsApi(api_client).test_workflow(id, new_test_workflow_request) + print("The response of WorkflowsApi->test_workflow:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkflowsApi->test_workflow: %s\n" % e) - path: /work-items/{id}/approve/{approvalItemId} method: POST xCodeSample: @@ -20709,24 +20074,23 @@ from sailpoint.v2024.api.work_items_api import WorkItemsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.work_items import WorkItems - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the work item # str | The ID of the work item - approval_item_id = '1211bcaa32112bcef6122adb21cef1ac' # str | The ID of the approval item. # str | The ID of the approval item. - try: - # Approve an Approval Item - - results = WorkItemsApi(api_client).approve_approval_item(id=id, approval_item_id=approval_item_id) - # Below is a request that includes all optional parameters - # results = WorkItemsApi(api_client).approve_approval_item(id, approval_item_id) - print("The response of WorkItemsApi->approve_approval_item:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkItemsApi->approve_approval_item: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the work item # str | The ID of the work item + approval_item_id = '1211bcaa32112bcef6122adb21cef1ac' # str | The ID of the approval item. # str | The ID of the approval item. + try: + # Approve an Approval Item + + results = WorkItemsApi(api_client).approve_approval_item(id=id, approval_item_id=approval_item_id) + # Below is a request that includes all optional parameters + # results = WorkItemsApi(api_client).approve_approval_item(id, approval_item_id) + print("The response of WorkItemsApi->approve_approval_item:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkItemsApi->approve_approval_item: %s\n" % e) - path: /work-items/bulk-approve/{id} method: POST xCodeSample: @@ -20736,23 +20100,22 @@ from sailpoint.v2024.api.work_items_api import WorkItemsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.work_items import WorkItems - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the work item # str | The ID of the work item - try: - # Bulk approve Approval Items - - results = WorkItemsApi(api_client).approve_approval_items_in_bulk(id=id) - # Below is a request that includes all optional parameters - # results = WorkItemsApi(api_client).approve_approval_items_in_bulk(id) - print("The response of WorkItemsApi->approve_approval_items_in_bulk:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkItemsApi->approve_approval_items_in_bulk: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the work item # str | The ID of the work item + try: + # Bulk approve Approval Items + + results = WorkItemsApi(api_client).approve_approval_items_in_bulk(id=id) + # Below is a request that includes all optional parameters + # results = WorkItemsApi(api_client).approve_approval_items_in_bulk(id) + print("The response of WorkItemsApi->approve_approval_items_in_bulk:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkItemsApi->approve_approval_items_in_bulk: %s\n" % e) - path: /work-items/{id} method: POST xCodeSample: @@ -20762,24 +20125,23 @@ from sailpoint.v2024.api.work_items_api import WorkItemsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.work_items import WorkItems - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the work item # str | The ID of the work item - body = 'body_example' # str | Body is the request payload to create form definition request (optional) # str | Body is the request payload to create form definition request (optional) - try: - # Complete a Work Item - - results = WorkItemsApi(api_client).complete_work_item(id=id) - # Below is a request that includes all optional parameters - # results = WorkItemsApi(api_client).complete_work_item(id, new_body) - print("The response of WorkItemsApi->complete_work_item:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkItemsApi->complete_work_item: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the work item # str | The ID of the work item + body = 'body_example' # str | Body is the request payload to create form definition request (optional) # str | Body is the request payload to create form definition request (optional) + try: + # Complete a Work Item + + results = WorkItemsApi(api_client).complete_work_item(id=id) + # Below is a request that includes all optional parameters + # results = WorkItemsApi(api_client).complete_work_item(id, new_body) + print("The response of WorkItemsApi->complete_work_item:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkItemsApi->complete_work_item: %s\n" % e) - path: /work-items/{id}/forward method: POST xCodeSample: @@ -20789,28 +20151,27 @@ from sailpoint.v2024.api.work_items_api import WorkItemsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.work_item_forward import WorkItemForward - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the work item # str | The ID of the work item - 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') - work_item_forward = '''{ + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the work item # str | The ID of the work item + 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') + work_item_forward = '''{ "targetOwnerId" : "2c9180835d2e5168015d32f890ca1581", "comment" : "I'm going on vacation.", "sendNotifications" : true }''' # WorkItemForward | - try: - # Forward a Work Item - new_work_item_forward = WorkItemForward.from_json(work_item_forward) - WorkItemsApi(api_client).forward_work_item(id=id, x_sail_point_experimental=x_sail_point_experimental, work_item_forward=new_work_item_forward) - # Below is a request that includes all optional parameters - # WorkItemsApi(api_client).forward_work_item(id, x_sail_point_experimental, new_work_item_forward) - except Exception as e: - print("Exception when calling WorkItemsApi->forward_work_item: %s\n" % e) + try: + # Forward a Work Item + new_work_item_forward = WorkItemForward.from_json(work_item_forward) + WorkItemsApi(api_client).forward_work_item(id=id, x_sail_point_experimental=x_sail_point_experimental, work_item_forward=new_work_item_forward) + # Below is a request that includes all optional parameters + # WorkItemsApi(api_client).forward_work_item(id, x_sail_point_experimental, new_work_item_forward) + except Exception as e: + print("Exception when calling WorkItemsApi->forward_work_item: %s\n" % e) - path: /work-items/completed method: GET xCodeSample: @@ -20820,26 +20181,25 @@ from sailpoint.v2024.api.work_items_api import WorkItemsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.work_items import WorkItems - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - owner_id = '1211bcaa32112bcef6122adb21cef1ac' # str | The id of the owner of the work item list being requested. Either an admin, or the owning/current user must make this request. (optional) # str | The id of the owner of the work item list being requested. Either an admin, or the owning/current user must make this request. (optional) - 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) - try: - # Completed Work Items - - results = WorkItemsApi(api_client).get_completed_work_items() - # Below is a request that includes all optional parameters - # results = WorkItemsApi(api_client).get_completed_work_items(owner_id, limit, offset, count) - print("The response of WorkItemsApi->get_completed_work_items:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkItemsApi->get_completed_work_items: %s\n" % e) + owner_id = '1211bcaa32112bcef6122adb21cef1ac' # str | The id of the owner of the work item list being requested. Either an admin, or the owning/current user must make this request. (optional) # str | The id of the owner of the work item list being requested. Either an admin, or the owning/current user must make this request. (optional) + 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) + try: + # Completed Work Items + + results = WorkItemsApi(api_client).get_completed_work_items() + # Below is a request that includes all optional parameters + # results = WorkItemsApi(api_client).get_completed_work_items(owner_id, limit, offset, count) + print("The response of WorkItemsApi->get_completed_work_items:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkItemsApi->get_completed_work_items: %s\n" % e) - path: /work-items/completed/count method: GET xCodeSample: @@ -20849,25 +20209,24 @@ from sailpoint.v2024.api.work_items_api import WorkItemsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.work_items_count import WorkItemsCount - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - owner_id = 'owner_id_example' # str | ID of the work item owner. (optional) # str | ID of the work item owner. (optional) - try: - # Count Completed Work Items - - results = WorkItemsApi(api_client).get_count_completed_work_items(x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = WorkItemsApi(api_client).get_count_completed_work_items(x_sail_point_experimental, owner_id) - print("The response of WorkItemsApi->get_count_completed_work_items:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkItemsApi->get_count_completed_work_items: %s\n" % e) + 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') + owner_id = 'owner_id_example' # str | ID of the work item owner. (optional) # str | ID of the work item owner. (optional) + try: + # Count Completed Work Items + + results = WorkItemsApi(api_client).get_count_completed_work_items(x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = WorkItemsApi(api_client).get_count_completed_work_items(x_sail_point_experimental, owner_id) + print("The response of WorkItemsApi->get_count_completed_work_items:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkItemsApi->get_count_completed_work_items: %s\n" % e) - path: /work-items/count method: GET xCodeSample: @@ -20877,23 +20236,22 @@ from sailpoint.v2024.api.work_items_api import WorkItemsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.work_items_count import WorkItemsCount - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - owner_id = 'ef38f94347e94562b5bb8424a56397d8' # str | ID of the work item owner. (optional) # str | ID of the work item owner. (optional) - try: - # Count Work Items - - results = WorkItemsApi(api_client).get_count_work_items() - # Below is a request that includes all optional parameters - # results = WorkItemsApi(api_client).get_count_work_items(owner_id) - print("The response of WorkItemsApi->get_count_work_items:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkItemsApi->get_count_work_items: %s\n" % e) + owner_id = 'ef38f94347e94562b5bb8424a56397d8' # str | ID of the work item owner. (optional) # str | ID of the work item owner. (optional) + try: + # Count Work Items + + results = WorkItemsApi(api_client).get_count_work_items() + # Below is a request that includes all optional parameters + # results = WorkItemsApi(api_client).get_count_work_items(owner_id) + print("The response of WorkItemsApi->get_count_work_items:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkItemsApi->get_count_work_items: %s\n" % e) - path: /work-items/{id} method: GET xCodeSample: @@ -20903,23 +20261,22 @@ from sailpoint.v2024.api.work_items_api import WorkItemsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.work_items import WorkItems - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c9180835d191a86015d28455b4a2329' # str | ID of the work item. # str | ID of the work item. - try: - # Get a Work Item - - results = WorkItemsApi(api_client).get_work_item(id=id) - # Below is a request that includes all optional parameters - # results = WorkItemsApi(api_client).get_work_item(id) - print("The response of WorkItemsApi->get_work_item:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkItemsApi->get_work_item: %s\n" % e) + id = '2c9180835d191a86015d28455b4a2329' # str | ID of the work item. # str | ID of the work item. + try: + # Get a Work Item + + results = WorkItemsApi(api_client).get_work_item(id=id) + # Below is a request that includes all optional parameters + # results = WorkItemsApi(api_client).get_work_item(id) + print("The response of WorkItemsApi->get_work_item:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkItemsApi->get_work_item: %s\n" % e) - path: /work-items/summary method: GET xCodeSample: @@ -20929,23 +20286,22 @@ from sailpoint.v2024.api.work_items_api import WorkItemsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.work_items_summary import WorkItemsSummary - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - owner_id = '1211bcaa32112bcef6122adb21cef1ac' # str | ID of the work item owner. (optional) # str | ID of the work item owner. (optional) - try: - # Work Items Summary - - results = WorkItemsApi(api_client).get_work_items_summary() - # Below is a request that includes all optional parameters - # results = WorkItemsApi(api_client).get_work_items_summary(owner_id) - print("The response of WorkItemsApi->get_work_items_summary:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkItemsApi->get_work_items_summary: %s\n" % e) + owner_id = '1211bcaa32112bcef6122adb21cef1ac' # str | ID of the work item owner. (optional) # str | ID of the work item owner. (optional) + try: + # Work Items Summary + + results = WorkItemsApi(api_client).get_work_items_summary() + # Below is a request that includes all optional parameters + # results = WorkItemsApi(api_client).get_work_items_summary(owner_id) + print("The response of WorkItemsApi->get_work_items_summary:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkItemsApi->get_work_items_summary: %s\n" % e) - path: /work-items method: GET xCodeSample: @@ -20955,26 +20311,25 @@ from sailpoint.v2024.api.work_items_api import WorkItemsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.work_items import WorkItems - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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) - owner_id = '1211bcaa32112bcef6122adb21cef1ac' # str | ID of the work item owner. (optional) # str | ID of the work item owner. (optional) - try: - # List Work Items - - results = WorkItemsApi(api_client).list_work_items() - # Below is a request that includes all optional parameters - # results = WorkItemsApi(api_client).list_work_items(limit, offset, count, owner_id) - print("The response of WorkItemsApi->list_work_items:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkItemsApi->list_work_items: %s\n" % e) + 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) + owner_id = '1211bcaa32112bcef6122adb21cef1ac' # str | ID of the work item owner. (optional) # str | ID of the work item owner. (optional) + try: + # List Work Items + + results = WorkItemsApi(api_client).list_work_items() + # Below is a request that includes all optional parameters + # results = WorkItemsApi(api_client).list_work_items(limit, offset, count, owner_id) + print("The response of WorkItemsApi->list_work_items:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkItemsApi->list_work_items: %s\n" % e) - path: /work-items/{id}/reject/{approvalItemId} method: POST xCodeSample: @@ -20984,24 +20339,23 @@ from sailpoint.v2024.api.work_items_api import WorkItemsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.work_items import WorkItems - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the work item # str | The ID of the work item - approval_item_id = '1211bcaa32112bcef6122adb21cef1ac' # str | The ID of the approval item. # str | The ID of the approval item. - try: - # Reject an Approval Item - - results = WorkItemsApi(api_client).reject_approval_item(id=id, approval_item_id=approval_item_id) - # Below is a request that includes all optional parameters - # results = WorkItemsApi(api_client).reject_approval_item(id, approval_item_id) - print("The response of WorkItemsApi->reject_approval_item:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkItemsApi->reject_approval_item: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the work item # str | The ID of the work item + approval_item_id = '1211bcaa32112bcef6122adb21cef1ac' # str | The ID of the approval item. # str | The ID of the approval item. + try: + # Reject an Approval Item + + results = WorkItemsApi(api_client).reject_approval_item(id=id, approval_item_id=approval_item_id) + # Below is a request that includes all optional parameters + # results = WorkItemsApi(api_client).reject_approval_item(id, approval_item_id) + print("The response of WorkItemsApi->reject_approval_item:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkItemsApi->reject_approval_item: %s\n" % e) - path: /work-items/bulk-reject/{id} method: POST xCodeSample: @@ -21011,23 +20365,22 @@ from sailpoint.v2024.api.work_items_api import WorkItemsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.work_items import WorkItems - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the work item # str | The ID of the work item - try: - # Bulk reject Approval Items - - results = WorkItemsApi(api_client).reject_approval_items_in_bulk(id=id) - # Below is a request that includes all optional parameters - # results = WorkItemsApi(api_client).reject_approval_items_in_bulk(id) - print("The response of WorkItemsApi->reject_approval_items_in_bulk:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkItemsApi->reject_approval_items_in_bulk: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the work item # str | The ID of the work item + try: + # Bulk reject Approval Items + + results = WorkItemsApi(api_client).reject_approval_items_in_bulk(id=id) + # Below is a request that includes all optional parameters + # results = WorkItemsApi(api_client).reject_approval_items_in_bulk(id) + print("The response of WorkItemsApi->reject_approval_items_in_bulk:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkItemsApi->reject_approval_items_in_bulk: %s\n" % e) - path: /work-items/{id}/submit-account-selection method: POST xCodeSample: @@ -21037,24 +20390,23 @@ from sailpoint.v2024.api.work_items_api import WorkItemsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.work_items import WorkItems - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the work item # str | The ID of the work item - request_body = {fieldName=fieldValue} # Dict[str, object] | Account Selection Data map, keyed on fieldName # Dict[str, object] | Account Selection Data map, keyed on fieldName - try: - # Submit Account Selections - new_request_body = RequestBody.from_json(request_body) - results = WorkItemsApi(api_client).submit_account_selection(id=id, request_body=new_request_body) - # Below is a request that includes all optional parameters - # results = WorkItemsApi(api_client).submit_account_selection(id, new_request_body) - print("The response of WorkItemsApi->submit_account_selection:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkItemsApi->submit_account_selection: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the work item # str | The ID of the work item + request_body = {fieldName=fieldValue} # Dict[str, object] | Account Selection Data map, keyed on fieldName # Dict[str, object] | Account Selection Data map, keyed on fieldName + try: + # Submit Account Selections + new_request_body = RequestBody.from_json(request_body) + results = WorkItemsApi(api_client).submit_account_selection(id=id, request_body=new_request_body) + # Below is a request that includes all optional parameters + # results = WorkItemsApi(api_client).submit_account_selection(id, new_request_body) + print("The response of WorkItemsApi->submit_account_selection:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkItemsApi->submit_account_selection: %s\n" % e) - path: /reassignment-configurations method: POST xCodeSample: @@ -21065,31 +20417,30 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.configuration_item_request import ConfigurationItemRequest from sailpoint.v2024.models.configuration_item_response import ConfigurationItemResponse - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - configuration_item_request = '''{ + 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') + configuration_item_request = '''{ "endDate" : "2022-07-30T17:00:00Z", "reassignedFromId" : "2c91808781a71ddb0181b9090b5c504e", "configType" : "ACCESS_REQUESTS", "reassignedToId" : "2c91808781a71ddb0181b9090b53504a", "startDate" : "2022-07-21T11:13:12.345Z" }''' # ConfigurationItemRequest | - try: - # Create a Reassignment Configuration - new_configuration_item_request = ConfigurationItemRequest.from_json(configuration_item_request) - results = WorkReassignmentApi(api_client).create_reassignment_configuration(x_sail_point_experimental=x_sail_point_experimental, configuration_item_request=new_configuration_item_request) - # Below is a request that includes all optional parameters - # results = WorkReassignmentApi(api_client).create_reassignment_configuration(x_sail_point_experimental, new_configuration_item_request) - print("The response of WorkReassignmentApi->create_reassignment_configuration:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkReassignmentApi->create_reassignment_configuration: %s\n" % e) + try: + # Create a Reassignment Configuration + new_configuration_item_request = ConfigurationItemRequest.from_json(configuration_item_request) + results = WorkReassignmentApi(api_client).create_reassignment_configuration(x_sail_point_experimental=x_sail_point_experimental, configuration_item_request=new_configuration_item_request) + # Below is a request that includes all optional parameters + # results = WorkReassignmentApi(api_client).create_reassignment_configuration(x_sail_point_experimental, new_configuration_item_request) + print("The response of WorkReassignmentApi->create_reassignment_configuration:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkReassignmentApi->create_reassignment_configuration: %s\n" % e) - path: /reassignment-configurations/{identityId}/{configType} method: DELETE xCodeSample: @@ -21099,24 +20450,23 @@ from sailpoint.v2024.api.work_reassignment_api import WorkReassignmentApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.config_type_enum import ConfigTypeEnum - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - identity_id = '2c91808781a71ddb0181b9090b5c504e' # str | unique identity id # str | unique identity id - config_type = sailpoint.v2024.ConfigTypeEnum() # ConfigTypeEnum | # ConfigTypeEnum | - 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: - # Delete Reassignment Configuration - - WorkReassignmentApi(api_client).delete_reassignment_configuration(identity_id=identity_id, config_type=config_type, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # WorkReassignmentApi(api_client).delete_reassignment_configuration(identity_id, config_type, x_sail_point_experimental) - except Exception as e: - print("Exception when calling WorkReassignmentApi->delete_reassignment_configuration: %s\n" % e) + identity_id = '2c91808781a71ddb0181b9090b5c504e' # str | unique identity id # str | unique identity id + config_type = sailpoint.v2024.ConfigTypeEnum() # ConfigTypeEnum | # ConfigTypeEnum | + 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: + # Delete Reassignment Configuration + + WorkReassignmentApi(api_client).delete_reassignment_configuration(identity_id=identity_id, config_type=config_type, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # WorkReassignmentApi(api_client).delete_reassignment_configuration(identity_id, config_type, x_sail_point_experimental) + except Exception as e: + print("Exception when calling WorkReassignmentApi->delete_reassignment_configuration: %s\n" % e) - path: /reassignment-configurations/{identityId}/evaluate/{configType} method: GET xCodeSample: @@ -21127,27 +20477,26 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.config_type_enum import ConfigTypeEnum from sailpoint.v2024.models.evaluate_response import EvaluateResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - identity_id = '2c91808781a71ddb0181b9090b5c504e' # str | unique identity id # str | unique identity id - config_type = sailpoint.v2024.ConfigTypeEnum() # ConfigTypeEnum | Reassignment work type # ConfigTypeEnum | Reassignment work type - 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') - exclusion_filters = '''['SELF_REVIEW_DELEGATION']''' # List[str] | Exclusion filters that disable parts of the reassignment evaluation. Possible values are listed below: - `SELF_REVIEW_DELEGATION`: This will exclude delegations of self-review reassignments (optional) - try: - # Evaluate Reassignment Configuration - - results = WorkReassignmentApi(api_client).get_evaluate_reassignment_configuration(identity_id=identity_id, config_type=config_type, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = WorkReassignmentApi(api_client).get_evaluate_reassignment_configuration(identity_id, config_type, x_sail_point_experimental, exclusion_filters) - print("The response of WorkReassignmentApi->get_evaluate_reassignment_configuration:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkReassignmentApi->get_evaluate_reassignment_configuration: %s\n" % e) + identity_id = '2c91808781a71ddb0181b9090b5c504e' # str | unique identity id # str | unique identity id + config_type = sailpoint.v2024.ConfigTypeEnum() # ConfigTypeEnum | Reassignment work type # ConfigTypeEnum | Reassignment work type + 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') + exclusion_filters = '''['SELF_REVIEW_DELEGATION']''' # List[str] | Exclusion filters that disable parts of the reassignment evaluation. Possible values are listed below: - `SELF_REVIEW_DELEGATION`: This will exclude delegations of self-review reassignments (optional) + try: + # Evaluate Reassignment Configuration + + results = WorkReassignmentApi(api_client).get_evaluate_reassignment_configuration(identity_id=identity_id, config_type=config_type, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = WorkReassignmentApi(api_client).get_evaluate_reassignment_configuration(identity_id, config_type, x_sail_point_experimental, exclusion_filters) + print("The response of WorkReassignmentApi->get_evaluate_reassignment_configuration:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkReassignmentApi->get_evaluate_reassignment_configuration: %s\n" % e) - path: /reassignment-configurations/types method: GET xCodeSample: @@ -21157,24 +20506,23 @@ from sailpoint.v2024.api.work_reassignment_api import WorkReassignmentApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.config_type import ConfigType - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - try: - # List Reassignment Config Types - - results = WorkReassignmentApi(api_client).get_reassignment_config_types(x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = WorkReassignmentApi(api_client).get_reassignment_config_types(x_sail_point_experimental) - print("The response of WorkReassignmentApi->get_reassignment_config_types:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkReassignmentApi->get_reassignment_config_types: %s\n" % e) + 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: + # List Reassignment Config Types + + results = WorkReassignmentApi(api_client).get_reassignment_config_types(x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = WorkReassignmentApi(api_client).get_reassignment_config_types(x_sail_point_experimental) + print("The response of WorkReassignmentApi->get_reassignment_config_types:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkReassignmentApi->get_reassignment_config_types: %s\n" % e) - path: /reassignment-configurations/{identityId} method: GET xCodeSample: @@ -21184,25 +20532,24 @@ from sailpoint.v2024.api.work_reassignment_api import WorkReassignmentApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.configuration_response import ConfigurationResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - identity_id = '2c91808781a71ddb0181b9090b5c504f' # str | unique identity id # str | unique identity id - 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 Reassignment Configuration - - results = WorkReassignmentApi(api_client).get_reassignment_configuration(identity_id=identity_id, x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = WorkReassignmentApi(api_client).get_reassignment_configuration(identity_id, x_sail_point_experimental) - print("The response of WorkReassignmentApi->get_reassignment_configuration:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkReassignmentApi->get_reassignment_configuration: %s\n" % e) + identity_id = '2c91808781a71ddb0181b9090b5c504f' # str | unique identity id # str | unique identity id + 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 Reassignment Configuration + + results = WorkReassignmentApi(api_client).get_reassignment_configuration(identity_id=identity_id, x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = WorkReassignmentApi(api_client).get_reassignment_configuration(identity_id, x_sail_point_experimental) + print("The response of WorkReassignmentApi->get_reassignment_configuration:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkReassignmentApi->get_reassignment_configuration: %s\n" % e) - path: /reassignment-configurations/tenant-config method: GET xCodeSample: @@ -21212,24 +20559,23 @@ from sailpoint.v2024.api.work_reassignment_api import WorkReassignmentApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.tenant_configuration_response import TenantConfigurationResponse - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - try: - # Get Tenant-wide Reassignment Configuration settings - - results = WorkReassignmentApi(api_client).get_tenant_config_configuration(x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = WorkReassignmentApi(api_client).get_tenant_config_configuration(x_sail_point_experimental) - print("The response of WorkReassignmentApi->get_tenant_config_configuration:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkReassignmentApi->get_tenant_config_configuration: %s\n" % e) + 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 Tenant-wide Reassignment Configuration settings + + results = WorkReassignmentApi(api_client).get_tenant_config_configuration(x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = WorkReassignmentApi(api_client).get_tenant_config_configuration(x_sail_point_experimental) + print("The response of WorkReassignmentApi->get_tenant_config_configuration:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkReassignmentApi->get_tenant_config_configuration: %s\n" % e) - path: /reassignment-configurations method: GET xCodeSample: @@ -21239,24 +20585,23 @@ from sailpoint.v2024.api.work_reassignment_api import WorkReassignmentApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.configuration_response import ConfigurationResponse - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - try: - # List Reassignment Configurations - - results = WorkReassignmentApi(api_client).list_reassignment_configurations(x_sail_point_experimental=x_sail_point_experimental) - # Below is a request that includes all optional parameters - # results = WorkReassignmentApi(api_client).list_reassignment_configurations(x_sail_point_experimental) - print("The response of WorkReassignmentApi->list_reassignment_configurations:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkReassignmentApi->list_reassignment_configurations: %s\n" % e) + 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: + # List Reassignment Configurations + + results = WorkReassignmentApi(api_client).list_reassignment_configurations(x_sail_point_experimental=x_sail_point_experimental) + # Below is a request that includes all optional parameters + # results = WorkReassignmentApi(api_client).list_reassignment_configurations(x_sail_point_experimental) + print("The response of WorkReassignmentApi->list_reassignment_configurations:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkReassignmentApi->list_reassignment_configurations: %s\n" % e) - path: /reassignment-configurations/{identityId} method: PUT xCodeSample: @@ -21267,32 +20612,31 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.configuration_item_request import ConfigurationItemRequest from sailpoint.v2024.models.configuration_item_response import ConfigurationItemResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() configuration.experimental = true with ApiClient(configuration) as api_client: - identity_id = '2c91808781a71ddb0181b9090b5c504e' # str | unique identity id # str | unique identity id - 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') - configuration_item_request = '''{ + identity_id = '2c91808781a71ddb0181b9090b5c504e' # str | unique identity id # str | unique identity id + 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') + configuration_item_request = '''{ "endDate" : "2022-07-30T17:00:00Z", "reassignedFromId" : "2c91808781a71ddb0181b9090b5c504e", "configType" : "ACCESS_REQUESTS", "reassignedToId" : "2c91808781a71ddb0181b9090b53504a", "startDate" : "2022-07-21T11:13:12.345Z" }''' # ConfigurationItemRequest | - try: - # Update Reassignment Configuration - new_configuration_item_request = ConfigurationItemRequest.from_json(configuration_item_request) - results = WorkReassignmentApi(api_client).put_reassignment_config(identity_id=identity_id, x_sail_point_experimental=x_sail_point_experimental, configuration_item_request=new_configuration_item_request) - # Below is a request that includes all optional parameters - # results = WorkReassignmentApi(api_client).put_reassignment_config(identity_id, x_sail_point_experimental, new_configuration_item_request) - print("The response of WorkReassignmentApi->put_reassignment_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkReassignmentApi->put_reassignment_config: %s\n" % e) + try: + # Update Reassignment Configuration + new_configuration_item_request = ConfigurationItemRequest.from_json(configuration_item_request) + results = WorkReassignmentApi(api_client).put_reassignment_config(identity_id=identity_id, x_sail_point_experimental=x_sail_point_experimental, configuration_item_request=new_configuration_item_request) + # Below is a request that includes all optional parameters + # results = WorkReassignmentApi(api_client).put_reassignment_config(identity_id, x_sail_point_experimental, new_configuration_item_request) + print("The response of WorkReassignmentApi->put_reassignment_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkReassignmentApi->put_reassignment_config: %s\n" % e) - path: /reassignment-configurations/tenant-config method: PUT xCodeSample: @@ -21303,26 +20647,25 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.tenant_configuration_request import TenantConfigurationRequest from sailpoint.v2024.models.tenant_configuration_response import TenantConfigurationResponse - from pprint import pprint 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. (default to 'true') # str | Use this header to enable this experimental API. (default to 'true') - tenant_configuration_request = '''{ + 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') + tenant_configuration_request = '''{ "configDetails" : { "disabled" : true } }''' # TenantConfigurationRequest | - try: - # Update Tenant-wide Reassignment Configuration settings - new_tenant_configuration_request = TenantConfigurationRequest.from_json(tenant_configuration_request) - results = WorkReassignmentApi(api_client).put_tenant_configuration(x_sail_point_experimental=x_sail_point_experimental, tenant_configuration_request=new_tenant_configuration_request) - # Below is a request that includes all optional parameters - # results = WorkReassignmentApi(api_client).put_tenant_configuration(x_sail_point_experimental, new_tenant_configuration_request) - print("The response of WorkReassignmentApi->put_tenant_configuration:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkReassignmentApi->put_tenant_configuration: %s\n" % e) + try: + # Update Tenant-wide Reassignment Configuration settings + new_tenant_configuration_request = TenantConfigurationRequest.from_json(tenant_configuration_request) + results = WorkReassignmentApi(api_client).put_tenant_configuration(x_sail_point_experimental=x_sail_point_experimental, tenant_configuration_request=new_tenant_configuration_request) + # Below is a request that includes all optional parameters + # results = WorkReassignmentApi(api_client).put_tenant_configuration(x_sail_point_experimental, new_tenant_configuration_request) + print("The response of WorkReassignmentApi->put_tenant_configuration:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkReassignmentApi->put_tenant_configuration: %s\n" % e) diff --git a/sailpoint/v2024/docs/Methods/AccessModelMetadataApi.md b/sailpoint/v2024/docs/Methods/AccessModelMetadataApi.md index 3662cc3f7..093839191 100644 --- a/sailpoint/v2024/docs/Methods/AccessModelMetadataApi.md +++ b/sailpoint/v2024/docs/Methods/AccessModelMetadataApi.md @@ -78,7 +78,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.access_model_metadata_api import AccessModelMetadataApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.attribute_dto import AttributeDTO -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -95,7 +94,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccessModelMetadataApi(api_client).get_access_model_metadata_attribute(key, x_sail_point_experimental) print("The response of AccessModelMetadataApi->get_access_model_metadata_attribute:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccessModelMetadataApi->get_access_model_metadata_attribute: %s\n" % e) ``` @@ -152,7 +151,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.access_model_metadata_api import AccessModelMetadataApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.attribute_value_dto import AttributeValueDTO -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -170,7 +168,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccessModelMetadataApi(api_client).get_access_model_metadata_attribute_value(key, value, x_sail_point_experimental) print("The response of AccessModelMetadataApi->get_access_model_metadata_attribute_value:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccessModelMetadataApi->get_access_model_metadata_attribute_value: %s\n" % e) ``` @@ -226,7 +224,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.access_model_metadata_api import AccessModelMetadataApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.attribute_dto import AttributeDTO -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -243,7 +240,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccessModelMetadataApi(api_client).list_access_model_metadata_attribute(x_sail_point_experimental, filters) print("The response of AccessModelMetadataApi->list_access_model_metadata_attribute:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccessModelMetadataApi->list_access_model_metadata_attribute: %s\n" % e) ``` @@ -299,7 +296,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.access_model_metadata_api import AccessModelMetadataApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.attribute_value_dto import AttributeValueDTO -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -316,7 +312,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccessModelMetadataApi(api_client).list_access_model_metadata_attribute_value(key, x_sail_point_experimental) print("The response of AccessModelMetadataApi->list_access_model_metadata_attribute_value:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccessModelMetadataApi->list_access_model_metadata_attribute_value: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/AccessProfilesApi.md b/sailpoint/v2024/docs/Methods/AccessProfilesApi.md index 2d7aff7a0..bd427274b 100644 --- a/sailpoint/v2024/docs/Methods/AccessProfilesApi.md +++ b/sailpoint/v2024/docs/Methods/AccessProfilesApi.md @@ -96,7 +96,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.access_profiles_api import AccessProfilesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.access_profile import AccessProfile -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -195,7 +194,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccessProfilesApi(api_client).create_access_profile(new_access_profile) print("The response of AccessProfilesApi->create_access_profile:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccessProfilesApi->create_access_profile: %s\n" % e) ``` @@ -242,7 +241,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.access_profiles_api import AccessProfilesApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -305,7 +303,6 @@ from sailpoint.v2024.api.access_profiles_api import AccessProfilesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.access_profile_bulk_delete_request import AccessProfileBulkDeleteRequest from sailpoint.v2024.models.access_profile_bulk_delete_response import AccessProfileBulkDeleteResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -323,7 +320,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccessProfilesApi(api_client).delete_access_profiles_in_bulk(new_access_profile_bulk_delete_request) print("The response of AccessProfilesApi->delete_access_profiles_in_bulk:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccessProfilesApi->delete_access_profiles_in_bulk: %s\n" % e) ``` @@ -367,7 +364,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.access_profiles_api import AccessProfilesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.access_profile import AccessProfile -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -382,7 +378,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccessProfilesApi(api_client).get_access_profile(id) print("The response of AccessProfilesApi->get_access_profile:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccessProfilesApi->get_access_profile: %s\n" % e) ``` @@ -433,7 +429,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.access_profiles_api import AccessProfilesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.entitlement import Entitlement -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -453,7 +448,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccessProfilesApi(api_client).get_access_profile_entitlements(id, limit, offset, count, filters, sorters) print("The response of AccessProfilesApi->get_access_profile_entitlements:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccessProfilesApi->get_access_profile_entitlements: %s\n" % e) ``` @@ -505,7 +500,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.access_profiles_api import AccessProfilesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.access_profile import AccessProfile -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -527,7 +521,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccessProfilesApi(api_client).list_access_profiles(for_subadmin, limit, offset, count, filters, sorters, for_segment_ids, include_unsegmented) print("The response of AccessProfilesApi->list_access_profiles:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccessProfilesApi->list_access_profiles: %s\n" % e) ``` @@ -602,7 +596,6 @@ from sailpoint.v2024.api.access_profiles_api import AccessProfilesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.access_profile import AccessProfile from sailpoint.v2024.models.json_patch_operation import JsonPatchOperation -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -618,7 +611,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccessProfilesApi(api_client).patch_access_profile(id, new_json_patch_operation) print("The response of AccessProfilesApi->patch_access_profile:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccessProfilesApi->patch_access_profile: %s\n" % e) ``` @@ -682,7 +675,6 @@ from sailpoint.v2024.api.access_profiles_api import AccessProfilesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.access_profile_bulk_update_request_inner import AccessProfileBulkUpdateRequestInner from sailpoint.v2024.models.access_profile_update_item import AccessProfileUpdateItem -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -699,7 +691,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccessProfilesApi(api_client).update_access_profiles_in_bulk(x_sail_point_experimental, new_access_profile_bulk_update_request_inner) print("The response of AccessProfilesApi->update_access_profiles_in_bulk:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccessProfilesApi->update_access_profiles_in_bulk: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/AccessRequestApprovalsApi.md b/sailpoint/v2024/docs/Methods/AccessRequestApprovalsApi.md index ec285d054..9d965f64d 100644 --- a/sailpoint/v2024/docs/Methods/AccessRequestApprovalsApi.md +++ b/sailpoint/v2024/docs/Methods/AccessRequestApprovalsApi.md @@ -78,7 +78,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.access_request_approvals_api import AccessRequestApprovalsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.comment_dto import CommentDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -102,7 +101,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccessRequestApprovalsApi(api_client).approve_access_request(approval_id, new_comment_dto) print("The response of AccessRequestApprovalsApi->approve_access_request:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccessRequestApprovalsApi->approve_access_request: %s\n" % e) ``` @@ -148,7 +147,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.access_request_approvals_api import AccessRequestApprovalsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.forward_approval_dto import ForwardApprovalDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -167,7 +165,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccessRequestApprovalsApi(api_client).forward_access_request(approval_id, new_forward_approval_dto) print("The response of AccessRequestApprovalsApi->forward_access_request:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccessRequestApprovalsApi->forward_access_request: %s\n" % e) ``` @@ -212,7 +210,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.access_request_approvals_api import AccessRequestApprovalsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.approval_summary import ApprovalSummary -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -228,7 +225,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccessRequestApprovalsApi(api_client).get_access_request_approval_summary(owner_id, from_date) print("The response of AccessRequestApprovalsApi->get_access_request_approval_summary:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccessRequestApprovalsApi->get_access_request_approval_summary: %s\n" % e) ``` @@ -277,7 +274,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.access_request_approvals_api import AccessRequestApprovalsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.access_request_approvers_list_response import AccessRequestApproversListResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -295,7 +291,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccessRequestApprovalsApi(api_client).list_access_request_approvers(access_request_id, limit, offset, count) print("The response of AccessRequestApprovalsApi->list_access_request_approvers:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccessRequestApprovalsApi->list_access_request_approvers: %s\n" % e) ``` @@ -344,7 +340,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.access_request_approvals_api import AccessRequestApprovalsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.completed_approval import CompletedApproval -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -364,7 +359,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccessRequestApprovalsApi(api_client).list_completed_approvals(owner_id, limit, offset, count, filters, sorters) print("The response of AccessRequestApprovalsApi->list_completed_approvals:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccessRequestApprovalsApi->list_completed_approvals: %s\n" % e) ``` @@ -413,7 +408,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.access_request_approvals_api import AccessRequestApprovalsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.pending_approval import PendingApproval -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -433,7 +427,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccessRequestApprovalsApi(api_client).list_pending_approvals(owner_id, limit, offset, count, filters, sorters) print("The response of AccessRequestApprovalsApi->list_pending_approvals:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccessRequestApprovalsApi->list_pending_approvals: %s\n" % e) ``` @@ -479,7 +473,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.access_request_approvals_api import AccessRequestApprovalsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.comment_dto import CommentDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -503,7 +496,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccessRequestApprovalsApi(api_client).reject_access_request(approval_id, new_comment_dto) print("The response of AccessRequestApprovalsApi->reject_access_request:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccessRequestApprovalsApi->reject_access_request: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/AccessRequestIdentityMetricsApi.md b/sailpoint/v2024/docs/Methods/AccessRequestIdentityMetricsApi.md index a8c48a97a..b05f8566e 100644 --- a/sailpoint/v2024/docs/Methods/AccessRequestIdentityMetricsApi.md +++ b/sailpoint/v2024/docs/Methods/AccessRequestIdentityMetricsApi.md @@ -58,7 +58,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.access_request_identity_metrics_api import AccessRequestIdentityMetricsApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -75,7 +74,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccessRequestIdentityMetricsApi(api_client).get_access_request_identity_metrics(identity_id, requested_object_id, type) print("The response of AccessRequestIdentityMetricsApi->get_access_request_identity_metrics:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccessRequestIdentityMetricsApi->get_access_request_identity_metrics: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/AccessRequestsApi.md b/sailpoint/v2024/docs/Methods/AccessRequestsApi.md index 058010428..a60efea45 100644 --- a/sailpoint/v2024/docs/Methods/AccessRequestsApi.md +++ b/sailpoint/v2024/docs/Methods/AccessRequestsApi.md @@ -77,7 +77,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.access_requests_api import AccessRequestsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.bulk_approve_access_request import BulkApproveAccessRequest -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -95,7 +94,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccessRequestsApi(api_client).approve_bulk_access_request(new_bulk_approve_access_request) print("The response of AccessRequestsApi->approve_bulk_access_request:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccessRequestsApi->approve_bulk_access_request: %s\n" % e) ``` @@ -141,7 +140,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.access_requests_api import AccessRequestsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.cancel_access_request import CancelAccessRequest -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -159,7 +157,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccessRequestsApi(api_client).cancel_access_request(new_cancel_access_request) print("The response of AccessRequestsApi->cancel_access_request:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccessRequestsApi->cancel_access_request: %s\n" % e) ``` @@ -205,7 +203,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.access_requests_api import AccessRequestsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.bulk_cancel_access_request import BulkCancelAccessRequest -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -223,7 +220,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccessRequestsApi(api_client).cancel_access_request_in_bulk(new_bulk_cancel_access_request) print("The response of AccessRequestsApi->cancel_access_request_in_bulk:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccessRequestsApi->cancel_access_request_in_bulk: %s\n" % e) ``` @@ -290,7 +287,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.access_requests_api import AccessRequestsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.close_access_request import CloseAccessRequest -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -312,7 +308,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccessRequestsApi(api_client).close_access_request(x_sail_point_experimental, new_close_access_request) print("The response of AccessRequestsApi->close_access_request:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccessRequestsApi->close_access_request: %s\n" % e) ``` @@ -387,7 +383,6 @@ from sailpoint.v2024.api.access_requests_api import AccessRequestsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.access_request import AccessRequest from sailpoint.v2024.models.access_request_response import AccessRequestResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -455,7 +450,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccessRequestsApi(api_client).create_access_request(new_access_request) print("The response of AccessRequestsApi->create_access_request:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccessRequestsApi->create_access_request: %s\n" % e) ``` @@ -496,7 +491,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.access_requests_api import AccessRequestsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.access_request_config import AccessRequestConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -510,7 +504,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccessRequestsApi(api_client).get_access_request_config() print("The response of AccessRequestsApi->get_access_request_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccessRequestsApi->get_access_request_config: %s\n" % e) ``` @@ -565,7 +559,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.access_requests_api import AccessRequestsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.requested_item_status import RequestedItemStatus -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -589,7 +582,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccessRequestsApi(api_client).list_access_request_status(requested_for, requested_by, regarding_identity, assigned_to, count, limit, offset, filters, sorters, request_state) print("The response of AccessRequestsApi->list_access_request_status:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccessRequestsApi->list_access_request_status: %s\n" % e) ``` @@ -643,7 +636,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.access_requests_api import AccessRequestsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.access_request_admin_item_status import AccessRequestAdminItemStatus -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -667,7 +659,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccessRequestsApi(api_client).list_administrators_access_request_status(requested_for, requested_by, regarding_identity, assigned_to, count, limit, offset, filters, sorters, request_state) print("The response of AccessRequestsApi->list_administrators_access_request_status:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccessRequestsApi->list_administrators_access_request_status: %s\n" % e) ``` @@ -711,7 +703,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.access_requests_api import AccessRequestsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.access_request_config import AccessRequestConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -751,7 +742,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccessRequestsApi(api_client).set_access_request_config(new_access_request_config) print("The response of AccessRequestsApi->set_access_request_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccessRequestsApi->set_access_request_config: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/AccountActivitiesApi.md b/sailpoint/v2024/docs/Methods/AccountActivitiesApi.md index 8e80be0b1..da47f4440 100644 --- a/sailpoint/v2024/docs/Methods/AccountActivitiesApi.md +++ b/sailpoint/v2024/docs/Methods/AccountActivitiesApi.md @@ -88,7 +88,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.account_activities_api import AccountActivitiesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.account_activity import AccountActivity -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -103,7 +102,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccountActivitiesApi(api_client).get_account_activity(id) print("The response of AccountActivitiesApi->get_account_activity:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccountActivitiesApi->get_account_activity: %s\n" % e) ``` @@ -154,7 +153,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.account_activities_api import AccountActivitiesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.account_activity import AccountActivity -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -176,7 +174,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccountActivitiesApi(api_client).list_account_activities(requested_for, requested_by, regarding_identity, limit, offset, count, filters, sorters) print("The response of AccountActivitiesApi->list_account_activities:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccountActivitiesApi->list_account_activities: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/AccountAggregationsApi.md b/sailpoint/v2024/docs/Methods/AccountAggregationsApi.md index a548db495..0b66de402 100644 --- a/sailpoint/v2024/docs/Methods/AccountAggregationsApi.md +++ b/sailpoint/v2024/docs/Methods/AccountAggregationsApi.md @@ -82,7 +82,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.account_aggregations_api import AccountAggregationsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.account_aggregation_status import AccountAggregationStatus -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -99,7 +98,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccountAggregationsApi(api_client).get_account_aggregation_status(id, x_sail_point_experimental) print("The response of AccountAggregationsApi->get_account_aggregation_status:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccountAggregationsApi->get_account_aggregation_status: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/AccountUsagesApi.md b/sailpoint/v2024/docs/Methods/AccountUsagesApi.md index 84c5c5c53..9db339dec 100644 --- a/sailpoint/v2024/docs/Methods/AccountUsagesApi.md +++ b/sailpoint/v2024/docs/Methods/AccountUsagesApi.md @@ -60,7 +60,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.account_usages_api import AccountUsagesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.account_usage import AccountUsage -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -79,7 +78,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccountUsagesApi(api_client).get_usages_by_account_id(account_id, limit, offset, count, sorters) print("The response of AccountUsagesApi->get_usages_by_account_id:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccountUsagesApi->get_usages_by_account_id: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/AccountsApi.md b/sailpoint/v2024/docs/Methods/AccountsApi.md index 6fca826cb..5468428d5 100644 --- a/sailpoint/v2024/docs/Methods/AccountsApi.md +++ b/sailpoint/v2024/docs/Methods/AccountsApi.md @@ -107,7 +107,6 @@ from sailpoint.v2024.api.accounts_api import AccountsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.account_attributes_create import AccountAttributesCreate from sailpoint.v2024.models.accounts_async_result import AccountsAsyncResult -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -131,7 +130,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccountsApi(api_client).create_account(new_account_attributes_create) print("The response of AccountsApi->create_account:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccountsApi->create_account: %s\n" % e) ``` @@ -179,7 +178,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.accounts_api import AccountsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.accounts_async_result import AccountsAsyncResult -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -194,7 +192,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccountsApi(api_client).delete_account(id) print("The response of AccountsApi->delete_account:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccountsApi->delete_account: %s\n" % e) ``` @@ -256,7 +254,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.accounts_api import AccountsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.task_result_dto import TaskResultDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -273,7 +270,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccountsApi(api_client).delete_account_async(id, x_sail_point_experimental) print("The response of AccountsApi->delete_account_async:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccountsApi->delete_account_async: %s\n" % e) ``` @@ -320,7 +317,6 @@ from sailpoint.v2024.api.accounts_api import AccountsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.account_toggle_request import AccountToggleRequest from sailpoint.v2024.models.accounts_async_result import AccountsAsyncResult -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -339,7 +335,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccountsApi(api_client).disable_account(id, new_account_toggle_request) print("The response of AccountsApi->disable_account:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccountsApi->disable_account: %s\n" % e) ``` @@ -395,7 +391,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.accounts_api import AccountsApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -412,7 +407,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccountsApi(api_client).disable_account_for_identity(id, x_sail_point_experimental) print("The response of AccountsApi->disable_account_for_identity:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccountsApi->disable_account_for_identity: %s\n" % e) ``` @@ -469,7 +464,6 @@ from sailpoint.v2024.api.accounts_api import AccountsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.bulk_identities_accounts_response import BulkIdentitiesAccountsResponse from sailpoint.v2024.models.identities_accounts_bulk_request import IdentitiesAccountsBulkRequest -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -488,7 +482,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccountsApi(api_client).disable_accounts_for_identities(x_sail_point_experimental, new_identities_accounts_bulk_request) print("The response of AccountsApi->disable_accounts_for_identities:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccountsApi->disable_accounts_for_identities: %s\n" % e) ``` @@ -535,7 +529,6 @@ from sailpoint.v2024.api.accounts_api import AccountsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.account_toggle_request import AccountToggleRequest from sailpoint.v2024.models.accounts_async_result import AccountsAsyncResult -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -554,7 +547,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccountsApi(api_client).enable_account(id, new_account_toggle_request) print("The response of AccountsApi->enable_account:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccountsApi->enable_account: %s\n" % e) ``` @@ -610,7 +603,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.accounts_api import AccountsApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -627,7 +619,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccountsApi(api_client).enable_account_for_identity(id, x_sail_point_experimental) print("The response of AccountsApi->enable_account_for_identity:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccountsApi->enable_account_for_identity: %s\n" % e) ``` @@ -684,7 +676,6 @@ from sailpoint.v2024.api.accounts_api import AccountsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.bulk_identities_accounts_response import BulkIdentitiesAccountsResponse from sailpoint.v2024.models.identities_accounts_bulk_request import IdentitiesAccountsBulkRequest -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -703,7 +694,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccountsApi(api_client).enable_accounts_for_identities(x_sail_point_experimental, new_identities_accounts_bulk_request) print("The response of AccountsApi->enable_accounts_for_identities:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccountsApi->enable_accounts_for_identities: %s\n" % e) ``` @@ -748,7 +739,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.accounts_api import AccountsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.account import Account -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -763,7 +753,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccountsApi(api_client).get_account(id) print("The response of AccountsApi->get_account:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccountsApi->get_account: %s\n" % e) ``` @@ -811,7 +801,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.accounts_api import AccountsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.entitlement import Entitlement -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -829,7 +818,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccountsApi(api_client).get_account_entitlements(id, limit, offset, count) print("The response of AccountsApi->get_account_entitlements:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccountsApi->get_account_entitlements: %s\n" % e) ``` @@ -878,7 +867,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.accounts_api import AccountsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.account import Account -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -898,7 +886,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccountsApi(api_client).list_accounts(limit, offset, count, detail_level, filters, sorters) print("The response of AccountsApi->list_accounts:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccountsApi->list_accounts: %s\n" % e) ``` @@ -950,7 +938,6 @@ from sailpoint.v2024.api.accounts_api import AccountsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.account_attributes import AccountAttributes from sailpoint.v2024.models.accounts_async_result import AccountsAsyncResult -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -974,7 +961,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccountsApi(api_client).put_account(id, new_account_attributes) print("The response of AccountsApi->put_account:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccountsApi->put_account: %s\n" % e) ``` @@ -1019,7 +1006,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.accounts_api import AccountsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.accounts_async_result import AccountsAsyncResult -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1034,7 +1020,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccountsApi(api_client).submit_reload_account(id) print("The response of AccountsApi->submit_reload_account:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccountsApi->submit_reload_account: %s\n" % e) ``` @@ -1082,7 +1068,6 @@ from sailpoint.v2024.api.accounts_api import AccountsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.account_unlock_request import AccountUnlockRequest from sailpoint.v2024.models.accounts_async_result import AccountsAsyncResult -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1102,7 +1087,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccountsApi(api_client).unlock_account(id, new_account_unlock_request) print("The response of AccountsApi->unlock_account:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccountsApi->unlock_account: %s\n" % e) ``` @@ -1157,7 +1142,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.accounts_api import AccountsApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1173,7 +1157,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccountsApi(api_client).update_account(id, new_request_body) print("The response of AccountsApi->update_account:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccountsApi->update_account: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/ApplicationDiscoveryApi.md b/sailpoint/v2024/docs/Methods/ApplicationDiscoveryApi.md index a86e6b3b2..1cb9534cc 100644 --- a/sailpoint/v2024/docs/Methods/ApplicationDiscoveryApi.md +++ b/sailpoint/v2024/docs/Methods/ApplicationDiscoveryApi.md @@ -62,7 +62,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.application_discovery_api import ApplicationDiscoveryApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.get_discovered_applications200_response_inner import GetDiscoveredApplications200ResponseInner -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -81,7 +80,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ApplicationDiscoveryApi(api_client).get_discovered_applications(limit, offset, detail, filter, sorters) print("The response of ApplicationDiscoveryApi->get_discovered_applications:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ApplicationDiscoveryApi->get_discovered_applications: %s\n" % e) ``` @@ -125,7 +124,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.application_discovery_api import ApplicationDiscoveryApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.manual_discover_applications_template import ManualDiscoverApplicationsTemplate -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -139,7 +137,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ApplicationDiscoveryApi(api_client).get_manual_discover_applications_csv_template() print("The response of ApplicationDiscoveryApi->get_manual_discover_applications_csv_template:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ApplicationDiscoveryApi->get_manual_discover_applications_csv_template: %s\n" % e) ``` @@ -183,7 +181,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.application_discovery_api import ApplicationDiscoveryApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() diff --git a/sailpoint/v2024/docs/Methods/ApprovalsApi.md b/sailpoint/v2024/docs/Methods/ApprovalsApi.md index 03a201622..790a34a5d 100644 --- a/sailpoint/v2024/docs/Methods/ApprovalsApi.md +++ b/sailpoint/v2024/docs/Methods/ApprovalsApi.md @@ -69,7 +69,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.approvals_api import ApprovalsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.approval import Approval -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -86,7 +85,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ApprovalsApi(api_client).get_approval(id, x_sail_point_experimental) print("The response of ApprovalsApi->get_approval:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ApprovalsApi->get_approval: %s\n" % e) ``` @@ -145,7 +144,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.approvals_api import ApprovalsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.approval import Approval -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -164,7 +162,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ApprovalsApi(api_client).get_approvals(x_sail_point_experimental, mine, requester_id, filters) print("The response of ApprovalsApi->get_approvals:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ApprovalsApi->get_approvals: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/AppsApi.md b/sailpoint/v2024/docs/Methods/AppsApi.md index d244d7dd0..f43926807 100644 --- a/sailpoint/v2024/docs/Methods/AppsApi.md +++ b/sailpoint/v2024/docs/Methods/AppsApi.md @@ -81,7 +81,6 @@ from sailpoint.v2024.api.apps_api import AppsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.source_app import SourceApp from sailpoint.v2024.models.source_app_create_dto import SourceAppCreateDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -107,7 +106,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AppsApi(api_client).create_source_app(x_sail_point_experimental, new_source_app_create_dto) print("The response of AppsApi->create_source_app:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AppsApi->create_source_app: %s\n" % e) ``` @@ -165,7 +164,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.apps_api import AppsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.access_profile_details import AccessProfileDetails -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -184,7 +182,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AppsApi(api_client).delete_access_profiles_from_source_app_by_bulk(id, x_sail_point_experimental, new_request_body, limit) print("The response of AppsApi->delete_access_profiles_from_source_app_by_bulk:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AppsApi->delete_access_profiles_from_source_app_by_bulk: %s\n" % e) ``` @@ -240,7 +238,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.apps_api import AppsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.source_app import SourceApp -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -257,7 +254,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AppsApi(api_client).delete_source_app(id, x_sail_point_experimental) print("The response of AppsApi->delete_source_app:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AppsApi->delete_source_app: %s\n" % e) ``` @@ -314,7 +311,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.apps_api import AppsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.source_app import SourceApp -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -331,7 +327,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AppsApi(api_client).get_source_app(id, x_sail_point_experimental) print("The response of AppsApi->get_source_app:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AppsApi->get_source_app: %s\n" % e) ``` @@ -390,7 +386,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.apps_api import AppsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.access_profile_details import AccessProfileDetails -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -410,7 +405,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AppsApi(api_client).list_access_profiles_for_source_app(id, x_sail_point_experimental, limit, offset, filters) print("The response of AppsApi->list_access_profiles_for_source_app:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AppsApi->list_access_profiles_for_source_app: %s\n" % e) ``` @@ -470,7 +465,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.apps_api import AppsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.source_app import SourceApp -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -491,7 +485,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AppsApi(api_client).list_all_source_app(x_sail_point_experimental, limit, count, offset, sorters, filters) print("The response of AppsApi->list_all_source_app:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AppsApi->list_all_source_app: %s\n" % e) ``` @@ -551,7 +545,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.apps_api import AppsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.user_app import UserApp -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -571,7 +564,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AppsApi(api_client).list_all_user_apps(filters, x_sail_point_experimental, limit, count, offset) print("The response of AppsApi->list_all_user_apps:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AppsApi->list_all_user_apps: %s\n" % e) ``` @@ -631,7 +624,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.apps_api import AppsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.source_app import SourceApp -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -652,7 +644,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AppsApi(api_client).list_assigned_source_app(x_sail_point_experimental, limit, count, offset, sorters, filters) print("The response of AppsApi->list_assigned_source_app:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AppsApi->list_assigned_source_app: %s\n" % e) ``` @@ -710,7 +702,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.apps_api import AppsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.app_account_details import AppAccountDetails -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -729,7 +720,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AppsApi(api_client).list_available_accounts_for_user_app(id, x_sail_point_experimental, limit, count) print("The response of AppsApi->list_available_accounts_for_user_app:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AppsApi->list_available_accounts_for_user_app: %s\n" % e) ``` @@ -789,7 +780,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.apps_api import AppsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.source_app import SourceApp -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -810,7 +800,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AppsApi(api_client).list_available_source_apps(x_sail_point_experimental, limit, count, offset, sorters, filters) print("The response of AppsApi->list_available_source_apps:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AppsApi->list_available_source_apps: %s\n" % e) ``` @@ -869,7 +859,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.apps_api import AppsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.user_app import UserApp -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -889,7 +878,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AppsApi(api_client).list_owned_user_apps(x_sail_point_experimental, limit, count, offset, filters) print("The response of AppsApi->list_owned_user_apps:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AppsApi->list_owned_user_apps: %s\n" % e) ``` @@ -950,7 +939,6 @@ from sailpoint.v2024.api.apps_api import AppsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.json_patch_operation import JsonPatchOperation from sailpoint.v2024.models.source_app_patch_dto import SourceAppPatchDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -968,7 +956,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AppsApi(api_client).patch_source_app(id, x_sail_point_experimental, new_json_patch_operation) print("The response of AppsApi->patch_source_app:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AppsApi->patch_source_app: %s\n" % e) ``` @@ -1028,7 +1016,6 @@ from sailpoint.v2024.api.apps_api import AppsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.json_patch_operation import JsonPatchOperation from sailpoint.v2024.models.user_app import UserApp -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1046,7 +1033,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AppsApi(api_client).patch_user_app(id, x_sail_point_experimental, new_json_patch_operation) print("The response of AppsApi->patch_user_app:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AppsApi->patch_user_app: %s\n" % e) ``` @@ -1105,7 +1092,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.apps_api import AppsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.source_app_bulk_update_request import SourceAppBulkUpdateRequest -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() diff --git a/sailpoint/v2024/docs/Methods/AuthProfileApi.md b/sailpoint/v2024/docs/Methods/AuthProfileApi.md index 51782d0de..f0db8d81d 100644 --- a/sailpoint/v2024/docs/Methods/AuthProfileApi.md +++ b/sailpoint/v2024/docs/Methods/AuthProfileApi.md @@ -74,7 +74,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.auth_profile_api import AuthProfileApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.auth_profile import AuthProfile -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -91,7 +90,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AuthProfileApi(api_client).get_profile_config(x_sail_point_experimental, id) print("The response of AuthProfileApi->get_profile_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AuthProfileApi->get_profile_config: %s\n" % e) ``` @@ -146,7 +145,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.auth_profile_api import AuthProfileApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.auth_profile_summary import AuthProfileSummary -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -162,7 +160,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AuthProfileApi(api_client).get_profile_config_list(x_sail_point_experimental) print("The response of AuthProfileApi->get_profile_config_list:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AuthProfileApi->get_profile_config_list: %s\n" % e) ``` @@ -221,7 +219,6 @@ from sailpoint.v2024.api.auth_profile_api import AuthProfileApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.auth_profile import AuthProfile from sailpoint.v2024.models.json_patch_operation import JsonPatchOperation -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -239,7 +236,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AuthProfileApi(api_client).patch_profile_config(id, x_sail_point_experimental, new_json_patch_operation) print("The response of AuthProfileApi->patch_profile_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AuthProfileApi->patch_profile_config: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/AuthUsersApi.md b/sailpoint/v2024/docs/Methods/AuthUsersApi.md index 86bb65f9b..8a30743fd 100644 --- a/sailpoint/v2024/docs/Methods/AuthUsersApi.md +++ b/sailpoint/v2024/docs/Methods/AuthUsersApi.md @@ -60,7 +60,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.auth_users_api import AuthUsersApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.auth_user import AuthUser -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -75,7 +74,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AuthUsersApi(api_client).get_auth_user(id) print("The response of AuthUsersApi->get_auth_user:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AuthUsersApi->get_auth_user: %s\n" % e) ``` @@ -126,7 +125,6 @@ from sailpoint.v2024.api.auth_users_api import AuthUsersApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.auth_user import AuthUser from sailpoint.v2024.models.json_patch_operation import JsonPatchOperation -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -142,7 +140,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AuthUsersApi(api_client).patch_auth_user(id, new_json_patch_operation) print("The response of AuthUsersApi->patch_auth_user:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AuthUsersApi->patch_auth_user: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/BrandingApi.md b/sailpoint/v2024/docs/Methods/BrandingApi.md index fa6a3646e..c00082fa7 100644 --- a/sailpoint/v2024/docs/Methods/BrandingApi.md +++ b/sailpoint/v2024/docs/Methods/BrandingApi.md @@ -69,7 +69,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.branding_api import BrandingApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.branding_item import BrandingItem -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -91,7 +90,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = BrandingApi(api_client).create_branding_item(name, product_name, action_button_color, active_link_color, navigation_color, email_from_address, login_informational_message, file_standard) print("The response of BrandingApi->create_branding_item:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling BrandingApi->create_branding_item: %s\n" % e) ``` @@ -135,7 +134,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.branding_api import BrandingApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -193,7 +191,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.branding_api import BrandingApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.branding_item import BrandingItem -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -208,7 +205,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = BrandingApi(api_client).get_branding(name) print("The response of BrandingApi->get_branding:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling BrandingApi->get_branding: %s\n" % e) ``` @@ -249,7 +246,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.branding_api import BrandingApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.branding_item import BrandingItem -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -263,7 +259,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = BrandingApi(api_client).get_branding_list() print("The response of BrandingApi->get_branding_list:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling BrandingApi->get_branding_list: %s\n" % e) ``` @@ -316,7 +312,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.branding_api import BrandingApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.branding_item import BrandingItem -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -339,7 +334,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = BrandingApi(api_client).set_branding_item(name, name2, product_name, action_button_color, active_link_color, navigation_color, email_from_address, login_informational_message, file_standard) print("The response of BrandingApi->set_branding_item:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling BrandingApi->set_branding_item: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/CertificationCampaignFiltersApi.md b/sailpoint/v2024/docs/Methods/CertificationCampaignFiltersApi.md index 2880f1601..47376e371 100644 --- a/sailpoint/v2024/docs/Methods/CertificationCampaignFiltersApi.md +++ b/sailpoint/v2024/docs/Methods/CertificationCampaignFiltersApi.md @@ -84,7 +84,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.certification_campaign_filters_api import CertificationCampaignFiltersApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.campaign_filter_details import CampaignFilterDetails -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -116,7 +115,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationCampaignFiltersApi(api_client).create_campaign_filter(new_campaign_filter_details) print("The response of CertificationCampaignFiltersApi->create_campaign_filter:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationCampaignFiltersApi->create_campaign_filter: %s\n" % e) ``` @@ -160,7 +159,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.certification_campaign_filters_api import CertificationCampaignFiltersApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -218,7 +216,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.certification_campaign_filters_api import CertificationCampaignFiltersApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.campaign_filter_details import CampaignFilterDetails -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -233,7 +230,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationCampaignFiltersApi(api_client).get_campaign_filter_by_id(id) print("The response of CertificationCampaignFiltersApi->get_campaign_filter_by_id:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationCampaignFiltersApi->get_campaign_filter_by_id: %s\n" % e) ``` @@ -279,7 +276,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.certification_campaign_filters_api import CertificationCampaignFiltersApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.list_campaign_filters200_response import ListCampaignFilters200Response -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -296,7 +292,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationCampaignFiltersApi(api_client).list_campaign_filters(limit, start, include_system_filters) print("The response of CertificationCampaignFiltersApi->list_campaign_filters:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationCampaignFiltersApi->list_campaign_filters: %s\n" % e) ``` @@ -341,7 +337,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.certification_campaign_filters_api import CertificationCampaignFiltersApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.campaign_filter_details import CampaignFilterDetails -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -374,7 +369,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationCampaignFiltersApi(api_client).update_campaign_filter(filter_id, new_campaign_filter_details) print("The response of CertificationCampaignFiltersApi->update_campaign_filter:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationCampaignFiltersApi->update_campaign_filter: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/CertificationCampaignsApi.md b/sailpoint/v2024/docs/Methods/CertificationCampaignsApi.md index 36928814d..d87f8eb8e 100644 --- a/sailpoint/v2024/docs/Methods/CertificationCampaignsApi.md +++ b/sailpoint/v2024/docs/Methods/CertificationCampaignsApi.md @@ -151,7 +151,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.campaign_complete_options import CampaignCompleteOptions -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -169,7 +168,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationCampaignsApi(api_client).complete_campaign(id, new_campaign_complete_options) print("The response of CertificationCampaignsApi->complete_campaign:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationCampaignsApi->complete_campaign: %s\n" % e) ``` @@ -214,7 +213,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.campaign import Campaign -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -338,7 +336,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationCampaignsApi(api_client).create_campaign(new_campaign) print("The response of CertificationCampaignsApi->create_campaign:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationCampaignsApi->create_campaign: %s\n" % e) ``` @@ -383,7 +381,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.campaign_template import CampaignTemplate -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -522,7 +519,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationCampaignsApi(api_client).create_campaign_template(new_campaign_template) print("The response of CertificationCampaignsApi->create_campaign_template:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationCampaignsApi->create_campaign_template: %s\n" % e) ``` @@ -567,7 +564,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -625,7 +621,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -684,7 +679,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.campaigns_delete_request import CampaignsDeleteRequest -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -701,7 +695,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationCampaignsApi(api_client).delete_campaigns(new_campaigns_delete_request) print("The response of CertificationCampaignsApi->delete_campaigns:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationCampaignsApi->delete_campaigns: %s\n" % e) ``` @@ -751,7 +745,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.get_active_campaigns200_response_inner import GetActiveCampaigns200ResponseInner -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -771,7 +764,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationCampaignsApi(api_client).get_active_campaigns(detail, limit, offset, count, filters, sorters) print("The response of CertificationCampaignsApi->get_active_campaigns:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationCampaignsApi->get_active_campaigns: %s\n" % e) ``` @@ -818,7 +811,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.get_active_campaigns200_response_inner import GetActiveCampaigns200ResponseInner -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -834,7 +826,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationCampaignsApi(api_client).get_campaign(id, detail) print("The response of CertificationCampaignsApi->get_campaign:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationCampaignsApi->get_campaign: %s\n" % e) ``` @@ -880,7 +872,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.campaign_report import CampaignReport -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -895,7 +886,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationCampaignsApi(api_client).get_campaign_reports(id) print("The response of CertificationCampaignsApi->get_campaign_reports:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationCampaignsApi->get_campaign_reports: %s\n" % e) ``` @@ -937,7 +928,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.campaign_reports_config import CampaignReportsConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -951,7 +941,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationCampaignsApi(api_client).get_campaign_reports_config() print("The response of CertificationCampaignsApi->get_campaign_reports_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationCampaignsApi->get_campaign_reports_config: %s\n" % e) ``` @@ -997,7 +987,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.campaign_template import CampaignTemplate -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1012,7 +1001,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationCampaignsApi(api_client).get_campaign_template(id) print("The response of CertificationCampaignsApi->get_campaign_template:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationCampaignsApi->get_campaign_template: %s\n" % e) ``` @@ -1058,7 +1047,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.schedule import Schedule -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1073,7 +1061,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationCampaignsApi(api_client).get_campaign_template_schedule(id) print("The response of CertificationCampaignsApi->get_campaign_template_schedule:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationCampaignsApi->get_campaign_template_schedule: %s\n" % e) ``` @@ -1124,7 +1112,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.campaign_template import CampaignTemplate -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1143,7 +1130,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationCampaignsApi(api_client).get_campaign_templates(limit, offset, count, sorters, filters) print("The response of CertificationCampaignsApi->get_campaign_templates:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationCampaignsApi->get_campaign_templates: %s\n" % e) ``` @@ -1191,7 +1178,6 @@ from sailpoint.v2024.api.certification_campaigns_api import CertificationCampaig from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.admin_review_reassign import AdminReviewReassign from sailpoint.v2024.models.certification_task import CertificationTask -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1214,7 +1200,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationCampaignsApi(api_client).move(id, new_admin_review_reassign) print("The response of CertificationCampaignsApi->move:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationCampaignsApi->move: %s\n" % e) ``` @@ -1262,7 +1248,6 @@ from sailpoint.v2024.api.certification_campaigns_api import CertificationCampaig from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.campaign_template import CampaignTemplate from sailpoint.v2024.models.json_patch_operation import JsonPatchOperation -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1278,7 +1263,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationCampaignsApi(api_client).patch_campaign_template(id, new_json_patch_operation) print("The response of CertificationCampaignsApi->patch_campaign_template:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationCampaignsApi->patch_campaign_template: %s\n" % e) ``` @@ -1323,7 +1308,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.campaign_reports_config import CampaignReportsConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1340,7 +1324,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationCampaignsApi(api_client).set_campaign_reports_config(new_campaign_reports_config) print("The response of CertificationCampaignsApi->set_campaign_reports_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationCampaignsApi->set_campaign_reports_config: %s\n" % e) ``` @@ -1387,7 +1371,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.schedule import Schedule -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1467,7 +1450,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.activate_campaign_options import ActivateCampaignOptions -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1485,7 +1467,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationCampaignsApi(api_client).start_campaign(id, new_activate_campaign_options) print("The response of CertificationCampaignsApi->start_campaign:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationCampaignsApi->start_campaign: %s\n" % e) ``` @@ -1530,7 +1512,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1545,7 +1526,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationCampaignsApi(api_client).start_campaign_remediation_scan(id) print("The response of CertificationCampaignsApi->start_campaign_remediation_scan:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationCampaignsApi->start_campaign_remediation_scan: %s\n" % e) ``` @@ -1592,7 +1573,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.report_type import ReportType -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1608,7 +1588,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationCampaignsApi(api_client).start_campaign_report(id, type) print("The response of CertificationCampaignsApi->start_campaign_report:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationCampaignsApi->start_campaign_report: %s\n" % e) ``` @@ -1663,7 +1643,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.campaign_reference import CampaignReference -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1678,7 +1657,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationCampaignsApi(api_client).start_generate_campaign_template(id) print("The response of CertificationCampaignsApi->start_generate_campaign_template:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationCampaignsApi->start_generate_campaign_template: %s\n" % e) ``` @@ -1726,7 +1705,6 @@ from sailpoint.v2024.api.certification_campaigns_api import CertificationCampaig from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.json_patch_operation import JsonPatchOperation from sailpoint.v2024.models.slim_campaign import SlimCampaign -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1742,7 +1720,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationCampaignsApi(api_client).update_campaign(id, new_json_patch_operation) print("The response of CertificationCampaignsApi->update_campaign:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationCampaignsApi->update_campaign: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/CertificationSummariesApi.md b/sailpoint/v2024/docs/Methods/CertificationSummariesApi.md index fc1876e07..b142498c4 100644 --- a/sailpoint/v2024/docs/Methods/CertificationSummariesApi.md +++ b/sailpoint/v2024/docs/Methods/CertificationSummariesApi.md @@ -77,7 +77,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.certification_summaries_api import CertificationSummariesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.access_summary import AccessSummary -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -98,7 +97,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationSummariesApi(api_client).get_identity_access_summaries(id, type, limit, offset, count, filters, sorters) print("The response of CertificationSummariesApi->get_identity_access_summaries:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationSummariesApi->get_identity_access_summaries: %s\n" % e) ``` @@ -144,7 +143,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.certification_summaries_api import CertificationSummariesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.identity_cert_decision_summary import IdentityCertDecisionSummary -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -160,7 +158,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationSummariesApi(api_client).get_identity_decision_summary(id, filters) print("The response of CertificationSummariesApi->get_identity_decision_summary:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationSummariesApi->get_identity_decision_summary: %s\n" % e) ``` @@ -210,7 +208,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.certification_summaries_api import CertificationSummariesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.certification_identity_summary import CertificationIdentitySummary -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -230,7 +227,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationSummariesApi(api_client).get_identity_summaries(id, limit, offset, count, filters, sorters) print("The response of CertificationSummariesApi->get_identity_summaries:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationSummariesApi->get_identity_summaries: %s\n" % e) ``` @@ -276,7 +273,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.certification_summaries_api import CertificationSummariesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.certification_identity_summary import CertificationIdentitySummary -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -292,7 +288,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationSummariesApi(api_client).get_identity_summary(id, identity_summary_id) print("The response of CertificationSummariesApi->get_identity_summary:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationSummariesApi->get_identity_summary: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/CertificationsApi.md b/sailpoint/v2024/docs/Methods/CertificationsApi.md index c5d566fe5..37c6904dd 100644 --- a/sailpoint/v2024/docs/Methods/CertificationsApi.md +++ b/sailpoint/v2024/docs/Methods/CertificationsApi.md @@ -87,7 +87,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.certifications_api import CertificationsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.certification_task import CertificationTask -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -102,7 +101,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationsApi(api_client).get_certification_task(id) print("The response of CertificationsApi->get_certification_task:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationsApi->get_certification_task: %s\n" % e) ``` @@ -147,7 +146,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.certifications_api import CertificationsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.identity_certification_dto import IdentityCertificationDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -162,7 +160,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationsApi(api_client).get_identity_certification(id) print("The response of CertificationsApi->get_identity_certification:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationsApi->get_identity_certification: %s\n" % e) ``` @@ -212,7 +210,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.certifications_api import CertificationsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.permission_dto import PermissionDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -232,7 +229,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationsApi(api_client).get_identity_certification_item_permissions(certification_id, item_id, filters, limit, offset, count) print("The response of CertificationsApi->get_identity_certification_item_permissions:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationsApi->get_identity_certification_item_permissions: %s\n" % e) ``` @@ -281,7 +278,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.certifications_api import CertificationsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.certification_task import CertificationTask -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -300,7 +296,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationsApi(api_client).get_pending_certification_tasks(reviewer_identity, limit, offset, count, filters) print("The response of CertificationsApi->get_pending_certification_tasks:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationsApi->get_pending_certification_tasks: %s\n" % e) ``` @@ -350,7 +346,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.certifications_api import CertificationsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.identity_reference_with_name_and_email import IdentityReferenceWithNameAndEmail -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -370,7 +365,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationsApi(api_client).list_certification_reviewers(id, limit, offset, count, filters, sorters) print("The response of CertificationsApi->list_certification_reviewers:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationsApi->list_certification_reviewers: %s\n" % e) ``` @@ -423,7 +418,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.certifications_api import CertificationsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.access_review_item import AccessReviewItem -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -446,7 +440,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationsApi(api_client).list_identity_access_review_items(id, limit, offset, count, filters, sorters, entitlements, access_profiles, roles) print("The response of CertificationsApi->list_identity_access_review_items:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationsApi->list_identity_access_review_items: %s\n" % e) ``` @@ -495,7 +489,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.certifications_api import CertificationsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.identity_certification_dto import IdentityCertificationDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -515,7 +508,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationsApi(api_client).list_identity_certifications(reviewer_identity, limit, offset, count, filters, sorters) print("The response of CertificationsApi->list_identity_certifications:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationsApi->list_identity_certifications: %s\n" % e) ``` @@ -562,7 +555,6 @@ from sailpoint.v2024.api.certifications_api import CertificationsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.identity_certification_dto import IdentityCertificationDto from sailpoint.v2024.models.review_decision import ReviewDecision -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -578,7 +570,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationsApi(api_client).make_identity_decision(id, new_review_decision) print("The response of CertificationsApi->make_identity_decision:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationsApi->make_identity_decision: %s\n" % e) ``` @@ -625,7 +617,6 @@ from sailpoint.v2024.api.certifications_api import CertificationsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.identity_certification_dto import IdentityCertificationDto from sailpoint.v2024.models.review_reassign import ReviewReassign -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -651,7 +642,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationsApi(api_client).reassign_identity_certifications(id, new_review_reassign) print("The response of CertificationsApi->reassign_identity_certifications:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationsApi->reassign_identity_certifications: %s\n" % e) ``` @@ -696,7 +687,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.certifications_api import CertificationsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.identity_certification_dto import IdentityCertificationDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -711,7 +701,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationsApi(api_client).sign_off_identity_certification(id) print("The response of CertificationsApi->sign_off_identity_certification:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationsApi->sign_off_identity_certification: %s\n" % e) ``` @@ -763,7 +753,6 @@ from sailpoint.v2024.api.certifications_api import CertificationsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.certification_task import CertificationTask from sailpoint.v2024.models.review_reassign import ReviewReassign -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -789,7 +778,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationsApi(api_client).submit_reassign_certs_async(id, new_review_reassign) print("The response of CertificationsApi->submit_reassign_certs_async:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationsApi->submit_reassign_certs_async: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/ConfigurationHubApi.md b/sailpoint/v2024/docs/Methods/ConfigurationHubApi.md index 85d5fea20..43653e8e1 100644 --- a/sailpoint/v2024/docs/Methods/ConfigurationHubApi.md +++ b/sailpoint/v2024/docs/Methods/ConfigurationHubApi.md @@ -80,7 +80,6 @@ from sailpoint.v2024.api.configuration_hub_api import ConfigurationHubApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.deploy_request import DeployRequest from sailpoint.v2024.models.deploy_response import DeployResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -97,7 +96,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ConfigurationHubApi(api_client).create_deploy(new_deploy_request) print("The response of ConfigurationHubApi->create_deploy:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ConfigurationHubApi->create_deploy: %s\n" % e) ``` @@ -147,7 +146,6 @@ from sailpoint.v2024.api.configuration_hub_api import ConfigurationHubApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.object_mapping_request import ObjectMappingRequest from sailpoint.v2024.models.object_mapping_response import ObjectMappingResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -169,7 +167,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ConfigurationHubApi(api_client).create_object_mapping(source_org, new_object_mapping_request) print("The response of ConfigurationHubApi->create_object_mapping:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ConfigurationHubApi->create_object_mapping: %s\n" % e) ``` @@ -219,7 +217,6 @@ from sailpoint.v2024.api.configuration_hub_api import ConfigurationHubApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.object_mapping_bulk_create_request import ObjectMappingBulkCreateRequest from sailpoint.v2024.models.object_mapping_bulk_create_response import ObjectMappingBulkCreateResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -249,7 +246,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ConfigurationHubApi(api_client).create_object_mappings(source_org, new_object_mapping_bulk_create_request) print("The response of ConfigurationHubApi->create_object_mappings:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ConfigurationHubApi->create_object_mappings: %s\n" % e) ``` @@ -298,7 +295,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.configuration_hub_api import ConfigurationHubApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.backup_response import BackupResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -314,7 +310,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ConfigurationHubApi(api_client).create_uploaded_configuration(data, name) print("The response of ConfigurationHubApi->create_uploaded_configuration:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ConfigurationHubApi->create_uploaded_configuration: %s\n" % e) ``` @@ -362,7 +358,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.configuration_hub_api import ConfigurationHubApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -423,7 +418,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.configuration_hub_api import ConfigurationHubApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -484,7 +478,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.configuration_hub_api import ConfigurationHubApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -546,7 +539,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.configuration_hub_api import ConfigurationHubApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -604,7 +596,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.configuration_hub_api import ConfigurationHubApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.deploy_response import DeployResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -619,7 +610,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ConfigurationHubApi(api_client).get_deploy(id) print("The response of ConfigurationHubApi->get_deploy:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ConfigurationHubApi->get_deploy: %s\n" % e) ``` @@ -667,7 +658,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.configuration_hub_api import ConfigurationHubApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.object_mapping_response import ObjectMappingResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -682,7 +672,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ConfigurationHubApi(api_client).get_object_mappings(source_org) print("The response of ConfigurationHubApi->get_object_mappings:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ConfigurationHubApi->get_object_mappings: %s\n" % e) ``` @@ -727,7 +717,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.configuration_hub_api import ConfigurationHubApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.backup_response import BackupResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -742,7 +731,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ConfigurationHubApi(api_client).get_uploaded_configuration(id) print("The response of ConfigurationHubApi->get_uploaded_configuration:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ConfigurationHubApi->get_uploaded_configuration: %s\n" % e) ``` @@ -786,7 +775,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.configuration_hub_api import ConfigurationHubApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.backup_response import BackupResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -801,7 +789,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ConfigurationHubApi(api_client).list_backups(filters) print("The response of ConfigurationHubApi->list_backups:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ConfigurationHubApi->list_backups: %s\n" % e) ``` @@ -842,7 +830,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.configuration_hub_api import ConfigurationHubApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.list_deploys200_response import ListDeploys200Response -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -856,7 +843,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ConfigurationHubApi(api_client).list_deploys() print("The response of ConfigurationHubApi->list_deploys:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ConfigurationHubApi->list_deploys: %s\n" % e) ``` @@ -900,7 +887,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.configuration_hub_api import ConfigurationHubApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.draft_response import DraftResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -915,7 +901,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ConfigurationHubApi(api_client).list_drafts(filters) print("The response of ConfigurationHubApi->list_drafts:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ConfigurationHubApi->list_drafts: %s\n" % e) ``` @@ -960,7 +946,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.configuration_hub_api import ConfigurationHubApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.backup_response import BackupResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -975,7 +960,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ConfigurationHubApi(api_client).list_uploaded_configurations(filters) print("The response of ConfigurationHubApi->list_uploaded_configurations:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ConfigurationHubApi->list_uploaded_configurations: %s\n" % e) ``` @@ -1025,7 +1010,6 @@ from sailpoint.v2024.api.configuration_hub_api import ConfigurationHubApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.object_mapping_bulk_patch_request import ObjectMappingBulkPatchRequest from sailpoint.v2024.models.object_mapping_bulk_patch_response import ObjectMappingBulkPatchResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1054,7 +1038,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ConfigurationHubApi(api_client).update_object_mappings(source_org, new_object_mapping_bulk_patch_request) print("The response of ConfigurationHubApi->update_object_mappings:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ConfigurationHubApi->update_object_mappings: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/ConnectorRuleManagementApi.md b/sailpoint/v2024/docs/Methods/ConnectorRuleManagementApi.md index 8cc82eead..40c94fb25 100644 --- a/sailpoint/v2024/docs/Methods/ConnectorRuleManagementApi.md +++ b/sailpoint/v2024/docs/Methods/ConnectorRuleManagementApi.md @@ -78,7 +78,6 @@ from sailpoint.v2024.api.connector_rule_management_api import ConnectorRuleManag from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.connector_rule_create_request import ConnectorRuleCreateRequest from sailpoint.v2024.models.connector_rule_response import ConnectorRuleResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -120,7 +119,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ConnectorRuleManagementApi(api_client).create_connector_rule(x_sail_point_experimental, new_connector_rule_create_request) print("The response of ConnectorRuleManagementApi->create_connector_rule:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ConnectorRuleManagementApi->create_connector_rule: %s\n" % e) ``` @@ -176,7 +175,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.connector_rule_management_api import ConnectorRuleManagementApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -248,7 +246,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.connector_rule_management_api import ConnectorRuleManagementApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.connector_rule_response import ConnectorRuleResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -265,7 +262,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ConnectorRuleManagementApi(api_client).get_connector_rule(id, x_sail_point_experimental) print("The response of ConnectorRuleManagementApi->get_connector_rule:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ConnectorRuleManagementApi->get_connector_rule: %s\n" % e) ``` @@ -323,7 +320,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.connector_rule_management_api import ConnectorRuleManagementApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.connector_rule_response import ConnectorRuleResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -342,7 +338,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ConnectorRuleManagementApi(api_client).get_connector_rule_list(x_sail_point_experimental, limit, offset, count) print("The response of ConnectorRuleManagementApi->get_connector_rule_list:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ConnectorRuleManagementApi->get_connector_rule_list: %s\n" % e) ``` @@ -401,7 +397,6 @@ from sailpoint.v2024.api.connector_rule_management_api import ConnectorRuleManag from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.connector_rule_response import ConnectorRuleResponse from sailpoint.v2024.models.connector_rule_update_request import ConnectorRuleUpdateRequest -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -445,7 +440,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ConnectorRuleManagementApi(api_client).put_connector_rule(id, x_sail_point_experimental, new_connector_rule_update_request) print("The response of ConnectorRuleManagementApi->put_connector_rule:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ConnectorRuleManagementApi->put_connector_rule: %s\n" % e) ``` @@ -502,7 +497,6 @@ from sailpoint.v2024.api.connector_rule_management_api import ConnectorRuleManag from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.connector_rule_validation_response import ConnectorRuleValidationResponse from sailpoint.v2024.models.source_code import SourceCode -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -522,7 +516,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ConnectorRuleManagementApi(api_client).test_connector_rule(x_sail_point_experimental, new_source_code) print("The response of ConnectorRuleManagementApi->test_connector_rule:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ConnectorRuleManagementApi->test_connector_rule: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/ConnectorsApi.md b/sailpoint/v2024/docs/Methods/ConnectorsApi.md index c71a8c06a..bff47622c 100644 --- a/sailpoint/v2024/docs/Methods/ConnectorsApi.md +++ b/sailpoint/v2024/docs/Methods/ConnectorsApi.md @@ -81,7 +81,6 @@ from sailpoint.v2024.api.connectors_api import ConnectorsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.v3_connector_dto import V3ConnectorDto from sailpoint.v2024.models.v3_create_connector_dto import V3CreateConnectorDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -102,7 +101,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ConnectorsApi(api_client).create_custom_connector(new_v3_create_connector_dto) print("The response of ConnectorsApi->create_custom_connector:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ConnectorsApi->create_custom_connector: %s\n" % e) ``` @@ -146,7 +145,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.connectors_api import ConnectorsApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -205,7 +203,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.connectors_api import ConnectorsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.connector_detail import ConnectorDetail -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -221,7 +218,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ConnectorsApi(api_client).get_connector(script_name, locale) print("The response of ConnectorsApi->get_connector:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ConnectorsApi->get_connector: %s\n" % e) ``` @@ -265,7 +262,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.connectors_api import ConnectorsApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -280,7 +276,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ConnectorsApi(api_client).get_connector_correlation_config(script_name) print("The response of ConnectorsApi->get_connector_correlation_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ConnectorsApi->get_connector_correlation_config: %s\n" % e) ``` @@ -329,7 +325,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.connectors_api import ConnectorsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.v3_connector_dto import V3ConnectorDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -348,7 +343,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ConnectorsApi(api_client).get_connector_list(filters, limit, offset, count, locale) print("The response of ConnectorsApi->get_connector_list:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ConnectorsApi->get_connector_list: %s\n" % e) ``` @@ -392,7 +387,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.connectors_api import ConnectorsApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -407,7 +401,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ConnectorsApi(api_client).get_connector_source_config(script_name) print("The response of ConnectorsApi->get_connector_source_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ConnectorsApi->get_connector_source_config: %s\n" % e) ``` @@ -451,7 +445,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.connectors_api import ConnectorsApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -466,7 +459,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ConnectorsApi(api_client).get_connector_source_template(script_name) print("The response of ConnectorsApi->get_connector_source_template:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ConnectorsApi->get_connector_source_template: %s\n" % e) ``` @@ -511,7 +504,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.connectors_api import ConnectorsApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -527,7 +519,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ConnectorsApi(api_client).get_connector_translations(script_name, locale) print("The response of ConnectorsApi->get_connector_translations:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ConnectorsApi->get_connector_translations: %s\n" % e) ``` @@ -573,7 +565,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.connectors_api import ConnectorsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.update_detail import UpdateDetail -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -589,7 +580,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ConnectorsApi(api_client).put_connector_correlation_config(script_name, file) print("The response of ConnectorsApi->put_connector_correlation_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ConnectorsApi->put_connector_correlation_config: %s\n" % e) ``` @@ -635,7 +626,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.connectors_api import ConnectorsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.update_detail import UpdateDetail -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -651,7 +641,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ConnectorsApi(api_client).put_connector_source_config(script_name, file) print("The response of ConnectorsApi->put_connector_source_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ConnectorsApi->put_connector_source_config: %s\n" % e) ``` @@ -697,7 +687,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.connectors_api import ConnectorsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.update_detail import UpdateDetail -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -713,7 +702,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ConnectorsApi(api_client).put_connector_source_template(script_name, file) print("The response of ConnectorsApi->put_connector_source_template:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ConnectorsApi->put_connector_source_template: %s\n" % e) ``` @@ -759,7 +748,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.connectors_api import ConnectorsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.update_detail import UpdateDetail -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -775,7 +763,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ConnectorsApi(api_client).put_connector_translations(script_name, locale) print("The response of ConnectorsApi->put_connector_translations:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ConnectorsApi->put_connector_translations: %s\n" % e) ``` @@ -834,7 +822,6 @@ from sailpoint.v2024.api.connectors_api import ConnectorsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.connector_detail import ConnectorDetail from sailpoint.v2024.models.json_patch_operation import JsonPatchOperation -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -850,7 +837,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ConnectorsApi(api_client).update_connector(script_name, new_json_patch_operation) print("The response of ConnectorsApi->update_connector:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ConnectorsApi->update_connector: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/CustomFormsApi.md b/sailpoint/v2024/docs/Methods/CustomFormsApi.md index 38a44c458..91773ef3f 100644 --- a/sailpoint/v2024/docs/Methods/CustomFormsApi.md +++ b/sailpoint/v2024/docs/Methods/CustomFormsApi.md @@ -91,7 +91,6 @@ from sailpoint.v2024.api.custom_forms_api import CustomFormsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.create_form_definition_request import CreateFormDefinitionRequest from sailpoint.v2024.models.form_definition_response import FormDefinitionResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -218,7 +217,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CustomFormsApi(api_client).create_form_definition(x_sail_point_experimental, new_body) print("The response of CustomFormsApi->create_form_definition:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CustomFormsApi->create_form_definition: %s\n" % e) ``` @@ -276,7 +275,6 @@ from sailpoint.v2024.api.custom_forms_api import CustomFormsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.form_definition_dynamic_schema_request import FormDefinitionDynamicSchemaRequest from sailpoint.v2024.models.form_definition_dynamic_schema_response import FormDefinitionDynamicSchemaResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -301,7 +299,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CustomFormsApi(api_client).create_form_definition_dynamic_schema(x_sail_point_experimental, new_body) print("The response of CustomFormsApi->create_form_definition_dynamic_schema:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CustomFormsApi->create_form_definition_dynamic_schema: %s\n" % e) ``` @@ -362,7 +360,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.custom_forms_api import CustomFormsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.form_definition_file_upload_response import FormDefinitionFileUploadResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -380,7 +377,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CustomFormsApi(api_client).create_form_definition_file_request(form_definition_id, x_sail_point_experimental, file) print("The response of CustomFormsApi->create_form_definition_file_request:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CustomFormsApi->create_form_definition_file_request: %s\n" % e) ``` @@ -437,7 +434,6 @@ from sailpoint.v2024.api.custom_forms_api import CustomFormsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.create_form_instance_request import CreateFormInstanceRequest from sailpoint.v2024.models.form_instance_response import FormInstanceResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -474,7 +470,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CustomFormsApi(api_client).create_form_instance(x_sail_point_experimental, new_body) print("The response of CustomFormsApi->create_form_instance:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CustomFormsApi->create_form_instance: %s\n" % e) ``` @@ -530,7 +526,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.custom_forms_api import CustomFormsApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -547,7 +542,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CustomFormsApi(api_client).delete_form_definition(form_definition_id, x_sail_point_experimental) print("The response of CustomFormsApi->delete_form_definition:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CustomFormsApi->delete_form_definition: %s\n" % e) ``` @@ -606,7 +601,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.custom_forms_api import CustomFormsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.export_form_definitions_by_tenant200_response_inner import ExportFormDefinitionsByTenant200ResponseInner -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -626,7 +620,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CustomFormsApi(api_client).export_form_definitions_by_tenant(x_sail_point_experimental, offset, limit, filters, sorters) print("The response of CustomFormsApi->export_form_definitions_by_tenant:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CustomFormsApi->export_form_definitions_by_tenant: %s\n" % e) ``` @@ -684,7 +678,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.custom_forms_api import CustomFormsApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -702,7 +695,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CustomFormsApi(api_client).get_file_from_s3(form_definition_id, file_id, x_sail_point_experimental) print("The response of CustomFormsApi->get_file_from_s3:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CustomFormsApi->get_file_from_s3: %s\n" % e) ``` @@ -759,7 +752,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.custom_forms_api import CustomFormsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.form_definition_response import FormDefinitionResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -776,7 +768,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CustomFormsApi(api_client).get_form_definition_by_key(form_definition_id, x_sail_point_experimental) print("The response of CustomFormsApi->get_form_definition_by_key:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CustomFormsApi->get_form_definition_by_key: %s\n" % e) ``` @@ -833,7 +825,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.custom_forms_api import CustomFormsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.form_instance_response import FormInstanceResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -850,7 +841,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CustomFormsApi(api_client).get_form_instance_by_key(form_instance_id, x_sail_point_experimental) print("The response of CustomFormsApi->get_form_instance_by_key:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CustomFormsApi->get_form_instance_by_key: %s\n" % e) ``` @@ -908,7 +899,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.custom_forms_api import CustomFormsApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -926,7 +916,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CustomFormsApi(api_client).get_form_instance_file(form_instance_id, file_id, x_sail_point_experimental) print("The response of CustomFormsApi->get_form_instance_file:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CustomFormsApi->get_form_instance_file: %s\n" % e) ``` @@ -983,7 +973,6 @@ from sailpoint.v2024.api.custom_forms_api import CustomFormsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.import_form_definitions202_response import ImportFormDefinitions202Response from sailpoint.v2024.models.import_form_definitions_request_inner import ImportFormDefinitionsRequestInner -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1000,7 +989,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CustomFormsApi(api_client).import_form_definitions(x_sail_point_experimental, new_body) print("The response of CustomFormsApi->import_form_definitions:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CustomFormsApi->import_form_definitions: %s\n" % e) ``` @@ -1058,7 +1047,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.custom_forms_api import CustomFormsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.form_definition_response import FormDefinitionResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1076,7 +1064,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CustomFormsApi(api_client).patch_form_definition(form_definition_id, x_sail_point_experimental, new_body) print("The response of CustomFormsApi->patch_form_definition:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CustomFormsApi->patch_form_definition: %s\n" % e) ``` @@ -1135,7 +1123,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.custom_forms_api import CustomFormsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.form_instance_response import FormInstanceResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1153,7 +1140,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CustomFormsApi(api_client).patch_form_instance(form_instance_id, x_sail_point_experimental, new_body) print("The response of CustomFormsApi->patch_form_instance:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CustomFormsApi->patch_form_instance: %s\n" % e) ``` @@ -1212,7 +1199,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.custom_forms_api import CustomFormsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.list_form_definitions_by_tenant_response import ListFormDefinitionsByTenantResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1232,7 +1218,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CustomFormsApi(api_client).search_form_definitions_by_tenant(x_sail_point_experimental, offset, limit, filters, sorters) print("The response of CustomFormsApi->search_form_definitions_by_tenant:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CustomFormsApi->search_form_definitions_by_tenant: %s\n" % e) ``` @@ -1294,7 +1280,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.custom_forms_api import CustomFormsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.list_form_element_data_by_element_id_response import ListFormElementDataByElementIDResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1315,7 +1300,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CustomFormsApi(api_client).search_form_element_data_by_element_id(form_instance_id, form_element_id, x_sail_point_experimental, limit, filters, query) print("The response of CustomFormsApi->search_form_element_data_by_element_id:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CustomFormsApi->search_form_element_data_by_element_id: %s\n" % e) ``` @@ -1370,7 +1355,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.custom_forms_api import CustomFormsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.list_form_instances_by_tenant_response import ListFormInstancesByTenantResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1386,7 +1370,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CustomFormsApi(api_client).search_form_instances_by_tenant(x_sail_point_experimental) print("The response of CustomFormsApi->search_form_instances_by_tenant:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CustomFormsApi->search_form_instances_by_tenant: %s\n" % e) ``` @@ -1441,7 +1425,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.custom_forms_api import CustomFormsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.list_predefined_select_options_response import ListPredefinedSelectOptionsResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1457,7 +1440,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CustomFormsApi(api_client).search_pre_defined_select_options(x_sail_point_experimental) print("The response of CustomFormsApi->search_pre_defined_select_options:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CustomFormsApi->search_pre_defined_select_options: %s\n" % e) ``` @@ -1519,7 +1502,6 @@ from sailpoint.v2024.api.custom_forms_api import CustomFormsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.form_element_preview_request import FormElementPreviewRequest from sailpoint.v2024.models.preview_data_source_response import PreviewDataSourceResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1550,7 +1532,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CustomFormsApi(api_client).show_preview_data_source(form_definition_id, x_sail_point_experimental, limit, filters, query, new_form_element_preview_request) print("The response of CustomFormsApi->show_preview_data_source:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CustomFormsApi->show_preview_data_source: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/CustomPasswordInstructionsApi.md b/sailpoint/v2024/docs/Methods/CustomPasswordInstructionsApi.md index 1a2d4f451..7c050b668 100644 --- a/sailpoint/v2024/docs/Methods/CustomPasswordInstructionsApi.md +++ b/sailpoint/v2024/docs/Methods/CustomPasswordInstructionsApi.md @@ -76,7 +76,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.custom_password_instructions_api import CustomPasswordInstructionsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.custom_password_instruction import CustomPasswordInstruction -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -97,7 +96,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CustomPasswordInstructionsApi(api_client).create_custom_password_instructions(x_sail_point_experimental, new_custom_password_instruction) print("The response of CustomPasswordInstructionsApi->create_custom_password_instructions:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CustomPasswordInstructionsApi->create_custom_password_instructions: %s\n" % e) ``` @@ -152,7 +151,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.custom_password_instructions_api import CustomPasswordInstructionsApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -224,7 +222,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.custom_password_instructions_api import CustomPasswordInstructionsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.custom_password_instruction import CustomPasswordInstruction -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -242,7 +239,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CustomPasswordInstructionsApi(api_client).get_custom_password_instructions(page_id, x_sail_point_experimental, locale) print("The response of CustomPasswordInstructionsApi->get_custom_password_instructions:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CustomPasswordInstructionsApi->get_custom_password_instructions: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/DataSegmentationApi.md b/sailpoint/v2024/docs/Methods/DataSegmentationApi.md index 1de0afc02..f595939dc 100644 --- a/sailpoint/v2024/docs/Methods/DataSegmentationApi.md +++ b/sailpoint/v2024/docs/Methods/DataSegmentationApi.md @@ -63,7 +63,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.data_segmentation_api import DataSegmentationApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.data_segment import DataSegment -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -78,7 +77,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = DataSegmentationApi(api_client).create_data_segment(new_data_segment) print("The response of DataSegmentationApi->create_data_segment:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling DataSegmentationApi->create_data_segment: %s\n" % e) ``` @@ -135,7 +134,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.data_segmentation_api import DataSegmentationApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -208,7 +206,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.data_segmentation_api import DataSegmentationApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.data_segment import DataSegment -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -225,7 +222,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = DataSegmentationApi(api_client).get_data_segment(id, x_sail_point_experimental) print("The response of DataSegmentationApi->get_data_segment:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling DataSegmentationApi->get_data_segment: %s\n" % e) ``` @@ -281,7 +278,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.data_segmentation_api import DataSegmentationApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -298,7 +294,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = DataSegmentationApi(api_client).get_data_segment_identity_membership(identity_id, x_sail_point_experimental) print("The response of DataSegmentationApi->get_data_segment_identity_membership:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling DataSegmentationApi->get_data_segment_identity_membership: %s\n" % e) ``` @@ -354,7 +350,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.data_segmentation_api import DataSegmentationApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -371,7 +366,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = DataSegmentationApi(api_client).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(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling DataSegmentationApi->get_data_segmentation_enabled_for_user: %s\n" % e) ``` @@ -434,7 +429,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.data_segmentation_api import DataSegmentationApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.data_segment import DataSegment -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -457,7 +451,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = DataSegmentationApi(api_client).list_data_segments(x_sail_point_experimental, enabled, unique, published, limit, offset, count, filters) print("The response of DataSegmentationApi->list_data_segments:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling DataSegmentationApi->list_data_segments: %s\n" % e) ``` @@ -515,7 +509,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.data_segmentation_api import DataSegmentationApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.data_segment import DataSegment -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -533,7 +526,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = DataSegmentationApi(api_client).patch_data_segment(id, x_sail_point_experimental, new_request_body) print("The response of DataSegmentationApi->patch_data_segment:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling DataSegmentationApi->patch_data_segment: %s\n" % e) ``` @@ -590,7 +583,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.data_segmentation_api import DataSegmentationApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() diff --git a/sailpoint/v2024/docs/Methods/DimensionsApi.md b/sailpoint/v2024/docs/Methods/DimensionsApi.md index b01f88a64..757735ed7 100644 --- a/sailpoint/v2024/docs/Methods/DimensionsApi.md +++ b/sailpoint/v2024/docs/Methods/DimensionsApi.md @@ -65,7 +65,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.dimensions_api import DimensionsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.dimension import Dimension -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -167,7 +166,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = DimensionsApi(api_client).create_dimension(role_id, new_dimension) print("The response of DimensionsApi->create_dimension:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling DimensionsApi->create_dimension: %s\n" % e) ``` @@ -216,7 +215,6 @@ from sailpoint.v2024.api.dimensions_api import DimensionsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.dimension_bulk_delete_request import DimensionBulkDeleteRequest from sailpoint.v2024.models.task_result_dto import TaskResultDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -234,7 +232,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = DimensionsApi(api_client).delete_bulk_dimensions(role_id, new_dimension_bulk_delete_request) print("The response of DimensionsApi->delete_bulk_dimensions:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling DimensionsApi->delete_bulk_dimensions: %s\n" % e) ``` @@ -279,7 +277,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.dimensions_api import DimensionsApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -340,7 +337,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.dimensions_api import DimensionsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.dimension import Dimension -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -356,7 +352,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = DimensionsApi(api_client).get_dimension(role_id, dimension_id) print("The response of DimensionsApi->get_dimension:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling DimensionsApi->get_dimension: %s\n" % e) ``` @@ -408,7 +404,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.dimensions_api import DimensionsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.entitlement import Entitlement -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -429,7 +424,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = DimensionsApi(api_client).get_dimension_entitlements(role_id, dimension_id, limit, offset, count, filters, sorters) print("The response of DimensionsApi->get_dimension_entitlements:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling DimensionsApi->get_dimension_entitlements: %s\n" % e) ``` @@ -482,7 +477,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.dimensions_api import DimensionsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.access_profile import AccessProfile -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -503,7 +497,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = DimensionsApi(api_client).list_dimension_access_profiles(role_id, dimension_id, limit, offset, count, filters, sorters) print("The response of DimensionsApi->list_dimension_access_profiles:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling DimensionsApi->list_dimension_access_profiles: %s\n" % e) ``` @@ -555,7 +549,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.dimensions_api import DimensionsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.dimension import Dimension -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -576,7 +569,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = DimensionsApi(api_client).list_dimensions(role_id, for_subadmin, limit, offset, count, filters, sorters) print("The response of DimensionsApi->list_dimensions:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling DimensionsApi->list_dimensions: %s\n" % e) ``` @@ -627,7 +620,6 @@ from sailpoint.v2024.api.dimensions_api import DimensionsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.dimension import Dimension from sailpoint.v2024.models.json_patch_operation import JsonPatchOperation -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -644,7 +636,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = DimensionsApi(api_client).patch_dimension(role_id, dimension_id, new_json_patch_operation) print("The response of DimensionsApi->patch_dimension:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling DimensionsApi->patch_dimension: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/EntitlementsApi.md b/sailpoint/v2024/docs/Methods/EntitlementsApi.md index b25d080c9..a23c4788d 100644 --- a/sailpoint/v2024/docs/Methods/EntitlementsApi.md +++ b/sailpoint/v2024/docs/Methods/EntitlementsApi.md @@ -127,7 +127,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.entitlements_api import EntitlementsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.entitlement import Entitlement -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -146,7 +145,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = EntitlementsApi(api_client).create_access_model_metadata_for_entitlement(id, attribute_key, attribute_value, x_sail_point_experimental) print("The response of EntitlementsApi->create_access_model_metadata_for_entitlement:\n") - pprint(results) + 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: %s\n" % e) ``` @@ -203,7 +202,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.entitlements_api import EntitlementsApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -277,7 +275,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.entitlements_api import EntitlementsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.entitlement import Entitlement -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -294,7 +291,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = EntitlementsApi(api_client).get_entitlement(id, x_sail_point_experimental) print("The response of EntitlementsApi->get_entitlement:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling EntitlementsApi->get_entitlement: %s\n" % e) ``` @@ -351,7 +348,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.entitlements_api import EntitlementsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.entitlement_request_config import EntitlementRequestConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -368,7 +364,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = EntitlementsApi(api_client).get_entitlement_request_config(id, x_sail_point_experimental) print("The response of EntitlementsApi->get_entitlement_request_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling EntitlementsApi->get_entitlement_request_config: %s\n" % e) ``` @@ -432,7 +428,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.entitlements_api import EntitlementsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.load_entitlement_task import LoadEntitlementTask -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -450,7 +445,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = EntitlementsApi(api_client).import_entitlements_by_source(id, x_sail_point_experimental, csv_file) print("The response of EntitlementsApi->import_entitlements_by_source:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling EntitlementsApi->import_entitlements_by_source: %s\n" % e) ``` @@ -512,7 +507,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.entitlements_api import EntitlementsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.entitlement import Entitlement -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -534,7 +528,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = EntitlementsApi(api_client).list_entitlement_children(id, x_sail_point_experimental, limit, offset, count, sorters, filters) print("The response of EntitlementsApi->list_entitlement_children:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling EntitlementsApi->list_entitlement_children: %s\n" % e) ``` @@ -596,7 +590,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.entitlements_api import EntitlementsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.entitlement import Entitlement -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -618,7 +611,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = EntitlementsApi(api_client).list_entitlement_parents(id, x_sail_point_experimental, limit, offset, count, sorters, filters) print("The response of EntitlementsApi->list_entitlement_parents:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling EntitlementsApi->list_entitlement_parents: %s\n" % e) ``` @@ -686,7 +679,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.entitlements_api import EntitlementsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.entitlement import Entitlement -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -711,7 +703,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = EntitlementsApi(api_client).list_entitlements(x_sail_point_experimental, account_id, segmented_for_identity, for_segment_ids, include_unsegmented, offset, limit, count, sorters, filters) print("The response of EntitlementsApi->list_entitlements:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling EntitlementsApi->list_entitlements: %s\n" % e) ``` @@ -774,7 +766,6 @@ from sailpoint.v2024.api.entitlements_api import EntitlementsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.entitlement import Entitlement from sailpoint.v2024.models.json_patch_operation import JsonPatchOperation -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -792,7 +783,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = EntitlementsApi(api_client).patch_entitlement(id, x_sail_point_experimental, new_json_patch_operation) print("The response of EntitlementsApi->patch_entitlement:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling EntitlementsApi->patch_entitlement: %s\n" % e) ``` @@ -850,7 +841,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.entitlements_api import EntitlementsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.entitlement_request_config import EntitlementRequestConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -873,7 +863,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = EntitlementsApi(api_client).put_entitlement_request_config(id, x_sail_point_experimental, new_entitlement_request_config) print("The response of EntitlementsApi->put_entitlement_request_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling EntitlementsApi->put_entitlement_request_config: %s\n" % e) ``` @@ -930,7 +920,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.entitlements_api import EntitlementsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.entitlement_source_reset_base_reference_dto import EntitlementSourceResetBaseReferenceDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -947,7 +936,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = EntitlementsApi(api_client).reset_source_entitlements(id, x_sail_point_experimental) print("The response of EntitlementsApi->reset_source_entitlements:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling EntitlementsApi->reset_source_entitlements: %s\n" % e) ``` @@ -1009,7 +998,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.entitlements_api import EntitlementsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.entitlement_bulk_update_request import EntitlementBulkUpdateRequest -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() diff --git a/sailpoint/v2024/docs/Methods/GlobalTenantSecuritySettingsApi.md b/sailpoint/v2024/docs/Methods/GlobalTenantSecuritySettingsApi.md index 239ea7a09..a23bbf9fd 100644 --- a/sailpoint/v2024/docs/Methods/GlobalTenantSecuritySettingsApi.md +++ b/sailpoint/v2024/docs/Methods/GlobalTenantSecuritySettingsApi.md @@ -59,7 +59,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.global_tenant_security_settings_api import GlobalTenantSecuritySettingsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.network_configuration import NetworkConfiguration -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -78,7 +77,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = GlobalTenantSecuritySettingsApi(api_client).create_auth_org_network_config(new_network_configuration) print("The response of GlobalTenantSecuritySettingsApi->create_auth_org_network_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling GlobalTenantSecuritySettingsApi->create_auth_org_network_config: %s\n" % e) ``` @@ -120,7 +119,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.global_tenant_security_settings_api import GlobalTenantSecuritySettingsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.network_configuration import NetworkConfiguration -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -134,7 +132,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = GlobalTenantSecuritySettingsApi(api_client).get_auth_org_network_config() print("The response of GlobalTenantSecuritySettingsApi->get_auth_org_network_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling GlobalTenantSecuritySettingsApi->get_auth_org_network_config: %s\n" % e) ``` @@ -181,7 +179,6 @@ from sailpoint.v2024.api.global_tenant_security_settings_api import GlobalTenant from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.json_patch_operation import JsonPatchOperation from sailpoint.v2024.models.network_configuration import NetworkConfiguration -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -196,7 +193,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = GlobalTenantSecuritySettingsApi(api_client).patch_auth_org_network_config(new_json_patch_operation) print("The response of GlobalTenantSecuritySettingsApi->patch_auth_org_network_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling GlobalTenantSecuritySettingsApi->patch_auth_org_network_config: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/GovernanceGroupsApi.md b/sailpoint/v2024/docs/Methods/GovernanceGroupsApi.md index be8891a83..5d09ac145 100644 --- a/sailpoint/v2024/docs/Methods/GovernanceGroupsApi.md +++ b/sailpoint/v2024/docs/Methods/GovernanceGroupsApi.md @@ -79,7 +79,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.governance_groups_api import GovernanceGroupsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.workgroup_dto import WorkgroupDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -111,7 +110,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = GovernanceGroupsApi(api_client).create_workgroup(x_sail_point_experimental, new_workgroup_dto) print("The response of GovernanceGroupsApi->create_workgroup:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling GovernanceGroupsApi->create_workgroup: %s\n" % e) ``` @@ -166,7 +165,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.governance_groups_api import GovernanceGroupsApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -242,7 +240,6 @@ from sailpoint.v2024.api.governance_groups_api import GovernanceGroupsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.identity_preview_response_identity import IdentityPreviewResponseIdentity from sailpoint.v2024.models.workgroup_member_delete_item import WorkgroupMemberDeleteItem -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -260,7 +257,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = GovernanceGroupsApi(api_client).delete_workgroup_members(workgroup_id, x_sail_point_experimental, new_identity_preview_response_identity) print("The response of GovernanceGroupsApi->delete_workgroup_members:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling GovernanceGroupsApi->delete_workgroup_members: %s\n" % e) ``` @@ -328,7 +325,6 @@ from sailpoint.v2024.api.governance_groups_api import GovernanceGroupsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.workgroup_bulk_delete_request import WorkgroupBulkDeleteRequest from sailpoint.v2024.models.workgroup_delete_item import WorkgroupDeleteItem -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -347,7 +343,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = GovernanceGroupsApi(api_client).delete_workgroups_in_bulk(x_sail_point_experimental, new_workgroup_bulk_delete_request) print("The response of GovernanceGroupsApi->delete_workgroups_in_bulk:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling GovernanceGroupsApi->delete_workgroups_in_bulk: %s\n" % e) ``` @@ -403,7 +399,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.governance_groups_api import GovernanceGroupsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.workgroup_dto import WorkgroupDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -420,7 +415,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = GovernanceGroupsApi(api_client).get_workgroup(id, x_sail_point_experimental) print("The response of GovernanceGroupsApi->get_workgroup:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling GovernanceGroupsApi->get_workgroup: %s\n" % e) ``` @@ -480,7 +475,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.governance_groups_api import GovernanceGroupsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.workgroup_connection_dto import WorkgroupConnectionDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -501,7 +495,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = GovernanceGroupsApi(api_client).list_connections(workgroup_id, x_sail_point_experimental, offset, limit, count, sorters) print("The response of GovernanceGroupsApi->list_connections:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling GovernanceGroupsApi->list_connections: %s\n" % e) ``` @@ -561,7 +555,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.governance_groups_api import GovernanceGroupsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.list_workgroup_members200_response_inner import ListWorkgroupMembers200ResponseInner -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -582,7 +575,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = GovernanceGroupsApi(api_client).list_workgroup_members(workgroup_id, x_sail_point_experimental, offset, limit, count, sorters) print("The response of GovernanceGroupsApi->list_workgroup_members:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling GovernanceGroupsApi->list_workgroup_members: %s\n" % e) ``` @@ -642,7 +635,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.governance_groups_api import GovernanceGroupsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.workgroup_dto import WorkgroupDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -663,7 +655,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = GovernanceGroupsApi(api_client).list_workgroups(x_sail_point_experimental, offset, limit, count, filters, sorters) print("The response of GovernanceGroupsApi->list_workgroups:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling GovernanceGroupsApi->list_workgroups: %s\n" % e) ``` @@ -724,7 +716,6 @@ from sailpoint.v2024.api.governance_groups_api import GovernanceGroupsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.json_patch_operation import JsonPatchOperation from sailpoint.v2024.models.workgroup_dto import WorkgroupDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -742,7 +733,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = GovernanceGroupsApi(api_client).patch_workgroup(id, x_sail_point_experimental, new_json_patch_operation) print("The response of GovernanceGroupsApi->patch_workgroup:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling GovernanceGroupsApi->patch_workgroup: %s\n" % e) ``` @@ -804,7 +795,6 @@ from sailpoint.v2024.api.governance_groups_api import GovernanceGroupsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.identity_preview_response_identity import IdentityPreviewResponseIdentity from sailpoint.v2024.models.workgroup_member_add_item import WorkgroupMemberAddItem -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -822,7 +812,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = GovernanceGroupsApi(api_client).update_workgroup_members(workgroup_id, x_sail_point_experimental, new_identity_preview_response_identity) print("The response of GovernanceGroupsApi->update_workgroup_members:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling GovernanceGroupsApi->update_workgroup_members: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/IAIAccessRequestRecommendationsApi.md b/sailpoint/v2024/docs/Methods/IAIAccessRequestRecommendationsApi.md index b0b2035c6..d0e476570 100644 --- a/sailpoint/v2024/docs/Methods/IAIAccessRequestRecommendationsApi.md +++ b/sailpoint/v2024/docs/Methods/IAIAccessRequestRecommendationsApi.md @@ -75,7 +75,6 @@ from sailpoint.v2024.api.iai_access_request_recommendations_api import IAIAccess from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.access_request_recommendation_action_item_dto import AccessRequestRecommendationActionItemDto from sailpoint.v2024.models.access_request_recommendation_action_item_response_dto import AccessRequestRecommendationActionItemResponseDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -98,7 +97,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIAccessRequestRecommendationsApi(api_client).add_access_request_recommendations_ignored_item(x_sail_point_experimental, new_access_request_recommendation_action_item_dto) print("The response of IAIAccessRequestRecommendationsApi->add_access_request_recommendations_ignored_item:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIAccessRequestRecommendationsApi->add_access_request_recommendations_ignored_item: %s\n" % e) ``` @@ -155,7 +154,6 @@ from sailpoint.v2024.api.iai_access_request_recommendations_api import IAIAccess from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.access_request_recommendation_action_item_dto import AccessRequestRecommendationActionItemDto from sailpoint.v2024.models.access_request_recommendation_action_item_response_dto import AccessRequestRecommendationActionItemResponseDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -178,7 +176,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIAccessRequestRecommendationsApi(api_client).add_access_request_recommendations_requested_item(x_sail_point_experimental, new_access_request_recommendation_action_item_dto) print("The response of IAIAccessRequestRecommendationsApi->add_access_request_recommendations_requested_item:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIAccessRequestRecommendationsApi->add_access_request_recommendations_requested_item: %s\n" % e) ``` @@ -235,7 +233,6 @@ from sailpoint.v2024.api.iai_access_request_recommendations_api import IAIAccess from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.access_request_recommendation_action_item_dto import AccessRequestRecommendationActionItemDto from sailpoint.v2024.models.access_request_recommendation_action_item_response_dto import AccessRequestRecommendationActionItemResponseDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -258,7 +255,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIAccessRequestRecommendationsApi(api_client).add_access_request_recommendations_viewed_item(x_sail_point_experimental, new_access_request_recommendation_action_item_dto) print("The response of IAIAccessRequestRecommendationsApi->add_access_request_recommendations_viewed_item:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIAccessRequestRecommendationsApi->add_access_request_recommendations_viewed_item: %s\n" % e) ``` @@ -315,7 +312,6 @@ from sailpoint.v2024.api.iai_access_request_recommendations_api import IAIAccess from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.access_request_recommendation_action_item_dto import AccessRequestRecommendationActionItemDto from sailpoint.v2024.models.access_request_recommendation_action_item_response_dto import AccessRequestRecommendationActionItemResponseDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -332,7 +328,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIAccessRequestRecommendationsApi(api_client).add_access_request_recommendations_viewed_items(x_sail_point_experimental, new_access_request_recommendation_action_item_dto) print("The response of IAIAccessRequestRecommendationsApi->add_access_request_recommendations_viewed_items:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIAccessRequestRecommendationsApi->add_access_request_recommendations_viewed_items: %s\n" % e) ``` @@ -394,7 +390,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.iai_access_request_recommendations_api import IAIAccessRequestRecommendationsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.access_request_recommendation_item_detail import AccessRequestRecommendationItemDetail -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -417,7 +412,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIAccessRequestRecommendationsApi(api_client).get_access_request_recommendations(x_sail_point_experimental, identity_id, limit, offset, count, include_translation_messages, filters, sorters) print("The response of IAIAccessRequestRecommendationsApi->get_access_request_recommendations:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIAccessRequestRecommendationsApi->get_access_request_recommendations: %s\n" % e) ``` @@ -472,7 +467,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.iai_access_request_recommendations_api import IAIAccessRequestRecommendationsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.access_request_recommendation_config_dto import AccessRequestRecommendationConfigDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -488,7 +482,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIAccessRequestRecommendationsApi(api_client).get_access_request_recommendations_config(x_sail_point_experimental) print("The response of IAIAccessRequestRecommendationsApi->get_access_request_recommendations_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIAccessRequestRecommendationsApi->get_access_request_recommendations_config: %s\n" % e) ``` @@ -548,7 +542,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.iai_access_request_recommendations_api import IAIAccessRequestRecommendationsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.access_request_recommendation_action_item_response_dto import AccessRequestRecommendationActionItemResponseDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -569,7 +562,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIAccessRequestRecommendationsApi(api_client).get_access_request_recommendations_ignored_items(x_sail_point_experimental, limit, offset, count, filters, sorters) print("The response of IAIAccessRequestRecommendationsApi->get_access_request_recommendations_ignored_items:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIAccessRequestRecommendationsApi->get_access_request_recommendations_ignored_items: %s\n" % e) ``` @@ -629,7 +622,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.iai_access_request_recommendations_api import IAIAccessRequestRecommendationsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.access_request_recommendation_action_item_response_dto import AccessRequestRecommendationActionItemResponseDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -650,7 +642,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIAccessRequestRecommendationsApi(api_client).get_access_request_recommendations_requested_items(x_sail_point_experimental, limit, offset, count, filters, sorters) print("The response of IAIAccessRequestRecommendationsApi->get_access_request_recommendations_requested_items:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIAccessRequestRecommendationsApi->get_access_request_recommendations_requested_items: %s\n" % e) ``` @@ -710,7 +702,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.iai_access_request_recommendations_api import IAIAccessRequestRecommendationsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.access_request_recommendation_action_item_response_dto import AccessRequestRecommendationActionItemResponseDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -731,7 +722,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIAccessRequestRecommendationsApi(api_client).get_access_request_recommendations_viewed_items(x_sail_point_experimental, limit, offset, count, filters, sorters) print("The response of IAIAccessRequestRecommendationsApi->get_access_request_recommendations_viewed_items:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIAccessRequestRecommendationsApi->get_access_request_recommendations_viewed_items: %s\n" % e) ``` @@ -787,7 +778,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.iai_access_request_recommendations_api import IAIAccessRequestRecommendationsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.access_request_recommendation_config_dto import AccessRequestRecommendationConfigDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -811,7 +801,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIAccessRequestRecommendationsApi(api_client).set_access_request_recommendations_config(x_sail_point_experimental, new_access_request_recommendation_config_dto) print("The response of IAIAccessRequestRecommendationsApi->set_access_request_recommendations_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIAccessRequestRecommendationsApi->set_access_request_recommendations_config: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/IAICommonAccessApi.md b/sailpoint/v2024/docs/Methods/IAICommonAccessApi.md index 6b46397bf..6446462f9 100644 --- a/sailpoint/v2024/docs/Methods/IAICommonAccessApi.md +++ b/sailpoint/v2024/docs/Methods/IAICommonAccessApi.md @@ -68,7 +68,6 @@ from sailpoint.v2024.api.iai_common_access_api import IAICommonAccessApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.common_access_item_request import CommonAccessItemRequest from sailpoint.v2024.models.common_access_item_response import CommonAccessItemResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -95,7 +94,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAICommonAccessApi(api_client).create_common_access(x_sail_point_experimental, new_common_access_item_request) print("The response of IAICommonAccessApi->create_common_access:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAICommonAccessApi->create_common_access: %s\n" % e) ``` @@ -154,7 +153,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.iai_common_access_api import IAICommonAccessApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.common_access_response import CommonAccessResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -175,7 +173,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAICommonAccessApi(api_client).get_common_access(x_sail_point_experimental, offset, limit, count, filters, sorters) print("The response of IAICommonAccessApi->get_common_access:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAICommonAccessApi->get_common_access: %s\n" % e) ``` @@ -231,7 +229,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.iai_common_access_api import IAICommonAccessApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.common_access_id_status import CommonAccessIDStatus -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -248,7 +245,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAICommonAccessApi(api_client).update_common_access_status_in_bulk(x_sail_point_experimental, new_common_access_id_status) print("The response of IAICommonAccessApi->update_common_access_status_in_bulk:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAICommonAccessApi->update_common_access_status_in_bulk: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/IAIOutliersApi.md b/sailpoint/v2024/docs/Methods/IAIOutliersApi.md index 9d5adc366..70ab436e1 100644 --- a/sailpoint/v2024/docs/Methods/IAIOutliersApi.md +++ b/sailpoint/v2024/docs/Methods/IAIOutliersApi.md @@ -75,7 +75,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.iai_outliers_api import IAIOutliersApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -92,7 +91,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIOutliersApi(api_client).export_outliers_zip(x_sail_point_experimental, type) print("The response of IAIOutliersApi->export_outliers_zip:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIOutliersApi->export_outliers_zip: %s\n" % e) ``` @@ -153,7 +152,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.iai_outliers_api import IAIOutliersApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.outlier_summary import OutlierSummary -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -174,7 +172,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIOutliersApi(api_client).get_identity_outlier_snapshots(x_sail_point_experimental, limit, offset, type, filters, sorters) print("The response of IAIOutliersApi->get_identity_outlier_snapshots:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIOutliersApi->get_identity_outlier_snapshots: %s\n" % e) ``` @@ -235,7 +233,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.iai_outliers_api import IAIOutliersApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.outlier import Outlier -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -257,7 +254,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIOutliersApi(api_client).get_identity_outliers(x_sail_point_experimental, limit, offset, count, type, filters, sorters) print("The response of IAIOutliersApi->get_identity_outliers:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIOutliersApi->get_identity_outliers: %s\n" % e) ``` @@ -314,7 +311,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.iai_outliers_api import IAIOutliersApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.latest_outlier_summary import LatestOutlierSummary -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -331,7 +327,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIOutliersApi(api_client).get_latest_identity_outlier_snapshots(x_sail_point_experimental, type) print("The response of IAIOutliersApi->get_latest_identity_outlier_snapshots:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIOutliersApi->get_latest_identity_outlier_snapshots: %s\n" % e) ``` @@ -391,7 +387,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.iai_outliers_api import IAIOutliersApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.outlier_feature_summary import OutlierFeatureSummary -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -408,7 +403,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIOutliersApi(api_client).get_outlier_contributing_feature_summary(outlier_feature_id, x_sail_point_experimental) print("The response of IAIOutliersApi->get_outlier_contributing_feature_summary:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIOutliersApi->get_outlier_contributing_feature_summary: %s\n" % e) ``` @@ -473,7 +468,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.iai_outliers_api import IAIOutliersApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.outlier_contributing_feature import OutlierContributingFeature -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -495,7 +489,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIOutliersApi(api_client).get_peer_group_outliers_contributing_features(outlier_id, x_sail_point_experimental, limit, offset, count, include_translation_messages, sorters) print("The response of IAIOutliersApi->get_peer_group_outliers_contributing_features:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIOutliersApi->get_peer_group_outliers_contributing_features: %s\n" % e) ``` @@ -550,7 +544,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.iai_outliers_api import IAIOutliersApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -631,7 +624,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.iai_outliers_api import IAIOutliersApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.outliers_contributing_feature_access_items import OutliersContributingFeatureAccessItems -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -654,7 +646,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIOutliersApi(api_client).list_outliers_contributing_feature_access_items(outlier_id, contributing_feature_name, x_sail_point_experimental, limit, offset, count, access_type, sorters) print("The response of IAIOutliersApi->list_outliers_contributing_feature_access_items:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIOutliersApi->list_outliers_contributing_feature_access_items: %s\n" % e) ``` @@ -709,7 +701,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.iai_outliers_api import IAIOutliersApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() diff --git a/sailpoint/v2024/docs/Methods/IAIPeerGroupStrategiesApi.md b/sailpoint/v2024/docs/Methods/IAIPeerGroupStrategiesApi.md index 9f1a2df7f..b70390fe7 100644 --- a/sailpoint/v2024/docs/Methods/IAIPeerGroupStrategiesApi.md +++ b/sailpoint/v2024/docs/Methods/IAIPeerGroupStrategiesApi.md @@ -71,7 +71,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.iai_peer_group_strategies_api import IAIPeerGroupStrategiesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.peer_group_member import PeerGroupMember -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -91,7 +90,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIPeerGroupStrategiesApi(api_client).get_peer_group_outliers(strategy, x_sail_point_experimental, limit, offset, count) print("The response of IAIPeerGroupStrategiesApi->get_peer_group_outliers:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIPeerGroupStrategiesApi->get_peer_group_outliers: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/IAIRecommendationsApi.md b/sailpoint/v2024/docs/Methods/IAIRecommendationsApi.md index a9c5bd34c..46773e0c8 100644 --- a/sailpoint/v2024/docs/Methods/IAIRecommendationsApi.md +++ b/sailpoint/v2024/docs/Methods/IAIRecommendationsApi.md @@ -68,7 +68,6 @@ from sailpoint.v2024.api.iai_recommendations_api import IAIRecommendationsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.recommendation_request_dto import RecommendationRequestDto from sailpoint.v2024.models.recommendation_response_dto import RecommendationResponseDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -103,7 +102,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIRecommendationsApi(api_client).get_recommendations(x_sail_point_experimental, new_recommendation_request_dto) print("The response of IAIRecommendationsApi->get_recommendations:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIRecommendationsApi->get_recommendations: %s\n" % e) ``` @@ -158,7 +157,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.iai_recommendations_api import IAIRecommendationsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.recommendation_config_dto import RecommendationConfigDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -174,7 +172,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIRecommendationsApi(api_client).get_recommendations_config(x_sail_point_experimental) print("The response of IAIRecommendationsApi->get_recommendations_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIRecommendationsApi->get_recommendations_config: %s\n" % e) ``` @@ -230,7 +228,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.iai_recommendations_api import IAIRecommendationsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.recommendation_config_dto import RecommendationConfigDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -252,7 +249,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIRecommendationsApi(api_client).update_recommendations_config(x_sail_point_experimental, new_recommendation_config_dto) print("The response of IAIRecommendationsApi->update_recommendations_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIRecommendationsApi->update_recommendations_config: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/IAIRoleMiningApi.md b/sailpoint/v2024/docs/Methods/IAIRoleMiningApi.md index f07a62d37..4d5cf46d7 100644 --- a/sailpoint/v2024/docs/Methods/IAIRoleMiningApi.md +++ b/sailpoint/v2024/docs/Methods/IAIRoleMiningApi.md @@ -94,7 +94,6 @@ from sailpoint.v2024.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role_mining_potential_role_provision_request import RoleMiningPotentialRoleProvisionRequest from sailpoint.v2024.models.role_mining_potential_role_summary import RoleMiningPotentialRoleSummary -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -121,7 +120,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIRoleMiningApi(api_client).create_potential_role_provision_request(session_id, potential_role_id, x_sail_point_experimental, min_entitlement_popularity, include_common_access, new_role_mining_potential_role_provision_request) print("The response of IAIRoleMiningApi->create_potential_role_provision_request:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIRoleMiningApi->create_potential_role_provision_request: %s\n" % e) ``` @@ -178,7 +177,6 @@ from sailpoint.v2024.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role_mining_session_dto import RoleMiningSessionDto from sailpoint.v2024.models.role_mining_session_response import RoleMiningSessionResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -226,7 +224,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIRoleMiningApi(api_client).create_role_mining_sessions(x_sail_point_experimental, new_role_mining_session_dto) print("The response of IAIRoleMiningApi->create_role_mining_sessions:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIRoleMiningApi->create_role_mining_sessions: %s\n" % e) ``` @@ -282,7 +280,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -301,7 +298,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIRoleMiningApi(api_client).download_role_mining_potential_role_zip(session_id, potential_role_id, export_id, x_sail_point_experimental) print("The response of IAIRoleMiningApi->download_role_mining_potential_role_zip:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIRoleMiningApi->download_role_mining_potential_role_zip: %s\n" % e) ``` @@ -356,7 +353,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -374,7 +370,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIRoleMiningApi(api_client).export_role_mining_potential_role(session_id, potential_role_id, x_sail_point_experimental) print("The response of IAIRoleMiningApi->export_role_mining_potential_role:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIRoleMiningApi->export_role_mining_potential_role: %s\n" % e) ``` @@ -432,7 +428,6 @@ from sailpoint.v2024.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role_mining_potential_role_export_request import RoleMiningPotentialRoleExportRequest from sailpoint.v2024.models.role_mining_potential_role_export_response import RoleMiningPotentialRoleExportResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -454,7 +449,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIRoleMiningApi(api_client).export_role_mining_potential_role_async(session_id, potential_role_id, x_sail_point_experimental, new_role_mining_potential_role_export_request) print("The response of IAIRoleMiningApi->export_role_mining_potential_role_async:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIRoleMiningApi->export_role_mining_potential_role_async: %s\n" % e) ``` @@ -511,7 +506,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role_mining_potential_role_export_response import RoleMiningPotentialRoleExportResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -530,7 +524,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIRoleMiningApi(api_client).export_role_mining_potential_role_status(session_id, potential_role_id, export_id, x_sail_point_experimental) print("The response of IAIRoleMiningApi->export_role_mining_potential_role_status:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIRoleMiningApi->export_role_mining_potential_role_status: %s\n" % e) ``` @@ -590,7 +584,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role_mining_potential_role_summary import RoleMiningPotentialRoleSummary -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -611,7 +604,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIRoleMiningApi(api_client).get_all_potential_role_summaries(x_sail_point_experimental, sorters, filters, offset, limit, count) print("The response of IAIRoleMiningApi->get_all_potential_role_summaries:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIRoleMiningApi->get_all_potential_role_summaries: %s\n" % e) ``` @@ -667,7 +660,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -686,7 +678,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIRoleMiningApi(api_client).get_entitlement_distribution_potential_role(session_id, potential_role_id, x_sail_point_experimental, include_common_access) print("The response of IAIRoleMiningApi->get_entitlement_distribution_potential_role:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIRoleMiningApi->get_entitlement_distribution_potential_role: %s\n" % e) ``` @@ -749,7 +741,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role_mining_entitlement import RoleMiningEntitlement -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -773,7 +764,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIRoleMiningApi(api_client).get_entitlements_potential_role(session_id, potential_role_id, x_sail_point_experimental, include_common_access, sorters, filters, offset, limit, count) print("The response of IAIRoleMiningApi->get_entitlements_potential_role:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIRoleMiningApi->get_entitlements_potential_role: %s\n" % e) ``` @@ -834,7 +825,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role_mining_entitlement import RoleMiningEntitlement -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -857,7 +847,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIRoleMiningApi(api_client).get_excluded_entitlements_potential_role(session_id, potential_role_id, x_sail_point_experimental, sorters, filters, offset, limit, count) print("The response of IAIRoleMiningApi->get_excluded_entitlements_potential_role:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIRoleMiningApi->get_excluded_entitlements_potential_role: %s\n" % e) ``` @@ -918,7 +908,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role_mining_identity import RoleMiningIdentity -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -941,7 +930,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIRoleMiningApi(api_client).get_identities_potential_role(session_id, potential_role_id, x_sail_point_experimental, sorters, filters, offset, limit, count) print("The response of IAIRoleMiningApi->get_identities_potential_role:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIRoleMiningApi->get_identities_potential_role: %s\n" % e) ``` @@ -998,7 +987,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role_mining_potential_role import RoleMiningPotentialRole -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1016,7 +1004,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIRoleMiningApi(api_client).get_potential_role(session_id, potential_role_id, x_sail_point_experimental) print("The response of IAIRoleMiningApi->get_potential_role:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIRoleMiningApi->get_potential_role: %s\n" % e) ``` @@ -1077,7 +1065,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role_mining_potential_role_application import RoleMiningPotentialRoleApplication -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1099,7 +1086,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIRoleMiningApi(api_client).get_potential_role_applications(session_id, potential_role_id, x_sail_point_experimental, filters, offset, limit, count) print("The response of IAIRoleMiningApi->get_potential_role_applications:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIRoleMiningApi->get_potential_role_applications: %s\n" % e) ``` @@ -1160,7 +1147,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role_mining_potential_role_entitlements import RoleMiningPotentialRoleEntitlements -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1182,7 +1168,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIRoleMiningApi(api_client).get_potential_role_entitlements(session_id, potential_role_id, x_sail_point_experimental, filters, offset, limit, count) print("The response of IAIRoleMiningApi->get_potential_role_entitlements:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIRoleMiningApi->get_potential_role_entitlements: %s\n" % e) ``` @@ -1243,7 +1229,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role_mining_potential_role_source_usage import RoleMiningPotentialRoleSourceUsage -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1265,7 +1250,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIRoleMiningApi(api_client).get_potential_role_source_identity_usage(potential_role_id, source_id, x_sail_point_experimental, sorters, offset, limit, count) print("The response of IAIRoleMiningApi->get_potential_role_source_identity_usage:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIRoleMiningApi->get_potential_role_source_identity_usage: %s\n" % e) ``` @@ -1326,7 +1311,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role_mining_potential_role_summary import RoleMiningPotentialRoleSummary -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1348,7 +1332,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIRoleMiningApi(api_client).get_potential_role_summaries(session_id, x_sail_point_experimental, sorters, filters, offset, limit, count) print("The response of IAIRoleMiningApi->get_potential_role_summaries:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIRoleMiningApi->get_potential_role_summaries: %s\n" % e) ``` @@ -1404,7 +1388,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role_mining_potential_role import RoleMiningPotentialRole -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1421,7 +1404,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIRoleMiningApi(api_client).get_role_mining_potential_role(potential_role_id, x_sail_point_experimental) print("The response of IAIRoleMiningApi->get_role_mining_potential_role:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIRoleMiningApi->get_role_mining_potential_role: %s\n" % e) ``` @@ -1478,7 +1461,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role_mining_session_response import RoleMiningSessionResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1495,7 +1477,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIRoleMiningApi(api_client).get_role_mining_session(session_id, x_sail_point_experimental) print("The response of IAIRoleMiningApi->get_role_mining_session:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIRoleMiningApi->get_role_mining_session: %s\n" % e) ``` @@ -1550,7 +1532,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role_mining_session_status import RoleMiningSessionStatus -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1567,7 +1548,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIRoleMiningApi(api_client).get_role_mining_session_status(session_id, x_sail_point_experimental) print("The response of IAIRoleMiningApi->get_role_mining_session_status:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIRoleMiningApi->get_role_mining_session_status: %s\n" % e) ``` @@ -1627,7 +1608,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role_mining_session_dto import RoleMiningSessionDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1648,7 +1628,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIRoleMiningApi(api_client).get_role_mining_sessions(x_sail_point_experimental, filters, sorters, offset, limit, count) print("The response of IAIRoleMiningApi->get_role_mining_sessions:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIRoleMiningApi->get_role_mining_sessions: %s\n" % e) ``` @@ -1707,7 +1687,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role_mining_session_draft_role_dto import RoleMiningSessionDraftRoleDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1727,7 +1706,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIRoleMiningApi(api_client).get_saved_potential_roles(x_sail_point_experimental, sorters, offset, limit, count) print("The response of IAIRoleMiningApi->get_saved_potential_roles:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIRoleMiningApi->get_saved_potential_roles: %s\n" % e) ``` @@ -1798,7 +1777,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.patch_potential_role_request_inner import PatchPotentialRoleRequestInner -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1817,7 +1795,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIRoleMiningApi(api_client).patch_potential_role(session_id, potential_role_id, x_sail_point_experimental, new_patch_potential_role_request_inner) print("The response of IAIRoleMiningApi->patch_potential_role:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIRoleMiningApi->patch_potential_role: %s\n" % e) ``` @@ -1888,7 +1866,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.patch_potential_role_request_inner import PatchPotentialRoleRequestInner -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1907,7 +1884,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIRoleMiningApi(api_client).patch_potential_role_0(session_id, potential_role_id, x_sail_point_experimental, new_patch_potential_role_request_inner) print("The response of IAIRoleMiningApi->patch_potential_role_0:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIRoleMiningApi->patch_potential_role_0: %s\n" % e) ``` @@ -1965,7 +1942,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.json_patch_operation import JsonPatchOperation -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1983,7 +1959,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIRoleMiningApi(api_client).patch_role_mining_session(session_id, x_sail_point_experimental, new_json_patch_operation) print("The response of IAIRoleMiningApi->patch_role_mining_session:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIRoleMiningApi->patch_role_mining_session: %s\n" % e) ``` @@ -2041,7 +2017,6 @@ from sailpoint.v2024.api.iai_role_mining_api import IAIRoleMiningApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role_mining_potential_role import RoleMiningPotentialRole from sailpoint.v2024.models.role_mining_potential_role_edit_entitlements import RoleMiningPotentialRoleEditEntitlements -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -2063,7 +2038,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IAIRoleMiningApi(api_client).update_entitlements_potential_role(session_id, potential_role_id, x_sail_point_experimental, new_role_mining_potential_role_edit_entitlements) print("The response of IAIRoleMiningApi->update_entitlements_potential_role:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IAIRoleMiningApi->update_entitlements_potential_role: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/IconsApi.md b/sailpoint/v2024/docs/Methods/IconsApi.md index 129ba15ad..39f08369a 100644 --- a/sailpoint/v2024/docs/Methods/IconsApi.md +++ b/sailpoint/v2024/docs/Methods/IconsApi.md @@ -69,7 +69,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.icons_api import IconsApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -144,7 +143,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.icons_api import IconsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.set_icon200_response import SetIcon200Response -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -163,7 +161,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IconsApi(api_client).set_icon(object_type, object_id, x_sail_point_experimental, image) print("The response of IconsApi->set_icon:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IconsApi->set_icon: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/IdentitiesApi.md b/sailpoint/v2024/docs/Methods/IdentitiesApi.md index 280750d54..65abafe23 100644 --- a/sailpoint/v2024/docs/Methods/IdentitiesApi.md +++ b/sailpoint/v2024/docs/Methods/IdentitiesApi.md @@ -90,7 +90,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.identities_api import IdentitiesApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -162,7 +161,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.identities_api import IdentitiesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.identity import Identity -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -179,7 +177,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentitiesApi(api_client).get_identity(id, x_sail_point_experimental) print("The response of IdentitiesApi->get_identity:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentitiesApi->get_identity: %s\n" % e) ``` @@ -238,7 +236,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.identities_api import IdentitiesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.identity_ownership_association_details import IdentityOwnershipAssociationDetails -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -255,7 +252,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentitiesApi(api_client).get_identity_ownership_details(identity_id, x_sail_point_experimental) print("The response of IdentitiesApi->get_identity_ownership_details:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentitiesApi->get_identity_ownership_details: %s\n" % e) ``` @@ -313,7 +310,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.identities_api import IdentitiesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role_assignment_dto import RoleAssignmentDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -331,7 +327,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentitiesApi(api_client).get_role_assignment(identity_id, assignment_id, x_sail_point_experimental) print("The response of IdentitiesApi->get_role_assignment:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentitiesApi->get_role_assignment: %s\n" % e) ``` @@ -390,7 +386,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.identities_api import IdentitiesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.get_role_assignments200_response_inner import GetRoleAssignments200ResponseInner -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -409,7 +404,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentitiesApi(api_client).get_role_assignments(identity_id, x_sail_point_experimental, role_id, role_name) print("The response of IdentitiesApi->get_role_assignments:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentitiesApi->get_role_assignments: %s\n" % e) ``` @@ -470,7 +465,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.identities_api import IdentitiesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.identity import Identity -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -492,7 +486,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentitiesApi(api_client).list_identities(x_sail_point_experimental, filters, sorters, default_filter, count, limit, offset) print("The response of IdentitiesApi->list_identities:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentitiesApi->list_identities: %s\n" % e) ``` @@ -548,7 +542,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.identities_api import IdentitiesApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -622,7 +615,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.identities_api import IdentitiesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.send_account_verification_request import SendAccountVerificationRequest -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -704,7 +696,6 @@ from sailpoint.v2024.api.identities_api import IdentitiesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.invite_identities_request import InviteIdentitiesRequest from sailpoint.v2024.models.task_status import TaskStatus -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -724,7 +715,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentitiesApi(api_client).start_identities_invite(x_sail_point_experimental, new_invite_identities_request) print("The response of IdentitiesApi->start_identities_invite:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentitiesApi->start_identities_invite: %s\n" % e) ``` @@ -789,7 +780,6 @@ from sailpoint.v2024.api.identities_api import IdentitiesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.process_identities_request import ProcessIdentitiesRequest from sailpoint.v2024.models.task_result_response import TaskResultResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -808,7 +798,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentitiesApi(api_client).start_identity_processing(x_sail_point_experimental, new_process_identities_request) print("The response of IdentitiesApi->start_identity_processing:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentitiesApi->start_identity_processing: %s\n" % e) ``` @@ -865,7 +855,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.identities_api import IdentitiesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.identity_sync_job import IdentitySyncJob -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -882,7 +871,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentitiesApi(api_client).synchronize_attributes_for_identity(identity_id, x_sail_point_experimental) print("The response of IdentitiesApi->synchronize_attributes_for_identity:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentitiesApi->synchronize_attributes_for_identity: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/IdentityAttributesApi.md b/sailpoint/v2024/docs/Methods/IdentityAttributesApi.md index 52819987a..044ef26c6 100644 --- a/sailpoint/v2024/docs/Methods/IdentityAttributesApi.md +++ b/sailpoint/v2024/docs/Methods/IdentityAttributesApi.md @@ -71,7 +71,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.identity_attributes_api import IdentityAttributesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.identity_attribute import IdentityAttribute -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -109,7 +108,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentityAttributesApi(api_client).create_identity_attribute(x_sail_point_experimental, new_identity_attribute) print("The response of IdentityAttributesApi->create_identity_attribute:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentityAttributesApi->create_identity_attribute: %s\n" % e) ``` @@ -165,7 +164,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.identity_attributes_api import IdentityAttributesApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -237,7 +235,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.identity_attributes_api import IdentityAttributesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.identity_attribute_names import IdentityAttributeNames -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -311,7 +308,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.identity_attributes_api import IdentityAttributesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.identity_attribute import IdentityAttribute -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -328,7 +324,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentityAttributesApi(api_client).get_identity_attribute(name, x_sail_point_experimental) print("The response of IdentityAttributesApi->get_identity_attribute:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentityAttributesApi->get_identity_attribute: %s\n" % e) ``` @@ -387,7 +383,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.identity_attributes_api import IdentityAttributesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.identity_attribute import IdentityAttribute -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -407,7 +402,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentityAttributesApi(api_client).list_identity_attributes(x_sail_point_experimental, include_system, include_silent, searchable_only, count) print("The response of IdentityAttributesApi->list_identity_attributes:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentityAttributesApi->list_identity_attributes: %s\n" % e) ``` @@ -465,7 +460,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.identity_attributes_api import IdentityAttributesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.identity_attribute import IdentityAttribute -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -504,7 +498,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentityAttributesApi(api_client).put_identity_attribute(name, x_sail_point_experimental, new_identity_attribute) print("The response of IdentityAttributesApi->put_identity_attribute:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentityAttributesApi->put_identity_attribute: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/IdentityHistoryApi.md b/sailpoint/v2024/docs/Methods/IdentityHistoryApi.md index 10467c728..9758a6bd4 100644 --- a/sailpoint/v2024/docs/Methods/IdentityHistoryApi.md +++ b/sailpoint/v2024/docs/Methods/IdentityHistoryApi.md @@ -81,7 +81,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.identity_history_api import IdentityHistoryApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.identity_compare_response import IdentityCompareResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -104,7 +103,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentityHistoryApi(api_client).compare_identity_snapshots(id, x_sail_point_experimental, snapshot1, snapshot2, access_item_types, limit, offset, count) print("The response of IdentityHistoryApi->compare_identity_snapshots:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentityHistoryApi->compare_identity_snapshots: %s\n" % e) ``` @@ -167,7 +166,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.identity_history_api import IdentityHistoryApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.access_item_diff import AccessItemDiff -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -191,7 +189,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentityHistoryApi(api_client).compare_identity_snapshots_access_type(id, access_type, x_sail_point_experimental, access_associated, snapshot1, snapshot2, limit, offset, count) print("The response of IdentityHistoryApi->compare_identity_snapshots_access_type:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentityHistoryApi->compare_identity_snapshots_access_type: %s\n" % e) ``` @@ -247,7 +245,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.identity_history_api import IdentityHistoryApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.identity_history_response import IdentityHistoryResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -264,7 +261,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentityHistoryApi(api_client).get_historical_identity(id, x_sail_point_experimental) print("The response of IdentityHistoryApi->get_historical_identity:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentityHistoryApi->get_historical_identity: %s\n" % e) ``` @@ -327,7 +324,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.identity_history_api import IdentityHistoryApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.get_historical_identity_events200_response_inner import GetHistoricalIdentityEvents200ResponseInner -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -350,7 +346,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentityHistoryApi(api_client).get_historical_identity_events(id, x_sail_point_experimental, var_from, event_types, access_item_types, limit, offset, count) print("The response of IdentityHistoryApi->get_historical_identity_events:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentityHistoryApi->get_historical_identity_events: %s\n" % e) ``` @@ -407,7 +403,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.identity_history_api import IdentityHistoryApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.identity_history_response import IdentityHistoryResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -425,7 +420,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentityHistoryApi(api_client).get_identity_snapshot(id, var_date, x_sail_point_experimental) print("The response of IdentityHistoryApi->get_identity_snapshot:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentityHistoryApi->get_identity_snapshot: %s\n" % e) ``` @@ -487,7 +482,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.identity_history_api import IdentityHistoryApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.metric_response import MetricResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -510,7 +504,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentityHistoryApi(api_client).get_identity_snapshot_summary(id, x_sail_point_experimental, before, interval, time_zone, limit, offset, count) print("The response of IdentityHistoryApi->get_identity_snapshot_summary:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentityHistoryApi->get_identity_snapshot_summary: %s\n" % e) ``` @@ -565,7 +559,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.identity_history_api import IdentityHistoryApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -582,7 +575,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentityHistoryApi(api_client).get_identity_start_date(id, x_sail_point_experimental) print("The response of IdentityHistoryApi->get_identity_start_date:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentityHistoryApi->get_identity_start_date: %s\n" % e) ``` @@ -642,7 +635,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.identity_history_api import IdentityHistoryApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.identity_list_item import IdentityListItem -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -663,7 +655,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentityHistoryApi(api_client).list_historical_identities(x_sail_point_experimental, starts_with_query, is_deleted, is_active, limit, offset) print("The response of IdentityHistoryApi->list_historical_identities:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentityHistoryApi->list_historical_identities: %s\n" % e) ``` @@ -725,7 +717,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.identity_history_api import IdentityHistoryApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.list_identity_access_items200_response_inner import ListIdentityAccessItems200ResponseInner -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -746,7 +737,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentityHistoryApi(api_client).list_identity_access_items(id, x_sail_point_experimental, type, limit, count, offset) print("The response of IdentityHistoryApi->list_identity_access_items:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentityHistoryApi->list_identity_access_items: %s\n" % e) ``` @@ -804,7 +795,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.identity_history_api import IdentityHistoryApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.list_identity_access_items200_response_inner import ListIdentityAccessItems200ResponseInner -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -823,7 +813,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentityHistoryApi(api_client).list_identity_snapshot_access_items(id, var_date, x_sail_point_experimental, type) print("The response of IdentityHistoryApi->list_identity_snapshot_access_items:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentityHistoryApi->list_identity_snapshot_access_items: %s\n" % e) ``` @@ -884,7 +874,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.identity_history_api import IdentityHistoryApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.identity_snapshot_summary_response import IdentitySnapshotSummaryResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -906,7 +895,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentityHistoryApi(api_client).list_identity_snapshots(id, x_sail_point_experimental, start, interval, limit, offset, count) print("The response of IdentityHistoryApi->list_identity_snapshots:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentityHistoryApi->list_identity_snapshots: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/IdentityProfilesApi.md b/sailpoint/v2024/docs/Methods/IdentityProfilesApi.md index 7064cac2c..9f2fa5677 100644 --- a/sailpoint/v2024/docs/Methods/IdentityProfilesApi.md +++ b/sailpoint/v2024/docs/Methods/IdentityProfilesApi.md @@ -73,7 +73,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.identity_profiles_api import IdentityProfilesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.identity_profile import IdentityProfile -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -136,7 +135,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentityProfilesApi(api_client).create_identity_profile(new_identity_profile) print("The response of IdentityProfilesApi->create_identity_profile:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentityProfilesApi->create_identity_profile: %s\n" % e) ``` @@ -182,7 +181,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.identity_profiles_api import IdentityProfilesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.task_result_simplified import TaskResultSimplified -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -197,7 +195,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentityProfilesApi(api_client).delete_identity_profile(identity_profile_id) print("The response of IdentityProfilesApi->delete_identity_profile:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentityProfilesApi->delete_identity_profile: %s\n" % e) ``` @@ -245,7 +243,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.identity_profiles_api import IdentityProfilesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.task_result_simplified import TaskResultSimplified -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -260,7 +257,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentityProfilesApi(api_client).delete_identity_profiles(new_request_body) print("The response of IdentityProfilesApi->delete_identity_profiles:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentityProfilesApi->delete_identity_profiles: %s\n" % e) ``` @@ -308,7 +305,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.identity_profiles_api import IdentityProfilesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.identity_profile_exported_object import IdentityProfileExportedObject -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -327,7 +323,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentityProfilesApi(api_client).export_identity_profiles(limit, offset, count, filters, sorters) print("The response of IdentityProfilesApi->export_identity_profiles:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentityProfilesApi->export_identity_profiles: %s\n" % e) ``` @@ -384,7 +380,6 @@ from sailpoint.v2024.api.identity_profiles_api import IdentityProfilesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.identity_preview_request import IdentityPreviewRequest from sailpoint.v2024.models.identity_preview_response import IdentityPreviewResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -427,7 +422,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentityProfilesApi(api_client).generate_identity_preview(x_sail_point_experimental, new_identity_preview_request) print("The response of IdentityProfilesApi->generate_identity_preview:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentityProfilesApi->generate_identity_preview: %s\n" % e) ``` @@ -472,7 +467,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.identity_profiles_api import IdentityProfilesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.identity_attribute_config import IdentityAttributeConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -487,7 +481,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentityProfilesApi(api_client).get_default_identity_attribute_config(identity_profile_id) print("The response of IdentityProfilesApi->get_default_identity_attribute_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentityProfilesApi->get_default_identity_attribute_config: %s\n" % e) ``` @@ -532,7 +526,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.identity_profiles_api import IdentityProfilesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.identity_profile import IdentityProfile -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -547,7 +540,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentityProfilesApi(api_client).get_identity_profile(identity_profile_id) print("The response of IdentityProfilesApi->get_identity_profile:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentityProfilesApi->get_identity_profile: %s\n" % e) ``` @@ -592,7 +585,6 @@ from sailpoint.v2024.api.identity_profiles_api import IdentityProfilesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.identity_profile_exported_object import IdentityProfileExportedObject from sailpoint.v2024.models.object_import_result import ObjectImportResult -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -607,7 +599,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentityProfilesApi(api_client).import_identity_profiles(new_identity_profile_exported_object) print("The response of IdentityProfilesApi->import_identity_profiles:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentityProfilesApi->import_identity_profiles: %s\n" % e) ``` @@ -655,7 +647,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.identity_profiles_api import IdentityProfilesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.identity_profile import IdentityProfile -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -674,7 +665,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentityProfilesApi(api_client).list_identity_profiles(limit, offset, count, filters, sorters) print("The response of IdentityProfilesApi->list_identity_profiles:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentityProfilesApi->list_identity_profiles: %s\n" % e) ``` @@ -722,7 +713,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.identity_profiles_api import IdentityProfilesApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -737,7 +727,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentityProfilesApi(api_client).sync_identity_profile(identity_profile_id) print("The response of IdentityProfilesApi->sync_identity_profile:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentityProfilesApi->sync_identity_profile: %s\n" % e) ``` @@ -792,7 +782,6 @@ from sailpoint.v2024.api.identity_profiles_api import IdentityProfilesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.identity_profile import IdentityProfile from sailpoint.v2024.models.json_patch_operation import JsonPatchOperation -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -808,7 +797,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentityProfilesApi(api_client).update_identity_profile(identity_profile_id, new_json_patch_operation) print("The response of IdentityProfilesApi->update_identity_profile:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentityProfilesApi->update_identity_profile: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/LifecycleStatesApi.md b/sailpoint/v2024/docs/Methods/LifecycleStatesApi.md index 474f25a6a..53cf0cfa6 100644 --- a/sailpoint/v2024/docs/Methods/LifecycleStatesApi.md +++ b/sailpoint/v2024/docs/Methods/LifecycleStatesApi.md @@ -97,7 +97,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.lifecycle_states_api import LifecycleStatesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.lifecycle_state import LifecycleState -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -137,7 +136,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = LifecycleStatesApi(api_client).create_lifecycle_state(identity_profile_id, new_lifecycle_state) print("The response of LifecycleStatesApi->create_lifecycle_state:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling LifecycleStatesApi->create_lifecycle_state: %s\n" % e) ``` @@ -183,7 +182,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.lifecycle_states_api import LifecycleStatesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.lifecyclestate_deleted import LifecyclestateDeleted -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -199,7 +197,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = LifecycleStatesApi(api_client).delete_lifecycle_state(identity_profile_id, lifecycle_state_id) print("The response of LifecycleStatesApi->delete_lifecycle_state:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling LifecycleStatesApi->delete_lifecycle_state: %s\n" % e) ``` @@ -245,7 +243,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.lifecycle_states_api import LifecycleStatesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.lifecycle_state import LifecycleState -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -261,7 +258,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = LifecycleStatesApi(api_client).get_lifecycle_state(identity_profile_id, lifecycle_state_id) print("The response of LifecycleStatesApi->get_lifecycle_state:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling LifecycleStatesApi->get_lifecycle_state: %s\n" % e) ``` @@ -309,7 +306,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.lifecycle_states_api import LifecycleStatesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.lifecycle_state import LifecycleState -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -328,7 +324,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = LifecycleStatesApi(api_client).get_lifecycle_states(identity_profile_id, limit, offset, count, sorters) print("The response of LifecycleStatesApi->get_lifecycle_states:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling LifecycleStatesApi->get_lifecycle_states: %s\n" % e) ``` @@ -375,7 +371,6 @@ from sailpoint.v2024.api.lifecycle_states_api import LifecycleStatesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.set_lifecycle_state200_response import SetLifecycleState200Response from sailpoint.v2024.models.set_lifecycle_state_request import SetLifecycleStateRequest -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -391,7 +386,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = LifecycleStatesApi(api_client).set_lifecycle_state(identity_id, new_set_lifecycle_state_request) print("The response of LifecycleStatesApi->set_lifecycle_state:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling LifecycleStatesApi->set_lifecycle_state: %s\n" % e) ``` @@ -439,7 +434,6 @@ from sailpoint.v2024.api.lifecycle_states_api import LifecycleStatesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.json_patch_operation import JsonPatchOperation from sailpoint.v2024.models.lifecycle_state import LifecycleState -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -456,7 +450,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = LifecycleStatesApi(api_client).update_lifecycle_states(identity_profile_id, lifecycle_state_id, new_json_patch_operation) print("The response of LifecycleStatesApi->update_lifecycle_states:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling LifecycleStatesApi->update_lifecycle_states: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/MFAConfigurationApi.md b/sailpoint/v2024/docs/Methods/MFAConfigurationApi.md index da50696a0..8ba529834 100644 --- a/sailpoint/v2024/docs/Methods/MFAConfigurationApi.md +++ b/sailpoint/v2024/docs/Methods/MFAConfigurationApi.md @@ -56,7 +56,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.mfa_configuration_api import MFAConfigurationApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.mfa_duo_config import MfaDuoConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -70,7 +69,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = MFAConfigurationApi(api_client).get_mfa_duo_config() print("The response of MFAConfigurationApi->get_mfa_duo_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling MFAConfigurationApi->get_mfa_duo_config: %s\n" % e) ``` @@ -114,7 +113,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.mfa_configuration_api import MFAConfigurationApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.kba_question import KbaQuestion -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -129,7 +127,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = MFAConfigurationApi(api_client).get_mfa_kba_config(all_languages) print("The response of MFAConfigurationApi->get_mfa_kba_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling MFAConfigurationApi->get_mfa_kba_config: %s\n" % e) ``` @@ -170,7 +168,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.mfa_configuration_api import MFAConfigurationApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.mfa_okta_config import MfaOktaConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -184,7 +181,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = MFAConfigurationApi(api_client).get_mfa_okta_config() print("The response of MFAConfigurationApi->get_mfa_okta_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling MFAConfigurationApi->get_mfa_okta_config: %s\n" % e) ``` @@ -228,7 +225,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.mfa_configuration_api import MFAConfigurationApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.mfa_duo_config import MfaDuoConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -253,7 +249,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = MFAConfigurationApi(api_client).set_mfa_duo_config(new_mfa_duo_config) print("The response of MFAConfigurationApi->set_mfa_duo_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling MFAConfigurationApi->set_mfa_duo_config: %s\n" % e) ``` @@ -297,7 +293,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.mfa_configuration_api import MFAConfigurationApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.mfa_okta_config import MfaOktaConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -318,7 +313,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = MFAConfigurationApi(api_client).set_mfa_okta_config(new_mfa_okta_config) print("The response of MFAConfigurationApi->set_mfa_okta_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling MFAConfigurationApi->set_mfa_okta_config: %s\n" % e) ``` @@ -363,7 +358,6 @@ from sailpoint.v2024.api.mfa_configuration_api import MFAConfigurationApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.kba_answer_request_item import KbaAnswerRequestItem from sailpoint.v2024.models.kba_answer_response_item import KbaAnswerResponseItem -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -378,7 +372,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = MFAConfigurationApi(api_client).set_mfakba_config(new_kba_answer_request_item) print("The response of MFAConfigurationApi->set_mfakba_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling MFAConfigurationApi->set_mfakba_config: %s\n" % e) ``` @@ -422,7 +416,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.mfa_configuration_api import MFAConfigurationApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.mfa_config_test_response import MfaConfigTestResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -437,7 +430,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = MFAConfigurationApi(api_client).test_mfa_config(method) print("The response of MFAConfigurationApi->test_mfa_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling MFAConfigurationApi->test_mfa_config: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/MachineAccountsApi.md b/sailpoint/v2024/docs/Methods/MachineAccountsApi.md index 0695631a1..513258da1 100644 --- a/sailpoint/v2024/docs/Methods/MachineAccountsApi.md +++ b/sailpoint/v2024/docs/Methods/MachineAccountsApi.md @@ -68,7 +68,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.machine_accounts_api import MachineAccountsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.machine_account import MachineAccount -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -85,7 +84,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = MachineAccountsApi(api_client).get_machine_account(id, x_sail_point_experimental) print("The response of MachineAccountsApi->get_machine_account:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling MachineAccountsApi->get_machine_account: %s\n" % e) ``` @@ -146,7 +145,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.machine_accounts_api import MachineAccountsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.machine_account import MachineAccount -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -167,7 +165,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = MachineAccountsApi(api_client).list_machine_accounts(x_sail_point_experimental, limit, offset, count, filters, sorters) print("The response of MachineAccountsApi->list_machine_accounts:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling MachineAccountsApi->list_machine_accounts: %s\n" % e) ``` @@ -226,7 +224,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.machine_accounts_api import MachineAccountsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.machine_account import MachineAccount -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -244,7 +241,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = MachineAccountsApi(api_client).update_machine_account(id, x_sail_point_experimental, new_request_body) print("The response of MachineAccountsApi->update_machine_account:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling MachineAccountsApi->update_machine_account: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/MachineIdentitiesApi.md b/sailpoint/v2024/docs/Methods/MachineIdentitiesApi.md index d26e6c262..822dd6fa7 100644 --- a/sailpoint/v2024/docs/Methods/MachineIdentitiesApi.md +++ b/sailpoint/v2024/docs/Methods/MachineIdentitiesApi.md @@ -71,7 +71,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.machine_identities_api import MachineIdentitiesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.machine_identity import MachineIdentity -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -97,7 +96,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = MachineIdentitiesApi(api_client).create_machine_identity(x_sail_point_experimental, new_machine_identity) print("The response of MachineIdentitiesApi->create_machine_identity:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling MachineIdentitiesApi->create_machine_identity: %s\n" % e) ``` @@ -153,7 +152,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.machine_identities_api import MachineIdentitiesApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -225,7 +223,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.machine_identities_api import MachineIdentitiesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.machine_identity import MachineIdentity -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -242,7 +239,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = MachineIdentitiesApi(api_client).get_machine_identity(id, x_sail_point_experimental) print("The response of MachineIdentitiesApi->get_machine_identity:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling MachineIdentitiesApi->get_machine_identity: %s\n" % e) ``` @@ -303,7 +300,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.machine_identities_api import MachineIdentitiesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.machine_identity import MachineIdentity -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -324,7 +320,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = MachineIdentitiesApi(api_client).list_machine_identities(x_sail_point_experimental, filters, sorters, count, limit, offset) print("The response of MachineIdentitiesApi->list_machine_identities:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling MachineIdentitiesApi->list_machine_identities: %s\n" % e) ``` @@ -383,7 +379,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.machine_identities_api import MachineIdentitiesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.machine_identity import MachineIdentity -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -401,7 +396,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = MachineIdentitiesApi(api_client).update_machine_identity(id, x_sail_point_experimental, new_request_body) print("The response of MachineIdentitiesApi->update_machine_identity:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling MachineIdentitiesApi->update_machine_identity: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/ManagedClientsApi.md b/sailpoint/v2024/docs/Methods/ManagedClientsApi.md index 469356019..f0ce5678a 100644 --- a/sailpoint/v2024/docs/Methods/ManagedClientsApi.md +++ b/sailpoint/v2024/docs/Methods/ManagedClientsApi.md @@ -62,7 +62,6 @@ from sailpoint.v2024.api.managed_clients_api import ManagedClientsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.managed_client import ManagedClient from sailpoint.v2024.models.managed_client_request import ManagedClientRequest -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -82,7 +81,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ManagedClientsApi(api_client).create_managed_client(new_managed_client_request) print("The response of ManagedClientsApi->create_managed_client:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ManagedClientsApi->create_managed_client: %s\n" % e) ``` @@ -125,7 +124,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.managed_clients_api import ManagedClientsApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -183,7 +181,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.managed_clients_api import ManagedClientsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.managed_client import ManagedClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -198,7 +195,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ManagedClientsApi(api_client).get_managed_client(id) print("The response of ManagedClientsApi->get_managed_client:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ManagedClientsApi->get_managed_client: %s\n" % e) ``` @@ -245,7 +242,6 @@ from sailpoint.v2024.api.managed_clients_api import ManagedClientsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.managed_client_status import ManagedClientStatus from sailpoint.v2024.models.managed_client_type import ManagedClientType -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -261,7 +257,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ManagedClientsApi(api_client).get_managed_client_status(id, type) print("The response of ManagedClientsApi->get_managed_client_status:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ManagedClientsApi->get_managed_client_status: %s\n" % e) ``` @@ -308,7 +304,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.managed_clients_api import ManagedClientsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.managed_client import ManagedClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -326,7 +321,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ManagedClientsApi(api_client).get_managed_clients(offset, limit, count, filters) print("The response of ManagedClientsApi->get_managed_clients:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ManagedClientsApi->get_managed_clients: %s\n" % e) ``` @@ -373,7 +368,6 @@ from sailpoint.v2024.api.managed_clients_api import ManagedClientsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.json_patch_operation import JsonPatchOperation from sailpoint.v2024.models.managed_client import ManagedClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -389,7 +383,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ManagedClientsApi(api_client).update_managed_client(id, new_json_patch_operation) print("The response of ManagedClientsApi->update_managed_client:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ManagedClientsApi->update_managed_client: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/ManagedClustersApi.md b/sailpoint/v2024/docs/Methods/ManagedClustersApi.md index 61a9cec63..3f089f369 100644 --- a/sailpoint/v2024/docs/Methods/ManagedClustersApi.md +++ b/sailpoint/v2024/docs/Methods/ManagedClustersApi.md @@ -64,7 +64,6 @@ from sailpoint.v2024.api.managed_clusters_api import ManagedClustersApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.managed_cluster import ManagedCluster from sailpoint.v2024.models.managed_cluster_request import ManagedClusterRequest -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -87,7 +86,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ManagedClustersApi(api_client).create_managed_cluster(new_managed_cluster_request) print("The response of ManagedClustersApi->create_managed_cluster:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ManagedClustersApi->create_managed_cluster: %s\n" % e) ``` @@ -131,7 +130,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.managed_clusters_api import ManagedClustersApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -191,7 +189,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.managed_clusters_api import ManagedClustersApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.client_log_configuration import ClientLogConfiguration -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -206,7 +203,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ManagedClustersApi(api_client).get_client_log_configuration(id) print("The response of ManagedClustersApi->get_client_log_configuration:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ManagedClustersApi->get_client_log_configuration: %s\n" % e) ``` @@ -251,7 +248,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.managed_clusters_api import ManagedClustersApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.managed_cluster import ManagedCluster -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -266,7 +262,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ManagedClustersApi(api_client).get_managed_cluster(id) print("The response of ManagedClustersApi->get_managed_cluster:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ManagedClustersApi->get_managed_cluster: %s\n" % e) ``` @@ -313,7 +309,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.managed_clusters_api import ManagedClustersApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.managed_cluster import ManagedCluster -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -331,7 +326,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ManagedClustersApi(api_client).get_managed_clusters(offset, limit, count, filters) print("The response of ManagedClustersApi->get_managed_clusters:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ManagedClustersApi->get_managed_clusters: %s\n" % e) ``` @@ -378,7 +373,6 @@ from sailpoint.v2024.api.managed_clusters_api import ManagedClustersApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.client_log_configuration import ClientLogConfiguration from sailpoint.v2024.models.put_client_log_configuration_request import PutClientLogConfigurationRequest -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -394,7 +388,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ManagedClustersApi(api_client).put_client_log_configuration(id, new_put_client_log_configuration_request) print("The response of ManagedClustersApi->put_client_log_configuration:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ManagedClustersApi->put_client_log_configuration: %s\n" % e) ``` @@ -440,7 +434,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.managed_clusters_api import ManagedClustersApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.cluster_manual_upgrade import ClusterManualUpgrade -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -455,7 +448,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ManagedClustersApi(api_client).update(id) print("The response of ManagedClustersApi->update:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ManagedClustersApi->update: %s\n" % e) ``` @@ -502,7 +495,6 @@ from sailpoint.v2024.api.managed_clusters_api import ManagedClustersApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.json_patch_operation import JsonPatchOperation from sailpoint.v2024.models.managed_cluster import ManagedCluster -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -518,7 +510,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ManagedClustersApi(api_client).update_managed_cluster(id, new_json_patch_operation) print("The response of ManagedClustersApi->update_managed_cluster:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ManagedClustersApi->update_managed_cluster: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/NonEmployeeLifecycleManagementApi.md b/sailpoint/v2024/docs/Methods/NonEmployeeLifecycleManagementApi.md index 073627a78..e17ce04f9 100644 --- a/sailpoint/v2024/docs/Methods/NonEmployeeLifecycleManagementApi.md +++ b/sailpoint/v2024/docs/Methods/NonEmployeeLifecycleManagementApi.md @@ -117,7 +117,6 @@ from sailpoint.v2024.api.non_employee_lifecycle_management_api import NonEmploye from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.non_employee_approval_decision import NonEmployeeApprovalDecision from sailpoint.v2024.models.non_employee_approval_item import NonEmployeeApprovalItem -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -135,7 +134,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NonEmployeeLifecycleManagementApi(api_client).approve_non_employee_request(id, new_non_employee_approval_decision) print("The response of NonEmployeeLifecycleManagementApi->approve_non_employee_request:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NonEmployeeLifecycleManagementApi->approve_non_employee_request: %s\n" % e) ``` @@ -181,7 +180,6 @@ from sailpoint.v2024.api.non_employee_lifecycle_management_api import NonEmploye from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.non_employee_record import NonEmployeeRecord from sailpoint.v2024.models.non_employee_request_body import NonEmployeeRequestBody -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -209,7 +207,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NonEmployeeLifecycleManagementApi(api_client).create_non_employee_record(new_non_employee_request_body) print("The response of NonEmployeeLifecycleManagementApi->create_non_employee_record:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NonEmployeeLifecycleManagementApi->create_non_employee_record: %s\n" % e) ``` @@ -254,7 +252,6 @@ from sailpoint.v2024.api.non_employee_lifecycle_management_api import NonEmploye from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.non_employee_request import NonEmployeeRequest from sailpoint.v2024.models.non_employee_request_body import NonEmployeeRequestBody -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -282,7 +279,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NonEmployeeLifecycleManagementApi(api_client).create_non_employee_request(new_non_employee_request_body) print("The response of NonEmployeeLifecycleManagementApi->create_non_employee_request:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NonEmployeeLifecycleManagementApi->create_non_employee_request: %s\n" % e) ``` @@ -327,7 +324,6 @@ from sailpoint.v2024.api.non_employee_lifecycle_management_api import NonEmploye from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.non_employee_source_request_body import NonEmployeeSourceRequestBody from sailpoint.v2024.models.non_employee_source_with_cloud_external_id import NonEmployeeSourceWithCloudExternalId -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -367,7 +363,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NonEmployeeLifecycleManagementApi(api_client).create_non_employee_source(new_non_employee_source_request_body) print("The response of NonEmployeeLifecycleManagementApi->create_non_employee_source:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NonEmployeeLifecycleManagementApi->create_non_employee_source: %s\n" % e) ``` @@ -414,7 +410,6 @@ from sailpoint.v2024.api.non_employee_lifecycle_management_api import NonEmploye from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.non_employee_schema_attribute import NonEmployeeSchemaAttribute from sailpoint.v2024.models.non_employee_schema_attribute_body import NonEmployeeSchemaAttributeBody -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -437,7 +432,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NonEmployeeLifecycleManagementApi(api_client).create_non_employee_source_schema_attributes(source_id, new_non_employee_schema_attribute_body) print("The response of NonEmployeeLifecycleManagementApi->create_non_employee_source_schema_attributes:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NonEmployeeLifecycleManagementApi->create_non_employee_source_schema_attributes: %s\n" % e) ``` @@ -481,7 +476,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -538,7 +532,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.delete_non_employee_records_in_bulk_request import DeleteNonEmployeeRecordsInBulkRequest -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -596,7 +589,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -655,7 +647,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -712,7 +703,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -768,7 +758,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -825,7 +814,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -882,7 +870,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -943,7 +930,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.non_employee_approval_item_detail import NonEmployeeApprovalItemDetail -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -959,7 +945,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_approval(id, include_detail) print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_approval:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_approval: %s\n" % e) ``` @@ -1007,7 +993,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.non_employee_approval_summary import NonEmployeeApprovalSummary -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1022,7 +1007,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_approval_summary(requested_for) print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_approval_summary:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_approval_summary: %s\n" % e) ``` @@ -1068,7 +1053,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.non_employee_bulk_upload_status import NonEmployeeBulkUploadStatus -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1083,7 +1067,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_bulk_upload_status(id) print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_bulk_upload_status:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_bulk_upload_status: %s\n" % e) ``` @@ -1128,7 +1112,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.non_employee_record import NonEmployeeRecord -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1143,7 +1126,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_record(id) print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_record:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_record: %s\n" % e) ``` @@ -1192,7 +1175,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.non_employee_request import NonEmployeeRequest -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1207,7 +1189,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_request(id) print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_request:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_request: %s\n" % e) ``` @@ -1255,7 +1237,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.non_employee_request_summary import NonEmployeeRequestSummary -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1270,7 +1251,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_request_summary(requested_for) print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_request_summary:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_request_summary: %s\n" % e) ``` @@ -1315,7 +1296,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.non_employee_schema_attribute import NonEmployeeSchemaAttribute -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1331,7 +1311,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_schema_attribute(attribute_id, source_id) print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_schema_attribute:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_schema_attribute: %s\n" % e) ``` @@ -1379,7 +1359,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.non_employee_source import NonEmployeeSource -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1394,7 +1373,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_source(source_id) print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_source:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_source: %s\n" % e) ``` @@ -1440,7 +1419,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.non_employee_schema_attribute import NonEmployeeSchemaAttribute -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1455,7 +1433,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_source_schema_attributes(source_id) print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_source_schema_attributes:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_source_schema_attributes: %s\n" % e) ``` @@ -1501,7 +1479,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.non_employee_bulk_upload_job import NonEmployeeBulkUploadJob -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1517,7 +1494,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NonEmployeeLifecycleManagementApi(api_client).import_non_employee_records_in_bulk(id, data) print("The response of NonEmployeeLifecycleManagementApi->import_non_employee_records_in_bulk:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NonEmployeeLifecycleManagementApi->import_non_employee_records_in_bulk: %s\n" % e) ``` @@ -1570,7 +1547,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.non_employee_approval_item import NonEmployeeApprovalItem -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1590,7 +1566,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NonEmployeeLifecycleManagementApi(api_client).list_non_employee_approvals(requested_for, limit, offset, count, filters, sorters) print("The response of NonEmployeeLifecycleManagementApi->list_non_employee_approvals:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NonEmployeeLifecycleManagementApi->list_non_employee_approvals: %s\n" % e) ``` @@ -1640,7 +1616,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.non_employee_record import NonEmployeeRecord -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1659,7 +1634,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NonEmployeeLifecycleManagementApi(api_client).list_non_employee_records(limit, offset, count, sorters, filters) print("The response of NonEmployeeLifecycleManagementApi->list_non_employee_records:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NonEmployeeLifecycleManagementApi->list_non_employee_records: %s\n" % e) ``` @@ -1712,7 +1687,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.non_employee_request import NonEmployeeRequest -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1732,7 +1706,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NonEmployeeLifecycleManagementApi(api_client).list_non_employee_requests(requested_for, limit, offset, count, sorters, filters) print("The response of NonEmployeeLifecycleManagementApi->list_non_employee_requests:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NonEmployeeLifecycleManagementApi->list_non_employee_requests: %s\n" % e) ``` @@ -1783,7 +1757,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.non_employee_source_with_ne_count import NonEmployeeSourceWithNECount -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1803,7 +1776,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NonEmployeeLifecycleManagementApi(api_client).list_non_employee_sources(limit, offset, count, requested_for, non_employee_count, sorters) print("The response of NonEmployeeLifecycleManagementApi->list_non_employee_sources:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NonEmployeeLifecycleManagementApi->list_non_employee_sources: %s\n" % e) ``` @@ -1854,7 +1827,6 @@ from sailpoint.v2024.api.non_employee_lifecycle_management_api import NonEmploye from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.json_patch_operation import JsonPatchOperation from sailpoint.v2024.models.non_employee_record import NonEmployeeRecord -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1870,7 +1842,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NonEmployeeLifecycleManagementApi(api_client).patch_non_employee_record(id, new_json_patch_operation) print("The response of NonEmployeeLifecycleManagementApi->patch_non_employee_record:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NonEmployeeLifecycleManagementApi->patch_non_employee_record: %s\n" % e) ``` @@ -1920,7 +1892,6 @@ from sailpoint.v2024.api.non_employee_lifecycle_management_api import NonEmploye from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.json_patch_operation import JsonPatchOperation from sailpoint.v2024.models.non_employee_schema_attribute import NonEmployeeSchemaAttribute -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1937,7 +1908,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NonEmployeeLifecycleManagementApi(api_client).patch_non_employee_schema_attribute(attribute_id, source_id, new_json_patch_operation) print("The response of NonEmployeeLifecycleManagementApi->patch_non_employee_schema_attribute:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NonEmployeeLifecycleManagementApi->patch_non_employee_schema_attribute: %s\n" % e) ``` @@ -1983,7 +1954,6 @@ from sailpoint.v2024.api.non_employee_lifecycle_management_api import NonEmploye from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.json_patch_operation import JsonPatchOperation from sailpoint.v2024.models.non_employee_source import NonEmployeeSource -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1999,7 +1969,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NonEmployeeLifecycleManagementApi(api_client).patch_non_employee_source(source_id, new_json_patch_operation) print("The response of NonEmployeeLifecycleManagementApi->patch_non_employee_source:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NonEmployeeLifecycleManagementApi->patch_non_employee_source: %s\n" % e) ``` @@ -2045,7 +2015,6 @@ from sailpoint.v2024.api.non_employee_lifecycle_management_api import NonEmploye from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.non_employee_approval_item import NonEmployeeApprovalItem from sailpoint.v2024.models.non_employee_reject_approval_decision import NonEmployeeRejectApprovalDecision -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -2063,7 +2032,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NonEmployeeLifecycleManagementApi(api_client).reject_non_employee_request(id, new_non_employee_reject_approval_decision) print("The response of NonEmployeeLifecycleManagementApi->reject_non_employee_request:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NonEmployeeLifecycleManagementApi->reject_non_employee_request: %s\n" % e) ``` @@ -2114,7 +2083,6 @@ from sailpoint.v2024.api.non_employee_lifecycle_management_api import NonEmploye from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.non_employee_record import NonEmployeeRecord from sailpoint.v2024.models.non_employee_request_body import NonEmployeeRequestBody -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -2143,7 +2111,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NonEmployeeLifecycleManagementApi(api_client).update_non_employee_record(id, new_non_employee_request_body) print("The response of NonEmployeeLifecycleManagementApi->update_non_employee_record:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NonEmployeeLifecycleManagementApi->update_non_employee_record: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/NotificationsApi.md b/sailpoint/v2024/docs/Methods/NotificationsApi.md index ed2bf1c9a..bc1ec9856 100644 --- a/sailpoint/v2024/docs/Methods/NotificationsApi.md +++ b/sailpoint/v2024/docs/Methods/NotificationsApi.md @@ -81,7 +81,6 @@ from sailpoint.v2024.api.notifications_api import NotificationsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.domain_address import DomainAddress from sailpoint.v2024.models.domain_status_dto import DomainStatusDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -100,7 +99,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NotificationsApi(api_client).create_domain_dkim(x_sail_point_experimental, new_domain_address) print("The response of NotificationsApi->create_domain_dkim:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NotificationsApi->create_domain_dkim: %s\n" % e) ``` @@ -158,7 +157,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.notifications_api import NotificationsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.template_dto import TemplateDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -192,7 +190,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NotificationsApi(api_client).create_notification_template(x_sail_point_experimental, new_template_dto) print("The response of NotificationsApi->create_notification_template:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NotificationsApi->create_notification_template: %s\n" % e) ``` @@ -248,7 +246,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.notifications_api import NotificationsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.email_status_dto import EmailStatusDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -270,7 +267,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NotificationsApi(api_client).create_verified_from_address(x_sail_point_experimental, new_email_status_dto) print("The response of NotificationsApi->create_verified_from_address:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NotificationsApi->create_verified_from_address: %s\n" % e) ``` @@ -326,7 +323,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.notifications_api import NotificationsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.template_bulk_delete_dto import TemplateBulkDeleteDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -397,7 +393,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.notifications_api import NotificationsApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -467,7 +462,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.notifications_api import NotificationsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.dkim_attributes import DkimAttributes -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -483,7 +477,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NotificationsApi(api_client).get_dkim_attributes(x_sail_point_experimental) print("The response of NotificationsApi->get_dkim_attributes:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NotificationsApi->get_dkim_attributes: %s\n" % e) ``` @@ -539,7 +533,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.notifications_api import NotificationsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.mail_from_attributes import MailFromAttributes -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -556,7 +549,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NotificationsApi(api_client).get_mail_from_attributes(id, x_sail_point_experimental) print("The response of NotificationsApi->get_mail_from_attributes:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NotificationsApi->get_mail_from_attributes: %s\n" % e) ``` @@ -612,7 +605,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.notifications_api import NotificationsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.template_dto import TemplateDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -629,7 +621,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NotificationsApi(api_client).get_notification_template(id, x_sail_point_experimental) print("The response of NotificationsApi->get_notification_template:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NotificationsApi->get_notification_template: %s\n" % e) ``` @@ -685,7 +677,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.notifications_api import NotificationsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.notification_template_context import NotificationTemplateContext -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -701,7 +692,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NotificationsApi(api_client).get_notifications_template_context(x_sail_point_experimental) print("The response of NotificationsApi->get_notifications_template_context:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NotificationsApi->get_notifications_template_context: %s\n" % e) ``` @@ -760,7 +751,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.notifications_api import NotificationsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.email_status_dto import EmailStatusDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -781,7 +771,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NotificationsApi(api_client).list_from_addresses(x_sail_point_experimental, limit, offset, count, filters, sorters) print("The response of NotificationsApi->list_from_addresses:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NotificationsApi->list_from_addresses: %s\n" % e) ``` @@ -837,7 +827,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.notifications_api import NotificationsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.preferences_dto import PreferencesDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -853,7 +842,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NotificationsApi(api_client).list_notification_preferences(x_sail_point_experimental) print("The response of NotificationsApi->list_notification_preferences:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NotificationsApi->list_notification_preferences: %s\n" % e) ``` @@ -911,7 +900,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.notifications_api import NotificationsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.template_dto_default import TemplateDtoDefault -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -930,7 +918,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NotificationsApi(api_client).list_notification_template_defaults(x_sail_point_experimental, limit, offset, filters) print("The response of NotificationsApi->list_notification_template_defaults:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NotificationsApi->list_notification_template_defaults: %s\n" % e) ``` @@ -988,7 +976,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.notifications_api import NotificationsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.template_dto import TemplateDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1007,7 +994,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NotificationsApi(api_client).list_notification_templates(x_sail_point_experimental, limit, offset, filters) print("The response of NotificationsApi->list_notification_templates:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NotificationsApi->list_notification_templates: %s\n" % e) ``` @@ -1064,7 +1051,6 @@ from sailpoint.v2024.api.notifications_api import NotificationsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.mail_from_attributes import MailFromAttributes from sailpoint.v2024.models.mail_from_attributes_dto import MailFromAttributesDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1084,7 +1070,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NotificationsApi(api_client).put_mail_from_attributes(x_sail_point_experimental, new_mail_from_attributes_dto) print("The response of NotificationsApi->put_mail_from_attributes:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NotificationsApi->put_mail_from_attributes: %s\n" % e) ``` @@ -1141,7 +1127,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.notifications_api import NotificationsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.send_test_notification_request_dto import SendTestNotificationRequestDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() diff --git a/sailpoint/v2024/docs/Methods/OAuthClientsApi.md b/sailpoint/v2024/docs/Methods/OAuthClientsApi.md index 67938a3ef..29ebd6f1a 100644 --- a/sailpoint/v2024/docs/Methods/OAuthClientsApi.md +++ b/sailpoint/v2024/docs/Methods/OAuthClientsApi.md @@ -61,7 +61,6 @@ from sailpoint.v2024.api.o_auth_clients_api import OAuthClientsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.create_o_auth_client_request import CreateOAuthClientRequest from sailpoint.v2024.models.create_o_auth_client_response import CreateOAuthClientResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -92,7 +91,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = OAuthClientsApi(api_client).create_oauth_client(new_create_o_auth_client_request) print("The response of OAuthClientsApi->create_oauth_client:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling OAuthClientsApi->create_oauth_client: %s\n" % e) ``` @@ -136,7 +135,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.o_auth_clients_api import OAuthClientsApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -194,7 +192,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.o_auth_clients_api import OAuthClientsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.get_o_auth_client_response import GetOAuthClientResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -209,7 +206,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = OAuthClientsApi(api_client).get_oauth_client(id) print("The response of OAuthClientsApi->get_oauth_client:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling OAuthClientsApi->get_oauth_client: %s\n" % e) ``` @@ -253,7 +250,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.o_auth_clients_api import OAuthClientsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.get_o_auth_client_response import GetOAuthClientResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -268,7 +264,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = OAuthClientsApi(api_client).list_oauth_clients(filters) print("The response of OAuthClientsApi->list_oauth_clients:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling OAuthClientsApi->list_oauth_clients: %s\n" % e) ``` @@ -315,7 +311,6 @@ from sailpoint.v2024.api.o_auth_clients_api import OAuthClientsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.get_o_auth_client_response import GetOAuthClientResponse from sailpoint.v2024.models.json_patch_operation import JsonPatchOperation -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -331,7 +326,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = OAuthClientsApi(api_client).patch_oauth_client(id, new_json_patch_operation) print("The response of OAuthClientsApi->patch_oauth_client:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling OAuthClientsApi->patch_oauth_client: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/OrgConfigApi.md b/sailpoint/v2024/docs/Methods/OrgConfigApi.md index a04dc0adc..db647bdc7 100644 --- a/sailpoint/v2024/docs/Methods/OrgConfigApi.md +++ b/sailpoint/v2024/docs/Methods/OrgConfigApi.md @@ -69,7 +69,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.org_config_api import OrgConfigApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.org_config import OrgConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -85,7 +84,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = OrgConfigApi(api_client).get_org_config(x_sail_point_experimental) print("The response of OrgConfigApi->get_org_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling OrgConfigApi->get_org_config: %s\n" % e) ``` @@ -142,7 +141,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.org_config_api import OrgConfigApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -161,7 +159,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = OrgConfigApi(api_client).get_valid_time_zones(x_sail_point_experimental, limit, offset, count) print("The response of OrgConfigApi->get_valid_time_zones:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling OrgConfigApi->get_valid_time_zones: %s\n" % e) ``` @@ -219,7 +217,6 @@ from sailpoint.v2024.api.org_config_api import OrgConfigApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.json_patch_operation import JsonPatchOperation from sailpoint.v2024.models.org_config import OrgConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -236,7 +233,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = OrgConfigApi(api_client).patch_org_config(x_sail_point_experimental, new_json_patch_operation) print("The response of OrgConfigApi->patch_org_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling OrgConfigApi->patch_org_config: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/PasswordConfigurationApi.md b/sailpoint/v2024/docs/Methods/PasswordConfigurationApi.md index 3a9d18202..be27cfa4f 100644 --- a/sailpoint/v2024/docs/Methods/PasswordConfigurationApi.md +++ b/sailpoint/v2024/docs/Methods/PasswordConfigurationApi.md @@ -63,7 +63,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.password_configuration_api import PasswordConfigurationApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.password_org_config import PasswordOrgConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -83,7 +82,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = PasswordConfigurationApi(api_client).create_password_org_config(new_password_org_config) print("The response of PasswordConfigurationApi->create_password_org_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling PasswordConfigurationApi->create_password_org_config: %s\n" % e) ``` @@ -124,7 +123,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.password_configuration_api import PasswordConfigurationApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.password_org_config import PasswordOrgConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -138,7 +136,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = PasswordConfigurationApi(api_client).get_password_org_config() print("The response of PasswordConfigurationApi->get_password_org_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling PasswordConfigurationApi->get_password_org_config: %s\n" % e) ``` @@ -184,7 +182,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.password_configuration_api import PasswordConfigurationApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.password_org_config import PasswordOrgConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -204,7 +201,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = PasswordConfigurationApi(api_client).put_password_org_config(new_password_org_config) print("The response of PasswordConfigurationApi->put_password_org_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling PasswordConfigurationApi->put_password_org_config: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/PasswordDictionaryApi.md b/sailpoint/v2024/docs/Methods/PasswordDictionaryApi.md index 88a3d790c..800107bda 100644 --- a/sailpoint/v2024/docs/Methods/PasswordDictionaryApi.md +++ b/sailpoint/v2024/docs/Methods/PasswordDictionaryApi.md @@ -126,7 +126,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.password_dictionary_api import PasswordDictionaryApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -140,7 +139,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = PasswordDictionaryApi(api_client).get_password_dictionary() print("The response of PasswordDictionaryApi->get_password_dictionary:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling PasswordDictionaryApi->get_password_dictionary: %s\n" % e) ``` @@ -213,7 +212,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.password_dictionary_api import PasswordDictionaryApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() diff --git a/sailpoint/v2024/docs/Methods/PasswordManagementApi.md b/sailpoint/v2024/docs/Methods/PasswordManagementApi.md index 00aa134f9..bd02d467d 100644 --- a/sailpoint/v2024/docs/Methods/PasswordManagementApi.md +++ b/sailpoint/v2024/docs/Methods/PasswordManagementApi.md @@ -93,7 +93,6 @@ from sailpoint.v2024.api.password_management_api import PasswordManagementApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.password_digit_token import PasswordDigitToken from sailpoint.v2024.models.password_digit_token_reset import PasswordDigitTokenReset -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -114,7 +113,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = PasswordManagementApi(api_client).create_digit_token(x_sail_point_experimental, new_password_digit_token_reset) print("The response of PasswordManagementApi->create_digit_token:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling PasswordManagementApi->create_digit_token: %s\n" % e) ``` @@ -159,7 +158,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.password_management_api import PasswordManagementApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.password_status import PasswordStatus -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -174,7 +172,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = PasswordManagementApi(api_client).get_password_change_status(id) print("The response of PasswordManagementApi->get_password_change_status:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling PasswordManagementApi->get_password_change_status: %s\n" % e) ``` @@ -220,7 +218,6 @@ from sailpoint.v2024.api.password_management_api import PasswordManagementApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.password_info import PasswordInfo from sailpoint.v2024.models.password_info_query_dto import PasswordInfoQueryDTO -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -238,7 +235,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = PasswordManagementApi(api_client).query_password_info(new_password_info_query_dto) print("The response of PasswordManagementApi->query_password_info:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling PasswordManagementApi->query_password_info: %s\n" % e) ``` @@ -302,7 +299,6 @@ from sailpoint.v2024.api.password_management_api import PasswordManagementApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.password_change_request import PasswordChangeRequest from sailpoint.v2024.models.password_change_response import PasswordChangeResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -323,7 +319,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = PasswordManagementApi(api_client).set_password(new_password_change_request) print("The response of PasswordManagementApi->set_password:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling PasswordManagementApi->set_password: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/PasswordPoliciesApi.md b/sailpoint/v2024/docs/Methods/PasswordPoliciesApi.md index 4e6bcca03..0caba087d 100644 --- a/sailpoint/v2024/docs/Methods/PasswordPoliciesApi.md +++ b/sailpoint/v2024/docs/Methods/PasswordPoliciesApi.md @@ -66,7 +66,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.password_policies_api import PasswordPoliciesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.password_policy_v3_dto import PasswordPolicyV3Dto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -113,7 +112,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = PasswordPoliciesApi(api_client).create_password_policy(new_password_policy_v3_dto) print("The response of PasswordPoliciesApi->create_password_policy:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling PasswordPoliciesApi->create_password_policy: %s\n" % e) ``` @@ -157,7 +156,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.password_policies_api import PasswordPoliciesApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -215,7 +213,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.password_policies_api import PasswordPoliciesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.password_policy_v3_dto import PasswordPolicyV3Dto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -230,7 +227,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = PasswordPoliciesApi(api_client).get_password_policy_by_id(id) print("The response of PasswordPoliciesApi->get_password_policy_by_id:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling PasswordPoliciesApi->get_password_policy_by_id: %s\n" % e) ``` @@ -277,7 +274,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.password_policies_api import PasswordPoliciesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.password_policy_v3_dto import PasswordPolicyV3Dto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -294,7 +290,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = PasswordPoliciesApi(api_client).list_password_policies(limit, offset, count) print("The response of PasswordPoliciesApi->list_password_policies:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling PasswordPoliciesApi->list_password_policies: %s\n" % e) ``` @@ -340,7 +336,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.password_policies_api import PasswordPoliciesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.password_policy_v3_dto import PasswordPolicyV3Dto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -388,7 +383,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = PasswordPoliciesApi(api_client).set_password_policy(id, new_password_policy_v3_dto) print("The response of PasswordPoliciesApi->set_password_policy:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling PasswordPoliciesApi->set_password_policy: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/PasswordSyncGroupsApi.md b/sailpoint/v2024/docs/Methods/PasswordSyncGroupsApi.md index 7d5aae3b4..72223bfcd 100644 --- a/sailpoint/v2024/docs/Methods/PasswordSyncGroupsApi.md +++ b/sailpoint/v2024/docs/Methods/PasswordSyncGroupsApi.md @@ -89,7 +89,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.password_sync_groups_api import PasswordSyncGroupsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.password_sync_group import PasswordSyncGroup -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -111,7 +110,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = PasswordSyncGroupsApi(api_client).create_password_sync_group(new_password_sync_group) print("The response of PasswordSyncGroupsApi->create_password_sync_group:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling PasswordSyncGroupsApi->create_password_sync_group: %s\n" % e) ``` @@ -154,7 +153,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.password_sync_groups_api import PasswordSyncGroupsApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -212,7 +210,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.password_sync_groups_api import PasswordSyncGroupsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.password_sync_group import PasswordSyncGroup -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -227,7 +224,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = PasswordSyncGroupsApi(api_client).get_password_sync_group(id) print("The response of PasswordSyncGroupsApi->get_password_sync_group:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling PasswordSyncGroupsApi->get_password_sync_group: %s\n" % e) ``` @@ -273,7 +270,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.password_sync_groups_api import PasswordSyncGroupsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.password_sync_group import PasswordSyncGroup -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -290,7 +286,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = PasswordSyncGroupsApi(api_client).get_password_sync_groups(limit, offset, count) print("The response of PasswordSyncGroupsApi->get_password_sync_groups:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling PasswordSyncGroupsApi->get_password_sync_groups: %s\n" % e) ``` @@ -336,7 +332,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.password_sync_groups_api import PasswordSyncGroupsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.password_sync_group import PasswordSyncGroup -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -359,7 +354,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = PasswordSyncGroupsApi(api_client).update_password_sync_group(id, new_password_sync_group) print("The response of PasswordSyncGroupsApi->update_password_sync_group:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling PasswordSyncGroupsApi->update_password_sync_group: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/PersonalAccessTokensApi.md b/sailpoint/v2024/docs/Methods/PersonalAccessTokensApi.md index 0e90a3077..9dac7471f 100644 --- a/sailpoint/v2024/docs/Methods/PersonalAccessTokensApi.md +++ b/sailpoint/v2024/docs/Methods/PersonalAccessTokensApi.md @@ -68,7 +68,6 @@ from sailpoint.v2024.api.personal_access_tokens_api import PersonalAccessTokensA from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.create_personal_access_token_request import CreatePersonalAccessTokenRequest from sailpoint.v2024.models.create_personal_access_token_response import CreatePersonalAccessTokenResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -87,7 +86,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = PersonalAccessTokensApi(api_client).create_personal_access_token(new_create_personal_access_token_request) print("The response of PersonalAccessTokensApi->create_personal_access_token:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling PersonalAccessTokensApi->create_personal_access_token: %s\n" % e) ``` @@ -131,7 +130,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.personal_access_tokens_api import PersonalAccessTokensApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -189,7 +187,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.personal_access_tokens_api import PersonalAccessTokensApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.get_personal_access_token_response import GetPersonalAccessTokenResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -205,7 +202,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = PersonalAccessTokensApi(api_client).list_personal_access_tokens(owner_id, filters) print("The response of PersonalAccessTokensApi->list_personal_access_tokens:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling PersonalAccessTokensApi->list_personal_access_tokens: %s\n" % e) ``` @@ -253,7 +250,6 @@ from sailpoint.v2024.api.personal_access_tokens_api import PersonalAccessTokensA from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.get_personal_access_token_response import GetPersonalAccessTokenResponse from sailpoint.v2024.models.json_patch_operation import JsonPatchOperation -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -269,7 +265,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = PersonalAccessTokensApi(api_client).patch_personal_access_token(id, new_json_patch_operation) print("The response of PersonalAccessTokensApi->patch_personal_access_token:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling PersonalAccessTokensApi->patch_personal_access_token: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/PublicIdentitiesApi.md b/sailpoint/v2024/docs/Methods/PublicIdentitiesApi.md index 39cf1aaee..a40feb254 100644 --- a/sailpoint/v2024/docs/Methods/PublicIdentitiesApi.md +++ b/sailpoint/v2024/docs/Methods/PublicIdentitiesApi.md @@ -61,7 +61,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.public_identities_api import PublicIdentitiesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.public_identity import PublicIdentity -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -81,7 +80,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = PublicIdentitiesApi(api_client).get_public_identities(limit, offset, count, filters, add_core_filters, sorters) print("The response of PublicIdentitiesApi->get_public_identities:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling PublicIdentitiesApi->get_public_identities: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/PublicIdentitiesConfigApi.md b/sailpoint/v2024/docs/Methods/PublicIdentitiesConfigApi.md index 08726d100..84fc4efa9 100644 --- a/sailpoint/v2024/docs/Methods/PublicIdentitiesConfigApi.md +++ b/sailpoint/v2024/docs/Methods/PublicIdentitiesConfigApi.md @@ -61,7 +61,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.public_identities_config_api import PublicIdentitiesConfigApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.public_identity_config import PublicIdentityConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -75,7 +74,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = PublicIdentitiesConfigApi(api_client).get_public_identity_config() print("The response of PublicIdentitiesConfigApi->get_public_identity_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling PublicIdentitiesConfigApi->get_public_identity_config: %s\n" % e) ``` @@ -119,7 +118,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.public_identities_config_api import PublicIdentitiesConfigApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.public_identity_config import PublicIdentityConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -148,7 +146,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = PublicIdentitiesConfigApi(api_client).update_public_identity_config(new_public_identity_config) print("The response of PublicIdentitiesConfigApi->update_public_identity_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling PublicIdentitiesConfigApi->update_public_identity_config: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/ReportsDataExtractionApi.md b/sailpoint/v2024/docs/Methods/ReportsDataExtractionApi.md index 4f47f1610..08b8fee2c 100644 --- a/sailpoint/v2024/docs/Methods/ReportsDataExtractionApi.md +++ b/sailpoint/v2024/docs/Methods/ReportsDataExtractionApi.md @@ -58,7 +58,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.reports_data_extraction_api import ReportsDataExtractionApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -118,7 +117,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.reports_data_extraction_api import ReportsDataExtractionApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -136,7 +134,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ReportsDataExtractionApi(api_client).get_report(task_result_id, file_format, name, auditable) print("The response of ReportsDataExtractionApi->get_report:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ReportsDataExtractionApi->get_report: %s\n" % e) ``` @@ -181,7 +179,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.reports_data_extraction_api import ReportsDataExtractionApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.report_results import ReportResults -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -197,7 +194,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ReportsDataExtractionApi(api_client).get_report_result(task_result_id, completed) print("The response of ReportsDataExtractionApi->get_report_result:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ReportsDataExtractionApi->get_report_result: %s\n" % e) ``` @@ -242,7 +239,6 @@ from sailpoint.v2024.api.reports_data_extraction_api import ReportsDataExtractio from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.report_details import ReportDetails from sailpoint.v2024.models.task_result_details import TaskResultDetails -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -263,7 +259,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ReportsDataExtractionApi(api_client).start_report(new_report_details) print("The response of ReportsDataExtractionApi->start_report:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ReportsDataExtractionApi->start_report: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/RequestableObjectsApi.md b/sailpoint/v2024/docs/Methods/RequestableObjectsApi.md index c2b5baf83..0b673ac27 100644 --- a/sailpoint/v2024/docs/Methods/RequestableObjectsApi.md +++ b/sailpoint/v2024/docs/Methods/RequestableObjectsApi.md @@ -67,7 +67,6 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.requestable_object import RequestableObject from sailpoint.v2024.models.requestable_object_request_status import RequestableObjectRequestStatus from sailpoint.v2024.models.requestable_object_type import RequestableObjectType -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -90,7 +89,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = RequestableObjectsApi(api_client).list_requestable_objects(identity_id, types, term, statuses, limit, offset, count, filters, sorters) print("The response of RequestableObjectsApi->list_requestable_objects:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling RequestableObjectsApi->list_requestable_objects: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/RoleInsightsApi.md b/sailpoint/v2024/docs/Methods/RoleInsightsApi.md index 9c860c383..abe356c9a 100644 --- a/sailpoint/v2024/docs/Methods/RoleInsightsApi.md +++ b/sailpoint/v2024/docs/Methods/RoleInsightsApi.md @@ -75,7 +75,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.role_insights_api import RoleInsightsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role_insights_response import RoleInsightsResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -91,7 +90,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = RoleInsightsApi(api_client).create_role_insight_requests(x_sail_point_experimental) print("The response of RoleInsightsApi->create_role_insight_requests:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling RoleInsightsApi->create_role_insight_requests: %s\n" % e) ``` @@ -147,7 +146,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.role_insights_api import RoleInsightsApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -166,7 +164,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = RoleInsightsApi(api_client).download_role_insights_entitlements_changes(insight_id, x_sail_point_experimental, sorters, filters) print("The response of RoleInsightsApi->download_role_insights_entitlements_changes:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling RoleInsightsApi->download_role_insights_entitlements_changes: %s\n" % e) ``` @@ -228,7 +226,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.role_insights_api import RoleInsightsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role_insights_identities import RoleInsightsIdentities -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -252,7 +249,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = RoleInsightsApi(api_client).get_entitlement_changes_identities(insight_id, entitlement_id, x_sail_point_experimental, has_entitlement, offset, limit, count, sorters, filters) print("The response of RoleInsightsApi->get_entitlement_changes_identities:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling RoleInsightsApi->get_entitlement_changes_identities: %s\n" % e) ``` @@ -307,7 +304,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.role_insights_api import RoleInsightsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role_insight import RoleInsight -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -324,7 +320,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = RoleInsightsApi(api_client).get_role_insight(insight_id, x_sail_point_experimental) print("The response of RoleInsightsApi->get_role_insight:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling RoleInsightsApi->get_role_insight: %s\n" % e) ``` @@ -383,7 +379,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.role_insights_api import RoleInsightsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role_insight import RoleInsight -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -404,7 +399,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = RoleInsightsApi(api_client).get_role_insights(x_sail_point_experimental, offset, limit, count, sorters, filters) print("The response of RoleInsightsApi->get_role_insights:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling RoleInsightsApi->get_role_insights: %s\n" % e) ``` @@ -460,7 +455,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.role_insights_api import RoleInsightsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role_insights_entitlement import RoleInsightsEntitlement -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -478,7 +472,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = RoleInsightsApi(api_client).get_role_insights_current_entitlements(insight_id, x_sail_point_experimental, filters) print("The response of RoleInsightsApi->get_role_insights_current_entitlements:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling RoleInsightsApi->get_role_insights_current_entitlements: %s\n" % e) ``` @@ -535,7 +529,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.role_insights_api import RoleInsightsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role_insights_entitlement_changes import RoleInsightsEntitlementChanges -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -554,7 +547,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = RoleInsightsApi(api_client).get_role_insights_entitlements_changes(insight_id, x_sail_point_experimental, sorters, filters) print("The response of RoleInsightsApi->get_role_insights_entitlements_changes:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling RoleInsightsApi->get_role_insights_entitlements_changes: %s\n" % e) ``` @@ -613,7 +606,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.role_insights_api import RoleInsightsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role_insights_response import RoleInsightsResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -630,7 +622,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = RoleInsightsApi(api_client).get_role_insights_requests(id, x_sail_point_experimental) print("The response of RoleInsightsApi->get_role_insights_requests:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling RoleInsightsApi->get_role_insights_requests: %s\n" % e) ``` @@ -684,7 +676,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.role_insights_api import RoleInsightsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role_insights_summary import RoleInsightsSummary -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -700,7 +691,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = RoleInsightsApi(api_client).get_role_insights_summary(x_sail_point_experimental) print("The response of RoleInsightsApi->get_role_insights_summary:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling RoleInsightsApi->get_role_insights_summary: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/RolesApi.md b/sailpoint/v2024/docs/Methods/RolesApi.md index 991f6cb95..c4deae00c 100644 --- a/sailpoint/v2024/docs/Methods/RolesApi.md +++ b/sailpoint/v2024/docs/Methods/RolesApi.md @@ -111,7 +111,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.roles_api import RolesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role import Role -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -283,7 +282,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = RolesApi(api_client).create_role(new_role) print("The response of RolesApi->create_role:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling RolesApi->create_role: %s\n" % e) ``` @@ -331,7 +330,6 @@ from sailpoint.v2024.api.roles_api import RolesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role_bulk_delete_request import RoleBulkDeleteRequest from sailpoint.v2024.models.task_result_dto import TaskResultDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -348,7 +346,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = RolesApi(api_client).delete_bulk_roles(new_role_bulk_delete_request) print("The response of RolesApi->delete_bulk_roles:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling RolesApi->delete_bulk_roles: %s\n" % e) ``` @@ -393,7 +391,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.roles_api import RolesApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -453,7 +450,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.roles_api import RolesApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -507,7 +503,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.roles_api import RolesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role_get_all_bulk_update_response import RoleGetAllBulkUpdateResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -521,7 +516,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = RolesApi(api_client).get_bulk_update_status() print("The response of RolesApi->get_bulk_update_status:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling RolesApi->get_bulk_update_status: %s\n" % e) ``` @@ -567,7 +562,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.roles_api import RolesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role_bulk_update_response import RoleBulkUpdateResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -582,7 +576,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = RolesApi(api_client).get_bulk_update_status_by_id(id) print("The response of RolesApi->get_bulk_update_status_by_id:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling RolesApi->get_bulk_update_status_by_id: %s\n" % e) ``` @@ -627,7 +621,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.roles_api import RolesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role import Role -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -642,7 +635,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = RolesApi(api_client).get_role(id) print("The response of RolesApi->get_role:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling RolesApi->get_role: %s\n" % e) ``` @@ -691,7 +684,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.roles_api import RolesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role_identity import RoleIdentity -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -711,7 +703,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = RolesApi(api_client).get_role_assigned_identities(id, limit, offset, count, filters, sorters) print("The response of RolesApi->get_role_assigned_identities:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling RolesApi->get_role_assigned_identities: %s\n" % e) ``` @@ -772,7 +764,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.roles_api import RolesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.entitlement import Entitlement -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -794,7 +785,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = RolesApi(api_client).get_role_entitlements(id, x_sail_point_experimental, limit, offset, count, filters, sorters) print("The response of RolesApi->get_role_entitlements:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling RolesApi->get_role_entitlements: %s\n" % e) ``` @@ -847,7 +838,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.roles_api import RolesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role import Role -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -869,7 +859,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = RolesApi(api_client).list_roles(for_subadmin, limit, offset, count, filters, sorters, for_segment_ids, include_unsegmented) print("The response of RolesApi->list_roles:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling RolesApi->list_roles: %s\n" % e) ``` @@ -935,7 +925,6 @@ from sailpoint.v2024.api.roles_api import RolesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.json_patch_operation import JsonPatchOperation from sailpoint.v2024.models.role import Role -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -951,7 +940,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = RolesApi(api_client).patch_role(id, new_json_patch_operation) print("The response of RolesApi->patch_role:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling RolesApi->patch_role: %s\n" % e) ``` @@ -1004,7 +993,6 @@ from sailpoint.v2024.api.roles_api import RolesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role import Role from sailpoint.v2024.models.role_list_filter_dto import RoleListFilterDTO -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1032,7 +1020,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = RolesApi(api_client).search_roles_by_filter(for_subadmin, limit, offset, count, sorters, for_segment_ids, include_unsegmented, new_role_list_filter_dto) print("The response of RolesApi->search_roles_by_filter:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling RolesApi->search_roles_by_filter: %s\n" % e) ``` @@ -1078,7 +1066,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.roles_api import RolesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role import Role -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1095,7 +1082,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = RolesApi(api_client).update_attribute_key_and_value_to_role(id, attribute_key, attribute_value) print("The response of RolesApi->update_attribute_key_and_value_to_role:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling RolesApi->update_attribute_key_and_value_to_role: %s\n" % e) ``` @@ -1143,7 +1130,6 @@ from sailpoint.v2024.api.roles_api import RolesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role_bulk_update_response import RoleBulkUpdateResponse from sailpoint.v2024.models.role_metadata_bulk_update_by_filter_request import RoleMetadataBulkUpdateByFilterRequest -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1166,7 +1152,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = RolesApi(api_client).update_roles_metadata_by_filter(new_role_metadata_bulk_update_by_filter_request) print("The response of RolesApi->update_roles_metadata_by_filter:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling RolesApi->update_roles_metadata_by_filter: %s\n" % e) ``` @@ -1214,7 +1200,6 @@ from sailpoint.v2024.api.roles_api import RolesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role_bulk_update_response import RoleBulkUpdateResponse from sailpoint.v2024.models.role_metadata_bulk_update_by_id_request import RoleMetadataBulkUpdateByIdRequest -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1237,7 +1222,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = RolesApi(api_client).update_roles_metadata_by_ids(new_role_metadata_bulk_update_by_id_request) print("The response of RolesApi->update_roles_metadata_by_ids:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling RolesApi->update_roles_metadata_by_ids: %s\n" % e) ``` @@ -1285,7 +1270,6 @@ from sailpoint.v2024.api.roles_api import RolesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.role_bulk_update_response import RoleBulkUpdateResponse from sailpoint.v2024.models.role_metadata_bulk_update_by_query_request import RoleMetadataBulkUpdateByQueryRequest -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1323,7 +1307,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = RolesApi(api_client).update_roles_metadata_by_query(new_role_metadata_bulk_update_by_query_request) print("The response of RolesApi->update_roles_metadata_by_query:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling RolesApi->update_roles_metadata_by_query: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/SIMIntegrationsApi.md b/sailpoint/v2024/docs/Methods/SIMIntegrationsApi.md index 7f590f2fc..9030ea288 100644 --- a/sailpoint/v2024/docs/Methods/SIMIntegrationsApi.md +++ b/sailpoint/v2024/docs/Methods/SIMIntegrationsApi.md @@ -80,7 +80,6 @@ from sailpoint.v2024.api.sim_integrations_api import SIMIntegrationsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.service_desk_integration_dto import ServiceDeskIntegrationDto from sailpoint.v2024.models.sim_integration_details import SimIntegrationDetails -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -114,7 +113,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SIMIntegrationsApi(api_client).create_sim_integration(x_sail_point_experimental, new_sim_integration_details) print("The response of SIMIntegrationsApi->create_sim_integration:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SIMIntegrationsApi->create_sim_integration: %s\n" % e) ``` @@ -170,7 +169,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.sim_integrations_api import SIMIntegrationsApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -242,7 +240,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.sim_integrations_api import SIMIntegrationsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.service_desk_integration_dto import ServiceDeskIntegrationDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -259,7 +256,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SIMIntegrationsApi(api_client).get_sim_integration(id, x_sail_point_experimental) print("The response of SIMIntegrationsApi->get_sim_integration:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SIMIntegrationsApi->get_sim_integration: %s\n" % e) ``` @@ -315,7 +312,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.sim_integrations_api import SIMIntegrationsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.service_desk_integration_dto import ServiceDeskIntegrationDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -331,7 +327,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SIMIntegrationsApi(api_client).get_sim_integrations(x_sail_point_experimental) print("The response of SIMIntegrationsApi->get_sim_integrations:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SIMIntegrationsApi->get_sim_integrations: %s\n" % e) ``` @@ -390,7 +386,6 @@ from sailpoint.v2024.api.sim_integrations_api import SIMIntegrationsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.json_patch import JsonPatch from sailpoint.v2024.models.service_desk_integration_dto import ServiceDeskIntegrationDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -418,7 +413,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SIMIntegrationsApi(api_client).patch_before_provisioning_rule(id, x_sail_point_experimental, new_json_patch) print("The response of SIMIntegrationsApi->patch_before_provisioning_rule:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SIMIntegrationsApi->patch_before_provisioning_rule: %s\n" % e) ``` @@ -477,7 +472,6 @@ from sailpoint.v2024.api.sim_integrations_api import SIMIntegrationsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.json_patch import JsonPatch from sailpoint.v2024.models.service_desk_integration_dto import ServiceDeskIntegrationDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -505,7 +499,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SIMIntegrationsApi(api_client).patch_sim_attributes(id, x_sail_point_experimental, new_json_patch) print("The response of SIMIntegrationsApi->patch_sim_attributes:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SIMIntegrationsApi->patch_sim_attributes: %s\n" % e) ``` @@ -564,7 +558,6 @@ from sailpoint.v2024.api.sim_integrations_api import SIMIntegrationsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.service_desk_integration_dto import ServiceDeskIntegrationDto from sailpoint.v2024.models.sim_integration_details import SimIntegrationDetails -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -599,7 +592,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SIMIntegrationsApi(api_client).put_sim_integration(id, x_sail_point_experimental, new_sim_integration_details) print("The response of SIMIntegrationsApi->put_sim_integration:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SIMIntegrationsApi->put_sim_integration: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/SODPoliciesApi.md b/sailpoint/v2024/docs/Methods/SODPoliciesApi.md index 8f01d06ea..526cd72d5 100644 --- a/sailpoint/v2024/docs/Methods/SODPoliciesApi.md +++ b/sailpoint/v2024/docs/Methods/SODPoliciesApi.md @@ -96,7 +96,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.sod_policies_api import SODPoliciesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.sod_policy import SodPolicy -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -166,7 +165,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SODPoliciesApi(api_client).create_sod_policy(new_sod_policy) print("The response of SODPoliciesApi->create_sod_policy:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SODPoliciesApi->create_sod_policy: %s\n" % e) ``` @@ -212,7 +211,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.sod_policies_api import SODPoliciesApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -270,7 +268,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.sod_policies_api import SODPoliciesApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -328,7 +325,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.sod_policies_api import SODPoliciesApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -344,7 +340,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SODPoliciesApi(api_client).get_custom_violation_report(report_result_id, file_name) print("The response of SODPoliciesApi->get_custom_violation_report:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SODPoliciesApi->get_custom_violation_report: %s\n" % e) ``` @@ -388,7 +384,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.sod_policies_api import SODPoliciesApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -403,7 +398,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SODPoliciesApi(api_client).get_default_violation_report(report_result_id) print("The response of SODPoliciesApi->get_default_violation_report:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SODPoliciesApi->get_default_violation_report: %s\n" % e) ``` @@ -444,7 +439,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.sod_policies_api import SODPoliciesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.report_result_reference import ReportResultReference -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -458,7 +452,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SODPoliciesApi(api_client).get_sod_all_report_run_status() print("The response of SODPoliciesApi->get_sod_all_report_run_status:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SODPoliciesApi->get_sod_all_report_run_status: %s\n" % e) ``` @@ -504,7 +498,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.sod_policies_api import SODPoliciesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.sod_policy import SodPolicy -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -519,7 +512,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SODPoliciesApi(api_client).get_sod_policy(id) print("The response of SODPoliciesApi->get_sod_policy:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SODPoliciesApi->get_sod_policy: %s\n" % e) ``` @@ -563,7 +556,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.sod_policies_api import SODPoliciesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.sod_policy_schedule import SodPolicySchedule -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -578,7 +570,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SODPoliciesApi(api_client).get_sod_policy_schedule(id) print("The response of SODPoliciesApi->get_sod_policy_schedule:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SODPoliciesApi->get_sod_policy_schedule: %s\n" % e) ``` @@ -623,7 +615,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.sod_policies_api import SODPoliciesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.report_result_reference import ReportResultReference -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -638,7 +629,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SODPoliciesApi(api_client).get_sod_violation_report_run_status(report_result_id) print("The response of SODPoliciesApi->get_sod_violation_report_run_status:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SODPoliciesApi->get_sod_violation_report_run_status: %s\n" % e) ``` @@ -683,7 +674,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.sod_policies_api import SODPoliciesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.report_result_reference import ReportResultReference -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -698,7 +688,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SODPoliciesApi(api_client).get_sod_violation_report_status(id) print("The response of SODPoliciesApi->get_sod_violation_report_status:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SODPoliciesApi->get_sod_violation_report_status: %s\n" % e) ``` @@ -747,7 +737,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.sod_policies_api import SODPoliciesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.sod_policy import SodPolicy -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -766,7 +755,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SODPoliciesApi(api_client).list_sod_policies(limit, offset, count, filters, sorters) print("The response of SODPoliciesApi->list_sod_policies:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SODPoliciesApi->list_sod_policies: %s\n" % e) ``` @@ -815,7 +804,6 @@ from sailpoint.v2024.api.sod_policies_api import SODPoliciesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.json_patch_operation import JsonPatchOperation from sailpoint.v2024.models.sod_policy import SodPolicy -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -831,7 +819,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SODPoliciesApi(api_client).patch_sod_policy(id, new_json_patch_operation) print("The response of SODPoliciesApi->patch_sod_policy:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SODPoliciesApi->patch_sod_policy: %s\n" % e) ``` @@ -876,7 +864,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.sod_policies_api import SODPoliciesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.sod_policy_schedule import SodPolicySchedule -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -977,7 +964,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SODPoliciesApi(api_client).put_policy_schedule(id, new_sod_policy_schedule) print("The response of SODPoliciesApi->put_policy_schedule:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SODPoliciesApi->put_policy_schedule: %s\n" % e) ``` @@ -1024,7 +1011,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.sod_policies_api import SODPoliciesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.sod_policy import SodPolicy -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1095,7 +1081,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SODPoliciesApi(api_client).put_sod_policy(id, new_sod_policy) print("The response of SODPoliciesApi->put_sod_policy:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SODPoliciesApi->put_sod_policy: %s\n" % e) ``` @@ -1139,7 +1125,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.sod_policies_api import SODPoliciesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.report_result_reference import ReportResultReference -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1154,7 +1139,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SODPoliciesApi(api_client).start_evaluate_sod_policy(id) print("The response of SODPoliciesApi->start_evaluate_sod_policy:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SODPoliciesApi->start_evaluate_sod_policy: %s\n" % e) ``` @@ -1199,7 +1184,6 @@ from sailpoint.v2024.api.sod_policies_api import SODPoliciesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.multi_policy_request import MultiPolicyRequest from sailpoint.v2024.models.report_result_reference import ReportResultReference -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1216,7 +1200,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SODPoliciesApi(api_client).start_sod_all_policies_for_org(new_multi_policy_request) print("The response of SODPoliciesApi->start_sod_all_policies_for_org:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SODPoliciesApi->start_sod_all_policies_for_org: %s\n" % e) ``` @@ -1261,7 +1245,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.sod_policies_api import SODPoliciesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.report_result_reference import ReportResultReference -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1276,7 +1259,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SODPoliciesApi(api_client).start_sod_policy(id) print("The response of SODPoliciesApi->start_sod_policy:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SODPoliciesApi->start_sod_policy: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/SODViolationsApi.md b/sailpoint/v2024/docs/Methods/SODViolationsApi.md index d63d47c94..3bf549cdf 100644 --- a/sailpoint/v2024/docs/Methods/SODViolationsApi.md +++ b/sailpoint/v2024/docs/Methods/SODViolationsApi.md @@ -74,7 +74,6 @@ from sailpoint.v2024.api.sod_violations_api import SODViolationsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.identity_with_new_access import IdentityWithNewAccess from sailpoint.v2024.models.violation_prediction import ViolationPrediction -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -100,7 +99,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SODViolationsApi(api_client).start_predict_sod_violations(new_identity_with_new_access) print("The response of SODViolationsApi->start_predict_sod_violations:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SODViolationsApi->start_predict_sod_violations: %s\n" % e) ``` @@ -146,7 +145,6 @@ from sailpoint.v2024.api.sod_violations_api import SODViolationsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.identity_with_new_access1 import IdentityWithNewAccess1 from sailpoint.v2024.models.sod_violation_check import SodViolationCheck -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -161,7 +159,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SODViolationsApi(api_client).start_violation_check(new_identity_with_new_access1) print("The response of SODViolationsApi->start_violation_check:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SODViolationsApi->start_violation_check: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/SPConfigApi.md b/sailpoint/v2024/docs/Methods/SPConfigApi.md index 035c5143d..039ce6698 100644 --- a/sailpoint/v2024/docs/Methods/SPConfigApi.md +++ b/sailpoint/v2024/docs/Methods/SPConfigApi.md @@ -62,7 +62,6 @@ from sailpoint.v2024.api.sp_config_api import SPConfigApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.export_payload import ExportPayload from sailpoint.v2024.models.sp_config_export_job import SpConfigExportJob -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -79,7 +78,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SPConfigApi(api_client).export_sp_config(new_export_payload) print("The response of SPConfigApi->export_sp_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SPConfigApi->export_sp_config: %s\n" % e) ``` @@ -126,7 +125,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.sp_config_api import SPConfigApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.sp_config_export_results import SpConfigExportResults -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -141,7 +139,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SPConfigApi(api_client).get_sp_config_export(id) print("The response of SPConfigApi->get_sp_config_export:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SPConfigApi->get_sp_config_export: %s\n" % e) ``` @@ -188,7 +186,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.sp_config_api import SPConfigApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.sp_config_export_job_status import SpConfigExportJobStatus -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -203,7 +200,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SPConfigApi(api_client).get_sp_config_export_status(id) print("The response of SPConfigApi->get_sp_config_export_status:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SPConfigApi->get_sp_config_export_status: %s\n" % e) ``` @@ -250,7 +247,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.sp_config_api import SPConfigApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.sp_config_import_results import SpConfigImportResults -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -265,7 +261,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SPConfigApi(api_client).get_sp_config_import(id) print("The response of SPConfigApi->get_sp_config_import:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SPConfigApi->get_sp_config_import: %s\n" % e) ``` @@ -314,7 +310,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.sp_config_api import SPConfigApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.sp_config_import_job_status import SpConfigImportJobStatus -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -329,7 +324,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SPConfigApi(api_client).get_sp_config_import_status(id) print("The response of SPConfigApi->get_sp_config_import_status:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SPConfigApi->get_sp_config_import_status: %s\n" % e) ``` @@ -387,7 +382,6 @@ from sailpoint.v2024.api.sp_config_api import SPConfigApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.import_options import ImportOptions from sailpoint.v2024.models.sp_config_job import SpConfigJob -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -404,7 +398,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SPConfigApi(api_client).import_sp_config(data, preview, options) print("The response of SPConfigApi->import_sp_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SPConfigApi->import_sp_config: %s\n" % e) ``` @@ -446,7 +440,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.sp_config_api import SPConfigApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.sp_config_object import SpConfigObject -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -460,7 +453,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SPConfigApi(api_client).list_sp_config_objects() print("The response of SPConfigApi->list_sp_config_objects:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SPConfigApi->list_sp_config_objects: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/SavedSearchApi.md b/sailpoint/v2024/docs/Methods/SavedSearchApi.md index 2c7b817f1..f1901d396 100644 --- a/sailpoint/v2024/docs/Methods/SavedSearchApi.md +++ b/sailpoint/v2024/docs/Methods/SavedSearchApi.md @@ -70,7 +70,6 @@ from sailpoint.v2024.api.saved_search_api import SavedSearchApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.create_saved_search_request import CreateSavedSearchRequest from sailpoint.v2024.models.saved_search import SavedSearch -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -85,7 +84,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SavedSearchApi(api_client).create_saved_search(new_create_saved_search_request) print("The response of SavedSearchApi->create_saved_search:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SavedSearchApi->create_saved_search: %s\n" % e) ``` @@ -130,7 +129,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.saved_search_api import SavedSearchApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -190,7 +188,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.saved_search_api import SavedSearchApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.search_arguments import SearchArguments -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -260,7 +257,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.saved_search_api import SavedSearchApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.saved_search import SavedSearch -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -275,7 +271,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SavedSearchApi(api_client).get_saved_search(id) print("The response of SavedSearchApi->get_saved_search:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SavedSearchApi->get_saved_search: %s\n" % e) ``` @@ -323,7 +319,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.saved_search_api import SavedSearchApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.saved_search import SavedSearch -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -341,7 +336,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SavedSearchApi(api_client).list_saved_searches(offset, limit, count, filters) print("The response of SavedSearchApi->list_saved_searches:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SavedSearchApi->list_saved_searches: %s\n" % e) ``` @@ -389,7 +384,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.saved_search_api import SavedSearchApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.saved_search import SavedSearch -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -449,7 +443,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SavedSearchApi(api_client).put_saved_search(id, new_saved_search) print("The response of SavedSearchApi->put_saved_search:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SavedSearchApi->put_saved_search: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/ScheduledSearchApi.md b/sailpoint/v2024/docs/Methods/ScheduledSearchApi.md index 8aea64098..78a5f785a 100644 --- a/sailpoint/v2024/docs/Methods/ScheduledSearchApi.md +++ b/sailpoint/v2024/docs/Methods/ScheduledSearchApi.md @@ -87,7 +87,6 @@ from sailpoint.v2024.api.scheduled_search_api import ScheduledSearchApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.create_scheduled_search_request import CreateScheduledSearchRequest from sailpoint.v2024.models.scheduled_search import ScheduledSearch -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -102,7 +101,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ScheduledSearchApi(api_client).create_scheduled_search(new_create_scheduled_search_request) print("The response of ScheduledSearchApi->create_scheduled_search:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ScheduledSearchApi->create_scheduled_search: %s\n" % e) ``` @@ -147,7 +146,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.scheduled_search_api import ScheduledSearchApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -205,7 +203,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.scheduled_search_api import ScheduledSearchApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.scheduled_search import ScheduledSearch -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -220,7 +217,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ScheduledSearchApi(api_client).get_scheduled_search(id) print("The response of ScheduledSearchApi->get_scheduled_search:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ScheduledSearchApi->get_scheduled_search: %s\n" % e) ``` @@ -269,7 +266,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.scheduled_search_api import ScheduledSearchApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.scheduled_search import ScheduledSearch -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -287,7 +283,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ScheduledSearchApi(api_client).list_scheduled_search(offset, limit, count, filters) print("The response of ScheduledSearchApi->list_scheduled_search:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ScheduledSearchApi->list_scheduled_search: %s\n" % e) ``` @@ -331,7 +327,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.scheduled_search_api import ScheduledSearchApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.typed_reference import TypedReference -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -395,7 +390,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.scheduled_search_api import ScheduledSearchApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.scheduled_search import ScheduledSearch -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -501,7 +495,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ScheduledSearchApi(api_client).update_scheduled_search(id, new_scheduled_search) print("The response of ScheduledSearchApi->update_scheduled_search:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ScheduledSearchApi->update_scheduled_search: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/SearchApi.md b/sailpoint/v2024/docs/Methods/SearchApi.md index 6d393332d..af9ea61ee 100644 --- a/sailpoint/v2024/docs/Methods/SearchApi.md +++ b/sailpoint/v2024/docs/Methods/SearchApi.md @@ -83,7 +83,6 @@ from sailpoint.v2024.api.search_api import SearchApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.aggregation_result import AggregationResult from sailpoint.v2024.models.search import Search -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -217,7 +216,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SearchApi(api_client).search_aggregate(new_search, offset, limit, count) print("The response of SearchApi->search_aggregate:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SearchApi->search_aggregate: %s\n" % e) ``` @@ -261,7 +260,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.search_api import SearchApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.search import Search -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -435,7 +433,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.search_api import SearchApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -451,7 +448,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SearchApi(api_client).search_get(index, id) print("The response of SearchApi->search_get:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SearchApi->search_get: %s\n" % e) ``` @@ -498,7 +495,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.search_api import SearchApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.search import Search -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -632,7 +628,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SearchApi(api_client).search_post(new_search, offset, limit, count) print("The response of SearchApi->search_post:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SearchApi->search_post: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/SearchAttributeConfigurationApi.md b/sailpoint/v2024/docs/Methods/SearchAttributeConfigurationApi.md index f3b779c60..7aad9521b 100644 --- a/sailpoint/v2024/docs/Methods/SearchAttributeConfigurationApi.md +++ b/sailpoint/v2024/docs/Methods/SearchAttributeConfigurationApi.md @@ -89,7 +89,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.search_attribute_configuration_api import SearchAttributeConfigurationApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.search_attribute_config import SearchAttributeConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -113,7 +112,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SearchAttributeConfigurationApi(api_client).create_search_attribute_config(x_sail_point_experimental, new_search_attribute_config) print("The response of SearchAttributeConfigurationApi->create_search_attribute_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SearchAttributeConfigurationApi->create_search_attribute_config: %s\n" % e) ``` @@ -168,7 +167,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.search_attribute_configuration_api import SearchAttributeConfigurationApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -240,7 +238,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.search_attribute_configuration_api import SearchAttributeConfigurationApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.search_attribute_config import SearchAttributeConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -258,7 +255,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SearchAttributeConfigurationApi(api_client).get_search_attribute_config(x_sail_point_experimental, limit, offset) print("The response of SearchAttributeConfigurationApi->get_search_attribute_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SearchAttributeConfigurationApi->get_search_attribute_config: %s\n" % e) ``` @@ -315,7 +312,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.search_attribute_configuration_api import SearchAttributeConfigurationApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.search_attribute_config import SearchAttributeConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -332,7 +328,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SearchAttributeConfigurationApi(api_client).get_single_search_attribute_config(name, x_sail_point_experimental) print("The response of SearchAttributeConfigurationApi->get_single_search_attribute_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SearchAttributeConfigurationApi->get_single_search_attribute_config: %s\n" % e) ``` @@ -393,7 +389,6 @@ from sailpoint.v2024.api.search_attribute_configuration_api import SearchAttribu from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.json_patch_operation import JsonPatchOperation from sailpoint.v2024.models.search_attribute_config import SearchAttributeConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -411,7 +406,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SearchAttributeConfigurationApi(api_client).patch_search_attribute_config(name, x_sail_point_experimental, new_json_patch_operation) print("The response of SearchAttributeConfigurationApi->patch_search_attribute_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SearchAttributeConfigurationApi->patch_search_attribute_config: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/SegmentsApi.md b/sailpoint/v2024/docs/Methods/SegmentsApi.md index 1e7b2d859..7a491b87f 100644 --- a/sailpoint/v2024/docs/Methods/SegmentsApi.md +++ b/sailpoint/v2024/docs/Methods/SegmentsApi.md @@ -75,7 +75,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.segments_api import SegmentsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.segment import Segment -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -113,7 +112,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SegmentsApi(api_client).create_segment(new_segment) print("The response of SegmentsApi->create_segment:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SegmentsApi->create_segment: %s\n" % e) ``` @@ -158,7 +157,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.segments_api import SegmentsApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -216,7 +214,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.segments_api import SegmentsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.segment import Segment -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -231,7 +228,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SegmentsApi(api_client).get_segment(id) print("The response of SegmentsApi->get_segment:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SegmentsApi->get_segment: %s\n" % e) ``` @@ -277,7 +274,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.segments_api import SegmentsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.segment import Segment -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -294,7 +290,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SegmentsApi(api_client).list_segments(limit, offset, count) print("The response of SegmentsApi->list_segments:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SegmentsApi->list_segments: %s\n" % e) ``` @@ -341,7 +337,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.segments_api import SegmentsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.segment import Segment -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -357,7 +352,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SegmentsApi(api_client).patch_segment(id, new_request_body) print("The response of SegmentsApi->patch_segment:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SegmentsApi->patch_segment: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/ServiceDeskIntegrationApi.md b/sailpoint/v2024/docs/Methods/ServiceDeskIntegrationApi.md index 1666cd63e..5f46f7d43 100644 --- a/sailpoint/v2024/docs/Methods/ServiceDeskIntegrationApi.md +++ b/sailpoint/v2024/docs/Methods/ServiceDeskIntegrationApi.md @@ -87,7 +87,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.service_desk_integration_api import ServiceDeskIntegrationApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.service_desk_integration_dto import ServiceDeskIntegrationDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -135,7 +134,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ServiceDeskIntegrationApi(api_client).create_service_desk_integration(new_service_desk_integration_dto) print("The response of ServiceDeskIntegrationApi->create_service_desk_integration:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ServiceDeskIntegrationApi->create_service_desk_integration: %s\n" % e) ``` @@ -179,7 +178,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.service_desk_integration_api import ServiceDeskIntegrationApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -237,7 +235,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.service_desk_integration_api import ServiceDeskIntegrationApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.service_desk_integration_dto import ServiceDeskIntegrationDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -252,7 +249,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ServiceDeskIntegrationApi(api_client).get_service_desk_integration(id) print("The response of ServiceDeskIntegrationApi->get_service_desk_integration:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ServiceDeskIntegrationApi->get_service_desk_integration: %s\n" % e) ``` @@ -297,7 +294,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.service_desk_integration_api import ServiceDeskIntegrationApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.service_desk_integration_template_dto import ServiceDeskIntegrationTemplateDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -312,7 +308,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ServiceDeskIntegrationApi(api_client).get_service_desk_integration_template(script_name) print("The response of ServiceDeskIntegrationApi->get_service_desk_integration_template:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ServiceDeskIntegrationApi->get_service_desk_integration_template: %s\n" % e) ``` @@ -354,7 +350,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.service_desk_integration_api import ServiceDeskIntegrationApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.service_desk_integration_template_type import ServiceDeskIntegrationTemplateType -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -368,7 +363,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ServiceDeskIntegrationApi(api_client).get_service_desk_integration_types() print("The response of ServiceDeskIntegrationApi->get_service_desk_integration_types:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ServiceDeskIntegrationApi->get_service_desk_integration_types: %s\n" % e) ``` @@ -417,7 +412,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.service_desk_integration_api import ServiceDeskIntegrationApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.service_desk_integration_dto import ServiceDeskIntegrationDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -436,7 +430,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ServiceDeskIntegrationApi(api_client).get_service_desk_integrations(offset, limit, sorters, filters, count) print("The response of ServiceDeskIntegrationApi->get_service_desk_integrations:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ServiceDeskIntegrationApi->get_service_desk_integrations: %s\n" % e) ``` @@ -478,7 +472,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.service_desk_integration_api import ServiceDeskIntegrationApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.queued_check_config_details import QueuedCheckConfigDetails -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -492,7 +485,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ServiceDeskIntegrationApi(api_client).get_status_check_details() print("The response of ServiceDeskIntegrationApi->get_status_check_details:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ServiceDeskIntegrationApi->get_status_check_details: %s\n" % e) ``` @@ -539,7 +532,6 @@ from sailpoint.v2024.api.service_desk_integration_api import ServiceDeskIntegrat from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.patch_service_desk_integration_request import PatchServiceDeskIntegrationRequest from sailpoint.v2024.models.service_desk_integration_dto import ServiceDeskIntegrationDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -555,7 +547,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ServiceDeskIntegrationApi(api_client).patch_service_desk_integration(id, new_patch_service_desk_integration_request) print("The response of ServiceDeskIntegrationApi->patch_service_desk_integration:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ServiceDeskIntegrationApi->patch_service_desk_integration: %s\n" % e) ``` @@ -601,7 +593,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.service_desk_integration_api import ServiceDeskIntegrationApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.service_desk_integration_dto import ServiceDeskIntegrationDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -650,7 +641,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ServiceDeskIntegrationApi(api_client).put_service_desk_integration(id, new_service_desk_integration_dto) print("The response of ServiceDeskIntegrationApi->put_service_desk_integration:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ServiceDeskIntegrationApi->put_service_desk_integration: %s\n" % e) ``` @@ -695,7 +686,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.service_desk_integration_api import ServiceDeskIntegrationApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.queued_check_config_details import QueuedCheckConfigDetails -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -713,7 +703,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ServiceDeskIntegrationApi(api_client).update_status_check_details(new_queued_check_config_details) print("The response of ServiceDeskIntegrationApi->update_status_check_details:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ServiceDeskIntegrationApi->update_status_check_details: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/SourceUsagesApi.md b/sailpoint/v2024/docs/Methods/SourceUsagesApi.md index 130385af4..da84d544f 100644 --- a/sailpoint/v2024/docs/Methods/SourceUsagesApi.md +++ b/sailpoint/v2024/docs/Methods/SourceUsagesApi.md @@ -57,7 +57,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.source_usages_api import SourceUsagesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.source_usage_status import SourceUsageStatus -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -72,7 +71,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourceUsagesApi(api_client).get_status_by_source_id(source_id) print("The response of SourceUsagesApi->get_status_by_source_id:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourceUsagesApi->get_status_by_source_id: %s\n" % e) ``` @@ -120,7 +119,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.source_usages_api import SourceUsagesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.source_usage import SourceUsage -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -139,7 +137,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourceUsagesApi(api_client).get_usages_by_source_id(source_id, limit, offset, count, sorters) print("The response of SourceUsagesApi->get_usages_by_source_id:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourceUsagesApi->get_usages_by_source_id: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/SourcesApi.md b/sailpoint/v2024/docs/Methods/SourcesApi.md index 2b88b02a8..e90fe20db 100644 --- a/sailpoint/v2024/docs/Methods/SourcesApi.md +++ b/sailpoint/v2024/docs/Methods/SourcesApi.md @@ -163,7 +163,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.provisioning_policy_dto import ProvisioningPolicyDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -218,7 +217,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).create_provisioning_policy(source_id, new_provisioning_policy_dto) print("The response of SourcesApi->create_provisioning_policy:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->create_provisioning_policy: %s\n" % e) ``` @@ -263,7 +262,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.source import Source -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -361,7 +359,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).create_source(new_source, provision_as_csv) print("The response of SourcesApi->create_source:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->create_source: %s\n" % e) ``` @@ -407,7 +405,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.schedule1 import Schedule1 -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -423,7 +420,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).create_source_schedule(source_id, new_schedule1) print("The response of SourcesApi->create_source_schedule:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->create_source_schedule: %s\n" % e) ``` @@ -469,7 +466,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.model_schema import ModelSchema -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -485,7 +481,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).create_source_schema(source_id, new_model_schema) print("The response of SourcesApi->create_source_schema:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->create_source_schema: %s\n" % e) ``` @@ -547,7 +543,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.task_result_dto import TaskResultDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -564,7 +559,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).delete_accounts_async(id, x_sail_point_experimental) print("The response of SourcesApi->delete_accounts_async:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->delete_accounts_async: %s\n" % e) ``` @@ -620,7 +615,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -681,7 +675,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.usage_type import UsageType -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -741,7 +734,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.delete_source202_response import DeleteSource202Response -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -756,7 +748,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).delete_source(id) print("The response of SourcesApi->delete_source:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->delete_source: %s\n" % e) ``` @@ -801,7 +793,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -860,7 +851,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -919,7 +909,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -977,7 +966,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.correlation_config import CorrelationConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -992,7 +980,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).get_correlation_config(id) print("The response of SourcesApi->get_correlation_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->get_correlation_config: %s\n" % e) ``` @@ -1039,7 +1027,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1110,7 +1097,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.native_change_detection_config import NativeChangeDetectionConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1127,7 +1113,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).get_native_change_detection_config(id, x_sail_point_experimental) print("The response of SourcesApi->get_native_change_detection_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->get_native_change_detection_config: %s\n" % e) ``` @@ -1174,7 +1160,6 @@ from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.provisioning_policy_dto import ProvisioningPolicyDto from sailpoint.v2024.models.usage_type import UsageType -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1190,7 +1175,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).get_provisioning_policy(source_id, usage_type) print("The response of SourcesApi->get_provisioning_policy:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->get_provisioning_policy: %s\n" % e) ``` @@ -1235,7 +1220,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.source import Source -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1250,7 +1234,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).get_source(id) print("The response of SourcesApi->get_source:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->get_source: %s\n" % e) ``` @@ -1307,7 +1291,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.attr_sync_source_config import AttrSyncSourceConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1324,7 +1307,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).get_source_attr_sync_config(id, x_sail_point_experimental) print("The response of SourcesApi->get_source_attr_sync_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->get_source_attr_sync_config: %s\n" % e) ``` @@ -1381,7 +1364,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.connector_detail import ConnectorDetail -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1399,7 +1381,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).get_source_config(id, x_sail_point_experimental, locale) print("The response of SourcesApi->get_source_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->get_source_config: %s\n" % e) ``` @@ -1444,7 +1426,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.source_connections_dto import SourceConnectionsDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1459,7 +1440,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).get_source_connections(source_id) print("The response of SourcesApi->get_source_connections:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->get_source_connections: %s\n" % e) ``` @@ -1518,7 +1499,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.source_entitlement_request_config import SourceEntitlementRequestConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1534,7 +1514,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).get_source_entitlement_request_config(x_sail_point_experimental) print("The response of SourcesApi->get_source_entitlement_request_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->get_source_entitlement_request_config: %s\n" % e) ``` @@ -1579,7 +1559,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.source_health_dto import SourceHealthDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1594,7 +1573,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).get_source_health(source_id) print("The response of SourcesApi->get_source_health:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->get_source_health: %s\n" % e) ``` @@ -1641,7 +1620,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.schedule1 import Schedule1 -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1657,7 +1635,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).get_source_schedule(source_id, schedule_type) print("The response of SourcesApi->get_source_schedule:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->get_source_schedule: %s\n" % e) ``` @@ -1710,7 +1688,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.schedule1 import Schedule1 -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1725,7 +1702,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).get_source_schedules(source_id) print("The response of SourcesApi->get_source_schedules:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->get_source_schedules: %s\n" % e) ``` @@ -1772,7 +1749,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.model_schema import ModelSchema -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1788,7 +1764,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).get_source_schema(source_id, schema_id) print("The response of SourcesApi->get_source_schema:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->get_source_schema: %s\n" % e) ``` @@ -1835,7 +1811,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.model_schema import ModelSchema -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1852,7 +1827,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).get_source_schemas(source_id, include_types, include_names) print("The response of SourcesApi->get_source_schemas:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->get_source_schemas: %s\n" % e) ``` @@ -1912,7 +1887,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.load_accounts_task import LoadAccountsTask -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1931,7 +1905,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).import_accounts(id, x_sail_point_experimental, file, disable_optimization) print("The response of SourcesApi->import_accounts:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->import_accounts: %s\n" % e) ``` @@ -1982,7 +1956,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.model_schema import ModelSchema -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1998,7 +1971,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).import_accounts_schema(id, file) print("The response of SourcesApi->import_accounts_schema:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->import_accounts_schema: %s\n" % e) ``` @@ -2043,7 +2016,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.source import Source -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -2059,7 +2031,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).import_connector_file(source_id, file) print("The response of SourcesApi->import_connector_file:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->import_connector_file: %s\n" % e) ``` @@ -2111,7 +2083,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.model_schema import ModelSchema -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -2128,7 +2099,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).import_entitlements_schema(id, schema_name, file) print("The response of SourcesApi->import_entitlements_schema:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->import_entitlements_schema: %s\n" % e) ``` @@ -2185,7 +2156,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.load_uncorrelated_accounts_task import LoadUncorrelatedAccountsTask -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -2203,7 +2173,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).import_uncorrelated_accounts(id, x_sail_point_experimental, file) print("The response of SourcesApi->import_uncorrelated_accounts:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->import_uncorrelated_accounts: %s\n" % e) ``` @@ -2248,7 +2218,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.provisioning_policy_dto import ProvisioningPolicyDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -2263,7 +2232,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).list_provisioning_policies(source_id) print("The response of SourcesApi->list_provisioning_policies:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->list_provisioning_policies: %s\n" % e) ``` @@ -2314,7 +2283,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.source import Source -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -2335,7 +2303,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).list_sources(limit, offset, count, filters, sorters, for_subadmin, include_idn_source) print("The response of SourcesApi->list_sources:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->list_sources: %s\n" % e) ``` @@ -2394,7 +2362,6 @@ from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.resource_objects_request import ResourceObjectsRequest from sailpoint.v2024.models.resource_objects_response import ResourceObjectsResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -2415,7 +2382,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).peek_resource_objects(source_id, x_sail_point_experimental, new_resource_objects_request) print("The response of SourcesApi->peek_resource_objects:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->peek_resource_objects: %s\n" % e) ``` @@ -2472,7 +2439,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.status_response import StatusResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -2489,7 +2455,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).ping_cluster(source_id, x_sail_point_experimental) print("The response of SourcesApi->ping_cluster:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->ping_cluster: %s\n" % e) ``` @@ -2535,7 +2501,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.correlation_config import CorrelationConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -2571,7 +2536,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).put_correlation_config(id, new_correlation_config) print("The response of SourcesApi->put_correlation_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->put_correlation_config: %s\n" % e) ``` @@ -2629,7 +2594,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.native_change_detection_config import NativeChangeDetectionConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -2654,7 +2618,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).put_native_change_detection_config(id, x_sail_point_experimental, new_native_change_detection_config) print("The response of SourcesApi->put_native_change_detection_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->put_native_change_detection_config: %s\n" % e) ``` @@ -2704,7 +2668,6 @@ from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.provisioning_policy_dto import ProvisioningPolicyDto from sailpoint.v2024.models.usage_type import UsageType -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -2760,7 +2723,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).put_provisioning_policy(source_id, usage_type, new_provisioning_policy_dto) print("The response of SourcesApi->put_provisioning_policy:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->put_provisioning_policy: %s\n" % e) ``` @@ -2818,7 +2781,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.source import Source -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -2916,7 +2878,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).put_source(id, new_source) print("The response of SourcesApi->put_source:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->put_source: %s\n" % e) ``` @@ -2975,7 +2937,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.attr_sync_source_config import AttrSyncSourceConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -3010,7 +2971,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).put_source_attr_sync_config(id, x_sail_point_experimental, new_attr_sync_source_config) print("The response of SourcesApi->put_source_attr_sync_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->put_source_attr_sync_config: %s\n" % e) ``` @@ -3067,7 +3028,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.model_schema import ModelSchema -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -3084,7 +3044,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).put_source_schema(source_id, schema_id, new_model_schema) print("The response of SourcesApi->put_source_schema:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->put_source_schema: %s\n" % e) ``` @@ -3141,7 +3101,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.source_sync_job import SourceSyncJob -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -3158,7 +3117,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).sync_attributes_for_source(id, x_sail_point_experimental) print("The response of SourcesApi->sync_attributes_for_source:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->sync_attributes_for_source: %s\n" % e) ``` @@ -3215,7 +3174,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.status_response import StatusResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -3232,7 +3190,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).test_source_configuration(source_id, x_sail_point_experimental) print("The response of SourcesApi->test_source_configuration:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->test_source_configuration: %s\n" % e) ``` @@ -3289,7 +3247,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.status_response import StatusResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -3306,7 +3263,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).test_source_connection(source_id, x_sail_point_experimental) print("The response of SourcesApi->test_source_connection:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->test_source_connection: %s\n" % e) ``` @@ -3354,7 +3311,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.password_policy_holders_dto_inner import PasswordPolicyHoldersDtoInner -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -3370,7 +3326,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).update_password_policy_holders(source_id, new_password_policy_holders_dto_inner) print("The response of SourcesApi->update_password_policy_holders:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->update_password_policy_holders: %s\n" % e) ``` @@ -3416,7 +3372,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.provisioning_policy_dto import ProvisioningPolicyDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -3432,7 +3387,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).update_provisioning_policies_in_bulk(source_id, new_provisioning_policy_dto) print("The response of SourcesApi->update_provisioning_policies_in_bulk:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->update_provisioning_policies_in_bulk: %s\n" % e) ``` @@ -3483,7 +3438,6 @@ from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.json_patch_operation import JsonPatchOperation from sailpoint.v2024.models.provisioning_policy_dto import ProvisioningPolicyDto from sailpoint.v2024.models.usage_type import UsageType -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -3500,7 +3454,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).update_provisioning_policy(source_id, usage_type, new_json_patch_operation) print("The response of SourcesApi->update_provisioning_policy:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->update_provisioning_policy: %s\n" % e) ``` @@ -3562,7 +3516,6 @@ from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.json_patch_operation import JsonPatchOperation from sailpoint.v2024.models.source import Source -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -3578,7 +3531,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).update_source(id, new_json_patch_operation) print("The response of SourcesApi->update_source:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->update_source: %s\n" % e) ``` @@ -3638,7 +3591,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.source_entitlement_request_config import SourceEntitlementRequestConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -3667,7 +3619,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).update_source_entitlement_request_config(x_sail_point_experimental, new_source_entitlement_request_config) print("The response of SourcesApi->update_source_entitlement_request_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->update_source_entitlement_request_config: %s\n" % e) ``` @@ -3720,7 +3672,6 @@ from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.json_patch_operation import JsonPatchOperation from sailpoint.v2024.models.schedule1 import Schedule1 -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -3737,7 +3688,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).update_source_schedule(source_id, schedule_type, new_json_patch_operation) print("The response of SourcesApi->update_source_schedule:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->update_source_schedule: %s\n" % e) ``` @@ -3814,7 +3765,6 @@ from sailpoint.v2024.api.sources_api import SourcesApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.json_patch_operation import JsonPatchOperation from sailpoint.v2024.models.model_schema import ModelSchema -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -3831,7 +3781,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).update_source_schema(source_id, schema_id, new_json_patch_operation) print("The response of SourcesApi->update_source_schema:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->update_source_schema: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/SuggestedEntitlementDescriptionApi.md b/sailpoint/v2024/docs/Methods/SuggestedEntitlementDescriptionApi.md index a2c828611..10fa45907 100644 --- a/sailpoint/v2024/docs/Methods/SuggestedEntitlementDescriptionApi.md +++ b/sailpoint/v2024/docs/Methods/SuggestedEntitlementDescriptionApi.md @@ -67,7 +67,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.suggested_entitlement_description_api import SuggestedEntitlementDescriptionApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.sed_batch_stats import SedBatchStats -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -82,7 +81,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SuggestedEntitlementDescriptionApi(api_client).get_sed_batch_stats(batch_id) print("The response of SuggestedEntitlementDescriptionApi->get_sed_batch_stats:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SuggestedEntitlementDescriptionApi->get_sed_batch_stats: %s\n" % e) ``` @@ -125,7 +124,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.suggested_entitlement_description_api import SuggestedEntitlementDescriptionApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.sed_batch_status import SedBatchStatus -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -139,7 +137,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SuggestedEntitlementDescriptionApi(api_client).get_sed_batches() print("The response of SuggestedEntitlementDescriptionApi->get_sed_batches:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SuggestedEntitlementDescriptionApi->get_sed_batches: %s\n" % e) ``` @@ -205,7 +203,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.suggested_entitlement_description_api import SuggestedEntitlementDescriptionApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.sed import Sed -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -227,7 +224,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SuggestedEntitlementDescriptionApi(api_client).list_seds(limit, offset, count, filters, sorters, count_only, requested_by_anyone, show_pending_status_only) print("The response of SuggestedEntitlementDescriptionApi->list_seds:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SuggestedEntitlementDescriptionApi->list_seds: %s\n" % e) ``` @@ -274,7 +271,6 @@ from sailpoint.v2024.api.suggested_entitlement_description_api import SuggestedE from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.sed import Sed from sailpoint.v2024.models.sed_patch import SedPatch -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -290,7 +286,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SuggestedEntitlementDescriptionApi(api_client).patch_sed(id, new_sed_patch) print("The response of SuggestedEntitlementDescriptionApi->patch_sed:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SuggestedEntitlementDescriptionApi->patch_sed: %s\n" % e) ``` @@ -337,7 +333,6 @@ from sailpoint.v2024.api.suggested_entitlement_description_api import SuggestedE from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.sed_approval import SedApproval from sailpoint.v2024.models.sed_approval_status import SedApprovalStatus -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -352,7 +347,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SuggestedEntitlementDescriptionApi(api_client).submit_sed_approval(new_sed_approval) print("The response of SuggestedEntitlementDescriptionApi->submit_sed_approval:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SuggestedEntitlementDescriptionApi->submit_sed_approval: %s\n" % e) ``` @@ -399,7 +394,6 @@ from sailpoint.v2024.api.suggested_entitlement_description_api import SuggestedE from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.sed_assignment import SedAssignment from sailpoint.v2024.models.sed_assignment_response import SedAssignmentResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -420,7 +414,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SuggestedEntitlementDescriptionApi(api_client).submit_sed_assignment(new_sed_assignment) print("The response of SuggestedEntitlementDescriptionApi->submit_sed_assignment:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SuggestedEntitlementDescriptionApi->submit_sed_assignment: %s\n" % e) ``` @@ -467,7 +461,6 @@ from sailpoint.v2024.api.suggested_entitlement_description_api import SuggestedE from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.sed_batch_request import SedBatchRequest from sailpoint.v2024.models.sed_batch_response import SedBatchResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -485,7 +478,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SuggestedEntitlementDescriptionApi(api_client).submit_sed_batch_request(new_sed_batch_request) print("The response of SuggestedEntitlementDescriptionApi->submit_sed_batch_request:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SuggestedEntitlementDescriptionApi->submit_sed_batch_request: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/TaggedObjectsApi.md b/sailpoint/v2024/docs/Methods/TaggedObjectsApi.md index b75b69a05..38d22d44c 100644 --- a/sailpoint/v2024/docs/Methods/TaggedObjectsApi.md +++ b/sailpoint/v2024/docs/Methods/TaggedObjectsApi.md @@ -113,7 +113,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.tagged_objects_api import TaggedObjectsApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -171,7 +170,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.tagged_objects_api import TaggedObjectsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.bulk_remove_tagged_object import BulkRemoveTaggedObject -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -240,7 +238,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.tagged_objects_api import TaggedObjectsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.tagged_object import TaggedObject -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -256,7 +253,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = TaggedObjectsApi(api_client).get_tagged_object(type, id) print("The response of TaggedObjectsApi->get_tagged_object:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling TaggedObjectsApi->get_tagged_object: %s\n" % e) ``` @@ -305,7 +302,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.tagged_objects_api import TaggedObjectsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.tagged_object import TaggedObject -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -323,7 +319,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = TaggedObjectsApi(api_client).list_tagged_objects(limit, offset, count, filters) print("The response of TaggedObjectsApi->list_tagged_objects:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling TaggedObjectsApi->list_tagged_objects: %s\n" % e) ``` @@ -373,7 +369,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.tagged_objects_api import TaggedObjectsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.tagged_object import TaggedObject -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -392,7 +387,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = TaggedObjectsApi(api_client).list_tagged_objects_by_type(type, limit, offset, count, filters) print("The response of TaggedObjectsApi->list_tagged_objects_by_type:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling TaggedObjectsApi->list_tagged_objects_by_type: %s\n" % e) ``` @@ -438,7 +433,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.tagged_objects_api import TaggedObjectsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.tagged_object import TaggedObject -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -462,7 +456,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = TaggedObjectsApi(api_client).put_tagged_object(type, id, new_tagged_object) print("The response of TaggedObjectsApi->put_tagged_object:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling TaggedObjectsApi->put_tagged_object: %s\n" % e) ``` @@ -508,7 +502,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.tagged_objects_api import TaggedObjectsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.tagged_object import TaggedObject -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -573,7 +566,6 @@ from sailpoint.v2024.api.tagged_objects_api import TaggedObjectsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.bulk_add_tagged_object import BulkAddTaggedObject from sailpoint.v2024.models.bulk_tagged_object_response import BulkTaggedObjectResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -600,7 +592,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = TaggedObjectsApi(api_client).set_tags_to_many_objects(new_bulk_add_tagged_object) print("The response of TaggedObjectsApi->set_tags_to_many_objects:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling TaggedObjectsApi->set_tags_to_many_objects: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/TaskManagementApi.md b/sailpoint/v2024/docs/Methods/TaskManagementApi.md index 68d998698..a1450f43f 100644 --- a/sailpoint/v2024/docs/Methods/TaskManagementApi.md +++ b/sailpoint/v2024/docs/Methods/TaskManagementApi.md @@ -71,7 +71,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.task_management_api import TaskManagementApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -147,7 +146,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.task_management_api import TaskManagementApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.task_status import TaskStatus -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -166,7 +164,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = TaskManagementApi(api_client).get_pending_tasks(x_sail_point_experimental, offset, limit, count) print("The response of TaskManagementApi->get_pending_tasks:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling TaskManagementApi->get_pending_tasks: %s\n" % e) ``` @@ -223,7 +221,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.task_management_api import TaskManagementApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.task_status import TaskStatus -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -240,7 +237,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = TaskManagementApi(api_client).get_task_status(id, x_sail_point_experimental) print("The response of TaskManagementApi->get_task_status:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling TaskManagementApi->get_task_status: %s\n" % e) ``` @@ -302,7 +299,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.task_management_api import TaskManagementApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.task_status import TaskStatus -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -323,7 +319,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = TaskManagementApi(api_client).get_task_status_list(x_sail_point_experimental, limit, offset, count, filters, sorters) print("The response of TaskManagementApi->get_task_status_list:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling TaskManagementApi->get_task_status_list: %s\n" % e) ``` @@ -382,7 +378,6 @@ from sailpoint.v2024.api.task_management_api import TaskManagementApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.json_patch_operation import JsonPatchOperation from sailpoint.v2024.models.task_status import TaskStatus -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -400,7 +395,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = TaskManagementApi(api_client).update_task_status(id, x_sail_point_experimental, new_json_patch_operation) print("The response of TaskManagementApi->update_task_status:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling TaskManagementApi->update_task_status: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/TenantApi.md b/sailpoint/v2024/docs/Methods/TenantApi.md index 556fa3310..4333501aa 100644 --- a/sailpoint/v2024/docs/Methods/TenantApi.md +++ b/sailpoint/v2024/docs/Methods/TenantApi.md @@ -51,7 +51,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.tenant_api import TenantApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.tenant import Tenant -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -65,7 +64,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = TenantApi(api_client).get_tenant() print("The response of TenantApi->get_tenant:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling TenantApi->get_tenant: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/TransformsApi.md b/sailpoint/v2024/docs/Methods/TransformsApi.md index f4243d26e..432d792a7 100644 --- a/sailpoint/v2024/docs/Methods/TransformsApi.md +++ b/sailpoint/v2024/docs/Methods/TransformsApi.md @@ -64,7 +64,6 @@ from sailpoint.v2024.api.transforms_api import TransformsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.transform import Transform from sailpoint.v2024.models.transform_read import TransformRead -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -83,7 +82,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = TransformsApi(api_client).create_transform(new_transform) print("The response of TransformsApi->create_transform:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling TransformsApi->create_transform: %s\n" % e) ``` @@ -127,7 +126,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.transforms_api import TransformsApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -185,7 +183,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.transforms_api import TransformsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.transform_read import TransformRead -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -200,7 +197,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = TransformsApi(api_client).get_transform(id) print("The response of TransformsApi->get_transform:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling TransformsApi->get_transform: %s\n" % e) ``` @@ -249,7 +246,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.transforms_api import TransformsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.transform_read import TransformRead -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -268,7 +264,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = TransformsApi(api_client).list_transforms(offset, limit, count, name, filters) print("The response of TransformsApi->list_transforms:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling TransformsApi->list_transforms: %s\n" % e) ``` @@ -315,7 +311,6 @@ from sailpoint.v2024.api.transforms_api import TransformsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.transform import Transform from sailpoint.v2024.models.transform_read import TransformRead -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -335,7 +330,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = TransformsApi(api_client).update_transform(id, new_transform) print("The response of TransformsApi->update_transform:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling TransformsApi->update_transform: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/TriggersApi.md b/sailpoint/v2024/docs/Methods/TriggersApi.md index 380a4ac7e..18de16ea7 100644 --- a/sailpoint/v2024/docs/Methods/TriggersApi.md +++ b/sailpoint/v2024/docs/Methods/TriggersApi.md @@ -116,7 +116,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.triggers_api import TriggersApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.complete_invocation import CompleteInvocation -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -197,7 +196,6 @@ from sailpoint.v2024.api.triggers_api import TriggersApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.subscription import Subscription from sailpoint.v2024.models.subscription_post_request import SubscriptionPostRequest -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -238,7 +236,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = TriggersApi(api_client).create_subscription(x_sail_point_experimental, new_subscription_post_request) print("The response of TriggersApi->create_subscription:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling TriggersApi->create_subscription: %s\n" % e) ``` @@ -294,7 +292,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.triggers_api import TriggersApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -369,7 +366,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.triggers_api import TriggersApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.subscription import Subscription -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -390,7 +386,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = TriggersApi(api_client).list_subscriptions(x_sail_point_experimental, limit, offset, count, filters, sorters) print("The response of TriggersApi->list_subscriptions:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling TriggersApi->list_subscriptions: %s\n" % e) ``` @@ -452,7 +448,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.triggers_api import TriggersApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.invocation_status import InvocationStatus -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -473,7 +468,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = TriggersApi(api_client).list_trigger_invocation_status(x_sail_point_experimental, limit, offset, count, filters, sorters) print("The response of TriggersApi->list_trigger_invocation_status:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling TriggersApi->list_trigger_invocation_status: %s\n" % e) ``` @@ -533,7 +528,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.triggers_api import TriggersApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.trigger import Trigger -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -554,7 +548,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = TriggersApi(api_client).list_triggers(x_sail_point_experimental, limit, offset, count, filters, sorters) print("The response of TriggersApi->list_triggers:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling TriggersApi->list_triggers: %s\n" % e) ``` @@ -615,7 +609,6 @@ from sailpoint.v2024.api.triggers_api import TriggersApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.subscription import Subscription from sailpoint.v2024.models.subscription_patch_request_inner import SubscriptionPatchRequestInner -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -633,7 +626,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = TriggersApi(api_client).patch_subscription(id, x_sail_point_experimental, new_subscription_patch_request_inner) print("The response of TriggersApi->patch_subscription:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling TriggersApi->patch_subscription: %s\n" % e) ``` @@ -691,7 +684,6 @@ from sailpoint.v2024.api.triggers_api import TriggersApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.invocation import Invocation from sailpoint.v2024.models.test_invocation import TestInvocation -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -717,7 +709,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = TriggersApi(api_client).start_test_trigger_invocation(x_sail_point_experimental, new_test_invocation) print("The response of TriggersApi->start_test_trigger_invocation:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling TriggersApi->start_test_trigger_invocation: %s\n" % e) ``` @@ -775,7 +767,6 @@ from sailpoint.v2024.api.triggers_api import TriggersApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.validate_filter_input_dto import ValidateFilterInputDto from sailpoint.v2024.models.validate_filter_output_dto import ValidateFilterOutputDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -797,7 +788,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = TriggersApi(api_client).test_subscription_filter(x_sail_point_experimental, new_validate_filter_input_dto) print("The response of TriggersApi->test_subscription_filter:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling TriggersApi->test_subscription_filter: %s\n" % e) ``` @@ -865,7 +856,6 @@ from sailpoint.v2024.api.triggers_api import TriggersApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.subscription import Subscription from sailpoint.v2024.models.subscription_put_request import SubscriptionPutRequest -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -906,7 +896,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = TriggersApi(api_client).update_subscription(id, x_sail_point_experimental, new_subscription_put_request) print("The response of TriggersApi->update_subscription:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling TriggersApi->update_subscription: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/UIMetadataApi.md b/sailpoint/v2024/docs/Methods/UIMetadataApi.md index ca94afbe4..51c6e6798 100644 --- a/sailpoint/v2024/docs/Methods/UIMetadataApi.md +++ b/sailpoint/v2024/docs/Methods/UIMetadataApi.md @@ -67,7 +67,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.ui_metadata_api import UIMetadataApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.tenant_ui_metadata_item_response import TenantUiMetadataItemResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -83,7 +82,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = UIMetadataApi(api_client).get_tenant_ui_metadata(x_sail_point_experimental) print("The response of UIMetadataApi->get_tenant_ui_metadata:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling UIMetadataApi->get_tenant_ui_metadata: %s\n" % e) ``` @@ -141,7 +140,6 @@ from sailpoint.v2024.api.ui_metadata_api import UIMetadataApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.tenant_ui_metadata_item_response import TenantUiMetadataItemResponse from sailpoint.v2024.models.tenant_ui_metadata_item_update_request import TenantUiMetadataItemUpdateRequest -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -162,7 +160,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = UIMetadataApi(api_client).set_tenant_ui_metadata(x_sail_point_experimental, new_tenant_ui_metadata_item_update_request) print("The response of UIMetadataApi->set_tenant_ui_metadata:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling UIMetadataApi->set_tenant_ui_metadata: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/VendorConnectorMappingsApi.md b/sailpoint/v2024/docs/Methods/VendorConnectorMappingsApi.md index 2889ddf56..6f5c855d9 100644 --- a/sailpoint/v2024/docs/Methods/VendorConnectorMappingsApi.md +++ b/sailpoint/v2024/docs/Methods/VendorConnectorMappingsApi.md @@ -61,7 +61,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.vendor_connector_mappings_api import VendorConnectorMappingsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.vendor_connector_mapping import VendorConnectorMapping -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -98,7 +97,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = VendorConnectorMappingsApi(api_client).create_vendor_connector_mapping(new_vendor_connector_mapping) print("The response of VendorConnectorMappingsApi->create_vendor_connector_mapping:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling VendorConnectorMappingsApi->create_vendor_connector_mapping: %s\n" % e) ``` @@ -145,7 +144,6 @@ from sailpoint.v2024.api.vendor_connector_mappings_api import VendorConnectorMap from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.delete_vendor_connector_mapping200_response import DeleteVendorConnectorMapping200Response from sailpoint.v2024.models.vendor_connector_mapping import VendorConnectorMapping -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -182,7 +180,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = VendorConnectorMappingsApi(api_client).delete_vendor_connector_mapping(new_vendor_connector_mapping) print("The response of VendorConnectorMappingsApi->delete_vendor_connector_mapping:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling VendorConnectorMappingsApi->delete_vendor_connector_mapping: %s\n" % e) ``` @@ -225,7 +223,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.vendor_connector_mappings_api import VendorConnectorMappingsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.vendor_connector_mapping import VendorConnectorMapping -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -239,7 +236,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = VendorConnectorMappingsApi(api_client).get_vendor_connector_mappings() print("The response of VendorConnectorMappingsApi->get_vendor_connector_mappings:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling VendorConnectorMappingsApi->get_vendor_connector_mappings: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/WorkItemsApi.md b/sailpoint/v2024/docs/Methods/WorkItemsApi.md index 352bf7de8..ee9f86d8f 100644 --- a/sailpoint/v2024/docs/Methods/WorkItemsApi.md +++ b/sailpoint/v2024/docs/Methods/WorkItemsApi.md @@ -81,7 +81,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.work_items_api import WorkItemsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.work_items import WorkItems -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -97,7 +96,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkItemsApi(api_client).approve_approval_item(id, approval_item_id) print("The response of WorkItemsApi->approve_approval_item:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkItemsApi->approve_approval_item: %s\n" % e) ``` @@ -142,7 +141,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.work_items_api import WorkItemsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.work_items import WorkItems -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -157,7 +155,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkItemsApi(api_client).approve_approval_items_in_bulk(id) print("The response of WorkItemsApi->approve_approval_items_in_bulk:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkItemsApi->approve_approval_items_in_bulk: %s\n" % e) ``` @@ -203,7 +201,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.work_items_api import WorkItemsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.work_items import WorkItems -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -219,7 +216,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkItemsApi(api_client).complete_work_item(id, new_body) print("The response of WorkItemsApi->complete_work_item:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkItemsApi->complete_work_item: %s\n" % e) ``` @@ -276,7 +273,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.work_items_api import WorkItemsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.work_item_forward import WorkItemForward -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -343,7 +339,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.work_items_api import WorkItemsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.work_items import WorkItems -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -361,7 +356,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkItemsApi(api_client).get_completed_work_items(owner_id, limit, offset, count) print("The response of WorkItemsApi->get_completed_work_items:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkItemsApi->get_completed_work_items: %s\n" % e) ``` @@ -415,7 +410,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.work_items_api import WorkItemsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.work_items_count import WorkItemsCount -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -432,7 +426,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkItemsApi(api_client).get_count_completed_work_items(x_sail_point_experimental, owner_id) print("The response of WorkItemsApi->get_count_completed_work_items:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkItemsApi->get_count_completed_work_items: %s\n" % e) ``` @@ -476,7 +470,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.work_items_api import WorkItemsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.work_items_count import WorkItemsCount -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -491,7 +484,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkItemsApi(api_client).get_count_work_items(owner_id) print("The response of WorkItemsApi->get_count_work_items:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkItemsApi->get_count_work_items: %s\n" % e) ``` @@ -535,7 +528,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.work_items_api import WorkItemsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.work_items import WorkItems -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -550,7 +542,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkItemsApi(api_client).get_work_item(id) print("The response of WorkItemsApi->get_work_item:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkItemsApi->get_work_item: %s\n" % e) ``` @@ -594,7 +586,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.work_items_api import WorkItemsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.work_items_summary import WorkItemsSummary -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -609,7 +600,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkItemsApi(api_client).get_work_items_summary(owner_id) print("The response of WorkItemsApi->get_work_items_summary:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkItemsApi->get_work_items_summary: %s\n" % e) ``` @@ -656,7 +647,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.work_items_api import WorkItemsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.work_items import WorkItems -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -674,7 +664,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkItemsApi(api_client).list_work_items(limit, offset, count, owner_id) print("The response of WorkItemsApi->list_work_items:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkItemsApi->list_work_items: %s\n" % e) ``` @@ -720,7 +710,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.work_items_api import WorkItemsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.work_items import WorkItems -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -736,7 +725,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkItemsApi(api_client).reject_approval_item(id, approval_item_id) print("The response of WorkItemsApi->reject_approval_item:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkItemsApi->reject_approval_item: %s\n" % e) ``` @@ -781,7 +770,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.work_items_api import WorkItemsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.work_items import WorkItems -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -796,7 +784,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkItemsApi(api_client).reject_approval_items_in_bulk(id) print("The response of WorkItemsApi->reject_approval_items_in_bulk:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkItemsApi->reject_approval_items_in_bulk: %s\n" % e) ``` @@ -842,7 +830,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.work_items_api import WorkItemsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.work_items import WorkItems -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -858,7 +845,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkItemsApi(api_client).submit_account_selection(id, new_request_body) print("The response of WorkItemsApi->submit_account_selection:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkItemsApi->submit_account_selection: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/WorkReassignmentApi.md b/sailpoint/v2024/docs/Methods/WorkReassignmentApi.md index f7e4b22c4..d3d1c4a23 100644 --- a/sailpoint/v2024/docs/Methods/WorkReassignmentApi.md +++ b/sailpoint/v2024/docs/Methods/WorkReassignmentApi.md @@ -84,7 +84,6 @@ from sailpoint.v2024.api.work_reassignment_api import WorkReassignmentApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.configuration_item_request import ConfigurationItemRequest from sailpoint.v2024.models.configuration_item_response import ConfigurationItemResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -107,7 +106,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkReassignmentApi(api_client).create_reassignment_configuration(x_sail_point_experimental, new_configuration_item_request) print("The response of WorkReassignmentApi->create_reassignment_configuration:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkReassignmentApi->create_reassignment_configuration: %s\n" % e) ``` @@ -164,7 +163,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.work_reassignment_api import WorkReassignmentApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.config_type_enum import ConfigTypeEnum -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -239,7 +237,6 @@ from sailpoint.v2024.api.work_reassignment_api import WorkReassignmentApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.config_type_enum import ConfigTypeEnum from sailpoint.v2024.models.evaluate_response import EvaluateResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -258,7 +255,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkReassignmentApi(api_client).get_evaluate_reassignment_configuration(identity_id, config_type, x_sail_point_experimental, exclusion_filters) print("The response of WorkReassignmentApi->get_evaluate_reassignment_configuration:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkReassignmentApi->get_evaluate_reassignment_configuration: %s\n" % e) ``` @@ -313,7 +310,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.work_reassignment_api import WorkReassignmentApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.config_type import ConfigType -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -329,7 +325,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkReassignmentApi(api_client).get_reassignment_config_types(x_sail_point_experimental) print("The response of WorkReassignmentApi->get_reassignment_config_types:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkReassignmentApi->get_reassignment_config_types: %s\n" % e) ``` @@ -386,7 +382,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.work_reassignment_api import WorkReassignmentApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.configuration_response import ConfigurationResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -403,7 +398,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkReassignmentApi(api_client).get_reassignment_configuration(identity_id, x_sail_point_experimental) print("The response of WorkReassignmentApi->get_reassignment_configuration:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkReassignmentApi->get_reassignment_configuration: %s\n" % e) ``` @@ -459,7 +454,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.work_reassignment_api import WorkReassignmentApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.tenant_configuration_response import TenantConfigurationResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -475,7 +469,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkReassignmentApi(api_client).get_tenant_config_configuration(x_sail_point_experimental) print("The response of WorkReassignmentApi->get_tenant_config_configuration:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkReassignmentApi->get_tenant_config_configuration: %s\n" % e) ``` @@ -531,7 +525,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.work_reassignment_api import WorkReassignmentApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.configuration_response import ConfigurationResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -547,7 +540,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkReassignmentApi(api_client).list_reassignment_configurations(x_sail_point_experimental) print("The response of WorkReassignmentApi->list_reassignment_configurations:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkReassignmentApi->list_reassignment_configurations: %s\n" % e) ``` @@ -605,7 +598,6 @@ from sailpoint.v2024.api.work_reassignment_api import WorkReassignmentApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.configuration_item_request import ConfigurationItemRequest from sailpoint.v2024.models.configuration_item_response import ConfigurationItemResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -629,7 +621,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkReassignmentApi(api_client).put_reassignment_config(identity_id, x_sail_point_experimental, new_configuration_item_request) print("The response of WorkReassignmentApi->put_reassignment_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkReassignmentApi->put_reassignment_config: %s\n" % e) ``` @@ -686,7 +678,6 @@ from sailpoint.v2024.api.work_reassignment_api import WorkReassignmentApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.tenant_configuration_request import TenantConfigurationRequest from sailpoint.v2024.models.tenant_configuration_response import TenantConfigurationResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -707,7 +698,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkReassignmentApi(api_client).put_tenant_configuration(x_sail_point_experimental, new_tenant_configuration_request) print("The response of WorkReassignmentApi->put_tenant_configuration:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkReassignmentApi->put_tenant_configuration: %s\n" % e) ``` diff --git a/sailpoint/v2024/docs/Methods/WorkflowsApi.md b/sailpoint/v2024/docs/Methods/WorkflowsApi.md index c7a4002dd..91afe5a2e 100644 --- a/sailpoint/v2024/docs/Methods/WorkflowsApi.md +++ b/sailpoint/v2024/docs/Methods/WorkflowsApi.md @@ -71,7 +71,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.workflows_api import WorkflowsApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -130,7 +129,6 @@ from sailpoint.v2024.api.workflows_api import WorkflowsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.create_external_execute_workflow200_response import CreateExternalExecuteWorkflow200Response from sailpoint.v2024.models.create_external_execute_workflow_request import CreateExternalExecuteWorkflowRequest -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -146,7 +144,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkflowsApi(api_client).create_external_execute_workflow(id, new_create_external_execute_workflow_request) print("The response of WorkflowsApi->create_external_execute_workflow:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkflowsApi->create_external_execute_workflow: %s\n" % e) ``` @@ -191,7 +189,6 @@ from sailpoint.v2024.api.workflows_api import WorkflowsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.create_workflow_request import CreateWorkflowRequest from sailpoint.v2024.models.workflow import Workflow -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -206,7 +203,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkflowsApi(api_client).create_workflow(new_create_workflow_request) print("The response of WorkflowsApi->create_workflow:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkflowsApi->create_workflow: %s\n" % e) ``` @@ -250,7 +247,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.workflows_api import WorkflowsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.workflow_o_auth_client import WorkflowOAuthClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -265,7 +261,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkflowsApi(api_client).create_workflow_external_trigger(id) print("The response of WorkflowsApi->create_workflow_external_trigger:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkflowsApi->create_workflow_external_trigger: %s\n" % e) ``` @@ -308,7 +304,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.workflows_api import WorkflowsApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -365,7 +360,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.workflows_api import WorkflowsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.workflow import Workflow -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -380,7 +374,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkflowsApi(api_client).get_workflow(id) print("The response of WorkflowsApi->get_workflow:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkflowsApi->get_workflow: %s\n" % e) ``` @@ -424,7 +418,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v2024.api.workflows_api import WorkflowsApi from sailpoint.v2024.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -439,7 +432,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkflowsApi(api_client).get_workflow_execution(id) print("The response of WorkflowsApi->get_workflow_execution:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkflowsApi->get_workflow_execution: %s\n" % e) ``` @@ -484,7 +477,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.workflows_api import WorkflowsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.workflow_execution_event import WorkflowExecutionEvent -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -499,7 +491,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkflowsApi(api_client).get_workflow_execution_history(id) print("The response of WorkflowsApi->get_workflow_execution_history:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkflowsApi->get_workflow_execution_history: %s\n" % e) ``` @@ -558,7 +550,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.workflows_api import WorkflowsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.workflow_execution import WorkflowExecution -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -577,7 +568,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkflowsApi(api_client).get_workflow_executions(id, limit, offset, count, filters) print("The response of WorkflowsApi->get_workflow_executions:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkflowsApi->get_workflow_executions: %s\n" % e) ``` @@ -622,7 +613,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.workflows_api import WorkflowsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.list_complete_workflow_library200_response_inner import ListCompleteWorkflowLibrary200ResponseInner -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -638,7 +628,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkflowsApi(api_client).list_complete_workflow_library(limit, offset) print("The response of WorkflowsApi->list_complete_workflow_library:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkflowsApi->list_complete_workflow_library: %s\n" % e) ``` @@ -684,7 +674,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.workflows_api import WorkflowsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.workflow_library_action import WorkflowLibraryAction -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -701,7 +690,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkflowsApi(api_client).list_workflow_library_actions(limit, offset, filters) print("The response of WorkflowsApi->list_workflow_library_actions:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkflowsApi->list_workflow_library_actions: %s\n" % e) ``` @@ -742,7 +731,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.workflows_api import WorkflowsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.workflow_library_operator import WorkflowLibraryOperator -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -756,7 +744,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkflowsApi(api_client).list_workflow_library_operators() print("The response of WorkflowsApi->list_workflow_library_operators:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkflowsApi->list_workflow_library_operators: %s\n" % e) ``` @@ -802,7 +790,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.workflows_api import WorkflowsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.workflow_library_trigger import WorkflowLibraryTrigger -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -819,7 +806,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkflowsApi(api_client).list_workflow_library_triggers(limit, offset, filters) print("The response of WorkflowsApi->list_workflow_library_triggers:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkflowsApi->list_workflow_library_triggers: %s\n" % e) ``` @@ -860,7 +847,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v2024.api.workflows_api import WorkflowsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.workflow import Workflow -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -874,7 +860,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkflowsApi(api_client).list_workflows() print("The response of WorkflowsApi->list_workflows:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkflowsApi->list_workflows: %s\n" % e) ``` @@ -920,7 +906,6 @@ from sailpoint.v2024.api.workflows_api import WorkflowsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.json_patch_operation import JsonPatchOperation from sailpoint.v2024.models.workflow import Workflow -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -936,7 +921,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkflowsApi(api_client).patch_workflow(id, new_json_patch_operation) print("The response of WorkflowsApi->patch_workflow:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkflowsApi->patch_workflow: %s\n" % e) ``` @@ -982,7 +967,6 @@ from sailpoint.v2024.api.workflows_api import WorkflowsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.workflow import Workflow from sailpoint.v2024.models.workflow_body import WorkflowBody -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1037,7 +1021,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkflowsApi(api_client).put_workflow(id, new_workflow_body) print("The response of WorkflowsApi->put_workflow:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkflowsApi->put_workflow: %s\n" % e) ``` @@ -1083,7 +1067,6 @@ from sailpoint.v2024.api.workflows_api import WorkflowsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.test_external_execute_workflow200_response import TestExternalExecuteWorkflow200Response from sailpoint.v2024.models.test_external_execute_workflow_request import TestExternalExecuteWorkflowRequest -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1099,7 +1082,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkflowsApi(api_client).test_external_execute_workflow(id, new_test_external_execute_workflow_request) print("The response of WorkflowsApi->test_external_execute_workflow:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkflowsApi->test_external_execute_workflow: %s\n" % e) ``` @@ -1147,7 +1130,6 @@ from sailpoint.v2024.api.workflows_api import WorkflowsApi from sailpoint.v2024.api_client import ApiClient from sailpoint.v2024.models.test_workflow200_response import TestWorkflow200Response from sailpoint.v2024.models.test_workflow_request import TestWorkflowRequest -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1163,7 +1145,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkflowsApi(api_client).test_workflow(id, new_test_workflow_request) print("The response of WorkflowsApi->test_workflow:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkflowsApi->test_workflow: %s\n" % e) ``` diff --git a/sailpoint/v3/docs/Examples/python_code_examples_overlay.yaml b/sailpoint/v3/docs/Examples/python_code_examples_overlay.yaml index 10f5e8a10..4aeeaa4b5 100644 --- a/sailpoint/v3/docs/Examples/python_code_examples_overlay.yaml +++ b/sailpoint/v3/docs/Examples/python_code_examples_overlay.yaml @@ -7,13 +7,12 @@ from sailpoint.v3.api.access_profiles_api import AccessProfilesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.access_profile import AccessProfile - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - access_profile = '''{ + access_profile = '''{ "owner" : { "name" : "support", "id" : "2c9180a46faadee4016fb4e018c20639", @@ -98,16 +97,16 @@ "id" : "2c91808a7190d06e01719938fcd20792", "requestable" : true }''' # AccessProfile | - try: - # Create Access Profile - new_access_profile = AccessProfile.from_json(access_profile) - results = AccessProfilesApi(api_client).create_access_profile(access_profile=new_access_profile) - # Below is a request that includes all optional parameters - # results = AccessProfilesApi(api_client).create_access_profile(new_access_profile) - print("The response of AccessProfilesApi->create_access_profile:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccessProfilesApi->create_access_profile: %s\n" % e) + try: + # Create Access Profile + new_access_profile = AccessProfile.from_json(access_profile) + results = AccessProfilesApi(api_client).create_access_profile(access_profile=new_access_profile) + # Below is a request that includes all optional parameters + # results = AccessProfilesApi(api_client).create_access_profile(new_access_profile) + print("The response of AccessProfilesApi->create_access_profile:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccessProfilesApi->create_access_profile: %s\n" % e) - path: /access-profiles/{id} method: DELETE xCodeSample: @@ -116,21 +115,20 @@ source: | from sailpoint.v3.api.access_profiles_api import AccessProfilesApi from sailpoint.v3.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808a7813090a017814121919ecca' # str | ID of the Access Profile to delete # str | ID of the Access Profile to delete - try: - # Delete the specified Access Profile - - AccessProfilesApi(api_client).delete_access_profile(id=id) - # Below is a request that includes all optional parameters - # AccessProfilesApi(api_client).delete_access_profile(id) - except Exception as e: - print("Exception when calling AccessProfilesApi->delete_access_profile: %s\n" % e) + id = '2c91808a7813090a017814121919ecca' # str | ID of the Access Profile to delete # str | ID of the Access Profile to delete + try: + # Delete the specified Access Profile + + AccessProfilesApi(api_client).delete_access_profile(id=id) + # Below is a request that includes all optional parameters + # AccessProfilesApi(api_client).delete_access_profile(id) + except Exception as e: + print("Exception when calling AccessProfilesApi->delete_access_profile: %s\n" % e) - path: /access-profiles/bulk-delete method: POST xCodeSample: @@ -141,26 +139,25 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.access_profile_bulk_delete_request import AccessProfileBulkDeleteRequest from sailpoint.v3.models.access_profile_bulk_delete_response import AccessProfileBulkDeleteResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - access_profile_bulk_delete_request = '''{ + access_profile_bulk_delete_request = '''{ "accessProfileIds" : [ "2c9180847812e0b1017817051919ecca", "2c9180887812e0b201781e129f151816" ], "bestEffortOnly" : true }''' # AccessProfileBulkDeleteRequest | - try: - # Delete Access Profile(s) - new_access_profile_bulk_delete_request = AccessProfileBulkDeleteRequest.from_json(access_profile_bulk_delete_request) - results = AccessProfilesApi(api_client).delete_access_profiles_in_bulk(access_profile_bulk_delete_request=new_access_profile_bulk_delete_request) - # Below is a request that includes all optional parameters - # results = AccessProfilesApi(api_client).delete_access_profiles_in_bulk(new_access_profile_bulk_delete_request) - print("The response of AccessProfilesApi->delete_access_profiles_in_bulk:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccessProfilesApi->delete_access_profiles_in_bulk: %s\n" % e) + try: + # Delete Access Profile(s) + new_access_profile_bulk_delete_request = AccessProfileBulkDeleteRequest.from_json(access_profile_bulk_delete_request) + results = AccessProfilesApi(api_client).delete_access_profiles_in_bulk(access_profile_bulk_delete_request=new_access_profile_bulk_delete_request) + # Below is a request that includes all optional parameters + # results = AccessProfilesApi(api_client).delete_access_profiles_in_bulk(new_access_profile_bulk_delete_request) + print("The response of AccessProfilesApi->delete_access_profiles_in_bulk:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccessProfilesApi->delete_access_profiles_in_bulk: %s\n" % e) - path: /access-profiles/{id} method: GET xCodeSample: @@ -170,23 +167,22 @@ from sailpoint.v3.api.access_profiles_api import AccessProfilesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.access_profile import AccessProfile - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c9180837ca6693d017ca8d097500149' # str | ID of the Access Profile # str | ID of the Access Profile - try: - # Get an Access Profile - - results = AccessProfilesApi(api_client).get_access_profile(id=id) - # Below is a request that includes all optional parameters - # results = AccessProfilesApi(api_client).get_access_profile(id) - print("The response of AccessProfilesApi->get_access_profile:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccessProfilesApi->get_access_profile: %s\n" % e) + id = '2c9180837ca6693d017ca8d097500149' # str | ID of the Access Profile # str | ID of the Access Profile + try: + # Get an Access Profile + + results = AccessProfilesApi(api_client).get_access_profile(id=id) + # Below is a request that includes all optional parameters + # results = AccessProfilesApi(api_client).get_access_profile(id) + print("The response of AccessProfilesApi->get_access_profile:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccessProfilesApi->get_access_profile: %s\n" % e) - path: /access-profiles/{id}/entitlements method: GET xCodeSample: @@ -196,28 +192,27 @@ from sailpoint.v3.api.access_profiles_api import AccessProfilesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.entitlement import Entitlement - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808a7813090a017814121919ecca' # str | ID of the access profile containing the entitlements. # str | ID of the access profile containing the entitlements. - 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 = 'attribute eq \"memberOf\"' # 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, sw* **attribute**: *eq, sw* **value**: *eq, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **source.id**: *eq, in* Filtering is not supported for access profiles and entitlements that have the '+' symbol in their names. (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, sw* **attribute**: *eq, sw* **value**: *eq, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **source.id**: *eq, in* Filtering is not supported for access profiles and entitlements that have the '+' symbol in their names. (optional) - sorters = 'name,-modified' # 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: **name, attribute, value, created, modified** (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: **name, attribute, value, created, modified** (optional) - try: - # List Access Profile's Entitlements - - results = AccessProfilesApi(api_client).get_access_profile_entitlements(id=id) - # Below is a request that includes all optional parameters - # results = AccessProfilesApi(api_client).get_access_profile_entitlements(id, limit, offset, count, filters, sorters) - print("The response of AccessProfilesApi->get_access_profile_entitlements:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccessProfilesApi->get_access_profile_entitlements: %s\n" % e) + id = '2c91808a7813090a017814121919ecca' # str | ID of the access profile containing the entitlements. # str | ID of the access profile containing the entitlements. + 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 = 'attribute eq \"memberOf\"' # 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, sw* **attribute**: *eq, sw* **value**: *eq, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **source.id**: *eq, in* Filtering is not supported for access profiles and entitlements that have the '+' symbol in their names. (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, sw* **attribute**: *eq, sw* **value**: *eq, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **source.id**: *eq, in* Filtering is not supported for access profiles and entitlements that have the '+' symbol in their names. (optional) + sorters = 'name,-modified' # 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: **name, attribute, value, created, modified** (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: **name, attribute, value, created, modified** (optional) + try: + # List Access Profile's Entitlements + + results = AccessProfilesApi(api_client).get_access_profile_entitlements(id=id) + # Below is a request that includes all optional parameters + # results = AccessProfilesApi(api_client).get_access_profile_entitlements(id, limit, offset, count, filters, sorters) + print("The response of AccessProfilesApi->get_access_profile_entitlements:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccessProfilesApi->get_access_profile_entitlements: %s\n" % e) - path: /access-profiles method: GET xCodeSample: @@ -227,30 +222,29 @@ from sailpoint.v3.api.access_profiles_api import AccessProfilesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.access_profile import AccessProfile - from pprint import pprint - from sailpoint.configuration import Configuration - configuration = Configuration() - - - with ApiClient(configuration) as api_client: - for_subadmin = '8c190e6787aa4ed9a90bd9d5344523fb' # str | Filters the returned list according to what is visible to the indicated ROLE_SUBADMIN or SOURCE_SUBADMIN identity. The value of the parameter is either an identity ID or the special value **me**, which is shorthand for the calling identity's ID. If you specify an identity that isn't a subadmin, the API returns a 400 Bad Request error. (optional) # str | Filters the returned list according to what is visible to the indicated ROLE_SUBADMIN or SOURCE_SUBADMIN identity. The value of the parameter is either an identity ID or the special value **me**, which is shorthand for the calling identity's ID. If you specify an identity that isn't a subadmin, the API returns a 400 Bad Request error. (optional) - 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 \"SailPoint Support\"' # 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, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **requestable**: *eq* **source.id**: *eq, in* Supported composite operators are *and, or* Filtering is not supported for access profiles and entitlements that have the '+' symbol in their names. (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, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **requestable**: *eq* **source.id**: *eq, in* Supported composite operators are *and, or* Filtering is not supported for access profiles and entitlements that have the '+' symbol in their names. (optional) - sorters = 'name,-modified' # 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: **name, created, modified** (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: **name, created, modified** (optional) - for_segment_ids = '0b5c9f25-83c6-4762-9073-e38f7bb2ae26,2e8d8180-24bc-4d21-91c6-7affdb473b0d' # str | Filters access profiles to only those assigned to the segment(s) with the specified IDs. If segmentation is currently unavailable, specifying this parameter results in an error. (optional) # str | Filters access profiles to only those assigned to the segment(s) with the specified IDs. If segmentation is currently unavailable, specifying this parameter results in an error. (optional) - include_unsegmented = True # bool | Indicates whether the response list should contain unsegmented access profiles. If `for-segment-ids` is absent or empty, specifying *include-unsegmented* as `false` results in an error. (optional) (default to True) # bool | Indicates whether the response list should contain unsegmented access profiles. If `for-segment-ids` is absent or empty, specifying *include-unsegmented* as `false` results in an error. (optional) (default to True) - try: - # List Access Profiles - - results = AccessProfilesApi(api_client).list_access_profiles() - # Below is a request that includes all optional parameters - # results = AccessProfilesApi(api_client).list_access_profiles(for_subadmin, limit, offset, count, filters, sorters, for_segment_ids, include_unsegmented) - print("The response of AccessProfilesApi->list_access_profiles:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccessProfilesApi->list_access_profiles: %s\n" % e) + from sailpoint.configuration import Configuration + configuration = Configuration() + + + with ApiClient(configuration) as api_client: + for_subadmin = '8c190e6787aa4ed9a90bd9d5344523fb' # str | Filters the returned list according to what is visible to the indicated ROLE_SUBADMIN or SOURCE_SUBADMIN identity. The value of the parameter is either an identity ID or the special value **me**, which is shorthand for the calling identity's ID. If you specify an identity that isn't a subadmin, the API returns a 400 Bad Request error. (optional) # str | Filters the returned list according to what is visible to the indicated ROLE_SUBADMIN or SOURCE_SUBADMIN identity. The value of the parameter is either an identity ID or the special value **me**, which is shorthand for the calling identity's ID. If you specify an identity that isn't a subadmin, the API returns a 400 Bad Request error. (optional) + 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 \"SailPoint Support\"' # 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, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **requestable**: *eq* **source.id**: *eq, in* Supported composite operators are *and, or* Filtering is not supported for access profiles and entitlements that have the '+' symbol in their names. (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, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **requestable**: *eq* **source.id**: *eq, in* Supported composite operators are *and, or* Filtering is not supported for access profiles and entitlements that have the '+' symbol in their names. (optional) + sorters = 'name,-modified' # 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: **name, created, modified** (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: **name, created, modified** (optional) + for_segment_ids = '0b5c9f25-83c6-4762-9073-e38f7bb2ae26,2e8d8180-24bc-4d21-91c6-7affdb473b0d' # str | Filters access profiles to only those assigned to the segment(s) with the specified IDs. If segmentation is currently unavailable, specifying this parameter results in an error. (optional) # str | Filters access profiles to only those assigned to the segment(s) with the specified IDs. If segmentation is currently unavailable, specifying this parameter results in an error. (optional) + include_unsegmented = True # bool | Indicates whether the response list should contain unsegmented access profiles. If `for-segment-ids` is absent or empty, specifying *include-unsegmented* as `false` results in an error. (optional) (default to True) # bool | Indicates whether the response list should contain unsegmented access profiles. If `for-segment-ids` is absent or empty, specifying *include-unsegmented* as `false` results in an error. (optional) (default to True) + try: + # List Access Profiles + + results = AccessProfilesApi(api_client).list_access_profiles() + # Below is a request that includes all optional parameters + # results = AccessProfilesApi(api_client).list_access_profiles(for_subadmin, limit, offset, count, filters, sorters, for_segment_ids, include_unsegmented) + print("The response of AccessProfilesApi->list_access_profiles:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccessProfilesApi->list_access_profiles: %s\n" % e) - path: /access-profiles/{id} method: PATCH xCodeSample: @@ -261,24 +255,23 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.access_profile import AccessProfile from sailpoint.v3.models.json_patch_operation import JsonPatchOperation - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808a7813090a017814121919ecca' # str | ID of the Access Profile to patch # str | ID of the Access Profile to patch - json_patch_operation = '''[{op=add, path=/entitlements, value=[{id=2c9180857725c14301772a93bb77242d, type=ENTITLEMENT, name=AD User Group}]}]''' # List[JsonPatchOperation] | - try: - # Patch a specified Access Profile - new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) - results = AccessProfilesApi(api_client).patch_access_profile(id=id, json_patch_operation=new_json_patch_operation) - # Below is a request that includes all optional parameters - # results = AccessProfilesApi(api_client).patch_access_profile(id, new_json_patch_operation) - print("The response of AccessProfilesApi->patch_access_profile:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccessProfilesApi->patch_access_profile: %s\n" % e) + id = '2c91808a7813090a017814121919ecca' # str | ID of the Access Profile to patch # str | ID of the Access Profile to patch + json_patch_operation = '''[{op=add, path=/entitlements, value=[{id=2c9180857725c14301772a93bb77242d, type=ENTITLEMENT, name=AD User Group}]}]''' # List[JsonPatchOperation] | + try: + # Patch a specified Access Profile + new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) + results = AccessProfilesApi(api_client).patch_access_profile(id=id, json_patch_operation=new_json_patch_operation) + # Below is a request that includes all optional parameters + # results = AccessProfilesApi(api_client).patch_access_profile(id, new_json_patch_operation) + print("The response of AccessProfilesApi->patch_access_profile:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccessProfilesApi->patch_access_profile: %s\n" % e) - path: /access-request-approvals/{approvalId}/approve method: POST xCodeSample: @@ -288,14 +281,13 @@ from sailpoint.v3.api.access_request_approvals_api import AccessRequestApprovalsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.comment_dto import CommentDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - approval_id = '2c91808b7294bea301729568c68c002e' # str | Approval ID. # str | Approval ID. - comment_dto = '''{ + approval_id = '2c91808b7294bea301729568c68c002e' # str | Approval ID. # str | Approval ID. + comment_dto = '''{ "created" : "2017-07-11T18:45:37.098Z", "author" : { "name" : "john.doe", @@ -304,16 +296,16 @@ }, "comment" : "This is a comment." }''' # CommentDto | Reviewer's comment. (optional) - try: - # Approve Access Request Approval - - results = AccessRequestApprovalsApi(api_client).approve_access_request(approval_id=approval_id) - # Below is a request that includes all optional parameters - # results = AccessRequestApprovalsApi(api_client).approve_access_request(approval_id, new_comment_dto) - print("The response of AccessRequestApprovalsApi->approve_access_request:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccessRequestApprovalsApi->approve_access_request: %s\n" % e) + try: + # Approve Access Request Approval + + results = AccessRequestApprovalsApi(api_client).approve_access_request(approval_id=approval_id) + # Below is a request that includes all optional parameters + # results = AccessRequestApprovalsApi(api_client).approve_access_request(approval_id, new_comment_dto) + print("The response of AccessRequestApprovalsApi->approve_access_request:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccessRequestApprovalsApi->approve_access_request: %s\n" % e) - path: /access-request-approvals/{approvalId}/forward method: POST xCodeSample: @@ -323,27 +315,26 @@ from sailpoint.v3.api.access_request_approvals_api import AccessRequestApprovalsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.forward_approval_dto import ForwardApprovalDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - approval_id = '2c91808b7294bea301729568c68c002e' # str | Approval ID. # str | Approval ID. - forward_approval_dto = '''{ + approval_id = '2c91808b7294bea301729568c68c002e' # str | Approval ID. # str | Approval ID. + forward_approval_dto = '''{ "newOwnerId" : "2c91808568c529c60168cca6f90c1314", "comment" : "2c91808568c529c60168cca6f90c1313" }''' # ForwardApprovalDto | Information about the forwarded approval. - try: - # Forward Access Request Approval - new_forward_approval_dto = ForwardApprovalDto.from_json(forward_approval_dto) - results = AccessRequestApprovalsApi(api_client).forward_access_request(approval_id=approval_id, forward_approval_dto=new_forward_approval_dto) - # Below is a request that includes all optional parameters - # results = AccessRequestApprovalsApi(api_client).forward_access_request(approval_id, new_forward_approval_dto) - print("The response of AccessRequestApprovalsApi->forward_access_request:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccessRequestApprovalsApi->forward_access_request: %s\n" % e) + try: + # Forward Access Request Approval + new_forward_approval_dto = ForwardApprovalDto.from_json(forward_approval_dto) + results = AccessRequestApprovalsApi(api_client).forward_access_request(approval_id=approval_id, forward_approval_dto=new_forward_approval_dto) + # Below is a request that includes all optional parameters + # results = AccessRequestApprovalsApi(api_client).forward_access_request(approval_id, new_forward_approval_dto) + print("The response of AccessRequestApprovalsApi->forward_access_request:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccessRequestApprovalsApi->forward_access_request: %s\n" % e) - path: /access-request-approvals/approval-summary method: GET xCodeSample: @@ -353,24 +344,23 @@ from sailpoint.v3.api.access_request_approvals_api import AccessRequestApprovalsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.approval_summary import ApprovalSummary - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - owner_id = '2c91808568c529c60168cca6f90c1313' # str | The ID of the owner or approver identity of the approvals. If present, the value returns approval summary for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN user can also fetch all the approvals in the org, when owner-id is not used. * Non ORG_ADMIN users can only specify *me* or pass their own identity ID value. (optional) # str | The ID of the owner or approver identity of the approvals. If present, the value returns approval summary for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN user can also fetch all the approvals in the org, when owner-id is not used. * Non ORG_ADMIN users can only specify *me* or pass their own identity ID value. (optional) - from_date = 'from-date=2020-03-19T19:59:11Z' # str | This is the date and time the results will be shown from. It must be in a valid ISO-8601 format. (optional) # str | This is the date and time the results will be shown from. It must be in a valid ISO-8601 format. (optional) - try: - # Get Access Requests Approvals Number - - results = AccessRequestApprovalsApi(api_client).get_access_request_approval_summary() - # Below is a request that includes all optional parameters - # results = AccessRequestApprovalsApi(api_client).get_access_request_approval_summary(owner_id, from_date) - print("The response of AccessRequestApprovalsApi->get_access_request_approval_summary:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccessRequestApprovalsApi->get_access_request_approval_summary: %s\n" % e) + owner_id = '2c91808568c529c60168cca6f90c1313' # str | The ID of the owner or approver identity of the approvals. If present, the value returns approval summary for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN user can also fetch all the approvals in the org, when owner-id is not used. * Non ORG_ADMIN users can only specify *me* or pass their own identity ID value. (optional) # str | The ID of the owner or approver identity of the approvals. If present, the value returns approval summary for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN user can also fetch all the approvals in the org, when owner-id is not used. * Non ORG_ADMIN users can only specify *me* or pass their own identity ID value. (optional) + from_date = 'from-date=2020-03-19T19:59:11Z' # str | This is the date and time the results will be shown from. It must be in a valid ISO-8601 format. (optional) # str | This is the date and time the results will be shown from. It must be in a valid ISO-8601 format. (optional) + try: + # Get Access Requests Approvals Number + + results = AccessRequestApprovalsApi(api_client).get_access_request_approval_summary() + # Below is a request that includes all optional parameters + # results = AccessRequestApprovalsApi(api_client).get_access_request_approval_summary(owner_id, from_date) + print("The response of AccessRequestApprovalsApi->get_access_request_approval_summary:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccessRequestApprovalsApi->get_access_request_approval_summary: %s\n" % e) - path: /access-request-approvals/completed method: GET xCodeSample: @@ -380,28 +370,27 @@ from sailpoint.v3.api.access_request_approvals_api import AccessRequestApprovalsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.completed_approval import CompletedApproval - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - owner_id = '2c91808568c529c60168cca6f90c1313' # str | If present, the value returns only completed approvals for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN users can also fetch all the approvals in the org, when owner-id is not used. * Non-ORG_ADMIN users can only specify *me* or pass their own identity ID value. (optional) # str | If present, the value returns only completed approvals for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN users can also fetch all the approvals in the org, when owner-id is not used. * Non-ORG_ADMIN users can only specify *me* or pass their own identity ID value. (optional) - 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 = 'id eq \"2c91808568c529c60168cca6f90c1313\"' # 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, ge, gt, le, lt, ne, isnull, sw* **requestedFor.id**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **modified**: *gt, lt, ge, le, eq, in, ne, 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, ge, gt, le, lt, ne, isnull, sw* **requestedFor.id**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **modified**: *gt, lt, ge, le, eq, in, ne, sw* (optional) - sorters = 'modified' # 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** (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** (optional) - try: - # Completed Access Request Approvals List - - results = AccessRequestApprovalsApi(api_client).list_completed_approvals() - # Below is a request that includes all optional parameters - # results = AccessRequestApprovalsApi(api_client).list_completed_approvals(owner_id, limit, offset, count, filters, sorters) - print("The response of AccessRequestApprovalsApi->list_completed_approvals:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccessRequestApprovalsApi->list_completed_approvals: %s\n" % e) + owner_id = '2c91808568c529c60168cca6f90c1313' # str | If present, the value returns only completed approvals for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN users can also fetch all the approvals in the org, when owner-id is not used. * Non-ORG_ADMIN users can only specify *me* or pass their own identity ID value. (optional) # str | If present, the value returns only completed approvals for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN users can also fetch all the approvals in the org, when owner-id is not used. * Non-ORG_ADMIN users can only specify *me* or pass their own identity ID value. (optional) + 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 = 'id eq \"2c91808568c529c60168cca6f90c1313\"' # 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, ge, gt, le, lt, ne, isnull, sw* **requestedFor.id**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **modified**: *gt, lt, ge, le, eq, in, ne, 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, ge, gt, le, lt, ne, isnull, sw* **requestedFor.id**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **modified**: *gt, lt, ge, le, eq, in, ne, sw* (optional) + sorters = 'modified' # 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** (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** (optional) + try: + # Completed Access Request Approvals List + + results = AccessRequestApprovalsApi(api_client).list_completed_approvals() + # Below is a request that includes all optional parameters + # results = AccessRequestApprovalsApi(api_client).list_completed_approvals(owner_id, limit, offset, count, filters, sorters) + print("The response of AccessRequestApprovalsApi->list_completed_approvals:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccessRequestApprovalsApi->list_completed_approvals: %s\n" % e) - path: /access-request-approvals/pending method: GET xCodeSample: @@ -411,28 +400,27 @@ from sailpoint.v3.api.access_request_approvals_api import AccessRequestApprovalsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.pending_approval import PendingApproval - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - owner_id = '2c91808568c529c60168cca6f90c1313' # str | If present, the value returns only pending approvals for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN users can also fetch all the approvals in the org, when owner-id is not used. * Non-ORG_ADMIN users can only specify *me* or pass their own identity ID value. (optional) # str | If present, the value returns only pending approvals for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN users can also fetch all the approvals in the org, when owner-id is not used. * Non-ORG_ADMIN users can only specify *me* or pass their own identity ID value. (optional) - 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 = 'id eq \"2c91808568c529c60168cca6f90c1313\"' # 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* **requestedFor.id**: *eq, in* **modified**: *gt, lt, ge, le, eq, in* **accessRequestId**: *eq, in* (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* **requestedFor.id**: *eq, in* **modified**: *gt, lt, ge, le, eq, in* **accessRequestId**: *eq, in* (optional) - sorters = 'modified' # 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** (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** (optional) - try: - # Pending Access Request Approvals List - - results = AccessRequestApprovalsApi(api_client).list_pending_approvals() - # Below is a request that includes all optional parameters - # results = AccessRequestApprovalsApi(api_client).list_pending_approvals(owner_id, limit, offset, count, filters, sorters) - print("The response of AccessRequestApprovalsApi->list_pending_approvals:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccessRequestApprovalsApi->list_pending_approvals: %s\n" % e) + owner_id = '2c91808568c529c60168cca6f90c1313' # str | If present, the value returns only pending approvals for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN users can also fetch all the approvals in the org, when owner-id is not used. * Non-ORG_ADMIN users can only specify *me* or pass their own identity ID value. (optional) # str | If present, the value returns only pending approvals for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN users can also fetch all the approvals in the org, when owner-id is not used. * Non-ORG_ADMIN users can only specify *me* or pass their own identity ID value. (optional) + 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 = 'id eq \"2c91808568c529c60168cca6f90c1313\"' # 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* **requestedFor.id**: *eq, in* **modified**: *gt, lt, ge, le, eq, in* **accessRequestId**: *eq, in* (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* **requestedFor.id**: *eq, in* **modified**: *gt, lt, ge, le, eq, in* **accessRequestId**: *eq, in* (optional) + sorters = 'modified' # 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** (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** (optional) + try: + # Pending Access Request Approvals List + + results = AccessRequestApprovalsApi(api_client).list_pending_approvals() + # Below is a request that includes all optional parameters + # results = AccessRequestApprovalsApi(api_client).list_pending_approvals(owner_id, limit, offset, count, filters, sorters) + print("The response of AccessRequestApprovalsApi->list_pending_approvals:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccessRequestApprovalsApi->list_pending_approvals: %s\n" % e) - path: /access-request-approvals/{approvalId}/reject method: POST xCodeSample: @@ -442,14 +430,13 @@ from sailpoint.v3.api.access_request_approvals_api import AccessRequestApprovalsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.comment_dto import CommentDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - approval_id = '2c91808b7294bea301729568c68c002e' # str | Approval ID. # str | Approval ID. - comment_dto = '''{ + approval_id = '2c91808b7294bea301729568c68c002e' # str | Approval ID. # str | Approval ID. + comment_dto = '''{ "created" : "2017-07-11T18:45:37.098Z", "author" : { "name" : "john.doe", @@ -458,16 +445,16 @@ }, "comment" : "This is a comment." }''' # CommentDto | Reviewer's comment. - try: - # Reject Access Request Approval - new_comment_dto = CommentDto.from_json(comment_dto) - results = AccessRequestApprovalsApi(api_client).reject_access_request(approval_id=approval_id, comment_dto=new_comment_dto) - # Below is a request that includes all optional parameters - # results = AccessRequestApprovalsApi(api_client).reject_access_request(approval_id, new_comment_dto) - print("The response of AccessRequestApprovalsApi->reject_access_request:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccessRequestApprovalsApi->reject_access_request: %s\n" % e) + try: + # Reject Access Request Approval + new_comment_dto = CommentDto.from_json(comment_dto) + results = AccessRequestApprovalsApi(api_client).reject_access_request(approval_id=approval_id, comment_dto=new_comment_dto) + # Below is a request that includes all optional parameters + # results = AccessRequestApprovalsApi(api_client).reject_access_request(approval_id, new_comment_dto) + print("The response of AccessRequestApprovalsApi->reject_access_request:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccessRequestApprovalsApi->reject_access_request: %s\n" % e) - path: /access-requests/cancel method: POST xCodeSample: @@ -477,26 +464,25 @@ from sailpoint.v3.api.access_requests_api import AccessRequestsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.cancel_access_request import CancelAccessRequest - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - cancel_access_request = '''{ + cancel_access_request = '''{ "accountActivityId" : "2c9180835d2e5168015d32f890ca1581", "comment" : "I requested this role by mistake." }''' # CancelAccessRequest | - try: - # Cancel Access Request - new_cancel_access_request = CancelAccessRequest.from_json(cancel_access_request) - results = AccessRequestsApi(api_client).cancel_access_request(cancel_access_request=new_cancel_access_request) - # Below is a request that includes all optional parameters - # results = AccessRequestsApi(api_client).cancel_access_request(new_cancel_access_request) - print("The response of AccessRequestsApi->cancel_access_request:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccessRequestsApi->cancel_access_request: %s\n" % e) + try: + # Cancel Access Request + new_cancel_access_request = CancelAccessRequest.from_json(cancel_access_request) + results = AccessRequestsApi(api_client).cancel_access_request(cancel_access_request=new_cancel_access_request) + # Below is a request that includes all optional parameters + # results = AccessRequestsApi(api_client).cancel_access_request(new_cancel_access_request) + print("The response of AccessRequestsApi->cancel_access_request:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccessRequestsApi->cancel_access_request: %s\n" % e) - path: /access-requests method: POST xCodeSample: @@ -507,13 +493,12 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.access_request import AccessRequest from sailpoint.v3.models.access_request_response import AccessRequestResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - access_request = '''{ + access_request = '''{ "requestedFor" : [ "2c918084660f45d6016617daa9210584", "2c918084660f45d6016617daa9210584" ], "clientMetadata" : { "requestedAppId" : "2c91808f7892918f0178b78da4a305a1", @@ -567,16 +552,16 @@ "type" : "ACCESS_PROFILE" } ] }''' # AccessRequest | - try: - # Submit Access Request - new_access_request = AccessRequest.from_json(access_request) - results = AccessRequestsApi(api_client).create_access_request(access_request=new_access_request) - # Below is a request that includes all optional parameters - # results = AccessRequestsApi(api_client).create_access_request(new_access_request) - print("The response of AccessRequestsApi->create_access_request:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccessRequestsApi->create_access_request: %s\n" % e) + try: + # Submit Access Request + new_access_request = AccessRequest.from_json(access_request) + results = AccessRequestsApi(api_client).create_access_request(access_request=new_access_request) + # Below is a request that includes all optional parameters + # results = AccessRequestsApi(api_client).create_access_request(new_access_request) + print("The response of AccessRequestsApi->create_access_request:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccessRequestsApi->create_access_request: %s\n" % e) - path: /access-request-config method: GET xCodeSample: @@ -586,22 +571,21 @@ from sailpoint.v3.api.access_requests_api import AccessRequestsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.access_request_config import AccessRequestConfig - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - try: - # Get Access Request Configuration - - results = AccessRequestsApi(api_client).get_access_request_config() - # Below is a request that includes all optional parameters - # results = AccessRequestsApi(api_client).get_access_request_config() - print("The response of AccessRequestsApi->get_access_request_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccessRequestsApi->get_access_request_config: %s\n" % e) + try: + # Get Access Request Configuration + + results = AccessRequestsApi(api_client).get_access_request_config() + # Below is a request that includes all optional parameters + # results = AccessRequestsApi(api_client).get_access_request_config() + print("The response of AccessRequestsApi->get_access_request_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccessRequestsApi->get_access_request_config: %s\n" % e) - path: /access-request-status method: GET xCodeSample: @@ -611,32 +595,31 @@ from sailpoint.v3.api.access_requests_api import AccessRequestsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.requested_item_status import RequestedItemStatus - from pprint import pprint - from sailpoint.configuration import Configuration - configuration = Configuration() - - - with ApiClient(configuration) as api_client: - requested_for = '2c9180877b2b6ea4017b2c545f971429' # str | Filter the results by the identity the requests were made for. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) # str | Filter the results by the identity the requests were made for. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) - requested_by = '2c9180877b2b6ea4017b2c545f971429' # str | Filter the results by the identity who made the requests. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) # str | Filter the results by the identity who made the requests. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) - regarding_identity = '2c9180877b2b6ea4017b2c545f971429' # str | Filter the results by the specified identity who is either the requester or target of the requests. *me* indicates the current user. Mutually exclusive with *requested-for* and *requested-by*. (optional) # str | Filter the results by the specified identity who is either the requester or target of the requests. *me* indicates the current user. Mutually exclusive with *requested-for* and *requested-by*. (optional) - assigned_to = '2c9180877b2b6ea4017b2c545f971429' # str | Filter the results by the specified identity who is the owner of the Identity Request Work Item. *me* indicates the current user. (optional) # str | Filter the results by the specified identity who is the owner of the Identity Request Work Item. *me* indicates the current user. (optional) - count = False # bool | If this is true, the *X-Total-Count* response header populates with the number of results that would be returned if limit and offset were ignored. (optional) (default to False) # bool | If this is true, the *X-Total-Count* response header populates with the number of results that would be returned if limit and offset were ignored. (optional) (default to False) - limit = 250 # int | Max number of results to return. (optional) (default to 250) # int | Max number of results to return. (optional) (default to 250) - offset = 10 # int | Offset into the full result set. Usually specified with *limit* to paginate through the results. Defaults to 0 if not specified. (optional) # int | Offset into the full result set. Usually specified with *limit* to paginate through the results. Defaults to 0 if not specified. (optional) - filters = 'accountActivityItemId eq \"2c918086771c86df0177401efcdf54c0\"' # 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: **accessRequestId**: *in* **accountActivityItemId**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **created**: *eq, in, ge, gt, le, lt, ne, isnull, 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: **accessRequestId**: *in* **accountActivityItemId**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **created**: *eq, in, ge, gt, le, lt, ne, isnull, sw* (optional) - sorters = 'created' # 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, accountActivityItemId, 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, accountActivityItemId, name** (optional) - request_state = 'request-state=EXECUTING' # str | Filter the results by the state of the request. The only valid value is *EXECUTING*. (optional) # str | Filter the results by the state of the request. The only valid value is *EXECUTING*. (optional) - try: - # Access Request Status - - results = AccessRequestsApi(api_client).list_access_request_status() - # Below is a request that includes all optional parameters - # results = AccessRequestsApi(api_client).list_access_request_status(requested_for, requested_by, regarding_identity, assigned_to, count, limit, offset, filters, sorters, request_state) - print("The response of AccessRequestsApi->list_access_request_status:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccessRequestsApi->list_access_request_status: %s\n" % e) + from sailpoint.configuration import Configuration + configuration = Configuration() + + + with ApiClient(configuration) as api_client: + requested_for = '2c9180877b2b6ea4017b2c545f971429' # str | Filter the results by the identity the requests were made for. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) # str | Filter the results by the identity the requests were made for. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) + requested_by = '2c9180877b2b6ea4017b2c545f971429' # str | Filter the results by the identity who made the requests. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) # str | Filter the results by the identity who made the requests. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) + regarding_identity = '2c9180877b2b6ea4017b2c545f971429' # str | Filter the results by the specified identity who is either the requester or target of the requests. *me* indicates the current user. Mutually exclusive with *requested-for* and *requested-by*. (optional) # str | Filter the results by the specified identity who is either the requester or target of the requests. *me* indicates the current user. Mutually exclusive with *requested-for* and *requested-by*. (optional) + assigned_to = '2c9180877b2b6ea4017b2c545f971429' # str | Filter the results by the specified identity who is the owner of the Identity Request Work Item. *me* indicates the current user. (optional) # str | Filter the results by the specified identity who is the owner of the Identity Request Work Item. *me* indicates the current user. (optional) + count = False # bool | If this is true, the *X-Total-Count* response header populates with the number of results that would be returned if limit and offset were ignored. (optional) (default to False) # bool | If this is true, the *X-Total-Count* response header populates with the number of results that would be returned if limit and offset were ignored. (optional) (default to False) + limit = 250 # int | Max number of results to return. (optional) (default to 250) # int | Max number of results to return. (optional) (default to 250) + offset = 10 # int | Offset into the full result set. Usually specified with *limit* to paginate through the results. Defaults to 0 if not specified. (optional) # int | Offset into the full result set. Usually specified with *limit* to paginate through the results. Defaults to 0 if not specified. (optional) + filters = 'accountActivityItemId eq \"2c918086771c86df0177401efcdf54c0\"' # 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: **accessRequestId**: *in* **accountActivityItemId**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **created**: *eq, in, ge, gt, le, lt, ne, isnull, 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: **accessRequestId**: *in* **accountActivityItemId**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **created**: *eq, in, ge, gt, le, lt, ne, isnull, sw* (optional) + sorters = 'created' # 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, accountActivityItemId, 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, accountActivityItemId, name** (optional) + request_state = 'request-state=EXECUTING' # str | Filter the results by the state of the request. The only valid value is *EXECUTING*. (optional) # str | Filter the results by the state of the request. The only valid value is *EXECUTING*. (optional) + try: + # Access Request Status + + results = AccessRequestsApi(api_client).list_access_request_status() + # Below is a request that includes all optional parameters + # results = AccessRequestsApi(api_client).list_access_request_status(requested_for, requested_by, regarding_identity, assigned_to, count, limit, offset, filters, sorters, request_state) + print("The response of AccessRequestsApi->list_access_request_status:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccessRequestsApi->list_access_request_status: %s\n" % e) - path: /access-request-config method: PUT xCodeSample: @@ -646,13 +629,12 @@ from sailpoint.v3.api.access_requests_api import AccessRequestsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.access_request_config import AccessRequestConfig - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - access_request_config = '''{ + access_request_config = '''{ "requestOnBehalfOfConfig" : { "allowRequestOnBehalfOfEmployeeByManager" : true, "allowRequestOnBehalfOfAnyoneByAnyone" : true @@ -678,16 +660,16 @@ "reauthorizationEnabled" : true, "approvalsMustBeExternal" : true }''' # AccessRequestConfig | - try: - # Update Access Request Configuration - new_access_request_config = AccessRequestConfig.from_json(access_request_config) - results = AccessRequestsApi(api_client).set_access_request_config(access_request_config=new_access_request_config) - # Below is a request that includes all optional parameters - # results = AccessRequestsApi(api_client).set_access_request_config(new_access_request_config) - print("The response of AccessRequestsApi->set_access_request_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccessRequestsApi->set_access_request_config: %s\n" % e) + try: + # Update Access Request Configuration + new_access_request_config = AccessRequestConfig.from_json(access_request_config) + results = AccessRequestsApi(api_client).set_access_request_config(access_request_config=new_access_request_config) + # Below is a request that includes all optional parameters + # results = AccessRequestsApi(api_client).set_access_request_config(new_access_request_config) + print("The response of AccessRequestsApi->set_access_request_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccessRequestsApi->set_access_request_config: %s\n" % e) - path: /account-activities/{id} method: GET xCodeSample: @@ -697,23 +679,22 @@ from sailpoint.v3.api.account_activities_api import AccountActivitiesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.account_activity import AccountActivity - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The account activity id # str | The account activity id - try: - # Get an Account Activity - - results = AccountActivitiesApi(api_client).get_account_activity(id=id) - # Below is a request that includes all optional parameters - # results = AccountActivitiesApi(api_client).get_account_activity(id) - print("The response of AccountActivitiesApi->get_account_activity:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccountActivitiesApi->get_account_activity: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The account activity id # str | The account activity id + try: + # Get an Account Activity + + results = AccountActivitiesApi(api_client).get_account_activity(id=id) + # Below is a request that includes all optional parameters + # results = AccountActivitiesApi(api_client).get_account_activity(id) + print("The response of AccountActivitiesApi->get_account_activity:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccountActivitiesApi->get_account_activity: %s\n" % e) - path: /account-activities method: GET xCodeSample: @@ -723,30 +704,29 @@ from sailpoint.v3.api.account_activities_api import AccountActivitiesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.account_activity import AccountActivity - from pprint import pprint - from sailpoint.configuration import Configuration - configuration = Configuration() - - - with ApiClient(configuration) as api_client: - requested_for = '2c91808568c529c60168cca6f90c1313' # str | The identity that the activity was requested for. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) # str | The identity that the activity was requested for. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) - requested_by = '2c91808568c529c60168cca6f90c1313' # str | The identity that requested the activity. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) # str | The identity that requested the activity. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) - regarding_identity = '2c91808568c529c60168cca6f90c1313' # str | The specified identity will be either the requester or target of the account activity. *me* indicates the current user. Mutually exclusive with *requested-for* and *requested-by*. (optional) # str | The specified identity will be either the requester or target of the account activity. *me* indicates the current user. Mutually exclusive with *requested-for* and *requested-by*. (optional) - 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 = 'type eq \"Identity Refresh\"' # 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: **type**: *eq, in, ge, le, lt, ne, isnull, sw* **created**: *gt, lt, ge, le, eq, in, ne, isnull, sw* **modified**: *gt, lt, ge, le, eq, in, ne, isnull, 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: **type**: *eq, in, ge, le, lt, ne, isnull, sw* **created**: *gt, lt, ge, le, eq, in, ne, isnull, sw* **modified**: *gt, lt, ge, le, eq, in, ne, isnull, sw* (optional) - sorters = 'created' # 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: **type, created, modified** (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: **type, created, modified** (optional) - try: - # List Account Activities - - results = AccountActivitiesApi(api_client).list_account_activities() - # Below is a request that includes all optional parameters - # results = AccountActivitiesApi(api_client).list_account_activities(requested_for, requested_by, regarding_identity, limit, offset, count, filters, sorters) - print("The response of AccountActivitiesApi->list_account_activities:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccountActivitiesApi->list_account_activities: %s\n" % e) + from sailpoint.configuration import Configuration + configuration = Configuration() + + + with ApiClient(configuration) as api_client: + requested_for = '2c91808568c529c60168cca6f90c1313' # str | The identity that the activity was requested for. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) # str | The identity that the activity was requested for. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) + requested_by = '2c91808568c529c60168cca6f90c1313' # str | The identity that requested the activity. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) # str | The identity that requested the activity. *me* indicates the current user. Mutually exclusive with *regarding-identity*. (optional) + regarding_identity = '2c91808568c529c60168cca6f90c1313' # str | The specified identity will be either the requester or target of the account activity. *me* indicates the current user. Mutually exclusive with *requested-for* and *requested-by*. (optional) # str | The specified identity will be either the requester or target of the account activity. *me* indicates the current user. Mutually exclusive with *requested-for* and *requested-by*. (optional) + 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 = 'type eq \"Identity Refresh\"' # 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: **type**: *eq, in, ge, le, lt, ne, isnull, sw* **created**: *gt, lt, ge, le, eq, in, ne, isnull, sw* **modified**: *gt, lt, ge, le, eq, in, ne, isnull, 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: **type**: *eq, in, ge, le, lt, ne, isnull, sw* **created**: *gt, lt, ge, le, eq, in, ne, isnull, sw* **modified**: *gt, lt, ge, le, eq, in, ne, isnull, sw* (optional) + sorters = 'created' # 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: **type, created, modified** (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: **type, created, modified** (optional) + try: + # List Account Activities + + results = AccountActivitiesApi(api_client).list_account_activities() + # Below is a request that includes all optional parameters + # results = AccountActivitiesApi(api_client).list_account_activities(requested_for, requested_by, regarding_identity, limit, offset, count, filters, sorters) + print("The response of AccountActivitiesApi->list_account_activities:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccountActivitiesApi->list_account_activities: %s\n" % e) - path: /accounts method: POST xCodeSample: @@ -757,13 +737,12 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.account_attributes_create import AccountAttributesCreate from sailpoint.v3.models.accounts_async_result import AccountsAsyncResult - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - account_attributes_create = '''{ + account_attributes_create = '''{ "attributes" : { "sourceId" : "34bfcbe116c9407464af37acbaf7a4dc", "city" : "Austin", @@ -773,16 +752,16 @@ "mail" : "john.doe@sailpoint.com" } }''' # AccountAttributesCreate | - try: - # Create Account - new_account_attributes_create = AccountAttributesCreate.from_json(account_attributes_create) - results = AccountsApi(api_client).create_account(account_attributes_create=new_account_attributes_create) - # Below is a request that includes all optional parameters - # results = AccountsApi(api_client).create_account(new_account_attributes_create) - print("The response of AccountsApi->create_account:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccountsApi->create_account: %s\n" % e) + try: + # Create Account + new_account_attributes_create = AccountAttributesCreate.from_json(account_attributes_create) + results = AccountsApi(api_client).create_account(account_attributes_create=new_account_attributes_create) + # Below is a request that includes all optional parameters + # results = AccountsApi(api_client).create_account(new_account_attributes_create) + print("The response of AccountsApi->create_account:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccountsApi->create_account: %s\n" % e) - path: /accounts/{id} method: DELETE xCodeSample: @@ -792,23 +771,22 @@ from sailpoint.v3.api.accounts_api import AccountsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.accounts_async_result import AccountsAsyncResult - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | Account ID. # str | Account ID. - try: - # Delete Account - - results = AccountsApi(api_client).delete_account(id=id) - # Below is a request that includes all optional parameters - # results = AccountsApi(api_client).delete_account(id) - print("The response of AccountsApi->delete_account:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccountsApi->delete_account: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | Account ID. # str | Account ID. + try: + # Delete Account + + results = AccountsApi(api_client).delete_account(id=id) + # Below is a request that includes all optional parameters + # results = AccountsApi(api_client).delete_account(id) + print("The response of AccountsApi->delete_account:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccountsApi->delete_account: %s\n" % e) - path: /accounts/{id}/disable method: POST xCodeSample: @@ -819,27 +797,26 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.account_toggle_request import AccountToggleRequest from sailpoint.v3.models.accounts_async_result import AccountsAsyncResult - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The account id # str | The account id - account_toggle_request = '''{ + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The account id # str | The account id + account_toggle_request = '''{ "forceProvisioning" : false, "externalVerificationId" : "3f9180835d2e5168015d32f890ca1581" }''' # AccountToggleRequest | - try: - # Disable Account - new_account_toggle_request = AccountToggleRequest.from_json(account_toggle_request) - results = AccountsApi(api_client).disable_account(id=id, account_toggle_request=new_account_toggle_request) - # Below is a request that includes all optional parameters - # results = AccountsApi(api_client).disable_account(id, new_account_toggle_request) - print("The response of AccountsApi->disable_account:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccountsApi->disable_account: %s\n" % e) + try: + # Disable Account + new_account_toggle_request = AccountToggleRequest.from_json(account_toggle_request) + results = AccountsApi(api_client).disable_account(id=id, account_toggle_request=new_account_toggle_request) + # Below is a request that includes all optional parameters + # results = AccountsApi(api_client).disable_account(id, new_account_toggle_request) + print("The response of AccountsApi->disable_account:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccountsApi->disable_account: %s\n" % e) - path: /accounts/{id}/enable method: POST xCodeSample: @@ -850,27 +827,26 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.account_toggle_request import AccountToggleRequest from sailpoint.v3.models.accounts_async_result import AccountsAsyncResult - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The account id # str | The account id - account_toggle_request = '''{ + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The account id # str | The account id + account_toggle_request = '''{ "forceProvisioning" : false, "externalVerificationId" : "3f9180835d2e5168015d32f890ca1581" }''' # AccountToggleRequest | - try: - # Enable Account - new_account_toggle_request = AccountToggleRequest.from_json(account_toggle_request) - results = AccountsApi(api_client).enable_account(id=id, account_toggle_request=new_account_toggle_request) - # Below is a request that includes all optional parameters - # results = AccountsApi(api_client).enable_account(id, new_account_toggle_request) - print("The response of AccountsApi->enable_account:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccountsApi->enable_account: %s\n" % e) + try: + # Enable Account + new_account_toggle_request = AccountToggleRequest.from_json(account_toggle_request) + results = AccountsApi(api_client).enable_account(id=id, account_toggle_request=new_account_toggle_request) + # Below is a request that includes all optional parameters + # results = AccountsApi(api_client).enable_account(id, new_account_toggle_request) + print("The response of AccountsApi->enable_account:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccountsApi->enable_account: %s\n" % e) - path: /accounts/{id} method: GET xCodeSample: @@ -880,23 +856,22 @@ from sailpoint.v3.api.accounts_api import AccountsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.account import Account - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | Account ID. # str | Account ID. - try: - # Account Details - - results = AccountsApi(api_client).get_account(id=id) - # Below is a request that includes all optional parameters - # results = AccountsApi(api_client).get_account(id) - print("The response of AccountsApi->get_account:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccountsApi->get_account: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | Account ID. # str | Account ID. + try: + # Account Details + + results = AccountsApi(api_client).get_account(id=id) + # Below is a request that includes all optional parameters + # results = AccountsApi(api_client).get_account(id) + print("The response of AccountsApi->get_account:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccountsApi->get_account: %s\n" % e) - path: /accounts/{id}/entitlements method: GET xCodeSample: @@ -906,26 +881,25 @@ from sailpoint.v3.api.accounts_api import AccountsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.entitlement import Entitlement - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The account id # str | The account id - 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) - try: - # Account Entitlements - - results = AccountsApi(api_client).get_account_entitlements(id=id) - # Below is a request that includes all optional parameters - # results = AccountsApi(api_client).get_account_entitlements(id, limit, offset, count) - print("The response of AccountsApi->get_account_entitlements:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccountsApi->get_account_entitlements: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The account id # str | The account id + 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) + try: + # Account Entitlements + + results = AccountsApi(api_client).get_account_entitlements(id=id) + # Below is a request that includes all optional parameters + # results = AccountsApi(api_client).get_account_entitlements(id, limit, offset, count) + print("The response of AccountsApi->get_account_entitlements:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccountsApi->get_account_entitlements: %s\n" % e) - path: /accounts method: GET xCodeSample: @@ -935,28 +909,27 @@ from sailpoint.v3.api.accounts_api import AccountsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.account import Account - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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) - detail_level = 'FULL' # str | This value determines whether the API provides `SLIM` or increased level of detail (`FULL`) for each account in the returned list. `FULL` is the default behavior. (optional) # str | This value determines whether the API provides `SLIM` or increased level of detail (`FULL`) for each account in the returned list. `FULL` is the default behavior. (optional) - filters = 'identityId eq \"2c9180858082150f0180893dbaf44201\"' # 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* **identityId**: *eq, in, sw* **name**: *eq, in, sw* **nativeIdentity**: *eq, in, sw* **hasEntitlements**: *eq* **sourceId**: *eq, in, sw* **uncorrelated**: *eq* **entitlements**: *eq* **origin**: *eq, in* **manuallyCorrelated**: *eq* **identity.name**: *eq, in, sw* **identity.correlated**: *eq* **identity.identityState**: *eq, in* **source.displayableName**: *eq, in* **source.authoritative**: *eq* **source.connectionType**: *eq, in* **recommendation.method**: *eq, in, isnull* **created**: *eq, ge, gt, le, lt* **modified**: *eq, ge, gt, le, lt* (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* **identityId**: *eq, in, sw* **name**: *eq, in, sw* **nativeIdentity**: *eq, in, sw* **hasEntitlements**: *eq* **sourceId**: *eq, in, sw* **uncorrelated**: *eq* **entitlements**: *eq* **origin**: *eq, in* **manuallyCorrelated**: *eq* **identity.name**: *eq, in, sw* **identity.correlated**: *eq* **identity.identityState**: *eq, in* **source.displayableName**: *eq, in* **source.authoritative**: *eq* **source.connectionType**: *eq, in* **recommendation.method**: *eq, in, isnull* **created**: *eq, ge, gt, le, lt* **modified**: *eq, ge, gt, le, lt* (optional) - sorters = 'id,name' # 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: **id, name, created, modified, sourceId, identityId, nativeIdentity, uuid, manuallyCorrelated, entitlements, origin, identity.name, identity.identityState, identity.correlated, source.displayableName, source.authoritative, source.connectionType** (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: **id, name, created, modified, sourceId, identityId, nativeIdentity, uuid, manuallyCorrelated, entitlements, origin, identity.name, identity.identityState, identity.correlated, source.displayableName, source.authoritative, source.connectionType** (optional) - try: - # Accounts List - - results = AccountsApi(api_client).list_accounts() - # Below is a request that includes all optional parameters - # results = AccountsApi(api_client).list_accounts(limit, offset, count, detail_level, filters, sorters) - print("The response of AccountsApi->list_accounts:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccountsApi->list_accounts: %s\n" % e) + 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) + detail_level = 'FULL' # str | This value determines whether the API provides `SLIM` or increased level of detail (`FULL`) for each account in the returned list. `FULL` is the default behavior. (optional) # str | This value determines whether the API provides `SLIM` or increased level of detail (`FULL`) for each account in the returned list. `FULL` is the default behavior. (optional) + filters = 'identityId eq \"2c9180858082150f0180893dbaf44201\"' # 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* **identityId**: *eq, in, sw* **name**: *eq, in, sw* **nativeIdentity**: *eq, in, sw* **hasEntitlements**: *eq* **sourceId**: *eq, in, sw* **uncorrelated**: *eq* **entitlements**: *eq* **origin**: *eq, in* **manuallyCorrelated**: *eq* **identity.name**: *eq, in, sw* **identity.correlated**: *eq* **identity.identityState**: *eq, in* **source.displayableName**: *eq, in* **source.authoritative**: *eq* **source.connectionType**: *eq, in* **recommendation.method**: *eq, in, isnull* **created**: *eq, ge, gt, le, lt* **modified**: *eq, ge, gt, le, lt* (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* **identityId**: *eq, in, sw* **name**: *eq, in, sw* **nativeIdentity**: *eq, in, sw* **hasEntitlements**: *eq* **sourceId**: *eq, in, sw* **uncorrelated**: *eq* **entitlements**: *eq* **origin**: *eq, in* **manuallyCorrelated**: *eq* **identity.name**: *eq, in, sw* **identity.correlated**: *eq* **identity.identityState**: *eq, in* **source.displayableName**: *eq, in* **source.authoritative**: *eq* **source.connectionType**: *eq, in* **recommendation.method**: *eq, in, isnull* **created**: *eq, ge, gt, le, lt* **modified**: *eq, ge, gt, le, lt* (optional) + sorters = 'id,name' # 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: **id, name, created, modified, sourceId, identityId, nativeIdentity, uuid, manuallyCorrelated, entitlements, origin, identity.name, identity.identityState, identity.correlated, source.displayableName, source.authoritative, source.connectionType** (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: **id, name, created, modified, sourceId, identityId, nativeIdentity, uuid, manuallyCorrelated, entitlements, origin, identity.name, identity.identityState, identity.correlated, source.displayableName, source.authoritative, source.connectionType** (optional) + try: + # Accounts List + + results = AccountsApi(api_client).list_accounts() + # Below is a request that includes all optional parameters + # results = AccountsApi(api_client).list_accounts(limit, offset, count, detail_level, filters, sorters) + print("The response of AccountsApi->list_accounts:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccountsApi->list_accounts: %s\n" % e) - path: /accounts/{id} method: PUT xCodeSample: @@ -967,14 +940,13 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.account_attributes import AccountAttributes from sailpoint.v3.models.accounts_async_result import AccountsAsyncResult - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | Account ID. # str | Account ID. - account_attributes = '''{ + id = 'ef38f94347e94562b5bb8424a56397d8' # str | Account ID. # str | Account ID. + account_attributes = '''{ "attributes" : { "city" : "Austin", "displayName" : "John Doe", @@ -983,16 +955,16 @@ "mail" : "john.doe@sailpoint.com" } }''' # AccountAttributes | - try: - # Update Account - new_account_attributes = AccountAttributes.from_json(account_attributes) - results = AccountsApi(api_client).put_account(id=id, account_attributes=new_account_attributes) - # Below is a request that includes all optional parameters - # results = AccountsApi(api_client).put_account(id, new_account_attributes) - print("The response of AccountsApi->put_account:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccountsApi->put_account: %s\n" % e) + try: + # Update Account + new_account_attributes = AccountAttributes.from_json(account_attributes) + results = AccountsApi(api_client).put_account(id=id, account_attributes=new_account_attributes) + # Below is a request that includes all optional parameters + # results = AccountsApi(api_client).put_account(id, new_account_attributes) + print("The response of AccountsApi->put_account:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccountsApi->put_account: %s\n" % e) - path: /accounts/{id}/reload method: POST xCodeSample: @@ -1002,23 +974,22 @@ from sailpoint.v3.api.accounts_api import AccountsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.accounts_async_result import AccountsAsyncResult - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The account id # str | The account id - try: - # Reload Account - - results = AccountsApi(api_client).submit_reload_account(id=id) - # Below is a request that includes all optional parameters - # results = AccountsApi(api_client).submit_reload_account(id) - print("The response of AccountsApi->submit_reload_account:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccountsApi->submit_reload_account: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The account id # str | The account id + try: + # Reload Account + + results = AccountsApi(api_client).submit_reload_account(id=id) + # Below is a request that includes all optional parameters + # results = AccountsApi(api_client).submit_reload_account(id) + print("The response of AccountsApi->submit_reload_account:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccountsApi->submit_reload_account: %s\n" % e) - path: /accounts/{id}/unlock method: POST xCodeSample: @@ -1029,28 +1000,27 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.account_unlock_request import AccountUnlockRequest from sailpoint.v3.models.accounts_async_result import AccountsAsyncResult - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The account ID. # str | The account ID. - account_unlock_request = '''{ + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The account ID. # str | The account ID. + account_unlock_request = '''{ "forceProvisioning" : false, "externalVerificationId" : "3f9180835d2e5168015d32f890ca1581", "unlockIDNAccount" : false }''' # AccountUnlockRequest | - try: - # Unlock Account - new_account_unlock_request = AccountUnlockRequest.from_json(account_unlock_request) - results = AccountsApi(api_client).unlock_account(id=id, account_unlock_request=new_account_unlock_request) - # Below is a request that includes all optional parameters - # results = AccountsApi(api_client).unlock_account(id, new_account_unlock_request) - print("The response of AccountsApi->unlock_account:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccountsApi->unlock_account: %s\n" % e) + try: + # Unlock Account + new_account_unlock_request = AccountUnlockRequest.from_json(account_unlock_request) + results = AccountsApi(api_client).unlock_account(id=id, account_unlock_request=new_account_unlock_request) + # Below is a request that includes all optional parameters + # results = AccountsApi(api_client).unlock_account(id, new_account_unlock_request) + print("The response of AccountsApi->unlock_account:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccountsApi->unlock_account: %s\n" % e) - path: /accounts/{id} method: PATCH xCodeSample: @@ -1059,24 +1029,23 @@ source: | from sailpoint.v3.api.accounts_api import AccountsApi from sailpoint.v3.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | Account ID. # str | Account ID. - request_body = '''[{op=remove, path=/identityId}]''' # List[object] | A list of account update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. - try: - # Update Account - new_request_body = RequestBody.from_json(request_body) - results = AccountsApi(api_client).update_account(id=id, request_body=new_request_body) - # Below is a request that includes all optional parameters - # results = AccountsApi(api_client).update_account(id, new_request_body) - print("The response of AccountsApi->update_account:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccountsApi->update_account: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | Account ID. # str | Account ID. + request_body = '''[{op=remove, path=/identityId}]''' # List[object] | A list of account update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. + try: + # Update Account + new_request_body = RequestBody.from_json(request_body) + results = AccountsApi(api_client).update_account(id=id, request_body=new_request_body) + # Below is a request that includes all optional parameters + # results = AccountsApi(api_client).update_account(id, new_request_body) + print("The response of AccountsApi->update_account:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccountsApi->update_account: %s\n" % e) - path: /account-usages/{accountId}/summaries method: GET xCodeSample: @@ -1086,27 +1055,26 @@ from sailpoint.v3.api.account_usages_api import AccountUsagesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.account_usage import AccountUsage - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - account_id = 'ef38f94347e94562b5bb8424a56397d8' # str | ID of IDN account # str | ID of IDN account - 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) - sorters = '-date' # 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: **date** (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: **date** (optional) - try: - # Returns account usage insights - - results = AccountUsagesApi(api_client).get_usages_by_account_id(account_id=account_id) - # Below is a request that includes all optional parameters - # results = AccountUsagesApi(api_client).get_usages_by_account_id(account_id, limit, offset, count, sorters) - print("The response of AccountUsagesApi->get_usages_by_account_id:\n") - pprint(results) - except Exception as e: - print("Exception when calling AccountUsagesApi->get_usages_by_account_id: %s\n" % e) + account_id = 'ef38f94347e94562b5bb8424a56397d8' # str | ID of IDN account # str | ID of IDN account + 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) + sorters = '-date' # 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: **date** (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: **date** (optional) + try: + # Returns account usage insights + + results = AccountUsagesApi(api_client).get_usages_by_account_id(account_id=account_id) + # Below is a request that includes all optional parameters + # results = AccountUsagesApi(api_client).get_usages_by_account_id(account_id, limit, offset, count, sorters) + print("The response of AccountUsagesApi->get_usages_by_account_id:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AccountUsagesApi->get_usages_by_account_id: %s\n" % e) - path: /discovered-applications method: GET xCodeSample: @@ -1116,27 +1084,26 @@ from sailpoint.v3.api.application_discovery_api import ApplicationDiscoveryApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.get_discovered_applications200_response_inner import GetDiscoveredApplications200ResponseInner - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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) - detail = 'FULL' # str | Determines whether slim, or increased level of detail is provided for each discovered application in the returned list. SLIM is the default behavior. (optional) # str | Determines whether slim, or increased level of detail is provided for each discovered application in the returned list. SLIM is the default behavior. (optional) - filter = 'name eq \"Okta\" and description co \"Okta\" and discoverySource in (\"csv\", \"Okta Saas\")' # 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: **name**: *eq, sw, co* **description**: *eq, sw, co* **createdAtStart**: *eq, le, ge* **createdAtEnd**: *eq, le, ge* **discoveredAtStart**: *eq, le, ge* **discoveredAtEnd**: *eq, le, ge* **discoverySource**: *eq, in* (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: **name**: *eq, sw, co* **description**: *eq, sw, co* **createdAtStart**: *eq, le, ge* **createdAtEnd**: *eq, le, ge* **discoveredAtStart**: *eq, le, ge* **discoveredAtEnd**: *eq, le, ge* **discoverySource**: *eq, in* (optional) - sorters = 'name' # 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: **name, description, discoveredAt, discoverySource** (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: **name, description, discoveredAt, discoverySource** (optional) - try: - # Get Discovered Applications for Tenant - - results = ApplicationDiscoveryApi(api_client).get_discovered_applications() - # Below is a request that includes all optional parameters - # results = ApplicationDiscoveryApi(api_client).get_discovered_applications(limit, offset, detail, filter, sorters) - print("The response of ApplicationDiscoveryApi->get_discovered_applications:\n") - pprint(results) - except Exception as e: - print("Exception when calling ApplicationDiscoveryApi->get_discovered_applications: %s\n" % e) + 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) + detail = 'FULL' # str | Determines whether slim, or increased level of detail is provided for each discovered application in the returned list. SLIM is the default behavior. (optional) # str | Determines whether slim, or increased level of detail is provided for each discovered application in the returned list. SLIM is the default behavior. (optional) + filter = 'name eq \"Okta\" and description co \"Okta\" and discoverySource in (\"csv\", \"Okta Saas\")' # 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: **name**: *eq, sw, co* **description**: *eq, sw, co* **createdAtStart**: *eq, le, ge* **createdAtEnd**: *eq, le, ge* **discoveredAtStart**: *eq, le, ge* **discoveredAtEnd**: *eq, le, ge* **discoverySource**: *eq, in* (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: **name**: *eq, sw, co* **description**: *eq, sw, co* **createdAtStart**: *eq, le, ge* **createdAtEnd**: *eq, le, ge* **discoveredAtStart**: *eq, le, ge* **discoveredAtEnd**: *eq, le, ge* **discoverySource**: *eq, in* (optional) + sorters = 'name' # 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: **name, description, discoveredAt, discoverySource** (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: **name, description, discoveredAt, discoverySource** (optional) + try: + # Get Discovered Applications for Tenant + + results = ApplicationDiscoveryApi(api_client).get_discovered_applications() + # Below is a request that includes all optional parameters + # results = ApplicationDiscoveryApi(api_client).get_discovered_applications(limit, offset, detail, filter, sorters) + print("The response of ApplicationDiscoveryApi->get_discovered_applications:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ApplicationDiscoveryApi->get_discovered_applications: %s\n" % e) - path: /manual-discover-applications-template method: GET xCodeSample: @@ -1146,22 +1113,21 @@ from sailpoint.v3.api.application_discovery_api import ApplicationDiscoveryApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.manual_discover_applications_template import ManualDiscoverApplicationsTemplate - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - try: - # Download CSV Template for Discovery - - results = ApplicationDiscoveryApi(api_client).get_manual_discover_applications_csv_template() - # Below is a request that includes all optional parameters - # results = ApplicationDiscoveryApi(api_client).get_manual_discover_applications_csv_template() - print("The response of ApplicationDiscoveryApi->get_manual_discover_applications_csv_template:\n") - pprint(results) - except Exception as e: - print("Exception when calling ApplicationDiscoveryApi->get_manual_discover_applications_csv_template: %s\n" % e) + try: + # Download CSV Template for Discovery + + results = ApplicationDiscoveryApi(api_client).get_manual_discover_applications_csv_template() + # Below is a request that includes all optional parameters + # results = ApplicationDiscoveryApi(api_client).get_manual_discover_applications_csv_template() + print("The response of ApplicationDiscoveryApi->get_manual_discover_applications_csv_template:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ApplicationDiscoveryApi->get_manual_discover_applications_csv_template: %s\n" % e) - path: /manual-discover-applications method: POST xCodeSample: @@ -1170,21 +1136,20 @@ source: | from sailpoint.v3.api.application_discovery_api import ApplicationDiscoveryApi from sailpoint.v3.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - file = None # bytearray | The CSV file to upload containing `application_name` and `description` columns. Each row represents an application to be discovered. # bytearray | The CSV file to upload containing `application_name` and `description` columns. Each row represents an application to be discovered. - try: - # Upload CSV to Discover Applications - - ApplicationDiscoveryApi(api_client).send_manual_discover_applications_csv_template(file=file) - # Below is a request that includes all optional parameters - # ApplicationDiscoveryApi(api_client).send_manual_discover_applications_csv_template(file) - except Exception as e: - print("Exception when calling ApplicationDiscoveryApi->send_manual_discover_applications_csv_template: %s\n" % e) + file = None # bytearray | The CSV file to upload containing `application_name` and `description` columns. Each row represents an application to be discovered. # bytearray | The CSV file to upload containing `application_name` and `description` columns. Each row represents an application to be discovered. + try: + # Upload CSV to Discover Applications + + ApplicationDiscoveryApi(api_client).send_manual_discover_applications_csv_template(file=file) + # Below is a request that includes all optional parameters + # ApplicationDiscoveryApi(api_client).send_manual_discover_applications_csv_template(file) + except Exception as e: + print("Exception when calling ApplicationDiscoveryApi->send_manual_discover_applications_csv_template: %s\n" % e) - path: /auth-users/{id} method: GET xCodeSample: @@ -1194,23 +1159,22 @@ from sailpoint.v3.api.auth_users_api import AuthUsersApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.auth_user import AuthUser - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | Identity ID # str | Identity ID - try: - # Auth User Details - - results = AuthUsersApi(api_client).get_auth_user(id=id) - # Below is a request that includes all optional parameters - # results = AuthUsersApi(api_client).get_auth_user(id) - print("The response of AuthUsersApi->get_auth_user:\n") - pprint(results) - except Exception as e: - print("Exception when calling AuthUsersApi->get_auth_user: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | Identity ID # str | Identity ID + try: + # Auth User Details + + results = AuthUsersApi(api_client).get_auth_user(id=id) + # Below is a request that includes all optional parameters + # results = AuthUsersApi(api_client).get_auth_user(id) + print("The response of AuthUsersApi->get_auth_user:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AuthUsersApi->get_auth_user: %s\n" % e) - path: /auth-users/{id} method: PATCH xCodeSample: @@ -1221,24 +1185,23 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.auth_user import AuthUser from sailpoint.v3.models.json_patch_operation import JsonPatchOperation - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | Identity ID # str | Identity ID - json_patch_operation = '''[{op=replace, path=/capabilities, value=[ORG_ADMIN]}]''' # List[JsonPatchOperation] | A list of auth user update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. - try: - # Auth User Update - new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) - results = AuthUsersApi(api_client).patch_auth_user(id=id, json_patch_operation=new_json_patch_operation) - # Below is a request that includes all optional parameters - # results = AuthUsersApi(api_client).patch_auth_user(id, new_json_patch_operation) - print("The response of AuthUsersApi->patch_auth_user:\n") - pprint(results) - except Exception as e: - print("Exception when calling AuthUsersApi->patch_auth_user: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | Identity ID # str | Identity ID + json_patch_operation = '''[{op=replace, path=/capabilities, value=[ORG_ADMIN]}]''' # List[JsonPatchOperation] | A list of auth user update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. + try: + # Auth User Update + new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) + results = AuthUsersApi(api_client).patch_auth_user(id=id, json_patch_operation=new_json_patch_operation) + # Below is a request that includes all optional parameters + # results = AuthUsersApi(api_client).patch_auth_user(id, new_json_patch_operation) + print("The response of AuthUsersApi->patch_auth_user:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling AuthUsersApi->patch_auth_user: %s\n" % e) - path: /brandings method: POST xCodeSample: @@ -1248,30 +1211,29 @@ from sailpoint.v3.api.branding_api import BrandingApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.branding_item import BrandingItem - from pprint import pprint - from sailpoint.configuration import Configuration - configuration = Configuration() - - - with ApiClient(configuration) as api_client: - name = 'name_example' # str | name of branding item # str | name of branding item - product_name = 'product_name_example' # str | product name # str | product name - action_button_color = 'action_button_color_example' # str | hex value of color for action button (optional) # str | hex value of color for action button (optional) - active_link_color = 'active_link_color_example' # str | hex value of color for link (optional) # str | hex value of color for link (optional) - navigation_color = 'navigation_color_example' # str | hex value of color for navigation bar (optional) # str | hex value of color for navigation bar (optional) - email_from_address = 'email_from_address_example' # str | email from address (optional) # str | email from address (optional) - login_informational_message = 'login_informational_message_example' # str | login information message (optional) # str | login information message (optional) - file_standard = None # bytearray | png file with logo (optional) # bytearray | png file with logo (optional) - try: - # Create a branding item - - results = BrandingApi(api_client).create_branding_item(name=name, product_name=product_name) - # Below is a request that includes all optional parameters - # results = BrandingApi(api_client).create_branding_item(name, product_name, action_button_color, active_link_color, navigation_color, email_from_address, login_informational_message, file_standard) - print("The response of BrandingApi->create_branding_item:\n") - pprint(results) - except Exception as e: - print("Exception when calling BrandingApi->create_branding_item: %s\n" % e) + from sailpoint.configuration import Configuration + configuration = Configuration() + + + with ApiClient(configuration) as api_client: + name = 'name_example' # str | name of branding item # str | name of branding item + product_name = 'product_name_example' # str | product name # str | product name + action_button_color = 'action_button_color_example' # str | hex value of color for action button (optional) # str | hex value of color for action button (optional) + active_link_color = 'active_link_color_example' # str | hex value of color for link (optional) # str | hex value of color for link (optional) + navigation_color = 'navigation_color_example' # str | hex value of color for navigation bar (optional) # str | hex value of color for navigation bar (optional) + email_from_address = 'email_from_address_example' # str | email from address (optional) # str | email from address (optional) + login_informational_message = 'login_informational_message_example' # str | login information message (optional) # str | login information message (optional) + file_standard = None # bytearray | png file with logo (optional) # bytearray | png file with logo (optional) + try: + # Create a branding item + + results = BrandingApi(api_client).create_branding_item(name=name, product_name=product_name) + # Below is a request that includes all optional parameters + # results = BrandingApi(api_client).create_branding_item(name, product_name, action_button_color, active_link_color, navigation_color, email_from_address, login_informational_message, file_standard) + print("The response of BrandingApi->create_branding_item:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling BrandingApi->create_branding_item: %s\n" % e) - path: /brandings/{name} method: DELETE xCodeSample: @@ -1280,21 +1242,20 @@ source: | from sailpoint.v3.api.branding_api import BrandingApi from sailpoint.v3.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - name = 'default' # str | The name of the branding item to be deleted # str | The name of the branding item to be deleted - try: - # Delete a branding item - - BrandingApi(api_client).delete_branding(name=name) - # Below is a request that includes all optional parameters - # BrandingApi(api_client).delete_branding(name) - except Exception as e: - print("Exception when calling BrandingApi->delete_branding: %s\n" % e) + name = 'default' # str | The name of the branding item to be deleted # str | The name of the branding item to be deleted + try: + # Delete a branding item + + BrandingApi(api_client).delete_branding(name=name) + # Below is a request that includes all optional parameters + # BrandingApi(api_client).delete_branding(name) + except Exception as e: + print("Exception when calling BrandingApi->delete_branding: %s\n" % e) - path: /brandings/{name} method: GET xCodeSample: @@ -1304,23 +1265,22 @@ from sailpoint.v3.api.branding_api import BrandingApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.branding_item import BrandingItem - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - name = 'default' # str | The name of the branding item to be retrieved # str | The name of the branding item to be retrieved - try: - # Get a branding item - - results = BrandingApi(api_client).get_branding(name=name) - # Below is a request that includes all optional parameters - # results = BrandingApi(api_client).get_branding(name) - print("The response of BrandingApi->get_branding:\n") - pprint(results) - except Exception as e: - print("Exception when calling BrandingApi->get_branding: %s\n" % e) + name = 'default' # str | The name of the branding item to be retrieved # str | The name of the branding item to be retrieved + try: + # Get a branding item + + results = BrandingApi(api_client).get_branding(name=name) + # Below is a request that includes all optional parameters + # results = BrandingApi(api_client).get_branding(name) + print("The response of BrandingApi->get_branding:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling BrandingApi->get_branding: %s\n" % e) - path: /brandings method: GET xCodeSample: @@ -1330,22 +1290,21 @@ from sailpoint.v3.api.branding_api import BrandingApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.branding_item import BrandingItem - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - try: - # List of branding items - - results = BrandingApi(api_client).get_branding_list() - # Below is a request that includes all optional parameters - # results = BrandingApi(api_client).get_branding_list() - print("The response of BrandingApi->get_branding_list:\n") - pprint(results) - except Exception as e: - print("Exception when calling BrandingApi->get_branding_list: %s\n" % e) + try: + # List of branding items + + results = BrandingApi(api_client).get_branding_list() + # Below is a request that includes all optional parameters + # results = BrandingApi(api_client).get_branding_list() + print("The response of BrandingApi->get_branding_list:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling BrandingApi->get_branding_list: %s\n" % e) - path: /brandings/{name} method: PUT xCodeSample: @@ -1355,31 +1314,30 @@ from sailpoint.v3.api.branding_api import BrandingApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.branding_item import BrandingItem - from pprint import pprint - from sailpoint.configuration import Configuration - configuration = Configuration() - - - with ApiClient(configuration) as api_client: - name = 'default' # str | The name of the branding item to be retrieved # str | The name of the branding item to be retrieved - name2 = 'name_example' # str | name of branding item # str | name of branding item - product_name = 'product_name_example' # str | product name # str | product name - action_button_color = 'action_button_color_example' # str | hex value of color for action button (optional) # str | hex value of color for action button (optional) - active_link_color = 'active_link_color_example' # str | hex value of color for link (optional) # str | hex value of color for link (optional) - navigation_color = 'navigation_color_example' # str | hex value of color for navigation bar (optional) # str | hex value of color for navigation bar (optional) - email_from_address = 'email_from_address_example' # str | email from address (optional) # str | email from address (optional) - login_informational_message = 'login_informational_message_example' # str | login information message (optional) # str | login information message (optional) - file_standard = None # bytearray | png file with logo (optional) # bytearray | png file with logo (optional) - try: - # Update a branding item - - results = BrandingApi(api_client).set_branding_item(name=name, name2=name2, product_name=product_name) - # Below is a request that includes all optional parameters - # results = BrandingApi(api_client).set_branding_item(name, name2, product_name, action_button_color, active_link_color, navigation_color, email_from_address, login_informational_message, file_standard) - print("The response of BrandingApi->set_branding_item:\n") - pprint(results) - except Exception as e: - print("Exception when calling BrandingApi->set_branding_item: %s\n" % e) + from sailpoint.configuration import Configuration + configuration = Configuration() + + + with ApiClient(configuration) as api_client: + name = 'default' # str | The name of the branding item to be retrieved # str | The name of the branding item to be retrieved + name2 = 'name_example' # str | name of branding item # str | name of branding item + product_name = 'product_name_example' # str | product name # str | product name + action_button_color = 'action_button_color_example' # str | hex value of color for action button (optional) # str | hex value of color for action button (optional) + active_link_color = 'active_link_color_example' # str | hex value of color for link (optional) # str | hex value of color for link (optional) + navigation_color = 'navigation_color_example' # str | hex value of color for navigation bar (optional) # str | hex value of color for navigation bar (optional) + email_from_address = 'email_from_address_example' # str | email from address (optional) # str | email from address (optional) + login_informational_message = 'login_informational_message_example' # str | login information message (optional) # str | login information message (optional) + file_standard = None # bytearray | png file with logo (optional) # bytearray | png file with logo (optional) + try: + # Update a branding item + + results = BrandingApi(api_client).set_branding_item(name=name, name2=name2, product_name=product_name) + # Below is a request that includes all optional parameters + # results = BrandingApi(api_client).set_branding_item(name, name2, product_name, action_button_color, active_link_color, navigation_color, email_from_address, login_informational_message, file_standard) + print("The response of BrandingApi->set_branding_item:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling BrandingApi->set_branding_item: %s\n" % e) - path: /campaign-filters method: POST xCodeSample: @@ -1389,13 +1347,12 @@ from sailpoint.v3.api.certification_campaign_filters_api import CertificationCampaignFiltersApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.campaign_filter_details import CampaignFilterDetails - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - campaign_filter_details = '''{ + campaign_filter_details = '''{ "owner" : "SailPoint Support", "mode" : "INCLUSION", "isSystemFilter" : false, @@ -1413,16 +1370,16 @@ "suppressMatchedItems" : false } ] }''' # CampaignFilterDetails | - try: - # Create Campaign Filter - new_campaign_filter_details = CampaignFilterDetails.from_json(campaign_filter_details) - results = CertificationCampaignFiltersApi(api_client).create_campaign_filter(campaign_filter_details=new_campaign_filter_details) - # Below is a request that includes all optional parameters - # results = CertificationCampaignFiltersApi(api_client).create_campaign_filter(new_campaign_filter_details) - print("The response of CertificationCampaignFiltersApi->create_campaign_filter:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationCampaignFiltersApi->create_campaign_filter: %s\n" % e) + try: + # Create Campaign Filter + new_campaign_filter_details = CampaignFilterDetails.from_json(campaign_filter_details) + results = CertificationCampaignFiltersApi(api_client).create_campaign_filter(campaign_filter_details=new_campaign_filter_details) + # Below is a request that includes all optional parameters + # results = CertificationCampaignFiltersApi(api_client).create_campaign_filter(new_campaign_filter_details) + print("The response of CertificationCampaignFiltersApi->create_campaign_filter:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationCampaignFiltersApi->create_campaign_filter: %s\n" % e) - path: /campaign-filters/delete method: POST xCodeSample: @@ -1431,21 +1388,20 @@ source: | from sailpoint.v3.api.certification_campaign_filters_api import CertificationCampaignFiltersApi from sailpoint.v3.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - request_body = '''['request_body_example']''' # List[str] | A json list of IDs of campaign filters to delete. - try: - # Deletes Campaign Filters - new_request_body = RequestBody.from_json(request_body) - CertificationCampaignFiltersApi(api_client).delete_campaign_filters(request_body=new_request_body) - # Below is a request that includes all optional parameters - # CertificationCampaignFiltersApi(api_client).delete_campaign_filters(new_request_body) - except Exception as e: - print("Exception when calling CertificationCampaignFiltersApi->delete_campaign_filters: %s\n" % e) + request_body = '''['request_body_example']''' # List[str] | A json list of IDs of campaign filters to delete. + try: + # Deletes Campaign Filters + new_request_body = RequestBody.from_json(request_body) + CertificationCampaignFiltersApi(api_client).delete_campaign_filters(request_body=new_request_body) + # Below is a request that includes all optional parameters + # CertificationCampaignFiltersApi(api_client).delete_campaign_filters(new_request_body) + except Exception as e: + print("Exception when calling CertificationCampaignFiltersApi->delete_campaign_filters: %s\n" % e) - path: /campaign-filters/{id} method: GET xCodeSample: @@ -1455,23 +1411,22 @@ from sailpoint.v3.api.certification_campaign_filters_api import CertificationCampaignFiltersApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.campaign_filter_details import CampaignFilterDetails - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'e9f9a1397b842fd5a65842087040d3ac' # str | The ID of the campaign filter to be retrieved. # str | The ID of the campaign filter to be retrieved. - try: - # Get Campaign Filter by ID - - results = CertificationCampaignFiltersApi(api_client).get_campaign_filter_by_id(id=id) - # Below is a request that includes all optional parameters - # results = CertificationCampaignFiltersApi(api_client).get_campaign_filter_by_id(id) - print("The response of CertificationCampaignFiltersApi->get_campaign_filter_by_id:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationCampaignFiltersApi->get_campaign_filter_by_id: %s\n" % e) + id = 'e9f9a1397b842fd5a65842087040d3ac' # str | The ID of the campaign filter to be retrieved. # str | The ID of the campaign filter to be retrieved. + try: + # Get Campaign Filter by ID + + results = CertificationCampaignFiltersApi(api_client).get_campaign_filter_by_id(id=id) + # Below is a request that includes all optional parameters + # results = CertificationCampaignFiltersApi(api_client).get_campaign_filter_by_id(id) + print("The response of CertificationCampaignFiltersApi->get_campaign_filter_by_id:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationCampaignFiltersApi->get_campaign_filter_by_id: %s\n" % e) - path: /campaign-filters method: GET xCodeSample: @@ -1481,25 +1436,24 @@ from sailpoint.v3.api.certification_campaign_filters_api import CertificationCampaignFiltersApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.list_campaign_filters200_response import ListCampaignFilters200Response - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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) - start = 0 # int | Start/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 | Start/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) - include_system_filters = True # bool | If this is true, the API includes system filters in the count and results. Otherwise it excludes them. If no value is provided, the default is true. (optional) (default to True) # bool | If this is true, the API includes system filters in the count and results. Otherwise it excludes them. If no value is provided, the default is true. (optional) (default to True) - try: - # List Campaign Filters - - results = CertificationCampaignFiltersApi(api_client).list_campaign_filters() - # Below is a request that includes all optional parameters - # results = CertificationCampaignFiltersApi(api_client).list_campaign_filters(limit, start, include_system_filters) - print("The response of CertificationCampaignFiltersApi->list_campaign_filters:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationCampaignFiltersApi->list_campaign_filters: %s\n" % e) + 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) + start = 0 # int | Start/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 | Start/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) + include_system_filters = True # bool | If this is true, the API includes system filters in the count and results. Otherwise it excludes them. If no value is provided, the default is true. (optional) (default to True) # bool | If this is true, the API includes system filters in the count and results. Otherwise it excludes them. If no value is provided, the default is true. (optional) (default to True) + try: + # List Campaign Filters + + results = CertificationCampaignFiltersApi(api_client).list_campaign_filters() + # Below is a request that includes all optional parameters + # results = CertificationCampaignFiltersApi(api_client).list_campaign_filters(limit, start, include_system_filters) + print("The response of CertificationCampaignFiltersApi->list_campaign_filters:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationCampaignFiltersApi->list_campaign_filters: %s\n" % e) - path: /campaign-filters/{id} method: POST xCodeSample: @@ -1509,14 +1463,13 @@ from sailpoint.v3.api.certification_campaign_filters_api import CertificationCampaignFiltersApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.campaign_filter_details import CampaignFilterDetails - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - filter_id = 'e9f9a1397b842fd5a65842087040d3ac' # str | The ID of the campaign filter being modified. # str | The ID of the campaign filter being modified. - campaign_filter_details = '''{ + filter_id = 'e9f9a1397b842fd5a65842087040d3ac' # str | The ID of the campaign filter being modified. # str | The ID of the campaign filter being modified. + campaign_filter_details = '''{ "owner" : "SailPoint Support", "mode" : "INCLUSION", "isSystemFilter" : false, @@ -1534,16 +1487,16 @@ "suppressMatchedItems" : false } ] }''' # CampaignFilterDetails | A campaign filter details with updated field values. - try: - # Updates a Campaign Filter - new_campaign_filter_details = CampaignFilterDetails.from_json(campaign_filter_details) - results = CertificationCampaignFiltersApi(api_client).update_campaign_filter(filter_id=filter_id, campaign_filter_details=new_campaign_filter_details) - # Below is a request that includes all optional parameters - # results = CertificationCampaignFiltersApi(api_client).update_campaign_filter(filter_id, new_campaign_filter_details) - print("The response of CertificationCampaignFiltersApi->update_campaign_filter:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationCampaignFiltersApi->update_campaign_filter: %s\n" % e) + try: + # Updates a Campaign Filter + new_campaign_filter_details = CampaignFilterDetails.from_json(campaign_filter_details) + results = CertificationCampaignFiltersApi(api_client).update_campaign_filter(filter_id=filter_id, campaign_filter_details=new_campaign_filter_details) + # Below is a request that includes all optional parameters + # results = CertificationCampaignFiltersApi(api_client).update_campaign_filter(filter_id, new_campaign_filter_details) + print("The response of CertificationCampaignFiltersApi->update_campaign_filter:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationCampaignFiltersApi->update_campaign_filter: %s\n" % e) - path: /campaigns/{id}/complete method: POST xCodeSample: @@ -1553,26 +1506,25 @@ from sailpoint.v3.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.campaign_complete_options import CampaignCompleteOptions - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | Campaign ID. # str | Campaign ID. - campaign_complete_options = '''{ + id = 'ef38f94347e94562b5bb8424a56397d8' # str | Campaign ID. # str | Campaign ID. + campaign_complete_options = '''{ "autoCompleteAction" : "REVOKE" }''' # CampaignCompleteOptions | Optional. Default behavior is for the campaign to auto-approve upon completion, unless autoCompleteAction=REVOKE (optional) - try: - # Complete a Campaign - - results = CertificationCampaignsApi(api_client).complete_campaign(id=id) - # Below is a request that includes all optional parameters - # results = CertificationCampaignsApi(api_client).complete_campaign(id, new_campaign_complete_options) - print("The response of CertificationCampaignsApi->complete_campaign:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationCampaignsApi->complete_campaign: %s\n" % e) + try: + # Complete a Campaign + + results = CertificationCampaignsApi(api_client).complete_campaign(id=id) + # Below is a request that includes all optional parameters + # results = CertificationCampaignsApi(api_client).complete_campaign(id, new_campaign_complete_options) + print("The response of CertificationCampaignsApi->complete_campaign:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationCampaignsApi->complete_campaign: %s\n" % e) - path: /campaigns method: POST xCodeSample: @@ -1582,13 +1534,12 @@ from sailpoint.v3.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.campaign import Campaign - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - campaign = '''{ + campaign = '''{ "totalCertifications" : 100, "sourcesWithOrphanEntitlements" : [ { "name" : "Source with orphan entitlements", @@ -1697,16 +1648,16 @@ "status" : "ACTIVE", "correlatedStatus" : "CORRELATED" }''' # Campaign | - try: - # Create a campaign - new_campaign = Campaign.from_json(campaign) - results = CertificationCampaignsApi(api_client).create_campaign(campaign=new_campaign) - # Below is a request that includes all optional parameters - # results = CertificationCampaignsApi(api_client).create_campaign(new_campaign) - print("The response of CertificationCampaignsApi->create_campaign:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationCampaignsApi->create_campaign: %s\n" % e) + try: + # Create a campaign + new_campaign = Campaign.from_json(campaign) + results = CertificationCampaignsApi(api_client).create_campaign(campaign=new_campaign) + # Below is a request that includes all optional parameters + # results = CertificationCampaignsApi(api_client).create_campaign(new_campaign) + print("The response of CertificationCampaignsApi->create_campaign:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationCampaignsApi->create_campaign: %s\n" % e) - path: /campaign-templates method: POST xCodeSample: @@ -1716,13 +1667,12 @@ from sailpoint.v3.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.campaign_template import CampaignTemplate - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - campaign_template = '''{ + campaign_template = '''{ "ownerRef" : { "name" : "Mister Manager", "id" : "2c918086676d3e0601677611dbde220f", @@ -1846,16 +1796,16 @@ }, "id" : "2c9079b270a266a60170a277bb960008" }''' # CampaignTemplate | - try: - # Create a Campaign Template - new_campaign_template = CampaignTemplate.from_json(campaign_template) - results = CertificationCampaignsApi(api_client).create_campaign_template(campaign_template=new_campaign_template) - # Below is a request that includes all optional parameters - # results = CertificationCampaignsApi(api_client).create_campaign_template(new_campaign_template) - print("The response of CertificationCampaignsApi->create_campaign_template:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationCampaignsApi->create_campaign_template: %s\n" % e) + try: + # Create a Campaign Template + new_campaign_template = CampaignTemplate.from_json(campaign_template) + results = CertificationCampaignsApi(api_client).create_campaign_template(campaign_template=new_campaign_template) + # Below is a request that includes all optional parameters + # results = CertificationCampaignsApi(api_client).create_campaign_template(new_campaign_template) + print("The response of CertificationCampaignsApi->create_campaign_template:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationCampaignsApi->create_campaign_template: %s\n" % e) - path: /campaign-templates/{id} method: DELETE xCodeSample: @@ -1864,21 +1814,20 @@ source: | from sailpoint.v3.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v3.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c9180835d191a86015d28455b4a2329' # str | ID of the campaign template being deleted. # str | ID of the campaign template being deleted. - try: - # Delete a Campaign Template - - CertificationCampaignsApi(api_client).delete_campaign_template(id=id) - # Below is a request that includes all optional parameters - # CertificationCampaignsApi(api_client).delete_campaign_template(id) - except Exception as e: - print("Exception when calling CertificationCampaignsApi->delete_campaign_template: %s\n" % e) + id = '2c9180835d191a86015d28455b4a2329' # str | ID of the campaign template being deleted. # str | ID of the campaign template being deleted. + try: + # Delete a Campaign Template + + CertificationCampaignsApi(api_client).delete_campaign_template(id=id) + # Below is a request that includes all optional parameters + # CertificationCampaignsApi(api_client).delete_campaign_template(id) + except Exception as e: + print("Exception when calling CertificationCampaignsApi->delete_campaign_template: %s\n" % e) - path: /campaign-templates/{id}/schedule method: DELETE xCodeSample: @@ -1887,21 +1836,20 @@ source: | from sailpoint.v3.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v3.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '04bedce387bd47b2ae1f86eb0bb36dee' # str | ID of the campaign template whose schedule is being deleted. # str | ID of the campaign template whose schedule is being deleted. - try: - # Delete Campaign Template Schedule - - CertificationCampaignsApi(api_client).delete_campaign_template_schedule(id=id) - # Below is a request that includes all optional parameters - # CertificationCampaignsApi(api_client).delete_campaign_template_schedule(id) - except Exception as e: - print("Exception when calling CertificationCampaignsApi->delete_campaign_template_schedule: %s\n" % e) + id = '04bedce387bd47b2ae1f86eb0bb36dee' # str | ID of the campaign template whose schedule is being deleted. # str | ID of the campaign template whose schedule is being deleted. + try: + # Delete Campaign Template Schedule + + CertificationCampaignsApi(api_client).delete_campaign_template_schedule(id=id) + # Below is a request that includes all optional parameters + # CertificationCampaignsApi(api_client).delete_campaign_template_schedule(id) + except Exception as e: + print("Exception when calling CertificationCampaignsApi->delete_campaign_template_schedule: %s\n" % e) - path: /campaigns/delete method: POST xCodeSample: @@ -1911,25 +1859,24 @@ from sailpoint.v3.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.campaigns_delete_request import CampaignsDeleteRequest - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - campaigns_delete_request = '''{ + campaigns_delete_request = '''{ "ids" : [ "2c9180887335cee10173490db1776c26", "2c9180836a712436016a7125a90c0021" ] }''' # CampaignsDeleteRequest | IDs of the campaigns to delete. - try: - # Delete Campaigns - new_campaigns_delete_request = CampaignsDeleteRequest.from_json(campaigns_delete_request) - results = CertificationCampaignsApi(api_client).delete_campaigns(campaigns_delete_request=new_campaigns_delete_request) - # Below is a request that includes all optional parameters - # results = CertificationCampaignsApi(api_client).delete_campaigns(new_campaigns_delete_request) - print("The response of CertificationCampaignsApi->delete_campaigns:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationCampaignsApi->delete_campaigns: %s\n" % e) + try: + # Delete Campaigns + new_campaigns_delete_request = CampaignsDeleteRequest.from_json(campaigns_delete_request) + results = CertificationCampaignsApi(api_client).delete_campaigns(campaigns_delete_request=new_campaigns_delete_request) + # Below is a request that includes all optional parameters + # results = CertificationCampaignsApi(api_client).delete_campaigns(new_campaigns_delete_request) + print("The response of CertificationCampaignsApi->delete_campaigns:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationCampaignsApi->delete_campaigns: %s\n" % e) - path: /campaigns method: GET xCodeSample: @@ -1939,28 +1886,27 @@ from sailpoint.v3.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.get_active_campaigns200_response_inner import GetActiveCampaigns200ResponseInner - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - detail = 'FULL' # str | Determines whether slim, or increased level of detail is provided for each campaign in the returned list. Slim is the default behavior. (optional) # str | Determines whether slim, or increased level of detail is provided for each campaign in the returned list. Slim is the default behavior. (optional) - 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 \"Manager Campaign\"' # 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, sw* **status**: *eq, in* (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, sw* **status**: *eq, in* (optional) - sorters = 'name' # 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: **name, created** (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: **name, created** (optional) - try: - # List Campaigns - - results = CertificationCampaignsApi(api_client).get_active_campaigns() - # Below is a request that includes all optional parameters - # results = CertificationCampaignsApi(api_client).get_active_campaigns(detail, limit, offset, count, filters, sorters) - print("The response of CertificationCampaignsApi->get_active_campaigns:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationCampaignsApi->get_active_campaigns: %s\n" % e) + detail = 'FULL' # str | Determines whether slim, or increased level of detail is provided for each campaign in the returned list. Slim is the default behavior. (optional) # str | Determines whether slim, or increased level of detail is provided for each campaign in the returned list. Slim is the default behavior. (optional) + 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 \"Manager Campaign\"' # 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, sw* **status**: *eq, in* (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, sw* **status**: *eq, in* (optional) + sorters = 'name' # 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: **name, created** (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: **name, created** (optional) + try: + # List Campaigns + + results = CertificationCampaignsApi(api_client).get_active_campaigns() + # Below is a request that includes all optional parameters + # results = CertificationCampaignsApi(api_client).get_active_campaigns(detail, limit, offset, count, filters, sorters) + print("The response of CertificationCampaignsApi->get_active_campaigns:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationCampaignsApi->get_active_campaigns: %s\n" % e) - path: /campaigns/{id} method: GET xCodeSample: @@ -1970,24 +1916,23 @@ from sailpoint.v3.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.get_active_campaigns200_response_inner import GetActiveCampaigns200ResponseInner - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808571bcfcf80171c23e4b4221fc' # str | ID of the campaign to be retrieved. # str | ID of the campaign to be retrieved. - detail = 'FULL' # str | Determines whether slim, or increased level of detail is provided for each campaign in the returned list. Slim is the default behavior. (optional) # str | Determines whether slim, or increased level of detail is provided for each campaign in the returned list. Slim is the default behavior. (optional) - try: - # Get Campaign - - results = CertificationCampaignsApi(api_client).get_campaign(id=id) - # Below is a request that includes all optional parameters - # results = CertificationCampaignsApi(api_client).get_campaign(id, detail) - print("The response of CertificationCampaignsApi->get_campaign:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationCampaignsApi->get_campaign: %s\n" % e) + id = '2c91808571bcfcf80171c23e4b4221fc' # str | ID of the campaign to be retrieved. # str | ID of the campaign to be retrieved. + detail = 'FULL' # str | Determines whether slim, or increased level of detail is provided for each campaign in the returned list. Slim is the default behavior. (optional) # str | Determines whether slim, or increased level of detail is provided for each campaign in the returned list. Slim is the default behavior. (optional) + try: + # Get Campaign + + results = CertificationCampaignsApi(api_client).get_campaign(id=id) + # Below is a request that includes all optional parameters + # results = CertificationCampaignsApi(api_client).get_campaign(id, detail) + print("The response of CertificationCampaignsApi->get_campaign:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationCampaignsApi->get_campaign: %s\n" % e) - path: /campaigns/{id}/reports method: GET xCodeSample: @@ -1997,23 +1942,22 @@ from sailpoint.v3.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.campaign_report import CampaignReport - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808571bcfcf80171c23e4b4221fc' # str | ID of the campaign whose reports are being fetched. # str | ID of the campaign whose reports are being fetched. - try: - # Get Campaign Reports - - results = CertificationCampaignsApi(api_client).get_campaign_reports(id=id) - # Below is a request that includes all optional parameters - # results = CertificationCampaignsApi(api_client).get_campaign_reports(id) - print("The response of CertificationCampaignsApi->get_campaign_reports:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationCampaignsApi->get_campaign_reports: %s\n" % e) + id = '2c91808571bcfcf80171c23e4b4221fc' # str | ID of the campaign whose reports are being fetched. # str | ID of the campaign whose reports are being fetched. + try: + # Get Campaign Reports + + results = CertificationCampaignsApi(api_client).get_campaign_reports(id=id) + # Below is a request that includes all optional parameters + # results = CertificationCampaignsApi(api_client).get_campaign_reports(id) + print("The response of CertificationCampaignsApi->get_campaign_reports:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationCampaignsApi->get_campaign_reports: %s\n" % e) - path: /campaigns/reports-configuration method: GET xCodeSample: @@ -2023,22 +1967,21 @@ from sailpoint.v3.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.campaign_reports_config import CampaignReportsConfig - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - try: - # Get Campaign Reports Configuration - - results = CertificationCampaignsApi(api_client).get_campaign_reports_config() - # Below is a request that includes all optional parameters - # results = CertificationCampaignsApi(api_client).get_campaign_reports_config() - print("The response of CertificationCampaignsApi->get_campaign_reports_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationCampaignsApi->get_campaign_reports_config: %s\n" % e) + try: + # Get Campaign Reports Configuration + + results = CertificationCampaignsApi(api_client).get_campaign_reports_config() + # Below is a request that includes all optional parameters + # results = CertificationCampaignsApi(api_client).get_campaign_reports_config() + print("The response of CertificationCampaignsApi->get_campaign_reports_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationCampaignsApi->get_campaign_reports_config: %s\n" % e) - path: /campaign-templates/{id} method: GET xCodeSample: @@ -2048,23 +1991,22 @@ from sailpoint.v3.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.campaign_template import CampaignTemplate - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c9180835d191a86015d28455b4a2329' # str | Requested campaign template's ID. # str | Requested campaign template's ID. - try: - # Get a Campaign Template - - results = CertificationCampaignsApi(api_client).get_campaign_template(id=id) - # Below is a request that includes all optional parameters - # results = CertificationCampaignsApi(api_client).get_campaign_template(id) - print("The response of CertificationCampaignsApi->get_campaign_template:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationCampaignsApi->get_campaign_template: %s\n" % e) + id = '2c9180835d191a86015d28455b4a2329' # str | Requested campaign template's ID. # str | Requested campaign template's ID. + try: + # Get a Campaign Template + + results = CertificationCampaignsApi(api_client).get_campaign_template(id=id) + # Below is a request that includes all optional parameters + # results = CertificationCampaignsApi(api_client).get_campaign_template(id) + print("The response of CertificationCampaignsApi->get_campaign_template:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationCampaignsApi->get_campaign_template: %s\n" % e) - path: /campaign-templates/{id}/schedule method: GET xCodeSample: @@ -2074,23 +2016,22 @@ from sailpoint.v3.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.schedule import Schedule - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '04bedce387bd47b2ae1f86eb0bb36dee' # str | ID of the campaign template whose schedule is being fetched. # str | ID of the campaign template whose schedule is being fetched. - try: - # Get Campaign Template Schedule - - results = CertificationCampaignsApi(api_client).get_campaign_template_schedule(id=id) - # Below is a request that includes all optional parameters - # results = CertificationCampaignsApi(api_client).get_campaign_template_schedule(id) - print("The response of CertificationCampaignsApi->get_campaign_template_schedule:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationCampaignsApi->get_campaign_template_schedule: %s\n" % e) + id = '04bedce387bd47b2ae1f86eb0bb36dee' # str | ID of the campaign template whose schedule is being fetched. # str | ID of the campaign template whose schedule is being fetched. + try: + # Get Campaign Template Schedule + + results = CertificationCampaignsApi(api_client).get_campaign_template_schedule(id=id) + # Below is a request that includes all optional parameters + # results = CertificationCampaignsApi(api_client).get_campaign_template_schedule(id) + print("The response of CertificationCampaignsApi->get_campaign_template_schedule:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationCampaignsApi->get_campaign_template_schedule: %s\n" % e) - path: /campaign-templates method: GET xCodeSample: @@ -2100,27 +2041,26 @@ from sailpoint.v3.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.campaign_template import CampaignTemplate - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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) - sorters = 'name' # 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: **name, created, modified** (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: **name, created, modified** (optional) - filters = 'name eq \"manager template\"' # 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: **name**: *eq, ge, gt, in, le, lt, ne, sw* **id**: *eq, ge, gt, in, le, lt, ne, 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: **name**: *eq, ge, gt, in, le, lt, ne, sw* **id**: *eq, ge, gt, in, le, lt, ne, sw* (optional) - try: - # List Campaign Templates - - results = CertificationCampaignsApi(api_client).get_campaign_templates() - # Below is a request that includes all optional parameters - # results = CertificationCampaignsApi(api_client).get_campaign_templates(limit, offset, count, sorters, filters) - print("The response of CertificationCampaignsApi->get_campaign_templates:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationCampaignsApi->get_campaign_templates: %s\n" % e) + 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) + sorters = 'name' # 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: **name, created, modified** (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: **name, created, modified** (optional) + filters = 'name eq \"manager template\"' # 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: **name**: *eq, ge, gt, in, le, lt, ne, sw* **id**: *eq, ge, gt, in, le, lt, ne, 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: **name**: *eq, ge, gt, in, le, lt, ne, sw* **id**: *eq, ge, gt, in, le, lt, ne, sw* (optional) + try: + # List Campaign Templates + + results = CertificationCampaignsApi(api_client).get_campaign_templates() + # Below is a request that includes all optional parameters + # results = CertificationCampaignsApi(api_client).get_campaign_templates(limit, offset, count, sorters, filters) + print("The response of CertificationCampaignsApi->get_campaign_templates:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationCampaignsApi->get_campaign_templates: %s\n" % e) - path: /campaigns/{id}/reassign method: POST xCodeSample: @@ -2131,14 +2071,13 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.admin_review_reassign import AdminReviewReassign from sailpoint.v3.models.certification_task import CertificationTask - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The certification campaign ID # str | The certification campaign ID - admin_review_reassign = '''{ + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The certification campaign ID # str | The certification campaign ID + admin_review_reassign = '''{ "certificationIds" : [ "af3859464779471211bb8424a563abc1", "af3859464779471211bb8424a563abc2", "af3859464779471211bb8424a563abc3" ], "reason" : "reassigned for some reason", "reassignTo" : { @@ -2146,16 +2085,16 @@ "type" : "IDENTITY" } }''' # AdminReviewReassign | - try: - # Reassign Certifications - new_admin_review_reassign = AdminReviewReassign.from_json(admin_review_reassign) - results = CertificationCampaignsApi(api_client).move(id=id, admin_review_reassign=new_admin_review_reassign) - # Below is a request that includes all optional parameters - # results = CertificationCampaignsApi(api_client).move(id, new_admin_review_reassign) - print("The response of CertificationCampaignsApi->move:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationCampaignsApi->move: %s\n" % e) + try: + # Reassign Certifications + new_admin_review_reassign = AdminReviewReassign.from_json(admin_review_reassign) + results = CertificationCampaignsApi(api_client).move(id=id, admin_review_reassign=new_admin_review_reassign) + # Below is a request that includes all optional parameters + # results = CertificationCampaignsApi(api_client).move(id, new_admin_review_reassign) + print("The response of CertificationCampaignsApi->move:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationCampaignsApi->move: %s\n" % e) - path: /campaign-templates/{id} method: PATCH xCodeSample: @@ -2166,24 +2105,23 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.campaign_template import CampaignTemplate from sailpoint.v3.models.json_patch_operation import JsonPatchOperation - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c9180835d191a86015d28455b4a2329' # str | ID of the campaign template being modified. # str | ID of the campaign template being modified. - json_patch_operation = '''[{op=replace, path=/description, value=Updated description!}, {op=replace, path=/campaign/filter/id, value=ff80818155fe8c080155fe8d925b0316}]''' # List[JsonPatchOperation] | A list of campaign update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * description * deadlineDuration * campaign (all fields that are allowed during create) - try: - # Update a Campaign Template - new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) - results = CertificationCampaignsApi(api_client).patch_campaign_template(id=id, json_patch_operation=new_json_patch_operation) - # Below is a request that includes all optional parameters - # results = CertificationCampaignsApi(api_client).patch_campaign_template(id, new_json_patch_operation) - print("The response of CertificationCampaignsApi->patch_campaign_template:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationCampaignsApi->patch_campaign_template: %s\n" % e) + id = '2c9180835d191a86015d28455b4a2329' # str | ID of the campaign template being modified. # str | ID of the campaign template being modified. + json_patch_operation = '''[{op=replace, path=/description, value=Updated description!}, {op=replace, path=/campaign/filter/id, value=ff80818155fe8c080155fe8d925b0316}]''' # List[JsonPatchOperation] | A list of campaign update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * description * deadlineDuration * campaign (all fields that are allowed during create) + try: + # Update a Campaign Template + new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) + results = CertificationCampaignsApi(api_client).patch_campaign_template(id=id, json_patch_operation=new_json_patch_operation) + # Below is a request that includes all optional parameters + # results = CertificationCampaignsApi(api_client).patch_campaign_template(id, new_json_patch_operation) + print("The response of CertificationCampaignsApi->patch_campaign_template:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationCampaignsApi->patch_campaign_template: %s\n" % e) - path: /campaigns/reports-configuration method: PUT xCodeSample: @@ -2193,25 +2131,24 @@ from sailpoint.v3.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.campaign_reports_config import CampaignReportsConfig - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - campaign_reports_config = '''{ + campaign_reports_config = '''{ "identityAttributeColumns" : [ "firstname", "lastname" ] }''' # CampaignReportsConfig | Campaign report configuration. - try: - # Set Campaign Reports Configuration - new_campaign_reports_config = CampaignReportsConfig.from_json(campaign_reports_config) - results = CertificationCampaignsApi(api_client).set_campaign_reports_config(campaign_reports_config=new_campaign_reports_config) - # Below is a request that includes all optional parameters - # results = CertificationCampaignsApi(api_client).set_campaign_reports_config(new_campaign_reports_config) - print("The response of CertificationCampaignsApi->set_campaign_reports_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationCampaignsApi->set_campaign_reports_config: %s\n" % e) + try: + # Set Campaign Reports Configuration + new_campaign_reports_config = CampaignReportsConfig.from_json(campaign_reports_config) + results = CertificationCampaignsApi(api_client).set_campaign_reports_config(campaign_reports_config=new_campaign_reports_config) + # Below is a request that includes all optional parameters + # results = CertificationCampaignsApi(api_client).set_campaign_reports_config(new_campaign_reports_config) + print("The response of CertificationCampaignsApi->set_campaign_reports_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationCampaignsApi->set_campaign_reports_config: %s\n" % e) - path: /campaign-templates/{id}/schedule method: PUT xCodeSample: @@ -2221,14 +2158,13 @@ from sailpoint.v3.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.schedule import Schedule - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '04bedce387bd47b2ae1f86eb0bb36dee' # str | ID of the campaign template being scheduled. # str | ID of the campaign template being scheduled. - schedule = '''{ + id = '04bedce387bd47b2ae1f86eb0bb36dee' # str | ID of the campaign template being scheduled. # str | ID of the campaign template being scheduled. + schedule = '''{ "hours" : { "values" : [ "1" ], "interval" : 2, @@ -2248,14 +2184,14 @@ "expiration" : "2000-01-23T04:56:07.000+00:00", "type" : "WEEKLY" }''' # Schedule | (optional) - try: - # Set Campaign Template Schedule - - CertificationCampaignsApi(api_client).set_campaign_template_schedule(id=id) - # Below is a request that includes all optional parameters - # CertificationCampaignsApi(api_client).set_campaign_template_schedule(id, new_schedule) - except Exception as e: - print("Exception when calling CertificationCampaignsApi->set_campaign_template_schedule: %s\n" % e) + try: + # Set Campaign Template Schedule + + CertificationCampaignsApi(api_client).set_campaign_template_schedule(id=id) + # Below is a request that includes all optional parameters + # CertificationCampaignsApi(api_client).set_campaign_template_schedule(id, new_schedule) + except Exception as e: + print("Exception when calling CertificationCampaignsApi->set_campaign_template_schedule: %s\n" % e) - path: /campaigns/{id}/activate method: POST xCodeSample: @@ -2265,26 +2201,25 @@ from sailpoint.v3.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.activate_campaign_options import ActivateCampaignOptions - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | Campaign ID. # str | Campaign ID. - activate_campaign_options = '''{ + id = 'ef38f94347e94562b5bb8424a56397d8' # str | Campaign ID. # str | Campaign ID. + activate_campaign_options = '''{ "timeZone" : "-05:00" }''' # ActivateCampaignOptions | Optional. If no timezone is specified, the standard UTC timezone is used (i.e. UTC+00:00). Although this can take any timezone, the intended value is the caller's timezone. The activation time calculated from the given timezone may cause the campaign deadline time to be modified, but it will remain within the original date. The timezone must be in a valid ISO 8601 format. (optional) - try: - # Activate a Campaign - - results = CertificationCampaignsApi(api_client).start_campaign(id=id) - # Below is a request that includes all optional parameters - # results = CertificationCampaignsApi(api_client).start_campaign(id, new_activate_campaign_options) - print("The response of CertificationCampaignsApi->start_campaign:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationCampaignsApi->start_campaign: %s\n" % e) + try: + # Activate a Campaign + + results = CertificationCampaignsApi(api_client).start_campaign(id=id) + # Below is a request that includes all optional parameters + # results = CertificationCampaignsApi(api_client).start_campaign(id, new_activate_campaign_options) + print("The response of CertificationCampaignsApi->start_campaign:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationCampaignsApi->start_campaign: %s\n" % e) - path: /campaigns/{id}/run-remediation-scan method: POST xCodeSample: @@ -2293,23 +2228,22 @@ source: | from sailpoint.v3.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v3.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808571bcfcf80171c23e4b4221fc' # str | ID of the campaign the remediation scan is being run for. # str | ID of the campaign the remediation scan is being run for. - try: - # Run Campaign Remediation Scan - - results = CertificationCampaignsApi(api_client).start_campaign_remediation_scan(id=id) - # Below is a request that includes all optional parameters - # results = CertificationCampaignsApi(api_client).start_campaign_remediation_scan(id) - print("The response of CertificationCampaignsApi->start_campaign_remediation_scan:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationCampaignsApi->start_campaign_remediation_scan: %s\n" % e) + id = '2c91808571bcfcf80171c23e4b4221fc' # str | ID of the campaign the remediation scan is being run for. # str | ID of the campaign the remediation scan is being run for. + try: + # Run Campaign Remediation Scan + + results = CertificationCampaignsApi(api_client).start_campaign_remediation_scan(id=id) + # Below is a request that includes all optional parameters + # results = CertificationCampaignsApi(api_client).start_campaign_remediation_scan(id) + print("The response of CertificationCampaignsApi->start_campaign_remediation_scan:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationCampaignsApi->start_campaign_remediation_scan: %s\n" % e) - path: /campaigns/{id}/run-report/{type} method: POST xCodeSample: @@ -2319,24 +2253,23 @@ from sailpoint.v3.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.report_type import ReportType - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808571bcfcf80171c23e4b4221fc' # str | ID of the campaign the report is being run for. # str | ID of the campaign the report is being run for. - type = sailpoint.v3.ReportType() # ReportType | Type of the report to run. # ReportType | Type of the report to run. - try: - # Run Campaign Report - - results = CertificationCampaignsApi(api_client).start_campaign_report(id=id, type=type) - # Below is a request that includes all optional parameters - # results = CertificationCampaignsApi(api_client).start_campaign_report(id, type) - print("The response of CertificationCampaignsApi->start_campaign_report:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationCampaignsApi->start_campaign_report: %s\n" % e) + id = '2c91808571bcfcf80171c23e4b4221fc' # str | ID of the campaign the report is being run for. # str | ID of the campaign the report is being run for. + type = sailpoint.v3.ReportType() # ReportType | Type of the report to run. # ReportType | Type of the report to run. + try: + # Run Campaign Report + + results = CertificationCampaignsApi(api_client).start_campaign_report(id=id, type=type) + # Below is a request that includes all optional parameters + # results = CertificationCampaignsApi(api_client).start_campaign_report(id, type) + print("The response of CertificationCampaignsApi->start_campaign_report:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationCampaignsApi->start_campaign_report: %s\n" % e) - path: /campaign-templates/{id}/generate method: POST xCodeSample: @@ -2346,23 +2279,22 @@ from sailpoint.v3.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.campaign_reference import CampaignReference - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c9180835d191a86015d28455b4a2329' # str | ID of the campaign template to use for generation. # str | ID of the campaign template to use for generation. - try: - # Generate a Campaign from Template - - results = CertificationCampaignsApi(api_client).start_generate_campaign_template(id=id) - # Below is a request that includes all optional parameters - # results = CertificationCampaignsApi(api_client).start_generate_campaign_template(id) - print("The response of CertificationCampaignsApi->start_generate_campaign_template:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationCampaignsApi->start_generate_campaign_template: %s\n" % e) + id = '2c9180835d191a86015d28455b4a2329' # str | ID of the campaign template to use for generation. # str | ID of the campaign template to use for generation. + try: + # Generate a Campaign from Template + + results = CertificationCampaignsApi(api_client).start_generate_campaign_template(id=id) + # Below is a request that includes all optional parameters + # results = CertificationCampaignsApi(api_client).start_generate_campaign_template(id) + print("The response of CertificationCampaignsApi->start_generate_campaign_template:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationCampaignsApi->start_generate_campaign_template: %s\n" % e) - path: /campaigns/{id} method: PATCH xCodeSample: @@ -2373,24 +2305,23 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.json_patch_operation import JsonPatchOperation from sailpoint.v3.models.slim_campaign import SlimCampaign - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808571bcfcf80171c23e4b4221fc' # str | ID of the campaign template being modified. # str | ID of the campaign template being modified. - json_patch_operation = '''[{op=replace, path=/name, value=This field has been updated!}, {op=copy, from=/name, path=/description}]''' # List[JsonPatchOperation] | A list of campaign update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The fields that can be patched differ based on the status of the campaign. When the campaign is in the *STAGED* status, you can patch these fields: * name * description * recommendationsEnabled * deadline * emailNotificationEnabled * autoRevokeAllowed When the campaign is in the *ACTIVE* status, you can patch these fields: * deadline - try: - # Update a Campaign - new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) - results = CertificationCampaignsApi(api_client).update_campaign(id=id, json_patch_operation=new_json_patch_operation) - # Below is a request that includes all optional parameters - # results = CertificationCampaignsApi(api_client).update_campaign(id, new_json_patch_operation) - print("The response of CertificationCampaignsApi->update_campaign:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationCampaignsApi->update_campaign: %s\n" % e) + id = '2c91808571bcfcf80171c23e4b4221fc' # str | ID of the campaign template being modified. # str | ID of the campaign template being modified. + json_patch_operation = '''[{op=replace, path=/name, value=This field has been updated!}, {op=copy, from=/name, path=/description}]''' # List[JsonPatchOperation] | A list of campaign update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The fields that can be patched differ based on the status of the campaign. When the campaign is in the *STAGED* status, you can patch these fields: * name * description * recommendationsEnabled * deadline * emailNotificationEnabled * autoRevokeAllowed When the campaign is in the *ACTIVE* status, you can patch these fields: * deadline + try: + # Update a Campaign + new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) + results = CertificationCampaignsApi(api_client).update_campaign(id=id, json_patch_operation=new_json_patch_operation) + # Below is a request that includes all optional parameters + # results = CertificationCampaignsApi(api_client).update_campaign(id, new_json_patch_operation) + print("The response of CertificationCampaignsApi->update_campaign:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationCampaignsApi->update_campaign: %s\n" % e) - path: /certification-tasks/{id} method: GET xCodeSample: @@ -2400,23 +2331,22 @@ from sailpoint.v3.api.certifications_api import CertificationsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.certification_task import CertificationTask - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '63b32151-26c0-42f4-9299-8898dc1c9daa' # str | The task ID # str | The task ID - try: - # Certification Task by ID - - results = CertificationsApi(api_client).get_certification_task(id=id) - # Below is a request that includes all optional parameters - # results = CertificationsApi(api_client).get_certification_task(id) - print("The response of CertificationsApi->get_certification_task:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationsApi->get_certification_task: %s\n" % e) + id = '63b32151-26c0-42f4-9299-8898dc1c9daa' # str | The task ID # str | The task ID + try: + # Certification Task by ID + + results = CertificationsApi(api_client).get_certification_task(id=id) + # Below is a request that includes all optional parameters + # results = CertificationsApi(api_client).get_certification_task(id) + print("The response of CertificationsApi->get_certification_task:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationsApi->get_certification_task: %s\n" % e) - path: /certifications/{id} method: GET xCodeSample: @@ -2426,23 +2356,22 @@ from sailpoint.v3.api.certifications_api import CertificationsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.identity_certification_dto import IdentityCertificationDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The certification id # str | The certification id - try: - # Identity Certification by ID - - results = CertificationsApi(api_client).get_identity_certification(id=id) - # Below is a request that includes all optional parameters - # results = CertificationsApi(api_client).get_identity_certification(id) - print("The response of CertificationsApi->get_identity_certification:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationsApi->get_identity_certification: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The certification id # str | The certification id + try: + # Identity Certification by ID + + results = CertificationsApi(api_client).get_identity_certification(id=id) + # Below is a request that includes all optional parameters + # results = CertificationsApi(api_client).get_identity_certification(id) + print("The response of CertificationsApi->get_identity_certification:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationsApi->get_identity_certification: %s\n" % e) - path: /certifications/{certificationId}/access-review-items/{itemId}/permissions method: GET xCodeSample: @@ -2452,28 +2381,27 @@ from sailpoint.v3.api.certifications_api import CertificationsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.permission_dto import PermissionDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - certification_id = 'ef38f94347e94562b5bb8424a56397d8' # str | The certification ID # str | The certification ID - item_id = '2c91808671bcbab40171bd945d961227' # str | The certification item ID # str | The certification item ID - filters = 'target eq \"SYS.OBJAUTH2\"' # 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: **target**: *eq, sw* **rights**: *ca* Supported composite operators: *and, or* All field values (second filter operands) are case-insensitive for this API. Only a single *and* or *or* composite filter operator may be used. It must also be used between a target filter and a rights filter, not between 2 filters for the same field. For example, the following is valid: `?filters=rights+ca+(%22CREATE%22)+and+target+eq+%22SYS.OBJAUTH2%22` The following is invalid: 1?filters=rights+ca+(%22CREATE%22)+and+rights+ca+(%SELECT%22)1 (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: **target**: *eq, sw* **rights**: *ca* Supported composite operators: *and, or* All field values (second filter operands) are case-insensitive for this API. Only a single *and* or *or* composite filter operator may be used. It must also be used between a target filter and a rights filter, not between 2 filters for the same field. For example, the following is valid: `?filters=rights+ca+(%22CREATE%22)+and+target+eq+%22SYS.OBJAUTH2%22` The following is invalid: 1?filters=rights+ca+(%22CREATE%22)+and+rights+ca+(%SELECT%22)1 (optional) - 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) - try: - # Permissions for Entitlement Certification Item - - results = CertificationsApi(api_client).get_identity_certification_item_permissions(certification_id=certification_id, item_id=item_id) - # Below is a request that includes all optional parameters - # results = CertificationsApi(api_client).get_identity_certification_item_permissions(certification_id, item_id, filters, limit, offset, count) - print("The response of CertificationsApi->get_identity_certification_item_permissions:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationsApi->get_identity_certification_item_permissions: %s\n" % e) + certification_id = 'ef38f94347e94562b5bb8424a56397d8' # str | The certification ID # str | The certification ID + item_id = '2c91808671bcbab40171bd945d961227' # str | The certification item ID # str | The certification item ID + filters = 'target eq \"SYS.OBJAUTH2\"' # 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: **target**: *eq, sw* **rights**: *ca* Supported composite operators: *and, or* All field values (second filter operands) are case-insensitive for this API. Only a single *and* or *or* composite filter operator may be used. It must also be used between a target filter and a rights filter, not between 2 filters for the same field. For example, the following is valid: `?filters=rights+ca+(%22CREATE%22)+and+target+eq+%22SYS.OBJAUTH2%22` The following is invalid: 1?filters=rights+ca+(%22CREATE%22)+and+rights+ca+(%SELECT%22)1 (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: **target**: *eq, sw* **rights**: *ca* Supported composite operators: *and, or* All field values (second filter operands) are case-insensitive for this API. Only a single *and* or *or* composite filter operator may be used. It must also be used between a target filter and a rights filter, not between 2 filters for the same field. For example, the following is valid: `?filters=rights+ca+(%22CREATE%22)+and+target+eq+%22SYS.OBJAUTH2%22` The following is invalid: 1?filters=rights+ca+(%22CREATE%22)+and+rights+ca+(%SELECT%22)1 (optional) + 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) + try: + # Permissions for Entitlement Certification Item + + results = CertificationsApi(api_client).get_identity_certification_item_permissions(certification_id=certification_id, item_id=item_id) + # Below is a request that includes all optional parameters + # results = CertificationsApi(api_client).get_identity_certification_item_permissions(certification_id, item_id, filters, limit, offset, count) + print("The response of CertificationsApi->get_identity_certification_item_permissions:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationsApi->get_identity_certification_item_permissions: %s\n" % e) - path: /certification-tasks method: GET xCodeSample: @@ -2483,27 +2411,26 @@ from sailpoint.v3.api.certifications_api import CertificationsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.certification_task import CertificationTask - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - reviewer_identity = 'Ada.1de82e55078344' # str | The ID of reviewer identity. *me* indicates the current user. (optional) # str | The ID of reviewer identity. *me* indicates the current user. (optional) - 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 = 'type eq \"ADMIN_REASSIGN\"' # 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* **targetId**: *eq, in* **type**: *eq, in* (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* **targetId**: *eq, in* **type**: *eq, in* (optional) - try: - # List of Pending Certification Tasks - - results = CertificationsApi(api_client).get_pending_certification_tasks() - # Below is a request that includes all optional parameters - # results = CertificationsApi(api_client).get_pending_certification_tasks(reviewer_identity, limit, offset, count, filters) - print("The response of CertificationsApi->get_pending_certification_tasks:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationsApi->get_pending_certification_tasks: %s\n" % e) + reviewer_identity = 'Ada.1de82e55078344' # str | The ID of reviewer identity. *me* indicates the current user. (optional) # str | The ID of reviewer identity. *me* indicates the current user. (optional) + 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 = 'type eq \"ADMIN_REASSIGN\"' # 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* **targetId**: *eq, in* **type**: *eq, in* (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* **targetId**: *eq, in* **type**: *eq, in* (optional) + try: + # List of Pending Certification Tasks + + results = CertificationsApi(api_client).get_pending_certification_tasks() + # Below is a request that includes all optional parameters + # results = CertificationsApi(api_client).get_pending_certification_tasks(reviewer_identity, limit, offset, count, filters) + print("The response of CertificationsApi->get_pending_certification_tasks:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationsApi->get_pending_certification_tasks: %s\n" % e) - path: /certifications/{id}/reviewers method: GET xCodeSample: @@ -2513,28 +2440,27 @@ from sailpoint.v3.api.certifications_api import CertificationsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.identity_reference_with_name_and_email import IdentityReferenceWithNameAndEmail - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The certification ID # str | The certification ID - 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 \"Bob\"' # 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, sw* **email**: *eq, 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* **name**: *eq, sw* **email**: *eq, sw* (optional) - sorters = 'name' # 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: **name, email** (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: **name, email** (optional) - try: - # List of Reviewers for certification - - results = CertificationsApi(api_client).list_certification_reviewers(id=id) - # Below is a request that includes all optional parameters - # results = CertificationsApi(api_client).list_certification_reviewers(id, limit, offset, count, filters, sorters) - print("The response of CertificationsApi->list_certification_reviewers:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationsApi->list_certification_reviewers: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The certification ID # str | The certification ID + 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 \"Bob\"' # 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, sw* **email**: *eq, 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* **name**: *eq, sw* **email**: *eq, sw* (optional) + sorters = 'name' # 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: **name, email** (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: **name, email** (optional) + try: + # List of Reviewers for certification + + results = CertificationsApi(api_client).list_certification_reviewers(id=id) + # Below is a request that includes all optional parameters + # results = CertificationsApi(api_client).list_certification_reviewers(id, limit, offset, count, filters, sorters) + print("The response of CertificationsApi->list_certification_reviewers:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationsApi->list_certification_reviewers: %s\n" % e) - path: /certifications/{id}/access-review-items method: GET xCodeSample: @@ -2544,31 +2470,30 @@ from sailpoint.v3.api.certifications_api import CertificationsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.access_review_item import AccessReviewItem - from pprint import pprint - from sailpoint.configuration import Configuration - configuration = Configuration() - - - with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The identity campaign certification ID # str | The identity campaign certification ID - 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 = 'id eq \"ef38f94347e94562b5bb8424a56397d8\"' # 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* **type**: *eq* **access.type**: *eq* **completed**: *eq, ne* **identitySummary.id**: *eq, in* **identitySummary.name**: *eq, sw* **access.id**: *eq, in* **access.name**: *eq, sw* **entitlement.sourceName**: *eq, sw* **accessProfile.sourceName**: *eq, 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* **type**: *eq* **access.type**: *eq* **completed**: *eq, ne* **identitySummary.id**: *eq, in* **identitySummary.name**: *eq, sw* **access.id**: *eq, in* **access.name**: *eq, sw* **entitlement.sourceName**: *eq, sw* **accessProfile.sourceName**: *eq, sw* (optional) - sorters = 'access.name,-accessProfile.sourceName' # 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: **identitySummary.name, access.name, access.type, entitlement.sourceName, accessProfile.sourceName** (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: **identitySummary.name, access.name, access.type, entitlement.sourceName, accessProfile.sourceName** (optional) - entitlements = 'identityEntitlement' # str | Filter results to view access review items that pertain to any of the specified comma-separated entitlement IDs. An error will occur if this param is used with **access-profiles** or **roles** as only one of these query params can be used at a time. (optional) # str | Filter results to view access review items that pertain to any of the specified comma-separated entitlement IDs. An error will occur if this param is used with **access-profiles** or **roles** as only one of these query params can be used at a time. (optional) - access_profiles = 'accessProfile1' # str | Filter results to view access review items that pertain to any of the specified comma-separated access-profle IDs. An error will occur if this param is used with **entitlements** or **roles** as only one of these query params can be used at a time. (optional) # str | Filter results to view access review items that pertain to any of the specified comma-separated access-profle IDs. An error will occur if this param is used with **entitlements** or **roles** as only one of these query params can be used at a time. (optional) - roles = 'userRole' # str | Filter results to view access review items that pertain to any of the specified comma-separated role IDs. An error will occur if this param is used with **entitlements** or **access-profiles** as only one of these query params can be used at a time. (optional) # str | Filter results to view access review items that pertain to any of the specified comma-separated role IDs. An error will occur if this param is used with **entitlements** or **access-profiles** as only one of these query params can be used at a time. (optional) - try: - # List of Access Review Items - - results = CertificationsApi(api_client).list_identity_access_review_items(id=id) - # Below is a request that includes all optional parameters - # results = CertificationsApi(api_client).list_identity_access_review_items(id, limit, offset, count, filters, sorters, entitlements, access_profiles, roles) - print("The response of CertificationsApi->list_identity_access_review_items:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationsApi->list_identity_access_review_items: %s\n" % e) + from sailpoint.configuration import Configuration + configuration = Configuration() + + + with ApiClient(configuration) as api_client: + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The identity campaign certification ID # str | The identity campaign certification ID + 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 = 'id eq \"ef38f94347e94562b5bb8424a56397d8\"' # 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* **type**: *eq* **access.type**: *eq* **completed**: *eq, ne* **identitySummary.id**: *eq, in* **identitySummary.name**: *eq, sw* **access.id**: *eq, in* **access.name**: *eq, sw* **entitlement.sourceName**: *eq, sw* **accessProfile.sourceName**: *eq, 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* **type**: *eq* **access.type**: *eq* **completed**: *eq, ne* **identitySummary.id**: *eq, in* **identitySummary.name**: *eq, sw* **access.id**: *eq, in* **access.name**: *eq, sw* **entitlement.sourceName**: *eq, sw* **accessProfile.sourceName**: *eq, sw* (optional) + sorters = 'access.name,-accessProfile.sourceName' # 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: **identitySummary.name, access.name, access.type, entitlement.sourceName, accessProfile.sourceName** (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: **identitySummary.name, access.name, access.type, entitlement.sourceName, accessProfile.sourceName** (optional) + entitlements = 'identityEntitlement' # str | Filter results to view access review items that pertain to any of the specified comma-separated entitlement IDs. An error will occur if this param is used with **access-profiles** or **roles** as only one of these query params can be used at a time. (optional) # str | Filter results to view access review items that pertain to any of the specified comma-separated entitlement IDs. An error will occur if this param is used with **access-profiles** or **roles** as only one of these query params can be used at a time. (optional) + access_profiles = 'accessProfile1' # str | Filter results to view access review items that pertain to any of the specified comma-separated access-profle IDs. An error will occur if this param is used with **entitlements** or **roles** as only one of these query params can be used at a time. (optional) # str | Filter results to view access review items that pertain to any of the specified comma-separated access-profle IDs. An error will occur if this param is used with **entitlements** or **roles** as only one of these query params can be used at a time. (optional) + roles = 'userRole' # str | Filter results to view access review items that pertain to any of the specified comma-separated role IDs. An error will occur if this param is used with **entitlements** or **access-profiles** as only one of these query params can be used at a time. (optional) # str | Filter results to view access review items that pertain to any of the specified comma-separated role IDs. An error will occur if this param is used with **entitlements** or **access-profiles** as only one of these query params can be used at a time. (optional) + try: + # List of Access Review Items + + results = CertificationsApi(api_client).list_identity_access_review_items(id=id) + # Below is a request that includes all optional parameters + # results = CertificationsApi(api_client).list_identity_access_review_items(id, limit, offset, count, filters, sorters, entitlements, access_profiles, roles) + print("The response of CertificationsApi->list_identity_access_review_items:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationsApi->list_identity_access_review_items: %s\n" % e) - path: /certifications method: GET xCodeSample: @@ -2578,28 +2503,27 @@ from sailpoint.v3.api.certifications_api import CertificationsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.identity_certification_dto import IdentityCertificationDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - reviewer_identity = 'me' # str | Reviewer's identity. *me* indicates the current user. (optional) # str | Reviewer's identity. *me* indicates the current user. (optional) - 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 = 'id eq \"ef38f94347e94562b5bb8424a56397d8\"' # 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* **campaign.id**: *eq, in* **phase**: *eq* **completed**: *eq* (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* **campaign.id**: *eq, in* **phase**: *eq* **completed**: *eq* (optional) - sorters = 'name,due' # 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: **name, due, signed** (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: **name, due, signed** (optional) - try: - # List Identity Campaign Certifications - - results = CertificationsApi(api_client).list_identity_certifications() - # Below is a request that includes all optional parameters - # results = CertificationsApi(api_client).list_identity_certifications(reviewer_identity, limit, offset, count, filters, sorters) - print("The response of CertificationsApi->list_identity_certifications:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationsApi->list_identity_certifications: %s\n" % e) + reviewer_identity = 'me' # str | Reviewer's identity. *me* indicates the current user. (optional) # str | Reviewer's identity. *me* indicates the current user. (optional) + 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 = 'id eq \"ef38f94347e94562b5bb8424a56397d8\"' # 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* **campaign.id**: *eq, in* **phase**: *eq* **completed**: *eq* (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* **campaign.id**: *eq, in* **phase**: *eq* **completed**: *eq* (optional) + sorters = 'name,due' # 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: **name, due, signed** (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: **name, due, signed** (optional) + try: + # List Identity Campaign Certifications + + results = CertificationsApi(api_client).list_identity_certifications() + # Below is a request that includes all optional parameters + # results = CertificationsApi(api_client).list_identity_certifications(reviewer_identity, limit, offset, count, filters, sorters) + print("The response of CertificationsApi->list_identity_certifications:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationsApi->list_identity_certifications: %s\n" % e) - path: /certifications/{id}/decide method: POST xCodeSample: @@ -2610,24 +2534,23 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.identity_certification_dto import IdentityCertificationDto from sailpoint.v3.models.review_decision import ReviewDecision - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the identity campaign certification on which to make decisions # str | The ID of the identity campaign certification on which to make decisions - review_decision = '''[{id=ef38f94347e94562b5bb8424a56396b5, decision=APPROVE, bulk=true, comments=This user still needs access to this source.}, {id=ef38f94347e94562b5bb8424a56397d8, decision=APPROVE, bulk=true, comments=This user still needs access to this source too.}]''' # List[ReviewDecision] | A non-empty array of decisions to be made. - try: - # Decide on a Certification Item - new_review_decision = ReviewDecision.from_json(review_decision) - results = CertificationsApi(api_client).make_identity_decision(id=id, review_decision=new_review_decision) - # Below is a request that includes all optional parameters - # results = CertificationsApi(api_client).make_identity_decision(id, new_review_decision) - print("The response of CertificationsApi->make_identity_decision:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationsApi->make_identity_decision: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the identity campaign certification on which to make decisions # str | The ID of the identity campaign certification on which to make decisions + review_decision = '''[{id=ef38f94347e94562b5bb8424a56396b5, decision=APPROVE, bulk=true, comments=This user still needs access to this source.}, {id=ef38f94347e94562b5bb8424a56397d8, decision=APPROVE, bulk=true, comments=This user still needs access to this source too.}]''' # List[ReviewDecision] | A non-empty array of decisions to be made. + try: + # Decide on a Certification Item + new_review_decision = ReviewDecision.from_json(review_decision) + results = CertificationsApi(api_client).make_identity_decision(id=id, review_decision=new_review_decision) + # Below is a request that includes all optional parameters + # results = CertificationsApi(api_client).make_identity_decision(id, new_review_decision) + print("The response of CertificationsApi->make_identity_decision:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationsApi->make_identity_decision: %s\n" % e) - path: /certifications/{id}/reassign method: POST xCodeSample: @@ -2638,14 +2561,13 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.identity_certification_dto import IdentityCertificationDto from sailpoint.v3.models.review_reassign import ReviewReassign - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The identity campaign certification ID # str | The identity campaign certification ID - review_reassign = '''{ + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The identity campaign certification ID # str | The identity campaign certification ID + review_reassign = '''{ "reason" : "reassigned for some reason", "reassignTo" : "ef38f94347e94562b5bb8424a56397d8", "reassign" : [ { @@ -2656,16 +2578,16 @@ "type" : "ITEM" } ] }''' # ReviewReassign | - try: - # Reassign Identities or Items - new_review_reassign = ReviewReassign.from_json(review_reassign) - results = CertificationsApi(api_client).reassign_identity_certifications(id=id, review_reassign=new_review_reassign) - # Below is a request that includes all optional parameters - # results = CertificationsApi(api_client).reassign_identity_certifications(id, new_review_reassign) - print("The response of CertificationsApi->reassign_identity_certifications:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationsApi->reassign_identity_certifications: %s\n" % e) + try: + # Reassign Identities or Items + new_review_reassign = ReviewReassign.from_json(review_reassign) + results = CertificationsApi(api_client).reassign_identity_certifications(id=id, review_reassign=new_review_reassign) + # Below is a request that includes all optional parameters + # results = CertificationsApi(api_client).reassign_identity_certifications(id, new_review_reassign) + print("The response of CertificationsApi->reassign_identity_certifications:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationsApi->reassign_identity_certifications: %s\n" % e) - path: /certifications/{id}/sign-off method: POST xCodeSample: @@ -2675,23 +2597,22 @@ from sailpoint.v3.api.certifications_api import CertificationsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.identity_certification_dto import IdentityCertificationDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The identity campaign certification ID # str | The identity campaign certification ID - try: - # Finalize Identity Certification Decisions - - results = CertificationsApi(api_client).sign_off_identity_certification(id=id) - # Below is a request that includes all optional parameters - # results = CertificationsApi(api_client).sign_off_identity_certification(id) - print("The response of CertificationsApi->sign_off_identity_certification:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationsApi->sign_off_identity_certification: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The identity campaign certification ID # str | The identity campaign certification ID + try: + # Finalize Identity Certification Decisions + + results = CertificationsApi(api_client).sign_off_identity_certification(id=id) + # Below is a request that includes all optional parameters + # results = CertificationsApi(api_client).sign_off_identity_certification(id) + print("The response of CertificationsApi->sign_off_identity_certification:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationsApi->sign_off_identity_certification: %s\n" % e) - path: /certifications/{id}/reassign-async method: POST xCodeSample: @@ -2702,14 +2623,13 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.certification_task import CertificationTask from sailpoint.v3.models.review_reassign import ReviewReassign - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The identity campaign certification ID # str | The identity campaign certification ID - review_reassign = '''{ + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The identity campaign certification ID # str | The identity campaign certification ID + review_reassign = '''{ "reason" : "reassigned for some reason", "reassignTo" : "ef38f94347e94562b5bb8424a56397d8", "reassign" : [ { @@ -2720,16 +2640,16 @@ "type" : "ITEM" } ] }''' # ReviewReassign | - try: - # Reassign Certifications Asynchronously - new_review_reassign = ReviewReassign.from_json(review_reassign) - results = CertificationsApi(api_client).submit_reassign_certs_async(id=id, review_reassign=new_review_reassign) - # Below is a request that includes all optional parameters - # results = CertificationsApi(api_client).submit_reassign_certs_async(id, new_review_reassign) - print("The response of CertificationsApi->submit_reassign_certs_async:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationsApi->submit_reassign_certs_async: %s\n" % e) + try: + # Reassign Certifications Asynchronously + new_review_reassign = ReviewReassign.from_json(review_reassign) + results = CertificationsApi(api_client).submit_reassign_certs_async(id=id, review_reassign=new_review_reassign) + # Below is a request that includes all optional parameters + # results = CertificationsApi(api_client).submit_reassign_certs_async(id, new_review_reassign) + print("The response of CertificationsApi->submit_reassign_certs_async:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationsApi->submit_reassign_certs_async: %s\n" % e) - path: /certifications/{id}/access-summaries/{type} method: GET xCodeSample: @@ -2739,29 +2659,28 @@ from sailpoint.v3.api.certification_summaries_api import CertificationSummariesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.access_summary import AccessSummary - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The identity campaign certification ID # str | The identity campaign certification ID - type = 'ACCESS_PROFILE' # str | The type of access review item to retrieve summaries for # str | The type of access review item to retrieve summaries for - 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 = 'access.id eq \"ef38f94347e94562b5bb8424a56397d8\"' # 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: **completed**: *eq, ne* **access.id**: *eq, in* **access.name**: *eq, sw* **entitlement.sourceName**: *eq, sw* **accessProfile.sourceName**: *eq, 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: **completed**: *eq, ne* **access.id**: *eq, in* **access.name**: *eq, sw* **entitlement.sourceName**: *eq, sw* **accessProfile.sourceName**: *eq, sw* (optional) - sorters = 'access.name' # 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: **access.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: **access.name** (optional) - try: - # Access Summaries - - results = CertificationSummariesApi(api_client).get_identity_access_summaries(id=id, type=type) - # Below is a request that includes all optional parameters - # results = CertificationSummariesApi(api_client).get_identity_access_summaries(id, type, limit, offset, count, filters, sorters) - print("The response of CertificationSummariesApi->get_identity_access_summaries:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationSummariesApi->get_identity_access_summaries: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The identity campaign certification ID # str | The identity campaign certification ID + type = 'ACCESS_PROFILE' # str | The type of access review item to retrieve summaries for # str | The type of access review item to retrieve summaries for + 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 = 'access.id eq \"ef38f94347e94562b5bb8424a56397d8\"' # 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: **completed**: *eq, ne* **access.id**: *eq, in* **access.name**: *eq, sw* **entitlement.sourceName**: *eq, sw* **accessProfile.sourceName**: *eq, 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: **completed**: *eq, ne* **access.id**: *eq, in* **access.name**: *eq, sw* **entitlement.sourceName**: *eq, sw* **accessProfile.sourceName**: *eq, sw* (optional) + sorters = 'access.name' # 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: **access.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: **access.name** (optional) + try: + # Access Summaries + + results = CertificationSummariesApi(api_client).get_identity_access_summaries(id=id, type=type) + # Below is a request that includes all optional parameters + # results = CertificationSummariesApi(api_client).get_identity_access_summaries(id, type, limit, offset, count, filters, sorters) + print("The response of CertificationSummariesApi->get_identity_access_summaries:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationSummariesApi->get_identity_access_summaries: %s\n" % e) - path: /certifications/{id}/decision-summary method: GET xCodeSample: @@ -2771,24 +2690,23 @@ from sailpoint.v3.api.certification_summaries_api import CertificationSummariesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.identity_cert_decision_summary import IdentityCertDecisionSummary - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The certification ID # str | The certification ID - filters = 'identitySummary.id eq \"ef38f94347e94562b5bb8424a56397d8\"' # 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: **identitySummary.id**: *eq, in* (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: **identitySummary.id**: *eq, in* (optional) - try: - # Summary of Certification Decisions - - results = CertificationSummariesApi(api_client).get_identity_decision_summary(id=id) - # Below is a request that includes all optional parameters - # results = CertificationSummariesApi(api_client).get_identity_decision_summary(id, filters) - print("The response of CertificationSummariesApi->get_identity_decision_summary:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationSummariesApi->get_identity_decision_summary: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The certification ID # str | The certification ID + filters = 'identitySummary.id eq \"ef38f94347e94562b5bb8424a56397d8\"' # 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: **identitySummary.id**: *eq, in* (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: **identitySummary.id**: *eq, in* (optional) + try: + # Summary of Certification Decisions + + results = CertificationSummariesApi(api_client).get_identity_decision_summary(id=id) + # Below is a request that includes all optional parameters + # results = CertificationSummariesApi(api_client).get_identity_decision_summary(id, filters) + print("The response of CertificationSummariesApi->get_identity_decision_summary:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationSummariesApi->get_identity_decision_summary: %s\n" % e) - path: /certifications/{id}/identity-summaries method: GET xCodeSample: @@ -2798,28 +2716,27 @@ from sailpoint.v3.api.certification_summaries_api import CertificationSummariesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.certification_identity_summary import CertificationIdentitySummary - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The identity campaign certification ID # str | The identity campaign certification ID - 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 = 'id eq \"ef38f94347e94562b5bb8424a56397d8\"' # 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* **completed**: *eq, ne* **name**: *eq, 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* **completed**: *eq, ne* **name**: *eq, sw* (optional) - sorters = 'name' # 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: **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: **name** (optional) - try: - # Identity Summaries for Campaign Certification - - results = CertificationSummariesApi(api_client).get_identity_summaries(id=id) - # Below is a request that includes all optional parameters - # results = CertificationSummariesApi(api_client).get_identity_summaries(id, limit, offset, count, filters, sorters) - print("The response of CertificationSummariesApi->get_identity_summaries:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationSummariesApi->get_identity_summaries: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The identity campaign certification ID # str | The identity campaign certification ID + 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 = 'id eq \"ef38f94347e94562b5bb8424a56397d8\"' # 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* **completed**: *eq, ne* **name**: *eq, 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* **completed**: *eq, ne* **name**: *eq, sw* (optional) + sorters = 'name' # 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: **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: **name** (optional) + try: + # Identity Summaries for Campaign Certification + + results = CertificationSummariesApi(api_client).get_identity_summaries(id=id) + # Below is a request that includes all optional parameters + # results = CertificationSummariesApi(api_client).get_identity_summaries(id, limit, offset, count, filters, sorters) + print("The response of CertificationSummariesApi->get_identity_summaries:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationSummariesApi->get_identity_summaries: %s\n" % e) - path: /certifications/{id}/identity-summaries/{identitySummaryId} method: GET xCodeSample: @@ -2829,24 +2746,23 @@ from sailpoint.v3.api.certification_summaries_api import CertificationSummariesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.certification_identity_summary import CertificationIdentitySummary - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The identity campaign certification ID # str | The identity campaign certification ID - identity_summary_id = '2c91808772a504f50172a9540e501ba8' # str | The identity summary ID # str | The identity summary ID - try: - # Summary for Identity - - results = CertificationSummariesApi(api_client).get_identity_summary(id=id, identity_summary_id=identity_summary_id) - # Below is a request that includes all optional parameters - # results = CertificationSummariesApi(api_client).get_identity_summary(id, identity_summary_id) - print("The response of CertificationSummariesApi->get_identity_summary:\n") - pprint(results) - except Exception as e: - print("Exception when calling CertificationSummariesApi->get_identity_summary: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The identity campaign certification ID # str | The identity campaign certification ID + identity_summary_id = '2c91808772a504f50172a9540e501ba8' # str | The identity summary ID # str | The identity summary ID + try: + # Summary for Identity + + results = CertificationSummariesApi(api_client).get_identity_summary(id=id, identity_summary_id=identity_summary_id) + # Below is a request that includes all optional parameters + # results = CertificationSummariesApi(api_client).get_identity_summary(id, identity_summary_id) + print("The response of CertificationSummariesApi->get_identity_summary:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling CertificationSummariesApi->get_identity_summary: %s\n" % e) - path: /configuration-hub/object-mappings/{sourceOrg} method: POST xCodeSample: @@ -2857,30 +2773,29 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.object_mapping_request import ObjectMappingRequest from sailpoint.v3.models.object_mapping_response import ObjectMappingResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_org = 'source-org' # str | The name of the source org. # str | The name of the source org. - object_mapping_request = '''{ + source_org = 'source-org' # str | The name of the source org. # str | The name of the source org. + object_mapping_request = '''{ "targetValue" : "My New Governance Group Name", "jsonPath" : "$.name", "sourceValue" : "My Governance Group Name", "enabled" : false, "objectType" : "IDENTITY" }''' # ObjectMappingRequest | The object mapping request body. - try: - # Creates an object mapping - new_object_mapping_request = ObjectMappingRequest.from_json(object_mapping_request) - results = ConfigurationHubApi(api_client).create_object_mapping(source_org=source_org, object_mapping_request=new_object_mapping_request) - # Below is a request that includes all optional parameters - # results = ConfigurationHubApi(api_client).create_object_mapping(source_org, new_object_mapping_request) - print("The response of ConfigurationHubApi->create_object_mapping:\n") - pprint(results) - except Exception as e: - print("Exception when calling ConfigurationHubApi->create_object_mapping: %s\n" % e) + try: + # Creates an object mapping + new_object_mapping_request = ObjectMappingRequest.from_json(object_mapping_request) + results = ConfigurationHubApi(api_client).create_object_mapping(source_org=source_org, object_mapping_request=new_object_mapping_request) + # Below is a request that includes all optional parameters + # results = ConfigurationHubApi(api_client).create_object_mapping(source_org, new_object_mapping_request) + print("The response of ConfigurationHubApi->create_object_mapping:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ConfigurationHubApi->create_object_mapping: %s\n" % e) - path: /configuration-hub/object-mappings/{sourceOrg}/bulk-create method: POST xCodeSample: @@ -2891,14 +2806,13 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.object_mapping_bulk_create_request import ObjectMappingBulkCreateRequest from sailpoint.v3.models.object_mapping_bulk_create_response import ObjectMappingBulkCreateResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_org = 'source-org' # str | The name of the source org. # str | The name of the source org. - object_mapping_bulk_create_request = '''{ + source_org = 'source-org' # str | The name of the source org. # str | The name of the source org. + object_mapping_bulk_create_request = '''{ "newObjectsMappings" : [ { "targetValue" : "My New Governance Group Name", "jsonPath" : "$.name", @@ -2913,16 +2827,16 @@ "objectType" : "IDENTITY" } ] }''' # ObjectMappingBulkCreateRequest | The bulk create object mapping request body. - try: - # Bulk creates object mappings - new_object_mapping_bulk_create_request = ObjectMappingBulkCreateRequest.from_json(object_mapping_bulk_create_request) - results = ConfigurationHubApi(api_client).create_object_mappings(source_org=source_org, object_mapping_bulk_create_request=new_object_mapping_bulk_create_request) - # Below is a request that includes all optional parameters - # results = ConfigurationHubApi(api_client).create_object_mappings(source_org, new_object_mapping_bulk_create_request) - print("The response of ConfigurationHubApi->create_object_mappings:\n") - pprint(results) - except Exception as e: - print("Exception when calling ConfigurationHubApi->create_object_mappings: %s\n" % e) + try: + # Bulk creates object mappings + new_object_mapping_bulk_create_request = ObjectMappingBulkCreateRequest.from_json(object_mapping_bulk_create_request) + results = ConfigurationHubApi(api_client).create_object_mappings(source_org=source_org, object_mapping_bulk_create_request=new_object_mapping_bulk_create_request) + # Below is a request that includes all optional parameters + # results = ConfigurationHubApi(api_client).create_object_mappings(source_org, new_object_mapping_bulk_create_request) + print("The response of ConfigurationHubApi->create_object_mappings:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ConfigurationHubApi->create_object_mappings: %s\n" % e) - path: /configuration-hub/backups/uploads method: POST xCodeSample: @@ -2932,24 +2846,23 @@ from sailpoint.v3.api.configuration_hub_api import ConfigurationHubApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.backup_response import BackupResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - data = None # bytearray | JSON file containing the objects to be imported. # bytearray | JSON file containing the objects to be imported. - name = 'name_example' # str | Name that will be assigned to the uploaded configuration file. # str | Name that will be assigned to the uploaded configuration file. - try: - # Upload a Configuration - - results = ConfigurationHubApi(api_client).create_uploaded_configuration(data=data, name=name) - # Below is a request that includes all optional parameters - # results = ConfigurationHubApi(api_client).create_uploaded_configuration(data, name) - print("The response of ConfigurationHubApi->create_uploaded_configuration:\n") - pprint(results) - except Exception as e: - print("Exception when calling ConfigurationHubApi->create_uploaded_configuration: %s\n" % e) + data = None # bytearray | JSON file containing the objects to be imported. # bytearray | JSON file containing the objects to be imported. + name = 'name_example' # str | Name that will be assigned to the uploaded configuration file. # str | Name that will be assigned to the uploaded configuration file. + try: + # Upload a Configuration + + results = ConfigurationHubApi(api_client).create_uploaded_configuration(data=data, name=name) + # Below is a request that includes all optional parameters + # results = ConfigurationHubApi(api_client).create_uploaded_configuration(data, name) + print("The response of ConfigurationHubApi->create_uploaded_configuration:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ConfigurationHubApi->create_uploaded_configuration: %s\n" % e) - path: /configuration-hub/object-mappings/{sourceOrg}/{objectMappingId} method: DELETE xCodeSample: @@ -2958,22 +2871,21 @@ source: | from sailpoint.v3.api.configuration_hub_api import ConfigurationHubApi from sailpoint.v3.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_org = 'source-org' # str | The name of the source org. # str | The name of the source org. - object_mapping_id = '3d6e0144-963f-4bd6-8d8d-d77b4e507ce4' # str | The id of the object mapping to be deleted. # str | The id of the object mapping to be deleted. - try: - # Deletes an object mapping - - ConfigurationHubApi(api_client).delete_object_mapping(source_org=source_org, object_mapping_id=object_mapping_id) - # Below is a request that includes all optional parameters - # ConfigurationHubApi(api_client).delete_object_mapping(source_org, object_mapping_id) - except Exception as e: - print("Exception when calling ConfigurationHubApi->delete_object_mapping: %s\n" % e) + source_org = 'source-org' # str | The name of the source org. # str | The name of the source org. + object_mapping_id = '3d6e0144-963f-4bd6-8d8d-d77b4e507ce4' # str | The id of the object mapping to be deleted. # str | The id of the object mapping to be deleted. + try: + # Deletes an object mapping + + ConfigurationHubApi(api_client).delete_object_mapping(source_org=source_org, object_mapping_id=object_mapping_id) + # Below is a request that includes all optional parameters + # ConfigurationHubApi(api_client).delete_object_mapping(source_org, object_mapping_id) + except Exception as e: + print("Exception when calling ConfigurationHubApi->delete_object_mapping: %s\n" % e) - path: /configuration-hub/backups/uploads/{id} method: DELETE xCodeSample: @@ -2982,21 +2894,20 @@ source: | from sailpoint.v3.api.configuration_hub_api import ConfigurationHubApi from sailpoint.v3.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '3d0fe04b-57df-4a46-a83b-8f04b0f9d10b' # str | The id of the uploaded configuration. # str | The id of the uploaded configuration. - try: - # Delete an Uploaded Configuration - - ConfigurationHubApi(api_client).delete_uploaded_configuration(id=id) - # Below is a request that includes all optional parameters - # ConfigurationHubApi(api_client).delete_uploaded_configuration(id) - except Exception as e: - print("Exception when calling ConfigurationHubApi->delete_uploaded_configuration: %s\n" % e) + id = '3d0fe04b-57df-4a46-a83b-8f04b0f9d10b' # str | The id of the uploaded configuration. # str | The id of the uploaded configuration. + try: + # Delete an Uploaded Configuration + + ConfigurationHubApi(api_client).delete_uploaded_configuration(id=id) + # Below is a request that includes all optional parameters + # ConfigurationHubApi(api_client).delete_uploaded_configuration(id) + except Exception as e: + print("Exception when calling ConfigurationHubApi->delete_uploaded_configuration: %s\n" % e) - path: /configuration-hub/object-mappings/{sourceOrg} method: GET xCodeSample: @@ -3006,23 +2917,22 @@ from sailpoint.v3.api.configuration_hub_api import ConfigurationHubApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.object_mapping_response import ObjectMappingResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_org = 'source-org' # str | The name of the source org. # str | The name of the source org. - try: - # Gets list of object mappings - - results = ConfigurationHubApi(api_client).get_object_mappings(source_org=source_org) - # Below is a request that includes all optional parameters - # results = ConfigurationHubApi(api_client).get_object_mappings(source_org) - print("The response of ConfigurationHubApi->get_object_mappings:\n") - pprint(results) - except Exception as e: - print("Exception when calling ConfigurationHubApi->get_object_mappings: %s\n" % e) + source_org = 'source-org' # str | The name of the source org. # str | The name of the source org. + try: + # Gets list of object mappings + + results = ConfigurationHubApi(api_client).get_object_mappings(source_org=source_org) + # Below is a request that includes all optional parameters + # results = ConfigurationHubApi(api_client).get_object_mappings(source_org) + print("The response of ConfigurationHubApi->get_object_mappings:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ConfigurationHubApi->get_object_mappings: %s\n" % e) - path: /configuration-hub/backups/uploads/{id} method: GET xCodeSample: @@ -3032,23 +2942,22 @@ from sailpoint.v3.api.configuration_hub_api import ConfigurationHubApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.backup_response import BackupResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '3d0fe04b-57df-4a46-a83b-8f04b0f9d10b' # str | The id of the uploaded configuration. # str | The id of the uploaded configuration. - try: - # Get an Uploaded Configuration - - results = ConfigurationHubApi(api_client).get_uploaded_configuration(id=id) - # Below is a request that includes all optional parameters - # results = ConfigurationHubApi(api_client).get_uploaded_configuration(id) - print("The response of ConfigurationHubApi->get_uploaded_configuration:\n") - pprint(results) - except Exception as e: - print("Exception when calling ConfigurationHubApi->get_uploaded_configuration: %s\n" % e) + id = '3d0fe04b-57df-4a46-a83b-8f04b0f9d10b' # str | The id of the uploaded configuration. # str | The id of the uploaded configuration. + try: + # Get an Uploaded Configuration + + results = ConfigurationHubApi(api_client).get_uploaded_configuration(id=id) + # Below is a request that includes all optional parameters + # results = ConfigurationHubApi(api_client).get_uploaded_configuration(id) + print("The response of ConfigurationHubApi->get_uploaded_configuration:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ConfigurationHubApi->get_uploaded_configuration: %s\n" % e) - path: /configuration-hub/backups/uploads method: GET xCodeSample: @@ -3058,23 +2967,22 @@ from sailpoint.v3.api.configuration_hub_api import ConfigurationHubApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.backup_response import BackupResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - filters = 'status eq \"COMPLETE\"' # 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: **status**: *eq* (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: **status**: *eq* (optional) - try: - # List Uploaded Configurations - - results = ConfigurationHubApi(api_client).list_uploaded_configurations() - # Below is a request that includes all optional parameters - # results = ConfigurationHubApi(api_client).list_uploaded_configurations(filters) - print("The response of ConfigurationHubApi->list_uploaded_configurations:\n") - pprint(results) - except Exception as e: - print("Exception when calling ConfigurationHubApi->list_uploaded_configurations: %s\n" % e) + filters = 'status eq \"COMPLETE\"' # 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: **status**: *eq* (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: **status**: *eq* (optional) + try: + # List Uploaded Configurations + + results = ConfigurationHubApi(api_client).list_uploaded_configurations() + # Below is a request that includes all optional parameters + # results = ConfigurationHubApi(api_client).list_uploaded_configurations(filters) + print("The response of ConfigurationHubApi->list_uploaded_configurations:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ConfigurationHubApi->list_uploaded_configurations: %s\n" % e) - path: /configuration-hub/object-mappings/{sourceOrg}/bulk-patch method: POST xCodeSample: @@ -3085,14 +2993,13 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.object_mapping_bulk_patch_request import ObjectMappingBulkPatchRequest from sailpoint.v3.models.object_mapping_bulk_patch_response import ObjectMappingBulkPatchResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_org = 'source-org' # str | The name of the source org. # str | The name of the source org. - object_mapping_bulk_patch_request = '''{ + source_org = 'source-org' # str | The name of the source org. # str | The name of the source org. + object_mapping_bulk_patch_request = '''{ "patches" : { "603b1a61-d03d-4ed1-864f-a508fbd1995d" : [ { "op" : "replace", @@ -3106,16 +3013,16 @@ } ] } }''' # ObjectMappingBulkPatchRequest | The object mapping request body. - try: - # Bulk updates object mappings - new_object_mapping_bulk_patch_request = ObjectMappingBulkPatchRequest.from_json(object_mapping_bulk_patch_request) - results = ConfigurationHubApi(api_client).update_object_mappings(source_org=source_org, object_mapping_bulk_patch_request=new_object_mapping_bulk_patch_request) - # Below is a request that includes all optional parameters - # results = ConfigurationHubApi(api_client).update_object_mappings(source_org, new_object_mapping_bulk_patch_request) - print("The response of ConfigurationHubApi->update_object_mappings:\n") - pprint(results) - except Exception as e: - print("Exception when calling ConfigurationHubApi->update_object_mappings: %s\n" % e) + try: + # Bulk updates object mappings + new_object_mapping_bulk_patch_request = ObjectMappingBulkPatchRequest.from_json(object_mapping_bulk_patch_request) + results = ConfigurationHubApi(api_client).update_object_mappings(source_org=source_org, object_mapping_bulk_patch_request=new_object_mapping_bulk_patch_request) + # Below is a request that includes all optional parameters + # results = ConfigurationHubApi(api_client).update_object_mappings(source_org, new_object_mapping_bulk_patch_request) + print("The response of ConfigurationHubApi->update_object_mappings:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ConfigurationHubApi->update_object_mappings: %s\n" % e) - path: /connectors method: POST xCodeSample: @@ -3126,29 +3033,28 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.v3_connector_dto import V3ConnectorDto from sailpoint.v3.models.v3_create_connector_dto import V3CreateConnectorDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - v3_create_connector_dto = '''{ + v3_create_connector_dto = '''{ "name" : "custom connector", "directConnect" : true, "className" : "sailpoint.connector.OpenConnectorAdapter", "type" : "custom connector type", "status" : "RELEASED" }''' # V3CreateConnectorDto | - try: - # Create Custom Connector - new_v3_create_connector_dto = V3CreateConnectorDto.from_json(v3_create_connector_dto) - results = ConnectorsApi(api_client).create_custom_connector(v3_create_connector_dto=new_v3_create_connector_dto) - # Below is a request that includes all optional parameters - # results = ConnectorsApi(api_client).create_custom_connector(new_v3_create_connector_dto) - print("The response of ConnectorsApi->create_custom_connector:\n") - pprint(results) - except Exception as e: - print("Exception when calling ConnectorsApi->create_custom_connector: %s\n" % e) + try: + # Create Custom Connector + new_v3_create_connector_dto = V3CreateConnectorDto.from_json(v3_create_connector_dto) + results = ConnectorsApi(api_client).create_custom_connector(v3_create_connector_dto=new_v3_create_connector_dto) + # Below is a request that includes all optional parameters + # results = ConnectorsApi(api_client).create_custom_connector(new_v3_create_connector_dto) + print("The response of ConnectorsApi->create_custom_connector:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ConnectorsApi->create_custom_connector: %s\n" % e) - path: /connectors/{scriptName} method: DELETE xCodeSample: @@ -3157,21 +3063,20 @@ source: | from sailpoint.v3.api.connectors_api import ConnectorsApi from sailpoint.v3.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - script_name = 'aScriptName' # str | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. # str | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. - try: - # Delete Connector by Script Name - - ConnectorsApi(api_client).delete_custom_connector(script_name=script_name) - # Below is a request that includes all optional parameters - # ConnectorsApi(api_client).delete_custom_connector(script_name) - except Exception as e: - print("Exception when calling ConnectorsApi->delete_custom_connector: %s\n" % e) + script_name = 'aScriptName' # str | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. # str | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. + try: + # Delete Connector by Script Name + + ConnectorsApi(api_client).delete_custom_connector(script_name=script_name) + # Below is a request that includes all optional parameters + # ConnectorsApi(api_client).delete_custom_connector(script_name) + except Exception as e: + print("Exception when calling ConnectorsApi->delete_custom_connector: %s\n" % e) - path: /connectors/{scriptName} method: GET xCodeSample: @@ -3181,24 +3086,23 @@ from sailpoint.v3.api.connectors_api import ConnectorsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.connector_detail import ConnectorDetail - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - script_name = 'aScriptName' # str | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. # str | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. - locale = 'de' # str | The locale to apply to the config. If no viable locale is given, it will default to \"en\" (optional) # str | The locale to apply to the config. If no viable locale is given, it will default to \"en\" (optional) - try: - # Get Connector by Script Name - - results = ConnectorsApi(api_client).get_connector(script_name=script_name) - # Below is a request that includes all optional parameters - # results = ConnectorsApi(api_client).get_connector(script_name, locale) - print("The response of ConnectorsApi->get_connector:\n") - pprint(results) - except Exception as e: - print("Exception when calling ConnectorsApi->get_connector: %s\n" % e) + script_name = 'aScriptName' # str | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. # str | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. + locale = 'de' # str | The locale to apply to the config. If no viable locale is given, it will default to \"en\" (optional) # str | The locale to apply to the config. If no viable locale is given, it will default to \"en\" (optional) + try: + # Get Connector by Script Name + + results = ConnectorsApi(api_client).get_connector(script_name=script_name) + # Below is a request that includes all optional parameters + # results = ConnectorsApi(api_client).get_connector(script_name, locale) + print("The response of ConnectorsApi->get_connector:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ConnectorsApi->get_connector: %s\n" % e) - path: /connectors method: GET xCodeSample: @@ -3208,27 +3112,26 @@ from sailpoint.v3.api.connectors_api import ConnectorsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.v3_connector_dto import V3ConnectorDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - filters = 'directConnect eq \"true\"' # 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: **name**: *sw, co* **type**: *sw, co, eq* **directConnect**: *eq* **category**: *eq* **features**: *ca* **labels**: *ca* (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: **name**: *sw, co* **type**: *sw, co, eq* **directConnect**: *eq* **category**: *eq* **features**: *ca* **labels**: *ca* (optional) - 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) - locale = 'de' # str | The locale to apply to the config. If no viable locale is given, it will default to \"en\" (optional) # str | The locale to apply to the config. If no viable locale is given, it will default to \"en\" (optional) - try: - # Get Connector List - - results = ConnectorsApi(api_client).get_connector_list() - # Below is a request that includes all optional parameters - # results = ConnectorsApi(api_client).get_connector_list(filters, limit, offset, count, locale) - print("The response of ConnectorsApi->get_connector_list:\n") - pprint(results) - except Exception as e: - print("Exception when calling ConnectorsApi->get_connector_list: %s\n" % e) + filters = 'directConnect eq \"true\"' # 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: **name**: *sw, co* **type**: *sw, co, eq* **directConnect**: *eq* **category**: *eq* **features**: *ca* **labels**: *ca* (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: **name**: *sw, co* **type**: *sw, co, eq* **directConnect**: *eq* **category**: *eq* **features**: *ca* **labels**: *ca* (optional) + 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) + locale = 'de' # str | The locale to apply to the config. If no viable locale is given, it will default to \"en\" (optional) # str | The locale to apply to the config. If no viable locale is given, it will default to \"en\" (optional) + try: + # Get Connector List + + results = ConnectorsApi(api_client).get_connector_list() + # Below is a request that includes all optional parameters + # results = ConnectorsApi(api_client).get_connector_list(filters, limit, offset, count, locale) + print("The response of ConnectorsApi->get_connector_list:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ConnectorsApi->get_connector_list: %s\n" % e) - path: /connectors/{scriptName}/source-config method: GET xCodeSample: @@ -3237,23 +3140,22 @@ source: | from sailpoint.v3.api.connectors_api import ConnectorsApi from sailpoint.v3.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - script_name = 'aScriptName' # str | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. # str | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. - try: - # Get Connector Source Configuration - - results = ConnectorsApi(api_client).get_connector_source_config(script_name=script_name) - # Below is a request that includes all optional parameters - # results = ConnectorsApi(api_client).get_connector_source_config(script_name) - print("The response of ConnectorsApi->get_connector_source_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling ConnectorsApi->get_connector_source_config: %s\n" % e) + script_name = 'aScriptName' # str | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. # str | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. + try: + # Get Connector Source Configuration + + results = ConnectorsApi(api_client).get_connector_source_config(script_name=script_name) + # Below is a request that includes all optional parameters + # results = ConnectorsApi(api_client).get_connector_source_config(script_name) + print("The response of ConnectorsApi->get_connector_source_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ConnectorsApi->get_connector_source_config: %s\n" % e) - path: /connectors/{scriptName}/source-template method: GET xCodeSample: @@ -3262,23 +3164,22 @@ source: | from sailpoint.v3.api.connectors_api import ConnectorsApi from sailpoint.v3.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - script_name = 'aScriptName' # str | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. # str | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. - try: - # Get Connector Source Template - - results = ConnectorsApi(api_client).get_connector_source_template(script_name=script_name) - # Below is a request that includes all optional parameters - # results = ConnectorsApi(api_client).get_connector_source_template(script_name) - print("The response of ConnectorsApi->get_connector_source_template:\n") - pprint(results) - except Exception as e: - print("Exception when calling ConnectorsApi->get_connector_source_template: %s\n" % e) + script_name = 'aScriptName' # str | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. # str | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. + try: + # Get Connector Source Template + + results = ConnectorsApi(api_client).get_connector_source_template(script_name=script_name) + # Below is a request that includes all optional parameters + # results = ConnectorsApi(api_client).get_connector_source_template(script_name) + print("The response of ConnectorsApi->get_connector_source_template:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ConnectorsApi->get_connector_source_template: %s\n" % e) - path: /connectors/{scriptName}/translations/{locale} method: GET xCodeSample: @@ -3287,24 +3188,23 @@ source: | from sailpoint.v3.api.connectors_api import ConnectorsApi from sailpoint.v3.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - script_name = 'aScriptName' # str | The scriptName value of the connector. Scriptname is the unique id generated at connector creation. # str | The scriptName value of the connector. Scriptname is the unique id generated at connector creation. - locale = 'de' # str | The locale to apply to the config. If no viable locale is given, it will default to \"en\" # str | The locale to apply to the config. If no viable locale is given, it will default to \"en\" - try: - # Get Connector Translations - - results = ConnectorsApi(api_client).get_connector_translations(script_name=script_name, locale=locale) - # Below is a request that includes all optional parameters - # results = ConnectorsApi(api_client).get_connector_translations(script_name, locale) - print("The response of ConnectorsApi->get_connector_translations:\n") - pprint(results) - except Exception as e: - print("Exception when calling ConnectorsApi->get_connector_translations: %s\n" % e) + script_name = 'aScriptName' # str | The scriptName value of the connector. Scriptname is the unique id generated at connector creation. # str | The scriptName value of the connector. Scriptname is the unique id generated at connector creation. + locale = 'de' # str | The locale to apply to the config. If no viable locale is given, it will default to \"en\" # str | The locale to apply to the config. If no viable locale is given, it will default to \"en\" + try: + # Get Connector Translations + + results = ConnectorsApi(api_client).get_connector_translations(script_name=script_name, locale=locale) + # Below is a request that includes all optional parameters + # results = ConnectorsApi(api_client).get_connector_translations(script_name, locale) + print("The response of ConnectorsApi->get_connector_translations:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ConnectorsApi->get_connector_translations: %s\n" % e) - path: /connectors/{scriptName}/source-config method: PUT xCodeSample: @@ -3314,24 +3214,23 @@ from sailpoint.v3.api.connectors_api import ConnectorsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.update_detail import UpdateDetail - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - script_name = 'aScriptName' # str | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. # str | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. - file = None # bytearray | connector source config xml file # bytearray | connector source config xml file - try: - # Update Connector Source Configuration - - results = ConnectorsApi(api_client).put_connector_source_config(script_name=script_name, file=file) - # Below is a request that includes all optional parameters - # results = ConnectorsApi(api_client).put_connector_source_config(script_name, file) - print("The response of ConnectorsApi->put_connector_source_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling ConnectorsApi->put_connector_source_config: %s\n" % e) + script_name = 'aScriptName' # str | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. # str | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. + file = None # bytearray | connector source config xml file # bytearray | connector source config xml file + try: + # Update Connector Source Configuration + + results = ConnectorsApi(api_client).put_connector_source_config(script_name=script_name, file=file) + # Below is a request that includes all optional parameters + # results = ConnectorsApi(api_client).put_connector_source_config(script_name, file) + print("The response of ConnectorsApi->put_connector_source_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ConnectorsApi->put_connector_source_config: %s\n" % e) - path: /connectors/{scriptName}/source-template method: PUT xCodeSample: @@ -3341,24 +3240,23 @@ from sailpoint.v3.api.connectors_api import ConnectorsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.update_detail import UpdateDetail - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - script_name = 'aScriptName' # str | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. # str | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. - file = None # bytearray | connector source template xml file # bytearray | connector source template xml file - try: - # Update Connector Source Template - - results = ConnectorsApi(api_client).put_connector_source_template(script_name=script_name, file=file) - # Below is a request that includes all optional parameters - # results = ConnectorsApi(api_client).put_connector_source_template(script_name, file) - print("The response of ConnectorsApi->put_connector_source_template:\n") - pprint(results) - except Exception as e: - print("Exception when calling ConnectorsApi->put_connector_source_template: %s\n" % e) + script_name = 'aScriptName' # str | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. # str | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. + file = None # bytearray | connector source template xml file # bytearray | connector source template xml file + try: + # Update Connector Source Template + + results = ConnectorsApi(api_client).put_connector_source_template(script_name=script_name, file=file) + # Below is a request that includes all optional parameters + # results = ConnectorsApi(api_client).put_connector_source_template(script_name, file) + print("The response of ConnectorsApi->put_connector_source_template:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ConnectorsApi->put_connector_source_template: %s\n" % e) - path: /connectors/{scriptName}/translations/{locale} method: PUT xCodeSample: @@ -3368,24 +3266,23 @@ from sailpoint.v3.api.connectors_api import ConnectorsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.update_detail import UpdateDetail - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - script_name = 'aScriptName' # str | The scriptName value of the connector. Scriptname is the unique id generated at connector creation. # str | The scriptName value of the connector. Scriptname is the unique id generated at connector creation. - locale = 'de' # str | The locale to apply to the config. If no viable locale is given, it will default to \"en\" # str | The locale to apply to the config. If no viable locale is given, it will default to \"en\" - try: - # Update Connector Translations - - results = ConnectorsApi(api_client).put_connector_translations(script_name=script_name, locale=locale) - # Below is a request that includes all optional parameters - # results = ConnectorsApi(api_client).put_connector_translations(script_name, locale) - print("The response of ConnectorsApi->put_connector_translations:\n") - pprint(results) - except Exception as e: - print("Exception when calling ConnectorsApi->put_connector_translations: %s\n" % e) + script_name = 'aScriptName' # str | The scriptName value of the connector. Scriptname is the unique id generated at connector creation. # str | The scriptName value of the connector. Scriptname is the unique id generated at connector creation. + locale = 'de' # str | The locale to apply to the config. If no viable locale is given, it will default to \"en\" # str | The locale to apply to the config. If no viable locale is given, it will default to \"en\" + try: + # Update Connector Translations + + results = ConnectorsApi(api_client).put_connector_translations(script_name=script_name, locale=locale) + # Below is a request that includes all optional parameters + # results = ConnectorsApi(api_client).put_connector_translations(script_name, locale) + print("The response of ConnectorsApi->put_connector_translations:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ConnectorsApi->put_connector_translations: %s\n" % e) - path: /connectors/{scriptName} method: PATCH xCodeSample: @@ -3396,24 +3293,23 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.connector_detail import ConnectorDetail from sailpoint.v3.models.json_patch_operation import JsonPatchOperation - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - script_name = 'aScriptName' # str | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. # str | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. - json_patch_operation = '''[sailpoint.v3.JsonPatchOperation()]''' # List[JsonPatchOperation] | A list of connector detail update operations - try: - # Update Connector by Script Name - new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) - results = ConnectorsApi(api_client).update_connector(script_name=script_name, json_patch_operation=new_json_patch_operation) - # Below is a request that includes all optional parameters - # results = ConnectorsApi(api_client).update_connector(script_name, new_json_patch_operation) - print("The response of ConnectorsApi->update_connector:\n") - pprint(results) - except Exception as e: - print("Exception when calling ConnectorsApi->update_connector: %s\n" % e) + script_name = 'aScriptName' # str | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. # str | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. + json_patch_operation = '''[sailpoint.v3.JsonPatchOperation()]''' # List[JsonPatchOperation] | A list of connector detail update operations + try: + # Update Connector by Script Name + new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) + results = ConnectorsApi(api_client).update_connector(script_name=script_name, json_patch_operation=new_json_patch_operation) + # Below is a request that includes all optional parameters + # results = ConnectorsApi(api_client).update_connector(script_name, new_json_patch_operation) + print("The response of ConnectorsApi->update_connector:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ConnectorsApi->update_connector: %s\n" % e) - path: /auth-org/network-config method: POST xCodeSample: @@ -3423,27 +3319,26 @@ from sailpoint.v3.api.global_tenant_security_settings_api import GlobalTenantSecuritySettingsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.network_configuration import NetworkConfiguration - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - network_configuration = '''{ + network_configuration = '''{ "range" : [ "1.3.7.2", "255.255.255.252/30" ], "whitelisted" : true, "geolocation" : [ "CA", "FR", "HT" ] }''' # NetworkConfiguration | Network configuration creation request body. The following constraints ensure the request body conforms to certain logical guidelines, which are: 1. Each string element in the range array must be a valid ip address or ip subnet mask. 2. Each string element in the geolocation array must be 2 characters, and they can only be uppercase letters. - try: - # Create security network configuration. - new_network_configuration = NetworkConfiguration.from_json(network_configuration) - results = GlobalTenantSecuritySettingsApi(api_client).create_auth_org_network_config(network_configuration=new_network_configuration) - # Below is a request that includes all optional parameters - # results = GlobalTenantSecuritySettingsApi(api_client).create_auth_org_network_config(new_network_configuration) - print("The response of GlobalTenantSecuritySettingsApi->create_auth_org_network_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling GlobalTenantSecuritySettingsApi->create_auth_org_network_config: %s\n" % e) + try: + # Create security network configuration. + new_network_configuration = NetworkConfiguration.from_json(network_configuration) + results = GlobalTenantSecuritySettingsApi(api_client).create_auth_org_network_config(network_configuration=new_network_configuration) + # Below is a request that includes all optional parameters + # results = GlobalTenantSecuritySettingsApi(api_client).create_auth_org_network_config(new_network_configuration) + print("The response of GlobalTenantSecuritySettingsApi->create_auth_org_network_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling GlobalTenantSecuritySettingsApi->create_auth_org_network_config: %s\n" % e) - path: /auth-org/lockout-config method: GET xCodeSample: @@ -3453,22 +3348,21 @@ from sailpoint.v3.api.global_tenant_security_settings_api import GlobalTenantSecuritySettingsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.lockout_configuration import LockoutConfiguration - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - try: - # Get Auth Org Lockout Configuration. - - results = GlobalTenantSecuritySettingsApi(api_client).get_auth_org_lockout_config() - # Below is a request that includes all optional parameters - # results = GlobalTenantSecuritySettingsApi(api_client).get_auth_org_lockout_config() - print("The response of GlobalTenantSecuritySettingsApi->get_auth_org_lockout_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling GlobalTenantSecuritySettingsApi->get_auth_org_lockout_config: %s\n" % e) + try: + # Get Auth Org Lockout Configuration. + + results = GlobalTenantSecuritySettingsApi(api_client).get_auth_org_lockout_config() + # Below is a request that includes all optional parameters + # results = GlobalTenantSecuritySettingsApi(api_client).get_auth_org_lockout_config() + print("The response of GlobalTenantSecuritySettingsApi->get_auth_org_lockout_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling GlobalTenantSecuritySettingsApi->get_auth_org_lockout_config: %s\n" % e) - path: /auth-org/network-config method: GET xCodeSample: @@ -3478,22 +3372,21 @@ from sailpoint.v3.api.global_tenant_security_settings_api import GlobalTenantSecuritySettingsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.network_configuration import NetworkConfiguration - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - try: - # Get security network configuration. - - results = GlobalTenantSecuritySettingsApi(api_client).get_auth_org_network_config() - # Below is a request that includes all optional parameters - # results = GlobalTenantSecuritySettingsApi(api_client).get_auth_org_network_config() - print("The response of GlobalTenantSecuritySettingsApi->get_auth_org_network_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling GlobalTenantSecuritySettingsApi->get_auth_org_network_config: %s\n" % e) + try: + # Get security network configuration. + + results = GlobalTenantSecuritySettingsApi(api_client).get_auth_org_network_config() + # Below is a request that includes all optional parameters + # results = GlobalTenantSecuritySettingsApi(api_client).get_auth_org_network_config() + print("The response of GlobalTenantSecuritySettingsApi->get_auth_org_network_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling GlobalTenantSecuritySettingsApi->get_auth_org_network_config: %s\n" % e) - path: /auth-org/service-provider-config method: GET xCodeSample: @@ -3503,22 +3396,21 @@ from sailpoint.v3.api.global_tenant_security_settings_api import GlobalTenantSecuritySettingsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.service_provider_configuration import ServiceProviderConfiguration - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - try: - # Get Service Provider Configuration. - - results = GlobalTenantSecuritySettingsApi(api_client).get_auth_org_service_provider_config() - # Below is a request that includes all optional parameters - # results = GlobalTenantSecuritySettingsApi(api_client).get_auth_org_service_provider_config() - print("The response of GlobalTenantSecuritySettingsApi->get_auth_org_service_provider_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling GlobalTenantSecuritySettingsApi->get_auth_org_service_provider_config: %s\n" % e) + try: + # Get Service Provider Configuration. + + results = GlobalTenantSecuritySettingsApi(api_client).get_auth_org_service_provider_config() + # Below is a request that includes all optional parameters + # results = GlobalTenantSecuritySettingsApi(api_client).get_auth_org_service_provider_config() + print("The response of GlobalTenantSecuritySettingsApi->get_auth_org_service_provider_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling GlobalTenantSecuritySettingsApi->get_auth_org_service_provider_config: %s\n" % e) - path: /auth-org/session-config method: GET xCodeSample: @@ -3528,22 +3420,21 @@ from sailpoint.v3.api.global_tenant_security_settings_api import GlobalTenantSecuritySettingsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.session_configuration import SessionConfiguration - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - try: - # Get Auth Org Session Configuration. - - results = GlobalTenantSecuritySettingsApi(api_client).get_auth_org_session_config() - # Below is a request that includes all optional parameters - # results = GlobalTenantSecuritySettingsApi(api_client).get_auth_org_session_config() - print("The response of GlobalTenantSecuritySettingsApi->get_auth_org_session_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling GlobalTenantSecuritySettingsApi->get_auth_org_session_config: %s\n" % e) + try: + # Get Auth Org Session Configuration. + + results = GlobalTenantSecuritySettingsApi(api_client).get_auth_org_session_config() + # Below is a request that includes all optional parameters + # results = GlobalTenantSecuritySettingsApi(api_client).get_auth_org_session_config() + print("The response of GlobalTenantSecuritySettingsApi->get_auth_org_session_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling GlobalTenantSecuritySettingsApi->get_auth_org_session_config: %s\n" % e) - path: /auth-org/lockout-config method: PATCH xCodeSample: @@ -3554,23 +3445,22 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.json_patch_operation import JsonPatchOperation from sailpoint.v3.models.lockout_configuration import LockoutConfiguration - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - json_patch_operation = '''[{op=replace, path=/maximumAttempts, value=7,}, {op=add, path=/lockoutDuration, value=35}]''' # List[JsonPatchOperation] | A list of auth org lockout configuration update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Ensures that the patched Lockout Config conforms to certain logical guidelines, which are: `1. maximumAttempts >= 1 && maximumAttempts <= 15 2. lockoutDuration >= 5 && lockoutDuration <= 60 3. lockoutWindow >= 5 && lockoutDuration <= 60` - try: - # Update Auth Org Lockout Configuration - new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) - results = GlobalTenantSecuritySettingsApi(api_client).patch_auth_org_lockout_config(json_patch_operation=new_json_patch_operation) - # Below is a request that includes all optional parameters - # results = GlobalTenantSecuritySettingsApi(api_client).patch_auth_org_lockout_config(new_json_patch_operation) - print("The response of GlobalTenantSecuritySettingsApi->patch_auth_org_lockout_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling GlobalTenantSecuritySettingsApi->patch_auth_org_lockout_config: %s\n" % e) + json_patch_operation = '''[{op=replace, path=/maximumAttempts, value=7,}, {op=add, path=/lockoutDuration, value=35}]''' # List[JsonPatchOperation] | A list of auth org lockout configuration update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Ensures that the patched Lockout Config conforms to certain logical guidelines, which are: `1. maximumAttempts >= 1 && maximumAttempts <= 15 2. lockoutDuration >= 5 && lockoutDuration <= 60 3. lockoutWindow >= 5 && lockoutDuration <= 60` + try: + # Update Auth Org Lockout Configuration + new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) + results = GlobalTenantSecuritySettingsApi(api_client).patch_auth_org_lockout_config(json_patch_operation=new_json_patch_operation) + # Below is a request that includes all optional parameters + # results = GlobalTenantSecuritySettingsApi(api_client).patch_auth_org_lockout_config(new_json_patch_operation) + print("The response of GlobalTenantSecuritySettingsApi->patch_auth_org_lockout_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling GlobalTenantSecuritySettingsApi->patch_auth_org_lockout_config: %s\n" % e) - path: /auth-org/network-config method: PATCH xCodeSample: @@ -3581,23 +3471,22 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.json_patch_operation import JsonPatchOperation from sailpoint.v3.models.network_configuration import NetworkConfiguration - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - json_patch_operation = '''[{op=replace, path=/whitelisted, value=false,}, {op=add, path=/geolocation, value=[AF, HN, ES]}]''' # List[JsonPatchOperation] | A list of auth org network configuration update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Ensures that the patched Network Config conforms to certain logical guidelines, which are: 1. Each string element in the range array must be a valid ip address or ip subnet mask. 2. Each string element in the geolocation array must be 2 characters, and they can only be uppercase letters. - try: - # Update security network configuration. - new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) - results = GlobalTenantSecuritySettingsApi(api_client).patch_auth_org_network_config(json_patch_operation=new_json_patch_operation) - # Below is a request that includes all optional parameters - # results = GlobalTenantSecuritySettingsApi(api_client).patch_auth_org_network_config(new_json_patch_operation) - print("The response of GlobalTenantSecuritySettingsApi->patch_auth_org_network_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling GlobalTenantSecuritySettingsApi->patch_auth_org_network_config: %s\n" % e) + json_patch_operation = '''[{op=replace, path=/whitelisted, value=false,}, {op=add, path=/geolocation, value=[AF, HN, ES]}]''' # List[JsonPatchOperation] | A list of auth org network configuration update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Ensures that the patched Network Config conforms to certain logical guidelines, which are: 1. Each string element in the range array must be a valid ip address or ip subnet mask. 2. Each string element in the geolocation array must be 2 characters, and they can only be uppercase letters. + try: + # Update security network configuration. + new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) + results = GlobalTenantSecuritySettingsApi(api_client).patch_auth_org_network_config(json_patch_operation=new_json_patch_operation) + # Below is a request that includes all optional parameters + # results = GlobalTenantSecuritySettingsApi(api_client).patch_auth_org_network_config(new_json_patch_operation) + print("The response of GlobalTenantSecuritySettingsApi->patch_auth_org_network_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling GlobalTenantSecuritySettingsApi->patch_auth_org_network_config: %s\n" % e) - path: /auth-org/service-provider-config method: PATCH xCodeSample: @@ -3608,23 +3497,22 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.json_patch_operation import JsonPatchOperation from sailpoint.v3.models.service_provider_configuration import ServiceProviderConfiguration - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - json_patch_operation = '''[{op=replace, path=/enabled, value=true,}, {op=add, path=/federationProtocolDetails/0/jitConfiguration, value={enabled=true, sourceId=2c9180857377ed2901739c12a2da5ac8, sourceAttributeMappings={firstName=okta.firstName, lastName=okta.lastName, email=okta.email, employeeNumber=okta.employeeNumber}}}]''' # List[JsonPatchOperation] | A list of auth org service provider configuration update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Note: /federationProtocolDetails/0 is IdpDetails /federationProtocolDetails/1 is SpDetails Ensures that the patched ServiceProviderConfig conforms to certain logical guidelines, which are: 1. Do not add or remove any elements in the federation protocol details in the service provider configuration. 2. Do not modify, add, or delete the service provider details element in the federation protocol details. 3. If this is the first time the patched ServiceProviderConfig enables Remote IDP sign-in, it must also include IDPDetails. 4. If the patch enables Remote IDP sign in, the entityID in the IDPDetails cannot be null. IDPDetails must include an entityID. 5. Any JIT configuration update must be valid. Just in time configuration update must be valid when enabled. This includes: - A Source ID - Source attribute mappings - Source attribute maps have all the required key values (firstName, lastName, email) - try: - # Update Service Provider Configuration - new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) - results = GlobalTenantSecuritySettingsApi(api_client).patch_auth_org_service_provider_config(json_patch_operation=new_json_patch_operation) - # Below is a request that includes all optional parameters - # results = GlobalTenantSecuritySettingsApi(api_client).patch_auth_org_service_provider_config(new_json_patch_operation) - print("The response of GlobalTenantSecuritySettingsApi->patch_auth_org_service_provider_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling GlobalTenantSecuritySettingsApi->patch_auth_org_service_provider_config: %s\n" % e) + json_patch_operation = '''[{op=replace, path=/enabled, value=true,}, {op=add, path=/federationProtocolDetails/0/jitConfiguration, value={enabled=true, sourceId=2c9180857377ed2901739c12a2da5ac8, sourceAttributeMappings={firstName=okta.firstName, lastName=okta.lastName, email=okta.email, employeeNumber=okta.employeeNumber}}}]''' # List[JsonPatchOperation] | A list of auth org service provider configuration update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Note: /federationProtocolDetails/0 is IdpDetails /federationProtocolDetails/1 is SpDetails Ensures that the patched ServiceProviderConfig conforms to certain logical guidelines, which are: 1. Do not add or remove any elements in the federation protocol details in the service provider configuration. 2. Do not modify, add, or delete the service provider details element in the federation protocol details. 3. If this is the first time the patched ServiceProviderConfig enables Remote IDP sign-in, it must also include IDPDetails. 4. If the patch enables Remote IDP sign in, the entityID in the IDPDetails cannot be null. IDPDetails must include an entityID. 5. Any JIT configuration update must be valid. Just in time configuration update must be valid when enabled. This includes: - A Source ID - Source attribute mappings - Source attribute maps have all the required key values (firstName, lastName, email) + try: + # Update Service Provider Configuration + new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) + results = GlobalTenantSecuritySettingsApi(api_client).patch_auth_org_service_provider_config(json_patch_operation=new_json_patch_operation) + # Below is a request that includes all optional parameters + # results = GlobalTenantSecuritySettingsApi(api_client).patch_auth_org_service_provider_config(new_json_patch_operation) + print("The response of GlobalTenantSecuritySettingsApi->patch_auth_org_service_provider_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling GlobalTenantSecuritySettingsApi->patch_auth_org_service_provider_config: %s\n" % e) - path: /auth-org/session-config method: PATCH xCodeSample: @@ -3635,23 +3523,22 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.json_patch_operation import JsonPatchOperation from sailpoint.v3.models.session_configuration import SessionConfiguration - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - json_patch_operation = '''[{op=replace, path=/rememberMe, value=true,}, {op=add, path=/maxSessionTime, value=480}]''' # List[JsonPatchOperation] | A list of auth org session configuration update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Ensures that the patched Session Config conforms to certain logical guidelines, which are: `1. maxSessionTime >= 1 && maxSessionTime <= 10080 (1 week) 2. maxIdleTime >= 1 && maxIdleTime <= 1440 (1 day) 3. maxSessionTime must have a greater duration than maxIdleTime.` - try: - # Update Auth Org Session Configuration - new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) - results = GlobalTenantSecuritySettingsApi(api_client).patch_auth_org_session_config(json_patch_operation=new_json_patch_operation) - # Below is a request that includes all optional parameters - # results = GlobalTenantSecuritySettingsApi(api_client).patch_auth_org_session_config(new_json_patch_operation) - print("The response of GlobalTenantSecuritySettingsApi->patch_auth_org_session_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling GlobalTenantSecuritySettingsApi->patch_auth_org_session_config: %s\n" % e) + json_patch_operation = '''[{op=replace, path=/rememberMe, value=true,}, {op=add, path=/maxSessionTime, value=480}]''' # List[JsonPatchOperation] | A list of auth org session configuration update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Ensures that the patched Session Config conforms to certain logical guidelines, which are: `1. maxSessionTime >= 1 && maxSessionTime <= 10080 (1 week) 2. maxIdleTime >= 1 && maxIdleTime <= 1440 (1 day) 3. maxSessionTime must have a greater duration than maxIdleTime.` + try: + # Update Auth Org Session Configuration + new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) + results = GlobalTenantSecuritySettingsApi(api_client).patch_auth_org_session_config(json_patch_operation=new_json_patch_operation) + # Below is a request that includes all optional parameters + # results = GlobalTenantSecuritySettingsApi(api_client).patch_auth_org_session_config(new_json_patch_operation) + print("The response of GlobalTenantSecuritySettingsApi->patch_auth_org_session_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling GlobalTenantSecuritySettingsApi->patch_auth_org_session_config: %s\n" % e) - path: /identity-profiles method: POST xCodeSample: @@ -3661,13 +3548,12 @@ from sailpoint.v3.api.identity_profiles_api import IdentityProfilesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.identity_profile import IdentityProfile - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - identity_profile = '''{ + identity_profile = '''{ "owner" : { "name" : "William Wilson", "id" : "2c9180835d191a86015d28455b4b232a", @@ -3716,16 +3602,16 @@ "modified" : "2015-05-28T14:07:17Z", "id" : "id12345" }''' # IdentityProfile | - try: - # Create Identity Profile - new_identity_profile = IdentityProfile.from_json(identity_profile) - results = IdentityProfilesApi(api_client).create_identity_profile(identity_profile=new_identity_profile) - # Below is a request that includes all optional parameters - # results = IdentityProfilesApi(api_client).create_identity_profile(new_identity_profile) - print("The response of IdentityProfilesApi->create_identity_profile:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentityProfilesApi->create_identity_profile: %s\n" % e) + try: + # Create Identity Profile + new_identity_profile = IdentityProfile.from_json(identity_profile) + results = IdentityProfilesApi(api_client).create_identity_profile(identity_profile=new_identity_profile) + # Below is a request that includes all optional parameters + # results = IdentityProfilesApi(api_client).create_identity_profile(new_identity_profile) + print("The response of IdentityProfilesApi->create_identity_profile:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentityProfilesApi->create_identity_profile: %s\n" % e) - path: /identity-profiles/{identity-profile-id} method: DELETE xCodeSample: @@ -3735,23 +3621,22 @@ from sailpoint.v3.api.identity_profiles_api import IdentityProfilesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.task_result_simplified import TaskResultSimplified - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - identity_profile_id = 'ef38f94347e94562b5bb8424a56397d8' # str | Identity profile ID. # str | Identity profile ID. - try: - # Delete Identity Profile - - results = IdentityProfilesApi(api_client).delete_identity_profile(identity_profile_id=identity_profile_id) - # Below is a request that includes all optional parameters - # results = IdentityProfilesApi(api_client).delete_identity_profile(identity_profile_id) - print("The response of IdentityProfilesApi->delete_identity_profile:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentityProfilesApi->delete_identity_profile: %s\n" % e) + identity_profile_id = 'ef38f94347e94562b5bb8424a56397d8' # str | Identity profile ID. # str | Identity profile ID. + try: + # Delete Identity Profile + + results = IdentityProfilesApi(api_client).delete_identity_profile(identity_profile_id=identity_profile_id) + # Below is a request that includes all optional parameters + # results = IdentityProfilesApi(api_client).delete_identity_profile(identity_profile_id) + print("The response of IdentityProfilesApi->delete_identity_profile:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentityProfilesApi->delete_identity_profile: %s\n" % e) - path: /identity-profiles/bulk-delete method: POST xCodeSample: @@ -3761,23 +3646,22 @@ from sailpoint.v3.api.identity_profiles_api import IdentityProfilesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.task_result_simplified import TaskResultSimplified - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - request_body = '''['request_body_example']''' # List[str] | Identity Profile bulk delete request body. - try: - # Delete Identity Profiles - new_request_body = RequestBody.from_json(request_body) - results = IdentityProfilesApi(api_client).delete_identity_profiles(request_body=new_request_body) - # Below is a request that includes all optional parameters - # results = IdentityProfilesApi(api_client).delete_identity_profiles(new_request_body) - print("The response of IdentityProfilesApi->delete_identity_profiles:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentityProfilesApi->delete_identity_profiles: %s\n" % e) + request_body = '''['request_body_example']''' # List[str] | Identity Profile bulk delete request body. + try: + # Delete Identity Profiles + new_request_body = RequestBody.from_json(request_body) + results = IdentityProfilesApi(api_client).delete_identity_profiles(request_body=new_request_body) + # Below is a request that includes all optional parameters + # results = IdentityProfilesApi(api_client).delete_identity_profiles(new_request_body) + print("The response of IdentityProfilesApi->delete_identity_profiles:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentityProfilesApi->delete_identity_profiles: %s\n" % e) - path: /identity-profiles/export method: GET xCodeSample: @@ -3787,27 +3671,26 @@ from sailpoint.v3.api.identity_profiles_api import IdentityProfilesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.identity_profile_exported_object import IdentityProfileExportedObject - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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 = 'id eq \"ef38f94347e94562b5bb8424a56397d8\"' # 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, ne* **name**: *eq, ne* **priority**: *eq, ne* (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, ne* **name**: *eq, ne* **priority**: *eq, ne* (optional) - sorters = 'id,name' # 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: **id, name, priority** (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: **id, name, priority** (optional) - try: - # Export Identity Profiles - - results = IdentityProfilesApi(api_client).export_identity_profiles() - # Below is a request that includes all optional parameters - # results = IdentityProfilesApi(api_client).export_identity_profiles(limit, offset, count, filters, sorters) - print("The response of IdentityProfilesApi->export_identity_profiles:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentityProfilesApi->export_identity_profiles: %s\n" % e) + 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 = 'id eq \"ef38f94347e94562b5bb8424a56397d8\"' # 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, ne* **name**: *eq, ne* **priority**: *eq, ne* (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, ne* **name**: *eq, ne* **priority**: *eq, ne* (optional) + sorters = 'id,name' # 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: **id, name, priority** (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: **id, name, priority** (optional) + try: + # Export Identity Profiles + + results = IdentityProfilesApi(api_client).export_identity_profiles() + # Below is a request that includes all optional parameters + # results = IdentityProfilesApi(api_client).export_identity_profiles(limit, offset, count, filters, sorters) + print("The response of IdentityProfilesApi->export_identity_profiles:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentityProfilesApi->export_identity_profiles: %s\n" % e) - path: /identity-profiles/{identity-profile-id}/default-identity-attribute-config method: GET xCodeSample: @@ -3817,23 +3700,22 @@ from sailpoint.v3.api.identity_profiles_api import IdentityProfilesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.identity_attribute_config import IdentityAttributeConfig - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - identity_profile_id = '2b838de9-db9b-abcf-e646-d4f274ad4238' # str | The Identity Profile ID. # str | The Identity Profile ID. - try: - # Get default Identity Attribute Config - - results = IdentityProfilesApi(api_client).get_default_identity_attribute_config(identity_profile_id=identity_profile_id) - # Below is a request that includes all optional parameters - # results = IdentityProfilesApi(api_client).get_default_identity_attribute_config(identity_profile_id) - print("The response of IdentityProfilesApi->get_default_identity_attribute_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentityProfilesApi->get_default_identity_attribute_config: %s\n" % e) + identity_profile_id = '2b838de9-db9b-abcf-e646-d4f274ad4238' # str | The Identity Profile ID. # str | The Identity Profile ID. + try: + # Get default Identity Attribute Config + + results = IdentityProfilesApi(api_client).get_default_identity_attribute_config(identity_profile_id=identity_profile_id) + # Below is a request that includes all optional parameters + # results = IdentityProfilesApi(api_client).get_default_identity_attribute_config(identity_profile_id) + print("The response of IdentityProfilesApi->get_default_identity_attribute_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentityProfilesApi->get_default_identity_attribute_config: %s\n" % e) - path: /identity-profiles/{identity-profile-id} method: GET xCodeSample: @@ -3843,23 +3725,22 @@ from sailpoint.v3.api.identity_profiles_api import IdentityProfilesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.identity_profile import IdentityProfile - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - identity_profile_id = '2b838de9-db9b-abcf-e646-d4f274ad4238' # str | Identity profile ID. # str | Identity profile ID. - try: - # Get Identity Profile - - results = IdentityProfilesApi(api_client).get_identity_profile(identity_profile_id=identity_profile_id) - # Below is a request that includes all optional parameters - # results = IdentityProfilesApi(api_client).get_identity_profile(identity_profile_id) - print("The response of IdentityProfilesApi->get_identity_profile:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentityProfilesApi->get_identity_profile: %s\n" % e) + identity_profile_id = '2b838de9-db9b-abcf-e646-d4f274ad4238' # str | Identity profile ID. # str | Identity profile ID. + try: + # Get Identity Profile + + results = IdentityProfilesApi(api_client).get_identity_profile(identity_profile_id=identity_profile_id) + # Below is a request that includes all optional parameters + # results = IdentityProfilesApi(api_client).get_identity_profile(identity_profile_id) + print("The response of IdentityProfilesApi->get_identity_profile:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentityProfilesApi->get_identity_profile: %s\n" % e) - path: /identity-profiles/import method: POST xCodeSample: @@ -3870,23 +3751,22 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.identity_profile_exported_object import IdentityProfileExportedObject from sailpoint.v3.models.object_import_result import ObjectImportResult - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - identity_profile_exported_object = '''[sailpoint.v3.IdentityProfileExportedObject()]''' # List[IdentityProfileExportedObject] | Previously exported Identity Profiles. - try: - # Import Identity Profiles - new_identity_profile_exported_object = IdentityProfileExportedObject.from_json(identity_profile_exported_object) - results = IdentityProfilesApi(api_client).import_identity_profiles(identity_profile_exported_object=new_identity_profile_exported_object) - # Below is a request that includes all optional parameters - # results = IdentityProfilesApi(api_client).import_identity_profiles(new_identity_profile_exported_object) - print("The response of IdentityProfilesApi->import_identity_profiles:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentityProfilesApi->import_identity_profiles: %s\n" % e) + identity_profile_exported_object = '''[sailpoint.v3.IdentityProfileExportedObject()]''' # List[IdentityProfileExportedObject] | Previously exported Identity Profiles. + try: + # Import Identity Profiles + new_identity_profile_exported_object = IdentityProfileExportedObject.from_json(identity_profile_exported_object) + results = IdentityProfilesApi(api_client).import_identity_profiles(identity_profile_exported_object=new_identity_profile_exported_object) + # Below is a request that includes all optional parameters + # results = IdentityProfilesApi(api_client).import_identity_profiles(new_identity_profile_exported_object) + print("The response of IdentityProfilesApi->import_identity_profiles:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentityProfilesApi->import_identity_profiles: %s\n" % e) - path: /identity-profiles method: GET xCodeSample: @@ -3896,27 +3776,26 @@ from sailpoint.v3.api.identity_profiles_api import IdentityProfilesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.identity_profile import IdentityProfile - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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 = 'id eq \"ef38f94347e94562b5bb8424a56397d8\"' # 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, ne, ge, gt, in, le, sw* **name**: *eq, ne, ge, gt, in, le, sw* **priority**: *eq, ne* (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, ne, ge, gt, in, le, sw* **name**: *eq, ne, ge, gt, in, le, sw* **priority**: *eq, ne* (optional) - sorters = 'id,name' # 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: **id, name, priority, created, modified, owner.id, owner.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: **id, name, priority, created, modified, owner.id, owner.name** (optional) - try: - # List Identity Profiles - - results = IdentityProfilesApi(api_client).list_identity_profiles() - # Below is a request that includes all optional parameters - # results = IdentityProfilesApi(api_client).list_identity_profiles(limit, offset, count, filters, sorters) - print("The response of IdentityProfilesApi->list_identity_profiles:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentityProfilesApi->list_identity_profiles: %s\n" % e) + 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 = 'id eq \"ef38f94347e94562b5bb8424a56397d8\"' # 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, ne, ge, gt, in, le, sw* **name**: *eq, ne, ge, gt, in, le, sw* **priority**: *eq, ne* (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, ne, ge, gt, in, le, sw* **name**: *eq, ne, ge, gt, in, le, sw* **priority**: *eq, ne* (optional) + sorters = 'id,name' # 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: **id, name, priority, created, modified, owner.id, owner.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: **id, name, priority, created, modified, owner.id, owner.name** (optional) + try: + # List Identity Profiles + + results = IdentityProfilesApi(api_client).list_identity_profiles() + # Below is a request that includes all optional parameters + # results = IdentityProfilesApi(api_client).list_identity_profiles(limit, offset, count, filters, sorters) + print("The response of IdentityProfilesApi->list_identity_profiles:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentityProfilesApi->list_identity_profiles: %s\n" % e) - path: /identity-profiles/identity-preview method: POST xCodeSample: @@ -3927,13 +3806,12 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.identity_preview_request import IdentityPreviewRequest from sailpoint.v3.models.identity_preview_response import IdentityPreviewResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - identity_preview_request = '''{ + identity_preview_request = '''{ "identityId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", "identityAttributeConfig" : { "attributeTransforms" : [ { @@ -3960,16 +3838,16 @@ "enabled" : true } }''' # IdentityPreviewRequest | Identity Preview request body. - try: - # Generate Identity Profile Preview - new_identity_preview_request = IdentityPreviewRequest.from_json(identity_preview_request) - results = IdentityProfilesApi(api_client).show_identity_preview(identity_preview_request=new_identity_preview_request) - # Below is a request that includes all optional parameters - # results = IdentityProfilesApi(api_client).show_identity_preview(new_identity_preview_request) - print("The response of IdentityProfilesApi->show_identity_preview:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentityProfilesApi->show_identity_preview: %s\n" % e) + try: + # Generate Identity Profile Preview + new_identity_preview_request = IdentityPreviewRequest.from_json(identity_preview_request) + results = IdentityProfilesApi(api_client).show_identity_preview(identity_preview_request=new_identity_preview_request) + # Below is a request that includes all optional parameters + # results = IdentityProfilesApi(api_client).show_identity_preview(new_identity_preview_request) + print("The response of IdentityProfilesApi->show_identity_preview:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentityProfilesApi->show_identity_preview: %s\n" % e) - path: /identity-profiles/{identity-profile-id}/process-identities method: POST xCodeSample: @@ -3978,23 +3856,22 @@ source: | from sailpoint.v3.api.identity_profiles_api import IdentityProfilesApi from sailpoint.v3.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - identity_profile_id = 'ef38f94347e94562b5bb8424a56397d8' # str | The Identity Profile ID to be processed # str | The Identity Profile ID to be processed - try: - # Process identities under profile - - results = IdentityProfilesApi(api_client).sync_identity_profile(identity_profile_id=identity_profile_id) - # Below is a request that includes all optional parameters - # results = IdentityProfilesApi(api_client).sync_identity_profile(identity_profile_id) - print("The response of IdentityProfilesApi->sync_identity_profile:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentityProfilesApi->sync_identity_profile: %s\n" % e) + identity_profile_id = 'ef38f94347e94562b5bb8424a56397d8' # str | The Identity Profile ID to be processed # str | The Identity Profile ID to be processed + try: + # Process identities under profile + + results = IdentityProfilesApi(api_client).sync_identity_profile(identity_profile_id=identity_profile_id) + # Below is a request that includes all optional parameters + # results = IdentityProfilesApi(api_client).sync_identity_profile(identity_profile_id) + print("The response of IdentityProfilesApi->sync_identity_profile:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentityProfilesApi->sync_identity_profile: %s\n" % e) - path: /identity-profiles/{identity-profile-id} method: PATCH xCodeSample: @@ -4005,24 +3882,23 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.identity_profile import IdentityProfile from sailpoint.v3.models.json_patch_operation import JsonPatchOperation - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - identity_profile_id = 'ef38f94347e94562b5bb8424a56397d8' # str | Identity profile ID. # str | Identity profile ID. - json_patch_operation = '''[{op=add, path=/identityAttributeConfig/attributeTransforms/0, value={identityAttributeName=location, transformDefinition={type=accountAttribute, attributes={sourceName=Employees, attributeName=location, sourceId=2c91808878b7d63b0178c66ffcdc4ce4}}}}]''' # List[JsonPatchOperation] | List of identity profile update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. - try: - # Update Identity Profile - new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) - results = IdentityProfilesApi(api_client).update_identity_profile(identity_profile_id=identity_profile_id, json_patch_operation=new_json_patch_operation) - # Below is a request that includes all optional parameters - # results = IdentityProfilesApi(api_client).update_identity_profile(identity_profile_id, new_json_patch_operation) - print("The response of IdentityProfilesApi->update_identity_profile:\n") - pprint(results) - except Exception as e: - print("Exception when calling IdentityProfilesApi->update_identity_profile: %s\n" % e) + identity_profile_id = 'ef38f94347e94562b5bb8424a56397d8' # str | Identity profile ID. # str | Identity profile ID. + json_patch_operation = '''[{op=add, path=/identityAttributeConfig/attributeTransforms/0, value={identityAttributeName=location, transformDefinition={type=accountAttribute, attributes={sourceName=Employees, attributeName=location, sourceId=2c91808878b7d63b0178c66ffcdc4ce4}}}}]''' # List[JsonPatchOperation] | List of identity profile update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. + try: + # Update Identity Profile + new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) + results = IdentityProfilesApi(api_client).update_identity_profile(identity_profile_id=identity_profile_id, json_patch_operation=new_json_patch_operation) + # Below is a request that includes all optional parameters + # results = IdentityProfilesApi(api_client).update_identity_profile(identity_profile_id, new_json_patch_operation) + print("The response of IdentityProfilesApi->update_identity_profile:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling IdentityProfilesApi->update_identity_profile: %s\n" % e) - path: /identity-profiles/{identity-profile-id}/lifecycle-states method: POST xCodeSample: @@ -4032,14 +3908,13 @@ from sailpoint.v3.api.lifecycle_states_api import LifecycleStatesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.lifecycle_state import LifecycleState - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - identity_profile_id = '2b838de9-db9b-abcf-e646-d4f274ad4238' # str | Identity profile ID. # str | Identity profile ID. - lifecycle_state = '''{ + identity_profile_id = '2b838de9-db9b-abcf-e646-d4f274ad4238' # str | Identity profile ID. # str | Identity profile ID. + lifecycle_state = '''{ "accessProfileIds" : [ "2c918084660f45d6016617daa9210584", "2c918084660f45d6016617daa9210500" ], "emailNotificationOption" : { "notifyManagers" : true, @@ -4064,16 +3939,16 @@ "identityState" : "identityState", "enabled" : true }''' # LifecycleState | Lifecycle state to be created. - try: - # Create Lifecycle State - new_lifecycle_state = LifecycleState.from_json(lifecycle_state) - results = LifecycleStatesApi(api_client).create_lifecycle_state(identity_profile_id=identity_profile_id, lifecycle_state=new_lifecycle_state) - # Below is a request that includes all optional parameters - # results = LifecycleStatesApi(api_client).create_lifecycle_state(identity_profile_id, new_lifecycle_state) - print("The response of LifecycleStatesApi->create_lifecycle_state:\n") - pprint(results) - except Exception as e: - print("Exception when calling LifecycleStatesApi->create_lifecycle_state: %s\n" % e) + try: + # Create Lifecycle State + new_lifecycle_state = LifecycleState.from_json(lifecycle_state) + results = LifecycleStatesApi(api_client).create_lifecycle_state(identity_profile_id=identity_profile_id, lifecycle_state=new_lifecycle_state) + # Below is a request that includes all optional parameters + # results = LifecycleStatesApi(api_client).create_lifecycle_state(identity_profile_id, new_lifecycle_state) + print("The response of LifecycleStatesApi->create_lifecycle_state:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling LifecycleStatesApi->create_lifecycle_state: %s\n" % e) - path: /identity-profiles/{identity-profile-id}/lifecycle-states/{lifecycle-state-id} method: DELETE xCodeSample: @@ -4083,24 +3958,23 @@ from sailpoint.v3.api.lifecycle_states_api import LifecycleStatesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.lifecyclestate_deleted import LifecyclestateDeleted - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - identity_profile_id = '2b838de9-db9b-abcf-e646-d4f274ad4238' # str | Identity profile ID. # str | Identity profile ID. - lifecycle_state_id = 'ef38f94347e94562b5bb8424a56397d8' # str | Lifecycle state ID. # str | Lifecycle state ID. - try: - # Delete Lifecycle State - - results = LifecycleStatesApi(api_client).delete_lifecycle_state(identity_profile_id=identity_profile_id, lifecycle_state_id=lifecycle_state_id) - # Below is a request that includes all optional parameters - # results = LifecycleStatesApi(api_client).delete_lifecycle_state(identity_profile_id, lifecycle_state_id) - print("The response of LifecycleStatesApi->delete_lifecycle_state:\n") - pprint(results) - except Exception as e: - print("Exception when calling LifecycleStatesApi->delete_lifecycle_state: %s\n" % e) + identity_profile_id = '2b838de9-db9b-abcf-e646-d4f274ad4238' # str | Identity profile ID. # str | Identity profile ID. + lifecycle_state_id = 'ef38f94347e94562b5bb8424a56397d8' # str | Lifecycle state ID. # str | Lifecycle state ID. + try: + # Delete Lifecycle State + + results = LifecycleStatesApi(api_client).delete_lifecycle_state(identity_profile_id=identity_profile_id, lifecycle_state_id=lifecycle_state_id) + # Below is a request that includes all optional parameters + # results = LifecycleStatesApi(api_client).delete_lifecycle_state(identity_profile_id, lifecycle_state_id) + print("The response of LifecycleStatesApi->delete_lifecycle_state:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling LifecycleStatesApi->delete_lifecycle_state: %s\n" % e) - path: /identity-profiles/{identity-profile-id}/lifecycle-states/{lifecycle-state-id} method: GET xCodeSample: @@ -4110,24 +3984,23 @@ from sailpoint.v3.api.lifecycle_states_api import LifecycleStatesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.lifecycle_state import LifecycleState - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - identity_profile_id = '2b838de9-db9b-abcf-e646-d4f274ad4238' # str | Identity profile ID. # str | Identity profile ID. - lifecycle_state_id = 'ef38f94347e94562b5bb8424a56397d8' # str | Lifecycle state ID. # str | Lifecycle state ID. - try: - # Get Lifecycle State - - results = LifecycleStatesApi(api_client).get_lifecycle_state(identity_profile_id=identity_profile_id, lifecycle_state_id=lifecycle_state_id) - # Below is a request that includes all optional parameters - # results = LifecycleStatesApi(api_client).get_lifecycle_state(identity_profile_id, lifecycle_state_id) - print("The response of LifecycleStatesApi->get_lifecycle_state:\n") - pprint(results) - except Exception as e: - print("Exception when calling LifecycleStatesApi->get_lifecycle_state: %s\n" % e) + identity_profile_id = '2b838de9-db9b-abcf-e646-d4f274ad4238' # str | Identity profile ID. # str | Identity profile ID. + lifecycle_state_id = 'ef38f94347e94562b5bb8424a56397d8' # str | Lifecycle state ID. # str | Lifecycle state ID. + try: + # Get Lifecycle State + + results = LifecycleStatesApi(api_client).get_lifecycle_state(identity_profile_id=identity_profile_id, lifecycle_state_id=lifecycle_state_id) + # Below is a request that includes all optional parameters + # results = LifecycleStatesApi(api_client).get_lifecycle_state(identity_profile_id, lifecycle_state_id) + print("The response of LifecycleStatesApi->get_lifecycle_state:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling LifecycleStatesApi->get_lifecycle_state: %s\n" % e) - path: /identity-profiles/{identity-profile-id}/lifecycle-states method: GET xCodeSample: @@ -4137,27 +4010,26 @@ from sailpoint.v3.api.lifecycle_states_api import LifecycleStatesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.lifecycle_state import LifecycleState - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - identity_profile_id = '2b838de9-db9b-abcf-e646-d4f274ad4238' # str | Identity profile ID. # str | Identity profile ID. - 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) - sorters = 'created,modified' # 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** (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** (optional) - try: - # Lists LifecycleStates - - results = LifecycleStatesApi(api_client).get_lifecycle_states(identity_profile_id=identity_profile_id) - # Below is a request that includes all optional parameters - # results = LifecycleStatesApi(api_client).get_lifecycle_states(identity_profile_id, limit, offset, count, sorters) - print("The response of LifecycleStatesApi->get_lifecycle_states:\n") - pprint(results) - except Exception as e: - print("Exception when calling LifecycleStatesApi->get_lifecycle_states: %s\n" % e) + identity_profile_id = '2b838de9-db9b-abcf-e646-d4f274ad4238' # str | Identity profile ID. # str | Identity profile ID. + 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) + sorters = 'created,modified' # 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** (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** (optional) + try: + # Lists LifecycleStates + + results = LifecycleStatesApi(api_client).get_lifecycle_states(identity_profile_id=identity_profile_id) + # Below is a request that includes all optional parameters + # results = LifecycleStatesApi(api_client).get_lifecycle_states(identity_profile_id, limit, offset, count, sorters) + print("The response of LifecycleStatesApi->get_lifecycle_states:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling LifecycleStatesApi->get_lifecycle_states: %s\n" % e) - path: /identities/{identity-id}/set-lifecycle-state method: POST xCodeSample: @@ -4168,24 +4040,23 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.set_lifecycle_state200_response import SetLifecycleState200Response from sailpoint.v3.models.set_lifecycle_state_request import SetLifecycleStateRequest - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - identity_id = '2c9180857893f1290178944561990364' # str | ID of the identity to update. # str | ID of the identity to update. - set_lifecycle_state_request = '''sailpoint.v3.SetLifecycleStateRequest()''' # SetLifecycleStateRequest | - try: - # Set Lifecycle State - new_set_lifecycle_state_request = SetLifecycleStateRequest.from_json(set_lifecycle_state_request) - results = LifecycleStatesApi(api_client).set_lifecycle_state(identity_id=identity_id, set_lifecycle_state_request=new_set_lifecycle_state_request) - # Below is a request that includes all optional parameters - # results = LifecycleStatesApi(api_client).set_lifecycle_state(identity_id, new_set_lifecycle_state_request) - print("The response of LifecycleStatesApi->set_lifecycle_state:\n") - pprint(results) - except Exception as e: - print("Exception when calling LifecycleStatesApi->set_lifecycle_state: %s\n" % e) + identity_id = '2c9180857893f1290178944561990364' # str | ID of the identity to update. # str | ID of the identity to update. + set_lifecycle_state_request = '''sailpoint.v3.SetLifecycleStateRequest()''' # SetLifecycleStateRequest | + try: + # Set Lifecycle State + new_set_lifecycle_state_request = SetLifecycleStateRequest.from_json(set_lifecycle_state_request) + results = LifecycleStatesApi(api_client).set_lifecycle_state(identity_id=identity_id, set_lifecycle_state_request=new_set_lifecycle_state_request) + # Below is a request that includes all optional parameters + # results = LifecycleStatesApi(api_client).set_lifecycle_state(identity_id, new_set_lifecycle_state_request) + print("The response of LifecycleStatesApi->set_lifecycle_state:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling LifecycleStatesApi->set_lifecycle_state: %s\n" % e) - path: /identity-profiles/{identity-profile-id}/lifecycle-states/{lifecycle-state-id} method: PATCH xCodeSample: @@ -4196,25 +4067,24 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.json_patch_operation import JsonPatchOperation from sailpoint.v3.models.lifecycle_state import LifecycleState - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - identity_profile_id = '2b838de9-db9b-abcf-e646-d4f274ad4238' # str | Identity profile ID. # str | Identity profile ID. - lifecycle_state_id = 'ef38f94347e94562b5bb8424a56397d8' # str | Lifecycle state ID. # str | Lifecycle state ID. - json_patch_operation = '''[{op=replace, path=/description, value=Updated description!}, {op=replace, path=/accessProfileIds, value=[2c918087742bab150174407a80f3125e, 2c918087742bab150174407a80f3124f]}, {op=replace, path=/accountActions, value=[{action=ENABLE, sourceIds=[2c9180846a2f82fb016a481c1b1560c5, 2c9180846a2f82fb016a481c1b1560cc]}, {action=DISABLE, sourceIds=[2c91808869a0c9980169a207258513fb]}]}, {op=replace, path=/emailNotificationOption, value={notifyManagers=true, notifyAllAdmins=false, notifySpecificUsers=false, emailAddressList=[]}}]''' # List[JsonPatchOperation] | A list of lifecycle state update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields can be updated: * enabled * description * accountActions * accessProfileIds * emailNotificationOption - try: - # Update Lifecycle State - new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) - results = LifecycleStatesApi(api_client).update_lifecycle_states(identity_profile_id=identity_profile_id, lifecycle_state_id=lifecycle_state_id, json_patch_operation=new_json_patch_operation) - # Below is a request that includes all optional parameters - # results = LifecycleStatesApi(api_client).update_lifecycle_states(identity_profile_id, lifecycle_state_id, new_json_patch_operation) - print("The response of LifecycleStatesApi->update_lifecycle_states:\n") - pprint(results) - except Exception as e: - print("Exception when calling LifecycleStatesApi->update_lifecycle_states: %s\n" % e) + identity_profile_id = '2b838de9-db9b-abcf-e646-d4f274ad4238' # str | Identity profile ID. # str | Identity profile ID. + lifecycle_state_id = 'ef38f94347e94562b5bb8424a56397d8' # str | Lifecycle state ID. # str | Lifecycle state ID. + json_patch_operation = '''[{op=replace, path=/description, value=Updated description!}, {op=replace, path=/accessProfileIds, value=[2c918087742bab150174407a80f3125e, 2c918087742bab150174407a80f3124f]}, {op=replace, path=/accountActions, value=[{action=ENABLE, sourceIds=[2c9180846a2f82fb016a481c1b1560c5, 2c9180846a2f82fb016a481c1b1560cc]}, {action=DISABLE, sourceIds=[2c91808869a0c9980169a207258513fb]}]}, {op=replace, path=/emailNotificationOption, value={notifyManagers=true, notifyAllAdmins=false, notifySpecificUsers=false, emailAddressList=[]}}]''' # List[JsonPatchOperation] | A list of lifecycle state update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields can be updated: * enabled * description * accountActions * accessProfileIds * emailNotificationOption + try: + # Update Lifecycle State + new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) + results = LifecycleStatesApi(api_client).update_lifecycle_states(identity_profile_id=identity_profile_id, lifecycle_state_id=lifecycle_state_id, json_patch_operation=new_json_patch_operation) + # Below is a request that includes all optional parameters + # results = LifecycleStatesApi(api_client).update_lifecycle_states(identity_profile_id, lifecycle_state_id, new_json_patch_operation) + print("The response of LifecycleStatesApi->update_lifecycle_states:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling LifecycleStatesApi->update_lifecycle_states: %s\n" % e) - path: /managed-clients method: POST xCodeSample: @@ -4225,28 +4095,27 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.managed_client import ManagedClient from sailpoint.v3.models.managed_client_request import ManagedClientRequest - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - managed_client_request = '''{ + managed_client_request = '''{ "name" : "aName", "description" : "A short description of the ManagedClient", "clusterId" : "aClusterId", "type" : "VA" }''' # ManagedClientRequest | - try: - # Create Managed Client - new_managed_client_request = ManagedClientRequest.from_json(managed_client_request) - results = ManagedClientsApi(api_client).create_managed_client(managed_client_request=new_managed_client_request) - # Below is a request that includes all optional parameters - # results = ManagedClientsApi(api_client).create_managed_client(new_managed_client_request) - print("The response of ManagedClientsApi->create_managed_client:\n") - pprint(results) - except Exception as e: - print("Exception when calling ManagedClientsApi->create_managed_client: %s\n" % e) + try: + # Create Managed Client + new_managed_client_request = ManagedClientRequest.from_json(managed_client_request) + results = ManagedClientsApi(api_client).create_managed_client(managed_client_request=new_managed_client_request) + # Below is a request that includes all optional parameters + # results = ManagedClientsApi(api_client).create_managed_client(new_managed_client_request) + print("The response of ManagedClientsApi->create_managed_client:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ManagedClientsApi->create_managed_client: %s\n" % e) - path: /managed-clients/{id} method: DELETE xCodeSample: @@ -4255,21 +4124,20 @@ source: | from sailpoint.v3.api.managed_clients_api import ManagedClientsApi from sailpoint.v3.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '4440278c-0ce2-41ee-a0a9-f5cfd5e8d3b7' # str | Managed client ID. # str | Managed client ID. - try: - # Delete Managed Client - - ManagedClientsApi(api_client).delete_managed_client(id=id) - # Below is a request that includes all optional parameters - # ManagedClientsApi(api_client).delete_managed_client(id) - except Exception as e: - print("Exception when calling ManagedClientsApi->delete_managed_client: %s\n" % e) + id = '4440278c-0ce2-41ee-a0a9-f5cfd5e8d3b7' # str | Managed client ID. # str | Managed client ID. + try: + # Delete Managed Client + + ManagedClientsApi(api_client).delete_managed_client(id=id) + # Below is a request that includes all optional parameters + # ManagedClientsApi(api_client).delete_managed_client(id) + except Exception as e: + print("Exception when calling ManagedClientsApi->delete_managed_client: %s\n" % e) - path: /managed-clients/{id} method: GET xCodeSample: @@ -4279,23 +4147,22 @@ from sailpoint.v3.api.managed_clients_api import ManagedClientsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.managed_client import ManagedClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '4440278c-0ce2-41ee-a0a9-f5cfd5e8d3b7' # str | Managed client ID. # str | Managed client ID. - try: - # Get Managed Client - - results = ManagedClientsApi(api_client).get_managed_client(id=id) - # Below is a request that includes all optional parameters - # results = ManagedClientsApi(api_client).get_managed_client(id) - print("The response of ManagedClientsApi->get_managed_client:\n") - pprint(results) - except Exception as e: - print("Exception when calling ManagedClientsApi->get_managed_client: %s\n" % e) + id = '4440278c-0ce2-41ee-a0a9-f5cfd5e8d3b7' # str | Managed client ID. # str | Managed client ID. + try: + # Get Managed Client + + results = ManagedClientsApi(api_client).get_managed_client(id=id) + # Below is a request that includes all optional parameters + # results = ManagedClientsApi(api_client).get_managed_client(id) + print("The response of ManagedClientsApi->get_managed_client:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ManagedClientsApi->get_managed_client: %s\n" % e) - path: /managed-clients/{id}/status method: GET xCodeSample: @@ -4306,24 +4173,23 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.managed_client_status import ManagedClientStatus from sailpoint.v3.models.managed_client_type import ManagedClientType - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'aClientId' # str | Managed client ID to get status for. # str | Managed client ID to get status for. - type = sailpoint.v3.ManagedClientType() # ManagedClientType | Managed client type to get status for. # ManagedClientType | Managed client type to get status for. - try: - # Get Managed Client Status - - results = ManagedClientsApi(api_client).get_managed_client_status(id=id, type=type) - # Below is a request that includes all optional parameters - # results = ManagedClientsApi(api_client).get_managed_client_status(id, type) - print("The response of ManagedClientsApi->get_managed_client_status:\n") - pprint(results) - except Exception as e: - print("Exception when calling ManagedClientsApi->get_managed_client_status: %s\n" % e) + id = 'aClientId' # str | Managed client ID to get status for. # str | Managed client ID to get status for. + type = sailpoint.v3.ManagedClientType() # ManagedClientType | Managed client type to get status for. # ManagedClientType | Managed client type to get status for. + try: + # Get Managed Client Status + + results = ManagedClientsApi(api_client).get_managed_client_status(id=id, type=type) + # Below is a request that includes all optional parameters + # results = ManagedClientsApi(api_client).get_managed_client_status(id, type) + print("The response of ManagedClientsApi->get_managed_client_status:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ManagedClientsApi->get_managed_client_status: %s\n" % e) - path: /managed-clients method: GET xCodeSample: @@ -4333,26 +4199,25 @@ from sailpoint.v3.api.managed_clients_api import ManagedClientsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.managed_client import ManagedClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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) - 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) - 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 \"client name\"' # 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* **name**: *eq* **clientId**: *eq* **clusterId**: *eq* (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* **name**: *eq* **clientId**: *eq* **clusterId**: *eq* (optional) - try: - # Get Managed Clients - - results = ManagedClientsApi(api_client).get_managed_clients() - # Below is a request that includes all optional parameters - # results = ManagedClientsApi(api_client).get_managed_clients(offset, limit, count, filters) - print("The response of ManagedClientsApi->get_managed_clients:\n") - pprint(results) - except Exception as e: - print("Exception when calling ManagedClientsApi->get_managed_clients: %s\n" % e) + 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) + 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) + 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 \"client name\"' # 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* **name**: *eq* **clientId**: *eq* **clusterId**: *eq* (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* **name**: *eq* **clientId**: *eq* **clusterId**: *eq* (optional) + try: + # Get Managed Clients + + results = ManagedClientsApi(api_client).get_managed_clients() + # Below is a request that includes all optional parameters + # results = ManagedClientsApi(api_client).get_managed_clients(offset, limit, count, filters) + print("The response of ManagedClientsApi->get_managed_clients:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ManagedClientsApi->get_managed_clients: %s\n" % e) - path: /managed-clients/{id} method: PATCH xCodeSample: @@ -4363,24 +4228,23 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.json_patch_operation import JsonPatchOperation from sailpoint.v3.models.managed_client import ManagedClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '4440278c-0ce2-41ee-a0a9-f5cfd5e8d3b7' # str | Managed client ID. # str | Managed client ID. - json_patch_operation = '''[sailpoint.v3.JsonPatchOperation()]''' # List[JsonPatchOperation] | JSONPatch payload used to update the object. - try: - # Update Managed Client - new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) - results = ManagedClientsApi(api_client).update_managed_client(id=id, json_patch_operation=new_json_patch_operation) - # Below is a request that includes all optional parameters - # results = ManagedClientsApi(api_client).update_managed_client(id, new_json_patch_operation) - print("The response of ManagedClientsApi->update_managed_client:\n") - pprint(results) - except Exception as e: - print("Exception when calling ManagedClientsApi->update_managed_client: %s\n" % e) + id = '4440278c-0ce2-41ee-a0a9-f5cfd5e8d3b7' # str | Managed client ID. # str | Managed client ID. + json_patch_operation = '''[sailpoint.v3.JsonPatchOperation()]''' # List[JsonPatchOperation] | JSONPatch payload used to update the object. + try: + # Update Managed Client + new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) + results = ManagedClientsApi(api_client).update_managed_client(id=id, json_patch_operation=new_json_patch_operation) + # Below is a request that includes all optional parameters + # results = ManagedClientsApi(api_client).update_managed_client(id, new_json_patch_operation) + print("The response of ManagedClientsApi->update_managed_client:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ManagedClientsApi->update_managed_client: %s\n" % e) - path: /managed-clusters method: POST xCodeSample: @@ -4391,13 +4255,12 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.managed_cluster import ManagedCluster from sailpoint.v3.models.managed_cluster_request import ManagedClusterRequest - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - managed_cluster_request = '''{ + managed_cluster_request = '''{ "configuration" : { "clusterExternalId" : "externalId", "ccgVersion" : "77.0.0" @@ -4406,16 +4269,16 @@ "description" : "A short description of the managed cluster.", "type" : "idn" }''' # ManagedClusterRequest | - try: - # Create Create Managed Cluster - new_managed_cluster_request = ManagedClusterRequest.from_json(managed_cluster_request) - results = ManagedClustersApi(api_client).create_managed_cluster(managed_cluster_request=new_managed_cluster_request) - # Below is a request that includes all optional parameters - # results = ManagedClustersApi(api_client).create_managed_cluster(new_managed_cluster_request) - print("The response of ManagedClustersApi->create_managed_cluster:\n") - pprint(results) - except Exception as e: - print("Exception when calling ManagedClustersApi->create_managed_cluster: %s\n" % e) + try: + # Create Create Managed Cluster + new_managed_cluster_request = ManagedClusterRequest.from_json(managed_cluster_request) + results = ManagedClustersApi(api_client).create_managed_cluster(managed_cluster_request=new_managed_cluster_request) + # Below is a request that includes all optional parameters + # results = ManagedClustersApi(api_client).create_managed_cluster(new_managed_cluster_request) + print("The response of ManagedClustersApi->create_managed_cluster:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ManagedClustersApi->create_managed_cluster: %s\n" % e) - path: /managed-clusters/{id} method: DELETE xCodeSample: @@ -4424,22 +4287,21 @@ source: | from sailpoint.v3.api.managed_clusters_api import ManagedClustersApi from sailpoint.v3.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c9180897de347a2017de8859e8c5039' # str | Managed cluster ID. # str | Managed cluster ID. - remove_clients = False # bool | Flag to determine the need to delete a cluster with clients. (optional) (default to False) # bool | Flag to determine the need to delete a cluster with clients. (optional) (default to False) - try: - # Delete Managed Cluster - - ManagedClustersApi(api_client).delete_managed_cluster(id=id) - # Below is a request that includes all optional parameters - # ManagedClustersApi(api_client).delete_managed_cluster(id, remove_clients) - except Exception as e: - print("Exception when calling ManagedClustersApi->delete_managed_cluster: %s\n" % e) + id = '2c9180897de347a2017de8859e8c5039' # str | Managed cluster ID. # str | Managed cluster ID. + remove_clients = False # bool | Flag to determine the need to delete a cluster with clients. (optional) (default to False) # bool | Flag to determine the need to delete a cluster with clients. (optional) (default to False) + try: + # Delete Managed Cluster + + ManagedClustersApi(api_client).delete_managed_cluster(id=id) + # Below is a request that includes all optional parameters + # ManagedClustersApi(api_client).delete_managed_cluster(id, remove_clients) + except Exception as e: + print("Exception when calling ManagedClustersApi->delete_managed_cluster: %s\n" % e) - path: /managed-clusters/{id}/log-config method: GET xCodeSample: @@ -4449,23 +4311,22 @@ from sailpoint.v3.api.managed_clusters_api import ManagedClustersApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.client_log_configuration import ClientLogConfiguration - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2b838de9-db9b-abcf-e646-d4f274ad4238' # str | ID of managed cluster to get log configuration for. # str | ID of managed cluster to get log configuration for. - try: - # Get Managed Cluster Log Configuration - - results = ManagedClustersApi(api_client).get_client_log_configuration(id=id) - # Below is a request that includes all optional parameters - # results = ManagedClustersApi(api_client).get_client_log_configuration(id) - print("The response of ManagedClustersApi->get_client_log_configuration:\n") - pprint(results) - except Exception as e: - print("Exception when calling ManagedClustersApi->get_client_log_configuration: %s\n" % e) + id = '2b838de9-db9b-abcf-e646-d4f274ad4238' # str | ID of managed cluster to get log configuration for. # str | ID of managed cluster to get log configuration for. + try: + # Get Managed Cluster Log Configuration + + results = ManagedClustersApi(api_client).get_client_log_configuration(id=id) + # Below is a request that includes all optional parameters + # results = ManagedClustersApi(api_client).get_client_log_configuration(id) + print("The response of ManagedClustersApi->get_client_log_configuration:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ManagedClustersApi->get_client_log_configuration: %s\n" % e) - path: /managed-clusters/{id} method: GET xCodeSample: @@ -4475,23 +4336,22 @@ from sailpoint.v3.api.managed_clusters_api import ManagedClustersApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.managed_cluster import ManagedCluster - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c9180897de347a2017de8859e8c5039' # str | Managed cluster ID. # str | Managed cluster ID. - try: - # Get Managed Cluster - - results = ManagedClustersApi(api_client).get_managed_cluster(id=id) - # Below is a request that includes all optional parameters - # results = ManagedClustersApi(api_client).get_managed_cluster(id) - print("The response of ManagedClustersApi->get_managed_cluster:\n") - pprint(results) - except Exception as e: - print("Exception when calling ManagedClustersApi->get_managed_cluster: %s\n" % e) + id = '2c9180897de347a2017de8859e8c5039' # str | Managed cluster ID. # str | Managed cluster ID. + try: + # Get Managed Cluster + + results = ManagedClustersApi(api_client).get_managed_cluster(id=id) + # Below is a request that includes all optional parameters + # results = ManagedClustersApi(api_client).get_managed_cluster(id) + print("The response of ManagedClustersApi->get_managed_cluster:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ManagedClustersApi->get_managed_cluster: %s\n" % e) - path: /managed-clusters method: GET xCodeSample: @@ -4501,26 +4361,25 @@ from sailpoint.v3.api.managed_clusters_api import ManagedClustersApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.managed_cluster import ManagedCluster - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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) - 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) - 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 = 'operational eq \"operation\"' # 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: **operational**: *eq* (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: **operational**: *eq* (optional) - try: - # Get Managed Clusters - - results = ManagedClustersApi(api_client).get_managed_clusters() - # Below is a request that includes all optional parameters - # results = ManagedClustersApi(api_client).get_managed_clusters(offset, limit, count, filters) - print("The response of ManagedClustersApi->get_managed_clusters:\n") - pprint(results) - except Exception as e: - print("Exception when calling ManagedClustersApi->get_managed_clusters: %s\n" % e) + 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) + 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) + 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 = 'operational eq \"operation\"' # 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: **operational**: *eq* (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: **operational**: *eq* (optional) + try: + # Get Managed Clusters + + results = ManagedClustersApi(api_client).get_managed_clusters() + # Below is a request that includes all optional parameters + # results = ManagedClustersApi(api_client).get_managed_clusters(offset, limit, count, filters) + print("The response of ManagedClustersApi->get_managed_clusters:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ManagedClustersApi->get_managed_clusters: %s\n" % e) - path: /managed-clusters/{id}/log-config method: PUT xCodeSample: @@ -4531,24 +4390,23 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.client_log_configuration import ClientLogConfiguration from sailpoint.v3.models.put_client_log_configuration_request import PutClientLogConfigurationRequest - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2b838de9-db9b-abcf-e646-d4f274ad4238' # str | ID of the managed cluster to update the log configuration for. # str | ID of the managed cluster to update the log configuration for. - put_client_log_configuration_request = '''sailpoint.v3.PutClientLogConfigurationRequest()''' # PutClientLogConfigurationRequest | Client log configuration for the given managed cluster. - try: - # Update Managed Cluster Log Configuration - new_put_client_log_configuration_request = PutClientLogConfigurationRequest.from_json(put_client_log_configuration_request) - results = ManagedClustersApi(api_client).put_client_log_configuration(id=id, put_client_log_configuration_request=new_put_client_log_configuration_request) - # Below is a request that includes all optional parameters - # results = ManagedClustersApi(api_client).put_client_log_configuration(id, new_put_client_log_configuration_request) - print("The response of ManagedClustersApi->put_client_log_configuration:\n") - pprint(results) - except Exception as e: - print("Exception when calling ManagedClustersApi->put_client_log_configuration: %s\n" % e) + id = '2b838de9-db9b-abcf-e646-d4f274ad4238' # str | ID of the managed cluster to update the log configuration for. # str | ID of the managed cluster to update the log configuration for. + put_client_log_configuration_request = '''sailpoint.v3.PutClientLogConfigurationRequest()''' # PutClientLogConfigurationRequest | Client log configuration for the given managed cluster. + try: + # Update Managed Cluster Log Configuration + new_put_client_log_configuration_request = PutClientLogConfigurationRequest.from_json(put_client_log_configuration_request) + results = ManagedClustersApi(api_client).put_client_log_configuration(id=id, put_client_log_configuration_request=new_put_client_log_configuration_request) + # Below is a request that includes all optional parameters + # results = ManagedClustersApi(api_client).put_client_log_configuration(id, new_put_client_log_configuration_request) + print("The response of ManagedClustersApi->put_client_log_configuration:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ManagedClustersApi->put_client_log_configuration: %s\n" % e) - path: /managed-clusters/{id} method: PATCH xCodeSample: @@ -4559,24 +4417,23 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.json_patch_operation import JsonPatchOperation from sailpoint.v3.models.managed_cluster import ManagedCluster - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c9180897de347a2017de8859e8c5039' # str | Managed cluster ID. # str | Managed cluster ID. - json_patch_operation = '''[sailpoint.v3.JsonPatchOperation()]''' # List[JsonPatchOperation] | JSONPatch payload used to update the object. - try: - # Update Managed Cluster - new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) - results = ManagedClustersApi(api_client).update_managed_cluster(id=id, json_patch_operation=new_json_patch_operation) - # Below is a request that includes all optional parameters - # results = ManagedClustersApi(api_client).update_managed_cluster(id, new_json_patch_operation) - print("The response of ManagedClustersApi->update_managed_cluster:\n") - pprint(results) - except Exception as e: - print("Exception when calling ManagedClustersApi->update_managed_cluster: %s\n" % e) + id = '2c9180897de347a2017de8859e8c5039' # str | Managed cluster ID. # str | Managed cluster ID. + json_patch_operation = '''[sailpoint.v3.JsonPatchOperation()]''' # List[JsonPatchOperation] | JSONPatch payload used to update the object. + try: + # Update Managed Cluster + new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) + results = ManagedClustersApi(api_client).update_managed_cluster(id=id, json_patch_operation=new_json_patch_operation) + # Below is a request that includes all optional parameters + # results = ManagedClustersApi(api_client).update_managed_cluster(id, new_json_patch_operation) + print("The response of ManagedClustersApi->update_managed_cluster:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ManagedClustersApi->update_managed_cluster: %s\n" % e) - path: /mfa/{method}/delete method: DELETE xCodeSample: @@ -4586,23 +4443,22 @@ from sailpoint.v3.api.mfa_configuration_api import MFAConfigurationApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.mfa_okta_config import MfaOktaConfig - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - method = 'okta-verify' # str | The name of the MFA method. The currently supported method names are 'okta-verify' and 'duo-web'. # str | The name of the MFA method. The currently supported method names are 'okta-verify' and 'duo-web'. - try: - # Delete MFA method configuration - - results = MFAConfigurationApi(api_client).delete_mfa_config(method=method) - # Below is a request that includes all optional parameters - # results = MFAConfigurationApi(api_client).delete_mfa_config(method) - print("The response of MFAConfigurationApi->delete_mfa_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling MFAConfigurationApi->delete_mfa_config: %s\n" % e) + method = 'okta-verify' # str | The name of the MFA method. The currently supported method names are 'okta-verify' and 'duo-web'. # str | The name of the MFA method. The currently supported method names are 'okta-verify' and 'duo-web'. + try: + # Delete MFA method configuration + + results = MFAConfigurationApi(api_client).delete_mfa_config(method=method) + # Below is a request that includes all optional parameters + # results = MFAConfigurationApi(api_client).delete_mfa_config(method) + print("The response of MFAConfigurationApi->delete_mfa_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling MFAConfigurationApi->delete_mfa_config: %s\n" % e) - path: /mfa/duo-web/config method: GET xCodeSample: @@ -4612,22 +4468,21 @@ from sailpoint.v3.api.mfa_configuration_api import MFAConfigurationApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.mfa_duo_config import MfaDuoConfig - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - try: - # Configuration of Duo MFA method - - results = MFAConfigurationApi(api_client).get_mfa_duo_config() - # Below is a request that includes all optional parameters - # results = MFAConfigurationApi(api_client).get_mfa_duo_config() - print("The response of MFAConfigurationApi->get_mfa_duo_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling MFAConfigurationApi->get_mfa_duo_config: %s\n" % e) + try: + # Configuration of Duo MFA method + + results = MFAConfigurationApi(api_client).get_mfa_duo_config() + # Below is a request that includes all optional parameters + # results = MFAConfigurationApi(api_client).get_mfa_duo_config() + print("The response of MFAConfigurationApi->get_mfa_duo_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling MFAConfigurationApi->get_mfa_duo_config: %s\n" % e) - path: /mfa/kba/config method: GET xCodeSample: @@ -4637,23 +4492,22 @@ from sailpoint.v3.api.mfa_configuration_api import MFAConfigurationApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.kba_question import KbaQuestion - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - all_languages = allLanguages=true # bool | Indicator whether the question text should be returned in all configured languages * If true, the question text is returned in all languages that it is configured in. * If false, the question text is returned in the user locale if available, else for the default locale. * If not passed, it behaves the same way as passing this parameter as false (optional) # bool | Indicator whether the question text should be returned in all configured languages * If true, the question text is returned in all languages that it is configured in. * If false, the question text is returned in the user locale if available, else for the default locale. * If not passed, it behaves the same way as passing this parameter as false (optional) - try: - # Configuration of KBA MFA method - - results = MFAConfigurationApi(api_client).get_mfa_kba_config() - # Below is a request that includes all optional parameters - # results = MFAConfigurationApi(api_client).get_mfa_kba_config(all_languages) - print("The response of MFAConfigurationApi->get_mfa_kba_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling MFAConfigurationApi->get_mfa_kba_config: %s\n" % e) + all_languages = allLanguages=true # bool | Indicator whether the question text should be returned in all configured languages * If true, the question text is returned in all languages that it is configured in. * If false, the question text is returned in the user locale if available, else for the default locale. * If not passed, it behaves the same way as passing this parameter as false (optional) # bool | Indicator whether the question text should be returned in all configured languages * If true, the question text is returned in all languages that it is configured in. * If false, the question text is returned in the user locale if available, else for the default locale. * If not passed, it behaves the same way as passing this parameter as false (optional) + try: + # Configuration of KBA MFA method + + results = MFAConfigurationApi(api_client).get_mfa_kba_config() + # Below is a request that includes all optional parameters + # results = MFAConfigurationApi(api_client).get_mfa_kba_config(all_languages) + print("The response of MFAConfigurationApi->get_mfa_kba_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling MFAConfigurationApi->get_mfa_kba_config: %s\n" % e) - path: /mfa/okta-verify/config method: GET xCodeSample: @@ -4663,22 +4517,21 @@ from sailpoint.v3.api.mfa_configuration_api import MFAConfigurationApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.mfa_okta_config import MfaOktaConfig - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - try: - # Configuration of Okta MFA method - - results = MFAConfigurationApi(api_client).get_mfa_okta_config() - # Below is a request that includes all optional parameters - # results = MFAConfigurationApi(api_client).get_mfa_okta_config() - print("The response of MFAConfigurationApi->get_mfa_okta_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling MFAConfigurationApi->get_mfa_okta_config: %s\n" % e) + try: + # Configuration of Okta MFA method + + results = MFAConfigurationApi(api_client).get_mfa_okta_config() + # Below is a request that includes all optional parameters + # results = MFAConfigurationApi(api_client).get_mfa_okta_config() + print("The response of MFAConfigurationApi->get_mfa_okta_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling MFAConfigurationApi->get_mfa_okta_config: %s\n" % e) - path: /mfa/duo-web/config method: PUT xCodeSample: @@ -4688,13 +4541,12 @@ from sailpoint.v3.api.mfa_configuration_api import MFAConfigurationApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.mfa_duo_config import MfaDuoConfig - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - mfa_duo_config = '''{ + mfa_duo_config = '''{ "accessKey" : "qw123Y3QlA5UqocYpdU3rEkzrK2D497y", "host" : "example.com", "configProperties" : { @@ -4705,16 +4557,16 @@ "enabled" : true, "identityAttribute" : "email" }''' # MfaDuoConfig | - try: - # Set Duo MFA configuration - new_mfa_duo_config = MfaDuoConfig.from_json(mfa_duo_config) - results = MFAConfigurationApi(api_client).set_mfa_duo_config(mfa_duo_config=new_mfa_duo_config) - # Below is a request that includes all optional parameters - # results = MFAConfigurationApi(api_client).set_mfa_duo_config(new_mfa_duo_config) - print("The response of MFAConfigurationApi->set_mfa_duo_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling MFAConfigurationApi->set_mfa_duo_config: %s\n" % e) + try: + # Set Duo MFA configuration + new_mfa_duo_config = MfaDuoConfig.from_json(mfa_duo_config) + results = MFAConfigurationApi(api_client).set_mfa_duo_config(mfa_duo_config=new_mfa_duo_config) + # Below is a request that includes all optional parameters + # results = MFAConfigurationApi(api_client).set_mfa_duo_config(new_mfa_duo_config) + print("The response of MFAConfigurationApi->set_mfa_duo_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling MFAConfigurationApi->set_mfa_duo_config: %s\n" % e) - path: /mfa/okta-verify/config method: PUT xCodeSample: @@ -4724,29 +4576,28 @@ from sailpoint.v3.api.mfa_configuration_api import MFAConfigurationApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.mfa_okta_config import MfaOktaConfig - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - mfa_okta_config = '''{ + mfa_okta_config = '''{ "accessKey" : "qw123Y3QlA5UqocYpdU3rEkzrK2D497y", "host" : "example.com", "mfaMethod" : "okta-verify", "enabled" : true, "identityAttribute" : "email" }''' # MfaOktaConfig | - try: - # Set Okta MFA configuration - new_mfa_okta_config = MfaOktaConfig.from_json(mfa_okta_config) - results = MFAConfigurationApi(api_client).set_mfa_okta_config(mfa_okta_config=new_mfa_okta_config) - # Below is a request that includes all optional parameters - # results = MFAConfigurationApi(api_client).set_mfa_okta_config(new_mfa_okta_config) - print("The response of MFAConfigurationApi->set_mfa_okta_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling MFAConfigurationApi->set_mfa_okta_config: %s\n" % e) + try: + # Set Okta MFA configuration + new_mfa_okta_config = MfaOktaConfig.from_json(mfa_okta_config) + results = MFAConfigurationApi(api_client).set_mfa_okta_config(mfa_okta_config=new_mfa_okta_config) + # Below is a request that includes all optional parameters + # results = MFAConfigurationApi(api_client).set_mfa_okta_config(new_mfa_okta_config) + print("The response of MFAConfigurationApi->set_mfa_okta_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling MFAConfigurationApi->set_mfa_okta_config: %s\n" % e) - path: /mfa/kba/config/answers method: POST xCodeSample: @@ -4757,23 +4608,22 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.kba_answer_request_item import KbaAnswerRequestItem from sailpoint.v3.models.kba_answer_response_item import KbaAnswerResponseItem - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - kba_answer_request_item = '''[{id=173423, answer=822cd15d6c15aa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a0859a2fea34}, {id=c54fee53-2d63-4fc5-9259-3e93b9994135, answer=9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08}]''' # List[KbaAnswerRequestItem] | - try: - # Set MFA KBA configuration - new_kba_answer_request_item = KbaAnswerRequestItem.from_json(kba_answer_request_item) - results = MFAConfigurationApi(api_client).set_mfakba_config(kba_answer_request_item=new_kba_answer_request_item) - # Below is a request that includes all optional parameters - # results = MFAConfigurationApi(api_client).set_mfakba_config(new_kba_answer_request_item) - print("The response of MFAConfigurationApi->set_mfakba_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling MFAConfigurationApi->set_mfakba_config: %s\n" % e) + kba_answer_request_item = '''[{id=173423, answer=822cd15d6c15aa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a0859a2fea34}, {id=c54fee53-2d63-4fc5-9259-3e93b9994135, answer=9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08}]''' # List[KbaAnswerRequestItem] | + try: + # Set MFA KBA configuration + new_kba_answer_request_item = KbaAnswerRequestItem.from_json(kba_answer_request_item) + results = MFAConfigurationApi(api_client).set_mfakba_config(kba_answer_request_item=new_kba_answer_request_item) + # Below is a request that includes all optional parameters + # results = MFAConfigurationApi(api_client).set_mfakba_config(new_kba_answer_request_item) + print("The response of MFAConfigurationApi->set_mfakba_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling MFAConfigurationApi->set_mfakba_config: %s\n" % e) - path: /mfa/{method}/test method: GET xCodeSample: @@ -4783,23 +4633,22 @@ from sailpoint.v3.api.mfa_configuration_api import MFAConfigurationApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.mfa_config_test_response import MfaConfigTestResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - method = 'okta-verify' # str | The name of the MFA method. The currently supported method names are 'okta-verify' and 'duo-web'. # str | The name of the MFA method. The currently supported method names are 'okta-verify' and 'duo-web'. - try: - # MFA method's test configuration - - results = MFAConfigurationApi(api_client).test_mfa_config(method=method) - # Below is a request that includes all optional parameters - # results = MFAConfigurationApi(api_client).test_mfa_config(method) - print("The response of MFAConfigurationApi->test_mfa_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling MFAConfigurationApi->test_mfa_config: %s\n" % e) + method = 'okta-verify' # str | The name of the MFA method. The currently supported method names are 'okta-verify' and 'duo-web'. # str | The name of the MFA method. The currently supported method names are 'okta-verify' and 'duo-web'. + try: + # MFA method's test configuration + + results = MFAConfigurationApi(api_client).test_mfa_config(method=method) + # Below is a request that includes all optional parameters + # results = MFAConfigurationApi(api_client).test_mfa_config(method) + print("The response of MFAConfigurationApi->test_mfa_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling MFAConfigurationApi->test_mfa_config: %s\n" % e) - path: /mfa/token/send method: POST xCodeSample: @@ -4810,26 +4659,25 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.send_token_request import SendTokenRequest from sailpoint.v3.models.send_token_response import SendTokenResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - send_token_request = '''{ + send_token_request = '''{ "userAlias" : "will.albin", "deliveryType" : "EMAIL_WORK" }''' # SendTokenRequest | - try: - # Create and send user token - new_send_token_request = SendTokenRequest.from_json(send_token_request) - results = MFAControllerApi(api_client).create_send_token(send_token_request=new_send_token_request) - # Below is a request that includes all optional parameters - # results = MFAControllerApi(api_client).create_send_token(new_send_token_request) - print("The response of MFAControllerApi->create_send_token:\n") - pprint(results) - except Exception as e: - print("Exception when calling MFAControllerApi->create_send_token: %s\n" % e) + try: + # Create and send user token + new_send_token_request = SendTokenRequest.from_json(send_token_request) + results = MFAControllerApi(api_client).create_send_token(send_token_request=new_send_token_request) + # Below is a request that includes all optional parameters + # results = MFAControllerApi(api_client).create_send_token(new_send_token_request) + print("The response of MFAControllerApi->create_send_token:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling MFAControllerApi->create_send_token: %s\n" % e) - path: /mfa/{method}/poll method: POST xCodeSample: @@ -4840,26 +4688,25 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.verification_poll_request import VerificationPollRequest from sailpoint.v3.models.verification_response import VerificationResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - method = 'okta-verify' # str | The name of the MFA method. The currently supported method names are 'okta-verify', 'duo-web', 'kba','token', 'rsa' # str | The name of the MFA method. The currently supported method names are 'okta-verify', 'duo-web', 'kba','token', 'rsa' - verification_poll_request = '''{ + method = 'okta-verify' # str | The name of the MFA method. The currently supported method names are 'okta-verify', 'duo-web', 'kba','token', 'rsa' # str | The name of the MFA method. The currently supported method names are 'okta-verify', 'duo-web', 'kba','token', 'rsa' + verification_poll_request = '''{ "requestId" : "089899f13a8f4da7824996191587bab9" }''' # VerificationPollRequest | - try: - # Polling MFA method by VerificationPollRequest - new_verification_poll_request = VerificationPollRequest.from_json(verification_poll_request) - results = MFAControllerApi(api_client).ping_verification_status(method=method, verification_poll_request=new_verification_poll_request) - # Below is a request that includes all optional parameters - # results = MFAControllerApi(api_client).ping_verification_status(method, new_verification_poll_request) - print("The response of MFAControllerApi->ping_verification_status:\n") - pprint(results) - except Exception as e: - print("Exception when calling MFAControllerApi->ping_verification_status: %s\n" % e) + try: + # Polling MFA method by VerificationPollRequest + new_verification_poll_request = VerificationPollRequest.from_json(verification_poll_request) + results = MFAControllerApi(api_client).ping_verification_status(method=method, verification_poll_request=new_verification_poll_request) + # Below is a request that includes all optional parameters + # results = MFAControllerApi(api_client).ping_verification_status(method, new_verification_poll_request) + print("The response of MFAControllerApi->ping_verification_status:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling MFAControllerApi->ping_verification_status: %s\n" % e) - path: /mfa/duo-web/verify method: POST xCodeSample: @@ -4870,26 +4717,25 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.duo_verification_request import DuoVerificationRequest from sailpoint.v3.models.verification_response import VerificationResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - duo_verification_request = '''{ + duo_verification_request = '''{ "signedResponse" : "AUTH|d2lsbC5hbGJpbnxESTZNMFpHSThKQVRWTVpZN0M5VXwxNzAxMjUzMDg5|f1f5f8ced5b340f3d303b05d0efa0e43b6a8f970:APP|d2lsbC5hbGJpbnxESTZNMFpHSThKQVRWTVpZN0M5VXwxNzAxMjU2NjE5|cb44cf44353f5127edcae31b1da0355f87357db2", "userId" : "2c9180947f0ef465017f215cbcfd004b" }''' # DuoVerificationRequest | - try: - # Verifying authentication via Duo method - new_duo_verification_request = DuoVerificationRequest.from_json(duo_verification_request) - results = MFAControllerApi(api_client).send_duo_verify_request(duo_verification_request=new_duo_verification_request) - # Below is a request that includes all optional parameters - # results = MFAControllerApi(api_client).send_duo_verify_request(new_duo_verification_request) - print("The response of MFAControllerApi->send_duo_verify_request:\n") - pprint(results) - except Exception as e: - print("Exception when calling MFAControllerApi->send_duo_verify_request: %s\n" % e) + try: + # Verifying authentication via Duo method + new_duo_verification_request = DuoVerificationRequest.from_json(duo_verification_request) + results = MFAControllerApi(api_client).send_duo_verify_request(duo_verification_request=new_duo_verification_request) + # Below is a request that includes all optional parameters + # results = MFAControllerApi(api_client).send_duo_verify_request(new_duo_verification_request) + print("The response of MFAControllerApi->send_duo_verify_request:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling MFAControllerApi->send_duo_verify_request: %s\n" % e) - path: /mfa/kba/authenticate method: POST xCodeSample: @@ -4900,23 +4746,22 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.kba_answer_request_item import KbaAnswerRequestItem from sailpoint.v3.models.kba_auth_response import KbaAuthResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - kba_answer_request_item = '''[{id=173423, answer=822cd15d6c15aa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a0859a2fea34}, {id=c54fee53-2d63-4fc5-9259-3e93b9994135, answer=9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08}]''' # List[KbaAnswerRequestItem] | - try: - # Authenticate KBA provided MFA method - new_kba_answer_request_item = KbaAnswerRequestItem.from_json(kba_answer_request_item) - results = MFAControllerApi(api_client).send_kba_answers(kba_answer_request_item=new_kba_answer_request_item) - # Below is a request that includes all optional parameters - # results = MFAControllerApi(api_client).send_kba_answers(new_kba_answer_request_item) - print("The response of MFAControllerApi->send_kba_answers:\n") - pprint(results) - except Exception as e: - print("Exception when calling MFAControllerApi->send_kba_answers: %s\n" % e) + kba_answer_request_item = '''[{id=173423, answer=822cd15d6c15aa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a0859a2fea34}, {id=c54fee53-2d63-4fc5-9259-3e93b9994135, answer=9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08}]''' # List[KbaAnswerRequestItem] | + try: + # Authenticate KBA provided MFA method + new_kba_answer_request_item = KbaAnswerRequestItem.from_json(kba_answer_request_item) + results = MFAControllerApi(api_client).send_kba_answers(kba_answer_request_item=new_kba_answer_request_item) + # Below is a request that includes all optional parameters + # results = MFAControllerApi(api_client).send_kba_answers(new_kba_answer_request_item) + print("The response of MFAControllerApi->send_kba_answers:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling MFAControllerApi->send_kba_answers: %s\n" % e) - path: /mfa/okta-verify/verify method: POST xCodeSample: @@ -4927,25 +4772,24 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.okta_verification_request import OktaVerificationRequest from sailpoint.v3.models.verification_response import VerificationResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - okta_verification_request = '''{ + okta_verification_request = '''{ "userId" : "example@mail.com" }''' # OktaVerificationRequest | - try: - # Verifying authentication via Okta method - new_okta_verification_request = OktaVerificationRequest.from_json(okta_verification_request) - results = MFAControllerApi(api_client).send_okta_verify_request(okta_verification_request=new_okta_verification_request) - # Below is a request that includes all optional parameters - # results = MFAControllerApi(api_client).send_okta_verify_request(new_okta_verification_request) - print("The response of MFAControllerApi->send_okta_verify_request:\n") - pprint(results) - except Exception as e: - print("Exception when calling MFAControllerApi->send_okta_verify_request: %s\n" % e) + try: + # Verifying authentication via Okta method + new_okta_verification_request = OktaVerificationRequest.from_json(okta_verification_request) + results = MFAControllerApi(api_client).send_okta_verify_request(okta_verification_request=new_okta_verification_request) + # Below is a request that includes all optional parameters + # results = MFAControllerApi(api_client).send_okta_verify_request(new_okta_verification_request) + print("The response of MFAControllerApi->send_okta_verify_request:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling MFAControllerApi->send_okta_verify_request: %s\n" % e) - path: /mfa/token/authenticate method: POST xCodeSample: @@ -4956,27 +4800,26 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.token_auth_request import TokenAuthRequest from sailpoint.v3.models.token_auth_response import TokenAuthResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - token_auth_request = '''{ + token_auth_request = '''{ "userAlias" : "will.albin", "deliveryType" : "EMAIL_WORK", "token" : "12345" }''' # TokenAuthRequest | - try: - # Authenticate Token provided MFA method - new_token_auth_request = TokenAuthRequest.from_json(token_auth_request) - results = MFAControllerApi(api_client).send_token_auth_request(token_auth_request=new_token_auth_request) - # Below is a request that includes all optional parameters - # results = MFAControllerApi(api_client).send_token_auth_request(new_token_auth_request) - print("The response of MFAControllerApi->send_token_auth_request:\n") - pprint(results) - except Exception as e: - print("Exception when calling MFAControllerApi->send_token_auth_request: %s\n" % e) + try: + # Authenticate Token provided MFA method + new_token_auth_request = TokenAuthRequest.from_json(token_auth_request) + results = MFAControllerApi(api_client).send_token_auth_request(token_auth_request=new_token_auth_request) + # Below is a request that includes all optional parameters + # results = MFAControllerApi(api_client).send_token_auth_request(new_token_auth_request) + print("The response of MFAControllerApi->send_token_auth_request:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling MFAControllerApi->send_token_auth_request: %s\n" % e) - path: /non-employee-approvals/{id}/approve method: POST xCodeSample: @@ -4987,26 +4830,25 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.non_employee_approval_decision import NonEmployeeApprovalDecision from sailpoint.v3.models.non_employee_approval_item import NonEmployeeApprovalItem - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'e136567de87e4d029e60b3c3c55db56d' # str | Non-Employee approval item id (UUID) # str | Non-Employee approval item id (UUID) - non_employee_approval_decision = '''{ + id = 'e136567de87e4d029e60b3c3c55db56d' # str | Non-Employee approval item id (UUID) # str | Non-Employee approval item id (UUID) + non_employee_approval_decision = '''{ "comment" : "Approved by manager" }''' # NonEmployeeApprovalDecision | - try: - # Approve a Non-Employee Request - new_non_employee_approval_decision = NonEmployeeApprovalDecision.from_json(non_employee_approval_decision) - results = NonEmployeeLifecycleManagementApi(api_client).approve_non_employee_request(id=id, non_employee_approval_decision=new_non_employee_approval_decision) - # Below is a request that includes all optional parameters - # results = NonEmployeeLifecycleManagementApi(api_client).approve_non_employee_request(id, new_non_employee_approval_decision) - print("The response of NonEmployeeLifecycleManagementApi->approve_non_employee_request:\n") - pprint(results) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->approve_non_employee_request: %s\n" % e) + try: + # Approve a Non-Employee Request + new_non_employee_approval_decision = NonEmployeeApprovalDecision.from_json(non_employee_approval_decision) + results = NonEmployeeLifecycleManagementApi(api_client).approve_non_employee_request(id=id, non_employee_approval_decision=new_non_employee_approval_decision) + # Below is a request that includes all optional parameters + # results = NonEmployeeLifecycleManagementApi(api_client).approve_non_employee_request(id, new_non_employee_approval_decision) + print("The response of NonEmployeeLifecycleManagementApi->approve_non_employee_request:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->approve_non_employee_request: %s\n" % e) - path: /non-employee-records method: POST xCodeSample: @@ -5017,13 +4859,12 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.non_employee_record import NonEmployeeRecord from sailpoint.v3.models.non_employee_request_body import NonEmployeeRequestBody - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - non_employee_request_body = '''{ + non_employee_request_body = '''{ "sourceId" : "2c91808568c529c60168cca6f90c1313", "firstName" : "William", "lastName" : "Smith", @@ -5037,16 +4878,16 @@ "email" : "william.smith@example.com", "startDate" : "2020-03-24T00:00:00-05:00" }''' # NonEmployeeRequestBody | Non-Employee record creation request body. - try: - # Create Non-Employee Record - new_non_employee_request_body = NonEmployeeRequestBody.from_json(non_employee_request_body) - results = NonEmployeeLifecycleManagementApi(api_client).create_non_employee_record(non_employee_request_body=new_non_employee_request_body) - # Below is a request that includes all optional parameters - # results = NonEmployeeLifecycleManagementApi(api_client).create_non_employee_record(new_non_employee_request_body) - print("The response of NonEmployeeLifecycleManagementApi->create_non_employee_record:\n") - pprint(results) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->create_non_employee_record: %s\n" % e) + try: + # Create Non-Employee Record + new_non_employee_request_body = NonEmployeeRequestBody.from_json(non_employee_request_body) + results = NonEmployeeLifecycleManagementApi(api_client).create_non_employee_record(non_employee_request_body=new_non_employee_request_body) + # Below is a request that includes all optional parameters + # results = NonEmployeeLifecycleManagementApi(api_client).create_non_employee_record(new_non_employee_request_body) + print("The response of NonEmployeeLifecycleManagementApi->create_non_employee_record:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->create_non_employee_record: %s\n" % e) - path: /non-employee-requests method: POST xCodeSample: @@ -5057,13 +4898,12 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.non_employee_request import NonEmployeeRequest from sailpoint.v3.models.non_employee_request_body import NonEmployeeRequestBody - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - non_employee_request_body = '''{ + non_employee_request_body = '''{ "sourceId" : "2c91808568c529c60168cca6f90c1313", "firstName" : "William", "lastName" : "Smith", @@ -5077,16 +4917,16 @@ "email" : "william.smith@example.com", "startDate" : "2020-03-24T00:00:00-05:00" }''' # NonEmployeeRequestBody | Non-Employee creation request body - try: - # Create Non-Employee Request - new_non_employee_request_body = NonEmployeeRequestBody.from_json(non_employee_request_body) - results = NonEmployeeLifecycleManagementApi(api_client).create_non_employee_request(non_employee_request_body=new_non_employee_request_body) - # Below is a request that includes all optional parameters - # results = NonEmployeeLifecycleManagementApi(api_client).create_non_employee_request(new_non_employee_request_body) - print("The response of NonEmployeeLifecycleManagementApi->create_non_employee_request:\n") - pprint(results) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->create_non_employee_request: %s\n" % e) + try: + # Create Non-Employee Request + new_non_employee_request_body = NonEmployeeRequestBody.from_json(non_employee_request_body) + results = NonEmployeeLifecycleManagementApi(api_client).create_non_employee_request(non_employee_request_body=new_non_employee_request_body) + # Below is a request that includes all optional parameters + # results = NonEmployeeLifecycleManagementApi(api_client).create_non_employee_request(new_non_employee_request_body) + print("The response of NonEmployeeLifecycleManagementApi->create_non_employee_request:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->create_non_employee_request: %s\n" % e) - path: /non-employee-sources method: POST xCodeSample: @@ -5097,13 +4937,12 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.non_employee_source_request_body import NonEmployeeSourceRequestBody from sailpoint.v3.models.non_employee_source_with_cloud_external_id import NonEmployeeSourceWithCloudExternalId - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - non_employee_source_request_body = '''{ + non_employee_source_request_body = '''{ "owner" : { "id" : "2c91808570313110017040b06f344ec9" }, @@ -5129,16 +4968,16 @@ "id" : "2c91808570313110017040b06f344ec9" } ] }''' # NonEmployeeSourceRequestBody | Non-Employee source creation request body. - try: - # Create Non-Employee Source - new_non_employee_source_request_body = NonEmployeeSourceRequestBody.from_json(non_employee_source_request_body) - results = NonEmployeeLifecycleManagementApi(api_client).create_non_employee_source(non_employee_source_request_body=new_non_employee_source_request_body) - # Below is a request that includes all optional parameters - # results = NonEmployeeLifecycleManagementApi(api_client).create_non_employee_source(new_non_employee_source_request_body) - print("The response of NonEmployeeLifecycleManagementApi->create_non_employee_source:\n") - pprint(results) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->create_non_employee_source: %s\n" % e) + try: + # Create Non-Employee Source + new_non_employee_source_request_body = NonEmployeeSourceRequestBody.from_json(non_employee_source_request_body) + results = NonEmployeeLifecycleManagementApi(api_client).create_non_employee_source(non_employee_source_request_body=new_non_employee_source_request_body) + # Below is a request that includes all optional parameters + # results = NonEmployeeLifecycleManagementApi(api_client).create_non_employee_source(new_non_employee_source_request_body) + print("The response of NonEmployeeLifecycleManagementApi->create_non_employee_source:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->create_non_employee_source: %s\n" % e) - path: /non-employee-sources/{sourceId}/schema-attributes method: POST xCodeSample: @@ -5149,14 +4988,13 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.non_employee_schema_attribute import NonEmployeeSchemaAttribute from sailpoint.v3.models.non_employee_schema_attribute_body import NonEmployeeSchemaAttributeBody - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = 'ef38f94347e94562b5bb8424a56397d8' # str | The Source id # str | The Source id - non_employee_schema_attribute_body = '''{ + source_id = 'ef38f94347e94562b5bb8424a56397d8' # str | The Source id # str | The Source id + non_employee_schema_attribute_body = '''{ "helpText" : "The unique identifier for the account", "label" : "Account Name", "placeholder" : "Enter a unique user name for this account.", @@ -5164,16 +5002,16 @@ "technicalName" : "account.name", "required" : true }''' # NonEmployeeSchemaAttributeBody | - try: - # Create a new Schema Attribute for Non-Employee Source - new_non_employee_schema_attribute_body = NonEmployeeSchemaAttributeBody.from_json(non_employee_schema_attribute_body) - results = NonEmployeeLifecycleManagementApi(api_client).create_non_employee_source_schema_attributes(source_id=source_id, non_employee_schema_attribute_body=new_non_employee_schema_attribute_body) - # Below is a request that includes all optional parameters - # results = NonEmployeeLifecycleManagementApi(api_client).create_non_employee_source_schema_attributes(source_id, new_non_employee_schema_attribute_body) - print("The response of NonEmployeeLifecycleManagementApi->create_non_employee_source_schema_attributes:\n") - pprint(results) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->create_non_employee_source_schema_attributes: %s\n" % e) + try: + # Create a new Schema Attribute for Non-Employee Source + new_non_employee_schema_attribute_body = NonEmployeeSchemaAttributeBody.from_json(non_employee_schema_attribute_body) + results = NonEmployeeLifecycleManagementApi(api_client).create_non_employee_source_schema_attributes(source_id=source_id, non_employee_schema_attribute_body=new_non_employee_schema_attribute_body) + # Below is a request that includes all optional parameters + # results = NonEmployeeLifecycleManagementApi(api_client).create_non_employee_source_schema_attributes(source_id, new_non_employee_schema_attribute_body) + print("The response of NonEmployeeLifecycleManagementApi->create_non_employee_source_schema_attributes:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->create_non_employee_source_schema_attributes: %s\n" % e) - path: /non-employee-records/{id} method: DELETE xCodeSample: @@ -5182,21 +5020,20 @@ source: | from sailpoint.v3.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v3.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | Non-Employee record id (UUID) # str | Non-Employee record id (UUID) - try: - # Delete Non-Employee Record - - NonEmployeeLifecycleManagementApi(api_client).delete_non_employee_record(id=id) - # Below is a request that includes all optional parameters - # NonEmployeeLifecycleManagementApi(api_client).delete_non_employee_record(id) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->delete_non_employee_record: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | Non-Employee record id (UUID) # str | Non-Employee record id (UUID) + try: + # Delete Non-Employee Record + + NonEmployeeLifecycleManagementApi(api_client).delete_non_employee_record(id=id) + # Below is a request that includes all optional parameters + # NonEmployeeLifecycleManagementApi(api_client).delete_non_employee_record(id) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->delete_non_employee_record: %s\n" % e) - path: /non-employee-records/bulk-delete method: POST xCodeSample: @@ -5206,21 +5043,20 @@ from sailpoint.v3.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.delete_non_employee_records_in_bulk_request import DeleteNonEmployeeRecordsInBulkRequest - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - delete_non_employee_records_in_bulk_request = '''sailpoint.v3.DeleteNonEmployeeRecordsInBulkRequest()''' # DeleteNonEmployeeRecordsInBulkRequest | Non-Employee bulk delete request body. - try: - # Delete Multiple Non-Employee Records - new_delete_non_employee_records_in_bulk_request = DeleteNonEmployeeRecordsInBulkRequest.from_json(delete_non_employee_records_in_bulk_request) - NonEmployeeLifecycleManagementApi(api_client).delete_non_employee_records_in_bulk(delete_non_employee_records_in_bulk_request=new_delete_non_employee_records_in_bulk_request) - # Below is a request that includes all optional parameters - # NonEmployeeLifecycleManagementApi(api_client).delete_non_employee_records_in_bulk(new_delete_non_employee_records_in_bulk_request) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->delete_non_employee_records_in_bulk: %s\n" % e) + delete_non_employee_records_in_bulk_request = '''sailpoint.v3.DeleteNonEmployeeRecordsInBulkRequest()''' # DeleteNonEmployeeRecordsInBulkRequest | Non-Employee bulk delete request body. + try: + # Delete Multiple Non-Employee Records + new_delete_non_employee_records_in_bulk_request = DeleteNonEmployeeRecordsInBulkRequest.from_json(delete_non_employee_records_in_bulk_request) + NonEmployeeLifecycleManagementApi(api_client).delete_non_employee_records_in_bulk(delete_non_employee_records_in_bulk_request=new_delete_non_employee_records_in_bulk_request) + # Below is a request that includes all optional parameters + # NonEmployeeLifecycleManagementApi(api_client).delete_non_employee_records_in_bulk(new_delete_non_employee_records_in_bulk_request) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->delete_non_employee_records_in_bulk: %s\n" % e) - path: /non-employee-requests/{id} method: DELETE xCodeSample: @@ -5229,21 +5065,20 @@ source: | from sailpoint.v3.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v3.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ac110005-7156-1150-8171-5b292e3e0084' # str | Non-Employee request id in the UUID format # str | Non-Employee request id in the UUID format - try: - # Delete Non-Employee Request - - NonEmployeeLifecycleManagementApi(api_client).delete_non_employee_request(id=id) - # Below is a request that includes all optional parameters - # NonEmployeeLifecycleManagementApi(api_client).delete_non_employee_request(id) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->delete_non_employee_request: %s\n" % e) + id = 'ac110005-7156-1150-8171-5b292e3e0084' # str | Non-Employee request id in the UUID format # str | Non-Employee request id in the UUID format + try: + # Delete Non-Employee Request + + NonEmployeeLifecycleManagementApi(api_client).delete_non_employee_request(id=id) + # Below is a request that includes all optional parameters + # NonEmployeeLifecycleManagementApi(api_client).delete_non_employee_request(id) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->delete_non_employee_request: %s\n" % e) - path: /non-employee-sources/{sourceId}/schema-attributes/{attributeId} method: DELETE xCodeSample: @@ -5252,22 +5087,21 @@ source: | from sailpoint.v3.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v3.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - attribute_id = 'ef38f94347e94562b5bb8424a56397d8' # str | The Schema Attribute Id (UUID) # str | The Schema Attribute Id (UUID) - source_id = 'ef38f94347e94562b5bb8424a56397d8' # str | The Source id # str | The Source id - try: - # Delete a Schema Attribute for Non-Employee Source - - NonEmployeeLifecycleManagementApi(api_client).delete_non_employee_schema_attribute(attribute_id=attribute_id, source_id=source_id) - # Below is a request that includes all optional parameters - # NonEmployeeLifecycleManagementApi(api_client).delete_non_employee_schema_attribute(attribute_id, source_id) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->delete_non_employee_schema_attribute: %s\n" % e) + attribute_id = 'ef38f94347e94562b5bb8424a56397d8' # str | The Schema Attribute Id (UUID) # str | The Schema Attribute Id (UUID) + source_id = 'ef38f94347e94562b5bb8424a56397d8' # str | The Source id # str | The Source id + try: + # Delete a Schema Attribute for Non-Employee Source + + NonEmployeeLifecycleManagementApi(api_client).delete_non_employee_schema_attribute(attribute_id=attribute_id, source_id=source_id) + # Below is a request that includes all optional parameters + # NonEmployeeLifecycleManagementApi(api_client).delete_non_employee_schema_attribute(attribute_id, source_id) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->delete_non_employee_schema_attribute: %s\n" % e) - path: /non-employee-sources/{sourceId} method: DELETE xCodeSample: @@ -5276,21 +5110,20 @@ source: | from sailpoint.v3.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v3.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = 'e136567de87e4d029e60b3c3c55db56d' # str | Source Id # str | Source Id - try: - # Delete Non-Employee Source - - NonEmployeeLifecycleManagementApi(api_client).delete_non_employee_source(source_id=source_id) - # Below is a request that includes all optional parameters - # NonEmployeeLifecycleManagementApi(api_client).delete_non_employee_source(source_id) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->delete_non_employee_source: %s\n" % e) + source_id = 'e136567de87e4d029e60b3c3c55db56d' # str | Source Id # str | Source Id + try: + # Delete Non-Employee Source + + NonEmployeeLifecycleManagementApi(api_client).delete_non_employee_source(source_id=source_id) + # Below is a request that includes all optional parameters + # NonEmployeeLifecycleManagementApi(api_client).delete_non_employee_source(source_id) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->delete_non_employee_source: %s\n" % e) - path: /non-employee-sources/{sourceId}/schema-attributes method: DELETE xCodeSample: @@ -5299,21 +5132,20 @@ source: | from sailpoint.v3.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v3.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = 'ef38f94347e94562b5bb8424a56397d8' # str | The Source id # str | The Source id - try: - # Delete all custom schema attributes for Non-Employee Source - - NonEmployeeLifecycleManagementApi(api_client).delete_non_employee_source_schema_attributes(source_id=source_id) - # Below is a request that includes all optional parameters - # NonEmployeeLifecycleManagementApi(api_client).delete_non_employee_source_schema_attributes(source_id) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->delete_non_employee_source_schema_attributes: %s\n" % e) + source_id = 'ef38f94347e94562b5bb8424a56397d8' # str | The Source id # str | The Source id + try: + # Delete all custom schema attributes for Non-Employee Source + + NonEmployeeLifecycleManagementApi(api_client).delete_non_employee_source_schema_attributes(source_id=source_id) + # Below is a request that includes all optional parameters + # NonEmployeeLifecycleManagementApi(api_client).delete_non_employee_source_schema_attributes(source_id) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->delete_non_employee_source_schema_attributes: %s\n" % e) - path: /non-employee-sources/{id}/non-employees/download method: GET xCodeSample: @@ -5322,21 +5154,20 @@ source: | from sailpoint.v3.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v3.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'e136567de87e4d029e60b3c3c55db56d' # str | Source Id (UUID) # str | Source Id (UUID) - try: - # Exports Non-Employee Records to CSV - - NonEmployeeLifecycleManagementApi(api_client).export_non_employee_records(id=id) - # Below is a request that includes all optional parameters - # NonEmployeeLifecycleManagementApi(api_client).export_non_employee_records(id) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->export_non_employee_records: %s\n" % e) + id = 'e136567de87e4d029e60b3c3c55db56d' # str | Source Id (UUID) # str | Source Id (UUID) + try: + # Exports Non-Employee Records to CSV + + NonEmployeeLifecycleManagementApi(api_client).export_non_employee_records(id=id) + # Below is a request that includes all optional parameters + # NonEmployeeLifecycleManagementApi(api_client).export_non_employee_records(id) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->export_non_employee_records: %s\n" % e) - path: /non-employee-sources/{id}/schema-attributes-template/download method: GET xCodeSample: @@ -5345,21 +5176,20 @@ source: | from sailpoint.v3.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v3.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | Source Id (UUID) # str | Source Id (UUID) - try: - # Exports Source Schema Template - - NonEmployeeLifecycleManagementApi(api_client).export_non_employee_source_schema_template(id=id) - # Below is a request that includes all optional parameters - # NonEmployeeLifecycleManagementApi(api_client).export_non_employee_source_schema_template(id) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->export_non_employee_source_schema_template: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | Source Id (UUID) # str | Source Id (UUID) + try: + # Exports Source Schema Template + + NonEmployeeLifecycleManagementApi(api_client).export_non_employee_source_schema_template(id=id) + # Below is a request that includes all optional parameters + # NonEmployeeLifecycleManagementApi(api_client).export_non_employee_source_schema_template(id) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->export_non_employee_source_schema_template: %s\n" % e) - path: /non-employee-approvals/{id} method: GET xCodeSample: @@ -5369,24 +5199,23 @@ from sailpoint.v3.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.non_employee_approval_item_detail import NonEmployeeApprovalItemDetail - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'e136567de87e4d029e60b3c3c55db56d' # str | Non-Employee approval item id (UUID) # str | Non-Employee approval item id (UUID) - include_detail = true # bool | The object nonEmployeeRequest will not be included detail when set to false. *Default value is true* (optional) # bool | The object nonEmployeeRequest will not be included detail when set to false. *Default value is true* (optional) - try: - # Get a non-employee approval item detail - - results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_approval(id=id) - # Below is a request that includes all optional parameters - # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_approval(id, include_detail) - print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_approval:\n") - pprint(results) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_approval: %s\n" % e) + id = 'e136567de87e4d029e60b3c3c55db56d' # str | Non-Employee approval item id (UUID) # str | Non-Employee approval item id (UUID) + include_detail = true # bool | The object nonEmployeeRequest will not be included detail when set to false. *Default value is true* (optional) # bool | The object nonEmployeeRequest will not be included detail when set to false. *Default value is true* (optional) + try: + # Get a non-employee approval item detail + + results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_approval(id=id) + # Below is a request that includes all optional parameters + # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_approval(id, include_detail) + print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_approval:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_approval: %s\n" % e) - path: /non-employee-approvals/summary/{requested-for} method: GET xCodeSample: @@ -5396,23 +5225,22 @@ from sailpoint.v3.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.non_employee_approval_summary import NonEmployeeApprovalSummary - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - requested_for = '2c91808280430dfb0180431a59440460' # str | The identity (UUID) of the approver for whom for whom the summary is being retrieved. Use \"me\" instead to indicate the current user. # str | The identity (UUID) of the approver for whom for whom the summary is being retrieved. Use \"me\" instead to indicate the current user. - try: - # Get Summary of Non-Employee Approval Requests - - results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_approval_summary(requested_for=requested_for) - # Below is a request that includes all optional parameters - # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_approval_summary(requested_for) - print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_approval_summary:\n") - pprint(results) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_approval_summary: %s\n" % e) + requested_for = '2c91808280430dfb0180431a59440460' # str | The identity (UUID) of the approver for whom for whom the summary is being retrieved. Use \"me\" instead to indicate the current user. # str | The identity (UUID) of the approver for whom for whom the summary is being retrieved. Use \"me\" instead to indicate the current user. + try: + # Get Summary of Non-Employee Approval Requests + + results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_approval_summary(requested_for=requested_for) + # Below is a request that includes all optional parameters + # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_approval_summary(requested_for) + print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_approval_summary:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_approval_summary: %s\n" % e) - path: /non-employee-sources/{id}/non-employee-bulk-upload/status method: GET xCodeSample: @@ -5422,23 +5250,22 @@ from sailpoint.v3.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.non_employee_bulk_upload_status import NonEmployeeBulkUploadStatus - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'e136567de87e4d029e60b3c3c55db56d' # str | Source ID (UUID) # str | Source ID (UUID) - try: - # Obtain the status of bulk upload on the source - - results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_bulk_upload_status(id=id) - # Below is a request that includes all optional parameters - # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_bulk_upload_status(id) - print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_bulk_upload_status:\n") - pprint(results) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_bulk_upload_status: %s\n" % e) + id = 'e136567de87e4d029e60b3c3c55db56d' # str | Source ID (UUID) # str | Source ID (UUID) + try: + # Obtain the status of bulk upload on the source + + results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_bulk_upload_status(id=id) + # Below is a request that includes all optional parameters + # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_bulk_upload_status(id) + print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_bulk_upload_status:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_bulk_upload_status: %s\n" % e) - path: /non-employee-records/{id} method: GET xCodeSample: @@ -5448,23 +5275,22 @@ from sailpoint.v3.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.non_employee_record import NonEmployeeRecord - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | Non-Employee record id (UUID) # str | Non-Employee record id (UUID) - try: - # Get a Non-Employee Record - - results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_record(id=id) - # Below is a request that includes all optional parameters - # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_record(id) - print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_record:\n") - pprint(results) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_record: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | Non-Employee record id (UUID) # str | Non-Employee record id (UUID) + try: + # Get a Non-Employee Record + + results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_record(id=id) + # Below is a request that includes all optional parameters + # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_record(id) + print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_record:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_record: %s\n" % e) - path: /non-employee-requests/{id} method: GET xCodeSample: @@ -5474,23 +5300,22 @@ from sailpoint.v3.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.non_employee_request import NonEmployeeRequest - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ac110005-7156-1150-8171-5b292e3e0084' # str | Non-Employee request id (UUID) # str | Non-Employee request id (UUID) - try: - # Get a Non-Employee Request - - results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_request(id=id) - # Below is a request that includes all optional parameters - # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_request(id) - print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_request:\n") - pprint(results) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_request: %s\n" % e) + id = 'ac110005-7156-1150-8171-5b292e3e0084' # str | Non-Employee request id (UUID) # str | Non-Employee request id (UUID) + try: + # Get a Non-Employee Request + + results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_request(id=id) + # Below is a request that includes all optional parameters + # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_request(id) + print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_request:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_request: %s\n" % e) - path: /non-employee-requests/summary/{requested-for} method: GET xCodeSample: @@ -5500,23 +5325,22 @@ from sailpoint.v3.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.non_employee_request_summary import NonEmployeeRequestSummary - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - requested_for = '2c91808280430dfb0180431a59440460' # str | The identity (UUID) of the non-employee account manager for whom the summary is being retrieved. Use \"me\" instead to indicate the current user. # str | The identity (UUID) of the non-employee account manager for whom the summary is being retrieved. Use \"me\" instead to indicate the current user. - try: - # Get Summary of Non-Employee Requests - - results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_request_summary(requested_for=requested_for) - # Below is a request that includes all optional parameters - # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_request_summary(requested_for) - print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_request_summary:\n") - pprint(results) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_request_summary: %s\n" % e) + requested_for = '2c91808280430dfb0180431a59440460' # str | The identity (UUID) of the non-employee account manager for whom the summary is being retrieved. Use \"me\" instead to indicate the current user. # str | The identity (UUID) of the non-employee account manager for whom the summary is being retrieved. Use \"me\" instead to indicate the current user. + try: + # Get Summary of Non-Employee Requests + + results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_request_summary(requested_for=requested_for) + # Below is a request that includes all optional parameters + # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_request_summary(requested_for) + print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_request_summary:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_request_summary: %s\n" % e) - path: /non-employee-sources/{sourceId}/schema-attributes/{attributeId} method: GET xCodeSample: @@ -5526,24 +5350,23 @@ from sailpoint.v3.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.non_employee_schema_attribute import NonEmployeeSchemaAttribute - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - attribute_id = 'ef38f94347e94562b5bb8424a56397d8' # str | The Schema Attribute Id (UUID) # str | The Schema Attribute Id (UUID) - source_id = 'ef38f94347e94562b5bb8424a56397d8' # str | The Source id # str | The Source id - try: - # Get Schema Attribute Non-Employee Source - - results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_schema_attribute(attribute_id=attribute_id, source_id=source_id) - # Below is a request that includes all optional parameters - # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_schema_attribute(attribute_id, source_id) - print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_schema_attribute:\n") - pprint(results) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_schema_attribute: %s\n" % e) + attribute_id = 'ef38f94347e94562b5bb8424a56397d8' # str | The Schema Attribute Id (UUID) # str | The Schema Attribute Id (UUID) + source_id = 'ef38f94347e94562b5bb8424a56397d8' # str | The Source id # str | The Source id + try: + # Get Schema Attribute Non-Employee Source + + results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_schema_attribute(attribute_id=attribute_id, source_id=source_id) + # Below is a request that includes all optional parameters + # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_schema_attribute(attribute_id, source_id) + print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_schema_attribute:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_schema_attribute: %s\n" % e) - path: /non-employee-sources/{sourceId} method: GET xCodeSample: @@ -5553,23 +5376,22 @@ from sailpoint.v3.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.non_employee_source import NonEmployeeSource - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '2c91808b7c28b350017c2a2ec5790aa1' # str | Source Id # str | Source Id - try: - # Get a Non-Employee Source - - results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_source(source_id=source_id) - # Below is a request that includes all optional parameters - # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_source(source_id) - print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_source:\n") - pprint(results) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_source: %s\n" % e) + source_id = '2c91808b7c28b350017c2a2ec5790aa1' # str | Source Id # str | Source Id + try: + # Get a Non-Employee Source + + results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_source(source_id=source_id) + # Below is a request that includes all optional parameters + # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_source(source_id) + print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_source:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_source: %s\n" % e) - path: /non-employee-sources/{sourceId}/schema-attributes method: GET xCodeSample: @@ -5579,23 +5401,22 @@ from sailpoint.v3.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.non_employee_schema_attribute import NonEmployeeSchemaAttribute - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = 'ef38f94347e94562b5bb8424a56397d8' # str | The Source id # str | The Source id - try: - # List Schema Attributes Non-Employee Source - - results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_source_schema_attributes(source_id=source_id) - # Below is a request that includes all optional parameters - # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_source_schema_attributes(source_id) - print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_source_schema_attributes:\n") - pprint(results) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_source_schema_attributes: %s\n" % e) + source_id = 'ef38f94347e94562b5bb8424a56397d8' # str | The Source id # str | The Source id + try: + # List Schema Attributes Non-Employee Source + + results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_source_schema_attributes(source_id=source_id) + # Below is a request that includes all optional parameters + # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_source_schema_attributes(source_id) + print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_source_schema_attributes:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_source_schema_attributes: %s\n" % e) - path: /non-employee-sources/{id}/non-employee-bulk-upload method: POST xCodeSample: @@ -5605,24 +5426,23 @@ from sailpoint.v3.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.non_employee_bulk_upload_job import NonEmployeeBulkUploadJob - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'e136567de87e4d029e60b3c3c55db56d' # str | Source Id (UUID) # str | Source Id (UUID) - data = None # bytearray | # bytearray | - try: - # Imports, or Updates, Non-Employee Records - - results = NonEmployeeLifecycleManagementApi(api_client).import_non_employee_records_in_bulk(id=id, data=data) - # Below is a request that includes all optional parameters - # results = NonEmployeeLifecycleManagementApi(api_client).import_non_employee_records_in_bulk(id, data) - print("The response of NonEmployeeLifecycleManagementApi->import_non_employee_records_in_bulk:\n") - pprint(results) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->import_non_employee_records_in_bulk: %s\n" % e) + id = 'e136567de87e4d029e60b3c3c55db56d' # str | Source Id (UUID) # str | Source Id (UUID) + data = None # bytearray | # bytearray | + try: + # Imports, or Updates, Non-Employee Records + + results = NonEmployeeLifecycleManagementApi(api_client).import_non_employee_records_in_bulk(id=id, data=data) + # Below is a request that includes all optional parameters + # results = NonEmployeeLifecycleManagementApi(api_client).import_non_employee_records_in_bulk(id, data) + print("The response of NonEmployeeLifecycleManagementApi->import_non_employee_records_in_bulk:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->import_non_employee_records_in_bulk: %s\n" % e) - path: /non-employee-approvals method: GET xCodeSample: @@ -5632,28 +5452,27 @@ from sailpoint.v3.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.non_employee_approval_item import NonEmployeeApprovalItem - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - requested_for = '2c91808280430dfb0180431a59440460' # str | The identity for whom the request was made. *me* indicates the current user. (optional) # str | The identity for whom the request was made. *me* indicates the current user. (optional) - 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 = 'approvalStatus eq \"Pending\"' # 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: **approvalStatus**: *eq* (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: **approvalStatus**: *eq* (optional) - sorters = 'created' # 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** (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** (optional) - try: - # Get List of Non-Employee Approval Requests - - results = NonEmployeeLifecycleManagementApi(api_client).list_non_employee_approvals() - # Below is a request that includes all optional parameters - # results = NonEmployeeLifecycleManagementApi(api_client).list_non_employee_approvals(requested_for, limit, offset, count, filters, sorters) - print("The response of NonEmployeeLifecycleManagementApi->list_non_employee_approvals:\n") - pprint(results) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->list_non_employee_approvals: %s\n" % e) + requested_for = '2c91808280430dfb0180431a59440460' # str | The identity for whom the request was made. *me* indicates the current user. (optional) # str | The identity for whom the request was made. *me* indicates the current user. (optional) + 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 = 'approvalStatus eq \"Pending\"' # 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: **approvalStatus**: *eq* (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: **approvalStatus**: *eq* (optional) + sorters = 'created' # 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** (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** (optional) + try: + # Get List of Non-Employee Approval Requests + + results = NonEmployeeLifecycleManagementApi(api_client).list_non_employee_approvals() + # Below is a request that includes all optional parameters + # results = NonEmployeeLifecycleManagementApi(api_client).list_non_employee_approvals(requested_for, limit, offset, count, filters, sorters) + print("The response of NonEmployeeLifecycleManagementApi->list_non_employee_approvals:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->list_non_employee_approvals: %s\n" % e) - path: /non-employee-records method: GET xCodeSample: @@ -5663,27 +5482,26 @@ from sailpoint.v3.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.non_employee_record import NonEmployeeRecord - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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) - sorters = 'accountName,sourceId' # 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: **id, accountName, sourceId, manager, firstName, lastName, email, phone, startDate, endDate, created, modified** (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: **id, accountName, sourceId, manager, firstName, lastName, email, phone, startDate, endDate, created, modified** (optional) - filters = 'sourceId eq \"2c91808568c529c60168cca6f90c1313\"' # 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: **sourceId**: *eq* (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: **sourceId**: *eq* (optional) - try: - # List Non-Employee Records - - results = NonEmployeeLifecycleManagementApi(api_client).list_non_employee_records() - # Below is a request that includes all optional parameters - # results = NonEmployeeLifecycleManagementApi(api_client).list_non_employee_records(limit, offset, count, sorters, filters) - print("The response of NonEmployeeLifecycleManagementApi->list_non_employee_records:\n") - pprint(results) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->list_non_employee_records: %s\n" % e) + 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) + sorters = 'accountName,sourceId' # 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: **id, accountName, sourceId, manager, firstName, lastName, email, phone, startDate, endDate, created, modified** (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: **id, accountName, sourceId, manager, firstName, lastName, email, phone, startDate, endDate, created, modified** (optional) + filters = 'sourceId eq \"2c91808568c529c60168cca6f90c1313\"' # 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: **sourceId**: *eq* (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: **sourceId**: *eq* (optional) + try: + # List Non-Employee Records + + results = NonEmployeeLifecycleManagementApi(api_client).list_non_employee_records() + # Below is a request that includes all optional parameters + # results = NonEmployeeLifecycleManagementApi(api_client).list_non_employee_records(limit, offset, count, sorters, filters) + print("The response of NonEmployeeLifecycleManagementApi->list_non_employee_records:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->list_non_employee_records: %s\n" % e) - path: /non-employee-requests method: GET xCodeSample: @@ -5693,28 +5511,27 @@ from sailpoint.v3.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.non_employee_request import NonEmployeeRequest - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - requested_for = 'e136567de87e4d029e60b3c3c55db56d' # str | The identity for whom the request was made. *me* indicates the current user. # str | The identity for whom the request was made. *me* indicates the current user. - 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) - sorters = 'created,approvalStatus' # 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, approvalStatus, firstName, lastName, email, phone, accountName, startDate, endDate** (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, approvalStatus, firstName, lastName, email, phone, accountName, startDate, endDate** (optional) - filters = 'sourceId eq \"2c91808568c529c60168cca6f90c1313\"' # 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: **sourceId**: *eq* (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: **sourceId**: *eq* (optional) - try: - # List Non-Employee Requests - - results = NonEmployeeLifecycleManagementApi(api_client).list_non_employee_requests(requested_for=requested_for) - # Below is a request that includes all optional parameters - # results = NonEmployeeLifecycleManagementApi(api_client).list_non_employee_requests(requested_for, limit, offset, count, sorters, filters) - print("The response of NonEmployeeLifecycleManagementApi->list_non_employee_requests:\n") - pprint(results) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->list_non_employee_requests: %s\n" % e) + requested_for = 'e136567de87e4d029e60b3c3c55db56d' # str | The identity for whom the request was made. *me* indicates the current user. # str | The identity for whom the request was made. *me* indicates the current user. + 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) + sorters = 'created,approvalStatus' # 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, approvalStatus, firstName, lastName, email, phone, accountName, startDate, endDate** (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, approvalStatus, firstName, lastName, email, phone, accountName, startDate, endDate** (optional) + filters = 'sourceId eq \"2c91808568c529c60168cca6f90c1313\"' # 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: **sourceId**: *eq* (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: **sourceId**: *eq* (optional) + try: + # List Non-Employee Requests + + results = NonEmployeeLifecycleManagementApi(api_client).list_non_employee_requests(requested_for=requested_for) + # Below is a request that includes all optional parameters + # results = NonEmployeeLifecycleManagementApi(api_client).list_non_employee_requests(requested_for, limit, offset, count, sorters, filters) + print("The response of NonEmployeeLifecycleManagementApi->list_non_employee_requests:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->list_non_employee_requests: %s\n" % e) - path: /non-employee-sources method: GET xCodeSample: @@ -5724,28 +5541,27 @@ from sailpoint.v3.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.non_employee_source_with_ne_count import NonEmployeeSourceWithNECount - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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) - requested_for = 'me' # str | Identity the request was made for. Use 'me' to indicate the current user. (optional) # str | Identity the request was made for. Use 'me' to indicate the current user. (optional) - non_employee_count = False # bool | Flag that determines whether the API will return a non-employee count associated with the source. (optional) (default to False) # bool | Flag that determines whether the API will return a non-employee count associated with the source. (optional) (default to False) - sorters = 'name,created' # 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: **name, created, sourceId** (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: **name, created, sourceId** (optional) - try: - # List Non-Employee Sources - - results = NonEmployeeLifecycleManagementApi(api_client).list_non_employee_sources() - # Below is a request that includes all optional parameters - # results = NonEmployeeLifecycleManagementApi(api_client).list_non_employee_sources(limit, offset, count, requested_for, non_employee_count, sorters) - print("The response of NonEmployeeLifecycleManagementApi->list_non_employee_sources:\n") - pprint(results) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->list_non_employee_sources: %s\n" % e) + 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) + requested_for = 'me' # str | Identity the request was made for. Use 'me' to indicate the current user. (optional) # str | Identity the request was made for. Use 'me' to indicate the current user. (optional) + non_employee_count = False # bool | Flag that determines whether the API will return a non-employee count associated with the source. (optional) (default to False) # bool | Flag that determines whether the API will return a non-employee count associated with the source. (optional) (default to False) + sorters = 'name,created' # 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: **name, created, sourceId** (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: **name, created, sourceId** (optional) + try: + # List Non-Employee Sources + + results = NonEmployeeLifecycleManagementApi(api_client).list_non_employee_sources() + # Below is a request that includes all optional parameters + # results = NonEmployeeLifecycleManagementApi(api_client).list_non_employee_sources(limit, offset, count, requested_for, non_employee_count, sorters) + print("The response of NonEmployeeLifecycleManagementApi->list_non_employee_sources:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->list_non_employee_sources: %s\n" % e) - path: /non-employee-records/{id} method: PATCH xCodeSample: @@ -5756,24 +5572,23 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.json_patch_operation import JsonPatchOperation from sailpoint.v3.models.non_employee_record import NonEmployeeRecord - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | Non-employee record id (UUID) # str | Non-employee record id (UUID) - json_patch_operation = '''[{op=replace, path=/endDate, value=2019-08-23T18:40:35.772Z}]''' # List[JsonPatchOperation] | A list of non-employee update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Attributes are restricted by user type. Owner of source can update end date. Organization admins can update all available fields. - try: - # Patch Non-Employee Record - new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) - results = NonEmployeeLifecycleManagementApi(api_client).patch_non_employee_record(id=id, json_patch_operation=new_json_patch_operation) - # Below is a request that includes all optional parameters - # results = NonEmployeeLifecycleManagementApi(api_client).patch_non_employee_record(id, new_json_patch_operation) - print("The response of NonEmployeeLifecycleManagementApi->patch_non_employee_record:\n") - pprint(results) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->patch_non_employee_record: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | Non-employee record id (UUID) # str | Non-employee record id (UUID) + json_patch_operation = '''[{op=replace, path=/endDate, value=2019-08-23T18:40:35.772Z}]''' # List[JsonPatchOperation] | A list of non-employee update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Attributes are restricted by user type. Owner of source can update end date. Organization admins can update all available fields. + try: + # Patch Non-Employee Record + new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) + results = NonEmployeeLifecycleManagementApi(api_client).patch_non_employee_record(id=id, json_patch_operation=new_json_patch_operation) + # Below is a request that includes all optional parameters + # results = NonEmployeeLifecycleManagementApi(api_client).patch_non_employee_record(id, new_json_patch_operation) + print("The response of NonEmployeeLifecycleManagementApi->patch_non_employee_record:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->patch_non_employee_record: %s\n" % e) - path: /non-employee-sources/{sourceId}/schema-attributes/{attributeId} method: PATCH xCodeSample: @@ -5784,25 +5599,24 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.json_patch_operation import JsonPatchOperation from sailpoint.v3.models.non_employee_schema_attribute import NonEmployeeSchemaAttribute - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - attribute_id = 'ef38f94347e94562b5bb8424a56397d8' # str | The Schema Attribute Id (UUID) # str | The Schema Attribute Id (UUID) - source_id = 'ef38f94347e94562b5bb8424a56397d8' # str | The Source id # str | The Source id - json_patch_operation = '''[{op=replace, path=/label, value={new attribute label=null}}]''' # List[JsonPatchOperation] | A list of schema attribute update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following properties are allowed for update ':' 'label', 'helpText', 'placeholder', 'required'. - try: - # Patch a Schema Attribute for Non-Employee Source - new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) - results = NonEmployeeLifecycleManagementApi(api_client).patch_non_employee_schema_attribute(attribute_id=attribute_id, source_id=source_id, json_patch_operation=new_json_patch_operation) - # Below is a request that includes all optional parameters - # results = NonEmployeeLifecycleManagementApi(api_client).patch_non_employee_schema_attribute(attribute_id, source_id, new_json_patch_operation) - print("The response of NonEmployeeLifecycleManagementApi->patch_non_employee_schema_attribute:\n") - pprint(results) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->patch_non_employee_schema_attribute: %s\n" % e) + attribute_id = 'ef38f94347e94562b5bb8424a56397d8' # str | The Schema Attribute Id (UUID) # str | The Schema Attribute Id (UUID) + source_id = 'ef38f94347e94562b5bb8424a56397d8' # str | The Source id # str | The Source id + json_patch_operation = '''[{op=replace, path=/label, value={new attribute label=null}}]''' # List[JsonPatchOperation] | A list of schema attribute update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following properties are allowed for update ':' 'label', 'helpText', 'placeholder', 'required'. + try: + # Patch a Schema Attribute for Non-Employee Source + new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) + results = NonEmployeeLifecycleManagementApi(api_client).patch_non_employee_schema_attribute(attribute_id=attribute_id, source_id=source_id, json_patch_operation=new_json_patch_operation) + # Below is a request that includes all optional parameters + # results = NonEmployeeLifecycleManagementApi(api_client).patch_non_employee_schema_attribute(attribute_id, source_id, new_json_patch_operation) + print("The response of NonEmployeeLifecycleManagementApi->patch_non_employee_schema_attribute:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->patch_non_employee_schema_attribute: %s\n" % e) - path: /non-employee-sources/{sourceId} method: PATCH xCodeSample: @@ -5813,24 +5627,23 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.json_patch_operation import JsonPatchOperation from sailpoint.v3.models.non_employee_source import NonEmployeeSource - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = 'e136567de87e4d029e60b3c3c55db56d' # str | Source Id # str | Source Id - json_patch_operation = '''[{op=replace, path=/name, value={new name=null}}, {op=replace, path=/approvers, value=[2c91809f703bb37a017040a2fe8748c7, 48b1f463c9e8427db5a5071bd81914b8]}]''' # List[JsonPatchOperation] | A list of non-employee source update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. - try: - # Patch a Non-Employee Source - new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) - results = NonEmployeeLifecycleManagementApi(api_client).patch_non_employee_source(source_id=source_id, json_patch_operation=new_json_patch_operation) - # Below is a request that includes all optional parameters - # results = NonEmployeeLifecycleManagementApi(api_client).patch_non_employee_source(source_id, new_json_patch_operation) - print("The response of NonEmployeeLifecycleManagementApi->patch_non_employee_source:\n") - pprint(results) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->patch_non_employee_source: %s\n" % e) + source_id = 'e136567de87e4d029e60b3c3c55db56d' # str | Source Id # str | Source Id + json_patch_operation = '''[{op=replace, path=/name, value={new name=null}}, {op=replace, path=/approvers, value=[2c91809f703bb37a017040a2fe8748c7, 48b1f463c9e8427db5a5071bd81914b8]}]''' # List[JsonPatchOperation] | A list of non-employee source update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. + try: + # Patch a Non-Employee Source + new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) + results = NonEmployeeLifecycleManagementApi(api_client).patch_non_employee_source(source_id=source_id, json_patch_operation=new_json_patch_operation) + # Below is a request that includes all optional parameters + # results = NonEmployeeLifecycleManagementApi(api_client).patch_non_employee_source(source_id, new_json_patch_operation) + print("The response of NonEmployeeLifecycleManagementApi->patch_non_employee_source:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->patch_non_employee_source: %s\n" % e) - path: /non-employee-approvals/{id}/reject method: POST xCodeSample: @@ -5841,26 +5654,25 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.non_employee_approval_item import NonEmployeeApprovalItem from sailpoint.v3.models.non_employee_reject_approval_decision import NonEmployeeRejectApprovalDecision - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'e136567de87e4d029e60b3c3c55db56d' # str | Non-Employee approval item id (UUID) # str | Non-Employee approval item id (UUID) - non_employee_reject_approval_decision = '''{ + id = 'e136567de87e4d029e60b3c3c55db56d' # str | Non-Employee approval item id (UUID) # str | Non-Employee approval item id (UUID) + non_employee_reject_approval_decision = '''{ "comment" : "approved" }''' # NonEmployeeRejectApprovalDecision | - try: - # Reject a Non-Employee Request - new_non_employee_reject_approval_decision = NonEmployeeRejectApprovalDecision.from_json(non_employee_reject_approval_decision) - results = NonEmployeeLifecycleManagementApi(api_client).reject_non_employee_request(id=id, non_employee_reject_approval_decision=new_non_employee_reject_approval_decision) - # Below is a request that includes all optional parameters - # results = NonEmployeeLifecycleManagementApi(api_client).reject_non_employee_request(id, new_non_employee_reject_approval_decision) - print("The response of NonEmployeeLifecycleManagementApi->reject_non_employee_request:\n") - pprint(results) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->reject_non_employee_request: %s\n" % e) + try: + # Reject a Non-Employee Request + new_non_employee_reject_approval_decision = NonEmployeeRejectApprovalDecision.from_json(non_employee_reject_approval_decision) + results = NonEmployeeLifecycleManagementApi(api_client).reject_non_employee_request(id=id, non_employee_reject_approval_decision=new_non_employee_reject_approval_decision) + # Below is a request that includes all optional parameters + # results = NonEmployeeLifecycleManagementApi(api_client).reject_non_employee_request(id, new_non_employee_reject_approval_decision) + print("The response of NonEmployeeLifecycleManagementApi->reject_non_employee_request:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->reject_non_employee_request: %s\n" % e) - path: /non-employee-records/{id} method: PUT xCodeSample: @@ -5871,14 +5683,13 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.non_employee_record import NonEmployeeRecord from sailpoint.v3.models.non_employee_request_body import NonEmployeeRequestBody - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | Non-employee record id (UUID) # str | Non-employee record id (UUID) - non_employee_request_body = '''{ + id = 'ef38f94347e94562b5bb8424a56397d8' # str | Non-employee record id (UUID) # str | Non-employee record id (UUID) + non_employee_request_body = '''{ "sourceId" : "2c91808568c529c60168cca6f90c1313", "firstName" : "William", "lastName" : "Smith", @@ -5892,16 +5703,16 @@ "email" : "william.smith@example.com", "startDate" : "2020-03-24T00:00:00-05:00" }''' # NonEmployeeRequestBody | Non-employee record creation request body. Attributes are restricted by user type. Owner of source can update end date. Organization admins can update all available fields. - try: - # Update Non-Employee Record - new_non_employee_request_body = NonEmployeeRequestBody.from_json(non_employee_request_body) - results = NonEmployeeLifecycleManagementApi(api_client).update_non_employee_record(id=id, non_employee_request_body=new_non_employee_request_body) - # Below is a request that includes all optional parameters - # results = NonEmployeeLifecycleManagementApi(api_client).update_non_employee_record(id, new_non_employee_request_body) - print("The response of NonEmployeeLifecycleManagementApi->update_non_employee_record:\n") - pprint(results) - except Exception as e: - print("Exception when calling NonEmployeeLifecycleManagementApi->update_non_employee_record: %s\n" % e) + try: + # Update Non-Employee Record + new_non_employee_request_body = NonEmployeeRequestBody.from_json(non_employee_request_body) + results = NonEmployeeLifecycleManagementApi(api_client).update_non_employee_record(id=id, non_employee_request_body=new_non_employee_request_body) + # Below is a request that includes all optional parameters + # results = NonEmployeeLifecycleManagementApi(api_client).update_non_employee_record(id, new_non_employee_request_body) + print("The response of NonEmployeeLifecycleManagementApi->update_non_employee_record:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling NonEmployeeLifecycleManagementApi->update_non_employee_record: %s\n" % e) - path: /oauth-clients method: POST xCodeSample: @@ -5912,13 +5723,12 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.create_o_auth_client_request import CreateOAuthClientRequest from sailpoint.v3.models.create_o_auth_client_response import CreateOAuthClientResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - create_o_auth_client_request = '''{ + create_o_auth_client_request = '''{ "internal" : false, "businessName" : "Acme-Solar", "description" : "An API client used for the authorization_code, refresh_token, and client_credentials flows", @@ -5935,16 +5745,16 @@ "name" : "Demo API Client", "claimsSupported" : false }''' # CreateOAuthClientRequest | - try: - # Create OAuth Client - new_create_o_auth_client_request = CreateOAuthClientRequest.from_json(create_o_auth_client_request) - results = OAuthClientsApi(api_client).create_oauth_client(create_o_auth_client_request=new_create_o_auth_client_request) - # Below is a request that includes all optional parameters - # results = OAuthClientsApi(api_client).create_oauth_client(new_create_o_auth_client_request) - print("The response of OAuthClientsApi->create_oauth_client:\n") - pprint(results) - except Exception as e: - print("Exception when calling OAuthClientsApi->create_oauth_client: %s\n" % e) + try: + # Create OAuth Client + new_create_o_auth_client_request = CreateOAuthClientRequest.from_json(create_o_auth_client_request) + results = OAuthClientsApi(api_client).create_oauth_client(create_o_auth_client_request=new_create_o_auth_client_request) + # Below is a request that includes all optional parameters + # results = OAuthClientsApi(api_client).create_oauth_client(new_create_o_auth_client_request) + print("The response of OAuthClientsApi->create_oauth_client:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling OAuthClientsApi->create_oauth_client: %s\n" % e) - path: /oauth-clients/{id} method: DELETE xCodeSample: @@ -5953,21 +5763,20 @@ source: | from sailpoint.v3.api.o_auth_clients_api import OAuthClientsApi from sailpoint.v3.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The OAuth client id # str | The OAuth client id - try: - # Delete OAuth Client - - OAuthClientsApi(api_client).delete_oauth_client(id=id) - # Below is a request that includes all optional parameters - # OAuthClientsApi(api_client).delete_oauth_client(id) - except Exception as e: - print("Exception when calling OAuthClientsApi->delete_oauth_client: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The OAuth client id # str | The OAuth client id + try: + # Delete OAuth Client + + OAuthClientsApi(api_client).delete_oauth_client(id=id) + # Below is a request that includes all optional parameters + # OAuthClientsApi(api_client).delete_oauth_client(id) + except Exception as e: + print("Exception when calling OAuthClientsApi->delete_oauth_client: %s\n" % e) - path: /oauth-clients/{id} method: GET xCodeSample: @@ -5977,23 +5786,22 @@ from sailpoint.v3.api.o_auth_clients_api import OAuthClientsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.get_o_auth_client_response import GetOAuthClientResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The OAuth client id # str | The OAuth client id - try: - # Get OAuth Client - - results = OAuthClientsApi(api_client).get_oauth_client(id=id) - # Below is a request that includes all optional parameters - # results = OAuthClientsApi(api_client).get_oauth_client(id) - print("The response of OAuthClientsApi->get_oauth_client:\n") - pprint(results) - except Exception as e: - print("Exception when calling OAuthClientsApi->get_oauth_client: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The OAuth client id # str | The OAuth client id + try: + # Get OAuth Client + + results = OAuthClientsApi(api_client).get_oauth_client(id=id) + # Below is a request that includes all optional parameters + # results = OAuthClientsApi(api_client).get_oauth_client(id) + print("The response of OAuthClientsApi->get_oauth_client:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling OAuthClientsApi->get_oauth_client: %s\n" % e) - path: /oauth-clients method: GET xCodeSample: @@ -6003,23 +5811,22 @@ from sailpoint.v3.api.o_auth_clients_api import OAuthClientsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.get_o_auth_client_response import GetOAuthClientResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - filters = 'lastUsed le 2023-02-05T10:59:27.214Z' # 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: **lastUsed**: *le, isnull* (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: **lastUsed**: *le, isnull* (optional) - try: - # List OAuth Clients - - results = OAuthClientsApi(api_client).list_oauth_clients() - # Below is a request that includes all optional parameters - # results = OAuthClientsApi(api_client).list_oauth_clients(filters) - print("The response of OAuthClientsApi->list_oauth_clients:\n") - pprint(results) - except Exception as e: - print("Exception when calling OAuthClientsApi->list_oauth_clients: %s\n" % e) + filters = 'lastUsed le 2023-02-05T10:59:27.214Z' # 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: **lastUsed**: *le, isnull* (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: **lastUsed**: *le, isnull* (optional) + try: + # List OAuth Clients + + results = OAuthClientsApi(api_client).list_oauth_clients() + # Below is a request that includes all optional parameters + # results = OAuthClientsApi(api_client).list_oauth_clients(filters) + print("The response of OAuthClientsApi->list_oauth_clients:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling OAuthClientsApi->list_oauth_clients: %s\n" % e) - path: /oauth-clients/{id} method: PATCH xCodeSample: @@ -6030,24 +5837,23 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.get_o_auth_client_response import GetOAuthClientResponse from sailpoint.v3.models.json_patch_operation import JsonPatchOperation - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The OAuth client id # str | The OAuth client id - json_patch_operation = '''[{op=replace, path=/strongAuthSupported, value=true}, {op=replace, path=/businessName, value=acme-solar}]''' # List[JsonPatchOperation] | A list of OAuth client update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * tenant * businessName * homepageUrl * name * description * accessTokenValiditySeconds * refreshTokenValiditySeconds * redirectUris * grantTypes * accessType * enabled * strongAuthSupported * claimsSupported - try: - # Patch OAuth Client - new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) - results = OAuthClientsApi(api_client).patch_oauth_client(id=id, json_patch_operation=new_json_patch_operation) - # Below is a request that includes all optional parameters - # results = OAuthClientsApi(api_client).patch_oauth_client(id, new_json_patch_operation) - print("The response of OAuthClientsApi->patch_oauth_client:\n") - pprint(results) - except Exception as e: - print("Exception when calling OAuthClientsApi->patch_oauth_client: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The OAuth client id # str | The OAuth client id + json_patch_operation = '''[{op=replace, path=/strongAuthSupported, value=true}, {op=replace, path=/businessName, value=acme-solar}]''' # List[JsonPatchOperation] | A list of OAuth client update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * tenant * businessName * homepageUrl * name * description * accessTokenValiditySeconds * refreshTokenValiditySeconds * redirectUris * grantTypes * accessType * enabled * strongAuthSupported * claimsSupported + try: + # Patch OAuth Client + new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) + results = OAuthClientsApi(api_client).patch_oauth_client(id=id, json_patch_operation=new_json_patch_operation) + # Below is a request that includes all optional parameters + # results = OAuthClientsApi(api_client).patch_oauth_client(id, new_json_patch_operation) + print("The response of OAuthClientsApi->patch_oauth_client:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling OAuthClientsApi->patch_oauth_client: %s\n" % e) - path: /password-org-config method: POST xCodeSample: @@ -6057,28 +5863,27 @@ from sailpoint.v3.api.password_configuration_api import PasswordConfigurationApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.password_org_config import PasswordOrgConfig - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - password_org_config = '''{ + password_org_config = '''{ "digitTokenLength" : 9, "digitTokenEnabled" : true, "digitTokenDurationMinutes" : 10, "customInstructionsEnabled" : true }''' # PasswordOrgConfig | - try: - # Create Password Org Config - new_password_org_config = PasswordOrgConfig.from_json(password_org_config) - results = PasswordConfigurationApi(api_client).create_password_org_config(password_org_config=new_password_org_config) - # Below is a request that includes all optional parameters - # results = PasswordConfigurationApi(api_client).create_password_org_config(new_password_org_config) - print("The response of PasswordConfigurationApi->create_password_org_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling PasswordConfigurationApi->create_password_org_config: %s\n" % e) + try: + # Create Password Org Config + new_password_org_config = PasswordOrgConfig.from_json(password_org_config) + results = PasswordConfigurationApi(api_client).create_password_org_config(password_org_config=new_password_org_config) + # Below is a request that includes all optional parameters + # results = PasswordConfigurationApi(api_client).create_password_org_config(new_password_org_config) + print("The response of PasswordConfigurationApi->create_password_org_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling PasswordConfigurationApi->create_password_org_config: %s\n" % e) - path: /password-org-config method: GET xCodeSample: @@ -6088,22 +5893,21 @@ from sailpoint.v3.api.password_configuration_api import PasswordConfigurationApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.password_org_config import PasswordOrgConfig - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - try: - # Get Password Org Config - - results = PasswordConfigurationApi(api_client).get_password_org_config() - # Below is a request that includes all optional parameters - # results = PasswordConfigurationApi(api_client).get_password_org_config() - print("The response of PasswordConfigurationApi->get_password_org_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling PasswordConfigurationApi->get_password_org_config: %s\n" % e) + try: + # Get Password Org Config + + results = PasswordConfigurationApi(api_client).get_password_org_config() + # Below is a request that includes all optional parameters + # results = PasswordConfigurationApi(api_client).get_password_org_config() + print("The response of PasswordConfigurationApi->get_password_org_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling PasswordConfigurationApi->get_password_org_config: %s\n" % e) - path: /password-org-config method: PUT xCodeSample: @@ -6113,28 +5917,27 @@ from sailpoint.v3.api.password_configuration_api import PasswordConfigurationApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.password_org_config import PasswordOrgConfig - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - password_org_config = '''{ + password_org_config = '''{ "digitTokenLength" : 9, "digitTokenEnabled" : true, "digitTokenDurationMinutes" : 10, "customInstructionsEnabled" : true }''' # PasswordOrgConfig | - try: - # Update Password Org Config - new_password_org_config = PasswordOrgConfig.from_json(password_org_config) - results = PasswordConfigurationApi(api_client).put_password_org_config(password_org_config=new_password_org_config) - # Below is a request that includes all optional parameters - # results = PasswordConfigurationApi(api_client).put_password_org_config(new_password_org_config) - print("The response of PasswordConfigurationApi->put_password_org_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling PasswordConfigurationApi->put_password_org_config: %s\n" % e) + try: + # Update Password Org Config + new_password_org_config = PasswordOrgConfig.from_json(password_org_config) + results = PasswordConfigurationApi(api_client).put_password_org_config(password_org_config=new_password_org_config) + # Below is a request that includes all optional parameters + # results = PasswordConfigurationApi(api_client).put_password_org_config(new_password_org_config) + print("The response of PasswordConfigurationApi->put_password_org_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling PasswordConfigurationApi->put_password_org_config: %s\n" % e) - path: /password-dictionary method: GET xCodeSample: @@ -6143,22 +5946,21 @@ source: | from sailpoint.v3.api.password_dictionary_api import PasswordDictionaryApi from sailpoint.v3.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - try: - # Get Password Dictionary - - results = PasswordDictionaryApi(api_client).get_password_dictionary() - # Below is a request that includes all optional parameters - # results = PasswordDictionaryApi(api_client).get_password_dictionary() - print("The response of PasswordDictionaryApi->get_password_dictionary:\n") - pprint(results) - except Exception as e: - print("Exception when calling PasswordDictionaryApi->get_password_dictionary: %s\n" % e) + try: + # Get Password Dictionary + + results = PasswordDictionaryApi(api_client).get_password_dictionary() + # Below is a request that includes all optional parameters + # results = PasswordDictionaryApi(api_client).get_password_dictionary() + print("The response of PasswordDictionaryApi->get_password_dictionary:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling PasswordDictionaryApi->get_password_dictionary: %s\n" % e) - path: /password-dictionary method: PUT xCodeSample: @@ -6167,21 +5969,20 @@ source: | from sailpoint.v3.api.password_dictionary_api import PasswordDictionaryApi from sailpoint.v3.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - file = None # bytearray | (optional) # bytearray | (optional) - try: - # Update Password Dictionary - - PasswordDictionaryApi(api_client).put_password_dictionary() - # Below is a request that includes all optional parameters - # PasswordDictionaryApi(api_client).put_password_dictionary(file) - except Exception as e: - print("Exception when calling PasswordDictionaryApi->put_password_dictionary: %s\n" % e) + file = None # bytearray | (optional) # bytearray | (optional) + try: + # Update Password Dictionary + + PasswordDictionaryApi(api_client).put_password_dictionary() + # Below is a request that includes all optional parameters + # PasswordDictionaryApi(api_client).put_password_dictionary(file) + except Exception as e: + print("Exception when calling PasswordDictionaryApi->put_password_dictionary: %s\n" % e) - path: /password-change-status/{id} method: GET xCodeSample: @@ -6191,23 +5992,22 @@ from sailpoint.v3.api.password_management_api import PasswordManagementApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.password_status import PasswordStatus - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '089899f13a8f4da7824996191587bab9' # str | Password change request ID # str | Password change request ID - try: - # Get Password Change Request Status - - results = PasswordManagementApi(api_client).get_password_change_status(id=id) - # Below is a request that includes all optional parameters - # results = PasswordManagementApi(api_client).get_password_change_status(id) - print("The response of PasswordManagementApi->get_password_change_status:\n") - pprint(results) - except Exception as e: - print("Exception when calling PasswordManagementApi->get_password_change_status: %s\n" % e) + id = '089899f13a8f4da7824996191587bab9' # str | Password change request ID # str | Password change request ID + try: + # Get Password Change Request Status + + results = PasswordManagementApi(api_client).get_password_change_status(id=id) + # Below is a request that includes all optional parameters + # results = PasswordManagementApi(api_client).get_password_change_status(id) + print("The response of PasswordManagementApi->get_password_change_status:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling PasswordManagementApi->get_password_change_status: %s\n" % e) - path: /query-password-info method: POST xCodeSample: @@ -6218,26 +6018,25 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.password_info import PasswordInfo from sailpoint.v3.models.password_info_query_dto import PasswordInfoQueryDTO - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - password_info_query_dto = '''{ + password_info_query_dto = '''{ "sourceName" : "My-AD", "userName" : "Abby.Smith" }''' # PasswordInfoQueryDTO | - try: - # Query Password Info - new_password_info_query_dto = PasswordInfoQueryDto.from_json(password_info_query_dto) - results = PasswordManagementApi(api_client).query_password_info(password_info_query_dto=new_password_info_query_dto) - # Below is a request that includes all optional parameters - # results = PasswordManagementApi(api_client).query_password_info(new_password_info_query_dto) - print("The response of PasswordManagementApi->query_password_info:\n") - pprint(results) - except Exception as e: - print("Exception when calling PasswordManagementApi->query_password_info: %s\n" % e) + try: + # Query Password Info + new_password_info_query_dto = PasswordInfoQueryDto.from_json(password_info_query_dto) + results = PasswordManagementApi(api_client).query_password_info(password_info_query_dto=new_password_info_query_dto) + # Below is a request that includes all optional parameters + # results = PasswordManagementApi(api_client).query_password_info(new_password_info_query_dto) + print("The response of PasswordManagementApi->query_password_info:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling PasswordManagementApi->query_password_info: %s\n" % e) - path: /set-password method: POST xCodeSample: @@ -6248,29 +6047,28 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.password_change_request import PasswordChangeRequest from sailpoint.v3.models.password_change_response import PasswordChangeResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - password_change_request = '''{ + password_change_request = '''{ "sourceId" : "8a807d4c73c545510173c545d4b60246", "accountId" : "CN=Abby Smith,OU=Austin,OU=Americas,OU=Demo,DC=seri,DC=acme,DC=com", "identityId" : "8a807d4c73c545510173c545f0a002ff", "publicKeyId" : "YWQ2NjQ4MTItZjY0NC00MWExLWFjMjktOGNmMzU3Y2VlNjk2", "encryptedPassword" : "XzN+YwKgr2C+InkMYFMBG3UtjMEw5ZIql/XFlXo8cJNeslmkplx6vn4kd4/43IF9STBk5RnzR6XmjpEO+FwHDoiBwYZAkAZK/Iswxk4OdybG6Y4MStJCOCiK8osKr35IMMSV/mbO4wAeltoCk7daTWzTGLiI6UaT5tf+F2EgdjJZ7YqM8W8r7aUWsm3p2Xt01Y46ZRx0QaM91QruiIx2rECFT2pUO0wr+7oQ77jypATyGWRtADsu3YcvCk/6U5MqCnXMzKBcRas7NnZdSL/d5H1GglVGz3VLPMaivG4/oL4chOMmFCRl/zVsGxZ9RhN8rxsRGFFKn+rhExTi+bax3A==" }''' # PasswordChangeRequest | - try: - # Set Identity's Password - new_password_change_request = PasswordChangeRequest.from_json(password_change_request) - results = PasswordManagementApi(api_client).set_password(password_change_request=new_password_change_request) - # Below is a request that includes all optional parameters - # results = PasswordManagementApi(api_client).set_password(new_password_change_request) - print("The response of PasswordManagementApi->set_password:\n") - pprint(results) - except Exception as e: - print("Exception when calling PasswordManagementApi->set_password: %s\n" % e) + try: + # Set Identity's Password + new_password_change_request = PasswordChangeRequest.from_json(password_change_request) + results = PasswordManagementApi(api_client).set_password(password_change_request=new_password_change_request) + # Below is a request that includes all optional parameters + # results = PasswordManagementApi(api_client).set_password(new_password_change_request) + print("The response of PasswordManagementApi->set_password:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling PasswordManagementApi->set_password: %s\n" % e) - path: /password-policies method: POST xCodeSample: @@ -6280,13 +6078,12 @@ from sailpoint.v3.api.password_policies_api import PasswordPoliciesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.password_policy_v3_dto import PasswordPolicyV3Dto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - password_policy_v3_dto = '''{ + password_policy_v3_dto = '''{ "validateAgainstAccountName" : true, "minLength" : 8, "description" : "Information about the Password Policy", @@ -6319,16 +6116,16 @@ "name" : "PasswordPolicy Example", "maxLength" : 25 }''' # PasswordPolicyV3Dto | - try: - # Create Password Policy - new_password_policy_v3_dto = PasswordPolicyV3Dto.from_json(password_policy_v3_dto) - results = PasswordPoliciesApi(api_client).create_password_policy(password_policy_v3_dto=new_password_policy_v3_dto) - # Below is a request that includes all optional parameters - # results = PasswordPoliciesApi(api_client).create_password_policy(new_password_policy_v3_dto) - print("The response of PasswordPoliciesApi->create_password_policy:\n") - pprint(results) - except Exception as e: - print("Exception when calling PasswordPoliciesApi->create_password_policy: %s\n" % e) + try: + # Create Password Policy + new_password_policy_v3_dto = PasswordPolicyV3Dto.from_json(password_policy_v3_dto) + results = PasswordPoliciesApi(api_client).create_password_policy(password_policy_v3_dto=new_password_policy_v3_dto) + # Below is a request that includes all optional parameters + # results = PasswordPoliciesApi(api_client).create_password_policy(new_password_policy_v3_dto) + print("The response of PasswordPoliciesApi->create_password_policy:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling PasswordPoliciesApi->create_password_policy: %s\n" % e) - path: /password-policies/{id} method: DELETE xCodeSample: @@ -6337,21 +6134,20 @@ source: | from sailpoint.v3.api.password_policies_api import PasswordPoliciesApi from sailpoint.v3.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ff808081838d9e9d01838da6a03e0002' # str | The ID of password policy to delete. # str | The ID of password policy to delete. - try: - # Delete Password Policy by ID - - PasswordPoliciesApi(api_client).delete_password_policy(id=id) - # Below is a request that includes all optional parameters - # PasswordPoliciesApi(api_client).delete_password_policy(id) - except Exception as e: - print("Exception when calling PasswordPoliciesApi->delete_password_policy: %s\n" % e) + id = 'ff808081838d9e9d01838da6a03e0002' # str | The ID of password policy to delete. # str | The ID of password policy to delete. + try: + # Delete Password Policy by ID + + PasswordPoliciesApi(api_client).delete_password_policy(id=id) + # Below is a request that includes all optional parameters + # PasswordPoliciesApi(api_client).delete_password_policy(id) + except Exception as e: + print("Exception when calling PasswordPoliciesApi->delete_password_policy: %s\n" % e) - path: /password-policies/{id} method: GET xCodeSample: @@ -6361,23 +6157,22 @@ from sailpoint.v3.api.password_policies_api import PasswordPoliciesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.password_policy_v3_dto import PasswordPolicyV3Dto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ff808081838d9e9d01838da6a03e0005' # str | The ID of password policy to retrieve. # str | The ID of password policy to retrieve. - try: - # Get Password Policy by ID - - results = PasswordPoliciesApi(api_client).get_password_policy_by_id(id=id) - # Below is a request that includes all optional parameters - # results = PasswordPoliciesApi(api_client).get_password_policy_by_id(id) - print("The response of PasswordPoliciesApi->get_password_policy_by_id:\n") - pprint(results) - except Exception as e: - print("Exception when calling PasswordPoliciesApi->get_password_policy_by_id: %s\n" % e) + id = 'ff808081838d9e9d01838da6a03e0005' # str | The ID of password policy to retrieve. # str | The ID of password policy to retrieve. + try: + # Get Password Policy by ID + + results = PasswordPoliciesApi(api_client).get_password_policy_by_id(id=id) + # Below is a request that includes all optional parameters + # results = PasswordPoliciesApi(api_client).get_password_policy_by_id(id) + print("The response of PasswordPoliciesApi->get_password_policy_by_id:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling PasswordPoliciesApi->get_password_policy_by_id: %s\n" % e) - path: /password-policies method: GET xCodeSample: @@ -6387,25 +6182,24 @@ from sailpoint.v3.api.password_policies_api import PasswordPoliciesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.password_policy_v3_dto import PasswordPolicyV3Dto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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) - try: - # List Password Policies - - results = PasswordPoliciesApi(api_client).list_password_policies() - # Below is a request that includes all optional parameters - # results = PasswordPoliciesApi(api_client).list_password_policies(limit, offset, count) - print("The response of PasswordPoliciesApi->list_password_policies:\n") - pprint(results) - except Exception as e: - print("Exception when calling PasswordPoliciesApi->list_password_policies: %s\n" % e) + 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) + try: + # List Password Policies + + results = PasswordPoliciesApi(api_client).list_password_policies() + # Below is a request that includes all optional parameters + # results = PasswordPoliciesApi(api_client).list_password_policies(limit, offset, count) + print("The response of PasswordPoliciesApi->list_password_policies:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling PasswordPoliciesApi->list_password_policies: %s\n" % e) - path: /password-policies/{id} method: PUT xCodeSample: @@ -6415,14 +6209,13 @@ from sailpoint.v3.api.password_policies_api import PasswordPoliciesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.password_policy_v3_dto import PasswordPolicyV3Dto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ff808081838d9e9d01838da6a03e0007' # str | The ID of password policy to update. # str | The ID of password policy to update. - password_policy_v3_dto = '''{ + id = 'ff808081838d9e9d01838da6a03e0007' # str | The ID of password policy to update. # str | The ID of password policy to update. + password_policy_v3_dto = '''{ "validateAgainstAccountName" : true, "minLength" : 8, "description" : "Information about the Password Policy", @@ -6455,16 +6248,16 @@ "name" : "PasswordPolicy Example", "maxLength" : 25 }''' # PasswordPolicyV3Dto | - try: - # Update Password Policy by ID - new_password_policy_v3_dto = PasswordPolicyV3Dto.from_json(password_policy_v3_dto) - results = PasswordPoliciesApi(api_client).set_password_policy(id=id, password_policy_v3_dto=new_password_policy_v3_dto) - # Below is a request that includes all optional parameters - # results = PasswordPoliciesApi(api_client).set_password_policy(id, new_password_policy_v3_dto) - print("The response of PasswordPoliciesApi->set_password_policy:\n") - pprint(results) - except Exception as e: - print("Exception when calling PasswordPoliciesApi->set_password_policy: %s\n" % e) + try: + # Update Password Policy by ID + new_password_policy_v3_dto = PasswordPolicyV3Dto.from_json(password_policy_v3_dto) + results = PasswordPoliciesApi(api_client).set_password_policy(id=id, password_policy_v3_dto=new_password_policy_v3_dto) + # Below is a request that includes all optional parameters + # results = PasswordPoliciesApi(api_client).set_password_policy(id, new_password_policy_v3_dto) + print("The response of PasswordPoliciesApi->set_password_policy:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling PasswordPoliciesApi->set_password_policy: %s\n" % e) - path: /password-sync-groups method: POST xCodeSample: @@ -6474,13 +6267,12 @@ from sailpoint.v3.api.password_sync_groups_api import PasswordSyncGroupsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.password_sync_group import PasswordSyncGroup - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - password_sync_group = '''{ + password_sync_group = '''{ "created" : "2023-03-16T04:00:00Z", "name" : "Password Sync Group 1", "modified" : "2023-03-16T04:00:00Z", @@ -6488,16 +6280,16 @@ "id" : "6881f631-3bd5-4213-9c75-8e05cc3e35dd", "sourceIds" : [ "2c918084660f45d6016617daa9210584", "2c918084660f45d6016617daa9210500" ] }''' # PasswordSyncGroup | - try: - # Create Password Sync Group - new_password_sync_group = PasswordSyncGroup.from_json(password_sync_group) - results = PasswordSyncGroupsApi(api_client).create_password_sync_group(password_sync_group=new_password_sync_group) - # Below is a request that includes all optional parameters - # results = PasswordSyncGroupsApi(api_client).create_password_sync_group(new_password_sync_group) - print("The response of PasswordSyncGroupsApi->create_password_sync_group:\n") - pprint(results) - except Exception as e: - print("Exception when calling PasswordSyncGroupsApi->create_password_sync_group: %s\n" % e) + try: + # Create Password Sync Group + new_password_sync_group = PasswordSyncGroup.from_json(password_sync_group) + results = PasswordSyncGroupsApi(api_client).create_password_sync_group(password_sync_group=new_password_sync_group) + # Below is a request that includes all optional parameters + # results = PasswordSyncGroupsApi(api_client).create_password_sync_group(new_password_sync_group) + print("The response of PasswordSyncGroupsApi->create_password_sync_group:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling PasswordSyncGroupsApi->create_password_sync_group: %s\n" % e) - path: /password-sync-groups/{id} method: DELETE xCodeSample: @@ -6506,21 +6298,20 @@ source: | from sailpoint.v3.api.password_sync_groups_api import PasswordSyncGroupsApi from sailpoint.v3.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '6881f631-3bd5-4213-9c75-8e05cc3e35dd' # str | The ID of password sync group to delete. # str | The ID of password sync group to delete. - try: - # Delete Password Sync Group by ID - - PasswordSyncGroupsApi(api_client).delete_password_sync_group(id=id) - # Below is a request that includes all optional parameters - # PasswordSyncGroupsApi(api_client).delete_password_sync_group(id) - except Exception as e: - print("Exception when calling PasswordSyncGroupsApi->delete_password_sync_group: %s\n" % e) + id = '6881f631-3bd5-4213-9c75-8e05cc3e35dd' # str | The ID of password sync group to delete. # str | The ID of password sync group to delete. + try: + # Delete Password Sync Group by ID + + PasswordSyncGroupsApi(api_client).delete_password_sync_group(id=id) + # Below is a request that includes all optional parameters + # PasswordSyncGroupsApi(api_client).delete_password_sync_group(id) + except Exception as e: + print("Exception when calling PasswordSyncGroupsApi->delete_password_sync_group: %s\n" % e) - path: /password-sync-groups/{id} method: GET xCodeSample: @@ -6530,23 +6321,22 @@ from sailpoint.v3.api.password_sync_groups_api import PasswordSyncGroupsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.password_sync_group import PasswordSyncGroup - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '6881f631-3bd5-4213-9c75-8e05cc3e35dd' # str | The ID of password sync group to retrieve. # str | The ID of password sync group to retrieve. - try: - # Get Password Sync Group by ID - - results = PasswordSyncGroupsApi(api_client).get_password_sync_group(id=id) - # Below is a request that includes all optional parameters - # results = PasswordSyncGroupsApi(api_client).get_password_sync_group(id) - print("The response of PasswordSyncGroupsApi->get_password_sync_group:\n") - pprint(results) - except Exception as e: - print("Exception when calling PasswordSyncGroupsApi->get_password_sync_group: %s\n" % e) + id = '6881f631-3bd5-4213-9c75-8e05cc3e35dd' # str | The ID of password sync group to retrieve. # str | The ID of password sync group to retrieve. + try: + # Get Password Sync Group by ID + + results = PasswordSyncGroupsApi(api_client).get_password_sync_group(id=id) + # Below is a request that includes all optional parameters + # results = PasswordSyncGroupsApi(api_client).get_password_sync_group(id) + print("The response of PasswordSyncGroupsApi->get_password_sync_group:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling PasswordSyncGroupsApi->get_password_sync_group: %s\n" % e) - path: /password-sync-groups method: GET xCodeSample: @@ -6556,25 +6346,24 @@ from sailpoint.v3.api.password_sync_groups_api import PasswordSyncGroupsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.password_sync_group import PasswordSyncGroup - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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) - try: - # Get Password Sync Group List - - results = PasswordSyncGroupsApi(api_client).get_password_sync_groups() - # Below is a request that includes all optional parameters - # results = PasswordSyncGroupsApi(api_client).get_password_sync_groups(limit, offset, count) - print("The response of PasswordSyncGroupsApi->get_password_sync_groups:\n") - pprint(results) - except Exception as e: - print("Exception when calling PasswordSyncGroupsApi->get_password_sync_groups: %s\n" % e) + 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) + try: + # Get Password Sync Group List + + results = PasswordSyncGroupsApi(api_client).get_password_sync_groups() + # Below is a request that includes all optional parameters + # results = PasswordSyncGroupsApi(api_client).get_password_sync_groups(limit, offset, count) + print("The response of PasswordSyncGroupsApi->get_password_sync_groups:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling PasswordSyncGroupsApi->get_password_sync_groups: %s\n" % e) - path: /password-sync-groups/{id} method: PUT xCodeSample: @@ -6584,14 +6373,13 @@ from sailpoint.v3.api.password_sync_groups_api import PasswordSyncGroupsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.password_sync_group import PasswordSyncGroup - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '6881f631-3bd5-4213-9c75-8e05cc3e35dd' # str | The ID of password sync group to update. # str | The ID of password sync group to update. - password_sync_group = '''{ + id = '6881f631-3bd5-4213-9c75-8e05cc3e35dd' # str | The ID of password sync group to update. # str | The ID of password sync group to update. + password_sync_group = '''{ "created" : "2023-03-16T04:00:00Z", "name" : "Password Sync Group 1", "modified" : "2023-03-16T04:00:00Z", @@ -6599,16 +6387,16 @@ "id" : "6881f631-3bd5-4213-9c75-8e05cc3e35dd", "sourceIds" : [ "2c918084660f45d6016617daa9210584", "2c918084660f45d6016617daa9210500" ] }''' # PasswordSyncGroup | - try: - # Update Password Sync Group by ID - new_password_sync_group = PasswordSyncGroup.from_json(password_sync_group) - results = PasswordSyncGroupsApi(api_client).update_password_sync_group(id=id, password_sync_group=new_password_sync_group) - # Below is a request that includes all optional parameters - # results = PasswordSyncGroupsApi(api_client).update_password_sync_group(id, new_password_sync_group) - print("The response of PasswordSyncGroupsApi->update_password_sync_group:\n") - pprint(results) - except Exception as e: - print("Exception when calling PasswordSyncGroupsApi->update_password_sync_group: %s\n" % e) + try: + # Update Password Sync Group by ID + new_password_sync_group = PasswordSyncGroup.from_json(password_sync_group) + results = PasswordSyncGroupsApi(api_client).update_password_sync_group(id=id, password_sync_group=new_password_sync_group) + # Below is a request that includes all optional parameters + # results = PasswordSyncGroupsApi(api_client).update_password_sync_group(id, new_password_sync_group) + print("The response of PasswordSyncGroupsApi->update_password_sync_group:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling PasswordSyncGroupsApi->update_password_sync_group: %s\n" % e) - path: /personal-access-tokens method: POST xCodeSample: @@ -6619,27 +6407,26 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.create_personal_access_token_request import CreatePersonalAccessTokenRequest from sailpoint.v3.models.create_personal_access_token_response import CreatePersonalAccessTokenResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - create_personal_access_token_request = '''{ + create_personal_access_token_request = '''{ "scope" : [ "demo:personal-access-token-scope:first", "demo:personal-access-token-scope:second" ], "accessTokenValiditySeconds" : 36900, "name" : "NodeJS Integration" }''' # CreatePersonalAccessTokenRequest | Name and scope of personal access token. - try: - # Create Personal Access Token - new_create_personal_access_token_request = CreatePersonalAccessTokenRequest.from_json(create_personal_access_token_request) - results = PersonalAccessTokensApi(api_client).create_personal_access_token(create_personal_access_token_request=new_create_personal_access_token_request) - # Below is a request that includes all optional parameters - # results = PersonalAccessTokensApi(api_client).create_personal_access_token(new_create_personal_access_token_request) - print("The response of PersonalAccessTokensApi->create_personal_access_token:\n") - pprint(results) - except Exception as e: - print("Exception when calling PersonalAccessTokensApi->create_personal_access_token: %s\n" % e) + try: + # Create Personal Access Token + new_create_personal_access_token_request = CreatePersonalAccessTokenRequest.from_json(create_personal_access_token_request) + results = PersonalAccessTokensApi(api_client).create_personal_access_token(create_personal_access_token_request=new_create_personal_access_token_request) + # Below is a request that includes all optional parameters + # results = PersonalAccessTokensApi(api_client).create_personal_access_token(new_create_personal_access_token_request) + print("The response of PersonalAccessTokensApi->create_personal_access_token:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling PersonalAccessTokensApi->create_personal_access_token: %s\n" % e) - path: /personal-access-tokens/{id} method: DELETE xCodeSample: @@ -6648,21 +6435,20 @@ source: | from sailpoint.v3.api.personal_access_tokens_api import PersonalAccessTokensApi from sailpoint.v3.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The personal access token id # str | The personal access token id - try: - # Delete Personal Access Token - - PersonalAccessTokensApi(api_client).delete_personal_access_token(id=id) - # Below is a request that includes all optional parameters - # PersonalAccessTokensApi(api_client).delete_personal_access_token(id) - except Exception as e: - print("Exception when calling PersonalAccessTokensApi->delete_personal_access_token: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The personal access token id # str | The personal access token id + try: + # Delete Personal Access Token + + PersonalAccessTokensApi(api_client).delete_personal_access_token(id=id) + # Below is a request that includes all optional parameters + # PersonalAccessTokensApi(api_client).delete_personal_access_token(id) + except Exception as e: + print("Exception when calling PersonalAccessTokensApi->delete_personal_access_token: %s\n" % e) - path: /personal-access-tokens method: GET xCodeSample: @@ -6672,24 +6458,23 @@ from sailpoint.v3.api.personal_access_tokens_api import PersonalAccessTokensApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.get_personal_access_token_response import GetPersonalAccessTokenResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - owner_id = '2c9180867b50d088017b554662fb281e' # str | The identity ID of the owner whose personal access tokens should be listed. If \"me\", the caller should have the following right: 'idn:my-personal-access-tokens:read' If an actual owner ID or if the `owner-id` parameter is omitted in the request, the caller should have the following right: 'idn:all-personal-access-tokens:read'. If the caller has the following right, then managed personal access tokens associated with `owner-id` will be retrieved: 'idn:managed-personal-access-tokens:read' (optional) # str | The identity ID of the owner whose personal access tokens should be listed. If \"me\", the caller should have the following right: 'idn:my-personal-access-tokens:read' If an actual owner ID or if the `owner-id` parameter is omitted in the request, the caller should have the following right: 'idn:all-personal-access-tokens:read'. If the caller has the following right, then managed personal access tokens associated with `owner-id` will be retrieved: 'idn:managed-personal-access-tokens:read' (optional) - filters = 'lastUsed le 2023-02-05T10:59:27.214Z' # 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: **lastUsed**: *le, isnull* (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: **lastUsed**: *le, isnull* (optional) - try: - # List Personal Access Tokens - - results = PersonalAccessTokensApi(api_client).list_personal_access_tokens() - # Below is a request that includes all optional parameters - # results = PersonalAccessTokensApi(api_client).list_personal_access_tokens(owner_id, filters) - print("The response of PersonalAccessTokensApi->list_personal_access_tokens:\n") - pprint(results) - except Exception as e: - print("Exception when calling PersonalAccessTokensApi->list_personal_access_tokens: %s\n" % e) + owner_id = '2c9180867b50d088017b554662fb281e' # str | The identity ID of the owner whose personal access tokens should be listed. If \"me\", the caller should have the following right: 'idn:my-personal-access-tokens:read' If an actual owner ID or if the `owner-id` parameter is omitted in the request, the caller should have the following right: 'idn:all-personal-access-tokens:read'. If the caller has the following right, then managed personal access tokens associated with `owner-id` will be retrieved: 'idn:managed-personal-access-tokens:read' (optional) # str | The identity ID of the owner whose personal access tokens should be listed. If \"me\", the caller should have the following right: 'idn:my-personal-access-tokens:read' If an actual owner ID or if the `owner-id` parameter is omitted in the request, the caller should have the following right: 'idn:all-personal-access-tokens:read'. If the caller has the following right, then managed personal access tokens associated with `owner-id` will be retrieved: 'idn:managed-personal-access-tokens:read' (optional) + filters = 'lastUsed le 2023-02-05T10:59:27.214Z' # 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: **lastUsed**: *le, isnull* (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: **lastUsed**: *le, isnull* (optional) + try: + # List Personal Access Tokens + + results = PersonalAccessTokensApi(api_client).list_personal_access_tokens() + # Below is a request that includes all optional parameters + # results = PersonalAccessTokensApi(api_client).list_personal_access_tokens(owner_id, filters) + print("The response of PersonalAccessTokensApi->list_personal_access_tokens:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling PersonalAccessTokensApi->list_personal_access_tokens: %s\n" % e) - path: /personal-access-tokens/{id} method: PATCH xCodeSample: @@ -6700,24 +6485,23 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.get_personal_access_token_response import GetPersonalAccessTokenResponse from sailpoint.v3.models.json_patch_operation import JsonPatchOperation - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The Personal Access Token id # str | The Personal Access Token id - json_patch_operation = '''[{op=replace, path=/name, value=New name}, {op=replace, path=/scope, value=[sp:scopes:all]}]''' # List[JsonPatchOperation] | A list of OAuth client update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * scope - try: - # Patch Personal Access Token - new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) - results = PersonalAccessTokensApi(api_client).patch_personal_access_token(id=id, json_patch_operation=new_json_patch_operation) - # Below is a request that includes all optional parameters - # results = PersonalAccessTokensApi(api_client).patch_personal_access_token(id, new_json_patch_operation) - print("The response of PersonalAccessTokensApi->patch_personal_access_token:\n") - pprint(results) - except Exception as e: - print("Exception when calling PersonalAccessTokensApi->patch_personal_access_token: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The Personal Access Token id # str | The Personal Access Token id + json_patch_operation = '''[{op=replace, path=/name, value=New name}, {op=replace, path=/scope, value=[sp:scopes:all]}]''' # List[JsonPatchOperation] | A list of OAuth client update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * scope + try: + # Patch Personal Access Token + new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) + results = PersonalAccessTokensApi(api_client).patch_personal_access_token(id=id, json_patch_operation=new_json_patch_operation) + # Below is a request that includes all optional parameters + # results = PersonalAccessTokensApi(api_client).patch_personal_access_token(id, new_json_patch_operation) + print("The response of PersonalAccessTokensApi->patch_personal_access_token:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling PersonalAccessTokensApi->patch_personal_access_token: %s\n" % e) - path: /public-identities method: GET xCodeSample: @@ -6727,28 +6511,27 @@ from sailpoint.v3.api.public_identities_api import PublicIdentitiesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.public_identity import PublicIdentity - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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 = 'firstname eq \"John\"' # 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* **alias**: *eq, sw* **email**: *eq, sw* **firstname**: *eq, sw* **lastname**: *eq, 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* **alias**: *eq, sw* **email**: *eq, sw* **firstname**: *eq, sw* **lastname**: *eq, sw* (optional) - add_core_filters = False # bool | If *true*, only get identities which satisfy ALL the following criteria in addition to any criteria specified by *filters*: - Should be either correlated or protected. - Should not be \"spadmin\" or \"cloudadmin\". - uid should not be null. - lastname should not be null. - email should not be null. (optional) (default to False) # bool | If *true*, only get identities which satisfy ALL the following criteria in addition to any criteria specified by *filters*: - Should be either correlated or protected. - Should not be \"spadmin\" or \"cloudadmin\". - uid should not be null. - lastname should not be null. - email should not be null. (optional) (default to False) - sorters = 'name' # 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: **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: **name** (optional) - try: - # Get list of public identities - - results = PublicIdentitiesApi(api_client).get_public_identities() - # Below is a request that includes all optional parameters - # results = PublicIdentitiesApi(api_client).get_public_identities(limit, offset, count, filters, add_core_filters, sorters) - print("The response of PublicIdentitiesApi->get_public_identities:\n") - pprint(results) - except Exception as e: - print("Exception when calling PublicIdentitiesApi->get_public_identities: %s\n" % e) + 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 = 'firstname eq \"John\"' # 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* **alias**: *eq, sw* **email**: *eq, sw* **firstname**: *eq, sw* **lastname**: *eq, 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* **alias**: *eq, sw* **email**: *eq, sw* **firstname**: *eq, sw* **lastname**: *eq, sw* (optional) + add_core_filters = False # bool | If *true*, only get identities which satisfy ALL the following criteria in addition to any criteria specified by *filters*: - Should be either correlated or protected. - Should not be \"spadmin\" or \"cloudadmin\". - uid should not be null. - lastname should not be null. - email should not be null. (optional) (default to False) # bool | If *true*, only get identities which satisfy ALL the following criteria in addition to any criteria specified by *filters*: - Should be either correlated or protected. - Should not be \"spadmin\" or \"cloudadmin\". - uid should not be null. - lastname should not be null. - email should not be null. (optional) (default to False) + sorters = 'name' # 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: **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: **name** (optional) + try: + # Get list of public identities + + results = PublicIdentitiesApi(api_client).get_public_identities() + # Below is a request that includes all optional parameters + # results = PublicIdentitiesApi(api_client).get_public_identities(limit, offset, count, filters, add_core_filters, sorters) + print("The response of PublicIdentitiesApi->get_public_identities:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling PublicIdentitiesApi->get_public_identities: %s\n" % e) - path: /public-identities-config method: GET xCodeSample: @@ -6758,22 +6541,21 @@ from sailpoint.v3.api.public_identities_config_api import PublicIdentitiesConfigApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.public_identity_config import PublicIdentityConfig - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - try: - # Get the Public Identities Configuration - - results = PublicIdentitiesConfigApi(api_client).get_public_identity_config() - # Below is a request that includes all optional parameters - # results = PublicIdentitiesConfigApi(api_client).get_public_identity_config() - print("The response of PublicIdentitiesConfigApi->get_public_identity_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling PublicIdentitiesConfigApi->get_public_identity_config: %s\n" % e) + try: + # Get the Public Identities Configuration + + results = PublicIdentitiesConfigApi(api_client).get_public_identity_config() + # Below is a request that includes all optional parameters + # results = PublicIdentitiesConfigApi(api_client).get_public_identity_config() + print("The response of PublicIdentitiesConfigApi->get_public_identity_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling PublicIdentitiesConfigApi->get_public_identity_config: %s\n" % e) - path: /public-identities-config method: PUT xCodeSample: @@ -6783,13 +6565,12 @@ from sailpoint.v3.api.public_identities_config_api import PublicIdentitiesConfigApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.public_identity_config import PublicIdentityConfig - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - public_identity_config = '''{ + public_identity_config = '''{ "modified" : "2018-06-25T20:22:28.104Z", "attributes" : [ { "name" : "Country", @@ -6804,16 +6585,16 @@ "type" : "IDENTITY" } }''' # PublicIdentityConfig | - try: - # Update the Public Identities Configuration - new_public_identity_config = PublicIdentityConfig.from_json(public_identity_config) - results = PublicIdentitiesConfigApi(api_client).update_public_identity_config(public_identity_config=new_public_identity_config) - # Below is a request that includes all optional parameters - # results = PublicIdentitiesConfigApi(api_client).update_public_identity_config(new_public_identity_config) - print("The response of PublicIdentitiesConfigApi->update_public_identity_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling PublicIdentitiesConfigApi->update_public_identity_config: %s\n" % e) + try: + # Update the Public Identities Configuration + new_public_identity_config = PublicIdentityConfig.from_json(public_identity_config) + results = PublicIdentitiesConfigApi(api_client).update_public_identity_config(public_identity_config=new_public_identity_config) + # Below is a request that includes all optional parameters + # results = PublicIdentitiesConfigApi(api_client).update_public_identity_config(new_public_identity_config) + print("The response of PublicIdentitiesConfigApi->update_public_identity_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling PublicIdentitiesConfigApi->update_public_identity_config: %s\n" % e) - path: /reports/{id}/cancel method: POST xCodeSample: @@ -6822,21 +6603,20 @@ source: | from sailpoint.v3.api.reports_data_extraction_api import ReportsDataExtractionApi from sailpoint.v3.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'a1ed223247144cc29d23c632624b4767' # str | ID of the running Report to cancel # str | ID of the running Report to cancel - try: - # Cancel Report - - ReportsDataExtractionApi(api_client).cancel_report(id=id) - # Below is a request that includes all optional parameters - # ReportsDataExtractionApi(api_client).cancel_report(id) - except Exception as e: - print("Exception when calling ReportsDataExtractionApi->cancel_report: %s\n" % e) + id = 'a1ed223247144cc29d23c632624b4767' # str | ID of the running Report to cancel # str | ID of the running Report to cancel + try: + # Cancel Report + + ReportsDataExtractionApi(api_client).cancel_report(id=id) + # Below is a request that includes all optional parameters + # ReportsDataExtractionApi(api_client).cancel_report(id) + except Exception as e: + print("Exception when calling ReportsDataExtractionApi->cancel_report: %s\n" % e) - path: /reports/{taskResultId} method: GET xCodeSample: @@ -6845,26 +6625,25 @@ source: | from sailpoint.v3.api.reports_data_extraction_api import ReportsDataExtractionApi from sailpoint.v3.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - task_result_id = 'ef38f94347e94562b5bb8424a56397d8' # str | Unique identifier of the task result which handled report # str | Unique identifier of the task result which handled report - file_format = 'csv' # str | Output format of the requested report file # str | Output format of the requested report file - name = 'Identities Details Report' # str | preferred Report file name, by default will be used report name from task result. (optional) # str | preferred Report file name, by default will be used report name from task result. (optional) - auditable = False # bool | Enables auditing for current report download. Will create an audit event and sent it to the REPORT cloud-audit kafka topic. Event will be created if there is any result present by requested taskResultId. (optional) (default to False) # bool | Enables auditing for current report download. Will create an audit event and sent it to the REPORT cloud-audit kafka topic. Event will be created if there is any result present by requested taskResultId. (optional) (default to False) - try: - # Get Report File - - results = ReportsDataExtractionApi(api_client).get_report(task_result_id=task_result_id, file_format=file_format) - # Below is a request that includes all optional parameters - # results = ReportsDataExtractionApi(api_client).get_report(task_result_id, file_format, name, auditable) - print("The response of ReportsDataExtractionApi->get_report:\n") - pprint(results) - except Exception as e: - print("Exception when calling ReportsDataExtractionApi->get_report: %s\n" % e) + task_result_id = 'ef38f94347e94562b5bb8424a56397d8' # str | Unique identifier of the task result which handled report # str | Unique identifier of the task result which handled report + file_format = 'csv' # str | Output format of the requested report file # str | Output format of the requested report file + name = 'Identities Details Report' # str | preferred Report file name, by default will be used report name from task result. (optional) # str | preferred Report file name, by default will be used report name from task result. (optional) + auditable = False # bool | Enables auditing for current report download. Will create an audit event and sent it to the REPORT cloud-audit kafka topic. Event will be created if there is any result present by requested taskResultId. (optional) (default to False) # bool | Enables auditing for current report download. Will create an audit event and sent it to the REPORT cloud-audit kafka topic. Event will be created if there is any result present by requested taskResultId. (optional) (default to False) + try: + # Get Report File + + results = ReportsDataExtractionApi(api_client).get_report(task_result_id=task_result_id, file_format=file_format) + # Below is a request that includes all optional parameters + # results = ReportsDataExtractionApi(api_client).get_report(task_result_id, file_format, name, auditable) + print("The response of ReportsDataExtractionApi->get_report:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ReportsDataExtractionApi->get_report: %s\n" % e) - path: /reports/{taskResultId}/result method: GET xCodeSample: @@ -6874,24 +6653,23 @@ from sailpoint.v3.api.reports_data_extraction_api import ReportsDataExtractionApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.report_results import ReportResults - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - task_result_id = 'ef38f94347e94562b5bb8424a56397d8' # str | Unique identifier of the task result which handled report # str | Unique identifier of the task result which handled report - completed = False # bool | state of task result to apply ordering when results are fetching from the DB (optional) (default to False) # bool | state of task result to apply ordering when results are fetching from the DB (optional) (default to False) - try: - # Get Report Result - - results = ReportsDataExtractionApi(api_client).get_report_result(task_result_id=task_result_id) - # Below is a request that includes all optional parameters - # results = ReportsDataExtractionApi(api_client).get_report_result(task_result_id, completed) - print("The response of ReportsDataExtractionApi->get_report_result:\n") - pprint(results) - except Exception as e: - print("Exception when calling ReportsDataExtractionApi->get_report_result: %s\n" % e) + task_result_id = 'ef38f94347e94562b5bb8424a56397d8' # str | Unique identifier of the task result which handled report # str | Unique identifier of the task result which handled report + completed = False # bool | state of task result to apply ordering when results are fetching from the DB (optional) (default to False) # bool | state of task result to apply ordering when results are fetching from the DB (optional) (default to False) + try: + # Get Report Result + + results = ReportsDataExtractionApi(api_client).get_report_result(task_result_id=task_result_id) + # Below is a request that includes all optional parameters + # results = ReportsDataExtractionApi(api_client).get_report_result(task_result_id, completed) + print("The response of ReportsDataExtractionApi->get_report_result:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ReportsDataExtractionApi->get_report_result: %s\n" % e) - path: /reports/run method: POST xCodeSample: @@ -6902,29 +6680,28 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.report_details import ReportDetails from sailpoint.v3.models.task_result_details import TaskResultDetails - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - report_details = '''{ + report_details = '''{ "reportType" : "ACCOUNTS", "arguments" : { "application" : "2c9180897e7742b2017e781782f705b9", "sourceName" : "Active Directory" } }''' # ReportDetails | - try: - # Run Report - new_report_details = ReportDetails.from_json(report_details) - results = ReportsDataExtractionApi(api_client).start_report(report_details=new_report_details) - # Below is a request that includes all optional parameters - # results = ReportsDataExtractionApi(api_client).start_report(new_report_details) - print("The response of ReportsDataExtractionApi->start_report:\n") - pprint(results) - except Exception as e: - print("Exception when calling ReportsDataExtractionApi->start_report: %s\n" % e) + try: + # Run Report + new_report_details = ReportDetails.from_json(report_details) + results = ReportsDataExtractionApi(api_client).start_report(report_details=new_report_details) + # Below is a request that includes all optional parameters + # results = ReportsDataExtractionApi(api_client).start_report(new_report_details) + print("The response of ReportsDataExtractionApi->start_report:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ReportsDataExtractionApi->start_report: %s\n" % e) - path: /requestable-objects method: GET xCodeSample: @@ -6936,31 +6713,30 @@ from sailpoint.v3.models.requestable_object import RequestableObject from sailpoint.v3.models.requestable_object_request_status import RequestableObjectRequestStatus from sailpoint.v3.models.requestable_object_type import RequestableObjectType - from pprint import pprint - from sailpoint.configuration import Configuration - configuration = Configuration() - - - with ApiClient(configuration) as api_client: - identity_id = 'e7eab60924f64aa284175b9fa3309599' # str | If present, the value returns only requestable objects for the specified identity. * Admin users can call this with any identity ID value. * Non-admin users can only specify *me* or pass their own identity ID value. * If absent, returns a list of all requestable objects for the tenant. Only admin users can make such a call. In this case, the available, pending, assigned accesses will not be annotated in the result. (optional) # str | If present, the value returns only requestable objects for the specified identity. * Admin users can call this with any identity ID value. * Non-admin users can only specify *me* or pass their own identity ID value. * If absent, returns a list of all requestable objects for the tenant. Only admin users can make such a call. In this case, the available, pending, assigned accesses will not be annotated in the result. (optional) - types = '''[sailpoint.v3.RequestableObjectType()]''' # List[RequestableObjectType] | Filters the results to the specified type/types, where each type is one of ROLE or ACCESS_PROFILE. If absent, all types are returned. Support for additional types may be added in the future without notice. (optional) - term = 'Finance Role' # str | It allows searching requestable access items with a partial match on the name or description. If term is provided, then the *filter* query parameter will be ignored. (optional) # str | It allows searching requestable access items with a partial match on the name or description. If term is provided, then the *filter* query parameter will be ignored. (optional) - statuses = '''[sailpoint.v3.RequestableObjectRequestStatus()]''' # List[RequestableObjectRequestStatus] | Filters the result to the specified status/statuses, where each status is one of AVAILABLE, ASSIGNED, or PENDING. It is an error to specify this parameter without also specifying an *identity-id* parameter. Additional statuses may be added in the future without notice. (optional) - 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 sw \"bob\"' # 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* (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* (optional) - sorters = 'name' # 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: **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: **name** (optional) - try: - # Requestable Objects List - - results = RequestableObjectsApi(api_client).list_requestable_objects() - # Below is a request that includes all optional parameters - # results = RequestableObjectsApi(api_client).list_requestable_objects(identity_id, types, term, statuses, limit, offset, count, filters, sorters) - print("The response of RequestableObjectsApi->list_requestable_objects:\n") - pprint(results) - except Exception as e: - print("Exception when calling RequestableObjectsApi->list_requestable_objects: %s\n" % e) + from sailpoint.configuration import Configuration + configuration = Configuration() + + + with ApiClient(configuration) as api_client: + identity_id = 'e7eab60924f64aa284175b9fa3309599' # str | If present, the value returns only requestable objects for the specified identity. * Admin users can call this with any identity ID value. * Non-admin users can only specify *me* or pass their own identity ID value. * If absent, returns a list of all requestable objects for the tenant. Only admin users can make such a call. In this case, the available, pending, assigned accesses will not be annotated in the result. (optional) # str | If present, the value returns only requestable objects for the specified identity. * Admin users can call this with any identity ID value. * Non-admin users can only specify *me* or pass their own identity ID value. * If absent, returns a list of all requestable objects for the tenant. Only admin users can make such a call. In this case, the available, pending, assigned accesses will not be annotated in the result. (optional) + types = '''[sailpoint.v3.RequestableObjectType()]''' # List[RequestableObjectType] | Filters the results to the specified type/types, where each type is one of ROLE or ACCESS_PROFILE. If absent, all types are returned. Support for additional types may be added in the future without notice. (optional) + term = 'Finance Role' # str | It allows searching requestable access items with a partial match on the name or description. If term is provided, then the *filter* query parameter will be ignored. (optional) # str | It allows searching requestable access items with a partial match on the name or description. If term is provided, then the *filter* query parameter will be ignored. (optional) + statuses = '''[sailpoint.v3.RequestableObjectRequestStatus()]''' # List[RequestableObjectRequestStatus] | Filters the result to the specified status/statuses, where each status is one of AVAILABLE, ASSIGNED, or PENDING. It is an error to specify this parameter without also specifying an *identity-id* parameter. Additional statuses may be added in the future without notice. (optional) + 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 sw \"bob\"' # 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* (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* (optional) + sorters = 'name' # 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: **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: **name** (optional) + try: + # Requestable Objects List + + results = RequestableObjectsApi(api_client).list_requestable_objects() + # Below is a request that includes all optional parameters + # results = RequestableObjectsApi(api_client).list_requestable_objects(identity_id, types, term, statuses, limit, offset, count, filters, sorters) + print("The response of RequestableObjectsApi->list_requestable_objects:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling RequestableObjectsApi->list_requestable_objects: %s\n" % e) - path: /roles method: POST xCodeSample: @@ -6970,13 +6746,12 @@ from sailpoint.v3.api.roles_api import RolesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.role import Role - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - role = '''{ + role = '''{ "owner" : { "name" : "support", "id" : "2c9180a46faadee4016fb4e018c20639", @@ -7134,16 +6909,16 @@ "id" : "2c918086749d78830174a1a40e121518", "requestable" : true }''' # Role | - try: - # Create a Role - new_role = Role.from_json(role) - results = RolesApi(api_client).create_role(role=new_role) - # Below is a request that includes all optional parameters - # results = RolesApi(api_client).create_role(new_role) - print("The response of RolesApi->create_role:\n") - pprint(results) - except Exception as e: - print("Exception when calling RolesApi->create_role: %s\n" % e) + try: + # Create a Role + new_role = Role.from_json(role) + results = RolesApi(api_client).create_role(role=new_role) + # Below is a request that includes all optional parameters + # results = RolesApi(api_client).create_role(new_role) + print("The response of RolesApi->create_role:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling RolesApi->create_role: %s\n" % e) - path: /roles/bulk-delete method: POST xCodeSample: @@ -7154,25 +6929,24 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.role_bulk_delete_request import RoleBulkDeleteRequest from sailpoint.v3.models.task_result_dto import TaskResultDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - role_bulk_delete_request = '''{ + role_bulk_delete_request = '''{ "roleIds" : [ "2c9180847812e0b1017817051919ecca", "2c9180887812e0b201781e129f151816" ] }''' # RoleBulkDeleteRequest | - try: - # Delete Role(s) - new_role_bulk_delete_request = RoleBulkDeleteRequest.from_json(role_bulk_delete_request) - results = RolesApi(api_client).delete_bulk_roles(role_bulk_delete_request=new_role_bulk_delete_request) - # Below is a request that includes all optional parameters - # results = RolesApi(api_client).delete_bulk_roles(new_role_bulk_delete_request) - print("The response of RolesApi->delete_bulk_roles:\n") - pprint(results) - except Exception as e: - print("Exception when calling RolesApi->delete_bulk_roles: %s\n" % e) + try: + # Delete Role(s) + new_role_bulk_delete_request = RoleBulkDeleteRequest.from_json(role_bulk_delete_request) + results = RolesApi(api_client).delete_bulk_roles(role_bulk_delete_request=new_role_bulk_delete_request) + # Below is a request that includes all optional parameters + # results = RolesApi(api_client).delete_bulk_roles(new_role_bulk_delete_request) + print("The response of RolesApi->delete_bulk_roles:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling RolesApi->delete_bulk_roles: %s\n" % e) - path: /roles/{id} method: DELETE xCodeSample: @@ -7181,21 +6955,20 @@ source: | from sailpoint.v3.api.roles_api import RolesApi from sailpoint.v3.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808a7813090a017814121e121518' # str | ID of the Role # str | ID of the Role - try: - # Delete a Role - - RolesApi(api_client).delete_role(id=id) - # Below is a request that includes all optional parameters - # RolesApi(api_client).delete_role(id) - except Exception as e: - print("Exception when calling RolesApi->delete_role: %s\n" % e) + id = '2c91808a7813090a017814121e121518' # str | ID of the Role # str | ID of the Role + try: + # Delete a Role + + RolesApi(api_client).delete_role(id=id) + # Below is a request that includes all optional parameters + # RolesApi(api_client).delete_role(id) + except Exception as e: + print("Exception when calling RolesApi->delete_role: %s\n" % e) - path: /roles/{id} method: GET xCodeSample: @@ -7205,23 +6978,22 @@ from sailpoint.v3.api.roles_api import RolesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.role import Role - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808a7813090a017814121e121518' # str | ID of the Role # str | ID of the Role - try: - # Get a Role - - results = RolesApi(api_client).get_role(id=id) - # Below is a request that includes all optional parameters - # results = RolesApi(api_client).get_role(id) - print("The response of RolesApi->get_role:\n") - pprint(results) - except Exception as e: - print("Exception when calling RolesApi->get_role: %s\n" % e) + id = '2c91808a7813090a017814121e121518' # str | ID of the Role # str | ID of the Role + try: + # Get a Role + + results = RolesApi(api_client).get_role(id=id) + # Below is a request that includes all optional parameters + # results = RolesApi(api_client).get_role(id) + print("The response of RolesApi->get_role:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling RolesApi->get_role: %s\n" % e) - path: /roles/{id}/assigned-identities method: GET xCodeSample: @@ -7231,28 +7003,27 @@ from sailpoint.v3.api.roles_api import RolesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.role_identity import RoleIdentity - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808a7813090a017814121e121518' # str | ID of the Role for which the assigned Identities are to be listed # str | ID of the Role for which the assigned Identities are to be listed - 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 sw Joe' # 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* **aliasName**: *eq, sw* **email**: *eq, sw* **name**: *eq, sw, co* (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* **aliasName**: *eq, sw* **email**: *eq, sw* **name**: *eq, sw, co* (optional) - sorters = 'aliasName,name' # 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: **id, name, aliasName, email** (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: **id, name, aliasName, email** (optional) - try: - # List Identities assigned a Role - - results = RolesApi(api_client).get_role_assigned_identities(id=id) - # Below is a request that includes all optional parameters - # results = RolesApi(api_client).get_role_assigned_identities(id, limit, offset, count, filters, sorters) - print("The response of RolesApi->get_role_assigned_identities:\n") - pprint(results) - except Exception as e: - print("Exception when calling RolesApi->get_role_assigned_identities: %s\n" % e) + id = '2c91808a7813090a017814121e121518' # str | ID of the Role for which the assigned Identities are to be listed # str | ID of the Role for which the assigned Identities are to be listed + 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 sw Joe' # 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* **aliasName**: *eq, sw* **email**: *eq, sw* **name**: *eq, sw, co* (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* **aliasName**: *eq, sw* **email**: *eq, sw* **name**: *eq, sw, co* (optional) + sorters = 'aliasName,name' # 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: **id, name, aliasName, email** (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: **id, name, aliasName, email** (optional) + try: + # List Identities assigned a Role + + results = RolesApi(api_client).get_role_assigned_identities(id=id) + # Below is a request that includes all optional parameters + # results = RolesApi(api_client).get_role_assigned_identities(id, limit, offset, count, filters, sorters) + print("The response of RolesApi->get_role_assigned_identities:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling RolesApi->get_role_assigned_identities: %s\n" % e) - path: /roles method: GET xCodeSample: @@ -7262,30 +7033,29 @@ from sailpoint.v3.api.roles_api import RolesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.role import Role - from pprint import pprint - from sailpoint.configuration import Configuration - configuration = Configuration() - - - with ApiClient(configuration) as api_client: - for_subadmin = '5168015d32f890ca15812c9180835d2e' # str | If provided, filters the returned list according to what is visible to the indicated ROLE_SUBADMIN Identity. The value of the parameter is either an Identity ID, or the special value **me**, which is shorthand for the calling Identity's ID. A 400 Bad Request error is returned if the **for-subadmin** parameter is specified for an Identity that is not a subadmin. (optional) # str | If provided, filters the returned list according to what is visible to the indicated ROLE_SUBADMIN Identity. The value of the parameter is either an Identity ID, or the special value **me**, which is shorthand for the calling Identity's ID. A 400 Bad Request error is returned if the **for-subadmin** parameter is specified for an Identity that is not a subadmin. (optional) - limit = 50 # int | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) # int | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) - 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 = 'requestable eq false' # 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, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **requestable**: *eq* (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, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **requestable**: *eq* (optional) - sorters = 'name,-modified' # 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: **name, created, modified** (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: **name, created, modified** (optional) - for_segment_ids = '0b5c9f25-83c6-4762-9073-e38f7bb2ae26,2e8d8180-24bc-4d21-91c6-7affdb473b0d' # str | If present and not empty, additionally filters Roles to those which are assigned to the Segment(s) with the specified IDs. If segmentation is currently unavailable, specifying this parameter results in an error. (optional) # str | If present and not empty, additionally filters Roles to those which are assigned to the Segment(s) with the specified IDs. If segmentation is currently unavailable, specifying this parameter results in an error. (optional) - include_unsegmented = True # bool | Whether or not the response list should contain unsegmented Roles. If *for-segment-ids* is absent or empty, specifying *include-unsegmented* as false results in an error. (optional) (default to True) # bool | Whether or not the response list should contain unsegmented Roles. If *for-segment-ids* is absent or empty, specifying *include-unsegmented* as false results in an error. (optional) (default to True) - try: - # List Roles - - results = RolesApi(api_client).list_roles() - # Below is a request that includes all optional parameters - # results = RolesApi(api_client).list_roles(for_subadmin, limit, offset, count, filters, sorters, for_segment_ids, include_unsegmented) - print("The response of RolesApi->list_roles:\n") - pprint(results) - except Exception as e: - print("Exception when calling RolesApi->list_roles: %s\n" % e) + from sailpoint.configuration import Configuration + configuration = Configuration() + + + with ApiClient(configuration) as api_client: + for_subadmin = '5168015d32f890ca15812c9180835d2e' # str | If provided, filters the returned list according to what is visible to the indicated ROLE_SUBADMIN Identity. The value of the parameter is either an Identity ID, or the special value **me**, which is shorthand for the calling Identity's ID. A 400 Bad Request error is returned if the **for-subadmin** parameter is specified for an Identity that is not a subadmin. (optional) # str | If provided, filters the returned list according to what is visible to the indicated ROLE_SUBADMIN Identity. The value of the parameter is either an Identity ID, or the special value **me**, which is shorthand for the calling Identity's ID. A 400 Bad Request error is returned if the **for-subadmin** parameter is specified for an Identity that is not a subadmin. (optional) + limit = 50 # int | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) # int | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) + 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 = 'requestable eq false' # 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, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **requestable**: *eq* (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, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **requestable**: *eq* (optional) + sorters = 'name,-modified' # 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: **name, created, modified** (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: **name, created, modified** (optional) + for_segment_ids = '0b5c9f25-83c6-4762-9073-e38f7bb2ae26,2e8d8180-24bc-4d21-91c6-7affdb473b0d' # str | If present and not empty, additionally filters Roles to those which are assigned to the Segment(s) with the specified IDs. If segmentation is currently unavailable, specifying this parameter results in an error. (optional) # str | If present and not empty, additionally filters Roles to those which are assigned to the Segment(s) with the specified IDs. If segmentation is currently unavailable, specifying this parameter results in an error. (optional) + include_unsegmented = True # bool | Whether or not the response list should contain unsegmented Roles. If *for-segment-ids* is absent or empty, specifying *include-unsegmented* as false results in an error. (optional) (default to True) # bool | Whether or not the response list should contain unsegmented Roles. If *for-segment-ids* is absent or empty, specifying *include-unsegmented* as false results in an error. (optional) (default to True) + try: + # List Roles + + results = RolesApi(api_client).list_roles() + # Below is a request that includes all optional parameters + # results = RolesApi(api_client).list_roles(for_subadmin, limit, offset, count, filters, sorters, for_segment_ids, include_unsegmented) + print("The response of RolesApi->list_roles:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling RolesApi->list_roles: %s\n" % e) - path: /roles/{id} method: PATCH xCodeSample: @@ -7296,24 +7066,23 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.json_patch_operation import JsonPatchOperation from sailpoint.v3.models.role import Role - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808a7813090a017814121e121518' # str | ID of the Role to patch # str | ID of the Role to patch - json_patch_operation = '''[{op=replace, path=/requestable, value=true}, {op=replace, path=/enabled, value=true}]''' # List[JsonPatchOperation] | - try: - # Patch a specified Role - new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) - results = RolesApi(api_client).patch_role(id=id, json_patch_operation=new_json_patch_operation) - # Below is a request that includes all optional parameters - # results = RolesApi(api_client).patch_role(id, new_json_patch_operation) - print("The response of RolesApi->patch_role:\n") - pprint(results) - except Exception as e: - print("Exception when calling RolesApi->patch_role: %s\n" % e) + id = '2c91808a7813090a017814121e121518' # str | ID of the Role to patch # str | ID of the Role to patch + json_patch_operation = '''[{op=replace, path=/requestable, value=true}, {op=replace, path=/enabled, value=true}]''' # List[JsonPatchOperation] | + try: + # Patch a specified Role + new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) + results = RolesApi(api_client).patch_role(id=id, json_patch_operation=new_json_patch_operation) + # Below is a request that includes all optional parameters + # results = RolesApi(api_client).patch_role(id, new_json_patch_operation) + print("The response of RolesApi->patch_role:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling RolesApi->patch_role: %s\n" % e) - path: /saved-searches method: POST xCodeSample: @@ -7324,23 +7093,22 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.create_saved_search_request import CreateSavedSearchRequest from sailpoint.v3.models.saved_search import SavedSearch - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - create_saved_search_request = '''sailpoint.v3.CreateSavedSearchRequest()''' # CreateSavedSearchRequest | The saved search to persist. - try: - # Create a saved search - new_create_saved_search_request = CreateSavedSearchRequest.from_json(create_saved_search_request) - results = SavedSearchApi(api_client).create_saved_search(create_saved_search_request=new_create_saved_search_request) - # Below is a request that includes all optional parameters - # results = SavedSearchApi(api_client).create_saved_search(new_create_saved_search_request) - print("The response of SavedSearchApi->create_saved_search:\n") - pprint(results) - except Exception as e: - print("Exception when calling SavedSearchApi->create_saved_search: %s\n" % e) + create_saved_search_request = '''sailpoint.v3.CreateSavedSearchRequest()''' # CreateSavedSearchRequest | The saved search to persist. + try: + # Create a saved search + new_create_saved_search_request = CreateSavedSearchRequest.from_json(create_saved_search_request) + results = SavedSearchApi(api_client).create_saved_search(create_saved_search_request=new_create_saved_search_request) + # Below is a request that includes all optional parameters + # results = SavedSearchApi(api_client).create_saved_search(new_create_saved_search_request) + print("The response of SavedSearchApi->create_saved_search:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SavedSearchApi->create_saved_search: %s\n" % e) - path: /saved-searches/{id} method: DELETE xCodeSample: @@ -7349,21 +7117,20 @@ source: | from sailpoint.v3.api.saved_search_api import SavedSearchApi from sailpoint.v3.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808568c529c60168cca6f90c1313' # str | ID of the requested document. # str | ID of the requested document. - try: - # Delete document by ID - - SavedSearchApi(api_client).delete_saved_search(id=id) - # Below is a request that includes all optional parameters - # SavedSearchApi(api_client).delete_saved_search(id) - except Exception as e: - print("Exception when calling SavedSearchApi->delete_saved_search: %s\n" % e) + id = '2c91808568c529c60168cca6f90c1313' # str | ID of the requested document. # str | ID of the requested document. + try: + # Delete document by ID + + SavedSearchApi(api_client).delete_saved_search(id=id) + # Below is a request that includes all optional parameters + # SavedSearchApi(api_client).delete_saved_search(id) + except Exception as e: + print("Exception when calling SavedSearchApi->delete_saved_search: %s\n" % e) - path: /saved-searches/{id}/execute method: POST xCodeSample: @@ -7373,14 +7140,13 @@ from sailpoint.v3.api.saved_search_api import SavedSearchApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.search_arguments import SearchArguments - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808568c529c60168cca6f90c1313' # str | ID of the requested document. # str | ID of the requested document. - search_arguments = '''{ + id = '2c91808568c529c60168cca6f90c1313' # str | ID of the requested document. # str | ID of the requested document. + search_arguments = '''{ "owner" : "", "recipients" : [ { "id" : "2c91808568c529c60168cca6f90c1313", @@ -7391,14 +7157,14 @@ } ], "scheduleId" : "7a724640-0c17-4ce9-a8c3-4a89738459c8" }''' # SearchArguments | When saved search execution is triggered by a scheduled search, *scheduleId* will specify the ID of the triggering scheduled search. If *scheduleId* is not specified (when execution is triggered by a UI test), the *owner* and *recipients* arguments must be provided. - try: - # Execute a saved search by ID - new_search_arguments = SearchArguments.from_json(search_arguments) - SavedSearchApi(api_client).execute_saved_search(id=id, search_arguments=new_search_arguments) - # Below is a request that includes all optional parameters - # SavedSearchApi(api_client).execute_saved_search(id, new_search_arguments) - except Exception as e: - print("Exception when calling SavedSearchApi->execute_saved_search: %s\n" % e) + try: + # Execute a saved search by ID + new_search_arguments = SearchArguments.from_json(search_arguments) + SavedSearchApi(api_client).execute_saved_search(id=id, search_arguments=new_search_arguments) + # Below is a request that includes all optional parameters + # SavedSearchApi(api_client).execute_saved_search(id, new_search_arguments) + except Exception as e: + print("Exception when calling SavedSearchApi->execute_saved_search: %s\n" % e) - path: /saved-searches/{id} method: GET xCodeSample: @@ -7408,23 +7174,22 @@ from sailpoint.v3.api.saved_search_api import SavedSearchApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.saved_search import SavedSearch - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808568c529c60168cca6f90c1313' # str | ID of the requested document. # str | ID of the requested document. - try: - # Return saved search by ID - - results = SavedSearchApi(api_client).get_saved_search(id=id) - # Below is a request that includes all optional parameters - # results = SavedSearchApi(api_client).get_saved_search(id) - print("The response of SavedSearchApi->get_saved_search:\n") - pprint(results) - except Exception as e: - print("Exception when calling SavedSearchApi->get_saved_search: %s\n" % e) + id = '2c91808568c529c60168cca6f90c1313' # str | ID of the requested document. # str | ID of the requested document. + try: + # Return saved search by ID + + results = SavedSearchApi(api_client).get_saved_search(id=id) + # Below is a request that includes all optional parameters + # results = SavedSearchApi(api_client).get_saved_search(id) + print("The response of SavedSearchApi->get_saved_search:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SavedSearchApi->get_saved_search: %s\n" % e) - path: /saved-searches method: GET xCodeSample: @@ -7434,26 +7199,25 @@ from sailpoint.v3.api.saved_search_api import SavedSearchApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.saved_search import SavedSearch - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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) - 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) - 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 = 'owner.id eq \"7a724640-0c17-4ce9-a8c3-4a89738459c8\"' # 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: **owner.id**: *eq* (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: **owner.id**: *eq* (optional) - try: - # A list of Saved Searches - - results = SavedSearchApi(api_client).list_saved_searches() - # Below is a request that includes all optional parameters - # results = SavedSearchApi(api_client).list_saved_searches(offset, limit, count, filters) - print("The response of SavedSearchApi->list_saved_searches:\n") - pprint(results) - except Exception as e: - print("Exception when calling SavedSearchApi->list_saved_searches: %s\n" % e) + 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) + 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) + 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 = 'owner.id eq \"7a724640-0c17-4ce9-a8c3-4a89738459c8\"' # 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: **owner.id**: *eq* (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: **owner.id**: *eq* (optional) + try: + # A list of Saved Searches + + results = SavedSearchApi(api_client).list_saved_searches() + # Below is a request that includes all optional parameters + # results = SavedSearchApi(api_client).list_saved_searches(offset, limit, count, filters) + print("The response of SavedSearchApi->list_saved_searches:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SavedSearchApi->list_saved_searches: %s\n" % e) - path: /saved-searches/{id} method: PUT xCodeSample: @@ -7463,14 +7227,13 @@ from sailpoint.v3.api.saved_search_api import SavedSearchApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.saved_search import SavedSearch - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808568c529c60168cca6f90c1313' # str | ID of the requested document. # str | ID of the requested document. - saved_search = '''{ + id = '2c91808568c529c60168cca6f90c1313' # str | ID of the requested document. # str | ID of the requested document. + saved_search = '''{ "owner" : { "id" : "2c91808568c529c60168cca6f90c1313", "type" : "IDENTITY" @@ -7515,16 +7278,16 @@ "id" : "0de46054-fe90-434a-b84e-c6b3359d0c64", "fields" : [ "disabled" ] }''' # SavedSearch | The saved search to persist. - try: - # Updates an existing saved search - new_saved_search = SavedSearch.from_json(saved_search) - results = SavedSearchApi(api_client).put_saved_search(id=id, saved_search=new_saved_search) - # Below is a request that includes all optional parameters - # results = SavedSearchApi(api_client).put_saved_search(id, new_saved_search) - print("The response of SavedSearchApi->put_saved_search:\n") - pprint(results) - except Exception as e: - print("Exception when calling SavedSearchApi->put_saved_search: %s\n" % e) + try: + # Updates an existing saved search + new_saved_search = SavedSearch.from_json(saved_search) + results = SavedSearchApi(api_client).put_saved_search(id=id, saved_search=new_saved_search) + # Below is a request that includes all optional parameters + # results = SavedSearchApi(api_client).put_saved_search(id, new_saved_search) + print("The response of SavedSearchApi->put_saved_search:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SavedSearchApi->put_saved_search: %s\n" % e) - path: /scheduled-searches method: POST xCodeSample: @@ -7535,23 +7298,22 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.create_scheduled_search_request import CreateScheduledSearchRequest from sailpoint.v3.models.scheduled_search import ScheduledSearch - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - create_scheduled_search_request = '''{savedSearchId=9c620e13-cd33-4804-a13d-403bd7bcdbad, schedule={type=DAILY, hours={type=LIST, values=[9]}}, recipients=[{type=IDENTITY, id=2c9180867624cbd7017642d8c8c81f67}]}''' # CreateScheduledSearchRequest | The scheduled search to persist. - try: - # Create a new scheduled search - new_create_scheduled_search_request = CreateScheduledSearchRequest.from_json(create_scheduled_search_request) - results = ScheduledSearchApi(api_client).create_scheduled_search(create_scheduled_search_request=new_create_scheduled_search_request) - # Below is a request that includes all optional parameters - # results = ScheduledSearchApi(api_client).create_scheduled_search(new_create_scheduled_search_request) - print("The response of ScheduledSearchApi->create_scheduled_search:\n") - pprint(results) - except Exception as e: - print("Exception when calling ScheduledSearchApi->create_scheduled_search: %s\n" % e) + create_scheduled_search_request = '''{savedSearchId=9c620e13-cd33-4804-a13d-403bd7bcdbad, schedule={type=DAILY, hours={type=LIST, values=[9]}}, recipients=[{type=IDENTITY, id=2c9180867624cbd7017642d8c8c81f67}]}''' # CreateScheduledSearchRequest | The scheduled search to persist. + try: + # Create a new scheduled search + new_create_scheduled_search_request = CreateScheduledSearchRequest.from_json(create_scheduled_search_request) + results = ScheduledSearchApi(api_client).create_scheduled_search(create_scheduled_search_request=new_create_scheduled_search_request) + # Below is a request that includes all optional parameters + # results = ScheduledSearchApi(api_client).create_scheduled_search(new_create_scheduled_search_request) + print("The response of ScheduledSearchApi->create_scheduled_search:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ScheduledSearchApi->create_scheduled_search: %s\n" % e) - path: /scheduled-searches/{id} method: DELETE xCodeSample: @@ -7560,21 +7322,20 @@ source: | from sailpoint.v3.api.scheduled_search_api import ScheduledSearchApi from sailpoint.v3.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808568c529c60168cca6f90c1313' # str | ID of the requested document. # str | ID of the requested document. - try: - # Delete a Scheduled Search - - ScheduledSearchApi(api_client).delete_scheduled_search(id=id) - # Below is a request that includes all optional parameters - # ScheduledSearchApi(api_client).delete_scheduled_search(id) - except Exception as e: - print("Exception when calling ScheduledSearchApi->delete_scheduled_search: %s\n" % e) + id = '2c91808568c529c60168cca6f90c1313' # str | ID of the requested document. # str | ID of the requested document. + try: + # Delete a Scheduled Search + + ScheduledSearchApi(api_client).delete_scheduled_search(id=id) + # Below is a request that includes all optional parameters + # ScheduledSearchApi(api_client).delete_scheduled_search(id) + except Exception as e: + print("Exception when calling ScheduledSearchApi->delete_scheduled_search: %s\n" % e) - path: /scheduled-searches/{id} method: GET xCodeSample: @@ -7584,23 +7345,22 @@ from sailpoint.v3.api.scheduled_search_api import ScheduledSearchApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.scheduled_search import ScheduledSearch - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808568c529c60168cca6f90c1313' # str | ID of the requested document. # str | ID of the requested document. - try: - # Get a Scheduled Search - - results = ScheduledSearchApi(api_client).get_scheduled_search(id=id) - # Below is a request that includes all optional parameters - # results = ScheduledSearchApi(api_client).get_scheduled_search(id) - print("The response of ScheduledSearchApi->get_scheduled_search:\n") - pprint(results) - except Exception as e: - print("Exception when calling ScheduledSearchApi->get_scheduled_search: %s\n" % e) + id = '2c91808568c529c60168cca6f90c1313' # str | ID of the requested document. # str | ID of the requested document. + try: + # Get a Scheduled Search + + results = ScheduledSearchApi(api_client).get_scheduled_search(id=id) + # Below is a request that includes all optional parameters + # results = ScheduledSearchApi(api_client).get_scheduled_search(id) + print("The response of ScheduledSearchApi->get_scheduled_search:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ScheduledSearchApi->get_scheduled_search: %s\n" % e) - path: /scheduled-searches method: GET xCodeSample: @@ -7610,26 +7370,25 @@ from sailpoint.v3.api.scheduled_search_api import ScheduledSearchApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.scheduled_search import ScheduledSearch - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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) - 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) - 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 = 'savedSearchId eq \"6cc0945d-9eeb-4948-9033-72d066e1153e\"' # 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: **owner.id**: *eq* **savedSearchId**: *eq* (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: **owner.id**: *eq* **savedSearchId**: *eq* (optional) - try: - # List scheduled searches - - results = ScheduledSearchApi(api_client).list_scheduled_search() - # Below is a request that includes all optional parameters - # results = ScheduledSearchApi(api_client).list_scheduled_search(offset, limit, count, filters) - print("The response of ScheduledSearchApi->list_scheduled_search:\n") - pprint(results) - except Exception as e: - print("Exception when calling ScheduledSearchApi->list_scheduled_search: %s\n" % e) + 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) + 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) + 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 = 'savedSearchId eq \"6cc0945d-9eeb-4948-9033-72d066e1153e\"' # 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: **owner.id**: *eq* **savedSearchId**: *eq* (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: **owner.id**: *eq* **savedSearchId**: *eq* (optional) + try: + # List scheduled searches + + results = ScheduledSearchApi(api_client).list_scheduled_search() + # Below is a request that includes all optional parameters + # results = ScheduledSearchApi(api_client).list_scheduled_search(offset, limit, count, filters) + print("The response of ScheduledSearchApi->list_scheduled_search:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ScheduledSearchApi->list_scheduled_search: %s\n" % e) - path: /scheduled-searches/{id}/unsubscribe method: POST xCodeSample: @@ -7639,25 +7398,24 @@ from sailpoint.v3.api.scheduled_search_api import ScheduledSearchApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.typed_reference import TypedReference - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808568c529c60168cca6f90c1313' # str | ID of the requested document. # str | ID of the requested document. - typed_reference = '''{ + id = '2c91808568c529c60168cca6f90c1313' # str | ID of the requested document. # str | ID of the requested document. + typed_reference = '''{ "id" : "2c91808568c529c60168cca6f90c1313", "type" : "IDENTITY" }''' # TypedReference | The recipient to be removed from the scheduled search. - try: - # Unsubscribe a recipient from Scheduled Search - new_typed_reference = TypedReference.from_json(typed_reference) - ScheduledSearchApi(api_client).unsubscribe_scheduled_search(id=id, typed_reference=new_typed_reference) - # Below is a request that includes all optional parameters - # ScheduledSearchApi(api_client).unsubscribe_scheduled_search(id, new_typed_reference) - except Exception as e: - print("Exception when calling ScheduledSearchApi->unsubscribe_scheduled_search: %s\n" % e) + try: + # Unsubscribe a recipient from Scheduled Search + new_typed_reference = TypedReference.from_json(typed_reference) + ScheduledSearchApi(api_client).unsubscribe_scheduled_search(id=id, typed_reference=new_typed_reference) + # Below is a request that includes all optional parameters + # ScheduledSearchApi(api_client).unsubscribe_scheduled_search(id, new_typed_reference) + except Exception as e: + print("Exception when calling ScheduledSearchApi->unsubscribe_scheduled_search: %s\n" % e) - path: /scheduled-searches/{id} method: PUT xCodeSample: @@ -7667,14 +7425,13 @@ from sailpoint.v3.api.scheduled_search_api import ScheduledSearchApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.scheduled_search import ScheduledSearch - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c91808568c529c60168cca6f90c1313' # str | ID of the requested document. # str | ID of the requested document. - scheduled_search = '''{ + id = '2c91808568c529c60168cca6f90c1313' # str | ID of the requested document. # str | ID of the requested document. + scheduled_search = '''{ "owner" : { "id" : "2c9180867624cbd7017642d8c8c81f67", "type" : "IDENTITY" @@ -7717,16 +7474,16 @@ "id" : "0de46054-fe90-434a-b84e-c6b3359d0c64", "emailEmptyResults" : false }''' # ScheduledSearch | The scheduled search to persist. - try: - # Update an existing Scheduled Search - new_scheduled_search = ScheduledSearch.from_json(scheduled_search) - results = ScheduledSearchApi(api_client).update_scheduled_search(id=id, scheduled_search=new_scheduled_search) - # Below is a request that includes all optional parameters - # results = ScheduledSearchApi(api_client).update_scheduled_search(id, new_scheduled_search) - print("The response of ScheduledSearchApi->update_scheduled_search:\n") - pprint(results) - except Exception as e: - print("Exception when calling ScheduledSearchApi->update_scheduled_search: %s\n" % e) + try: + # Update an existing Scheduled Search + new_scheduled_search = ScheduledSearch.from_json(scheduled_search) + results = ScheduledSearchApi(api_client).update_scheduled_search(id=id, scheduled_search=new_scheduled_search) + # Below is a request that includes all optional parameters + # results = ScheduledSearchApi(api_client).update_scheduled_search(id, new_scheduled_search) + print("The response of ScheduledSearchApi->update_scheduled_search:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ScheduledSearchApi->update_scheduled_search: %s\n" % e) - path: /search/aggregate method: POST xCodeSample: @@ -7737,13 +7494,12 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.aggregation_result import AggregationResult from sailpoint.v3.models.search import Search - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - search = '''{ + search = '''{ "queryDsl" : { "match" : { "name" : "john.doe" @@ -7860,19 +7616,19 @@ } } }''' # Search | - 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) - 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) - 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) - try: - # Perform a Search Query Aggregation - new_search = Search.from_json(search) - results = SearchApi(api_client).search_aggregate(search=new_search) - # Below is a request that includes all optional parameters - # results = SearchApi(api_client).search_aggregate(new_search, offset, limit, count) - print("The response of SearchApi->search_aggregate:\n") - pprint(results) - except Exception as e: - print("Exception when calling SearchApi->search_aggregate: %s\n" % e) + 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) + 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) + 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) + try: + # Perform a Search Query Aggregation + new_search = Search.from_json(search) + results = SearchApi(api_client).search_aggregate(search=new_search) + # Below is a request that includes all optional parameters + # results = SearchApi(api_client).search_aggregate(new_search, offset, limit, count) + print("The response of SearchApi->search_aggregate:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SearchApi->search_aggregate: %s\n" % e) - path: /search/count method: POST xCodeSample: @@ -7882,13 +7638,12 @@ from sailpoint.v3.api.search_api import SearchApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.search import Search - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - search = '''{ + search = '''{ "queryDsl" : { "match" : { "name" : "john.doe" @@ -8005,14 +7760,14 @@ } } }''' # Search | - try: - # Count Documents Satisfying a Query - new_search = Search.from_json(search) - SearchApi(api_client).search_count(search=new_search) - # Below is a request that includes all optional parameters - # SearchApi(api_client).search_count(new_search) - except Exception as e: - print("Exception when calling SearchApi->search_count: %s\n" % e) + try: + # Count Documents Satisfying a Query + new_search = Search.from_json(search) + SearchApi(api_client).search_count(search=new_search) + # Below is a request that includes all optional parameters + # SearchApi(api_client).search_count(new_search) + except Exception as e: + print("Exception when calling SearchApi->search_count: %s\n" % e) - path: /search/{index}/{id} method: GET xCodeSample: @@ -8021,24 +7776,23 @@ source: | from sailpoint.v3.api.search_api import SearchApi from sailpoint.v3.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - index = 'identities' # str | The index from which to fetch the specified document. The currently supported index names are: *accessprofiles*, *accountactivities*, *entitlements*, *events*, *identities*, and *roles*. # str | The index from which to fetch the specified document. The currently supported index names are: *accessprofiles*, *accountactivities*, *entitlements*, *events*, *identities*, and *roles*. - id = '2c91808568c529c60168cca6f90c1313' # str | ID of the requested document. # str | ID of the requested document. - try: - # Get a Document by ID - - results = SearchApi(api_client).search_get(index=index, id=id) - # Below is a request that includes all optional parameters - # results = SearchApi(api_client).search_get(index, id) - print("The response of SearchApi->search_get:\n") - pprint(results) - except Exception as e: - print("Exception when calling SearchApi->search_get: %s\n" % e) + index = 'identities' # str | The index from which to fetch the specified document. The currently supported index names are: *accessprofiles*, *accountactivities*, *entitlements*, *events*, *identities*, and *roles*. # str | The index from which to fetch the specified document. The currently supported index names are: *accessprofiles*, *accountactivities*, *entitlements*, *events*, *identities*, and *roles*. + id = '2c91808568c529c60168cca6f90c1313' # str | ID of the requested document. # str | ID of the requested document. + try: + # Get a Document by ID + + results = SearchApi(api_client).search_get(index=index, id=id) + # Below is a request that includes all optional parameters + # results = SearchApi(api_client).search_get(index, id) + print("The response of SearchApi->search_get:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SearchApi->search_get: %s\n" % e) - path: /search method: POST xCodeSample: @@ -8048,13 +7802,12 @@ from sailpoint.v3.api.search_api import SearchApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.search import Search - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - search = '''{ + search = '''{ "queryDsl" : { "match" : { "name" : "john.doe" @@ -8171,19 +7924,19 @@ } } }''' # Search | - 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) - 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) - 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) - try: - # Perform Search - new_search = Search.from_json(search) - results = SearchApi(api_client).search_post(search=new_search) - # Below is a request that includes all optional parameters - # results = SearchApi(api_client).search_post(new_search, offset, limit, count) - print("The response of SearchApi->search_post:\n") - pprint(results) - except Exception as e: - print("Exception when calling SearchApi->search_post: %s\n" % e) + 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) + 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) + 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) + try: + # Perform Search + new_search = Search.from_json(search) + results = SearchApi(api_client).search_post(search=new_search) + # Below is a request that includes all optional parameters + # results = SearchApi(api_client).search_post(new_search, offset, limit, count) + print("The response of SearchApi->search_post:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SearchApi->search_post: %s\n" % e) - path: /accounts/search-attribute-config method: POST xCodeSample: @@ -8193,13 +7946,12 @@ from sailpoint.v3.api.search_attribute_configuration_api import SearchAttributeConfigurationApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.search_attribute_config import SearchAttributeConfig - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - search_attribute_config = '''{ + search_attribute_config = '''{ "displayName" : "New Mail Attribute", "name" : "newMailAttribute", "applicationAttributes" : { @@ -8207,16 +7959,16 @@ "2c91808b79fd2422017a0b36008f396b" : "employeeNumber" } }''' # SearchAttributeConfig | - try: - # Create Extended Search Attributes - new_search_attribute_config = SearchAttributeConfig.from_json(search_attribute_config) - results = SearchAttributeConfigurationApi(api_client).create_search_attribute_config(search_attribute_config=new_search_attribute_config) - # Below is a request that includes all optional parameters - # results = SearchAttributeConfigurationApi(api_client).create_search_attribute_config(new_search_attribute_config) - print("The response of SearchAttributeConfigurationApi->create_search_attribute_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling SearchAttributeConfigurationApi->create_search_attribute_config: %s\n" % e) + try: + # Create Extended Search Attributes + new_search_attribute_config = SearchAttributeConfig.from_json(search_attribute_config) + results = SearchAttributeConfigurationApi(api_client).create_search_attribute_config(search_attribute_config=new_search_attribute_config) + # Below is a request that includes all optional parameters + # results = SearchAttributeConfigurationApi(api_client).create_search_attribute_config(new_search_attribute_config) + print("The response of SearchAttributeConfigurationApi->create_search_attribute_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SearchAttributeConfigurationApi->create_search_attribute_config: %s\n" % e) - path: /accounts/search-attribute-config/{name} method: DELETE xCodeSample: @@ -8225,21 +7977,20 @@ source: | from sailpoint.v3.api.search_attribute_configuration_api import SearchAttributeConfigurationApi from sailpoint.v3.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - name = 'newMailAttribute' # str | Name of the extended search attribute configuration to delete. # str | Name of the extended search attribute configuration to delete. - try: - # Delete Extended Search Attribute - - SearchAttributeConfigurationApi(api_client).delete_search_attribute_config(name=name) - # Below is a request that includes all optional parameters - # SearchAttributeConfigurationApi(api_client).delete_search_attribute_config(name) - except Exception as e: - print("Exception when calling SearchAttributeConfigurationApi->delete_search_attribute_config: %s\n" % e) + name = 'newMailAttribute' # str | Name of the extended search attribute configuration to delete. # str | Name of the extended search attribute configuration to delete. + try: + # Delete Extended Search Attribute + + SearchAttributeConfigurationApi(api_client).delete_search_attribute_config(name=name) + # Below is a request that includes all optional parameters + # SearchAttributeConfigurationApi(api_client).delete_search_attribute_config(name) + except Exception as e: + print("Exception when calling SearchAttributeConfigurationApi->delete_search_attribute_config: %s\n" % e) - path: /accounts/search-attribute-config method: GET xCodeSample: @@ -8249,24 +8000,23 @@ from sailpoint.v3.api.search_attribute_configuration_api import SearchAttributeConfigurationApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.search_attribute_config import SearchAttributeConfig - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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) - try: - # List Extended Search Attributes - - results = SearchAttributeConfigurationApi(api_client).get_search_attribute_config() - # Below is a request that includes all optional parameters - # results = SearchAttributeConfigurationApi(api_client).get_search_attribute_config(limit, offset) - print("The response of SearchAttributeConfigurationApi->get_search_attribute_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling SearchAttributeConfigurationApi->get_search_attribute_config: %s\n" % e) + 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) + try: + # List Extended Search Attributes + + results = SearchAttributeConfigurationApi(api_client).get_search_attribute_config() + # Below is a request that includes all optional parameters + # results = SearchAttributeConfigurationApi(api_client).get_search_attribute_config(limit, offset) + print("The response of SearchAttributeConfigurationApi->get_search_attribute_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SearchAttributeConfigurationApi->get_search_attribute_config: %s\n" % e) - path: /accounts/search-attribute-config/{name} method: GET xCodeSample: @@ -8276,23 +8026,22 @@ from sailpoint.v3.api.search_attribute_configuration_api import SearchAttributeConfigurationApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.search_attribute_config import SearchAttributeConfig - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - name = 'newMailAttribute' # str | Name of the extended search attribute configuration to retrieve. # str | Name of the extended search attribute configuration to retrieve. - try: - # Get Extended Search Attribute - - results = SearchAttributeConfigurationApi(api_client).get_single_search_attribute_config(name=name) - # Below is a request that includes all optional parameters - # results = SearchAttributeConfigurationApi(api_client).get_single_search_attribute_config(name) - print("The response of SearchAttributeConfigurationApi->get_single_search_attribute_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling SearchAttributeConfigurationApi->get_single_search_attribute_config: %s\n" % e) + name = 'newMailAttribute' # str | Name of the extended search attribute configuration to retrieve. # str | Name of the extended search attribute configuration to retrieve. + try: + # Get Extended Search Attribute + + results = SearchAttributeConfigurationApi(api_client).get_single_search_attribute_config(name=name) + # Below is a request that includes all optional parameters + # results = SearchAttributeConfigurationApi(api_client).get_single_search_attribute_config(name) + print("The response of SearchAttributeConfigurationApi->get_single_search_attribute_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SearchAttributeConfigurationApi->get_single_search_attribute_config: %s\n" % e) - path: /accounts/search-attribute-config/{name} method: PATCH xCodeSample: @@ -8303,24 +8052,23 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.json_patch_operation import JsonPatchOperation from sailpoint.v3.models.search_attribute_config import SearchAttributeConfig - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - name = 'promotedMailAttribute' # str | Name of the search attribute configuration to patch. # str | Name of the search attribute configuration to patch. - json_patch_operation = '''[{op=replace, path=/name, value=newAttributeName}, {op=replace, path=/displayName, value=new attribute display name}, {op=add, path=/applicationAttributes, value={2c91808b79fd2422017a0b35d30f3968=employeeNumber}}]''' # List[JsonPatchOperation] | - try: - # Update Extended Search Attribute - new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) - results = SearchAttributeConfigurationApi(api_client).patch_search_attribute_config(name=name, json_patch_operation=new_json_patch_operation) - # Below is a request that includes all optional parameters - # results = SearchAttributeConfigurationApi(api_client).patch_search_attribute_config(name, new_json_patch_operation) - print("The response of SearchAttributeConfigurationApi->patch_search_attribute_config:\n") - pprint(results) - except Exception as e: - print("Exception when calling SearchAttributeConfigurationApi->patch_search_attribute_config: %s\n" % e) + name = 'promotedMailAttribute' # str | Name of the search attribute configuration to patch. # str | Name of the search attribute configuration to patch. + json_patch_operation = '''[{op=replace, path=/name, value=newAttributeName}, {op=replace, path=/displayName, value=new attribute display name}, {op=add, path=/applicationAttributes, value={2c91808b79fd2422017a0b35d30f3968=employeeNumber}}]''' # List[JsonPatchOperation] | + try: + # Update Extended Search Attribute + new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) + results = SearchAttributeConfigurationApi(api_client).patch_search_attribute_config(name=name, json_patch_operation=new_json_patch_operation) + # Below is a request that includes all optional parameters + # results = SearchAttributeConfigurationApi(api_client).patch_search_attribute_config(name, new_json_patch_operation) + print("The response of SearchAttributeConfigurationApi->patch_search_attribute_config:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SearchAttributeConfigurationApi->patch_search_attribute_config: %s\n" % e) - path: /segments method: POST xCodeSample: @@ -8330,13 +8078,12 @@ from sailpoint.v3.api.segments_api import SegmentsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.segment import Segment - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - segment = '''{ + segment = '''{ "owner" : { "name" : "support", "id" : "2c9180a46faadee4016fb4e018c20639", @@ -8360,16 +8107,16 @@ "active" : true, "id" : "0f11f2a4-7c94-4bf3-a2bd-742580fe3bde" }''' # Segment | - try: - # Create Segment - new_segment = Segment.from_json(segment) - results = SegmentsApi(api_client).create_segment(segment=new_segment) - # Below is a request that includes all optional parameters - # results = SegmentsApi(api_client).create_segment(new_segment) - print("The response of SegmentsApi->create_segment:\n") - pprint(results) - except Exception as e: - print("Exception when calling SegmentsApi->create_segment: %s\n" % e) + try: + # Create Segment + new_segment = Segment.from_json(segment) + results = SegmentsApi(api_client).create_segment(segment=new_segment) + # Below is a request that includes all optional parameters + # results = SegmentsApi(api_client).create_segment(new_segment) + print("The response of SegmentsApi->create_segment:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SegmentsApi->create_segment: %s\n" % e) - path: /segments/{id} method: DELETE xCodeSample: @@ -8378,21 +8125,20 @@ source: | from sailpoint.v3.api.segments_api import SegmentsApi from sailpoint.v3.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The segment ID to delete. # str | The segment ID to delete. - try: - # Delete Segment by ID - - SegmentsApi(api_client).delete_segment(id=id) - # Below is a request that includes all optional parameters - # SegmentsApi(api_client).delete_segment(id) - except Exception as e: - print("Exception when calling SegmentsApi->delete_segment: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The segment ID to delete. # str | The segment ID to delete. + try: + # Delete Segment by ID + + SegmentsApi(api_client).delete_segment(id=id) + # Below is a request that includes all optional parameters + # SegmentsApi(api_client).delete_segment(id) + except Exception as e: + print("Exception when calling SegmentsApi->delete_segment: %s\n" % e) - path: /segments/{id} method: GET xCodeSample: @@ -8402,23 +8148,22 @@ from sailpoint.v3.api.segments_api import SegmentsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.segment import Segment - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The segment ID to retrieve. # str | The segment ID to retrieve. - try: - # Get Segment by ID - - results = SegmentsApi(api_client).get_segment(id=id) - # Below is a request that includes all optional parameters - # results = SegmentsApi(api_client).get_segment(id) - print("The response of SegmentsApi->get_segment:\n") - pprint(results) - except Exception as e: - print("Exception when calling SegmentsApi->get_segment: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The segment ID to retrieve. # str | The segment ID to retrieve. + try: + # Get Segment by ID + + results = SegmentsApi(api_client).get_segment(id=id) + # Below is a request that includes all optional parameters + # results = SegmentsApi(api_client).get_segment(id) + print("The response of SegmentsApi->get_segment:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SegmentsApi->get_segment: %s\n" % e) - path: /segments method: GET xCodeSample: @@ -8428,25 +8173,24 @@ from sailpoint.v3.api.segments_api import SegmentsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.segment import Segment - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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) - try: - # List Segments - - results = SegmentsApi(api_client).list_segments() - # Below is a request that includes all optional parameters - # results = SegmentsApi(api_client).list_segments(limit, offset, count) - print("The response of SegmentsApi->list_segments:\n") - pprint(results) - except Exception as e: - print("Exception when calling SegmentsApi->list_segments: %s\n" % e) + 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) + try: + # List Segments + + results = SegmentsApi(api_client).list_segments() + # Below is a request that includes all optional parameters + # results = SegmentsApi(api_client).list_segments(limit, offset, count) + print("The response of SegmentsApi->list_segments:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SegmentsApi->list_segments: %s\n" % e) - path: /segments/{id} method: PATCH xCodeSample: @@ -8456,24 +8200,23 @@ from sailpoint.v3.api.segments_api import SegmentsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.segment import Segment - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The segment ID to modify. # str | The segment ID to modify. - request_body = '''[{op=replace, path=/visibilityCriteria, 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 * owner * visibilityCriteria * active - try: - # Update Segment - new_request_body = RequestBody.from_json(request_body) - results = SegmentsApi(api_client).patch_segment(id=id, request_body=new_request_body) - # Below is a request that includes all optional parameters - # results = SegmentsApi(api_client).patch_segment(id, new_request_body) - print("The response of SegmentsApi->patch_segment:\n") - pprint(results) - except Exception as e: - print("Exception when calling SegmentsApi->patch_segment: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The segment ID to modify. # str | The segment ID to modify. + request_body = '''[{op=replace, path=/visibilityCriteria, 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 * owner * visibilityCriteria * active + try: + # Update Segment + new_request_body = RequestBody.from_json(request_body) + results = SegmentsApi(api_client).patch_segment(id=id, request_body=new_request_body) + # Below is a request that includes all optional parameters + # results = SegmentsApi(api_client).patch_segment(id, new_request_body) + print("The response of SegmentsApi->patch_segment:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SegmentsApi->patch_segment: %s\n" % e) - path: /service-desk-integrations method: POST xCodeSample: @@ -8483,13 +8226,12 @@ from sailpoint.v3.api.service_desk_integration_api import ServiceDeskIntegrationApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.service_desk_integration_dto import ServiceDeskIntegrationDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - service_desk_integration_dto = '''{ + service_desk_integration_dto = '''{ "ownerRef" : "", "cluster" : "xyzzy999", "created" : "2024-01-17T18:45:25.994Z", @@ -8523,16 +8265,16 @@ "id" : "62945a496ef440189b1f03e3623411c8", "beforeProvisioningRule" : "" }''' # ServiceDeskIntegrationDto | The specifics of a new integration to create - try: - # Create new Service Desk integration - new_service_desk_integration_dto = ServiceDeskIntegrationDto.from_json(service_desk_integration_dto) - results = ServiceDeskIntegrationApi(api_client).create_service_desk_integration(service_desk_integration_dto=new_service_desk_integration_dto) - # Below is a request that includes all optional parameters - # results = ServiceDeskIntegrationApi(api_client).create_service_desk_integration(new_service_desk_integration_dto) - print("The response of ServiceDeskIntegrationApi->create_service_desk_integration:\n") - pprint(results) - except Exception as e: - print("Exception when calling ServiceDeskIntegrationApi->create_service_desk_integration: %s\n" % e) + try: + # Create new Service Desk integration + new_service_desk_integration_dto = ServiceDeskIntegrationDto.from_json(service_desk_integration_dto) + results = ServiceDeskIntegrationApi(api_client).create_service_desk_integration(service_desk_integration_dto=new_service_desk_integration_dto) + # Below is a request that includes all optional parameters + # results = ServiceDeskIntegrationApi(api_client).create_service_desk_integration(new_service_desk_integration_dto) + print("The response of ServiceDeskIntegrationApi->create_service_desk_integration:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ServiceDeskIntegrationApi->create_service_desk_integration: %s\n" % e) - path: /service-desk-integrations/{id} method: DELETE xCodeSample: @@ -8541,21 +8283,20 @@ source: | from sailpoint.v3.api.service_desk_integration_api import ServiceDeskIntegrationApi from sailpoint.v3.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'anId' # str | ID of Service Desk integration to delete # str | ID of Service Desk integration to delete - try: - # Delete a Service Desk integration - - ServiceDeskIntegrationApi(api_client).delete_service_desk_integration(id=id) - # Below is a request that includes all optional parameters - # ServiceDeskIntegrationApi(api_client).delete_service_desk_integration(id) - except Exception as e: - print("Exception when calling ServiceDeskIntegrationApi->delete_service_desk_integration: %s\n" % e) + id = 'anId' # str | ID of Service Desk integration to delete # str | ID of Service Desk integration to delete + try: + # Delete a Service Desk integration + + ServiceDeskIntegrationApi(api_client).delete_service_desk_integration(id=id) + # Below is a request that includes all optional parameters + # ServiceDeskIntegrationApi(api_client).delete_service_desk_integration(id) + except Exception as e: + print("Exception when calling ServiceDeskIntegrationApi->delete_service_desk_integration: %s\n" % e) - path: /service-desk-integrations/{id} method: GET xCodeSample: @@ -8565,23 +8306,22 @@ from sailpoint.v3.api.service_desk_integration_api import ServiceDeskIntegrationApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.service_desk_integration_dto import ServiceDeskIntegrationDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'anId' # str | ID of the Service Desk integration to get # str | ID of the Service Desk integration to get - try: - # Get a Service Desk integration - - results = ServiceDeskIntegrationApi(api_client).get_service_desk_integration(id=id) - # Below is a request that includes all optional parameters - # results = ServiceDeskIntegrationApi(api_client).get_service_desk_integration(id) - print("The response of ServiceDeskIntegrationApi->get_service_desk_integration:\n") - pprint(results) - except Exception as e: - print("Exception when calling ServiceDeskIntegrationApi->get_service_desk_integration: %s\n" % e) + id = 'anId' # str | ID of the Service Desk integration to get # str | ID of the Service Desk integration to get + try: + # Get a Service Desk integration + + results = ServiceDeskIntegrationApi(api_client).get_service_desk_integration(id=id) + # Below is a request that includes all optional parameters + # results = ServiceDeskIntegrationApi(api_client).get_service_desk_integration(id) + print("The response of ServiceDeskIntegrationApi->get_service_desk_integration:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ServiceDeskIntegrationApi->get_service_desk_integration: %s\n" % e) - path: /service-desk-integrations/templates/{scriptName} method: GET xCodeSample: @@ -8591,23 +8331,22 @@ from sailpoint.v3.api.service_desk_integration_api import ServiceDeskIntegrationApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.service_desk_integration_template_dto import ServiceDeskIntegrationTemplateDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - script_name = 'aScriptName' # str | The scriptName value of the Service Desk integration template to get # str | The scriptName value of the Service Desk integration template to get - try: - # Service Desk integration template by scriptName - - results = ServiceDeskIntegrationApi(api_client).get_service_desk_integration_template(script_name=script_name) - # Below is a request that includes all optional parameters - # results = ServiceDeskIntegrationApi(api_client).get_service_desk_integration_template(script_name) - print("The response of ServiceDeskIntegrationApi->get_service_desk_integration_template:\n") - pprint(results) - except Exception as e: - print("Exception when calling ServiceDeskIntegrationApi->get_service_desk_integration_template: %s\n" % e) + script_name = 'aScriptName' # str | The scriptName value of the Service Desk integration template to get # str | The scriptName value of the Service Desk integration template to get + try: + # Service Desk integration template by scriptName + + results = ServiceDeskIntegrationApi(api_client).get_service_desk_integration_template(script_name=script_name) + # Below is a request that includes all optional parameters + # results = ServiceDeskIntegrationApi(api_client).get_service_desk_integration_template(script_name) + print("The response of ServiceDeskIntegrationApi->get_service_desk_integration_template:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ServiceDeskIntegrationApi->get_service_desk_integration_template: %s\n" % e) - path: /service-desk-integrations/types method: GET xCodeSample: @@ -8617,22 +8356,21 @@ from sailpoint.v3.api.service_desk_integration_api import ServiceDeskIntegrationApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.service_desk_integration_template_type import ServiceDeskIntegrationTemplateType - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - try: - # List Service Desk integration types - - results = ServiceDeskIntegrationApi(api_client).get_service_desk_integration_types() - # Below is a request that includes all optional parameters - # results = ServiceDeskIntegrationApi(api_client).get_service_desk_integration_types() - print("The response of ServiceDeskIntegrationApi->get_service_desk_integration_types:\n") - pprint(results) - except Exception as e: - print("Exception when calling ServiceDeskIntegrationApi->get_service_desk_integration_types: %s\n" % e) + try: + # List Service Desk integration types + + results = ServiceDeskIntegrationApi(api_client).get_service_desk_integration_types() + # Below is a request that includes all optional parameters + # results = ServiceDeskIntegrationApi(api_client).get_service_desk_integration_types() + print("The response of ServiceDeskIntegrationApi->get_service_desk_integration_types:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ServiceDeskIntegrationApi->get_service_desk_integration_types: %s\n" % e) - path: /service-desk-integrations method: GET xCodeSample: @@ -8642,27 +8380,26 @@ from sailpoint.v3.api.service_desk_integration_api import ServiceDeskIntegrationApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.service_desk_integration_dto import ServiceDeskIntegrationDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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) - 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) - sorters = 'name' # 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: **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: **name** (optional) - filters = 'name eq \"John Doe\"' # 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* **type**: *eq, in* **cluster**: *eq, in* (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* **type**: *eq, in* **cluster**: *eq, in* (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 [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) - try: - # List existing Service Desk integrations - - results = ServiceDeskIntegrationApi(api_client).get_service_desk_integrations() - # Below is a request that includes all optional parameters - # results = ServiceDeskIntegrationApi(api_client).get_service_desk_integrations(offset, limit, sorters, filters, count) - print("The response of ServiceDeskIntegrationApi->get_service_desk_integrations:\n") - pprint(results) - except Exception as e: - print("Exception when calling ServiceDeskIntegrationApi->get_service_desk_integrations: %s\n" % e) + 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) + 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) + sorters = 'name' # 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: **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: **name** (optional) + filters = 'name eq \"John Doe\"' # 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* **type**: *eq, in* **cluster**: *eq, in* (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* **type**: *eq, in* **cluster**: *eq, in* (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 [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) + try: + # List existing Service Desk integrations + + results = ServiceDeskIntegrationApi(api_client).get_service_desk_integrations() + # Below is a request that includes all optional parameters + # results = ServiceDeskIntegrationApi(api_client).get_service_desk_integrations(offset, limit, sorters, filters, count) + print("The response of ServiceDeskIntegrationApi->get_service_desk_integrations:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ServiceDeskIntegrationApi->get_service_desk_integrations: %s\n" % e) - path: /service-desk-integrations/status-check-configuration method: GET xCodeSample: @@ -8672,22 +8409,21 @@ from sailpoint.v3.api.service_desk_integration_api import ServiceDeskIntegrationApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.queued_check_config_details import QueuedCheckConfigDetails - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - try: - # Get the time check configuration - - results = ServiceDeskIntegrationApi(api_client).get_status_check_details() - # Below is a request that includes all optional parameters - # results = ServiceDeskIntegrationApi(api_client).get_status_check_details() - print("The response of ServiceDeskIntegrationApi->get_status_check_details:\n") - pprint(results) - except Exception as e: - print("Exception when calling ServiceDeskIntegrationApi->get_status_check_details: %s\n" % e) + try: + # Get the time check configuration + + results = ServiceDeskIntegrationApi(api_client).get_status_check_details() + # Below is a request that includes all optional parameters + # results = ServiceDeskIntegrationApi(api_client).get_status_check_details() + print("The response of ServiceDeskIntegrationApi->get_status_check_details:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ServiceDeskIntegrationApi->get_status_check_details: %s\n" % e) - path: /service-desk-integrations/{id} method: PATCH xCodeSample: @@ -8698,24 +8434,23 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.patch_service_desk_integration_request import PatchServiceDeskIntegrationRequest from sailpoint.v3.models.service_desk_integration_dto import ServiceDeskIntegrationDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'anId' # str | ID of the Service Desk integration to update # str | ID of the Service Desk integration to update - patch_service_desk_integration_request = '''sailpoint.v3.PatchServiceDeskIntegrationRequest()''' # PatchServiceDeskIntegrationRequest | A list of SDIM update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Only `replace` operations are accepted by this endpoint. A 403 Forbidden Error indicates that a PATCH operation was attempted that is not allowed. - try: - # Patch a Service Desk Integration - new_patch_service_desk_integration_request = PatchServiceDeskIntegrationRequest.from_json(patch_service_desk_integration_request) - results = ServiceDeskIntegrationApi(api_client).patch_service_desk_integration(id=id, patch_service_desk_integration_request=new_patch_service_desk_integration_request) - # Below is a request that includes all optional parameters - # results = ServiceDeskIntegrationApi(api_client).patch_service_desk_integration(id, new_patch_service_desk_integration_request) - print("The response of ServiceDeskIntegrationApi->patch_service_desk_integration:\n") - pprint(results) - except Exception as e: - print("Exception when calling ServiceDeskIntegrationApi->patch_service_desk_integration: %s\n" % e) + id = 'anId' # str | ID of the Service Desk integration to update # str | ID of the Service Desk integration to update + patch_service_desk_integration_request = '''sailpoint.v3.PatchServiceDeskIntegrationRequest()''' # PatchServiceDeskIntegrationRequest | A list of SDIM update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Only `replace` operations are accepted by this endpoint. A 403 Forbidden Error indicates that a PATCH operation was attempted that is not allowed. + try: + # Patch a Service Desk Integration + new_patch_service_desk_integration_request = PatchServiceDeskIntegrationRequest.from_json(patch_service_desk_integration_request) + results = ServiceDeskIntegrationApi(api_client).patch_service_desk_integration(id=id, patch_service_desk_integration_request=new_patch_service_desk_integration_request) + # Below is a request that includes all optional parameters + # results = ServiceDeskIntegrationApi(api_client).patch_service_desk_integration(id, new_patch_service_desk_integration_request) + print("The response of ServiceDeskIntegrationApi->patch_service_desk_integration:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ServiceDeskIntegrationApi->patch_service_desk_integration: %s\n" % e) - path: /service-desk-integrations/{id} method: PUT xCodeSample: @@ -8725,14 +8460,13 @@ from sailpoint.v3.api.service_desk_integration_api import ServiceDeskIntegrationApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.service_desk_integration_dto import ServiceDeskIntegrationDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'anId' # str | ID of the Service Desk integration to update # str | ID of the Service Desk integration to update - service_desk_integration_dto = '''{ + id = 'anId' # str | ID of the Service Desk integration to update # str | ID of the Service Desk integration to update + service_desk_integration_dto = '''{ "ownerRef" : "", "cluster" : "xyzzy999", "created" : "2024-01-17T18:45:25.994Z", @@ -8766,16 +8500,16 @@ "id" : "62945a496ef440189b1f03e3623411c8", "beforeProvisioningRule" : "" }''' # ServiceDeskIntegrationDto | The specifics of the integration to update - try: - # Update a Service Desk integration - new_service_desk_integration_dto = ServiceDeskIntegrationDto.from_json(service_desk_integration_dto) - results = ServiceDeskIntegrationApi(api_client).put_service_desk_integration(id=id, service_desk_integration_dto=new_service_desk_integration_dto) - # Below is a request that includes all optional parameters - # results = ServiceDeskIntegrationApi(api_client).put_service_desk_integration(id, new_service_desk_integration_dto) - print("The response of ServiceDeskIntegrationApi->put_service_desk_integration:\n") - pprint(results) - except Exception as e: - print("Exception when calling ServiceDeskIntegrationApi->put_service_desk_integration: %s\n" % e) + try: + # Update a Service Desk integration + new_service_desk_integration_dto = ServiceDeskIntegrationDto.from_json(service_desk_integration_dto) + results = ServiceDeskIntegrationApi(api_client).put_service_desk_integration(id=id, service_desk_integration_dto=new_service_desk_integration_dto) + # Below is a request that includes all optional parameters + # results = ServiceDeskIntegrationApi(api_client).put_service_desk_integration(id, new_service_desk_integration_dto) + print("The response of ServiceDeskIntegrationApi->put_service_desk_integration:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ServiceDeskIntegrationApi->put_service_desk_integration: %s\n" % e) - path: /service-desk-integrations/status-check-configuration method: PUT xCodeSample: @@ -8785,26 +8519,25 @@ from sailpoint.v3.api.service_desk_integration_api import ServiceDeskIntegrationApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.queued_check_config_details import QueuedCheckConfigDetails - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - queued_check_config_details = '''{ + queued_check_config_details = '''{ "provisioningStatusCheckIntervalMinutes" : "30", "provisioningMaxStatusCheckDays" : "2" }''' # QueuedCheckConfigDetails | The modified time check configuration - try: - # Update the time check configuration - new_queued_check_config_details = QueuedCheckConfigDetails.from_json(queued_check_config_details) - results = ServiceDeskIntegrationApi(api_client).update_status_check_details(queued_check_config_details=new_queued_check_config_details) - # Below is a request that includes all optional parameters - # results = ServiceDeskIntegrationApi(api_client).update_status_check_details(new_queued_check_config_details) - print("The response of ServiceDeskIntegrationApi->update_status_check_details:\n") - pprint(results) - except Exception as e: - print("Exception when calling ServiceDeskIntegrationApi->update_status_check_details: %s\n" % e) + try: + # Update the time check configuration + new_queued_check_config_details = QueuedCheckConfigDetails.from_json(queued_check_config_details) + results = ServiceDeskIntegrationApi(api_client).update_status_check_details(queued_check_config_details=new_queued_check_config_details) + # Below is a request that includes all optional parameters + # results = ServiceDeskIntegrationApi(api_client).update_status_check_details(new_queued_check_config_details) + print("The response of ServiceDeskIntegrationApi->update_status_check_details:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling ServiceDeskIntegrationApi->update_status_check_details: %s\n" % e) - path: /sod-policies method: POST xCodeSample: @@ -8814,13 +8547,12 @@ from sailpoint.v3.api.sod_policies_api import SODPoliciesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.sod_policy import SodPolicy - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - sod_policy = '''{ + sod_policy = '''{ "conflictingAccessCriteria" : { "leftCriteria" : { "name" : "money-in", @@ -8876,16 +8608,16 @@ "state" : "ENFORCED", "externalPolicyReference" : "XYZ policy" }''' # SodPolicy | - try: - # Create SOD policy - new_sod_policy = SodPolicy.from_json(sod_policy) - results = SODPoliciesApi(api_client).create_sod_policy(sod_policy=new_sod_policy) - # Below is a request that includes all optional parameters - # results = SODPoliciesApi(api_client).create_sod_policy(new_sod_policy) - print("The response of SODPoliciesApi->create_sod_policy:\n") - pprint(results) - except Exception as e: - print("Exception when calling SODPoliciesApi->create_sod_policy: %s\n" % e) + try: + # Create SOD policy + new_sod_policy = SodPolicy.from_json(sod_policy) + results = SODPoliciesApi(api_client).create_sod_policy(sod_policy=new_sod_policy) + # Below is a request that includes all optional parameters + # results = SODPoliciesApi(api_client).create_sod_policy(new_sod_policy) + print("The response of SODPoliciesApi->create_sod_policy:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SODPoliciesApi->create_sod_policy: %s\n" % e) - path: /sod-policies/{id} method: DELETE xCodeSample: @@ -8894,22 +8626,21 @@ source: | from sailpoint.v3.api.sod_policies_api import SODPoliciesApi from sailpoint.v3.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f943-47e9-4562-b5bb-8424a56397d8' # str | The ID of the SOD Policy to delete. # str | The ID of the SOD Policy to delete. - logical = True # bool | Indicates whether this is a soft delete (logical true) or a hard delete. Soft delete marks the policy as deleted and just save it with this status. It could be fully deleted or recovered further. Hard delete vise versa permanently delete SOD request during this call. (optional) (default to True) # bool | Indicates whether this is a soft delete (logical true) or a hard delete. Soft delete marks the policy as deleted and just save it with this status. It could be fully deleted or recovered further. Hard delete vise versa permanently delete SOD request during this call. (optional) (default to True) - try: - # Delete SOD policy by ID - - SODPoliciesApi(api_client).delete_sod_policy(id=id) - # Below is a request that includes all optional parameters - # SODPoliciesApi(api_client).delete_sod_policy(id, logical) - except Exception as e: - print("Exception when calling SODPoliciesApi->delete_sod_policy: %s\n" % e) + id = 'ef38f943-47e9-4562-b5bb-8424a56397d8' # str | The ID of the SOD Policy to delete. # str | The ID of the SOD Policy to delete. + logical = True # bool | Indicates whether this is a soft delete (logical true) or a hard delete. Soft delete marks the policy as deleted and just save it with this status. It could be fully deleted or recovered further. Hard delete vise versa permanently delete SOD request during this call. (optional) (default to True) # bool | Indicates whether this is a soft delete (logical true) or a hard delete. Soft delete marks the policy as deleted and just save it with this status. It could be fully deleted or recovered further. Hard delete vise versa permanently delete SOD request during this call. (optional) (default to True) + try: + # Delete SOD policy by ID + + SODPoliciesApi(api_client).delete_sod_policy(id=id) + # Below is a request that includes all optional parameters + # SODPoliciesApi(api_client).delete_sod_policy(id, logical) + except Exception as e: + print("Exception when calling SODPoliciesApi->delete_sod_policy: %s\n" % e) - path: /sod-policies/{id}/schedule method: DELETE xCodeSample: @@ -8918,21 +8649,20 @@ source: | from sailpoint.v3.api.sod_policies_api import SODPoliciesApi from sailpoint.v3.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f943-47e9-4562-b5bb-8424a56397d8' # str | The ID of the SOD policy the schedule must be deleted for. # str | The ID of the SOD policy the schedule must be deleted for. - try: - # Delete SOD policy schedule - - SODPoliciesApi(api_client).delete_sod_policy_schedule(id=id) - # Below is a request that includes all optional parameters - # SODPoliciesApi(api_client).delete_sod_policy_schedule(id) - except Exception as e: - print("Exception when calling SODPoliciesApi->delete_sod_policy_schedule: %s\n" % e) + id = 'ef38f943-47e9-4562-b5bb-8424a56397d8' # str | The ID of the SOD policy the schedule must be deleted for. # str | The ID of the SOD policy the schedule must be deleted for. + try: + # Delete SOD policy schedule + + SODPoliciesApi(api_client).delete_sod_policy_schedule(id=id) + # Below is a request that includes all optional parameters + # SODPoliciesApi(api_client).delete_sod_policy_schedule(id) + except Exception as e: + print("Exception when calling SODPoliciesApi->delete_sod_policy_schedule: %s\n" % e) - path: /sod-violation-report/{reportResultId}/download/{fileName} method: GET xCodeSample: @@ -8941,24 +8671,23 @@ source: | from sailpoint.v3.api.sod_policies_api import SODPoliciesApi from sailpoint.v3.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - report_result_id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the report reference to download. # str | The ID of the report reference to download. - file_name = 'custom-name' # str | Custom Name for the file. # str | Custom Name for the file. - try: - # Download custom violation report - - results = SODPoliciesApi(api_client).get_custom_violation_report(report_result_id=report_result_id, file_name=file_name) - # Below is a request that includes all optional parameters - # results = SODPoliciesApi(api_client).get_custom_violation_report(report_result_id, file_name) - print("The response of SODPoliciesApi->get_custom_violation_report:\n") - pprint(results) - except Exception as e: - print("Exception when calling SODPoliciesApi->get_custom_violation_report: %s\n" % e) + report_result_id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the report reference to download. # str | The ID of the report reference to download. + file_name = 'custom-name' # str | Custom Name for the file. # str | Custom Name for the file. + try: + # Download custom violation report + + results = SODPoliciesApi(api_client).get_custom_violation_report(report_result_id=report_result_id, file_name=file_name) + # Below is a request that includes all optional parameters + # results = SODPoliciesApi(api_client).get_custom_violation_report(report_result_id, file_name) + print("The response of SODPoliciesApi->get_custom_violation_report:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SODPoliciesApi->get_custom_violation_report: %s\n" % e) - path: /sod-violation-report/{reportResultId}/download method: GET xCodeSample: @@ -8967,23 +8696,22 @@ source: | from sailpoint.v3.api.sod_policies_api import SODPoliciesApi from sailpoint.v3.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - report_result_id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the report reference to download. # str | The ID of the report reference to download. - try: - # Download violation report - - results = SODPoliciesApi(api_client).get_default_violation_report(report_result_id=report_result_id) - # Below is a request that includes all optional parameters - # results = SODPoliciesApi(api_client).get_default_violation_report(report_result_id) - print("The response of SODPoliciesApi->get_default_violation_report:\n") - pprint(results) - except Exception as e: - print("Exception when calling SODPoliciesApi->get_default_violation_report: %s\n" % e) + report_result_id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the report reference to download. # str | The ID of the report reference to download. + try: + # Download violation report + + results = SODPoliciesApi(api_client).get_default_violation_report(report_result_id=report_result_id) + # Below is a request that includes all optional parameters + # results = SODPoliciesApi(api_client).get_default_violation_report(report_result_id) + print("The response of SODPoliciesApi->get_default_violation_report:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SODPoliciesApi->get_default_violation_report: %s\n" % e) - path: /sod-violation-report method: GET xCodeSample: @@ -8993,22 +8721,21 @@ from sailpoint.v3.api.sod_policies_api import SODPoliciesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.report_result_reference import ReportResultReference - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - try: - # Get multi-report run task status - - results = SODPoliciesApi(api_client).get_sod_all_report_run_status() - # Below is a request that includes all optional parameters - # results = SODPoliciesApi(api_client).get_sod_all_report_run_status() - print("The response of SODPoliciesApi->get_sod_all_report_run_status:\n") - pprint(results) - except Exception as e: - print("Exception when calling SODPoliciesApi->get_sod_all_report_run_status: %s\n" % e) + try: + # Get multi-report run task status + + results = SODPoliciesApi(api_client).get_sod_all_report_run_status() + # Below is a request that includes all optional parameters + # results = SODPoliciesApi(api_client).get_sod_all_report_run_status() + print("The response of SODPoliciesApi->get_sod_all_report_run_status:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SODPoliciesApi->get_sod_all_report_run_status: %s\n" % e) - path: /sod-policies/{id} method: GET xCodeSample: @@ -9018,23 +8745,22 @@ from sailpoint.v3.api.sod_policies_api import SODPoliciesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.sod_policy import SodPolicy - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f943-47e9-4562-b5bb-8424a56397d8' # str | The ID of the SOD Policy to retrieve. # str | The ID of the SOD Policy to retrieve. - try: - # Get SOD policy by ID - - results = SODPoliciesApi(api_client).get_sod_policy(id=id) - # Below is a request that includes all optional parameters - # results = SODPoliciesApi(api_client).get_sod_policy(id) - print("The response of SODPoliciesApi->get_sod_policy:\n") - pprint(results) - except Exception as e: - print("Exception when calling SODPoliciesApi->get_sod_policy: %s\n" % e) + id = 'ef38f943-47e9-4562-b5bb-8424a56397d8' # str | The ID of the SOD Policy to retrieve. # str | The ID of the SOD Policy to retrieve. + try: + # Get SOD policy by ID + + results = SODPoliciesApi(api_client).get_sod_policy(id=id) + # Below is a request that includes all optional parameters + # results = SODPoliciesApi(api_client).get_sod_policy(id) + print("The response of SODPoliciesApi->get_sod_policy:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SODPoliciesApi->get_sod_policy: %s\n" % e) - path: /sod-policies/{id}/schedule method: GET xCodeSample: @@ -9044,23 +8770,22 @@ from sailpoint.v3.api.sod_policies_api import SODPoliciesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.sod_policy_schedule import SodPolicySchedule - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f943-47e9-4562-b5bb-8424a56397d8' # str | The ID of the SOD policy schedule to retrieve. # str | The ID of the SOD policy schedule to retrieve. - try: - # Get SOD policy schedule - - results = SODPoliciesApi(api_client).get_sod_policy_schedule(id=id) - # Below is a request that includes all optional parameters - # results = SODPoliciesApi(api_client).get_sod_policy_schedule(id) - print("The response of SODPoliciesApi->get_sod_policy_schedule:\n") - pprint(results) - except Exception as e: - print("Exception when calling SODPoliciesApi->get_sod_policy_schedule: %s\n" % e) + id = 'ef38f943-47e9-4562-b5bb-8424a56397d8' # str | The ID of the SOD policy schedule to retrieve. # str | The ID of the SOD policy schedule to retrieve. + try: + # Get SOD policy schedule + + results = SODPoliciesApi(api_client).get_sod_policy_schedule(id=id) + # Below is a request that includes all optional parameters + # results = SODPoliciesApi(api_client).get_sod_policy_schedule(id) + print("The response of SODPoliciesApi->get_sod_policy_schedule:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SODPoliciesApi->get_sod_policy_schedule: %s\n" % e) - path: /sod-policies/sod-violation-report-status/{reportResultId} method: GET xCodeSample: @@ -9070,23 +8795,22 @@ from sailpoint.v3.api.sod_policies_api import SODPoliciesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.report_result_reference import ReportResultReference - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - report_result_id = '2e8d8180-24bc-4d21-91c6-7affdb473b0d' # str | The ID of the report reference to retrieve. # str | The ID of the report reference to retrieve. - try: - # Get violation report run status - - results = SODPoliciesApi(api_client).get_sod_violation_report_run_status(report_result_id=report_result_id) - # Below is a request that includes all optional parameters - # results = SODPoliciesApi(api_client).get_sod_violation_report_run_status(report_result_id) - print("The response of SODPoliciesApi->get_sod_violation_report_run_status:\n") - pprint(results) - except Exception as e: - print("Exception when calling SODPoliciesApi->get_sod_violation_report_run_status: %s\n" % e) + report_result_id = '2e8d8180-24bc-4d21-91c6-7affdb473b0d' # str | The ID of the report reference to retrieve. # str | The ID of the report reference to retrieve. + try: + # Get violation report run status + + results = SODPoliciesApi(api_client).get_sod_violation_report_run_status(report_result_id=report_result_id) + # Below is a request that includes all optional parameters + # results = SODPoliciesApi(api_client).get_sod_violation_report_run_status(report_result_id) + print("The response of SODPoliciesApi->get_sod_violation_report_run_status:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SODPoliciesApi->get_sod_violation_report_run_status: %s\n" % e) - path: /sod-policies/{id}/violation-report method: GET xCodeSample: @@ -9096,23 +8820,22 @@ from sailpoint.v3.api.sod_policies_api import SODPoliciesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.report_result_reference import ReportResultReference - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f943-47e9-4562-b5bb-8424a56397d8' # str | The ID of the violation report to retrieve status for. # str | The ID of the violation report to retrieve status for. - try: - # Get SOD violation report status - - results = SODPoliciesApi(api_client).get_sod_violation_report_status(id=id) - # Below is a request that includes all optional parameters - # results = SODPoliciesApi(api_client).get_sod_violation_report_status(id) - print("The response of SODPoliciesApi->get_sod_violation_report_status:\n") - pprint(results) - except Exception as e: - print("Exception when calling SODPoliciesApi->get_sod_violation_report_status: %s\n" % e) + id = 'ef38f943-47e9-4562-b5bb-8424a56397d8' # str | The ID of the violation report to retrieve status for. # str | The ID of the violation report to retrieve status for. + try: + # Get SOD violation report status + + results = SODPoliciesApi(api_client).get_sod_violation_report_status(id=id) + # Below is a request that includes all optional parameters + # results = SODPoliciesApi(api_client).get_sod_violation_report_status(id) + print("The response of SODPoliciesApi->get_sod_violation_report_status:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SODPoliciesApi->get_sod_violation_report_status: %s\n" % e) - path: /sod-policies method: GET xCodeSample: @@ -9122,27 +8845,26 @@ from sailpoint.v3.api.sod_policies_api import SODPoliciesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.sod_policy import SodPolicy - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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 = 'id eq \"bc693f07e7b645539626c25954c58554\"' # 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* **state**: *eq, in* (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* **state**: *eq, in* (optional) - sorters = 'id,name' # 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: **id, name, created, modified, description** (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: **id, name, created, modified, description** (optional) - try: - # List SOD policies - - results = SODPoliciesApi(api_client).list_sod_policies() - # Below is a request that includes all optional parameters - # results = SODPoliciesApi(api_client).list_sod_policies(limit, offset, count, filters, sorters) - print("The response of SODPoliciesApi->list_sod_policies:\n") - pprint(results) - except Exception as e: - print("Exception when calling SODPoliciesApi->list_sod_policies: %s\n" % e) + 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 = 'id eq \"bc693f07e7b645539626c25954c58554\"' # 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* **state**: *eq, in* (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* **state**: *eq, in* (optional) + sorters = 'id,name' # 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: **id, name, created, modified, description** (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: **id, name, created, modified, description** (optional) + try: + # List SOD policies + + results = SODPoliciesApi(api_client).list_sod_policies() + # Below is a request that includes all optional parameters + # results = SODPoliciesApi(api_client).list_sod_policies(limit, offset, count, filters, sorters) + print("The response of SODPoliciesApi->list_sod_policies:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SODPoliciesApi->list_sod_policies: %s\n" % e) - path: /sod-policies/{id} method: PATCH xCodeSample: @@ -9153,24 +8875,23 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.json_patch_operation import JsonPatchOperation from sailpoint.v3.models.sod_policy import SodPolicy - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c918083-5d19-1a86-015d-28455b4a2329' # str | The ID of the SOD policy being modified. # str | The ID of the SOD policy being modified. - json_patch_operation = '''[{op=replace, path=/description, value=Modified description}, {op=replace, path=/conflictingAccessCriteria/leftCriteria/name, value=money-in-modified}, {op=replace, path=/conflictingAccessCriteria/rightCriteria, value={name=money-out-modified, criteriaList=[{type=ENTITLEMENT, id=2c918087682f9a86016839c0509c1ab2}]}}]''' # List[JsonPatchOperation] | A list of SOD Policy update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * description * ownerRef * externalPolicyReference * compensatingControls * correctionAdvice * state * tags * violationOwnerAssignmentConfig * scheduled * conflictingAccessCriteria - try: - # Patch SOD policy by ID - new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) - results = SODPoliciesApi(api_client).patch_sod_policy(id=id, json_patch_operation=new_json_patch_operation) - # Below is a request that includes all optional parameters - # results = SODPoliciesApi(api_client).patch_sod_policy(id, new_json_patch_operation) - print("The response of SODPoliciesApi->patch_sod_policy:\n") - pprint(results) - except Exception as e: - print("Exception when calling SODPoliciesApi->patch_sod_policy: %s\n" % e) + id = '2c918083-5d19-1a86-015d-28455b4a2329' # str | The ID of the SOD policy being modified. # str | The ID of the SOD policy being modified. + json_patch_operation = '''[{op=replace, path=/description, value=Modified description}, {op=replace, path=/conflictingAccessCriteria/leftCriteria/name, value=money-in-modified}, {op=replace, path=/conflictingAccessCriteria/rightCriteria, value={name=money-out-modified, criteriaList=[{type=ENTITLEMENT, id=2c918087682f9a86016839c0509c1ab2}]}}]''' # List[JsonPatchOperation] | A list of SOD Policy update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * description * ownerRef * externalPolicyReference * compensatingControls * correctionAdvice * state * tags * violationOwnerAssignmentConfig * scheduled * conflictingAccessCriteria + try: + # Patch SOD policy by ID + new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) + results = SODPoliciesApi(api_client).patch_sod_policy(id=id, json_patch_operation=new_json_patch_operation) + # Below is a request that includes all optional parameters + # results = SODPoliciesApi(api_client).patch_sod_policy(id, new_json_patch_operation) + print("The response of SODPoliciesApi->patch_sod_policy:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SODPoliciesApi->patch_sod_policy: %s\n" % e) - path: /sod-policies/{id}/schedule method: PUT xCodeSample: @@ -9180,14 +8901,13 @@ from sailpoint.v3.api.sod_policies_api import SODPoliciesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.sod_policy_schedule import SodPolicySchedule - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f943-47e9-4562-b5bb-8424a56397d8' # str | The ID of the SOD policy to update its schedule. # str | The ID of the SOD policy to update its schedule. - sod_policy_schedule = '''{ + id = 'ef38f943-47e9-4562-b5bb-8424a56397d8' # str | The ID of the SOD policy to update its schedule. # str | The ID of the SOD policy to update its schedule. + sod_policy_schedule = '''{ "schedule" : { "hours" : { "values" : [ "MON", "WED" ], @@ -9225,16 +8945,16 @@ "description" : "Schedule for policy xyz", "emailEmptyResults" : false }''' # SodPolicySchedule | - try: - # Update SOD Policy schedule - new_sod_policy_schedule = SodPolicySchedule.from_json(sod_policy_schedule) - results = SODPoliciesApi(api_client).put_policy_schedule(id=id, sod_policy_schedule=new_sod_policy_schedule) - # Below is a request that includes all optional parameters - # results = SODPoliciesApi(api_client).put_policy_schedule(id, new_sod_policy_schedule) - print("The response of SODPoliciesApi->put_policy_schedule:\n") - pprint(results) - except Exception as e: - print("Exception when calling SODPoliciesApi->put_policy_schedule: %s\n" % e) + try: + # Update SOD Policy schedule + new_sod_policy_schedule = SodPolicySchedule.from_json(sod_policy_schedule) + results = SODPoliciesApi(api_client).put_policy_schedule(id=id, sod_policy_schedule=new_sod_policy_schedule) + # Below is a request that includes all optional parameters + # results = SODPoliciesApi(api_client).put_policy_schedule(id, new_sod_policy_schedule) + print("The response of SODPoliciesApi->put_policy_schedule:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SODPoliciesApi->put_policy_schedule: %s\n" % e) - path: /sod-policies/{id} method: PUT xCodeSample: @@ -9244,14 +8964,13 @@ from sailpoint.v3.api.sod_policies_api import SODPoliciesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.sod_policy import SodPolicy - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f943-47e9-4562-b5bb-8424a56397d8' # str | The ID of the SOD policy to update. # str | The ID of the SOD policy to update. - sod_policy = '''{ + id = 'ef38f943-47e9-4562-b5bb-8424a56397d8' # str | The ID of the SOD policy to update. # str | The ID of the SOD policy to update. + sod_policy = '''{ "conflictingAccessCriteria" : { "leftCriteria" : { "name" : "money-in", @@ -9307,16 +9026,16 @@ "state" : "ENFORCED", "externalPolicyReference" : "XYZ policy" }''' # SodPolicy | - try: - # Update SOD policy by ID - new_sod_policy = SodPolicy.from_json(sod_policy) - results = SODPoliciesApi(api_client).put_sod_policy(id=id, sod_policy=new_sod_policy) - # Below is a request that includes all optional parameters - # results = SODPoliciesApi(api_client).put_sod_policy(id, new_sod_policy) - print("The response of SODPoliciesApi->put_sod_policy:\n") - pprint(results) - except Exception as e: - print("Exception when calling SODPoliciesApi->put_sod_policy: %s\n" % e) + try: + # Update SOD policy by ID + new_sod_policy = SodPolicy.from_json(sod_policy) + results = SODPoliciesApi(api_client).put_sod_policy(id=id, sod_policy=new_sod_policy) + # Below is a request that includes all optional parameters + # results = SODPoliciesApi(api_client).put_sod_policy(id, new_sod_policy) + print("The response of SODPoliciesApi->put_sod_policy:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SODPoliciesApi->put_sod_policy: %s\n" % e) - path: /sod-policies/{id}/evaluate method: POST xCodeSample: @@ -9326,23 +9045,22 @@ from sailpoint.v3.api.sod_policies_api import SODPoliciesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.report_result_reference import ReportResultReference - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f943-47e9-4562-b5bb-8424a56397d8' # str | The SOD policy ID to run. # str | The SOD policy ID to run. - try: - # Evaluate one policy by ID - - results = SODPoliciesApi(api_client).start_evaluate_sod_policy(id=id) - # Below is a request that includes all optional parameters - # results = SODPoliciesApi(api_client).start_evaluate_sod_policy(id) - print("The response of SODPoliciesApi->start_evaluate_sod_policy:\n") - pprint(results) - except Exception as e: - print("Exception when calling SODPoliciesApi->start_evaluate_sod_policy: %s\n" % e) + id = 'ef38f943-47e9-4562-b5bb-8424a56397d8' # str | The SOD policy ID to run. # str | The SOD policy ID to run. + try: + # Evaluate one policy by ID + + results = SODPoliciesApi(api_client).start_evaluate_sod_policy(id=id) + # Below is a request that includes all optional parameters + # results = SODPoliciesApi(api_client).start_evaluate_sod_policy(id) + print("The response of SODPoliciesApi->start_evaluate_sod_policy:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SODPoliciesApi->start_evaluate_sod_policy: %s\n" % e) - path: /sod-violation-report/run method: POST xCodeSample: @@ -9353,25 +9071,24 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.multi_policy_request import MultiPolicyRequest from sailpoint.v3.models.report_result_reference import ReportResultReference - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - multi_policy_request = '''{ + multi_policy_request = '''{ "filteredPolicyList" : [ "[b868cd40-ffa4-4337-9c07-1a51846cfa94, 63a07a7b-39a4-48aa-956d-50c827deba2a]", "[b868cd40-ffa4-4337-9c07-1a51846cfa94, 63a07a7b-39a4-48aa-956d-50c827deba2a]" ] }''' # MultiPolicyRequest | (optional) - try: - # Runs all policies for org - - results = SODPoliciesApi(api_client).start_sod_all_policies_for_org() - # Below is a request that includes all optional parameters - # results = SODPoliciesApi(api_client).start_sod_all_policies_for_org(new_multi_policy_request) - print("The response of SODPoliciesApi->start_sod_all_policies_for_org:\n") - pprint(results) - except Exception as e: - print("Exception when calling SODPoliciesApi->start_sod_all_policies_for_org: %s\n" % e) + try: + # Runs all policies for org + + results = SODPoliciesApi(api_client).start_sod_all_policies_for_org() + # Below is a request that includes all optional parameters + # results = SODPoliciesApi(api_client).start_sod_all_policies_for_org(new_multi_policy_request) + print("The response of SODPoliciesApi->start_sod_all_policies_for_org:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SODPoliciesApi->start_sod_all_policies_for_org: %s\n" % e) - path: /sod-policies/{id}/violation-report/run method: POST xCodeSample: @@ -9381,23 +9098,22 @@ from sailpoint.v3.api.sod_policies_api import SODPoliciesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.report_result_reference import ReportResultReference - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f943-47e9-4562-b5bb-8424a56397d8' # str | The SOD policy ID to run. # str | The SOD policy ID to run. - try: - # Runs SOD policy violation report - - results = SODPoliciesApi(api_client).start_sod_policy(id=id) - # Below is a request that includes all optional parameters - # results = SODPoliciesApi(api_client).start_sod_policy(id) - print("The response of SODPoliciesApi->start_sod_policy:\n") - pprint(results) - except Exception as e: - print("Exception when calling SODPoliciesApi->start_sod_policy: %s\n" % e) + id = 'ef38f943-47e9-4562-b5bb-8424a56397d8' # str | The SOD policy ID to run. # str | The SOD policy ID to run. + try: + # Runs SOD policy violation report + + results = SODPoliciesApi(api_client).start_sod_policy(id=id) + # Below is a request that includes all optional parameters + # results = SODPoliciesApi(api_client).start_sod_policy(id) + print("The response of SODPoliciesApi->start_sod_policy:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SODPoliciesApi->start_sod_policy: %s\n" % e) - path: /sod-violations/predict method: POST xCodeSample: @@ -9408,13 +9124,12 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.identity_with_new_access import IdentityWithNewAccess from sailpoint.v3.models.violation_prediction import ViolationPrediction - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - identity_with_new_access = '''{ + identity_with_new_access = '''{ "identityId" : "2c91808568c529c60168cca6f90c1313", "accessRefs" : [ { "type" : "ENTITLEMENT", @@ -9426,16 +9141,16 @@ "name" : "CN=Information Technology,OU=test,OU=test-service,DC=TestAD,DC=local" } ] }''' # IdentityWithNewAccess | - try: - # Predict SOD violations for identity. - new_identity_with_new_access = IdentityWithNewAccess.from_json(identity_with_new_access) - results = SODViolationsApi(api_client).start_predict_sod_violations(identity_with_new_access=new_identity_with_new_access) - # Below is a request that includes all optional parameters - # results = SODViolationsApi(api_client).start_predict_sod_violations(new_identity_with_new_access) - print("The response of SODViolationsApi->start_predict_sod_violations:\n") - pprint(results) - except Exception as e: - print("Exception when calling SODViolationsApi->start_predict_sod_violations: %s\n" % e) + try: + # Predict SOD violations for identity. + new_identity_with_new_access = IdentityWithNewAccess.from_json(identity_with_new_access) + results = SODViolationsApi(api_client).start_predict_sod_violations(identity_with_new_access=new_identity_with_new_access) + # Below is a request that includes all optional parameters + # results = SODViolationsApi(api_client).start_predict_sod_violations(new_identity_with_new_access) + print("The response of SODViolationsApi->start_predict_sod_violations:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SODViolationsApi->start_predict_sod_violations: %s\n" % e) - path: /sod-violations/check method: POST xCodeSample: @@ -9446,23 +9161,22 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.identity_with_new_access1 import IdentityWithNewAccess1 from sailpoint.v3.models.sod_violation_check import SodViolationCheck - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - identity_with_new_access1 = '''{identityId=2c91808568c529c60168cca6f90c1313, accessRefs=[{type=ENTITLEMENT, id=2c918087682f9a86016839c050861ab1, name=CN=Information Access,OU=test,OU=test-service,DC=TestAD,DC=local}, {type=ENTITLEMENT, id=2c918087682f9a86016839c0509c1ab2, name=CN=Information Technology,OU=test,OU=test-service,DC=TestAD,DC=local}], clientMetadata={additionalProp1=string, additionalProp2=string, additionalProp3=string}}''' # IdentityWithNewAccess1 | - try: - # Check SOD violations - new_identity_with_new_access1 = IdentityWithNewAccess1.from_json(identity_with_new_access1) - results = SODViolationsApi(api_client).start_violation_check(identity_with_new_access1=new_identity_with_new_access1) - # Below is a request that includes all optional parameters - # results = SODViolationsApi(api_client).start_violation_check(new_identity_with_new_access1) - print("The response of SODViolationsApi->start_violation_check:\n") - pprint(results) - except Exception as e: - print("Exception when calling SODViolationsApi->start_violation_check: %s\n" % e) + identity_with_new_access1 = '''{identityId=2c91808568c529c60168cca6f90c1313, accessRefs=[{type=ENTITLEMENT, id=2c918087682f9a86016839c050861ab1, name=CN=Information Access,OU=test,OU=test-service,DC=TestAD,DC=local}, {type=ENTITLEMENT, id=2c918087682f9a86016839c0509c1ab2, name=CN=Information Technology,OU=test,OU=test-service,DC=TestAD,DC=local}], clientMetadata={additionalProp1=string, additionalProp2=string, additionalProp3=string}}''' # IdentityWithNewAccess1 | + try: + # Check SOD violations + new_identity_with_new_access1 = IdentityWithNewAccess1.from_json(identity_with_new_access1) + results = SODViolationsApi(api_client).start_violation_check(identity_with_new_access1=new_identity_with_new_access1) + # Below is a request that includes all optional parameters + # results = SODViolationsApi(api_client).start_violation_check(new_identity_with_new_access1) + print("The response of SODViolationsApi->start_violation_check:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SODViolationsApi->start_violation_check: %s\n" % e) - path: /sources/{sourceId}/provisioning-policies method: POST xCodeSample: @@ -9472,14 +9186,13 @@ from sailpoint.v3.api.sources_api import SourcesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.provisioning_policy_dto import ProvisioningPolicyDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source id # str | The Source id - provisioning_policy_dto = '''{ + source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source id # str | The Source id + provisioning_policy_dto = '''{ "name" : "example provisioning policy for inactive identities", "description" : "this provisioning policy creates access based on an identity going inactive", "fields" : [ { @@ -9519,16 +9232,16 @@ } ], "usageType" : "CREATE" }''' # ProvisioningPolicyDto | - try: - # Create Provisioning Policy - new_provisioning_policy_dto = ProvisioningPolicyDto.from_json(provisioning_policy_dto) - results = SourcesApi(api_client).create_provisioning_policy(source_id=source_id, provisioning_policy_dto=new_provisioning_policy_dto) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).create_provisioning_policy(source_id, new_provisioning_policy_dto) - print("The response of SourcesApi->create_provisioning_policy:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->create_provisioning_policy: %s\n" % e) + try: + # Create Provisioning Policy + new_provisioning_policy_dto = ProvisioningPolicyDto.from_json(provisioning_policy_dto) + results = SourcesApi(api_client).create_provisioning_policy(source_id=source_id, provisioning_policy_dto=new_provisioning_policy_dto) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).create_provisioning_policy(source_id, new_provisioning_policy_dto) + print("The response of SourcesApi->create_provisioning_policy:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->create_provisioning_policy: %s\n" % e) - path: /sources method: POST xCodeSample: @@ -9538,13 +9251,12 @@ from sailpoint.v3.api.sources_api import SourcesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.source import Source - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source = '''{ + source = '''{ "cluster" : { "name" : "Corporate Cluster", "id" : "2c9180866166b5b0016167c32ef31a66", @@ -9627,17 +9339,17 @@ "status" : "SOURCE_STATE_HEALTHY", "since" : "2021-09-28T15:48:29.3801666300Z" }''' # Source | - provision_as_csv = false # bool | If this parameter is `true`, it configures the source as a Delimited File (CSV) source. Setting this to `true` will automatically set the `type` of the source to `DelimitedFile`. You must use this query parameter to create a Delimited File source as you would in the UI. If you don't set this query parameter and you attempt to set the `type` attribute directly, the request won't correctly generate the source. (optional) # bool | If this parameter is `true`, it configures the source as a Delimited File (CSV) source. Setting this to `true` will automatically set the `type` of the source to `DelimitedFile`. You must use this query parameter to create a Delimited File source as you would in the UI. If you don't set this query parameter and you attempt to set the `type` attribute directly, the request won't correctly generate the source. (optional) - try: - # Creates a source in IdentityNow. - new_source = Source.from_json(source) - results = SourcesApi(api_client).create_source(source=new_source) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).create_source(new_source, provision_as_csv) - print("The response of SourcesApi->create_source:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->create_source: %s\n" % e) + provision_as_csv = false # bool | If this parameter is `true`, it configures the source as a Delimited File (CSV) source. Setting this to `true` will automatically set the `type` of the source to `DelimitedFile`. You must use this query parameter to create a Delimited File source as you would in the UI. If you don't set this query parameter and you attempt to set the `type` attribute directly, the request won't correctly generate the source. (optional) # bool | If this parameter is `true`, it configures the source as a Delimited File (CSV) source. Setting this to `true` will automatically set the `type` of the source to `DelimitedFile`. You must use this query parameter to create a Delimited File source as you would in the UI. If you don't set this query parameter and you attempt to set the `type` attribute directly, the request won't correctly generate the source. (optional) + try: + # Creates a source in IdentityNow. + new_source = Source.from_json(source) + results = SourcesApi(api_client).create_source(source=new_source) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).create_source(new_source, provision_as_csv) + print("The response of SourcesApi->create_source:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->create_source: %s\n" % e) - path: /sources/{sourceId}/schemas method: POST xCodeSample: @@ -9647,24 +9359,23 @@ from sailpoint.v3.api.sources_api import SourcesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.model_schema import ModelSchema - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '2c9180835d191a86015d28455b4a2329' # str | Source ID. # str | Source ID. - model_schema = '''sailpoint.v3.ModelSchema()''' # ModelSchema | - try: - # Create Schema on Source - new_model_schema = ModelSchema.from_json(model_schema) - results = SourcesApi(api_client).create_source_schema(source_id=source_id, model_schema=new_model_schema) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).create_source_schema(source_id, new_model_schema) - print("The response of SourcesApi->create_source_schema:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->create_source_schema: %s\n" % e) + source_id = '2c9180835d191a86015d28455b4a2329' # str | Source ID. # str | Source ID. + model_schema = '''sailpoint.v3.ModelSchema()''' # ModelSchema | + try: + # Create Schema on Source + new_model_schema = ModelSchema.from_json(model_schema) + results = SourcesApi(api_client).create_source_schema(source_id=source_id, model_schema=new_model_schema) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).create_source_schema(source_id, new_model_schema) + print("The response of SourcesApi->create_source_schema:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->create_source_schema: %s\n" % e) - path: /sources/{sourceId}/provisioning-policies/{usageType} method: DELETE xCodeSample: @@ -9674,22 +9385,21 @@ from sailpoint.v3.api.sources_api import SourcesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.usage_type import UsageType - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source ID. # str | The Source ID. - usage_type = sailpoint.v3.UsageType() # UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. # UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. - try: - # Delete Provisioning Policy by UsageType - - SourcesApi(api_client).delete_provisioning_policy(source_id=source_id, usage_type=usage_type) - # Below is a request that includes all optional parameters - # SourcesApi(api_client).delete_provisioning_policy(source_id, usage_type) - except Exception as e: - print("Exception when calling SourcesApi->delete_provisioning_policy: %s\n" % e) + source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source ID. # str | The Source ID. + usage_type = sailpoint.v3.UsageType() # UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. # UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. + try: + # Delete Provisioning Policy by UsageType + + SourcesApi(api_client).delete_provisioning_policy(source_id=source_id, usage_type=usage_type) + # Below is a request that includes all optional parameters + # SourcesApi(api_client).delete_provisioning_policy(source_id, usage_type) + except Exception as e: + print("Exception when calling SourcesApi->delete_provisioning_policy: %s\n" % e) - path: /sources/{id} method: DELETE xCodeSample: @@ -9699,23 +9409,22 @@ from sailpoint.v3.api.sources_api import SourcesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.delete_source202_response import DeleteSource202Response - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c9180835d191a86015d28455b4a2329' # str | Source ID. # str | Source ID. - try: - # Delete Source by ID - - results = SourcesApi(api_client).delete_source(id=id) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).delete_source(id) - print("The response of SourcesApi->delete_source:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->delete_source: %s\n" % e) + id = '2c9180835d191a86015d28455b4a2329' # str | Source ID. # str | Source ID. + try: + # Delete Source by ID + + results = SourcesApi(api_client).delete_source(id=id) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).delete_source(id) + print("The response of SourcesApi->delete_source:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->delete_source: %s\n" % e) - path: /sources/{sourceId}/schemas/{schemaId} method: DELETE xCodeSample: @@ -9724,22 +9433,21 @@ source: | from sailpoint.v3.api.sources_api import SourcesApi from sailpoint.v3.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source id. # str | The Source id. - schema_id = '2c9180835d191a86015d28455b4a2329' # str | The Schema id. # str | The Schema id. - try: - # Delete Source Schema by ID - - SourcesApi(api_client).delete_source_schema(source_id=source_id, schema_id=schema_id) - # Below is a request that includes all optional parameters - # SourcesApi(api_client).delete_source_schema(source_id, schema_id) - except Exception as e: - print("Exception when calling SourcesApi->delete_source_schema: %s\n" % e) + source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source id. # str | The Source id. + schema_id = '2c9180835d191a86015d28455b4a2329' # str | The Schema id. # str | The Schema id. + try: + # Delete Source Schema by ID + + SourcesApi(api_client).delete_source_schema(source_id=source_id, schema_id=schema_id) + # Below is a request that includes all optional parameters + # SourcesApi(api_client).delete_source_schema(source_id, schema_id) + except Exception as e: + print("Exception when calling SourcesApi->delete_source_schema: %s\n" % e) - path: /sources/{id}/schemas/accounts method: GET xCodeSample: @@ -9748,21 +9456,20 @@ source: | from sailpoint.v3.api.sources_api import SourcesApi from sailpoint.v3.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | The Source id # str | The Source id - try: - # Downloads source accounts schema template - - SourcesApi(api_client).get_accounts_schema(id=id) - # Below is a request that includes all optional parameters - # SourcesApi(api_client).get_accounts_schema(id) - except Exception as e: - print("Exception when calling SourcesApi->get_accounts_schema: %s\n" % e) + id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | The Source id # str | The Source id + try: + # Downloads source accounts schema template + + SourcesApi(api_client).get_accounts_schema(id=id) + # Below is a request that includes all optional parameters + # SourcesApi(api_client).get_accounts_schema(id) + except Exception as e: + print("Exception when calling SourcesApi->get_accounts_schema: %s\n" % e) - path: /sources/{id}/schemas/entitlements method: GET xCodeSample: @@ -9771,22 +9478,21 @@ source: | from sailpoint.v3.api.sources_api import SourcesApi from sailpoint.v3.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | The Source id # str | The Source id - schema_name = '?schemaName=group' # str | Name of entitlement schema (optional) # str | Name of entitlement schema (optional) - try: - # Downloads source entitlements schema template - - SourcesApi(api_client).get_entitlements_schema(id=id) - # Below is a request that includes all optional parameters - # SourcesApi(api_client).get_entitlements_schema(id, schema_name) - except Exception as e: - print("Exception when calling SourcesApi->get_entitlements_schema: %s\n" % e) + id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | The Source id # str | The Source id + schema_name = '?schemaName=group' # str | Name of entitlement schema (optional) # str | Name of entitlement schema (optional) + try: + # Downloads source entitlements schema template + + SourcesApi(api_client).get_entitlements_schema(id=id) + # Below is a request that includes all optional parameters + # SourcesApi(api_client).get_entitlements_schema(id, schema_name) + except Exception as e: + print("Exception when calling SourcesApi->get_entitlements_schema: %s\n" % e) - path: /sources/{sourceId}/provisioning-policies/{usageType} method: GET xCodeSample: @@ -9797,24 +9503,23 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.provisioning_policy_dto import ProvisioningPolicyDto from sailpoint.v3.models.usage_type import UsageType - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source ID. # str | The Source ID. - usage_type = sailpoint.v3.UsageType() # UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. # UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. - try: - # Get Provisioning Policy by UsageType - - results = SourcesApi(api_client).get_provisioning_policy(source_id=source_id, usage_type=usage_type) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).get_provisioning_policy(source_id, usage_type) - print("The response of SourcesApi->get_provisioning_policy:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->get_provisioning_policy: %s\n" % e) + source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source ID. # str | The Source ID. + usage_type = sailpoint.v3.UsageType() # UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. # UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. + try: + # Get Provisioning Policy by UsageType + + results = SourcesApi(api_client).get_provisioning_policy(source_id=source_id, usage_type=usage_type) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).get_provisioning_policy(source_id, usage_type) + print("The response of SourcesApi->get_provisioning_policy:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->get_provisioning_policy: %s\n" % e) - path: /sources/{id} method: GET xCodeSample: @@ -9824,23 +9529,22 @@ from sailpoint.v3.api.sources_api import SourcesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.source import Source - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c9180835d191a86015d28455b4a2329' # str | Source ID. # str | Source ID. - try: - # Get Source by ID - - results = SourcesApi(api_client).get_source(id=id) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).get_source(id) - print("The response of SourcesApi->get_source:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->get_source: %s\n" % e) + id = '2c9180835d191a86015d28455b4a2329' # str | Source ID. # str | Source ID. + try: + # Get Source by ID + + results = SourcesApi(api_client).get_source(id=id) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).get_source(id) + print("The response of SourcesApi->get_source:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->get_source: %s\n" % e) - path: /sources/{sourceId}/connections method: GET xCodeSample: @@ -9850,23 +9554,22 @@ from sailpoint.v3.api.sources_api import SourcesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.source_connections_dto import SourceConnectionsDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '2c9180835d191a86015d28455b4a2329' # str | Source ID. # str | Source ID. - try: - # Get Source Connections by ID - - results = SourcesApi(api_client).get_source_connections(source_id=source_id) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).get_source_connections(source_id) - print("The response of SourcesApi->get_source_connections:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->get_source_connections: %s\n" % e) + source_id = '2c9180835d191a86015d28455b4a2329' # str | Source ID. # str | Source ID. + try: + # Get Source Connections by ID + + results = SourcesApi(api_client).get_source_connections(source_id=source_id) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).get_source_connections(source_id) + print("The response of SourcesApi->get_source_connections:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->get_source_connections: %s\n" % e) - path: /sources/{sourceId}/source-health method: GET xCodeSample: @@ -9876,23 +9579,22 @@ from sailpoint.v3.api.sources_api import SourcesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.source_health_dto import SourceHealthDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source id. # str | The Source id. - try: - # Fetches source health by id - - results = SourcesApi(api_client).get_source_health(source_id=source_id) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).get_source_health(source_id) - print("The response of SourcesApi->get_source_health:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->get_source_health: %s\n" % e) + source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source id. # str | The Source id. + try: + # Fetches source health by id + + results = SourcesApi(api_client).get_source_health(source_id=source_id) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).get_source_health(source_id) + print("The response of SourcesApi->get_source_health:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->get_source_health: %s\n" % e) - path: /sources/{sourceId}/schemas/{schemaId} method: GET xCodeSample: @@ -9902,24 +9604,23 @@ from sailpoint.v3.api.sources_api import SourcesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.model_schema import ModelSchema - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source id. # str | The Source id. - schema_id = '2c9180835d191a86015d28455b4a2329' # str | The Schema id. # str | The Schema id. - try: - # Get Source Schema by ID - - results = SourcesApi(api_client).get_source_schema(source_id=source_id, schema_id=schema_id) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).get_source_schema(source_id, schema_id) - print("The response of SourcesApi->get_source_schema:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->get_source_schema: %s\n" % e) + source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source id. # str | The Source id. + schema_id = '2c9180835d191a86015d28455b4a2329' # str | The Schema id. # str | The Schema id. + try: + # Get Source Schema by ID + + results = SourcesApi(api_client).get_source_schema(source_id=source_id, schema_id=schema_id) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).get_source_schema(source_id, schema_id) + print("The response of SourcesApi->get_source_schema:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->get_source_schema: %s\n" % e) - path: /sources/{sourceId}/schemas method: GET xCodeSample: @@ -9929,25 +9630,24 @@ from sailpoint.v3.api.sources_api import SourcesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.model_schema import ModelSchema - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '2c9180835d191a86015d28455b4a2329' # str | Source ID. # str | Source ID. - include_types = 'group' # str | If set to 'group', then the account schema is filtered and only group schemas are returned. Only a value of 'group' is recognized presently. Note: The API will check whether include-types is group or not, if not, it will list schemas based on include-names, if include-names is not provided, it will list all schemas. (optional) # str | If set to 'group', then the account schema is filtered and only group schemas are returned. Only a value of 'group' is recognized presently. Note: The API will check whether include-types is group or not, if not, it will list schemas based on include-names, if include-names is not provided, it will list all schemas. (optional) - include_names = 'account' # str | A comma-separated list of schema names to filter result. (optional) # str | A comma-separated list of schema names to filter result. (optional) - try: - # List Schemas on Source - - results = SourcesApi(api_client).get_source_schemas(source_id=source_id) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).get_source_schemas(source_id, include_types, include_names) - print("The response of SourcesApi->get_source_schemas:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->get_source_schemas: %s\n" % e) + source_id = '2c9180835d191a86015d28455b4a2329' # str | Source ID. # str | Source ID. + include_types = 'group' # str | If set to 'group', then the account schema is filtered and only group schemas are returned. Only a value of 'group' is recognized presently. Note: The API will check whether include-types is group or not, if not, it will list schemas based on include-names, if include-names is not provided, it will list all schemas. (optional) # str | If set to 'group', then the account schema is filtered and only group schemas are returned. Only a value of 'group' is recognized presently. Note: The API will check whether include-types is group or not, if not, it will list schemas based on include-names, if include-names is not provided, it will list all schemas. (optional) + include_names = 'account' # str | A comma-separated list of schema names to filter result. (optional) # str | A comma-separated list of schema names to filter result. (optional) + try: + # List Schemas on Source + + results = SourcesApi(api_client).get_source_schemas(source_id=source_id) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).get_source_schemas(source_id, include_types, include_names) + print("The response of SourcesApi->get_source_schemas:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->get_source_schemas: %s\n" % e) - path: /sources/{id}/schemas/accounts method: POST xCodeSample: @@ -9957,24 +9657,23 @@ from sailpoint.v3.api.sources_api import SourcesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.model_schema import ModelSchema - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | The Source id # str | The Source id - file = None # bytearray | (optional) # bytearray | (optional) - try: - # Uploads source accounts schema template - - results = SourcesApi(api_client).import_accounts_schema(id=id) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).import_accounts_schema(id, file) - print("The response of SourcesApi->import_accounts_schema:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->import_accounts_schema: %s\n" % e) + id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | The Source id # str | The Source id + file = None # bytearray | (optional) # bytearray | (optional) + try: + # Uploads source accounts schema template + + results = SourcesApi(api_client).import_accounts_schema(id=id) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).import_accounts_schema(id, file) + print("The response of SourcesApi->import_accounts_schema:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->import_accounts_schema: %s\n" % e) - path: /sources/{sourceId}/upload-connector-file method: POST xCodeSample: @@ -9984,24 +9683,23 @@ from sailpoint.v3.api.sources_api import SourcesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.source import Source - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source id. # str | The Source id. - file = None # bytearray | (optional) # bytearray | (optional) - try: - # Upload connector file to source - - results = SourcesApi(api_client).import_connector_file(source_id=source_id) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).import_connector_file(source_id, file) - print("The response of SourcesApi->import_connector_file:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->import_connector_file: %s\n" % e) + source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source id. # str | The Source id. + file = None # bytearray | (optional) # bytearray | (optional) + try: + # Upload connector file to source + + results = SourcesApi(api_client).import_connector_file(source_id=source_id) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).import_connector_file(source_id, file) + print("The response of SourcesApi->import_connector_file:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->import_connector_file: %s\n" % e) - path: /sources/{id}/schemas/entitlements method: POST xCodeSample: @@ -10011,25 +9709,24 @@ from sailpoint.v3.api.sources_api import SourcesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.model_schema import ModelSchema - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | The Source id # str | The Source id - schema_name = '?schemaName=group' # str | Name of entitlement schema (optional) # str | Name of entitlement schema (optional) - file = None # bytearray | (optional) # bytearray | (optional) - try: - # Uploads source entitlements schema template - - results = SourcesApi(api_client).import_entitlements_schema(id=id) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).import_entitlements_schema(id, schema_name, file) - print("The response of SourcesApi->import_entitlements_schema:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->import_entitlements_schema: %s\n" % e) + id = '8c190e6787aa4ed9a90bd9d5344523fb' # str | The Source id # str | The Source id + schema_name = '?schemaName=group' # str | Name of entitlement schema (optional) # str | Name of entitlement schema (optional) + file = None # bytearray | (optional) # bytearray | (optional) + try: + # Uploads source entitlements schema template + + results = SourcesApi(api_client).import_entitlements_schema(id=id) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).import_entitlements_schema(id, schema_name, file) + print("The response of SourcesApi->import_entitlements_schema:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->import_entitlements_schema: %s\n" % e) - path: /sources/{sourceId}/provisioning-policies method: GET xCodeSample: @@ -10039,23 +9736,22 @@ from sailpoint.v3.api.sources_api import SourcesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.provisioning_policy_dto import ProvisioningPolicyDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source id # str | The Source id - try: - # Lists ProvisioningPolicies - - results = SourcesApi(api_client).list_provisioning_policies(source_id=source_id) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).list_provisioning_policies(source_id) - print("The response of SourcesApi->list_provisioning_policies:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->list_provisioning_policies: %s\n" % e) + source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source id # str | The Source id + try: + # Lists ProvisioningPolicies + + results = SourcesApi(api_client).list_provisioning_policies(source_id=source_id) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).list_provisioning_policies(source_id) + print("The response of SourcesApi->list_provisioning_policies:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->list_provisioning_policies: %s\n" % e) - path: /sources method: GET xCodeSample: @@ -10065,29 +9761,28 @@ from sailpoint.v3.api.sources_api import SourcesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.source import Source - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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 \"Employees\"' # 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, ge, gt, le, lt, ne, isnull, sw* **name**: *co, eq, in, sw, ge, gt, ne, isnull* **type**: *eq, in, ge, gt, ne, isnull, sw* **owner.id**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **features**: *ca, co* **created**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **modified**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **managementWorkgroup.id**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **description**: *eq, sw* **authoritative**: *eq, ne, isnull* **healthy**: *isnull* **status**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **connectionType**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **connectorName**: *eq, ge, gt, in, ne, isnull, sw* **category**: *co, eq, ge, gt, in, le, lt, ne, 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, ge, gt, le, lt, ne, isnull, sw* **name**: *co, eq, in, sw, ge, gt, ne, isnull* **type**: *eq, in, ge, gt, ne, isnull, sw* **owner.id**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **features**: *ca, co* **created**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **modified**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **managementWorkgroup.id**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **description**: *eq, sw* **authoritative**: *eq, ne, isnull* **healthy**: *isnull* **status**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **connectionType**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **connectorName**: *eq, ge, gt, in, ne, isnull, sw* **category**: *co, eq, ge, gt, in, le, lt, ne, sw* (optional) - sorters = 'name' # 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: **type, created, modified, name, owner.name, healthy, status, id, description, owner.id, accountCorrelationConfig.id, accountCorrelationConfig.name, managerCorrelationRule.type, managerCorrelationRule.id, managerCorrelationRule.name, authoritative, managementWorkgroup.id, connectorName, connectionType** (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: **type, created, modified, name, owner.name, healthy, status, id, description, owner.id, accountCorrelationConfig.id, accountCorrelationConfig.name, managerCorrelationRule.type, managerCorrelationRule.id, managerCorrelationRule.name, authoritative, managementWorkgroup.id, connectorName, connectionType** (optional) - for_subadmin = 'name' # str | Filter the returned list of sources for the identity specified by the parameter, which is the id of an identity with the role SOURCE_SUBADMIN. By convention, the value **me** indicates the identity id of the current user. Subadmins may only view Sources which they are able to administer; all other Sources will be filtered out when this parameter is set. If the current user is a SOURCE_SUBADMIN but fails to pass a valid value for this parameter, a 403 Forbidden is returned. (optional) # str | Filter the returned list of sources for the identity specified by the parameter, which is the id of an identity with the role SOURCE_SUBADMIN. By convention, the value **me** indicates the identity id of the current user. Subadmins may only view Sources which they are able to administer; all other Sources will be filtered out when this parameter is set. If the current user is a SOURCE_SUBADMIN but fails to pass a valid value for this parameter, a 403 Forbidden is returned. (optional) - include_idn_source = False # bool | Include the IdentityNow source in the response. (optional) (default to False) # bool | Include the IdentityNow source in the response. (optional) (default to False) - try: - # Lists all sources in IdentityNow. - - results = SourcesApi(api_client).list_sources() - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).list_sources(limit, offset, count, filters, sorters, for_subadmin, include_idn_source) - print("The response of SourcesApi->list_sources:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->list_sources: %s\n" % e) + 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 \"Employees\"' # 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, ge, gt, le, lt, ne, isnull, sw* **name**: *co, eq, in, sw, ge, gt, ne, isnull* **type**: *eq, in, ge, gt, ne, isnull, sw* **owner.id**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **features**: *ca, co* **created**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **modified**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **managementWorkgroup.id**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **description**: *eq, sw* **authoritative**: *eq, ne, isnull* **healthy**: *isnull* **status**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **connectionType**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **connectorName**: *eq, ge, gt, in, ne, isnull, sw* **category**: *co, eq, ge, gt, in, le, lt, ne, 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, ge, gt, le, lt, ne, isnull, sw* **name**: *co, eq, in, sw, ge, gt, ne, isnull* **type**: *eq, in, ge, gt, ne, isnull, sw* **owner.id**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **features**: *ca, co* **created**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **modified**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **managementWorkgroup.id**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **description**: *eq, sw* **authoritative**: *eq, ne, isnull* **healthy**: *isnull* **status**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **connectionType**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **connectorName**: *eq, ge, gt, in, ne, isnull, sw* **category**: *co, eq, ge, gt, in, le, lt, ne, sw* (optional) + sorters = 'name' # 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: **type, created, modified, name, owner.name, healthy, status, id, description, owner.id, accountCorrelationConfig.id, accountCorrelationConfig.name, managerCorrelationRule.type, managerCorrelationRule.id, managerCorrelationRule.name, authoritative, managementWorkgroup.id, connectorName, connectionType** (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: **type, created, modified, name, owner.name, healthy, status, id, description, owner.id, accountCorrelationConfig.id, accountCorrelationConfig.name, managerCorrelationRule.type, managerCorrelationRule.id, managerCorrelationRule.name, authoritative, managementWorkgroup.id, connectorName, connectionType** (optional) + for_subadmin = 'name' # str | Filter the returned list of sources for the identity specified by the parameter, which is the id of an identity with the role SOURCE_SUBADMIN. By convention, the value **me** indicates the identity id of the current user. Subadmins may only view Sources which they are able to administer; all other Sources will be filtered out when this parameter is set. If the current user is a SOURCE_SUBADMIN but fails to pass a valid value for this parameter, a 403 Forbidden is returned. (optional) # str | Filter the returned list of sources for the identity specified by the parameter, which is the id of an identity with the role SOURCE_SUBADMIN. By convention, the value **me** indicates the identity id of the current user. Subadmins may only view Sources which they are able to administer; all other Sources will be filtered out when this parameter is set. If the current user is a SOURCE_SUBADMIN but fails to pass a valid value for this parameter, a 403 Forbidden is returned. (optional) + include_idn_source = False # bool | Include the IdentityNow source in the response. (optional) (default to False) # bool | Include the IdentityNow source in the response. (optional) (default to False) + try: + # Lists all sources in IdentityNow. + + results = SourcesApi(api_client).list_sources() + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).list_sources(limit, offset, count, filters, sorters, for_subadmin, include_idn_source) + print("The response of SourcesApi->list_sources:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->list_sources: %s\n" % e) - path: /sources/{sourceId}/provisioning-policies/{usageType} method: PUT xCodeSample: @@ -10098,15 +9793,14 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.provisioning_policy_dto import ProvisioningPolicyDto from sailpoint.v3.models.usage_type import UsageType - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source ID. # str | The Source ID. - usage_type = sailpoint.v3.UsageType() # UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. # UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. - provisioning_policy_dto = '''{ + source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source ID. # str | The Source ID. + usage_type = sailpoint.v3.UsageType() # UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. # UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. + provisioning_policy_dto = '''{ "name" : "example provisioning policy for inactive identities", "description" : "this provisioning policy creates access based on an identity going inactive", "fields" : [ { @@ -10146,16 +9840,16 @@ } ], "usageType" : "CREATE" }''' # ProvisioningPolicyDto | - try: - # Update Provisioning Policy by UsageType - new_provisioning_policy_dto = ProvisioningPolicyDto.from_json(provisioning_policy_dto) - results = SourcesApi(api_client).put_provisioning_policy(source_id=source_id, usage_type=usage_type, provisioning_policy_dto=new_provisioning_policy_dto) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).put_provisioning_policy(source_id, usage_type, new_provisioning_policy_dto) - print("The response of SourcesApi->put_provisioning_policy:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->put_provisioning_policy: %s\n" % e) + try: + # Update Provisioning Policy by UsageType + new_provisioning_policy_dto = ProvisioningPolicyDto.from_json(provisioning_policy_dto) + results = SourcesApi(api_client).put_provisioning_policy(source_id=source_id, usage_type=usage_type, provisioning_policy_dto=new_provisioning_policy_dto) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).put_provisioning_policy(source_id, usage_type, new_provisioning_policy_dto) + print("The response of SourcesApi->put_provisioning_policy:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->put_provisioning_policy: %s\n" % e) - path: /sources/{id} method: PUT xCodeSample: @@ -10165,14 +9859,13 @@ from sailpoint.v3.api.sources_api import SourcesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.source import Source - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c9180835d191a86015d28455b4a2329' # str | Source ID. # str | Source ID. - source = '''{ + id = '2c9180835d191a86015d28455b4a2329' # str | Source ID. # str | Source ID. + source = '''{ "cluster" : { "name" : "Corporate Cluster", "id" : "2c9180866166b5b0016167c32ef31a66", @@ -10255,16 +9948,16 @@ "status" : "SOURCE_STATE_HEALTHY", "since" : "2021-09-28T15:48:29.3801666300Z" }''' # Source | - try: - # Update Source (Full) - new_source = Source.from_json(source) - results = SourcesApi(api_client).put_source(id=id, source=new_source) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).put_source(id, new_source) - print("The response of SourcesApi->put_source:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->put_source: %s\n" % e) + try: + # Update Source (Full) + new_source = Source.from_json(source) + results = SourcesApi(api_client).put_source(id=id, source=new_source) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).put_source(id, new_source) + print("The response of SourcesApi->put_source:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->put_source: %s\n" % e) - path: /sources/{sourceId}/schemas/{schemaId} method: PUT xCodeSample: @@ -10274,25 +9967,24 @@ from sailpoint.v3.api.sources_api import SourcesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.model_schema import ModelSchema - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source id. # str | The Source id. - schema_id = '2c9180835d191a86015d28455b4a2329' # str | The Schema id. # str | The Schema id. - model_schema = '''sailpoint.v3.ModelSchema()''' # ModelSchema | - try: - # Update Source Schema (Full) - new_model_schema = ModelSchema.from_json(model_schema) - results = SourcesApi(api_client).put_source_schema(source_id=source_id, schema_id=schema_id, model_schema=new_model_schema) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).put_source_schema(source_id, schema_id, new_model_schema) - print("The response of SourcesApi->put_source_schema:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->put_source_schema: %s\n" % e) + source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source id. # str | The Source id. + schema_id = '2c9180835d191a86015d28455b4a2329' # str | The Schema id. # str | The Schema id. + model_schema = '''sailpoint.v3.ModelSchema()''' # ModelSchema | + try: + # Update Source Schema (Full) + new_model_schema = ModelSchema.from_json(model_schema) + results = SourcesApi(api_client).put_source_schema(source_id=source_id, schema_id=schema_id, model_schema=new_model_schema) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).put_source_schema(source_id, schema_id, new_model_schema) + print("The response of SourcesApi->put_source_schema:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->put_source_schema: %s\n" % e) - path: /sources/{sourceId}/provisioning-policies/bulk-update method: POST xCodeSample: @@ -10302,24 +9994,23 @@ from sailpoint.v3.api.sources_api import SourcesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.provisioning_policy_dto import ProvisioningPolicyDto - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source id. # str | The Source id. - provisioning_policy_dto = '''[sailpoint.v3.ProvisioningPolicyDto()]''' # List[ProvisioningPolicyDto] | - try: - # Bulk Update Provisioning Policies - new_provisioning_policy_dto = ProvisioningPolicyDto.from_json(provisioning_policy_dto) - results = SourcesApi(api_client).update_provisioning_policies_in_bulk(source_id=source_id, provisioning_policy_dto=new_provisioning_policy_dto) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).update_provisioning_policies_in_bulk(source_id, new_provisioning_policy_dto) - print("The response of SourcesApi->update_provisioning_policies_in_bulk:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->update_provisioning_policies_in_bulk: %s\n" % e) + source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source id. # str | The Source id. + provisioning_policy_dto = '''[sailpoint.v3.ProvisioningPolicyDto()]''' # List[ProvisioningPolicyDto] | + try: + # Bulk Update Provisioning Policies + new_provisioning_policy_dto = ProvisioningPolicyDto.from_json(provisioning_policy_dto) + results = SourcesApi(api_client).update_provisioning_policies_in_bulk(source_id=source_id, provisioning_policy_dto=new_provisioning_policy_dto) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).update_provisioning_policies_in_bulk(source_id, new_provisioning_policy_dto) + print("The response of SourcesApi->update_provisioning_policies_in_bulk:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->update_provisioning_policies_in_bulk: %s\n" % e) - path: /sources/{sourceId}/provisioning-policies/{usageType} method: PATCH xCodeSample: @@ -10331,25 +10022,24 @@ from sailpoint.v3.models.json_patch_operation import JsonPatchOperation from sailpoint.v3.models.provisioning_policy_dto import ProvisioningPolicyDto from sailpoint.v3.models.usage_type import UsageType - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source id. # str | The Source id. - usage_type = sailpoint.v3.UsageType() # UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. # UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. - json_patch_operation = '''[{op=add, path=/fields/0, value={name=email, transform={type=identityAttribute, attributes={name=email}}, attributes={}, isRequired=false, type=string, isMultiValued=false}}]''' # List[JsonPatchOperation] | The JSONPatch payload used to update the schema. - try: - # Partial update of Provisioning Policy - new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) - results = SourcesApi(api_client).update_provisioning_policy(source_id=source_id, usage_type=usage_type, json_patch_operation=new_json_patch_operation) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).update_provisioning_policy(source_id, usage_type, new_json_patch_operation) - print("The response of SourcesApi->update_provisioning_policy:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->update_provisioning_policy: %s\n" % e) + source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source id. # str | The Source id. + usage_type = sailpoint.v3.UsageType() # UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. # UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. + json_patch_operation = '''[{op=add, path=/fields/0, value={name=email, transform={type=identityAttribute, attributes={name=email}}, attributes={}, isRequired=false, type=string, isMultiValued=false}}]''' # List[JsonPatchOperation] | The JSONPatch payload used to update the schema. + try: + # Partial update of Provisioning Policy + new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) + results = SourcesApi(api_client).update_provisioning_policy(source_id=source_id, usage_type=usage_type, json_patch_operation=new_json_patch_operation) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).update_provisioning_policy(source_id, usage_type, new_json_patch_operation) + print("The response of SourcesApi->update_provisioning_policy:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->update_provisioning_policy: %s\n" % e) - path: /sources/{id} method: PATCH xCodeSample: @@ -10360,24 +10050,23 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.json_patch_operation import JsonPatchOperation from sailpoint.v3.models.source import Source - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c9180835d191a86015d28455b4a2329' # str | Source ID. # str | Source ID. - json_patch_operation = '''[{op=replace, path=/description, value=new description}]''' # List[JsonPatchOperation] | A list of account update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Any password changes are submitted as plain-text and encrypted upon receipt in Identity Security Cloud (ISC). - try: - # Update Source (Partial) - new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) - results = SourcesApi(api_client).update_source(id=id, json_patch_operation=new_json_patch_operation) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).update_source(id, new_json_patch_operation) - print("The response of SourcesApi->update_source:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->update_source: %s\n" % e) + id = '2c9180835d191a86015d28455b4a2329' # str | Source ID. # str | Source ID. + json_patch_operation = '''[{op=replace, path=/description, value=new description}]''' # List[JsonPatchOperation] | A list of account update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Any password changes are submitted as plain-text and encrypted upon receipt in Identity Security Cloud (ISC). + try: + # Update Source (Partial) + new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) + results = SourcesApi(api_client).update_source(id=id, json_patch_operation=new_json_patch_operation) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).update_source(id, new_json_patch_operation) + print("The response of SourcesApi->update_source:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->update_source: %s\n" % e) - path: /sources/{sourceId}/schemas/{schemaId} method: PATCH xCodeSample: @@ -10388,25 +10077,24 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.json_patch_operation import JsonPatchOperation from sailpoint.v3.models.model_schema import ModelSchema - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source id. # str | The Source id. - schema_id = '2c9180835d191a86015d28455b4a2329' # str | The Schema id. # str | The Schema id. - json_patch_operation = '''[{op=add, path=/attributes/-, value={name=location, type=STRING, schema=null, description=Employee location, isMulti=false, isEntitlement=false, isGroup=false}}]''' # List[JsonPatchOperation] | The JSONPatch payload used to update the schema. - try: - # Update Source Schema (Partial) - new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) - results = SourcesApi(api_client).update_source_schema(source_id=source_id, schema_id=schema_id, json_patch_operation=new_json_patch_operation) - # Below is a request that includes all optional parameters - # results = SourcesApi(api_client).update_source_schema(source_id, schema_id, new_json_patch_operation) - print("The response of SourcesApi->update_source_schema:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourcesApi->update_source_schema: %s\n" % e) + source_id = '2c9180835d191a86015d28455b4a2329' # str | The Source id. # str | The Source id. + schema_id = '2c9180835d191a86015d28455b4a2329' # str | The Schema id. # str | The Schema id. + json_patch_operation = '''[{op=add, path=/attributes/-, value={name=location, type=STRING, schema=null, description=Employee location, isMulti=false, isEntitlement=false, isGroup=false}}]''' # List[JsonPatchOperation] | The JSONPatch payload used to update the schema. + try: + # Update Source Schema (Partial) + new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) + results = SourcesApi(api_client).update_source_schema(source_id=source_id, schema_id=schema_id, json_patch_operation=new_json_patch_operation) + # Below is a request that includes all optional parameters + # results = SourcesApi(api_client).update_source_schema(source_id, schema_id, new_json_patch_operation) + print("The response of SourcesApi->update_source_schema:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourcesApi->update_source_schema: %s\n" % e) - path: /source-usages/{sourceId}/status method: GET xCodeSample: @@ -10416,23 +10104,22 @@ from sailpoint.v3.api.source_usages_api import SourceUsagesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.source_usage_status import SourceUsageStatus - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '2c9180835d191a86015d28455b4a2329' # str | ID of IDN source # str | ID of IDN source - try: - # Finds status of source usage - - results = SourceUsagesApi(api_client).get_status_by_source_id(source_id=source_id) - # Below is a request that includes all optional parameters - # results = SourceUsagesApi(api_client).get_status_by_source_id(source_id) - print("The response of SourceUsagesApi->get_status_by_source_id:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourceUsagesApi->get_status_by_source_id: %s\n" % e) + source_id = '2c9180835d191a86015d28455b4a2329' # str | ID of IDN source # str | ID of IDN source + try: + # Finds status of source usage + + results = SourceUsagesApi(api_client).get_status_by_source_id(source_id=source_id) + # Below is a request that includes all optional parameters + # results = SourceUsagesApi(api_client).get_status_by_source_id(source_id) + print("The response of SourceUsagesApi->get_status_by_source_id:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourceUsagesApi->get_status_by_source_id: %s\n" % e) - path: /source-usages/{sourceId}/summaries method: GET xCodeSample: @@ -10442,27 +10129,26 @@ from sailpoint.v3.api.source_usages_api import SourceUsagesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.source_usage import SourceUsage - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - source_id = '2c9180835d191a86015d28455b4a2329' # str | ID of IDN source # str | ID of IDN source - 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) - sorters = '-date' # 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: **date** (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: **date** (optional) - try: - # Returns source usage insights - - results = SourceUsagesApi(api_client).get_usages_by_source_id(source_id=source_id) - # Below is a request that includes all optional parameters - # results = SourceUsagesApi(api_client).get_usages_by_source_id(source_id, limit, offset, count, sorters) - print("The response of SourceUsagesApi->get_usages_by_source_id:\n") - pprint(results) - except Exception as e: - print("Exception when calling SourceUsagesApi->get_usages_by_source_id: %s\n" % e) + source_id = '2c9180835d191a86015d28455b4a2329' # str | ID of IDN source # str | ID of IDN source + 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) + sorters = '-date' # 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: **date** (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: **date** (optional) + try: + # Returns source usage insights + + results = SourceUsagesApi(api_client).get_usages_by_source_id(source_id=source_id) + # Below is a request that includes all optional parameters + # results = SourceUsagesApi(api_client).get_usages_by_source_id(source_id, limit, offset, count, sorters) + print("The response of SourceUsagesApi->get_usages_by_source_id:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling SourceUsagesApi->get_usages_by_source_id: %s\n" % e) - path: /tagged-objects/{type}/{id} method: DELETE xCodeSample: @@ -10471,22 +10157,21 @@ source: | from sailpoint.v3.api.tagged_objects_api import TaggedObjectsApi from sailpoint.v3.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - type = 'ROLE' # str | The type of object to delete tags from. # str | The type of object to delete tags from. - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the object to delete tags from. # str | The ID of the object to delete tags from. - try: - # Delete Object Tags - - TaggedObjectsApi(api_client).delete_tagged_object(type=type, id=id) - # Below is a request that includes all optional parameters - # TaggedObjectsApi(api_client).delete_tagged_object(type, id) - except Exception as e: - print("Exception when calling TaggedObjectsApi->delete_tagged_object: %s\n" % e) + type = 'ROLE' # str | The type of object to delete tags from. # str | The type of object to delete tags from. + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the object to delete tags from. # str | The ID of the object to delete tags from. + try: + # Delete Object Tags + + TaggedObjectsApi(api_client).delete_tagged_object(type=type, id=id) + # Below is a request that includes all optional parameters + # TaggedObjectsApi(api_client).delete_tagged_object(type, id) + except Exception as e: + print("Exception when calling TaggedObjectsApi->delete_tagged_object: %s\n" % e) - path: /tagged-objects/bulk-remove method: POST xCodeSample: @@ -10496,13 +10181,12 @@ from sailpoint.v3.api.tagged_objects_api import TaggedObjectsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.bulk_remove_tagged_object import BulkRemoveTaggedObject - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - bulk_remove_tagged_object = '''{ + bulk_remove_tagged_object = '''{ "objectRefs" : [ { "name" : "William Wilson", "id" : "2c91808568c529c60168cca6f90c1313", @@ -10514,14 +10198,14 @@ } ], "tags" : [ "BU_FINANCE", "PCI" ] }''' # BulkRemoveTaggedObject | Supported object types are ACCESS_PROFILE, APPLICATION, CAMPAIGN, ENTITLEMENT, IDENTITY, ROLE, SOD_POLICY, SOURCE. - try: - # Remove Tags from Multiple Objects - new_bulk_remove_tagged_object = BulkRemoveTaggedObject.from_json(bulk_remove_tagged_object) - TaggedObjectsApi(api_client).delete_tags_to_many_object(bulk_remove_tagged_object=new_bulk_remove_tagged_object) - # Below is a request that includes all optional parameters - # TaggedObjectsApi(api_client).delete_tags_to_many_object(new_bulk_remove_tagged_object) - except Exception as e: - print("Exception when calling TaggedObjectsApi->delete_tags_to_many_object: %s\n" % e) + try: + # Remove Tags from Multiple Objects + new_bulk_remove_tagged_object = BulkRemoveTaggedObject.from_json(bulk_remove_tagged_object) + TaggedObjectsApi(api_client).delete_tags_to_many_object(bulk_remove_tagged_object=new_bulk_remove_tagged_object) + # Below is a request that includes all optional parameters + # TaggedObjectsApi(api_client).delete_tags_to_many_object(new_bulk_remove_tagged_object) + except Exception as e: + print("Exception when calling TaggedObjectsApi->delete_tags_to_many_object: %s\n" % e) - path: /tagged-objects/{type}/{id} method: GET xCodeSample: @@ -10531,24 +10215,23 @@ from sailpoint.v3.api.tagged_objects_api import TaggedObjectsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.tagged_object import TaggedObject - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - type = 'ROLE' # str | The type of tagged object to retrieve. # str | The type of tagged object to retrieve. - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the object reference to retrieve. # str | The ID of the object reference to retrieve. - try: - # Get Tagged Object - - results = TaggedObjectsApi(api_client).get_tagged_object(type=type, id=id) - # Below is a request that includes all optional parameters - # results = TaggedObjectsApi(api_client).get_tagged_object(type, id) - print("The response of TaggedObjectsApi->get_tagged_object:\n") - pprint(results) - except Exception as e: - print("Exception when calling TaggedObjectsApi->get_tagged_object: %s\n" % e) + type = 'ROLE' # str | The type of tagged object to retrieve. # str | The type of tagged object to retrieve. + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the object reference to retrieve. # str | The ID of the object reference to retrieve. + try: + # Get Tagged Object + + results = TaggedObjectsApi(api_client).get_tagged_object(type=type, id=id) + # Below is a request that includes all optional parameters + # results = TaggedObjectsApi(api_client).get_tagged_object(type, id) + print("The response of TaggedObjectsApi->get_tagged_object:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling TaggedObjectsApi->get_tagged_object: %s\n" % e) - path: /tagged-objects method: GET xCodeSample: @@ -10558,26 +10241,25 @@ from sailpoint.v3.api.tagged_objects_api import TaggedObjectsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.tagged_object import TaggedObject - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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 = 'tagName eq \"BU_FINANCE\"' # 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: **objectRef.id**: *eq, in* **objectRef.type**: *eq, in* **tagName**: *eq, in* (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: **objectRef.id**: *eq, in* **objectRef.type**: *eq, in* **tagName**: *eq, in* (optional) - try: - # List Tagged Objects - - results = TaggedObjectsApi(api_client).list_tagged_objects() - # Below is a request that includes all optional parameters - # results = TaggedObjectsApi(api_client).list_tagged_objects(limit, offset, count, filters) - print("The response of TaggedObjectsApi->list_tagged_objects:\n") - pprint(results) - except Exception as e: - print("Exception when calling TaggedObjectsApi->list_tagged_objects: %s\n" % e) + 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 = 'tagName eq \"BU_FINANCE\"' # 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: **objectRef.id**: *eq, in* **objectRef.type**: *eq, in* **tagName**: *eq, in* (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: **objectRef.id**: *eq, in* **objectRef.type**: *eq, in* **tagName**: *eq, in* (optional) + try: + # List Tagged Objects + + results = TaggedObjectsApi(api_client).list_tagged_objects() + # Below is a request that includes all optional parameters + # results = TaggedObjectsApi(api_client).list_tagged_objects(limit, offset, count, filters) + print("The response of TaggedObjectsApi->list_tagged_objects:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling TaggedObjectsApi->list_tagged_objects: %s\n" % e) - path: /tagged-objects/{type} method: GET xCodeSample: @@ -10587,27 +10269,26 @@ from sailpoint.v3.api.tagged_objects_api import TaggedObjectsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.tagged_object import TaggedObject - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - type = 'ROLE' # str | The type of tagged object to retrieve. # str | The type of tagged object to retrieve. - 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 = 'objectRef.id eq \"2c91808568c529c60168cca6f90c1313\"' # 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: **objectRef.id**: *eq* **objectRef.type**: *eq* (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: **objectRef.id**: *eq* **objectRef.type**: *eq* (optional) - try: - # List Tagged Objects by Type - - results = TaggedObjectsApi(api_client).list_tagged_objects_by_type(type=type) - # Below is a request that includes all optional parameters - # results = TaggedObjectsApi(api_client).list_tagged_objects_by_type(type, limit, offset, count, filters) - print("The response of TaggedObjectsApi->list_tagged_objects_by_type:\n") - pprint(results) - except Exception as e: - print("Exception when calling TaggedObjectsApi->list_tagged_objects_by_type: %s\n" % e) + type = 'ROLE' # str | The type of tagged object to retrieve. # str | The type of tagged object to retrieve. + 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 = 'objectRef.id eq \"2c91808568c529c60168cca6f90c1313\"' # 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: **objectRef.id**: *eq* **objectRef.type**: *eq* (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: **objectRef.id**: *eq* **objectRef.type**: *eq* (optional) + try: + # List Tagged Objects by Type + + results = TaggedObjectsApi(api_client).list_tagged_objects_by_type(type=type) + # Below is a request that includes all optional parameters + # results = TaggedObjectsApi(api_client).list_tagged_objects_by_type(type, limit, offset, count, filters) + print("The response of TaggedObjectsApi->list_tagged_objects_by_type:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling TaggedObjectsApi->list_tagged_objects_by_type: %s\n" % e) - path: /tagged-objects/{type}/{id} method: PUT xCodeSample: @@ -10617,15 +10298,14 @@ from sailpoint.v3.api.tagged_objects_api import TaggedObjectsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.tagged_object import TaggedObject - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - type = 'ROLE' # str | The type of tagged object to update. # str | The type of tagged object to update. - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the object reference to update. # str | The ID of the object reference to update. - tagged_object = '''{ + type = 'ROLE' # str | The type of tagged object to update. # str | The type of tagged object to update. + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the object reference to update. # str | The ID of the object reference to update. + tagged_object = '''{ "objectRef" : { "name" : "William Wilson", "id" : "2c91808568c529c60168cca6f90c1313", @@ -10633,16 +10313,16 @@ }, "tags" : [ "BU_FINANCE", "PCI" ] }''' # TaggedObject | - try: - # Update Tagged Object - new_tagged_object = TaggedObject.from_json(tagged_object) - results = TaggedObjectsApi(api_client).put_tagged_object(type=type, id=id, tagged_object=new_tagged_object) - # Below is a request that includes all optional parameters - # results = TaggedObjectsApi(api_client).put_tagged_object(type, id, new_tagged_object) - print("The response of TaggedObjectsApi->put_tagged_object:\n") - pprint(results) - except Exception as e: - print("Exception when calling TaggedObjectsApi->put_tagged_object: %s\n" % e) + try: + # Update Tagged Object + new_tagged_object = TaggedObject.from_json(tagged_object) + results = TaggedObjectsApi(api_client).put_tagged_object(type=type, id=id, tagged_object=new_tagged_object) + # Below is a request that includes all optional parameters + # results = TaggedObjectsApi(api_client).put_tagged_object(type, id, new_tagged_object) + print("The response of TaggedObjectsApi->put_tagged_object:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling TaggedObjectsApi->put_tagged_object: %s\n" % e) - path: /tagged-objects method: POST xCodeSample: @@ -10652,13 +10332,12 @@ from sailpoint.v3.api.tagged_objects_api import TaggedObjectsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.tagged_object import TaggedObject - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - tagged_object = '''{ + tagged_object = '''{ "objectRef" : { "name" : "William Wilson", "id" : "2c91808568c529c60168cca6f90c1313", @@ -10666,14 +10345,14 @@ }, "tags" : [ "BU_FINANCE", "PCI" ] }''' # TaggedObject | - try: - # Add Tag to Object - new_tagged_object = TaggedObject.from_json(tagged_object) - TaggedObjectsApi(api_client).set_tag_to_object(tagged_object=new_tagged_object) - # Below is a request that includes all optional parameters - # TaggedObjectsApi(api_client).set_tag_to_object(new_tagged_object) - except Exception as e: - print("Exception when calling TaggedObjectsApi->set_tag_to_object: %s\n" % e) + try: + # Add Tag to Object + new_tagged_object = TaggedObject.from_json(tagged_object) + TaggedObjectsApi(api_client).set_tag_to_object(tagged_object=new_tagged_object) + # Below is a request that includes all optional parameters + # TaggedObjectsApi(api_client).set_tag_to_object(new_tagged_object) + except Exception as e: + print("Exception when calling TaggedObjectsApi->set_tag_to_object: %s\n" % e) - path: /tagged-objects/bulk-add method: POST xCodeSample: @@ -10684,13 +10363,12 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.bulk_add_tagged_object import BulkAddTaggedObject from sailpoint.v3.models.bulk_tagged_object_response import BulkTaggedObjectResponse - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - bulk_add_tagged_object = '''{ + bulk_add_tagged_object = '''{ "objectRefs" : [ { "name" : "William Wilson", "id" : "2c91808568c529c60168cca6f90c1313", @@ -10703,16 +10381,16 @@ "operation" : "MERGE", "tags" : [ "BU_FINANCE", "PCI" ] }''' # BulkAddTaggedObject | Supported object types are ACCESS_PROFILE, APPLICATION, CAMPAIGN, ENTITLEMENT, IDENTITY, ROLE, SOD_POLICY, SOURCE. - try: - # Tag Multiple Objects - new_bulk_add_tagged_object = BulkAddTaggedObject.from_json(bulk_add_tagged_object) - results = TaggedObjectsApi(api_client).set_tags_to_many_objects(bulk_add_tagged_object=new_bulk_add_tagged_object) - # Below is a request that includes all optional parameters - # results = TaggedObjectsApi(api_client).set_tags_to_many_objects(new_bulk_add_tagged_object) - print("The response of TaggedObjectsApi->set_tags_to_many_objects:\n") - pprint(results) - except Exception as e: - print("Exception when calling TaggedObjectsApi->set_tags_to_many_objects: %s\n" % e) + try: + # Tag Multiple Objects + new_bulk_add_tagged_object = BulkAddTaggedObject.from_json(bulk_add_tagged_object) + results = TaggedObjectsApi(api_client).set_tags_to_many_objects(bulk_add_tagged_object=new_bulk_add_tagged_object) + # Below is a request that includes all optional parameters + # results = TaggedObjectsApi(api_client).set_tags_to_many_objects(new_bulk_add_tagged_object) + print("The response of TaggedObjectsApi->set_tags_to_many_objects:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling TaggedObjectsApi->set_tags_to_many_objects: %s\n" % e) - path: /transforms method: POST xCodeSample: @@ -10723,27 +10401,26 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.transform import Transform from sailpoint.v3.models.transform_read import TransformRead - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - transform = '''{ + transform = '''{ "name" : "Timestamp To Date", "attributes" : "{}", "type" : "dateFormat" }''' # Transform | The transform to be created. - try: - # Create transform - new_transform = Transform.from_json(transform) - results = TransformsApi(api_client).create_transform(transform=new_transform) - # Below is a request that includes all optional parameters - # results = TransformsApi(api_client).create_transform(new_transform) - print("The response of TransformsApi->create_transform:\n") - pprint(results) - except Exception as e: - print("Exception when calling TransformsApi->create_transform: %s\n" % e) + try: + # Create transform + new_transform = Transform.from_json(transform) + results = TransformsApi(api_client).create_transform(transform=new_transform) + # Below is a request that includes all optional parameters + # results = TransformsApi(api_client).create_transform(new_transform) + print("The response of TransformsApi->create_transform:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling TransformsApi->create_transform: %s\n" % e) - path: /transforms/{id} method: DELETE xCodeSample: @@ -10752,21 +10429,20 @@ source: | from sailpoint.v3.api.transforms_api import TransformsApi from sailpoint.v3.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2cd78adghjkja34jh2b1hkjhasuecd' # str | ID of the transform to delete # str | ID of the transform to delete - try: - # Delete a transform - - TransformsApi(api_client).delete_transform(id=id) - # Below is a request that includes all optional parameters - # TransformsApi(api_client).delete_transform(id) - except Exception as e: - print("Exception when calling TransformsApi->delete_transform: %s\n" % e) + id = '2cd78adghjkja34jh2b1hkjhasuecd' # str | ID of the transform to delete # str | ID of the transform to delete + try: + # Delete a transform + + TransformsApi(api_client).delete_transform(id=id) + # Below is a request that includes all optional parameters + # TransformsApi(api_client).delete_transform(id) + except Exception as e: + print("Exception when calling TransformsApi->delete_transform: %s\n" % e) - path: /transforms/{id} method: GET xCodeSample: @@ -10776,23 +10452,22 @@ from sailpoint.v3.api.transforms_api import TransformsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.transform_read import TransformRead - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2cd78adghjkja34jh2b1hkjhasuecd' # str | ID of the transform to retrieve # str | ID of the transform to retrieve - try: - # Transform by ID - - results = TransformsApi(api_client).get_transform(id=id) - # Below is a request that includes all optional parameters - # results = TransformsApi(api_client).get_transform(id) - print("The response of TransformsApi->get_transform:\n") - pprint(results) - except Exception as e: - print("Exception when calling TransformsApi->get_transform: %s\n" % e) + id = '2cd78adghjkja34jh2b1hkjhasuecd' # str | ID of the transform to retrieve # str | ID of the transform to retrieve + try: + # Transform by ID + + results = TransformsApi(api_client).get_transform(id=id) + # Below is a request that includes all optional parameters + # results = TransformsApi(api_client).get_transform(id) + print("The response of TransformsApi->get_transform:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling TransformsApi->get_transform: %s\n" % e) - path: /transforms method: GET xCodeSample: @@ -10802,27 +10477,26 @@ from sailpoint.v3.api.transforms_api import TransformsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.transform_read import TransformRead - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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) - 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) - 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) - name = 'ExampleTransformName123' # str | Name of the transform to retrieve from the list. (optional) # str | Name of the transform to retrieve from the list. (optional) - filters = 'name eq \"Uppercase\"' # 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: **internal**: *eq* **name**: *eq, 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: **internal**: *eq* **name**: *eq, sw* (optional) - try: - # List transforms - - results = TransformsApi(api_client).list_transforms() - # Below is a request that includes all optional parameters - # results = TransformsApi(api_client).list_transforms(offset, limit, count, name, filters) - print("The response of TransformsApi->list_transforms:\n") - pprint(results) - except Exception as e: - print("Exception when calling TransformsApi->list_transforms: %s\n" % e) + 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) + 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) + 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) + name = 'ExampleTransformName123' # str | Name of the transform to retrieve from the list. (optional) # str | Name of the transform to retrieve from the list. (optional) + filters = 'name eq \"Uppercase\"' # 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: **internal**: *eq* **name**: *eq, 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: **internal**: *eq* **name**: *eq, sw* (optional) + try: + # List transforms + + results = TransformsApi(api_client).list_transforms() + # Below is a request that includes all optional parameters + # results = TransformsApi(api_client).list_transforms(offset, limit, count, name, filters) + print("The response of TransformsApi->list_transforms:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling TransformsApi->list_transforms: %s\n" % e) - path: /transforms/{id} method: PUT xCodeSample: @@ -10833,28 +10507,27 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.transform import Transform from sailpoint.v3.models.transform_read import TransformRead - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2cd78adghjkja34jh2b1hkjhasuecd' # str | ID of the transform to update # str | ID of the transform to update - transform = '''{ + id = '2cd78adghjkja34jh2b1hkjhasuecd' # str | ID of the transform to update # str | ID of the transform to update + transform = '''{ "name" : "Timestamp To Date", "attributes" : "{}", "type" : "dateFormat" }''' # Transform | The updated transform object. Must include \"name\", \"type\", and \"attributes\" fields, but \"name\" and \"type\" must not be modified. (optional) - try: - # Update a transform - - results = TransformsApi(api_client).update_transform(id=id) - # Below is a request that includes all optional parameters - # results = TransformsApi(api_client).update_transform(id, new_transform) - print("The response of TransformsApi->update_transform:\n") - pprint(results) - except Exception as e: - print("Exception when calling TransformsApi->update_transform: %s\n" % e) + try: + # Update a transform + + results = TransformsApi(api_client).update_transform(id=id) + # Below is a request that includes all optional parameters + # results = TransformsApi(api_client).update_transform(id, new_transform) + print("The response of TransformsApi->update_transform:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling TransformsApi->update_transform: %s\n" % e) - path: /vendor-connector-mappings method: POST xCodeSample: @@ -10864,13 +10537,12 @@ from sailpoint.v3.api.vendor_connector_mappings_api import VendorConnectorMappingsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.vendor_connector_mapping import VendorConnectorMapping - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - vendor_connector_mapping = '''{ + vendor_connector_mapping = '''{ "createdAt" : "2024-03-13T12:56:19.391294Z", "deletedAt" : { "Valid" : false, @@ -10893,16 +10565,16 @@ "Time" : "2024-03-14T12:56:19.391294Z" } }''' # VendorConnectorMapping | - try: - # Create Vendor Connector Mapping - new_vendor_connector_mapping = VendorConnectorMapping.from_json(vendor_connector_mapping) - results = VendorConnectorMappingsApi(api_client).create_vendor_connector_mapping(vendor_connector_mapping=new_vendor_connector_mapping) - # Below is a request that includes all optional parameters - # results = VendorConnectorMappingsApi(api_client).create_vendor_connector_mapping(new_vendor_connector_mapping) - print("The response of VendorConnectorMappingsApi->create_vendor_connector_mapping:\n") - pprint(results) - except Exception as e: - print("Exception when calling VendorConnectorMappingsApi->create_vendor_connector_mapping: %s\n" % e) + try: + # Create Vendor Connector Mapping + new_vendor_connector_mapping = VendorConnectorMapping.from_json(vendor_connector_mapping) + results = VendorConnectorMappingsApi(api_client).create_vendor_connector_mapping(vendor_connector_mapping=new_vendor_connector_mapping) + # Below is a request that includes all optional parameters + # results = VendorConnectorMappingsApi(api_client).create_vendor_connector_mapping(new_vendor_connector_mapping) + print("The response of VendorConnectorMappingsApi->create_vendor_connector_mapping:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling VendorConnectorMappingsApi->create_vendor_connector_mapping: %s\n" % e) - path: /vendor-connector-mappings method: DELETE xCodeSample: @@ -10913,13 +10585,12 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.delete_vendor_connector_mapping200_response import DeleteVendorConnectorMapping200Response from sailpoint.v3.models.vendor_connector_mapping import VendorConnectorMapping - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - vendor_connector_mapping = '''{ + vendor_connector_mapping = '''{ "createdAt" : "2024-03-13T12:56:19.391294Z", "deletedAt" : { "Valid" : false, @@ -10942,16 +10613,16 @@ "Time" : "2024-03-14T12:56:19.391294Z" } }''' # VendorConnectorMapping | - try: - # Delete Vendor Connector Mapping - new_vendor_connector_mapping = VendorConnectorMapping.from_json(vendor_connector_mapping) - results = VendorConnectorMappingsApi(api_client).delete_vendor_connector_mapping(vendor_connector_mapping=new_vendor_connector_mapping) - # Below is a request that includes all optional parameters - # results = VendorConnectorMappingsApi(api_client).delete_vendor_connector_mapping(new_vendor_connector_mapping) - print("The response of VendorConnectorMappingsApi->delete_vendor_connector_mapping:\n") - pprint(results) - except Exception as e: - print("Exception when calling VendorConnectorMappingsApi->delete_vendor_connector_mapping: %s\n" % e) + try: + # Delete Vendor Connector Mapping + new_vendor_connector_mapping = VendorConnectorMapping.from_json(vendor_connector_mapping) + results = VendorConnectorMappingsApi(api_client).delete_vendor_connector_mapping(vendor_connector_mapping=new_vendor_connector_mapping) + # Below is a request that includes all optional parameters + # results = VendorConnectorMappingsApi(api_client).delete_vendor_connector_mapping(new_vendor_connector_mapping) + print("The response of VendorConnectorMappingsApi->delete_vendor_connector_mapping:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling VendorConnectorMappingsApi->delete_vendor_connector_mapping: %s\n" % e) - path: /vendor-connector-mappings method: GET xCodeSample: @@ -10961,22 +10632,21 @@ from sailpoint.v3.api.vendor_connector_mappings_api import VendorConnectorMappingsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.vendor_connector_mapping import VendorConnectorMapping - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - try: - # List Vendor Connector Mappings - - results = VendorConnectorMappingsApi(api_client).get_vendor_connector_mappings() - # Below is a request that includes all optional parameters - # results = VendorConnectorMappingsApi(api_client).get_vendor_connector_mappings() - print("The response of VendorConnectorMappingsApi->get_vendor_connector_mappings:\n") - pprint(results) - except Exception as e: - print("Exception when calling VendorConnectorMappingsApi->get_vendor_connector_mappings: %s\n" % e) + try: + # List Vendor Connector Mappings + + results = VendorConnectorMappingsApi(api_client).get_vendor_connector_mappings() + # Below is a request that includes all optional parameters + # results = VendorConnectorMappingsApi(api_client).get_vendor_connector_mappings() + print("The response of VendorConnectorMappingsApi->get_vendor_connector_mappings:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling VendorConnectorMappingsApi->get_vendor_connector_mappings: %s\n" % e) - path: /workflow-executions/{id}/cancel method: POST xCodeSample: @@ -10985,21 +10655,20 @@ source: | from sailpoint.v3.api.workflows_api import WorkflowsApi from sailpoint.v3.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | The workflow execution ID # str | The workflow execution ID - try: - # Cancel Workflow Execution by ID - - WorkflowsApi(api_client).cancel_workflow_execution(id=id) - # Below is a request that includes all optional parameters - # WorkflowsApi(api_client).cancel_workflow_execution(id) - except Exception as e: - print("Exception when calling WorkflowsApi->cancel_workflow_execution: %s\n" % e) + id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | The workflow execution ID # str | The workflow execution ID + try: + # Cancel Workflow Execution by ID + + WorkflowsApi(api_client).cancel_workflow_execution(id=id) + # Below is a request that includes all optional parameters + # WorkflowsApi(api_client).cancel_workflow_execution(id) + except Exception as e: + print("Exception when calling WorkflowsApi->cancel_workflow_execution: %s\n" % e) - path: /workflows/execute/external/{id} method: POST xCodeSample: @@ -11010,24 +10679,23 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.create_external_execute_workflow200_response import CreateExternalExecuteWorkflow200Response from sailpoint.v3.models.create_external_execute_workflow_request import CreateExternalExecuteWorkflowRequest - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Id of the workflow # str | Id of the workflow - create_external_execute_workflow_request = '''sailpoint.v3.CreateExternalExecuteWorkflowRequest()''' # CreateExternalExecuteWorkflowRequest | (optional) - try: - # Execute Workflow via External Trigger - - results = WorkflowsApi(api_client).create_external_execute_workflow(id=id) - # Below is a request that includes all optional parameters - # results = WorkflowsApi(api_client).create_external_execute_workflow(id, new_create_external_execute_workflow_request) - print("The response of WorkflowsApi->create_external_execute_workflow:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkflowsApi->create_external_execute_workflow: %s\n" % e) + id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Id of the workflow # str | Id of the workflow + create_external_execute_workflow_request = '''sailpoint.v3.CreateExternalExecuteWorkflowRequest()''' # CreateExternalExecuteWorkflowRequest | (optional) + try: + # Execute Workflow via External Trigger + + results = WorkflowsApi(api_client).create_external_execute_workflow(id=id) + # Below is a request that includes all optional parameters + # results = WorkflowsApi(api_client).create_external_execute_workflow(id, new_create_external_execute_workflow_request) + print("The response of WorkflowsApi->create_external_execute_workflow:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkflowsApi->create_external_execute_workflow: %s\n" % e) - path: /workflows method: POST xCodeSample: @@ -11038,23 +10706,22 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.create_workflow_request import CreateWorkflowRequest from sailpoint.v3.models.workflow import Workflow - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - create_workflow_request = '''{name=Send Email, owner={type=IDENTITY, id=2c91808568c529c60168cca6f90c1313, name=William Wilson}, description=Send an email to the identity who's attributes changed., definition={start=Send Email Test, steps={Send Email={actionId=sp:send-email, attributes={body=This is a test, from=sailpoint@sailpoint.com, recipientId.$=$.identity.id, subject=test}, nextStep=success, selectResult=null, type=action}, success={type=success}}}, enabled=false, trigger={type=EVENT, attributes={id=idn:identity-attributes-changed, filter=$.changes[?(@.attribute == 'manager')]}}}''' # CreateWorkflowRequest | - try: - # Create Workflow - new_create_workflow_request = CreateWorkflowRequest.from_json(create_workflow_request) - results = WorkflowsApi(api_client).create_workflow(create_workflow_request=new_create_workflow_request) - # Below is a request that includes all optional parameters - # results = WorkflowsApi(api_client).create_workflow(new_create_workflow_request) - print("The response of WorkflowsApi->create_workflow:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkflowsApi->create_workflow: %s\n" % e) + create_workflow_request = '''{name=Send Email, owner={type=IDENTITY, id=2c91808568c529c60168cca6f90c1313, name=William Wilson}, description=Send an email to the identity who's attributes changed., definition={start=Send Email Test, steps={Send Email={actionId=sp:send-email, attributes={body=This is a test, from=sailpoint@sailpoint.com, recipientId.$=$.identity.id, subject=test}, nextStep=success, selectResult=null, type=action}, success={type=success}}}, enabled=false, trigger={type=EVENT, attributes={id=idn:identity-attributes-changed, filter=$.changes[?(@.attribute == 'manager')]}}}''' # CreateWorkflowRequest | + try: + # Create Workflow + new_create_workflow_request = CreateWorkflowRequest.from_json(create_workflow_request) + results = WorkflowsApi(api_client).create_workflow(create_workflow_request=new_create_workflow_request) + # Below is a request that includes all optional parameters + # results = WorkflowsApi(api_client).create_workflow(new_create_workflow_request) + print("The response of WorkflowsApi->create_workflow:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkflowsApi->create_workflow: %s\n" % e) - path: /workflows/{id}/external/oauth-clients method: POST xCodeSample: @@ -11064,23 +10731,22 @@ from sailpoint.v3.api.workflows_api import WorkflowsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.workflow_o_auth_client import WorkflowOAuthClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Id of the workflow # str | Id of the workflow - try: - # Generate External Trigger OAuth Client - - results = WorkflowsApi(api_client).create_workflow_external_trigger(id=id) - # Below is a request that includes all optional parameters - # results = WorkflowsApi(api_client).create_workflow_external_trigger(id) - print("The response of WorkflowsApi->create_workflow_external_trigger:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkflowsApi->create_workflow_external_trigger: %s\n" % e) + id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Id of the workflow # str | Id of the workflow + try: + # Generate External Trigger OAuth Client + + results = WorkflowsApi(api_client).create_workflow_external_trigger(id=id) + # Below is a request that includes all optional parameters + # results = WorkflowsApi(api_client).create_workflow_external_trigger(id) + print("The response of WorkflowsApi->create_workflow_external_trigger:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkflowsApi->create_workflow_external_trigger: %s\n" % e) - path: /workflows/{id} method: DELETE xCodeSample: @@ -11089,21 +10755,20 @@ source: | from sailpoint.v3.api.workflows_api import WorkflowsApi from sailpoint.v3.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Id of the Workflow # str | Id of the Workflow - try: - # Delete Workflow By Id - - WorkflowsApi(api_client).delete_workflow(id=id) - # Below is a request that includes all optional parameters - # WorkflowsApi(api_client).delete_workflow(id) - except Exception as e: - print("Exception when calling WorkflowsApi->delete_workflow: %s\n" % e) + id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Id of the Workflow # str | Id of the Workflow + try: + # Delete Workflow By Id + + WorkflowsApi(api_client).delete_workflow(id=id) + # Below is a request that includes all optional parameters + # WorkflowsApi(api_client).delete_workflow(id) + except Exception as e: + print("Exception when calling WorkflowsApi->delete_workflow: %s\n" % e) - path: /workflows/{id} method: GET xCodeSample: @@ -11113,23 +10778,22 @@ from sailpoint.v3.api.workflows_api import WorkflowsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.workflow import Workflow - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Id of the workflow # str | Id of the workflow - try: - # Get Workflow By Id - - results = WorkflowsApi(api_client).get_workflow(id=id) - # Below is a request that includes all optional parameters - # results = WorkflowsApi(api_client).get_workflow(id) - print("The response of WorkflowsApi->get_workflow:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkflowsApi->get_workflow: %s\n" % e) + id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Id of the workflow # str | Id of the workflow + try: + # Get Workflow By Id + + results = WorkflowsApi(api_client).get_workflow(id=id) + # Below is a request that includes all optional parameters + # results = WorkflowsApi(api_client).get_workflow(id) + print("The response of WorkflowsApi->get_workflow:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkflowsApi->get_workflow: %s\n" % e) - path: /workflow-executions/{id} method: GET xCodeSample: @@ -11138,23 +10802,22 @@ source: | from sailpoint.v3.api.workflows_api import WorkflowsApi from sailpoint.v3.api_client import ApiClient - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Workflow execution ID. # str | Workflow execution ID. - try: - # Get Workflow Execution - - results = WorkflowsApi(api_client).get_workflow_execution(id=id) - # Below is a request that includes all optional parameters - # results = WorkflowsApi(api_client).get_workflow_execution(id) - print("The response of WorkflowsApi->get_workflow_execution:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkflowsApi->get_workflow_execution: %s\n" % e) + id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Workflow execution ID. # str | Workflow execution ID. + try: + # Get Workflow Execution + + results = WorkflowsApi(api_client).get_workflow_execution(id=id) + # Below is a request that includes all optional parameters + # results = WorkflowsApi(api_client).get_workflow_execution(id) + print("The response of WorkflowsApi->get_workflow_execution:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkflowsApi->get_workflow_execution: %s\n" % e) - path: /workflow-executions/{id}/history method: GET xCodeSample: @@ -11164,23 +10827,22 @@ from sailpoint.v3.api.workflows_api import WorkflowsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.workflow_execution_event import WorkflowExecutionEvent - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Id of the workflow execution # str | Id of the workflow execution - try: - # Get Workflow Execution History - - results = WorkflowsApi(api_client).get_workflow_execution_history(id=id) - # Below is a request that includes all optional parameters - # results = WorkflowsApi(api_client).get_workflow_execution_history(id) - print("The response of WorkflowsApi->get_workflow_execution_history:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkflowsApi->get_workflow_execution_history: %s\n" % e) + id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Id of the workflow execution # str | Id of the workflow execution + try: + # Get Workflow Execution History + + results = WorkflowsApi(api_client).get_workflow_execution_history(id=id) + # Below is a request that includes all optional parameters + # results = WorkflowsApi(api_client).get_workflow_execution_history(id) + print("The response of WorkflowsApi->get_workflow_execution_history:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkflowsApi->get_workflow_execution_history: %s\n" % e) - path: /workflows/{id}/executions method: GET xCodeSample: @@ -11190,27 +10852,26 @@ from sailpoint.v3.api.workflows_api import WorkflowsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.workflow_execution import WorkflowExecution - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Workflow ID. # str | Workflow ID. - 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 = 'status eq \"Failed\"' # 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: **start_time**: *eq, lt, le, gt, ge* **status**: *eq* (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: **start_time**: *eq, lt, le, gt, ge* **status**: *eq* (optional) - try: - # List Workflow Executions - - results = WorkflowsApi(api_client).get_workflow_executions(id=id) - # Below is a request that includes all optional parameters - # results = WorkflowsApi(api_client).get_workflow_executions(id, limit, offset, count, filters) - print("The response of WorkflowsApi->get_workflow_executions:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkflowsApi->get_workflow_executions: %s\n" % e) + id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Workflow ID. # str | Workflow ID. + 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 = 'status eq \"Failed\"' # 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: **start_time**: *eq, lt, le, gt, ge* **status**: *eq* (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: **start_time**: *eq, lt, le, gt, ge* **status**: *eq* (optional) + try: + # List Workflow Executions + + results = WorkflowsApi(api_client).get_workflow_executions(id=id) + # Below is a request that includes all optional parameters + # results = WorkflowsApi(api_client).get_workflow_executions(id, limit, offset, count, filters) + print("The response of WorkflowsApi->get_workflow_executions:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkflowsApi->get_workflow_executions: %s\n" % e) - path: /workflow-library method: GET xCodeSample: @@ -11220,24 +10881,23 @@ from sailpoint.v3.api.workflows_api import WorkflowsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.list_complete_workflow_library200_response_inner import ListCompleteWorkflowLibrary200ResponseInner - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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) - try: - # List Complete Workflow Library - - results = WorkflowsApi(api_client).list_complete_workflow_library() - # Below is a request that includes all optional parameters - # results = WorkflowsApi(api_client).list_complete_workflow_library(limit, offset) - print("The response of WorkflowsApi->list_complete_workflow_library:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkflowsApi->list_complete_workflow_library: %s\n" % e) + 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) + try: + # List Complete Workflow Library + + results = WorkflowsApi(api_client).list_complete_workflow_library() + # Below is a request that includes all optional parameters + # results = WorkflowsApi(api_client).list_complete_workflow_library(limit, offset) + print("The response of WorkflowsApi->list_complete_workflow_library:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkflowsApi->list_complete_workflow_library: %s\n" % e) - path: /workflow-library/actions method: GET xCodeSample: @@ -11247,25 +10907,24 @@ from sailpoint.v3.api.workflows_api import WorkflowsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.workflow_library_action import WorkflowLibraryAction - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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) - filters = 'id eq \"sp:create-campaign\"' # 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* (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* (optional) - try: - # List Workflow Library Actions - - results = WorkflowsApi(api_client).list_workflow_library_actions() - # Below is a request that includes all optional parameters - # results = WorkflowsApi(api_client).list_workflow_library_actions(limit, offset, filters) - print("The response of WorkflowsApi->list_workflow_library_actions:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkflowsApi->list_workflow_library_actions: %s\n" % e) + 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) + filters = 'id eq \"sp:create-campaign\"' # 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* (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* (optional) + try: + # List Workflow Library Actions + + results = WorkflowsApi(api_client).list_workflow_library_actions() + # Below is a request that includes all optional parameters + # results = WorkflowsApi(api_client).list_workflow_library_actions(limit, offset, filters) + print("The response of WorkflowsApi->list_workflow_library_actions:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkflowsApi->list_workflow_library_actions: %s\n" % e) - path: /workflow-library/operators method: GET xCodeSample: @@ -11275,22 +10934,21 @@ from sailpoint.v3.api.workflows_api import WorkflowsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.workflow_library_operator import WorkflowLibraryOperator - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - try: - # List Workflow Library Operators - - results = WorkflowsApi(api_client).list_workflow_library_operators() - # Below is a request that includes all optional parameters - # results = WorkflowsApi(api_client).list_workflow_library_operators() - print("The response of WorkflowsApi->list_workflow_library_operators:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkflowsApi->list_workflow_library_operators: %s\n" % e) + try: + # List Workflow Library Operators + + results = WorkflowsApi(api_client).list_workflow_library_operators() + # Below is a request that includes all optional parameters + # results = WorkflowsApi(api_client).list_workflow_library_operators() + print("The response of WorkflowsApi->list_workflow_library_operators:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkflowsApi->list_workflow_library_operators: %s\n" % e) - path: /workflow-library/triggers method: GET xCodeSample: @@ -11300,25 +10958,24 @@ from sailpoint.v3.api.workflows_api import WorkflowsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.workflow_library_trigger import WorkflowLibraryTrigger - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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) - filters = 'id eq \"idn:identity-attributes-changed\"' # 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* (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* (optional) - try: - # List Workflow Library Triggers - - results = WorkflowsApi(api_client).list_workflow_library_triggers() - # Below is a request that includes all optional parameters - # results = WorkflowsApi(api_client).list_workflow_library_triggers(limit, offset, filters) - print("The response of WorkflowsApi->list_workflow_library_triggers:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkflowsApi->list_workflow_library_triggers: %s\n" % e) + 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) + filters = 'id eq \"idn:identity-attributes-changed\"' # 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* (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* (optional) + try: + # List Workflow Library Triggers + + results = WorkflowsApi(api_client).list_workflow_library_triggers() + # Below is a request that includes all optional parameters + # results = WorkflowsApi(api_client).list_workflow_library_triggers(limit, offset, filters) + print("The response of WorkflowsApi->list_workflow_library_triggers:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkflowsApi->list_workflow_library_triggers: %s\n" % e) - path: /workflows method: GET xCodeSample: @@ -11328,22 +10985,21 @@ from sailpoint.v3.api.workflows_api import WorkflowsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.workflow import Workflow - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - try: - # List Workflows - - results = WorkflowsApi(api_client).list_workflows() - # Below is a request that includes all optional parameters - # results = WorkflowsApi(api_client).list_workflows() - print("The response of WorkflowsApi->list_workflows:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkflowsApi->list_workflows: %s\n" % e) + try: + # List Workflows + + results = WorkflowsApi(api_client).list_workflows() + # Below is a request that includes all optional parameters + # results = WorkflowsApi(api_client).list_workflows() + print("The response of WorkflowsApi->list_workflows:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkflowsApi->list_workflows: %s\n" % e) - path: /workflows/{id} method: PATCH xCodeSample: @@ -11354,24 +11010,23 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.json_patch_operation import JsonPatchOperation from sailpoint.v3.models.workflow import Workflow - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Id of the Workflow # str | Id of the Workflow - json_patch_operation = '''[{op=replace, path=/name, value=Send Email}, {op=replace, path=/owner, value={type=IDENTITY, id=2c91808568c529c60168cca6f90c1313, name=William Wilson}}, {op=replace, path=/description, value=Send an email to the identity who's attributes changed.}, {op=replace, path=/enabled, value=false}, {op=replace, path=/definition, value={start=Send Email Test, steps={Send Email={actionId=sp:send-email, attributes={body=This is a test, from=sailpoint@sailpoint.com, recipientId.$=$.identity.id, subject=test}, nextStep=success, selectResult=null, type=action}, success={type=success}}}}, {op=replace, path=/trigger, value={type=EVENT, attributes={id=idn:identity-attributes-changed}}}]''' # List[JsonPatchOperation] | - try: - # Patch Workflow - new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) - results = WorkflowsApi(api_client).patch_workflow(id=id, json_patch_operation=new_json_patch_operation) - # Below is a request that includes all optional parameters - # results = WorkflowsApi(api_client).patch_workflow(id, new_json_patch_operation) - print("The response of WorkflowsApi->patch_workflow:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkflowsApi->patch_workflow: %s\n" % e) + id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Id of the Workflow # str | Id of the Workflow + json_patch_operation = '''[{op=replace, path=/name, value=Send Email}, {op=replace, path=/owner, value={type=IDENTITY, id=2c91808568c529c60168cca6f90c1313, name=William Wilson}}, {op=replace, path=/description, value=Send an email to the identity who's attributes changed.}, {op=replace, path=/enabled, value=false}, {op=replace, path=/definition, value={start=Send Email Test, steps={Send Email={actionId=sp:send-email, attributes={body=This is a test, from=sailpoint@sailpoint.com, recipientId.$=$.identity.id, subject=test}, nextStep=success, selectResult=null, type=action}, success={type=success}}}}, {op=replace, path=/trigger, value={type=EVENT, attributes={id=idn:identity-attributes-changed}}}]''' # List[JsonPatchOperation] | + try: + # Patch Workflow + new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation) + results = WorkflowsApi(api_client).patch_workflow(id=id, json_patch_operation=new_json_patch_operation) + # Below is a request that includes all optional parameters + # results = WorkflowsApi(api_client).patch_workflow(id, new_json_patch_operation) + print("The response of WorkflowsApi->patch_workflow:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkflowsApi->patch_workflow: %s\n" % e) - path: /workflows/{id} method: PUT xCodeSample: @@ -11382,14 +11037,13 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.workflow import Workflow from sailpoint.v3.models.workflow_body import WorkflowBody - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Id of the Workflow # str | Id of the Workflow - workflow_body = '''{ + id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Id of the Workflow # str | Id of the Workflow + workflow_body = '''{ "owner" : { "name" : "William Wilson", "id" : "2c91808568c529c60168cca6f90c1313", @@ -11429,16 +11083,16 @@ }, "enabled" : false }''' # WorkflowBody | - try: - # Update Workflow - new_workflow_body = WorkflowBody.from_json(workflow_body) - results = WorkflowsApi(api_client).put_workflow(id=id, workflow_body=new_workflow_body) - # Below is a request that includes all optional parameters - # results = WorkflowsApi(api_client).put_workflow(id, new_workflow_body) - print("The response of WorkflowsApi->put_workflow:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkflowsApi->put_workflow: %s\n" % e) + try: + # Update Workflow + new_workflow_body = WorkflowBody.from_json(workflow_body) + results = WorkflowsApi(api_client).put_workflow(id=id, workflow_body=new_workflow_body) + # Below is a request that includes all optional parameters + # results = WorkflowsApi(api_client).put_workflow(id, new_workflow_body) + print("The response of WorkflowsApi->put_workflow:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkflowsApi->put_workflow: %s\n" % e) - path: /workflows/execute/external/{id}/test method: POST xCodeSample: @@ -11449,24 +11103,23 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.test_external_execute_workflow200_response import TestExternalExecuteWorkflow200Response from sailpoint.v3.models.test_external_execute_workflow_request import TestExternalExecuteWorkflowRequest - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Id of the workflow # str | Id of the workflow - test_external_execute_workflow_request = '''sailpoint.v3.TestExternalExecuteWorkflowRequest()''' # TestExternalExecuteWorkflowRequest | (optional) - try: - # Test Workflow via External Trigger - - results = WorkflowsApi(api_client).test_external_execute_workflow(id=id) - # Below is a request that includes all optional parameters - # results = WorkflowsApi(api_client).test_external_execute_workflow(id, new_test_external_execute_workflow_request) - print("The response of WorkflowsApi->test_external_execute_workflow:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkflowsApi->test_external_execute_workflow: %s\n" % e) + id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Id of the workflow # str | Id of the workflow + test_external_execute_workflow_request = '''sailpoint.v3.TestExternalExecuteWorkflowRequest()''' # TestExternalExecuteWorkflowRequest | (optional) + try: + # Test Workflow via External Trigger + + results = WorkflowsApi(api_client).test_external_execute_workflow(id=id) + # Below is a request that includes all optional parameters + # results = WorkflowsApi(api_client).test_external_execute_workflow(id, new_test_external_execute_workflow_request) + print("The response of WorkflowsApi->test_external_execute_workflow:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkflowsApi->test_external_execute_workflow: %s\n" % e) - path: /workflows/{id}/test method: POST xCodeSample: @@ -11477,24 +11130,23 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.test_workflow200_response import TestWorkflow200Response from sailpoint.v3.models.test_workflow_request import TestWorkflowRequest - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Id of the workflow # str | Id of the workflow - test_workflow_request = '''{input={identity={id=ee769173319b41d19ccec6cea52f237b, name=john.doe, type=IDENTITY}, changes=[{attribute=department, oldValue=sales, newValue=marketing}, {attribute=manager, oldValue={id=ee769173319b41d19ccec6c235423237b, name=nice.guy, type=IDENTITY}, newValue={id=ee769173319b41d19ccec6c235423236c, name=mean.guy, type=IDENTITY}}, {attribute=email, oldValue=john.doe@hotmail.com, newValue=john.doe@gmail.com}]}}''' # TestWorkflowRequest | - try: - # Test Workflow By Id - new_test_workflow_request = TestWorkflowRequest.from_json(test_workflow_request) - results = WorkflowsApi(api_client).test_workflow(id=id, test_workflow_request=new_test_workflow_request) - # Below is a request that includes all optional parameters - # results = WorkflowsApi(api_client).test_workflow(id, new_test_workflow_request) - print("The response of WorkflowsApi->test_workflow:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkflowsApi->test_workflow: %s\n" % e) + id = 'c17bea3a-574d-453c-9e04-4365fbf5af0b' # str | Id of the workflow # str | Id of the workflow + test_workflow_request = '''{input={identity={id=ee769173319b41d19ccec6cea52f237b, name=john.doe, type=IDENTITY}, changes=[{attribute=department, oldValue=sales, newValue=marketing}, {attribute=manager, oldValue={id=ee769173319b41d19ccec6c235423237b, name=nice.guy, type=IDENTITY}, newValue={id=ee769173319b41d19ccec6c235423236c, name=mean.guy, type=IDENTITY}}, {attribute=email, oldValue=john.doe@hotmail.com, newValue=john.doe@gmail.com}]}}''' # TestWorkflowRequest | + try: + # Test Workflow By Id + new_test_workflow_request = TestWorkflowRequest.from_json(test_workflow_request) + results = WorkflowsApi(api_client).test_workflow(id=id, test_workflow_request=new_test_workflow_request) + # Below is a request that includes all optional parameters + # results = WorkflowsApi(api_client).test_workflow(id, new_test_workflow_request) + print("The response of WorkflowsApi->test_workflow:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkflowsApi->test_workflow: %s\n" % e) - path: /work-items/{id}/approve/{approvalItemId} method: POST xCodeSample: @@ -11504,24 +11156,23 @@ from sailpoint.v3.api.work_items_api import WorkItemsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.work_items import WorkItems - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the work item # str | The ID of the work item - approval_item_id = '1211bcaa32112bcef6122adb21cef1ac' # str | The ID of the approval item. # str | The ID of the approval item. - try: - # Approve an Approval Item - - results = WorkItemsApi(api_client).approve_approval_item(id=id, approval_item_id=approval_item_id) - # Below is a request that includes all optional parameters - # results = WorkItemsApi(api_client).approve_approval_item(id, approval_item_id) - print("The response of WorkItemsApi->approve_approval_item:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkItemsApi->approve_approval_item: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the work item # str | The ID of the work item + approval_item_id = '1211bcaa32112bcef6122adb21cef1ac' # str | The ID of the approval item. # str | The ID of the approval item. + try: + # Approve an Approval Item + + results = WorkItemsApi(api_client).approve_approval_item(id=id, approval_item_id=approval_item_id) + # Below is a request that includes all optional parameters + # results = WorkItemsApi(api_client).approve_approval_item(id, approval_item_id) + print("The response of WorkItemsApi->approve_approval_item:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkItemsApi->approve_approval_item: %s\n" % e) - path: /work-items/bulk-approve/{id} method: POST xCodeSample: @@ -11531,23 +11182,22 @@ from sailpoint.v3.api.work_items_api import WorkItemsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.work_items import WorkItems - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the work item # str | The ID of the work item - try: - # Bulk approve Approval Items - - results = WorkItemsApi(api_client).approve_approval_items_in_bulk(id=id) - # Below is a request that includes all optional parameters - # results = WorkItemsApi(api_client).approve_approval_items_in_bulk(id) - print("The response of WorkItemsApi->approve_approval_items_in_bulk:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkItemsApi->approve_approval_items_in_bulk: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the work item # str | The ID of the work item + try: + # Bulk approve Approval Items + + results = WorkItemsApi(api_client).approve_approval_items_in_bulk(id=id) + # Below is a request that includes all optional parameters + # results = WorkItemsApi(api_client).approve_approval_items_in_bulk(id) + print("The response of WorkItemsApi->approve_approval_items_in_bulk:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkItemsApi->approve_approval_items_in_bulk: %s\n" % e) - path: /work-items/{id} method: POST xCodeSample: @@ -11557,24 +11207,23 @@ from sailpoint.v3.api.work_items_api import WorkItemsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.work_items import WorkItems - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the work item # str | The ID of the work item - body = 'body_example' # str | Body is the request payload to create form definition request (optional) # str | Body is the request payload to create form definition request (optional) - try: - # Complete a Work Item - - results = WorkItemsApi(api_client).complete_work_item(id=id) - # Below is a request that includes all optional parameters - # results = WorkItemsApi(api_client).complete_work_item(id, new_body) - print("The response of WorkItemsApi->complete_work_item:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkItemsApi->complete_work_item: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the work item # str | The ID of the work item + body = 'body_example' # str | Body is the request payload to create form definition request (optional) # str | Body is the request payload to create form definition request (optional) + try: + # Complete a Work Item + + results = WorkItemsApi(api_client).complete_work_item(id=id) + # Below is a request that includes all optional parameters + # results = WorkItemsApi(api_client).complete_work_item(id, new_body) + print("The response of WorkItemsApi->complete_work_item:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkItemsApi->complete_work_item: %s\n" % e) - path: /work-items/completed method: GET xCodeSample: @@ -11584,26 +11233,25 @@ from sailpoint.v3.api.work_items_api import WorkItemsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.work_items import WorkItems - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - owner_id = '1211bcaa32112bcef6122adb21cef1ac' # str | The id of the owner of the work item list being requested. Either an admin, or the owning/current user must make this request. (optional) # str | The id of the owner of the work item list being requested. Either an admin, or the owning/current user must make this request. (optional) - 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) - try: - # Completed Work Items - - results = WorkItemsApi(api_client).get_completed_work_items() - # Below is a request that includes all optional parameters - # results = WorkItemsApi(api_client).get_completed_work_items(owner_id, limit, offset, count) - print("The response of WorkItemsApi->get_completed_work_items:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkItemsApi->get_completed_work_items: %s\n" % e) + owner_id = '1211bcaa32112bcef6122adb21cef1ac' # str | The id of the owner of the work item list being requested. Either an admin, or the owning/current user must make this request. (optional) # str | The id of the owner of the work item list being requested. Either an admin, or the owning/current user must make this request. (optional) + 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) + try: + # Completed Work Items + + results = WorkItemsApi(api_client).get_completed_work_items() + # Below is a request that includes all optional parameters + # results = WorkItemsApi(api_client).get_completed_work_items(owner_id, limit, offset, count) + print("The response of WorkItemsApi->get_completed_work_items:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkItemsApi->get_completed_work_items: %s\n" % e) - path: /work-items/completed/count method: GET xCodeSample: @@ -11613,23 +11261,22 @@ from sailpoint.v3.api.work_items_api import WorkItemsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.work_items_count import WorkItemsCount - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - owner_id = '1211bcaa32112bcef6122adb21cef1ac' # str | ID of the work item owner. (optional) # str | ID of the work item owner. (optional) - try: - # Count Completed Work Items - - results = WorkItemsApi(api_client).get_count_completed_work_items() - # Below is a request that includes all optional parameters - # results = WorkItemsApi(api_client).get_count_completed_work_items(owner_id) - print("The response of WorkItemsApi->get_count_completed_work_items:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkItemsApi->get_count_completed_work_items: %s\n" % e) + owner_id = '1211bcaa32112bcef6122adb21cef1ac' # str | ID of the work item owner. (optional) # str | ID of the work item owner. (optional) + try: + # Count Completed Work Items + + results = WorkItemsApi(api_client).get_count_completed_work_items() + # Below is a request that includes all optional parameters + # results = WorkItemsApi(api_client).get_count_completed_work_items(owner_id) + print("The response of WorkItemsApi->get_count_completed_work_items:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkItemsApi->get_count_completed_work_items: %s\n" % e) - path: /work-items/count method: GET xCodeSample: @@ -11639,23 +11286,22 @@ from sailpoint.v3.api.work_items_api import WorkItemsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.work_items_count import WorkItemsCount - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - owner_id = 'ef38f94347e94562b5bb8424a56397d8' # str | ID of the work item owner. (optional) # str | ID of the work item owner. (optional) - try: - # Count Work Items - - results = WorkItemsApi(api_client).get_count_work_items() - # Below is a request that includes all optional parameters - # results = WorkItemsApi(api_client).get_count_work_items(owner_id) - print("The response of WorkItemsApi->get_count_work_items:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkItemsApi->get_count_work_items: %s\n" % e) + owner_id = 'ef38f94347e94562b5bb8424a56397d8' # str | ID of the work item owner. (optional) # str | ID of the work item owner. (optional) + try: + # Count Work Items + + results = WorkItemsApi(api_client).get_count_work_items() + # Below is a request that includes all optional parameters + # results = WorkItemsApi(api_client).get_count_work_items(owner_id) + print("The response of WorkItemsApi->get_count_work_items:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkItemsApi->get_count_work_items: %s\n" % e) - path: /work-items/{id} method: GET xCodeSample: @@ -11665,23 +11311,22 @@ from sailpoint.v3.api.work_items_api import WorkItemsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.work_items import WorkItems - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = '2c9180835d191a86015d28455b4a2329' # str | ID of the work item. # str | ID of the work item. - try: - # Get a Work Item - - results = WorkItemsApi(api_client).get_work_item(id=id) - # Below is a request that includes all optional parameters - # results = WorkItemsApi(api_client).get_work_item(id) - print("The response of WorkItemsApi->get_work_item:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkItemsApi->get_work_item: %s\n" % e) + id = '2c9180835d191a86015d28455b4a2329' # str | ID of the work item. # str | ID of the work item. + try: + # Get a Work Item + + results = WorkItemsApi(api_client).get_work_item(id=id) + # Below is a request that includes all optional parameters + # results = WorkItemsApi(api_client).get_work_item(id) + print("The response of WorkItemsApi->get_work_item:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkItemsApi->get_work_item: %s\n" % e) - path: /work-items/summary method: GET xCodeSample: @@ -11691,23 +11336,22 @@ from sailpoint.v3.api.work_items_api import WorkItemsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.work_items_summary import WorkItemsSummary - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - owner_id = '1211bcaa32112bcef6122adb21cef1ac' # str | ID of the work item owner. (optional) # str | ID of the work item owner. (optional) - try: - # Work Items Summary - - results = WorkItemsApi(api_client).get_work_items_summary() - # Below is a request that includes all optional parameters - # results = WorkItemsApi(api_client).get_work_items_summary(owner_id) - print("The response of WorkItemsApi->get_work_items_summary:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkItemsApi->get_work_items_summary: %s\n" % e) + owner_id = '1211bcaa32112bcef6122adb21cef1ac' # str | ID of the work item owner. (optional) # str | ID of the work item owner. (optional) + try: + # Work Items Summary + + results = WorkItemsApi(api_client).get_work_items_summary() + # Below is a request that includes all optional parameters + # results = WorkItemsApi(api_client).get_work_items_summary(owner_id) + print("The response of WorkItemsApi->get_work_items_summary:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkItemsApi->get_work_items_summary: %s\n" % e) - path: /work-items method: GET xCodeSample: @@ -11717,26 +11361,25 @@ from sailpoint.v3.api.work_items_api import WorkItemsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.work_items import WorkItems - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - 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) - owner_id = '1211bcaa32112bcef6122adb21cef1ac' # str | ID of the work item owner. (optional) # str | ID of the work item owner. (optional) - try: - # List Work Items - - results = WorkItemsApi(api_client).list_work_items() - # Below is a request that includes all optional parameters - # results = WorkItemsApi(api_client).list_work_items(limit, offset, count, owner_id) - print("The response of WorkItemsApi->list_work_items:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkItemsApi->list_work_items: %s\n" % e) + 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) + owner_id = '1211bcaa32112bcef6122adb21cef1ac' # str | ID of the work item owner. (optional) # str | ID of the work item owner. (optional) + try: + # List Work Items + + results = WorkItemsApi(api_client).list_work_items() + # Below is a request that includes all optional parameters + # results = WorkItemsApi(api_client).list_work_items(limit, offset, count, owner_id) + print("The response of WorkItemsApi->list_work_items:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkItemsApi->list_work_items: %s\n" % e) - path: /work-items/{id}/reject/{approvalItemId} method: POST xCodeSample: @@ -11746,24 +11389,23 @@ from sailpoint.v3.api.work_items_api import WorkItemsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.work_items import WorkItems - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the work item # str | The ID of the work item - approval_item_id = '1211bcaa32112bcef6122adb21cef1ac' # str | The ID of the approval item. # str | The ID of the approval item. - try: - # Reject an Approval Item - - results = WorkItemsApi(api_client).reject_approval_item(id=id, approval_item_id=approval_item_id) - # Below is a request that includes all optional parameters - # results = WorkItemsApi(api_client).reject_approval_item(id, approval_item_id) - print("The response of WorkItemsApi->reject_approval_item:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkItemsApi->reject_approval_item: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the work item # str | The ID of the work item + approval_item_id = '1211bcaa32112bcef6122adb21cef1ac' # str | The ID of the approval item. # str | The ID of the approval item. + try: + # Reject an Approval Item + + results = WorkItemsApi(api_client).reject_approval_item(id=id, approval_item_id=approval_item_id) + # Below is a request that includes all optional parameters + # results = WorkItemsApi(api_client).reject_approval_item(id, approval_item_id) + print("The response of WorkItemsApi->reject_approval_item:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkItemsApi->reject_approval_item: %s\n" % e) - path: /work-items/bulk-reject/{id} method: POST xCodeSample: @@ -11773,23 +11415,22 @@ from sailpoint.v3.api.work_items_api import WorkItemsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.work_items import WorkItems - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the work item # str | The ID of the work item - try: - # Bulk reject Approval Items - - results = WorkItemsApi(api_client).reject_approval_items_in_bulk(id=id) - # Below is a request that includes all optional parameters - # results = WorkItemsApi(api_client).reject_approval_items_in_bulk(id) - print("The response of WorkItemsApi->reject_approval_items_in_bulk:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkItemsApi->reject_approval_items_in_bulk: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the work item # str | The ID of the work item + try: + # Bulk reject Approval Items + + results = WorkItemsApi(api_client).reject_approval_items_in_bulk(id=id) + # Below is a request that includes all optional parameters + # results = WorkItemsApi(api_client).reject_approval_items_in_bulk(id) + print("The response of WorkItemsApi->reject_approval_items_in_bulk:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkItemsApi->reject_approval_items_in_bulk: %s\n" % e) - path: /work-items/{id}/forward method: POST xCodeSample: @@ -11799,26 +11440,25 @@ from sailpoint.v3.api.work_items_api import WorkItemsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.work_item_forward import WorkItemForward - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the work item # str | The ID of the work item - work_item_forward = '''{ + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the work item # str | The ID of the work item + work_item_forward = '''{ "targetOwnerId" : "2c9180835d2e5168015d32f890ca1581", "comment" : "I'm going on vacation.", "sendNotifications" : true }''' # WorkItemForward | - try: - # Forward a Work Item - new_work_item_forward = WorkItemForward.from_json(work_item_forward) - WorkItemsApi(api_client).send_work_item_forward(id=id, work_item_forward=new_work_item_forward) - # Below is a request that includes all optional parameters - # WorkItemsApi(api_client).send_work_item_forward(id, new_work_item_forward) - except Exception as e: - print("Exception when calling WorkItemsApi->send_work_item_forward: %s\n" % e) + try: + # Forward a Work Item + new_work_item_forward = WorkItemForward.from_json(work_item_forward) + WorkItemsApi(api_client).send_work_item_forward(id=id, work_item_forward=new_work_item_forward) + # Below is a request that includes all optional parameters + # WorkItemsApi(api_client).send_work_item_forward(id, new_work_item_forward) + except Exception as e: + print("Exception when calling WorkItemsApi->send_work_item_forward: %s\n" % e) - path: /work-items/{id}/submit-account-selection method: POST xCodeSample: @@ -11828,21 +11468,20 @@ from sailpoint.v3.api.work_items_api import WorkItemsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.work_items import WorkItems - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() with ApiClient(configuration) as api_client: - id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the work item # str | The ID of the work item - request_body = {fieldName=fieldValue} # Dict[str, object] | Account Selection Data map, keyed on fieldName # Dict[str, object] | Account Selection Data map, keyed on fieldName - try: - # Submit Account Selections - new_request_body = RequestBody.from_json(request_body) - results = WorkItemsApi(api_client).submit_account_selection(id=id, request_body=new_request_body) - # Below is a request that includes all optional parameters - # results = WorkItemsApi(api_client).submit_account_selection(id, new_request_body) - print("The response of WorkItemsApi->submit_account_selection:\n") - pprint(results) - except Exception as e: - print("Exception when calling WorkItemsApi->submit_account_selection: %s\n" % e) + id = 'ef38f94347e94562b5bb8424a56397d8' # str | The ID of the work item # str | The ID of the work item + request_body = {fieldName=fieldValue} # Dict[str, object] | Account Selection Data map, keyed on fieldName # Dict[str, object] | Account Selection Data map, keyed on fieldName + try: + # Submit Account Selections + new_request_body = RequestBody.from_json(request_body) + results = WorkItemsApi(api_client).submit_account_selection(id=id, request_body=new_request_body) + # Below is a request that includes all optional parameters + # results = WorkItemsApi(api_client).submit_account_selection(id, new_request_body) + print("The response of WorkItemsApi->submit_account_selection:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + except Exception as e: + print("Exception when calling WorkItemsApi->submit_account_selection: %s\n" % e) diff --git a/sailpoint/v3/docs/Methods/AccessProfilesApi.md b/sailpoint/v3/docs/Methods/AccessProfilesApi.md index a0ed2f253..21d3d47fd 100644 --- a/sailpoint/v3/docs/Methods/AccessProfilesApi.md +++ b/sailpoint/v3/docs/Methods/AccessProfilesApi.md @@ -95,7 +95,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.access_profiles_api import AccessProfilesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.access_profile import AccessProfile -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -194,7 +193,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccessProfilesApi(api_client).create_access_profile(new_access_profile) print("The response of AccessProfilesApi->create_access_profile:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccessProfilesApi->create_access_profile: %s\n" % e) ``` @@ -241,7 +240,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v3.api.access_profiles_api import AccessProfilesApi from sailpoint.v3.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -304,7 +302,6 @@ from sailpoint.v3.api.access_profiles_api import AccessProfilesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.access_profile_bulk_delete_request import AccessProfileBulkDeleteRequest from sailpoint.v3.models.access_profile_bulk_delete_response import AccessProfileBulkDeleteResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -322,7 +319,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccessProfilesApi(api_client).delete_access_profiles_in_bulk(new_access_profile_bulk_delete_request) print("The response of AccessProfilesApi->delete_access_profiles_in_bulk:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccessProfilesApi->delete_access_profiles_in_bulk: %s\n" % e) ``` @@ -366,7 +363,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.access_profiles_api import AccessProfilesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.access_profile import AccessProfile -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -381,7 +377,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccessProfilesApi(api_client).get_access_profile(id) print("The response of AccessProfilesApi->get_access_profile:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccessProfilesApi->get_access_profile: %s\n" % e) ``` @@ -432,7 +428,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.access_profiles_api import AccessProfilesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.entitlement import Entitlement -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -452,7 +447,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccessProfilesApi(api_client).get_access_profile_entitlements(id, limit, offset, count, filters, sorters) print("The response of AccessProfilesApi->get_access_profile_entitlements:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccessProfilesApi->get_access_profile_entitlements: %s\n" % e) ``` @@ -504,7 +499,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.access_profiles_api import AccessProfilesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.access_profile import AccessProfile -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -526,7 +520,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccessProfilesApi(api_client).list_access_profiles(for_subadmin, limit, offset, count, filters, sorters, for_segment_ids, include_unsegmented) print("The response of AccessProfilesApi->list_access_profiles:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccessProfilesApi->list_access_profiles: %s\n" % e) ``` @@ -601,7 +595,6 @@ from sailpoint.v3.api.access_profiles_api import AccessProfilesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.access_profile import AccessProfile from sailpoint.v3.models.json_patch_operation import JsonPatchOperation -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -617,7 +610,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccessProfilesApi(api_client).patch_access_profile(id, new_json_patch_operation) print("The response of AccessProfilesApi->patch_access_profile:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccessProfilesApi->patch_access_profile: %s\n" % e) ``` diff --git a/sailpoint/v3/docs/Methods/AccessRequestApprovalsApi.md b/sailpoint/v3/docs/Methods/AccessRequestApprovalsApi.md index 4f2ec13e0..df90b9881 100644 --- a/sailpoint/v3/docs/Methods/AccessRequestApprovalsApi.md +++ b/sailpoint/v3/docs/Methods/AccessRequestApprovalsApi.md @@ -77,7 +77,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.access_request_approvals_api import AccessRequestApprovalsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.comment_dto import CommentDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -101,7 +100,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccessRequestApprovalsApi(api_client).approve_access_request(approval_id, new_comment_dto) print("The response of AccessRequestApprovalsApi->approve_access_request:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccessRequestApprovalsApi->approve_access_request: %s\n" % e) ``` @@ -147,7 +146,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.access_request_approvals_api import AccessRequestApprovalsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.forward_approval_dto import ForwardApprovalDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -166,7 +164,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccessRequestApprovalsApi(api_client).forward_access_request(approval_id, new_forward_approval_dto) print("The response of AccessRequestApprovalsApi->forward_access_request:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccessRequestApprovalsApi->forward_access_request: %s\n" % e) ``` @@ -211,7 +209,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.access_request_approvals_api import AccessRequestApprovalsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.approval_summary import ApprovalSummary -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -227,7 +224,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccessRequestApprovalsApi(api_client).get_access_request_approval_summary(owner_id, from_date) print("The response of AccessRequestApprovalsApi->get_access_request_approval_summary:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccessRequestApprovalsApi->get_access_request_approval_summary: %s\n" % e) ``` @@ -276,7 +273,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.access_request_approvals_api import AccessRequestApprovalsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.completed_approval import CompletedApproval -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -296,7 +292,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccessRequestApprovalsApi(api_client).list_completed_approvals(owner_id, limit, offset, count, filters, sorters) print("The response of AccessRequestApprovalsApi->list_completed_approvals:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccessRequestApprovalsApi->list_completed_approvals: %s\n" % e) ``` @@ -345,7 +341,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.access_request_approvals_api import AccessRequestApprovalsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.pending_approval import PendingApproval -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -365,7 +360,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccessRequestApprovalsApi(api_client).list_pending_approvals(owner_id, limit, offset, count, filters, sorters) print("The response of AccessRequestApprovalsApi->list_pending_approvals:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccessRequestApprovalsApi->list_pending_approvals: %s\n" % e) ``` @@ -411,7 +406,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.access_request_approvals_api import AccessRequestApprovalsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.comment_dto import CommentDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -435,7 +429,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccessRequestApprovalsApi(api_client).reject_access_request(approval_id, new_comment_dto) print("The response of AccessRequestApprovalsApi->reject_access_request:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccessRequestApprovalsApi->reject_access_request: %s\n" % e) ``` diff --git a/sailpoint/v3/docs/Methods/AccessRequestsApi.md b/sailpoint/v3/docs/Methods/AccessRequestsApi.md index a45591408..cc03280e3 100644 --- a/sailpoint/v3/docs/Methods/AccessRequestsApi.md +++ b/sailpoint/v3/docs/Methods/AccessRequestsApi.md @@ -74,7 +74,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.access_requests_api import AccessRequestsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.cancel_access_request import CancelAccessRequest -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -92,7 +91,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccessRequestsApi(api_client).cancel_access_request(new_cancel_access_request) print("The response of AccessRequestsApi->cancel_access_request:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccessRequestsApi->cancel_access_request: %s\n" % e) ``` @@ -167,7 +166,6 @@ from sailpoint.v3.api.access_requests_api import AccessRequestsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.access_request import AccessRequest from sailpoint.v3.models.access_request_response import AccessRequestResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -235,7 +233,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccessRequestsApi(api_client).create_access_request(new_access_request) print("The response of AccessRequestsApi->create_access_request:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccessRequestsApi->create_access_request: %s\n" % e) ``` @@ -276,7 +274,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.access_requests_api import AccessRequestsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.access_request_config import AccessRequestConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -290,7 +287,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccessRequestsApi(api_client).get_access_request_config() print("The response of AccessRequestsApi->get_access_request_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccessRequestsApi->get_access_request_config: %s\n" % e) ``` @@ -345,7 +342,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.access_requests_api import AccessRequestsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.requested_item_status import RequestedItemStatus -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -369,7 +365,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccessRequestsApi(api_client).list_access_request_status(requested_for, requested_by, regarding_identity, assigned_to, count, limit, offset, filters, sorters, request_state) print("The response of AccessRequestsApi->list_access_request_status:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccessRequestsApi->list_access_request_status: %s\n" % e) ``` @@ -413,7 +409,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.access_requests_api import AccessRequestsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.access_request_config import AccessRequestConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -453,7 +448,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccessRequestsApi(api_client).set_access_request_config(new_access_request_config) print("The response of AccessRequestsApi->set_access_request_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccessRequestsApi->set_access_request_config: %s\n" % e) ``` diff --git a/sailpoint/v3/docs/Methods/AccountActivitiesApi.md b/sailpoint/v3/docs/Methods/AccountActivitiesApi.md index 02ebe4ad9..267f49434 100644 --- a/sailpoint/v3/docs/Methods/AccountActivitiesApi.md +++ b/sailpoint/v3/docs/Methods/AccountActivitiesApi.md @@ -88,7 +88,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.account_activities_api import AccountActivitiesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.account_activity import AccountActivity -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -103,7 +102,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccountActivitiesApi(api_client).get_account_activity(id) print("The response of AccountActivitiesApi->get_account_activity:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccountActivitiesApi->get_account_activity: %s\n" % e) ``` @@ -154,7 +153,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.account_activities_api import AccountActivitiesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.account_activity import AccountActivity -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -176,7 +174,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccountActivitiesApi(api_client).list_account_activities(requested_for, requested_by, regarding_identity, limit, offset, count, filters, sorters) print("The response of AccountActivitiesApi->list_account_activities:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccountActivitiesApi->list_account_activities: %s\n" % e) ``` diff --git a/sailpoint/v3/docs/Methods/AccountUsagesApi.md b/sailpoint/v3/docs/Methods/AccountUsagesApi.md index 51b4c0547..2c2188c67 100644 --- a/sailpoint/v3/docs/Methods/AccountUsagesApi.md +++ b/sailpoint/v3/docs/Methods/AccountUsagesApi.md @@ -60,7 +60,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.account_usages_api import AccountUsagesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.account_usage import AccountUsage -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -79,7 +78,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccountUsagesApi(api_client).get_usages_by_account_id(account_id, limit, offset, count, sorters) print("The response of AccountUsagesApi->get_usages_by_account_id:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccountUsagesApi->get_usages_by_account_id: %s\n" % e) ``` diff --git a/sailpoint/v3/docs/Methods/AccountsApi.md b/sailpoint/v3/docs/Methods/AccountsApi.md index a8bbf2537..02d13f8cc 100644 --- a/sailpoint/v3/docs/Methods/AccountsApi.md +++ b/sailpoint/v3/docs/Methods/AccountsApi.md @@ -102,7 +102,6 @@ from sailpoint.v3.api.accounts_api import AccountsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.account_attributes_create import AccountAttributesCreate from sailpoint.v3.models.accounts_async_result import AccountsAsyncResult -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -126,7 +125,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccountsApi(api_client).create_account(new_account_attributes_create) print("The response of AccountsApi->create_account:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccountsApi->create_account: %s\n" % e) ``` @@ -174,7 +173,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.accounts_api import AccountsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.accounts_async_result import AccountsAsyncResult -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -189,7 +187,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccountsApi(api_client).delete_account(id) print("The response of AccountsApi->delete_account:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccountsApi->delete_account: %s\n" % e) ``` @@ -236,7 +234,6 @@ from sailpoint.v3.api.accounts_api import AccountsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.account_toggle_request import AccountToggleRequest from sailpoint.v3.models.accounts_async_result import AccountsAsyncResult -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -255,7 +252,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccountsApi(api_client).disable_account(id, new_account_toggle_request) print("The response of AccountsApi->disable_account:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccountsApi->disable_account: %s\n" % e) ``` @@ -302,7 +299,6 @@ from sailpoint.v3.api.accounts_api import AccountsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.account_toggle_request import AccountToggleRequest from sailpoint.v3.models.accounts_async_result import AccountsAsyncResult -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -321,7 +317,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccountsApi(api_client).enable_account(id, new_account_toggle_request) print("The response of AccountsApi->enable_account:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccountsApi->enable_account: %s\n" % e) ``` @@ -366,7 +362,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.accounts_api import AccountsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.account import Account -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -381,7 +376,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccountsApi(api_client).get_account(id) print("The response of AccountsApi->get_account:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccountsApi->get_account: %s\n" % e) ``` @@ -429,7 +424,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.accounts_api import AccountsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.entitlement import Entitlement -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -447,7 +441,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccountsApi(api_client).get_account_entitlements(id, limit, offset, count) print("The response of AccountsApi->get_account_entitlements:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccountsApi->get_account_entitlements: %s\n" % e) ``` @@ -496,7 +490,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.accounts_api import AccountsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.account import Account -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -516,7 +509,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccountsApi(api_client).list_accounts(limit, offset, count, detail_level, filters, sorters) print("The response of AccountsApi->list_accounts:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccountsApi->list_accounts: %s\n" % e) ``` @@ -568,7 +561,6 @@ from sailpoint.v3.api.accounts_api import AccountsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.account_attributes import AccountAttributes from sailpoint.v3.models.accounts_async_result import AccountsAsyncResult -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -592,7 +584,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccountsApi(api_client).put_account(id, new_account_attributes) print("The response of AccountsApi->put_account:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccountsApi->put_account: %s\n" % e) ``` @@ -637,7 +629,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.accounts_api import AccountsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.accounts_async_result import AccountsAsyncResult -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -652,7 +643,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccountsApi(api_client).submit_reload_account(id) print("The response of AccountsApi->submit_reload_account:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccountsApi->submit_reload_account: %s\n" % e) ``` @@ -700,7 +691,6 @@ from sailpoint.v3.api.accounts_api import AccountsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.account_unlock_request import AccountUnlockRequest from sailpoint.v3.models.accounts_async_result import AccountsAsyncResult -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -720,7 +710,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccountsApi(api_client).unlock_account(id, new_account_unlock_request) print("The response of AccountsApi->unlock_account:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccountsApi->unlock_account: %s\n" % e) ``` @@ -775,7 +765,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v3.api.accounts_api import AccountsApi from sailpoint.v3.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -791,7 +780,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AccountsApi(api_client).update_account(id, new_request_body) print("The response of AccountsApi->update_account:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AccountsApi->update_account: %s\n" % e) ``` diff --git a/sailpoint/v3/docs/Methods/ApplicationDiscoveryApi.md b/sailpoint/v3/docs/Methods/ApplicationDiscoveryApi.md index 4b2ddcb05..642333eb3 100644 --- a/sailpoint/v3/docs/Methods/ApplicationDiscoveryApi.md +++ b/sailpoint/v3/docs/Methods/ApplicationDiscoveryApi.md @@ -62,7 +62,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.application_discovery_api import ApplicationDiscoveryApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.get_discovered_applications200_response_inner import GetDiscoveredApplications200ResponseInner -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -81,7 +80,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ApplicationDiscoveryApi(api_client).get_discovered_applications(limit, offset, detail, filter, sorters) print("The response of ApplicationDiscoveryApi->get_discovered_applications:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ApplicationDiscoveryApi->get_discovered_applications: %s\n" % e) ``` @@ -125,7 +124,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.application_discovery_api import ApplicationDiscoveryApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.manual_discover_applications_template import ManualDiscoverApplicationsTemplate -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -139,7 +137,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ApplicationDiscoveryApi(api_client).get_manual_discover_applications_csv_template() print("The response of ApplicationDiscoveryApi->get_manual_discover_applications_csv_template:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ApplicationDiscoveryApi->get_manual_discover_applications_csv_template: %s\n" % e) ``` @@ -183,7 +181,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v3.api.application_discovery_api import ApplicationDiscoveryApi from sailpoint.v3.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() diff --git a/sailpoint/v3/docs/Methods/AuthUsersApi.md b/sailpoint/v3/docs/Methods/AuthUsersApi.md index 92d902757..3c677c94a 100644 --- a/sailpoint/v3/docs/Methods/AuthUsersApi.md +++ b/sailpoint/v3/docs/Methods/AuthUsersApi.md @@ -60,7 +60,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.auth_users_api import AuthUsersApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.auth_user import AuthUser -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -75,7 +74,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AuthUsersApi(api_client).get_auth_user(id) print("The response of AuthUsersApi->get_auth_user:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AuthUsersApi->get_auth_user: %s\n" % e) ``` @@ -126,7 +125,6 @@ from sailpoint.v3.api.auth_users_api import AuthUsersApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.auth_user import AuthUser from sailpoint.v3.models.json_patch_operation import JsonPatchOperation -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -142,7 +140,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = AuthUsersApi(api_client).patch_auth_user(id, new_json_patch_operation) print("The response of AuthUsersApi->patch_auth_user:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling AuthUsersApi->patch_auth_user: %s\n" % e) ``` diff --git a/sailpoint/v3/docs/Methods/BrandingApi.md b/sailpoint/v3/docs/Methods/BrandingApi.md index 0e57e61d1..bb18c9ed4 100644 --- a/sailpoint/v3/docs/Methods/BrandingApi.md +++ b/sailpoint/v3/docs/Methods/BrandingApi.md @@ -69,7 +69,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.branding_api import BrandingApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.branding_item import BrandingItem -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -91,7 +90,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = BrandingApi(api_client).create_branding_item(name, product_name, action_button_color, active_link_color, navigation_color, email_from_address, login_informational_message, file_standard) print("The response of BrandingApi->create_branding_item:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling BrandingApi->create_branding_item: %s\n" % e) ``` @@ -135,7 +134,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v3.api.branding_api import BrandingApi from sailpoint.v3.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -193,7 +191,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.branding_api import BrandingApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.branding_item import BrandingItem -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -208,7 +205,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = BrandingApi(api_client).get_branding(name) print("The response of BrandingApi->get_branding:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling BrandingApi->get_branding: %s\n" % e) ``` @@ -249,7 +246,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.branding_api import BrandingApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.branding_item import BrandingItem -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -263,7 +259,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = BrandingApi(api_client).get_branding_list() print("The response of BrandingApi->get_branding_list:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling BrandingApi->get_branding_list: %s\n" % e) ``` @@ -316,7 +312,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.branding_api import BrandingApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.branding_item import BrandingItem -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -339,7 +334,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = BrandingApi(api_client).set_branding_item(name, name2, product_name, action_button_color, active_link_color, navigation_color, email_from_address, login_informational_message, file_standard) print("The response of BrandingApi->set_branding_item:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling BrandingApi->set_branding_item: %s\n" % e) ``` diff --git a/sailpoint/v3/docs/Methods/CertificationCampaignFiltersApi.md b/sailpoint/v3/docs/Methods/CertificationCampaignFiltersApi.md index f712e829c..62efc41a3 100644 --- a/sailpoint/v3/docs/Methods/CertificationCampaignFiltersApi.md +++ b/sailpoint/v3/docs/Methods/CertificationCampaignFiltersApi.md @@ -84,7 +84,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.certification_campaign_filters_api import CertificationCampaignFiltersApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.campaign_filter_details import CampaignFilterDetails -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -116,7 +115,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationCampaignFiltersApi(api_client).create_campaign_filter(new_campaign_filter_details) print("The response of CertificationCampaignFiltersApi->create_campaign_filter:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationCampaignFiltersApi->create_campaign_filter: %s\n" % e) ``` @@ -160,7 +159,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v3.api.certification_campaign_filters_api import CertificationCampaignFiltersApi from sailpoint.v3.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -218,7 +216,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.certification_campaign_filters_api import CertificationCampaignFiltersApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.campaign_filter_details import CampaignFilterDetails -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -233,7 +230,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationCampaignFiltersApi(api_client).get_campaign_filter_by_id(id) print("The response of CertificationCampaignFiltersApi->get_campaign_filter_by_id:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationCampaignFiltersApi->get_campaign_filter_by_id: %s\n" % e) ``` @@ -279,7 +276,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.certification_campaign_filters_api import CertificationCampaignFiltersApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.list_campaign_filters200_response import ListCampaignFilters200Response -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -296,7 +292,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationCampaignFiltersApi(api_client).list_campaign_filters(limit, start, include_system_filters) print("The response of CertificationCampaignFiltersApi->list_campaign_filters:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationCampaignFiltersApi->list_campaign_filters: %s\n" % e) ``` @@ -341,7 +337,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.certification_campaign_filters_api import CertificationCampaignFiltersApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.campaign_filter_details import CampaignFilterDetails -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -374,7 +369,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationCampaignFiltersApi(api_client).update_campaign_filter(filter_id, new_campaign_filter_details) print("The response of CertificationCampaignFiltersApi->update_campaign_filter:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationCampaignFiltersApi->update_campaign_filter: %s\n" % e) ``` diff --git a/sailpoint/v3/docs/Methods/CertificationCampaignsApi.md b/sailpoint/v3/docs/Methods/CertificationCampaignsApi.md index e72516685..e8c917490 100644 --- a/sailpoint/v3/docs/Methods/CertificationCampaignsApi.md +++ b/sailpoint/v3/docs/Methods/CertificationCampaignsApi.md @@ -151,7 +151,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.campaign_complete_options import CampaignCompleteOptions -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -169,7 +168,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationCampaignsApi(api_client).complete_campaign(id, new_campaign_complete_options) print("The response of CertificationCampaignsApi->complete_campaign:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationCampaignsApi->complete_campaign: %s\n" % e) ``` @@ -214,7 +213,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.campaign import Campaign -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -337,7 +335,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationCampaignsApi(api_client).create_campaign(new_campaign) print("The response of CertificationCampaignsApi->create_campaign:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationCampaignsApi->create_campaign: %s\n" % e) ``` @@ -382,7 +380,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.campaign_template import CampaignTemplate -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -520,7 +517,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationCampaignsApi(api_client).create_campaign_template(new_campaign_template) print("The response of CertificationCampaignsApi->create_campaign_template:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationCampaignsApi->create_campaign_template: %s\n" % e) ``` @@ -565,7 +562,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v3.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v3.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -623,7 +619,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v3.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v3.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -682,7 +677,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.campaigns_delete_request import CampaignsDeleteRequest -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -699,7 +693,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationCampaignsApi(api_client).delete_campaigns(new_campaigns_delete_request) print("The response of CertificationCampaignsApi->delete_campaigns:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationCampaignsApi->delete_campaigns: %s\n" % e) ``` @@ -749,7 +743,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.get_active_campaigns200_response_inner import GetActiveCampaigns200ResponseInner -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -769,7 +762,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationCampaignsApi(api_client).get_active_campaigns(detail, limit, offset, count, filters, sorters) print("The response of CertificationCampaignsApi->get_active_campaigns:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationCampaignsApi->get_active_campaigns: %s\n" % e) ``` @@ -816,7 +809,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.get_active_campaigns200_response_inner import GetActiveCampaigns200ResponseInner -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -832,7 +824,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationCampaignsApi(api_client).get_campaign(id, detail) print("The response of CertificationCampaignsApi->get_campaign:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationCampaignsApi->get_campaign: %s\n" % e) ``` @@ -878,7 +870,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.campaign_report import CampaignReport -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -893,7 +884,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationCampaignsApi(api_client).get_campaign_reports(id) print("The response of CertificationCampaignsApi->get_campaign_reports:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationCampaignsApi->get_campaign_reports: %s\n" % e) ``` @@ -935,7 +926,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.campaign_reports_config import CampaignReportsConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -949,7 +939,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationCampaignsApi(api_client).get_campaign_reports_config() print("The response of CertificationCampaignsApi->get_campaign_reports_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationCampaignsApi->get_campaign_reports_config: %s\n" % e) ``` @@ -995,7 +985,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.campaign_template import CampaignTemplate -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1010,7 +999,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationCampaignsApi(api_client).get_campaign_template(id) print("The response of CertificationCampaignsApi->get_campaign_template:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationCampaignsApi->get_campaign_template: %s\n" % e) ``` @@ -1056,7 +1045,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.schedule import Schedule -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1071,7 +1059,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationCampaignsApi(api_client).get_campaign_template_schedule(id) print("The response of CertificationCampaignsApi->get_campaign_template_schedule:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationCampaignsApi->get_campaign_template_schedule: %s\n" % e) ``` @@ -1122,7 +1110,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.campaign_template import CampaignTemplate -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1141,7 +1128,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationCampaignsApi(api_client).get_campaign_templates(limit, offset, count, sorters, filters) print("The response of CertificationCampaignsApi->get_campaign_templates:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationCampaignsApi->get_campaign_templates: %s\n" % e) ``` @@ -1189,7 +1176,6 @@ from sailpoint.v3.api.certification_campaigns_api import CertificationCampaignsA from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.admin_review_reassign import AdminReviewReassign from sailpoint.v3.models.certification_task import CertificationTask -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1212,7 +1198,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationCampaignsApi(api_client).move(id, new_admin_review_reassign) print("The response of CertificationCampaignsApi->move:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationCampaignsApi->move: %s\n" % e) ``` @@ -1260,7 +1246,6 @@ from sailpoint.v3.api.certification_campaigns_api import CertificationCampaignsA from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.campaign_template import CampaignTemplate from sailpoint.v3.models.json_patch_operation import JsonPatchOperation -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1276,7 +1261,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationCampaignsApi(api_client).patch_campaign_template(id, new_json_patch_operation) print("The response of CertificationCampaignsApi->patch_campaign_template:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationCampaignsApi->patch_campaign_template: %s\n" % e) ``` @@ -1321,7 +1306,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.campaign_reports_config import CampaignReportsConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1338,7 +1322,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationCampaignsApi(api_client).set_campaign_reports_config(new_campaign_reports_config) print("The response of CertificationCampaignsApi->set_campaign_reports_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationCampaignsApi->set_campaign_reports_config: %s\n" % e) ``` @@ -1385,7 +1369,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.schedule import Schedule -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1465,7 +1448,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.activate_campaign_options import ActivateCampaignOptions -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1483,7 +1465,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationCampaignsApi(api_client).start_campaign(id, new_activate_campaign_options) print("The response of CertificationCampaignsApi->start_campaign:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationCampaignsApi->start_campaign: %s\n" % e) ``` @@ -1528,7 +1510,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v3.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v3.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1543,7 +1524,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationCampaignsApi(api_client).start_campaign_remediation_scan(id) print("The response of CertificationCampaignsApi->start_campaign_remediation_scan:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationCampaignsApi->start_campaign_remediation_scan: %s\n" % e) ``` @@ -1590,7 +1571,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.report_type import ReportType -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1606,7 +1586,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationCampaignsApi(api_client).start_campaign_report(id, type) print("The response of CertificationCampaignsApi->start_campaign_report:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationCampaignsApi->start_campaign_report: %s\n" % e) ``` @@ -1661,7 +1641,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.certification_campaigns_api import CertificationCampaignsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.campaign_reference import CampaignReference -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1676,7 +1655,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationCampaignsApi(api_client).start_generate_campaign_template(id) print("The response of CertificationCampaignsApi->start_generate_campaign_template:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationCampaignsApi->start_generate_campaign_template: %s\n" % e) ``` @@ -1724,7 +1703,6 @@ from sailpoint.v3.api.certification_campaigns_api import CertificationCampaignsA from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.json_patch_operation import JsonPatchOperation from sailpoint.v3.models.slim_campaign import SlimCampaign -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1740,7 +1718,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationCampaignsApi(api_client).update_campaign(id, new_json_patch_operation) print("The response of CertificationCampaignsApi->update_campaign:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationCampaignsApi->update_campaign: %s\n" % e) ``` diff --git a/sailpoint/v3/docs/Methods/CertificationSummariesApi.md b/sailpoint/v3/docs/Methods/CertificationSummariesApi.md index 51855452b..7eb8a7040 100644 --- a/sailpoint/v3/docs/Methods/CertificationSummariesApi.md +++ b/sailpoint/v3/docs/Methods/CertificationSummariesApi.md @@ -77,7 +77,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.certification_summaries_api import CertificationSummariesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.access_summary import AccessSummary -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -98,7 +97,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationSummariesApi(api_client).get_identity_access_summaries(id, type, limit, offset, count, filters, sorters) print("The response of CertificationSummariesApi->get_identity_access_summaries:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationSummariesApi->get_identity_access_summaries: %s\n" % e) ``` @@ -144,7 +143,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.certification_summaries_api import CertificationSummariesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.identity_cert_decision_summary import IdentityCertDecisionSummary -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -160,7 +158,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationSummariesApi(api_client).get_identity_decision_summary(id, filters) print("The response of CertificationSummariesApi->get_identity_decision_summary:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationSummariesApi->get_identity_decision_summary: %s\n" % e) ``` @@ -210,7 +208,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.certification_summaries_api import CertificationSummariesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.certification_identity_summary import CertificationIdentitySummary -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -230,7 +227,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationSummariesApi(api_client).get_identity_summaries(id, limit, offset, count, filters, sorters) print("The response of CertificationSummariesApi->get_identity_summaries:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationSummariesApi->get_identity_summaries: %s\n" % e) ``` @@ -276,7 +273,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.certification_summaries_api import CertificationSummariesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.certification_identity_summary import CertificationIdentitySummary -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -292,7 +288,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationSummariesApi(api_client).get_identity_summary(id, identity_summary_id) print("The response of CertificationSummariesApi->get_identity_summary:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationSummariesApi->get_identity_summary: %s\n" % e) ``` diff --git a/sailpoint/v3/docs/Methods/CertificationsApi.md b/sailpoint/v3/docs/Methods/CertificationsApi.md index c14d1b700..9b2c0644a 100644 --- a/sailpoint/v3/docs/Methods/CertificationsApi.md +++ b/sailpoint/v3/docs/Methods/CertificationsApi.md @@ -87,7 +87,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.certifications_api import CertificationsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.certification_task import CertificationTask -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -102,7 +101,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationsApi(api_client).get_certification_task(id) print("The response of CertificationsApi->get_certification_task:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationsApi->get_certification_task: %s\n" % e) ``` @@ -147,7 +146,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.certifications_api import CertificationsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.identity_certification_dto import IdentityCertificationDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -162,7 +160,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationsApi(api_client).get_identity_certification(id) print("The response of CertificationsApi->get_identity_certification:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationsApi->get_identity_certification: %s\n" % e) ``` @@ -212,7 +210,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.certifications_api import CertificationsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.permission_dto import PermissionDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -232,7 +229,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationsApi(api_client).get_identity_certification_item_permissions(certification_id, item_id, filters, limit, offset, count) print("The response of CertificationsApi->get_identity_certification_item_permissions:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationsApi->get_identity_certification_item_permissions: %s\n" % e) ``` @@ -281,7 +278,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.certifications_api import CertificationsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.certification_task import CertificationTask -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -300,7 +296,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationsApi(api_client).get_pending_certification_tasks(reviewer_identity, limit, offset, count, filters) print("The response of CertificationsApi->get_pending_certification_tasks:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationsApi->get_pending_certification_tasks: %s\n" % e) ``` @@ -350,7 +346,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.certifications_api import CertificationsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.identity_reference_with_name_and_email import IdentityReferenceWithNameAndEmail -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -370,7 +365,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationsApi(api_client).list_certification_reviewers(id, limit, offset, count, filters, sorters) print("The response of CertificationsApi->list_certification_reviewers:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationsApi->list_certification_reviewers: %s\n" % e) ``` @@ -423,7 +418,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.certifications_api import CertificationsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.access_review_item import AccessReviewItem -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -446,7 +440,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationsApi(api_client).list_identity_access_review_items(id, limit, offset, count, filters, sorters, entitlements, access_profiles, roles) print("The response of CertificationsApi->list_identity_access_review_items:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationsApi->list_identity_access_review_items: %s\n" % e) ``` @@ -495,7 +489,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.certifications_api import CertificationsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.identity_certification_dto import IdentityCertificationDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -515,7 +508,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationsApi(api_client).list_identity_certifications(reviewer_identity, limit, offset, count, filters, sorters) print("The response of CertificationsApi->list_identity_certifications:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationsApi->list_identity_certifications: %s\n" % e) ``` @@ -562,7 +555,6 @@ from sailpoint.v3.api.certifications_api import CertificationsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.identity_certification_dto import IdentityCertificationDto from sailpoint.v3.models.review_decision import ReviewDecision -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -578,7 +570,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationsApi(api_client).make_identity_decision(id, new_review_decision) print("The response of CertificationsApi->make_identity_decision:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationsApi->make_identity_decision: %s\n" % e) ``` @@ -625,7 +617,6 @@ from sailpoint.v3.api.certifications_api import CertificationsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.identity_certification_dto import IdentityCertificationDto from sailpoint.v3.models.review_reassign import ReviewReassign -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -651,7 +642,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationsApi(api_client).reassign_identity_certifications(id, new_review_reassign) print("The response of CertificationsApi->reassign_identity_certifications:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationsApi->reassign_identity_certifications: %s\n" % e) ``` @@ -696,7 +687,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.certifications_api import CertificationsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.identity_certification_dto import IdentityCertificationDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -711,7 +701,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationsApi(api_client).sign_off_identity_certification(id) print("The response of CertificationsApi->sign_off_identity_certification:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationsApi->sign_off_identity_certification: %s\n" % e) ``` @@ -763,7 +753,6 @@ from sailpoint.v3.api.certifications_api import CertificationsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.certification_task import CertificationTask from sailpoint.v3.models.review_reassign import ReviewReassign -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -789,7 +778,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = CertificationsApi(api_client).submit_reassign_certs_async(id, new_review_reassign) print("The response of CertificationsApi->submit_reassign_certs_async:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling CertificationsApi->submit_reassign_certs_async: %s\n" % e) ``` diff --git a/sailpoint/v3/docs/Methods/ConfigurationHubApi.md b/sailpoint/v3/docs/Methods/ConfigurationHubApi.md index bb39f995c..3d5f5fe13 100644 --- a/sailpoint/v3/docs/Methods/ConfigurationHubApi.md +++ b/sailpoint/v3/docs/Methods/ConfigurationHubApi.md @@ -76,7 +76,6 @@ from sailpoint.v3.api.configuration_hub_api import ConfigurationHubApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.object_mapping_request import ObjectMappingRequest from sailpoint.v3.models.object_mapping_response import ObjectMappingResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -98,7 +97,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ConfigurationHubApi(api_client).create_object_mapping(source_org, new_object_mapping_request) print("The response of ConfigurationHubApi->create_object_mapping:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ConfigurationHubApi->create_object_mapping: %s\n" % e) ``` @@ -148,7 +147,6 @@ from sailpoint.v3.api.configuration_hub_api import ConfigurationHubApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.object_mapping_bulk_create_request import ObjectMappingBulkCreateRequest from sailpoint.v3.models.object_mapping_bulk_create_response import ObjectMappingBulkCreateResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -178,7 +176,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ConfigurationHubApi(api_client).create_object_mappings(source_org, new_object_mapping_bulk_create_request) print("The response of ConfigurationHubApi->create_object_mappings:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ConfigurationHubApi->create_object_mappings: %s\n" % e) ``` @@ -227,7 +225,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.configuration_hub_api import ConfigurationHubApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.backup_response import BackupResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -243,7 +240,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ConfigurationHubApi(api_client).create_uploaded_configuration(data, name) print("The response of ConfigurationHubApi->create_uploaded_configuration:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ConfigurationHubApi->create_uploaded_configuration: %s\n" % e) ``` @@ -291,7 +288,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v3.api.configuration_hub_api import ConfigurationHubApi from sailpoint.v3.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -353,7 +349,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v3.api.configuration_hub_api import ConfigurationHubApi from sailpoint.v3.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -414,7 +409,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.configuration_hub_api import ConfigurationHubApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.object_mapping_response import ObjectMappingResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -429,7 +423,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ConfigurationHubApi(api_client).get_object_mappings(source_org) print("The response of ConfigurationHubApi->get_object_mappings:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ConfigurationHubApi->get_object_mappings: %s\n" % e) ``` @@ -474,7 +468,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.configuration_hub_api import ConfigurationHubApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.backup_response import BackupResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -489,7 +482,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ConfigurationHubApi(api_client).get_uploaded_configuration(id) print("The response of ConfigurationHubApi->get_uploaded_configuration:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ConfigurationHubApi->get_uploaded_configuration: %s\n" % e) ``` @@ -534,7 +527,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.configuration_hub_api import ConfigurationHubApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.backup_response import BackupResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -549,7 +541,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ConfigurationHubApi(api_client).list_uploaded_configurations(filters) print("The response of ConfigurationHubApi->list_uploaded_configurations:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ConfigurationHubApi->list_uploaded_configurations: %s\n" % e) ``` @@ -599,7 +591,6 @@ from sailpoint.v3.api.configuration_hub_api import ConfigurationHubApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.object_mapping_bulk_patch_request import ObjectMappingBulkPatchRequest from sailpoint.v3.models.object_mapping_bulk_patch_response import ObjectMappingBulkPatchResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -628,7 +619,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ConfigurationHubApi(api_client).update_object_mappings(source_org, new_object_mapping_bulk_patch_request) print("The response of ConfigurationHubApi->update_object_mappings:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ConfigurationHubApi->update_object_mappings: %s\n" % e) ``` diff --git a/sailpoint/v3/docs/Methods/ConnectorsApi.md b/sailpoint/v3/docs/Methods/ConnectorsApi.md index 43db1b99b..d846517d0 100644 --- a/sailpoint/v3/docs/Methods/ConnectorsApi.md +++ b/sailpoint/v3/docs/Methods/ConnectorsApi.md @@ -79,7 +79,6 @@ from sailpoint.v3.api.connectors_api import ConnectorsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.v3_connector_dto import V3ConnectorDto from sailpoint.v3.models.v3_create_connector_dto import V3CreateConnectorDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -100,7 +99,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ConnectorsApi(api_client).create_custom_connector(new_v3_create_connector_dto) print("The response of ConnectorsApi->create_custom_connector:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ConnectorsApi->create_custom_connector: %s\n" % e) ``` @@ -144,7 +143,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v3.api.connectors_api import ConnectorsApi from sailpoint.v3.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -203,7 +201,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.connectors_api import ConnectorsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.connector_detail import ConnectorDetail -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -219,7 +216,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ConnectorsApi(api_client).get_connector(script_name, locale) print("The response of ConnectorsApi->get_connector:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ConnectorsApi->get_connector: %s\n" % e) ``` @@ -268,7 +265,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.connectors_api import ConnectorsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.v3_connector_dto import V3ConnectorDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -287,7 +283,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ConnectorsApi(api_client).get_connector_list(filters, limit, offset, count, locale) print("The response of ConnectorsApi->get_connector_list:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ConnectorsApi->get_connector_list: %s\n" % e) ``` @@ -331,7 +327,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v3.api.connectors_api import ConnectorsApi from sailpoint.v3.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -346,7 +341,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ConnectorsApi(api_client).get_connector_source_config(script_name) print("The response of ConnectorsApi->get_connector_source_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ConnectorsApi->get_connector_source_config: %s\n" % e) ``` @@ -390,7 +385,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v3.api.connectors_api import ConnectorsApi from sailpoint.v3.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -405,7 +399,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ConnectorsApi(api_client).get_connector_source_template(script_name) print("The response of ConnectorsApi->get_connector_source_template:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ConnectorsApi->get_connector_source_template: %s\n" % e) ``` @@ -450,7 +444,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v3.api.connectors_api import ConnectorsApi from sailpoint.v3.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -466,7 +459,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ConnectorsApi(api_client).get_connector_translations(script_name, locale) print("The response of ConnectorsApi->get_connector_translations:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ConnectorsApi->get_connector_translations: %s\n" % e) ``` @@ -512,7 +505,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.connectors_api import ConnectorsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.update_detail import UpdateDetail -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -528,7 +520,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ConnectorsApi(api_client).put_connector_source_config(script_name, file) print("The response of ConnectorsApi->put_connector_source_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ConnectorsApi->put_connector_source_config: %s\n" % e) ``` @@ -574,7 +566,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.connectors_api import ConnectorsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.update_detail import UpdateDetail -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -590,7 +581,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ConnectorsApi(api_client).put_connector_source_template(script_name, file) print("The response of ConnectorsApi->put_connector_source_template:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ConnectorsApi->put_connector_source_template: %s\n" % e) ``` @@ -636,7 +627,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.connectors_api import ConnectorsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.update_detail import UpdateDetail -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -652,7 +642,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ConnectorsApi(api_client).put_connector_translations(script_name, locale) print("The response of ConnectorsApi->put_connector_translations:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ConnectorsApi->put_connector_translations: %s\n" % e) ``` @@ -711,7 +701,6 @@ from sailpoint.v3.api.connectors_api import ConnectorsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.connector_detail import ConnectorDetail from sailpoint.v3.models.json_patch_operation import JsonPatchOperation -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -727,7 +716,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ConnectorsApi(api_client).update_connector(script_name, new_json_patch_operation) print("The response of ConnectorsApi->update_connector:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ConnectorsApi->update_connector: %s\n" % e) ``` diff --git a/sailpoint/v3/docs/Methods/GlobalTenantSecuritySettingsApi.md b/sailpoint/v3/docs/Methods/GlobalTenantSecuritySettingsApi.md index f77561016..c5e9a8980 100644 --- a/sailpoint/v3/docs/Methods/GlobalTenantSecuritySettingsApi.md +++ b/sailpoint/v3/docs/Methods/GlobalTenantSecuritySettingsApi.md @@ -65,7 +65,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.global_tenant_security_settings_api import GlobalTenantSecuritySettingsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.network_configuration import NetworkConfiguration -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -84,7 +83,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = GlobalTenantSecuritySettingsApi(api_client).create_auth_org_network_config(new_network_configuration) print("The response of GlobalTenantSecuritySettingsApi->create_auth_org_network_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling GlobalTenantSecuritySettingsApi->create_auth_org_network_config: %s\n" % e) ``` @@ -126,7 +125,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.global_tenant_security_settings_api import GlobalTenantSecuritySettingsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.lockout_configuration import LockoutConfiguration -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -140,7 +138,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = GlobalTenantSecuritySettingsApi(api_client).get_auth_org_lockout_config() print("The response of GlobalTenantSecuritySettingsApi->get_auth_org_lockout_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling GlobalTenantSecuritySettingsApi->get_auth_org_lockout_config: %s\n" % e) ``` @@ -182,7 +180,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.global_tenant_security_settings_api import GlobalTenantSecuritySettingsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.network_configuration import NetworkConfiguration -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -196,7 +193,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = GlobalTenantSecuritySettingsApi(api_client).get_auth_org_network_config() print("The response of GlobalTenantSecuritySettingsApi->get_auth_org_network_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling GlobalTenantSecuritySettingsApi->get_auth_org_network_config: %s\n" % e) ``` @@ -238,7 +235,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.global_tenant_security_settings_api import GlobalTenantSecuritySettingsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.service_provider_configuration import ServiceProviderConfiguration -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -252,7 +248,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = GlobalTenantSecuritySettingsApi(api_client).get_auth_org_service_provider_config() print("The response of GlobalTenantSecuritySettingsApi->get_auth_org_service_provider_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling GlobalTenantSecuritySettingsApi->get_auth_org_service_provider_config: %s\n" % e) ``` @@ -294,7 +290,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.global_tenant_security_settings_api import GlobalTenantSecuritySettingsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.session_configuration import SessionConfiguration -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -308,7 +303,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = GlobalTenantSecuritySettingsApi(api_client).get_auth_org_session_config() print("The response of GlobalTenantSecuritySettingsApi->get_auth_org_session_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling GlobalTenantSecuritySettingsApi->get_auth_org_session_config: %s\n" % e) ``` @@ -355,7 +350,6 @@ from sailpoint.v3.api.global_tenant_security_settings_api import GlobalTenantSec from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.json_patch_operation import JsonPatchOperation from sailpoint.v3.models.lockout_configuration import LockoutConfiguration -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -370,7 +364,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = GlobalTenantSecuritySettingsApi(api_client).patch_auth_org_lockout_config(new_json_patch_operation) print("The response of GlobalTenantSecuritySettingsApi->patch_auth_org_lockout_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling GlobalTenantSecuritySettingsApi->patch_auth_org_lockout_config: %s\n" % e) ``` @@ -417,7 +411,6 @@ from sailpoint.v3.api.global_tenant_security_settings_api import GlobalTenantSec from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.json_patch_operation import JsonPatchOperation from sailpoint.v3.models.network_configuration import NetworkConfiguration -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -432,7 +425,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = GlobalTenantSecuritySettingsApi(api_client).patch_auth_org_network_config(new_json_patch_operation) print("The response of GlobalTenantSecuritySettingsApi->patch_auth_org_network_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling GlobalTenantSecuritySettingsApi->patch_auth_org_network_config: %s\n" % e) ``` @@ -478,7 +471,6 @@ from sailpoint.v3.api.global_tenant_security_settings_api import GlobalTenantSec from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.json_patch_operation import JsonPatchOperation from sailpoint.v3.models.service_provider_configuration import ServiceProviderConfiguration -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -493,7 +485,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = GlobalTenantSecuritySettingsApi(api_client).patch_auth_org_service_provider_config(new_json_patch_operation) print("The response of GlobalTenantSecuritySettingsApi->patch_auth_org_service_provider_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling GlobalTenantSecuritySettingsApi->patch_auth_org_service_provider_config: %s\n" % e) ``` @@ -539,7 +531,6 @@ from sailpoint.v3.api.global_tenant_security_settings_api import GlobalTenantSec from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.json_patch_operation import JsonPatchOperation from sailpoint.v3.models.session_configuration import SessionConfiguration -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -554,7 +545,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = GlobalTenantSecuritySettingsApi(api_client).patch_auth_org_session_config(new_json_patch_operation) print("The response of GlobalTenantSecuritySettingsApi->patch_auth_org_session_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling GlobalTenantSecuritySettingsApi->patch_auth_org_session_config: %s\n" % e) ``` diff --git a/sailpoint/v3/docs/Methods/IdentityProfilesApi.md b/sailpoint/v3/docs/Methods/IdentityProfilesApi.md index 0dd774492..fe9afda3f 100644 --- a/sailpoint/v3/docs/Methods/IdentityProfilesApi.md +++ b/sailpoint/v3/docs/Methods/IdentityProfilesApi.md @@ -73,7 +73,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.identity_profiles_api import IdentityProfilesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.identity_profile import IdentityProfile -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -136,7 +135,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentityProfilesApi(api_client).create_identity_profile(new_identity_profile) print("The response of IdentityProfilesApi->create_identity_profile:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentityProfilesApi->create_identity_profile: %s\n" % e) ``` @@ -182,7 +181,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.identity_profiles_api import IdentityProfilesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.task_result_simplified import TaskResultSimplified -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -197,7 +195,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentityProfilesApi(api_client).delete_identity_profile(identity_profile_id) print("The response of IdentityProfilesApi->delete_identity_profile:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentityProfilesApi->delete_identity_profile: %s\n" % e) ``` @@ -245,7 +243,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.identity_profiles_api import IdentityProfilesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.task_result_simplified import TaskResultSimplified -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -260,7 +257,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentityProfilesApi(api_client).delete_identity_profiles(new_request_body) print("The response of IdentityProfilesApi->delete_identity_profiles:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentityProfilesApi->delete_identity_profiles: %s\n" % e) ``` @@ -308,7 +305,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.identity_profiles_api import IdentityProfilesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.identity_profile_exported_object import IdentityProfileExportedObject -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -327,7 +323,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentityProfilesApi(api_client).export_identity_profiles(limit, offset, count, filters, sorters) print("The response of IdentityProfilesApi->export_identity_profiles:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentityProfilesApi->export_identity_profiles: %s\n" % e) ``` @@ -372,7 +368,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.identity_profiles_api import IdentityProfilesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.identity_attribute_config import IdentityAttributeConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -387,7 +382,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentityProfilesApi(api_client).get_default_identity_attribute_config(identity_profile_id) print("The response of IdentityProfilesApi->get_default_identity_attribute_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentityProfilesApi->get_default_identity_attribute_config: %s\n" % e) ``` @@ -432,7 +427,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.identity_profiles_api import IdentityProfilesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.identity_profile import IdentityProfile -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -447,7 +441,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentityProfilesApi(api_client).get_identity_profile(identity_profile_id) print("The response of IdentityProfilesApi->get_identity_profile:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentityProfilesApi->get_identity_profile: %s\n" % e) ``` @@ -492,7 +486,6 @@ from sailpoint.v3.api.identity_profiles_api import IdentityProfilesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.identity_profile_exported_object import IdentityProfileExportedObject from sailpoint.v3.models.object_import_result import ObjectImportResult -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -507,7 +500,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentityProfilesApi(api_client).import_identity_profiles(new_identity_profile_exported_object) print("The response of IdentityProfilesApi->import_identity_profiles:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentityProfilesApi->import_identity_profiles: %s\n" % e) ``` @@ -555,7 +548,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.identity_profiles_api import IdentityProfilesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.identity_profile import IdentityProfile -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -574,7 +566,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentityProfilesApi(api_client).list_identity_profiles(limit, offset, count, filters, sorters) print("The response of IdentityProfilesApi->list_identity_profiles:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentityProfilesApi->list_identity_profiles: %s\n" % e) ``` @@ -620,7 +612,6 @@ from sailpoint.v3.api.identity_profiles_api import IdentityProfilesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.identity_preview_request import IdentityPreviewRequest from sailpoint.v3.models.identity_preview_response import IdentityPreviewResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -661,7 +652,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentityProfilesApi(api_client).show_identity_preview(new_identity_preview_request) print("The response of IdentityProfilesApi->show_identity_preview:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentityProfilesApi->show_identity_preview: %s\n" % e) ``` @@ -709,7 +700,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v3.api.identity_profiles_api import IdentityProfilesApi from sailpoint.v3.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -724,7 +714,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentityProfilesApi(api_client).sync_identity_profile(identity_profile_id) print("The response of IdentityProfilesApi->sync_identity_profile:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentityProfilesApi->sync_identity_profile: %s\n" % e) ``` @@ -779,7 +769,6 @@ from sailpoint.v3.api.identity_profiles_api import IdentityProfilesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.identity_profile import IdentityProfile from sailpoint.v3.models.json_patch_operation import JsonPatchOperation -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -795,7 +784,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = IdentityProfilesApi(api_client).update_identity_profile(identity_profile_id, new_json_patch_operation) print("The response of IdentityProfilesApi->update_identity_profile:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling IdentityProfilesApi->update_identity_profile: %s\n" % e) ``` diff --git a/sailpoint/v3/docs/Methods/LifecycleStatesApi.md b/sailpoint/v3/docs/Methods/LifecycleStatesApi.md index 85f1f621e..36ca111cd 100644 --- a/sailpoint/v3/docs/Methods/LifecycleStatesApi.md +++ b/sailpoint/v3/docs/Methods/LifecycleStatesApi.md @@ -97,7 +97,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.lifecycle_states_api import LifecycleStatesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.lifecycle_state import LifecycleState -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -137,7 +136,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = LifecycleStatesApi(api_client).create_lifecycle_state(identity_profile_id, new_lifecycle_state) print("The response of LifecycleStatesApi->create_lifecycle_state:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling LifecycleStatesApi->create_lifecycle_state: %s\n" % e) ``` @@ -183,7 +182,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.lifecycle_states_api import LifecycleStatesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.lifecyclestate_deleted import LifecyclestateDeleted -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -199,7 +197,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = LifecycleStatesApi(api_client).delete_lifecycle_state(identity_profile_id, lifecycle_state_id) print("The response of LifecycleStatesApi->delete_lifecycle_state:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling LifecycleStatesApi->delete_lifecycle_state: %s\n" % e) ``` @@ -245,7 +243,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.lifecycle_states_api import LifecycleStatesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.lifecycle_state import LifecycleState -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -261,7 +258,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = LifecycleStatesApi(api_client).get_lifecycle_state(identity_profile_id, lifecycle_state_id) print("The response of LifecycleStatesApi->get_lifecycle_state:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling LifecycleStatesApi->get_lifecycle_state: %s\n" % e) ``` @@ -309,7 +306,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.lifecycle_states_api import LifecycleStatesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.lifecycle_state import LifecycleState -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -328,7 +324,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = LifecycleStatesApi(api_client).get_lifecycle_states(identity_profile_id, limit, offset, count, sorters) print("The response of LifecycleStatesApi->get_lifecycle_states:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling LifecycleStatesApi->get_lifecycle_states: %s\n" % e) ``` @@ -375,7 +371,6 @@ from sailpoint.v3.api.lifecycle_states_api import LifecycleStatesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.set_lifecycle_state200_response import SetLifecycleState200Response from sailpoint.v3.models.set_lifecycle_state_request import SetLifecycleStateRequest -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -391,7 +386,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = LifecycleStatesApi(api_client).set_lifecycle_state(identity_id, new_set_lifecycle_state_request) print("The response of LifecycleStatesApi->set_lifecycle_state:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling LifecycleStatesApi->set_lifecycle_state: %s\n" % e) ``` @@ -439,7 +434,6 @@ from sailpoint.v3.api.lifecycle_states_api import LifecycleStatesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.json_patch_operation import JsonPatchOperation from sailpoint.v3.models.lifecycle_state import LifecycleState -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -456,7 +450,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = LifecycleStatesApi(api_client).update_lifecycle_states(identity_profile_id, lifecycle_state_id, new_json_patch_operation) print("The response of LifecycleStatesApi->update_lifecycle_states:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling LifecycleStatesApi->update_lifecycle_states: %s\n" % e) ``` diff --git a/sailpoint/v3/docs/Methods/MFAConfigurationApi.md b/sailpoint/v3/docs/Methods/MFAConfigurationApi.md index 577fcdc12..b8e5bfd0e 100644 --- a/sailpoint/v3/docs/Methods/MFAConfigurationApi.md +++ b/sailpoint/v3/docs/Methods/MFAConfigurationApi.md @@ -60,7 +60,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.mfa_configuration_api import MFAConfigurationApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.mfa_okta_config import MfaOktaConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -75,7 +74,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = MFAConfigurationApi(api_client).delete_mfa_config(method) print("The response of MFAConfigurationApi->delete_mfa_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling MFAConfigurationApi->delete_mfa_config: %s\n" % e) ``` @@ -116,7 +115,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.mfa_configuration_api import MFAConfigurationApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.mfa_duo_config import MfaDuoConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -130,7 +128,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = MFAConfigurationApi(api_client).get_mfa_duo_config() print("The response of MFAConfigurationApi->get_mfa_duo_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling MFAConfigurationApi->get_mfa_duo_config: %s\n" % e) ``` @@ -174,7 +172,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.mfa_configuration_api import MFAConfigurationApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.kba_question import KbaQuestion -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -189,7 +186,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = MFAConfigurationApi(api_client).get_mfa_kba_config(all_languages) print("The response of MFAConfigurationApi->get_mfa_kba_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling MFAConfigurationApi->get_mfa_kba_config: %s\n" % e) ``` @@ -230,7 +227,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.mfa_configuration_api import MFAConfigurationApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.mfa_okta_config import MfaOktaConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -244,7 +240,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = MFAConfigurationApi(api_client).get_mfa_okta_config() print("The response of MFAConfigurationApi->get_mfa_okta_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling MFAConfigurationApi->get_mfa_okta_config: %s\n" % e) ``` @@ -288,7 +284,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.mfa_configuration_api import MFAConfigurationApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.mfa_duo_config import MfaDuoConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -313,7 +308,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = MFAConfigurationApi(api_client).set_mfa_duo_config(new_mfa_duo_config) print("The response of MFAConfigurationApi->set_mfa_duo_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling MFAConfigurationApi->set_mfa_duo_config: %s\n" % e) ``` @@ -357,7 +352,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.mfa_configuration_api import MFAConfigurationApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.mfa_okta_config import MfaOktaConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -378,7 +372,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = MFAConfigurationApi(api_client).set_mfa_okta_config(new_mfa_okta_config) print("The response of MFAConfigurationApi->set_mfa_okta_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling MFAConfigurationApi->set_mfa_okta_config: %s\n" % e) ``` @@ -423,7 +417,6 @@ from sailpoint.v3.api.mfa_configuration_api import MFAConfigurationApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.kba_answer_request_item import KbaAnswerRequestItem from sailpoint.v3.models.kba_answer_response_item import KbaAnswerResponseItem -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -438,7 +431,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = MFAConfigurationApi(api_client).set_mfakba_config(new_kba_answer_request_item) print("The response of MFAConfigurationApi->set_mfakba_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling MFAConfigurationApi->set_mfakba_config: %s\n" % e) ``` @@ -482,7 +475,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.mfa_configuration_api import MFAConfigurationApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.mfa_config_test_response import MfaConfigTestResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -497,7 +489,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = MFAConfigurationApi(api_client).test_mfa_config(method) print("The response of MFAConfigurationApi->test_mfa_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling MFAConfigurationApi->test_mfa_config: %s\n" % e) ``` diff --git a/sailpoint/v3/docs/Methods/MFAControllerApi.md b/sailpoint/v3/docs/Methods/MFAControllerApi.md index 53a6668fd..753c243c8 100644 --- a/sailpoint/v3/docs/Methods/MFAControllerApi.md +++ b/sailpoint/v3/docs/Methods/MFAControllerApi.md @@ -59,7 +59,6 @@ from sailpoint.v3.api.mfa_controller_api import MFAControllerApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.send_token_request import SendTokenRequest from sailpoint.v3.models.send_token_response import SendTokenResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -77,7 +76,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = MFAControllerApi(api_client).create_send_token(new_send_token_request) print("The response of MFAControllerApi->create_send_token:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling MFAControllerApi->create_send_token: %s\n" % e) ``` @@ -123,7 +122,6 @@ from sailpoint.v3.api.mfa_controller_api import MFAControllerApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.verification_poll_request import VerificationPollRequest from sailpoint.v3.models.verification_response import VerificationResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -141,7 +139,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = MFAControllerApi(api_client).ping_verification_status(method, new_verification_poll_request) print("The response of MFAControllerApi->ping_verification_status:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling MFAControllerApi->ping_verification_status: %s\n" % e) ``` @@ -186,7 +184,6 @@ from sailpoint.v3.api.mfa_controller_api import MFAControllerApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.duo_verification_request import DuoVerificationRequest from sailpoint.v3.models.verification_response import VerificationResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -204,7 +201,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = MFAControllerApi(api_client).send_duo_verify_request(new_duo_verification_request) print("The response of MFAControllerApi->send_duo_verify_request:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling MFAControllerApi->send_duo_verify_request: %s\n" % e) ``` @@ -249,7 +246,6 @@ from sailpoint.v3.api.mfa_controller_api import MFAControllerApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.kba_answer_request_item import KbaAnswerRequestItem from sailpoint.v3.models.kba_auth_response import KbaAuthResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -264,7 +260,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = MFAControllerApi(api_client).send_kba_answers(new_kba_answer_request_item) print("The response of MFAControllerApi->send_kba_answers:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling MFAControllerApi->send_kba_answers: %s\n" % e) ``` @@ -309,7 +305,6 @@ from sailpoint.v3.api.mfa_controller_api import MFAControllerApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.okta_verification_request import OktaVerificationRequest from sailpoint.v3.models.verification_response import VerificationResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -326,7 +321,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = MFAControllerApi(api_client).send_okta_verify_request(new_okta_verification_request) print("The response of MFAControllerApi->send_okta_verify_request:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling MFAControllerApi->send_okta_verify_request: %s\n" % e) ``` @@ -371,7 +366,6 @@ from sailpoint.v3.api.mfa_controller_api import MFAControllerApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.token_auth_request import TokenAuthRequest from sailpoint.v3.models.token_auth_response import TokenAuthResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -390,7 +384,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = MFAControllerApi(api_client).send_token_auth_request(new_token_auth_request) print("The response of MFAControllerApi->send_token_auth_request:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling MFAControllerApi->send_token_auth_request: %s\n" % e) ``` diff --git a/sailpoint/v3/docs/Methods/ManagedClientsApi.md b/sailpoint/v3/docs/Methods/ManagedClientsApi.md index 52300007f..3e6b7bb1d 100644 --- a/sailpoint/v3/docs/Methods/ManagedClientsApi.md +++ b/sailpoint/v3/docs/Methods/ManagedClientsApi.md @@ -62,7 +62,6 @@ from sailpoint.v3.api.managed_clients_api import ManagedClientsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.managed_client import ManagedClient from sailpoint.v3.models.managed_client_request import ManagedClientRequest -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -82,7 +81,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ManagedClientsApi(api_client).create_managed_client(new_managed_client_request) print("The response of ManagedClientsApi->create_managed_client:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ManagedClientsApi->create_managed_client: %s\n" % e) ``` @@ -125,7 +124,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v3.api.managed_clients_api import ManagedClientsApi from sailpoint.v3.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -183,7 +181,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.managed_clients_api import ManagedClientsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.managed_client import ManagedClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -198,7 +195,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ManagedClientsApi(api_client).get_managed_client(id) print("The response of ManagedClientsApi->get_managed_client:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ManagedClientsApi->get_managed_client: %s\n" % e) ``` @@ -245,7 +242,6 @@ from sailpoint.v3.api.managed_clients_api import ManagedClientsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.managed_client_status import ManagedClientStatus from sailpoint.v3.models.managed_client_type import ManagedClientType -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -261,7 +257,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ManagedClientsApi(api_client).get_managed_client_status(id, type) print("The response of ManagedClientsApi->get_managed_client_status:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ManagedClientsApi->get_managed_client_status: %s\n" % e) ``` @@ -308,7 +304,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.managed_clients_api import ManagedClientsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.managed_client import ManagedClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -326,7 +321,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ManagedClientsApi(api_client).get_managed_clients(offset, limit, count, filters) print("The response of ManagedClientsApi->get_managed_clients:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ManagedClientsApi->get_managed_clients: %s\n" % e) ``` @@ -373,7 +368,6 @@ from sailpoint.v3.api.managed_clients_api import ManagedClientsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.json_patch_operation import JsonPatchOperation from sailpoint.v3.models.managed_client import ManagedClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -389,7 +383,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ManagedClientsApi(api_client).update_managed_client(id, new_json_patch_operation) print("The response of ManagedClientsApi->update_managed_client:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ManagedClientsApi->update_managed_client: %s\n" % e) ``` diff --git a/sailpoint/v3/docs/Methods/ManagedClustersApi.md b/sailpoint/v3/docs/Methods/ManagedClustersApi.md index da49fb6f3..51101d3df 100644 --- a/sailpoint/v3/docs/Methods/ManagedClustersApi.md +++ b/sailpoint/v3/docs/Methods/ManagedClustersApi.md @@ -63,7 +63,6 @@ from sailpoint.v3.api.managed_clusters_api import ManagedClustersApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.managed_cluster import ManagedCluster from sailpoint.v3.models.managed_cluster_request import ManagedClusterRequest -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -86,7 +85,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ManagedClustersApi(api_client).create_managed_cluster(new_managed_cluster_request) print("The response of ManagedClustersApi->create_managed_cluster:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ManagedClustersApi->create_managed_cluster: %s\n" % e) ``` @@ -130,7 +129,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v3.api.managed_clusters_api import ManagedClustersApi from sailpoint.v3.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -190,7 +188,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.managed_clusters_api import ManagedClustersApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.client_log_configuration import ClientLogConfiguration -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -205,7 +202,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ManagedClustersApi(api_client).get_client_log_configuration(id) print("The response of ManagedClustersApi->get_client_log_configuration:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ManagedClustersApi->get_client_log_configuration: %s\n" % e) ``` @@ -250,7 +247,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.managed_clusters_api import ManagedClustersApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.managed_cluster import ManagedCluster -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -265,7 +261,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ManagedClustersApi(api_client).get_managed_cluster(id) print("The response of ManagedClustersApi->get_managed_cluster:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ManagedClustersApi->get_managed_cluster: %s\n" % e) ``` @@ -312,7 +308,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.managed_clusters_api import ManagedClustersApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.managed_cluster import ManagedCluster -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -330,7 +325,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ManagedClustersApi(api_client).get_managed_clusters(offset, limit, count, filters) print("The response of ManagedClustersApi->get_managed_clusters:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ManagedClustersApi->get_managed_clusters: %s\n" % e) ``` @@ -377,7 +372,6 @@ from sailpoint.v3.api.managed_clusters_api import ManagedClustersApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.client_log_configuration import ClientLogConfiguration from sailpoint.v3.models.put_client_log_configuration_request import PutClientLogConfigurationRequest -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -393,7 +387,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ManagedClustersApi(api_client).put_client_log_configuration(id, new_put_client_log_configuration_request) print("The response of ManagedClustersApi->put_client_log_configuration:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ManagedClustersApi->put_client_log_configuration: %s\n" % e) ``` @@ -440,7 +434,6 @@ from sailpoint.v3.api.managed_clusters_api import ManagedClustersApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.json_patch_operation import JsonPatchOperation from sailpoint.v3.models.managed_cluster import ManagedCluster -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -456,7 +449,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ManagedClustersApi(api_client).update_managed_cluster(id, new_json_patch_operation) print("The response of ManagedClustersApi->update_managed_cluster:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ManagedClustersApi->update_managed_cluster: %s\n" % e) ``` diff --git a/sailpoint/v3/docs/Methods/NonEmployeeLifecycleManagementApi.md b/sailpoint/v3/docs/Methods/NonEmployeeLifecycleManagementApi.md index 59cc04efe..2753a668e 100644 --- a/sailpoint/v3/docs/Methods/NonEmployeeLifecycleManagementApi.md +++ b/sailpoint/v3/docs/Methods/NonEmployeeLifecycleManagementApi.md @@ -117,7 +117,6 @@ from sailpoint.v3.api.non_employee_lifecycle_management_api import NonEmployeeLi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.non_employee_approval_decision import NonEmployeeApprovalDecision from sailpoint.v3.models.non_employee_approval_item import NonEmployeeApprovalItem -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -135,7 +134,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NonEmployeeLifecycleManagementApi(api_client).approve_non_employee_request(id, new_non_employee_approval_decision) print("The response of NonEmployeeLifecycleManagementApi->approve_non_employee_request:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NonEmployeeLifecycleManagementApi->approve_non_employee_request: %s\n" % e) ``` @@ -181,7 +180,6 @@ from sailpoint.v3.api.non_employee_lifecycle_management_api import NonEmployeeLi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.non_employee_record import NonEmployeeRecord from sailpoint.v3.models.non_employee_request_body import NonEmployeeRequestBody -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -209,7 +207,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NonEmployeeLifecycleManagementApi(api_client).create_non_employee_record(new_non_employee_request_body) print("The response of NonEmployeeLifecycleManagementApi->create_non_employee_record:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NonEmployeeLifecycleManagementApi->create_non_employee_record: %s\n" % e) ``` @@ -254,7 +252,6 @@ from sailpoint.v3.api.non_employee_lifecycle_management_api import NonEmployeeLi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.non_employee_request import NonEmployeeRequest from sailpoint.v3.models.non_employee_request_body import NonEmployeeRequestBody -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -282,7 +279,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NonEmployeeLifecycleManagementApi(api_client).create_non_employee_request(new_non_employee_request_body) print("The response of NonEmployeeLifecycleManagementApi->create_non_employee_request:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NonEmployeeLifecycleManagementApi->create_non_employee_request: %s\n" % e) ``` @@ -327,7 +324,6 @@ from sailpoint.v3.api.non_employee_lifecycle_management_api import NonEmployeeLi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.non_employee_source_request_body import NonEmployeeSourceRequestBody from sailpoint.v3.models.non_employee_source_with_cloud_external_id import NonEmployeeSourceWithCloudExternalId -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -367,7 +363,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NonEmployeeLifecycleManagementApi(api_client).create_non_employee_source(new_non_employee_source_request_body) print("The response of NonEmployeeLifecycleManagementApi->create_non_employee_source:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NonEmployeeLifecycleManagementApi->create_non_employee_source: %s\n" % e) ``` @@ -414,7 +410,6 @@ from sailpoint.v3.api.non_employee_lifecycle_management_api import NonEmployeeLi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.non_employee_schema_attribute import NonEmployeeSchemaAttribute from sailpoint.v3.models.non_employee_schema_attribute_body import NonEmployeeSchemaAttributeBody -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -437,7 +432,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NonEmployeeLifecycleManagementApi(api_client).create_non_employee_source_schema_attributes(source_id, new_non_employee_schema_attribute_body) print("The response of NonEmployeeLifecycleManagementApi->create_non_employee_source_schema_attributes:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NonEmployeeLifecycleManagementApi->create_non_employee_source_schema_attributes: %s\n" % e) ``` @@ -481,7 +476,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v3.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v3.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -538,7 +532,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.delete_non_employee_records_in_bulk_request import DeleteNonEmployeeRecordsInBulkRequest -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -596,7 +589,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v3.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v3.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -655,7 +647,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v3.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v3.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -712,7 +703,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v3.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v3.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -768,7 +758,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v3.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v3.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -825,7 +814,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v3.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v3.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -882,7 +870,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v3.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v3.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -943,7 +930,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.non_employee_approval_item_detail import NonEmployeeApprovalItemDetail -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -959,7 +945,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_approval(id, include_detail) print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_approval:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_approval: %s\n" % e) ``` @@ -1007,7 +993,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.non_employee_approval_summary import NonEmployeeApprovalSummary -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1022,7 +1007,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_approval_summary(requested_for) print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_approval_summary:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_approval_summary: %s\n" % e) ``` @@ -1068,7 +1053,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.non_employee_bulk_upload_status import NonEmployeeBulkUploadStatus -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1083,7 +1067,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_bulk_upload_status(id) print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_bulk_upload_status:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_bulk_upload_status: %s\n" % e) ``` @@ -1128,7 +1112,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.non_employee_record import NonEmployeeRecord -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1143,7 +1126,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_record(id) print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_record:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_record: %s\n" % e) ``` @@ -1192,7 +1175,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.non_employee_request import NonEmployeeRequest -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1207,7 +1189,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_request(id) print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_request:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_request: %s\n" % e) ``` @@ -1255,7 +1237,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.non_employee_request_summary import NonEmployeeRequestSummary -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1270,7 +1251,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_request_summary(requested_for) print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_request_summary:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_request_summary: %s\n" % e) ``` @@ -1315,7 +1296,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.non_employee_schema_attribute import NonEmployeeSchemaAttribute -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1331,7 +1311,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_schema_attribute(attribute_id, source_id) print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_schema_attribute:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_schema_attribute: %s\n" % e) ``` @@ -1379,7 +1359,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.non_employee_source import NonEmployeeSource -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1394,7 +1373,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_source(source_id) print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_source:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_source: %s\n" % e) ``` @@ -1440,7 +1419,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.non_employee_schema_attribute import NonEmployeeSchemaAttribute -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1455,7 +1433,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NonEmployeeLifecycleManagementApi(api_client).get_non_employee_source_schema_attributes(source_id) print("The response of NonEmployeeLifecycleManagementApi->get_non_employee_source_schema_attributes:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NonEmployeeLifecycleManagementApi->get_non_employee_source_schema_attributes: %s\n" % e) ``` @@ -1501,7 +1479,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.non_employee_bulk_upload_job import NonEmployeeBulkUploadJob -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1517,7 +1494,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NonEmployeeLifecycleManagementApi(api_client).import_non_employee_records_in_bulk(id, data) print("The response of NonEmployeeLifecycleManagementApi->import_non_employee_records_in_bulk:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NonEmployeeLifecycleManagementApi->import_non_employee_records_in_bulk: %s\n" % e) ``` @@ -1570,7 +1547,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.non_employee_approval_item import NonEmployeeApprovalItem -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1590,7 +1566,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NonEmployeeLifecycleManagementApi(api_client).list_non_employee_approvals(requested_for, limit, offset, count, filters, sorters) print("The response of NonEmployeeLifecycleManagementApi->list_non_employee_approvals:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NonEmployeeLifecycleManagementApi->list_non_employee_approvals: %s\n" % e) ``` @@ -1640,7 +1616,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.non_employee_record import NonEmployeeRecord -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1659,7 +1634,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NonEmployeeLifecycleManagementApi(api_client).list_non_employee_records(limit, offset, count, sorters, filters) print("The response of NonEmployeeLifecycleManagementApi->list_non_employee_records:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NonEmployeeLifecycleManagementApi->list_non_employee_records: %s\n" % e) ``` @@ -1712,7 +1687,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.non_employee_request import NonEmployeeRequest -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1732,7 +1706,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NonEmployeeLifecycleManagementApi(api_client).list_non_employee_requests(requested_for, limit, offset, count, sorters, filters) print("The response of NonEmployeeLifecycleManagementApi->list_non_employee_requests:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NonEmployeeLifecycleManagementApi->list_non_employee_requests: %s\n" % e) ``` @@ -1783,7 +1757,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.non_employee_source_with_ne_count import NonEmployeeSourceWithNECount -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1803,7 +1776,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NonEmployeeLifecycleManagementApi(api_client).list_non_employee_sources(limit, offset, count, requested_for, non_employee_count, sorters) print("The response of NonEmployeeLifecycleManagementApi->list_non_employee_sources:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NonEmployeeLifecycleManagementApi->list_non_employee_sources: %s\n" % e) ``` @@ -1854,7 +1827,6 @@ from sailpoint.v3.api.non_employee_lifecycle_management_api import NonEmployeeLi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.json_patch_operation import JsonPatchOperation from sailpoint.v3.models.non_employee_record import NonEmployeeRecord -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1870,7 +1842,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NonEmployeeLifecycleManagementApi(api_client).patch_non_employee_record(id, new_json_patch_operation) print("The response of NonEmployeeLifecycleManagementApi->patch_non_employee_record:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NonEmployeeLifecycleManagementApi->patch_non_employee_record: %s\n" % e) ``` @@ -1920,7 +1892,6 @@ from sailpoint.v3.api.non_employee_lifecycle_management_api import NonEmployeeLi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.json_patch_operation import JsonPatchOperation from sailpoint.v3.models.non_employee_schema_attribute import NonEmployeeSchemaAttribute -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1937,7 +1908,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NonEmployeeLifecycleManagementApi(api_client).patch_non_employee_schema_attribute(attribute_id, source_id, new_json_patch_operation) print("The response of NonEmployeeLifecycleManagementApi->patch_non_employee_schema_attribute:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NonEmployeeLifecycleManagementApi->patch_non_employee_schema_attribute: %s\n" % e) ``` @@ -1983,7 +1954,6 @@ from sailpoint.v3.api.non_employee_lifecycle_management_api import NonEmployeeLi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.json_patch_operation import JsonPatchOperation from sailpoint.v3.models.non_employee_source import NonEmployeeSource -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1999,7 +1969,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NonEmployeeLifecycleManagementApi(api_client).patch_non_employee_source(source_id, new_json_patch_operation) print("The response of NonEmployeeLifecycleManagementApi->patch_non_employee_source:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NonEmployeeLifecycleManagementApi->patch_non_employee_source: %s\n" % e) ``` @@ -2045,7 +2015,6 @@ from sailpoint.v3.api.non_employee_lifecycle_management_api import NonEmployeeLi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.non_employee_approval_item import NonEmployeeApprovalItem from sailpoint.v3.models.non_employee_reject_approval_decision import NonEmployeeRejectApprovalDecision -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -2063,7 +2032,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NonEmployeeLifecycleManagementApi(api_client).reject_non_employee_request(id, new_non_employee_reject_approval_decision) print("The response of NonEmployeeLifecycleManagementApi->reject_non_employee_request:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NonEmployeeLifecycleManagementApi->reject_non_employee_request: %s\n" % e) ``` @@ -2114,7 +2083,6 @@ from sailpoint.v3.api.non_employee_lifecycle_management_api import NonEmployeeLi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.non_employee_record import NonEmployeeRecord from sailpoint.v3.models.non_employee_request_body import NonEmployeeRequestBody -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -2143,7 +2111,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = NonEmployeeLifecycleManagementApi(api_client).update_non_employee_record(id, new_non_employee_request_body) print("The response of NonEmployeeLifecycleManagementApi->update_non_employee_record:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling NonEmployeeLifecycleManagementApi->update_non_employee_record: %s\n" % e) ``` diff --git a/sailpoint/v3/docs/Methods/OAuthClientsApi.md b/sailpoint/v3/docs/Methods/OAuthClientsApi.md index 6b2107258..3db63429f 100644 --- a/sailpoint/v3/docs/Methods/OAuthClientsApi.md +++ b/sailpoint/v3/docs/Methods/OAuthClientsApi.md @@ -61,7 +61,6 @@ from sailpoint.v3.api.o_auth_clients_api import OAuthClientsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.create_o_auth_client_request import CreateOAuthClientRequest from sailpoint.v3.models.create_o_auth_client_response import CreateOAuthClientResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -92,7 +91,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = OAuthClientsApi(api_client).create_oauth_client(new_create_o_auth_client_request) print("The response of OAuthClientsApi->create_oauth_client:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling OAuthClientsApi->create_oauth_client: %s\n" % e) ``` @@ -136,7 +135,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v3.api.o_auth_clients_api import OAuthClientsApi from sailpoint.v3.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -194,7 +192,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.o_auth_clients_api import OAuthClientsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.get_o_auth_client_response import GetOAuthClientResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -209,7 +206,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = OAuthClientsApi(api_client).get_oauth_client(id) print("The response of OAuthClientsApi->get_oauth_client:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling OAuthClientsApi->get_oauth_client: %s\n" % e) ``` @@ -253,7 +250,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.o_auth_clients_api import OAuthClientsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.get_o_auth_client_response import GetOAuthClientResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -268,7 +264,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = OAuthClientsApi(api_client).list_oauth_clients(filters) print("The response of OAuthClientsApi->list_oauth_clients:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling OAuthClientsApi->list_oauth_clients: %s\n" % e) ``` @@ -315,7 +311,6 @@ from sailpoint.v3.api.o_auth_clients_api import OAuthClientsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.get_o_auth_client_response import GetOAuthClientResponse from sailpoint.v3.models.json_patch_operation import JsonPatchOperation -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -331,7 +326,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = OAuthClientsApi(api_client).patch_oauth_client(id, new_json_patch_operation) print("The response of OAuthClientsApi->patch_oauth_client:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling OAuthClientsApi->patch_oauth_client: %s\n" % e) ``` diff --git a/sailpoint/v3/docs/Methods/PasswordConfigurationApi.md b/sailpoint/v3/docs/Methods/PasswordConfigurationApi.md index 9c43e174e..f01c43c0d 100644 --- a/sailpoint/v3/docs/Methods/PasswordConfigurationApi.md +++ b/sailpoint/v3/docs/Methods/PasswordConfigurationApi.md @@ -63,7 +63,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.password_configuration_api import PasswordConfigurationApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.password_org_config import PasswordOrgConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -83,7 +82,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = PasswordConfigurationApi(api_client).create_password_org_config(new_password_org_config) print("The response of PasswordConfigurationApi->create_password_org_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling PasswordConfigurationApi->create_password_org_config: %s\n" % e) ``` @@ -124,7 +123,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.password_configuration_api import PasswordConfigurationApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.password_org_config import PasswordOrgConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -138,7 +136,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = PasswordConfigurationApi(api_client).get_password_org_config() print("The response of PasswordConfigurationApi->get_password_org_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling PasswordConfigurationApi->get_password_org_config: %s\n" % e) ``` @@ -184,7 +182,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.password_configuration_api import PasswordConfigurationApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.password_org_config import PasswordOrgConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -204,7 +201,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = PasswordConfigurationApi(api_client).put_password_org_config(new_password_org_config) print("The response of PasswordConfigurationApi->put_password_org_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling PasswordConfigurationApi->put_password_org_config: %s\n" % e) ``` diff --git a/sailpoint/v3/docs/Methods/PasswordDictionaryApi.md b/sailpoint/v3/docs/Methods/PasswordDictionaryApi.md index 517e10da6..77001cc63 100644 --- a/sailpoint/v3/docs/Methods/PasswordDictionaryApi.md +++ b/sailpoint/v3/docs/Methods/PasswordDictionaryApi.md @@ -126,7 +126,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v3.api.password_dictionary_api import PasswordDictionaryApi from sailpoint.v3.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -140,7 +139,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = PasswordDictionaryApi(api_client).get_password_dictionary() print("The response of PasswordDictionaryApi->get_password_dictionary:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling PasswordDictionaryApi->get_password_dictionary: %s\n" % e) ``` @@ -213,7 +212,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v3.api.password_dictionary_api import PasswordDictionaryApi from sailpoint.v3.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() diff --git a/sailpoint/v3/docs/Methods/PasswordManagementApi.md b/sailpoint/v3/docs/Methods/PasswordManagementApi.md index d8ffc43f7..a54717e07 100644 --- a/sailpoint/v3/docs/Methods/PasswordManagementApi.md +++ b/sailpoint/v3/docs/Methods/PasswordManagementApi.md @@ -80,7 +80,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.password_management_api import PasswordManagementApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.password_status import PasswordStatus -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -95,7 +94,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = PasswordManagementApi(api_client).get_password_change_status(id) print("The response of PasswordManagementApi->get_password_change_status:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling PasswordManagementApi->get_password_change_status: %s\n" % e) ``` @@ -141,7 +140,6 @@ from sailpoint.v3.api.password_management_api import PasswordManagementApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.password_info import PasswordInfo from sailpoint.v3.models.password_info_query_dto import PasswordInfoQueryDTO -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -159,7 +157,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = PasswordManagementApi(api_client).query_password_info(new_password_info_query_dto) print("The response of PasswordManagementApi->query_password_info:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling PasswordManagementApi->query_password_info: %s\n" % e) ``` @@ -223,7 +221,6 @@ from sailpoint.v3.api.password_management_api import PasswordManagementApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.password_change_request import PasswordChangeRequest from sailpoint.v3.models.password_change_response import PasswordChangeResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -244,7 +241,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = PasswordManagementApi(api_client).set_password(new_password_change_request) print("The response of PasswordManagementApi->set_password:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling PasswordManagementApi->set_password: %s\n" % e) ``` diff --git a/sailpoint/v3/docs/Methods/PasswordPoliciesApi.md b/sailpoint/v3/docs/Methods/PasswordPoliciesApi.md index 53712263c..98034eddd 100644 --- a/sailpoint/v3/docs/Methods/PasswordPoliciesApi.md +++ b/sailpoint/v3/docs/Methods/PasswordPoliciesApi.md @@ -66,7 +66,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.password_policies_api import PasswordPoliciesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.password_policy_v3_dto import PasswordPolicyV3Dto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -113,7 +112,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = PasswordPoliciesApi(api_client).create_password_policy(new_password_policy_v3_dto) print("The response of PasswordPoliciesApi->create_password_policy:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling PasswordPoliciesApi->create_password_policy: %s\n" % e) ``` @@ -157,7 +156,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v3.api.password_policies_api import PasswordPoliciesApi from sailpoint.v3.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -215,7 +213,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.password_policies_api import PasswordPoliciesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.password_policy_v3_dto import PasswordPolicyV3Dto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -230,7 +227,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = PasswordPoliciesApi(api_client).get_password_policy_by_id(id) print("The response of PasswordPoliciesApi->get_password_policy_by_id:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling PasswordPoliciesApi->get_password_policy_by_id: %s\n" % e) ``` @@ -277,7 +274,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.password_policies_api import PasswordPoliciesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.password_policy_v3_dto import PasswordPolicyV3Dto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -294,7 +290,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = PasswordPoliciesApi(api_client).list_password_policies(limit, offset, count) print("The response of PasswordPoliciesApi->list_password_policies:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling PasswordPoliciesApi->list_password_policies: %s\n" % e) ``` @@ -340,7 +336,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.password_policies_api import PasswordPoliciesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.password_policy_v3_dto import PasswordPolicyV3Dto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -388,7 +383,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = PasswordPoliciesApi(api_client).set_password_policy(id, new_password_policy_v3_dto) print("The response of PasswordPoliciesApi->set_password_policy:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling PasswordPoliciesApi->set_password_policy: %s\n" % e) ``` diff --git a/sailpoint/v3/docs/Methods/PasswordSyncGroupsApi.md b/sailpoint/v3/docs/Methods/PasswordSyncGroupsApi.md index 3f3cee8fe..504465b9f 100644 --- a/sailpoint/v3/docs/Methods/PasswordSyncGroupsApi.md +++ b/sailpoint/v3/docs/Methods/PasswordSyncGroupsApi.md @@ -89,7 +89,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.password_sync_groups_api import PasswordSyncGroupsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.password_sync_group import PasswordSyncGroup -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -111,7 +110,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = PasswordSyncGroupsApi(api_client).create_password_sync_group(new_password_sync_group) print("The response of PasswordSyncGroupsApi->create_password_sync_group:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling PasswordSyncGroupsApi->create_password_sync_group: %s\n" % e) ``` @@ -154,7 +153,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v3.api.password_sync_groups_api import PasswordSyncGroupsApi from sailpoint.v3.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -212,7 +210,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.password_sync_groups_api import PasswordSyncGroupsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.password_sync_group import PasswordSyncGroup -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -227,7 +224,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = PasswordSyncGroupsApi(api_client).get_password_sync_group(id) print("The response of PasswordSyncGroupsApi->get_password_sync_group:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling PasswordSyncGroupsApi->get_password_sync_group: %s\n" % e) ``` @@ -273,7 +270,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.password_sync_groups_api import PasswordSyncGroupsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.password_sync_group import PasswordSyncGroup -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -290,7 +286,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = PasswordSyncGroupsApi(api_client).get_password_sync_groups(limit, offset, count) print("The response of PasswordSyncGroupsApi->get_password_sync_groups:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling PasswordSyncGroupsApi->get_password_sync_groups: %s\n" % e) ``` @@ -336,7 +332,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.password_sync_groups_api import PasswordSyncGroupsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.password_sync_group import PasswordSyncGroup -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -359,7 +354,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = PasswordSyncGroupsApi(api_client).update_password_sync_group(id, new_password_sync_group) print("The response of PasswordSyncGroupsApi->update_password_sync_group:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling PasswordSyncGroupsApi->update_password_sync_group: %s\n" % e) ``` diff --git a/sailpoint/v3/docs/Methods/PersonalAccessTokensApi.md b/sailpoint/v3/docs/Methods/PersonalAccessTokensApi.md index 904b53c74..cd23f309a 100644 --- a/sailpoint/v3/docs/Methods/PersonalAccessTokensApi.md +++ b/sailpoint/v3/docs/Methods/PersonalAccessTokensApi.md @@ -68,7 +68,6 @@ from sailpoint.v3.api.personal_access_tokens_api import PersonalAccessTokensApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.create_personal_access_token_request import CreatePersonalAccessTokenRequest from sailpoint.v3.models.create_personal_access_token_response import CreatePersonalAccessTokenResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -87,7 +86,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = PersonalAccessTokensApi(api_client).create_personal_access_token(new_create_personal_access_token_request) print("The response of PersonalAccessTokensApi->create_personal_access_token:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling PersonalAccessTokensApi->create_personal_access_token: %s\n" % e) ``` @@ -131,7 +130,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v3.api.personal_access_tokens_api import PersonalAccessTokensApi from sailpoint.v3.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -189,7 +187,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.personal_access_tokens_api import PersonalAccessTokensApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.get_personal_access_token_response import GetPersonalAccessTokenResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -205,7 +202,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = PersonalAccessTokensApi(api_client).list_personal_access_tokens(owner_id, filters) print("The response of PersonalAccessTokensApi->list_personal_access_tokens:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling PersonalAccessTokensApi->list_personal_access_tokens: %s\n" % e) ``` @@ -253,7 +250,6 @@ from sailpoint.v3.api.personal_access_tokens_api import PersonalAccessTokensApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.get_personal_access_token_response import GetPersonalAccessTokenResponse from sailpoint.v3.models.json_patch_operation import JsonPatchOperation -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -269,7 +265,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = PersonalAccessTokensApi(api_client).patch_personal_access_token(id, new_json_patch_operation) print("The response of PersonalAccessTokensApi->patch_personal_access_token:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling PersonalAccessTokensApi->patch_personal_access_token: %s\n" % e) ``` diff --git a/sailpoint/v3/docs/Methods/PublicIdentitiesApi.md b/sailpoint/v3/docs/Methods/PublicIdentitiesApi.md index d918fa0ee..4cd8c8d05 100644 --- a/sailpoint/v3/docs/Methods/PublicIdentitiesApi.md +++ b/sailpoint/v3/docs/Methods/PublicIdentitiesApi.md @@ -61,7 +61,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.public_identities_api import PublicIdentitiesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.public_identity import PublicIdentity -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -81,7 +80,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = PublicIdentitiesApi(api_client).get_public_identities(limit, offset, count, filters, add_core_filters, sorters) print("The response of PublicIdentitiesApi->get_public_identities:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling PublicIdentitiesApi->get_public_identities: %s\n" % e) ``` diff --git a/sailpoint/v3/docs/Methods/PublicIdentitiesConfigApi.md b/sailpoint/v3/docs/Methods/PublicIdentitiesConfigApi.md index 4167205a5..121952942 100644 --- a/sailpoint/v3/docs/Methods/PublicIdentitiesConfigApi.md +++ b/sailpoint/v3/docs/Methods/PublicIdentitiesConfigApi.md @@ -61,7 +61,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.public_identities_config_api import PublicIdentitiesConfigApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.public_identity_config import PublicIdentityConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -75,7 +74,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = PublicIdentitiesConfigApi(api_client).get_public_identity_config() print("The response of PublicIdentitiesConfigApi->get_public_identity_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling PublicIdentitiesConfigApi->get_public_identity_config: %s\n" % e) ``` @@ -119,7 +118,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.public_identities_config_api import PublicIdentitiesConfigApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.public_identity_config import PublicIdentityConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -148,7 +146,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = PublicIdentitiesConfigApi(api_client).update_public_identity_config(new_public_identity_config) print("The response of PublicIdentitiesConfigApi->update_public_identity_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling PublicIdentitiesConfigApi->update_public_identity_config: %s\n" % e) ``` diff --git a/sailpoint/v3/docs/Methods/ReportsDataExtractionApi.md b/sailpoint/v3/docs/Methods/ReportsDataExtractionApi.md index 432696dda..2121f4a48 100644 --- a/sailpoint/v3/docs/Methods/ReportsDataExtractionApi.md +++ b/sailpoint/v3/docs/Methods/ReportsDataExtractionApi.md @@ -58,7 +58,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v3.api.reports_data_extraction_api import ReportsDataExtractionApi from sailpoint.v3.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -118,7 +117,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v3.api.reports_data_extraction_api import ReportsDataExtractionApi from sailpoint.v3.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -136,7 +134,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ReportsDataExtractionApi(api_client).get_report(task_result_id, file_format, name, auditable) print("The response of ReportsDataExtractionApi->get_report:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ReportsDataExtractionApi->get_report: %s\n" % e) ``` @@ -181,7 +179,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.reports_data_extraction_api import ReportsDataExtractionApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.report_results import ReportResults -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -197,7 +194,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ReportsDataExtractionApi(api_client).get_report_result(task_result_id, completed) print("The response of ReportsDataExtractionApi->get_report_result:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ReportsDataExtractionApi->get_report_result: %s\n" % e) ``` @@ -242,7 +239,6 @@ from sailpoint.v3.api.reports_data_extraction_api import ReportsDataExtractionAp from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.report_details import ReportDetails from sailpoint.v3.models.task_result_details import TaskResultDetails -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -263,7 +259,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ReportsDataExtractionApi(api_client).start_report(new_report_details) print("The response of ReportsDataExtractionApi->start_report:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ReportsDataExtractionApi->start_report: %s\n" % e) ``` diff --git a/sailpoint/v3/docs/Methods/RequestableObjectsApi.md b/sailpoint/v3/docs/Methods/RequestableObjectsApi.md index 69421c882..e26465ea3 100644 --- a/sailpoint/v3/docs/Methods/RequestableObjectsApi.md +++ b/sailpoint/v3/docs/Methods/RequestableObjectsApi.md @@ -67,7 +67,6 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.requestable_object import RequestableObject from sailpoint.v3.models.requestable_object_request_status import RequestableObjectRequestStatus from sailpoint.v3.models.requestable_object_type import RequestableObjectType -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -90,7 +89,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = RequestableObjectsApi(api_client).list_requestable_objects(identity_id, types, term, statuses, limit, offset, count, filters, sorters) print("The response of RequestableObjectsApi->list_requestable_objects:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling RequestableObjectsApi->list_requestable_objects: %s\n" % e) ``` diff --git a/sailpoint/v3/docs/Methods/RolesApi.md b/sailpoint/v3/docs/Methods/RolesApi.md index 0da3ac2ac..b99f995af 100644 --- a/sailpoint/v3/docs/Methods/RolesApi.md +++ b/sailpoint/v3/docs/Methods/RolesApi.md @@ -99,7 +99,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.roles_api import RolesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.role import Role -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -271,7 +270,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = RolesApi(api_client).create_role(new_role) print("The response of RolesApi->create_role:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling RolesApi->create_role: %s\n" % e) ``` @@ -319,7 +318,6 @@ from sailpoint.v3.api.roles_api import RolesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.role_bulk_delete_request import RoleBulkDeleteRequest from sailpoint.v3.models.task_result_dto import TaskResultDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -336,7 +334,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = RolesApi(api_client).delete_bulk_roles(new_role_bulk_delete_request) print("The response of RolesApi->delete_bulk_roles:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling RolesApi->delete_bulk_roles: %s\n" % e) ``` @@ -381,7 +379,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v3.api.roles_api import RolesApi from sailpoint.v3.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -439,7 +436,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.roles_api import RolesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.role import Role -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -454,7 +450,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = RolesApi(api_client).get_role(id) print("The response of RolesApi->get_role:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling RolesApi->get_role: %s\n" % e) ``` @@ -503,7 +499,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.roles_api import RolesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.role_identity import RoleIdentity -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -523,7 +518,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = RolesApi(api_client).get_role_assigned_identities(id, limit, offset, count, filters, sorters) print("The response of RolesApi->get_role_assigned_identities:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling RolesApi->get_role_assigned_identities: %s\n" % e) ``` @@ -574,7 +569,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.roles_api import RolesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.role import Role -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -596,7 +590,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = RolesApi(api_client).list_roles(for_subadmin, limit, offset, count, filters, sorters, for_segment_ids, include_unsegmented) print("The response of RolesApi->list_roles:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling RolesApi->list_roles: %s\n" % e) ``` @@ -661,7 +655,6 @@ from sailpoint.v3.api.roles_api import RolesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.json_patch_operation import JsonPatchOperation from sailpoint.v3.models.role import Role -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -677,7 +670,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = RolesApi(api_client).patch_role(id, new_json_patch_operation) print("The response of RolesApi->patch_role:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling RolesApi->patch_role: %s\n" % e) ``` diff --git a/sailpoint/v3/docs/Methods/SODPoliciesApi.md b/sailpoint/v3/docs/Methods/SODPoliciesApi.md index 911e69b9f..e464d48c2 100644 --- a/sailpoint/v3/docs/Methods/SODPoliciesApi.md +++ b/sailpoint/v3/docs/Methods/SODPoliciesApi.md @@ -96,7 +96,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.sod_policies_api import SODPoliciesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.sod_policy import SodPolicy -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -166,7 +165,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SODPoliciesApi(api_client).create_sod_policy(new_sod_policy) print("The response of SODPoliciesApi->create_sod_policy:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SODPoliciesApi->create_sod_policy: %s\n" % e) ``` @@ -212,7 +211,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v3.api.sod_policies_api import SODPoliciesApi from sailpoint.v3.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -270,7 +268,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v3.api.sod_policies_api import SODPoliciesApi from sailpoint.v3.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -328,7 +325,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v3.api.sod_policies_api import SODPoliciesApi from sailpoint.v3.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -344,7 +340,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SODPoliciesApi(api_client).get_custom_violation_report(report_result_id, file_name) print("The response of SODPoliciesApi->get_custom_violation_report:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SODPoliciesApi->get_custom_violation_report: %s\n" % e) ``` @@ -388,7 +384,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v3.api.sod_policies_api import SODPoliciesApi from sailpoint.v3.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -403,7 +398,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SODPoliciesApi(api_client).get_default_violation_report(report_result_id) print("The response of SODPoliciesApi->get_default_violation_report:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SODPoliciesApi->get_default_violation_report: %s\n" % e) ``` @@ -444,7 +439,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.sod_policies_api import SODPoliciesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.report_result_reference import ReportResultReference -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -458,7 +452,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SODPoliciesApi(api_client).get_sod_all_report_run_status() print("The response of SODPoliciesApi->get_sod_all_report_run_status:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SODPoliciesApi->get_sod_all_report_run_status: %s\n" % e) ``` @@ -504,7 +498,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.sod_policies_api import SODPoliciesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.sod_policy import SodPolicy -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -519,7 +512,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SODPoliciesApi(api_client).get_sod_policy(id) print("The response of SODPoliciesApi->get_sod_policy:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SODPoliciesApi->get_sod_policy: %s\n" % e) ``` @@ -563,7 +556,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.sod_policies_api import SODPoliciesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.sod_policy_schedule import SodPolicySchedule -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -578,7 +570,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SODPoliciesApi(api_client).get_sod_policy_schedule(id) print("The response of SODPoliciesApi->get_sod_policy_schedule:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SODPoliciesApi->get_sod_policy_schedule: %s\n" % e) ``` @@ -623,7 +615,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.sod_policies_api import SODPoliciesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.report_result_reference import ReportResultReference -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -638,7 +629,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SODPoliciesApi(api_client).get_sod_violation_report_run_status(report_result_id) print("The response of SODPoliciesApi->get_sod_violation_report_run_status:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SODPoliciesApi->get_sod_violation_report_run_status: %s\n" % e) ``` @@ -683,7 +674,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.sod_policies_api import SODPoliciesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.report_result_reference import ReportResultReference -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -698,7 +688,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SODPoliciesApi(api_client).get_sod_violation_report_status(id) print("The response of SODPoliciesApi->get_sod_violation_report_status:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SODPoliciesApi->get_sod_violation_report_status: %s\n" % e) ``` @@ -747,7 +737,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.sod_policies_api import SODPoliciesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.sod_policy import SodPolicy -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -766,7 +755,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SODPoliciesApi(api_client).list_sod_policies(limit, offset, count, filters, sorters) print("The response of SODPoliciesApi->list_sod_policies:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SODPoliciesApi->list_sod_policies: %s\n" % e) ``` @@ -815,7 +804,6 @@ from sailpoint.v3.api.sod_policies_api import SODPoliciesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.json_patch_operation import JsonPatchOperation from sailpoint.v3.models.sod_policy import SodPolicy -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -831,7 +819,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SODPoliciesApi(api_client).patch_sod_policy(id, new_json_patch_operation) print("The response of SODPoliciesApi->patch_sod_policy:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SODPoliciesApi->patch_sod_policy: %s\n" % e) ``` @@ -876,7 +864,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.sod_policies_api import SODPoliciesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.sod_policy_schedule import SodPolicySchedule -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -929,7 +916,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SODPoliciesApi(api_client).put_policy_schedule(id, new_sod_policy_schedule) print("The response of SODPoliciesApi->put_policy_schedule:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SODPoliciesApi->put_policy_schedule: %s\n" % e) ``` @@ -976,7 +963,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.sod_policies_api import SODPoliciesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.sod_policy import SodPolicy -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1047,7 +1033,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SODPoliciesApi(api_client).put_sod_policy(id, new_sod_policy) print("The response of SODPoliciesApi->put_sod_policy:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SODPoliciesApi->put_sod_policy: %s\n" % e) ``` @@ -1091,7 +1077,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.sod_policies_api import SODPoliciesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.report_result_reference import ReportResultReference -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1106,7 +1091,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SODPoliciesApi(api_client).start_evaluate_sod_policy(id) print("The response of SODPoliciesApi->start_evaluate_sod_policy:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SODPoliciesApi->start_evaluate_sod_policy: %s\n" % e) ``` @@ -1151,7 +1136,6 @@ from sailpoint.v3.api.sod_policies_api import SODPoliciesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.multi_policy_request import MultiPolicyRequest from sailpoint.v3.models.report_result_reference import ReportResultReference -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1168,7 +1152,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SODPoliciesApi(api_client).start_sod_all_policies_for_org(new_multi_policy_request) print("The response of SODPoliciesApi->start_sod_all_policies_for_org:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SODPoliciesApi->start_sod_all_policies_for_org: %s\n" % e) ``` @@ -1213,7 +1197,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.sod_policies_api import SODPoliciesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.report_result_reference import ReportResultReference -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1228,7 +1211,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SODPoliciesApi(api_client).start_sod_policy(id) print("The response of SODPoliciesApi->start_sod_policy:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SODPoliciesApi->start_sod_policy: %s\n" % e) ``` diff --git a/sailpoint/v3/docs/Methods/SODViolationsApi.md b/sailpoint/v3/docs/Methods/SODViolationsApi.md index f1ead7b89..fc997eec3 100644 --- a/sailpoint/v3/docs/Methods/SODViolationsApi.md +++ b/sailpoint/v3/docs/Methods/SODViolationsApi.md @@ -74,7 +74,6 @@ from sailpoint.v3.api.sod_violations_api import SODViolationsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.identity_with_new_access import IdentityWithNewAccess from sailpoint.v3.models.violation_prediction import ViolationPrediction -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -100,7 +99,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SODViolationsApi(api_client).start_predict_sod_violations(new_identity_with_new_access) print("The response of SODViolationsApi->start_predict_sod_violations:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SODViolationsApi->start_predict_sod_violations: %s\n" % e) ``` @@ -146,7 +145,6 @@ from sailpoint.v3.api.sod_violations_api import SODViolationsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.identity_with_new_access1 import IdentityWithNewAccess1 from sailpoint.v3.models.sod_violation_check import SodViolationCheck -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -161,7 +159,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SODViolationsApi(api_client).start_violation_check(new_identity_with_new_access1) print("The response of SODViolationsApi->start_violation_check:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SODViolationsApi->start_violation_check: %s\n" % e) ``` diff --git a/sailpoint/v3/docs/Methods/SavedSearchApi.md b/sailpoint/v3/docs/Methods/SavedSearchApi.md index 6c8ecd516..23fb26d5b 100644 --- a/sailpoint/v3/docs/Methods/SavedSearchApi.md +++ b/sailpoint/v3/docs/Methods/SavedSearchApi.md @@ -70,7 +70,6 @@ from sailpoint.v3.api.saved_search_api import SavedSearchApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.create_saved_search_request import CreateSavedSearchRequest from sailpoint.v3.models.saved_search import SavedSearch -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -85,7 +84,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SavedSearchApi(api_client).create_saved_search(new_create_saved_search_request) print("The response of SavedSearchApi->create_saved_search:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SavedSearchApi->create_saved_search: %s\n" % e) ``` @@ -130,7 +129,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v3.api.saved_search_api import SavedSearchApi from sailpoint.v3.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -190,7 +188,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.saved_search_api import SavedSearchApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.search_arguments import SearchArguments -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -260,7 +257,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.saved_search_api import SavedSearchApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.saved_search import SavedSearch -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -275,7 +271,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SavedSearchApi(api_client).get_saved_search(id) print("The response of SavedSearchApi->get_saved_search:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SavedSearchApi->get_saved_search: %s\n" % e) ``` @@ -323,7 +319,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.saved_search_api import SavedSearchApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.saved_search import SavedSearch -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -341,7 +336,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SavedSearchApi(api_client).list_saved_searches(offset, limit, count, filters) print("The response of SavedSearchApi->list_saved_searches:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SavedSearchApi->list_saved_searches: %s\n" % e) ``` @@ -389,7 +384,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.saved_search_api import SavedSearchApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.saved_search import SavedSearch -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -449,7 +443,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SavedSearchApi(api_client).put_saved_search(id, new_saved_search) print("The response of SavedSearchApi->put_saved_search:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SavedSearchApi->put_saved_search: %s\n" % e) ``` diff --git a/sailpoint/v3/docs/Methods/ScheduledSearchApi.md b/sailpoint/v3/docs/Methods/ScheduledSearchApi.md index e5342b004..7ed54200a 100644 --- a/sailpoint/v3/docs/Methods/ScheduledSearchApi.md +++ b/sailpoint/v3/docs/Methods/ScheduledSearchApi.md @@ -87,7 +87,6 @@ from sailpoint.v3.api.scheduled_search_api import ScheduledSearchApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.create_scheduled_search_request import CreateScheduledSearchRequest from sailpoint.v3.models.scheduled_search import ScheduledSearch -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -102,7 +101,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ScheduledSearchApi(api_client).create_scheduled_search(new_create_scheduled_search_request) print("The response of ScheduledSearchApi->create_scheduled_search:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ScheduledSearchApi->create_scheduled_search: %s\n" % e) ``` @@ -147,7 +146,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v3.api.scheduled_search_api import ScheduledSearchApi from sailpoint.v3.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -205,7 +203,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.scheduled_search_api import ScheduledSearchApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.scheduled_search import ScheduledSearch -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -220,7 +217,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ScheduledSearchApi(api_client).get_scheduled_search(id) print("The response of ScheduledSearchApi->get_scheduled_search:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ScheduledSearchApi->get_scheduled_search: %s\n" % e) ``` @@ -269,7 +266,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.scheduled_search_api import ScheduledSearchApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.scheduled_search import ScheduledSearch -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -287,7 +283,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ScheduledSearchApi(api_client).list_scheduled_search(offset, limit, count, filters) print("The response of ScheduledSearchApi->list_scheduled_search:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ScheduledSearchApi->list_scheduled_search: %s\n" % e) ``` @@ -331,7 +327,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.scheduled_search_api import ScheduledSearchApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.typed_reference import TypedReference -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -395,7 +390,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.scheduled_search_api import ScheduledSearchApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.scheduled_search import ScheduledSearch -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -453,7 +447,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ScheduledSearchApi(api_client).update_scheduled_search(id, new_scheduled_search) print("The response of ScheduledSearchApi->update_scheduled_search:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ScheduledSearchApi->update_scheduled_search: %s\n" % e) ``` diff --git a/sailpoint/v3/docs/Methods/SearchApi.md b/sailpoint/v3/docs/Methods/SearchApi.md index 970df37c8..6cd2d1f71 100644 --- a/sailpoint/v3/docs/Methods/SearchApi.md +++ b/sailpoint/v3/docs/Methods/SearchApi.md @@ -83,7 +83,6 @@ from sailpoint.v3.api.search_api import SearchApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.aggregation_result import AggregationResult from sailpoint.v3.models.search import Search -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -217,7 +216,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SearchApi(api_client).search_aggregate(new_search, offset, limit, count) print("The response of SearchApi->search_aggregate:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SearchApi->search_aggregate: %s\n" % e) ``` @@ -261,7 +260,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.search_api import SearchApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.search import Search -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -435,7 +433,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v3.api.search_api import SearchApi from sailpoint.v3.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -451,7 +448,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SearchApi(api_client).search_get(index, id) print("The response of SearchApi->search_get:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SearchApi->search_get: %s\n" % e) ``` @@ -498,7 +495,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.search_api import SearchApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.search import Search -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -632,7 +628,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SearchApi(api_client).search_post(new_search, offset, limit, count) print("The response of SearchApi->search_post:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SearchApi->search_post: %s\n" % e) ``` diff --git a/sailpoint/v3/docs/Methods/SearchAttributeConfigurationApi.md b/sailpoint/v3/docs/Methods/SearchAttributeConfigurationApi.md index e5ba864e8..56324446a 100644 --- a/sailpoint/v3/docs/Methods/SearchAttributeConfigurationApi.md +++ b/sailpoint/v3/docs/Methods/SearchAttributeConfigurationApi.md @@ -77,7 +77,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.search_attribute_configuration_api import SearchAttributeConfigurationApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.search_attribute_config import SearchAttributeConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -99,7 +98,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SearchAttributeConfigurationApi(api_client).create_search_attribute_config(new_search_attribute_config) print("The response of SearchAttributeConfigurationApi->create_search_attribute_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SearchAttributeConfigurationApi->create_search_attribute_config: %s\n" % e) ``` @@ -143,7 +142,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v3.api.search_attribute_configuration_api import SearchAttributeConfigurationApi from sailpoint.v3.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -201,7 +199,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.search_attribute_configuration_api import SearchAttributeConfigurationApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.search_attribute_config import SearchAttributeConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -217,7 +214,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SearchAttributeConfigurationApi(api_client).get_search_attribute_config(limit, offset) print("The response of SearchAttributeConfigurationApi->get_search_attribute_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SearchAttributeConfigurationApi->get_search_attribute_config: %s\n" % e) ``` @@ -263,7 +260,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.search_attribute_configuration_api import SearchAttributeConfigurationApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.search_attribute_config import SearchAttributeConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -278,7 +274,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SearchAttributeConfigurationApi(api_client).get_single_search_attribute_config(name) print("The response of SearchAttributeConfigurationApi->get_single_search_attribute_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SearchAttributeConfigurationApi->get_single_search_attribute_config: %s\n" % e) ``` @@ -327,7 +323,6 @@ from sailpoint.v3.api.search_attribute_configuration_api import SearchAttributeC from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.json_patch_operation import JsonPatchOperation from sailpoint.v3.models.search_attribute_config import SearchAttributeConfig -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -343,7 +338,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SearchAttributeConfigurationApi(api_client).patch_search_attribute_config(name, new_json_patch_operation) print("The response of SearchAttributeConfigurationApi->patch_search_attribute_config:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SearchAttributeConfigurationApi->patch_search_attribute_config: %s\n" % e) ``` diff --git a/sailpoint/v3/docs/Methods/SegmentsApi.md b/sailpoint/v3/docs/Methods/SegmentsApi.md index 54e2fa069..aa135f39d 100644 --- a/sailpoint/v3/docs/Methods/SegmentsApi.md +++ b/sailpoint/v3/docs/Methods/SegmentsApi.md @@ -75,7 +75,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.segments_api import SegmentsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.segment import Segment -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -113,7 +112,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SegmentsApi(api_client).create_segment(new_segment) print("The response of SegmentsApi->create_segment:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SegmentsApi->create_segment: %s\n" % e) ``` @@ -158,7 +157,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v3.api.segments_api import SegmentsApi from sailpoint.v3.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -216,7 +214,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.segments_api import SegmentsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.segment import Segment -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -231,7 +228,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SegmentsApi(api_client).get_segment(id) print("The response of SegmentsApi->get_segment:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SegmentsApi->get_segment: %s\n" % e) ``` @@ -277,7 +274,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.segments_api import SegmentsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.segment import Segment -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -294,7 +290,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SegmentsApi(api_client).list_segments(limit, offset, count) print("The response of SegmentsApi->list_segments:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SegmentsApi->list_segments: %s\n" % e) ``` @@ -341,7 +337,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.segments_api import SegmentsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.segment import Segment -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -357,7 +352,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SegmentsApi(api_client).patch_segment(id, new_request_body) print("The response of SegmentsApi->patch_segment:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SegmentsApi->patch_segment: %s\n" % e) ``` diff --git a/sailpoint/v3/docs/Methods/ServiceDeskIntegrationApi.md b/sailpoint/v3/docs/Methods/ServiceDeskIntegrationApi.md index a0871b712..73106dd2c 100644 --- a/sailpoint/v3/docs/Methods/ServiceDeskIntegrationApi.md +++ b/sailpoint/v3/docs/Methods/ServiceDeskIntegrationApi.md @@ -87,7 +87,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.service_desk_integration_api import ServiceDeskIntegrationApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.service_desk_integration_dto import ServiceDeskIntegrationDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -135,7 +134,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ServiceDeskIntegrationApi(api_client).create_service_desk_integration(new_service_desk_integration_dto) print("The response of ServiceDeskIntegrationApi->create_service_desk_integration:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ServiceDeskIntegrationApi->create_service_desk_integration: %s\n" % e) ``` @@ -179,7 +178,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v3.api.service_desk_integration_api import ServiceDeskIntegrationApi from sailpoint.v3.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -237,7 +235,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.service_desk_integration_api import ServiceDeskIntegrationApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.service_desk_integration_dto import ServiceDeskIntegrationDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -252,7 +249,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ServiceDeskIntegrationApi(api_client).get_service_desk_integration(id) print("The response of ServiceDeskIntegrationApi->get_service_desk_integration:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ServiceDeskIntegrationApi->get_service_desk_integration: %s\n" % e) ``` @@ -297,7 +294,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.service_desk_integration_api import ServiceDeskIntegrationApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.service_desk_integration_template_dto import ServiceDeskIntegrationTemplateDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -312,7 +308,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ServiceDeskIntegrationApi(api_client).get_service_desk_integration_template(script_name) print("The response of ServiceDeskIntegrationApi->get_service_desk_integration_template:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ServiceDeskIntegrationApi->get_service_desk_integration_template: %s\n" % e) ``` @@ -354,7 +350,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.service_desk_integration_api import ServiceDeskIntegrationApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.service_desk_integration_template_type import ServiceDeskIntegrationTemplateType -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -368,7 +363,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ServiceDeskIntegrationApi(api_client).get_service_desk_integration_types() print("The response of ServiceDeskIntegrationApi->get_service_desk_integration_types:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ServiceDeskIntegrationApi->get_service_desk_integration_types: %s\n" % e) ``` @@ -417,7 +412,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.service_desk_integration_api import ServiceDeskIntegrationApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.service_desk_integration_dto import ServiceDeskIntegrationDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -436,7 +430,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ServiceDeskIntegrationApi(api_client).get_service_desk_integrations(offset, limit, sorters, filters, count) print("The response of ServiceDeskIntegrationApi->get_service_desk_integrations:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ServiceDeskIntegrationApi->get_service_desk_integrations: %s\n" % e) ``` @@ -478,7 +472,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.service_desk_integration_api import ServiceDeskIntegrationApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.queued_check_config_details import QueuedCheckConfigDetails -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -492,7 +485,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ServiceDeskIntegrationApi(api_client).get_status_check_details() print("The response of ServiceDeskIntegrationApi->get_status_check_details:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ServiceDeskIntegrationApi->get_status_check_details: %s\n" % e) ``` @@ -539,7 +532,6 @@ from sailpoint.v3.api.service_desk_integration_api import ServiceDeskIntegration from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.patch_service_desk_integration_request import PatchServiceDeskIntegrationRequest from sailpoint.v3.models.service_desk_integration_dto import ServiceDeskIntegrationDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -555,7 +547,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ServiceDeskIntegrationApi(api_client).patch_service_desk_integration(id, new_patch_service_desk_integration_request) print("The response of ServiceDeskIntegrationApi->patch_service_desk_integration:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ServiceDeskIntegrationApi->patch_service_desk_integration: %s\n" % e) ``` @@ -601,7 +593,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.service_desk_integration_api import ServiceDeskIntegrationApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.service_desk_integration_dto import ServiceDeskIntegrationDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -650,7 +641,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ServiceDeskIntegrationApi(api_client).put_service_desk_integration(id, new_service_desk_integration_dto) print("The response of ServiceDeskIntegrationApi->put_service_desk_integration:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ServiceDeskIntegrationApi->put_service_desk_integration: %s\n" % e) ``` @@ -695,7 +686,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.service_desk_integration_api import ServiceDeskIntegrationApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.queued_check_config_details import QueuedCheckConfigDetails -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -713,7 +703,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = ServiceDeskIntegrationApi(api_client).update_status_check_details(new_queued_check_config_details) print("The response of ServiceDeskIntegrationApi->update_status_check_details:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling ServiceDeskIntegrationApi->update_status_check_details: %s\n" % e) ``` diff --git a/sailpoint/v3/docs/Methods/SourceUsagesApi.md b/sailpoint/v3/docs/Methods/SourceUsagesApi.md index 9660c7329..3b92c4a4e 100644 --- a/sailpoint/v3/docs/Methods/SourceUsagesApi.md +++ b/sailpoint/v3/docs/Methods/SourceUsagesApi.md @@ -57,7 +57,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.source_usages_api import SourceUsagesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.source_usage_status import SourceUsageStatus -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -72,7 +71,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourceUsagesApi(api_client).get_status_by_source_id(source_id) print("The response of SourceUsagesApi->get_status_by_source_id:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourceUsagesApi->get_status_by_source_id: %s\n" % e) ``` @@ -120,7 +119,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.source_usages_api import SourceUsagesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.source_usage import SourceUsage -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -139,7 +137,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourceUsagesApi(api_client).get_usages_by_source_id(source_id, limit, offset, count, sorters) print("The response of SourceUsagesApi->get_usages_by_source_id:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourceUsagesApi->get_usages_by_source_id: %s\n" % e) ``` diff --git a/sailpoint/v3/docs/Methods/SourcesApi.md b/sailpoint/v3/docs/Methods/SourcesApi.md index be9da6387..8867020db 100644 --- a/sailpoint/v3/docs/Methods/SourcesApi.md +++ b/sailpoint/v3/docs/Methods/SourcesApi.md @@ -139,7 +139,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.sources_api import SourcesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.provisioning_policy_dto import ProvisioningPolicyDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -194,7 +193,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).create_provisioning_policy(source_id, new_provisioning_policy_dto) print("The response of SourcesApi->create_provisioning_policy:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->create_provisioning_policy: %s\n" % e) ``` @@ -239,7 +238,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.sources_api import SourcesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.source import Source -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -337,7 +335,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).create_source(new_source, provision_as_csv) print("The response of SourcesApi->create_source:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->create_source: %s\n" % e) ``` @@ -383,7 +381,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.sources_api import SourcesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.model_schema import ModelSchema -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -399,7 +396,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).create_source_schema(source_id, new_model_schema) print("The response of SourcesApi->create_source_schema:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->create_source_schema: %s\n" % e) ``` @@ -445,7 +442,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.sources_api import SourcesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.usage_type import UsageType -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -505,7 +501,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.sources_api import SourcesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.delete_source202_response import DeleteSource202Response -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -520,7 +515,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).delete_source(id) print("The response of SourcesApi->delete_source:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->delete_source: %s\n" % e) ``` @@ -565,7 +560,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v3.api.sources_api import SourcesApi from sailpoint.v3.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -624,7 +618,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v3.api.sources_api import SourcesApi from sailpoint.v3.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -684,7 +677,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v3.api.sources_api import SourcesApi from sailpoint.v3.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -745,7 +737,6 @@ from sailpoint.v3.api.sources_api import SourcesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.provisioning_policy_dto import ProvisioningPolicyDto from sailpoint.v3.models.usage_type import UsageType -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -761,7 +752,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).get_provisioning_policy(source_id, usage_type) print("The response of SourcesApi->get_provisioning_policy:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->get_provisioning_policy: %s\n" % e) ``` @@ -806,7 +797,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.sources_api import SourcesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.source import Source -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -821,7 +811,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).get_source(id) print("The response of SourcesApi->get_source:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->get_source: %s\n" % e) ``` @@ -866,7 +856,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.sources_api import SourcesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.source_connections_dto import SourceConnectionsDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -881,7 +870,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).get_source_connections(source_id) print("The response of SourcesApi->get_source_connections:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->get_source_connections: %s\n" % e) ``` @@ -926,7 +915,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.sources_api import SourcesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.source_health_dto import SourceHealthDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -941,7 +929,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).get_source_health(source_id) print("The response of SourcesApi->get_source_health:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->get_source_health: %s\n" % e) ``` @@ -988,7 +976,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.sources_api import SourcesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.model_schema import ModelSchema -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1004,7 +991,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).get_source_schema(source_id, schema_id) print("The response of SourcesApi->get_source_schema:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->get_source_schema: %s\n" % e) ``` @@ -1051,7 +1038,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.sources_api import SourcesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.model_schema import ModelSchema -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1068,7 +1054,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).get_source_schemas(source_id, include_types, include_names) print("The response of SourcesApi->get_source_schemas:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->get_source_schemas: %s\n" % e) ``` @@ -1119,7 +1105,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.sources_api import SourcesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.model_schema import ModelSchema -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1135,7 +1120,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).import_accounts_schema(id, file) print("The response of SourcesApi->import_accounts_schema:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->import_accounts_schema: %s\n" % e) ``` @@ -1180,7 +1165,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.sources_api import SourcesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.source import Source -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1196,7 +1180,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).import_connector_file(source_id, file) print("The response of SourcesApi->import_connector_file:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->import_connector_file: %s\n" % e) ``` @@ -1248,7 +1232,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.sources_api import SourcesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.model_schema import ModelSchema -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1265,7 +1248,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).import_entitlements_schema(id, schema_name, file) print("The response of SourcesApi->import_entitlements_schema:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->import_entitlements_schema: %s\n" % e) ``` @@ -1310,7 +1293,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.sources_api import SourcesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.provisioning_policy_dto import ProvisioningPolicyDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1325,7 +1307,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).list_provisioning_policies(source_id) print("The response of SourcesApi->list_provisioning_policies:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->list_provisioning_policies: %s\n" % e) ``` @@ -1376,7 +1358,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.sources_api import SourcesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.source import Source -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1397,7 +1378,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).list_sources(limit, offset, count, filters, sorters, for_subadmin, include_idn_source) print("The response of SourcesApi->list_sources:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->list_sources: %s\n" % e) ``` @@ -1447,7 +1428,6 @@ from sailpoint.v3.api.sources_api import SourcesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.provisioning_policy_dto import ProvisioningPolicyDto from sailpoint.v3.models.usage_type import UsageType -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1503,7 +1483,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).put_provisioning_policy(source_id, usage_type, new_provisioning_policy_dto) print("The response of SourcesApi->put_provisioning_policy:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->put_provisioning_policy: %s\n" % e) ``` @@ -1561,7 +1541,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.sources_api import SourcesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.source import Source -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1659,7 +1638,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).put_source(id, new_source) print("The response of SourcesApi->put_source:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->put_source: %s\n" % e) ``` @@ -1716,7 +1695,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.sources_api import SourcesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.model_schema import ModelSchema -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1733,7 +1711,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).put_source_schema(source_id, schema_id, new_model_schema) print("The response of SourcesApi->put_source_schema:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->put_source_schema: %s\n" % e) ``` @@ -1779,7 +1757,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.sources_api import SourcesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.provisioning_policy_dto import ProvisioningPolicyDto -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1795,7 +1772,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).update_provisioning_policies_in_bulk(source_id, new_provisioning_policy_dto) print("The response of SourcesApi->update_provisioning_policies_in_bulk:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->update_provisioning_policies_in_bulk: %s\n" % e) ``` @@ -1846,7 +1823,6 @@ from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.json_patch_operation import JsonPatchOperation from sailpoint.v3.models.provisioning_policy_dto import ProvisioningPolicyDto from sailpoint.v3.models.usage_type import UsageType -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1863,7 +1839,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).update_provisioning_policy(source_id, usage_type, new_json_patch_operation) print("The response of SourcesApi->update_provisioning_policy:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->update_provisioning_policy: %s\n" % e) ``` @@ -1925,7 +1901,6 @@ from sailpoint.v3.api.sources_api import SourcesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.json_patch_operation import JsonPatchOperation from sailpoint.v3.models.source import Source -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1941,7 +1916,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).update_source(id, new_json_patch_operation) print("The response of SourcesApi->update_source:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->update_source: %s\n" % e) ``` @@ -2018,7 +1993,6 @@ from sailpoint.v3.api.sources_api import SourcesApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.json_patch_operation import JsonPatchOperation from sailpoint.v3.models.model_schema import ModelSchema -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -2035,7 +2009,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = SourcesApi(api_client).update_source_schema(source_id, schema_id, new_json_patch_operation) print("The response of SourcesApi->update_source_schema:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling SourcesApi->update_source_schema: %s\n" % e) ``` diff --git a/sailpoint/v3/docs/Methods/TaggedObjectsApi.md b/sailpoint/v3/docs/Methods/TaggedObjectsApi.md index 41411de67..062cb500c 100644 --- a/sailpoint/v3/docs/Methods/TaggedObjectsApi.md +++ b/sailpoint/v3/docs/Methods/TaggedObjectsApi.md @@ -113,7 +113,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v3.api.tagged_objects_api import TaggedObjectsApi from sailpoint.v3.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -171,7 +170,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.tagged_objects_api import TaggedObjectsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.bulk_remove_tagged_object import BulkRemoveTaggedObject -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -240,7 +238,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.tagged_objects_api import TaggedObjectsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.tagged_object import TaggedObject -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -256,7 +253,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = TaggedObjectsApi(api_client).get_tagged_object(type, id) print("The response of TaggedObjectsApi->get_tagged_object:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling TaggedObjectsApi->get_tagged_object: %s\n" % e) ``` @@ -305,7 +302,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.tagged_objects_api import TaggedObjectsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.tagged_object import TaggedObject -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -323,7 +319,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = TaggedObjectsApi(api_client).list_tagged_objects(limit, offset, count, filters) print("The response of TaggedObjectsApi->list_tagged_objects:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling TaggedObjectsApi->list_tagged_objects: %s\n" % e) ``` @@ -373,7 +369,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.tagged_objects_api import TaggedObjectsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.tagged_object import TaggedObject -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -392,7 +387,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = TaggedObjectsApi(api_client).list_tagged_objects_by_type(type, limit, offset, count, filters) print("The response of TaggedObjectsApi->list_tagged_objects_by_type:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling TaggedObjectsApi->list_tagged_objects_by_type: %s\n" % e) ``` @@ -438,7 +433,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.tagged_objects_api import TaggedObjectsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.tagged_object import TaggedObject -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -462,7 +456,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = TaggedObjectsApi(api_client).put_tagged_object(type, id, new_tagged_object) print("The response of TaggedObjectsApi->put_tagged_object:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling TaggedObjectsApi->put_tagged_object: %s\n" % e) ``` @@ -508,7 +502,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.tagged_objects_api import TaggedObjectsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.tagged_object import TaggedObject -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -573,7 +566,6 @@ from sailpoint.v3.api.tagged_objects_api import TaggedObjectsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.bulk_add_tagged_object import BulkAddTaggedObject from sailpoint.v3.models.bulk_tagged_object_response import BulkTaggedObjectResponse -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -600,7 +592,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = TaggedObjectsApi(api_client).set_tags_to_many_objects(new_bulk_add_tagged_object) print("The response of TaggedObjectsApi->set_tags_to_many_objects:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling TaggedObjectsApi->set_tags_to_many_objects: %s\n" % e) ``` diff --git a/sailpoint/v3/docs/Methods/TransformsApi.md b/sailpoint/v3/docs/Methods/TransformsApi.md index c637c8fb0..0902537b9 100644 --- a/sailpoint/v3/docs/Methods/TransformsApi.md +++ b/sailpoint/v3/docs/Methods/TransformsApi.md @@ -64,7 +64,6 @@ from sailpoint.v3.api.transforms_api import TransformsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.transform import Transform from sailpoint.v3.models.transform_read import TransformRead -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -83,7 +82,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = TransformsApi(api_client).create_transform(new_transform) print("The response of TransformsApi->create_transform:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling TransformsApi->create_transform: %s\n" % e) ``` @@ -127,7 +126,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v3.api.transforms_api import TransformsApi from sailpoint.v3.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -185,7 +183,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.transforms_api import TransformsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.transform_read import TransformRead -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -200,7 +197,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = TransformsApi(api_client).get_transform(id) print("The response of TransformsApi->get_transform:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling TransformsApi->get_transform: %s\n" % e) ``` @@ -249,7 +246,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.transforms_api import TransformsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.transform_read import TransformRead -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -268,7 +264,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = TransformsApi(api_client).list_transforms(offset, limit, count, name, filters) print("The response of TransformsApi->list_transforms:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling TransformsApi->list_transforms: %s\n" % e) ``` @@ -315,7 +311,6 @@ from sailpoint.v3.api.transforms_api import TransformsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.transform import Transform from sailpoint.v3.models.transform_read import TransformRead -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -335,7 +330,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = TransformsApi(api_client).update_transform(id, new_transform) print("The response of TransformsApi->update_transform:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling TransformsApi->update_transform: %s\n" % e) ``` diff --git a/sailpoint/v3/docs/Methods/VendorConnectorMappingsApi.md b/sailpoint/v3/docs/Methods/VendorConnectorMappingsApi.md index bea4e402a..63e186b3f 100644 --- a/sailpoint/v3/docs/Methods/VendorConnectorMappingsApi.md +++ b/sailpoint/v3/docs/Methods/VendorConnectorMappingsApi.md @@ -57,7 +57,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.vendor_connector_mappings_api import VendorConnectorMappingsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.vendor_connector_mapping import VendorConnectorMapping -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -94,7 +93,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = VendorConnectorMappingsApi(api_client).create_vendor_connector_mapping(new_vendor_connector_mapping) print("The response of VendorConnectorMappingsApi->create_vendor_connector_mapping:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling VendorConnectorMappingsApi->create_vendor_connector_mapping: %s\n" % e) ``` @@ -141,7 +140,6 @@ from sailpoint.v3.api.vendor_connector_mappings_api import VendorConnectorMappin from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.delete_vendor_connector_mapping200_response import DeleteVendorConnectorMapping200Response from sailpoint.v3.models.vendor_connector_mapping import VendorConnectorMapping -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -178,7 +176,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = VendorConnectorMappingsApi(api_client).delete_vendor_connector_mapping(new_vendor_connector_mapping) print("The response of VendorConnectorMappingsApi->delete_vendor_connector_mapping:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling VendorConnectorMappingsApi->delete_vendor_connector_mapping: %s\n" % e) ``` @@ -221,7 +219,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.vendor_connector_mappings_api import VendorConnectorMappingsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.vendor_connector_mapping import VendorConnectorMapping -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -235,7 +232,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = VendorConnectorMappingsApi(api_client).get_vendor_connector_mappings() print("The response of VendorConnectorMappingsApi->get_vendor_connector_mappings:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling VendorConnectorMappingsApi->get_vendor_connector_mappings: %s\n" % e) ``` diff --git a/sailpoint/v3/docs/Methods/WorkItemsApi.md b/sailpoint/v3/docs/Methods/WorkItemsApi.md index 3588b2628..ce582fe02 100644 --- a/sailpoint/v3/docs/Methods/WorkItemsApi.md +++ b/sailpoint/v3/docs/Methods/WorkItemsApi.md @@ -81,7 +81,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.work_items_api import WorkItemsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.work_items import WorkItems -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -97,7 +96,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkItemsApi(api_client).approve_approval_item(id, approval_item_id) print("The response of WorkItemsApi->approve_approval_item:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkItemsApi->approve_approval_item: %s\n" % e) ``` @@ -142,7 +141,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.work_items_api import WorkItemsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.work_items import WorkItems -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -157,7 +155,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkItemsApi(api_client).approve_approval_items_in_bulk(id) print("The response of WorkItemsApi->approve_approval_items_in_bulk:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkItemsApi->approve_approval_items_in_bulk: %s\n" % e) ``` @@ -203,7 +201,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.work_items_api import WorkItemsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.work_items import WorkItems -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -219,7 +216,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkItemsApi(api_client).complete_work_item(id, new_body) print("The response of WorkItemsApi->complete_work_item:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkItemsApi->complete_work_item: %s\n" % e) ``` @@ -266,7 +263,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.work_items_api import WorkItemsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.work_items import WorkItems -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -284,7 +280,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkItemsApi(api_client).get_completed_work_items(owner_id, limit, offset, count) print("The response of WorkItemsApi->get_completed_work_items:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkItemsApi->get_completed_work_items: %s\n" % e) ``` @@ -328,7 +324,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.work_items_api import WorkItemsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.work_items_count import WorkItemsCount -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -343,7 +338,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkItemsApi(api_client).get_count_completed_work_items(owner_id) print("The response of WorkItemsApi->get_count_completed_work_items:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkItemsApi->get_count_completed_work_items: %s\n" % e) ``` @@ -387,7 +382,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.work_items_api import WorkItemsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.work_items_count import WorkItemsCount -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -402,7 +396,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkItemsApi(api_client).get_count_work_items(owner_id) print("The response of WorkItemsApi->get_count_work_items:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkItemsApi->get_count_work_items: %s\n" % e) ``` @@ -447,7 +441,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.work_items_api import WorkItemsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.work_items import WorkItems -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -462,7 +455,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkItemsApi(api_client).get_work_item(id) print("The response of WorkItemsApi->get_work_item:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkItemsApi->get_work_item: %s\n" % e) ``` @@ -506,7 +499,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.work_items_api import WorkItemsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.work_items_summary import WorkItemsSummary -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -521,7 +513,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkItemsApi(api_client).get_work_items_summary(owner_id) print("The response of WorkItemsApi->get_work_items_summary:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkItemsApi->get_work_items_summary: %s\n" % e) ``` @@ -568,7 +560,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.work_items_api import WorkItemsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.work_items import WorkItems -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -586,7 +577,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkItemsApi(api_client).list_work_items(limit, offset, count, owner_id) print("The response of WorkItemsApi->list_work_items:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkItemsApi->list_work_items: %s\n" % e) ``` @@ -632,7 +623,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.work_items_api import WorkItemsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.work_items import WorkItems -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -648,7 +638,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkItemsApi(api_client).reject_approval_item(id, approval_item_id) print("The response of WorkItemsApi->reject_approval_item:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkItemsApi->reject_approval_item: %s\n" % e) ``` @@ -693,7 +683,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.work_items_api import WorkItemsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.work_items import WorkItems -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -708,7 +697,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkItemsApi(api_client).reject_approval_items_in_bulk(id) print("The response of WorkItemsApi->reject_approval_items_in_bulk:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkItemsApi->reject_approval_items_in_bulk: %s\n" % e) ``` @@ -753,7 +742,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.work_items_api import WorkItemsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.work_item_forward import WorkItemForward -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -817,7 +805,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.work_items_api import WorkItemsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.work_items import WorkItems -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -833,7 +820,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkItemsApi(api_client).submit_account_selection(id, new_request_body) print("The response of WorkItemsApi->submit_account_selection:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkItemsApi->submit_account_selection: %s\n" % e) ``` diff --git a/sailpoint/v3/docs/Methods/WorkflowsApi.md b/sailpoint/v3/docs/Methods/WorkflowsApi.md index ab28efdfb..044c3110c 100644 --- a/sailpoint/v3/docs/Methods/WorkflowsApi.md +++ b/sailpoint/v3/docs/Methods/WorkflowsApi.md @@ -71,7 +71,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v3.api.workflows_api import WorkflowsApi from sailpoint.v3.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -130,7 +129,6 @@ from sailpoint.v3.api.workflows_api import WorkflowsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.create_external_execute_workflow200_response import CreateExternalExecuteWorkflow200Response from sailpoint.v3.models.create_external_execute_workflow_request import CreateExternalExecuteWorkflowRequest -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -146,7 +144,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkflowsApi(api_client).create_external_execute_workflow(id, new_create_external_execute_workflow_request) print("The response of WorkflowsApi->create_external_execute_workflow:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkflowsApi->create_external_execute_workflow: %s\n" % e) ``` @@ -191,7 +189,6 @@ from sailpoint.v3.api.workflows_api import WorkflowsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.create_workflow_request import CreateWorkflowRequest from sailpoint.v3.models.workflow import Workflow -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -206,7 +203,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkflowsApi(api_client).create_workflow(new_create_workflow_request) print("The response of WorkflowsApi->create_workflow:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkflowsApi->create_workflow: %s\n" % e) ``` @@ -250,7 +247,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.workflows_api import WorkflowsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.workflow_o_auth_client import WorkflowOAuthClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -265,7 +261,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkflowsApi(api_client).create_workflow_external_trigger(id) print("The response of WorkflowsApi->create_workflow_external_trigger:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkflowsApi->create_workflow_external_trigger: %s\n" % e) ``` @@ -308,7 +304,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v3.api.workflows_api import WorkflowsApi from sailpoint.v3.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -365,7 +360,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.workflows_api import WorkflowsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.workflow import Workflow -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -380,7 +374,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkflowsApi(api_client).get_workflow(id) print("The response of WorkflowsApi->get_workflow:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkflowsApi->get_workflow: %s\n" % e) ``` @@ -424,7 +418,6 @@ Code | Description | Data Type | Response headers | ```python from sailpoint.v3.api.workflows_api import WorkflowsApi from sailpoint.v3.api_client import ApiClient -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -439,7 +432,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkflowsApi(api_client).get_workflow_execution(id) print("The response of WorkflowsApi->get_workflow_execution:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkflowsApi->get_workflow_execution: %s\n" % e) ``` @@ -484,7 +477,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.workflows_api import WorkflowsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.workflow_execution_event import WorkflowExecutionEvent -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -499,7 +491,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkflowsApi(api_client).get_workflow_execution_history(id) print("The response of WorkflowsApi->get_workflow_execution_history:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkflowsApi->get_workflow_execution_history: %s\n" % e) ``` @@ -558,7 +550,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.workflows_api import WorkflowsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.workflow_execution import WorkflowExecution -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -577,7 +568,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkflowsApi(api_client).get_workflow_executions(id, limit, offset, count, filters) print("The response of WorkflowsApi->get_workflow_executions:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkflowsApi->get_workflow_executions: %s\n" % e) ``` @@ -622,7 +613,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.workflows_api import WorkflowsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.list_complete_workflow_library200_response_inner import ListCompleteWorkflowLibrary200ResponseInner -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -638,7 +628,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkflowsApi(api_client).list_complete_workflow_library(limit, offset) print("The response of WorkflowsApi->list_complete_workflow_library:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkflowsApi->list_complete_workflow_library: %s\n" % e) ``` @@ -684,7 +674,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.workflows_api import WorkflowsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.workflow_library_action import WorkflowLibraryAction -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -701,7 +690,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkflowsApi(api_client).list_workflow_library_actions(limit, offset, filters) print("The response of WorkflowsApi->list_workflow_library_actions:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkflowsApi->list_workflow_library_actions: %s\n" % e) ``` @@ -742,7 +731,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.workflows_api import WorkflowsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.workflow_library_operator import WorkflowLibraryOperator -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -756,7 +744,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkflowsApi(api_client).list_workflow_library_operators() print("The response of WorkflowsApi->list_workflow_library_operators:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkflowsApi->list_workflow_library_operators: %s\n" % e) ``` @@ -802,7 +790,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.workflows_api import WorkflowsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.workflow_library_trigger import WorkflowLibraryTrigger -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -819,7 +806,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkflowsApi(api_client).list_workflow_library_triggers(limit, offset, filters) print("The response of WorkflowsApi->list_workflow_library_triggers:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkflowsApi->list_workflow_library_triggers: %s\n" % e) ``` @@ -860,7 +847,6 @@ Code | Description | Data Type | Response headers | from sailpoint.v3.api.workflows_api import WorkflowsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.workflow import Workflow -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -874,7 +860,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkflowsApi(api_client).list_workflows() print("The response of WorkflowsApi->list_workflows:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkflowsApi->list_workflows: %s\n" % e) ``` @@ -920,7 +906,6 @@ from sailpoint.v3.api.workflows_api import WorkflowsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.json_patch_operation import JsonPatchOperation from sailpoint.v3.models.workflow import Workflow -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -936,7 +921,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkflowsApi(api_client).patch_workflow(id, new_json_patch_operation) print("The response of WorkflowsApi->patch_workflow:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkflowsApi->patch_workflow: %s\n" % e) ``` @@ -982,7 +967,6 @@ from sailpoint.v3.api.workflows_api import WorkflowsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.workflow import Workflow from sailpoint.v3.models.workflow_body import WorkflowBody -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1037,7 +1021,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkflowsApi(api_client).put_workflow(id, new_workflow_body) print("The response of WorkflowsApi->put_workflow:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkflowsApi->put_workflow: %s\n" % e) ``` @@ -1083,7 +1067,6 @@ from sailpoint.v3.api.workflows_api import WorkflowsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.test_external_execute_workflow200_response import TestExternalExecuteWorkflow200Response from sailpoint.v3.models.test_external_execute_workflow_request import TestExternalExecuteWorkflowRequest -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1099,7 +1082,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkflowsApi(api_client).test_external_execute_workflow(id, new_test_external_execute_workflow_request) print("The response of WorkflowsApi->test_external_execute_workflow:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkflowsApi->test_external_execute_workflow: %s\n" % e) ``` @@ -1147,7 +1130,6 @@ from sailpoint.v3.api.workflows_api import WorkflowsApi from sailpoint.v3.api_client import ApiClient from sailpoint.v3.models.test_workflow200_response import TestWorkflow200Response from sailpoint.v3.models.test_workflow_request import TestWorkflowRequest -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -1163,7 +1145,7 @@ with ApiClient(configuration) as api_client: # Below is a request that includes all optional parameters # results = WorkflowsApi(api_client).test_workflow(id, new_test_workflow_request) print("The response of WorkflowsApi->test_workflow:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) except Exception as e: print("Exception when calling WorkflowsApi->test_workflow: %s\n" % e) ``` diff --git a/sdk-resources/resources/api_doc_example.mustache b/sdk-resources/resources/api_doc_example.mustache index d6e7dcb5d..67334c337 100644 --- a/sdk-resources/resources/api_doc_example.mustache +++ b/sdk-resources/resources/api_doc_example.mustache @@ -5,7 +5,6 @@ from {{{packageName}}}.api_client import ApiClient {{#vendorExtensions.x-py-example-import}} {{{.}}} {{/vendorExtensions.x-py-example-import}} -from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -43,7 +42,7 @@ with ApiClient(configuration) as api_client: # {{#returnType}}results = {{/returnType}}{{#lambda.titlecase}}{{classname}}{{/lambda.titlecase}}(api_client).{{{operationId}}}({{#allParams}}{{^isBodyParam}}{{paramName}}{{/isBodyParam}}{{#isBodyParam}}new_{{paramName}}{{/isBodyParam}}{{^-last}}, {{/-last}}{{/allParams}}) {{#returnType}} print("The response of {{classname}}->{{operationId}}:\n") - pprint(results) + print(results.model_dump_json(by_alias=True, indent=4)) {{/returnType}} except Exception as e: print("Exception when calling {{classname}}->{{operationId}}: %s\n" % e) diff --git a/sdk-resources/resources/developerSite_code_examples.mustache b/sdk-resources/resources/developerSite_code_examples.mustache index 53ec2ca53..eceec42b9 100644 --- a/sdk-resources/resources/developerSite_code_examples.mustache +++ b/sdk-resources/resources/developerSite_code_examples.mustache @@ -11,7 +11,6 @@ {{#vendorExtensions.x-py-example-import}} {{{.}}} {{/vendorExtensions.x-py-example-import}} - from pprint import pprint from sailpoint.configuration import Configuration configuration = Configuration() @@ -20,37 +19,37 @@ {{/headerParams}} with ApiClient(configuration) as api_client: - {{#allParams}} - {{^isArray}} - {{#isModel}} - {{paramName}} = '''{{#lambda.indented_8}}{{#requestBodyExamples}}{{{example}}}{{/requestBodyExamples}}{{^requestBodyExamples}}{{#example}}{{{example}}}{{/example}}{{/requestBodyExamples}}''' # {{{dataType}}} | {{{description}}}{{^required}} (optional){{/required}}{{#defaultValue}} (default to {{{.}}}){{/defaultValue}}{{/lambda.indented_8}} - {{/isModel}} - {{^isModel}} - {{paramName}} = {{{example}}} # {{{dataType}}} | {{{description}}}{{^required}} (optional){{/required}}{{#defaultValue}} (default to {{{.}}}){{/defaultValue}} # {{{dataType}}} | {{{description}}}{{^required}} (optional){{/required}}{{#defaultValue}} (default to {{{.}}}){{/defaultValue}} - {{/isModel}} - {{/isArray}} - {{#isArray}} - {{#items.isModel}} - {{paramName}} = '''{{{example}}}''' # {{{dataType}}} | {{{description}}}{{^required}} (optional){{/required}}{{#defaultValue}} (default to {{{.}}}){{/defaultValue}} - {{/items.isModel}} - {{^items.isModel}} - {{paramName}} = '''{{{example}}}''' # {{{dataType}}} | {{{description}}}{{^required}} (optional){{/required}}{{#defaultValue}} (default to {{{.}}}){{/defaultValue}} - {{/items.isModel}} - {{/isArray}} - {{/allParams}} - try: - {{#summary}} - # {{{.}}} - {{/summary}} - {{#requiredAndNotNullableParams}}{{#isBodyParam}}new_{{paramName}} = {{#lambda.titlecase}}{{#lambda.camelcase}}{{paramName}}{{/lambda.camelcase}}{{/lambda.titlecase}}.from_json({{paramName}}){{/isBodyParam}}{{/requiredAndNotNullableParams}} - {{#returnType}}results = {{/returnType}}{{#lambda.titlecase}}{{classname}}{{/lambda.titlecase}}(api_client).{{{operationId}}}({{#requiredParams}}{{#isBodyParam}}{{paramName}}=new_{{paramName}}{{^-last}}, {{/-last}}{{/isBodyParam}}{{^isBodyParam}}{{paramName}}={{paramName}}{{^-last}}, {{/-last}}{{/isBodyParam}}{{/requiredParams}}) - # Below is a request that includes all optional parameters - # {{#returnType}}results = {{/returnType}}{{#lambda.titlecase}}{{classname}}{{/lambda.titlecase}}(api_client).{{{operationId}}}({{#allParams}}{{^isBodyParam}}{{paramName}}{{/isBodyParam}}{{#isBodyParam}}new_{{paramName}}{{/isBodyParam}}{{^-last}}, {{/-last}}{{/allParams}}) - {{#returnType}} - print("The response of {{classname}}->{{operationId}}:\n") - pprint(results) - {{/returnType}} - except Exception as e: - print("Exception when calling {{classname}}->{{operationId}}: %s\n" % e) + {{#allParams}} + {{^isArray}} + {{#isModel}} + {{paramName}} = '''{{#lambda.indented_8}}{{#requestBodyExamples}}{{{example}}}{{/requestBodyExamples}}{{^requestBodyExamples}}{{#example}}{{{example}}}{{/example}}{{/requestBodyExamples}}''' # {{{dataType}}} | {{{description}}}{{^required}} (optional){{/required}}{{#defaultValue}} (default to {{{.}}}){{/defaultValue}}{{/lambda.indented_8}} + {{/isModel}} + {{^isModel}} + {{paramName}} = {{{example}}} # {{{dataType}}} | {{{description}}}{{^required}} (optional){{/required}}{{#defaultValue}} (default to {{{.}}}){{/defaultValue}} # {{{dataType}}} | {{{description}}}{{^required}} (optional){{/required}}{{#defaultValue}} (default to {{{.}}}){{/defaultValue}} + {{/isModel}} + {{/isArray}} + {{#isArray}} + {{#items.isModel}} + {{paramName}} = '''{{{example}}}''' # {{{dataType}}} | {{{description}}}{{^required}} (optional){{/required}}{{#defaultValue}} (default to {{{.}}}){{/defaultValue}} + {{/items.isModel}} + {{^items.isModel}} + {{paramName}} = '''{{{example}}}''' # {{{dataType}}} | {{{description}}}{{^required}} (optional){{/required}}{{#defaultValue}} (default to {{{.}}}){{/defaultValue}} + {{/items.isModel}} + {{/isArray}} + {{/allParams}} + try: + {{#summary}} + # {{{.}}} + {{/summary}} + {{#requiredAndNotNullableParams}}{{#isBodyParam}}new_{{paramName}} = {{#lambda.titlecase}}{{#lambda.camelcase}}{{paramName}}{{/lambda.camelcase}}{{/lambda.titlecase}}.from_json({{paramName}}){{/isBodyParam}}{{/requiredAndNotNullableParams}} + {{#returnType}}results = {{/returnType}}{{#lambda.titlecase}}{{classname}}{{/lambda.titlecase}}(api_client).{{{operationId}}}({{#requiredParams}}{{#isBodyParam}}{{paramName}}=new_{{paramName}}{{^-last}}, {{/-last}}{{/isBodyParam}}{{^isBodyParam}}{{paramName}}={{paramName}}{{^-last}}, {{/-last}}{{/isBodyParam}}{{/requiredParams}}) + # Below is a request that includes all optional parameters + # {{#returnType}}results = {{/returnType}}{{#lambda.titlecase}}{{classname}}{{/lambda.titlecase}}(api_client).{{{operationId}}}({{#allParams}}{{^isBodyParam}}{{paramName}}{{/isBodyParam}}{{#isBodyParam}}new_{{paramName}}{{/isBodyParam}}{{^-last}}, {{/-last}}{{/allParams}}) + {{#returnType}} + print("The response of {{classname}}->{{operationId}}:\n") + print(results.model_dump_json(by_alias=True, indent=4)) + {{/returnType}} + except Exception as e: + print("Exception when calling {{classname}}->{{operationId}}: %s\n" % e) {{/operation}} {{/operations}}