Queries the code of a node.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
Action | String | Yes | GetNodeCode | The operation that you want to perform. Set the value to GetNodeCode. |
NodeId | Long | Yes | 1234 | The node ID |
ProjectEnv | String | Yes | PROD | The environment of the workspace. Valid values: PROD and DEV. |
Response parameters
Parameter | Type | Example | Description |
HttpStatusCode | Integer | 200 | The HTTP status code. |
Data | String | select a; | The code of the node. |
ErrorMessage | String | The connection does not exist. | The error message. |
RequestId | String | E6F0DBDD-5AD**** | The request ID. |
Success | Boolean | true | Indicates whether the request was successful. |
ErrorCode | String | Invalid.Tenant.ConnectionNotExists | The error code. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=GetNodeCode
&NodeId=1234
&ProjectEnv=PROD
&<Common request parameters>
Sample success responses
XML
format
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
format
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"
}
Error codes
For a list of error codes, see Service error codes.