ByCloud Docs
GuidesCLIAPISDK

Update health monitor

bycloud load-balancers health-monitors update --health_monitor_id <health_monitor_id> [flags]

Update a health monitor

Options

--health_monitor_id

stringrequired

Health Monitor ID

--output

(-o)

stringoptional

Output format: text, json, or yaml

Values: "text", "json", "yaml"

Default: "text"

Body Options

--admin_state_up

booleanoptional

--delay

integeroptional

--expected_codes

stringoptional

--http_method

stringoptional

Values: "GET", "HEAD", "POST", "PUT", "DELETE", "TRACE", "OPTIONS", "CONNECT", "PATCH"

--max_retries

integeroptional

--max_retries_down

integeroptional

--name

stringoptional

--tags

arrayoptional

--timeout

integeroptional

--url_path

stringoptional

Command

bycloud load-balancers health-monitors update \
--health_monitor_id "abc-123"

Output

ID 550e8400-e29b-41d4-a716-446655440000
CRN crn:spo1:loadbalancer:health-monitor:550e8400-e29b-41d4-a716-446655440000
NAME http-monitor
PROVISIONING_STATUS ACTIVE
OPERATING_STATUS ONLINE
ADMIN_STATE_UP true
TYPE HTTP
DELAY 5
TIMEOUT 3
MAX_RETRIES 3
MAX_RETRIES_DOWN 3
HTTP_METHOD GET
URL_PATH /health
EXPECTED_CODES 200
POOL_ID 550e8400-e29b-41d4-a716-446655440000
TAGS web, frontend
PROJECT_ID 550e8400-e29b-41d4-a716-446655440000
CREATED_AT 2024-01-15T10:30:00Z
UPDATED_AT 2024-01-15T10:30:00Z