mirror of
https://github.com/LukeHagar/developer.sailpoint.com.git
synced 2025-12-08 12:27:47 +00:00
Update to python SDK docs: 13820107626
This commit is contained in:
@@ -93,7 +93,6 @@ Code | Description | Data Type | Response headers |
|
||||
### Example
|
||||
|
||||
```python
|
||||
import sailpoint.v2024
|
||||
from sailpoint.v2024.api.access_profiles_api import AccessProfilesApi
|
||||
from sailpoint.v2024.api_client import ApiClient
|
||||
from sailpoint.v2024.models.access_profile import AccessProfile
|
||||
@@ -101,8 +100,9 @@ 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",
|
||||
@@ -186,18 +186,17 @@ with ApiClient(configuration) as api_client:
|
||||
"modified" : "2021-03-02T20:22:28.104Z",
|
||||
"id" : "2c91808a7190d06e01719938fcd20792",
|
||||
"requestable" : true
|
||||
} # AccessProfile |
|
||||
}''' # AccessProfile |
|
||||
|
||||
try:
|
||||
# Create Access Profile
|
||||
new_access_profile = AccessProfile()
|
||||
new_access_profile.from_json(access_profile)
|
||||
results =AccessProfilesApi(api_client).create_access_profile(new_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:
|
||||
except Exception as e:
|
||||
print("Exception when calling AccessProfilesApi->create_access_profile: %s\n" % e)
|
||||
```
|
||||
|
||||
@@ -241,23 +240,23 @@ Code | Description | Data Type | Response headers |
|
||||
### Example
|
||||
|
||||
```python
|
||||
import sailpoint.v2024
|
||||
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)
|
||||
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:
|
||||
except Exception as e:
|
||||
print("Exception when calling AccessProfilesApi->delete_access_profile: %s\n" % e)
|
||||
```
|
||||
|
||||
@@ -302,7 +301,6 @@ Code | Description | Data Type | Response headers |
|
||||
### Example
|
||||
|
||||
```python
|
||||
import sailpoint.v2024
|
||||
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
|
||||
@@ -311,22 +309,22 @@ 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 |
|
||||
}''' # AccessProfileBulkDeleteRequest |
|
||||
|
||||
try:
|
||||
# Delete Access Profile(s)
|
||||
new_access_profile_bulk_delete_request = AccessProfileBulkDeleteRequest()
|
||||
new_access_profile_bulk_delete_request.from_json(access_profile_bulk_delete_request)
|
||||
results =AccessProfilesApi(api_client).delete_access_profiles_in_bulk(new_access_profile_bulk_delete_request)
|
||||
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:
|
||||
except Exception as e:
|
||||
print("Exception when calling AccessProfilesApi->delete_access_profiles_in_bulk: %s\n" % e)
|
||||
```
|
||||
|
||||
@@ -366,7 +364,6 @@ Code | Description | Data Type | Response headers |
|
||||
### Example
|
||||
|
||||
```python
|
||||
import sailpoint.v2024
|
||||
from sailpoint.v2024.api.access_profiles_api import AccessProfilesApi
|
||||
from sailpoint.v2024.api_client import ApiClient
|
||||
from sailpoint.v2024.models.access_profile import AccessProfile
|
||||
@@ -374,18 +371,19 @@ 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)
|
||||
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:
|
||||
except Exception as e:
|
||||
print("Exception when calling AccessProfilesApi->get_access_profile: %s\n" % e)
|
||||
```
|
||||
|
||||
@@ -432,7 +430,6 @@ Code | Description | Data Type | Response headers |
|
||||
### Example
|
||||
|
||||
```python
|
||||
import sailpoint.v2024
|
||||
from sailpoint.v2024.api.access_profiles_api import AccessProfilesApi
|
||||
from sailpoint.v2024.api_client import ApiClient
|
||||
from sailpoint.v2024.models.entitlement import Entitlement
|
||||
@@ -440,6 +437,7 @@ 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)
|
||||
@@ -451,12 +449,12 @@ with ApiClient(configuration) as api_client:
|
||||
try:
|
||||
# List Access Profile's Entitlements
|
||||
|
||||
results =AccessProfilesApi(api_client).get_access_profile_entitlements(id, )
|
||||
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:
|
||||
except Exception as e:
|
||||
print("Exception when calling AccessProfilesApi->get_access_profile_entitlements: %s\n" % e)
|
||||
```
|
||||
|
||||
@@ -504,7 +502,6 @@ Code | Description | Data Type | Response headers |
|
||||
### Example
|
||||
|
||||
```python
|
||||
import sailpoint.v2024
|
||||
from sailpoint.v2024.api.access_profiles_api import AccessProfilesApi
|
||||
from sailpoint.v2024.api_client import ApiClient
|
||||
from sailpoint.v2024.models.access_profile import AccessProfile
|
||||
@@ -512,6 +509,7 @@ from pprint import pprint
|
||||
from sailpoint.configuration import Configuration
|
||||
configuration = Configuration()
|
||||
|
||||
|
||||
with ApiClient(configuration) as api_client:
|
||||
for_subadmin = '8c190e6787aa4ed9a90bd9d5344523fb' # str | If provided, 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. 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 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)
|
||||
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)
|
||||
@@ -525,12 +523,12 @@ with ApiClient(configuration) as api_client:
|
||||
try:
|
||||
# List Access Profiles
|
||||
|
||||
results =AccessProfilesApi(api_client).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:
|
||||
except Exception as e:
|
||||
print("Exception when calling AccessProfilesApi->list_access_profiles: %s\n" % e)
|
||||
```
|
||||
|
||||
@@ -600,7 +598,6 @@ Code | Description | Data Type | Response headers |
|
||||
### Example
|
||||
|
||||
```python
|
||||
import sailpoint.v2024
|
||||
from sailpoint.v2024.api.access_profiles_api import AccessProfilesApi
|
||||
from sailpoint.v2024.api_client import ApiClient
|
||||
from sailpoint.v2024.models.access_profile import AccessProfile
|
||||
@@ -609,26 +606,20 @@ 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
|
||||
[{op=add, path=/entitlements, value=[{id=2c9180857725c14301772a93bb77242d, type=ENTITLEMENT, name=AD User Group}]}] # List[JsonPatchOperation] |
|
||||
json_patch_operation = {
|
||||
"op" : "replace",
|
||||
"path" : "/description",
|
||||
"value" : "New description"
|
||||
} # List[JsonPatchOperation] |
|
||||
|
||||
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()
|
||||
new_json_patch_operation.from_json(json_patch_operation)
|
||||
results =AccessProfilesApi(api_client).patch_access_profile(id, new_json_patch_operation)
|
||||
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:
|
||||
except Exception as e:
|
||||
print("Exception when calling AccessProfilesApi->patch_access_profile: %s\n" % e)
|
||||
```
|
||||
|
||||
@@ -640,6 +631,14 @@ with ApiClient(configuration) as api_client:
|
||||
:::warning experimental
|
||||
This API is currently in an experimental state. The API is subject to change based on feedback and further testing. You must include the X-SailPoint-Experimental header and set it to `true` to use this endpoint.
|
||||
:::
|
||||
:::tip setting x-sailpoint-experimental header
|
||||
on the configuration object you can set the `x-sailpoint-experimental` header to `true' to enable all experimantl endpoints within the SDK.
|
||||
Example:
|
||||
```python
|
||||
configuration = Configuration()
|
||||
configuration.experimental = True
|
||||
```
|
||||
:::
|
||||
Update Access Profile(s) requestable field.
|
||||
This API initiates a bulk update of field requestable for one or more Access Profiles.
|
||||
|
||||
@@ -679,7 +678,6 @@ Code | Description | Data Type | Response headers |
|
||||
### Example
|
||||
|
||||
```python
|
||||
import sailpoint.v2024
|
||||
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
|
||||
@@ -688,22 +686,21 @@ 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=464ae7bf-791e-49fd-b746-06a2e4a89635, requestable=false}] # List[AccessProfileBulkUpdateRequestInner] |
|
||||
access_profile_bulk_update_request_inner = [{id=464ae7bf-791e-49fd-b746-06a2e4a89635, requestable=false}] # List[AccessProfileBulkUpdateRequestInner] |
|
||||
|
||||
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()
|
||||
new_access_profile_bulk_update_request_inner.from_json(access_profile_bulk_update_request_inner)
|
||||
results =AccessProfilesApi(api_client).update_access_profiles_in_bulk(x_sail_point_experimental, new_access_profile_bulk_update_request_inner)
|
||||
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:
|
||||
except Exception as e:
|
||||
print("Exception when calling AccessProfilesApi->update_access_profiles_in_bulk: %s\n" % e)
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user