Skip to main content

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

MethodHTTP requestDescription
get-machine-account-recommendation-v1GET /accounts/v1/{id}/recommendationGet machine account recommendation
list-machine-account-discovery-reasons-v1GET /ai-recommendations/v1/reasons/machine-account-discoveryList machine account discovery reasons

get-machine-account-recommendation-v1​

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.

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:

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.

API Spec

Parameters​

Param TypeNameData TypeRequiredDescription
PathidstrTrueAccount ID.
x_sail_point_experimentalstr(optional) (default to 'true')Use this header to enable this experimental API.

Return type​

MachineAccountRecommendation

Responses​

CodeDescriptionData TypeResponse headers
200Machine account recommendation for the account.MachineAccountRecommendation-
400Client Error - Returned if the request body is invalid.ErrorResponseDto-
401Unauthorized - Returned if there is no authorization header, or if the JWT token is expired.GetMachineAccountRecommendationV1401Response-
403Forbidden - Returned if the user you are running as, doesn't have access to this end-point.ErrorResponseDto-
404Not Found - returned if the request URL refers to a resource or object that does not existErrorResponseDto-
429Too 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-
500Internal 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)

[Back to top]

list-machine-account-discovery-reasons-v1​

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.

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:

configuration = Configuration()
configuration.experimental = True
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.

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:

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.

API Spec

Parameters​

Param TypeNameData TypeRequiredDescription
x_sail_point_experimentalstr(optional) (default to 'true')Use this header to enable this experimental API.
accept_languagestr(optional) (default to 'en')Preferred language for the reason messages.

Return type​

List[MachineAccountDiscoveryReason]

Responses​

CodeDescriptionData TypeResponse headers
200List of machine account discovery reasons.List[MachineAccountDiscoveryReason]-
400Client Error - Returned if the request body is invalid.ErrorResponseDto-
401Unauthorized - Returned if there is no authorization header, or if the JWT token is expired.GetMachineAccountRecommendationV1401Response-
403Forbidden - Returned if the user you are running as, doesn't have access to this end-point.ErrorResponseDto-
404Not Found - returned if the request URL refers to a resource or object that does not existErrorResponseDto-
429Too 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-
500Internal 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)

[Back to top]