1
$\begingroup$

For specify this question,I create a temporary object in folder tem,and named it identity:

CloudDeploy[
 FormFunction[{"x" -> <|"Input" -> "Apple"|>}, 
  Identity], "tem/identity"]

CloudObject[https://www.wolframcloud.com/objects/user***/tem/identity]

I get it with name form.We can check it by

CloudObjects["tem"]

CloudObject[https://www.wolframcloud.com/objects/f0c5a7f1-7124-4a0b-8c64-cd0ebae72350]

I get it with UUID form,I promise this both forms is on behalf of a same cloud object.But If I just know the UUID,how to know its name?And vice-versa.

$\endgroup$
2
$\begingroup$

Looking through Names["System`Cloud*"], I found CloudObjectInformation. I think this is what you're looking for.

obj = CloudDeploy[
  FormFunction[{"x" -> <|"Input" -> "Apple"|>}, Identity], 
  "tem/identity"];

Here's its UUID:

CloudObjectInformation[obj, "UUID"]
"8112805a-013b-46b9-bdc4-2b20b037d795"

Here's its path:

CloudObjectInformation[obj, "Path"]
"user-****/tem/identity"

If I only know the UUID and want the path:

uuid = "8112805a-013b-46b9-bdc4-2b20b037d795";
CloudObjectInformation[CloudObject[URLBuild[{$CloudBase, "objects", uuid}]], "Path"]
"user-****/tem/identity"
$\endgroup$
  • $\begingroup$ Thanks for your undocumentational function,I don't know how do you guess the "Path",I just have tried CloudObjects["tem"]["Properties"] ,Inspiring. :) $\endgroup$ – yode Oct 6 '16 at 20:05
  • $\begingroup$ @yode I ran CloudObjectInformation with 1 argument first and it gave a whole table of data, with uuid and path as elements. $\endgroup$ – Chip Hurst Oct 6 '16 at 20:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.