Overview
If devices in your Code42 environment are not honoring wireless network exclusions while connected to VPN, follow the steps below to stop backup traffic over excluded networks.
Recommended solution
Step 1: Find the numeric OrgID
To completely exclude wireless networks, you must first identify the numeric ID of the applicable organization.
To update your entire Code42 environment, use the
orgID of your top-level organization. This organization is at the top of the organizational hierarchy and is the parent for all other organizations. To apply different values to different organizations, use the orgID of a child organization, repeating the steps below with each child organization as necessary.Step 2: Use the Code42 API to exclude backups
The steps below assume basic familiarity with curl commands. Use the following example as a template to create a command specific to your Code42 environment:
curl -X PUT \ '<request_url>/api/v1/OrgSettings/<OrgID>' \ -H 'cache-control: no-cache' \ -H 'content-type: application/json' \ -H 'Authorization: Bearer<auth_token>' \ -d '{ "packets": [ { "key": "device_network_alwaysBlockWhenOnBlacklistedWirelessNetwork", "value": "true", "locked": true } ] }'
- Replace
<request_url>with the address of your Code42 environment (do not include the brackets in your request). - Replace
<OrgID>with the number identified in Step 1 above (do not include the brackets in your request). - Replace
<auth_token>with an authentication token. - Set the
valueparameter totrueto block backups. Set thevalueparameter tofalseto allow backups. - Execute the curl command in your command-line tool of choice.
Step 3: Confirm the setting
Use the GET method to view the current value of the setting. The OrgSettings resource also contains keys for numerous other Code42 settings. Therefore, to view only your customizations, you must include the device_network_alwaysBlockWhenOnBlacklistedWirelessNetwork key as a query parameter.
The example below assumes basic familiarity with curl commands. Use this as a template to create a command specific to your Code42 environment:
curl -X GET \ '<request_url>/api/v1/OrgSettings/<OrgID>?keys=device_network_alwaysBlockWhenOnBlacklistedWirelessNetwork' \ -H 'cache-control: no-cache' \ -H 'content-type: application/json' \ -H 'Authorization: Bearer<auth_token>'
- Replace
<request_url>with the address of your Code42 environment (do not include the brackets in your request). - Replace
<OrgID>with the number identified in Step 1 above (do not include the brackets in your request). - Replace
<auth_token>with an authentication token. - Execute the curl command in your command-line tool of choice. When prompted, enter your password.
The Code42 API returns details about the setting and includes either the key pair"value":"true"or"value":"false". If the setting has not been defined yet, thedataparameter in the response is empty.
Comments
0 comments
Please sign in to leave a comment.