简体   繁体   English

使用C#API从启用Rackspace CloudFiles CDN的容器中检索图像

[英]Retrieve Image From Rackspace CloudFiles CDN-Enabled Container with C# API

I'm using Rackspace Cloud Files API . 我正在使用Rackspace Cloud Files API I'm able to retrieve my images from a container which isn't CDN-enabled with the following code. 我可以使用以下代码从未启用CDN的容器中检索图像。 When I try with a CDN-enabled one though, the container isn't found. 当我尝试启用CDN的设备时,找不到该容器。

How do I retrieve files from a CDN-enabled container on Rackspace Cloud Files? 如何从Rackspace Cloud Files上启用CDN的容器中检索文件?

    var creds = new UserCredentials(username, api);
    var client = new CF_Client();
    Connection conn = new CF_Connection(creds, client);
    conn.Authenticate();

    var container = new CF_Container(conn, "TestContainer");
    var list = container.GetObjectList(true);

Thank you. 谢谢。

To follow up, I spoke to a Rackspace rep. 为了跟进,我与Rackspace代表进行了交谈。 He clarified that this container was created on the Dallas end-point, while the API only pulls from the default endpoint, (Chicago). 他澄清说,此容器是在Dallas端点上创建的,而API仅从默认端点(Chicago)中提取。 I ended up ditching the bindings API and went directly with the REST one. 我最终放弃了绑定API,直接使用REST API。 HTH. HTH。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 CloudFiles-Rackspace连接错误C# - CloudFiles - Rackspace connection error c# Rackspace CloudFiles C#API:如何在根“文件夹”中列出文件,以及如何在“文件夹”中列出(子)文件夹? - Rackspace CloudFiles C# API: How to list files on root 'folder', and how to list (sub)folders within a 'folder'? RackSpace CloudFiles如何使用异步或队列使用C#发送文件 - RackSpace CloudFiles how to use Asynchronous or Queue to send files using C# 我们如何使用C#中的API将文件上传到机架云容器中 - How we can Upload files into rackspace cloud container with API in C# Rackspace云文件在容器C#中获取对象 - Rackspace Cloud Files Get Objects In Container C# 如何使用openstack.net在rackspace CloudFiles容器中创建Content-Type“application / directory”对象? - How to create an object with Content-Type “application/directory” inside a rackspace CloudFiles Container with openstack.net? Rackspace电子邮件API示例C#-无法编译 - Rackspace Email API Example C# - Won't Compile C#代码从“不太容易”的CDN下载图像 - C# Code to download an image from a “not so easy” CDN 如何使用openstack.net从Rackspace上的CloudFiles获取jpg文件 - How to get jpg file from CloudFiles on Rackspace using openstack.net 从c#中的sql中检索图像 - retrieve image from sql in c#
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM