MachineIdentityLifecycleActionsService
Use this API to implement machine identity lifecycle action functionality. With this functionality in place, administrators and machine identity owners can activate or deactivate machine identities, track the approval and provisioning status of each request, and cancel requests before provisioning starts.
A lifecycle action is a request to change whether a machine identity is active. For example, an administrator may deactivate an agent while a security review is in progress, and then activate it again once the review is complete.
Lifecycle actions are currently supported only for machine identities of type Agent.
Every method returns an Observable. All request paths are relative to the baseUrl you pass to provideSailPoint().
| Method | HTTP request | Description |
|---|---|---|
| cancel-machine-identity-lifecycle-action-v1 | POST /machine-identities/v1/lifecycle-actions/{requestId}/cancel | Cancel machine identity lifecycle action |
| get-machine-identity-lifecycle-action-v1 | GET /machine-identities/v1/lifecycle-actions/{requestId} | Get machine identity lifecycle action |
| list-machine-identity-lifecycle-actions-v1 | GET /machine-identities/v1/lifecycle-actions | List machine identity lifecycle actions |
| submit-machine-identity-lifecycle-action-v1 | POST /machine-identities/v1/{id}/lifecycle-actions | Submit machine identity lifecycle action |
cancel-machine-identity-lifecycle-action-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.
Cancel machine identity lifecycle action
Cancels a lifecycle action request that hasn't started provisioning yet. When the cancel is
accepted, the request moves to CANCELING status.
A request can't be canceled once provisioning has started, after it has finished, or while a cancel is already in progress.
The request body is optional. Use it to add a comment explaining why the request was canceled.
You can always cancel requests that you submitted. To cancel a request that someone else submitted,
you need the idn:machine-identity:lifecycle-action right and admin or owner access to the
machine identity. Admin or owner access means you're an org admin, a source admin, a source sub-admin
for the machine identity's source, or the machine identity's owner.
If the cancel can't be completed, the API returns an error and the request stays in CANCELING
status.
Parameters
The service takes one object that holds every parameter. Its type is CancelMachineIdentityLifecycleActionV1RequestParams.
| Name | Type | Description | Notes |
|---|---|---|---|
| requestId | string | Lifecycle request identifier. | [default to undefined] |
| xSailPointExperimental | string | Use this header to enable this experimental API. | [optional] [default to 'true'] |
| cancelLifecycleActionRequest | CancelLifecycleActionRequest | [optional] |
Return type
Observable<CancelLifecycleActionResponse>
HTTP request headers
- Content-Type: application/json
- Accept: application/json
Example
import { Component, inject } from '@angular/core';
import { MachineIdentityLifecycleActionsService } from '@sailpoint/angular-sdk/machine_identities_lifecycle_actions';
import { CancelLifecycleActionRequest } from '@sailpoint/angular-sdk/machine_identities_lifecycle_actions';
@Component({ selector: 'app-example', template: '' })
export class ExampleComponent {
private readonly api = inject(MachineIdentityLifecycleActionsService);
cancelMachineIdentityLifecycleActionV1(): void {
const requestId: string = ; // Lifecycle request identifier.
const xSailPointExperimental: string = ; // Use this header to enable this experimental API. (optional)
const cancelLifecycleActionRequest: CancelLifecycleActionRequest = ; // (optional)
this.api.cancelMachineIdentityLifecycleActionV1({ requestId: requestId }).subscribe({
next: (result) => console.log(result),
error: (error) => console.error(error),
});
}
}
get-machine-identity-lifecycle-action-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.
Get machine identity lifecycle action Returns a single lifecycle action request, including its current status, approval details, and provisioning progress. Use it to follow a request after you submit or cancel it.
You can always view requests that you submitted. To view a request that someone else submitted, you
need the idn:machine-identity:lifecycle-action right and admin or owner access to the machine
identity. Admin or owner access means you're an org admin, a source admin, a source sub-admin for the
machine identity's source, or the machine identity's owner.
Parameters
The service takes one object that holds every parameter. Its type is GetMachineIdentityLifecycleActionV1RequestParams.
| Name | Type | Description | Notes |
|---|---|---|---|
| requestId | string | Lifecycle request identifier. | [default to undefined] |
| xSailPointExperimental | string | Use this header to enable this experimental API. | [optional] [default to 'true'] |
Return type
Observable<LifecycleActionRequest>
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
Example
import { Component, inject } from '@angular/core';
import { MachineIdentityLifecycleActionsService } from '@sailpoint/angular-sdk/machine_identities_lifecycle_actions';
@Component({ selector: 'app-example', template: '' })
export class ExampleComponent {
private readonly api = inject(MachineIdentityLifecycleActionsService);
getMachineIdentityLifecycleActionV1(): void {
const requestId: string = ; // Lifecycle request identifier.
const xSailPointExperimental: string = ; // Use this header to enable this experimental API. (optional)
this.api.getMachineIdentityLifecycleActionV1({ requestId: requestId }).subscribe({
next: (result) => console.log(result),
error: (error) => console.error(error),
});
}
}
list-machine-identity-lifecycle-actions-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.
List machine identity lifecycle actions Returns the lifecycle action requests that you submitted. Requests that other users submitted aren't included, even if you're an admin. If the call isn't made on behalf of an identity, the list is empty.
When limit is omitted, up to 50 results are returned.
Parameters
The service takes one object that holds every parameter. Its type is ListMachineIdentityLifecycleActionsV1RequestParams.
| Name | Type | Description | Notes |
|---|---|---|---|
| filters | string | Filter results using the standard syntax described in API Standard Collection Parameters Filtering is supported for the following fields and operators: resourceType: eq, in operationType: eq, in status: eq, in completed: eq targetId: eq targetName: eq, sw sourceId: eq created: gt, ge, lt, le The `resourceType` filter matches the `targetType` field in the response. | [optional] [default to undefined] |
| sorters | string | Sort results using the standard syntax described in API Standard Collection Parameters Sorting is supported for the following fields: created, modified, status Default sort is -created (newest first). | [optional] [default to '-created'] |
| limit | number | Max number of results to return. When omitted, the default limit is 50. The maximum allowed limit is 250. See API Standard Collection Parameters for more information. | [optional] [default to 50] |
| offset | number | Offset into the full result set. Usually specified with limit to paginate through the results. See API Standard Collection Parameters for more information. | [optional] [default to 0] |
| count | boolean | 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 API Standard Collection Parameters for more information. | [optional] [default to false] |
| xSailPointExperimental | string | Use this header to enable this experimental API. | [optional] [default to 'true'] |
Return type
Observable<Array<LifecycleActionRequest>>
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
Example
import { Component, inject } from '@angular/core';
import { MachineIdentityLifecycleActionsService } from '@sailpoint/angular-sdk/machine_identities_lifecycle_actions';
@Component({ selector: 'app-example', template: '' })
export class ExampleComponent {
private readonly api = inject(MachineIdentityLifecycleActionsService);
listMachineIdentityLifecycleActionsV1(): void {
const filters: string = ; // Filter results using the standard syntax described in [API Standard Collection Parameters](https://developer.sailpoint.com/docs/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **resourceType**: *eq, in* **operationType**: *eq, in* **status**: *eq, in* **completed**: *eq* **targetId**: *eq* **targetName**: *eq, sw* **sourceId**: *eq* **created**: *gt, ge, lt, le* The `resourceType` filter matches the `targetType` field in the response. (optional)
const sorters: string = ; // Sort results using the standard syntax described in [API Standard Collection Parameters](https://developer.sailpoint.com/docs/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **created, modified, status** Default sort is **-created** (newest first). (optional)
const limit: number = ; // Max number of results to return. When omitted, the default limit is 50. The maximum allowed limit is 250. See [API Standard Collection Parameters](https://developer.sailpoint.com/docs/api/standard-collection-parameters) for more information. (optional)
const offset: number = ; // Offset into the full result set. Usually specified with *limit* to paginate through the results. See [API Standard Collection Parameters](https://developer.sailpoint.com/docs/api/standard-collection-parameters) for more information. (optional)
const count: boolean = ; // 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 [API Standard Collection Parameters](https://developer.sailpoint.com/docs/api/standard-collection-parameters) for more information. (optional)
const xSailPointExperimental: string = ; // Use this header to enable this experimental API. (optional)
this.api.listMachineIdentityLifecycleActionsV1({ }).subscribe({
next: (result) => console.log(result),
error: (error) => console.error(error),
});
}
}
submit-machine-identity-lifecycle-action-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.
Submit machine identity lifecycle action
Submits a request to activate or deactivate a machine identity. Supported actions are ACTIVATE
and DEACTIVATE.
Note: Lifecycle actions are currently supported only for machine identities of type Agent.
The response includes a requestId. Use it to
get the request or
cancel it.
To see all the requests you've submitted, use
list machine identity lifecycle actions.
Only one lifecycle action can be in progress for a machine identity at a time. If another action is already in progress for the machine identity, the request is rejected.
To submit a lifecycle action, you need the idn:machine-identity:lifecycle-action right, or admin or
owner access to the machine identity. Admin or owner access means you're an org admin, a source admin,
a source sub-admin for the machine identity's source, or the machine identity's owner.
Parameters
The service takes one object that holds every parameter. Its type is SubmitMachineIdentityLifecycleActionV1RequestParams.
| Name | Type | Description | Notes |
|---|---|---|---|
| id | string | Machine identity ID. | [default to undefined] |
| lifecycleActionSubmitRequest | LifecycleActionSubmitRequest | ||
| xSailPointExperimental | string | Use this header to enable this experimental API. | [optional] [default to 'true'] |
Return type
Observable<LifecycleActionSubmitResponse>
HTTP request headers
- Content-Type: application/json
- Accept: application/json
Example
import { Component, inject } from '@angular/core';
import { MachineIdentityLifecycleActionsService } from '@sailpoint/angular-sdk/machine_identities_lifecycle_actions';
import { LifecycleActionSubmitRequest } from '@sailpoint/angular-sdk/machine_identities_lifecycle_actions';
@Component({ selector: 'app-example', template: '' })
export class ExampleComponent {
private readonly api = inject(MachineIdentityLifecycleActionsService);
submitMachineIdentityLifecycleActionV1(): void {
const id: string = ; // Machine identity ID.
const lifecycleActionSubmitRequest: LifecycleActionSubmitRequest = ; //
const xSailPointExperimental: string = ; // Use this header to enable this experimental API. (optional)
this.api.submitMachineIdentityLifecycleActionV1({ id: id, lifecycleActionSubmitRequest: lifecycleActionSubmitRequest }).subscribe({
next: (result) => console.log(result),
error: (error) => console.error(error),
});
}
}