Skip to content
Start here

List integrations

client.ZeroTrust.Casb.Integrations.List(ctx, params) (*SinglePage[CasbIntegrationListResponse], error)
GET/accounts/{account_id}/one/integrations

Returns a paginated list of integrations for the account.

Security
API Token

The preferred authorization scheme for interacting with the Cloudflare API. Create a token.

Example:Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY
API Email + API Key

The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.

Example:X-Auth-Email: user@example.com

The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.

Example:X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194
ParametersExpand Collapse
params CasbIntegrationListParams
AccountID param.Field[string]

Path param: Cloudflare account identifier.

Application param.Field[string]Optional

Query param: Filter by application/vendor (e.g., GOOGLE_WORKSPACE, MICROSOFT_INTERNAL).

Direction param.Field[CasbIntegrationListParamsDirection]Optional

Query param: Direction to order results.

const CasbIntegrationListParamsDirectionAsc CasbIntegrationListParamsDirection = "asc"
const CasbIntegrationListParamsDirectionDesc CasbIntegrationListParamsDirection = "desc"
DLPEnabled param.Field[bool]Optional

Query param: Filter by DLP enabled status (true/false).

Order param.Field[CasbIntegrationListParamsOrder]Optional

Query param: Field to order results by.

const CasbIntegrationListParamsOrderApplication CasbIntegrationListParamsOrder = "application"
const CasbIntegrationListParamsOrderCreated CasbIntegrationListParamsOrder = "created"
const CasbIntegrationListParamsOrderName CasbIntegrationListParamsOrder = "name"
const CasbIntegrationListParamsOrderStatus CasbIntegrationListParamsOrder = "status"
Page param.Field[int64]Optional

Query param: Page number within the paginated result set.

PageSize param.Field[int64]Optional

Query param: Number of results per page.

Status param.Field[CasbIntegrationListParamsStatus]Optional

Query param: Filter by integration status.

const CasbIntegrationListParamsStatusHealthy CasbIntegrationListParamsStatus = "Healthy"
const CasbIntegrationListParamsStatusInitializing CasbIntegrationListParamsStatus = "Initializing"
const CasbIntegrationListParamsStatusOffline CasbIntegrationListParamsStatus = "Offline"
const CasbIntegrationListParamsStatusUnhealthy CasbIntegrationListParamsStatus = "Unhealthy"
UseCases param.Field[string]Optional

Query param: Filter by enabled use cases (e.g., casb, ces). Matches integrations enrolled in any of the specified values. Can be specified multiple times.

ReturnsExpand Collapse
type CasbIntegrationListResponse struct{…}

Serializer for v2 integration list responses.

ID string

Integration ID.

formatuuid
Application map[string, string]
Created Time

When the integration was created.

formatdate-time
IsPaused bool

Whether the user paused the integration.

Name string

Name of the integration.

Status string

Integration status.

Updated Time

When the integration was last updated.

formatdate-time

List integrations

package main

import (
  "context"
  "fmt"

  "github.com/cloudflare/cloudflare-go"
  "github.com/cloudflare/cloudflare-go/option"
  "github.com/cloudflare/cloudflare-go/zero_trust"
)

func main() {
  client := cloudflare.NewClient(
    option.WithAPIToken("Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY"),
  )
  page, err := client.ZeroTrust.Casb.Integrations.List(context.TODO(), zero_trust.CasbIntegrationListParams{
    AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"),
  })
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", page)
}
{
  "errors": [],
  "messages": [],
  "result": [
    {
      "application": {
        "category": "Productivity",
        "display_name": "Google Workspace",
        "logo": "https://onprem.cloudflare.com/static/google_workspace.png"
      },
      "created": "2025-01-15T10:00:00Z",
      "id": "019d2e6a-d995-7185-afbd-4feead9e42ec",
      "is_paused": false,
      "name": "My Google Workspace",
      "status": "Healthy",
      "updated": "2025-04-10T08:30:00Z"
    }
  ],
  "result_info": {
    "count": 1,
    "next": null,
    "page": 1,
    "per_page": 10,
    "previous": null,
    "total_count": 1
  },
  "success": true
}
Returns Examples
{
  "errors": [],
  "messages": [],
  "result": [
    {
      "application": {
        "category": "Productivity",
        "display_name": "Google Workspace",
        "logo": "https://onprem.cloudflare.com/static/google_workspace.png"
      },
      "created": "2025-01-15T10:00:00Z",
      "id": "019d2e6a-d995-7185-afbd-4feead9e42ec",
      "is_paused": false,
      "name": "My Google Workspace",
      "status": "Healthy",
      "updated": "2025-04-10T08:30:00Z"
    }
  ],
  "result_info": {
    "count": 1,
    "next": null,
    "page": 1,
    "per_page": 10,
    "previous": null,
    "total_count": 1
  },
  "success": true
}