Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Can you copy objects across accounts?

Hi,

Looking online I came across the following article explaining how to "copy" objects from one container to another. I've successfully been able to do using the COPY method.

The example below copies an object from one container to another within the same account.

curl -X COPY -i \
-H "Host: /v1/AUTH_6c0ed185bc0f42768059a534ae4a0573" \
-H "X-Auth-Token: AUTH_tkbe3523ef3ef44f88b57e5c78c36e96a2" \
-H "Destination: /test/ea4320089eb2fafc590eefe0c3d78a1d" \
http://192.168.1.2/v1/AUTH_6c0ed185bc0f42768059a534ae4a0573/27288691841f48e3bb303444e4dc59c3/ea4320089eb2fafc590eefe0c3d78a1d

I am now trying to copy an object from one account to a container in another one. I keep running into a message that says "The resource could not be found". Below is the code I'm using;

curl -X COPY -i \
-H "Host: /v1/AUTH_90770b104bb44c41b5ed9d061e8b5bf5" \
-H "X-Auth-Token: AUTH_tkbe3523ef3ef44f88b57e5c78c36e9622" \
-H "Destination: /c3da701a337d49a080f5e9563b6ceed0/ea4320089eb2fafc590eefe0c3d78a1d" \
http://10.0.1.152/v1/AUTH_6c0ed185bc0f42768059a534ae4a0573/27288691841f48e3bb303444e4dc59c3/ea4320089eb2fafc590eefe0c3d78a1d

The account I am using to run these curl commands with is a superadmin. Is it possible to copy an object from one account to another without downloading and re-uploading it? If so, what am I doing wrong here?!

Cheers,

Tim

Can you copy objects across accounts?

Hi,

Looking online I came across the following article explaining how to "copy" objects from one container to another. I've successfully been able to do using the COPY method.

The example below copies an object from one container to another within the same account.

curl -X COPY -i \
-H "Host: /v1/AUTH_6c0ed185bc0f42768059a534ae4a0573" \
-H "X-Auth-Token: AUTH_tkbe3523ef3ef44f88b57e5c78c36e96a2" \
-H "Destination: /test/ea4320089eb2fafc590eefe0c3d78a1d" \
http://192.168.1.2/v1/AUTH_6c0ed185bc0f42768059a534ae4a0573/27288691841f48e3bb303444e4dc59c3/ea4320089eb2fafc590eefe0c3d78a1d

I am now trying to copy an object from one account to a container in another one. I keep running into a message that says "The resource could not be found". Below is the code I'm using;

curl -X COPY -i \
-H "Host: /v1/AUTH_90770b104bb44c41b5ed9d061e8b5bf5" \
-H "X-Auth-Token: AUTH_tkbe3523ef3ef44f88b57e5c78c36e9622" \
-H "Destination: /c3da701a337d49a080f5e9563b6ceed0/ea4320089eb2fafc590eefe0c3d78a1d" \
http://10.0.1.152/v1/AUTH_6c0ed185bc0f42768059a534ae4a0573/27288691841f48e3bb303444e4dc59c3/ea4320089eb2fafc590eefe0c3d78a1d
http://192.168.0.1/v1/AUTH_6c0ed185bc0f42768059a534ae4a0573/27288691841f48e3bb303444e4dc59c3/ea4320089eb2fafc590eefe0c3d78a1d

The account I am using to run these curl commands with is a superadmin. Is it possible to copy an object from one account to another without downloading and re-uploading it? If so, what am I doing wrong here?!

Cheers,

Tim

Can you copy objects across accounts?

Hi,

Looking online I came across the following article explaining how to "copy" objects from one container to another. I've successfully been able to do using the COPY method.

The example below copies an object from one container to another within the same account.

curl -X COPY -i \
-H "Host: /v1/AUTH_6c0ed185bc0f42768059a534ae4a0573" \
-H "X-Auth-Token: AUTH_tkbe3523ef3ef44f88b57e5c78c36e96a2" \
-H "Destination: /test/ea4320089eb2fafc590eefe0c3d78a1d" \
http://192.168.1.2/v1/AUTH_6c0ed185bc0f42768059a534ae4a0573/27288691841f48e3bb303444e4dc59c3/ea4320089eb2fafc590eefe0c3d78a1d

I am now trying to copy an object from one account to a container in another one. I keep running into a message that says "The resource could not be found". Below is the code I'm using;

curl -X COPY -i \
-H "Host: /v1/AUTH_90770b104bb44c41b5ed9d061e8b5bf5" \
-H "X-Auth-Token: AUTH_tkbe3523ef3ef44f88b57e5c78c36e9622" \
-H "Destination: /c3da701a337d49a080f5e9563b6ceed0/ea4320089eb2fafc590eefe0c3d78a1d" \
http://192.168.0.1/v1/AUTH_6c0ed185bc0f42768059a534ae4a0573/27288691841f48e3bb303444e4dc59c3/ea4320089eb2fafc590eefe0c3d78a1d
http://192.168.1.2/v1/AUTH_6c0ed185bc0f42768059a534ae4a0573/27288691841f48e3bb303444e4dc59c3/ea4320089eb2fafc590eefe0c3d78a1d

The account I am using to run these curl commands with is a superadmin. Is it possible to copy an object from one account to another without downloading and re-uploading it? If so, what am I doing wrong here?!

Cheers,

Tim