2017-01-23 63 views
0

使用此guide,我一直試圖在IBM Object Storage中訪問我的容器,我安裝了python-swiftclient庫並運行此命令(AUTH_URL,USERNAME,KEY來自IBM Bluemix Object Storage憑據部分):IBM對象存儲命令行訪問

swift -A <AUTH_URL> -U <USERNAME> -K <KEY> stat -v 

我得到以下錯誤:

Auth GET failed: https://identity.open.softlayer.com/ 300 Multiple Choices [first 60 chars of response] {"versions": {"values": [{"status": "stable", "updated": "20 

我與其他憑證嘗試爲好,在網上看了,至今沒有運氣。這有什麼問題?

回答

0

使用以下命令:

swift \ 
    --os-auth-url=https://identity.open.softlayer.com/v3 \ 
    --auth-version=3 \ 
    --os-project-id=<projectId> \ 
    --os-region-name=<region> \ 
    --os-username=<username> \ 
    --os-password=<password> \ 
    --os-user-domain-id=<domainId> \ 
    stat -v 

你會發現專案編號,地區,用戶名,密碼,域ID在Bluemix儀表盤的對象存儲服務的憑據部分的值。

另一個選項是設置的環境變量OS_AUTH_URLOS_AUTH_VERSIONOS_PROJECT_IDOS_REGION_NAMEOS_USERNAME(或OS_USER_IDOS_PASSWORDOS_DOMAIN_ID

+0

我現在得到這個:Auth GET failed:identity.open.softlayer.com/v3 200 OK [first 60 chars of response] {「version」:{「status」:「stable」,「updated」:「2015 -03-30T00:0 - and_apo 33分鐘前 –