すべてのプロダクト
Search
ドキュメントセンター

Image Search:CheckImageExists

最終更新日:Oct 22, 2026

イメージが存在するかどうかを確認します。

操作説明

使用上の注意

この操作では、イメージに基づいて Image Search インスタンス内のイメージ情報を照会します。

QPS の制限

コンソールで、クエリ操作のデフォルトの 1 秒あたりの最大クエリ数 (QPS) を確認できます。QPS は購入内容に基づいており、1 QPS、5 QPS、および 10 QPS がサポートされています。

SDK バージョンに関する注意

Image Search SDK は V3.1.1 にアップグレードされ、複数の主体の識別および類似度スコアの特徴がサポートされています。詳細については、「Java SDK」を参照してください。

今すぐお試しください

この API を OpenAPI Explorer でお試しください。手作業による署名は必要ありません。呼び出しに成功すると、入力したパラメーターに基づき、資格情報が組み込まれた SDK コードが自動的に生成されます。このコードをダウンロードしてローカルで使用できます。

テスト

RAM 認証

下表に、この API を呼び出すために必要な認証情報を示します。認証情報は、RAM (Resource Access Management) ポリシーを使用して定義できます。以下で各列名について説明します。

  • アクション:特定のリソースに対して実行可能な操作。ポリシー構文ではAction要素として指定します。

  • API:アクションを具体的に実行するための API。

  • アクセスレベル:各 API に対して事前定義されているアクセスの種類。有効な値:create、list、get、update、delete。

  • リソースタイプ:アクションが作用するリソースの種類。リソースレベルでの権限をサポートするかどうかを示すことができます。ポリシーの有効性を確保するため、アクションの対象として適切なリソースを指定してください。

    • リソースレベルの権限を持つ API の場合、必要なリソースタイプはアスタリスク (*) でマークされます。ポリシーのResource要素で対応する ARN を指定してください。

    • リソースレベルの権限を持たない API の場合、「すべてのリソース」と表示され、ポリシーのResource要素でアスタリスク (*) でマークされます。

  • 条件キー:サービスによって定義された条件のキー。このキーにより、きめ細やかなアクセス制御が可能になります。この制御は、アクション単体に適用することも、特定のリソースに対するアクションに適用することもできます。Alibaba Cloud は、サービス固有の条件キーに加えて、すべての RAM 統合サービスに適用可能な一連の共通条件キーを提供しています。

  • 依存アクション:ある特定のアクションを実行するために、前提として実行が必要となる他のアクション。依存アクションの権限も RAM ユーザーまたは RAM ロールに付与する必要があります。

アクション

アクセスレベル

リソースタイプ

条件キー

依存アクション

imagesearch:CheckImageExists

get

*All Resource

*

なし なし

リクエスト構文

POST  HTTP/1.1

リクエストパラメーター

パラメーター

型

必須 / 任意

説明

例

InstanceName

string

必須

Image Search インスタンスの名前。名前の長さは最大 20 文字です。 Image Search インスタンスを購入済みの場合は、Image Search コンソール にログインして、インスタンス名を確認できます。 Image Search インスタンスを購入していない場合は、「サービスの有効化」および「インスタンスの作成」を参照してください。

説明

インスタンス名はインスタンス ID とは異なります。両者を必ず区別してください。

demoinstance1

ProductId

string

必須

プロダクトの ID。

2092061_1

PicName

string

必須

イメージ名。

2092061_1

レスポンスフィールド

フィールド

型

説明

例

object

応答。

Msg

string

エラーメッセージ。

success

RequestId

string

リクエストの ID。

B3137727-7D6E-488C-BA21-0E034C38A879

Auctions

object

返されたすべてのプロダクトの説明。

ProductId

string

プロダクトの ID。

2092061_1

PicName

string

イメージ名。

2092061_1.jpg

CategoryId

integer

イメージのカテゴリ。

88888888

CustomContent

string

カスタムコンテンツ。

zidingyi

IntAttr

integer

整数の属性。

2

IntAttr2

integer

整数の属性。

2

StrAttr

string

文字列の属性。

test

StrAttr2

string

文字列の属性。

test

StrAttr3

string

文字列の属性。

test

StrAttr4

string

文字列の属性。

test

IntAttr3

integer

整数の属性。

2

IntAttr4

integer

整数の属性。

2

Code

integer

エラーコード。有効な値:

  • 0: 成功。

  • 0 以外: 失敗。

0

Success

boolean

リクエストが成功したかどうかを示します。

true

Exists

boolean

イメージが存在するかどうかを示します。

true

例

成功レスポンス

JSONJSON

{
  "Msg": "success",
  "RequestId": "B3137727-7D6E-488C-BA21-0E034C38A879",
  "Auctions": {
    "ProductId": "2092061_1",
    "PicName": "2092061_1.jpg",
    "CategoryId": 88888888,
    "CustomContent": "zidingyi",
    "IntAttr": 2,
    "IntAttr2": 2,
    "StrAttr": "test",
    "StrAttr2": "test",
    "StrAttr3": "test",
    "StrAttr4": "test",
    "IntAttr3": 2,
    "IntAttr4": 2
  },
  "Code": 0,
  "Success": true,
  "Exists": true
}

エラーコード

HTTP ステータスコード

エラーコード

エラーメッセージ

説明

400 BadRequest The request has invalid parameters.
400 InstanceStatusError Your instance is unavailable.
400 TimeoutForTransferImage Timeout after 5 seconds waiting for images transfer to complete.
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.
400 InvalidPicList The specified pic_list parameter is invalid.
400 NoSpecifiedPic he 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.
400 OverflowMaxResultNum The specified number of total results exceeds the maximum of 500.
400 OverflowMaxReturnNum The specified number of results for each request exceeds the maximum of 100.
400 InvalidStartParameter The specified parameter start is inavlid.
400 InvalidNumParameter The specified parameter num 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.
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 2 * 1024 * 1024.
400 InvalidStrAttr4 The specified parameter StrAttr4 is not valid.
400 InvalidStrAttr3 The specified parameter StrAttr3 is not valid.
400 InvalidStrAttr2 The specified parameter StrAttr2 is not valid.
400 InvalidIntAttr4 The specified parameter IntAttr4 is not valid.
400 InvalidIntAttr3 The specified parameter IntAttr3 is not valid.
400 InvalidIntAttr2 The specified parameter IntAttr2 is not valid.
400 UnsupportedOperationType The specified action is not supported.
400 UnsupportedInstanceType The instance type 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.

完全なリストについては、「エラーコード」をご参照ください。

変更履歴

完全なリストについては、「変更履歴」をご参照ください。