Help Center/ Huawei Cloud Astro Zero/ API Reference/ APIs/ Metadata/ Operations on Custom Objects/ Querying an Object Verification Rule Based on the Verification Rule ID
Updated on 2025-10-10 GMT+08:00

Querying an Object Verification Rule Based on the Verification Rule ID

Function

This API is used to query an object verification rule based on the verification rule ID.

URI

GET Huawei Cloud Astro Zero domain name/u-route/baas/metadata/v1.0/object/{object_id}/{validator_id}

Table 1 URI parameters

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

validator_id

Yes

String

Explanation

Validator ID, which can be queried by calling the API of Querying an Object Verification Rule Based on the Object ID (id in the response message).

Constraints

None

Value

None

Default value

None

Request Parameters

None

Response Parameters

Table 2 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 detail information about the validator object is returned.

Example Request

Query a validator by validator ID.
GET https://Huawei Cloud Astro Zero domain name/u-route/baas/metadata/v1.0/Object/cust000001Dgez2L19N2/Validator/001j000001E0YI3AmTx2

Example Response

{
  "resCode": "0",
  "resMsg": "Success",
  "result": {
        "active": true,
        "belongTo": null,
        "createdBy": "10gd000001DHHEwmE1NQ",
        "createdBy.__objectType": "User",
        "createdBy.name": "test00xx",
        "createdDate": "2024-06-18 15:57:34",
        "custom": true,
        "description": null,
        "errorExpression": "age__CST>10",
        "errorLocation": "topOfPage",
        "errorMessage": "The age is greater than 10.",
        "field": null,
        "id": "001j000001E0YI3AmTx2",
        "installedPackage": null,
        "label": "age",
        "lastModifiedBy": "10gd000001DHHEwmE1NQ",
        "lastModifiedBy.__objectType": "User",
        "lastModifiedBy.name": "test00xx",
        "lastModifiedDate": "2024-06-18 15:57:34",
        "name": "age",
        "objectId": "cust000001Dgez2L19N2",
        "objectId.__objectType": "Object",
        "objectId.name": "Test__t1__CST",
        "owner": "10gd000001DHHEwmE1NQ",
        "owner.__objectType": "User",
        "owner.name": "test00xx",
        "protectMode": 0,
        "visibility": 0
    }
}   

Status Code

See Status Codes.

Error Code

See Error Codes.