API リファレンス
参照画像のクエリ
GET
/v1/image-assets/{asset_id}同じアカウントとキー。期限切れのリソースは 410 を返し、未完了のタスクによって参照されている間の削除は 409 を返します。
認証と権限
現在の GloopAPI キーを使用します。利用可能なモデル、機能、権限は、そのカタログとエンドポイントのドキュメントによって異なります。
Authorization: Bearer $GLOOP_API_KEY認証スキーム: BearerAuth
リクエスト
パスパラメータ
asset_idstring必須同じキーでアップロードされた ia_ 画像アセットの ID。
応答とエラー
HTTP 200
参照画像が正常にクエリされました
application/json
- タイプ
- object
- 必須フィールド 説明
idmime_typesize_byteswidthheightexpires_at
file_idstringオプション同じアカウントとキーの管理対象ファイルのパブリック ID。
idstring必須このオブジェクトのパブリック識別子。対応する詳細パスに使用されます。
mime_typestring必須ファイルの MIME タイプを確認しました。
size_bytesinteger必須ファイル サイズ (バイト単位)。
widthinteger必須画像の幅 (ピクセル単位)。
heightinteger必須画像の高さ (ピクセル単位)。
expires_atinteger必須Unix 秒。 0 は有効期限が固定されていないことを意味します。アップロードは管理ファイルに関連付けられます。読み取りには同じアカウントとキーが必要です。
HTTP 400
リクエストフィールドまたはパラメータが無効です。
application/json
- タイプ
- object
- 必須フィールド 説明
error
errorobject必須error 子フィールド (4)
codestringオプションmessagestringオプションtypestringオプションrequest_idstringオプション
HTTP 401
キーが見つからないか、無効であるか、期限切れであるか、取り消されています。
application/json
- タイプ
- object
- 必須フィールド 説明
error
errorobject必須error 子フィールド (4)
codestringオプションmessagestringオプションtypestringオプションrequest_idstringオプション
HTTP 403
IP、アカウント、モデル、またはツールの権限が不十分です。
application/json
- タイプ
- object
- 必須フィールド 説明
error
errorobject必須error 子フィールド (4)
codestringオプションmessagestringオプションtypestringオプションrequest_idstringオプション
HTTP 404
オブジェクト/機能が利用できないか、機能スイッチが無効になっています。
application/json
- タイプ
- object
- 必須フィールド 説明
error
errorobject必須error 子フィールド (4)
codestringオプションmessagestringオプションtypestringオプションrequest_idstringオプション
HTTP 409
べき等/見積もりの競合、オブジェクトの準備ができていないか、まだ参照されています。
application/json
- タイプ
- object
- 必須フィールド 説明
error
errorobject必須error 子フィールド (4)
codestringオプションmessagestringオプションtypestringオプションrequest_idstringオプション
HTTP 410
参照イメージの有効期限が切れたか、削除されました (asset_expired)。
application/json
- タイプ
- object
- 必須フィールド 説明
error
errorobject必須error 子フィールド (4)
codestringオプションmessagestringオプションtypestringオプションrequest_idstringオプション
HTTP 429
リクエスト/キューのレート制限。
application/json
- タイプ
- object
- 必須フィールド 説明
error
errorobject必須error 子フィールド (4)
codestringオプションmessagestringオプションtypestringオプションrequest_idstringオプション
HTTP 500
内部認証またはデータ ストレージのエラー。
application/json
- タイプ
- object
- 必須フィールド 説明
error
errorobject必須error 子フィールド (4)
codestringオプションmessagestringオプションtypestringオプションrequest_idstringオプション
HTTP 503
サービス、価格設定、またはストレージが利用できません。
application/json
- タイプ
- object
- 必須フィールド 説明
error
errorobject必須error 子フィールド (4)
codestringオプションmessagestringオプションtypestringオプションrequest_idstringオプション