Host

PUT /api/host/{hostname}

    Update the specified host.
    Note, this is only supported when Ceph Orchestrator is enabled.
    :param hostname: The name of the host to be processed.
    :param update_labels: To update the labels.
    :param labels: List of labels.
    :param maintenance: Enter/Exit maintenance mode.
    :param force: Force enter maintenance mode.
    :param drain: Drain host
    

Request

  • Base URL
    / (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /api/host/{hostname}
  • Auth
    HTTP bearer

Path parameters

hostnamestring required

Hostname

Request body

drainboolean

Drain Host

forceboolean

Force Enter Maintenance

labelsstring[]

Host Labels

maintenanceboolean

Enter/Exit Maintenance

update_labelsboolean

Update Labels

Response

Resource updated.

object required

Changes

No recorded changes to this operation across all 68 revisions of this API.