yc application-load-balancer virtual-host append-http-route
Статья создана
Обновлена 19 августа 2025 г.
Appends http route to the specified virtual host of the http router
Command Usage
Syntax:
yc application-load-balancer virtual-host append-http-route <ROUTE-NAME> [Flags...] [Global Flags...]
Flags
| Flag | Description |
|---|---|
--http-router-id |
stringID of the Http router. |
--http-router-name |
stringName of the Http router. |
--async |
Display information about the operation in progress, without waiting for the operation to complete. |
--virtual-host-name |
stringSpecifies the name of the virtual host for the route. |
--match-http-method |
value[,value]Specifies HTTP method matcher for the route. |
--exact-path-match |
stringSpecifies exact path matcher for the route. |
--prefix-path-match |
stringSpecifies prefix path matcher for the route. |
--regex-path-match |
stringSpecifies regex path matcher for the route. |
--backend-group-id |
stringSpecifies target backend group id for the route. |
--backend-group-name |
stringSpecifies target backend group name for the route. |
--request-timeout |
durationSpecifies request timeout for the route. |
--request-idle-timeout |
durationSpecifies request idle timeout for the route. |
--upgrade-types |
value[,value]Specifies allowed HTTP upgrade types for the route (e.g. websocket). |
--host-rewrite |
stringSpecifies host rewrite for the route. Authority/host header sent to the backend will be replace with this value |
--path-prefix-rewrite |
stringSpecifies path prefix rewrite for the route. Its value will be prepended to the request path. |
--direct-response-code |
intSpecifies direct response http status code for the route. |
--direct-response-body |
stringSpecifies direct response body for the route. |
--direct-response-body-file |
stringSpecifies path to a file containing direct response body. |
--redirect-code |
stringSpecifies redirect response http status code for the route, either http code (302, 303) or textual representation (FOUND, SEE_OTHER). Default: 301 (MOVED_PERMANENTLY) |
--redirect-scheme |
stringSpecifies redirect scheme rewrite for the route. If not specified, http scheme remains unchanged |
--redirect-host |
stringSpecifies redirect authority/host rewrite for the route. If not specified, header remains unchanged |
--redirect-port |
intSpecifies redirect port rewrite for the route. If not specified, port either is rewritten according to well-known rules (80 -> 443 for http -> https redirect) or remains unchanged. |
--redirect-path |
stringSpecifies redirect path rewrite for the route. |
--redirect-prefix |
stringSpecifies path prefix to be appended to the request uri for the redirect. |
--redirect-strip-query |
If specified, original request query will be stripped from redirect location for the route. |
--rate-limit |
PROPERTY=VALUE[,PROPERTY=VALUE...]Specifies rate limit configuration to be applied to http route. Possible property names:
|
--path-regex-rewrite |
PROPERTY=VALUE[,PROPERTY=VALUE...]Specifies regex rewrite configuration to be applied to http route. Possible property names:
|
--disable-security-profile |
Disables security profile for the route. |
Global Flags
| Flag | Description |
|---|---|
--profile |
stringSet the custom configuration file. |
--debug |
Debug logging. |
--debug-grpc |
Debug gRPC logging. Very verbose, used for debugging connection problems. |
--no-user-output |
Disable printing user intended output to stderr. |
--retry |
intEnable gRPC retries. By default, retries are enabled with maximum 5 attempts. Pass 0 to disable retries. Pass any negative value for infinite retries. Even infinite retries are capped with 2 minutes timeout. |
--cloud-id |
stringSet the ID of the cloud to use. |
--folder-id |
stringSet the ID of the folder to use. |
--folder-name |
stringSet the name of the folder to use (will be resolved to id). |
--endpoint |
stringSet the Cloud API endpoint (host:port). |
--token |
stringSet the OAuth token to use. |
--impersonate-service-account-id |
stringSet the ID of the service account to impersonate. |
--no-browser |
Disable opening browser for authentication. |
--format |
stringSet the output format: text (default), yaml, json, json-rest. |
--jq |
stringQuery to select values from the response using jq syntax |
-h,--help |
Display help for the command. |