Skip to main content

MachineAccountCreationRequestService

Use this API to submit and retrieve machine account creation requests.

Every method returns an Observable. All request paths are relative to the baseUrl you pass to provideSailPoint().

MethodHTTP requestDescription
create-machine-account-request-v1POST /account-requests/v1/machine-account-createSubmit Machine Account Creation Request
get-create-machine-account-request-v1GET /account-requests/v1/machine-account-create/{accountRequestId}Get Machine Account Creation Request
get-machine-account-create-access-info-v1GET /source-subtypes/v1/machine-account-create-accessMachine Account Create Access

create-machine-account-request-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.

Submit Machine Account Creation Request Initiates machine account creation request for the specified subtype. This method validates the input data, processes the machine account creation request, and generates an asynchronous result containing a tracking ID.

NOTE: You can only request a machine accounts on subtype for which you have a create machine account entitlement provisioned.

API Spec

Parameters

The service takes one object that holds every parameter. Its type is CreateMachineAccountRequestV1RequestParams.

NameTypeDescriptionNotes
machineAccountCreateRequestInputMachineAccountCreateRequestInput
xSailPointExperimentalstringUse this header to enable this experimental API.[optional] [default to 'true']

Return type

Observable<AccountRequestAsyncResult>

HTTP request headers

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

Example

import { Component, inject } from '@angular/core';
import { MachineAccountCreationRequestService } from '@sailpoint/angular-sdk/machine_account_creation_request';
import { MachineAccountCreateRequestInput } from '@sailpoint/angular-sdk/machine_account_creation_request';

@Component({ selector: 'app-example', template: '' })
export class ExampleComponent {
private readonly api = inject(MachineAccountCreationRequestService);

createMachineAccountRequestV1(): void {
const machineAccountCreateRequestInput: MachineAccountCreateRequestInput = ; //
const xSailPointExperimental: string = ; // Use this header to enable this experimental API. (optional)
this.api.createMachineAccountRequestV1({ machineAccountCreateRequestInput: machineAccountCreateRequestInput }).subscribe({
next: (result) => console.log(result),
error: (error) => console.error(error),
});
}
}

[Back to top]

get-create-machine-account-request-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.

Get Machine Account Creation Request Retrieves a account request details for machine account creation. This allows the user to view all details for given account request.

API Spec

Parameters

The service takes one object that holds every parameter. Its type is GetCreateMachineAccountRequestV1RequestParams.

NameTypeDescriptionNotes
xSailPointExperimentalstringUse this header to enable this experimental API.[default to 'true']
accountRequestIdstringAccount Request ID[default to undefined]

Return type

Observable<AccountRequestDetailsDto>

HTTP request headers

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

Example

import { Component, inject } from '@angular/core';
import { MachineAccountCreationRequestService } from '@sailpoint/angular-sdk/machine_account_creation_request';

@Component({ selector: 'app-example', template: '' })
export class ExampleComponent {
private readonly api = inject(MachineAccountCreationRequestService);

getCreateMachineAccountRequestV1(): void {
const xSailPointExperimental: string = ; // Use this header to enable this experimental API.
const accountRequestId: string = ; // Account Request ID
this.api.getCreateMachineAccountRequestV1({ xSailPointExperimental: xSailPointExperimental, accountRequestId: accountRequestId }).subscribe({
next: (result) => console.log(result),
error: (error) => console.error(error),
});
}
}

[Back to top]

get-machine-account-create-access-info-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.

Machine Account Create Access This endpoint retrieves the list of sources and subtypes for which logged in user has the entitlement to create a machine account. The response includes a list of object detailing the source, subtype and entitlement details which enables the clients to understand if they can submit the request to create a machine account for the given subtype.

API Spec

Parameters

The service takes one object that holds every parameter. Its type is GetMachineAccountCreateAccessInfoV1RequestParams.

NameTypeDescriptionNotes
xSailPointExperimentalstringUse this header to enable this experimental API.[default to 'true']
offsetnumberOffset Integer specifying the offset of the first result from the beginning of the collection. The standard syntax described in V3 API Standard Collection Parameters. The offset value is record-based, not page-based, and the index starts at 0.[optional] [default to 0]
limitnumberLimit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in V3 API Standard Collection Parameters. If it is not specified, a default limit is used.[optional] [default to 250]

Return type

Observable<Array<MachineAccountCreateAccessDto>>

HTTP request headers

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

Example

import { Component, inject } from '@angular/core';
import { MachineAccountCreationRequestService } from '@sailpoint/angular-sdk/machine_account_creation_request';

@Component({ selector: 'app-example', template: '' })
export class ExampleComponent {
private readonly api = inject(MachineAccountCreationRequestService);

getMachineAccountCreateAccessInfoV1(): void {
const xSailPointExperimental: string = ; // Use this header to enable this experimental API.
const offset: number = ; // Offset Integer specifying the offset of the first result from the beginning of the collection. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). The offset value is record-based, not page-based, and the index starts at 0. (optional)
const limit: number = ; // Limit Integer specifying the maximum number of records to return in a single API call. The standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#paginating-results). If it is not specified, a default limit is used. (optional)
this.api.getMachineAccountCreateAccessInfoV1({ xSailPointExperimental: xSailPointExperimental }).subscribe({
next: (result) => console.log(result),
error: (error) => console.error(error),
});
}
}

[Back to top]