[英]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.