You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -32,34 +32,70 @@ Your profile will appear in the **Profile settings** list. You can rearrange the
32
32
33
33
<TabItemlabel="API">
34
34
35
-
Send a `POST` request to the [Devices endpoint](/api/resources/zero_trust/subresources/devices/subresources/policies/subresources/custom/methods/create/):
"description": "Cloudflare'\''s basic device settings profile, recommended in the implementation documentation. For details, refer to https://developers.cloudflare.com/learning-paths/replace-vpn/configure-device-agent/device-profiles/",
Send a `POST` request to the [Devices API](/api/resources/zero_trust/subresources/devices/subresources/policies/subresources/custom/methods/create/):
36
+
37
+
<APIRequest
38
+
path="/accounts/{account_id}/devices/policy"
39
+
method="POST"
40
+
json={{
41
+
"allow_mode_switch": false,
42
+
"allow_updates": false,
43
+
"allowed_to_leave": false,
44
+
"auto_connect": 600,
45
+
"captive_portal": 180,
46
+
"description": "Example device profile recommended in the implementation documentation. For details, refer to https://developers.cloudflare.com/learning-paths/replace-vpn/configure-device-agent/device-profiles/",
47
+
"disable_auto_fallback": true,
48
+
"enabled": true,
49
+
"exclude_office_ips": false,
50
+
"match": "identity.email in {\"[email protected]\"} or any(identity.groups.name[*] in {\"developers\"\"admin\"}) and os.name == \"windows\"",
51
+
"name": "Example device profile",
52
+
"precedence": 101,
53
+
"service_mode_v2": {
54
+
"mode": "warp"
55
+
},
56
+
"support_url": "https://support.example.com",
57
+
"switch_locked": true
58
+
}}
59
+
/>
60
+
61
+
</TabItem>
62
+
<TabItemlabel="Terraform (v5)">
63
+
64
+
1. Add the following permission to your [`cloudflare_api_token`](https://registry.terraform.io/providers/cloudflare/cloudflare/latest/docs/resources/api_token):
65
+
-`Zero Trust Write`
66
+
67
+
2. Create a new profile using the [`cloudflare_zero_trust_device_custom_profile`](https://registry.terraform.io/providers/cloudflare/cloudflare/latest/docs/resources/zero_trust_device_custom_profile) resource:
description = "Example device profile recommended in the implementation documentation. For details, refer to https://developers.cloudflare.com/learning-paths/replace-vpn/configure-device-agent/device-profiles/"
0 commit comments