website/content/docs/datasources/http.mdx
⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️
<BadgesHeader> <PluginBadge type="official" /> <PluginBadge type="hcp_packer_ready" /> </BadgesHeader>[!IMPORTANT]
Documentation Update: Product documentation previously located in/websitehas moved to thehashicorp/web-unified-docsrepository, where all product documentation is now centralized. Please make contributions directly toweb-unified-docs, since changes to/websitein this repository will not appear on developer.hashicorp.com. ⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️
httpThe http data source makes an HTTP GET request to the specified URL and exports information about the response.
data "http" "example" {
url = "https://checkpoint-api.hashicorp.com/v1/check/terraform"
# Optional request headers
request_headers = {
Accept = "application/json"
}
}
Configuration options are organized below into two categories: required and optional. Within each category, the available options are alphabetized and described.
@include 'datasource/http/Config-required.mdx'
@include 'datasource/http/Config-not-required.mdx'
The outputs for this datasource are as follows:
@include 'datasource/http/DatasourceOutput.mdx'