How to update a Resource Element Script's Contents using curl

In a previous article, I taught you How to retrieve a script Resource from vRO via curl. That can be helpful to some people, but how about updating that script? Easy! Read on... This is a super short post since all the tough details were already outlined in the article linked above. So, assuming you already know the ID and name of the script you wish to update, all you need to do is run the following curl command:

curl --header 'Authorization: Basic REDACTED' --form 'file=@/Users/bazbill/scripts/setupCA.ps1' 'https://{{vra-fqdn}}/vco/api/resources/2706d28b-e6ca-45da-acd9-8ccff2228252'

In the lines above, you would obviously replace REDACTED with your authorization token, the file path with the path to your script that you are uploading, {{vra-fqdn}} with your vRA/vRO server's FQDN and port if necessary, and the ID of your resource element.

Hope this is found to be helpful to someone :)

NUC Lab Kit

Below are my thoughts for a vSAN nuc lab. Since I already have cables, not including them here. I ordered (and received by Nov 30, 2016)
3 x nuc, 3 x 32GB Crucial mem, 3 x Toshiba NVMe drive, 3 x Startech USB to GB NIC, and 3 x Crucial 1TB SSD. I've also been very happy with my Cisco SG300-10 so I bought one more since my existing one only has one port available. Each of the items listed here are linked below - all were purchased using the provided links below.
single NIC (See this post for details on using the USB -> GB NIC item listed below

I stayed with the i5 for the power consumption and form factor vs. the i7 Skull Canyon ;)



Experts Exchange