Search code examples
ibm-cloud-infrastructureobject-storage

Softlayer Object Storage/Swift Copy Forbidden


I am trying to copy some objects from one account to another account using the Swift Copy API. However, I am getting 403 Forbidden response.

From the Swift codebase:

Objects can also be copied from one account to another account if the user has the necessary permissions (i.e. permission to read from container in source account and permission to write to container in destination account).

I believe the reason for the 403 response is because the X-Auth-Token generated when Authenticating to the Object Storage is tied to a specific account, as the format for X-Auth-User is <ACCOUNT>:<USERID>

Is it possible to generate a X-Auth-Token that has permission to read/write from multiple accounts on Softlayer?

Thanks!


Solution

  • the short anwer is no, the permissions are only for the owner account and the users of that account on softlayer. If you wanna copy the data you need to make your own code which donload the file from an account and then upload it to the another account.

    Regards