创建智能体运行时的访问端点
接口说明
为指定的智能体运行时创建新的端点,用于外部访问和调用。端点是智能体运行时对外提供服务的入口。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求语法
POST /2025-09-10/agents/runtimes/{agentRuntimeId}/endpoints HTTP/1.1
路径参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| agentRuntimeId |
string |
是 |
代理运行时 ID |
12345678-1234-1234-1234-123456789abc |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| body | CreateAgentRuntimeEndpointInput |
是 |
创建代理运行时端点输入 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
AgentRuntimeEndpointResult |
返回创建结构体的结果 |
示例
正常返回示例
JSON格式
{
"code": "",
"requestId": "",
"data": {
"agentRuntimeId": "ar-1234567890abcdef",
"agentRuntimeEndpointId": "are-1234567890abcdef",
"agentRuntimeEndpointArn": "acs:agentrun:cn-hangzhou:1760720386195983:runtime-endpoints/e56d483c-db80-4116-9ec4-25f16f5facfd",
"agentRuntimeEndpointName": "production-endpoint",
"description": "Production endpoint for customer service agent",
"status": "ACTIVE",
"statusReason": "Endpoint is active and ready",
"targetVersion": "LATEST",
"routingConfiguration": {
"versionWeights": [
{
"version": "",
"weight": 0
}
]
},
"endpointPublicUrl": "https://ar-1234567890abcdef.cn-hangzhou.agentrun.aliyuncs.com",
"disablePublicNetworkAccess": true,
"scalingStatus": {
"minInstances": 1,
"targetInstances": 2,
"currentInstances": 2,
"scheduledPolicies": [
{
"name": "scale-up-morning",
"startTime": "2024-01-01T08:00:00",
"endTime": "2024-01-01T08:00:00",
"scheduleExpression": "cron(0 8 * * ? *)",
"timeZone": "Asia/Shanghai",
"target": 20
}
],
"currentError": "error"
}
}
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。
该文章对您有帮助吗?