VMware Cloud Community
mastefani
Enthusiast
Enthusiast
Jump to solution

Add disk via REST

I see in the API guide a way to attach a disk via REST, but I couldn't find a way to add a new disk.  Basically looking to run the Add Disk action for a provisioned VM resource, but via a REST call instead of the GUI.  I see the documentation on how to run a deployment action, but I don't see anything for a resource action.  Anyone figured that out or point me in the right direction?   Using vRA 8.2

Labels (1)
0 Kudos
1 Solution

Accepted Solutions
xian_
Expert
Expert
Jump to solution

Request URL: https://vra8.corp.local/deployment/api/deployments/ad7fd501-4540-43a4-8c97-744a5e2c4deb/resources/b4...
Request Method: POST
Request Payload: {"actionId":"Cloud.vSphere.Machine.Add.Disk","targetId":"b4bd6ef0-7dcb-4ad8-9a91-9c5ec05930fe","inputs":{"name":"d1","capacityGb":2,"encrypted":false,"persistent":false}}

View solution in original post

0 Kudos
1 Reply
xian_
Expert
Expert
Jump to solution

Request URL: https://vra8.corp.local/deployment/api/deployments/ad7fd501-4540-43a4-8c97-744a5e2c4deb/resources/b4...
Request Method: POST
Request Payload: {"actionId":"Cloud.vSphere.Machine.Add.Disk","targetId":"b4bd6ef0-7dcb-4ad8-9a91-9c5ec05930fe","inputs":{"name":"d1","capacityGb":2,"encrypted":false,"persistent":false}}

0 Kudos