CloudObject

CloudObject[]

represents a new anonymous cloud object.

CloudObject["http://"], CloudObject["https://"]

represents a cloud object with a given URI.

CloudObject["user:user/path"]

represents a cloud object of a given user with a given path.

CloudObject["/abspath"]

represents a cloud object of the currently authenticated user at an absolute path.

CloudObject["relpath"]

represents a cloud object of the currently authenticated user at a relative path.

CloudObject["relpath",cbase]

represents a cloud object with a path relative to the base cbase.

Details and Options

  • Absolute paths are resolved with respect to $CloudRootDirectory. Relative paths are resolved with respect to CloudDirectory.
  • New anonymous cloud objects are created in the cloud defined by $CloudBase.
  • CloudObject[URL["loc"]] is also supported.
  • CloudObject allows the following options:
  • AuthenticationAutomaticauthentication provided for access to the object
    CloudObjectNameFormat$CloudObjectNameFormatformat to use for the name portion of the URL
    CloudObjectURLType$CloudObjectURLTypebase type of URL to use (obj, env, ...)
    IconRules{}icons for the object in different deployments
    MetaInformation{}rules giving metainformation
    Permissions$Permissionspermissions for access etc.
    SharingList{}with whom the object has been shared
    SourceLink$SourceLinkobject to be linked as the source
  • Options[CloudObject[],] gives the current options of a previously created CloudObject. SetOptions can be used to reset them.
  • DeleteObject[CloudObject[]] removes a CloudObject.
  • If a cloud object directory contains an object named either index.html or index.nb, it will be served when users visit the address of the directory. If both an index.html and index.nb object are present in the directory, the index.html will be used.
  • Information of a CloudObject may include the following properties:
  • "UUID"UUID of the cloud object
    "Path"named object path or None (if anonymous)
    "DisplayName"display name for cloud object
    "OwnerWolframUUID"Wolfram UUID for object owner
    "OwnerWolframID"Wolfram ID for object owner
    "MIMEType"application MIME type
    "FileType"file type
    "FileByteCount"file size in bytes
    "FileHashMD5"MD5 hash
    "Created"creation date
    "LastAccessed"access date
    "LastModified"modification date
    "Permissions"permission rules
    "Active"whether the object is active

Examples

open all close all

Basic Examples  (1)

An unnamed cloud object:

In[1]:=
Click for copyable input
Out[1]=

A named cloud object of a specific user:

In[2]:=
Click for copyable input
Out[2]=

A named cloud object in a subdirectory of the user's directory in the cloud:

In[3]:=
Click for copyable input
Out[3]=

Save a computed value in a cloud object:

In[4]:=
Click for copyable input
Out[4]=

Read an expression stored in a cloud object:

In[5]:=
Click for copyable input
Out[5]=

Remove the cloud object:

In[6]:=
Click for copyable input

Properties & Relations  (2)

Possible Issues  (1)

Introduced in 2014
(10.0)
|
Updated in 2019
(12.0)