Skip to content

Get the latest drift change set for a resource

GET
/v1/resources/{org_uuid}/{resource_uuid}/drift

Get the latest drift change set for a resource, or NotFound if the latest drift check was OK or there was no check yet.

Authorizations

apiKey

API key as username in Basic Authorization with
empty password.

TypeAPI Key (header: Authorization)
or
jwtToken
TypeHTTP (bearer)

Parameters

Path Parameters

org_uuid*

UUID of the organization

Typestring
Required
format"uuid"
resource_uuid*

The ID of the resource

Typestring
Required
Example"01c9fb02-7648-45f5-9bdd-f2c27e59c448"
format"uuid"

Responses

OK

application/json
JSON
{
"change": "string",
"changed_at": "2024-04-12T07:06:00Z",
"drift": {
"started_at": "string",
"finished_at": "string",
"id": 0,
"auth_type": "string",
"auth_user": {
"display_name": "Marius Tolzmann",
"position": "CTPO",
"user_picture_url": "https://lh3.googleusercontent.com/a/AAcHTtcBqudpP0hVoQyjDv-v5b4lP6e0vN_92zi_aPp90hE=s96-c"
},
"auth_trust": {
"auth_id": "terramate-io/somerepo/.github/workflows/check-all.yml@refs/heads/main"
},
"org_uuid": "string",
"stack_id": 0,
"stack": {
"stack_id": 1337,
"repository": "github.com/terramate-io/iac-gcloud",
"target": "staging",
"path": "/path/to/stack",
"default_branch": "main",
"meta_id": "a754255a-c92a-4aeb-9668-bd3ce21dc8a2",
"meta_name": "My Stack Name",
"meta_description": "My Stack Description",
"meta_tags": [
[
"tagA",
"tagB"
]
],
"status": "string",
"created_at": "string",
"updated_at": "string",
"seen_at": "string",
"is_archived": true,
"archived_at": "string",
"archived_by_user_uuid": "string",
"unarchived_at": "string",
"unarchived_by_user_uuid": "string",
"deployment_status": "string",
"drift_status": "string",
"draft": true,
"related_stacks": [
{
"stack_id": 0,
"target": "string"
}
],
"resources": {
"count": 42,
"policy_check": {
"created_at": "2024-09-12T07:06:00Z",
"passed": false,
"counters": {
"passed_count": 42,
"severity_low_count": 3,
"severity_medium_count": 2,
"severity_high_count": 1
}
}
}
},
"status": "string",
"metadata": {
"additionalProperties": "string"
},
"drift_details": {
"provisioner": "string",
"serial": 0,
"changeset_ascii": "string",
"changeset_json": "string"
},
"grouping_key": "repo+id+1",
"cmd": [
[
"terraform",
"plan"
]
]
}
}

Playground

Authorization
Variables
Key
Value

Samples

Powered by VitePress OpenAPI