Skip to content

caeops > logs

add-labels

Description


This command helps you add labels to a Logs Service. Run caeops logs add-labels --help for more help.

Synopsis


  add-labels
--name [value]
--labels [value]

Options


--name (string)

Name of Logs Service

--labels (list)

List of all the labels that you want to attach

Examples


To add labels to a Logs Service.

The following logs add-labels example adds labels to a Logs Service.

caeops logs add-labels --name=name --labels=[{owner=example},{env=dev}]

Output


Logs Service Details -> (Structure)

  • serviceName -> (string)
    Name of the Logs Service
  • serviceRegion -> (string)
    Region of Logs Service
  • serviceEndpoint -> (string)
    Endpoint of the Elasticsearch Instance
  • serviceType -> (string)
    Type of the resource, logs-service for Logs Service
  • groupName -> (string)
    Name of the service group to which the Logs Service is added
  • labels -> Structure

    • key -> (string) Name of the label

    • value -> (string) Value of the label

  • createdAt -> (long) Creation timestamp

  • updatedAt -> (long)
    Last modified timestamp
Back to top