Skip to main content
POST
Deactivate Resource

Path Parameters

project_id
string
required

Query Parameters

reveal
boolean
default:false

Reveal sensitive field values

dry_run
boolean
default:false

Preview the deactivation without changing anything

provider
string
required

Provider name

resource
string
required

Resource type

name
string
required

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.

provider
string
required
resource
string
required
name
string
required
project_id
string
required
impact
TeardownImpact · object[]
required

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.

dry_run
boolean
required

Whether the call only previewed the teardown, leaving everything untouched.

id
string
required
read-only

External resource ID for API responses: provider/resource/name.

created_at
string<date-time>
updated_at
string<date-time>
config
Config · object
resolved_config
Resolved Config · object | null
previous_resolved_config
Previous Resolved Config · object | null
dependencies
ResourceReference · object[]
owner_references
OwnerReference · object[]
outputs
Outputs · object
error
string | null
lifecycle_state
enum<string>
default:draft

Lifecycle states for resources.

Available options:
draft,
waiting,
pending,
processing,
ready,
failed,
deleting,
deleted
health
enum<string>
default:healthy
Available options:
healthy,
degraded
health_message
string | null
pending_event_id
string | null
pending_event_type
string | null
provisioned
boolean
default:false
reconcile_count
integer
default:0
version
integer
default:0
tags
string[] | null
provider_version
string | null