All Products
Search
Document Center

Intelligent Media Services:CreateSearchIndex

Last Updated:Aug 05, 2026

Creates a search index in a search library. A search library can contain multiple search indexes of different types.

Operation description

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

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

ice:CreateSearchIndex

create

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

SearchLibName

string

No

The name of the search library.

  • If you do not specify a search library name, the search index is created in the default IMS search library. Default value: ims-default-search-lib.

  • You can call the QuerySearchLib operation to query information about existing search libraries.

test1

IndexType

string

Yes

The index type. Valid values:

  • mm: large model visual state. Used to describe complex visual features and actions in videos. This type helps identify and search for specific actions, movements, and events in videos, such as a soccer player scoring a goal or a basketball player getting injured.

Note

The shared instance type supports up to 1,000 hours of video. After the limit is exceeded, the system no longer performs large model visual state analysis.

  • face: automatic face recognition. Used to describe facial features in videos. Through face recognition technology, faces in videos can be automatically tagged and searched.

Note

The shared instance type supports up to 1,000,000 face analyses. After the limit is exceeded, the system no longer performs face analysis.

  • aiLabel: intelligent tagging. The intelligent tagging index type is used to describe subtitles, speech, and other content in videos. Through text and speech recognition technology, language information such as subtitles and dialogues in videos can be automatically extracted for tagging and searching. This helps users quickly search for and locate content related to specific topics or keywords in videos.

Valid values:

  • mm :

    mm

  • face :

    face

  • aiLabel :

    aiLabel

mm

IndexStatus

string

No

The index status. Default value: Active. Valid values:

  • Active: activated.

  • Deactive: deactivated.

Valid values:

  • Active :

    Active

  • Deactive :

    Deactive

Active

IndexConfig

string

No

The index configuration.

{}

IndexConfig description

FeatureNameTypeRequiredDescriptionExample
IndexConfigobjectNoThe parameters related to the index configuration.{"level":"Shared"}
SpecificationlevelstringNoThe resource specification parameter for face or mm (large model) indexes. Default value: Shared.
Valid values:
  • Shared - shared instance type. Supports up to 1,000,000 face analyses or 1,000 hours of video large model analysis.

  • S.large - dedicated instance type. Supports up to 1,000,000 face analyses or 10,000 hours of video large model analysis.

  • S.2xlarge - dedicated instance type. Supports up to 2,000,000 face analyses or 20,000 hours of video large model analysis.

  • S.4xlarge - dedicated instance type. Supports up to 4,000,000 face analyses or 40,000 hours of video large model analysis.

  • S.8xlarge - dedicated instance type. Supports up to 8,000,000 face analyses or 80,000 hours of video large model analysis.

  • S.16xlarge - dedicated instance type. Supports up to 16,000,000 face analyses or 160,000 hours of video large model analysis.



"Shared"

Response elements

Element

Type

Description

Example

object

Schema of Response

RequestId

string

The request ID.

*****ACB-44F2-5F2D-88D7-1283E70*****

Success

string

Indicates whether the call was successful. Valid values:

  • true: The call was successful.

  • false: The call failed.

true

Code

string

The return code.

200

Examples

Success response

JSON format

{
  "RequestId": "*****ACB-44F2-5F2D-88D7-1283E70*****",
  "Success": "true",
  "Code": "200"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.