VMware Aria Automation Orchestrator

 Error to sync supervisor namespace principals with CMX API

JulioS's profile image
JulioS posted Jun 26, 2024 08:53 AM

Hello,

I am trying to run the API call: Sync Using POST | vRealize Automation CMX (broadcom.com), but I always get a 500 Error back, I have tried different options in the payload.

These are the error messages that I get back from the API:

Type definition error: [simple type, class com.vmware.automation.cmx.dto.SupervisorNamespaceSyncRequestDTO]; nested exception is com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Cannot construct instance of `com.vmware.automation.cmx.dto.SupervisorNamespaceSyncRequestDTO` (no Creators, like default constructor, exist): cannot deserialize from Object value (no delegate- or property-based Creator)\n at [Source: (io.netty.buffer.ByteBufInputStream); line: 2, column: 1]
Cannot construct instance of `com.vmware.automation.cmx.dto.SupervisorNamespaceSyncRequestDTO` (no Creators, like default constructor, exist): cannot deserialize from Object value (no delegate- or property-based Creator)\n at [Source: (io.netty.buffer.ByteBufInputStream); line: 2, column: 1]

Payload example:

{
   "editUsers": "[\"user1\"]"
}
Anyone who has worked with this API call before and can provide some insights?
Thanks in advance.
xian's profile image
xian

Here are the docs:

https://docs.idemproject.io/idem-vra/en/latest/ref/exec/cmx/supervisornamespaces.html#idem_vra.exec.vra.cmx.supervisornamespaces.sync_using_post

The source code:

https://docs.idemproject.io/idem-vra/en/latest/_modules/idem_vra/exec/vra/cmx/supervisornamespaces.html#sync_using_post

Maybe worth to create a Gitlab issue at https://gitlab.com/vmware/idem/idem-vra/ or a SR at Broadcom...