Uploading a Resource File
Function
This API is used to import a file to DataArts Quality.
Calling Method
For details, see Calling APIs.
URI
POST /v2/{project_id}/quality/resource/upload
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID. For details about how to obtain the project ID, see Project ID and Account ID. |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
workspace |
Yes |
String |
DataArts Studio workspace ID. For details about how to obtain the workspace ID, see Instance ID and Workspace ID. |
X-Auth-Token |
Yes |
String |
IAM token. For details about how to obtain the token, see Authentication. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
type |
Yes |
String |
Type of the resource to be uploaded. The value can be rule-template, quality-task, or consistency-task. |
file |
Yes |
File |
Resource file to be uploaded. |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
resource_id |
String |
Resource ID |
topics |
Array of strings |
SMN topic |
matched_topics |
Array of MatchedTopicMsg objects |
Matched topics |
directories |
Array of strings |
Directories in DataArts Quality |
queues |
Array of strings |
Queue name |
connections |
Array of NameType objects |
Data connection information |
Status code: 500
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error code, for example, DQC.0000 which indicates that the request was successfully processed |
error_msg |
String |
Error message |
Example Requests
None
Example Responses
None
Status Codes
Status Code |
Description |
---|---|
200 |
Success |
500 |
INTERNAL SERVER ERROR |
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