get
Usage
The rapd target
command is used to retrieve Target resources.
rapd target get (Name...) [flags]
Flags
These are the flags available in the rapd target get
command:
Flag Name | Short Name | Default Value | Required | Description |
---|---|---|---|---|
--output | -o | No | Output the complete resource spec in a readable format such as YAML or JSONL. | |
--label | -l | No | Retrieve resources matching the specified label | |
--field | No | Retrieve resources matching the specified field | ||
--all-namespaces | -A | No | Query resources across all namespaces | |
--ignore-not-found | No | Ignore errors when the resource does not exist (returns exit code 0) |
Examples
Here are some examples of using the rapd target get
command:
- Retrieve a Target by name (in the default-env environment):
rapd target get bind-gcp -e default-env
- Output the complete Target spec:
rapd target get bind-gcp -e default-env -o yaml
Output
After successfully executing the command, the output will look similar to the following:
NAMESPACE NAME PHASE CLUSTERNAMEtest bind-gcp Bound defaulttest bind-aws Unbound