sailpoint.machine_account_recommendation.MachineAccountRecommendationApi
Use this API to review machine account discovery results. Machine account discovery analyzes accounts and recommends whether each account belongs to a machine rather than a person.
You can get the recommendation for an account, including the reasons behind it, and you can list the reasons that machine account discovery reports, with a readable message for each reason.
All URIs are relative to https://sailpoint.api.identitynow.com
| Method | HTTP request | Description |
|---|---|---|
| get-machine-account-recommendation-v1 | GET /accounts/v1/{id}/recommendation | Get machine account recommendation |
| list-machine-account-discovery-reasons-v1 | GET /ai-recommendations/v1/reasons/machine-account-discovery | List machine account discovery reasons |
get-machine-account-recommendation-v1
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.
on the configuration object you can set the x-sailpoint-experimental header to `true' to enable all experimantl endpoints within the SDK.
Example:
configuration = Configuration()
configuration.experimental = True
Get machine account recommendation This API returns the machine account discovery recommendation for an account. The recommendation states whether the account is likely a machine account and lists the reasons that contributed to it.
When no recommendation exists for the account, this API returns 200 with an empty response body.
When machine account discovery is not enabled for the tenant, this API returns 404.
Parameters
| Param Type | Name | Data Type | Required | Description |
|---|---|---|---|---|
| Path | id | str | True | Account ID. |
| x_sail_point_experimental | str | (optional) (default to 'true') | Use this header to enable this experimental API. |
Return type
Responses
| Code | Description | Data Type | Response headers |
|---|---|---|---|
| 200 | Machine account recommendation for the account. | MachineAccountRecommendation | - |
| 400 | Client Error - Returned if the request body is invalid. | ErrorResponseDto | - |
| 401 | Unauthorized - Returned if there is no authorization header, or if the JWT token is expired. | GetMachineAccountRecommendationV1401Response | - |
| 403 | Forbidden - Returned if the user you are running as, doesn't have access to this end-point. | ErrorResponseDto | - |
| 404 | Not Found - returned if the request URL refers to a resource or object that does not exist | ErrorResponseDto | - |
| 429 | Too Many Requests - Returned in response to too many requests in a given period of time - rate limited. The Retry-After header in the response includes how long to wait before trying again. | GetMachineAccountRecommendationV1429Response | - |
| 500 | Internal Server Error - Returned if there is an unexpected error. | ErrorResponseDto | - |
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
Example
from sailpoint.machine_account_recommendation.api.machine_account_recommendation_api import MachineAccountRecommendationApi
from sailpoint.machine_account_recommendation.api_client import ApiClient
from sailpoint.machine_account_recommendation.models.machine_account_recommendation import MachineAccountRecommendation
from sailpoint.configuration import Configuration
configuration = Configuration()
configuration.experimental = True
with ApiClient(configuration) as api_client:
id = '2c9180835d2e5168015d32f890ca1581' # str | Account ID. # str | Account ID.
x_sail_point_experimental = 'true' # str | Use this header to enable this experimental API. (optional) (default to 'true') # str | Use this header to enable this experimental API. (optional) (default to 'true')
try:
# Get machine account recommendation
results = MachineAccountRecommendationApi(api_client).get_machine_account_recommendation_v1(id=id)
# Below is a request that includes all optional parameters
# results = MachineAccountRecommendationApi(api_client).get_machine_account_recommendation_v1(id, x_sail_point_experimental)
print("The response of MachineAccountRecommendationApi->get_machine_account_recommendation_v1:\n")
print(results.model_dump_json(by_alias=True, indent=4))
except Exception as e:
print("Exception when calling MachineAccountRecommendationApi->get_machine_account_recommendation_v1: %s\n" % e)
list-machine-account-discovery-reasons-v1
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.
on the configuration object you can set the x-sailpoint-experimental header to `true' to enable all experimantl endpoints within the SDK.
Example:
configuration = Configuration()
configuration.experimental = True
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.
on the configuration object you can set the x-sailpoint-experimental header to `true' to enable all experimantl endpoints within the SDK.
Example:
configuration = Configuration()
configuration.experimental = True
List machine account discovery reasons This API returns the reasons that machine account discovery can report for a recommendation. Each reason has an ID and a readable message. Use this list to show a message for each reason in a machine account recommendation.
Messages are localized. Send the Accept-Language header to choose a language. When the requested language is not
available, messages are returned in the default language.
The reasons are returned in the order defined by the catalog. When the catalog does not define an order, the reasons are sorted by ID.
When machine account discovery is not enabled for the tenant, this API returns 404.
Parameters
| Param Type | Name | Data Type | Required | Description |
|---|---|---|---|---|
| x_sail_point_experimental | str | (optional) (default to 'true') | Use this header to enable this experimental API. | |
| accept_language | str | (optional) (default to 'en') | Preferred language for the reason messages. |
Return type
List[MachineAccountDiscoveryReason]
Responses
| Code | Description | Data Type | Response headers |
|---|---|---|---|
| 200 | List of machine account discovery reasons. | List[MachineAccountDiscoveryReason] | - |
| 400 | Client Error - Returned if the request body is invalid. | ErrorResponseDto | - |
| 401 | Unauthorized - Returned if there is no authorization header, or if the JWT token is expired. | GetMachineAccountRecommendationV1401Response | - |
| 403 | Forbidden - Returned if the user you are running as, doesn't have access to this end-point. | ErrorResponseDto | - |
| 404 | Not Found - returned if the request URL refers to a resource or object that does not exist | ErrorResponseDto | - |
| 429 | Too Many Requests - Returned in response to too many requests in a given period of time - rate limited. The Retry-After header in the response includes how long to wait before trying again. | GetMachineAccountRecommendationV1429Response | - |
| 500 | Internal Server Error - Returned if there is an unexpected error. | ErrorResponseDto | - |
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
Example
from sailpoint.machine_account_recommendation.api.machine_account_recommendation_api import MachineAccountRecommendationApi
from sailpoint.machine_account_recommendation.api_client import ApiClient
from sailpoint.machine_account_recommendation.models.machine_account_discovery_reason import MachineAccountDiscoveryReason
from sailpoint.configuration import Configuration
configuration = Configuration()
configuration.experimental = True
configuration.experimental = True
with ApiClient(configuration) as api_client:
x_sail_point_experimental = 'true' # str | Use this header to enable this experimental API. (optional) (default to 'true') # str | Use this header to enable this experimental API. (optional) (default to 'true')
accept_language = 'en' # str | Preferred language for the reason messages. (optional) (default to 'en') # str | Preferred language for the reason messages. (optional) (default to 'en')
try:
# List machine account discovery reasons
results = MachineAccountRecommendationApi(api_client).list_machine_account_discovery_reasons_v1()
# Below is a request that includes all optional parameters
# results = MachineAccountRecommendationApi(api_client).list_machine_account_discovery_reasons_v1(x_sail_point_experimental, accept_language)
print("The response of MachineAccountRecommendationApi->list_machine_account_discovery_reasons_v1:\n")
for item in results:
print(item.model_dump_json(by_alias=True, indent=4))
except Exception as e:
print("Exception when calling MachineAccountRecommendationApi->list_machine_account_discovery_reasons_v1: %s\n" % e)