state-versions

Get Workspace's Current State Version

Changed on

Fetch the current state version for the given workspace.

This state version will be the input state when running terraform operations.

get/workspaces/{workspace}/current-state-version

Request

  • Base URL
    https://example.scalr.io/api/iacp/v3
  • URL
    https://example.scalr.io/api/iacp/v3/workspaces/{workspace}/current-state-version
  • Auth
    HTTP bearer

Path parameters

workspacestring required

The ID of the workspace.

Response

Successfully returned current state version for the given workspace.

includedobject[]
metaobject

Changes

    • breaking

      the response property // became nullable for the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      response property data/attributes/modules deprecated

    • info

      response property data/attributes/providers deprecated

    • info

      response property data/attributes/resources deprecated