Machine account creation request (v2)
POST/account-requests/v2/machine-account-create
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.
Initiates a machine account creation request. The same body and process are used by POST /machine-accounts/v2/machine-account-create.
sourceId is required while tiered subtype configuration is enabled, and subtypeId must then be in that source's effective set. When that flag is off, sourceId is ignored and the source is the subtype's own source. entitlements is honored while per-entitlement request details are enabled; entitlementIds is honored while that flag is off. A non-empty list of the other kind returns 400. At most 20 unique entitlement ids are allowed.
The call returns 202 with accountRequestId. Poll GET /account-requests/v1/machine-account-create/{accountRequestId} for status. There is no v2 status route.
Missing subtypeId or ownerIdentityId, or a missing sourceId while tiered subtype configuration is enabled, returns 400. An unknown owner, source, or subtype returns 404. A subtype that is not in the source effective set returns 400. The endpoint returns 404 when both tiered subtype configuration and per-entitlement request details are disabled.
The caller must be authenticated with the sp:scopes:default scope. The create machine account entitlement for the subtype is checked when the request is processed. Without that entitlement the API returns 403.
Request
Responses
- 202
- 400
- 401
- 403
- 404
- 429
- 500
Machine account creation request accepted.
Client Error - Returned if the request body is invalid.
Unauthorized - Returned if there is no authorization header, or if the JWT token is expired.
Forbidden - Returned if the user you are running as, doesn't have access to this end-point.
Not Found - returned if the request URL refers to a resource or object that does not exist
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.
Internal Server Error - Returned if there is an unexpected error.