waft.cf_dashboard.zero_trust.device_profile module

class waft.cf_dashboard.zero_trust.device_profile.DeviceProfileOperations(dash_client: CfDashboardClient, account_id: str)

Bases: CfDashboardResource

Class to define interactions with Device Profiles over Cloudflare python SDK

create(match: str, name: str, precedence: float, policy_info: SettingsPolicy | None = None) DeviceProfileModel

Create a Device Policy

Args: settings_policy: SettingsPolicy structure to dissect and match: Wirefilter expression to set for device policy application name: Name of device policy precedence: Float value to use for sorting application values of device policies policy_info: Settings policy to define the settings of the device profile to be created

delete(policy_id: str)

Delete Device Profile with given policy ID

get(policy_id: str) DeviceProfileModel | None

Get device settings/policy object for policy with given policy ID

Args: policy_id: String of policy ID to request and return

list() List[DeviceProfileModel]

List all currently defined device policies