avn service tags#
Here you’ll find the full list of commands for avn service tags.
Manage service tags#
avn service tags list#
Retrieves the tags associated with an Aiven service.
Parameter |
Information |
|---|---|
|
The name of the service |
Example: Retrieve the tags associated with the service named kafka-demo.
avn service tags list kafka-demo
KEY VALUE
======= ===================
team frontend
scope userclicks-tracking
Example: Retrieve the tags associated with the service named kafka-demo in JSON format.
avn service tags list kafka-demo --json
[
{
"key": "team",
"value": "frontend"
},
{
"key": "scope",
"value": "userclicks-tracking"
}
]
avn service tags replace#
Replaces a tag associated with an Aiven service, deleting the any old entry first.
Parameter |
Information |
|---|---|
|
The name of the service |
|
The service tag to replace, in the format |
Example: in the demo-kafka Aiven service, replace the tag with key scope to the value userclicks
avn service tags replace demo-kafka \
--tag scope=userclicks
avn service tags update#
Update tags associated with an Aiven service.
Parameter |
Information |
|---|---|
|
The name of the service |
|
The service tag to add, in the format |
|
The service tag key to remove |
Example: in the demo-kafka Aiven service, modify the following:
add the tag with key
scopeand valueuserclicksadd the tag with key
buand valueemearemove the tag with key
team
avn service tags update demo-kafka \
--add-tag scope=userclicks \
--add-tag bu=emea \
--remove-tag team=frontend