Summary
Import compliance plan documents
Description
Insert compliance plan documents into the ucm_compliance_plans collection
Route
POST /configuration_manager/import/plans
Roles
Parameters
Name | Type | Required | Description |
---|---|---|---|
plans | array | yes | Array of compliance plans |
{ "plans": [ { "_id": "velit", "name": "sit adipisicing", "description": "dolore", "nodes": [ { "treeId": "in do ut ea", "version": "Excepteur in reprehenderit", "nodeId": "dolore" }, { "treeId": "minim proident", "version": "eiusmod tempor", "nodeId": "cillum in non mollit Lorem" }, { "treeId": "ipsum pariatur dolore qui nisi", "version": "Ut ut", "nodeId": "dolor commodo labore" }, { "treeId": "esse sed cupidatat", "version": "ut", "nodeId": "laborum commodo est" }, { "treeId": "nostrud dolore", "version": "in nisi ad sunt laborum", "nodeId": "ullamco adipisicing" } ], "gbac": { "read": [ "63696917c49ecc7b03b5f02b", "63696917c49ecc7b03b5f02b" ], "write": [ "63696917c49ecc7b03b5f02b" ] } }, { "_id": "ut labore officia", "name": "anim commodo deserunt veniam", "description": "deserunt pariatur Excepteur ut id", "nodes": [ { "treeId": "anim", "version": "adipisicing deserunt cupidatat ea", "nodeId": "occaecat" }, { "treeId": "Ut labore deserunt tempor", "version": "incididunt Ut dolor in nostrud", "nodeId": "voluptate aliqua" } ], "gbac": { "read": [ "63696917c49ecc7b03b5f02b", "63696917c49ecc7b03b5f02b", "63696917c49ecc7b03b5f02b" ], "write": [ "63696917c49ecc7b03b5f02b", "63696917c49ecc7b03b5f02b", "63696917c49ecc7b03b5f02b" ] } }, { "_id": "dolore voluptate", "name": "sit incididunt ex", "description": "nisi incididunt proident", "nodes": [ { "treeId": "sed reprehenderit dolore ex", "version": "Lorem ut", "nodeId": "minim sint ipsum id" } ], "gbac": { "read": [ "63696917c49ecc7b03b5f02b", "63696917c49ecc7b03b5f02b", "63696917c49ecc7b03b5f02b" ], "write": [ "63696917c49ecc7b03b5f02b", "63696917c49ecc7b03b5f02b", "63696917c49ecc7b03b5f02b", "63696917c49ecc7b03b5f02b" ] } }, { "_id": "cupidatat", "name": "magna nostrud adipisicing exercitation", "description": "Excepteur dolor in culpa", "nodes": [ { "treeId": "dolor", "version": "esse", "nodeId": "veniam incididunt" }, { "treeId": "cupidatat nostrud", "version": "cillum dolore ullamco Duis", "nodeId": "consequat" }, { "treeId": "enim ut ullamco cupidatat anim", "version": "enim ad ea sint quis", "nodeId": "Duis elit laboris" } ], "gbac": { "read": [ "63696917c49ecc7b03b5f02b", "63696917c49ecc7b03b5f02b", "63696917c49ecc7b03b5f02b", "63696917c49ecc7b03b5f02b" ], "write": [ "63696917c49ecc7b03b5f02b", "63696917c49ecc7b03b5f02b", "63696917c49ecc7b03b5f02b" ] } }, { "_id": "ad in Lorem sunt", "name": "sint", "description": "culpa sit id dolore", "nodes": [ { "treeId": "mollit nulla quis est non", "version": "mollit adipisicing laboris deserunt proident", "nodeId": "Lorem elit in Ut" } ], "gbac": { "read": [ "63696917c49ecc7b03b5f02b", "63696917c49ecc7b03b5f02b", "63696917c49ecc7b03b5f02b" ], "write": [ "63696917c49ecc7b03b5f02b", "63696917c49ecc7b03b5f02b", "63696917c49ecc7b03b5f02b", "63696917c49ecc7b03b5f02b", "63696917c49ecc7b03b5f02b" ] } } ] }
{ "type": "object", "properties": { "plans": { "title": "plans", "type": "array", "items": { "type": "object", "properties": { "_id": { "type": "string", "description": "The ID of the compliance plan." }, "name": { "type": "string", "description": "The name of the compliance plan to import" }, "description": { "type": "string", "description": "The description of the compliance plan to import" }, "nodes": { "type": "array", "items": { "type": "object", "properties": { "treeId": { "type": "string", "description": "The treeId of the GC that the node belongs to." }, "version": { "type": "string", "description": "The version of the GC tree that the node belongs to." }, "nodeId": { "type": "string", "description": "The configId of the node." }, "variables": { "type": "object", "example": "{ \"ipAddress\": \"1.2.3.4\" }" } } } }, "gbac": { "type": "object", "properties": { "read": { "type": "array", "items": { "type": "string", "examples": [ "63696917c49ecc7b03b5f02b" ] } }, "write": { "type": "array", "items": { "type": "string", "examples": [ "63696917c49ecc7b03b5f02b" ] } } } } } } } }, "required": [ "plans" ], "additionalProperties": false }
Return
Name | Type | Description |
---|---|---|
status | object | Status of compliance plan import operation |
{ "status": "success", "message": "commodo sit" }
{ "title": "status", "type": "object", "properties": { "status": { "type": "string", "const": "success" }, "message": { "type": "string", "example": "2 compliance plan(s) imported successfully." } } }