Previewing Data (Invitational Test)
Function
This API is used to preview table data. Ten data records are returned. This API is in invitational test and will be available in OBT in the future.
Calling Method
For details, see Calling APIs.
URI
GET /v1/{project_id}/datamap/entities/guid/{guid}/preview
|
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. |
|
guid |
Yes |
String |
Asset GUID. For details about how to obtain the asset GUID, see Data Development Job ID. |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
data_connection_id |
No |
String |
Data connection ID |
|
source_type |
No |
String |
Data source type |
|
database |
No |
String |
Database name |
|
schema |
No |
String |
Schema name |
|
table |
No |
String |
Table name |
|
queue |
No |
String |
Queue name |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
X-Auth-Token |
Yes |
String |
User token. This parameter is mandatory when token authentication is used. You can obtain it from the value of X-Subject-Token in the response message header returned by the "Obtaining a User Token" API of the IAM service. |
|
instance |
Yes |
String |
Instance ID. For details about how to obtain the instance ID, see Instance ID and Workspace ID. |
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
rows |
Array<Array<Object>> |
Data list in the table |
|
schema |
Array of objects |
Field information list |
Status code: 400
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Error code. |
|
error_msg |
String |
Error description. |
Status code: 401
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Error code. |
|
error_msg |
String |
Error description. |
Status code: 403
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Error code. |
|
error_msg |
String |
Error description. |
Status code: 404
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Error code. |
|
error_msg |
String |
Error description. |
Status code: 500
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Error code. |
|
error_msg |
String |
Error description. |
Example Requests
None
Example Responses
Status code: 200
OK
{
"rows" : null,
"schema" : [ {
"name" : "string"
}, {
"school" : "string"
}, {
"id" : "int"
}, {
"address" : "string"
} ]
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
OK |
|
400 |
BadRequest |
|
401 |
Unauthorized |
|
403 |
Forbidden |
|
404 |
Not Found |
|
500 |
InternalServerError |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.