Skip to content

SystemSettingsAPI

All URIs are relative to https://use1-omada-northbound.tplinkcloud.com

Method HTTP request Description
DisableControllerUpgradeNotification Post /openapi/v1/{omadacId}/notification/disable Turn off the software update push switch
GetControllerStatus Get /openapi/v1/{omadacId}/system/setting/controller-status Get controller status

DisableControllerUpgradeNotification

OperationResponseWithoutResult DisableControllerUpgradeNotification(ctx, omadacId).Execute()

Turn off the software update push switch

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "github.com/Tohaker/omada-go-sdk/omada"
)

func main() {
    omadacId := "omadacId_example" // string | Omada ID

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.SystemSettingsAPI.DisableControllerUpgradeNotification(context.Background(), omadacId).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `SystemSettingsAPI.DisableControllerUpgradeNotification``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `DisableControllerUpgradeNotification`: OperationResponseWithoutResult
    fmt.Fprintf(os.Stdout, "Response from `SystemSettingsAPI.DisableControllerUpgradeNotification`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
omadacId string Omada ID

Other Parameters

Other parameters are passed through a pointer to a apiDisableControllerUpgradeNotificationRequest struct via the builder pattern

Name Type Description Notes

Return type

OperationResponseWithoutResult

Authorization

AccessToken

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetControllerStatus

OperationResponseControllerStatus GetControllerStatus(ctx, omadacId).Execute()

Get controller status

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "github.com/Tohaker/omada-go-sdk/omada"
)

func main() {
    omadacId := "omadacId_example" // string | Omada ID

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.SystemSettingsAPI.GetControllerStatus(context.Background(), omadacId).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `SystemSettingsAPI.GetControllerStatus``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `GetControllerStatus`: OperationResponseControllerStatus
    fmt.Fprintf(os.Stdout, "Response from `SystemSettingsAPI.GetControllerStatus`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
omadacId string Omada ID

Other Parameters

Other parameters are passed through a pointer to a apiGetControllerStatusRequest struct via the builder pattern

Name Type Description Notes

Return type

OperationResponseControllerStatus

Authorization

AccessToken

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

[Back to top] [Back to API list] [Back to Model list] [Back to README]