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