InstallAddon
安装自定义服务组件
服务地址:
华东1(杭州)
输入参数
只看必填
AddonName自定义服务组件名称
AddonVersion自定义服务组件版本
ClusterId集群ID
ServicesSpec组件服务配置详情
ResourcesSpec组件资源配置详情
插件下载了解更多
VS Code 插件
安装插件之前,确保已安装 VS Code安装插件之前,确保已安装 VS Code
Alibaba Cloud Developer Toolkit is a collection of extensions that can help access Alibaba Cloud services in Visual Studio Code.
JetBrains 插件
安装插件之前,确保已安装 JetBrains IDE安装插件之前,确保已安装 JetBrains IDE
The Alibaba Cloud Developer Toolkit for JetBrains makes it easier to access Alibaba Cloud services.

接口说明

调用该接口时,请注意以下信息:

  • 集群状态处于运行中

  • 集群系列为以下两种:

    • 公共云标准版集群
    • 公共云托管版集群

请求参数

字段名称字段详情
AddonNamestring

自定义服务组件名称。

示例值:Login枚举值:参考取值来源:
    GetAddon
    ListAddonTemplates
AddonVersionstring

自定义服务组件版本。

示例值:1.0参考取值来源:
    ListAddons
    GetAddon
ClusterIdstring

集群 ID。

示例值:ehpc-hz-FYUr32****参考取值来源:
    GetCluster
    ListClusters
    CreateCluster
ServicesSpecstring

组件服务配置详情。

示例值:`[{"ServiceName": "SSH", "ServiceAccessType": null, "ServiceAccessUrl": null, "NetworkACL": [{"IpProtocol": "TCP", "Port": 22, "SourceCidrIp": "0.0.0.0/0"}]}, {"ServiceName": "VNC", "ServiceAccessType": null, "ServiceAccessUrl": null, "NetworkACL": [{"IpProtocol": "TCP", "Port": 12016, "SourceCidrIp": "0.0.0.0/0"}]}]`
ResourcesSpecstring

组件资源配置详情。

示例值:`{"EipResource": {"AutoCreate": true}, "EcsResources": [{"InstanceType": "ecs.c7.xlarge", "ImageId": "centos_7_6_xxx.vhd", "SystemDisk": {"Category": "cloud_essd", "Size": 40, "Level": "PL0"}]}`

返回参数

字段名称字段详情
RequestIdstring

请求 ID。

示例值:B745C159-3155-4B94-95D0-4B73D4D2****
ClusterIdstring

集群 ID。

示例值:ehpc-hz-FYUr32****
AddonIdstring

自定义服务组件 ID。

示例值:Login-1.0-W4g****
变更历史
暂无变更历史