Get Agent assets
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
/asset_summaryCount Agents and their mounted resources by business space. No input parameters. Agent-centric: each value is the deduplicated count of resources mounted on Agents.
Response fields
agent_countintegerTotal number of Agents (Managed Agent + Agent 1.0/2.0)
modelintegerNumber of mounted models (deduplicated)
toolintegerNumber of mounted MCP tools (deduplicated)
skillintegerNumber of mounted skills (deduplicated, Managed Agent only)
knowledge_baseintegerNumber of mounted knowledge bases (deduplicated, Agent 1.0/2.0 only)
memoryintegerNumber of mounted memory bases (deduplicated, Agent 1.0/2.0 only)
channelintegerNumber of publishing channels (excluding deleted and expired)
networkintegerNumber of web search types (deduplicated by model, only counted when enable_web_search=true)
identityintegerNumber of persona types (deduplicated by name)
NoteFields with no available data return null instead of 0.
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 example
{
"success": true,
"data": {
"agent_count": 42,
"model": 7,
"tool": 13,
"skill": 5,
"knowledge_base": 3,
"memory": 2,
"channel": 8,
"network": 2,
"identity": 4
}
}