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": "389e732807036f6de4fe21f5", "gbac": { "write": [ { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "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": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" } ] }, "componentName": null, "createdBy": null, "created": "1964-03-23T23:38:02.469Z", "lastUpdatedBy": null, "lastUpdated": "2000-03-08T05:50:59.568Z", "triggers": [ { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "94d13abfbe58ae8a892f8e17", "source": "sit", "topic": "incididunt ullamco culpa", "_id": "9163371dc2287db40e348335", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 74791970, "legacyWrapper": true, "createdBy": "in dolore dolore sunt", "created": "1968-05-22T04:41:46.832Z", "lastUpdatedBy": null, "lastUpdated": "1960-02-18T12:06:12.754Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "_id": "850e3a79c794cdf3f5a8712d", "gbac": { "write": [ { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" }, { "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" } ], "read": [ { "provenance": "ldap", "name": "admins", "description": "Description of a group" } ] }, "componentName": "consequat nisi enim occaecat", "createdBy": null, "created": "1960-10-13T10:09:34.022Z", "lastUpdatedBy": "ut voluptate dolor amet in", "lastUpdated": "1971-09-26T13:13:45.893Z", "triggers": [ { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "34bdc4a1ffa4e723da32b513", "source": "in", "topic": "eiusmod adipisicing dolor eu ut", "_id": "75c5d17b5924349f9a2f087e", "description": "Some helpful information about the document", "lastExecuted": 93041205, "migrationVersion": 99349455, "legacyWrapper": true, "createdBy": "ut", "created": "1979-10-18T06:19:01.342Z", "lastUpdatedBy": "Excepteur fugiat velit ex", "lastUpdated": "2022-08-24T09:20:00.645Z" }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "11ce3a7798fe42b72230bd3f", "verb": "POST", "routeName": "h_izcb1YIfB", "schema": null, "_id": "5d45d0b621fd2d9b37ae3f61", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -41357333, "createdBy": null, "created": "1957-05-25T21:48:14.813Z", "lastUpdatedBy": null, "lastUpdated": "1961-04-23T20:50:45.003Z" }, { "name": false, "type": "qui enim in culpa in", "enabled": false, "actionType": -68017767.82246445, "actionId": 44855718, "formData": 57725358.88952303, "firstRunAt": false, "processMissedRuns": "qui ut", "repeatUnit": -32674856.22568591, "repeatFrequency": 81088405, "repeatInterval": "do exercitation incididunt ad enim", "_id": false, "formId": true }, { "name": "consectetur fugiat ipsum officia", "type": "est voluptate magna incididunt sunt", "enabled": "id anim quis in", "actionType": "minim", "actionId": 22544515, "formData": -41416753, "firstRunAt": true, "processMissedRuns": "non ad ea", "repeatUnit": false, "repeatFrequency": "magna occaecat cillum velit laborum", "repeatInterval": "dolor", "_id": "in laboris", "formId": true }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "d20653c8d2174b8f12bb64c3", "verb": "POST", "routeName": "v9ZUMgWPFA", "_id": "2df2ef877478b00d42155c3a", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -20618724, "createdBy": null, "created": "1989-03-09T23:06:43.349Z", "lastUpdatedBy": null, "lastUpdated": "2020-11-02T05:51:27.751Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "_id": "8ae3ad7b379a1d7db725f849", "gbac": { "write": [ { "provenance": "ldap", "name": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "name": "designers", "description": "Description of a group" } ], "read": [ { "provenance": "ldap", "name": "operators", "description": "Description of a group" } ] }, "componentName": null, "createdBy": "cillum", "created": "1998-02-11T03:38:32.893Z", "lastUpdatedBy": "ad Excepteur", "lastUpdated": "1993-08-20T23:49:01.721Z", "triggers": [ { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "954afda11e985847dac477b7", "source": "quis esse voluptate", "topic": "sit ea", "schema": null, "_id": "0e962ccb89e3974dd6905744", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -39414394, "legacyWrapper": false, "createdBy": "id", "created": "1957-06-06T04:45:55.207Z", "lastUpdatedBy": null, "lastUpdated": "1996-06-03T22:03:26.142Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "ucm_compliance_plans", "_id": "acdca2a05bf8b0baf32c0e48", "gbac": { "write": [ { "provenance": "localAAA", "name": "operators", "description": "Description of a group" } ], "read": [ { "provenance": "localAAA", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "localAAA", "name": "designers", "description": "Description of a group" } ] }, "componentName": "sunt sint consequat velit", "createdBy": "id labore", "created": "2019-10-17T12:12:52.351Z", "lastUpdatedBy": null, "lastUpdated": "1989-07-14T22:02:45.083Z", "triggers": [] } ], "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 retrieved search results", "data": [ { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "createdBy": "Pronghorn", "created": "2002-11-05T09:14:06.898Z", "lastUpdatedBy": "464df51dfdba80dfaae9b52d", "lastUpdated": "1974-09-24T06:00:39.828Z", "_id": "afa81ffc0e98c6c270ac9759", "gbac": { "write": [ "2459f8338efc73816bd161dc", "1ef81401962150393a2f3627", "2d8160a55c33d18c8c07cf4b", "11164267338e7330b1bba0f5", "a73ecb2eb3589c68328caf09" ], "read": [ "ca6b8e99190b3640ae22dfe4", "80e9f2771d290e6ea1f81190" ] }, "componentId": "db9698c6b360196a4f1bc909" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "createdBy": "Pronghorn", "created": "1981-08-23T09:12:14.173Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "2015-11-30T15:57:26.652Z", "_id": "055ef08266425f59f496e5eb", "gbac": { "write": [ "3ddf8799bacf99dfbf88ffd6", "f45fe074b32f04d828b41c36", "347969aad626b7f1e6bc66ca", "0f1fd5a4e7465c1d03aa2fdf" ], "read": [ "741a370605b112f77e02e986", "32c531b3af5842d39715ea69", "5e41687fd49595d495420133", "e060af0e2e0bb9de87ddc7e9", "6f61d3a917eacb49102046b5" ] }, "componentId": "b2c36158e40ac9605d9f4d46" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "createdBy": "Pronghorn", "created": "1999-08-20T03:44:34.211Z", "lastUpdatedBy": "d75ac5703447c62c828aefb5", "lastUpdated": "1987-11-02T21:30:53.555Z", "_id": "b533107a8a4003479240f4a2", "gbac": { "write": [ "fe4b77924ed1c13d2dba9b11", "0ae1d4addbad17366f9cd579", "60aad7bb5710cdc85a87389b", "bbfe7e07f42b86884872907f" ], "read": [ "90a0bcb596b887c21b644150" ] }, "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" } } } ] } } } } } } ] }