Summary
Import Automations
Description
Import Automation documents from a user supplied JSON document.
Route
PUT /operations-manager/automations
Roles
Parameters
Name | Type | Required | Description |
---|---|---|---|
automations | array | yes | Array of automations |
options | object | yes | optional parameters |
{ "automations": [], "options": {} }
{ "type": "object", "properties": { "automations": { "title": "automations", "type": "array", "items": {} }, "options": { "title": "options", "type": "object", "properties": { "adapterMap": { "type": "object" } }, "additionalProperties": false } }, "required": [ "automations", "options" ], "additionalProperties": false }
Return
Name | Type | Description |
---|---|---|
status | object | Status of automation import operation |
{ "status": "success", "message": "minim nulla aute incididunt", "imported": [ { "success": true, "message": "voluptate", "original": { "_id": "4321abcdef694aa79dae47ad", "name": "My document", "description": "A description of an automation.", "componentType": "workflows", "created": "2019-04-16T00:43:22.038Z", "lastUpdated": "2019-04-16T00:43:22.038Z", "gbac": { "write": [ "4321abcdef694aa79dae47ad", "5cb7b531d06cceb89fd21b1c", "4321abcdef694aa79dae47ad", "4321abcdef694aa79dae47ad", "5cb7b531d06cceb89fd21b1c" ], "read": [ "5cb7b531d06cceb89fd21b1c", "4321abcdef694aa79dae47ad", "5cb7b531d06cceb89fd21b1c", "5cb7b531d06cceb89fd21b1c", "4321abcdef694aa79dae47ad" ] }, "createdBy": "Lorem irure occaecat sint", "lastUpdatedBy": "nulla velit est fugiat", "componentName": "ex pariatur ad consequat", "componentId": "nulla exercitation in" }, "created": null }, { "success": true, "message": "commodo veniam", "original": { "_id": "4321abcdef694aa79dae47ad", "name": "My document", "description": "A description of an automation.", "componentType": null, "created": "2019-04-16T00:43:22.038Z", "lastUpdated": "2019-04-16T00:43:22.038Z", "gbac": { "write": [ "4321abcdef694aa79dae47ad", "5cb7b531d06cceb89fd21b1c", "5cb7b531d06cceb89fd21b1c" ], "read": [ "5cb7b531d06cceb89fd21b1c" ] }, "createdBy": "tempor in", "lastUpdatedBy": "in ad id", "componentName": null, "componentId": "sint deserunt eiusmod eu" }, "created": null }, { "success": false, "message": "dolore laborum culpa irure ipsum", "original": { "_id": "5cb7b531d06cceb89fd21b1c", "name": "My document", "description": "A description of an automation.", "componentType": null, "created": "2019-04-16T00:43:22.038Z", "lastUpdated": "2019-04-16T00:43:22.038Z", "gbac": { "write": [ "5cb7b531d06cceb89fd21b1c", "5cb7b531d06cceb89fd21b1c", "4321abcdef694aa79dae47ad", "5cb7b531d06cceb89fd21b1c" ], "read": [ "5cb7b531d06cceb89fd21b1c", "5cb7b531d06cceb89fd21b1c", "5cb7b531d06cceb89fd21b1c", "4321abcdef694aa79dae47ad", "5cb7b531d06cceb89fd21b1c" ] }, "createdBy": "quis amet dolor et esse", "lastUpdatedBy": "occaecat aliqua non elit", "componentName": null, "componentId": "nisi" }, "created": null }, { "success": false, "message": "aliquip magna labore", "original": { "_id": "5cb7b531d06cceb89fd21b1c", "name": "My document", "description": "A description of an automation.", "componentType": null, "created": "2019-04-16T00:43:22.038Z", "lastUpdated": "2019-04-16T00:43:22.038Z", "gbac": { "write": [ "4321abcdef694aa79dae47ad", "5cb7b531d06cceb89fd21b1c", "4321abcdef694aa79dae47ad", "4321abcdef694aa79dae47ad" ], "read": [ "4321abcdef694aa79dae47ad", "4321abcdef694aa79dae47ad", "5cb7b531d06cceb89fd21b1c", "4321abcdef694aa79dae47ad" ] }, "createdBy": "sunt incididunt eu tempor", "lastUpdatedBy": "in cillum dolor dolore sit", "componentName": "proident occaecat anim veniam", "componentId": null }, "created": null }, { "success": true, "message": "incididunt nostrud Excepteur Duis cupidatat", "original": { "_id": "5cb7b531d06cceb89fd21b1c", "name": "My document", "description": "A description of an automation.", "componentType": null, "created": "2019-04-16T00:43:22.038Z", "lastUpdated": "2019-04-16T00:43:22.038Z", "gbac": { "write": [ "4321abcdef694aa79dae47ad", "5cb7b531d06cceb89fd21b1c", "5cb7b531d06cceb89fd21b1c" ], "read": [ "4321abcdef694aa79dae47ad" ] }, "createdBy": "officia consequat non enim dolore", "lastUpdatedBy": "nostrud pariatur", "componentName": null, "componentId": "cupidatat et exercitation ad" }, "created": { "_id": "4321abcdef694aa79dae47ad", "name": "My document", "description": "A description of an automation.", "componentType": "workflows", "created": "2019-04-16T00:43:22.038Z", "lastUpdated": "2019-04-16T00:43:22.038Z", "gbac": { "write": [ "4321abcdef694aa79dae47ad", "4321abcdef694aa79dae47ad", "4321abcdef694aa79dae47ad" ], "read": [ "5cb7b531d06cceb89fd21b1c", "5cb7b531d06cceb89fd21b1c", "5cb7b531d06cceb89fd21b1c" ] }, "createdBy": "veniam", "lastUpdatedBy": "in", "componentName": "consequat et occaecat dolore tempor", "componentId": "dolore esse aliqua" } } ] }
{ "title": "status", "type": "object", "properties": { "status": { "type": "string", "const": "success" }, "message": { "type": "string", "example": "2 automation imported successfully" }, "imported": { "type": "array", "items": { "success": { "type": "boolean" }, "message": { "type": "string" }, "original": { "$ref": "automation-api" }, "created": { "oneOf": [ { "type": "null" }, { "$ref": "automation-api" } ] } } } } }