cicd-integrations
2024.10
true
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。
UiPath logo, featuring letters U and I in white

CI/CD 集成用户指南

上次更新日期 2025年7月4日

Deleting assets from Orchestrator

先决条件

  • 在 Orchestrator 中创建资产。
  • 创建一个 CSV 文件,其中包含要删除的资产。 CSV 文件必须包含以下列三列: nametypevaluetypevalue列下的数据单元格可以留空。
  • 运行 CLI exe (适用于 Windows)或dll (适用于 Linux)文件。
  • Add the required Orchestrator API access application scopes.

有关 CSV 文件的更多信息,请查看下表中的示例:

name

类型

asset1_name

N/AN/A

asset2_name

Bool

true

asset3_name

整数

N/A

asset4_name

凭据

username:password

要从 Orchestrator 中删除资产,请执行以下步骤:

  1. 使用uipcli asset运行asset任务。您可以注意可用子任务的列表。
  2. 指定所需参数并运行delete子任务。

    下表描述了必需参数。

    参数

    描述

    -u,--username (如果使用 基本身份验证,则为必需,通过用户名和密码) 用于向 Orchestrator 进行身份验证的用户名。 您必须将其与相应的密码配对。
    -p--password(如果您通过用户名和密码使用基本身份验证 用于对 Orchestrator 进行身份验证的密码。您必须将其与相应的用户名配对。
    -t--token (如果使用 基于令牌的身份验证,则为必需) 用于对 Orchestrator 进行身份验证的 OAuth2 刷新令牌 。 您必须将其与 Account NameClient ID配对。
    -a--accountName (如果使用 基于令牌的身份验证,则为必需) Orchestrator CloudRPA 帐户名称。 您必须将其与 OAuth2 刷新令牌客户端 ID配对。
    -A--accountForApp

    Orchestrator CloudRPA 帐户名称(组织名称)。您必须将其与外部应用程序的应用程序 ID应用程序密码应用程序作用域配对。

    -I--applicationId (如果使用 外部应用程序身份验证,则为必需)

    外部应用程序 ID。您必须将其与“应用程序帐户”、“应用程序密码”和“应用程序作用域”配对。

    -S--applicationSecret (如果使用 外部应用程序身份验证,则为必需)

    外部应用程序密码。您必须将其与“应用程序帐户”、“应用程序 ID”和“应用程序作用域”配对。

    --applicationScope(如果使用外部应用程序身份验证,则为必填项

    应用程序作用域列表,以单个空格分隔。您必须将其与外部应用程序的应用程序账号应用程序 ID应用程序密码配对

    -o--organizationUnit

    Orchestrator 文件夹(组织单元)的名称。

    要输入子文件夹,请确保同时输入父文件夹的名称和子文件夹的名称。例如,AccountingTeam\TeamJohn
    -l--language

    Orchestrator 用户界面中使用的语言。

    -y--disableTelemetry

    禁用遥测数据。

    --traceLevel

    显示事件的跟踪。

    --identityUrl (Required for PaaS or MSI deployments)

    身份服务器的 URL。

    --help

    显示此命令的参数和示例。

    --version

    显示版本信息。

    Assets File (pos. 0)必填项包含要删除的资产的 CSV 文件的名称。
    Orchestrator URL (pos.1)必填项Orchestrator 实例的 URL。

    Orchestrator Tenant (pos.2)

    • 必需)对于 SaaP 部署。
    • 可选)适用于 PaaS 部署。
    要管理资产的 Orchestrator 实例的租户。

用法:

uipcli asset delete <assets_file> <orchestrator_url> <orchestrator_tenant> [-u <orchestrator_user> -p <orchestrator_pass>] [-t <auth_token> -a <account_name>] [-A <organization_name> -I <application_id> -S <application_secret> --applicationScope <application_scope>] [-o <folder_name>] [-l <language>] [--traceLevel <None|Critical|Error|Warning|Information|Verbose>] [--identityUrl <identity_url>] uipcli asset delete <assets_file> <orchestrator_url> <orchestrator_tenant> [-u <orchestrator_user> -p <orchestrator_pass>] [-t <auth_token> -a <account_name>] [-A <organization_name> -I <application_id> -S <application_secret> --applicationScope <application_scope>] [-o <folder_name>] [-l <language>] [--traceLevel <None|Critical|Error|Warning|Information|Verbose>] [--identityUrl <identity_url>]

最小命令示例

  • UiPath CLI 资产删除“C:\userprofile\assets.csv” “https://orch-23-10-paas.cloudapp.azure.com/” "TenantName" -u "orchestratorUsername" -p "********" -o "FolderName"--traceLevel "Information"
  • UiPath CLI 资产删除“C:\userprofile\assets.csv” “https://orch-23-10-paas.cloudapp.azure.com/” TenantName -I "76000552-3e4f-4590-9317-cdb420001f1d" -S "********"--applicationScope "OR.Folders OR.BackgroundTasks OR.TestSets OR.TestSetExecutions OR.TestSetSchedules OR.Settings.Read OR.Robots.Read OR.Machines.Read OR.Execution OR.Assets OR.Users.Read OR.Jobs OR.Monitoring" --identityUrl "https://orch-23-10-paas.cloudapp.azure.com/身份" -o "FolderName" --traceLevel "Information"
  • UiPath CLI 资产删除“C:\userprofile\assets.csv” "https://automation-suite.base.url.com/" TenantName -A "organizationName" -I "3f6239b9-e0e8-465e-a429-d9ffd1d9e57a" -S "********" --applicationScope "OR.Folders OR.BackgroundTasks OR.TestSets OR.TestSetExecutions OR.TestSetSchedules OR.Settings.Read OR.Robots.Read OR.Machines.Read OR.Execution OR.Assets OR.Users.Read OR.Jobs OR.Monitoring" -o "FolderName" --traceLevel "Information"
  • UiPath CLI 资产删除“C:\userprofile\assets.csv” "https://cloud.uipath.com/" TenantName -A "organizationName" -I "becc663c-8f1e-409a-a75f-c00330d80bc8" -S "********" --applicationScope "OR.Folders OR.BackgroundTasks OR.TestSets OR.TestSetExecutions OR.TestSetSchedules OR.Settings.Read OR.Robots.Read OR.Machines.Read OR.Execution OR.Assets OR.Users.Read OR.Jobs OR.Monitoring" -o "FolderName" --traceLevel "Information"

此页面有帮助吗?

获取您需要的帮助
了解 RPA - 自动化课程
UiPath Community 论坛
Uipath Logo
信任与安全
© 2005-2025 UiPath。保留所有权利。