UiPath Documentation
private-test-cloud
2.2610
true
Private Test Cloud-API-Leitfaden

ROPC (nicht empfohlen)

ROPC-API-Referenz (nicht empfohlen) für Private Test Cloud, einschließlich Endpunkten, Anforderungsfeldern und Antwortdetails.

Wichtig:

We support authentication through (Resource Owner Password Credentials) ROPC for backwards compatibility for Orchestrator instances that have been migrated from standalone to Automation Suite deployments. Only host administrators should authenticate using the /api/account/authenticate/ endpoint. Business users should authenticate using external applications.

Um das Zugriffstoken abzurufen, stellen Sie eine POST-Anforderung an den /api/account/authenticate -Endpunkt mit der folgenden Nutzlast:

{
    "TenancyName": "{account_tenant_name}",
    "UsernameOrEmailAddress": "{account_username}",
    "Password": "{account_password}"
}
{
    "TenancyName": "{account_tenant_name}",
    "UsernameOrEmailAddress": "{account_username}",
    "Password": "{account_password}"
}

Wo:

  • {account_tenant_name} – ist der Name des Mandanten in Ihrem Automation Suite-Konto
  • {account_username} – ist der Benutzername Ihres Automation Suite-Kontos
  • {account_password} – ist das Kennwort, mit dem Sie sich bei Ihrem Automation Suite-Konto anmelden
    Tipp:

    Um den Wert TenancyName Ihrer Orchestrator-Instanz zu finden, stellen Sie eine GET-Anforderung an /odata/Users/UiPath.Server.Configuration.OData.GetCurrentUser.

Der Antworttext gibt das Bearer-Token zurück, das von Ihrer Anwendung verwendet wird, um weitere API-Aufrufe zu autorisieren. Fügen Sie daher im Autorisierungsheader eines API-Aufrufs Bearer xxxx an und ersetzen Sie xxxx durch den Wert {access_token} (z. B. 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
}
Wichtig:

War diese Seite hilfreich?

Verbinden

Benötigen Sie Hilfe? Support(opens in new window)

Möchten Sie lernen? UiPath Academy(opens in new window)

Haben Sie Fragen? UiPath-Forum(opens in new window)

Auf dem neuesten Stand bleiben