Jump to: navigation, search

DisableCellSupport

Revision as of 03:49, 14 November 2013 by Yingjun (talk | contribs) (Created page with "== Use case == * It will be very useful if the admin user could disable a child cell when the child cell needs to be maintained. == Implementation == * Add “disabled” fi...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Use case

  • It will be very useful if the admin user could disable a child cell when the child cell needs to be maintained.

Implementation

  • Add “disabled” field to cells table, check this field when scheduling instance to child cells, and block the cell state reports when the child cell is *disabled*.

API Spec

  • Disable cell
PUT v3/{tenant_id}/os-cells/disable
Response Codes 200
Request parameters
{
“cell”: {
“id”: “123”,
“status”: “disabled”
}
}
  • Enable cell
PUT v3/{tenant_id}/os-cells/enable
Response Codes 200
{
“cell”: {
“id”: “123”,
“status”: “enabled”
}
}