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": "dcb6cb3b69c61270bed5d2c0", "gbac": { "write": [ { "provenance": "localAAA", "name": "admins", "description": "Description of a group" } ], "read": [ { "provenance": "ldap", "name": "designers", "description": "Description of a group" }, { "provenance": "ldap", "name": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "name": "designers", "description": "Description of a group" } ] }, "componentName": null, "createdBy": null, "created": "1971-02-24T20:28:34.998Z", "lastUpdatedBy": "do", "lastUpdated": "1966-04-03T07:07:48.45Z", "triggers": [ { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "a8c2c0495cc54c339a124ba7", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "aac329cda183454e2ae7a7e9", "formId": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -57290760, "createdBy": "quis", "created": "1990-05-29T12:29:07.714Z", "lastUpdatedBy": null, "lastUpdated": "2017-05-10T01:56:06.001Z", "formSchemaHash": null, "legacyWrapper": true } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "ucm_compliance_plans", "_id": "c6c513d339b428bb356eba41", "gbac": { "write": [ { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "localAAA", "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": "ldap", "name": "designers", "description": "Description of a group" } ], "read": [ { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "localAAA", "name": "designers", "description": "Description of a group" } ] }, "componentName": null, "createdBy": "dolor ad mollit Duis Ut", "created": "1994-02-23T11:13:30.092Z", "lastUpdatedBy": null, "lastUpdated": "1975-07-23T01:33:34.583Z", "triggers": [ { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "533db335cb2aee1406d173d6", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "f05a906518ed3f105a08409c", "formId": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 15545427, "createdBy": "minim pariatur in adipisicing", "created": "2003-07-16T07:11:13.375Z", "lastUpdatedBy": "sed est amet", "lastUpdated": "1990-06-12T09:25:13.482Z", "formSchemaHash": null, "legacyWrapper": true }, { "name": -80120365, "type": "ex", "enabled": "laborum eu labore", "actionType": 18683827, "actionId": false, "formData": false, "firstRunAt": -73662230, "processMissedRuns": 58898897.87162909, "repeatUnit": false, "repeatFrequency": -82309986.54730794, "repeatInterval": -25028152.494975135, "_id": -37674919.10959495, "formId": 70648636 } ] } ], "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": "workflows", "createdBy": "Pronghorn", "created": "1969-02-23T04:12:40.08Z", "lastUpdatedBy": "4723a0ea7cc001892204bb74", "lastUpdated": "2003-08-29T13:40:01.843Z", "_id": "7025115f158e39a687191151", "gbac": { "write": [ "872d82cd27c66c0c5e2c6ea1" ], "read": [ "89669fe4d4b9c16a0a0a7ad4", "a0251532b705afe92361b44e", "0931f3fb6ae7c1f91f485f25" ] }, "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" } } } ] } } } } } } ] }