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

uip 或凭据存储

"uip 或 credential-stores" 的语法和选项,用于检查为租户配置的安全凭据存储后端。

uip or credential-stores检查为租户配置的凭据存储,即保存用户和计算机引用凭据的安全后端。凭据存储由数字密钥( Id )标识,您可以在创建凭据类型的用户或计算机时将其作为--credential-store-key传递。

常见类型包括Database (内置 Orchestrator 存储)、 AzureKeyVaultCyberArkHashiCorp等。

大纲

uip or credential-stores <verb> [options]
uip or credential-stores <verb> [options]

动词

动词用途
list列出租户中的凭据存储。
get按数字密钥获取凭据存储的完整详细信息。

所有动词都遵循全局选项--output--output-filter--log-level--log-file )。退出代码遵循标准合同

UIP 或凭据存储列表

列出调用者可见的凭据存储。返回键 (GUID)、数字id 、名称、类型和每种类型的details

选项

默认描述
-n--nametext名称包含匹配项。
--id数字按数字键筛选(精确匹配)。
-l--limit数字50页面大小。
--offset数字0跳过计数。
--sort-by字段Id descOData 排序表达式(例如Name asc )。

示例

# All stores in the tenant
uip or credential-stores list

# Filter by name
uip or credential-stores list --name "Azure"

# Just id and name, script-friendly
uip or credential-stores list --output-filter 'Data[].{id:id, n:name}'
# All stores in the tenant
uip or credential-stores list

# Filter by name
uip or credential-stores list --name "Azure"

# Just id and name, script-friendly
uip or credential-stores list --output-filter 'Data[].{id:id, n:name}'

数据形状(--输出 json)

{
  "Code": "CredentialStoreList",
  "Data": [
    {
      "key": "a1b2c3d4-0000-0000-0000-000000000001",
      "name": "Orchestrator Database",
      "type": "Database",
      "details": { "isReadOnly": false },
      "id": 1
    },
    {
      "key": "a1b2c3d4-0000-0000-0000-000000000002",
      "name": "Azure Key Vault",
      "type": "AzureKeyVault",
      "details": {},
      "id": 2
    }
  ]
}
{
  "Code": "CredentialStoreList",
  "Data": [
    {
      "key": "a1b2c3d4-0000-0000-0000-000000000001",
      "name": "Orchestrator Database",
      "type": "Database",
      "details": { "isReadOnly": false },
      "id": 1
    },
    {
      "key": "a1b2c3d4-0000-0000-0000-000000000002",
      "name": "Azure Key Vault",
      "type": "AzureKeyVault",
      "details": {},
      "id": 2
    }
  ]
}

uip 或凭据存储 get

按数字密钥获取凭据存储的完整详细信息。传递id中的credential-stores list (整数),而不是 GUID。

参数

名称必填用途
<key>数字凭据存储密钥( id中的credential-stores list )。

选项

默认描述

示例

uip or credential-stores get 1
uip or credential-stores get 2 --output-filter 'Data.type'
uip or credential-stores get 1
uip or credential-stores get 2 --output-filter 'Data.type'

数据形状(--输出 json)

{
  "Code": "CredentialStore",
  "Data": {
    "key": "a1b2c3d4-0000-0000-0000-000000000001",
    "name": "Orchestrator Database",
    "type": "Database",
    "details": { "isReadOnly": false },
    "id": 1
  }
}
{
  "Code": "CredentialStore",
  "Data": {
    "key": "a1b2c3d4-0000-0000-0000-000000000001",
    "name": "Orchestrator Database",
    "type": "Database",
    "details": { "isReadOnly": false },
    "id": 1
  }
}
  • uip or users — 创建输入凭据的用户需要来自此命令的--credential-store-key
  • uip or machines — 创建使用已存储凭据的计算机需要--credential-store-key

另请参阅

  • 全局选项--output--output-filter--log-level--log-file
  • 退出代码— 标准退出代码合同。

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新