List WARP change events.
client.ZeroTrust.DEX.WARPChangeEvents.Get(ctx, params) (*[]DexwarpChangeEventGetResponse, error)
GET/accounts/{account_id}/dex/warp-change-events
List WARP configuration and enablement toggle change events by device.
Security
API Token
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example:
API Email + API Key
The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.
Example:
The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.
Example:
Accepted Permissions (at least one required)
List WARP change events.
package main
import (
"context"
"fmt"
"github.com/stainless-sdks/cloudflare-go"
"github.com/stainless-sdks/cloudflare-go/option"
"github.com/stainless-sdks/cloudflare-go/zero_trust"
)
func main() {
client := cloudflare.NewClient(
option.WithAPIToken("Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY"),
)
warpChangeEvents, err := client.ZeroTrust.DEX.WARPChangeEvents.Get(context.TODO(), zero_trust.DEXWARPChangeEventGetParams{
AccountID: cloudflare.F("01a7362d577a6c3019a474fd6f485823"),
From: cloudflare.F("2023-09-20T17:00:00Z"),
Page: cloudflare.F(1.000000),
PerPage: cloudflare.F(10.000000),
To: cloudflare.F("2023-09-20T17:00:00Z"),
})
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", warpChangeEvents)
}
{
"errors": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"messages": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"success": true,
"result": [
{
"account_name": "account_name",
"account_tag": "account_tag",
"device_id": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
"device_registration": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
"hostname": "hostname",
"registration_id": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
"serial_number": "serial_number",
"timestamp": "2023-10-11T00:00:00Z",
"toggle": "on",
"user_email": "user_email"
}
],
"result_info": {
"count": 1,
"page": 1,
"per_page": 20,
"total_count": 2000,
"total_pages": 100
}
}Returns Examples
{
"errors": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"messages": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"success": true,
"result": [
{
"account_name": "account_name",
"account_tag": "account_tag",
"device_id": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
"device_registration": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
"hostname": "hostname",
"registration_id": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
"serial_number": "serial_number",
"timestamp": "2023-10-11T00:00:00Z",
"toggle": "on",
"user_email": "user_email"
}
],
"result_info": {
"count": 1,
"page": 1,
"per_page": 20,
"total_count": 2000,
"total_pages": 100
}
}