コンテンツにスキップ

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.

Terminal window
xcsh get <KIND> <NAME> -n <NAMESPACE> --result-file get.json
xcsh export <KIND> <NAME> -n <NAMESPACE> -f exported.yaml

Sanitize exported server metadata and secrets before storing the file.

Terminal window
xcsh delete <KIND> <NAME> -n <NAMESPACE> --dry-run client
xcsh delete <KIND> <NAME> -n <NAMESPACE> --result-file delete.json
xcsh 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.