安裝自訂服務元件。
介面說明
介面說明
調用該介面時,請注意以下資訊:
-
叢集狀態處於
運行中。 -
叢集系列為以下兩種:
公用雲標準版叢集
公用雲託管版叢集
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
ehpc:InstallAddon |
create |
*全部資源
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| AddonName |
string |
是 |
自訂服務元件名稱。 |
Login |
| AddonVersion |
string |
是 |
自訂服務元件版本。 |
1.0 |
| ClusterId |
string |
是 |
叢集 ID。 |
ehpc-hz-FYUr32**** |
| ServicesSpec |
string |
是 |
元件服務配置詳情。 |
`[{"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"}]}]` |
| ResourcesSpec |
string |
是 |
組件資源配置詳情。 |
`{"EipResource": {"AutoCreate": true}, "EcsResources": [{"InstanceType": "ecs.c7.xlarge", "ImageId": "centos_7_6_xxx.vhd", "SystemDisk": {"Category": "cloud_essd", "Size": 40, "Level": "PL0"}]}` |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
返回參數。 |
||
| RequestId |
string |
請求 ID。 |
B745C159-3155-4B94-95D0-4B73D4D2**** |
| ClusterId |
string |
叢集 ID。 |
ehpc-hz-FYUr32**** |
| AddonId |
string |
自訂服務元件 ID。 |
Login-1.0-W4g**** |
樣本
正常返回樣本
JSON格式
{
"RequestId": "B745C159-3155-4B94-95D0-4B73D4D2****",
"ClusterId": "ehpc-hz-FYUr32****",
"AddonId": "Login-1.0-W4g****"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | InvalidParams | The specified parameter %s is invalid. | 指定的參數 %s 無效。 |
| 400 | NotEnabled | You have not enabled this service | 您的賬戶還未開通此服務 |
| 500 | UnknownError | An unknown error occurred. | 未知錯誤 |
| 404 | ClusterNotFound | The specified cluster does not exist. | 指定的叢集不存在,請您檢查該參數是否正確。 |
| 404 | ManagerNotFound | The manager nodes do not exist or their status is abnormal. | 管理節點不存在或狀態異常。 |
| 503 | ServiceUnavailable | The request has failed due to a temporary failure of the server | 請求失敗,服務暫時不可用 |
| 406 | DbError | A database service error occurred. | 資料庫請求失敗 |
| 406 | EcsError | An error occurred while calling the ECS API operation. | ECS API調用出錯. %s |
| 406 | RedisError | A Redis service error occurred. | Redis請求失敗 |
| 406 | AliyunError | An Alibaba Cloud product error occurred. | 阿里雲產品錯誤。%s |
| 406 | AgentError | The agent service request failed: %s | 操作未成功:%s |
| 407 | NotAuthorized | You are not authorized by RAM for this request. | 此請求未獲得RAM授權 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。