orchestrator
2025.10
false
- 入门指南
- 身份验证
- Swagger 定义
- Orchestrator API
- 平台管理 API

Orchestrator API 指南
上次更新日期 2025年10月27日
要访问 Orchestrator API Swagger,请将
/swagger/index.html 附加到 Orchestrator URL。例如 https://{yourDomain}/swagger/index.html。
您在 Swagger 中看到的 API 直接取决于您使用的 Orchestrator 实例。要轻松地直接在 Swagger 中发出请求,请在另一个选项卡中登录 Orchestrator。
要通过 Swagger 用户界面为 Orchestrator 服务授权 API 调用,请执行以下步骤:
-
在 Orchestrator API 页面的右上角找到“授权”按钮。如果锁是打开的,则表示您未经授权。
Figure 1. Authorize button -
Select Authorize. The Available authorizations window is displayed.
注意: 我们目前支持一种称为 OAuth2 的授权方案。Figure 2. Available authorizations - 系统会预先选择所有作用域,以便您可以在 Orchestrator API 中试验所有端点。 如果要限制对某些 API 的访问,请清除它们。
- Select Authorize. A new window is displayed confirming you have been authorized.
- Once done, select Close or X to close the Available authorizations window. The Authorize button shows an closed lock meaning you are authorized.
当访问令牌过期时,您会收到
401: You are not authenticated! 响应。 您的请求仍存在不记名授权标头,但访问令牌已过期。 发生这种情况时,您需要使过期的令牌失效并生成新的访问令牌: