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": "85a12a798b2ced99d81d3368", "gbac": { "write": [ { "provenance": "localAAA", "name": "designers", "description": "Description of a group" } ], "read": [ { "provenance": "localAAA", "name": "operators", "description": "Description of a group" } ] }, "componentName": null, "createdBy": null, "created": "1994-04-29T06:07:06.735Z", "lastUpdatedBy": "nostrud dolor", "lastUpdated": "1946-04-20T22:08:22.154Z", "triggers": [ { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "c1db2bbc9ea728253fada8d7", "source": "Excepteur velit qui aute", "topic": "do dolor sed", "_id": "0e1d776904912642a73c4743", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 27374852, "createdBy": null, "created": "1992-02-08T12:38:28.276Z", "lastUpdatedBy": null, "lastUpdated": "1960-08-01T03:21:47.337Z" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "1a226772d5ddd1d704d386e4", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "fc402d7e02df78456dbe4ae3", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -49238044, "createdBy": "in nisi", "created": "1965-02-26T13:57:06.119Z", "lastUpdatedBy": "ex", "lastUpdated": "1960-05-14T00:50:36.342Z", "formSchemaHash": "pariatur labore culpa Ut" }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "59388f88eac72174eece5265", "source": "ipsum nisi", "topic": "ad nisi", "_id": "cc057bab3a578ba9d6ba42a1", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -13649866, "createdBy": "eu dolore esse Lorem", "created": "1974-12-28T14:59:20.178Z", "lastUpdatedBy": "dolor laborum exercitation tempor", "lastUpdated": "2020-03-02T10:44:48.583Z" }, { "name": "Lorem sed amet", "type": 5573706.298249096, "enabled": 43185077.93647134, "actionType": 17271812, "actionId": -23582229, "formData": -37944799.096812256, "firstRunAt": "velit Ut aute anim adipisicing", "processMissedRuns": true, "repeatUnit": -20284865, "repeatFrequency": false, "repeatInterval": 18214966, "_id": "deserunt non et", "formId": -22739181.887789518 } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "_id": "19d7a9d20cbc91c69f0c6f92", "gbac": { "write": [ { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "name": "operators", "description": "Description of a group" } ], "read": [ { "provenance": "ldap", "name": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" } ] }, "componentName": "anim est", "createdBy": null, "created": "2015-04-05T15:49:06.898Z", "lastUpdatedBy": "voluptate in nulla", "lastUpdated": "1954-08-14T06:21:52.601Z", "triggers": [ { "name": 22173040.204314142, "type": true, "enabled": -29787695, "actionType": 50378572, "actionId": 73240233.02477315, "formData": "nulla Excepteur tempor pariatur", "firstRunAt": "consectetur", "processMissedRuns": "occaecat enim ipsum dolor sunt", "repeatUnit": "non ad", "repeatFrequency": "nostrud Excepteur do cillum Duis", "repeatInterval": "ipsum", "_id": "ullamco Duis eu proident", "formId": 92367731 }, { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "133caf3e3cdce199d9ed8e54", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "2fb4ba2676b892a0dfc721bb", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 4134551, "createdBy": "officia et aliquip sit", "created": "1964-05-30T17:26:42.296Z", "lastUpdatedBy": "dolore consectetur irure", "lastUpdated": "1997-10-14T19:07:08.706Z", "formSchemaHash": "sed laboris veniam in" } ] } ], "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": "Pronghorn", "created": "2012-03-31T22:12:42.857Z", "lastUpdatedBy": "ca47078428fb74669c9ccad5", "lastUpdated": "1968-10-14T06:37:45.415Z", "_id": "78096563c32a1704928c112f", "gbac": { "write": [ "8ced44948338e4e2d1bced4d", "5f5262237150091d47d073aa", "6276e43e4bbb2bd444c918ff", "e28e90194b4e49864d40bc27", "d397dac50919493ae8bc524d" ], "read": [ "ffdcddd7e937e8cc5618f626" ] }, "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" } } } ] } } } } } } ] }