To allow Organization users to perform operations on the vApp again disable maintenance mode.
This can be done by using the Cloud Director API's exitMaintenanceMode operation against the vApp in question, VMware Cloud Director API, User Operations, POST /vApp/{id}/action/exitMaintenanceMode.
Example steps to exit maintenance mode for a vApp as an Organization user would be as follows:
- Retrieve the UUID of the vApp which is in maintenance mode, this can be seen in the URL in a browser after opening the vApp in the Cloud Director Tenant portal.
Example URL:
https://vcloud.example.com/tenant/ExampleOrg/vdcs/<VDC_UUID>/vapp/vapp-<VAPP_UUID>/general
vApp UUID:
vapp-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
- Using the vApp UUID construct the URL for the exit maintenance mode operation for the vApp.
Example URL:
https://vcloud.example.com/api/vApp/vapp-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/action/exitMaintenanceMode
- Log into the Cloud Director API as a System Administrator:
Request:
POST https://vcloud.example.com/cloudapi/1.0.0/sessions/provider
Request Headers:
Accept:application/json;version=37.2
Authorization:Basic (Encoded username@system / password)
NOTE: the API version in the Accept header is based on the Cloud Director version.
- Copy the value of the response header X-VMWARE-VCLOUD-ACCESS-TOKEN which is our login Bearer token used for further requests.
Response Headers:
X-VMWARE-VCLOUD-ACCESS-TOKEN:eyJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJhZG1pbml...bY1pTknnRprwEg
- Using the constructed URL in step 2 and the authorization bearer token from step 4, send the API call to exit the vApp from maintenance mode:
Request:
POST https://vcloud.example.com/api/vApp/vapp-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/action/exitMaintenanceMode
Request Headers:
Accept:application/json;version=37.2
Authorization:Bear eyJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJhZG1pbml...bY1pTknnRprwEg
- With the vApp out of maintenance mode Organization users should be able to perform operations.