Forum Discussion
Resetting a profile attribute to "inherit from parent" using REST?
I cannot find a way to reset a single attribute of a profile (client ssl profile, if it matters) using REST.
Specifically, I want to change the
ciphers
attribute from a manually overridden value back to "inherit from parent" (equivalent to removing the "custom" flag from the attribute in the GUI).
I've tried to use PATCH to set
ciphers
to both null
and the empty string, both of which end up setting it to overridden-but-empty. Is there some magic value I can use?- Satoshi_Toyosa1Ret. Employee
You can specify
just like the equivalent tmsh command (i.e.,default-value
).tmsh modify ltm profile client-ssl SatSSL ciphers default-value
For example (the profile name is SatSSL, inherited from
😞clientssl
Get the current ciphers:
curl -sku admin:admin https://localhost/mgmt/tm/ltm/profile/client-ssl/SatSSL?\$select=ciphers {"ciphers":"DEFAULT:!SSLv2"}
Modify the ciphers back to DEFAULT (response omitted):
curl -sku admin:admin https://localhost/mgmt/tm/ltm/profile/client-ssl/SatSSL \ -X PATCH -H "Content-type: application/json" \ -d '{"ciphers":"default-value"}'
Verify:
curl -sku admin:admin https://localhost/mgmt/tm/ltm/profile/client-ssl/SatSSL?\$select=ciphers {"ciphers":"DEFAULT"}
- Boby_BC
Nimbostratus
Hi,
unfortunately those does not work as requested.
I need exactly the same - my child client ssl profile needs to "inherit from parent" ciphers i.e. when i add a new cipher in the default profile, it will be received automatically from the child.
It seems that this is only possible via admin UI in a browser by uncheck the "Custom" checkbox for field Ciphers.
The tmsh command or REST PATCH request always sets a concrete value for the child profile. Thus when the parent is updated, the child will remain with the same value.
So the question is still valid and i hope that someone can find a proper solution ...
Best regards
Boby
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com