Function Repository Resource:

CloudResourceObjects

Source Notebook

Get a list of cloud-stored resource objects

Contributed by: Bob Sandheinrich

ResourceFunction["CloudResourceObjects"][]

returns a list of all resource objects deployed to the authenticated user's cloud account.

ResourceFunction["CloudResourceObjects"][types]

only returns resources of the specified types.

ResourceFunction["CloudResourceObjects"][types,prop]

gives the property prop for each resource.

Details and Options

Typically, resource types correspond to a published repository:
types can be either a single resource type or a list.
The property prop supports any property supported by ResourceObject[][prop], including "Name", "Description" and "ResourceType".
ResourceFunction["CloudResourceObjects"] supports the option MaxItems with the default value Infinity.

Examples

Basic Examples (2) 

List all cloud-deployed resource objects for the cloud-connected user:

In[1]:=
ResourceFunction["CloudResourceObjects"][] // Short
Out[1]=

Find a few deployed data resources:

In[2]:=
ResourceFunction["CloudResourceObjects"]["Data", MaxItems -> 3]
Out[2]=

Scope (3) 

Find resources of multiple types:

In[3]:=
ResourceFunction["CloudResourceObjects"][{"Data", "Function"}, MaxItems -> 10]
Out[3]=

Display names for all cloud-deployed data resources:

In[4]:=
ResourceFunction["CloudResourceObjects"]["Data", "Name"] // Short
Out[4]=

Retrieve a ResourceFunction for each "Function" resource:

In[5]:=
ResourceFunction /@ ResourceFunction["CloudResourceObjects"]["Function", MaxItems -> 10]
Out[5]=

Possible Issues (1) 

A cloud connection is required:

In[6]:=
CloudDisconnect[];
ResourceFunction["CloudResourceObjects"][]
Out[7]=

Neat Examples (1) 

Create a dynamic tool for browsing cloud-deployed resource functions:

In[8]:=
ResourceFunction["DynamicListView"][
 With[{n = #}, Button[n, CopyToClipboard[ResourceFunction[n]]]] & /@ Sort[ResourceFunction["CloudResourceObjects"]["Function", "Name"]], 10]
Out[8]=

Version History

  • 1.0.0 – 02 March 2021

Related Resources

License Information