({{, (RefLink[CreateCloudExpression, paclet:ref/CreateCloudExpression])[value]
creates a new anonymous cloud expression that stores the specified initial value.}, {, (RefLink[CreateCloudExpression, paclet:ref/CreateCloudExpression])[value,"name"]
creates a new cloud expression with the specified name.}})

OpenersNotesSection(Spacer1)Details and Options

By default, created cloud expressions have URIs whose base is the value of (RefLink[$CloudExpressionBase, paclet:ref/$CloudExpressionBase]).

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

The following options can be given:

OpenersPrimaryExamplesSection(Spacer1)Examples  (5)

OpenersExampleSection0(Spacer1)Basic Examples  (2)

Create an anonymous cloud expression storing an initial value:

ce = CreateCloudExpression[{a,b,c}]

Retrieve a part from the cloud expression:

ce[2]

Reset a part in the cloud expression:

ce[2]=x

Get the value of the whole cloud expression:

Get[ce]

Delete the cloud expression:

DeleteCloudExpression[ce]

Create a named cloud expression:

expr = CreateCloudExpression[{1,2,3},"example"]

Get the value of the cloud expression:

Get[expr]

Delete the expression:

DeleteCloudExpression[expr]

OpenersExampleSection1(Spacer1)Options  (3)

OpenersExampleSubsection0(Spacer1)PartProtection  (2)

Create a cloud expression with no part protection:

expr=CreateCloudExpression[<|"a"->{1,2,3}|>,"unprotected",PartProtection->None]

Change part of the expression, destroying its structure:

expr["a"]=None;

Read the new value of the expression:

Get[expr]

Get the part protection value:

Options[expr, PartProtection]

Create a part protected cloud expression:

expr = CreateCloudExpression[<|"a"->1, "b"->2|>, "partprotected", PartProtection->All]

Attempt to modify the key "a", whose value is an integer:

expr["a"]=None

Read the value associated to key "a"; it is unchanged:

expr["a"]

Get the part protection value:

Options[expr, PartProtection]

OpenersExampleSubsection1(Spacer1)Permissions  (1)

Create a cloud expression with public read permissions:

CreateCloudExpression[{1,2,3},"public",Permissions->{All->"Read"}]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[CloudExpression, paclet:ref/CloudExpression])  ▪  (RefLink[CloudExpressions, paclet:ref/CloudExpressions])  ▪  (RefLink[DeleteCloudExpression, paclet:ref/DeleteCloudExpression])  ▪  (RefLink[CreateDatabin, paclet:ref/CreateDatabin])  ▪  (RefLink[CloudObject, paclet:ref/CloudObject])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Structured Data in the Cloud, paclet:guide/StructuredDataInTheCloud])}, {▪(RefLinkPlain[Persistent Storage, paclet:guide/PersistentStorage])}})}})