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": "3b4916c23d00656e62813373", "gbac": { "write": [ { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "name": "designers", "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": "designers", "description": "Description of a group" }, { "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": "ldap", "name": "operators", "description": "Description of a group" } ] }, "componentName": "esse consequat aliqua elit", "createdBy": null, "created": "2004-03-08T14:24:21.739Z", "lastUpdatedBy": "labore non", "lastUpdated": "1957-09-18T22:50:40.527Z", "triggers": [ { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "d6cd41e3ef328165685ab1a4", "verb": "POST", "routeName": "_vJ", "schema": null, "_id": "b9efc314eaa8b668f335e14a", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -71121895, "createdBy": "dolore in aute", "created": "1951-02-20T07:38:18.494Z", "lastUpdatedBy": "dolor magna", "lastUpdated": "2023-07-24T17:52:10.055Z" }, { "name": -82036437.85760586, "type": -45294278, "enabled": "dolore", "actionType": 39945717, "actionId": 87420389, "formData": -14199620, "firstRunAt": true, "processMissedRuns": false, "repeatUnit": "esse laborum aliqua", "repeatFrequency": false, "repeatInterval": false, "_id": 71014871, "formId": true }, { "name": -22464731.392904997, "type": 41685470, "enabled": 44239211.06474623, "actionType": -30810325.842821136, "actionId": 4102792.441728413, "formData": "aliquip voluptate laborum", "firstRunAt": 61166423.19041881, "processMissedRuns": false, "repeatUnit": 94709441, "repeatFrequency": 78726852.22202578, "repeatInterval": -17150861, "_id": true, "formId": 66135055 }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "116804db0058f123c3c6ac83", "verb": "POST", "routeName": "ZKZ", "schema": null, "_id": "7a79219369215aa6ddf8cb23", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 78182856, "migrationVersion": 24180769, "createdBy": null, "created": "2002-04-22T11:57:39.93Z", "lastUpdatedBy": null, "lastUpdated": "1953-12-04T04:33:41.125Z" } ] } ], "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": "workflows", "createdBy": "a45aec873dd73215050656b9", "created": "2003-08-29T14:31:26.887Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1947-05-30T01:57:10.587Z", "_id": "651a1adff7bec4045f025715", "gbac": { "write": [ "492c7e440f88e836c347833a" ], "read": [ "ce1384c2a9aa1096b0a9bfc8", "451b8cafd785c5cb6d637069", "2b2062de57a4be6d59b72b99", "c3138c1a5f0d51f7ecd29129" ] }, "componentId": "F7df36Eb-c49A-Ce6d-8DeB-C54bEfe4D5c8" } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "createdBy": "92259a9ade30580a92874ffc", "created": "1960-03-06T08:58:48.938Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1982-11-22T08:10:27.54Z", "_id": "77cb5baf2eae4f45e9d25560", "gbac": { "write": [ "1850ca42165584df3958d64e", "9e96122950ae22d3ec9269c4" ], "read": [ "d1e43d5714bd5c7d799e504d", "aa2c6198c4c0e339e67270cd", "95105b26438fadb2fbd3c8da" ] }, "componentId": "56d73a6cf3b01182af4a6cbc" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "createdBy": "1f19b72cfdc00a0ca70f6a66", "created": "2020-02-02T11:58:03.456Z", "lastUpdatedBy": "3107d7f3081182fc300055f9", "lastUpdated": "2012-09-07T09:27:39.607Z", "_id": "9fc3fb02f43fe76e1c8336b4", "gbac": { "write": [ "0f0b6feae5479ab648dbc498", "04975b5938ecae2fe1d301ea", "82d875aff8a8a38e1265a7b2", "2b9052c2e38b0119b35b5ed7" ], "read": [ "1a490381f9b82dae5e537439", "300cb65563855a8665de4441", "c72d8ad227357eea8abfa111", "7315e22c4f31331882934b5e", "7a66aa53f030cdc39294fda4" ] }, "componentId": "" } } ] }
{ "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" } } } ] } } } } } } ] }