All Products
Search
Document Center

:Uninstall components from a cluster

最終更新日:Dec 12, 2023

You can call the UnInstallClusterAddons operation to uninstall the components in a cluster by component names.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request header

This operation uses only common request headers. For more information, see Common request parameters.

Request syntax

POST /clusters/{ClusterId}/components/uninstall HTTP/1.1

Request parameters

Parameter

Type

Position

Required

Example

Description

ClusterId String Path Yes c5b5e80b0b64a4bf6939d2d8fbbc5****

The cluster ID.

Array Body No

The list of components that you want to uninstall. The list is an array.

name String Body No ack-node-problem-detector

The component name.

cleanup_cloud_resources Boolean Body No true

Specifies whether to release cloud resources.

Examples

Sample requests

POST /clusters/c5b5e80b0b64a4bf6939d2d8fbbc5****/components/uninstall HTTP/1.1
Host:cs.aliyuncs.com
Content-Type:application/json

[ {
  "name" : "ack-node-problem-detector",
  "cleanup_cloud_resources" : true
} ]

Description of sample requests

POST /clusters/c3fb96524f9274b4495df0f12a6b5****/components/uninstall?RegionId=cn-hangzhou --header "Content-Type=application/json;" --body '[{"name":"ack-node-problem-detector"}]'

Sample success responses

JSON format

HTTP/1.1 200 OK

Error codes

For a list of error codes, see Service error codes.