History

This endpoint is used to see terraform states changes over time for a Terrakube workspace.

Entity fields:

Path
Type
Description

data.type

string

Should be "history"

data.attributes.output

string

Unique variable name

Example:

{
  "data": {
    "type": "history",
    "attributes": {
      "output": "Terraform JSON State URL"
    }
  }
}

Supported Operations

get

Returns the relationship history

Path parameters
workspaceIdstringRequired

workspace Identifier

Query parameters
filter[history]stringOptional

Filters the collection of history using a 'disjoint' RSQL expression

page[number]integer · int32Optional

Number of pages to return. Can be used with page[size]

page[size]integer · int32Optional

Number of elements per page. Can be used with page[number]

page[offset]integer · int32Optional

Offset from 0 to start paginating. Can be used with page[limit]

page[limit]integer · int32Optional

Maximum number of items to return. Can be used with page[offset]

page[totals]stringOptional

For requesting total pages/records be included in the response page meta data

Responses
200

Successful response

application/vnd.api+json
get
GET /api/v1/workspace/{workspaceId}/history HTTP/1.1
Host: 
Accept: */*
200

Successful response

{
  "data": [
    {
      "type": "text",
      "id": "text",
      "attributes": {
        "createdBy": null,
        "createdDate": null,
        "jobReference": null,
        "lineage": null,
        "md5": null,
        "output": null,
        "serial": null,
        "updatedBy": null,
        "updatedDate": null
      },
      "relationships": {
        "workspace": {
          "data": [
            null
          ]
        }
      }
    }
  ],
  "included": [
    {
      "type": "text",
      "id": "text",
      "attributes": {},
      "relationships": {}
    }
  ]
}

For a complete list of organization operation please visit the OpenAPI specification

Last updated

Was this helpful?