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": "bbf4d3e02aa97dd57d75f1dd", "gbac": { "write": [ { "provenance": "localAAA", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" } ], "read": [ { "provenance": "ldap", "name": "designers", "description": "Description of a group" } ] }, "componentName": null, "createdBy": "adipisicing pariatur eiusmod dolor qui", "created": "1947-05-20T18:54:45.703Z", "lastUpdatedBy": null, "lastUpdated": "2013-01-07T14:47:24.191Z", "triggers": [ { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "280ab675ac7f4eeaa4ef2fdb", "verb": "POST", "routeName": "VEr", "schema": null, "_id": "a04223d9c27699a30098d6ba", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 61518805, "createdBy": "nisi in officia adipisicing do", "created": "2021-06-22T16:09:25.887Z", "lastUpdatedBy": "occaecat nostrud adipisicing", "lastUpdated": "1976-09-02T18:50:37.078Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "_id": "5839064362e5cc359cb1952e", "gbac": { "write": [ { "provenance": "localAAA", "name": "designers", "description": "Description of a group" } ], "read": [ { "provenance": "ldap", "name": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "name": "designers", "description": "Description of a group" } ] }, "componentName": null, "createdBy": "ex irure sint", "created": "1969-10-13T05:13:19.16Z", "lastUpdatedBy": null, "lastUpdated": "1968-02-15T00:14:37.342Z", "triggers": [ { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "7112a9677fd0cb480de28bff", "source": "anim deserunt nulla aliquip", "topic": "commodo incididunt", "schema": null, "_id": "32898f733645e9bd8f3f071c", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 19253961, "migrationVersion": -23050763, "createdBy": null, "created": "1998-11-13T08:40:26.933Z", "lastUpdatedBy": "labore", "lastUpdated": "1970-11-16T02:09:27.18Z" }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "1cc87914604350b15881cdd3", "source": "magna", "topic": "et", "schema": null, "_id": "4d18ad72eec270aa7882fcbc", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 51964379, "createdBy": null, "created": "2013-03-04T17:19:09.016Z", "lastUpdatedBy": null, "lastUpdated": "2011-06-22T12:47:47.565Z" }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "f9370ff00883517efa9ee355", "verb": "POST", "routeName": "53f6w9gmfR", "_id": "db3b4b97297502faca062f22", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 4395954, "createdBy": null, "created": "2023-12-15T17:02:42.605Z", "lastUpdatedBy": "et Lorem in laborum pariatur", "lastUpdated": "2015-04-03T23:01:03.097Z" }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "b3b1af8f0374abe9d880b69d", "verb": "POST", "routeName": "fTP", "_id": "b096b765f99bb5c395afa627", "description": "Some helpful information about the document", "lastExecuted": 29933513, "migrationVersion": -21568545, "createdBy": null, "created": "1994-07-09T15:38:16.087Z", "lastUpdatedBy": "proident adipisicing magna Excepteur", "lastUpdated": "2022-11-10T03:39:50.717Z" }, { "name": false, "type": -3109216, "enabled": "magna", "actionType": -44269443, "actionId": -65560317.79536871, "formData": true, "firstRunAt": false, "processMissedRuns": 95230763, "repeatUnit": "consequat ut incididunt", "repeatFrequency": -61473961, "repeatInterval": true, "_id": "do sed", "formId": 30123087 } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "_id": "c967957c243d8d9bfdb76296", "gbac": { "write": [ { "provenance": "localAAA", "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" } ] }, "componentName": null, "createdBy": "sed occaecat laboris Ut fugiat", "created": "2013-06-26T14:13:30.531Z", "lastUpdatedBy": "irure", "lastUpdated": "2006-06-25T08:07:38.579Z", "triggers": [ { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "4d2ef12aeb56397f5d658928", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "29a0965472c40727eae6509f", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -127107, "createdBy": "Duis et", "created": "1982-09-28T08:36:21.915Z", "lastUpdatedBy": "deserunt sunt proident veniam in", "lastUpdated": "1992-07-10T05:44:31.619Z", "formSchemaHash": "qui reprehenderit velit ea" }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "031f0cd6ad8117e711863d97", "source": "in", "topic": "incididunt id", "schema": null, "_id": "ea45eee78bfcdd6c2acd9934", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -91351260, "createdBy": "velit tempor do laborum Lorem", "created": "1989-11-30T11:24:30.02Z", "lastUpdatedBy": "laboris", "lastUpdated": "1954-12-10T04:15:21.261Z" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "da78a49cf10887209433d0eb", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "070ae6c3324167a9e0e2565e", "formId": null, "description": "Some helpful information about the document", "lastExecuted": 89491642, "migrationVersion": -24454930, "createdBy": "commodo pariatur proident", "created": "1969-03-25T12:46:04.243Z", "lastUpdatedBy": "in in", "lastUpdated": "1949-01-10T21:07:43.726Z", "formSchemaHash": "enim deserunt et labore" }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "bfbe176b4832da7a0003df33", "source": "fugiat occaecat eiusmod ut", "topic": "in commodo aute dolore", "_id": "aea761e95a2be8a659d999f4", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 19041472, "createdBy": "officia laboris id", "created": "2021-10-19T02:49:39.057Z", "lastUpdatedBy": null, "lastUpdated": "2018-05-19T06:43:16.033Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "_id": "35b83736218d8239b37ccff4", "gbac": { "write": [ { "provenance": "localAAA", "name": "operators", "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": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "localAAA", "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" } ] }, "componentName": null, "createdBy": null, "created": "1986-07-22T18:31:24.355Z", "lastUpdatedBy": "veniam", "lastUpdated": "2021-12-02T20:16:09.17Z", "triggers": [ { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "84366fc41b2b050120f8c96b", "verb": "POST", "routeName": "VP4", "schema": null, "_id": "671e8ed00681799448bf4d5a", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -93695067, "createdBy": null, "created": "2020-01-22T00:44:01.614Z", "lastUpdatedBy": null, "lastUpdated": "1988-09-08T13:01:51.09Z" } ] } ], "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 created the requested item", "data": [ { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "createdBy": "cf69fd8ff5ebd7558da9838a", "created": "1964-04-12T00:28:36.977Z", "lastUpdatedBy": "161663eb7f0a89335a489b6d", "lastUpdated": "1988-11-02T22:05:21.802Z", "_id": "e2f41a0d79621cb98c1b67a4", "gbac": { "write": [ "94e2a0b68606058554e48d16" ], "read": [ "b3c6f194d900d762c76f318c", "7128fbdad8f746bcc9df7a90", "09c4ec7b90d699192c65018e", "1514ee7f7a77d6e265c119c4", "2e9a728b6f3b6c47d7c26c53" ] }, "componentId": "" } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "createdBy": "eb48182aa37075f283821a84", "created": "2010-03-14T20:19:03.917Z", "lastUpdatedBy": "80c6f69acb338b958bccd388", "lastUpdated": "1969-09-01T23:30:45.99Z", "_id": "f748ca8ee8eb5106c4c05d6a", "gbac": { "write": [ "fe8465d793b17aafb0409fae" ], "read": [ "ce009ca1b3d9f2a863ed5631", "70a78a015a72bb46e377dc27" ] }, "componentId": "" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "createdBy": "Pronghorn", "created": "1971-12-16T08:26:33.607Z", "lastUpdatedBy": "8f841808e688de67f4a27b11", "lastUpdated": "1964-11-03T02:36:53.197Z", "_id": "5d0d62d58f6876cbadfe0285", "gbac": { "write": [ "fcd5c928015e7e60343977d7", "d15d3ad248778c1208039d7d", "c958006f44a0da6118be9a07" ], "read": [ "a5d0673fc6e334d1c6d98dd6", "4ff50ed9e658cb5b585cc765" ] }, "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" } } } ] } } } } } } ] }