API Overview
Data Modules
You can use data module APIs to query, update, or delete data by record ID. These APIs allow you to both query and add data within an object.
API |
Description |
---|---|
Query data by record ID. |
|
Delete data by record ID. |
|
Update data by record ID. |
|
Query data by record ID list. |
|
Add data to an object. |
|
Delete data by record ID list. |
|
Update data by condition. |
|
Query data by condition. |
|
Delete data by condition. |
|
Query the number of object records based on conditions. |
|
Add or update data records in batches. If the request contains id, this API is used to update data. If the request does not contain id, this API is used to add data. |
Metadata
You can use metadata APIs to create objects, flows, and creating workflows.
API |
Description |
---|---|
Create an object instance. |
|
Query all object instances. |
|
Query an object instance by ID. |
|
Add a custom field to an object instance. |
|
Add a trigger for an object instance. |
|
Add a validator for an object instance. |
|
Add a layout for an object instance. |
|
Query a field by field_id. |
|
Query a layout by object_id. |
|
Query a layout by layout_id. |
|
Query a button by object_id. |
|
Query a button by button_id. |
|
Query a trigger by object_id. |
|
Query a trigger by trigger_id. |
|
Query a validator by object_id. |
|
Query a validator by validator_id. |
|
Create a flow instance. |
|
Query flow instances that meet specific conditions. |
|
Query the input and output parameters of a flow instance. |
|
Update a flow instance. |
|
Delete a flow instance. |
|
Create a BPM instance. |
|
Query BPM instances by condition. |
|
Query a BPM instance by bpm_id. |
|
Update a BPM instance. |
|
Delete a BPM instance. |
|
Create a picklist instance. |
|
Query picklist instances by condition. |
|
Add values to a picklist instance by picklist_id. |
|
Querying a Picklist Instance or Objects That Reference a Picklist Instance |
Query a picklist instance or the objects that reference a picklist instance. |
Update a picklist instance. |
|
Deleting a Picklist Instance or the Value of a Picklist Instance |
Delete a picklist instance or the value of a picklist instance. |
Query all applications under the current account. |
|
Query an application based on the application ID. |
|
Query the list of standard pages, including only basic information. To obtain the content of a standard page, query the content by ID. |
|
Query standard pages by view_id. |
|
Query the list of application tab pages. |
Flows
You can use flow APIs to orchestrate flows and view the running flow instances.
API |
Description |
---|---|
Orchestrate a flow instance. |
|
Query a flow instance |
Scripts
You can use script APIs to run, debug, and obtain script signature information.
API |
Description |
---|---|
Run a script. |
|
Debug a script. |
|
Obtain signature information of a script. |
|
Obtain the declaration of the built-in library of a script. |
|
Obtain a flow formula. |
BPM
You can use business process management (BPM) APIs to start, delete, suspend, resume, and terminate BPM instances.
API |
Description |
---|---|
Create and start a BPM instance. |
|
Obtain information about all BPM instances of the current account. |
|
Suspend, resume, or terminate a BPM instance. After a BPM instance is suspended, it will not be displayed in the to-do task list, the SLA timer stops, and no follow-up reminder will be sent. After a BPM instance is resumed, the system proceeds with subsequent operations. After a BPM instance is terminated, the BPM instance is forcibly stopped and you can view the BPM instance only in the historical task list. |
|
Delete a BPM instance. It is recommended that a BPM be deleted only when the administrator needs to clear expired data. In other cases, do not delete BPM instance data. |
|
Setting or Modifying the Values of Variables in a BPM Instance |
Modify variable values in a BPM instance, allowing updates to single, multiple, or all variables simultaneously. Nonexistent or read-only variables are ignored. |
Import and Export
You can use import and export APIs to import and export data and metadata, enabling data migration.
API |
Description |
---|---|
Export specific data of a table. The internal data of the objects created in Huawei Cloud Astro Zero can be exported. This API exports the data of these objects based on the preset period, frequency, and filter criteria. |
|
Import data. The data to be imported should be compressed to a .zip package. Data files in the package must be in .txt or .csv format. In each file, the first row indicates the object to which the data belongs, the second row indicates the field names, and the other rows indicate data records. |
|
Export the metadata of a data table, that is, export the information about each field in the data table, excluding specific data records. |
|
Import the metadata of a table. If the metadata of a data table is available, you can quickly create an object table based on the metadata. |
|
Import data by using a template. Before importing data, you need to create a data import template and define data mapping rules in the template. When this API is called, the template name must be specified and the operation script must be defined in the template. |
Connectors
You can use the preset connector APIs to upload, download, delete, and list files and directories.
API |
Description |
---|---|
Upload local files to the storage. By default, files are uploaded to the first bucket set up for the connector. |
|
Download files from the storage. |
|
Delete useless files from the storage. |
|
Delete a directory from storage. All files within it will be deleted along with the directory. |
|
List files in a directory on the storage. |
|
To upload a large file, multipart upload is recommended. Multipart upload is applicable to many scenarios, including:
|
|
endpoint is the prefix of the file storage address. Combine it with the object's path to get the full access path. In Uploading a File, the path of the uploaded file on the bucket is returned. You can call the API in this section to obtain the endpoint and combine it with the returned path to get the full access path. |
|
You can call this API (described in Obtaining a Sharing Token) to obtain a temporary token. You can use this temporary token to access the file without using the access-token for authentication. |
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