Image Search インスタンスのイメージ情報を変更します。
操作説明
使用上の注意
この操作は、プロダクト ID とイメージ名に基づいて Image Search インスタンスのイメージ情報を変更します。
インスタンスは特定の作成時間の要件を満たしている必要があります。
2021 年 12 月以降にシンガポールリージョンで作成されたインスタンスがサポートされています。他のリージョンのインスタンスはサポートされていません。
プロダクトの詳細およびテクニカルサポートについては、オンライン相談 をクリックするか、DingTalk グループ (35035130) の連絡先を通じてお問い合わせください。
QPS 制限
更新操作のデフォルトの同時実行数は 20 です。つまり、1 秒あたり最大 20 個のリクエストを処理できます。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
imagesearch:UpdateImage |
update |
*すべてのリソース。
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| InstanceName |
string |
必須 |
Image Search インスタンスの名前。名前の長さは最大 20 文字です。 Image Search インスタンスを購入済みの場合は、Image Search コンソール にログインしてインスタンス名を表示します。 Image Search インスタンスを未購入の場合は、サービスの有効化 および インスタンスの作成 を参照してください。 説明
インスタンス名はインスタンス ID ではありません。このパラメーターを使用する際は、両者を区別してください。 |
demoinstance1 |
| ProductId |
string |
必須 |
プロダクト ID。ID の長さは最大 256 文字です。 説明
1 つのプロダクトに複数のイメージを設定できます。ビジネス要件に基づいてパラメーター値をカスタマイズしてください。例: Shirt001、Pants002。 |
2092061_1 |
| PicName |
string |
任意 |
イメージ名。名前の長さは最大 256 文字です。 説明
|
namexxx.jpg |
| CustomContent |
string |
任意 |
カスタムコンテンツ。コンテンツの長さは最大 4,096 文字です。 説明
このフィールドは、"イメージによる検索" 操作の呼び出し時に返されます。たとえば、イメージの説明などのテキストを追加できます。 |
zidingyi |
| IntAttr |
integer |
任意 |
整数属性。この属性はクエリ結果のフィルタリングに使用でき、レスポンスで返されます。 |
2 |
| StrAttr |
string |
任意 |
文字列属性。この属性の長さは最大 128 文字です。この属性は、クエリ結果のフィルターに使用でき、応答で返されます。 |
ss |
| IntAttr2 |
integer |
任意 |
整数属性。この属性はクエリ結果のフィルターに使用でき、応答で返されます。 |
20 |
| StrAttr2 |
string |
任意 |
文字列属性。属性の長さは最大 128 文字です。この属性はクエリ結果のフィルターに使用でき、応答で返されます。 |
test |
| IntAttr3 |
integer |
任意 |
整数属性。この属性はクエリ結果のフィルターに使用でき、応答で返されます。 |
33 |
| StrAttr3 |
string |
任意 |
文字列属性。属性の長さは最大 128 文字です。この属性はクエリ結果のフィルターに使用でき、応答で返されます。 |
ss |
| IntAttr4 |
integer |
任意 |
整数属性。この属性はクエリ結果のフィルタリングに使用でき、応答で返されます。 |
33 |
| StrAttr4 |
string |
任意 |
文字列属性。属性の長さは最大 128 文字です。この属性はクエリ結果のフィルターに使用でき、応答で返されます。 |
ss |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
応答オブジェクト。 |
||
| Message |
string |
エラーメッセージ。 |
success |
| RequestId |
string |
リクエスト ID。 |
E0845DE6-52AF-4B50-9F15-51ED4044E6AB |
| Code |
integer |
エラーコード。
|
0 |
| Success |
boolean |
リクエストが成功したかどうかを示します。 |
true |
例
成功レスポンス
JSONJSON
{
"Message": "success",
"RequestId": "E0845DE6-52AF-4B50-9F15-51ED4044E6AB",
"Code": 0,
"Success": true
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | BadRequest | The request has invalid parameters. | 無効なパラメーター。 |
| 400 | InstanceStatusError | Your instance is unavailable. | |
| 400 | InvalidInstance | The specified instance name is invalid. | インスタンス名が無効です。 |
| 400 | NoCaretSeperator | The body content is missing the ^ separator. | リクエストボディに必須の記号がありません。 |
| 400 | EmptyMeta | The body content has an empty meta field. | リクエストボディに空のフィールドが含まれています。 |
| 400 | InvalidMetaItem | The meta field is invalid. | メタデータフィールドが無効です。 |
| 400 | NoPicList | The body content is missing the pic_list parameter. | pic_list フィールドが指定されていません。 |
| 400 | InvalidPicList | The specified pic_list parameter is invalid. | pic_list フィールドが無効です。 |
| 400 | NoSpecifiedPic | The content of an image is not specified in the HTTP POST body. | イメージが指定されていません。 |
| 400 | NoSpecifiedSearchPic | The search image is not specified. | |
| 400 | InvalidCategory | The specified category is invalid. | カテゴリ ID が無効です。 |
| 400 | OverflowMaxResultNum | The specified number of total results exceeds the maximum of 500. | 返却結果の最大数 500 を超えています。 |
| 400 | OverflowMaxReturnNum | The specified number of results for each request exceeds the maximum of 100. | 1 回のリクエストで返却される結果の件数が、上限の 100 件を超えています。 |
| 400 | InvalidStartParameter | The specified parameter s is inavlid. | |
| 400 | InvalidNumParameter | The specified parameter n is invalid. | |
| 400 | NoSpecifiedAddPic | The image to insert is not specified. | |
| 400 | NoSpecifiedItemId | The item_id parameter is not specified. | |
| 400 | InvalidIntAttr | The specified int_attr field is invalid. | int フィルターフィールドが無効です。 |
| 400 | UnsupportedPicFormat | The specified image format is invalid. | イメージのフォーマットは無効です。 |
| 400 | InvalidFilterClause | The specified filtering condition is invalid. | フィルター条件が無効です。 |
| 400 | InstanceOverQuota | The number of items exceeds the limit. | インスタンス内のイメージ数が制限を超えています。 |
| 400 | IncorrectOrientation | The image contains incorrect rotation flags in the meta data. | イメージにサポートされていない回転パラメーターが含まれています。 |
| 400 | UnsupportedPicPixels | The specified pixels is not supported. | イメージの画素値はサポートされていません。 |
| 400 | SearchTimeout | The request is timed out. | |
| 400 | PicNotExist | The search picture does not exist. | |
| 400 | NoSpecifiedProductId | The parameter ProductId no specified. | |
| 400 | NoSpecifiedPicName | The parameter PicName no specified. | |
| 400 | NoSpecifiedPicContent | The parameter PicContent no specified. | |
| 400 | InvalidType | The specified parameter Type is not valid. | |
| 400 | InvalidProductId | The specified parameter ProductId is not valid. | |
| 400 | InvalidPicName | The specified parameter PicName is not valid. | |
| 400 | InvalidStrAttr | The specified parameter StrAttr is not valid. | フィルターの値が無効です。 |
| 400 | InvalidCustomContent | The specified parameter CustomContent is not valid. | |
| 400 | InvalidPicContent | The specified parameter PicContent length greater than 4 * 1024 * 1024. | |
| 400 | TimeoutForTransferImage | Timeout after 5 seconds waiting for images transfer to complete. | |
| 400 | InvalidIntAttr4 | The specified parameter IntAttr4 is not valid. | IntAttr4 の値が無効です。 |
| 400 | InvalidIntAttr3 | The specified parameter IntAttr3 is not valid. | IntAttr3 の値が無効です。 |
| 400 | InvalidIntAttr2 | The specified parameter IntAttr2 is not valid. | IntAttr2 の値が無効です。 |
| 400 | InvalidStrAttr4 | The specified parameter StrAttr4 is not valid. | StrAttr4 の値が無効です。 |
| 400 | InvalidStrAttr3 | The specified parameter StrAttr3 is not valid. | StrAttr3 の値が無効です。 |
| 400 | InvalidStrAttr2 | The specified parameter StrAttr2 is not valid. | StrAttr2 の値が無効です。 |
| 400 | UnsupportedInstanceType | The instance type is not supported. | 内部エラーが発生しました: インスタンスタイプはサポートされていません。 |
| 400 | UnsupportedOperationType | The specified action is not supported. | 内部エラーが発生しました: 操作はサポートされていません。 |
| 500 | InternalError | An internal server error occurred. | |
| 500 | NetworkException | A network error occurred. | ネットワーク例外により内部エラーが発生しました。 |
| 500 | RequestTimeout | The request is timeout. | |
| 500 | ExtractFeatureTimeout | The request was timed out while extracting features. | |
| 500 | AccessEngineFailed | An error occurred while accessing the search engine. | |
| 500 | InternalOssError | An internal OAS error occurred. | 内部エラー: 内部アルゴリズムエラーが発生しました。 |
| 500 | InternalSwiftError | An internal SWIFT error occurred. | 内部エラー: 内部メッセージキューエラーが発生しました。 |
| 500 | InternalTableStoreError | An internal Table Store error occurred. | 内部エラー: 特徴ストレージエラーが発生しました。 |
| 403 | NoPermission | You are not authorized to perform this operation. | 操作は許可されていません。 |
| 403 | DeniedRequest | Your request was denied due to instance flow control. | インスタンスの速度制限しきい値を超えたため、リクエストが拒否されました。 |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。