活动
最新
False
横幅背景图像
工作流活动
上次更新日期 2024年4月22日

获取凭据

使用提供的资产名称获取指定的凭据资产。如果凭据资产不是全局资产,则必须将其分配给本地机器人才能检索。

定义

命名空间: UiPath Activities.System.API

程序集: UiPath.System.Activities.Api(在 UiPath.System.Activities.Api.dll 中)

重载

  
GetCredential(String)使用提供的AssetName获取指定的 Orchestrator 凭据,并返回安全密码。 有关凭据资产的更多信息,请参阅关于资产
GetCredential(String, SecureString)使用提供的资产名称、用户名以及安全密码获取指定的 Orchestrator 凭据。 有关凭据资产的更多信息,请参阅关于资产
GetCredential(String, String)使用提供的资产名称和文件夹路径获取指定的 Orchestrator 凭据,并返回安全密码。 有关凭据资产的更多信息,请参阅关于资产
GetCredential(String, SecureString, String)使用提供的“资产名称”、用户名和文件夹路径获取指定的 Orchestrator 凭据,并返回安全密码。 有关凭据资产的更多信息,请参阅关于资产
GetCredential(String, String, SecureString, CacheStrategyEnum, Int32)使用提供的“资产名称”、用户名、文件夹路径和缓存策略获取指定的 Orchestrator 凭据,并返回安全密码。 有关凭据资产的更多信息,请参阅关于资产

GetCredential(String)

使用提供的AssetName获取指定的 Orchestrator 凭据,并返回安全密码。 有关凭据资产的更多信息,请参阅关于资产

string GetCredential(
	string assetName
)string GetCredential(
	string assetName
)
assetName 字符串
要检索凭据的资产的名称。

GetCredential(String, SecureString)

使用提供的资产名称、用户名以及安全密码获取指定的 Orchestrator 凭据。 有关凭据资产的更多信息,请参阅关于资产

string GetCredential(
	string assetName,
	out SecureString password
)string GetCredential(
	string assetName,
	out SecureString password
)
assetName 字符串
要检索凭据的资产的名称。
password 安全字符串
引用检索到的凭据的用户名。

GetCredential(String, String)

使用提供的资产名称和文件夹路径获取指定的 Orchestrator 凭据,并返回安全密码。 有关凭据资产的更多信息,请参阅关于资产

string GetCredential(
	string assetName,
	string folderPath
)string GetCredential(
	string assetName,
	string folderPath
)
assetName 字符串
要检索凭据的资产的名称。
folderPath 字符串
如果凭据与运行流程的文件夹不同,则为凭据所在及必须从中检索的文件夹路径。 此字段仅支持字符串值,并使用/作为分隔符来表示子文件夹。 例如"Finance/Accounts Payable"

GetCredential(String, SecureString, String)

使用提供的“资产名称”、用户名和文件夹路径获取指定的 Orchestrator 凭据,并返回安全密码。 有关凭据资产的更多信息,请参阅关于资产

string GetCredential(
	string assetName,
	out SecureString password,
	string folderPath
)string GetCredential(
	string assetName,
	out SecureString password,
	string folderPath
)
assetName 字符串
要检索凭据的资产的名称。
password 安全字符串
引用检索到的凭据的用户名。
folderPath 字符串
如果凭据与运行流程的文件夹不同,则为凭据所在及必须从中检索的文件夹路径。 此字段仅支持字符串值,并使用/作为分隔符来表示子文件夹。 例如"Finance/Accounts Payable"

GetCredential(String, String, SecureString, CacheStrategyEnum, Int32)

使用提供的“资产名称”、用户名、文件夹路径和缓存策略获取指定的 Orchestrator 凭据,并返回安全密码。 有关凭据资产的更多信息,请参阅关于资产

string GetCredential(
	string assetName,
	string folderPath,
	out SecureString password,
	CacheStrategyEnum cacheStrategy,
	int timeoutMS
)string GetCredential(
	string assetName,
	string folderPath,
	out SecureString password,
	CacheStrategyEnum cacheStrategy,
	int timeoutMS
)
assetName 字符串
要检索凭据的资产的名称。
folderPath 字符串
如果凭据与运行流程的文件夹不同,则为凭据所在及必须从中检索的文件夹路径。 此字段仅支持字符串值,并使用/作为分隔符来表示子文件夹。 例如"Finance/Accounts Payable"
password 安全字符串
引用检索到的凭据的用户名。
cacheStrategy CacheStrategyEnum
指定缓存检索到的值的时间段。 默认情况下,所有请求都将转发到 Orchestrator。 可用选项为 NoneExecution。 选择 Execution 可缓存 Orchestrator 资产,并将其用于整个流程执行。
timeoutMS Int32
指定等待时间 (以毫秒为单位)。如果超出该时间活动未运行,就会引发错误。默认值为 30000 毫秒 (30 秒)。

返回值

检索到的凭据的安全密码。

此页面是否有帮助?

获取您需要的帮助
了解 RPA - 自动化课程
UiPath Community 论坛
Uipath 白色徽标
信任与安全
© 2005-2024 UiPath. All rights reserved.