load-balancer
Replace load balancer rule
Replaces existing rule by given {service-uuid}, {frontend-name}, and {rule-name}.
put/1.3/load-balancer/{service-uuid}/frontends/{frontend-name}/rules/{rule-name}
Request
- Base URL: https://api.upcloud.com
- URL: https://api.upcloud.com/1.3/load-balancer/{service-uuid}/frontends/{frontend-name}/rules/{rule-name}
- 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.
frontend-namestring required
The name of the frontend.
Example:example-frontend-1
The unique identifier for the frontend.
rule-namestring required
The name of the rule.
Example:example-rule-1
The unique identifier for the rule.
Request body
Example request
{
"name": "my-rule",
"priority": 10,
"matching_condition": "and",
"matchers": [],
"actions": [
{
"type": "use_backend",
"action_use_backend": {
"backend": "backend-1"
}
}
]
}Response
Created
Example response
{
"name": "redirect-to-https",
"priority": 1,
"matching_condition": "and",
"matchers": [
{
"type": "path",
"inverse": false,
"match_path": {
"method": "starts_with",
"value": "/api",
"ignore_case": true
}
}
],
"actions": [
{
"type": "set_forwarded_headers",
"action_set_forwarded_headers": {}
},
{
"type": "set_request_header",
"action_set_request_header": {
"header": "X-Forwarded-Proto",
"value": "https"
}
},
{
"type": "http_redirect",
"action_http_redirect": {
"location": "https://example.com",
"status": 301
}
}
],
"created_at": "2025-11-06T09:00:00.000Z",
"updated_at": "2025-11-06T09:30:00.000Z"
}Changes
No recorded changes to this operation across all 1 revision of this API.