orchestrator
2022.10
false
重要 :
请注意此内容已使用机器翻译进行了部分本地化。
Orchestrator API 指南
Automation CloudAutomation Cloud Public SectorAutomation SuiteStandalone
Last updated 2024年6月18日

ROPC(不推荐)

重要提示:
只有主机管理员才能使用 /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 端点。

此页面有帮助吗?

获取您需要的帮助
了解 RPA - 自动化课程
UiPath Community 论坛
Uipath Logo White
信任与安全
© 2005-2024 UiPath。保留所有权利。