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:
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:
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
}
}