Note
Groups and projects are synonymous terms. Your {PROJECT-ID} is the
same as your project id. For existing groups, your group/project id
remains the same. This page uses the more familiar term group when
referring to descriptions. The endpoint remains as stated in the
document.
Retrieve the status of a specific import deployment request. This endpoint provides detailed information about the current state and history of a single import deployment request.
Important
This feature is available starting in Ops Manager 8.0.13.
Required Roles
This endpoint requires the Project Automation Admin role.
Endpoint
Base URL: https://{OPSMANAGER-HOST}:{PORT}/api/public/v1.0
GET /automation/importDeployment/{PROJECT-ID}/{IMPORT-PROCESS-ID}
Request
Path Parameters
Name | Type | Necessity | Description |
|---|---|---|---|
PROJECT-ID | string | Required | Unique identifier of the project. |
IMPORT-PROCESS-ID | string | Required | Unique identifier of the import deployment request. |
Query Parameters
The following query parameters are optional:
Name | Type | Necessity | Description | Default | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
pretty | boolean | Optional | Flag indicating whether the response body should be in a prettyprint format. |
| ||||||
envelope | boolean | Optional | Flag that indicates whether or not to wrap the response in an envelope. Some API clients cannot access the HTTP response headers or status code. To remediate this, set envelope=true in the query. For endpoints that return one result, the response body includes:
|
|
Body Parameters
This endpoint doesn't use HTTP request body parameters.
Response
Name | Type | Necessity | Description |
|---|---|---|---|
id | string | Always | Unique identifier of the import deployment request. |
groupId | string | Always | Project identifier. |
userId | string | Always | User who created the import request. |
state | string | Always | Current state of the import. Possible values:
|
transitionsHistory | array | Always | History of state transitions for this import request. |
transitionsHistory[n].state | string | Always | The state that was transitioned to. |
transitionsHistory[n].transitionedAt | string | Always | ISO 8601 timestamp when the transition occurred. |
Example Request
curl --user "{PUBLIC-KEY}:{PRIVATE-KEY}" --digest \ --request GET "https://<OpsManagerHost>:<Port>/api/public/v1.0/automation/importDeployment/{PROJECT-ID}/{IMPORT-PROCESS-ID}?pretty=true"
Example Response
Response Header
401 Unauthorized Content-Type: application/json;charset=ISO-8859-1 Date: {dateInUnixFormat} WWW-Authenticate: Digest realm="MMS Public API", domain="", nonce="{nonce}", algorithm=MD5, op="auth", stale=false Content-Length: {requestLengthInBytes} Connection: keep-alive
200 OK Vary: Accept-Encoding Content-Type: application/json Strict-Transport-Security: max-age=300 Date: {dateInUnixFormat} Connection: keep-alive Content-Length: {requestLengthInBytes} X-MongoDB-Service-Version: gitHash={gitHash}; versionString={ApplicationVersion}
Response Body
{ "id": "507f1f77bcf86cd799439011", "groupId": "507f1f77bcf86cd799439012", "userId": "507f1f77bcf86cd799439013", "state": "AWAIT_GOAL_STATE", "transitionsHistory": [ { "state": "PENDING", "transitionedAt": "2025-10-20T10:00:00.000Z" }, { "state": "AWAIT_SEED_HOST_CONNECTED", "transitionedAt": "2025-10-20T10:02:00.000Z" }, { "state": "AWAIT_HOSTS_DISCOVERED", "transitionedAt": "2025-10-20T10:05:00.000Z" }, { "state": "AWAIT_AUTOMATION_IMPORTED", "transitionedAt": "2025-10-20T10:08:00.000Z" }, { "state": "AWAIT_GOAL_STATE", "transitionedAt": "2025-10-20T10:12:00.000Z" } ] }