Terraform
/usage/bundle endpoint reference
This endpoint provides a usage bundle. For more information about the product usage data structure and the specific metrics that Terraform Enterprise collects, refer to the Terraform Enterprise usage data reference.
GET /api/v1/usage/bundle
Sample request
curl \
--header "Authorization: Bearer $TOKEN" \
--request GET \
https://tfe.example.com:8443/api/v1/usage/bundle
Response Codes
Status | Response | Reason |
---|---|---|
200 | JSON usage bundle | Successfully retrieved usage data |
403 | JSON API error object | Not authorized to access this endpoint |
429 | JSON API error object | Too many requests |
500 | JSON API error object | Internal server error |
System API Overview
Terraform Enterprise Only: The System API is exclusive to Terraform Enterprise. It enables access to deployment configuration and data.
This API is distinct from the regular Admin API and the Backup and Restore API, with its own authentication mechanism.
Authentication
System API requests must be authenticated with a bearer token generated specifically for this API using the tfectl admin api-token generate
command. For more information on the token creation, and management, refer to the tfectl documentation.
Use the HTTP Header Authorization
with the value Bearer <token>
.
Rate Limiting
All System API endpoints are rate limited to 1 request per second per authentication token.
Port Configuration
By default, the System API is accessible on HTTPS port 8443
. This port can be configured through the TFE_ADMIN_HTTPS_PORT
environment variable in your deployment configuration.
Refer to Network settings in the configuration reference for more information about network configuration.
Versioning
The System API is versioned under the /api/v1
prefix and is separate from the main Terraform Enterprise API.
For example, if the API endpoint documentation defines the path /ping
then the full path is /api/v1/ping
.
Related Resources
- Enable automated product usage reports - Instructions for configuring Terraform Enterprise to automatically send product usage data to HashiCorp
- Generate product usage report using the CLI - Instructions for generating product usage reports manually