cterasdk.core.zones module¶
-
class
cterasdk.core.zones.
Zones
(portal)¶ Bases:
cterasdk.core.base_command.BaseCommand
Portal Zones APIs
-
add
(name, policy_type='selectedFolders', description=None)¶ Add a new zone
Parameters: - name (str) – The name of the new zone
- policy_type (cterasdk.core.enum.PolicyType,optional) – Policy type of the new zone, defaults to cterasdk.core.enum.PolicyType.SELECT
- description (str,optional) – The description of the new zone
-
add_devices
(name, device_names)¶ Add devices to a zone
Parameters: - name (str) – The name of the zone to add devices to
- device_names (list[str]) – The names of the devices to add to the zone
-
add_folders
(name, folder_finding_helpers)¶ Add the folders to the zone
Parameters: - name (str) – The name of the zone
- folder_finding_helpers (list[cterasdk.core.types.CloudFSFolderFindingHelper]) – List of folder names and owners
-
delete
(name)¶ Delete a zone
Parameters: name (str) – The name of the zone to delete
-
get
(name)¶ Get zone by name
Parameters: name (str) – The name of the zone to get Returns: The requested zone
-