Customer Managed StorageZone

  • 1
  • Question
  • Updated 9 months ago
"We have just created a Customer Managed StorageZone and have had an Admin update the user accounts to point to this new zone for file storage instead of using the Citrix-Managed zone. We use the C# SDK (api) to send files to sharefile which works but they do not show up in the new storage zone. Is there anything that we need to change in the code to repoint to the new storage zone? Is there a parameter that specifies the storage zone to post to?"
Photo of Ryan Birmingham

Ryan Birmingham

  • 1 Post
  • 0 Reply Likes

Posted 9 months ago

  • 1
Photo of Michael Berrier

Michael Berrier, Official Rep

  • 123 Posts
  • 24 Reply Likes
Hi Ryan,

You shouldn't need a change on the side performing uploads. When you upload to a folder, items implicitly end up in the target folder's assigned zone. It's possible that the folder to which you are uploading is not (yet?) in the new zone. Given a folder ID, you can determine its zone by calling: GET sf/v3/Items(ID)?$expand=Zone

When you change a user's default zone, that user's personal folder (and its children) should be migrated to the new zone. Shared folders don't necessarily move automatically, so if you are using shared folders as the targets of your uploads, you might need authorized users to manually or programmatically change the zone for them as well. In the ShareFile web app, for example, you can do this by clicking the "... More Options" dropdown next to a folder's name, choosing "Edit Advanced Folder Settings", and in the resulting modal dialog changing the selected StorageZone at the bottom. You could also do it programmatically for a given folder ID by calling PATCH sf/v3/Items(ID) and providing a payload like:
  "Zone": {
    "Id" : "my new zone id"

If a personal or shared folder has a significant amount of progeny, migrating it to the new zone may take some time to complete. If the new zone is unhealthy, it might also prevent the migration from completing until it comes fully online.

Michael Berrier