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": "25ee2cb31b49ddc5881870bd", "gbac": { "write": [ { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" } ], "read": [ { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" } ] }, "componentName": "Excepteur tempor commodo ex", "createdBy": "officia nostrud qui", "created": "2008-11-13T12:13:05.68Z", "lastUpdatedBy": "nulla esse aliqua ut enim", "lastUpdated": "2000-09-10T17:21:22.338Z", "triggers": [ { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "1facef74fc82cb7085001b0d", "source": "proident", "topic": "culpa labore commodo dolor", "schema": null, "_id": "8fdf559bb1461afb74aef7a8", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -60153845, "legacyWrapper": false, "createdBy": "esse", "created": "2023-07-07T07:03:06.276Z", "lastUpdatedBy": "cillum ullamco id Ut", "lastUpdated": "1987-11-17T20:19:35.2Z" }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "fd8179f57434b35ee2d8e2d0", "source": "in dolore sunt et", "topic": "elit amet dolore", "schema": null, "_id": "ee03e813156ae699a36237d6", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 8638097, "migrationVersion": 86822702, "legacyWrapper": true, "createdBy": null, "created": "1990-09-06T05:01:05.148Z", "lastUpdatedBy": null, "lastUpdated": "1962-05-09T10:11:54.042Z" }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "8184bbfd6eaeeb94658c1c8b", "source": "consequat labore adipisicing laborum", "topic": "nulla labore dolor laborum", "_id": "26e0d9d5233c8af9f8d4b9b0", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -13365304, "legacyWrapper": false, "createdBy": "ullamco veniam irure sunt", "created": "2022-02-08T21:27:38.734Z", "lastUpdatedBy": null, "lastUpdated": "1949-11-26T12:03:33.414Z" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "ffebadd8a2ae0e4eae369406", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "66890e8bf7940214b3a992e9", "formId": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 13539589, "createdBy": "cillum sint", "created": "1993-05-01T10:58:53.388Z", "lastUpdatedBy": null, "lastUpdated": "1950-10-03T23:43:36.766Z", "formSchemaHash": null, "legacyWrapper": true } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "_id": "5c6df296eb75a47c7c0e7d55", "gbac": { "write": [ { "provenance": "ldap", "name": "operators", "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": "designers", "description": "Description of a group" } ], "read": [ { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" } ] }, "componentName": null, "createdBy": null, "created": "2021-11-27T15:42:00.13Z", "lastUpdatedBy": null, "lastUpdated": "1952-12-30T02:21:24.615Z", "triggers": [ { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "3c896cfda7511a90e43337a7", "source": "aliqua", "topic": "ullamco esse fugiat ipsum", "schema": null, "_id": "4660a0941f9a62fe354ea79b", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 93339689, "migrationVersion": 7713724, "legacyWrapper": false, "createdBy": "ea culpa", "created": "2005-11-10T00:31:05.22Z", "lastUpdatedBy": null, "lastUpdated": "1968-03-15T05:30:42.783Z" } ] } ], "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 retrieved search results", "data": [ { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "createdBy": "Pronghorn", "created": "1975-07-30T00:00:19.9Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1977-06-03T19:44:57.686Z", "_id": "09d926e5f658825f07890f73", "gbac": { "write": [ "a47152991df5f6a493a816ee", "8500b94b79dbfba1c78db6bf" ], "read": [ "b933dc5572792a23aed6bf9e", "ff6ceec7c3f37631e3be8ad0", "51d3ab1e37fecbf638179651" ] }, "componentId": "48671b93-2B3A-A65F-5c3C-84aAccC9e3Bd" } } ] }
{ "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" } } } ] } } } } } } ] }