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": "d94b21004fd0d5ead2afb9ef", "gbac": { "write": [ { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "operators", "description": "Description of a group" } ], "read": [ { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" } ] }, "componentName": "eu exercitation", "createdBy": "eu occaecat adipisicing", "created": "2020-06-20T12:05:48.586Z", "lastUpdatedBy": "commodo enim ea in eu", "lastUpdated": "1977-03-13T19:18:48.392Z", "triggers": [ { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "63c6ecca9f0614bfbaf402d6", "source": "Ut tempor sit labore anim", "topic": "ut adipisicing", "schema": null, "_id": "a182cb1ede2a6dc09a8dd37c", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 23177627, "migrationVersion": -21568832, "legacyWrapper": true, "createdBy": "labore officia quis", "created": "1954-04-27T08:10:27.077Z", "lastUpdatedBy": "proident mollit", "lastUpdated": "1979-10-09T19:42:57.782Z" }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "8d5b4d6dfc742762608eaa25", "verb": "POST", "routeName": "xzmF9nqL", "_id": "7466cbdb347165c9749812b0", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 51705387, "createdBy": null, "created": "2015-02-24T21:58:47.227Z", "lastUpdatedBy": null, "lastUpdated": "1963-06-02T07:14:58.772Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "_id": "5d1be9c1153cd4cfc5ad991a", "gbac": { "write": [ { "provenance": "ldap", "name": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "name": "operators", "description": "Description of a group" } ], "read": [ { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" }, { "provenance": "ldap", "name": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" } ] }, "componentName": "commodo magna velit", "createdBy": null, "created": "1947-07-24T12:58:38.954Z", "lastUpdatedBy": "mollit incididunt laboris do", "lastUpdated": "1964-08-14T17:29:51.132Z", "triggers": [ { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "0a7157698564b1044b3fc66f", "verb": "POST", "routeName": "S", "schema": null, "_id": "ccff846ebd0efaeb46d950b8", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 23478838, "createdBy": "incididunt culpa sit", "created": "1952-05-03T23:42:57.442Z", "lastUpdatedBy": "et", "lastUpdated": "1997-12-24T17:40:56.314Z" }, { "name": true, "type": -92896780, "enabled": "esse ut non cupidatat reprehenderit", "actionType": 56143183, "actionId": -93393241.91729861, "formData": 65515866.021297455, "firstRunAt": true, "processMissedRuns": "amet anim elit esse", "repeatUnit": "est eiusmod sit sunt", "repeatFrequency": 31886790.48492968, "repeatInterval": 44250585, "_id": false, "formId": true }, { "name": 35687629, "type": false, "enabled": false, "actionType": -92874762.85549735, "actionId": "id magna velit nisi aute", "formData": 7200602, "firstRunAt": true, "processMissedRuns": false, "repeatUnit": -17628085.310215667, "repeatFrequency": 82602471, "repeatInterval": "adipisicing nisi esse veniam", "_id": -21907623.911750346, "formId": -95671895 }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "bbc1d80549f5b1471416a213", "verb": "POST", "routeName": "IpIXW_cyt3T", "schema": null, "_id": "1f97dce63a830ca6b75abc21", "description": "Some helpful information about the document", "lastExecuted": 35328913, "migrationVersion": 82039056, "createdBy": "pariatur", "created": "1961-01-16T09:15:28.396Z", "lastUpdatedBy": null, "lastUpdated": "1949-06-10T07:42:24.97Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "ucm_compliance_plans", "_id": "3c646feebcfc76745cfa8751", "gbac": { "write": [ { "provenance": "ldap", "name": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "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": "operators", "description": "Description of a group" } ] }, "componentName": "non", "createdBy": null, "created": "1979-10-22T12:29:23.675Z", "lastUpdatedBy": "aliqua dolore commodo Lorem pariatur", "lastUpdated": "1956-10-20T12:09:57.884Z", "triggers": [ { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "0dadc09f6644b87f2d2cafaf", "verb": "POST", "routeName": "wk-", "_id": "df5dee0cff1d65f0d1decd29", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -9551321, "createdBy": "aliquip ullamco quis nulla", "created": "2014-10-10T17:45:05.245Z", "lastUpdatedBy": null, "lastUpdated": "1965-04-25T21:23:16.85Z" }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "7f31e11647e6762b9fd15891", "verb": "POST", "routeName": "oB3", "schema": null, "_id": "7b1ca55d0fba0c6be1fccbf8", "description": "Some helpful information about the document", "lastExecuted": 87913091, "migrationVersion": -34494360, "createdBy": null, "created": "2008-03-27T17:45:57.378Z", "lastUpdatedBy": "est do", "lastUpdated": "2012-11-11T07:55:58.086Z" }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "f699416bfc9ba00ff97cb896", "verb": "POST", "routeName": "Hj0pi", "_id": "8b5201197525c953cd19d0f7", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 46280371, "migrationVersion": -57446578, "createdBy": "aliquip dolor aute proident sed", "created": "1982-06-16T13:21:14.464Z", "lastUpdatedBy": "sint labore", "lastUpdated": "1960-12-17T13:08:22.009Z" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "878b44d52a992b18b0d7af4a", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "1f4d7dca08a7135cdc7fb94b", "formId": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 53555019, "createdBy": "ut quis commodo labore", "created": "1957-11-23T02:26:43.397Z", "lastUpdatedBy": null, "lastUpdated": "1984-11-28T21:15:28.165Z", "formSchemaHash": "consequat aliquip dolor aute nostrud", "legacyWrapper": false }, { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "0f686ba8fc7473d96da01093", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "dce4cea475d3eb30b3ac52c0", "formId": null, "description": "Some helpful information about the document", "lastExecuted": 30596695, "migrationVersion": 39993424, "createdBy": "ea pariatur anim", "created": "1984-11-30T02:01:43.333Z", "lastUpdatedBy": "Lorem minim ex dolore", "lastUpdated": "2007-11-28T14:07:33.494Z", "formSchemaHash": null, "legacyWrapper": true } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "ucm_compliance_plans", "_id": "3a6d44b598e2066fdd102b17", "gbac": { "write": [ { "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" } ], "read": [ { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "localAAA", "name": "operators", "description": "Description of a group" } ] }, "componentName": null, "createdBy": "mollit", "created": "1962-08-08T05:05:03.366Z", "lastUpdatedBy": null, "lastUpdated": "1988-12-08T00:35:16.291Z", "triggers": [ { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "5392a6f0ad5b8f64f0af2328", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "d011aa1135ed009eadfa21fa", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -18440904, "createdBy": "commodo mollit nulla in", "created": "1988-03-04T06:13:02.227Z", "lastUpdatedBy": null, "lastUpdated": "1963-10-30T01:53:31.076Z", "formSchemaHash": "irure", "legacyWrapper": false }, { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "e191f9d4af5b1a7586863c0f", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "e64700d5a722e86ecd72fb78", "formId": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 94096100, "createdBy": null, "created": "1955-06-17T02:09:03.65Z", "lastUpdatedBy": "consectetur exercitation ex", "lastUpdated": "1970-08-25T04:44:04.437Z", "formSchemaHash": null, "legacyWrapper": true } ] } ], "options": { "adapterMap": { "old_name": "new_name" } } }
{ "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 imported 3 of 4 documents", "data": [ { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "ucm_compliance_plans", "createdBy": "Pronghorn", "created": "2018-01-06T16:20:26.691Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1962-12-14T01:29:34.252Z", "_id": "9c17a2b7a096afb1f50e05a1", "gbac": { "write": [ "be4467e451b810d2c2769f5c", "a9352c511432ff4cc22b0f7e", "0cd21c4a1bb62980f744834a", "2e644f1a23a73d9e9e57af87", "073c0517685cf950110f3a53" ], "read": [ "67a29b7aeeee860821562ddb" ] }, "componentId": "1Df7c49f-cD5d-15e2-6F4D-Ff1058aa9e87" } } ] }
{ "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" } } } ] } } } } } } ] }