ci:CreateFileMetaIndex permission to the action of the authorization policy. For all APIs supported by Cloud Infinite, see CI action.POST /filemeta HTTP/1.1Host: <AppId>.ci.ap-jakarta.myqcloud.comAuthorization: Auth StringContent-Length: xxxContent-Type: application/jsonAccept: application/json
{"DatasetName": "test001","File": {"URI": "cos://examplebucket-1250000000/test.jpg","CustomId": "001","CustomLabels": {"age": "18","level": "18"},"MediaType": "image","ContentType": "image/jpeg","MaxFaceNum": 20,"Persons": [{"PersonId": "xxxxx"}]}}
Parameter Name | Description | Type | Required |
URI | Resource identifier field, indicating the file address for which an index needs to be created. Currently, only files on COS are supported. Field rule: cos://<BucketName>/<ObjectKey>, where BucketName indicates the COS Bucket name and ObjectKey indicates the complete file path. Example: cos://examplebucket-1250000000/test1/img.jpgNote: Only COS files within the current account are supported. Addresses starting with HTTP are not supported. | String | Yes |
CustomId | Custom ID. After the file is indexed into the dataset, it is stored as an attribute of the metadata in that row for association and mapping with your business system. You can pass in this value based on your business requirements, for example, associating a URI with an ID in your system. It is recommended to pass in a globally unique value. During queries, this field supports prefix search and sorting. For details, see Scalar Search Expression Syntax. | String | No |
CustomLabels | Custom tag. You can add custom tag key-value pair information based on your business needs, which can be used as filter criteria for search during queries. For details, see Scalar Search Expression Syntax. | Object | No |
MediaType | Optional. File media type. Enumerated values: image: image document: document archive: archive video: video audio: audio other: other | String | No |
ContentType | Optional. File content type (MIME Type), such as image/jpeg | String | No |
MaxFaceNum | Number of faces to search for in the input image. Default value: 20. Maximum value: 20. This parameter takes effect only when the dataset search template ID is Official:FaceSearch. | Integer | No |
Persons | Custom character attributes (effective only when the dataset search template ID is Official:FaceSearch) | Container Array | No |
Parameter Name | Description | Type | Required |
PersonId | Custom character ID | String | No |
{"EventId": "wie3580c6ca88dd83382cf52540067****","RequestId": "NWFjMzQ0MDZfOTBmYTUwXzZkZV8z****"}
Parameter Name | Type | Description |
RequestId | String | Request ID. |
EventId | String | Task ID for Creating Metadata Index |
피드백