2
$\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$

1 Answer 1

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$
3
  • $\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, 2016 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$
    – Greg Hurst
    Oct 6, 2016 at 20:06
  • $\begingroup$ Since WL 12.1, the Information function now does the same thing, and is calling CloudObjectInformation under the hood. In the documentation you can see this under Examples > Scope > System Objects. $\endgroup$
    – Joel Klein
    Jun 10, 2021 at 20:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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