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": "b0f3c2c9f33edcc03181ae99", "gbac": { "write": [ { "provenance": "ldap", "name": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "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": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "name": "operators", "description": "Description of a group" } ] }, "componentName": "aliqua non nulla do Lorem", "createdBy": "laborum in", "created": "1972-09-15T04:09:49.725Z", "lastUpdatedBy": null, "lastUpdated": "1968-01-24T02:52:59.287Z", "triggers": [ { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "b21880f0dd05858be52bc891", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "9505029c9fce23413b59f227", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 84906329, "createdBy": "exercitation sit amet", "created": "1952-11-10T14:31:58.3Z", "lastUpdatedBy": null, "lastUpdated": "1954-03-03T03:21:58.863Z", "formSchemaHash": "fugiat" }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "6229ae11fefba06b5e772821", "verb": "POST", "routeName": "yh6xw", "_id": "816b41f6baa4e006838daa6e", "description": "Some helpful information about the document", "lastExecuted": 30278414, "migrationVersion": -28065702, "createdBy": "aute amet eiusmod enim sunt", "created": "1999-11-04T13:26:22.269Z", "lastUpdatedBy": null, "lastUpdated": "2004-06-20T12:12:36.684Z" }, { "name": "aliquip aliqua ut", "type": "aliquip irure non", "enabled": "mollit quis in eiusmod", "actionType": "do in ad ut", "actionId": -49921143.58806616, "formData": false, "firstRunAt": 35336580, "processMissedRuns": true, "repeatUnit": -11180010.84138292, "repeatFrequency": -74628501.34338352, "repeatInterval": 86772021.3177728, "_id": -29376151, "formId": 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 created the requested item", "data": [ { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "createdBy": "386b54c30d181e204d9c6caa", "created": "1976-10-12T18:46:09.795Z", "lastUpdatedBy": "544d7f6f4d421a4b478b6c4e", "lastUpdated": "1988-05-04T23:19:21.008Z", "_id": "c4534551ee3f21dd4c77dd6c", "gbac": { "write": [ "792ac2cfe9fd1cbef07c2c72", "8f6416cd3a7bdcc4dcfc2b9f", "7611dd1c126b4234924c16f6" ], "read": [ "6b960571825144631f6e2915", "0ed84d085acaf76d78f5c86d" ] }, "componentId": null } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "createdBy": "8387d0a29e7fcf7d4e110d06", "created": "1953-01-29T11:29:41.471Z", "lastUpdatedBy": "cea0843f0b25ab354ff43e22", "lastUpdated": "2011-09-11T14:36:22.971Z", "_id": "f6bef1a2f36956718efb7a45", "gbac": { "write": [ "ab084cedebaae769e8f080ad" ], "read": [ "c8b73db969ab86433e5f27dc", "7743037e5e44504ddb29bddd" ] }, "componentId": "" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "createdBy": "Pronghorn", "created": "2015-09-19T07:33:28.882Z", "lastUpdatedBy": "cae3373964f72ab5ed60d4e7", "lastUpdated": "1954-01-08T05:14:59.557Z", "_id": "28471dcd2a58c4519f2c0986", "gbac": { "write": [ "9832a7a18ad489af5f80f35c", "e6d55b5e55d2a3fd598839ef", "d87e1aee50fdfa204e90ec16" ], "read": [ "5715534ab4ee2c8dd20fe71e", "08c506db1461630453f6fcbc", "88cad1fbcf8463a4da499d6f", "7719c96c90105ffd844ef705", "95571d8da0c71246aaf50382" ] }, "componentId": null } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "createdBy": "Pronghorn", "created": "1987-08-09T06:45:46.795Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "2008-03-14T13:43:20.044Z", "_id": "4db2f6e75a3a096072c3199f", "gbac": { "write": [ "48f4f1c5f989d5795ac07d90", "b1825b35c2748403b4d67442" ], "read": [ "9abf13a1a82505a9126f3bdf", "f3296598841409d28792a834" ] }, "componentId": "EBDeFf9f-33e1-B7b3-2ccB-1e4A9D2Ead3A" } } ] }
{ "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" } } } ] } } } } } } ] }