Skip to content

MspSettingAPI

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

Method HTTP request Description
DeleteCertificate Delete /openapi/v1/msp/{mspId}/system/setting/certificate/{cerId} Delete an existing msp certificate
DeleteSSLKey Delete /openapi/v1/msp/{mspId}/system/setting/ssl-key/{keyId} Delete an existing msp SSL key
DisableMspControllerUpgradeNotification Post /openapi/v1/msp/{mspId}/notification/disable Turn off the software update push switch in MSP mode
EvaluateMspFeedback Post /openapi/v1/msp/{mspId}/users/feedback/evaluates Evaluate MSP feedback
GetGeneralSetting Get /openapi/v1/msp/{mspId}/general-setting Get msp general setting
GetMspDstInfo Get /openapi/v1/msp/{mspId}/dst-info Get msp DST
GetMspMailServer Get /openapi/v1/msp/{mspId}/settings/mail-server Get MSP mail server
GetMspMailServerStatusGlobal Get /openapi/v1/msp/{mspId}/account/mail-status Get MSP mailServer status
GetMspUserInterface Get /openapi/v1/msp/{mspId}/settings/user-interface Get msp user interface
GetPrivacyPolicyMsp Get /openapi/v1/msp/{mspId}/privacy-policy Get msp privacy policy
GetRemoteLoggingSetting1 Get /openapi/v1/msp/{mspId}/remote-logging Get msp remote logging setting
GetUiInterface1 Get /openapi/v1/msp/{mspId}/ui-interface Get msp ui interface
ModifyGeneralSetting Patch /openapi/v1/msp/{mspId}/general-setting Modify msp general setting
ModifyMspMailServer Patch /openapi/v1/msp/{mspId}/settings/mail-server Modify MSP mail server
ModifyMspUserInterface Patch /openapi/v1/msp/{mspId}/settings/user-interface Modify msp user interface
ModifyRemoteLoggingSetting Patch /openapi/v1/msp/{mspId}/remote-logging Modify msp remote logging setting
ModifyUiInterface1 Patch /openapi/v1/msp/{mspId}/ui-interface Modify msp ui interface
SendTestMailForMspV2 Post /openapi/v1/msp/{mspId}/settings/test-mail Send test mail for MSP
UploadCertificate Post /openapi/v1/msp/{mspId}/system/setting/certificate Upload msp certificate
UploadSSLKey Post /openapi/v1/msp/{mspId}/system/setting/ssl-key Upload msp SSL key

DeleteCertificate

OperationResponse DeleteCertificate(ctx, mspId, cerId).Execute()

Delete an existing msp certificate

Example

package main

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

func main() {
    mspId := "mspId_example" // string | MSP ID
    cerId := "cerId_example" // string | Certificate ID

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

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
mspId string MSP ID
cerId string Certificate ID

Other Parameters

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

Name Type Description Notes

Return type

OperationResponse

Authorization

AccessToken

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

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

DeleteSSLKey

OperationResponse DeleteSSLKey(ctx, mspId, keyId).Execute()

Delete an existing msp SSL key

Example

package main

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

func main() {
    mspId := "mspId_example" // string | MSP ID
    keyId := "keyId_example" // string | SSL Key ID

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

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
mspId string MSP ID
keyId string SSL Key ID

Other Parameters

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

Name Type Description Notes

Return type

OperationResponse

Authorization

AccessToken

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

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

DisableMspControllerUpgradeNotification

OperationResponseWithoutResult DisableMspControllerUpgradeNotification(ctx, mspId).Execute()

Turn off the software update push switch in MSP mode

Example

package main

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

func main() {
    mspId := "mspId_example" // string | MSP ID

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

Path Parameters

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

Other Parameters

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

EvaluateMspFeedback

OperationResponseWithoutResult EvaluateMspFeedback(ctx, mspId).FeedbackOpenApiVO(feedbackOpenApiVO).Execute()

Evaluate MSP feedback

Example

package main

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

func main() {
    mspId := "mspId_example" // string | MSP ID
    feedbackOpenApiVO := *openapiclient.NewFeedbackOpenApiVO("Content_example", int32(123)) // FeedbackOpenApiVO | 

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

Path Parameters

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

Other Parameters

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

Name Type Description Notes

feedbackOpenApiVO | FeedbackOpenApiVO | |

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]

GetGeneralSetting

OperationResponseMspGeneralSettingOpenApiVO GetGeneralSetting(ctx, mspId).Execute()

Get msp general setting

Example

package main

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

func main() {
    mspId := "mspId_example" // string | MSP ID

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

Path Parameters

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

Other Parameters

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

Name Type Description Notes

Return type

OperationResponseMspGeneralSettingOpenApiVO

Authorization

AccessToken

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

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

GetMspDstInfo

OperationResponseDstOpenApiVO GetMspDstInfo(ctx, mspId).Execute()

Get msp DST

Example

package main

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

func main() {
    mspId := "mspId_example" // string | MSP ID

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

Path Parameters

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

Other Parameters

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

Name Type Description Notes

Return type

OperationResponseDstOpenApiVO

Authorization

AccessToken

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

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

GetMspMailServer

OperationResponseSendMailServerOpenApiVO GetMspMailServer(ctx, mspId).Execute()

Get MSP mail server

Example

package main

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

func main() {
    mspId := "mspId_example" // string | MSP ID

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

Path Parameters

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

Other Parameters

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

Name Type Description Notes

Return type

OperationResponseSendMailServerOpenApiVO

Authorization

AccessToken

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

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

GetMspMailServerStatusGlobal

OperationResponse GetMspMailServerStatusGlobal(ctx, mspId).Execute()

Get MSP mailServer status

Example

package main

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

func main() {
    mspId := "mspId_example" // string | MSP ID

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

Path Parameters

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

Other Parameters

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

Name Type Description Notes

Return type

OperationResponse

Authorization

AccessToken

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

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

GetMspUserInterface

OperationResponseMspUserInterfaceOpenApiVO GetMspUserInterface(ctx, mspId).Execute()

Get msp user interface

Example

package main

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

func main() {
    mspId := "mspId_example" // string | MSP ID

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

Path Parameters

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

Other Parameters

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

Name Type Description Notes

Return type

OperationResponseMspUserInterfaceOpenApiVO

Authorization

AccessToken

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

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

GetPrivacyPolicyMsp

OperationResponsePrivacyPolicy GetPrivacyPolicyMsp(ctx, mspId).Execute()

Get msp privacy policy

Example

package main

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

func main() {
    mspId := "mspId_example" // string | MSP ID

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

Path Parameters

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

Other Parameters

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

Name Type Description Notes

Return type

OperationResponsePrivacyPolicy

Authorization

AccessToken

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

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

GetRemoteLoggingSetting1

OperationResponseMspRemoteLoggingSettingOpenApiVO GetRemoteLoggingSetting1(ctx, mspId).Execute()

Get msp remote logging setting

Example

package main

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

func main() {
    mspId := "mspId_example" // string | MSP ID

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

Path Parameters

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

Other Parameters

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

Name Type Description Notes

Return type

OperationResponseMspRemoteLoggingSettingOpenApiVO

Authorization

AccessToken

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

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

GetUiInterface1

OperationResponseMspUiInterfaceOpenApiVO GetUiInterface1(ctx, mspId).Execute()

Get msp ui interface

Example

package main

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

func main() {
    mspId := "mspId_example" // string | MSP ID

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

Path Parameters

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

Other Parameters

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

Name Type Description Notes

Return type

OperationResponseMspUiInterfaceOpenApiVO

Authorization

AccessToken

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

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

ModifyGeneralSetting

OperationResponseWithoutResult ModifyGeneralSetting(ctx, mspId).ModifyMspGeneralSettingOpenApiVO(modifyMspGeneralSettingOpenApiVO).Execute()

Modify msp general setting

Example

package main

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

func main() {
    mspId := "mspId_example" // string | MSP ID
    modifyMspGeneralSettingOpenApiVO := *openapiclient.NewModifyMspGeneralSettingOpenApiVO() // ModifyMspGeneralSettingOpenApiVO | 

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

Path Parameters

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

Other Parameters

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

Name Type Description Notes

modifyMspGeneralSettingOpenApiVO | ModifyMspGeneralSettingOpenApiVO | |

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]

ModifyMspMailServer

OperationResponseWithoutResult ModifyMspMailServer(ctx, mspId).ModifyMailServerOpenApiVO(modifyMailServerOpenApiVO).Execute()

Modify MSP mail server

Example

package main

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

func main() {
    mspId := "mspId_example" // string | MSP ID
    modifyMailServerOpenApiVO := *openapiclient.NewModifyMailServerOpenApiVO(false, int32(123), "SmtpServer_example", false) // ModifyMailServerOpenApiVO | 

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

Path Parameters

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

Other Parameters

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

Name Type Description Notes

modifyMailServerOpenApiVO | ModifyMailServerOpenApiVO | |

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]

ModifyMspUserInterface

OperationResponseWithoutResult ModifyMspUserInterface(ctx, mspId).MspUserInterfaceOpenApiVO(mspUserInterfaceOpenApiVO).Execute()

Modify msp user interface

Example

package main

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

func main() {
    mspId := "mspId_example" // string | MSP ID
    mspUserInterfaceOpenApiVO := *openapiclient.NewMspUserInterfaceOpenApiVO(int32(123)) // MspUserInterfaceOpenApiVO | 

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

Path Parameters

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

Other Parameters

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

Name Type Description Notes

mspUserInterfaceOpenApiVO | MspUserInterfaceOpenApiVO | |

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]

ModifyRemoteLoggingSetting

OperationResponseWithoutResult ModifyRemoteLoggingSetting(ctx, mspId).ModifyMspRemoteLoggingSettingOpenApiVO(modifyMspRemoteLoggingSettingOpenApiVO).Execute()

Modify msp remote logging setting

Example

package main

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

func main() {
    mspId := "mspId_example" // string | MSP ID
    modifyMspRemoteLoggingSettingOpenApiVO := *openapiclient.NewModifyMspRemoteLoggingSettingOpenApiVO(false) // ModifyMspRemoteLoggingSettingOpenApiVO | 

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

Path Parameters

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

Other Parameters

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

Name Type Description Notes

modifyMspRemoteLoggingSettingOpenApiVO | ModifyMspRemoteLoggingSettingOpenApiVO | |

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]

ModifyUiInterface1

OperationResponseWithoutResult ModifyUiInterface1(ctx, mspId).MspUiInterfaceOpenApiVO(mspUiInterfaceOpenApiVO).Execute()

Modify msp ui interface

Example

package main

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

func main() {
    mspId := "mspId_example" // string | MSP ID
    mspUiInterfaceOpenApiVO := *openapiclient.NewMspUiInterfaceOpenApiVO(false, false, int32(123), false, false) // MspUiInterfaceOpenApiVO | 

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

Path Parameters

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

Other Parameters

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

Name Type Description Notes

mspUiInterfaceOpenApiVO | MspUiInterfaceOpenApiVO | |

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]

SendTestMailForMspV2

OperationResponse SendTestMailForMspV2(ctx, mspId).SendMailServerOpenApiVO(sendMailServerOpenApiVO).Execute()

Send test mail for MSP

Example

package main

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

func main() {
    mspId := "mspId_example" // string | MSP ID
    sendMailServerOpenApiVO := *openapiclient.NewSendMailServerOpenApiVO(false, int32(123), "SmtpServer_example", false) // SendMailServerOpenApiVO | 

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

Path Parameters

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

Other Parameters

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

Name Type Description Notes

sendMailServerOpenApiVO | SendMailServerOpenApiVO | |

Return type

OperationResponse

Authorization

AccessToken

HTTP request headers

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

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

UploadCertificate

OperationResponse UploadCertificate(ctx, mspId).CerName(cerName).UploadCertificateRequest(uploadCertificateRequest).Execute()

Upload msp certificate

Example

package main

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

func main() {
    mspId := "mspId_example" // string | MSP ID
    cerName := "cerName_example" // string | Upload certificate file name
    uploadCertificateRequest := *openapiclient.NewUploadCertificateRequest("TODO") // UploadCertificateRequest |  (optional)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.MspSettingAPI.UploadCertificate(context.Background(), mspId).CerName(cerName).UploadCertificateRequest(uploadCertificateRequest).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `MspSettingAPI.UploadCertificate``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `UploadCertificate`: OperationResponse
    fmt.Fprintf(os.Stdout, "Response from `MspSettingAPI.UploadCertificate`: %v\n", resp)
}

Path Parameters

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

Other Parameters

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

Name Type Description Notes

cerName | string | Upload certificate file name | uploadCertificateRequest | UploadCertificateRequest | |

Return type

OperationResponse

Authorization

AccessToken

HTTP request headers

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

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

UploadSSLKey

OperationResponse UploadSSLKey(ctx, mspId).KeyName(keyName).UploadSSLKeyRequest(uploadSSLKeyRequest).Execute()

Upload msp SSL key

Example

package main

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

func main() {
    mspId := "mspId_example" // string | MSP ID
    keyName := "keyName_example" // string | 
    uploadSSLKeyRequest := *openapiclient.NewUploadSSLKeyRequest("TODO") // UploadSSLKeyRequest |  (optional)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.MspSettingAPI.UploadSSLKey(context.Background(), mspId).KeyName(keyName).UploadSSLKeyRequest(uploadSSLKeyRequest).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `MspSettingAPI.UploadSSLKey``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `UploadSSLKey`: OperationResponse
    fmt.Fprintf(os.Stdout, "Response from `MspSettingAPI.UploadSSLKey`: %v\n", resp)
}

Path Parameters

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

Other Parameters

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

Name Type Description Notes

keyName | string | | uploadSSLKeyRequest | UploadSSLKeyRequest | |

Return type

OperationResponse

Authorization

AccessToken

HTTP request headers

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

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