Google 计算网络描述转发规则错误
Google Compute Networking Describe Forwarding Rule Error
我在Google Cloud Platform 中通过HTTP 负载均衡创建了转发规则。当试图描述它时,我得到了一个错误。 如何在命令行中描述转发规则?我确定这是正确的区域,我已经尝试选择所有区域选项。
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
据我所知,转发规则可以定义为区域性(即存在于给定区域)以及全球资源。您的资源似乎不存在于 us-central1 区域。您能否尝试在全局命名空间中找到它:
gcloud compute forwarding-rules describe my-forwarding --global
我在Google Cloud Platform 中通过HTTP 负载均衡创建了转发规则。当试图描述它时,我得到了一个错误。 如何在命令行中描述转发规则?我确定这是正确的区域,我已经尝试选择所有区域选项。
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
据我所知,转发规则可以定义为区域性(即存在于给定区域)以及全球资源。您的资源似乎不存在于 us-central1 区域。您能否尝试在全局命名空间中找到它:
gcloud compute forwarding-rules describe my-forwarding --global