文档

GetNodeCode

更新时间:

调用GetNodeCode接口获取节点的代码。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称

类型

是否必选

示例值

描述

Action String GetNodeCode

系统规定参数。取值:GetNodeCode

NodeId Long 1234

节点的ID。

ProjectEnv String PROD

工作空间的环境,包括PROD和DEV。

返回数据

名称

类型

示例值

描述

HttpStatusCode Integer 200

HTTP状态码。

Data String select a;

节点的代码。

ErrorMessage String The connection does not exist.

错误信息。

RequestId String E6F0DBDD-5AD****

请求的ID。用于定位日志,排查问题。

Success Boolean true

调用是否成功。

ErrorCode String Invalid.Tenant.ConnectionNotExists

错误码。

示例

请求示例

http(s)://[Endpoint]/?Action=GetNodeCode
&NodeId=1234
&ProjectEnv=PROD
&公共请求参数

正常返回示例

XML格式

HTTP/1.1 200 OK
Content-Type:application/xml

<GetNodeCodeResponse>
    <HttpStatusCode>200</HttpStatusCode>
    <Data>select a;</Data>
    <ErrorMessage>The connection does not exist.</ErrorMessage>
    <RequestId>E6F0DBDD-5AD****</RequestId>
    <Success>true</Success>
    <ErrorCode>Invalid.Tenant.ConnectionNotExists</ErrorCode>
</GetNodeCodeResponse>

JSON格式

HTTP/1.1 200 OK
Content-Type:application/json

{
  "HttpStatusCode" : 200,
  "Data" : "select a;",
  "ErrorMessage" : "The connection does not exist.",
  "RequestId" : "E6F0DBDD-5AD****",
  "Success" : true,
  "ErrorCode" : "Invalid.Tenant.ConnectionNotExists"
}

错误码

访问错误中心查看更多错误码。

  • 本页导读 (1)
文档反馈