CreateQueryVariable
Creates a custom query variable.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-saf:Describe |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Lang |
string |
No |
Specifies the language type for requests and received messages. Default value: zh. Valid values:
|
zh |
| regId |
string |
Yes |
The region code. |
cn-hangzhou |
| dataSourceCode |
string |
Yes |
The data source ID. |
3527 |
| eventCode |
string |
Yes |
The event code. |
de_arqbuy7206 |
| title |
string |
Yes |
The title. |
Retrieve the first 7 digits of a phone number |
| description |
string |
No |
The description. |
Query variable description |
| outputs |
string |
Yes |
The return type of the variable. |
STRING |
| outlier |
string |
Yes |
The outlier. |
-1 |
| expression |
string |
Yes |
The calculation expression. |
SELECT AVG( $source ) FROM testCase WHERE $age > 0 |
| expressionTitle |
string |
Yes |
The display value of the calculation expression. |
SELECT AVG( $source ) FROM testCase WHERE $age > 0 |
| expressionVariable |
string |
Yes |
The variable of the calculation expression. |
age |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| resultObject |
boolean |
The returned object. |
true |
| RequestId |
string |
The request ID. |
A32FE941-35F2-5378-B37C-4B8FDB16F094 |
Examples
Success response
JSON format
{
"resultObject": true,
"RequestId": "A32FE941-35F2-5378-B37C-4B8FDB16F094"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.