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