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

uip 管理员 rcs

“uip admin rcs”的语法和选项,用于搜索资源目录服务实体并列出租户标签。

uip admin rcs查询资源目录服务 (RCS) ——可自动化实体(流程、编排对象和其他资源类型)的平台范围内索引,支持选取器,如 Orchestrator 的“添加工具”用户界面——以及 RCS 跟踪的租户范围内的标签用于这些实体。UiPath 管理工具uip admin (概述)的一部分。

大纲​

uip admin rcs search [--entity-type <type>]... [--entity-sub-type <type>]... [--name <text>] [--folder-key <guid> | --folder-path <path>] [--limit <n>] [--offset <n>]
uip admin rcs tag list [--type Label|KeyValue] [--starts-with <prefix>] [--limit <n>] [--offset <n>]
uip admin rcs search [--entity-type <type>]... [--entity-sub-type <type>]... [--name <text>] [--folder-key <guid> | --folder-path <path>] [--limit <n>] [--offset <n>]
uip admin rcs tag list [--type Label|KeyValue] [--starts-with <prefix>] [--limit <n>] [--offset <n>]

这两个动词都接受 --login-validity <minutes>。

搜索 RCS 实体 (GET /Entities/Search) — 例如,重现 Orchestrator 的“添加工具”选取器看到的内容。

选项​

长值描述
--entity-type <value>可重复的字符串RCS entityTypes 筛选器条目(例如Process)。对多个值重复此操作。
--entity-sub-type <value>可重复的字符串RCS entitySubType 筛选器条目(例如ProcessOrchestration)。对多个值重复此操作。
--name <text>字符串实体名称的子字符串筛选器。
--folder-key <guid>GUID将搜索范围限定在一个文件夹内(作为 X-UIPATH-FolderKey 发送)。
--folder-path <path>字符串按路径将搜索范围限定为一个文件夹(作为 X-UIPATH-FolderPath 发送)。
--limit <n>整数页面大小(RCS take)。默认为 100。
--offset <n>整数行偏移量 (RCS skip)。默认 0。
--login-validity <minutes>整数覆盖此调用的交互式登录令牌生存期。很少需要。

示例​

# Search RCS Process entities by entitySubType (matches the Orchestrator UI Add-Tool picker)
uip admin rcs search --entity-type Process --entity-sub-type ProcessOrchestration --limit 8
# Search RCS Process entities by entitySubType (matches the Orchestrator UI Add-Tool picker)
uip admin rcs search --entity-type Process --entity-sub-type ProcessOrchestration --limit 8
# Search across one folder by key
uip admin rcs search --entity-type Process --folder-key 11111111-1111-1111-1111-111111111111
# Search across one folder by key
uip admin rcs search --entity-type Process --folder-key 11111111-1111-1111-1111-111111111111

数据形状(--输出 json)​

{
  "Code": "RcsSearch",
  "Data": {
    "items": [
      {
        "entityKey": "entity-guid",
        "name": "Sample Orchestrator",
        "entityType": "Process",
        "entitySubType": "ProcessOrchestration"
      }
    ],
    "total": 1,
    "count": 1
  }
}
{
  "Code": "RcsSearch",
  "Data": {
    "items": [
      {
        "entityKey": "entity-guid",
        "name": "Sample Orchestrator",
        "entityType": "Process",
        "entitySubType": "ProcessOrchestration"
      }
    ],
    "total": 1,
    "count": 1
  }
}

仅当还有更多行超出此页时,next ({ skip, take }) 才会存在 — 使用它来通过 --offset 进行分页。

uip admin rcs 标签​

列出 RCS 跟踪的租户范围的标签。

uip admin rcs 标签列表​

列出您的登录上下文中租户的标签。使用 uip login tenant set <tenant> 切换租户(您的帐户需要该租户的 RCS 访问权限)。

选项​
长值描述
--type <type>Label | KeyValue标签类型。默认 Label。区分大小写。
--starts-with <prefix>字符串仅返回规范化名称以此前缀开头的标签(不区分大小写)。
--limit <n>整数页面大小。默认 100。
--offset <n>整数行偏移量。默认 0。
--login-validity <minutes>整数覆盖此调用的交互式登录令牌生存期。很少需要。

示例​

uip admin rcs tag list
uip admin rcs tag list
uip admin rcs tag list --starts-with env --limit 20
uip admin rcs tag list --starts-with env --limit 20

数据形状(--输出 json)​

{
  "Code": "RcsTagList",
  "Data": {
    "count": 2,
    "value": [
      { "displayName": "Environment", "normalizedName": "environment" },
      { "displayName": "Owner", "normalizedName": "owner" }
    ]
  }
}
{
  "Code": "RcsTagList",
  "Data": {
    "count": 2,
    "value": [
      { "displayName": "Environment", "normalizedName": "environment" },
      { "displayName": "Owner", "normalizedName": "owner" }
    ]
  }
}

故障排除​

  • tag list上的“无效作用域” — 重新运行uip login以创建包含RCS.Tags作用域的令牌。
  • 这两个动词都需要具有资源目录服务访问权限的有效登录名 — 请先运行 uip login。
  • uip admin — 整个uip admin工具的概述。
  • uip or audit-logs — 一个相关但不同的审核表面,范围为 Orchestrator 实体,而不是平台范围内的 RCS 索引。

另请参阅​

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新