AnthropicClaude 托管智能体

轮换隧道令牌

轮换一条隧道的连接令牌,旧令牌随即失效。

POST /anthropic/v1/tunnels/{tunnel_id}/rotate_token○ 未支持

请求参数

  • tunnel_idstring必填

    path: 隧道 ID(路径或查询参数)。

  • reasonstring可选

    Optional free-text reason for the rotation, recorded for audit.

返回

501 平台还没有实现这个端点;调用会得到下面这个响应:

平台还没有提供把智能体接入你自有网络的隧道。调用会返回 501(not_implemented_error),不产生副作用,官方 SDK 不会重试。

错误按 Claude Managed Agents 格式返回,参见 错误码

响应

HTTP 200

Successful response

application/json

名称类型说明
idstringStable identifier for the current token value. Changes when the token is rotated.
tunnel_tokenstringThe connector token used to run the tunnel. Treat as a credential.
typestring