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