Deactivate Resource
Deactivate a resource (soft delete).
Triggers provider teardown for READY, WAITING, and FAILED resources, which return to DRAFT state once it completes. A resource that never provisioned anything returns to DRAFT immediately. Resources it owns alone are torn down with it.
The response lists the resources the deactivation reaches and what happens
to each. That list is the closure the validated pre-flight walk computed,
so it is a prediction rather than a record: the walk and the changes it
authorises are not one transaction, and on a real call a write landing in
between can still divert an individual resource. Pass dry_run=true to
read the list without changing anything; a deactivation that would be
refused is refused the same way in a dry run.
Sensitive fields are masked by default in the response.
Returns: Resource in DELETING state awaiting provider teardown, or in DRAFT when it held nothing to tear down, with the deactivation’s predicted impact list. A dry run returns the resource unchanged.
Path Parameters
Query Parameters
Reveal sensitive field values
Preview the deactivation without changing anything
Provider name
Resource type
Resource name
Response
Successful Response
A deactivated or removed resource, with everything the teardown reaches.
Attributes: impact: Resources the teardown's pre-flight walk predicted it reaches. dry_run: Whether the call only previewed the teardown.
Resources the teardown reaches, the requested one first, with the action taken on each. This is the prediction the validated pre-flight walk computed, not a record of what happened: the walk and the changes it authorises are not one transaction, so on a real call another write landing in between can still divert an individual resource. A dry run returns the same list without changing anything.
Whether the call only previewed the teardown, leaving everything untouched.
External resource ID for API responses: provider/resource/name.
Lifecycle states for resources.
draft, waiting, pending, processing, ready, failed, deleting, deleted healthy, degraded