All Products
Search
Document Center

:UpdateNodeRunMode

更新時間:May 16, 2024

Freezes or unfreezes a node.

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 parameters

Parameter

Type

Required

Example

Description

Action

String

Yes

UpdateNodeRunMode

The operation that you want to perform. Set the value to UpdateNodeRunMode.

ProjectEnv

String

Yes

PROD

The environment in which the node runs. Valid values: DEV and PROD. The value DEV indicates the development environment, and the value PROD indicates the production environment.

NodeId

Long

Yes

1234

The node ID. You can call the ListNodes operation to query the node ID.

SchedulerType

Integer

Yes

0

The operation that you want to perform on the node. Valid values:

  • 0: indicates that you want to unfreeze the node.

  • 2: indicates that you want to freeze the node.

Response parameters

Parameter

Type

Example

Description

Success

Boolean

true

Indicates whether the request was successful. Valid values:

  • true

  • false

RequestId

String

E6F0DBDD-5AD****

The request ID.

Examples

Sample requests

http(s)://[Endpoint]/?Action=UpdateNodeRunMode
&ProjectEnv=PROD
&NodeId=1234
&SchedulerType=0
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<UpdateNodeRunModeResponse>
    <Success>true</Success>
    <RequestId>E6F0DBDD-5AD****</RequestId>
</UpdateNodeRunModeResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "Success" : true,
  "RequestId" : "E6F0DBDD-5AD****"
}

Error codes

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