Zones

Zones and StorageCenters objects represent Storage Zones - hosted or on-premise areas that provide data repository services. ShareFile.com define multiple zones for providing file services - not only storage, but indexing, thumbnails, anti-virus, previews, etc. Account administrators can also create on-premise Zones to provide these services, and to connector to other storage repositories - such as CIFS and SharePoint. A Zone loosely represents a Site. Inside a Zone, Admin deploy multiple Storage Centers - the servers that perform the Zone activities.

Get List of Zones

GET https://account.sf-api.com/sf/v3/Zones 

Retrieve the list of Zones accessible to the authenticated user This method will concatenate the list of private zones in the user's account and the list of public zones accessible to this account. Any user can see the list of zones.

servicesZoneService Collection of services for filtering the output - only zones that contain all elements in the list are retrieved
includeDisabledBoolean Include "disabled" zones - zones without an associated enabled storagecenter. Defaults to off.

Returns: The list of public and private zones accessible to this user

Get Zone by ID

GET https://account.sf-api.com/sf/v3/Zones(id) 

Retrieve a single zone by ID

idString Zone identifier
secretBoolean

Returns: A single zone objected based on provided ID

Create Zone

POST https://account.sf-api.com/sf/v3/Zones 
            { 
              "Name":"Name", 
              "HeartbeatTolerance":10, 
              "ZoneServices":"StorageZone, SharepointConnector, NetworkShareConnector" 
            } 

Creates a new Zone.

Returns: the created zone

Update Zone

PATCH https://account.sf-api.com/sf/v3/Zones(id) 
            { 
              "Name":"Name", 
              "HeartbeatTolerance":10, 
              "ZoneServices":"StorageZone, SharepointConnector, NetworkShareConnector" 
            } 

Updates an existing zone

idString The zone identifier
zoneZone New parameters for the zone

Returns: The modified zone

Delete Zone

DELETE https://account.sf-api.com/sf/v3/Zones(id)?force=false&newDefaultZoneId=newzoneid 

Removes an existing zone

idString The zone identifier
forceBoolean Specify whether the zone will be deleted if there are elements in this zone - including storage centers and expired items. Default is false
newDefaultZoneIdString Specify new default zone id

Reset Zone Secret

POST https://account.sf-api.com/sf/v3/Zones(id)/ResetSecret 

Resets the current Zone Secret to a new Random value Caution! This Call will invalidate all Storage Center communications until the Storage Center Zone secret is also updated. User must be a Zone admin to perform this action

idString Zone Identifier

Returns: The modified Zone object

Get the tenants of a multi-tenant zone

GET https://account.sf-api.com/sf/v3/Zones(parentid)/Tenants 
parentidString ID of the multi-tenant zone

Returns: List of tenant accounts, not including the zone admin account.

Add a tenant account to a multi-tenant zone

POST https://account.sf-api.com/sf/v3/Zones(parentid)/Tenants?accountId=tenantaccount 
parentidString ID of the multi-tenant zone
accountIdString ID of the tenant account to add

Remove a tenant from a multi-tenant zone

DELETE https://account.sf-api.com/sf/v3/Zones(parentid)/Tenants(id)?newDefaultZoneId=newzoneid 
parentidString ID of the multi-tenant zone
idString Tenant account ID to remove from the zone
newDefaultZoneIdString ID of new default zone to assign to the tenant
expireItemsBoolean Should the tenant's items in the zone be expired? Do this only if the items have already been migrated, or are no longer needed

Get Zone Metadata

GET https://account.sf-api.com/sf/v3/Zones(id)/Metadata 

Gets metadata associated with the specified zone

idString The Zone identifier

Returns: the zone metadata feed

Create or update Zone Metadata

POST https://account.sf-api.com/sf/v3/Zones(id)/Metadata 
            [ 
            {"Name":"metadataName1", "Value":"metadataValue1", "IsPublic":"true"}, 
            {"Name":"metadataName2", "Value":"metadataValue2", "IsPublic":"false"} 
            ] 

Creates or updates Metadata entries associated with the specified zone

idString The Zone Identifier
metadataMetadata[] A list of metadata entries. Only zone admins can retrieve, set or modify entries that have IsPublic set to false.

Returns: the zone metadata feed

Delete Zone Metadata

DELETE https://account.sf-api.com/sf/v3/Zones(id)/Metadata?name=metadataname 

Delete the Metadata entry associated with the specified zone

idString The Zone Identifier
nameString The metadata name

Returns: no data on success