github.com/argoproj/argo-cd/v3@v3.2.1/docs/user-guide/commands/argocd_app_get-resource.md (about) 1 # `argocd app get-resource` Command Reference 2 3 ## argocd app get-resource 4 5 Get details about the live Kubernetes manifests of a resource in an application. The filter-fields flag can be used to only display fields you want to see. 6 7 ``` 8 argocd app get-resource APPNAME [flags] 9 ``` 10 11 ### Examples 12 13 ``` 14 15 # Get a specific resource, Pod my-app-pod, in 'my-app' by name in wide format 16 argocd app get-resource my-app --kind Pod --resource-name my-app-pod 17 18 # Get a specific resource, Pod my-app-pod, in 'my-app' by name in yaml format 19 argocd app get-resource my-app --kind Pod --resource-name my-app-pod -o yaml 20 21 # Get a specific resource, Pod my-app-pod, in 'my-app' by name in json format 22 argocd app get-resource my-app --kind Pod --resource-name my-app-pod -o json 23 24 # Get details about all Pods in the application 25 argocd app get-resource my-app --kind Pod 26 27 # Get a specific resource with managed fields, Pod my-app-pod, in 'my-app' by name in wide format 28 argocd app get-resource my-app --kind Pod --resource-name my-app-pod --show-managed-fields 29 30 # Get the the details of a specific field in a resource in 'my-app' in the wide format 31 argocd app get-resource my-app --kind Pod --filter-fields status.podIP 32 33 # Get the details of multiple specific fields in a specific resource in 'my-app' in the wide format 34 argocd app get-resource my-app --kind Pod --resource-name my-app-pod --filter-fields status.podIP,status.hostIP 35 ``` 36 37 ### Options 38 39 ``` 40 --filter-fields strings A comma separated list of fields to display, if not provided will output the entire manifest 41 -h, --help help for get-resource 42 --kind string Kind of resource [REQUIRED] 43 -o, --output string Format of the output, wide, yaml, or json (default "wide") 44 --project string Project of resource 45 --resource-name string Name of resource, if none is included will output details of all resources with specified kind 46 --show-managed-fields Show managed fields in the output manifest 47 ``` 48 49 ### Options inherited from parent commands 50 51 ``` 52 --argocd-context string The name of the Argo-CD server context to use 53 --auth-token string Authentication token; set this or the ARGOCD_AUTH_TOKEN environment variable 54 --client-crt string Client certificate file 55 --client-crt-key string Client certificate key file 56 --config string Path to Argo CD config (default "/home/user/.config/argocd/config") 57 --controller-name string Name of the Argo CD Application controller; set this or the ARGOCD_APPLICATION_CONTROLLER_NAME environment variable when the controller's name label differs from the default, for example when installing via the Helm chart (default "argocd-application-controller") 58 --core If set to true then CLI talks directly to Kubernetes instead of talking to Argo CD API server 59 --grpc-web Enables gRPC-web protocol. Useful if Argo CD server is behind proxy which does not support HTTP2. 60 --grpc-web-root-path string Enables gRPC-web protocol. Useful if Argo CD server is behind proxy which does not support HTTP2. Set web root. 61 -H, --header strings Sets additional header to all requests made by Argo CD CLI. (Can be repeated multiple times to add multiple headers, also supports comma separated headers) 62 --http-retry-max int Maximum number of retries to establish http connection to Argo CD server 63 --insecure Skip server certificate and domain verification 64 --kube-context string Directs the command to the given kube-context 65 --logformat string Set the logging format. One of: json|text (default "json") 66 --loglevel string Set the logging level. One of: debug|info|warn|error (default "info") 67 --plaintext Disable TLS 68 --port-forward Connect to a random argocd-server port using port forwarding 69 --port-forward-namespace string Namespace name which should be used for port forwarding 70 --prompts-enabled Force optional interactive prompts to be enabled or disabled, overriding local configuration. If not specified, the local configuration value will be used, which is false by default. 71 --redis-compress string Enable this if the application controller is configured with redis compression enabled. (possible values: gzip, none) (default "gzip") 72 --redis-haproxy-name string Name of the Redis HA Proxy; set this or the ARGOCD_REDIS_HAPROXY_NAME environment variable when the HA Proxy's name label differs from the default, for example when installing via the Helm chart (default "argocd-redis-ha-haproxy") 73 --redis-name string Name of the Redis deployment; set this or the ARGOCD_REDIS_NAME environment variable when the Redis's name label differs from the default, for example when installing via the Helm chart (default "argocd-redis") 74 --repo-server-name string Name of the Argo CD Repo server; set this or the ARGOCD_REPO_SERVER_NAME environment variable when the server's name label differs from the default, for example when installing via the Helm chart (default "argocd-repo-server") 75 --server string Argo CD server address 76 --server-crt string Server certificate file 77 --server-name string Name of the Argo CD API server; set this or the ARGOCD_SERVER_NAME environment variable when the server's name label differs from the default, for example when installing via the Helm chart (default "argocd-server") 78 ``` 79 80 ### SEE ALSO 81 82 * [argocd app](argocd_app.md) - Manage applications 83