Skip to content
You are viewing the documentation for the 2.0.x version of Gloo Gateway. To get the latest enterprise features of the Kubernetes Gateway API on top of the kgateway project, see Solo Enterprise for kgateway. To use the older Gloo Gateway 1.x that is based on the Gloo upstream project, click here.

gloo gateway get

Page as Markdown

gloo gateway get command reference

List one or more Gloo Gateway resources.

Usage

gloo gateway get TYPE [RESOURCE_NAME] [flags]

Command-specific flags

-A, --all-namespaces    If present, list the requested objects across all namespaces. Note that any namespace context that you specified with -n or --namespace is ignored. 
--for string            Only show the resources that match the filter. To filter the results, use the `TYPE[/NAMESPACE]/NAME` format. If no `NAMESPACE` is set, the `default` namespace is automatically assumed. Examples: `gateway/ns2/foo-gateway`, `httproute/bar-httproute`, and `service/ns1/my-svc`.
-h, --help              Help for the command.
-l, --selector string   The selector label to filter on. Supported operations include '=', '==', and '!='. For example, to get all resources with the `key1=value1` and `key2=value2` labels, use `-l key1=value1,key2=value2`. 
-o, --output string     Define the output format. Supported values are wide, json, yaml, and graph.

Global flags

--as string                      The username to impersonate for the operation. The username can be a regular user or a service account in a namespace.
--as-group stringArray           The group to impersonate for the operation. This flag can be repeated to specify multiple groups.
--as-uid string                  The UID to impersonate for the operation.
--cache-dir string               The default cache directory. (default "/Users/[user]/.kube/cache")
--certificate-authority string   The path to a file that contains the certificate for the Certificate Authority. 
--client-certificate string      The path to a client certificate file to use to authenticate with the Kubernetes API server.
--client-key string              The path to a client key file to use for TLS connections to the Kubernetes API server. 
--cluster string                 The name of the cluster to use.
--context string                 The name of the kubeconfig context to use.
--disable-compression            If true, opt out of response compression for all requests to the server.
--insecure-skip-tls-verify       If true, the server's certificate is not checked for validity.
--kubeconfig string              The path to the kubeconfig file to use for CLI requests.
-n, --namespace string           The namespace scope for this CLI request.
--request-timeout string         The length of time to wait before a server request is considered failed. Non-zero values must contain a corresponding time unit, such as 1s, 2m, 3h, etc. If set to zero ("0"), no timeouts are applied to CLI requests. (default "0")
-s, --server string              The address and port of the Kubernetes API server.
--tls-server-name string         The server name to use for server certificate validation. If not provided, the hostname that is used to contact the Kubernetes API server is used.
--token string                   The bearer token for authentication to the API server.
--user string                    The name of the kubeconfig user to use.
-v, --v int                      The number for the log level verbosity. (defaults to 0)