VMware Cloud Community
jmedd
Enthusiast
Enthusiast
Jump to solution

ResourceElement: Increase Version Number via API?

I'm successfully updating the contents of a ResourceElement via the method setContentFromMimeAttachment(). Is there a way at the same time as this update to increase the version number of the ResourceElement? I don't see an available method to be able to do it.

Thanks

Blog: http://jonathanmedd.net | Twitter: @jonathanmedd
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
iiliev
VMware Employee
VMware Employee
Jump to solution

There is no scripting API to increase version number of ResourceElement (and other versionable objects).

View solution in original post

0 Kudos
4 Replies
iiliev
VMware Employee
VMware Employee
Jump to solution

There is no scripting API to increase version number of ResourceElement (and other versionable objects).

0 Kudos
qc4vmware
Virtuoso
Virtuoso
Jump to solution

I've definitely wanted this functionality for configuration elements along with being able to create configuration elements.

0 Kudos
SeanKohler
Expert
Expert
Jump to solution

Add me to both of these as well...  (and not create configuration elements through cloud client :smileysilly:)

0 Kudos
jmedd
Enthusiast
Enthusiast
Jump to solution

OK, thanks for the responses.

qc4vmware‌ I saw you on a thread talking about programatically creating configuration elements. That thread suggested creating resource elements instead, which is how I ended up creating them.

The customer is concerned with being able to go back to an earlier version of a Resource Element if they are being updated programatically. I've got a couple of ideas, but this was my preference.

Blog: http://jonathanmedd.net | Twitter: @jonathanmedd
0 Kudos