Skip to content

OLTONUManagementAPI

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

Method HTTP request Description
EditOnuGlobalConfigStatus Post /openapi/v1/{omadacId}/sites/{siteId}/olts/{deviceMac}/pon/onu-management/global-config/edit Modify an existing ONU global config status
EditOnuInformationAdminStatusConfig Post /openapi/v1/{omadacId}/sites/{siteId}/olts/{deviceMac}/pon/onu-management/informations/admin/edit Modify an existing ONU admin status config
EditOnuInformationDescriptionConfig Post /openapi/v1/{omadacId}/sites/{siteId}/olts/{deviceMac}/pon/onu-management/informations/description/edit Modify an existing ONU description
EditOnuIsolationStatus Post /openapi/v1/{omadacId}/sites/{siteId}/olts/{deviceMac}/pon/onu-management/global-config/isolation/edit Modify an existing ONU isolation status
GetOnuGlobalConfigStatus Get /openapi/v1/{omadacId}/sites/{siteId}/olts/{deviceMac}/pon/onu-management/global-config/get Get ONU global config status
GetOnuInformationConfigList Get /openapi/v1/{omadacId}/sites/{siteId}/olts/{deviceMac}/pon/onu-management/informations/list Get ONU information config list
GetOnuInformationConfigPage Get /openapi/v1/{omadacId}/sites/{siteId}/olts/{deviceMac}/pon/onu-management/informations/page Get ONU information config page
GetOnuInformationDetail Get /openapi/v1/{omadacId}/sites/{siteId}/olts/{deviceMac}/pon/onu-management/informations/detail/get Get ONU information detail
GetOnuIsolationStatus Get /openapi/v1/{omadacId}/sites/{siteId}/olts/{deviceMac}/pon/onu-management/global-config/isolation/get Get ONU isolation status
GetOnuRebootStatusConfigList Get /openapi/v1/{omadacId}/sites/{siteId}/olts/{deviceMac}/pon/onu-management/informations/reboot-status/list Get ONU reboot status
RebootOnu Post /openapi/v1/{omadacId}/sites/{siteId}/olts/{deviceMac}/pon/onu-management/informations/onu/reboot Reboot ONU

EditOnuGlobalConfigStatus

OperationResponseDeviceResponseBodyVoid EditOnuGlobalConfigStatus(ctx, omadacId, siteId, deviceMac).OnuGlobalConfigStatusEditDTO(onuGlobalConfigStatusEditDTO).Execute()

Modify an existing ONU global config status

Example

package main

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

func main() {
    omadacId := "omadacId_example" // string | Omada ID
    siteId := "siteId_example" // string | Site ID
    deviceMac := "deviceMac_example" // string | Device MAC address, like AA-BB-CC-DD-EE-FF
    onuGlobalConfigStatusEditDTO := *openapiclient.NewOnuGlobalConfigStatusEditDTO("OnuIsolation_example") // OnuGlobalConfigStatusEditDTO | 

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

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
omadacId string Omada ID
siteId string Site ID
deviceMac string Device MAC address, like AA-BB-CC-DD-EE-FF

Other Parameters

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

Name Type Description Notes

onuGlobalConfigStatusEditDTO | OnuGlobalConfigStatusEditDTO | |

Return type

OperationResponseDeviceResponseBodyVoid

Authorization

AccessToken

HTTP request headers

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

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

EditOnuInformationAdminStatusConfig

OperationResponseDeviceResponseBodyVoid EditOnuInformationAdminStatusConfig(ctx, omadacId, siteId, deviceMac).OnuInformationAdminStatusEditConfigDTO(onuInformationAdminStatusEditConfigDTO).Execute()

Modify an existing ONU admin status config

Example

package main

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

func main() {
    omadacId := "omadacId_example" // string | Omada ID
    siteId := "siteId_example" // string | Site ID
    deviceMac := "deviceMac_example" // string | Device MAC address, like AA-BB-CC-DD-EE-FF
    onuInformationAdminStatusEditConfigDTO := *openapiclient.NewOnuInformationAdminStatusEditConfigDTO("AdminStatus_example", []string{"Keys_example"}) // OnuInformationAdminStatusEditConfigDTO | 

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

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
omadacId string Omada ID
siteId string Site ID
deviceMac string Device MAC address, like AA-BB-CC-DD-EE-FF

Other Parameters

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

Name Type Description Notes

onuInformationAdminStatusEditConfigDTO | OnuInformationAdminStatusEditConfigDTO | |

Return type

OperationResponseDeviceResponseBodyVoid

Authorization

AccessToken

HTTP request headers

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

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

EditOnuInformationDescriptionConfig

OperationResponseDeviceResponseBodyVoid EditOnuInformationDescriptionConfig(ctx, omadacId, siteId, deviceMac).OnuInformationDescriptionEditConfigDTO(onuInformationDescriptionEditConfigDTO).Execute()

Modify an existing ONU description

Example

package main

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

func main() {
    omadacId := "omadacId_example" // string | Omada ID
    siteId := "siteId_example" // string | Site ID
    deviceMac := "deviceMac_example" // string | Device MAC address, like AA-BB-CC-DD-EE-FF
    onuInformationDescriptionEditConfigDTO := *openapiclient.NewOnuInformationDescriptionEditConfigDTO("Key_example", "OnuDescription_example") // OnuInformationDescriptionEditConfigDTO | 

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

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
omadacId string Omada ID
siteId string Site ID
deviceMac string Device MAC address, like AA-BB-CC-DD-EE-FF

Other Parameters

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

Name Type Description Notes

onuInformationDescriptionEditConfigDTO | OnuInformationDescriptionEditConfigDTO | |

Return type

OperationResponseDeviceResponseBodyVoid

Authorization

AccessToken

HTTP request headers

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

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

EditOnuIsolationStatus

OperationResponseDeviceResponseBodyVoid EditOnuIsolationStatus(ctx, omadacId, siteId, deviceMac).OnuIsolationStatusDTO(onuIsolationStatusDTO).Execute()

Modify an existing ONU isolation status

Example

package main

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

func main() {
    omadacId := "omadacId_example" // string | Omada ID
    siteId := "siteId_example" // string | Site ID
    deviceMac := "deviceMac_example" // string | Device MAC address, like AA-BB-CC-DD-EE-FF
    onuIsolationStatusDTO := *openapiclient.NewOnuIsolationStatusDTO() // OnuIsolationStatusDTO | 

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

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
omadacId string Omada ID
siteId string Site ID
deviceMac string Device MAC address, like AA-BB-CC-DD-EE-FF

Other Parameters

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

Name Type Description Notes

onuIsolationStatusDTO | OnuIsolationStatusDTO | |

Return type

OperationResponseDeviceResponseBodyVoid

Authorization

AccessToken

HTTP request headers

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

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

GetOnuGlobalConfigStatus

OperationResponseOnuGlobalConfigStatusDTO GetOnuGlobalConfigStatus(ctx, omadacId, siteId, deviceMac).Execute()

Get ONU global config status

Example

package main

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

func main() {
    omadacId := "omadacId_example" // string | Omada ID
    siteId := "siteId_example" // string | Site ID
    deviceMac := "deviceMac_example" // string | Device MAC address, like AA-BB-CC-DD-EE-FF

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

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
omadacId string Omada ID
siteId string Site ID
deviceMac string Device MAC address, like AA-BB-CC-DD-EE-FF

Other Parameters

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

Name Type Description Notes

Return type

OperationResponseOnuGlobalConfigStatusDTO

Authorization

AccessToken

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

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

GetOnuInformationConfigList

OperationResponseListOnuInformationConfigDTO GetOnuInformationConfigList(ctx, omadacId, siteId, deviceMac).QueryParam(queryParam).Execute()

Get ONU information config list

Example

package main

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

func main() {
    omadacId := "omadacId_example" // string | Omada ID
    siteId := "siteId_example" // string | Site ID
    deviceMac := "deviceMac_example" // string | Device MAC address, like AA-BB-CC-DD-EE-FF
    queryParam := *openapiclient.NewOnuManagementListQueryRequestDTO("PonPort_example") // OnuManagementListQueryRequestDTO | 

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

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
omadacId string Omada ID
siteId string Site ID
deviceMac string Device MAC address, like AA-BB-CC-DD-EE-FF

Other Parameters

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

Name Type Description Notes

queryParam | OnuManagementListQueryRequestDTO | |

Return type

OperationResponseListOnuInformationConfigDTO

Authorization

AccessToken

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

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

GetOnuInformationConfigPage

OperationResponsePageResponseOnuInformationConfigDTO GetOnuInformationConfigPage(ctx, omadacId, siteId, deviceMac).QueryParam(queryParam).Execute()

Get ONU information config page

Example

package main

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

func main() {
    omadacId := "omadacId_example" // string | Omada ID
    siteId := "siteId_example" // string | Site ID
    deviceMac := "deviceMac_example" // string | Device MAC address, like AA-BB-CC-DD-EE-FF
    queryParam := *openapiclient.NewOnuManagementPageQueryRequestDTO("PonPort_example") // OnuManagementPageQueryRequestDTO | 

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

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
omadacId string Omada ID
siteId string Site ID
deviceMac string Device MAC address, like AA-BB-CC-DD-EE-FF

Other Parameters

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

Name Type Description Notes

queryParam | OnuManagementPageQueryRequestDTO | |

Return type

OperationResponsePageResponseOnuInformationConfigDTO

Authorization

AccessToken

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

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

GetOnuInformationDetail

OperationResponseOnuDetailConfigDTO GetOnuInformationDetail(ctx, omadacId, siteId, deviceMac).QueryParam(queryParam).Execute()

Get ONU information detail

Example

package main

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

func main() {
    omadacId := "omadacId_example" // string | Omada ID
    siteId := "siteId_example" // string | Site ID
    deviceMac := "deviceMac_example" // string | Device MAC address, like AA-BB-CC-DD-EE-FF
    queryParam := *openapiclient.NewOnuInfoDetailRequestDTO("Key_example") // OnuInfoDetailRequestDTO | 

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

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
omadacId string Omada ID
siteId string Site ID
deviceMac string Device MAC address, like AA-BB-CC-DD-EE-FF

Other Parameters

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

Name Type Description Notes

queryParam | OnuInfoDetailRequestDTO | |

Return type

OperationResponseOnuDetailConfigDTO

Authorization

AccessToken

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

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

GetOnuIsolationStatus

OperationResponseOnuIsolationStatusDTO GetOnuIsolationStatus(ctx, omadacId, siteId, deviceMac).Execute()

Get ONU isolation status

Example

package main

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

func main() {
    omadacId := "omadacId_example" // string | Omada ID
    siteId := "siteId_example" // string | Site ID
    deviceMac := "deviceMac_example" // string | Device MAC address, like AA-BB-CC-DD-EE-FF

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

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
omadacId string Omada ID
siteId string Site ID
deviceMac string Device MAC address, like AA-BB-CC-DD-EE-FF

Other Parameters

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

Name Type Description Notes

Return type

OperationResponseOnuIsolationStatusDTO

Authorization

AccessToken

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

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

GetOnuRebootStatusConfigList

OperationResponseListOnuInformationRebootStatusConfigDTO GetOnuRebootStatusConfigList(ctx, omadacId, siteId, deviceMac).Execute()

Get ONU reboot status

Example

package main

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

func main() {
    omadacId := "omadacId_example" // string | Omada ID
    siteId := "siteId_example" // string | Site ID
    deviceMac := "deviceMac_example" // string | Device MAC address, like AA-BB-CC-DD-EE-FF

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

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
omadacId string Omada ID
siteId string Site ID
deviceMac string Device MAC address, like AA-BB-CC-DD-EE-FF

Other Parameters

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

Name Type Description Notes

Return type

OperationResponseListOnuInformationRebootStatusConfigDTO

Authorization

AccessToken

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

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

RebootOnu

OperationResponseDeviceResponseBodyListSingleOnuRebootResponseDTO RebootOnu(ctx, omadacId, siteId, deviceMac).OnuInformationRebootRequestDTO(onuInformationRebootRequestDTO).Execute()

Reboot ONU

Example

package main

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

func main() {
    omadacId := "omadacId_example" // string | Omada ID
    siteId := "siteId_example" // string | Site ID
    deviceMac := "deviceMac_example" // string | Device MAC address, like AA-BB-CC-DD-EE-FF
    onuInformationRebootRequestDTO := *openapiclient.NewOnuInformationRebootRequestDTO([]openapiclient.SingleOnuRebootRequestDTO{*openapiclient.NewSingleOnuRebootRequestDTO()}) // OnuInformationRebootRequestDTO | 

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

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
omadacId string Omada ID
siteId string Site ID
deviceMac string Device MAC address, like AA-BB-CC-DD-EE-FF

Other Parameters

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

Name Type Description Notes

onuInformationRebootRequestDTO | OnuInformationRebootRequestDTO | |

Return type

OperationResponseDeviceResponseBodyListSingleOnuRebootResponseDTO

Authorization

AccessToken

HTTP request headers

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

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