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": "a3f13b0d2e7a05994ef25f9b", "gbac": { "write": [ { "provenance": "ldap", "name": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "operators", "description": "Description of a group" }, { "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" }, { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "name": "designers", "description": "Description of a group" } ] }, "componentName": "cupidatat adipisicing pariatur commodo", "createdBy": null, "created": "1986-01-04T07:51:21.726Z", "lastUpdatedBy": "tempor cupidatat", "lastUpdated": "1997-12-04T19:28:10.64Z", "triggers": [ { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "0434379e3ec93f46b22da698", "verb": "POST", "routeName": "Ii", "schema": null, "_id": "ebcf4d7bbb92b6831cf703af", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 93851518, "migrationVersion": 51953482, "createdBy": "eiusmod labore", "created": "1974-03-06T02:29:03.553Z", "lastUpdatedBy": null, "lastUpdated": "1995-06-14T00:22:50.022Z" }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "4cd0d0fa5df3c0a04a3cdc6a", "verb": "POST", "routeName": "cH97RVt", "_id": "96436d8ef6324df5d5864d95", "description": "Some helpful information about the document", "lastExecuted": 16453424, "migrationVersion": 37523277, "createdBy": null, "created": "2016-02-10T16:49:08.108Z", "lastUpdatedBy": null, "lastUpdated": "2008-10-04T13:18:43.608Z" } ] } ], "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 retrieved search results", "data": [ { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "createdBy": "9bf5002b7d15766886f44d28", "created": "1979-07-28T18:56:11.71Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1972-10-06T11:31:59.653Z", "_id": "04f728f10f859d2bada017b8", "gbac": { "write": [ "b9e832ba8417e36b1b27d6a5", "f9959ac2b98c90fd6cbef47c", "de68cb7814734633739063a5", "422f10694ee08a581fcc3984", "051167e20c49a9649406c3c0" ], "read": [ "f2bb286fa7da1b3cd35c57ef", "3291cd1b3ea3eff2042eb3f0", "c47562d38c2c1f81de476b83" ] }, "componentId": null } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "createdBy": "6abf28152c146acd81483660", "created": "2022-10-18T00:51:55.405Z", "lastUpdatedBy": "a8f8a9ba9c0a1a47e8a2165c", "lastUpdated": "1969-05-15T17:22:01.03Z", "_id": "a34d734c55c60ad56642cc83", "gbac": { "write": [ "719e6f0607146983608292e3", "cff9940ccd7e50b6ee7368da", "84893fc7a7f7e6edef5e4fce" ], "read": [ "5bd038a1f06838da9985a4c4", "d21b5c019e37594d8eddcff9", "d6df8a4bc7ff11df3eb17a94", "e155c7b08420232a9d631501" ] }, "componentId": "f08cccdf58c4ef1feae75b4e" } } ] }
{ "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" } } } ] } } } } } } ] }