Summary
Clone Automation
Description
Clone an Automation.
Route
POST /operations-manager/automations/clone
Roles
Parameters
Name | Type | Required | Description |
---|---|---|---|
automation | object | yes | The id of the Automation to be cloned and, optionally, a name to assign to the clone. |
{ "id": "21316b2c3947d11ab88c8ef0", "name": null }
{ "title": "automation", "properties": { "id": { "description": "The id of the Automation to be cloned.", "$ref": "common#/definitions/ObjectIdLikeString" }, "name": { "description": "An optional name to use for the clone.", "oneOf": [ { "type": "null" }, { "$ref": "common#/definitions/name" } ] } } }
Return
Name | Type | Description |
---|---|---|
result | object | The result of the clone operation. |
{ "message": "Successfully imported 3 of 4 documents", "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "createdBy": null, "created": "1970-09-04T08:55:12.147Z", "lastUpdatedBy": "ullamco tempor", "lastUpdated": "2006-07-13T15:15:05.818Z", "_id": "c9217e5012455c4a93e29947", "gbac": { "write": [ "f77020d9ffcc460769db6e3b", "f6b6e19950a4ad2e8b4f2390" ], "read": [ "272360bed3f8244de8d6cbc8", "e534b3a64264663c52721683" ] }, "componentId": "02d73a4531f3cd4d3299c3b7" }, "metadata": { "automaticChanges": [ "aliqua", "sunt", "id qui ullamco eu voluptate", "quis est nulla dolore", "eiusmod do" ], "triggerCloneResults": { "message": "laboris adipisicing elit non cillum", "data": [ { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "0666f32c92521c0cd989392a", "lastExecuted": 78749152, "createdBy": "esse consequat mollit", "created": "1976-07-31T01:01:32.933Z", "lastUpdatedBy": "aliqua in", "lastUpdated": "1981-09-18T18:35:48.589Z", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "legacyWrapper": true, "_id": "219c85790e79c29f775cb4aa", "formId": "5c22fcb8421d206126f16539", "migrationVersion": -94933854, "formSchemaHash": null }, "automaticChanges": [ "in laborum consequat sint", "proident", "Ut ad" ] }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "83f2a7938e538f91c94c9d1f", "lastExecuted": null, "createdBy": "est anim", "created": "2004-12-12T14:23:42.745Z", "lastUpdatedBy": null, "lastUpdated": "1997-10-01T01:41:17.006Z", "verb": "POST", "routeName": "lVA7Dd", "schema": null, "_id": "263af224cbc34f7de9334a3b", "jst": null, "migrationVersion": -88257066 }, "automaticChanges": [ "aute ipsum officia incididunt culpa", "eu", "est sint", "eu nisi officia ut consequat", "voluptate irure esse id" ] }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "a1529df73c398da9f120f73e", "lastExecuted": 26434628, "createdBy": null, "created": "1981-11-08T22:56:11.008Z", "lastUpdatedBy": "ad", "lastUpdated": "1959-08-08T20:44:40.605Z", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "legacyWrapper": true, "_id": "829b7553e0185c1ed3b080c4", "formId": null, "migrationVersion": -75982820, "formSchemaHash": null }, "automaticChanges": [ "sit sint nostrud voluptate laborum", "ex sunt" ] }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "3e6553f0e81d8e06d658afad", "lastExecuted": null, "createdBy": null, "created": "1963-06-08T13:46:41.688Z", "lastUpdatedBy": null, "lastUpdated": "1964-05-06T00:06:19.024Z", "verb": "POST", "routeName": "j", "schema": null, "_id": "4af729b0bf6d843cc152630e", "jst": null, "migrationVersion": -26733624 }, "automaticChanges": [ "laboris", "in sint reprehenderit" ] }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "0cd7da7ab18724d75f9c1293", "lastExecuted": null, "createdBy": null, "created": "1980-07-30T23:05:12.755Z", "lastUpdatedBy": null, "lastUpdated": "1960-11-18T01:30:48.211Z", "verb": "POST", "routeName": "rqd", "schema": null, "_id": "4b0f60094bad8dfbb04c3ce8", "jst": "ae5d2252de94ec503a0246e2", "migrationVersion": 39494666 }, "automaticChanges": [ "ullamco officia", "quis occaecat incididunt non", "Ut adipisicing esse aute et", "dolore enim eu", "labore" ] } ] } } }
{ "title": "result", "allOf": [ { "$ref": "common-api#/definitions/success-response" }, { "type": "object", "properties": { "data": { "$ref": "automation-api" }, "metadata": { "type": "object", "properties": { "automaticChanges": { "type": "array", "items": { "title": "messages", "type": "string", "example": "Disabled trigger 628672e8f677b67b3b0f20d7" } }, "triggerCloneResults": { "type": "object", "properties": { "message": { "type": "string" }, "metadata": { "type": "object" }, "data": { "type": "array", "items": { "type": "object", "properties": { "success": { "type": "boolean" }, "data": { "$ref": "trigger-api" }, "automaticChanges": { "type": "array", "items": { "title": "messages", "type": "string", "example": "Disabled trigger 628672e8f677b67b3b0f20d7" } } } } } } } } } } } ] }