# Modify Upstream

# usage

Usage: oredge upstream modify [id] [OPTIONS]

OPTIONS:
    --id                               id.
    --global                           modify a global upstream, no argument.
    --tcp                              modify a tcp upstream, no argument.
    --sni-proxy                        modify a sni-proxy upstream, no argument.
    --http                             modify a http upstream, no argument.
    --checker json                     checker.
        always_check bool              always check.
        report_interval integer        report interval.
        report_interval_unit string    min, sec, hour.
        timeout integer                timeout.
        timeout_unit string            timeout unit.
        type string                    tcp or http.
    --disable-ssl-verify bool          disable ssl verify.
    --enable-checker bool              enable checker.
    --is-k8s-service bool              is k8s service.
    --k8s integer                      k8s id.
    --k8s-namespace string             k8s namespace.
    --k8s-service string               k8s service.
    --k8s-service-port integer         k8s service port.
    --name string                      name.
    --node json                        node, can add mutilple times, a json string of node infos.
        netns string                   netns.
        port integer                   port.
        weight integer                 weight.
        status integer                 status.
        use_proxy_host bool            use proxy host.
        ip string                      ip.
        domain string                  domain.
        name string                    name.
    --gid integer                      user group id, can add mutilple times.

GLOBAL OPTIONS:
    --help
    --show-api                         print restful api request.
    --json                             print json format.
    --config                           specify config file, default is ~/.oredge/config.

# example

  1. modify global upstream.
# oredge upstream modify 21 --name test --global
OK
  1. modify http upstream.
# oredge upstream modify 892-1729 --http --name test
OK