mirror of
https://github.com/LukeHagar/developer.sailpoint.com.git
synced 2025-12-08 20:37:46 +00:00
update layout for method examples
This commit is contained in:
@@ -113,10 +113,14 @@ Code | Description | Data Type | Response headers |
|
||||
|
||||
```python
|
||||
import sailpoint.beta
|
||||
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.rest import ApiException
|
||||
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.
|
||||
@@ -124,13 +128,12 @@ from pprint import pprint
|
||||
try:
|
||||
# Add metadata to an entitlement.
|
||||
|
||||
api_response = api_instance.create_access_model_metadata_for_entitlement(id, attribute_key, attribute_value)
|
||||
|
||||
results =EntitlementsApi(api_client).create_access_model_metadata_for_entitlement(id, attribute_key, attribute_value)
|
||||
# Below is a request that includes all optional parameters
|
||||
# api_response = api_instance.create_access_model_metadata_for_entitlement(id, attribute_key, attribute_value)
|
||||
# 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(api_response)
|
||||
except Exception as e:
|
||||
pprint(results)
|
||||
except Exception as e:
|
||||
print("Exception when calling EntitlementsApi->create_access_model_metadata_for_entitlement: %s\n" % e)
|
||||
```
|
||||
|
||||
@@ -173,9 +176,13 @@ Code | Description | Data Type | Response headers |
|
||||
|
||||
```python
|
||||
import sailpoint.beta
|
||||
from sailpoint.beta.rest import ApiException
|
||||
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.
|
||||
@@ -183,11 +190,10 @@ from pprint import pprint
|
||||
try:
|
||||
# Remove metadata from an entitlement.
|
||||
|
||||
api_instance.delete_access_model_metadata_from_entitlement(id, attribute_key, attribute_value)
|
||||
|
||||
EntitlementsApi(api_client).delete_access_model_metadata_from_entitlement(id, attribute_key, attribute_value)
|
||||
# Below is a request that includes all optional parameters
|
||||
# api_instance.delete_access_model_metadata_from_entitlement(id, attribute_key, attribute_value)
|
||||
except Exception as e:
|
||||
# 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)
|
||||
```
|
||||
|
||||
@@ -229,22 +235,25 @@ Code | Description | Data Type | Response headers |
|
||||
|
||||
```python
|
||||
import sailpoint.beta
|
||||
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.rest import ApiException
|
||||
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
|
||||
|
||||
api_response = api_instance.get_entitlement(id)
|
||||
|
||||
results =EntitlementsApi(api_client).get_entitlement(id)
|
||||
# Below is a request that includes all optional parameters
|
||||
# api_response = api_instance.get_entitlement(id)
|
||||
# results = EntitlementsApi(api_client).get_entitlement(id)
|
||||
print("The response of EntitlementsApi->get_entitlement:\n")
|
||||
pprint(api_response)
|
||||
except Exception as e:
|
||||
pprint(results)
|
||||
except Exception as e:
|
||||
print("Exception when calling EntitlementsApi->get_entitlement: %s\n" % e)
|
||||
```
|
||||
|
||||
@@ -286,22 +295,25 @@ Code | Description | Data Type | Response headers |
|
||||
|
||||
```python
|
||||
import sailpoint.beta
|
||||
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 sailpoint.beta.rest import ApiException
|
||||
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
|
||||
|
||||
api_response = api_instance.get_entitlement_request_config(id)
|
||||
|
||||
results =EntitlementsApi(api_client).get_entitlement_request_config(id)
|
||||
# Below is a request that includes all optional parameters
|
||||
# api_response = api_instance.get_entitlement_request_config(id)
|
||||
# results = EntitlementsApi(api_client).get_entitlement_request_config(id)
|
||||
print("The response of EntitlementsApi->get_entitlement_request_config:\n")
|
||||
pprint(api_response)
|
||||
except Exception as e:
|
||||
pprint(results)
|
||||
except Exception as e:
|
||||
print("Exception when calling EntitlementsApi->get_entitlement_request_config: %s\n" % e)
|
||||
```
|
||||
|
||||
@@ -350,23 +362,26 @@ Code | Description | Data Type | Response headers |
|
||||
|
||||
```python
|
||||
import sailpoint.beta
|
||||
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 sailpoint.beta.rest import ApiException
|
||||
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
|
||||
|
||||
api_response = api_instance.import_entitlements_by_source(id, )
|
||||
|
||||
results =EntitlementsApi(api_client).import_entitlements_by_source(id, )
|
||||
# Below is a request that includes all optional parameters
|
||||
# api_response = api_instance.import_entitlements_by_source(id, csv_file)
|
||||
# results = EntitlementsApi(api_client).import_entitlements_by_source(id, csv_file)
|
||||
print("The response of EntitlementsApi->import_entitlements_by_source:\n")
|
||||
pprint(api_response)
|
||||
except Exception as e:
|
||||
pprint(results)
|
||||
except Exception as e:
|
||||
print("Exception when calling EntitlementsApi->import_entitlements_by_source: %s\n" % e)
|
||||
```
|
||||
|
||||
@@ -413,10 +428,14 @@ Code | Description | Data Type | Response headers |
|
||||
|
||||
```python
|
||||
import sailpoint.beta
|
||||
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.rest import ApiException
|
||||
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)
|
||||
@@ -427,13 +446,12 @@ from pprint import pprint
|
||||
try:
|
||||
# List of entitlements children
|
||||
|
||||
api_response = api_instance.list_entitlement_children(id, )
|
||||
|
||||
results =EntitlementsApi(api_client).list_entitlement_children(id, )
|
||||
# Below is a request that includes all optional parameters
|
||||
# api_response = api_instance.list_entitlement_children(id, limit, offset, count, sorters, filters)
|
||||
# results = EntitlementsApi(api_client).list_entitlement_children(id, limit, offset, count, sorters, filters)
|
||||
print("The response of EntitlementsApi->list_entitlement_children:\n")
|
||||
pprint(api_response)
|
||||
except Exception as e:
|
||||
pprint(results)
|
||||
except Exception as e:
|
||||
print("Exception when calling EntitlementsApi->list_entitlement_children: %s\n" % e)
|
||||
```
|
||||
|
||||
@@ -480,10 +498,14 @@ Code | Description | Data Type | Response headers |
|
||||
|
||||
```python
|
||||
import sailpoint.beta
|
||||
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.rest import ApiException
|
||||
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)
|
||||
@@ -494,13 +516,12 @@ from pprint import pprint
|
||||
try:
|
||||
# List of entitlements parents
|
||||
|
||||
api_response = api_instance.list_entitlement_parents(id, )
|
||||
|
||||
results =EntitlementsApi(api_client).list_entitlement_parents(id, )
|
||||
# Below is a request that includes all optional parameters
|
||||
# api_response = api_instance.list_entitlement_parents(id, limit, offset, count, sorters, filters)
|
||||
# results = EntitlementsApi(api_client).list_entitlement_parents(id, limit, offset, count, sorters, filters)
|
||||
print("The response of EntitlementsApi->list_entitlement_parents:\n")
|
||||
pprint(api_response)
|
||||
except Exception as e:
|
||||
pprint(results)
|
||||
except Exception as e:
|
||||
print("Exception when calling EntitlementsApi->list_entitlement_parents: %s\n" % e)
|
||||
```
|
||||
|
||||
@@ -553,10 +574,14 @@ Code | Description | Data Type | Response headers |
|
||||
|
||||
```python
|
||||
import sailpoint.beta
|
||||
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.rest import ApiException
|
||||
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)
|
||||
@@ -570,13 +595,12 @@ from pprint import pprint
|
||||
try:
|
||||
# Gets a list of entitlements.
|
||||
|
||||
api_response = api_instance.list_entitlements()
|
||||
|
||||
results =EntitlementsApi(api_client).list_entitlements()
|
||||
# Below is a request that includes all optional parameters
|
||||
# api_response = api_instance.list_entitlements(account_id, segmented_for_identity, for_segment_ids, include_unsegmented, offset, limit, count, sorters, filters)
|
||||
# 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(api_response)
|
||||
except Exception as e:
|
||||
pprint(results)
|
||||
except Exception as e:
|
||||
print("Exception when calling EntitlementsApi->list_entitlements: %s\n" % e)
|
||||
```
|
||||
|
||||
@@ -625,11 +649,15 @@ Code | Description | Data Type | Response headers |
|
||||
|
||||
```python
|
||||
import sailpoint.beta
|
||||
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 sailpoint.beta.rest import ApiException
|
||||
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
|
||||
[{op=replace, path=/requestable, value=true}, {op=replace, path=/privileged, value=true}] # List[JsonPatchOperation] | (optional)
|
||||
json_patch_operation = {
|
||||
@@ -642,13 +670,12 @@ from pprint import pprint
|
||||
try:
|
||||
# Patch an entitlement
|
||||
|
||||
api_response = api_instance.patch_entitlement(id, )
|
||||
|
||||
results =EntitlementsApi(api_client).patch_entitlement(id, )
|
||||
# Below is a request that includes all optional parameters
|
||||
# api_response = api_instance.patch_entitlement(id, Result)
|
||||
# results = EntitlementsApi(api_client).patch_entitlement(id, new_json_patch_operation)
|
||||
print("The response of EntitlementsApi->patch_entitlement:\n")
|
||||
pprint(api_response)
|
||||
except Exception as e:
|
||||
pprint(results)
|
||||
except Exception as e:
|
||||
print("Exception when calling EntitlementsApi->patch_entitlement: %s\n" % e)
|
||||
```
|
||||
|
||||
@@ -691,10 +718,14 @@ Code | Description | Data Type | Response headers |
|
||||
|
||||
```python
|
||||
import sailpoint.beta
|
||||
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 sailpoint.beta.rest import ApiException
|
||||
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 = {
|
||||
"accessRequestConfig" : {
|
||||
@@ -712,14 +743,14 @@ from pprint import pprint
|
||||
|
||||
try:
|
||||
# Replace Entitlement Request Config
|
||||
Result = entitlement_request_config.from_json(entitlement_request_config)
|
||||
api_response = api_instance.put_entitlement_request_config(id, Result)
|
||||
|
||||
new_entitlement_request_config = EntitlementRequestConfig()
|
||||
new_entitlement_request_config.from_json(entitlement_request_config)
|
||||
results =EntitlementsApi(api_client).put_entitlement_request_config(id, new_entitlement_request_config)
|
||||
# Below is a request that includes all optional parameters
|
||||
# api_response = api_instance.put_entitlement_request_config(id, Result)
|
||||
# results = EntitlementsApi(api_client).put_entitlement_request_config(id, new_entitlement_request_config)
|
||||
print("The response of EntitlementsApi->put_entitlement_request_config:\n")
|
||||
pprint(api_response)
|
||||
except Exception as e:
|
||||
pprint(results)
|
||||
except Exception as e:
|
||||
print("Exception when calling EntitlementsApi->put_entitlement_request_config: %s\n" % e)
|
||||
```
|
||||
|
||||
@@ -761,22 +792,25 @@ Code | Description | Data Type | Response headers |
|
||||
|
||||
```python
|
||||
import sailpoint.beta
|
||||
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 sailpoint.beta.rest import ApiException
|
||||
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
|
||||
|
||||
api_response = api_instance.reset_source_entitlements(source_id)
|
||||
|
||||
results =EntitlementsApi(api_client).reset_source_entitlements(source_id)
|
||||
# Below is a request that includes all optional parameters
|
||||
# api_response = api_instance.reset_source_entitlements(source_id)
|
||||
# results = EntitlementsApi(api_client).reset_source_entitlements(source_id)
|
||||
print("The response of EntitlementsApi->reset_source_entitlements:\n")
|
||||
pprint(api_response)
|
||||
except Exception as e:
|
||||
pprint(results)
|
||||
except Exception as e:
|
||||
print("Exception when calling EntitlementsApi->reset_source_entitlements: %s\n" % e)
|
||||
```
|
||||
|
||||
@@ -830,10 +864,14 @@ Code | Description | Data Type | Response headers |
|
||||
|
||||
```python
|
||||
import sailpoint.beta
|
||||
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 sailpoint.beta.rest import ApiException
|
||||
from pprint import pprint
|
||||
from sailpoint.configuration import Configuration
|
||||
configuration = Configuration()
|
||||
|
||||
with ApiClient(configuration) as api_client:
|
||||
entitlement_bulk_update_request = {
|
||||
"entitlementIds" : [ "2c91808a7624751a01762f19d665220d", "2c91808a7624751a01762f19d67c220e", "2c91808a7624751a01762f19d692220f" ],
|
||||
"jsonPatch" : [ {
|
||||
@@ -849,12 +887,12 @@ from pprint import pprint
|
||||
|
||||
try:
|
||||
# Bulk update an entitlement list
|
||||
Result = entitlement_bulk_update_request.from_json(entitlement_bulk_update_request)
|
||||
api_instance.update_entitlements_in_bulk(Result)
|
||||
|
||||
new_entitlement_bulk_update_request = EntitlementBulkUpdateRequest()
|
||||
new_entitlement_bulk_update_request.from_json(entitlement_bulk_update_request)
|
||||
EntitlementsApi(api_client).update_entitlements_in_bulk(new_entitlement_bulk_update_request)
|
||||
# Below is a request that includes all optional parameters
|
||||
# api_instance.update_entitlements_in_bulk(Result)
|
||||
except Exception as e:
|
||||
# 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)
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user