All Products
Search
Document Center

Intelligent Media Services:CreateSearchLib

Last Updated:Jan 28, 2026

Creates a search library to store media assets.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

SearchLibName

string

Yes

The name of the search library. The name can contain letters and digits. For IP camera (IPC) monitoring scenarios, the name must start with the IPCamera_ prefix. For other scenarios, you can use a custom name.

test1

SearchLibConfig

string

No

The configuration of the search library, in JSON string format. The fields include the following:

  • faceGroupIds: The IDs of custom face recognition libraries. You can create these libraries by calling the CreateRecognitionLib operation. You can specify up to three library IDs, separated by commas (,).

{"faceGroupIds":"xxx1,xxx2,xx3"}

Response elements

Element

Type

Description

Example

object

Schema of Response

RequestId

string

The request ID.

******3B-0E1A-586A-AC29-742247******

Success

string

Indicates whether the call was successful.

  • true: The call was successful.

  • false: The call failed.

true

Code

string

The status code.

200

SearchLibName

string

The name of the search library.

test1

Examples

Success response

JSON format

{
  "RequestId": "******3B-0E1A-586A-AC29-742247******",
  "Success": "true",
  "Code": "200",
  "SearchLibName": "test1"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.