urlscan

The urlscan connection can be used to access URLScan resources.

connection "urlscan" "my_urlscan" {
api_key = "11111111-e127-1234-adcd-59cad2f12abc"
}

Arguments

NameTypeRequired?Description
api_keyStringOptionalAPI Key

All arguments are optional, and a urlscan connection with no arguments will behave the same as the default connection.

Attributes (Read-Only)

AttributeTypeDescription
envMapA map of the resolved connection-related environment variables (URLSCAN_API_KEY)

Default Connection

The urlscan connection type includes an implicit, default connection (connection.urlscan.default) that will be configured to set the api_key to the URLSCAN_API_KEY environment variable.

connection "urlscan" "default" {
api_key = env("URLSCAN_API_KEY")
}