get
Usage
The rapd cloud
command is used to retrieve Cloud resources.
rapd cloud get (Name...) [flags]
Flags
These are the flags available in the rapd cloud get
command:
Flag Name | Short Name | Default Value | Required | Description |
---|---|---|---|---|
--output | -o | No | Output the full spec of the resource in a readable file, such as YAML or JSONL format. | |
--label | -l | No | Retrieve resources matching the specified label | |
--field | No | Retrieve resources matching the specified field | ||
--all-namespaces | -A | No | Query resources in all environments | |
--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 cloud get
command:
- Retrieve a Cloud resource by specifying its name:
rapd cloud get gcp-credential
- Output the full spec of a Cloud resource:
rapd cloud get gcp-credential -o yaml
Output
After successfully executing the command, the output will look similar to the following:
NAMESPACE NAME PROVIDER PHASErapd-system c1 aws Readyrapd-system c2 gcp Ready