Querying All Global Variables
Function
This API is used to query information about all global variables in the current project.
Debugging
You can debug this API in API Explorer.
URI
- URI format
- Parameter description
Table 1 URI parameter Parameter
Mandatory
Type
Description
project_id
Yes
String
Project ID, which is used for resource isolation. For details about how to obtain its value, see Obtaining a Project ID.
Table 2 query parameter description Parameter
Mandatory
Type
Description
limit
No
Integer
Number of returned records displayed on each page. The default value is 100.
offset
No
Integer
Offset. The default value is 0.
Request
None
Response
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| is_success | No | Boolean | Whether the request is successfully executed. Value true indicates that the request is successfully executed. |
| message | No | String | System prompt. If execution succeeds, the parameter setting may be left blank. |
| count | No | Integer | Number of global variables. |
| global_vars | No | Array of Objects | Global variable information. For details, see Table 4. |
Example
- Example request
None
- Example response
{ "is_success": true, "message": "string", "count": 0, "global_vars": [ { "id": 0, "var_name": "string", "var_value": "string", "project_id": "string", "user_id": "string" } ] }
Status Codes
| Status Code | Description |
|---|---|
| 200 | All variables are queried successfully. |
| 400 | The input parameter is invalid. |
Error Codes
If an error occurs when this API is invoked, the system does not return the result similar to the preceding example, but returns the error code and error information. For details, see Error Code.
| Error Code | Error Message |
|---|---|
| DLI.0001 | Parameter check errors occur. |
| DLI.0999 | Server-side errors occur. |
Last Article: Modifying a Global Variable
Next Article: Permissions Policies and Supported Actions
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.