Skip to content

LogTemplateAPI

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

Method HTTP request Description
GetLogSettingForSiteTemplate Get /openapi/v1/{omadacId}/sitetemplates/{siteTemplateId}/site/log-notification Get site template log notification
ModifyLogSettingSiteTemplate Patch /openapi/v1/{omadacId}/sitetemplates/{siteTemplateId}/site/log-notification Modify site template log notification
ResetLogSettingSiteTemplate Post /openapi/v1/{omadacId}/sitetemplates/{siteTemplateId}/site/reset/log-notification Reset site template log notification

GetLogSettingForSiteTemplate

OperationResponseLogNotificationSettingOpenApiVO GetLogSettingForSiteTemplate(ctx, omadacId, siteTemplateId).Execute()

Get site template log notification

Example

package main

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

func main() {
    omadacId := "omadacId_example" // string | Omada ID
    siteTemplateId := "siteTemplateId_example" // string | Site Template ID

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

Path Parameters

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

Other Parameters

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

Name Type Description Notes

Return type

OperationResponseLogNotificationSettingOpenApiVO

Authorization

AccessToken

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

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

ModifyLogSettingSiteTemplate

OperationResponseWithoutResult ModifyLogSettingSiteTemplate(ctx, omadacId, siteTemplateId).LogNotificationSettingEditOpenApiVO(logNotificationSettingEditOpenApiVO).Execute()

Modify site template log notification

Example

package main

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

func main() {
    omadacId := "omadacId_example" // string | Omada ID
    siteTemplateId := "siteTemplateId_example" // string | Site Template ID
    logNotificationSettingEditOpenApiVO := *openapiclient.NewLogNotificationSettingEditOpenApiVO([]openapiclient.LogNotificationEditOpenApiVO{*openapiclient.NewLogNotificationEditOpenApiVO(false, true, true, "LOGIN_OK")}) // LogNotificationSettingEditOpenApiVO | 

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

Path Parameters

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

Other Parameters

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

Name Type Description Notes

logNotificationSettingEditOpenApiVO | LogNotificationSettingEditOpenApiVO | |

Return type

OperationResponseWithoutResult

Authorization

AccessToken

HTTP request headers

  • Content-Type: application/json
  • Accept: /

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

ResetLogSettingSiteTemplate

OperationResponseWithoutResult ResetLogSettingSiteTemplate(ctx, omadacId, siteTemplateId).Execute()

Reset site template log notification

Example

package main

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

func main() {
    omadacId := "omadacId_example" // string | Omada ID
    siteTemplateId := "siteTemplateId_example" // string | Site Template ID

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

Path Parameters

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

Other Parameters

Other parameters are passed through a pointer to a apiResetLogSettingSiteTemplateRequest 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]