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": "workflows", "_id": "7093f0dc1ce54e3c8350660c", "gbac": { "write": [ { "provenance": "ldap", "name": "admins", "description": "Description of a group" } ], "read": [ { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" } ] }, "componentName": null, "createdBy": null, "created": "1990-12-13T18:58:28.505Z", "lastUpdatedBy": "aliqua aute in non mollit", "lastUpdated": "1987-04-01T20:08:53.968Z", "triggers": [ { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "9cf7393963a40a19459217f1", "verb": "POST", "routeName": "pJiLp", "_id": "d3e8c80bc0e6d74bea526b08", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -12739308, "createdBy": null, "created": "1967-03-13T16:05:01.148Z", "lastUpdatedBy": "voluptate adipisicing commodo", "lastUpdated": "1974-04-17T22:48:03.109Z" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "1f7e4e95b7cad07e20f8a7e6", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "1f3d6f1ec64ff868e050fd58", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": 82864145, "migrationVersion": -40790226, "createdBy": null, "created": "1954-03-28T00:21:20.34Z", "lastUpdatedBy": null, "lastUpdated": "1959-09-21T20:07:21.391Z", "formSchemaHash": null } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "_id": "d5ae7a4af4390c080989cfc3", "gbac": { "write": [ { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" }, { "provenance": "localAAA", "name": "operators", "description": "Description of a group" } ], "read": [ { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "operators", "description": "Description of a group" } ] }, "componentName": "Ut aute consectetur consequat", "createdBy": "sed", "created": "1956-08-17T10:22:41.593Z", "lastUpdatedBy": null, "lastUpdated": "1968-06-02T05:45:03.349Z", "triggers": [ { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "d130e43979c728277a9c60fc", "source": "occaecat", "topic": "consequat ipsum qui", "schema": null, "_id": "55f522da1850d88fc806ff3f", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 52629021, "migrationVersion": -69394970, "createdBy": null, "created": "1954-12-19T00:24:49.83Z", "lastUpdatedBy": "minim et consectetur id", "lastUpdated": "1955-05-19T10:34:06.995Z" }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "0c69a6d3f525b190b61258cc", "verb": "POST", "routeName": "-cs1O8NM", "_id": "383606972333b4823ab88a33", "description": "Some helpful information about the document", "lastExecuted": 83099165, "migrationVersion": 73617209, "createdBy": null, "created": "1951-08-16T16:35:25.62Z", "lastUpdatedBy": "nostrud", "lastUpdated": "1961-08-25T13:41:15.525Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "_id": "46a393072bb64e4bffa668db", "gbac": { "write": [ { "provenance": "ldap", "name": "admins", "description": "Description of a group" } ], "read": [ { "provenance": "ldap", "name": "designers", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "name": "operators", "description": "Description of a group" } ] }, "componentName": null, "createdBy": null, "created": "2014-11-02T22:45:03.708Z", "lastUpdatedBy": "nisi irure commodo adipisicing anim", "lastUpdated": "2021-11-27T11:56:59.559Z", "triggers": [ { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "85180f8ba28b4a939a558306", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "30c1be889336ed186bec948a", "formId": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 65186418, "createdBy": null, "created": "1957-02-09T09:43:41.286Z", "lastUpdatedBy": "sunt non minim", "lastUpdated": "1996-04-20T09:38:32.297Z", "formSchemaHash": "consequat ad" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "_id": "d193fd5f3094122c37dc2fb4", "gbac": { "write": [ { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" } ], "read": [ { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" } ] }, "componentName": null, "createdBy": null, "created": "2024-03-11T19:30:15.673Z", "lastUpdatedBy": null, "lastUpdated": "1988-06-26T21:13:13.77Z", "triggers": [ { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "094b4cc0904e6fa0ebc907d3", "verb": "POST", "routeName": "x", "_id": "a856ac7b224ff3cc0c446176", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 47520378, "migrationVersion": -68890480, "createdBy": null, "created": "1951-03-27T19:33:05.536Z", "lastUpdatedBy": "nulla ut", "lastUpdated": "2005-04-01T10:07:01.565Z" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "3ec546b748ff18f8ae424d73", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "9e76164d8c5ebcff0a4aec92", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -19276082, "createdBy": "ullamco eu enim sit", "created": "1968-02-10T18:10:36.576Z", "lastUpdatedBy": "pariatur eu", "lastUpdated": "1991-11-10T11:46:04.921Z", "formSchemaHash": "Ut" }, { "name": -99558378.97483462, "type": -4094077, "enabled": 50595286, "actionType": 81856054.47634733, "actionId": 85971189, "formData": 42960255.41138807, "firstRunAt": true, "processMissedRuns": 55126748.63513002, "repeatUnit": -12996974, "repeatFrequency": true, "repeatInterval": "esse elit", "_id": "commodo Excepteur reprehenderit", "formId": -51561368.081404746 }, { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "6de970471587c90848d8646e", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "c8d019732c329cb4a590188a", "formId": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 96710258, "createdBy": "in mollit culpa magna", "created": "2012-01-30T10:58:00.014Z", "lastUpdatedBy": "commodo cillum adipisicing aute", "lastUpdated": "1958-12-20T12:12:43.342Z", "formSchemaHash": null }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "108352c181ba9a2dc3a07a0a", "source": "deserunt", "topic": "ad nisi", "_id": "58660744aaaabfc404a99098", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 37580532, "migrationVersion": -21660074, "createdBy": null, "created": "1969-08-12T22:09:18.87Z", "lastUpdatedBy": null, "lastUpdated": "1962-03-05T22:11:50.54Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "_id": "ec958e9e82eac456ba684725", "gbac": { "write": [ { "provenance": "ldap", "name": "designers", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "localAAA", "name": "designers", "description": "Description of a group" } ], "read": [ { "provenance": "localAAA", "name": "operators", "description": "Description of a group" } ] }, "componentName": null, "createdBy": null, "created": "2010-09-19T06:02:22.813Z", "lastUpdatedBy": "anim cupidatat", "lastUpdated": "1995-03-24T04:05:51.308Z", "triggers": [ { "name": "culpa commodo qui deserunt", "type": true, "enabled": -20390621, "actionType": 94715935, "actionId": true, "formData": "labore magna fugiat", "firstRunAt": "enim sint id", "processMissedRuns": false, "repeatUnit": 94332409.82360002, "repeatFrequency": -72696268, "repeatInterval": 98201502, "_id": "exercitation tempor", "formId": -82878116 } ] } ], "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 created the requested item", "data": [ { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "createdBy": "Pronghorn", "created": "1955-06-23T19:19:09.502Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1948-05-30T19:27:53.538Z", "_id": "dfe5a5a74b99714a89c00aa1", "gbac": { "write": [ "dd98e18feab293924c42d7e2", "5e4b61b4572c0a46c8dd1432" ], "read": [ "0186021aec04c5d5b7c59973", "fad285de2e99d6981949e975", "8f1202cbcd131f66fd7f387d", "94c4b6a28b2e47f7a2526608" ] }, "componentId": "c24aa0b07e60e1d991235cee" } } ] }
{ "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" } } } ] } } } } } } ] }