Bluemix 对象存储 - "bound" 和 "unbound" 上下文有什么区别?

Bluemix object storage - what's the difference between "bound" and "unbound" context?

我正在尝试了解如何使用 Bluemix Object Storage V2 服务。我正在

查看文档

https://www.ng.bluemix.net/docs/#services/ObjectStorageV2/index.html#gettingstarted

本文档从根本上区分了 "unbound context" 和 "bound context",但并未真正解释其含义。这是什么意思?为什么我被迫在一种交互方式与另一种交互方式之间做出选择?

作为后续问题:对于 "Unbound Context",文档说明 "To view the cloud credentials, go to the drop-down in the service dashboard."

什么"drop down"在哪个"service dashboard"?能具体点吗?

'unbound context' 表示如果您从非 Bluemix 应用程序或未绑定服务的 Bluemix 应用程序访问 ObjectStorage(v2) 服务所需的详细信息.相反,'bound context' 用于当您的 Bluemix 应用程序 绑定到该服务时。

当您在 'bound context' 中时,您将使用 VCAP_SERVICES 属性来查找名为 auth_url 的 属性,调用时,将 return 访问服务所需的对象存储凭据。如果您在 'unbound context'.

中,这些凭证与您将获得的凭证相同

它所说的服务仪表板是您在 console.ng.bluemix.net (or console.eu-gb.bluemix.net) 上单击您提供的服务时看到的仪表板。这是我的一个例子:

如果您正在寻找如何在 'bound context' 中使用 ObjectStorage (v2) 服务的示例,请在此处查看我的 github 项目 https://github.com/whitfiea/bluemix-objectstorage-v2. For an 'unbound context', i.e., another app outside of Bluemix, you can use the code from this 点,但是您需要以某种方式为您的应用程序提供服务仪表板下拉列表中提到的凭据(硬编码或环境属性等)