{"type":"api","title":"Retrieve DLM state post geoha switchover","meta":{"id":"/apps/pubhub/media/crosswork-network-controller-7-1/f445c17e25a1120e8fbde4bd413083d0fd88b2b3/4ecd3a14-d0be-3ef0-ba5d-c3cd958217a7","info":{"title":"Crosswork Device Lifecycle Management (DLM) Inventory API","description":"Crosswork DLM Inventory APIs allow the user to perform CRUD operations on Crosswork Tags, Credentials, Providers and Nodes.","version":"1.0.0","contact":{"name":"Crosswork Team, Cisco","email":"support@cisco.com"},"license":{"name":"Cisco Software License Agreement","url":"https://www.cisco.com/public/sw-license-agreement.html"}},"security":[{"bearerAuth":[]}],"x-parser-conf":{"overview":{"markdownPath":"reference/INFRA/DLM/nodedbapi-overview.md"}},"swagger":"2.0","basePath":"/crosswork/inventory/v1","schemes":["http","https"],"securityDefinitions":{"bearerAuth":{"type":"apiKey","description":"bearer auth","name":"Authorization","in":"header"}}},"spec":{"summary":"Retrieve DLM state post geoha switchover","description":"Get the DLM App state post geo ha switchover, input is empty body, e.g, {} GeoHAAppState object as an input is just to satisfy API.","operationId":"NodeDb_GetSwitchOverState","responses":{"200":{"description":"A successful response.","schema":{"type":"object","properties":{"mode":{"title":"DLM application mode INVALID/READ/READ_WRITE","type":"string","enum":["INVALID_MODE","READ_MODE","READ_WRITE_MODE"],"default":"INVALID_MODE","$$ref":"#/definitions/robotapiGeoHAAppMode"},"switchoverstate":{"type":"object","properties":{"last_switchover_notification_time":{"type":"string","format":"int64","title":"switch over notification time(epoch time in milliseconds)"},"dampening_period_left_milli_seconds":{"type":"string","format":"int64","title":"dampening period left in milliseconds"}},"$$ref":"#/definitions/robotapiGeoHAAppSwitchOverState"},"error":{"type":"string"}},"example":{"mode":"READ_WRITE_MODE","switchoverstate":{"last_switchover_notification_time":"1733908308","dampening_period_left_milli_seconds":"12000"},"error":"string"},"$$ref":"#/definitions/robotapiGeoHAAppState"}},"default":{"description":"An unexpected error response.","schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"type_url":{"type":"string"},"value":{"type":"string","format":"byte"}},"$$ref":"#/definitions/protobufAny"}}},"example":{"error":"string","code":0,"message":"string","details":[{"type_url":"string","value":"string"}]},"$$ref":"#/definitions/runtimeError"}}},"parameters":[{"name":"body","in":"body","description":"Get the DLM App state post geo ha switchover request","required":true,"schema":{"type":"object","properties":{"mode":{"title":"DLM application mode INVALID/READ/READ_WRITE","type":"string","enum":["INVALID_MODE","READ_MODE","READ_WRITE_MODE"],"default":"INVALID_MODE","$$ref":"#/definitions/robotapiGeoHAAppMode"},"switchoverstate":{"type":"object","properties":{"last_switchover_notification_time":{"type":"string","format":"int64","title":"switch over notification time(epoch time in milliseconds)"},"dampening_period_left_milli_seconds":{"type":"string","format":"int64","title":"dampening period left in milliseconds"}},"$$ref":"#/definitions/robotapiGeoHAAppSwitchOverState"},"error":{"type":"string"}},"example":{"mode":"READ_WRITE_MODE","switchoverstate":{"last_switchover_notification_time":"1733908308","dampening_period_left_milli_seconds":"12000"},"error":"string"},"$$ref":"#/definitions/robotapiGeoHAAppState"}}],"tags":["NodeDb"],"__originalOperationId":"NodeDb_GetSwitchOverState","consumes":["application/json"],"produces":["application/json"],"security":[{"bearerAuth":[]}],"method":"post","path":"/geoha/switchoverstate/query"}}