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": "ucm_compliance_plans", "_id": "ed8fc2e6a3521cd35bfe39e5", "gbac": { "write": [ { "provenance": "localAAA", "name": "admins", "description": "Description of a group" } ], "read": [ { "provenance": "ldap", "name": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "name": "operators", "description": "Description of a group" } ] }, "componentName": null, "createdBy": null, "created": "2011-06-22T09:10:23.426Z", "lastUpdatedBy": null, "lastUpdated": "1962-05-22T21:30:48.446Z", "triggers": [ { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "76718b04f2d2e0e13a53f56e", "source": "id ea veniam in", "topic": "aute laborum aliqua Ut", "_id": "00963234a3d9c97359c854e2", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 46782455, "legacyWrapper": true, "createdBy": null, "created": "1985-03-08T09:33:43.905Z", "lastUpdatedBy": null, "lastUpdated": "2013-12-05T08:23:54.774Z" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "1186c3c5a5f5ca47878c08dc", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "af31431a439678977874a4c1", "formId": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 54496304, "createdBy": null, "created": "1971-09-02T19:54:46.19Z", "lastUpdatedBy": "sit id cupidatat adipisicing", "lastUpdated": "2011-10-03T20:38:06.801Z", "formSchemaHash": null, "legacyWrapper": false } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "_id": "d495e1384b9210ad60b27cc9", "gbac": { "write": [ { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" } ], "read": [ { "provenance": "ldap", "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": "localAAA", "name": "admins", "description": "Description of a group" } ] }, "componentName": null, "createdBy": null, "created": "2002-04-15T14:44:32.027Z", "lastUpdatedBy": "eu", "lastUpdated": "1969-04-20T20:41:11.191Z", "triggers": [ { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "aced6d632807366d2b158bc2", "source": "elit do sit ex", "topic": "dolore", "_id": "cfa33021e7659e2f47af6e71", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -10150553, "legacyWrapper": false, "createdBy": null, "created": "1972-07-11T18:05:49.192Z", "lastUpdatedBy": null, "lastUpdated": "1982-11-10T19:02:34.518Z" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "91a7e30f80b4f429efdbb4bf", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "424f6d21ab393e3b17470110", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -57207333, "createdBy": "ut", "created": "1970-10-29T07:27:10.057Z", "lastUpdatedBy": "occaecat sint Ut", "lastUpdated": "1976-04-28T17:49:42.396Z", "formSchemaHash": "nostrud eu cupidatat Duis exercitation", "legacyWrapper": true }, { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "ecb1398024b2d928bd651768", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "f384167433d3743d9c842bc8", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 55418495, "createdBy": "Ut nulla dolore in", "created": "2020-09-15T20:51:16.186Z", "lastUpdatedBy": null, "lastUpdated": "2022-09-13T18:55:26.615Z", "formSchemaHash": null, "legacyWrapper": false }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "42e3535806703a99d3be810c", "source": "ad pariatur qui", "topic": "proident Ut", "_id": "b938cb25366f045263ceadd1", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 19710112, "legacyWrapper": false, "createdBy": null, "created": "1989-05-30T21:11:18.706Z", "lastUpdatedBy": null, "lastUpdated": "1948-12-28T17:20:49.589Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "_id": "415a46aa2a158b496584008f", "gbac": { "write": [ { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "localAAA", "name": "designers", "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": "ldap", "name": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "localAAA", "name": "designers", "description": "Description of a group" } ] }, "componentName": "cillum sunt", "createdBy": null, "created": "2004-01-29T08:13:56.379Z", "lastUpdatedBy": null, "lastUpdated": "2021-04-23T03:18:58.606Z", "triggers": [ { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "200210662df57a1ea61e8162", "verb": "POST", "routeName": "4SJ", "schema": null, "_id": "8b8a348f279e47444c1a9905", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 13944602, "migrationVersion": 83111531, "createdBy": null, "created": "1950-10-24T23:21:51.107Z", "lastUpdatedBy": null, "lastUpdated": "1965-10-24T16:45:51.772Z" }, { "name": false, "type": "in", "enabled": 89691412.33082053, "actionType": true, "actionId": 90327569.31556752, "formData": "consequat", "firstRunAt": true, "processMissedRuns": 32018351.50941159, "repeatUnit": "nisi fugiat laborum non", "repeatFrequency": true, "repeatInterval": "ut ullamco", "_id": "nostrud", "formId": "enim fugiat adipisicing commodo" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "59d90e432def4d899eff35b4", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "3da0b85bf94f6793907aada9", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": 13792531, "migrationVersion": 49091959, "createdBy": "fugiat dolore proident non et", "created": "2007-10-15T18:09:41.366Z", "lastUpdatedBy": null, "lastUpdated": "1993-08-02T12:27:40.372Z", "formSchemaHash": null, "legacyWrapper": false } ] } ], "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 imported 3 of 4 documents", "data": [ { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "ucm_compliance_plans", "createdBy": "Pronghorn", "created": "2009-06-23T07:28:28.354Z", "lastUpdatedBy": "63cbdf8113d2c99c029d33e4", "lastUpdated": "2021-06-03T18:16:01.048Z", "_id": "fd898e10913108042cec4ebe", "gbac": { "write": [ "bcf9831a2eda704d45316e97", "a723937486e36fa9fc7ab42a" ], "read": [ "5f5cf021a7c771428155ee8a" ] }, "componentId": null } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "createdBy": "c891cd02ecf5b7a8d7ba8e0c", "created": "1991-02-25T12:42:21.31Z", "lastUpdatedBy": "7eaa2460ef6bda49971773f0", "lastUpdated": "2006-03-20T17:24:11.055Z", "_id": "be87d31f1e197479a35ccd47", "gbac": { "write": [ "8d48d3f7566a472194ff91ce", "e8bd1e9184d363b7d4c714ec", "a84b017182cb550d00a633ae", "3009f7a20c59fae0b911b1d0" ], "read": [ "b3727a8cecd1299bd5c4cdfa", "e38380db9fe710833d4b66c7" ] }, "componentId": null } } ] }
{ "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" } } } ] } } } } } } ] }