Unknown macro: {next_previous_link3}
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Overview

DescriptionCheck if a particular table exists.
Resource Path

/analytics/table_exists?table={tableName}

HTTP MethodGET
Request/Response Formatapplication/json
AuthenticationBasic
Usernameadmin
Passwordadmin

The user name and the password (i.e. admin:admin) should be encoded into the Base64 format and included in the GET request.

Parameter description
ParameterDescription
{tableName}The name of the table that you want to find in the DAS server.

Sample cURL command

Example

curl -k -XGET 'https://localhost:9443/analytics/table_exists?table=table1' -H "Authorization: Basic YWRtaW46YWRtaW4="

Sample output

If the table that you searched for exists, an output similar to the following is received.

{
"status":"success",
"message":"Table : table1 exists."
}

If the table that you searched for does not exist, an output similar to the following is received.

{
"status":"non-existent",
"message":"Table : table1 does not exist."
}

 

REST API response

HTTP status code

200 or 404

For descriptions of the HTTP status codes, see HTTP Status Codes.

  • No labels