- 概述
- UiPath CLI
- Azure DevOps 扩展程序
- Jenkins 插件
将资产部署到 Orchestrator
Prerequisites:
-
创建一个 CSV 文件,其中包含要部署到 Orchestrator 的资产。
CSV 文件必须包含以下列三列:
name、type、value和description。 -
运行 CLI
exe(适用于 Windows)或dll(适用于 Linux)文件。 -
Add the required Orchestrator API access application scopes.
有关 CSV 文件的详细信息,请参阅下面的示例。
| name | 类型 | 值 | 描述 |
|---|---|---|---|
| asset_1_name | text | “我有意见” | asset_1_description |
| asset_2_name | 整数 | 1 | asset_2_description |
| asset_3_name | Bool | false | asset_3_description |
| asset_4_name | 凭据 | username:password | asset_4_description |
要将资产部署到 Orchestrator,请执行以下步骤:
-
使用
uipcli asset运行asset任务。 您可以查看可用子任务的列表。 -
指定所需参数并运行
deploy子任务。请参阅下面的参数列表。
参数 描述 -u, or--username(Required if you use Basic Authentication, through a username and a password)用于向 Orchestrator 进行身份验证的用户名。 您必须将其与相应的密码配对。
-p, or--password(Required if you use Basic Authentication, through a username and a password)用于对 Orchestrator 进行身份验证的密码。您必须将其与相应的用户名配对。
-t, or--token(Required if you use token-based authentication)The OAuth2 refresh token used for authenticating to Orchestrator. You must pair it with the Account Name and Client ID.
-a, or--accountName(Required if you use token-based authentication)The Orchestrator CloudRPA account name. You must pair it with the OAuth2 refresh token and Client 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)The external Application Id. You must pair it with the Application Account, Application Secret, and Application scope.
-S, or--applicationSecret(Required if you use external application authentication)The external Application Secret. You must pair it with the Application Account, Application ID, and Application scope.
--applicationScope(Required if you use external application authentication)The list of application scopes, separated by single spaces. You must pair it with the Application Account, Application ID, and Application Secret for external application.
-o或--organizationUnitOrchestrator 文件夹(组织单元)的名称。
要输入子文件夹,请确保同时输入父文件夹的名称和子文件夹的名称。例如,
AccountingTeam\TeamJohn。-l或--languageOrchestrator 用户界面中使用的语言。
-y或--disableTelemetry禁用遥测数据。
--traceLevel显示事件的跟踪。
--identityUrl(Required only for PaaS deployments)身份服务器的 URL。
--help显示此命令的参数和示例。
--version显示版本信息。
Assets File (pos. 0)(Required)包含要删除的资产的 CSV 文件的名称。 Orchestrator URL (pos.1)(Required)Orchestrator 实例的 URL。 Orchestrator Tenant (pos.2)- (Required) for SaaP deployments.
- (Optional) for PaaS deployments.
要在其中管理资产的 Orchestrator 实例的租户。
用法:
asset deploy <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 deploy <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 deploy assets_file.csv "https://uipath-orchestrator.myorg.com" default -u admin -p 123456 -l en-US。asset deploy assets_file.csv "https://uipath-orchestrator.myorg.com" default -u admin -p 123456 -o OurOrganization。asset deploy assets_file.csv "https://uipath-orchestrator.myorg.com" default -t a7da29a2c93a717110a82 -a myAccount。asset delete assets_file.csv "https://uipath-orchestrator.myorg.com" default -A accountForExternalApp -I myExternalAppId -S myExternalAppSecret --applicationScope "OR.Folders.Read OR.Settings.Read"。