Skip to main content

sailpoint.machine_identities.MachineIdentitiesApi

All URIs are relative to https://sailpoint.api.identitynow.com

MethodHTTP requestDescription
create-machine-identity-v1POST /machine-identities/v1Create machine identity
delete-machine-identity-v1DELETE /machine-identities/v1/{id}Delete machine identity
get-machine-identity-v1GET /machine-identities/v1/{id}Get machine identity details
list-machine-identities-v1GET /machine-identities/v1List machine identities
list-machine-identity-user-entitlements-v1GET /machine-identity-user-entitlements/v1List machine identity's user entitlements
start-machine-identity-aggregation-v1POST /sources/v1/{sourceId}/aggregate-agentsStart machine identity aggregation
update-machine-identity-v1PATCH /machine-identities/v1/{id}Update machine identity details

create-machine-identity-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

Create machine identity Use this API to create a machine identity. The maximum supported length for the description field is 2000 characters.

API Spec

Parameters

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

Return type

Machineidentityresponse

Responses

CodeDescriptionData TypeResponse headers
200Machine Identity created.Machineidentityresponse-
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.ListMachineIdentitiesV1401Response-
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.ListMachineIdentitiesV1429Response-
500Internal Server Error - Returned if there is an unexpected error.Errorresponsedto-

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

Example

from sailpoint.machine_identities.api.machine_identities_api import MachineIdentitiesApi
from sailpoint.machine_identities.api_client import ApiClient
from sailpoint.machine_identities.models.machineidentityrequest import Machineidentityrequest
from sailpoint.machine_identities.models.machineidentityresponse import Machineidentityresponse
from sailpoint.configuration import Configuration
configuration = Configuration()

configuration.experimental = True

with ApiClient(configuration) as api_client:
machineidentityrequest = '''sailpoint.machine_identities.Machineidentityrequest()''' # Machineidentityrequest |
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:
# Create machine identity
new_machineidentityrequest = Machineidentityrequest.from_json(machineidentityrequest)
results = MachineIdentitiesApi(api_client).create_machine_identity_v1(machineidentityrequest=new_machineidentityrequest)
# Below is a request that includes all optional parameters
# results = MachineIdentitiesApi(api_client).create_machine_identity_v1(new_machineidentityrequest, x_sail_point_experimental)
print("The response of MachineIdentitiesApi->create_machine_identity_v1:\n")
print(results.model_dump_json(by_alias=True, indent=4))
except Exception as e:
print("Exception when calling MachineIdentitiesApi->create_machine_identity_v1: %s\n" % e)

[Back to top]

delete-machine-identity-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

Delete machine identity The API returns successful response if the requested machine identity was deleted.

API Spec

Parameters

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

Return type

(empty response body)

Responses

CodeDescriptionData TypeResponse headers
204No content - indicates the request was successful but there is no content to be returned in the response.-
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.ListMachineIdentitiesV1401Response-
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.ListMachineIdentitiesV1429Response-
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_identities.api.machine_identities_api import MachineIdentitiesApi
from sailpoint.machine_identities.api_client import ApiClient
from sailpoint.configuration import Configuration
configuration = Configuration()

configuration.experimental = True

with ApiClient(configuration) as api_client:
id = 'ef38f94347e94562b5bb8424a56397d8' # str | Machine Identity ID # str | Machine Identity 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:
# Delete machine identity

MachineIdentitiesApi(api_client).delete_machine_identity_v1(id=id)
# Below is a request that includes all optional parameters
# MachineIdentitiesApi(api_client).delete_machine_identity_v1(id, x_sail_point_experimental)
except Exception as e:
print("Exception when calling MachineIdentitiesApi->delete_machine_identity_v1: %s\n" % e)

[Back to top]

get-machine-identity-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 identity details This API returns a single machine identity using the Machine Identity ID.

API Spec

Parameters

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

Return type

Machineidentityresponse

Responses

CodeDescriptionData TypeResponse headers
200A machine identity objectMachineidentityresponse-
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.ListMachineIdentitiesV1401Response-
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.ListMachineIdentitiesV1429Response-
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_identities.api.machine_identities_api import MachineIdentitiesApi
from sailpoint.machine_identities.api_client import ApiClient
from sailpoint.machine_identities.models.machineidentityresponse import Machineidentityresponse
from sailpoint.configuration import Configuration
configuration = Configuration()

configuration.experimental = True

with ApiClient(configuration) as api_client:
id = 'ef38f94347e94562b5bb8424a56397d8' # str | Machine Identity ID # str | Machine Identity 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 identity details

results = MachineIdentitiesApi(api_client).get_machine_identity_v1(id=id)
# Below is a request that includes all optional parameters
# results = MachineIdentitiesApi(api_client).get_machine_identity_v1(id, x_sail_point_experimental)
print("The response of MachineIdentitiesApi->get_machine_identity_v1:\n")
print(results.model_dump_json(by_alias=True, indent=4))
except Exception as e:
print("Exception when calling MachineIdentitiesApi->get_machine_identity_v1: %s\n" % e)

[Back to top]

list-machine-identities-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

List machine identities This API returns a list of machine identities.

API Spec

Parameters

Param TypeNameData TypeRequiredDescription
Queryfiltersstr(optional)Filter results using the standard syntax described in V3 API Standard Collection Parameters Filtering is supported for the following fields and operators: id: eq, in, sw displayName: eq, in, sw cisIdentityId: eq, in, sw nativeIdentity: eq, in, sw attributes: eq manuallyEdited: eq subtype: eq, in owners.primaryIdentity.id: eq, in, sw owners.primaryIdentity.name: eq, in, isnull, pr owners.secondaryIdentity.id: eq, in, sw owners.secondaryIdentity.name: eq, in, isnull, pr source.name: eq, in, sw source.id: eq, in entitlement.id: eq, in entitlement.name: eq, in, sw
Querysortersstr(optional)Sort results using the standard syntax described in V3 API Standard Collection Parameters Sorting is supported for the following fields: nativeIdentity, name, owners.primaryIdentity.name, source.name, created, modified
x_sail_point_experimentalstr(optional) (default to 'true')Use this header to enable this experimental API.
Querycountbool(optional) (default to False)If true it will populate the X-Total-Count response header with the number of results that would be returned if limit and offset were ignored. Since requesting a total count can have a performance impact, it is recommended not to send count=true if that value will not be used. See V3 API Standard Collection Parameters for more information.
Querylimitint(optional) (default to 250)Max number of results to return. See V3 API Standard Collection Parameters for more information.
Queryoffsetint(optional) (default to 0)Offset into the full result set. Usually specified with limit to paginate through the results. See V3 API Standard Collection Parameters for more information.

Return type

List[Machineidentityresponse]

Responses

CodeDescriptionData TypeResponse headers
200List of machine identities.List[Machineidentityresponse]-
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.ListMachineIdentitiesV1401Response-
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.ListMachineIdentitiesV1429Response-
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_identities.api.machine_identities_api import MachineIdentitiesApi
from sailpoint.machine_identities.api_client import ApiClient
from sailpoint.machine_identities.models.machineidentityresponse import Machineidentityresponse
from sailpoint.configuration import Configuration
configuration = Configuration()

configuration.experimental = True

with ApiClient(configuration) as api_client:
filters = 'identityId eq \"2c9180858082150f0180893dbaf44201\"' # str | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in, sw* **displayName**: *eq, in, sw* **cisIdentityId**: *eq, in, sw* **nativeIdentity**: *eq, in, sw* **attributes**: *eq* **manuallyEdited**: *eq* **subtype**: *eq, in* **owners.primaryIdentity.id**: *eq, in, sw* **owners.primaryIdentity.name**: *eq, in, isnull, pr* **owners.secondaryIdentity.id**: *eq, in, sw* **owners.secondaryIdentity.name**: *eq, in, isnull, pr* **source.name**: *eq, in, sw* **source.id**: *eq, in* **entitlement.id**: *eq, in* **entitlement.name**: *eq, in, sw* (optional) # str | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in, sw* **displayName**: *eq, in, sw* **cisIdentityId**: *eq, in, sw* **nativeIdentity**: *eq, in, sw* **attributes**: *eq* **manuallyEdited**: *eq* **subtype**: *eq, in* **owners.primaryIdentity.id**: *eq, in, sw* **owners.primaryIdentity.name**: *eq, in, isnull, pr* **owners.secondaryIdentity.id**: *eq, in, sw* **owners.secondaryIdentity.name**: *eq, in, isnull, pr* **source.name**: *eq, in, sw* **source.id**: *eq, in* **entitlement.id**: *eq, in* **entitlement.name**: *eq, in, sw* (optional)
sorters = 'nativeIdentity' # str | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **nativeIdentity, name, owners.primaryIdentity.name, source.name, created, modified** (optional) # str | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **nativeIdentity, name, owners.primaryIdentity.name, source.name, created, modified** (optional)
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')
count = False # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to False) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to False)
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)

try:
# List machine identities

results = MachineIdentitiesApi(api_client).list_machine_identities_v1()
# Below is a request that includes all optional parameters
# results = MachineIdentitiesApi(api_client).list_machine_identities_v1(filters, sorters, x_sail_point_experimental, count, limit, offset)
print("The response of MachineIdentitiesApi->list_machine_identities_v1:\n")
for item in results:
print(item.model_dump_json(by_alias=True, indent=4))
except Exception as e:
print("Exception when calling MachineIdentitiesApi->list_machine_identities_v1: %s\n" % e)

[Back to top]

list-machine-identity-user-entitlements-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

List machine identity's user entitlements This API returns a list of user entitlements associated with machine identities.

API Spec

Parameters

Param TypeNameData TypeRequiredDescription
Queryfiltersstr(optional)Filter results using the standard syntax described in V3 API Standard Collection Parameters Filtering is supported for the following fields and operators: machineIdentityId: eq, in machineIdentityName: eq, in, sw entitlement.id: eq, in entitlement.name: eq, in, sw source.id: eq, in source.name: eq, in, sw
Querysortersstr(optional)Sort results using the standard syntax described in V3 API Standard Collection Parameters Sorting is supported for the following fields: machineIdentityName, entitlement.name, source.name
x_sail_point_experimentalstr(optional) (default to 'true')Use this header to enable this experimental API.
Querycountbool(optional) (default to False)If true it will populate the X-Total-Count response header with the number of results that would be returned if limit and offset were ignored. Since requesting a total count can have a performance impact, it is recommended not to send count=true if that value will not be used. See V3 API Standard Collection Parameters for more information.
Querylimitint(optional) (default to 250)Max number of results to return. See V3 API Standard Collection Parameters for more information.
Queryoffsetint(optional) (default to 0)Offset into the full result set. Usually specified with limit to paginate through the results. See V3 API Standard Collection Parameters for more information.

Return type

List[Machineidentityuserentitlementresponse]

Responses

CodeDescriptionData TypeResponse headers
200List of machine identity user entitlements.List[Machineidentityuserentitlementresponse]-
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.ListMachineIdentitiesV1401Response-
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.ListMachineIdentitiesV1429Response-
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_identities.api.machine_identities_api import MachineIdentitiesApi
from sailpoint.machine_identities.api_client import ApiClient
from sailpoint.machine_identities.models.machineidentityuserentitlementresponse import Machineidentityuserentitlementresponse
from sailpoint.configuration import Configuration
configuration = Configuration()

configuration.experimental = True

with ApiClient(configuration) as api_client:
filters = 'machineIdentityId eq \"2c9180858082150f0180893dbaf44201\"' # str | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **machineIdentityId**: *eq, in* **machineIdentityName**: *eq, in, sw* **entitlement.id**: *eq, in* **entitlement.name**: *eq, in, sw* **source.id**: *eq, in* **source.name**: *eq, in, sw* (optional) # str | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **machineIdentityId**: *eq, in* **machineIdentityName**: *eq, in, sw* **entitlement.id**: *eq, in* **entitlement.name**: *eq, in, sw* **source.id**: *eq, in* **source.name**: *eq, in, sw* (optional)
sorters = 'machineIdentityName' # str | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **machineIdentityName, entitlement.name, source.name** (optional) # str | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **machineIdentityName, entitlement.name, source.name** (optional)
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')
count = False # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to False) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to False)
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)

try:
# List machine identity's user entitlements

results = MachineIdentitiesApi(api_client).list_machine_identity_user_entitlements_v1()
# Below is a request that includes all optional parameters
# results = MachineIdentitiesApi(api_client).list_machine_identity_user_entitlements_v1(filters, sorters, x_sail_point_experimental, count, limit, offset)
print("The response of MachineIdentitiesApi->list_machine_identity_user_entitlements_v1:\n")
for item in results:
print(item.model_dump_json(by_alias=True, indent=4))
except Exception as e:
print("Exception when calling MachineIdentitiesApi->list_machine_identity_user_entitlements_v1: %s\n" % e)

[Back to top]

start-machine-identity-aggregation-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

Start machine identity aggregation Starts a machine identity (AI Agents) aggregation on the specified source.

API Spec

Parameters

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

Return type

Machineidentityaggregationresponse

Responses

CodeDescriptionData TypeResponse headers
200Machine Identity Aggregation was started successfully.Machineidentityaggregationresponse-
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.ListMachineIdentitiesV1401Response-
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.ListMachineIdentitiesV1429Response-
500Internal Server Error - Returned if there is an unexpected error.Errorresponsedto-

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

Example

from sailpoint.machine_identities.api.machine_identities_api import MachineIdentitiesApi
from sailpoint.machine_identities.api_client import ApiClient
from sailpoint.machine_identities.models.machineidentityaggregationrequest import Machineidentityaggregationrequest
from sailpoint.machine_identities.models.machineidentityaggregationresponse import Machineidentityaggregationresponse
from sailpoint.configuration import Configuration
configuration = Configuration()

configuration.experimental = True

with ApiClient(configuration) as api_client:
source_id = 'ef38f94347e94562b5bb8424a56397d8' # str | Source ID. # str | Source ID.
machineidentityaggregationrequest = '''sailpoint.machine_identities.Machineidentityaggregationrequest()''' # Machineidentityaggregationrequest |
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:
# Start machine identity aggregation
new_machineidentityaggregationrequest = Machineidentityaggregationrequest.from_json(machineidentityaggregationrequest)
results = MachineIdentitiesApi(api_client).start_machine_identity_aggregation_v1(source_id=source_id, machineidentityaggregationrequest=new_machineidentityaggregationrequest)
# Below is a request that includes all optional parameters
# results = MachineIdentitiesApi(api_client).start_machine_identity_aggregation_v1(source_id, new_machineidentityaggregationrequest, x_sail_point_experimental)
print("The response of MachineIdentitiesApi->start_machine_identity_aggregation_v1:\n")
print(results.model_dump_json(by_alias=True, indent=4))
except Exception as e:
print("Exception when calling MachineIdentitiesApi->start_machine_identity_aggregation_v1: %s\n" % e)

[Back to top]

update-machine-identity-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

Update machine identity details Use this API to update machine identity details.

API Spec

Parameters

Param TypeNameData TypeRequiredDescription
PathidstrTrueMachine Identity ID.
Bodyrequest_body[]objectTrueA JSON of updated values JSON Patch standard.
x_sail_point_experimentalstr(optional) (default to 'true')Use this header to enable this experimental API.

Return type

Machineidentityresponse

Responses

CodeDescriptionData TypeResponse headers
200Updated Machine Identity object.Machineidentityresponse-
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.ListMachineIdentitiesV1401Response-
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.ListMachineIdentitiesV1429Response-
500Internal Server Error - Returned if there is an unexpected error.Errorresponsedto-

HTTP request headers

  • Content-Type: application/json-patch+json
  • Accept: application/json

Example

from sailpoint.machine_identities.api.machine_identities_api import MachineIdentitiesApi
from sailpoint.machine_identities.api_client import ApiClient
from sailpoint.machine_identities.models.machineidentityresponse import Machineidentityresponse
from sailpoint.configuration import Configuration
configuration = Configuration()

configuration.experimental = True

with ApiClient(configuration) as api_client:
id = 'ef38f94347e94562b5bb8424a56397d8' # str | Machine Identity ID. # str | Machine Identity ID.
request_body = '''[{"op":"add","path":"/attributes/securityRisk","value":"medium"}]''' # List[object] | A JSON of updated values [JSON Patch](https://tools.ietf.org/html/rfc6902) standard.
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:
# Update machine identity details
new_request_body = RequestBody.from_json(request_body)
results = MachineIdentitiesApi(api_client).update_machine_identity_v1(id=id, request_body=new_request_body)
# Below is a request that includes all optional parameters
# results = MachineIdentitiesApi(api_client).update_machine_identity_v1(id, new_request_body, x_sail_point_experimental)
print("The response of MachineIdentitiesApi->update_machine_identity_v1:\n")
print(results.model_dump_json(by_alias=True, indent=4))
except Exception as e:
print("Exception when calling MachineIdentitiesApi->update_machine_identity_v1: %s\n" % e)

[Back to top]