Skip to content
Start here

List applications

client.ZeroTrust.ResourceLibrary.Applications.List(ctx, params) (*SinglePage[ResourceLibraryApplicationListResponse], error)
GET/accounts/{account_id}/resource-library/applications

List applications with different filters.

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 ResourceLibraryApplicationListParams
AccountID param.Field[string]

Path param: Account ID.

Filter param.Field[string]Optional

Query param: Filter applications using key:value format. Supported filter keys:

  • name: Filter by application name (e.g., name:HR)
  • id: Filter by application ID (e.g., id:0b63249c-95bf-4cc0-a7cc-d7faaaf1dac0)
  • human_id: Filter by human-readable ID (e.g., human_id:HR)
  • hostname: Filter by hostname or support domain (e.g., hostname:portal.example.com)
  • source: Filter by application source name (e.g., source:cloudflare)
  • ip_subnet: Filter by IP subnet using CIDR containment — returns applications where any stored subnet contains the search value (e.g., ip_subnet:10.0.1.5/32 matches apps with 10.0.0.0/16)
  • intel_id: Filter by Intel API ID (e.g., intel_id:498). also supports multiple values (e.g., intel_id:498,1001)
  • category_id: Filter by category ID (e.g., category_id:37f8ec03-8766-49d4-9a15-369b044c842c).
  • category_name: Filter by category name (e.g., category_name:HR).
  • supported: Filter by supported Cloudflare product (e.g., supported:ACCESS). Values: GATEWAY, ACCESS, CASB. .
Limit param.Field[int64]Optional

Query param: Limit of number of results to return (max 250).

Offset param.Field[int64]Optional

Query param: Offset of results to return.

OrderBy param.Field[string]Optional

Query param: Order results by field name and direction (e.g., name:asc). Ignored when search is provided; results are ranked by relevance instead.

ReturnsExpand Collapse
type ResourceLibraryApplicationListResponse struct{…}
ID string

Returns the application ID.

ApplicationConfidenceScore float64

Confidence score for the application. Returns -1 when no score is available.

formatfloat
ApplicationSource string

Returns the application source.

ApplicationType string

Returns the application type.

ApplicationTypeDescription string

Returns the application type description.

CreatedAt string

Returns the application creation time.

GenAIScore float64

GenAI score for the application. Returns -1 when no score is available.

formatfloat
Hostnames []string

Returns the list of hostnames for the application.

HumanID string

Returns the human readable ID.

IPSubnets []string

Returns the list of IP subnets for the application.

Name string

Returns the application name.

PortProtocols []string

Returns the list of port protocols for the application.

SupportDomains []string

Returns the list of support domains for the application.

Supported []ResourceLibraryApplicationListResponseSupported

Cloudflare products that support this application.

One of the following:
const ResourceLibraryApplicationListResponseSupportedGateway ResourceLibraryApplicationListResponseSupported = "GATEWAY"
const ResourceLibraryApplicationListResponseSupportedAccess ResourceLibraryApplicationListResponseSupported = "ACCESS"
const ResourceLibraryApplicationListResponseSupportedCasb ResourceLibraryApplicationListResponseSupported = "CASB"
UpdatedAt string

Returns the application update time.

Version string

Returns the application version.

ApplicationScoreComposition unknownOptional

Returns the score composition breakdown for the application.

IntelID int64Optional

Returns the Intel API ID for the application.

formatint64

List applications

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"),
  )
  page, err := client.ZeroTrust.ResourceLibrary.Applications.List(context.TODO(), zero_trust.ResourceLibraryApplicationListParams{
    AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"),
  })
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", page)
}
{
  "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": [
    {
      "id": "12345678-1234-1234-1234-123456789012",
      "application_confidence_score": 0.92,
      "application_source": "cloudflare",
      "application_type": "Human Resources",
      "application_type_description": "Applications used to manage employees and workforce tools.",
      "created_at": "2025-01-01T00:00:00Z",
      "gen_ai_score": 1.5,
      "hostnames": [
        "example.com",
        "foo.com"
      ],
      "human_id": "HR",
      "ip_subnets": [
        "192.168.1.0/24",
        "10.0.0.0/8"
      ],
      "name": "HR",
      "port_protocols": [
        "tcp/80",
        "tcp/443"
      ],
      "support_domains": [
        "example.com",
        "foo.com"
      ],
      "supported": [
        "GATEWAY",
        "ACCESS"
      ],
      "updated_at": "2025-01-01T00:00:00Z",
      "version": "2025-01-01T00:00:00Z",
      "application_score_composition": {
        "categories": [
          {
            "confidence": 0.95,
            "name": "Security"
          }
        ],
        "plan": "free"
      },
      "intel_id": 498
    }
  ],
  "result_info": {
    "count": 1,
    "page": 1,
    "per_page": 20,
    "total_count": 2000
  }
}
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": [
    {
      "id": "12345678-1234-1234-1234-123456789012",
      "application_confidence_score": 0.92,
      "application_source": "cloudflare",
      "application_type": "Human Resources",
      "application_type_description": "Applications used to manage employees and workforce tools.",
      "created_at": "2025-01-01T00:00:00Z",
      "gen_ai_score": 1.5,
      "hostnames": [
        "example.com",
        "foo.com"
      ],
      "human_id": "HR",
      "ip_subnets": [
        "192.168.1.0/24",
        "10.0.0.0/8"
      ],
      "name": "HR",
      "port_protocols": [
        "tcp/80",
        "tcp/443"
      ],
      "support_domains": [
        "example.com",
        "foo.com"
      ],
      "supported": [
        "GATEWAY",
        "ACCESS"
      ],
      "updated_at": "2025-01-01T00:00:00Z",
      "version": "2025-01-01T00:00:00Z",
      "application_score_composition": {
        "categories": [
          {
            "confidence": 0.95,
            "name": "Security"
          }
        ],
        "plan": "free"
      },
      "intel_id": 498
    }
  ],
  "result_info": {
    "count": 1,
    "page": 1,
    "per_page": 20,
    "total_count": 2000
  }
}