All Products
Search
Document Center

Container Service for Kubernetes:DetachClusterFromHub

Last Updated:Sep 22, 2025

Removes an ACK child cluster from an ACK One fleet instance.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

adcp:DetachClusterFromHub

update

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

ClusterId

string

Yes

The fleet ID. You can call the DescribeHubClusters operation to obtain the IDs of created fleet instances.

cb09fda0dc2f94a8397c76638c7ec****

ClusterIds

string

Yes

The array of IDs for the child clusters to remove from the fleet. You can call the DescribeManagedClusters operation to obtain the IDs of child clusters that are added to the fleet.

The value is a JSON string that can be parsed into a string array.

["c1c731554c1ec4a1ca9bb690ff9ed****"]

DetachFromMesh

boolean

No

Specifies whether to remove the child cluster only from the Service Mesh (ASM) instance.

  • true: Removes the child cluster only from the ASM instance.

  • false: Removes the child cluster from both the ASM instance and ACK One.

If this parameter is not set, the default value is false. The child cluster is removed from both the ASM instance and ACK One.

false

Response elements

Element

Type

Description

Example

object

RequestId

string

The request ID.

4412F213-DBCD-5D1B-A9A1-F6C26C6C19D9

ClusterId

string

The fleet ID.

cc490b1e67ccc43a784727f29f33e****

ManagedClusterIds

array

A list of child clusters.

string

The ID of the child cluster.

['c33106e9aeebd480c84da7ec6873a****']

TaskId

string

The task ID.

T-623a96b7bbeaac074b00****

Examples

Success response

JSON format

{
  "RequestId": "4412F213-DBCD-5D1B-A9A1-F6C26C6C19D9",
  "ClusterId": "cc490b1e67ccc43a784727f29f33e****",
  "ManagedClusterIds": [
    "['c33106e9aeebd480c84da7ec6873a****']"
  ],
  "TaskId": "T-623a96b7bbeaac074b00****"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.