gdcloud network get-effective-firewall-rules

NAMA

gdcloud network get-effective-firewall-rules - Mendapatkan aturan firewall efektif untuk beban kerja.

SINOPSIS

gdcloud network get-effective-firewall-rules [flags]

CONTOH

To get the effective firewall rules for a specific pod named 'my-pod' in shared cluster 'user-vm-1' and project 'project-1', run:
    gdcloud network get-effective-firewall-rules --project=project-1 --workload-name=pod/my-pod --cluster-name=user-vm-1

To get the effective firewall rules for workloads with labels 'app=my-app' in project 'project-1', run:
    gdcloud network get-effective-firewall-rules --project=project-1 --workload-labels=app=my-app

To get the effective firewall rules for workloads with labels 'app=my-app' in standard cluster 'standard-cluster-1' and project 'project-1', run:
    gdcloud network get-effective-firewall-rules --project=project-1 --workload-labels=app=my-app --cluster-name=standard-cluster-1 --standard --namespace=my-namespace

FLAG OPSIONAL

      --cluster-name string      Name of the cluster where the workload resides.
      --namespace string         Namespace where the workload resides. This is only required when --standard is specified.
      --standard                 Set the configuration for the cluster with the firewall rules as a standard cluster. If not specified, the shared cluster configuration is used.
      --workload-labels string   Comma-separated list of labels (key=value) of the workload to get the effective firewall rules for (for example, 'app=my-app,role=frontend').
      --workload-name string     Name of the workload to get the effective firewall rules for, in the 'kind/name' format (for example, 'pod/my-pod', 'deployment/my-deploy').
      --zone string              Zone to use for this invocation. To preset the zone flag for all commands that require it, run: "gdcloud config set core/zone ZONE". The zone flag is available only in multi-zone environments.

FLAG SELURUH GDCLOUD

Flag ini tersedia untuk semua perintah: --configuration, --format, --help, --project, --quiet.

Untuk mengetahui informasi selengkapnya, lihat halaman ringkasan referensi gcloud CLI.