UiPath Documentation
uipath-cli
latest
false
UiPath CLI 用户指南
重要 :
请注意,此内容已使用机器翻译进行了本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。

UIP 或资产

"uip 或资产"的语法和选项,用于管理文件夹中的 Orchestrator 资产(文本、布尔值、整数、凭据、密码)。

管理 Orchestrator资产— 自动化在运行时使用的命名配置值(Text、Bool、Integer、Credential、Secret)。大多数操作都是文件夹作用域内的。

有关跨资源约定(身份验证、文件夹作用域、密钥类型、输出信封),请参阅uip or概述。

大纲​

uip or assets list             [--folder-path <path> | --folder-key <key> | --all-folders] [-n <name>] [--type <type>] [-l, --limit <n>] [--offset <n>] [--sort-by <field>] [--all-fields]
uip or assets get              <asset-key> [--all-fields]
uip or assets create           <name> <value> --folder-path <path> | --folder-key <key> [--type <type>] [-s <scope>] [-d <desc>] [--has-default] [--tags <list>] [--credential-store-key <guid>]
uip or assets update           <asset-key> [<value>] [flags as for create]
uip or assets delete           <asset-key> --yes
uip or assets get-folders      <asset-key>
uip or assets share            <asset-key> --folder-path <path> | --folder-key <key>
uip or assets unshare          <asset-key> --folder-path <path> | --folder-key <key>
uip or assets get-asset-value  <asset-key> --folder-path <path> | --folder-key <key> [--executor-key <guid>]
uip or assets list             [--folder-path <path> | --folder-key <key> | --all-folders] [-n <name>] [--type <type>] [-l, --limit <n>] [--offset <n>] [--sort-by <field>] [--all-fields]
uip or assets get              <asset-key> [--all-fields]
uip or assets create           <name> <value> --folder-path <path> | --folder-key <key> [--type <type>] [-s <scope>] [-d <desc>] [--has-default] [--tags <list>] [--credential-store-key <guid>]
uip or assets update           <asset-key> [<value>] [flags as for create]
uip or assets delete           <asset-key> --yes
uip or assets get-folders      <asset-key>
uip or assets share            <asset-key> --folder-path <path> | --folder-key <key>
uip or assets unshare          <asset-key> --folder-path <path> | --folder-key <key>
uip or assets get-asset-value  <asset-key> --folder-path <path> | --folder-key <key> [--executor-key <guid>]

列表​

列出资产。需要--folder-path 、 --folder-key或--all-folders (列出每个可访问的文件夹)。筛选:-n, --name <name>、--type <Text|Bool|Integer|Credential|Secret>(不区分大小写)。从结果中省略凭据和密码值。--sort-by <field> 对结果进行排序(例如 Name asc、Id desc); --all-fields 返回完整的 API 响应,而不是策划的摘要。

uip or assets list --folder-path Shared --type Credential
uip or assets list --folder-path Shared --type Credential

按密钥获取资产详细信息。跨文件夹— 无需文件夹。不会返回凭据/密码值。--all-fields 返回完整的 API 响应。

uip or assets get a1b2c3d4-0000-0000-0000-000000000001
uip or assets get a1b2c3d4-0000-0000-0000-000000000001

创建​

在文件夹中创建资产。需要<name>和<value> 。标志: --type <Text|Bool|Integer|Credential|Secret> (默认Text )、 -s, --scope <Global|PerRobot> (默认Global )、 -d, --description 、 --has-default 、 --tags <comma-list> 、 --credential-store-key <guid> ( Credential / Secret必需)。Bool 值必须为true / false ; Integer 必须是整数;凭据使用username:password格式(由只读外部凭据存储支持时除外,则<value>为外部查找名称)。

uip or assets create ApiEndpoint "https://api.example.com" \
  --folder-path Shared --type Text
uip or assets create ApiEndpoint "https://api.example.com" \
  --folder-path Shared --type Text

更新​

按密钥更新资产。跨文件夹。<value>是可选项;仅更改提供的字段。与create相同的类型/作用域/标签标志。

uip or assets update a1b2c3d4-0000-0000-0000-000000000001 \
  "https://api.new.example.com" --description "Production API"
uip or assets update a1b2c3d4-0000-0000-0000-000000000001 \
  "https://api.new.example.com" --description "Production API"

删除​

按密钥删除资产。跨文件夹。需要 -y, --yes — CLI 从不提示进行破坏性操作。

uip or assets delete a1b2c3d4-0000-0000-0000-000000000010 --yes
uip or assets delete a1b2c3d4-0000-0000-0000-000000000010 --yes

获取文件夹​

列出与资产共享的每个文件夹,以及总数。

uip or assets get-folders a1b2c3d4-0000-0000-0000-000000000001
uip or assets get-folders a1b2c3d4-0000-0000-0000-000000000001

共享/取消共享​

在文件夹中添加或删除资产。需要--folder-path或--folder-key 。

uip or assets share a1b2c3d4-0000-0000-0000-000000000001 \
  --folder-path "Production"
uip or assets unshare a1b2c3d4-0000-0000-0000-000000000001 \
  --folder-path "Production"
uip or assets share a1b2c3d4-0000-0000-0000-000000000001 \
  --folder-path "Production"
uip or assets unshare a1b2c3d4-0000-0000-0000-000000000001 \
  --folder-path "Production"

获取资产值​

为当前用户(默认)或给定执行程序返回资产值 ( --executor-key <guid> )。需要--folder-path或--folder-key 。由外部存储提供的凭据类型资产只能通过--executor-key读取;该命令在收到 403 时显示修复。

uip or assets get-asset-value a1b2c3d4-0000-0000-0000-000000000001 \
  --folder-path Shared
uip or assets get-asset-value a1b2c3d4-0000-0000-0000-000000000001 \
  --folder-path Shared

退出代码​

请参阅共享合同的退出代码。如果省略 delete,1 将退出 -y, --yes。

另请参阅​

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新