List of Functions
Oracle Cloud Stack offers several intrinsic functions that you can use when creating a template. These functions are executed at runtime by Oracle Cloud Stack when a stack is being created.
Function | Description and Syntax | Examples |
---|---|---|
And |
Return
|
|
Base64 |
Convert the given string to base64 encoding.
|
|
Contains |
Return
|
|
Empty |
Return
|
|
Equals |
Compare a sequence containing two expressions and return
|
|
FindInMap |
Retrieve the value for the specified key from a map that’s defined in this template.
|
|
GetAtt |
Retrieve the value of the runtime attribute from a specific resource. The attribute name supports a dot notation to access nested attributes within a JSON payload.
|
|
GetParam |
Retrieve the value of a template parameter.
|
|
GetRandom |
Generate a string of random characters.
Use
|
|
GetResource |
Retrieve a resource’s definition.
|
|
GetTimestamp |
Return the current time in the specified format.
See SimpleDateFormat for the available date and time options in the |
For example:
For example: |
GreaterThan |
Compare a sequence containing two expressions and return
|
|
If |
Evaluate a global condition defined in this template. If the specified condition evaluates to
|
|
Join |
Combine a sequence of values into a single string, and using the specified delimiter character between the values. The function takes a sequence (delimiter, values) as its argument, and the values themselves are a sequence. To simply join the values without a delimiter specify an empty string for the first argument.
|
If the |
LessThan |
Compare a sequence containing two expressions and return
|
|
Match |
Return
|
This expression returns
This expression returns
|
Not |
Negate the boolean value of an expression. If the expression evaluates to
|
|
Or |
Return
|
|
Replace |
Dynamically find and replace one or more values in a string ( The replacements (
|
If the |
Select |
Select an object from a list of indexed objects, by passing in the index of the desired object.
|
The |
Size |
Return the number of characters in the specified string, or the number of elements in the specified sequence.
|
If the |
Split |
Split a single string into a sequence of strings by using the specified delimiter character. The function takes a sequence (delimiter, string) as its argument, and returns a sequence. You can also use the
|
The |