Summary
Add one or more components to Project
Description
Add one or more components to Project
Route
POST /automation-studio/projects/:projectId/components/add
Roles
Parameters
Name | Type | Required | Description |
---|---|---|---|
projectId | string | yes | Project identifier |
options | object | yes | Configuration options for adding components to a Project |
{ "components": [ { "iid": 43143438, "type": "template", "reference": "quis officia sed", "folder": "/" } ], "mode": "move" }
{ "title": "options", "type": "object", "required": [ "components" ], "properties": { "components": { "$ref": "projects-common#/definitions/components" }, "mode": { "type": "string", "enum": [ "move", "copy" ] } } }
Return
Name | Type | Description |
---|---|---|
response | object | Updated project |
{ "message": "officia", "data": [ { "_id": "62a1f3d2ebedfc54e6e0065c", "iid": 87475474, "name": "Firewall Service Provisioning", "description": "This project is comprised of two major elements: 1) Workflows handling customer self-service, and 2) Workflows used by operations teams to provision service internally", "members": [ { "type": "group", "reference": "4321abcdef694aa79dae47ad", "role": "operator", "missing": false, "username": "tempor", "name": "laborum quis commodo", "provenance": "non dolore consequat eu" }, { "type": "account", "reference": "5cb7b531d06cceb89fd21b1c", "role": "viewer", "missing": true, "username": "Lorem enim cupidatat Ut", "name": "dolore laborum in pariatur tempor", "provenance": "nostrud dolor ea eiusmod" } ], "accessControl": { "read": [ "commodo laboris cupidatat", "esse" ], "write": [ "elit officia", "laboris eiusmod", "occaecat incididunt", "voluptate labore magna cillum sit" ], "execute": [ "non dolore occaecat tempor", "laboris voluptate" ], "manage": [ "occaecat", "adipisicing exercitation pariatur", "aute in" ] }, "componentIidIndex": 55705196, "components": [ { "iid": 12810021, "type": "jsonForm", "reference": "ut Duis ea fugiat ipsum", "folder": "/" } ], "created": "2019-11-25T22:51:39.201Z", "createdBy": { "_id": "4321abcdef694aa79dae47ad", "username": "irure sit deserunt ut", "provenance": "quis", "missing": false }, "lastUpdated": "2019-11-25T22:51:39.201Z", "lastUpdatedBy": { "_id": "Pronghorn", "username": "tempor consequat dolor anim", "provenance": "adipisicing laborum exercitation", "missing": false }, "versionHistory": [ { "versionNumber": -22941621, "commitMessage": "aliqua dolor", "author": "ex occaecat", "branchName": "adipisicing" }, { "versionNumber": -24785596, "commitMessage": "eu", "author": "minim qui aliquip", "branchName": "ut do" }, { "versionNumber": -63471994, "commitMessage": "occaecat ullamco fugiat", "author": "culpa quis Duis cillum", "branchName": "aliqua pariatur adipisicing anim magna" }, { "versionNumber": 94954757, "commitMessage": "dolore eu", "author": "cillum", "branchName": "ad deserunt in pariatur" } ], "gitConfiguration": { "connectionType": "GitHub", "repositoryPath": "pariatur", "branchName": "ex dolore", "projectPath": "qui esse deserunt irure mollit" } }, { "_id": "5cb7b531d06cceb89fd21b1c", "iid": 19613454, "name": "Firewall Service Provisioning", "description": "This project is comprised of two major elements: 1) Workflows handling customer self-service, and 2) Workflows used by operations teams to provision service internally", "members": [ { "type": "group", "reference": "5cb7b531d06cceb89fd21b1c", "role": "viewer", "missing": false, "username": "occaecat ut ex exercitation", "name": "dolor laboris amet", "provenance": "dolore qui" } ], "accessControl": { "read": [ "dolore amet in proident", "dolor aliqua deserunt nostrud Lorem", "veniam sit Duis laboris" ], "write": [ "voluptate", "pariatur nulla dolor", "nostrud", "amet velit consequat irure dolore", "consequat" ], "execute": [ "officia dolor aliquip et nisi", "veniam", "do aliqua id laborum" ], "manage": [ "qui", "nisi quis", "commodo", "proident dolor aliqua ipsum laborum", "sunt" ] }, "componentIidIndex": 83457943, "components": [ { "iid": 22534987, "type": "workflow", "reference": "ipsum nisi deserunt", "folder": "/" } ], "created": "2019-11-25T22:51:39.201Z", "createdBy": { "_id": "62a1f3d2ebedfc54e6e0065c", "username": "in commodo ut qui nisi", "provenance": "ad laboris Ut ea", "missing": true }, "lastUpdated": "2019-11-25T22:51:39.201Z", "lastUpdatedBy": { "_id": "62a1f3d2ebedfc54e6e0065c", "username": "eiusmod minim pariatur", "provenance": "reprehenderit Lorem et Excepteur", "missing": true }, "versionHistory": [ { "versionNumber": 95416351, "commitMessage": "et ut officia Ut", "author": "cillum", "branchName": "minim eu" }, { "versionNumber": -61765276, "commitMessage": "sint commodo Ut sunt voluptate", "author": "laborum nisi sunt", "branchName": "nostrud ad eiusmod occaecat" }, { "versionNumber": -15583589, "commitMessage": "id cillum dolore", "author": "amet est ipsum esse ea", "branchName": "dolore sunt" }, { "versionNumber": 39814899, "commitMessage": "enim", "author": "eiusmod ipsum sit", "branchName": "exercitation" } ], "gitConfiguration": { "connectionType": "GitHub", "repositoryPath": "ea sit nisi dolore", "branchName": "esse magna nulla", "projectPath": "aliquip elit" } }, { "_id": "62a1f3d2ebedfc54e6e0065c", "iid": 78879045, "name": "Arista EOS Utilities", "description": "This project is comprised of two major elements: 1) Workflows handling customer self-service, and 2) Workflows used by operations teams to provision service internally", "members": [ { "type": "account", "reference": "5cb7b531d06cceb89fd21b1c", "role": "editor", "missing": true, "username": "do sint cillum dolor enim", "name": "veniam nostrud culpa magna", "provenance": "laboris proident nulla deserunt velit" }, { "type": "group", "reference": "4321abcdef694aa79dae47ad", "role": "owner", "missing": true, "username": "cillum do", "name": "non est", "provenance": "laboris magna enim non Excepteur" }, { "type": "account", "reference": "5cb7b531d06cceb89fd21b1c", "role": "owner", "missing": true, "username": "proident voluptate sit eiusmod eu", "name": "in elit ipsum eiusmod tempor", "provenance": "exercitation ea dolore aliquip pariatur" } ], "accessControl": { "read": [ "nisi ad aliquip eiusmod" ], "write": [ "ad ut magna commodo", "ut ullamco", "voluptate pariatur", "voluptate", "aliquip dolor laboris aute non" ], "execute": [ "dolor ut nulla", "id" ], "manage": [ "fugiat tempor irure laborum incididunt", "amet officia", "cupidatat", "mollit aliqua do nostrud cupidatat", "magna velit sed" ] }, "componentIidIndex": 82822499, "components": [ { "iid": 21101385, "type": "template", "reference": "cupidatat nulla", "folder": "/" }, { "iid": 71429936, "type": "mopCommandTemplate", "reference": "do mollit", "folder": "/" }, { "iid": 39497083, "type": "template", "reference": "nisi eu ullamco et", "folder": "/" }, { "iid": 24126829, "type": "mopCommandTemplate", "reference": "Duis sint anim proident", "folder": "/" } ], "created": "2019-11-25T22:51:39.201Z", "createdBy": { "_id": "5cb7b531d06cceb89fd21b1c", "username": "laboris ut", "provenance": "ex ea in ipsum deserunt", "missing": true }, "lastUpdated": "2019-11-25T22:51:39.201Z", "lastUpdatedBy": { "_id": "Pronghorn", "username": null, "provenance": "sed in ut", "missing": true }, "versionHistory": [ { "versionNumber": -25439426, "commitMessage": "consequat incididunt reprehenderit Excepteur elit", "author": "eiusmod minim commodo", "branchName": "reprehenderit esse amet dolor occaecat" } ], "gitConfiguration": { "connectionType": "GitLab", "repositoryPath": "ut", "branchName": "amet", "projectPath": "ad officia" } }, { "_id": "5cb7b531d06cceb89fd21b1c", "iid": 46395700, "name": "Firewall Service Provisioning", "description": "This project is comprised of two major elements: 1) Workflows handling customer self-service, and 2) Workflows used by operations teams to provision service internally", "members": [ { "type": "account", "reference": "5cb7b531d06cceb89fd21b1c", "role": "viewer", "missing": true, "username": "incididunt veniam tempor", "name": "non occaecat nisi sed magna", "provenance": "incididunt nulla ullamco elit" }, { "type": "group", "reference": "4321abcdef694aa79dae47ad", "role": "editor", "missing": true, "username": "Excepteur ut", "name": "Duis nostrud sed magna", "provenance": "Ut" }, { "type": "account", "reference": "4321abcdef694aa79dae47ad", "role": "owner", "missing": true, "username": "dolor consectetur cillum ad sed", "name": "ea Ut", "provenance": "enim ut" }, { "type": "group", "reference": "5cb7b531d06cceb89fd21b1c", "role": "owner", "missing": false, "username": "qui occaecat", "name": "in amet in", "provenance": "dolore esse" }, { "type": "account", "reference": "5cb7b531d06cceb89fd21b1c", "role": "owner", "missing": false, "username": "proident", "name": "ut est mollit minim deserunt", "provenance": "Excepteur voluptate" } ], "accessControl": { "read": [ "deserunt labore ex", "tempor nulla", "anim", "eu culpa ullamco id est" ], "write": [ "sed Ut aute nostrud", "tempor" ], "execute": [ "in id nulla", "tempor aliqua", "incididunt laborum enim nulla id", "aliqua ad sunt", "amet cupidatat" ], "manage": [ "veniam in et tempor sed" ] }, "componentIidIndex": 49471767, "components": [ { "iid": 48200828, "type": "mopAnalyticTemplate", "reference": "deserunt", "folder": "/" }, { "iid": 40627536, "type": "transformation", "reference": "laborum", "folder": "/" }, { "iid": 89008003, "type": "workflow", "reference": "velit in ex aute irure", "folder": "/" }, { "iid": 92266430, "type": "transformation", "reference": "sit", "folder": "/" }, { "iid": 99359972, "type": "mopAnalyticTemplate", "reference": "laborum fugiat veniam nulla", "folder": "/" } ], "created": "2019-11-25T22:51:39.201Z", "createdBy": { "_id": "Pronghorn", "username": null, "provenance": "elit eu", "missing": true }, "lastUpdated": "2019-11-25T22:51:39.201Z", "lastUpdatedBy": { "_id": "Pronghorn", "username": null, "provenance": "et nisi qui magna", "missing": true }, "versionHistory": [ { "versionNumber": 39506095, "commitMessage": "Lorem cupidatat ut Excepteur mollit", "author": "sunt adipisicing in", "branchName": "mollit deserunt in fugiat culpa" } ], "gitConfiguration": { "connectionType": "GitHub", "repositoryPath": "fugiat quis veniam minim Excepteur", "branchName": "in", "projectPath": "sit" } }, { "_id": "5cb7b531d06cceb89fd21b1c", "iid": 73700629, "name": "Firewall Service Provisioning", "description": "This project is used at Acme Corp as the foundation of some major parts of our business process.", "members": [ { "type": "group", "reference": "5cb7b531d06cceb89fd21b1c", "role": "viewer", "missing": true, "username": "ut id occaecat minim", "name": "labore Ut", "provenance": "deserunt elit" }, { "type": "group", "reference": "4321abcdef694aa79dae47ad", "role": "operator", "missing": true, "username": "in reprehenderit", "name": "veniam velit", "provenance": "mollit ut dolor amet irure" }, { "type": "account", "reference": "5cb7b531d06cceb89fd21b1c", "role": "owner", "missing": false, "username": "minim culpa", "name": "do amet et deserunt nisi", "provenance": "enim cupidatat voluptate" }, { "type": "account", "reference": "5cb7b531d06cceb89fd21b1c", "role": "editor", "missing": false, "username": "ipsum nostrud est aliqua", "name": "Ut eiusmod", "provenance": "in fugiat ipsum" } ], "accessControl": { "read": [ "in laboris in" ], "write": [ "do enim", "dolore incididunt consectetur tempor" ], "execute": [ "commodo dolor reprehenderit dolore", "exercitation elit aute cupidatat", "culpa anim sunt" ], "manage": [ "adipisicing minim", "proident", "aliqua officia", "non velit aliquip enim", "ut" ] }, "componentIidIndex": 86433887, "components": [ { "iid": 36897398, "type": "mopAnalyticTemplate", "reference": "dolor dolor et", "folder": "/" }, { "iid": 34148994, "type": "mopCommandTemplate", "reference": "ut", "folder": "/" } ], "created": "2019-11-25T22:51:39.201Z", "createdBy": { "_id": "5cb7b531d06cceb89fd21b1c", "username": "commodo qui", "provenance": "sed magna nulla cupidatat in", "missing": false }, "lastUpdated": "2019-11-25T22:51:39.201Z", "lastUpdatedBy": { "_id": "4321abcdef694aa79dae47ad", "username": "do", "provenance": "eiusmod quis", "missing": true }, "versionHistory": [ { "versionNumber": -62074191, "commitMessage": "magna est Lorem", "author": "quis nisi do Duis ea", "branchName": "in Duis" }, { "versionNumber": 78450316, "commitMessage": "et Lorem", "author": "in amet", "branchName": "mollit" }, { "versionNumber": -98689079, "commitMessage": "ex amet qui minim", "author": "culpa dolor dolore ipsum enim", "branchName": "consequat in" }, { "versionNumber": 84570048, "commitMessage": "adipisicing et", "author": "pariatur labore ad nulla Duis", "branchName": "sint" }, { "versionNumber": 50813222, "commitMessage": "fugiat aliquip irure", "author": "ut", "branchName": "consequat sunt ut qui id" } ], "gitConfiguration": { "connectionType": "GitLab", "repositoryPath": "quis commodo", "branchName": "ipsum aliquip nulla voluptate", "projectPath": "irure eu" } } ], "metadata": { "newComponents": [], "failedComponents": [], "idMap": [ { "original": "1a643151-459b-4a4a-be91-623536b65df3", "clone": "8696f332-030b-4c2a-8b1b-95844cbb6aea" } ] } }
{ "title": "response", "type": "object", "properties": { "message": { "type": "string" }, "data": { "type": "array", "items": { "$ref": "projects-http" } }, "metadata": { "type": "object", "properties": { "newComponents": { "type": "array", "description": "Components added" }, "failedComponents": { "type": "array", "description": "Components failed to add" }, "idMap": { "type": "array", "description": "Id map for original and cloned component", "examples": [ [ { "original": "1a643151-459b-4a4a-be91-623536b65df3", "clone": "8696f332-030b-4c2a-8b1b-95844cbb6aea" } ] ] } } } } }