- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Is it possible to delete 'globalenvironment' from vRSLCM? The 'Delete Environment' option is grayed out for 'globalenvironment' in vRSLCM 8.3
thanks
Jacek
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Not from within lcm, but it's possible via API.
Via https GET .../lcm/lcops/api/v2/environments you can retrieve the environmentId
Via https DELETE .../lcm/lcops/api/v2/environments/[environmentId] you can delete it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you, unfortunately I'm getting an error in Postman that request body is missing. Do you have any idea how to get around this one?
{
"timestamp": "2021-04-17T19:55:23.988+0000",
"status": 400,
"error": "Bad Request",
"message": "Required request body is missing: public org.springframework.http.ResponseEntity<?> com.vmware.vrealize.lcm.lcops.controller.EnvironmentController.deleteEnvironmentV2(java.lang.String,com.vmware.vrealize.lcm.lcops.common.dto.request.product.operations.DeleteEnvironmentRequestDTO)",
"path": "/lcm/lcops/api/v2/environments/globalenvironment"
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The DELETE request needs a body, as the message says.
See this doc for an example:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you so much!