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

Orchestrator HTTP 请求

对 Orchestrator API 执行 HTTP 请求,方法是在执行此应用程序编程接口的 Robot 下进行身份验证。您可以使用 GETPOSTPUTPATCHDELETE 动词来提取或操作数据,并通过 JSON 发送特定信息。
请注意,对于每个请求,您可能需要对Orchestrator 机器人角色的不同权限,具体取决于您正在执行的请求,并且机器人必须连接到 Orchestrator。 例如,要对组织单位运行PUT请求,您需要“查看” 、“创建”和“编辑”权限。 该方法在执行它的机器人下运行。

定义

命名空间: UiPath Activities.System.API

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

重载

  
OrchestratorHTTPRequest(OrchestratorHttpMethods, String)使用所需的请求和端点对 Orchestrator API 执行 HTTP 请求。
OrchestratorHTTPRequest(OrchestratorHttpMethods, String, Dictionary<String, String>, String)使用所需的请求、端点和响应标头对 Orchestrator API 执行 HTTP 请求。
OrchestratorHTTPRequest(OrchestratorHttpMethods, String, String, String)使用所需的请求、端点和 JSON 有效负载对 Orchestrator API 执行 HTTP 请求。
OrchestratorHTTPRequest(OrchestratorHttpMethods, String, String Dictionary<String, String>, String, String)使用所需请求、端点、JSON 有效负载和响应标头对 Orchestrator API 执行 HTTP 请求。
OrchestratorHTTPRequest(OrchestratorHttpMethods, String, String, String Dictionary<String, String>, String, Int32)使用所需请求、端点、JSON 有效负载和响应标头以及其他配置,对 Orchestrator API 执行 HTTP 请求。

OrchestratorHTTPRequest(OrchestratorHttpMethods, String)

使用所需的请求和端点对 Orchestrator API 执行 HTTP 请求。

int OrchestratorHTTPRequest(
	OrchestratorAPIHttpMethods method,
	string relativeEndpoint
)int OrchestratorHTTPRequest(
	OrchestratorAPIHttpMethods method,
	string relativeEndpoint
)
method OrchestratorAPIHttpMethods
调用 Orchestrator API 时要使用的请求方法。 支持以下 HTTP 动词: GETPOSTPUTPATCHDELETE
relativeEndpoint 字符串
相对于基本 Orchestrator URL 发出请求的端点。

OrchestratorHTTPRequest(OrchestratorHttpMethods, String, Dictionary<String, String>, String)

使用所需的请求、端点和 JSON 有效负载对 Orchestrator API 执行 HTTP 请求。

int OrchestratorHTTPRequest(
	OrchestratorAPIHttpMethods method,
	string relativeEndpoint,
	out Dictionary<string, string> responseHeaders,
	out string result
)int OrchestratorHTTPRequest(
	OrchestratorAPIHttpMethods method,
	string relativeEndpoint,
	out Dictionary<string, string> responseHeaders,
	out string result
)
method OrchestratorAPIHttpMethods
调用 Orchestrator API 时要使用的请求方法。 支持以下 HTTP 动词: GETPOSTPUTPATCHDELETE
relativeEndpoint 字符串
相对于基本 Orchestrator URL 发出请求的端点。
responseHeaders Dictionary<String, String>
对请求返回的标头的引用。
result 字符串
HTTP 请求返回的 JSON。

OrchestratorHTTPRequest(OrchestratorHttpMethods, String, String, String)

使用所需请求、端点、JSON 有效负载和响应标头以及其他配置,对 Orchestrator API 执行 HTTP 请求。

int OrchestratorHTTPRequest(
	OrchestratorAPIHttpMethods method,
	string relativeEndpoint,
	string jSONPayload,
	string folderPath
)int OrchestratorHTTPRequest(
	OrchestratorAPIHttpMethods method,
	string relativeEndpoint,
	string jSONPayload,
	string folderPath
)
method OrchestratorAPIHttpMethods
调用 Orchestrator API 时要使用的请求方法。 支持以下 HTTP 动词: GETPOSTPUTPATCHDELETE
relativeEndpoint 字符串
相对于基本 Orchestrator URL 发出请求的端点。
jSONPayload 字符串
要以 JSON 格式发送到指定 Orchestrator 端点的信息。 JSON 不得缩进。
folderPath 字符串
要使用的 Orchestrator 文件夹的路径。

OrchestratorHTTPRequest(OrchestratorHttpMethods, String, String Dictionary<String, String>, String, String)

使用所需请求、端点、JSON 有效负载和响应标头对 Orchestrator API 执行 HTTP 请求。

int OrchestratorHTTPRequest(
	OrchestratorAPIHttpMethods method,
	string relativeEndpoint,
	string jSONPayload,
	out Dictionary<string, string> responseHeaders,
	out string result,
	string folderPath
)int OrchestratorHTTPRequest(
	OrchestratorAPIHttpMethods method,
	string relativeEndpoint,
	string jSONPayload,
	out Dictionary<string, string> responseHeaders,
	out string result,
	string folderPath
)
method OrchestratorAPIHttpMethods
调用 Orchestrator API 时要使用的请求方法。 支持以下 HTTP 动词: GETPOSTPUTPATCHDELETE
relativeEndpoint 字符串
相对于基本 Orchestrator URL 发出请求的端点。
jSONPayload 字符串
要以 JSON 格式发送到指定 Orchestrator 端点的信息。 JSON 不得缩进。
responseHeaders Dictionary<String, String>
对请求返回的标头的引用。
result 字符串
HTTP 请求返回的 JSON。
folderPath 字符串
要使用的 Orchestrator 文件夹的路径。

OrchestratorHTTPRequest(OrchestratorHttpMethods, String, String, String Dictionary<String, String>, String, Int32)

使用所需请求、端点、JSON 有效负载和响应标头以及其他配置,对 Orchestrator API 执行 HTTP 请求。

int OrchestratorHTTPRequest(
	OrchestratorAPIHttpMethods method,
	string relativeEndpoint,
	string jSONPayload,
	string folderPath,
	out Dictionary<string, string> responseHeaders,
	out string result,
	int timeoutMS
)int OrchestratorHTTPRequest(
	OrchestratorAPIHttpMethods method,
	string relativeEndpoint,
	string jSONPayload,
	string folderPath,
	out Dictionary<string, string> responseHeaders,
	out string result,
	int timeoutMS
)
method OrchestratorAPIHttpMethods
调用 Orchestrator API 时要使用的请求方法。 支持以下 HTTP 动词: GETPOSTPUTPATCHDELETE
relativeEndpoint 字符串
相对于基本 Orchestrator URL 发出请求的端点。
jSONPayload 字符串
要以 JSON 格式发送到指定 Orchestrator 端点的信息。 JSON 不得缩进。
folderPath 字符串
要使用的 Orchestrator 文件夹的路径。
responseHeaders Dictionary<String, String>
对请求返回的标头的引用。
result 字符串
HTTP 请求返回的 JSON。
timeoutMS Int32
指定等待时间 (以毫秒为单位)。如果超出该时间活动未运行,就会引发错误。默认值为 30000 毫秒 (30 秒)。

返回值

请求返回的状态代码。

此页面是否有帮助?

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