...
Code Block |
---|
language | js |
---|
linenumbers | true |
---|
|
{
"name": "kafka_token"
"description": "testing Kafka Day 2 config configuration",
"rb-name": "kafka",
"rb-version": "1.0",
} |
Command to UPLOAD Template:
...
Code Block |
---|
language | js |
---|
title | Profile JSON Body |
---|
|
{
"rb-name":"kafka",
"rb-version":"kafka-config-1",
"profile-name":"1234567890",
"template-name": "kafka-token"
"config-name": "kafka_token_1"
"config-version":"1.0"
}
} |
Command to GET Configuration Values
Code Block |
---|
|
# Get all Values
curl -i http://localhost:8081/v1/rb/definition/{name}/{version}/profile/{name}/config
# Get one Value with config versionname
curl -i http://localhost:8081/v1/rb/definition/{name}/{version}/profile/{name}/config/{name} |
...
Code Block |
---|
|
curl -i -d @values.json -X PUT http://localhost:8081/v1/rb/definition/{name}/{version}/profile/{name}/config/{name} |
With the following JSON content (values.json )
Code Block |
---|
language | js |
---|
title | Profile JSON Body |
---|
|
{
"template-name": "kafka_token"
"config-name": "kafka_token_1"
"description":"testing Kafka Day 2 config configuration",
"values":{
"namespace":"kafka",
"topic":{
"name":"orders",
"cluster":"my-cluster",
"partitions":20,
"replicas":2
}
}
} |
This command returns the following JSON which contains config-version.
Code Block |
---|
language | js |
---|
title | Profile JSON Body |
---|
|
{
"rb-name":"kafka",
"rb-version":"kafka-config-1",
"profile-name":"1234567890",
"template-name": "kafka-token"
"config-name": "kafka_token_1"
"config-version":"3"
}
} |
Command to
...
TAG configuration Values
This will add the tag name to the current config version
Code Block |
---|
|
curl -i -d @values.json -X POST http://localhost:8081/v1/rb/definition/{name}/{version}/profile/{name}/rollbacktagit |
With the following JSON content (values.json )
Code Block |
---|
language | js |
---|
title | Profile JSON Body |
---|
|
{
"configtag-versionname": "5my-tag"
} |
Command to
...
ROLLBACK configuration Values
Rollbacks configuration to a config version or a tag.
Code Block |
---|
|
curl -i -d @values.json -X POST http://localhost:8081/v1/rb/definition/{name}/{version}/profile/{name}/tagitrollback |
With the following JSON content (values.json )
Code Block |
---|
language | js |
---|
title | Profile JSON Body |
---|
|
{
"anyOf": [
{
"tagconfig-nameversion": "<value>"
},
{
"myconfig-tag": "<tag name>"
}
]
} |