- スタート アップ ガイド
- 認証
- 範囲と権限
- プラットフォーム管理 API
ROPC (非推奨)
Test Cloud (プライベート) 向けの、ROPC (非推奨) の API リファレンス。エンドポイント、要求フィールド、応答の詳細が含まれます。
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.
アクセス トークンを取得するには、次のペイロードを使用して /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 インスタンスの TenancyName の値を見つけるには、
/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エンドポイントの呼び出しを行います。 - お使いの Automation Suite 組織が Azure Active Directory モデルを使用している場合は、 Automation Suite に外部アプリケーションを登録 して外部アプリを使用する必要があります。