Skip to main content

Identity の Memory Store マウント一覧

Identity と Template の Memory Store マウントを一覧取得します。

(identity, template) の有効な Memory Store マウントをページ単位で一覧取得します。既存のシステム管理のデフォルト Store も含みます。 デフォルト Store は常に先頭です。明示的なマウントはマウント時刻、Store ID の昇順で続き、同じ Store は一度だけ返されます。access は各マウントの現在の権限です。 ページングパラメータを省略すると先頭の 20 件を返します。has_more とカーソルでページを移動できます。

パス

GET /api/v1/forward/identities/{identity_id}/templates/{template_id}/memory_stores

ヘッダー

ヘッダー必須説明
AuthorizationはいBearer <PAT, admin SAT, or SAT for this Identity>
Identity レベルの Service Account Token は自身の Identity のみ照会できます。別の Identity を照会すると 403 が返されます。

パスパラメータ

パラメータ型必須説明
identity_idstringはいIdentity ID(idn_...)。
template_idstringはいTemplate ID(tmpl_...)。

クエリパラメータ

パラメータ型必須説明
limitintegerいいえ1 ページの最大件数。1~100、デフォルトは 20。
after_idstringいいえ次ページのカーソル。前ページの last_id(Store ID)を指定します。
before_idstringいいえ前ページのカーソル。現在のページの first_id(Store ID)を指定します。after_id とは同時に指定できません。

リクエスト例

curl -X GET "https://api.qoder.com/api/v1/forward/identities/idn_63ee28747a35cff93771c491/templates/tmpl_eb3377fb74ad413e17b3d755/memory_stores" \
  -H "Authorization: Bearer $QODER_ACCESS_TOKEN"

レスポンス例

HTTP 200 OK
{
  "data": [
    {
      "memory_store_id": "memstore_00mc7mtpughs0h0b7vll",
      "identity_id": "idn_63ee28747a35cff93771c491",
      "template_id": "tmpl_eb3377fb74ad413e17b3d755",
      "access": "read_write",
      "system_managed": true,
      "name": "System Default Memory",
      "status": "active",
      "entry_count": 3,
      "created_at": "2026-08-14T09:50:14Z"
    },
    {
      "memory_store_id": "memstore_00mc7mukn7lkxr454tjd",
      "identity_id": "idn_63ee28747a35cff93771c491",
      "template_id": "tmpl_eb3377fb74ad413e17b3d755",
      "access": "read_only",
      "system_managed": false,
      "name": "team-a",
      "status": "active",
      "entry_count": 12,
      "created_at": "2026-08-14T10:00:00Z"
    }
  ],
  "first_id": "memstore_00mc7mtpughs0h0b7vll",
  "last_id": "memstore_00mc7mukn7lkxr454tjd",
  "has_more": false
}

空リストのレスポンス

有効なマウントがない場合は空リストを返します。
{
  "data": [],
  "first_id": null,
  "last_id": null,
  "has_more": false
}

レスポンスフィールド

フィールド型説明
dataarrayMemory Store マウントオブジェクトの配列。
first_idstring/null現在のページの先頭マウントの memory_store_id。
last_idstring/null現在のページの末尾マウントの memory_store_id。
has_moreboolean指定したページング方向にさらにレコードがあるかどうか。

エラー

HTTPType発生条件
400invalid_request_errorパスまたはページングパラメータが無効、または after_id と before_id が同時に指定されています。
401authentication_error認証トークンがないか無効です。
403permission_errorIdentity レベルの SAT が別の Identity を照会しようとしました。
404not_found_errorIdentity または Template が存在しないか参照できない、またはカーソルが現在のスコープの有効なマウントではありません。
500/502/503api_errorForward または依存サービスでエラーが発生しました。