Add example for ConfigSet create with properties map. (#2005)

This commit is contained in:
Houston Putman 2020-10-22 11:20:33 -04:00 committed by GitHub
parent 052efd62ae
commit 62de8f9f46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 0 deletions

View File

@ -181,6 +181,20 @@ curl -X POST -H 'Content-type: application/json' -d '{
"configSetProp.immutable": "false"}}' "configSetProp.immutable": "false"}}'
http://localhost:8983/api/cluster/configs?omitHeader=true http://localhost:8983/api/cluster/configs?omitHeader=true
---- ----
With the v2 API, ConfigSet properties can also be provided via the `properties` map:
[source,bash]
----
curl -X POST -H 'Content-type: application/json' -d '{
"create":{
"name": "myConfigSet",
"baseConfigSet": "predefinedTemplate",
"properties": {
"immutable": "false"
}}}'
http://localhost:8983/api/cluster/configs?omitHeader=true
----
==== ====
-- --