Querying Picklist Instances by Condition
Function
This API is used to query Picklist instances that meet specific conditions.
URI
GET Huawei Cloud Astro Zero domain name/u-route/baas/metadata/v1.0/picklist
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
flag |
No |
String |
Explanation Specifies the method of querying the value set list of a picklist. Constraints None Value
Default value None |
project |
No |
String |
Explanation Name of the project to which the Picklist instance belongs. Constraints None Value None Default value None |
type |
No |
String |
Explanation Type of the project to which the Picklist instance belongs. Constraints None Value
Default value None |
name |
No |
String |
Explanation Name of the picklist instance. Constraints None Value None Default value None |
isGlobal |
No |
String |
Explanation Whether the picklist instance is a global Picklist. Constraints isGlobal=true can be transferred only when project and type are transferred to filter the global picklist related to the application. Otherwise, isGlobal does not take effect. Value true Default value 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 |
Array |
Explanation If the request is successful, the Picklist instances that meet the conditions are returned. |
Example Request
GET https://Huawei Cloud Astro Zero domain name/u-route/baas/metadata/v1.0/Picklist?name=testName&isGlobal=false
Example Response
{ "resCode": "0", "resMsg": "Success", "result": [ { "controlField": null, "createdBy": "testUserId", "createdBy.__objectType": "User", "createdBy.name": "test0xx", "createdDate": "2019-08-05 20:38:24", "custom": true, "description": "", "id": "testListId", "installedPackage": null, "isGlobal": true, "isRestricted": false, "isSorted": false, "lastModifiedBy": "testUserId", "lastModifiedBy.__objectType": "User", "lastModifiedBy.name": "test0xx", "lastModifiedDate": "2019-08-05 20:38:24", "masterLabel": "testLabel", "name": "testName", "owner": "testUserId", "owner.__objectType": "User", "owner.name": "test0xx", "protectMode": 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