create-route - Cloud Foundry CLI Reference Guide |
cf create-route SPACE DOMAIN [--hostname HOSTNAME] [--path PATH]
Create a TCP route:
cf create-route SPACE DOMAIN (--port PORT | --random-port)
cf create-route my-space example.com # example.com
cf create-route my-space example.com --hostname myapp # myapp.example.com
cf create-route my-space example.com --hostname myapp --path foo # myapp.example.com/foo
cf create-route my-space example.com --port 5000 # example.com:5000
HTTP 路徑的主機名稱(共用網域的必要項目)
HTTP 路徑 (route) 的路徑 (path)
TCP 路徑的埠
建立 TCP 路徑的隨機埠