Installs an add-on.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
arms:InstallAddon |
none |
*Environment
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Name |
string |
Yes |
The name of the add-on. |
mysql |
| AddonVersion |
string |
Yes |
The version of the add-on. |
0.0.1 |
| AliyunLang |
string |
No |
The language. Valid values: zh and en. Default value: zh. |
zh |
| EnvironmentId |
string |
Yes |
The environment ID. |
env-xxx |
| Values |
string |
No |
The metadata. |
{"host":"mysql-service.default","port":3306,"username":"root","password":"roots"} |
| ReleaseName |
string |
No |
The name of the add-on after it is installed. If you do not specify this parameter, a default rule name is generated. |
mysql-xxxxx |
| DryRun |
boolean |
No |
Specifies whether to perform only a dry run, without performing the actual request. Default value: false. |
false |
| RegionId |
string |
No |
The region ID. |
cn-hangzhou |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
response |
||
| RequestId |
string |
The ID of the request. |
C21AB7CF-B7AF-410F-BD61-82D1567F**** |
| Code |
integer |
The HTTP status code. The status code 200 indicates that the request was successful. |
200 |
| Success |
boolean |
Indicates whether the request was successful. Valid values: true and false. |
true |
| Message |
string |
The returned message. |
success |
| Data |
object |
The returned data. |
|
| AddonName |
string |
The name of the add-on. |
mysql |
| AlertRuleCount |
integer |
The number of alert rules. |
1 |
| Conditions |
array<object> |
The installation phase. |
|
|
object |
Condition information. |
||
| FirstTransitionTime |
string |
The first transition time. |
2018-01-31T14:32:19Z |
| LastTransitionTime |
string |
The last transition time. |
2018-01-31T14:32:19Z |
| Message |
string |
The returned message. |
xxxx |
| Reason |
string |
The reason for the failure. |
xxxx |
| Status |
string |
The status of the phase. |
True |
| Type |
string |
The type of the phase. |
Loaded |
| CreateTime |
string |
The time when the add-on was created. |
2023-09-22T16:56:29+08:00 |
| DashboardCount |
integer |
The number of dashboards. |
1 |
| ExporterCount |
integer |
The number of exporters. |
2 |
| HaveConfig |
boolean |
Indicates whether the configuration is available. |
true |
| InstallUserId |
string |
The user ID. |
123456 |
| Language |
string |
The language. |
zh |
| ReleaseId |
string |
The release ID after installation. |
be29c093-3fd6-4fb6-9430-797030cc183a |
| ReleaseName |
string |
The name of the release. |
mysql-1695372983039 |
| Scene |
string |
The scenario. |
database |
| Status |
string |
The status. |
0 |
| UpdateTime |
string |
The time when the add-on was updated. |
2023-09-22T16:56:29+08:00 |
| UserId |
string |
The user ID. |
111 |
| Version |
string |
The version of the add-on. |
0.0.1 |
| EnvironmentId |
string |
The environment ID. |
env-xxxx |
| RegionId |
string |
The region ID. |
cn-heyuan |
| Managed |
boolean |
Indicates whether the component is fully managed. |
true |
Examples
Success response
JSON format
{
"RequestId": "C21AB7CF-B7AF-410F-BD61-82D1567F****",
"Code": 200,
"Success": true,
"Message": "success",
"Data": {
"AddonName": "mysql",
"AlertRuleCount": 1,
"Conditions": [
{
"FirstTransitionTime": "2018-01-31T14:32:19Z",
"LastTransitionTime": "2018-01-31T14:32:19Z",
"Message": "xxxx",
"Reason": "xxxx",
"Status": "True",
"Type": "Loaded"
}
],
"CreateTime": "2023-09-22T16:56:29+08:00",
"DashboardCount": 1,
"ExporterCount": 2,
"HaveConfig": true,
"InstallUserId": "123456",
"Language": "zh",
"ReleaseId": "be29c093-3fd6-4fb6-9430-797030cc183a",
"ReleaseName": "mysql-1695372983039",
"Scene": "database",
"Status": "0",
"UpdateTime": "2023-09-22T16:56:29+08:00",
"UserId": "111",
"Version": "0.0.1",
"EnvironmentId": "env-xxxx",
"RegionId": "cn-heyuan",
"Managed": true
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.