Obtaining Chart Values
Function
This API is used to obtain chart values.
Calling Method
For details, see Calling APIs.
URI
GET /v2/charts/{chart_id}/values
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| chart_id | Yes | String | Definition: Chart ID Constraints: N/A Range: N/A Default Value: N/A |
Request Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| Content-Type | Yes | String | Definition: Type (or format) of the request body. The default value is application/json. Other values of this field will be provided for specific APIs, if any. Constraints: GET requests are not validated. Range: N/A Default Value: N/A |
| X-Auth-Token | Yes | String | Details: Requests for calling an API can be authenticated using either a token or AK/SK. If token-based authentication is used, this parameter is mandatory and must be set to a user token. For details, see Obtaining a User Token. Constraints: None Options: N/A Default value: N/A |
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| values | Map<String,Object> | Definition: Data in values.yaml. The data structure depends on the chart. Range: N/A |
Example Requests
None
Example Responses
Status code: 200
{
"values" : {
"basic" : {
"admin_password" : "******",
"admin_username" : "username"
},
"global" : {
"magento_EIP" : "127.0.0.1",
"magento_EPORT" : 32080,
"namespace" : "demo"
},
"image" : {
"magento_image" : "example.com/demo/magento:latest",
"mysql_image" : "example.com/demo/mysql:5.7.14"
}
}
} Status Codes
| Status Code | Description |
|---|---|
| 200 | The chart values have been obtained. |
Error Codes
See Error Codes.
What is your overall rating for this page?
Thank 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