orchestrator
2022.4
false
- 入门指南
- 身份验证- 身份验证方法
- 外部应用程序 (OAuth)
- ROPC(不推荐)
 
- Swagger 定义
- Orchestrator API
- 平台管理 API
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。
新发布内容的本地化可能需要 1-2 周的时间才能完成。

Orchestrator API 指南
上次更新日期 2025年2月13日
重要提示: 
               
               
            
            
            只有主机管理员才能使用 
               
               /api/account/authenticate/ 端点进行身份验证。
               企业用户应使用外部应用程序进行身份验证。
要检索访问令牌,请使用以下负载向 
            /api/account/authenticate 端点发出 POST 请求:
            {
    "TenancyName": "{account_tenant_name}",
    "UsernameOrEmailAddress": "{account_username}",
    "Password": "{account_password}"
}{
    "TenancyName": "{account_tenant_name}",
    "UsernameOrEmailAddress": "{account_username}",
    "Password": "{account_password}"
}其中:
- {account_tenant_name}- 是 Automation Suite 帐户中租户的名称
- {account_username}- 是 Automation Suite 帐户的用户名
- {account_password}- 是用于登录 Automation Suite 帐户的密码
提示: 
               
            
            要查找 Orchestrator 实例的“租户名称”值,请向 
               
            /odata/Users/UiPath.Server.Configuration.OData.GetCurrentUser 发出 GET 请求。
               响应正文返回持有者令牌,您的应用程序使用该令牌来授权进一步的 API 调用。 因此,在 API 调用的“授权”标头中,附加 
            Bearer xxxx 并将 xxxx 替换为 {access_token} 值(例如 Authorization: Bearer eyJhbG ... LnVxjA)。
            {
    "result": "{access_token}",
    "targetUrl": null,
    "success": true,
    "error": null,
    "unAuthorizedRequest": false,
    "__abp": true
}{
    "result": "{access_token}",
    "targetUrl": null,
    "success": true,
    "error": null,
    "unAuthorizedRequest": false,
    "__abp": true
}重要提示: 
               
            
         - 默认情况下,访问令牌的有效期为 30 分钟。 要生成新端点,请再次调用 api/account/authenticate端点。