kafka alter-resource-config
Alter config of kafka resources
Description
Alters config of a given kafka resource
Synopsis
kafka alter-resource-config
[--site <site>]
[--cluster <cluster>]
--resource_name <resource_name>
--resource_type <resource_type>
<entries>
[--validate_only]
Arguments
site
- (string)
Site where this command will be executed
Example: --site "site-1"
Default: input.site
Attributes: optional
cluster
- (string)
Name of kafka cluster
Example: --cluster "cluster-1"
Default: default
Attributes: optional
resource_name
- (string)
Can be topic name or broker id
Example: --resource_name "resource_name-1"
Default: _None_
Attributes: required
resource_type
- (string)
Values can either be "TopicResource" or "BrokerResource"
Example: --resource_type "resource_type-1"
Default: _None_
Attributes: required
entries
- (string)
stringified Map with keys as config names and values as modified config values
Example: "entries-1"
Default: _None_
Attributes: required
validate_only
- (bool)
Example: --validate_only
Default: _None_
Attributes: optional
Examples
Input:
! kafka alter-resource-config --resource_type "TopicResource" --resource_name "test-topic-1" `{"file.delete.delay.ms":"10000", "delete.retention.ms":"1000000"}`
Access Control
To use this command, you need access to the following:
Field | Value |
---|---|
Action | "update" |
Service Type | "kafka" |
Service Instance | cluster |
Namespace | |
Object Type | "topic" |
Object ID | resource_name |
Please see Access Control for details.