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": "ucm_compliance_plans", "_id": "531874c2513a7051c1b1bb8f", "gbac": { "write": [ { "provenance": "ldap", "name": "operators", "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": "admins", "description": "Description of a group" } ], "read": [ { "provenance": "ldap", "name": "operators", "description": "Description of a group" } ] }, "componentName": null, "createdBy": null, "created": "1978-11-18T12:56:02.531Z", "lastUpdatedBy": "minim", "lastUpdated": "1955-03-11T20:31:37.159Z", "triggers": [ { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "36e05b23fcb7141c0014541e", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "a55b8279846eff2878894bbe", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": 93125815, "migrationVersion": 40099281, "createdBy": "quis sit", "created": "1949-09-25T13:21:31.215Z", "lastUpdatedBy": null, "lastUpdated": "1987-01-15T13:16:11.472Z", "formSchemaHash": null, "legacyWrapper": true }, { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "b87f694cf6a4757d572f9fa5", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "f362fd31bf624783e6f68d96", "formId": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -55075554, "createdBy": null, "created": "1972-09-05T01:43:27.437Z", "lastUpdatedBy": null, "lastUpdated": "1998-09-17T05:12:29.824Z", "formSchemaHash": "elit", "legacyWrapper": false } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "_id": "6833e8b8e611330709ede262", "gbac": { "write": [ { "provenance": "localAAA", "name": "admins", "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" } ], "read": [ { "provenance": "ldap", "name": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "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" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" } ] }, "componentName": null, "createdBy": "laborum consequat consectetur", "created": "2000-06-05T02:47:09.432Z", "lastUpdatedBy": "nisi", "lastUpdated": "1993-08-17T07:59:19.432Z", "triggers": [ { "name": false, "type": "dolore", "enabled": -21558632, "actionType": -76946519.41257703, "actionId": -48545271, "formData": false, "firstRunAt": true, "processMissedRuns": "irure Excepteur cupidatat commodo laboris", "repeatUnit": true, "repeatFrequency": true, "repeatInterval": false, "_id": "veniam", "formId": "eiusmod incididunt eu ut" } ] } ], "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": "b0813fca5bba2c6d464e2db3", "created": "1949-07-21T00:38:22.58Z", "lastUpdatedBy": "2c0a87d66ad5ea3dbb394fd0", "lastUpdated": "1970-07-21T07:05:22.804Z", "_id": "dd548fec9ab36b00f5943e53", "gbac": { "write": [ "d702645859cb9a68ddfb39dd" ], "read": [ "194e3b6c6440bb0b1b6e55a3", "ea402a22b6b31b88f8b3a050" ] }, "componentId": "eb0509ac9340a98006f3758e" } } ] }
{ "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" } } } ] } } } } } } ] }