For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Open sourceSupportFAQsDocs Home
DocumentationAPI referenceRelease notes
DocumentationAPI referenceRelease notes
  • Introduction
    • Overview
    • Authentication
  • Guides
    • Operations Manager search APIs
    • Search API
    • URL query parameters
    • Use query parameters in API requests
  • Reference
        • POSTAdd GBAC to a job
        • POSTAdd watchers to a job
        • POSTAssign a task to a user
        • POSTBulk delete root jobs
        • POSTCancel jobs
        • POSTClaim a task
        • POSTClone automation
        • POSTContinue a job from a specified task
        • POSTCreate automation
        • POSTCreate trigger
        • DELDelete a root job and all related items
        • DELDelete automation
        • POSTDelete root jobs and related items
        • DELDelete trigger
        • DELDelete triggers by action ID
        • GETExport automation
        • GETExport large data for a job or task variable
        • GETExport trigger
        • POSTFinish a manual task
        • GETGet a job
        • GETGet a task by ID
        • GETGet automation
        • GETGet automations
        • GETGet event definition
        • GETGet jobs
        • GETGet manual task controller
        • GETGet tasks
        • GETGet trigger
        • GETGet triggers
        • PUTImport automations
        • PUTImport triggers
        • POSTPauses jobs
        • POSTRelease a currently assigned task
        • DELRemove all GBAC from a job
        • DELRemove GBAC from a job
        • PUTReplace all GBAC from a job with the provided list
        • POSTResume jobs
        • POSTRetry a task
        • POSTRevert a job
        • POSTRun endpoint trigger with POST
        • POSTRun manual trigger
        • GETSearch system events
        • POSTStart a job
        • POSTUnwatch job
        • POSTUnwatch jobs
        • PATCHUpdate automation
        • PATCHUpdate trigger
        • POSTValidate automation
        • POSTValidate trigger
        • POSTWatch a job
        • POSTWatch jobs
LogoLogo
Open sourceSupportFAQsDocs Home
ReferenceOperations Manager

Clone automation

POST
http://localhost:3000/operations-manager/automations/clone
POST
/operations-manager/automations/clone
$curl -X POST http://localhost:3000/operations-manager/automations/clone \
> -H "Content-Type: application/json" \
> -u "<username>:<password>" \
> -d '{}'
1{
2 "message": "Successfully created the requested item",
3 "data": {
4 "name": "Cisco IOS upgrade",
5 "description": "Turn up the port",
6 "componentType": null,
7 "createdBy": "admin@pronghorn",
8 "created": "2024-01-15T09:30:00Z",
9 "lastUpdatedBy": "admin@pronghorn",
10 "lastUpdated": "2024-01-15T09:30:00Z",
11 "_id": "string",
12 "gbac": {
13 "write": [
14 "string"
15 ],
16 "read": [
17 "string"
18 ]
19 },
20 "componentId": "string",
21 "componentName": "addDuration"
22 },
23 "metadata": {
24 "automaticChanges": [
25 "Disabled trigger 628672e8f677b67b3b0f20d7"
26 ],
27 "triggerCloneResults": {
28 "message": "Imported 3 of 3 document(s).",
29 "metadata": {},
30 "data": [
31 {
32 "success": true,
33 "data": {
34 "name": "Cisco IOS upgrade",
35 "description": "Turn up the port",
36 "enabled": true,
37 "actionType": "automations",
38 "actionId": "string",
39 "options": {
40 "targetType": "instance",
41 "targetIdentifier": "string",
42 "chooseTargetAtRuntime": true,
43 "actionId": "0a2f"
44 },
45 "lastExecuted": 1,
46 "migrationVersion": 1,
47 "createdBy": "admin@pronghorn",
48 "created": "2024-01-15T09:30:00Z",
49 "lastUpdatedBy": "admin@pronghorn",
50 "lastUpdated": "2024-01-15T09:30:00Z",
51 "type": null,
52 "verb": null,
53 "routeName": "runSoftwareUpgrade",
54 "schema": {},
55 "_id": "string",
56 "jst": "string"
57 },
58 "automaticChanges": [
59 "Disabled trigger 628672e8f677b67b3b0f20d7"
60 ]
61 }
62 ]
63 }
64 }
65}
Clone an Automation.
Was this page helpful?
Previous

Continue a job from a specified task

Next
Built with

Authentication

AuthorizationBasic

Basic authentication of the form Basic <base64(username:password)>.

Request

automation
idstringOptionalformat: "^[0-9a-f]{24}$"
A string which is formatted like an ObjectId, Distinct from an actual ObjectId.
namestring or nullOptional>=1 character
An optional name to use for the clone.

Response

The result of the clone operation.
messagestring

A human-readable message summarizing the result of the operation

dataany
Any successfully retrieved information related to the request.
metadataobject

Any structured, wordy or machine-readable information related to the result of the operation. For success responses, this may contain information like pagination values from a search operation.

Errors

500
Internal Server Error