From RestApi
If the source link of a job is a RestApi link, configure the source job parameters based on Table 1.
| Type | Parameter | Description | Mandatory | Example Value |
|---|---|---|---|---|
| Basic parameters | Requested Data Path | Path of the requested data | Yes | /api/getUsers |
| Request Method | Request method. The value can be GET or POST. | Yes | GET | |
| Request Header | This header and the connection header will be combined to form the task header. The header follows this format: {"Content-Type":"application/json"}. | Yes | {"Content-Type":"application/json"} | |
| Request Body | This parameter is available when Request Method is POST. The request body is in JSON format. | Yes | {"namePrefix":"test"} | |
| Paging Interface | Whether the interface is a paging interface | Yes | - | |
| Records Obtained Each Time | This parameter is displayed when Paging Interface is set to Yes. It indicates the number of data records obtained each time. | Yes | 1000 | |
| Page Size | This parameter is displayed when Paging Interface is set to Yes. In indicates the page size.
| Yes | pageSize | |
| Page Number | This parameter is displayed when Paging Interface is set to Yes. In indicates the page number.
| Yes | pageNumber | |
| Data Path | Location of data in the response JSON body. The default value is the root path. For example, if the response body is {"data":{"students":[{"customerConfig":{"flavorType":"cdm.large","clusterName":"mppdbCluster"}}]}} and the second-layer students data needs to be parsed, set this parameter to data.students. | No | data.students | |
| Data Records | This parameter is displayed when Paging Interface is set to Yes. It indicates the total number of data records. The value can be a fixed value or obtained using an API. the interface. The value can also be a SpEL expression.
| Yes | Recommended fixed value: 1,000 |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot