## NAME

gdcloud network get-effective-firewall-rules - Get the effective firewall rules for a workload.

## SYNOPSIS

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

### EXAMPLES

```text
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
```

### OPTIONAL FLAGS

```text
      --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.
```

### GDCLOUD WIDE FLAGS

These flags are available to all commands: `--configuration`, `--format`, `--help`, `--project`, `--quiet`.

For more information, see the [gdcloud CLI reference overview](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/gdcag/resources/gdcloud-reference/gdcloud.md.txt) page.