gdcloud network get-effective-firewall-rules

NAME

gdcloud network get-effective-firewall-rules - 워크로드의 유효 방화벽 규칙 가져오기

SYNOPSIS

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

EXAMPLES

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

선택적 플래그

      --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 전체 플래그

이 플래그는 모든 명령어에서 사용할 수 있습니다. --configuration, --format, --help, --project, --quiet

자세한 내용은 gdcloud CLI 참조 개요 페이지를 확인하세요.