### GET /accounts/{account_id}/magic/cloud/providers/{provider_id}/initial-setup Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/magic_cloud_networking/api.md Retrieves the initial setup information for a specific Cloud Integration. ```APIDOC ## GET /accounts/{account_id}/magic/cloud/providers/{provider_id}/initial-setup ### Description Retrieves the initial setup information for a specific Cloud Integration. ### Method GET ### Endpoint /accounts/{account_id}/magic/cloud/providers/{provider_id}/initial-setup ### Parameters #### Path Parameters - **account_id** (string) - Required - The unique identifier for the account. - **provider_id** (string) - Required - The unique identifier for the cloud provider. ### Response #### Success Response (200) - **result** (object) - Initial setup details for the Cloud Integration. Refer to `CloudIntegrationInitialSetupResponse` for details. ### Response Example ```json { "example": "response body" } ``` ``` -------------------------------- ### Install from Local Wheel File Source: https://github.com/cloudflare/cloudflare-python/blob/main/CONTRIBUTING.md Install the SDK using a locally built wheel file. ```sh pip install ./path-to-wheel-file.whl ``` -------------------------------- ### Run Custom Example Source: https://github.com/cloudflare/cloudflare-python/blob/main/CONTRIBUTING.md Execute a custom example script against your API after making it executable. ```sh ./examples/.py ``` -------------------------------- ### Add and Make Example Executable Source: https://github.com/cloudflare/cloudflare-python/blob/main/CONTRIBUTING.md Create a new example file in the examples/ directory and make it executable. ```py # add an example to examples/.py #!/usr/bin/env -S uv run python … ``` ```sh chmod +x examples/.py ``` -------------------------------- ### Install from Git Source: https://github.com/cloudflare/cloudflare-python/blob/main/CONTRIBUTING.md Install the Cloudflare Python SDK directly from its GitHub repository using pip. ```sh pip install git+ssh://git@github.com/cloudflare/cloudflare-python.git ``` -------------------------------- ### Install Cloudflare Python Client Source: https://github.com/cloudflare/cloudflare-python/blob/main/README.md Install the cloudflare package from PyPI using pip. ```sh pip install cloudflare ``` -------------------------------- ### Sync Dependencies with uv Source: https://github.com/cloudflare/cloudflare-python/blob/main/CONTRIBUTING.md Install all project dependencies using uv. Ensure uv is installed manually first. ```sh uv sync --all-extras ``` -------------------------------- ### Install Cloudflare Python Client with aiohttp Source: https://github.com/cloudflare/cloudflare-python/blob/main/README.md Install the cloudflare package with the aiohttp extra dependency for improved concurrency. ```sh pip install cloudflare[aiohttp] ``` -------------------------------- ### Install Development Dependencies with pip Source: https://github.com/cloudflare/cloudflare-python/blob/main/CONTRIBUTING.md Install dependencies using pip if not using uv. Ensure the Python version matches .python-version. ```sh pip install -r requirements-dev.lock ``` -------------------------------- ### Import Device List and Get Response Types Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/zero_trust/api.md Imports types for listing and getting specific device details. ```python from cloudflare.types.zero_trust.devices import DeviceListResponse, DeviceGetResponse ``` -------------------------------- ### Get Top Email Security TLDs Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/radar/api.md Retrieves top TLD data for email security. Requires the `cloudflare` library to be installed. ```python from cloudflare.types.radar.email.security.top import TLDGetResponse ``` ```python client.radar.email.security.top.tlds.get(**params) -> TLDGetResponse ``` -------------------------------- ### Get Installed Cloudflare Python Version Source: https://github.com/cloudflare/cloudflare-python/blob/main/README.md Use this snippet to print the version of the Cloudflare Python package that is currently active in your environment. ```python import cloudflare print(cloudflare.__version__) ``` -------------------------------- ### Start Mock Server Source: https://github.com/cloudflare/cloudflare-python/blob/main/CONTRIBUTING.md Run a mock server against the OpenAPI spec to facilitate testing. ```sh ./scripts/mock ``` -------------------------------- ### Start Recordings Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/realtime_kit/api.md Initiates new recordings for a given application, with optional parameters. ```APIDOC ## POST /accounts/{account_id}/realtime/kit/{app_id}/recordings ### Description Initiates new recordings for a given application, with optional parameters. ### Method POST ### Endpoint /accounts/{account_id}/realtime/kit/{app_id}/recordings ### Parameters #### Path Parameters - **account_id** (string) - Required - The ID of the account. - **app_id** (string) - Required - The ID of the application. #### Request Body - **params** (object) - Optional - Parameters for starting recordings. Refer to `RecordingStartRecordingsParams` for details. ``` -------------------------------- ### Bootstrap Environment with uv Source: https://github.com/cloudflare/cloudflare-python/blob/main/CONTRIBUTING.md Run this script to automatically provision a Python environment with uv. ```sh ./scripts/bootstrap ``` -------------------------------- ### Import Lock Get Response Type Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/r2/api.md Imports the necessary type for lock GET responses. ```python from cloudflare.types.r2.buckets import LockGetResponse ``` -------------------------------- ### Import Reference Get Response Type Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/load_balancers/api.md Imports the type for the response when getting monitor references. ```python from cloudflare.types.load_balancers.monitors import ReferenceGetResponse ``` -------------------------------- ### Create Monitor Preview Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/load_balancers/api.md Creates a preview for a load balancer monitor configuration. This helps in testing changes before applying them. ```python client.load_balancers.monitors.previews.create(monitor_id, *, account_id, **params) -> PreviewCreateResponse ``` -------------------------------- ### GET /accounts/{account_id}/storage/kv/namespaces Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/kv/api.md Lists all KV namespaces for an account. ```APIDOC ## GET /accounts/{account_id}/storage/kv/namespaces ### Description Retrieves a list of all KV namespaces associated with the account. ### Method GET ### Endpoint /accounts/{account_id}/storage/kv/namespaces ### Parameters #### Path Parameters - **account_id** (string) - Required - The account identifier. ### Response #### Success Response (200) - **SyncV4PagePaginationArray[Namespace]** (array) - A paginated list of namespaces. ``` -------------------------------- ### Create Zone with Nested Account Parameter Source: https://github.com/cloudflare/cloudflare-python/blob/main/README.md Demonstrates how to create a zone using a dictionary for the nested account parameter. ```python from cloudflare import Cloudflare client = Cloudflare() zone = client.zones.create( account={}, name="example.com", ) print(zone.account) ``` -------------------------------- ### Start Track Recording Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/realtime_kit/api.md Initiates a track recording for a given application, with optional parameters. ```APIDOC ## POST /accounts/{account_id}/realtime/kit/{app_id}/recordings/track ### Description Initiates a track recording for a given application, with optional parameters. ### Method POST ### Endpoint /accounts/{account_id}/realtime/kit/{app_id}/recordings/track ### Parameters #### Path Parameters - **account_id** (string) - Required - The ID of the account. - **app_id** (string) - Required - The ID of the application. #### Request Body - **params** (object) - Optional - Parameters for starting a track recording. Refer to `RecordingStartTrackRecordingParams` for details. ``` -------------------------------- ### Get MarkdownForAgents Summary Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/radar/api.md Retrieves a summary of markdown for agents. Use this to get aggregated data related to agent markdown. ```python client.radar.ai.markdown_for_agents.summary(**params) -> MarkdownForAgentSummaryResponse ``` -------------------------------- ### client.flagship.apps.create Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/flagship/api.md Creates a new flagship application for a given account. It accepts account ID and optional parameters for configuration. ```APIDOC ## POST /accounts/{account_id}/flagship/apps ### Description Creates a new flagship application. ### Method POST ### Endpoint /accounts/{account_id}/flagship/apps ### Parameters #### Path Parameters - **account_id** (string) - Required - The ID of the account to create the app in. #### Request Body - **params** (object) - Required - Parameters for creating the app. ### Response #### Success Response (200) - **AppCreateResponse** (object) - The response object for app creation. ``` -------------------------------- ### Get Organization Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/user/api.md Retrieves details for a specific organization by its ID. This method corresponds to the GET /user/organizations/{organization_id} API endpoint. ```python client.user.organizations.get(organization_id) ``` -------------------------------- ### Create Custom Nameserver Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/custom_nameservers/api.md Creates a new custom nameserver for the specified account. ```python client.custom_nameservers.create(*, account_id, **params) ``` -------------------------------- ### Start New Recording Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/realtime_kit/api.md Initiates a new recording for a specified application, with optional parameters to configure the recording. ```python client.realtime_kit.recordings.start_recordings(app_id, *, account_id, **params) -> RecordingStartRecordingsResponse ``` -------------------------------- ### Create Flagship App Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/flagship/api.md Use this method to create a new flagship application. Requires account ID and parameters for the app configuration. ```python client.flagship.apps.create( *, account_id, **params ) -> AppCreateResponse ``` -------------------------------- ### Get Top HTTP Locations Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/radar/api.md Retrieves a list of top HTTP locations. Use this method to get an overview of location data. ```python from cloudflare.types.radar import Http client.radar.http.locations.get() ``` -------------------------------- ### Get Bot Summary V2 Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/radar/api.md Retrieves a summary of bot data for a specified dimension. Use this to get aggregated bot statistics. ```python client.radar.ai.bots.summary_v2(dimension, **params) -> BotSummaryV2Response ``` -------------------------------- ### Create Realtime Kit Preset Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/realtime_kit/api.md Use this method to create a new Realtime Kit preset. Requires the application ID and account ID. ```python client.realtime_kit.presets.create(app_id, *, account_id, **params) -> PresetCreateResponse ``` -------------------------------- ### Get User Invite Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/user/api.md Retrieves a specific user invite by its ID. This method corresponds to the GET /user/invites/{invite_id} API endpoint. ```python client.user.invites.get(invite_id) ``` -------------------------------- ### Create Tenant Custom Nameserver Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/tenant_custom_nameservers/api.md Use this method to create a custom nameserver for a specific tenant. Requires the tenant tag and relevant parameters. ```python client.tenant_custom_nameservers.create(tenant_tag, **params) -> Optional[TenantCustomNameserverCreateResponse] ``` -------------------------------- ### Get Stream Embed URL Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/stream/api.md Use this method to get the embed URL for a stream. Requires the stream identifier and account ID. ```python client.stream.embed.get(identifier, *, account_id) -> str ``` -------------------------------- ### Launch Browser Rendering Devtools Browser Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/browser_rendering/api.md Launches a new browser instance for devtools. Requires an account ID and optional parameters. ```python client.browser_rendering.devtools.browser.launch(account_id=account_id, **params) ``` -------------------------------- ### Get TimeseriesGroups Summary Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/radar/api.md Retrieves a summary of timeseries group data for a specified dimension. Use this to get aggregated data for time-based groupings. ```python client.radar.ai.timeseries_groups.summary(dimension, **params) -> TimeseriesGroupSummaryResponse ``` -------------------------------- ### Import Evaluate Types Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/flagship/api.md Import the necessary type for evaluating flagship configurations. ```python from cloudflare.types.flagship.apps import EvaluateGetResponse ``` -------------------------------- ### Get Post Quantum Origin Summary Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/radar/api.md Retrieves a summary of Post-Quantum Cryptography origin data for a specified dimension. Use this to get aggregated insights. ```python client.radar.post_quantum.origin.summary(dimension, **params) -> OriginSummaryResponse ``` -------------------------------- ### client.tenant_custom_nameservers.create Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/tenant_custom_nameservers/api.md Creates a new custom nameserver for a given tenant. Requires tenant tag and relevant parameters. ```APIDOC ## POST /tenants/{tenant_tag}/custom_ns ### Description Creates a new custom nameserver for a given tenant. ### Method POST ### Endpoint /tenants/{tenant_tag}/custom_ns ### Parameters #### Path Parameters - **tenant_tag** (string) - Required - The unique identifier for the tenant. #### Request Body - **params** (object) - Required - Parameters for creating the custom nameserver. Refer to the TenantCustomNameserverCreateParams type for details. ### Response #### Success Response (200) - **result** (TenantCustomNameserverCreateResponse) - Details of the created custom nameserver. ``` -------------------------------- ### Build Distribution Package Source: https://github.com/cloudflare/cloudflare-python/blob/main/CONTRIBUTING.md Create distributable package files (.tar.gz and .whl) for the library. ```sh uv build ``` ```sh python -m build ``` -------------------------------- ### Get Bot by Slug Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/radar/api.md Retrieves detailed information for a specific bot identified by its slug. This endpoint is useful for getting in-depth data about a particular bot. ```APIDOC ## GET /radar/bots/{bot_slug} ### Description Retrieves detailed information for a specific bot identified by its slug. This endpoint is useful for getting in-depth data about a particular bot. ### Method GET ### Endpoint /radar/bots/{bot_slug} ### Parameters #### Path Parameters - **bot_slug** (string) - Required - The unique slug identifier for the bot. #### Query Parameters - **params** (object) - Optional - Filtering parameters for the bot details. ### Response #### Success Response (200) - **BotGetResponse** (object) - The response object containing detailed information about the bot. ``` -------------------------------- ### Get Account DNS Settings Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/dns/api.md Retrieves the current DNS settings for a specific account. This method corresponds to the GET /accounts/{account_id}/dns_settings endpoint. ```APIDOC ## GET /accounts/{account_id}/dns_settings ### Description Retrieves the current DNS settings for a specific account. ### Method GET ### Endpoint /accounts/{account_id}/dns_settings ### Parameters #### Path Parameters - **account_id** (string) - Required - The ID of the account to retrieve settings for. ### Response #### Success Response (200) - **result** (Optional[AccountGetResponse]) - The current DNS settings for the account. ``` -------------------------------- ### Create Preset Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/realtime_kit/api.md Creates a new Realtime Kit preset for a given application. ```APIDOC ## POST /accounts/{account_id}/realtime/kit/{app_id}/presets ### Description Creates a new Realtime Kit preset. ### Method POST ### Endpoint /accounts/{account_id}/realtime/kit/{app_id}/presets ### Parameters #### Path Parameters - **account_id** (string) - Required - The ID of the account. - **app_id** (string) - Required - The ID of the application. #### Query Parameters - **params** (object) - Optional - Additional parameters for preset creation. ### Request Example ```json { "example": "request body" } ``` ### Response #### Success Response (200) - **PresetCreateResponse** (object) - The response object for preset creation. ``` -------------------------------- ### Get Zone DNS Settings Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/dns/api.md Retrieves the current DNS settings for a specific zone. This method corresponds to the GET /zones/{zone_id}/dns_settings endpoint. ```APIDOC ## GET /zones/{zone_id}/dns_settings ### Description Retrieves the current DNS settings for a specific zone. ### Method GET ### Endpoint /zones/{zone_id}/dns_settings ### Parameters #### Path Parameters - **zone_id** (string) - Required - The ID of the zone to retrieve settings for. ### Response #### Success Response (200) - **result** (Optional[ZoneGetResponse]) - The current DNS settings for the zone. ``` -------------------------------- ### Create a Healthcheck Preview Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/healthchecks/api.md Create a preview of a healthcheck configuration without actually deploying it. Requires zone ID and preview parameters. ```python client.healthchecks.previews.create(*, zone_id, **params) -> Healthcheck ``` -------------------------------- ### Get Account DNS Usage Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/dns/api.md Retrieves DNS usage statistics for a specific account. This method corresponds to the GET /accounts/{account_id}/dns_records/usage endpoint. ```APIDOC ## GET /accounts/{account_id}/dns_records/usage ### Description Retrieves DNS usage statistics for a specific account. ### Method GET ### Endpoint /accounts/{account_id}/dns_records/usage ### Parameters #### Path Parameters - **account_id** (string) - Required - The ID of the account to retrieve usage for. ### Response #### Success Response (200) - **result** (Optional[AccountGetResponse]) - The DNS usage data for the account. ``` -------------------------------- ### Create Posture Integration Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/zero_trust/api.md Creates a new device posture integration. Use this to connect third-party security tools. ```python client.zero_trust.devices.posture.integrations.create(account_id="{account_id}", **params) ``` -------------------------------- ### Get Zone DNS Usage Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/dns/api.md Retrieves DNS usage statistics for a specific zone. This method corresponds to the GET /zones/{zone_id}/dns_records/usage endpoint. ```APIDOC ## GET /zones/{zone_id}/dns_records/usage ### Description Retrieves DNS usage statistics for a specific zone. ### Method GET ### Endpoint /zones/{zone_id}/dns_records/usage ### Parameters #### Path Parameters - **zone_id** (string) - Required - The ID of the zone to retrieve usage for. ### Response #### Success Response (200) - **result** (Optional[ZoneGetResponse]) - The DNS usage data for the zone. ``` -------------------------------- ### Evaluate Flagship Configuration Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/flagship/api.md Evaluate the configuration for a specific flagship application. Requires app ID, account ID, and optional evaluation parameters. ```python client.flagship.apps.evaluate.get( app_id, *, account_id, **params ) -> EvaluateGetResponse ``` -------------------------------- ### Get Radar Ranking Top Data Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/radar/api.md Retrieve top ranking data for radar. This method allows for flexible parameterization to get specific ranking information. ```python client.radar.ranking.top(**params) -> RankingTopResponse ``` -------------------------------- ### Preview Load Balancer Monitor Configuration Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/load_balancers/api.md Previews the creation of a Load Balancer Monitor. This endpoint allows testing monitor configurations before applying them. ```APIDOC ## POST /accounts/{account_id}/load_balancers/monitors/{monitor_id}/preview ### Description Previews the creation of a Load Balancer Monitor. ### Method POST ### Endpoint /accounts/{account_id}/load_balancers/monitors/{monitor_id}/preview ### Parameters #### Path Parameters - **account_id** (string) - Required - The ID of the account to which the load balancer belongs. - **monitor_id** (string) - Required - The ID of the monitor to preview. #### Request Body - **params** (object) - Required - Parameters for previewing the monitor. Refer to the PreviewCreateParams type for details. ### Response #### Success Response (200) - **result** (PreviewCreateResponse) - The result of the preview operation. ### Response Example { "result": { "description": "Preview successful." } } ``` -------------------------------- ### Get Layer 3 Attack Summary by Dimension Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/radar/api.md Retrieve a summary of Layer 3 attacks for a specific dimension. Use this to get aggregated attack data. ```python client.radar.attacks.layer3.summary_v2(dimension, **params) -> Layer3SummaryV2Response ``` -------------------------------- ### Get Radar Email Routing Summary V2 Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/radar/api.md Retrieves a summary of email routing data for a specified dimension. Use this to get aggregated routing statistics. ```python client.radar.email.routing.summary_v2(dimension, **params) -> RoutingSummaryV2Response ``` -------------------------------- ### Launch Browser Rendering Devtools Browser Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/browser_rendering/api.md Launches a browser rendering devtools browser instance. Supports configuration via parameters. ```APIDOC ## GET /accounts/{account_id}/browser-rendering/devtools/browser ### Description Launches a browser rendering devtools browser instance. Supports configuration via parameters. ### Method GET ### Endpoint /accounts/{account_id}/browser-rendering/devtools/browser ### Parameters #### Path Parameters - **account_id** (string) - Required - The ID of the account. #### Query Parameters - **params** (object) - Optional - Additional parameters for launching the browser. ``` -------------------------------- ### Get Cloudforce One Messages Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/cloudforce_one/api.md Retrieve messages for a specific Cloudforce One request. Requires request ID, account ID, and optional get parameters. ```python client.cloudforce_one.requests.message.get(request_id, *, account_id, **params) -> SyncSinglePage[Message] ``` -------------------------------- ### Create Device Posture Rule Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/zero_trust/api.md Creates a new device posture rule for a given account. Use this to define conditions for device access. ```python client.zero_trust.devices.posture.create(account_id="{account_id}", **params) ``` -------------------------------- ### Create Magic Network Monitoring Configuration Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/magic_network_monitoring/api.md Creates a new network monitoring configuration for an account. Requires an account ID and configuration parameters. ```python from cloudflare.types.magic_network_monitoring import Configuration ``` -------------------------------- ### Get Radar Email Security Summary for Spoof Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/radar/api.md Retrieves a summary of Email Security Spoof data. Use this method to get metrics related to email spoofing. ```python client.radar.email.security.summary.spoof(**params) -> SummarySpoofResponse ``` -------------------------------- ### List Posture Integrations Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/zero_trust/api.md Retrieves a list of all configured device posture integrations for an account. ```python client.zero_trust.devices.posture.integrations.list(account_id="{account_id}") ``` -------------------------------- ### Get Radar Email Security Summary for Spam Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/radar/api.md Retrieves a summary of Email Security Spam data. Use this method to get metrics related to spam email. ```python client.radar.email.security.summary.spam(**params) -> SummarySpamResponse ``` -------------------------------- ### Get Account DNS Settings View Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/dns/api.md Retrieves a specific DNS settings view for an account. This method corresponds to the GET /accounts/{account_id}/dns_settings/views/{view_id} endpoint. ```APIDOC ## GET /accounts/{account_id}/dns_settings/views/{view_id} ### Description Retrieves a specific DNS settings view for an account. ### Method GET ### Endpoint /accounts/{account_id}/dns_settings/views/{view_id} ### Parameters #### Path Parameters - **account_id** (string) - Required - The ID of the account the view belongs to. - **view_id** (string) - Required - The ID of the DNS settings view to retrieve. ### Response #### Success Response (200) - **result** (Optional[ViewGetResponse]) - The details of the DNS settings view. ``` -------------------------------- ### Prebuilt Policies API Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/magic_cloud_networking/api.md List prebuilt policies available for catalog syncs. ```APIDOC ## GET /accounts/{account_id}/magic/cloud/catalog-syncs/prebuilt-policies ### Description Lists available prebuilt policies for catalog syncs. ### Method GET ### Endpoint /accounts/{account_id}/magic/cloud/catalog-syncs/prebuilt-policies ### Parameters #### Path Parameters - **account_id** (string) - Required - The ID of the account. #### Query Parameters - **name** (string) - Optional - Filter policies by name. - **type** (string) - Optional - Filter policies by type. ### Response #### Success Response (200) - **result** (array) - A list of prebuilt policy objects. #### Response Example ```json { "example": "[{\"name\": \"policy-1\", \"type\": \"firewall\"}, {\"name\": \"policy-2\", \"type\": \"routing\"}]" } ``` ``` -------------------------------- ### Get HTTP Locations by HTTP Method Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/radar/api.md Retrieves HTTP location data filtered by HTTP method. Analyze traffic based on methods like GET, POST, etc. ```python client.radar.http.locations.http_method.get(http_version='GET') ``` -------------------------------- ### Import Topup Config Types Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/ai_gateway/api.md Import necessary types for AI Gateway billing top-up configuration. ```python from cloudflare.types.ai_gateway.billing.topup import ConfigCreateResponse, ConfigGetResponse ``` -------------------------------- ### Get Radar Email Security Summary for Malicious Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/radar/api.md Retrieves a summary of Email Security Malicious data. Use this method to get metrics related to malicious email activity. ```python client.radar.email.security.summary.malicious(**params) -> SummaryMaliciousResponse ``` -------------------------------- ### Create Browser Rendering Devtools Browser Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/browser_rendering/api.md Creates a new browser instance for devtools. Requires an account ID and optional parameters. ```python client.browser_rendering.devtools.browser.create( account_id=account_id, **params ) ``` -------------------------------- ### Get Radar Email Security Summary for Threat Category Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/radar/api.md Retrieves a summary of Email Security Threat Category data. Use this method to get metrics categorized by threat type. ```python client.radar.email.security.summary.threat_category(**params) -> SummaryThreatCategoryResponse ``` -------------------------------- ### Get Radar Email Security Summary for SPF Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/radar/api.md Retrieves a summary of Email Security SPF (Sender Policy Framework) data. Use this method to get SPF-related security metrics. ```python client.radar.email.security.summary.spf(**params) -> SummarySPFResponse ``` -------------------------------- ### Import LogoMatchGetResponse Type Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/brand_protection/api.md Import the specific type for Brand Protection v2 Logo Match Get responses. ```python from cloudflare.types.brand_protection.v2 import LogoMatchGetResponse ``` -------------------------------- ### Import Device Posture Types Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/zero_trust/api.md Imports all necessary types for defining and managing device posture rules. ```python from cloudflare.types.zero_trust.devices import ( CarbonblackInput, ClientCertificateInput, CrowdstrikeInput, DeviceInput, DeviceMatch, DevicePostureRule, DiskEncryptionInput, DomainJoinedInput, FileInput, FirewallInput, IntuneInput, KolideInput, OSVersionInput, SentineloneInput, SentineloneS2sInput, TaniumInput, UniqueClientIDInput, WorkspaceOneInput, PostureDeleteResponse, ) ``` -------------------------------- ### Get Radar Email Security Summary for DKIM Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/radar/api.md Retrieves a summary of Email Security DKIM (DomainKeys Identified Mail) data. Use this method to get DKIM-related security metrics. ```python client.radar.email.security.summary.dkim(**params) -> SummaryDKIMResponse ``` -------------------------------- ### Create AI Gateway Topup Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/ai_gateway/api.md Initiate a top-up for the AI Gateway billing for a given account. Requires account ID and optional parameters. ```python client.ai_gateway.billing.topup.create( account_id="12345", ) -> TopupCreateResponse ``` -------------------------------- ### Get Radar Email Security Summary for ARC Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/radar/api.md Retrieves a summary of Email Security ARC (Authenticated Received Chain) data. Use this method to get ARC-related security metrics. ```python client.radar.email.security.summary.arc(**params) -> SummaryARCResponse ``` -------------------------------- ### Import PrebuiltPolicy Types Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/magic_cloud_networking/api.md Import the response type for PrebuiltPolicy operations. ```python from cloudflare.types.magic_cloud_networking.catalog_syncs import PrebuiltPolicyListResponse ``` -------------------------------- ### Get Radar Email Security Summary for DMARC Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/radar/api.md Retrieves a summary of Email Security DMARC (Domain-based Message Authentication, Reporting & Conformance) data. Use this method to get DMARC-related security metrics. ```python client.radar.email.security.summary.dmarc(**params) -> SummaryDMARCResponse ``` -------------------------------- ### Get Custom Nameservers Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/custom_nameservers/api.md Retrieves a list of custom nameservers for the specified account. ```python client.custom_nameservers.get(*, account_id) ``` -------------------------------- ### Get Radar Email Security Summary for TLS Version Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/radar/api.md Retrieves a summary of Email Security TLS Version data. Use this method to get metrics related to TLS versions used in email communication. ```python client.radar.email.security.summary.tls_version(**params) -> SummaryTLSVersionResponse ``` -------------------------------- ### get Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/zones/api.md Retrieves details for a specific zone by its ID. ```APIDOC ## GET /zones/{zone_id} ### Description Retrieves details for a specific zone by its ID. ### Method GET ### Endpoint /zones/{zone_id} ### Parameters #### Path Parameters - **zone_id** (string) - Required - The unique identifier of the zone to retrieve. ### Response #### Success Response (200) - **zone** (Zone) - The Zone object with details. #### Response Example ```json { "example": "response body" } ``` ``` -------------------------------- ### Create Browser Rendering Devtools Browser Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/browser_rendering/api.md Creates a new browser rendering devtools browser instance. Supports configuration via parameters. ```APIDOC ## POST /accounts/{account_id}/browser-rendering/devtools/browser ### Description Creates a new browser rendering devtools browser instance. Supports configuration via parameters. ### Method POST ### Endpoint /accounts/{account_id}/browser-rendering/devtools/browser ### Parameters #### Path Parameters - **account_id** (string) - Required - The ID of the account. #### Request Body - **params** (object) - Optional - Additional parameters for creating the browser instance. ``` -------------------------------- ### GET /certificates Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/origin_ca_certificates/api.md Lists all Origin CA certificates. ```APIDOC ## GET /certificates ### Description Lists all Origin CA certificates. ### Method GET ### Endpoint /certificates ``` -------------------------------- ### Create DNS Settings View for an Account Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/dns/api.md Creates a new DNS settings view for an account. Requires the account ID and view parameters. ```python from cloudflare.types.dns.settings.account import ViewCreateResponse client.dns.settings.account.views.create( account_id="12345", # Additional parameters for the view to create ) ``` -------------------------------- ### GET /memberships Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/memberships/api.md List all memberships associated with the account. ```APIDOC ## GET /memberships ### Description List all memberships associated with the account. ### Method GET ### Endpoint /memberships ### Response #### Success Response (200) - **Membership** (array) - A paginated list of membership objects. ``` -------------------------------- ### Get All Realtime Kit Presets Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/realtime_kit/api.md Use this method to retrieve all Realtime Kit presets for a given application. Requires application ID and account ID. ```python client.realtime_kit.presets.get(app_id, *, account_id, **params) -> PresetGetResponse ``` -------------------------------- ### GET /custom_pages/assets Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/custom_pages/api.md Lists all custom page assets. ```APIDOC ## GET /{accounts_or_zones}/{account_or_zone_id}/custom_pages/assets ### Description Retrieves a list of all assets associated with custom pages. ### Method GET ### Endpoint /{accounts_or_zones}/{account_or_zone_id}/custom_pages/assets ``` -------------------------------- ### Start Track Recording Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/realtime_kit/api.md Begins a new track recording for an application, potentially for specific streams or events. ```python client.realtime_kit.recordings.start_track_recording(app_id, *, account_id, **params) -> RecordingStartTrackRecordingResponse ``` -------------------------------- ### List Observability Queries Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/workers/api.md Use this method to list all observability queries for an account. Requires an account ID. ```python client.workers.observability.queries.list( account_id=account_id, **params ) ``` -------------------------------- ### Get Connector Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/zero_trust/api.md Retrieves a specific connector associated with a tunnel. ```APIDOC ## GET /accounts/{account_id}/cfd_tunnel/{tunnel_id}/connectors/{connector_id} ### Description Retrieves a specific connector associated with a tunnel. ### Method GET ### Endpoint /accounts/{account_id}/cfd_tunnel/{tunnel_id}/connectors/{connector_id} ### Parameters #### Path Parameters - **account_id** (string) - Required - The ID of the account. - **tunnel_id** (string) - Required - The ID of the tunnel. - **connector_id** (string) - Required - The ID of the connector. ``` -------------------------------- ### Bots Timeseries Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/radar/api.md Get timeseries data for bot-related metrics. ```APIDOC ## GET /radar/ai/bots/timeseries ### Description Retrieves timeseries data for bot-related metrics. ### Method GET ### Endpoint /radar/ai/bots/timeseries ### Parameters #### Query Parameters - **params** (object) - Optional - Additional query parameters for filtering and pagination. ``` -------------------------------- ### Import Preview Create Response Type Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/load_balancers/api.md Imports the type for the response when creating a monitor preview. ```python from cloudflare.types.load_balancers.monitors import PreviewCreateResponse ``` -------------------------------- ### Get Ramp Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/magic_transit/api.md Retrieves a specific ramp for a CF1 Site. ```APIDOC ## GET /accounts/{account_id}/magic/cf1_sites/{cf1_site_id}/ramps/{ramp_id} ### Description Retrieves a specific ramp for a CF1 Site. ### Method GET ### Endpoint /accounts/{account_id}/magic/cf1_sites/{cf1_site_id}/ramps/{ramp_id} ### Parameters #### Path Parameters - **account_id** (string) - Required - The ID of the account. - **cf1_site_id** (string) - Required - The ID of the CF1 Site. - **ramp_id** (string) - Required - The ID of the ramp to retrieve. ### Response #### Success Response (200) - **result** (Ramp) - The ramp object. #### Response Example ```json { "example": "response body for a ramp" } ``` ``` -------------------------------- ### Get CF1 Site Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/magic_transit/api.md Retrieves a specific CF1 Site. ```APIDOC ## GET /accounts/{account_id}/magic/cf1_sites/{cf1_site_id} ### Description Retrieves a specific CF1 Site. ### Method GET ### Endpoint /accounts/{account_id}/magic/cf1_sites/{cf1_site_id} ### Parameters #### Path Parameters - **account_id** (string) - Required - The ID of the account. - **cf1_site_id** (string) - Required - The ID of the CF1 Site to retrieve. ### Response #### Success Response (200) - **result** (Cf1Site) - The CF1 Site object. #### Response Example ```json { "example": "response body for a CF1 site" } ``` ``` -------------------------------- ### Create Spectrum App Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/spectrum/api.md Create a new Spectrum application. Requires zone ID and application parameters. ```python client.spectrum.apps.create(*, zone_id, **params) -> Optional[AppCreateResponse] ``` -------------------------------- ### Create AI Gateway Topup Configuration Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/ai_gateway/api.md Create or update the AI Gateway billing top-up configuration for an account. Requires account ID and optional parameters. ```python client.ai_gateway.billing.topup.config.create( account_id="12345", ) -> ConfigCreateResponse ``` -------------------------------- ### Get User Subscriptions Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/user/api.md Retrieves a list of all user subscriptions. ```python client.user.subscriptions.get() ``` -------------------------------- ### Create an Observability Query Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/workers/api.md Use this method to create a new observability query. Requires an account ID and query parameters. ```python client.workers.observability.queries.create( account_id=account_id, **params ) ``` -------------------------------- ### Get Dataset Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/ai_gateway/api.md Retrieves a specific AI Gateway dataset. ```APIDOC ## GET /accounts/{account_id}/ai-gateway/gateways/{gateway_id}/datasets/{id} ### Description Retrieves a specific AI Gateway dataset. ### Method GET ### Endpoint /accounts/{account_id}/ai-gateway/gateways/{gateway_id}/datasets/{id} ### Parameters #### Path Parameters - **id** (string) - Required - The ID of the dataset. - **account_id** (string) - Required - The ID of the account. - **gateway_id** (string) - Required - The ID of the gateway. ``` -------------------------------- ### Create a Deployment for a Route Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/ai_gateway/api.md Use this method to create a new deployment for a specific dynamic route. Requires route ID, gateway ID, and account ID. ```python client.ai_gateway.dynamic_routing.create_deployment(id, *account_id, gateway_id, **params) ``` -------------------------------- ### Get Tenant Entitlements Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/tenants/api.md Retrieves the entitlements for a specific tenant. ```APIDOC ## Get Tenant Entitlements ### Description Retrieves the entitlements for a specific tenant. ### Method GET ### Endpoint /tenants/{tenant_id}/entitlements ### Parameters #### Path Parameters - **tenant_id** (string) - Required - The unique identifier of the tenant. ### Response #### Success Response (200) - **TenantEntitlements** (object) - The entitlements object for the tenant. ``` -------------------------------- ### Get Tenant Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/tenants/api.md Retrieves the details of a specific tenant by its ID. ```APIDOC ## Get Tenant ### Description Retrieves the details of a specific tenant by its ID. ### Method GET ### Endpoint /tenants/{tenant_id} ### Parameters #### Path Parameters - **tenant_id** (string) - Required - The unique identifier of the tenant. ### Response #### Success Response (200) - **Tenant** (object) - The tenant object containing details about the tenant. ``` -------------------------------- ### Create Target Environment Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/vulnerability_scanner/api.md Use this method to create a new target environment. Requires an account ID and parameters for the environment. ```python client.vulnerability_scanner.target_environments.create( *, account_id, **params ) -> Optional[TargetEnvironmentCreateResponse] ``` -------------------------------- ### GET /{accounts_or_zones}/{account_or_zone_id}/rulesets/{ruleset_id}/versions Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/rulesets/api.md Lists all versions of a specific ruleset. ```APIDOC ## GET /{accounts_or_zones}/{account_or_zone_id}/rulesets/{ruleset_id}/versions ### Description Retrieves a list of all versions for the specified ruleset. ### Method GET ### Endpoint /{accounts_or_zones}/{account_or_zone_id}/rulesets/{ruleset_id}/versions ### Parameters #### Path Parameters - **ruleset_id** (string) - Required - The ID of the ruleset. ### Response #### Success Response (200) - **VersionListResponse** (array) - A list of ruleset versions. ``` -------------------------------- ### GET /accounts/{account_id}/stream/live_inputs Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/stream/api.md Lists all live inputs. ```APIDOC ## GET /accounts/{account_id}/stream/live_inputs ### Description Lists all live inputs for the specified account. ### Method GET ### Endpoint /accounts/{account_id}/stream/live_inputs ### Parameters #### Path Parameters - **account_id** (string) - Required - The account identifier. ``` -------------------------------- ### Create WAN Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/magic_transit/api.md Creates a new WAN configuration for a given site. Requires site ID and account ID. ```python client.magic_transit.sites.wans.create(site_id, **params) ``` -------------------------------- ### Get Consumer Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/queues/api.md Retrieves details for a specific consumer of a queue. ```APIDOC ## GET /accounts/{account_id}/queues/{queue_id}/consumers/{consumer_id} ### Description Retrieves details for a specific consumer of a queue. ### Method GET ### Endpoint /accounts/{account_id}/queues/{queue_id}/consumers/{consumer_id} ### Parameters #### Path Parameters - **account_id** (string) - Required - The ID of the account. - **queue_id** (string) - Required - The ID of the queue. - **consumer_id** (string) - Required - The ID of the consumer. ``` -------------------------------- ### Get Recipient Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/resource_sharing/api.md Retrieves details for a specific recipient of a share. ```APIDOC ## GET /accounts/{account_id}/shares/{share_id}/recipients/{recipient_id} ### Description Gets a specific recipient for a share. ### Method GET ### Endpoint `/accounts/{account_id}/shares/{share_id}/recipients/{recipient_id}` ### Parameters #### Path Parameters - **account_id** (string) - Required - The ID of the account. - **share_id** (string) - Required - The ID of the share. - **recipient_id** (string) - Required - The ID of the recipient. #### Query Parameters - **params** (RecipientGetParams) - Optional - Parameters for retrieving recipient details. ### Request Example ```json { "example": "request body" } ``` ### Response #### Success Response (200) - **result** (RecipientGetResponse) - The recipient details. #### Response Example ```json { "example": "response body" } ``` ``` -------------------------------- ### Create LAN Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/magic_transit/api.md Creates a new LAN configuration for a given site. Requires account and site IDs. ```python client.magic_transit.sites.lans.create(site_id, **params) ``` -------------------------------- ### Get Organization Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/organizations/api.md Retrieves details of a specific organization by its ID. ```APIDOC ## GET /organizations/{organization_id} ### Description Retrieves details of a specific organization. ### Method GET ### Endpoint /organizations/{organization_id} ### Parameters #### Path Parameters - **organization_id** (string) - Required - The ID of the organization to retrieve. ### Response #### Success Response (200) - **Organization** (object) - Details of the organization. #### Response Example ```json { "example": "response body" } ``` ``` -------------------------------- ### Bulk Create Workflow Instances Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/workflows/api.md Creates multiple workflow instances in a single request. Use `params` for batch configuration. ```python client.workflows.instances.bulk(workflow_name, *account_id, **params) -> SyncSinglePage[InstanceBulkResponse] ``` -------------------------------- ### GET /ips Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/ips/api.md Retrieves a list of Cloudflare IP addresses. ```APIDOC ## GET /ips ### Description Retrieves a list of Cloudflare IP addresses. ### Method GET ### Endpoint /ips ### Response #### Success Response (200) - **IPListResponse** (object) - The response containing the list of Cloudflare IP addresses. #### Response Example { "result": { "ipv4_cidrs": ["192.0.2.0/24"], "ipv6_cidrs": ["2001:db8::/32"] }, "success": true, "errors": [], "messages": [] } ``` -------------------------------- ### Policy Preview Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/magic_cloud_networking/api.md Previews the policy for Magic Cloud Networking resources for a given account. ```APIDOC ## POST /accounts/{account_id}/magic/cloud/resources/policy-preview ### Description Previews the policy for Magic Cloud Networking resources for a given account. ### Method POST ### Endpoint /accounts/{account_id}/magic/cloud/resources/policy-preview ### Parameters #### Path Parameters - **account_id** (string) - Required - The unique identifier for the account. #### Query Parameters - **params** (object) - Optional - Additional parameters for the policy preview. Refer to `src/cloudflare/types/magic_cloud_networking/resource_policy_preview_params.py` for details. ### Response #### Success Response (200) - **result** (string) - A string representing the policy preview. #### Response Example (Example response would be a string representing the policy) ``` -------------------------------- ### Get WARP Connector Connections Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/zero_trust/api.md Retrieves the connections for a WARP connector. ```APIDOC ## GET /accounts/{account_id}/warp_connector/{tunnel_id}/connections ### Description Retrieves the connections for a WARP connector. ### Method GET ### Endpoint /accounts/{account_id}/warp_connector/{tunnel_id}/connections ### Parameters #### Path Parameters - **account_id** (string) - Required - The ID of the account. - **tunnel_id** (string) - Required - The ID of the tunnel. ``` -------------------------------- ### Manage Binary Storage Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/cloudforce_one/api.md Methods for creating and retrieving binary storage objects. ```python client.cloudforce_one.binary_storage.create(*, account_id, **params) ``` ```python client.cloudforce_one.binary_storage.get(hash, *, account_id) ``` -------------------------------- ### Create AI Gateway Top-up Configuration Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/ai_gateway/api.md Creates or updates the configuration for AI Gateway top-ups for a given account, with optional parameters. ```APIDOC ## POST /accounts/{account_id}/ai-gateway/billing/topup/config ### Description Creates or updates the configuration for AI Gateway top-ups. ### Method POST ### Endpoint /accounts/{account_id}/ai-gateway/billing/topup/config ### Parameters #### Path Parameters - **account_id** (string) - Required - The ID of the account. #### Request Body - **params** (object) - Optional - Parameters for the top-up configuration. ``` -------------------------------- ### Get WARP Connector Token Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/zero_trust/api.md Retrieves the token for a WARP connector. ```APIDOC ## GET /accounts/{account_id}/warp_connector/{tunnel_id}/token ### Description Retrieves the token for a WARP connector. ### Method GET ### Endpoint /accounts/{account_id}/warp_connector/{tunnel_id}/token ### Parameters #### Path Parameters - **account_id** (string) - Required - The ID of the account. - **tunnel_id** (string) - Required - The ID of the tunnel. ``` -------------------------------- ### Async Cloudflare API Usage with aiohttp Source: https://github.com/cloudflare/cloudflare-python/blob/main/README.md Instantiate the asynchronous Cloudflare client with aiohttp as the HTTP backend using an API token and make an awaitable call to create a zone. The API token can be omitted if it's the default. ```python import os import asyncio from cloudflare import DefaultAioHttpClient from cloudflare import AsyncCloudflare async def main() -> None: async with AsyncCloudflare( api_token=os.environ.get("CLOUDFLARE_API_TOKEN"), # This is the default and can be omitted http_client=DefaultAioHttpClient(), ) as client: zone = await client.zones.create( account={"id": "023e105f4ecef8ad9ca31a8372d0c353"}, name="example.com", type="full", ) print(zone.id) asyncio.run(main()) ``` -------------------------------- ### Markdown For Agents Timeseries Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/radar/api.md Get timeseries data for markdown for agents. ```APIDOC ## GET /radar/ai/markdown_for_agents/timeseries ### Description Retrieves timeseries data for markdown for agents. ### Method GET ### Endpoint /radar/ai/markdown_for_agents/timeseries ### Parameters #### Query Parameters - **params** (object) - Optional - Additional query parameters for filtering and pagination. ``` -------------------------------- ### Timeseries Groups Timeseries Source: https://github.com/cloudflare/cloudflare-python/blob/main/src/cloudflare/resources/radar/api.md Get timeseries data for timeseries groups. ```APIDOC ## GET /radar/ai/bots/timeseries ### Description Retrieves timeseries data for timeseries groups. ### Method GET ### Endpoint /radar/ai/bots/timeseries ### Parameters #### Query Parameters - **params** (object) - Optional - Additional query parameters for filtering and pagination. ```