- Vue d'ensemble (Overview)
- Interface de ligne de commande UiPath
- Extension Azure DevOps
- Plugin Jenkins
Prerequisites:
-
Créez un fichier CSV qui contient les ressources que vous souhaitez déployer sur Orchestrator.
Le fichier CSV doit comporter les trois colonnes suivantes :
name,type,valueetdescription. -
Exécutez le fichier CLI
exe(pour Windows) oudll(pour Linux). -
Add the required Orchestrator API access application scopes.
Pour plus d'informations sur le fichier CSV, consultez l'exemple ci-dessous.
| name | Type | valeur | Description |
|---|---|---|---|
| asset_1_name | text | "J'ai un commentaire" | asset_1_description |
| asset_2_name | Integer | 1 | asset_2_description |
| asset_3_name | Bool | false | asset_3_description |
| asset_4_name | InformationsIdentification | username:password | asset_4_description |
Pour déployer des ressources sur Orchestrator, procédez comme suit :
-
Exécutez la tâche
assetà l'aide deuipcli asset. Vous pouvez voir une liste des sous-tâches disponibles. -
Spécifiez les paramètres requis et exécutez la sous-tâche
deploy.Voir la liste des paramètres ci-dessous.
Paramètre Description -u, or--username(Required if you use Basic Authentication, through a username and a password)Le nom d'utilisateur utilisé pour l'authentification auprès d'Orchestrator. Vous devez l'associer au mot de passe correspondant.
-p, or--password(Required if you use Basic Authentication, through a username and a password)Le mot de passe utilisé pour l'authentification auprès d'Orchestrator. Vous devez l'associer au nom d'utilisateur correspondant.
-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.
-Aou--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.
-oou--organizationUnitLe nom du dossier Orchestrator (unité d'organisation).
Pour saisir des sous-dossiers, assurez-vous de saisir à la fois le nom du dossier parent et le nom du sous-dossier. Par exemple, utilisez
AccountingTeam\TeamJohn.-lou--languageLa langue utilisée dans l'interface utilisateur d'Orchestrator.
-you--disableTelemetryDésactiver les données de télémétrie
--traceLevelAfficher la trace des événements.
--identityUrl(Required only for PaaS deployments)L'URL de votre serveur d'identité.
--helpAffiche les paramètres et des exemples de cette commande.
--versionAffiche les informations de version.
Assets File (pos. 0)(Required)Le nom du fichier CSV qui contient les ressources que vous souhaitez supprimer. Orchestrator URL (pos.1)(Required)Il s'agit de l'URL de votre Orchestrator. Orchestrator Tenant (pos.2)- (Required) for SaaP deployments.
- (Optional) for PaaS deployments.
Le locataire de l'instance d'Orchestrator, où vous souhaitez exécuter des processus.
Utilisation :
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>]
Exemples :
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".