Associates a node with a partition filter expression.
Debugging
Request parameters
| Parameter | Type | Required | Example | Description |
| Action | String | Yes | CreateQualityRelativeNode | The operation that you want to perform. Set the value to CreateQualityRelativeNode. |
| RegionId | String | Yes | cn-shanghai | The region ID. For example, the ID of the China (Shanghai) region is cn-shanghai, and that of the China (Zhangjiakou) region is cn-zhangjiakou. The system determines the value of this parameter based on the endpoint that is used to call the operation. |
| EnvType | String | Yes | ODPS | The type of the compute engine instance or data source. |
| MatchExpression | String | Yes | dt=$[yyyymmdd] | The partition filter expression. |
| NodeId | Long | Yes | 12321 | The ID of the node. You can call the ListNodes operation to obtain the node ID. |
| ProjectId | Long | Yes | 123 | The workspace ID. |
| TargetNodeProjectName | String | Yes | autotest | The name of the workspace to which the node to be associated with the partition filter expression belongs. |
| ProjectName | String | Yes | autotest | The name of the compute engine instance or data source. |
| TableName | String | Yes | dual | The name of the table. |
| TargetNodeProjectId | Long | Yes | 1234 | The ID of the workspace to which the node belongs. |
Response parameters
| Parameter | Type | Example | Description |
| HttpStatusCode | Integer | 200 | The HTTP status code. |
| Data | Boolean | true | Indicates whether the node is associated with the partition filter expression. |
| ErrorMessage | String | You have no permission. | The error message. |
| RequestId | String | ecb967ec-c137-48**** | The request ID. |
| Success | Boolean | true | Indicates whether the request was successful. |
| ErrorCode | String | 401 | The error code. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=CreateQualityRelativeNode
&EnvType=ODPS
&MatchExpression=dt=$[yyyymmdd]
&NodeId=12321
&ProjectId=123
&TargetNodeProjectName=autotest
&ProjectName=autotest
&TableName=dual
&TargetNodeProjectId=1234
&<Common request parameters>
Sample success responses
XML format
HTTP/1.1 200 OK
Content-Type:application/xml
<CreateQualityRelativeNodeResponse>
<HttpStatusCode>200</HttpStatusCode>
<Data>true</Data>
<ErrorMessage>You have no permission.</ErrorMessage>
<RequestId>ecb967ec-c137-48****</RequestId>
<Success>true</Success>
<ErrorCode>401</ErrorCode>
</CreateQualityRelativeNodeResponse>
JSON format
HTTP/1.1 200 OK
Content-Type:application/json
{
"HttpStatusCode" : 200,
"Data" : true,
"ErrorMessage" : "You have no permission.",
"RequestId" : "ecb967ec-c137-48****",
"Success" : true,
"ErrorCode" : 401
}
Error codes
For a list of error codes, see Service error codes.