VMware Cloud Community
sbeaver
Leadership
Leadership
Jump to solution

REST API Remove Cloud Zone from Project

I am working on an automated process to create and delete Projects via the vRA 8.2 REST API and I am getting stuck trying to remove a Cloud Zone from a project to the Project can be deleted.  

Anyone got this figured out and can share some code?

Thanks

Stephen

Steve Beaver
VMware Communities User Moderator
VMware vExpert 2009 - 2020
VMware NSX vExpert - 2019 - 2020
====
Co-Author of "VMware ESX Essentials in the Virtual Data Center"
(ISBN:1420070274) from Auerbach
Come check out my blog: [www.virtualizationpractice.com/blog|http://www.virtualizationpractice.com/blog/]
Come follow me on twitter http://www.twitter.com/sbeaver

**The Cloud is a journey, not a project.**
0 Kudos
1 Solution

Accepted Solutions
xian_
Expert
Expert
Jump to solution

According to the GUI network traffic you need to PATCH https://vra8.corp.local/provisioning/mgmt/project-config with an empty zone list:

 {"projectState":{"documentSelfLink":"/provisioning/resources/projects/22a712bc-5c9e-4784-a55c-0b3719134190"},"cloudZones":[]}

View solution in original post

0 Kudos
3 Replies
xian_
Expert
Expert
Jump to solution

According to the GUI network traffic you need to PATCH https://vra8.corp.local/provisioning/mgmt/project-config with an empty zone list:

 {"projectState":{"documentSelfLink":"/provisioning/resources/projects/22a712bc-5c9e-4784-a55c-0b3719134190"},"cloudZones":[]}

0 Kudos
sbeaver
Leadership
Leadership
Jump to solution

Thank you!!  I am working in an very locked down and controlled environment with no access to the dev tools.

Let me run with this and thank you

Steve Beaver
VMware Communities User Moderator
VMware vExpert 2009 - 2020
VMware NSX vExpert - 2019 - 2020
====
Co-Author of "VMware ESX Essentials in the Virtual Data Center"
(ISBN:1420070274) from Auerbach
Come check out my blog: [www.virtualizationpractice.com/blog|http://www.virtualizationpractice.com/blog/]
Come follow me on twitter http://www.twitter.com/sbeaver

**The Cloud is a journey, not a project.**
0 Kudos
sbeaver
Leadership
Leadership
Jump to solution

That worked s expected.  Thank you very much

Steve Beaver
VMware Communities User Moderator
VMware vExpert 2009 - 2020
VMware NSX vExpert - 2019 - 2020
====
Co-Author of "VMware ESX Essentials in the Virtual Data Center"
(ISBN:1420070274) from Auerbach
Come check out my blog: [www.virtualizationpractice.com/blog|http://www.virtualizationpractice.com/blog/]
Come follow me on twitter http://www.twitter.com/sbeaver

**The Cloud is a journey, not a project.**
Tags (1)
0 Kudos