Query information about a specific image library
Call this API operation to query information about a specific image library.
Usage notes
API operation: /green/similarity/library/get
You can call this API operation to query information about a specific image library. For more information about how to structure an HTTP request, see Request structure. You can also use a pre-built HTTP request. For more information, see SDK overview.
QPS limit
The queries per second (QPS) limit for this API is 20 per user. Exceeding this limit triggers throttling, which can impact your business. Plan your calls accordingly.
Request parameters
For more information about common request parameters, see Common parameters.
The request body is a JSON object. The following table describes the fields.
| Name | Type | Required | Example | Description |
| name | String | Yes | xxxx | The name of the image library to query. |
Response data
For more information about the response parameters, see Response parameters.
The data field in the response body is a JSON array. Each element contains the following fields:
| Name | Type | Example | Description |
| code | Integer | 200 | The error code. It is the same as the HTTP status code. For more information, see Common error codes. |
| msg | String | OK | The response message for the request. |
| name | name | xxxx | The name of the image library. |
| createTime | Integer | xxx | The timestamp when the image library was created. |
| imageCount | Integer | 0 | The number of samples in the image library. |
| region | String | cn-shanghai | The region where the image library is located. |
| requestId | String | 33921869-CF8A-4E62-8C31-44F37341FFC1 | The ID of the request. |
Examples
Request example
http(s)://[Endpoint]/green/similarity/library/get
&<Common request parameters>
{
"name": "xxxx"
}Response example
{
"msg": "OK",
"code": 200,
"requestId": "33921869-CF8A-4E62-8C31-44F37341FFC1",
"name": "xxxx",
"createTime":,
"imageCount":0,
"region":"cn-shanghai"
}