This topic has 3 replies, 2 voices, and was last updated 10 months, 1 week ago by ak.tokas.
-
AuthorPosts
-
August 16, 2021 at 1:17 pm #28654
ak.tokas
ParticipantHi,
I have been trying to update AM properties using amster.
Amster import works flawlessly, but for one of the properties i.e. DefaultAdvancedProperties i want to update only one property value e.g. update “com.iplanet.am.directory.ssl.enabled”: false to
“com.iplanet.am.directory.ssl.enabled”: trueBut when i run an update command in Amster with only this attribute it resets all the advanced properties and sets only the property i used in the udpate command. This is not the right behaviour as for other properties i have been using amster and for all other properties and entities amster can update a single command without resetting the structure or values.
Is there a workaround or am i doing anything wrong in my update command?
Update command i used : update DefaultAdvancedProperties –global –body ‘{“com.iplanet.am.directory.ssl.enabled”: false}’Thanks,
AkshayAugust 16, 2021 at 5:11 pm #28655Jatinder Singh
ParticipantHi Akshay, Could you please share your Amster and AM version you are using?
Thanks,
JatinderAugust 16, 2021 at 7:38 pm #28656Jatinder Singh
ParticipantAnd could you please share your use case and why you only need to update a single value? In a typical scenario, the entire AM configuration is version controlled with the complete object (entity) structure. This way, if an object property changes for whatever reason, it’s kept track of, and moves through the regular version control system and into the CI/CD pipeline.
P.S As the entity name suggets
DefaultAdvancedProperties
is a plural, and may not work with a single value.August 23, 2021 at 11:02 am #28659ak.tokas
ParticipantHi Jatinder,
Thanks for the reply,
I am using AM and Amster version 6.5.2.3 for both.I only want to update a specific property and keep the default value for rest of the properties.
For other entities i am able to do the same using update command but in case of DefaultAdvancedProperties when i try to update the properties it resets the value to only properties i am giving in the udpate command.
Maybe i need clarity on using the .+ pattern in this entity’s case.Otherwise,For updating only 2 parameters i have to send the whole DefaultAdvancedProperties JSON in the body of update command.
-
This reply was modified 10 months, 1 week ago by
ak.tokas.
-
This reply was modified 10 months, 1 week ago by
-
AuthorPosts
You must be logged in to reply to this topic.