├── Get%20Users%20with%20Role.postman_collection ├── Interact%20With%20Items.postman_collection ├── Manage%20Approvals.postman_collection ├── README.md ├── Request%20Catalog%20Item.postman_collection ├── VMware vRealize Automation 7 - Complete.json.postman_collection ├── VMware%20vRealize%20Automation%207%20Complete%20API.json.postman_collection ├── updatejson.py ├── vRA72.postman_environment └── vRealize Automation 7.2.postman_collection /Get%20Users%20with%20Role.postman_collection: -------------------------------------------------------------------------------- 1 | { 2 | "id": "7c042fb2-d9ff-b041-6865-5c683a146606", 3 | "name": "Get Users with Role", 4 | "description": "", 5 | "order": [ 6 | "57648235-6b57-88a8-5ebf-beaeb8c44c1c", 7 | "2f634f87-3fc6-e8a6-19f2-69878722f5ee" 8 | ], 9 | "folders": [], 10 | "timestamp": 1467029586769, 11 | "owner": "335659", 12 | "remoteLink": "", 13 | "public": false, 14 | "published": false, 15 | "requests": [ 16 | { 17 | "id": "2f634f87-3fc6-e8a6-19f2-69878722f5ee", 18 | "headers": "Accept: application/json\nContent-Type: application/json\nAuthorization: Bearer {{token}}\n", 19 | "url": "https://{{vra-fqdn}}/identity/api/authorization/tenants/{{tenant}}/principals?hasRole={{role}}", 20 | "preRequestScript": null, 21 | "pathVariables": {}, 22 | "method": "GET", 23 | "data": null, 24 | "dataMode": "params", 25 | "version": 2, 26 | "tests": "\n", 27 | "currentHelper": "normal", 28 | "helperAttributes": {}, 29 | "time": 1467030305398, 30 | "name": "Get Users with Role", 31 | "description": "", 32 | "collectionId": "7c042fb2-d9ff-b041-6865-5c683a146606", 33 | "responses": [] 34 | }, 35 | { 36 | "id": "57648235-6b57-88a8-5ebf-beaeb8c44c1c", 37 | "headers": "Accept: application/json\nContent-Type: application/json\n", 38 | "url": "https://{{vra-fqdn}}/identity/api/tokens", 39 | "preRequestScript": "", 40 | "pathVariables": {}, 41 | "method": "POST", 42 | "data": [], 43 | "dataMode": "raw", 44 | "version": 2, 45 | "tests": "postman.clearEnvironmentVariable(\"token\");\nvar data = JSON.parse(responseBody);\npostman.setEnvironmentVariable(\"token\", data.id);", 46 | "currentHelper": "normal", 47 | "helperAttributes": {}, 48 | "time": 1464913647264, 49 | "name": "Authenticate Tenant Admin", 50 | "description": "", 51 | "collectionId": "7c042fb2-d9ff-b041-6865-5c683a146606", 52 | "responses": [], 53 | "rawModeData": "{\n \"username\":\"{{tenantadmin}}\",\n \"password\":\"{{password}}\",\n \"tenant\":\"{{tenant}}\"\n}\n" 54 | } 55 | ] 56 | } -------------------------------------------------------------------------------- /Interact%20With%20Items.postman_collection: -------------------------------------------------------------------------------- 1 | { 2 | "id": "adb0bfad-c702-bba9-b3e3-2349a3eaed95", 3 | "name": "Interact With Items", 4 | "description": "", 5 | "order": [ 6 | "bf41393c-9502-99b4-6a28-198e8835992f", 7 | "aabf83b2-266b-66e9-cc3d-1539a78f7b21", 8 | "24b7b543-0bfe-c97e-8458-a6fd39aba2fa", 9 | "5eaf98a5-4723-12f7-d0cd-8301a7924ba1", 10 | "f03aec61-d640-3023-19f1-0fb38ce16a4e", 11 | "f4af64ce-b59b-5eea-3cf9-c92da6872f16", 12 | "a932172f-937b-f37e-7844-8718d8a72a43", 13 | "919e236f-ec24-d5a8-3c9e-fba36f7e8082" 14 | ], 15 | "folders": [], 16 | "timestamp": 1464602836852, 17 | "owner": "335659", 18 | "remoteLink": "", 19 | "public": false, 20 | "requests": [ 21 | { 22 | "id": "24b7b543-0bfe-c97e-8458-a6fd39aba2fa", 23 | "headers": "Accept: application/json\nContent-Type: application/json\nAuthorization: Bearer {{token}}\n", 24 | "url": "https://{{vra-fqdn}}/catalog-service/api/consumer/resources/{{id}}/actions", 25 | "preRequestScript": "", 26 | "pathVariables": {}, 27 | "method": "GET", 28 | "data": [ 29 | { 30 | "enabled": true, 31 | "type": "text", 32 | "value": "original", 33 | "key": "size" 34 | } 35 | ], 36 | "dataMode": "params", 37 | "version": 2, 38 | "tests": "", 39 | "currentHelper": "normal", 40 | "helperAttributes": {}, 41 | "time": 1464604548911, 42 | "name": "Available Deployment Actions", 43 | "description": "", 44 | "collectionId": "adb0bfad-c702-bba9-b3e3-2349a3eaed95", 45 | "responses": [] 46 | }, 47 | { 48 | "id": "5eaf98a5-4723-12f7-d0cd-8301a7924ba1", 49 | "headers": "Accept: application/json\nContent-Type: application/json\nAuthorization: Bearer {{token}}\n", 50 | "url": "https://{{vra-fqdn}}/catalog-service/api/consumer/requests", 51 | "preRequestScript": "", 52 | "pathVariables": {}, 53 | "method": "POST", 54 | "data": [], 55 | "dataMode": "raw", 56 | "version": 2, 57 | "tests": "", 58 | "currentHelper": "normal", 59 | "helperAttributes": {}, 60 | "time": 1464610783314, 61 | "name": "Request a Deployment Action", 62 | "description": "", 63 | "collectionId": "adb0bfad-c702-bba9-b3e3-2349a3eaed95", 64 | "responses": [], 65 | "rawModeData": "{\n \"@type\" : \"ResourceActionRequest\",\n \"resourceRef\" : {\n \"id\" : \"{{deploymentId}}\"\n },\n \"resourceActionRef\" : {\n \"id\" : \"{{actionId}}\"\n },\n \"organization\" : {\n \"tenantRef\" : \"vsphere.local\",\n \"tenantLabel\" : \"vsphere.local\",\n \"subtenantRef\" : \"29a02ed9-7e63-4c77-8a15-c930afb0e3d8\",\n \"subtenantLabel\" : \"Development\"\n },\n \"state\" : \"SUBMITTED\",\n \"requestNumber\" : 0,\n \"requestData\" : {\n \"entries\" : []\n }\n}" 66 | }, 67 | { 68 | "id": "919e236f-ec24-d5a8-3c9e-fba36f7e8082", 69 | "headers": "Accept: application/json\nContent-Type: application/json\nAuthorization: Bearer {{token}}\n", 70 | "url": "https://{{vra-fqdn}}/catalog-service/api/consumer/requests", 71 | "pathVariables": {}, 72 | "preRequestScript": "", 73 | "method": "GET", 74 | "collectionId": "adb0bfad-c702-bba9-b3e3-2349a3eaed95", 75 | "data": [ 76 | { 77 | "enabled": true, 78 | "type": "text", 79 | "value": "original", 80 | "key": "size" 81 | } 82 | ], 83 | "dataMode": "params", 84 | "name": "Get Request Status", 85 | "description": "", 86 | "descriptionFormat": "html", 87 | "time": 1464599256713, 88 | "version": 2, 89 | "responses": [], 90 | "tests": "", 91 | "currentHelper": "normal", 92 | "helperAttributes": {} 93 | }, 94 | { 95 | "id": "a932172f-937b-f37e-7844-8718d8a72a43", 96 | "headers": "Accept: application/json\nContent-Type: application/json\nAuthorization: Bearer {{token}}\n", 97 | "url": "https://{{vra-fqdn}}/catalog-service/api/consumer/requests", 98 | "preRequestScript": "", 99 | "pathVariables": {}, 100 | "method": "POST", 101 | "data": [], 102 | "dataMode": "raw", 103 | "version": 2, 104 | "tests": "", 105 | "currentHelper": "normal", 106 | "helperAttributes": {}, 107 | "time": 1464610771618, 108 | "name": "Request a Machine Action", 109 | "description": "", 110 | "collectionId": "adb0bfad-c702-bba9-b3e3-2349a3eaed95", 111 | "responses": [], 112 | "rawModeData": "{\n \"@type\" : \"ResourceActionRequest\",\n \"resourceRef\" : {\n \"id\" : \"{{machineId}}\"\n },\n \"resourceActionRef\" : {\n \"id\" : \"{{actionId}}\"\n },\n \"organization\" : {\n \"tenantRef\" : \"vsphere.local\",\n \"tenantLabel\" : \"vsphere.local\",\n \"subtenantRef\" : \"29a02ed9-7e63-4c77-8a15-c930afb0e3d8\",\n \"subtenantLabel\" : \"Development\"\n },\n \"state\" : \"SUBMITTED\",\n \"requestNumber\" : 0,\n \"requestData\" : {\n \"entries\" : []\n }\n}" 113 | }, 114 | { 115 | "id": "aabf83b2-266b-66e9-cc3d-1539a78f7b21", 116 | "headers": "Accept: application/json\nContent-Type: application/json\nAuthorization: Bearer {{token}}\n", 117 | "url": "https://{{vra-fqdn}}/catalog-service/api/consumer/resources/types/composition.resource.type.deployment", 118 | "preRequestScript": "", 119 | "pathVariables": {}, 120 | "method": "GET", 121 | "data": [ 122 | { 123 | "enabled": true, 124 | "type": "text", 125 | "value": "original", 126 | "key": "size" 127 | } 128 | ], 129 | "dataMode": "params", 130 | "version": 2, 131 | "tests": "", 132 | "currentHelper": "normal", 133 | "helperAttributes": {}, 134 | "time": 1464603891014, 135 | "name": "Get Deployments", 136 | "description": "", 137 | "collectionId": "adb0bfad-c702-bba9-b3e3-2349a3eaed95", 138 | "responses": [] 139 | }, 140 | { 141 | "id": "bf41393c-9502-99b4-6a28-198e8835992f", 142 | "headers": "Accept: application/json\nContent-Type: application/json\n", 143 | "url": "https://{{vra-fqdn}}/identity/api/tokens", 144 | "preRequestScript": "", 145 | "pathVariables": {}, 146 | "method": "POST", 147 | "data": [], 148 | "dataMode": "raw", 149 | "version": 2, 150 | "tests": "postman.clearEnvironmentVariable(\"token\");\nvar data = JSON.parse(responseBody);\npostman.setEnvironmentVariable(\"token\", data.id);", 151 | "currentHelper": "normal", 152 | "helperAttributes": {}, 153 | "time": 1464602031054, 154 | "name": "BG User Login", 155 | "description": "", 156 | "collectionId": "adb0bfad-c702-bba9-b3e3-2349a3eaed95", 157 | "responses": [], 158 | "rawModeData": "{\n \"username\":\"{{bguser}}\",\n \"password\":\"{{password}}\",\n \"tenant\":\"{{tenant}}\"\n}\n" 159 | }, 160 | { 161 | "id": "f03aec61-d640-3023-19f1-0fb38ce16a4e", 162 | "headers": "Accept: application/json\nContent-Type: application/json\nAuthorization: Bearer {{token}}\n", 163 | "url": "https://{{vra-fqdn}}/catalog-service/api/consumer/resources?$filter=parentResource eq '{{deploymentId}}'", 164 | "preRequestScript": "", 165 | "pathVariables": {}, 166 | "method": "GET", 167 | "data": [ 168 | { 169 | "enabled": true, 170 | "type": "text", 171 | "value": "original", 172 | "key": "size" 173 | } 174 | ], 175 | "dataMode": "params", 176 | "version": 2, 177 | "tests": "", 178 | "currentHelper": "normal", 179 | "helperAttributes": {}, 180 | "time": 1464610491514, 181 | "name": "Get Machines from Deployment", 182 | "description": "", 183 | "collectionId": "adb0bfad-c702-bba9-b3e3-2349a3eaed95", 184 | "responses": [] 185 | }, 186 | { 187 | "id": "f4af64ce-b59b-5eea-3cf9-c92da6872f16", 188 | "headers": "Accept: application/json\nContent-Type: application/json\nAuthorization: Bearer {{token}}\n", 189 | "url": "https://{{vra-fqdn}}/catalog-service/api/consumer/resources/{{machineId}}/actions", 190 | "preRequestScript": "", 191 | "pathVariables": {}, 192 | "method": "GET", 193 | "data": [ 194 | { 195 | "enabled": true, 196 | "type": "text", 197 | "value": "original", 198 | "key": "size" 199 | } 200 | ], 201 | "dataMode": "params", 202 | "version": 2, 203 | "tests": "postman.clearEnvironmentVariable(\"actionId\");\nvar data = JSON.parse(responseBody);\nif (data.name === \"Destroy\") {\n var actionId = data.id;\n}\npostman.setEnvironmentVariable(\"actionId\", actionId);", 204 | "currentHelper": "normal", 205 | "helperAttributes": {}, 206 | "time": 1464613885635, 207 | "name": "Available Machine Actions", 208 | "description": "", 209 | "collectionId": "adb0bfad-c702-bba9-b3e3-2349a3eaed95", 210 | "responses": [] 211 | } 212 | ] 213 | } -------------------------------------------------------------------------------- /Manage%20Approvals.postman_collection: -------------------------------------------------------------------------------- 1 | { 2 | "id": "dc20ce66-9a3b-3153-2d83-3cab9b74d111", 3 | "name": "Manage Approvals", 4 | "description": "", 5 | "order": [ 6 | "d36351ee-eca0-f2ad-9835-cd6e53cb4abf", 7 | "95a4bb65-ff6c-84e9-8808-10237754354d", 8 | "7c75ea23-c871-9544-8a4a-618d780437a4" 9 | ], 10 | "folders": [], 11 | "timestamp": 1464591657559, 12 | "owner": "335659", 13 | "remoteLink": "", 14 | "public": false, 15 | "requests": [ 16 | { 17 | "id": "7c75ea23-c871-9544-8a4a-618d780437a4", 18 | "headers": "Accept: application/json\nContent-Type: application/json\nAuthorization: Bearer {{token}}\n", 19 | "url": "https://{{vra-fqdn}}/workitem-service/api/workitems/{{id}}/actions/com.vmware.csp.core.approval.action.approve", 20 | "preRequestScript": "", 21 | "pathVariables": {}, 22 | "method": "POST", 23 | "data": [], 24 | "dataMode": "raw", 25 | "version": 2, 26 | "tests": "", 27 | "currentHelper": "normal", 28 | "helperAttributes": {}, 29 | "time": 1464601948465, 30 | "name": "Approve Request", 31 | "description": "", 32 | "collectionId": "dc20ce66-9a3b-3153-2d83-3cab9b74d111", 33 | "responses": [], 34 | "rawModeData": "{\r\n\t\"formData\": {\r\n\t\t\"entries\": [{\r\n\t\t\t\"key\": \"source-businessJustification\",\r\n\t\t\t\t\"value\": {\r\n\t\t\t\t\t\"type\": \"string\",\r\n\t\t\t\t\t\"value\": \"Approved with POSTMAN via the vRA API\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t]\r\n\t},\r\n\t\"workItemId\": \"{{id}}\",\r\n\t\"workItemActionId\": \"com.vmware.csp.core.approval.action.approve\"\r\n}" 35 | }, 36 | { 37 | "id": "95a4bb65-ff6c-84e9-8808-10237754354d", 38 | "headers": "Accept: application/json\nContent-Type: application/json\nAuthorization: Bearer {{token}}\n", 39 | "url": "https://{{vra-fqdn}}/workitem-service/api/workitems?$filter=status eq '{com.vmware.csp.core.cafe.workitem%40status.active}'", 40 | "preRequestScript": "", 41 | "pathVariables": {}, 42 | "method": "GET", 43 | "data": [ 44 | { 45 | "enabled": true, 46 | "type": "text", 47 | "value": "original", 48 | "key": "size" 49 | } 50 | ], 51 | "dataMode": "params", 52 | "version": 2, 53 | "tests": "postman.clearEnvironmentVariable(\"id\");\nvar data = JSON.parse(responseBody);\npostman.setEnvironmentVariable(\"id\", data.content[0].id);", 54 | "currentHelper": "normal", 55 | "helperAttributes": {}, 56 | "time": 1464601546397, 57 | "name": "Get Waiting Approvals", 58 | "description": "", 59 | "collectionId": "dc20ce66-9a3b-3153-2d83-3cab9b74d111", 60 | "responses": [] 61 | }, 62 | { 63 | "id": "d36351ee-eca0-f2ad-9835-cd6e53cb4abf", 64 | "headers": "Accept: application/json\nContent-Type: application/json\n", 65 | "url": "https://{{vra-fqdn}}/identity/api/tokens", 66 | "preRequestScript": "", 67 | "pathVariables": {}, 68 | "method": "POST", 69 | "data": [], 70 | "dataMode": "raw", 71 | "version": 2, 72 | "tests": "postman.clearEnvironmentVariable(\"token\");\nvar data = JSON.parse(responseBody);\npostman.setEnvironmentVariable(\"token\", data.id);", 73 | "currentHelper": "normal", 74 | "helperAttributes": {}, 75 | "time": 1464599675077, 76 | "name": "Authenticate Approver", 77 | "description": "In this case we are using bgadmin - you could change to approver admin if that makes more sense.", 78 | "collectionId": "dc20ce66-9a3b-3153-2d83-3cab9b74d111", 79 | "responses": [], 80 | "rawModeData": "{\n \"username\":\"{{bgadmin}}\",\n \"password\":\"{{password}}\",\n \"tenant\":\"{{tenant}}\"\n}\n" 81 | } 82 | ] 83 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # postman-collections 2 | 3 | ## Instructions 4 | Import the vRA API Collections file into postman by either: 5 | * Downloading [the postman collections file](../../blob/master/VMware%20vRealize%20Automation%207%20-%20Complete.json.postman_collection) to your hard drive and importing from that file 6 | * From URL: https://raw.githubusercontent.com/grantorchard/postman-collections/master/VMware%20vRealize%20Automation%207%20-%20Complete.json.postman_collection 7 | -------------------------------------------------------------------------------- /Request%20Catalog%20Item.postman_collection: -------------------------------------------------------------------------------- 1 | { 2 | "id": "3a6019a5-9b1f-d4ca-57b7-d82b9c875228", 3 | "name": "Request Catalog Item", 4 | "description": "", 5 | "order": [ 6 | "a612590a-f4b6-cb13-a1a7-abde178623d1", 7 | "5ef2e806-c403-a709-7652-43df7f7a7c7e", 8 | "e6a49fef-b8be-ce2b-1bc3-dbdd6185a7d6", 9 | "92061c99-6119-1494-2147-6df47abda01a", 10 | "e9199f10-eabf-f0aa-016e-dd37f277ad7c", 11 | "cfdc5e00-ff35-9a45-862c-a0bb7d23caa3", 12 | "f5b9a83d-3a34-899c-7031-d0aed8b02040" 13 | ], 14 | "folders": [], 15 | "timestamp": 1464584473492, 16 | "owner": "335659", 17 | "remoteLink": "", 18 | "public": false, 19 | "requests": [ 20 | { 21 | "id": "5ef2e806-c403-a709-7652-43df7f7a7c7e", 22 | "headers": "Accept: application/json\nContent-Type: application/json\nAuthorization: Bearer {{token}}\n", 23 | "url": "https://{{vra-fqdn}}/catalog-service/api/consumer/entitledCatalogItems/", 24 | "pathVariables": {}, 25 | "preRequestScript": "", 26 | "method": "GET", 27 | "collectionId": "3a6019a5-9b1f-d4ca-57b7-d82b9c875228", 28 | "data": [ 29 | { 30 | "enabled": true, 31 | "type": "text", 32 | "value": "original", 33 | "key": "size" 34 | } 35 | ], 36 | "dataMode": "params", 37 | "name": "Get Entitled Catalog Items", 38 | "description": "", 39 | "descriptionFormat": "html", 40 | "time": 1464584615572, 41 | "version": 2, 42 | "responses": [], 43 | "tests": "", 44 | "currentHelper": "normal", 45 | "helperAttributes": {} 46 | }, 47 | { 48 | "id": "92061c99-6119-1494-2147-6df47abda01a", 49 | "headers": "Accept: application/json\nContent-Type: application/json\nAuthorization: Bearer {{token}}\n", 50 | "url": "https://{{vra-fqdn}}/catalog-service/api/consumer/entitledCatalogItemViews/{{id}}", 51 | "pathVariables": {}, 52 | "preRequestScript": "", 53 | "method": "GET", 54 | "collectionId": "3a6019a5-9b1f-d4ca-57b7-d82b9c875228", 55 | "data": [ 56 | { 57 | "enabled": true, 58 | "type": "text", 59 | "value": "original", 60 | "key": "size" 61 | } 62 | ], 63 | "dataMode": "params", 64 | "name": "Get Specified Catalog Item Views", 65 | "description": "", 66 | "descriptionFormat": "html", 67 | "time": 1464584739747, 68 | "version": 2, 69 | "responses": [], 70 | "tests": "", 71 | "currentHelper": "normal", 72 | "helperAttributes": {} 73 | }, 74 | { 75 | "id": "a612590a-f4b6-cb13-a1a7-abde178623d1", 76 | "headers": "Accept: application/json\nContent-Type: application/json\n", 77 | "url": "https://{{vra-fqdn}}/identity/api/tokens", 78 | "preRequestScript": "", 79 | "pathVariables": {}, 80 | "method": "POST", 81 | "data": [], 82 | "dataMode": "raw", 83 | "version": 2, 84 | "tests": "postman.clearEnvironmentVariable(\"token\");\nvar data = JSON.parse(responseBody);\npostman.setEnvironmentVariable(\"token\", data.id);", 85 | "currentHelper": "normal", 86 | "helperAttributes": {}, 87 | "time": 1464602031054, 88 | "name": "BG User Login", 89 | "description": "", 90 | "collectionId": "3a6019a5-9b1f-d4ca-57b7-d82b9c875228", 91 | "responses": [], 92 | "rawModeData": "{\n \"username\":\"{{bguser}}\",\n \"password\":\"{{password}}\",\n \"tenant\":\"{{tenant}}\"\n}\n" 93 | }, 94 | { 95 | "id": "cfdc5e00-ff35-9a45-862c-a0bb7d23caa3", 96 | "headers": "Accept: application/json\nContent-Type: application/json\nAuthorization: Bearer {{token}}\n", 97 | "url": "https://{{vra-fqdn}}/catalog-service/api/consumer/entitledCatalogItems/{{id}}/requests/", 98 | "preRequestScript": "", 99 | "pathVariables": {}, 100 | "method": "POST", 101 | "data": [], 102 | "dataMode": "raw", 103 | "version": 2, 104 | "tests": "", 105 | "currentHelper": "normal", 106 | "helperAttributes": {}, 107 | "time": 1464599070248, 108 | "name": "Submit Request for Catalog Item", 109 | "description": "", 110 | "collectionId": "3a6019a5-9b1f-d4ca-57b7-d82b9c875228", 111 | "responses": [], 112 | "rawModeData": "{\n \"type\": \"com.vmware.vcac.catalog.domain.request.CatalogItemProvisioningRequest\",\n \"catalogItemId\": \"e5dd4fba-45ed-4943-b1fc-7f96239286be\",\n \"requestedFor\": \"devuser@corp.local\",\n \"businessGroupId\": \"29a02ed9-7e63-4c77-8a15-c930afb0e3d8\",\n \"description\": null,\n \"reasons\": null,\n \"data\": {\n \"CentOS_6.3\": {\n \"componentTypeId\": \"com.vmware.csp.component.cafe.composition\",\n \"componentId\": null,\n \"classId\": \"Blueprint.Component.Declaration\",\n \"typeFilter\": \"CentOS63*CentOS_6.3\",\n \"data\": {\n \"_allocation\": {\n \"componentTypeId\": \"com.vmware.csp.iaas.blueprint.service\",\n \"componentId\": null,\n \"classId\": \"Infrastructure.Compute.Machine.Allocation\",\n \"typeFilter\": null,\n \"data\": {\n \"machines\": [\n {\n \"componentTypeId\": \"com.vmware.csp.iaas.blueprint.service\",\n \"componentId\": null,\n \"classId\": \"Infrastructure.Compute.Machine.Allocation.Machine\",\n \"typeFilter\": null,\n \"data\": {\n \"machine_id\": \"\",\n \"nics\": [\n {\n \"componentTypeId\": \"com.vmware.csp.iaas.blueprint.service\",\n \"componentId\": null,\n \"classId\": \"Infrastructure.Compute.Machine.Nic\",\n \"typeFilter\": null,\n \"data\": {\n \"address\": \"\",\n \"assignment_type\": \"Static\",\n \"external_address\": \"\",\n \"id\": null,\n \"load_balancing\": null,\n \"network\": null,\n \"network_profile\": null\n }\n }\n ]\n }\n }\n ]\n }\n },\n \"_hasChildren\": false,\n \"datacenter_location\": null,\n \"description\": \"Basic IaaS CentOS Machine\",\n \"disks\": [\n {\n \"componentTypeId\": \"com.vmware.csp.iaas.blueprint.service\",\n \"componentId\": null,\n \"classId\": \"Infrastructure.Compute.Machine.MachineDisk\",\n \"typeFilter\": null,\n \"data\": {\n \"capacity\": 3,\n \"custom_properties\": null,\n \"id\": 1450725224066,\n \"initial_location\": \"\",\n \"is_clone\": true,\n \"label\": \"Hard disk 1\",\n \"storage_reservation_policy\": \"\",\n \"userCreated\": false,\n \"volumeId\": 0\n }\n }\n ],\n \"guest_customization_specification\": \"CentOS\",\n \"max_network_adapters\": -1,\n \"max_per_user\": 0,\n \"max_volumes\": 60,\n \"nics\": [\n {\n \"componentTypeId\": \"com.vmware.csp.iaas.blueprint.service\",\n \"componentId\": null,\n \"classId\": \"Infrastructure.Compute.Machine.Nic\",\n \"typeFilter\": null,\n \"data\": {\n \"address\": \"\",\n \"assignment_type\": \"Static\",\n \"external_address\": \"\",\n \"id\": null,\n \"load_balancing\": null,\n \"network\": null,\n \"network_profile\": null\n }\n }\n ],\n \"os_arch\": \"x86_64\",\n \"os_distribution\": null,\n \"os_type\": \"Linux\",\n \"os_version\": null,\n \"property_groups\": [\n null\n ],\n \"reservation_policy\": null,\n \"security_groups\": [],\n \"security_tags\": []\n }\n },\n \"DefaultExternalNetworkProfile\": {\n \"componentTypeId\": \"com.vmware.csp.component.cafe.composition\",\n \"componentId\": null,\n \"classId\": \"Blueprint.Component.Declaration\",\n \"typeFilter\": \"CentOS63*DefaultExternalNetworkProfile\",\n \"data\": {\n \"_hasChildren\": false,\n \"description\": null\n }\n },\n \"_archiveDays\": 5,\n \"_leaseDays\": null,\n \"_number_of_instances\": 1\n }\n}" 113 | }, 114 | { 115 | "id": "e6a49fef-b8be-ce2b-1bc3-dbdd6185a7d6", 116 | "headers": "Accept: application/json\nContent-Type: application/json\nAuthorization: Bearer {{token}}\n", 117 | "url": "https://{{vra-fqdn}}/catalog-service/api/consumer/entitledCatalogItems?$filter=(substringof('{{search}}',tolower(name)) or substringof('{{search}}',tolower(description)))", 118 | "pathVariables": {}, 119 | "preRequestScript": "", 120 | "method": "GET", 121 | "collectionId": "3a6019a5-9b1f-d4ca-57b7-d82b9c875228", 122 | "data": [ 123 | { 124 | "enabled": true, 125 | "type": "text", 126 | "value": "original", 127 | "key": "size" 128 | } 129 | ], 130 | "dataMode": "params", 131 | "name": "Search Entitled Catalog Items", 132 | "description": "You will need a {{search}} environment variable, or replace both instances of {{search}} with a value.", 133 | "descriptionFormat": "html", 134 | "time": 1464745142202, 135 | "version": 2, 136 | "responses": [], 137 | "tests": "", 138 | "currentHelper": "normal", 139 | "helperAttributes": {} 140 | }, 141 | { 142 | "id": "e9199f10-eabf-f0aa-016e-dd37f277ad7c", 143 | "headers": "Accept: application/json\nContent-Type: application/json\nAuthorization: Bearer {{token}}\n", 144 | "url": "https://{{vra-fqdn}}/catalog-service/api/consumer/entitledCatalogItems/{{id}}/requests/template", 145 | "preRequestScript": "", 146 | "pathVariables": {}, 147 | "method": "GET", 148 | "data": [ 149 | { 150 | "enabled": true, 151 | "type": "text", 152 | "value": "original", 153 | "key": "size" 154 | } 155 | ], 156 | "dataMode": "params", 157 | "version": 2, 158 | "tests": "", 159 | "currentHelper": "normal", 160 | "helperAttributes": {}, 161 | "time": 1464599049391, 162 | "name": "Get Specified Catalog Item Request Template", 163 | "description": "", 164 | "collectionId": "3a6019a5-9b1f-d4ca-57b7-d82b9c875228", 165 | "responses": [] 166 | }, 167 | { 168 | "id": "f5b9a83d-3a34-899c-7031-d0aed8b02040", 169 | "headers": "Accept: application/json\nContent-Type: application/json\nAuthorization: Bearer {{token}}\n", 170 | "url": "https://{{vra-fqdn}}/catalog-service/api/consumer/requests", 171 | "pathVariables": {}, 172 | "preRequestScript": "", 173 | "method": "GET", 174 | "collectionId": "3a6019a5-9b1f-d4ca-57b7-d82b9c875228", 175 | "data": [ 176 | { 177 | "enabled": true, 178 | "type": "text", 179 | "value": "original", 180 | "key": "size" 181 | } 182 | ], 183 | "dataMode": "params", 184 | "name": "Get Request Status", 185 | "description": "", 186 | "descriptionFormat": "html", 187 | "time": 1464599256713, 188 | "version": 2, 189 | "responses": [], 190 | "tests": "", 191 | "currentHelper": "normal", 192 | "helperAttributes": {} 193 | } 194 | ] 195 | } -------------------------------------------------------------------------------- /updatejson.py: -------------------------------------------------------------------------------- 1 | import json 2 | 3 | with open("update.js", "r+") as sfile: 4 | sdata = json.load(sfile) 5 | for i in range (len(sdata)): 6 | sdata[i][u'name'] = sdata[i]['url'] 7 | with open("updated.js", "r+") as tfile: 8 | json.dump(sdata, tfile) -------------------------------------------------------------------------------- /vRA72.postman_environment: -------------------------------------------------------------------------------- 1 | { 2 | "id": "37a5c55b-52bf-d495-2a09-a8a654ce576e", 3 | "name": "vRA72", 4 | "values": [ 5 | { 6 | "key": "vra-fqdn", 7 | "value": "vra.lab.local", 8 | "type": "text", 9 | "enabled": true, 10 | "hovered": false 11 | }, 12 | { 13 | "key": "consumer", 14 | "value": "admin@vsphere.local", 15 | "type": "text", 16 | "enabled": true, 17 | "hovered": false 18 | }, 19 | { 20 | "key": "tenantId", 21 | "value": "vsphere.local", 22 | "type": "text", 23 | "enabled": true, 24 | "hovered": false 25 | }, 26 | { 27 | "key": "password", 28 | "value": "V1rtu9l!", 29 | "type": "text", 30 | "enabled": true, 31 | "hovered": false 32 | }, 33 | { 34 | "key": "cloudAdmin", 35 | "value": "jason@lab.local", 36 | "type": "text", 37 | "enabled": true, 38 | "hovered": false 39 | }, 40 | { 41 | "key": "sa", 42 | "value": "administrator@vsphere.local", 43 | "type": "text", 44 | "enabled": true, 45 | "hovered": false 46 | }, 47 | { 48 | "key": "devopsAdmin", 49 | "value": "shauna@lab.local", 50 | "type": "text", 51 | "enabled": true, 52 | "hovered": false 53 | }, 54 | { 55 | "key": "id", 56 | "value": "d7108933-e3c6-47f2-b10d-4804d2d9847f", 57 | "type": "text", 58 | "enabled": true, 59 | "hovered": false 60 | }, 61 | { 62 | "key": "deploymentId", 63 | "value": "8b2c4abf-c25f-48b9-b2f9-156c499d911b", 64 | "type": "text", 65 | "enabled": true, 66 | "hovered": false 67 | }, 68 | { 69 | "key": "machineId", 70 | "value": "95e4734e-9fd1-4cd5-b17c-549ffe25a308", 71 | "type": "text", 72 | "enabled": true, 73 | "hovered": false 74 | }, 75 | { 76 | "key": "providerRefId", 77 | "value": "7a21a114-2f37-43a1-8192-9107f3ce40c0", 78 | "type": "text", 79 | "enabled": true 80 | }, 81 | { 82 | "key": "providerBindingId", 83 | "value": "b155f94f-7407-48ed-8e3c-d5bedb02c03f", 84 | "type": "text", 85 | "enabled": true 86 | }, 87 | { 88 | "key": "resourceType", 89 | "value": "Infrastructure.Virtual", 90 | "type": "text", 91 | "enabled": true 92 | }, 93 | { 94 | "key": "token", 95 | "type": "text", 96 | "value": "MTQ4NTQ4NTQxMzg1OTo4NGQ2MTI1OTdiOTcwZWQ2MzQyYTp0ZW5hbnQ6dnNwaGVyZS5sb2NhbHVzZXJuYW1lOmFkbWluQHZzcGhlcmUubG9jYWxleHBpcmF0aW9uOjE0ODU1MTQyMTMwMDA6Yjk0OTVmNmIyMGFmZWRiOGNlNzEwNDc4NDE3MzcxOGVkOTkwY2MwZjA1YTk3ZjdiOWUzOWY4MWQ1ZDJlZTBjY2RjNDA1NDlkZGQ5NWI3YmIyMzYyNGE2MGNiYzQ2NmRkMTA5MTdmYjk3NTM5ZDZjMzhhYjY3YzQ1ZjQ3NDgyZDg=", 97 | "enabled": true 98 | } 99 | ], 100 | "timestamp": 1485485526358, 101 | "_postman_variable_scope": "environment", 102 | "_postman_exported_at": "2017-01-27T03:09:14.035Z", 103 | "_postman_exported_using": "Postman/4.9.2" 104 | } --------------------------------------------------------------------------------