How to Enable and Disable Avi GSLB maintenance mode via API
search cancel

How to Enable and Disable Avi GSLB maintenance mode via API

book

Article ID: 439916

calendar_today

Updated On:

Products

VMware Avi Load Balancer

Issue/Introduction

In large scale deployments it may be more convenient to enable/disable GSLB maintenance mode via API instead of utilizing the CLI (shell).

Referece documentation: GSLB Maintenance Mode

Environment

Affects Version(s):

22.1.x

30.1.x

30.2.x

31.1.x

31.2.x 

Cause

At this time disbale/enable of GSLB maintenance mode is not exposed in the Avi controller GUI.

Resolution

Please ensure you execute the following APIs to the Leader controller node of the Leader GSLB site.

Enable GSLB Maintenance Mode:

Endpoint:

POST /api/gslbsiteops/maintenancemode

Headers:

X-Avi-Version: 30.2.1  <-- Replace with your controller version
Content-Type:application/json

Body:

{
  "enabled": "True"
}

Disable GSLB Maintenance Mode:

Endpoint:

POST /api/gslbsiteops/maintenancemode

Headers:

X-Avi-Version: 30.2.1  <-- Replace with your controller version
Content-Type:application/json

Body: *** Leave Blank ***