Obtaining the Parameter Configuration List
Function
This API is used to obtain the parameter configuration list of the current cluster.
Debugging
You can debug this API through automatic authentication in API Explorer.
URI
GET /v1.0/{project_id}/clusters/{cluster_id}/ymls/template
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID. For details about how to obtain the project ID and name, see Obtaining the Project ID and Name. |
cluster_id |
Yes |
String |
ID of the cluster you want to query. |
Request Parameters
None
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
configurations |
Object |
Cluster parameter configuration list. The key value in the object is subject to the actual situation. The value has the following attributes:
|
Example Requests
None
Example Responses
Status code: 200
Request succeeded.
{ "configurations" : { "http.cors.allow-credentials" : { "id" : "b462d13c-294b-4e0f-91d3-58be2ad02b99", "key" : "http.cors.allow-credentials", "value" : "false", "defaultValue" : "false", "regex" : "^(true|false)$", "desc" : "Indicates whether to return **Access-Control-Allow-Credentials** in the header during cross-domain access. The value is of the Boolean type and can be **true** or **false**.", "type" : "Boolean", "moduleDesc" : "Cross-domain access", "modifyEnable" : "true", "enableValue" : "true,false", "fileName" : "elasticsearch.yml", "version" : null, "descENG" : "Whether to return the Access-Control-Allow-Credentials of the header during cross-domain access. The value is a Boolean value and the options are true and false.", "moduleDescENG" : "Cross-domain Access" } } }
Status Codes
Status Code |
Description |
---|---|
200 |
Request succeeded. |
400 |
Invalid request. Modify the request before retry. |
409 |
The request could not be completed due to a conflict with the current state of the resource. The resource that the client attempts to create already exists, or the update request fails to be processed because of a conflict. |
412 |
The server did not meet one of the preconditions contained in the request. |
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