Terraform
- Terraform Enterprise
- 1.0.x (latest)
- v202507-1
- v202506-1
- v202505-1
- v202504-1
- v202503-1
- v202502-2
- v202501-1
- v202411-2
- v202411-1
- v202410-1
- v202409-3
- v202409-2
- v202409-1
- v202408-1
- No versions of this document exist before v202408-1. Click below to redirect to the version homepage.
- v202407-1
- v202406-1
- v202405-1
- v202404-2
- v202404-1
- v202402-2
- v202402-1
- v202401-2
- v202401-1
- v202312-1
- v202311-1
- v202310-1
- v202309-1
- v202308-1
- v202307-1
- v202306-1
- v202305-2
- v202305-1
- v202304-1
- v202303-1
- v202302-1
- v202301-2
- v202301-1
- v202212-2
- v202212-1
- v202211-1
- v202210-1
- v202209-2
- v202209-1
- v202208-3
- v202208-2
- v202208-1
- v202207-2
- v202207-1
- v202206-1
License report reference
By default, Terraform Enterpise automatically sends license usage metrics to HashiCorp. Refer to Enable automated license utilization reporting for additional information. HashiCorp collects the following data as a JSON payload:
- payload_version: The version of this payload schema
- license_id: The license ID for this product
- product: The product that this contribution is for
- product_version: The product version this contribution is for
- export_timestamp: The date and time for this contribution- snapshots: An array of snapshot details. A snapshot is a structure that represents a single data collection.- snapshot_version: The version of the snapshot package that produced this snapshot
- snapshot_id: A unique identifier for this particular snapshot
- process_id: An identifier for the system that produced this snapshot
- timestamp: The date and time for this snapshot
- schema_version: The version of the schema associated with this snapshot
- service: The service that produced this snapshot (likely to be product name)
- metrics: A map of representations of snapshot metrics contained within this snapshot- key: The key name associated with this metric
- workspacecount: Total number of workspaces defined in the Terraform Enterprise instance
- kind: The kind of metric (feature, counter, sum, or mean)
- mode: The mode of operation associated with this metric (write or collect)
- value: The value of the metric at the time the licensing exporter took this snapshot
 
 
 
- metadata: Optional product-specific metadata- replicated_license_id: The unique ID of the Replicated license. When deployed to a non-Replicated runtime, this field returns empty.
- sf_opportunity_id: The Salesforce opportunity ID associated with the license. When deployed to a non-Replicated runtime, this field returns empty.
 
Example payload
{
  "payload_version": "1",
  "license_id": "934b62bd-7e7b-7872-7341-9683ecd9acb4",
  "product": "terraform",
  "product_version": "v202305-01",
  "export_timestamp": "2023-05-24T10:11:12Z",
  "snapshots": [
    {
      "snapshot_version": 1,
      "snapshot_id": "01GW2Y117Z2BZ7MGS9YQXPF2A4",
      "process_id": "01GVKT7533WF8TBNSJYZV0T10F",
      "timestamp": "2023-05-23T20:33:32.927Z",
      "schema_version": "1.0.0",
      "service": "terraform",
      "metrics": {
        "terraform.workspacecount": {
          "key": "terraform.workspacecount",
          "kind": "counter",
          "mode": "write",
          "value": 20
        }
      }
    }
  ],
  "metadata": {
    "terraform": {
      "replicated_license_id": "vi15fg2ysml54yhhd8evcfjl63h6pt6k",
      "sf_opportunity_id": "ix0z0kj5f7egd64bo1"
    }
  }
}