load-balancer

Create load balancer label

Creates a new label by given {service-uuid}.

Labels used for service filtering.

Service labels usage examples Below are some examples of what certain GET requests might look like.

exact match: GET /1.3/load-balancer?label=env%3Dstaging existence: GET /1.3/load-balancer?label=env multiple: GET /1.3/load-balancer?label=env&label=foo%3Dbar

post/1.3/load-balancer/{service-uuid}/labels

Request

  • Base URL: https://api.upcloud.com
  • URL: https://api.upcloud.com/1.3/load-balancer/{service-uuid}/labels
  • Auth: HTTP bearer

Path parameters

service-uuidstring uuid required

The UUID of the service.

Example:01234567-89ab-cdef-0123-456789abcdef

The unique identifier for the service.

Request body

keystring required

Key

valuestring nullable required

Value

Example request

{
  "key": "environment",
  "value": "production"
}

Response

Created

keystring required

Label key used for identification and filtering.

valuestring nullable

The value of the label (optional).

Example response

{
  "key": "environment",
  "value": "production"
}

Changes

No recorded changes to this operation across all 1 revision of this API.