Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

REST query /cdn/enforce_state allows forcefully change certain node state, for example, exclude the Transcoder node from route elections. Node can be pushed out of CDN with query

Code Block
languagejs
themeRDark
POST /rest-api/cdn/enforce_state HTTP/1.1
Content-Length: 20                       
Content-Type: application/json           
                                         
{                                        
    "state": "PASSIVE"                   
}                                        

and then can be pulled back

Code Block
languagejs
themeRDark
POST /rest-api/cdn/enforce_state HTTP/1.1
Content-Length: 19                       
Content-Type: application/json           
                                         
{                                        
    "state": "ACTIVE"                   
}                                        

To drop enforced state, an emty query body should be passed

...