OperateNode

更新时间:
复制 MD 格式

Use OperateNode to manage nodes.

Operation description

Use OperateNode to manage a specified resource node. Supported operations include disabling or enabling scheduling.

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

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request syntax

POST /api/v1/nodes/{NodeId} HTTP/1.1

Path Parameters

Parameter

Type

Required

Description

Example

NodeId

string

Yes

The node ID.

lingjunxxxx-mgxxx-xxxx

Request parameters

Parameter

Type

Required

Description

Example

body

object

No

The request body.

ResourceGroupId

string

No

The ID of the resource group that contains the node.

rgaekzbrflewn6jjq

Operation

string

Yes

The operation to perform.

  • Cordon: Disables scheduling on the node.

  • Uncordon: Enables scheduling on the node.

  • Drain: Evicts pods from the node.

Cordon

OperationParameters NodeOperationParameters

No

The parameter settings for the node operation.

Response elements

Element

Type

Description

Example

object

Schema of Response

RequestId

string

The ID of the request.

96496E6E-00B4-5F55-80F6-1844FA9E92DC

NodeId

string

The node ID.

lingjunxxxx-mgxxx-xxxx

Examples

Success response

JSON format

{
  "RequestId": "96496E6E-00B4-5F55-80F6-1844FA9E92DC",
  "NodeId": "lingjunxxxx-mgxxx-xxxx"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.