Creates a parser.
QPS limits
Each Alibaba Cloud account can run up to 10 queries per second (QPS).
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | CreateParser |
The operation that you want to perform. Set the value to CreateParser. |
Name | String | Yes | DataParser |
The name of the parser. The name must be 1 to 30 characters in length, and can contain letters, digits, underscores (_), and hyphens (-). |
IotInstanceId | String | No | iot-n8t*** |
The ID of the instance. You can view the ID of the instance on the Overview page in the IoT Platform console. Notice
For more information, see Overview. |
Description | String | No | Forward data. |
The description of the parser. |
In addition to the preceding operation-specific request parameters, you must configure common request parameters when you call this operation. For more information, see Common request parameters.
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
Code | String | iot.system.SystemException |
The error code returned if the call fails. For more information, see Error codes. |
ErrorMessage | String | A system exception occurred. |
The error message returned if the request fails. |
ParserId | String | 100* |
The parser ID returned if the parser is created. |
RequestId | String | 291438BA-6E10-4C4C-B761-243B9A0D324F |
The ID of the request. |
Success | Boolean | true |
Indicates whether the call was successful.
|
Examples
Sample requests
http(s)://iot.cn-shanghai.aliyuncs.com/?Action=CreateParser
&Name=DataParser
&<Common request parameters>
Sample success responses
XML
format
<CreateParserResponse>
<RequestId>291438BA-6E10-4C4C-B761-243B9A0D324F</RequestId>
<ParserId>100*</ParserId>
<Success>true</Success>
</CreateParserResponse>
JSON
format
{
"RequestId": "291438BA-6E10-4C4C-B761-243B9A0D324F",
"ParserId": "100*",
"Success": true
}