- 概要
- UiPath CLI
- Azure DevOps 拡張機能
- Jenkins プラグイン
Orchestrator からアセットを削除する
前提条件:
- Orchestrator 内にアセットを作成します。
- 削除するアセットを含む CSV ファイルを作成します。CSV ファイルには、
name、type、valueの 3 つの列が必要です。type列とvalue列の下のデータ セルは空のままで構いません。 - CLI の
exeファイル (Windows の場合) またはdllファイル (Linux の場合) を実行します。 - Add the required Orchestrator API access application scopes.
CSV ファイルについて詳しくは、以下の表の例をご覧ください。
| name | type | value |
|---|---|---|
| asset1_name | N/A | N/A |
| asset2_name | Bool | true |
| asset3_name | integer | N/A |
| asset4_name | Credential | username:password |
Orchestrator からアセットを削除するには、次の手順に従います。
-
uipcli assetを使用してassetタスクを実行します。利用可能なサブタスクのリストが表示されます。 -
必要なパラメーターを指定し、
deleteサブタスクを実行します。以下のパラメーターのリストをご覧ください。
パラメーター 説明 -u,または--username(ユーザー名とパスワードによる基本認証を使用する場合は必須)Orchestrator への認証に使用するユーザー名です。対応するパスワードと組み合わせて使用する必要があります。 -pまたは--password(ユーザー名とパスワードによる基本認証を使用する場合は必須)Orchestrator への認証に使用するパスワードです。対応するユーザー名と組み合わせて使用する必要があります。 -t, or--token(Required if you use token-based authentication)Orchestrator への認証に使用する OAuth2 更新トークンです。アカウント名およびクライアント ID と組み合わせて使用する必要があります。 -a, or--accountName(Required if you use token-based authentication)Orchestrator Cloud RPA のアカウント名です。OAuth2 更新トークンおよびクライアント ID と組み合わせて使用する必要があります。 -Aまたは--accountForAppThe Orchestrator CloudRPA account name(organization name). You must pair it with the Application ID, Application Secret, and Application scope for external application.
-I, or--applicationId(Required if you use external application authentication)外部アプリケーション ID です。アプリケーション アカウント、アプリケーション シークレット、アプリケーション スコープと組み合わせて使用する必要があります。
-S, or--applicationSecret(Required if you use external application authentication)外部アプリケーション シークレットです。アプリケーション アカウント、アプリケーション ID、アプリケーション スコープと組み合わせて使用する必要があります。
--applicationScope(Required if you use external application authentication)アプリケーション スコープを単一のスペースで区切って列挙したリストです。外部アプリケーションのアプリケーション アカウント、アプリケーション ID、アプリケーション シークレットと組み合わせて使用する必要があります。
-oまたは--organizationUnitOrchestrator フォルダー (組織単位) の名前です。
サブフォルダーを入力するには、親フォルダーの名前とサブフォルダーの名前の両方を入力してください。例:
AccountingTeam\TeamJohn-lまたは--languageOrchestrator のユーザー インターフェイスで使用する言語です。
-yまたは--disableTelemetryテレメトリ データを無効化します。
--traceLevelイベントのトレースを表示します。
--identityUrl(PaaS デプロイの場合のみ必須)Identity Server の URL です。
--helpこのコマンドのパラメーターと例を表示します。
--versionバージョン情報を表示します。
Assets File (pos. 0)(必須)削除するアセットが含まれる CSV ファイルの名前です。 Orchestrator URL (pos.1)(必須)Orchestrator インスタンスの URL です。 Orchestrator Tenant (pos.2)- (必須) SaaS デプロイの場合。
- (任意) PaaS デプロイの場合。
アセットを管理する Orchestrator インスタンスのテナントです。
使用状況:
asset delete <assets_file> <orchestrator_url> <orchestrator_tenant> [-u <orchestrator_user> -p <orchestrator_pass>] [-t <auth_token> -a <account_name>] [-A <account_for_app> -I <application_id> -S <application_secret> --applicationScope] [-o <folder>] [-l <language>]
asset delete <assets_file> <orchestrator_url> <orchestrator_tenant> [-u <orchestrator_user> -p <orchestrator_pass>] [-t <auth_token> -a <account_name>] [-A <account_for_app> -I <application_id> -S <application_secret> --applicationScope] [-o <folder>] [-l <language>]
例:
asset delete assets_file.csv "https://uipath-orchestrator.myorg.com" default -u admin -p 123456 -l en-USasset delete assets_file.csv "https://uipath-orchestrator.myorg.com" default -u admin -p 123456 -o OurOrganizationasset delete assets_file.csv "https://uipath-orchestrator.myorg.com" default -t a7da29a2c93a717110a82 -a myAccountasset delete assets_file.csv "https://uipath-orchestrator.myorg.com" default -A accountForExternalApp -I myExternalAppId -S myExternalAppSecret --applicationScope "OR.Folders.Read OR.Settings.Read"