map-route - Cloud Foundry CLI Reference Guide


名前

map-route - アプリに URL 経路を追加します

使用法

Map an HTTP route: cf map-route APP_NAME DOMAIN [--hostname HOSTNAME] [--path PATH] Map a TCP route: cf map-route APP_NAME DOMAIN (--port PORT | --random-port)

EXAMPLES

cf map-route my-app example.com # example.com cf map-route my-app example.com --hostname myhost # myhost.example.com cf map-route my-app example.com --hostname myhost --path foo # myhost.example.com/foo cf map-route my-app example.com --port 5000 # example.com:5000

オプション

--hostname, -n

HTTP 経路のホスト名 (共有ドメインの場合は必須)

--path

HTTP 経路のパス

--port

TCP 経路用のポート

--random-port

TCP 経路用のランダム・ポートを作成します

その他の参照先

create-route, routes