Parameter Types
Zenlayer Cloud API 2.0 supports multiple parameter types as shown below:
String
When defining a parameter of type string, an operator has a free text input element to enter a parameter value. You can specify the minimum or maximum number of characters that the operator can use.
Integer
When defining a parameter of type integer, an operator has an integer input element to enter a parameter value. The integer upper limit is an unsigned 64-bit integer. The types supported by different programming languages in SDK are different. It is recommended to define the largest integer type in the programming language used, for example, uint64
in Golang.
Boolean
When defining a parameter of type Boolean, an operator has a toggle element to enter a parameter value.
Float
When defining a parameter of type Float, an operator has a precision floating-point number element to enter a parameter value.
Double
When defining a parameter of type Double, an operator has a double-precision floating-point number element to enter a parameter value. A Double has 2x the precision of Float.
Timestamp
When defining a parameter of type Timestamp, an operator has a combined date and time element to enter a parameter value. For example, 2022-01-01T00:00:00Z.
Last updated