Get Agent assets
Updated at:
Count Agents and their mounted resources by business space. Agent-centric: each value is the deduplicated count of resources mounted on Agents.
Prerequisites
Configure the endpoint and authentication first. See API overview and authentication.
Endpoint
GET /asset_summary
Count Agents and their mounted resources by business space. No input parameters. Agent-centric: each value is the deduplicated count of resources mounted on Agents.
Request example
curl -X GET "$BASE_URL/asset_summary" \
-H "Authorization: Bearer $BAILIAN_API_KEY"
BASE_URL is https://{workspace_id}.cn-beijing.maas.aliyuncs.com/api/v1/agentstudio/security, and BAILIAN_API_KEY is your Alibaba Cloud Bailian API Key.
Response body
| Field | Type | Description |
|---|---|---|
agent_count | integer | Total number of Agents (Managed Agent + Agent 1.0/2.0) |
model | integer | Number of mounted models (deduplicated) |
tool | integer | Number of mounted MCP tools (deduplicated) |
skill | integer | Number of mounted skills (deduplicated, Managed Agent only) |
knowledge_base | integer | Number of mounted knowledge bases (deduplicated, Agent 1.0/2.0 only) |
memory | integer | Number of mounted memory bases (deduplicated, Agent 1.0/2.0 only) |
channel | integer | Number of publishing channels (excluding deleted and expired) |
network | integer | Number of web search types (deduplicated by model, only counted when enable_web_search=true) |
identity | integer | Number of persona types (deduplicated by name) |
NoteFields with no available data return null instead of 0.
Response example
{
"success": true,
"data": {
"agent_count": 42,
"model": 7,
"tool": 13,
"skill": 5,
"knowledge_base": 3,
"memory": 2,
"channel": 8,
"network": 2,
"identity": 4
}
}
Is this page helpful?