2016-02-26 60 views
2

我已经通过Google云端平台中的HTTP负载平衡创建了转发规则。当试图描述它时,我得到一个错误。 如何在命令行中描述转发规则?我确定这是正确的地区,我试过选择所有地区的选择。Google Compute Networking描述转发规则错误

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

ERROR: (gcloud.compute.forwarding-rules.describe) Could not fetch resource: - The resource 'projects/my-project/regions/us-central1/forwardingRules/my-forwarding' was not found

回答

1

据我知道转发规则可以被定义既作为区域(即存在于一个给定的区域),以及作为全球资源。它看起来像你的资源dos不存在于us-central1地区。您能否请尝试在全局命名空间中找到它:

gcloud compute forwarding-rules describe my-forwarding --global