Summary
Import Automations
Description
Import Automations.
Route
PUT /operations-manager/automations
Roles
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| automations | array | yes | An array of exported Automation documents. |
| options | object | yes | Optional parameters. |
{ "automations": [ { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "_id": "272f628b1949b6a929a40357", "gbac": { "write": [ { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" } ], "read": [ { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" }, { "provenance": "localAAA", "name": "designers", "description": "Description of a group" } ] }, "componentName": "sed voluptate adipisicing", "createdBy": null, "created": "2017-07-02T02:25:35.991Z", "lastUpdatedBy": "sint proident esse", "lastUpdated": "1968-01-27T16:46:03.072Z", "triggers": [ { "name": false, "type": "mollit sunt fugiat in officia", "enabled": -98791287, "actionType": "pariatur ullamco quis", "actionId": "elit occaecat Lorem laborum deserunt", "formData": true, "firstRunAt": -15004512, "processMissedRuns": 20603862.799090862, "repeatUnit": -79836294, "repeatFrequency": 20372005.170956478, "repeatInterval": "id dolore", "_id": "consequat reprehenderit sint", "formId": -7115226.328327924 }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "4ad89bb0414670b12bcadc08", "source": "consectetur deserunt in nisi", "topic": "sunt non pariatur in irure", "schema": null, "_id": "8fd1ba4adc3e122560f108e7", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -61988739, "legacyWrapper": true, "createdBy": "voluptate veniam est", "created": "1957-08-04T22:51:43.869Z", "lastUpdatedBy": null, "lastUpdated": "2024-09-18T07:27:23.555Z" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "b9a24da4c8464313aaadcf0d", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "88e97e62f8fe6200f1fd2f3e", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": 33174825, "migrationVersion": -66856402, "createdBy": null, "created": "1954-05-18T08:21:39.527Z", "lastUpdatedBy": null, "lastUpdated": "1954-06-07T02:53:31.314Z", "formSchemaHash": null, "legacyWrapper": true }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "2b07b756dae5d44b5d3f3cd8", "verb": "POST", "routeName": "6Nj0vXAZKE", "schema": null, "_id": "89e003f36423b0c8258f8a1a", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 49562021, "migrationVersion": -35000464, "createdBy": "in consequat", "created": "1956-04-14T17:12:57.049Z", "lastUpdatedBy": null, "lastUpdated": "1947-10-11T15:32:39.45Z" }, { "name": 34806511.5380522, "type": -74348783.79517134, "enabled": true, "actionType": false, "actionId": -6509894.740241423, "formData": false, "firstRunAt": false, "processMissedRuns": true, "repeatUnit": "sit non dolor sint commodo", "repeatFrequency": -46702640.04717231, "repeatInterval": false, "_id": 46388724, "formId": -65090753.66622574 } ] } ], "options": { "adapterMap": { "staging": "production" } } }
{ "type": "object", "properties": { "automations": { "title": "automations", "type": "array", "items": { "$ref": "automation-json" } }, "options": { "title": "options", "type": "object", "properties": { "adapterMap": { "type": "object", "description": "A mapping of provenance names to be converted upon import, specified in \"old_name\": \"new_name\" format.", "examples": [ { "staging": "production" }, { "old_name": "new_name" } ] } }, "additionalProperties": false } }, "required": [ "automations", "options" ], "additionalProperties": false }
Return
| Name | Type | Description |
|---|---|---|
| status | object | The result of the import operation. |
{ "message": "Successfully retrieved search results", "data": [ { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "createdBy": "6c3a9b0ee1929cec8844b949", "created": "1998-08-20T11:03:39.431Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "2017-10-26T02:23:58.714Z", "_id": "5066695e9fdf0f3b83f64e9b", "gbac": { "write": [ "3fa83df2cdc1a6360f495fc1", "446da4de2c3989791ed96e3b", "148ea299c2250f551cf8f0f6", "ef394735886268b2e93368f4", "1f47ca5f9a8095cb9bc6b5ee" ], "read": [ "f3d0b390b9b065a57e9760e3" ] }, "componentId": null } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "createdBy": "1ac04f203249fdb025ebfc37", "created": "2011-08-30T10:54:43.937Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1946-02-08T10:45:35.237Z", "_id": "bd8fc90d203202f8ca7a816f", "gbac": { "write": [ "8f002d5455476d655ddd86b8", "9f545b99ed47959837d05505", "78464010f44ed5fcc335643c" ], "read": [ "f071f067638d45a26786d74e", "bf7e86e2f8bef3444c6ad3f4", "9161658140db637975264e8a" ] }, "componentId": "" } } ] }
{ "title": "status", "allOf": [ { "$ref": "common-api#/definitions/success-response" }, { "type": "object", "properties": { "data": { "type": "array", "items": { "type": "object", "properties": { "success": { "type": "boolean" }, "data": { "allOf": [ { "$ref": "automation-common#/definitions/commonFields" }, { "$ref": "common#/definitions/metadataFields" }, { "type": "object", "properties": { "_id": { "$ref": "common#/definitions/ObjectIdLikeString" }, "gbac": { "$ref": "automation-common#/definitions/gbac" }, "componentId": { "$ref": "automation-common#/definitions/componentId" } } } ] } } } } } } ] }