({{, (RefLink[CloudObject, paclet:ref/CloudObject])[] 
represents a new anonymous cloud object.}, {, (RefLink[CloudObject, paclet:ref/CloudObject])["http://…"], (RefLink[CloudObject, paclet:ref/CloudObject])["https://…"] 
represents a cloud object with a given URI.}, {, (RefLink[CloudObject, paclet:ref/CloudObject])["user:user/path"] 
represents a cloud object of a given user with a given path.}, {, (RefLink[CloudObject, paclet:ref/CloudObject])["/abspath"] 
represents a cloud object of the currently authenticated user at an absolute path.}, {, (RefLink[CloudObject, paclet:ref/CloudObject])["relpath"] 
represents a cloud object of the currently authenticated user at a relative path.}, {, (RefLink[CloudObject, paclet:ref/CloudObject])["relpath",cbase] 
represents a cloud object with a path relative to the base cbase. }})

OpenersNotesSection(Spacer1)Details and Options

Absolute paths are resolved with respect to (RefLink[$CloudRootDirectory, paclet:ref/$CloudRootDirectory]). Relative paths are resolved with respect to (RefLink[CloudDirectory, paclet:ref/CloudDirectory]).

New anonymous cloud objects are created in the cloud defined by (RefLink[$CloudBase, paclet:ref/$CloudBase]).

(RefLink[CloudObject, paclet:ref/CloudObject])[(RefLink[URL, paclet:ref/URL])["loc"]] is also supported.

(RefLink[CloudObject, paclet:ref/CloudObject]) allows the following options:

(RefLink[Options, paclet:ref/Options])[CloudObject[…],…] gives the current options of a previously created (RefLink[CloudObject, paclet:ref/CloudObject]). (RefLink[SetOptions, paclet:ref/SetOptions]) can be used to reset them.

(RefLink[DeleteObject, paclet:ref/DeleteObject])[CloudObject[…]] removes a (RefLink[CloudObject, paclet:ref/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.

(RefLink[Information, paclet:ref/Information]) of a (RefLink[CloudObject, paclet:ref/CloudObject]) may include the following properties:

OpenersPrimaryExamplesSection(Spacer1)Examples  (4)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

An unnamed cloud object:

CloudObject[]

A named cloud object of a specific user:

CloudObject["user:example-user@wolfram.com/file"]

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

CloudObject["mydir/myfile"]

Save a computed value in a cloud object:

CloudPut[2^128,CloudObject["answer"]]

Read an expression stored in a cloud object:

CloudGet[CloudObject["answer"]]

Remove the cloud object:

DeleteObject[CloudObject["answer"]]

OpenersExampleSection2(Spacer1)Properties & Relations  (2)

Relative paths are resolved with respect to (RefLink[CloudDirectory, paclet:ref/CloudDirectory]):

SetCloudDirectory["mydir"]

CloudObject["myfile"]

(RefLink[LocalObject, paclet:ref/LocalObject]) is used for local persistent storage:

Put[10!,LocalObject[]]

OpenersExampleSection3(Spacer1)Possible Issues  (1)

Applying (RefLink[CloudObject, paclet:ref/CloudObject]) itself does not create an actual object in the cloud; it only refers to an object. So accessing the URL immediately will return a Not Found page:

obj=CloudObject[]

URLRead[obj,"StatusCode"]

Only by writing content to the cloud object is it actually created in the cloud:

CloudPut[10!,obj]

Get[obj]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[CloudDeploy, paclet:ref/CloudDeploy])  ▪  (RefLink[CloudPut, paclet:ref/CloudPut])  ▪  (RefLink[CloudGet, paclet:ref/CloudGet])  ▪  (RefLink[CloudDirectory, paclet:ref/CloudDirectory])  ▪  (RefLink[$CloudBase, paclet:ref/$CloudBase])  ▪  (RefLink[CloudObjects, paclet:ref/CloudObjects])  ▪  (RefLink[CloudPublish, paclet:ref/CloudPublish])  ▪  (RefLink[CloudShare, paclet:ref/CloudShare])  ▪  (RefLink[Databin, paclet:ref/Databin])  ▪  (RefLink[LocalObject, paclet:ref/LocalObject])  ▪  (RefLink[ChannelObject, paclet:ref/ChannelObject])  ▪  (RefLink[CloudSymbol, paclet:ref/CloudSymbol])  ▪  (RefLink[CloudExpression, paclet:ref/CloudExpression])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Cloud Functions & Deployment, paclet:guide/CloudFunctionsAndDeployment])}, {▪(RefLinkPlain[Creating Form Interfaces & Apps, paclet:guide/CreatingFormsAndApps])}, {▪(RefLinkPlain[Creating Instant APIs, paclet:guide/CreatingAnInstantAPI])}, {▪(RefLinkPlain[Sharing & Embedding Content, paclet:guide/SharingAndEmbeddingContent])}, {▪(RefLinkPlain[Persistent Storage, paclet:guide/PersistentStorage])}, {▪(RefLinkPlain[Structured Data in the Cloud, paclet:guide/StructuredDataInTheCloud])}, {▪(RefLinkPlain[External Operations, paclet:guide/ExternalOperations])}, {▪(RefLinkPlain[WDF (Wolfram Data Framework), paclet:guide/WDFWolframDataFramework])}, {▪(RefLinkPlain[File Operations, paclet:guide/FileOperations])}})}})

({{(Spacer1), ({{(Spacer1)Related Links}, {(WebLink[DocumentationFooterIconsRelatedLinks-FastIntro.png(Spacer1)Fast Introduction for Programmers: Cloud Deployment, http://www.wolfram.com/language/fast-introduction-for-programmers/cloud-deployment/])}, {(WebLink[DocumentationFooterIconsRelatedLinks-EIWL.png(Spacer1)An Elementary Introduction to the Wolfram Language, https://www.wolfram.com/language/elementary-introduction/43-storing-things.html])(WebLink[: Storing Things, https://www.wolfram.com/language/elementary-introduction/43-storing-things.html])}})}})