jskaznik
Contributor
Contributor

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
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.

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

jskaznik
Contributor
Contributor

Thank you so much!

Reply
0 Kudos