Skip to content
Start here

Resource Library

Resource LibraryApplications

List applications
zero_trust.resource_library.applications.list(ApplicationListParams**kwargs) -> SyncSinglePage[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. This endpoint returns every property below unless the fields query parameter narrows the response, so treat all of them except id as optional.

id: int

Returns the application ID.

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]

Returns the category ID.

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]

Returns the human readable ID.

ip_subnets: Optional[List[str]]

IP subnets matched by the application.

name: Optional[str]

Returns the application name.

port_protocols: Optional[List[str]]

Port and protocol pairs matched by the application.

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

Returns the application ID.

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

Returns the category ID.

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

Returns the human readable ID.

ip_subnets: List[str]

IP subnets matched by the application.

name: str

Returns the application name.

port_protocols: List[str]

Port and protocol pairs matched by the application.

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

Returns the application ID.

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

Returns the category ID.

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

Returns the human readable ID.

ip_subnets: List[str]

IP subnets matched by the application.

name: str

Returns the application name.

port_protocols: List[str]

Port and protocol pairs matched by the application.

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

Returns the application ID.

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

Returns the category ID.

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

Returns the human readable ID.

ip_subnets: List[str]

IP subnets matched by the application.

name: str

Returns the application name.

port_protocols: List[str]

Port and protocol pairs matched by the application.

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) -> SyncSinglePage[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

Returns the category ID.

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

Returns the category ID.

formatint64
maximum4294967295
minimum1
created_at: str

Returns the category creation time.

description: str

Returns the category description.

name: str

Returns the category name.