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": "occaecat in consequat voluptate", "name": "ad commodo", "description": "laboris fugiat", "nodes": [ { "treeId": "incididunt dolore", "version": "sunt", "nodeId": "veniam" }, { "treeId": "laborum pariatur", "version": "labore est irure Duis sint", "nodeId": "ad anim" }, { "treeId": "sit ad in anim", "version": "fugiat", "nodeId": "aliquip laboris enim" }, { "treeId": "labore", "version": "ut", "nodeId": "mollit qui exercitation adipisicing" } ], "gbac": { "read": [ "63696917c49ecc7b03b5f02b", "63696917c49ecc7b03b5f02b", "63696917c49ecc7b03b5f02b", "63696917c49ecc7b03b5f02b" ], "write": [ "63696917c49ecc7b03b5f02b", "63696917c49ecc7b03b5f02b" ] } }, { "_id": "Excepteur fugiat cupidatat", "name": "adipisicing eiusmod nisi aliquip", "description": "eu est et eiusmod", "nodes": [ { "treeId": "aliqua exercitation eiusmod sint velit", "version": "dolor", "nodeId": "Lorem" }, { "treeId": "in consequat", "version": "officia aliquip Ut fugiat", "nodeId": "ex mollit commodo" }, { "treeId": "mollit ipsum id", "version": "occaecat", "nodeId": "minim aliquip" }, { "treeId": "incididunt", "version": "proident", "nodeId": "qui ipsum aliqua" }, { "treeId": "Excepteur enim commodo mollit fugiat", "version": "in enim", "nodeId": "cillum proident Lorem sit" } ], "gbac": { "read": [ "63696917c49ecc7b03b5f02b", "63696917c49ecc7b03b5f02b", "63696917c49ecc7b03b5f02b", "63696917c49ecc7b03b5f02b" ], "write": [ "63696917c49ecc7b03b5f02b", "63696917c49ecc7b03b5f02b", "63696917c49ecc7b03b5f02b", "63696917c49ecc7b03b5f02b", "63696917c49ecc7b03b5f02b" ] } }, { "_id": "et anim", "name": "velit nisi commodo laboris", "description": "magna ullamco quis aliqua mollit", "nodes": [ { "treeId": "est", "version": "voluptate", "nodeId": "laboris elit voluptate minim aliquip" }, { "treeId": "sed non", "version": "officia dolor occaecat ipsum sit", "nodeId": "ex aliqua Duis consequat" }, { "treeId": "cillum proident in sunt", "version": "veniam qui eiusmod", "nodeId": "id adipisicing Lorem" }, { "treeId": "in sit", "version": "exercitation sed", "nodeId": "magna" } ], "gbac": { "read": [ "63696917c49ecc7b03b5f02b", "63696917c49ecc7b03b5f02b", "63696917c49ecc7b03b5f02b", "63696917c49ecc7b03b5f02b" ], "write": [ "63696917c49ecc7b03b5f02b", "63696917c49ecc7b03b5f02b", "63696917c49ecc7b03b5f02b" ] } }, { "_id": "mollit irure commodo", "name": "est Duis dolor mollit", "description": "reprehenderit irure sit", "nodes": [ { "treeId": "velit incididunt do tempor", "version": "sed", "nodeId": "eiusmod Lorem officia" }, { "treeId": "reprehenderit in Duis aliqua sint", "version": "occaecat Duis velit exercitation aute", "nodeId": "deserunt ullamco ad" }, { "treeId": "sit et", "version": "laboris laborum eiusmod", "nodeId": "ut eiusmod" }, { "treeId": "adipisicing do sed labore in", "version": "in quis fugiat", "nodeId": "ipsum officia esse" }, { "treeId": "voluptate ex", "version": "deserunt labore Ut quis dolor", "nodeId": "aliquip occaecat" } ], "gbac": { "read": [ "63696917c49ecc7b03b5f02b", "63696917c49ecc7b03b5f02b", "63696917c49ecc7b03b5f02b" ], "write": [ "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": "in velit" }
{ "title": "status", "type": "object", "properties": { "status": { "type": "string", "const": "success" }, "message": { "type": "string", "example": "2 compliance plan(s) imported successfully." } } }