docs: document Automation API previewDestroy/previewRefresh - #20734
docs: document Automation API previewDestroy/previewRefresh#20734workprentice[bot] wants to merge 1 commit into
Conversation
Adds a "Preview a destroy or refresh without applying it" section to
the Automation API guide, covering PreviewDestroy/PreviewRefresh
(TypeScript, Python, Go) and the equivalent PreviewOnly-option pattern
used by C# and Java, which don't expose standalone preview methods for
destroy/refresh.
Signatures verified against SDK source:
- sdk/nodejs/automation/stack.ts (previewDestroy/previewRefresh)
- sdk/python/lib/pulumi/automation/_stack.py (preview_destroy/preview_refresh)
- sdk/go/auto/stack.go + optdestroy/optrefresh (PreviewDestroy/PreviewRefresh,
gated behind Pulumi CLI >= 3.105.0 per the Go SDK's own version check)
- pulumi-dotnet sdk/Pulumi.Automation/{DestroyOptions,RefreshOptions}.cs (PreviewOnly)
- pulumi-java sdk/java/pulumi/.../{DestroyOptions,RefreshOptions}.java (previewOnly builder)
This continues the Automation API coverage-gap rotation (tag management
was covered in PR #20729); Rename and ImportResources remain as future
candidates.
lint (markdown-lint + prettier) passes clean; no new Vale findings in
the changed section.
Pre-merge Review — Last updated 2026-08-06T15:03:58ZTip Summary: This PR adds one new section — "Preview a destroy or refresh without applying it" — to the Automation API guide ( Review confidence:
Investigation log
🔍 Verification trail11 claims extracted · 11 verified · 0 unverifiable · 0 contradicted
🚨 Outstanding in this PRNo outstanding findings in this PR.
|
|
Your site preview for commit 16354be is ready! 🎉 http://www-testing-pulumi-docs-origin-pr-20734-16354be9.s3-website.us-west-2.amazonaws.com Changed pages: |
What this does
Adds a "Preview a destroy or refresh without applying it" section to the Automation API guide (
content/docs/iac/guides/building-extending/automation-api.md), documentingpreviewDestroy/previewRefresh(and their language-specific equivalents), which exist across all supported Automation API SDKs but were previously undocumented.Why
This is a proactive freshness-audit fix continuing the Automation API coverage-gap rotation: tag management was covered in #20729, and this PR picks up the next naturally-paired slice (preview-only destroy/refresh) rather than trying to cover the whole remaining gap (
Rename,ImportResources) in one PR.Verification
Method signatures were verified directly against SDK source rather than paraphrased:
sdk/nodejs/automation/stack.ts—previewDestroy(opts?: DestroyOptions): Promise<PreviewResult>,previewRefresh(opts?: RefreshOptions): Promise<PreviewResult>sdk/python/lib/pulumi/automation/_stack.py—preview_destroy(...) -> PreviewResult,preview_refresh(...) -> PreviewResultsdk/go/auto/stack.go—PreviewDestroy/PreviewRefresh, both gated behind Pulumi CLI >= 3.105.0 by the SDK's own version check (documented in the new section)pulumi/pulumi-dotnet): no standalone preview method;DestroyOptions.PreviewOnly/RefreshOptions.PreviewOnlyon the regularDestroyAsync/RefreshAsynccalls, confirmed againstsdk/Pulumi.Automation/{DestroyOptions,RefreshOptions}.csand the existingPreviewDestroyxUnit test inLocalWorkspaceTests.cspulumi/pulumi-java): samepreviewOnlybuilder-option pattern, confirmed againstsdk/java/pulumi/.../{DestroyOptions,RefreshOptions}.javamake lint(markdown-lint + prettier) passes clean. Ran Vale against the changed file; findings present are all pre-existing, outside the new section.🧠 This PR was created by workprentice on behalf of the Pulumi docs team.