Obtaining the Field List of the Elasticsearch Index
Function
This API is used to obtain the field list of the Elasticsearch index and type.
Calling Method
For details, see Calling APIs.
URI
POST /v1/{project_id}/sdg/server/mask/bigdata/es/indexes/types/fields
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Unique project ID. |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
db_id |
No |
String |
Unique ID of the Elasticsearch asset. |
|
index |
No |
String |
Specifies the Elasticsearch index name. |
|
sequence |
No |
String |
Specifies the sorting field of the Elasticsearch index. |
|
type |
No |
String |
Specifies the type name under the Elasticsearch index. |
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
fields |
Array of ESFieldInfo objects |
Elasticsearch field details |
|
Parameter |
Type |
Description |
|---|---|---|
|
classification_name |
String |
Field category name |
|
data_type |
String |
Field data type. |
|
field_name |
String |
Field name |
|
level |
Integer |
Field sensitivity level. |
|
rule_id |
String |
Unique ID of the masking rule corresponding to the field. |
|
rule_name |
String |
Name of the masking rule corresponding to the field. |
Status code: 201
Resource creation.
Example Requests
POST /v1/{project_id}/sdg/server/mask/bigdata/es/indexes/types/fields
{
"db_id" : "string",
"index" : "string",
"sequence" : "string",
"type" : "string"
}
Example Responses
None
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
Query result. |
|
201 |
Resource creation. |
|
401 |
Unauthorized. |
|
403 |
Access denied. |
|
404 |
Resource 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