Get, export, and delete resources
เนื้อหานี้ยังไม่มีในภาษาของคุณ
Use get to inspect live state, export to create a reusable manifest, and delete only after verifying the exact identity and namespace.
How do I retrieve or export one resource?
Section titled “How do I retrieve or export one resource?”xcsh get <KIND> <NAME> -n <NAMESPACE> --result-file get.jsonxcsh export <KIND> <NAME> -n <NAMESPACE> -f exported.yamlSanitize exported server metadata and secrets before storing the file.
How do I delete and prove absence?
Section titled “How do I delete and prove absence?”xcsh delete <KIND> <NAME> -n <NAMESPACE> --dry-run clientxcsh delete <KIND> <NAME> -n <NAMESPACE> --result-file delete.jsonxcsh get <KIND> <NAME> -n <NAMESPACE>The final get must return the documented not-found response for the resource kind. A successful delete request without the absence check is incomplete.