Creating an SQL Verification
Function
This API is used to create an SQL verification.
Calling Method
For details, see Calling APIs.
URI
POST /v2/{project_id}/workspaces/{workspace_id}/siem/sql/validation
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Definition Project ID, which is used to specify the project that a resource belongs to. You can query the resources of a project by project ID. You can obtain the project ID from the API or console. Obtaining the Project ID Constraints N/A Range N/A Default Value N/A |
|
workspace_id |
Yes |
String |
Workspace ID. |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
X-Auth-Token |
Yes |
String |
Definition User token. You can obtain it by calling the IAM API for obtaining a user token. The user token is the value of X-Subject-Token in the response header. Obtaining a User Token Constraints N/A Range N/A Default Value N/A |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
script |
Yes |
String |
Job script. |
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
sources |
Array of TableItem objects |
Source tables |
|
modes |
Array of strings |
Modes |
|
Parameter |
Type |
Description |
|---|---|---|
|
project_id |
String |
Project ID. |
|
workspace_id |
String |
Workspace ID. |
|
table_id |
String |
UUID |
|
table_name |
String |
Table name. |
|
table_alias |
String |
Table alias |
|
directory |
String |
Directory group. |
|
description |
String |
Table description |
|
category |
String |
Definition Table type.
INDEX: index. Constraints N/A Range
Default Value N/A |
|
lock_status |
String |
Definition Table lock status.
Constraints N/A Range
Default Value N/A |
|
process_status |
String |
Definition Table processing status.
Constraints N/A Range
Default Value N/A |
|
process_error |
String |
Definition Table processing error.
Constraints N/A Range
Default Value N/A |
|
edit_type |
String |
Definition Table editing type.
Constraints N/A Range
Default Value N/A |
|
format |
String |
Definition Table format.
-DEBEZIUM_JSON: Debezium JSON Constraints N/A Range
Default Value N/A |
|
rw_type |
String |
Definition Table read/write type.
Constraints N/A Range
Default Value N/A |
|
owner_type |
String |
Definition Owner type.
Constraints N/A Range
Default Value N/A |
|
data_layering |
String |
Definition Data layers.
Constraints N/A Range
Default Value N/A |
|
data_classification |
String |
Definition Data classification.
Constraints N/A Range
Default Value N/A |
|
create_time |
Integer |
Timestamp, in ms. |
|
update_time |
Integer |
Timestamp, in ms. |
|
delete_time |
Integer |
Timestamp, in ms. |
|
store_size_in_bytes |
Long |
Used storage capacity. |
Example Requests
None
Example Responses
None
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
Success |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot