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": "est amet aliqua Ut mollit", "imported": [ { "success": true, "message": "reprehenderit dolor qui nisi", "original": { "name": "My document", "_id": "5cb7b531d06cceb89fd21b1c", "description": "A description about an Automation", "componentType": "workflows", "componentId": "Lorem dolore eu eiusmod id", "gbac": { "write": [ "5cb7b531d06cceb89fd21b1c", "4321abcdef694aa79dae47ad", "4321abcdef694aa79dae47ad", "5cb7b531d06cceb89fd21b1c", "4321abcdef694aa79dae47ad" ], "read": [ "4321abcdef694aa79dae47ad", "4321abcdef694aa79dae47ad", "5cb7b531d06cceb89fd21b1c", "5cb7b531d06cceb89fd21b1c", "5cb7b531d06cceb89fd21b1c" ] }, "created": "2019-04-16T00:43:22.038Z", "createdBy": "Pronghorn", "lastUpdated": "2019-04-16T00:43:22.038Z", "lastUpdatedBy": "5cb7b531d06cceb89fd21b1c" }, "created": { "name": "My document", "_id": "5cb7b531d06cceb89fd21b1c", "description": "A description about an Automation", "componentType": "workflows", "componentId": "Excepteur ea", "gbac": { "write": [ "5cb7b531d06cceb89fd21b1c", "4321abcdef694aa79dae47ad", "5cb7b531d06cceb89fd21b1c", "4321abcdef694aa79dae47ad", "4321abcdef694aa79dae47ad" ], "read": [ "4321abcdef694aa79dae47ad" ] }, "created": "2019-04-16T00:43:22.038Z", "createdBy": "Pronghorn", "lastUpdated": "2019-04-16T00:43:22.038Z", "lastUpdatedBy": "Pronghorn" } }, { "success": true, "message": "sint occaecat ea sed tempor", "original": { "name": "My document", "_id": "5cb7b531d06cceb89fd21b1c", "description": "A description about an Automation", "componentType": null, "componentId": "in occaecat voluptate", "gbac": { "write": [ "5cb7b531d06cceb89fd21b1c" ], "read": [ "4321abcdef694aa79dae47ad", "4321abcdef694aa79dae47ad", "4321abcdef694aa79dae47ad" ] }, "created": "2019-04-16T00:43:22.038Z", "createdBy": "5cb7b531d06cceb89fd21b1c", "lastUpdated": "2019-04-16T00:43:22.038Z", "lastUpdatedBy": "5cb7b531d06cceb89fd21b1c" }, "created": { "name": "My document", "_id": "5cb7b531d06cceb89fd21b1c", "description": "A description about an Automation", "componentType": null, "componentId": "sint non dolor culpa", "gbac": { "write": [ "4321abcdef694aa79dae47ad", "4321abcdef694aa79dae47ad" ], "read": [ "4321abcdef694aa79dae47ad", "5cb7b531d06cceb89fd21b1c" ] }, "created": "2019-04-16T00:43:22.038Z", "createdBy": "4321abcdef694aa79dae47ad", "lastUpdated": "2019-04-16T00:43:22.038Z", "lastUpdatedBy": "4321abcdef694aa79dae47ad" } }, { "success": false, "message": "amet voluptate Ut", "original": { "name": "My document", "_id": "5cb7b531d06cceb89fd21b1c", "description": "A description about an Automation", "componentType": "workflows", "componentId": "ex non adipisicing eiusmod", "gbac": { "write": [ "4321abcdef694aa79dae47ad", "4321abcdef694aa79dae47ad", "5cb7b531d06cceb89fd21b1c", "4321abcdef694aa79dae47ad" ], "read": [ "5cb7b531d06cceb89fd21b1c" ] }, "created": "2019-04-16T00:43:22.038Z", "createdBy": "4321abcdef694aa79dae47ad", "lastUpdated": "2019-04-16T00:43:22.038Z", "lastUpdatedBy": "5cb7b531d06cceb89fd21b1c" }, "created": { "name": "My document", "_id": "5cb7b531d06cceb89fd21b1c", "description": "A description about an Automation", "componentType": null, "componentId": null, "gbac": { "write": [ "4321abcdef694aa79dae47ad", "5cb7b531d06cceb89fd21b1c", "4321abcdef694aa79dae47ad", "4321abcdef694aa79dae47ad" ], "read": [ "4321abcdef694aa79dae47ad" ] }, "created": "2019-04-16T00:43:22.038Z", "createdBy": "5cb7b531d06cceb89fd21b1c", "lastUpdated": "2019-04-16T00:43:22.038Z", "lastUpdatedBy": "4321abcdef694aa79dae47ad" } }, { "success": false, "message": "reprehenderit anim", "original": { "name": "My document", "_id": "4321abcdef694aa79dae47ad", "description": "A description about an Automation", "componentType": "workflows", "componentId": null, "gbac": { "write": [ "5cb7b531d06cceb89fd21b1c", "5cb7b531d06cceb89fd21b1c", "5cb7b531d06cceb89fd21b1c", "4321abcdef694aa79dae47ad" ], "read": [ "4321abcdef694aa79dae47ad", "4321abcdef694aa79dae47ad", "4321abcdef694aa79dae47ad", "5cb7b531d06cceb89fd21b1c", "5cb7b531d06cceb89fd21b1c" ] }, "created": "2019-04-16T00:43:22.038Z", "createdBy": "4321abcdef694aa79dae47ad", "lastUpdated": "2019-04-16T00:43:22.038Z", "lastUpdatedBy": "4321abcdef694aa79dae47ad" }, "created": { "name": "My document", "_id": "4321abcdef694aa79dae47ad", "description": "A description about an Automation", "componentType": null, "componentId": "aute eu ex", "gbac": { "write": [ "4321abcdef694aa79dae47ad", "5cb7b531d06cceb89fd21b1c", "5cb7b531d06cceb89fd21b1c" ], "read": [ "4321abcdef694aa79dae47ad" ] }, "created": "2019-04-16T00:43:22.038Z", "createdBy": "Pronghorn", "lastUpdated": "2019-04-16T00:43:22.038Z", "lastUpdatedBy": "Pronghorn" } } ] }
{ "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": "automations-schema" }, "created": { "oneOf": [ { "type": "null" }, { "$ref": "automations-schema" } ] } } } } }