VMware Cloud Community
jskaznik
Contributor
Contributor
Jump to solution

delete globalenvironment from vRSLCM

Hello,

Is it possible to delete 'globalenvironment' from vRSLCM? The 'Delete Environment' option is grayed out for 'globalenvironment' in vRSLCM 8.3

thanks
Jacek

Reply
0 Kudos
1 Solution

Accepted Solutions
4 Replies
jimmyvandermast
Hot Shot
Hot Shot
Jump to solution

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.

Reply
0 Kudos
jskaznik
Contributor
Contributor
Jump to solution

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"
}
Reply
0 Kudos
jimmyvandermast
Hot Shot
Hot Shot
Jump to solution

The DELETE request needs a body, as the message says.

See this doc for an example:

https://developer.vmware.com/docs/vrealize-suite-lifecycle-manager/latest/lcm/lcops/api/v2/environme...

jskaznik
Contributor
Contributor
Jump to solution

Thank you so much!

Reply
0 Kudos