Start maintenance mode

POST /platform/infrastructure/allocators/{allocator_id}/maintenance-mode/_start

Starts maintenance mode on the allocator.

Path parameters

Query parameters

  • reason string

    Provides a reason for changing the maintenance mode which will appear as a message on the allocator.

Responses

  • The start maintenance mode command was issued successfully

    Additional properties are allowed.

  • The start maintenance mode command was prohibited for the given allocator. (code: root.unauthorized.rbac)

    Hide headers attribute Show headers attribute
    • The error codes associated with the response

      Value is root.unauthorized.rbac.

    Hide response attribute Show response attribute object
    • errors array[object] Required

      A list of errors that occurred in the failing request

      Hide errors attributes Show errors attributes object
      • code string Required

        A structured code representing the error type that occurred

      • message string Required

        A human readable message describing the error that occurred

      • fields array[string]

        If the error can be tied to a specific field or fields in the user request, this lists those fields

  • The allocator specified by {allocator_id} cannot be found. (code: allocators.allocator_not_found)

    Hide headers attribute Show headers attribute
    • The error codes associated with the response

      Value is allocators.allocator_not_found.

    Hide response attribute Show response attribute object
    • errors array[object] Required

      A list of errors that occurred in the failing request

      Hide errors attributes Show errors attributes object
      • code string Required

        A structured code representing the error type that occurred

      • message string Required

        A human readable message describing the error that occurred

      • fields array[string]

        If the error can be tied to a specific field or fields in the user request, this lists those fields

POST /platform/infrastructure/allocators/{allocator_id}/maintenance-mode/_start
curl \
 -X POST https://{{hostname}}/api/v1/platform/infrastructure/allocators/{allocator_id}/maintenance-mode/_start
Response examples (202)
{}
Response examples (403)
# Headers
x-cloud-error-codes: root.unauthorized.rbac

# Payload
{
  "errors": [
    {
      "code": "string",
      "message": "string",
      "fields": [
        "string"
      ]
    }
  ]
}
Response examples (404)
# Headers
x-cloud-error-codes: allocators.allocator_not_found

# Payload
{
  "errors": [
    {
      "code": "string",
      "message": "string",
      "fields": [
        "string"
      ]
    }
  ]
}