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

uip or assets

Syntax and options for `uip or assets`, which manages Orchestrator assets (Text, Bool, Integer, Credential, Secret) in a folder.

管理 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>]

列表

List assets. Requires --folder-path, --folder-key, or --all-folders (to list across every accessible folder). Filters: -n, --name <name>, --type <Text|Bool|Integer|Credential|Secret> (case-insensitive). Credential and secret values are omitted from results. --sort-by <field> sorts results (for example, Name asc, Id desc); --all-fields returns the full API response instead of the curated summary.

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

Get asset details by key. Cross-folder — no folder needed. Credential/secret values are not returned. --all-fields returns the full API response.

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"

删除

Delete an asset by key. Cross-folder. Requires -y, --yes — the CLI never prompts for destructive operations.

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

退出代码

See Exit codes for the shared contract. delete exits 1 if -y, --yes is omitted.

另请参阅

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新