Cloud API Data Types
From SymetriQ_KB
In the CloudAPI we are using different datatypes to pass arguments in a mail or function call.
Also those values are the return values for the CloudAPI requests
4 Types are used.
Contents |
String
Strings are put between "brackets".
Example:
name = "TestMachine"
If you don't use brackets the Cloud API will automaticly detects if a parameter is a string.
Integers
Integers are just numbers e.g. 10,11,345
Example:
storageCredits = 200
List
A list is just a list of strings,integers,other lists.
Example:
["Machine1","Machine2","Machine3"]
Dict
A dict is a datatype which contains a key and a value. Values can be dicts, integers,strings,...
Examples:
{processingcredits: 20, storagecredits: 100, networkingdcredits: 35}
{modelled: {processingcredits: 20, storagecredits: 100, networkingdcredits: 25}, deployed: {processingcredits: 10, storagecredits: 50, networkingcredits: 10}}
