跳转到内容
EN

列出授权

GET /application/v1/workers/{worker_id}/grants

List resources this Worker’s platform token may access.

支持状态: supported

参数

名称位置类型必填说明
worker_idpathstringtrueWorker ID (wkr_…).

响应

HTTP 200

Success

application/json

名称 类型 说明
[].id string Grant ID, prefixed grt_.
[].worker_id string Owning Worker.
[].resource object Granted resource.
[].resource.type string Resource type.
[].resource.id string ID of the granted resource; * for models and whole-service types.
[].alias string Optional name, unique within this Worker. Conflicts return GRANT_ALIAS_CONFLICT (409).
[].access string Access level; models accepts read only.
[].created_on string When the grant was created.