CloudPut
CloudPut[expr]
writes expr to a new anonymous cloud object.
CloudPut[expr,"uri"]
writes expr to a cloud object at a given URI.
CloudPut[expr,CloudObject["uri"]]
writes expr to a given cloud object.
Details and Options
- CloudPut returns the resulting CloudObject.
- CloudPut[expr, URL["uri"]] is also supported.
- To copy an existing local file to the cloud, use CopyFile.
- CloudPut allows the following options:
-
CachePersistence Automatic controls the time duration for which an object is cached by a client CloudBase Automatic what cloud to write to CloudObjectNameFormat $CloudObjectNameFormat format to use for the name portion of the URL CloudObjectURLType $CloudObjectURLType base type of URL to use (obj, env, ...) IconRules Automatic icons to use for the object IncludeDefinitions False whether to automatically include dependencies MetaInformation {} metainformation for the object Permissions Automatic permissions for the object - With IncludeDefinitions->False, CloudPut[expr,…] includes only expr itself in the cloud object it creates.
- With IncludeDefinitions->True, CloudPut[expr,…] automatically includes all definitions needed to evaluate expr in the cloud object it creates.
Examples
open allclose allBasic Examples (2)
Scope (2)
Save a named cloud object specified by a string:
Save a named cloud object specified by a CloudObject:
Save a named cloud object specified by a URL:
Save an unevaluated expression:
Options (6)
CloudObjectURLType (1)
IncludeDefinitions (1)
MetaInformation (1)
Properties & Relations (1)
Put with a CloudObject destination is equivalent to CloudPut:
Use PutAppend with a cloud object to append an expression to a cloud object instead of completely replacing its contents as CloudPut does:
Append another expression and read all the expressions in the object:
Possible Issues (1)
Using CloudPut for expressions like APIFunction that have special behavior in the cloud does not activate their special behavior:
Calling the cloud object does not do any computation since an expression is simply displayed using HTML, which happens to be imported as something readable by URLExecute:
In order to create a usable APIFunction, it must be deployed with CloudDeploy or CloudPublish:
Now it reads the parameters and evaluates the function when invoked, as intended:
Text
Wolfram Research (2014), CloudPut, Wolfram Language function, https://reference.wolfram.com/language/ref/CloudPut.html (updated 2019).
CMS
Wolfram Language. 2014. "CloudPut." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2019. https://reference.wolfram.com/language/ref/CloudPut.html.
APA
Wolfram Language. (2014). CloudPut. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/CloudPut.html