Please contact your support team if you have a question or need assistance for any Rackspace products, services, or articles.
This question is not answered.
How can I get ore than 10,000 results using the CloudFileProvider ListObjects() function. The 2nd OPTIONAL parameter is Limit of type INTEGER?, but if I provide it, the call just blows up and exits. Any way to trap errors?
Hey sdevoy - I'm going to move this into our developer forum and get a .NET guru to take a look at this. We'll get you an answer soon.
Alan BushTechnical Community ManagerRackspace Cloud
Do you have a stack trace you can provide? Or, better, some code I can peruse?
Also; which version of the OpenStack .NET SDK are you using?
I'll be happy to get this figured out.
-- Don Schenck, Developer Advocate
Thanks for the reply. With some experimentation I found the MAX value allowed for "LIMIT" is 10K. I also figured out how to use "prefix" and "marker" to limit the items returned and to return the next set of objects.
I guess I figured out everything I asked.
You got it.
However, going forward ... how can I make this information more obvious? What was missing from your experience that would have made it better, easier, faster?
Any feedback is fantastic.
Finally, thanks for answering here; it makes it easier for folks to find an answer when searching in the future.
All The Best,
A single example using Windows XML load function to send native commands would be FANTASTIC. That would open up functions like Bulk Upload and delete.
What works BEST for me is sample code. Some useful examples might be:
Thanks for the response.
I just found from Intelli-Type that CloudFilesProvider has a BulkDelete function. Is it documented anywhere? I must be missing a link to some documentation.
I don't think BulkDelete is featured in any documentation. That's not to say it's a secret or unsupported -- it just didn't get covered.
IntelliSense should be enough to guide you along to use BulkDelete. Also, if you're adventurous, you can download the SDK source code and look through the unit tests ... you should see it covered there.
If you want to simply clear ALL the objects in a Container, it may be easiest to delete the Container with the option to delete the contents, then turn around and create the Container again if you still need it. Not the most elegant solution, but it may be the simplest.
Does this help?
Wow ... thanks for the great suggestions.
Regarding using an XML file to send commands: You may also want to investigate using PowerShell. There's a (very) new PowerShell module, PoshStack, that works with OpenStack. It's built on the SDK Assemblies.
I sort of stumbled on this: http://openstacknetsdk.org/docs/html/M_net_openstack_Providers_Rackspace_CloudFilesProvider_BulkDelete.htm documentation and it has been HUGELY helpful.
I have written a routine to delete everything in a sub-folder. I accidentally added "upload/thumbnails" and "uploads/Thumbnails", each with some 300,000 files. Dropping all 1,000,000 files and restarting sounded dreadful.
I am going great now.
The Rackspace Community (“Community”) is provided “AS IS” without warranty of any kind. The information on the Community sites is created by members of the Community and is intended for reference and general discussions only. Although some of the content may contain information provided by Rackspace employees, it does not represent an assessment of a particular customer environment or an assessment of any specific compliance with laws or regulations or constitute advice. We recommend that you engage additional expertise in order to further evaluate applicable requirements for your specific environment. For customer specific support issues please contact your Rackspace Support Team.READ MORE
RACKSPACE MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND, EXPRESS OR IMPLIED, AS TO THE ACCURACY OR COMPLETENESS OF THE CONTENTS OF THE RACKSPACE OPEN CLOUD COMMUNITY SITE. RACKSPACE RESERVES THE RIGHT TO DISCONTINUE OR MAKE CHANGES TO ITS SERVICES OFFERINGS AND SPECIFICATIONS AT ANY TIME WITHOUT NOTICE. USERS MUST TAKE FULL RESPONSIBILITY FOR APPLICATION OF ANY SERVICES AND/OR PROCESSES MENTIONED IN ANY COMMUNITY DISCUSSIONS. EXCEPT AS SET FORTH IN RACKSPACE GENERAL TERMS AND CONDITIONS, CLOUD TERMS OF SERVICE AND/OR OTHER AGREEMENT YOU SIGN WITH RACKSPACE, RACKSPACE ASSUMES NO LIABILITY WHATSOEVER, AND DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTY, RELATING TO ITS SERVICES INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NONINFRINGEMENT.
ALTHOUGH PART OF THE COMMUNITY GENERATED CONTENT MAY EXPLAIN HOW RACKSPACE SERVICES MAY WORK WITH THIRD PARTY PRODUCTS, THE INFORMATION CONTAINED IN THE COMMUNITY DISCUSSIONS IS NOT DESIGNED TO WORK WITH ALL SCENARIOS. ANY USE OR CHANGES TO THIRD PARTY PRODUCTS AND/OR CONFIGURATIONS SHOULD BE MADE AT THE DISCRETION OF YOUR ADMINISTRATORS AND SUBJECT TO THE APPLICABLE TERMS AND CONDITIONS OF SUCH THIRD PARTY. EVEN THOUGH RACKSPACE EMPLOYEES MAY PARTICIPATE IN THE COMMUNITY DISCUSSIONS, RACKSPACE DOES NOT PROVIDE TECHNICAL SUPPORT FOR THIRD PARTY PRODUCTS, OTHER THAN SPECIFIED IN YOUR HOSTING SERVICES AGREEMENT YOU HAVE SIGNED WITH RACKSPACE AND RACKSPACE ACCEPTS NO RESPONSIBILITY FOR THIRD-PARTY PRODUCTS.READ LESS