Skip to content
Start here

Resource Library

Resource LibraryApplications

List applications
zero_trust.resource_library.applications.list(ApplicationListParams**kwargs) -> SyncCursorPaginationAfter[ApplicationListResponse]
GET/accounts/{account_id}/resource-library/applications
Get application
zero_trust.resource_library.applications.get(intid, ApplicationGetParams**kwargs) -> ApplicationGetResponse
GET/accounts/{account_id}/resource-library/applications/{id}
Create application
zero_trust.resource_library.applications.create(ApplicationCreateParams**kwargs) -> ApplicationCreateResponse
POST/accounts/{account_id}/resource-library/applications
Update application
zero_trust.resource_library.applications.update(intid, ApplicationUpdateParams**kwargs) -> ApplicationUpdateResponse
PATCH/accounts/{account_id}/resource-library/applications/{id}
Delete application
zero_trust.resource_library.applications.delete(intid, ApplicationDeleteParams**kwargs) -> object
DELETE/accounts/{account_id}/resource-library/applications/{id}
ModelsExpand Collapse
class ApplicationListResponse: …

Describes one application in a list response. The response returns every property below unless fields narrows it. Treat all properties except id as optional.

id: int

Numeric identifier for the application.

formatint64
maximum4294967295
minimum0
application_confidence_score: Optional[float]

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

formatfloat
application_score_composition: Optional[object]

Returns the score composition breakdown for the application.

application_source: Optional[str]

Returns the application source.

application_type: Optional[str]

Returns the application type.

application_type_description: Optional[str]

Returns the application type description.

category_id: Optional[int]

Numeric identifier for an application category.

formatint64
maximum4294967295
minimum1
created_at: Optional[str]

Returns the application creation time.

gen_ai_score: Optional[float]

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

formatfloat
hostnames: Optional[List[str]]

Hostnames matched by the application.

human_id: Optional[str]

Human-readable identifier for the application.

ip_subnets: Optional[List[str]]

IP subnets for this application. Custom application create and update requests accept IPv4 prefix lengths /8 through /32 and IPv6 prefix lengths /32 through /128.

name: Optional[str]

Application name.

port_protocols: Optional[List[str]]

Ports matched by the application, in protocol/port or inclusive protocol/start-end format (for example, tcp/443 or udp/10000-20000). TCP and UDP ports must be between 0 and 65535.

review_status: Optional[Literal["approved", "unapproved", "in_review", "unreviewed"]]

The account-specific Gateway review status. Applications with no assigned review status are returned as unreviewed.

One of the following:
"approved"
"unapproved"
"in_review"
"unreviewed"
support_domains: Optional[List[str]]

Support domains matched by the application.

supported: Optional[List[Literal["GATEWAY", "ACCESS", "CASB"]]]

Cloudflare products that support this application.

One of the following:
"GATEWAY"
"ACCESS"
"CASB"
updated_at: Optional[str]

Returns the application update time.

version: Optional[str]

Returns the application version.

class ApplicationGetResponse: …
id: int

Numeric identifier for the application.

formatint64
maximum4294967295
minimum0
application_confidence_score: float

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

formatfloat
application_source: str

Returns the application source.

application_type: str

Returns the application type.

application_type_description: str

Returns the application type description.

category_id: int

Numeric identifier for an application category.

formatint64
maximum4294967295
minimum1
created_at: str

Returns the application creation time.

gen_ai_score: float

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

formatfloat
hostnames: List[str]

Hostnames matched by the application.

human_id: str

Human-readable identifier for the application.

ip_subnets: List[str]

IP subnets for this application. Custom application create and update requests accept IPv4 prefix lengths /8 through /32 and IPv6 prefix lengths /32 through /128.

name: str

Application name.

port_protocols: List[str]

Ports matched by the application, in protocol/port or inclusive protocol/start-end format (for example, tcp/443 or udp/10000-20000). TCP and UDP ports must be between 0 and 65535.

support_domains: List[str]

Support domains matched by the application.

supported: List[Literal["GATEWAY", "ACCESS", "CASB"]]

Cloudflare products that support this application.

One of the following:
"GATEWAY"
"ACCESS"
"CASB"
updated_at: str

Returns the application update time.

version: str

Returns the application version.

application_score_composition: Optional[object]

Returns the score composition breakdown for the application.

class ApplicationCreateResponse: …
id: int

Numeric identifier for the application.

formatint64
maximum4294967295
minimum0
application_confidence_score: float

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

formatfloat
application_source: str

Returns the application source.

application_type: str

Returns the application type.

application_type_description: str

Returns the application type description.

category_id: int

Numeric identifier for an application category.

formatint64
maximum4294967295
minimum1
created_at: str

Returns the application creation time.

gen_ai_score: float

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

formatfloat
hostnames: List[str]

Hostnames matched by the application.

human_id: str

Human-readable identifier for the application.

ip_subnets: List[str]

IP subnets for this application. Custom application create and update requests accept IPv4 prefix lengths /8 through /32 and IPv6 prefix lengths /32 through /128.

name: str

Application name.

port_protocols: List[str]

Ports matched by the application, in protocol/port or inclusive protocol/start-end format (for example, tcp/443 or udp/10000-20000). TCP and UDP ports must be between 0 and 65535.

support_domains: List[str]

Support domains matched by the application.

supported: List[Literal["GATEWAY", "ACCESS", "CASB"]]

Cloudflare products that support this application.

One of the following:
"GATEWAY"
"ACCESS"
"CASB"
updated_at: str

Returns the application update time.

version: str

Returns the application version.

application_score_composition: Optional[object]

Returns the score composition breakdown for the application.

class ApplicationUpdateResponse: …
id: int

Numeric identifier for the application.

formatint64
maximum4294967295
minimum0
application_confidence_score: float

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

formatfloat
application_source: str

Returns the application source.

application_type: str

Returns the application type.

application_type_description: str

Returns the application type description.

category_id: int

Numeric identifier for an application category.

formatint64
maximum4294967295
minimum1
created_at: str

Returns the application creation time.

gen_ai_score: float

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

formatfloat
hostnames: List[str]

Hostnames matched by the application.

human_id: str

Human-readable identifier for the application.

ip_subnets: List[str]

IP subnets for this application. Custom application create and update requests accept IPv4 prefix lengths /8 through /32 and IPv6 prefix lengths /32 through /128.

name: str

Application name.

port_protocols: List[str]

Ports matched by the application, in protocol/port or inclusive protocol/start-end format (for example, tcp/443 or udp/10000-20000). TCP and UDP ports must be between 0 and 65535.

support_domains: List[str]

Support domains matched by the application.

supported: List[Literal["GATEWAY", "ACCESS", "CASB"]]

Cloudflare products that support this application.

One of the following:
"GATEWAY"
"ACCESS"
"CASB"
updated_at: str

Returns the application update time.

version: str

Returns the application version.

application_score_composition: Optional[object]

Returns the score composition breakdown for the application.

Resource LibraryCategories

List application categories
zero_trust.resource_library.categories.list(CategoryListParams**kwargs) -> SyncCursorPaginationAfter[CategoryListResponse]
GET/accounts/{account_id}/resource-library/categories
Get application category
zero_trust.resource_library.categories.get(intid, CategoryGetParams**kwargs) -> CategoryGetResponse
GET/accounts/{account_id}/resource-library/categories/{id}
ModelsExpand Collapse
class CategoryListResponse: …
id: int

Numeric identifier for an application category.

formatint64
maximum4294967295
minimum1
created_at: str

Returns the category creation time.

description: str

Returns the category description.

name: str

Returns the category name.

class CategoryGetResponse: …
id: int

Numeric identifier for an application category.

formatint64
maximum4294967295
minimum1
created_at: str

Returns the category creation time.

description: str

Returns the category description.

name: str

Returns the category name.