|
7268 | 7268 | print(results.model_dump_json(by_alias=True, indent=4)) |
7269 | 7269 | except Exception as e: |
7270 | 7270 | print("Exception when calling DataAccessSecurityApi->create_schedule: %s\n" % e) |
| 7271 | +- path: /das/owners/assign |
| 7272 | + method: POST |
| 7273 | + xCodeSample: |
| 7274 | + - lang: Python |
| 7275 | + label: SDK_tools/sdk/python/v2025/methods/data-access-security#das-owners-assign-post |
| 7276 | + source: | |
| 7277 | + from sailpoint.v2025.api.data_access_security_api import DataAccessSecurityApi |
| 7278 | + from sailpoint.v2025.api_client import ApiClient |
| 7279 | + from sailpoint.v2025.models.assign_resource_owner_request import AssignResourceOwnerRequest |
| 7280 | + from sailpoint.configuration import Configuration |
| 7281 | + configuration = Configuration() |
| 7282 | + |
| 7283 | + |
| 7284 | + with ApiClient(configuration) as api_client: |
| 7285 | + assign_resource_owner_request = '''{ |
| 7286 | + "fullPath" : "/shared/hr/documents/employee-records.pdf", |
| 7287 | + "identityId" : "d290f1ee-6c54-4b01-90e6-d701748f0851", |
| 7288 | + "appId" : 12345 |
| 7289 | + }''' # AssignResourceOwnerRequest | |
| 7290 | + try: |
| 7291 | + # Assign owner to application resource. |
| 7292 | + new_assign_resource_owner_request = AssignResourceOwnerRequest.from_json(assign_resource_owner_request) |
| 7293 | + results = DataAccessSecurityApi(api_client).das_owners_assign_post(assign_resource_owner_request=new_assign_resource_owner_request) |
| 7294 | + # Below is a request that includes all optional parameters |
| 7295 | + # results = DataAccessSecurityApi(api_client).das_owners_assign_post(new_assign_resource_owner_request) |
| 7296 | + print("The response of DataAccessSecurityApi->das_owners_assign_post:\n") |
| 7297 | + print(results.model_dump_json(by_alias=True, indent=4)) |
| 7298 | + except Exception as e: |
| 7299 | + print("Exception when calling DataAccessSecurityApi->das_owners_assign_post: %s\n" % e) |
| 7300 | +- path: /das/owners/{ownerIdentityId}/resources |
| 7301 | + method: GET |
| 7302 | + xCodeSample: |
| 7303 | + - lang: Python |
| 7304 | + label: SDK_tools/sdk/python/v2025/methods/data-access-security#das-owners-owner-identity-id-resources-get |
| 7305 | + source: | |
| 7306 | + from sailpoint.v2025.api.data_access_security_api import DataAccessSecurityApi |
| 7307 | + from sailpoint.v2025.api_client import ApiClient |
| 7308 | + from sailpoint.v2025.models.resource_model import ResourceModel |
| 7309 | + from sailpoint.configuration import Configuration |
| 7310 | + configuration = Configuration() |
| 7311 | + |
| 7312 | + |
| 7313 | + with ApiClient(configuration) as api_client: |
| 7314 | + owner_identity_id = 'a3f1c2d4-5678-4e9b-8c2d-123456789abc' # str | Unique identifier for the owner. This should be a UUID representing the owner's identity. # str | Unique identifier for the owner. This should be a UUID representing the owner's identity. |
| 7315 | + limit = 250 # int | Not applicable for this endpoint. Do not use. (optional) (default to 250) # int | Not applicable for this endpoint. Do not use. (optional) (default to 250) |
| 7316 | + offset = 0 # int | Not applicable for this endpoint. Do not use. (optional) (default to 0) # int | Not applicable for this endpoint. Do not use. (optional) (default to 0) |
| 7317 | + try: |
| 7318 | + # List resources for owner. |
| 7319 | + |
| 7320 | + results = DataAccessSecurityApi(api_client).das_owners_owner_identity_id_resources_get(owner_identity_id=owner_identity_id) |
| 7321 | + # Below is a request that includes all optional parameters |
| 7322 | + # results = DataAccessSecurityApi(api_client).das_owners_owner_identity_id_resources_get(owner_identity_id, limit, offset) |
| 7323 | + print("The response of DataAccessSecurityApi->das_owners_owner_identity_id_resources_get:\n") |
| 7324 | + for item in results: |
| 7325 | + print(item.model_dump_json(by_alias=True, indent=4)) |
| 7326 | + except Exception as e: |
| 7327 | + print("Exception when calling DataAccessSecurityApi->das_owners_owner_identity_id_resources_get: %s\n" % e) |
| 7328 | +- path: /das/owners/reelect |
| 7329 | + method: POST |
| 7330 | + xCodeSample: |
| 7331 | + - lang: Python |
| 7332 | + label: SDK_tools/sdk/python/v2025/methods/data-access-security#das-owners-reelect-post |
| 7333 | + source: | |
| 7334 | + from sailpoint.v2025.api.data_access_security_api import DataAccessSecurityApi |
| 7335 | + from sailpoint.v2025.api_client import ApiClient |
| 7336 | + from sailpoint.v2025.models.reelect_request import ReelectRequest |
| 7337 | + from sailpoint.configuration import Configuration |
| 7338 | + configuration = Configuration() |
| 7339 | + |
| 7340 | + |
| 7341 | + with ApiClient(configuration) as api_client: |
| 7342 | + reelect_request = '''{ |
| 7343 | + "ownerId" : "c1a2b3d4-e5f6-7890-abcd-1234567890ab", |
| 7344 | + "campaignName" : "Annual Resource Owner Election", |
| 7345 | + "reviewers" : [ "d4e5f6a7-b8c9-0123-4567-89abcdef0123", "e7f8g9h0-i1j2-3456-7890-klmnopqrstuv" ] |
| 7346 | + }''' # ReelectRequest | The request body must contain details for re-electing a resource owner. Date/time fields should use epoch format in seconds. |
| 7347 | + try: |
| 7348 | + # Re-elect resource owner. |
| 7349 | + new_reelect_request = ReelectRequest.from_json(reelect_request) |
| 7350 | + results = DataAccessSecurityApi(api_client).das_owners_reelect_post(reelect_request=new_reelect_request) |
| 7351 | + # Below is a request that includes all optional parameters |
| 7352 | + # results = DataAccessSecurityApi(api_client).das_owners_reelect_post(new_reelect_request) |
| 7353 | + print("The response of DataAccessSecurityApi->das_owners_reelect_post:\n") |
| 7354 | + print(results.model_dump_json(by_alias=True, indent=4)) |
| 7355 | + except Exception as e: |
| 7356 | + print("Exception when calling DataAccessSecurityApi->das_owners_reelect_post: %s\n" % e) |
| 7357 | +- path: /das/owners/resources/{resourceId} |
| 7358 | + method: GET |
| 7359 | + xCodeSample: |
| 7360 | + - lang: Python |
| 7361 | + label: SDK_tools/sdk/python/v2025/methods/data-access-security#das-owners-resources-resource-id-get |
| 7362 | + source: | |
| 7363 | + from sailpoint.v2025.api.data_access_security_api import DataAccessSecurityApi |
| 7364 | + from sailpoint.v2025.api_client import ApiClient |
| 7365 | + from sailpoint.configuration import Configuration |
| 7366 | + configuration = Configuration() |
| 7367 | + |
| 7368 | + |
| 7369 | + with ApiClient(configuration) as api_client: |
| 7370 | + resource_id = 101 # int | Unique identifier for the resource. # int | Unique identifier for the resource. |
| 7371 | + limit = 250 # int | Not applicable for this endpoint. Do not use. (optional) (default to 250) # int | Not applicable for this endpoint. Do not use. (optional) (default to 250) |
| 7372 | + offset = 0 # int | Not applicable for this endpoint. Do not use. (optional) (default to 0) # int | Not applicable for this endpoint. Do not use. (optional) (default to 0) |
| 7373 | + try: |
| 7374 | + # List owners for resource. |
| 7375 | + |
| 7376 | + results = DataAccessSecurityApi(api_client).das_owners_resources_resource_id_get(resource_id=resource_id) |
| 7377 | + # Below is a request that includes all optional parameters |
| 7378 | + # results = DataAccessSecurityApi(api_client).das_owners_resources_resource_id_get(resource_id, limit, offset) |
| 7379 | + print("The response of DataAccessSecurityApi->das_owners_resources_resource_id_get:\n") |
| 7380 | + for item in results: |
| 7381 | + print(item.model_dump_json(by_alias=True, indent=4)) |
| 7382 | + except Exception as e: |
| 7383 | + print("Exception when calling DataAccessSecurityApi->das_owners_resources_resource_id_get: %s\n" % e) |
| 7384 | +- path: /das/owners/{sourceIdentityId}/reassign/{destinationIdentityId} |
| 7385 | + method: POST |
| 7386 | + xCodeSample: |
| 7387 | + - lang: Python |
| 7388 | + label: SDK_tools/sdk/python/v2025/methods/data-access-security#das-owners-source-identity-id-reassign-destination-identity-id-post |
| 7389 | + source: | |
| 7390 | + from sailpoint.v2025.api.data_access_security_api import DataAccessSecurityApi |
| 7391 | + from sailpoint.v2025.api_client import ApiClient |
| 7392 | + from sailpoint.configuration import Configuration |
| 7393 | + configuration = Configuration() |
| 7394 | + |
| 7395 | + |
| 7396 | + with ApiClient(configuration) as api_client: |
| 7397 | + source_identity_id = 'a3f1c2d4-5678-4e9b-8c2d-123456789abc' # str | Unique identifier for the source owner. This should be a UUID representing the identity to reassign from. # str | Unique identifier for the source owner. This should be a UUID representing the identity to reassign from. |
| 7398 | + destination_identity_id = 'b4e2d3c5-6789-4f0a-9d3e-234567890bcd' # str | Unique identifier for the destination owner. This should be a UUID representing the identity to reassign to. # str | Unique identifier for the destination owner. This should be a UUID representing the identity to reassign to. |
| 7399 | + try: |
| 7400 | + # Reassign resource owner. |
| 7401 | + |
| 7402 | + results = DataAccessSecurityApi(api_client).das_owners_source_identity_id_reassign_destination_identity_id_post(source_identity_id=source_identity_id, destination_identity_id=destination_identity_id) |
| 7403 | + # Below is a request that includes all optional parameters |
| 7404 | + # results = DataAccessSecurityApi(api_client).das_owners_source_identity_id_reassign_destination_identity_id_post(source_identity_id, destination_identity_id) |
| 7405 | + print("The response of DataAccessSecurityApi->das_owners_source_identity_id_reassign_destination_identity_id_post:\n") |
| 7406 | + print(results.model_dump_json(by_alias=True, indent=4)) |
| 7407 | + except Exception as e: |
| 7408 | + print("Exception when calling DataAccessSecurityApi->das_owners_source_identity_id_reassign_destination_identity_id_post: %s\n" % e) |
7271 | 7409 | - path: /das/applications/{id} |
7272 | 7410 | method: DELETE |
7273 | 7411 | xCodeSample: |
|
7388 | 7526 | print(item.model_dump_json(by_alias=True, indent=4)) |
7389 | 7527 | except Exception as e: |
7390 | 7528 | print("Exception when calling DataAccessSecurityApi->get_applications: %s\n" % e) |
| 7529 | +- path: /das/owners/applications/{appId} |
| 7530 | + method: GET |
| 7531 | + xCodeSample: |
| 7532 | + - lang: Python |
| 7533 | + label: SDK_tools/sdk/python/v2025/methods/data-access-security#get-owners |
| 7534 | + source: | |
| 7535 | + from sailpoint.v2025.api.data_access_security_api import DataAccessSecurityApi |
| 7536 | + from sailpoint.v2025.api_client import ApiClient |
| 7537 | + from sailpoint.v2025.models.data_owner_model import DataOwnerModel |
| 7538 | + from sailpoint.configuration import Configuration |
| 7539 | + configuration = Configuration() |
| 7540 | + |
| 7541 | + |
| 7542 | + with ApiClient(configuration) as api_client: |
| 7543 | + app_id = 2001 # int | The unique identifier of the application for which to retrieve owners. # int | The unique identifier of the application for which to retrieve owners. |
| 7544 | + limit = 250 # int | Not applicable for this endpoint. Do not use. (optional) (default to 250) # int | Not applicable for this endpoint. Do not use. (optional) (default to 250) |
| 7545 | + offset = 0 # int | Not applicable for this endpoint. Do not use. (optional) (default to 0) # int | Not applicable for this endpoint. Do not use. (optional) (default to 0) |
| 7546 | + try: |
| 7547 | + # Retrieve owners per application. |
| 7548 | + |
| 7549 | + results = DataAccessSecurityApi(api_client).get_owners(app_id=app_id) |
| 7550 | + # Below is a request that includes all optional parameters |
| 7551 | + # results = DataAccessSecurityApi(api_client).get_owners(app_id, limit, offset) |
| 7552 | + print("The response of DataAccessSecurityApi->get_owners:\n") |
| 7553 | + for item in results: |
| 7554 | + print(item.model_dump_json(by_alias=True, indent=4)) |
| 7555 | + except Exception as e: |
| 7556 | + print("Exception when calling DataAccessSecurityApi->get_owners: %s\n" % e) |
7391 | 7557 | - path: /das/tasks/schedules/{id} |
7392 | 7558 | method: GET |
7393 | 7559 | xCodeSample: |
|
0 commit comments