我已经通过Google Cloud Platform中的HTTP负载平衡创建了转发规则。在尝试描述它时,我收到错误。 如何在命令行中描述转发规则?我确定这是正确的区域,我尝试选择所有区域选项。
if (fullName.indexOf(" ") == -1)
{
System.out.print("Space not contained in fullName");
} //end if
gcloud compute forwarding-rules list
NAME REGION IP_ADDRESS IP_PROTOCOL TARGET
my-forwarding X.X.X.X TCP my-target-proxy
gcloud compute forwarding-rules describe my-forwarding
For the following forwarding rules:
- [gondolin-forwarding]
choose a region:
[1] asia-east1
[2] europe-west1
[3] us-central1
[4] us-east1
Please enter your numeric choice: 3
答案 0 :(得分:1)
据我所知,转发规则既可以定义为区域性(即存在于给定区域中),也可以定义为全局资源。看起来您的资源不存在于us-central1区域。您能否尝试在全局命名空间中找到它:
gcloud compute forwarding-rules describe my-forwarding --global