June 25th 2024
Improved
Now everyone can define if their API checks are going to be executed either using IPv4 or IPv6. That setting is available through the Checkly app, the CLI and our Terraform provider.
To get started head to the Checkly UI, and find the IP family selector in the API check editor.
If you are using the CLI use the property ipFamily
with the value IPv4
or IPv6.
import { ApiCheck, AssertionBuilder } from 'checkly/constructs'
new ApiCheck('hello-api-1', {
name: 'Hello API',
activated: true,
request: {
method: 'GET',
ipFamily: 'IPv6'
url: 'https://mac-demo-repo.vercel.app/api/hello',
assertions: [
AssertionBuilder.statusCode().equals(200)
],
}
})
If you are using Terraform, use the setting ip_family
with value IPv4
or IPv6
.
resource "checkly_check" "hello-api-1" {
name = "Hello API"
type = "API"
activated = true
frequency = 1
locations = [
"us-west-1",
"eu-central-1"
]
request {
url = "https://mac-demo-repo.vercel.app/api/hello"
follow_redirects = true
skip_ssl = false
ip_family = "IPv6"
assertion {
source = "STATUS_CODE"
comparison = "EQUALS"
target = "200"
}
}
}
Questions or feedback? Join our Slack community.