jskaznik
Contributor
Contributor

delete globalenvironment from vRSLCM

Jump to solution

Hello,

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

thanks
Jacek

0 Kudos
1 Solution

Accepted Solutions
jimmyvandermast
Hot Shot
Hot Shot
4 Replies
jimmyvandermast
Hot Shot
Hot Shot

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.

0 Kudos
jskaznik
Contributor
Contributor

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"
}
0 Kudos
jimmyvandermast
Hot Shot
Hot Shot
jskaznik
Contributor
Contributor

Thank you so much!

0 Kudos