Querying Databases of a Big Data Instance in the Asset Center
Function
Query the database list of a big data instance.
Calling Method
For details, see Calling APIs.
URI
GET /v1/{project_id}/asset-center/bigdata/instances/{instance_id}/databases
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
instance_id |
Yes |
String |
instance_id |
|
project_id |
Yes |
String |
project_id |
Request Parameters
None
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
datasources |
Array of BigdataResponse objects |
List of big data asset details. |
|
total |
Integer |
Total number of big data assets. |
|
Parameter |
Type |
Description |
|---|---|---|
|
asset_name |
String |
Asset name. |
|
authorize_fail_reason |
String |
Authorization failure cause (in the case of an authorization failure). |
|
authorized |
Boolean |
Whether it is authorized. |
|
create_time |
Long |
Asset creation time, in milliseconds. |
|
default |
Boolean |
Whether an asset is the default asset. |
|
ds_address |
String |
Data source address. |
|
ds_authorized |
String |
Data source authorization status. |
|
ds_name |
String |
Data source name. |
|
ds_port |
Integer |
Data source port. |
|
ds_type |
String |
Data source type. Types: Elasticsearch, DLI, Hive, HBase, MRS_HIVE, ALL, LTS, HIVE_ONLY, and JUST_BIG_DATA |
|
ds_user |
String |
Data source username. |
|
ds_version |
String |
Data source version. |
|
id |
String |
Asset ID. |
|
ins_id |
String |
Instance ID. |
|
ins_name |
String |
Instance name. |
|
ins_type |
String |
Instance type. Types: Elasticsearch, DLI, Hive, HBase, MRS_HIVE, ALL, LTS, HIVE_ONLY, and JUST_BIG_DATA |
|
region |
String |
Region information. |
|
security_group_id |
String |
Security group ID. |
|
source_type |
String |
Asset source type. Types: Elasticsearch, CSS, and MRS. |
|
subnet_id |
String |
Subnet ID. |
|
vpc_id |
String |
VPC ID. |
Example Requests
Query databases of a big data instance in the asset center.
GET /v1/{project_id}/asset-center/bigdata/instances/{instance_id}/databases
Example Responses
None
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
OK |
|
401 |
Unauthorized. |
|
403 |
Access denied. |
|
404 |
Not found. |
Error Codes
See Error Codes.
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