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": "c34f19872af5e00c6d5735d0", "gbac": { "write": [ { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "operators", "description": "Description of a group" } ], "read": [ { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" } ] }, "componentName": "consectetur", "createdBy": null, "created": "1966-05-02T05:04:52.896Z", "lastUpdatedBy": null, "lastUpdated": "1987-11-24T23:22:49.343Z", "triggers": [ { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "51a4309cec96cef609635f96", "source": "esse quis Excepteur", "topic": "mollit veniam commodo eu", "schema": null, "_id": "ae30cc1f152f95fdcaa21f77", "description": "Some helpful information about the document", "lastExecuted": 36839290, "migrationVersion": -47452494, "legacyWrapper": false, "createdBy": "dolore ipsum est dolor Lorem", "created": "1960-01-04T00:35:46.202Z", "lastUpdatedBy": null, "lastUpdated": "1964-10-01T18:47:06.165Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "ucm_compliance_plans", "_id": "e50fb087d4ea0cb14d8bc7d0", "gbac": { "write": [ { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" } ], "read": [ { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "name": "operators", "description": "Description of a group" } ] }, "componentName": null, "createdBy": null, "created": "2005-09-20T18:43:49.17Z", "lastUpdatedBy": null, "lastUpdated": "2009-08-12T07:06:06.817Z", "triggers": [ { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "ebd634d19446e568940ff667", "verb": "POST", "routeName": "CzGcL", "_id": "3e0ebdfcc136e5efecf36682", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -57574842, "createdBy": null, "created": "2010-12-20T10:19:08.301Z", "lastUpdatedBy": "sunt Excepteur", "lastUpdated": "1975-03-31T13:25:24.197Z" }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "315b6aa5b00a4cd9ac83acc4", "verb": "POST", "routeName": "S", "_id": "42249b7f90121340243de087", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -23452061, "createdBy": null, "created": "2009-05-15T22:20:55.888Z", "lastUpdatedBy": null, "lastUpdated": "2012-08-02T10:22:27.44Z" }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "87d20578da54b005a6eda497", "verb": "POST", "routeName": "Yp", "schema": null, "_id": "c9cafabb638c4683cbe6fa25", "description": "Some helpful information about the document", "lastExecuted": 79203673, "migrationVersion": 57915973, "createdBy": "in", "created": "2014-12-27T13:59:28.043Z", "lastUpdatedBy": null, "lastUpdated": "2003-06-16T08:36:07.275Z" } ] } ], "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": "ucm_compliance_plans", "createdBy": "c11171a85d44ad5e70c701e0", "created": "1972-08-26T11:23:02.588Z", "lastUpdatedBy": "371de966538f4bd1b1ea64a0", "lastUpdated": "1970-08-20T01:36:26.328Z", "_id": "486b72f02ef3ef87e6f01d65", "gbac": { "write": [ "28fa314889f02cb567c7db7a", "c052d89941c07052e4798fc2" ], "read": [ "800d586d769e5f6853521d5d", "6f081ab9b03739bc8657cc36", "1affd1a1f8b74227428d3ccd", "859f63d194153b195991ea24" ] }, "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" } } } ] } } } } } } ] }