- Überblick
- UiPath-CLI
- Azure DevOps-Erweiterung
- Jenkins-Plugin
Prerequisites:
-
Erstellen Sie eine CSV-Datei, die die Assets enthält, die Sie im Orchestrator bereitstellen möchten.
Die CSV-Datei muss die folgenden drei Spalten enthalten:
name,type,valueunddescription. -
Führen Sie die CLI-Datei
exe(für Windows) oderdll(für Linux) aus. -
Add the required Orchestrator API access application scopes.
Weitere Informationen zur CSV-Datei finden Sie im folgenden Beispiel.
| name | Typ | Wert | Beschreibung |
|---|---|---|---|
| asset_1_name | text | „Ich habe einen Kommentar“ | asset_1_description |
| asset_2_name | Integer | 1 | asset_2_description |
| asset_3_name | Bool | false | asset_3_description |
| asset_4_name | Anmeldeinformationen | username:password | asset_4_description |
Führen Sie die folgenden Schritte aus, um Assets im Orchestrator bereitzustellen:
-
Führen Sie die
asset-Aufgabe mituipcli assetaus. Sie können eine Liste der verfügbaren Unteraufgaben anzeigen. -
Geben Sie die erforderlichen Parameter an und führen Sie die Unteraufgabe
deployaus.Siehe die Liste der Parameter unten.
Parameter Beschreibung -u, or--username(Required if you use Basic Authentication, through a username and a password)Der Benutzername, der für die Authentifizierung bei Orchestrator verwendet wird. Sie müssen es mit dem entsprechenden Kennwort koppeln.
-p, or--password(Required if you use Basic Authentication, through a username and a password)Das Kennwort, das für die Authentifizierung beim Orchestrator verwendet wird. Sie müssen es mit dem entsprechenden Benutzernamen koppeln.
-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.
-Aoder--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.
-ooder--organizationUnitDer Name des Orchestrator-Ordners (Organisationseinheit).
Um Unterordner einzugeben, geben Sie sowohl den Namen des übergeordneten Ordners als auch den Namen des Unterordners ein. Zum Beispiel
AccountingTeam\TeamJohn.-loder--languageDie Sprache, die in der Orchestrator-Benutzeroberfläche verwendet wird.
-yoder--disableTelemetryDeaktivieren der Telemetriedaten.
--traceLevelZeigt die Ablaufverfolgung der Ereignisse an.
--identityUrl(Required only for PaaS deployments)Die URL Ihres Identitätsservers.
--helpZeigt die Parameter und Beispiele für diesen Befehl an.
--versionZeigt Versionsinformationen an.
Assets File (pos. 0)(Required)Der Name der CSV-Datei, die die Assets enthält, die Sie löschen möchten. Orchestrator URL (pos.1)(Required)Die URL der Orchestrator-Instanz. Orchestrator Tenant (pos.2)- (Required) for SaaP deployments.
- (Optional) for PaaS deployments.
Der Mandant der Orchestrator-Instanz, in der Sie Ihre Assets verwalten möchten.
Verwendung:
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>]
Beispiele:
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".