One of the method of installing vRealize products via vRSLCM is to configure myvmw repository first and then pulling available product binaries via internet. In this post I will walk through steps of configuring the same via API.
1: Add myvmw credentials to password Store
1 2 3 4 5 6 7 8 9 10 11 12 |
Method: POST URL: https://<vrslcm-fqdn>/lcm/locker/api/passwords Sample Payload: { "vmid":"null", "alias":"vstellar-myvmw-account", "userName":"xyz@vmware.com", "password":"xxxxx" } |
2: Fetch vmid associated with alias created in step-1: When a new password is added to locker store, vRSLCM assigns a unique vmid to that password and all future references to this password is made via assigned vmid.
1 2 3 |
Method: GET URL: https://<vrslcm-fqdn>/lcm/locker/api/passwords |
Sample Output
1 2 3 4 5 6 7 |
{ "vmid":"b19479ed-40cb-4441-a95d-81e4570ad0a8", "alias":"vstellar-myvmw-account", "userName":"xyz@vmware.com", "password":"PASSWORD****", "passwordDescription":"" } |
3: Configure myvmw settings: This is a 2 step process
1 2 3 4 5 6 7 8 9 10 |
Method: PATCH URL: https://<vrslcm-fqdn>/lcm/lcops/api/settings/myvmwaresetting Payload: { "userName":"xyz@vmware.com", "password":"locker:password:b19479ed-40cb-4441-a95d-81e4570ad0a8:vstellar-myvmw-account" } |
1 2 3 4 5 6 7 8 9 10 |
Method: POST URL: https://<vrslcm-fqdn>/lcm/lcops/api/settings/myvmwaresetting Payload: { "userName":"xyz@vmware.com", "password":"locker:password:b19479ed-40cb-4441-a95d-81e4570ad0a8:vstellar-myvmw-account" } |
4: Test binaries download from myvmware portal
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
Method: POST URL: https://<vrslcm-fqdn>/lcm/lcops/api/settings/myvmwaredownload Sample Payload: [ { "productId":"vidm", "productVersion":"3.3.1", "productBinaryType":"upgrade", "productBinaryPath":null, "componentName":null, "mappingType":null, "productName":"VMware Identity Manager", "requestId":null }, { "productId":"vrni", "productVersion":"4.2.0", "productBinaryType":"Install", "productBinaryPath":null, "componentName":null, "mappingType":null, "productName":"vRealize Network Insight", "requestId":null }, { "productId":"vrni", "productVersion":"5.0.0", "productBinaryType":"upgrade", "productBinaryPath":null, "componentName":null, "mappingType":null, "productName":"vRealize Network Insight", "requestId":null }, { "productId":"vrops", "productVersion":"7.5.0", "productBinaryType":"Install", "productBinaryPath":null, "componentName":null, "mappingType":null, "productName":"vRealize Operations", "requestId":null }, { "productId":"vrops", "productVersion":"8.0.0", "productBinaryType":"Install", "productBinaryPath":null, "componentName":null, "mappingType":null, "productName":"vRealize Operations", "requestId":null }, { "productId":"vrops", "productVersion":"8.0.0", "productBinaryType":"upgrade", "productBinaryPath":null, "componentName":null, "mappingType":null, "productName":"vRealize Operations", "requestId":null } ] |
I hope you enjoyed reading this post. Feel free to share this on social media if it is worth sharing 🙂