All Products
Search
Document Center

Intelligent Media Management:IndexFileMeta

Last Updated:Dec 11, 2024

Creates an index from metadata extracted by using techniques such as label recognition, face detection, and location detection from input files. You can retrieve data from the same dataset by using multiple methods.

Operation description

  • Before you call this operation, make sure that you are familiar with the billing of Intelligent Media Management (IMM).****
  • For information about how to create indexes from metadata, see Workflow templates and operators.
  • For information about the limits on the maximum number and size of index files that you can create, see the "Limits on datasets" section of the Limits topic. For information about how to create a dataset, see the "CreateDataset" topic.
  • For information about the regions in which you can create index files from metadata, see the "Datasets and indexes" section of the Limits topic.
  • After you create an index from metadata, you can try simple query to retrieve data. For information about other query capabilities, see Query and statistics. You can also create a face clustering task to group faces. For information about other clustering capabilities, see Intelligent management.

**

Usage notes

  • The IndexFileMeta operation is asynchronous, indicating that it takes some time to process the data after a request is submitted. After the processing is complete, the metadata is stored in your dataset. The amount of time it takes for this process varies based on the workflow template, the operator, and the content of the file, ranging from several seconds to several minutes or even longer. You can subscribe to Simple Message Service for task completion notifications.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
imm:IndexFileMetacreate
*Dataset
acs:imm:{#regionId}:{#accountId}:project/{#ProjectName}/dataset/{#DatasetName}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
ProjectNamestringYes

The name of the project. You can obtain the name of the project from the response of the CreateProject operation.

test-project
DatasetNamestringYes

The name of the dataset. You can obtain the name of the dataset from the response of the CreateDataset operation.

test-dataset
FileInputFileYes

The file for which you want to create an index. The value must be in the JSON format.

NotificationNotificationNo

The notification settings. For more information, click Notification. For information about the formats of asynchronous notifications, see the "Metadata indexing" section of the Asynchronous message examples topic.

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The request ID.

6E93D6C9-5AC0-49F9-914D-E02678D3****
EventIdstring

The event ID.

30F-1D8FxFzDXKJH9YQdve4CjR****

Examples

Sample success responses

JSONformat

{
  "RequestId": "6E93D6C9-5AC0-49F9-914D-E02678D3****",
  "EventId": "30F-1D8FxFzDXKJH9YQdve4CjR****"
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-04-15The request parameters of the API has changedView Change Details
2023-04-23The API operation is not deprecated.View Change Details
2023-03-27The request parameters of the API has changedView Change Details
2023-03-09The request parameters of the API has changedView Change Details
2022-08-16The request parameters of the API has changedView Change Details
2022-08-16The request parameters of the API has changedView Change Details
2021-06-15Add OperationView Change Details