Querying a Trigger by trigger_id
Function
This API is used to query a trigger by trigger_id.
URI
GET Huawei Cloud Astro Zero domain name/u-route/baas/metadata/v1.0/object/{object_id}/{trigger_id}
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
object_Id |
Yes |
String |
Explanation Object instance ID, which can be queried by calling the API of Querying All Custom Objects (id in the response message). Constraints None Value None Default value None |
trigger_id |
Yes |
String |
Explanation Trigger ID, which can be queried by calling the API of 5.2.3.13 Querying a Trigger By object_id (id in the response message). Constraints None Value None Default value None |
Request Parameters
None
Response Parameters
Parameter |
Type |
Description |
---|---|---|
resCode |
String |
Explanation Return code. Value If the request is successful, 0 is returned. For details about other error codes, see Error Codes. |
resMsg |
String |
Explanation Message returned. Value If the request is successful, "Success" is returned. In other cases, an error message is returned. |
result |
Object |
Explanation If the request is successful, the detailed information about the trigger is returned. |
Example Request
GET https://Huawei Cloud Astro Zero domain name/u-route/baas/metadata/v1.0/Object/cust000001Dgez2L19N2/Trigger/001i000001Docd70WYZU
Example Response
{ "resCode": "0", "resMsg": "Success", "result": { "active": true, "apiVersion": null, "belongTo": null, "createdBy": "10gd000001DHHEwmE1NQ", "createdBy.__objectType": "User", "createdBy.name": "hw065922111", "createdDate": "2024-06-11 11:27:02", "custom": true, "description": null, "event": "BeforeInsert", "event.name": "BeforeInsert", "id": "001i000001Docd70WYZU", "installedPackage": null, "jscode": "Hello, world;rn", "label": "Trigger 01", "lastModifiedBy": "10gd000001DHHEwmE1NQ", "lastModifiedBy.__objectType": "User", "lastModifiedBy.name": "hw065922111", "lastModifiedDate": "2024-06-11 11:27:02", "name": "Trigger_01", "objectId": "cust000001Dgez2L19N2", "objectId.__objectType": "Object", "objectId.name": "HW_00644562__t1__CST", "owner": "10gd000001DHHEwmE1NQ", "owner.__objectType": "User", "owner.name": "hw065922111", "protectMode": 0, "script": "string", "sourceMap": null, "visibility": 0 } }
Status Code
See Status Codes.
Error Code
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