OLTONURegisterAPI
All URIs are relative to https://use1-omada-northbound.tplinkcloud.com
| Method | HTTP request | Description |
|---|---|---|
| AddAuthenticationConfig | Post /openapi/v1/{omadacId}/sites/{siteId}/olts/{deviceMac}/pon/onu-register/authentications/add | Create authentication config |
| AddOnuAutoAuthenticationRuleConfig | Post /openapi/v1/{omadacId}/sites/{siteId}/olts/{deviceMac}/pon/onu-register/auto-authentication/rules/add | Create ONU auto authentication rule |
| AuthOnu | Post /openapi/v1/{omadacId}/sites/{siteId}/olts/{deviceMac}/pon/onu-register/autofind/onus/auth | Authenticate ONU |
| ClearOnuAutofindConfig | Post /openapi/v1/{omadacId}/sites/{siteId}/olts/{deviceMac}/pon/onu-register/autofind/onus/clear | Batch delete existing ONU auto find config |
| DeleteAuthenticationConfig | Post /openapi/v1/{omadacId}/sites/{siteId}/olts/{deviceMac}/pon/onu-register/authentications/delete | Batch delete existing authentication config |
| DeleteOnuAutoAuthenticationRuleConfig | Post /openapi/v1/{omadacId}/sites/{siteId}/olts/{deviceMac}/pon/onu-register/auto-authentication/rules/delete | Delete an existing ONU auto authentication rule |
| EditAuthenticationConfig | Post /openapi/v1/{omadacId}/sites/{siteId}/olts/{deviceMac}/pon/onu-register/authentications/edit | Modify an existing authentication config |
| EditOnuAdminStatus | Post /openapi/v1/{omadacId}/sites/{siteId}/olts/{deviceMac}/pon/onu-register/authentications/admin-status/edit | Modify an existing ONU admin status |
| EditOnuAutoAuthenticationConfig | Post /openapi/v1/{omadacId}/sites/{siteId}/olts/{deviceMac}/pon/onu-register/auto-authentication/global/configs/edit | Modify an existing ONU auto authentication config |
| EditOnuAutoAuthenticationRuleConfig | Post /openapi/v1/{omadacId}/sites/{siteId}/olts/{deviceMac}/pon/onu-register/auto-authentication/rules/edit | Modify an existing ONU auto authentication rule |
| EditOnuPonAutoAuthenticationConfig | Post /openapi/v1/{omadacId}/sites/{siteId}/olts/{deviceMac}/pon/onu-register/auto-authentication/port-configs/edit | Modify an existing ONU pon auto authentication config |
| EditOnuRegisterAutofindConfig | Post /openapi/v1/{omadacId}/sites/{siteId}/olts/{deviceMac}/pon/onu-register/autofind/configs/edit | Modify an existing ONU register auto find config |
| GetAuthenticationConfigList | Get /openapi/v1/{omadacId}/sites/{siteId}/olts/{deviceMac}/pon/onu-register/authentications/list | Get authentication config list |
| GetAuthenticationConfigPage | Get /openapi/v1/{omadacId}/sites/{siteId}/olts/{deviceMac}/pon/onu-register/authentications/page | Get authentication config page |
| GetOnuAutoAuthenticationConfig | Get /openapi/v1/{omadacId}/sites/{siteId}/olts/{deviceMac}/pon/onu-register/auto-authentication/global/configs/get | Get ONU auto authentication config |
| GetOnuAutoAuthenticationRuleConfigList | Get /openapi/v1/{omadacId}/sites/{siteId}/olts/{deviceMac}/pon/onu-register/auto-authentication/rules/list | Get ONU auto authentication rule list |
| GetOnuAutoAuthenticationRuleConfigPage | Get /openapi/v1/{omadacId}/sites/{siteId}/olts/{deviceMac}/pon/onu-register/auto-authentication/rules/page | Get ONU auto authentication rule page |
| GetOnuAutofindConfigList | Get /openapi/v1/{omadacId}/sites/{siteId}/olts/{deviceMac}/pon/onu-register/autofinds/list | Get ONU auto find config list |
| GetOnuAutofindConfigPage | Get /openapi/v1/{omadacId}/sites/{siteId}/olts/{deviceMac}/pon/onu-register/autofinds/page | get ONU auto find config page |
| GetOnuPonAutoAuthenticationConfig | Get /openapi/v1/{omadacId}/sites/{siteId}/olts/{deviceMac}/pon/onu-register/auto-authentication/port-configs/get | Get ONU pon auto authentication config |
| GetOnuRegisterAutofindConfig | Get /openapi/v1/{omadacId}/sites/{siteId}/olts/{deviceMac}/pon/onu-register/autofind/configs/get | Get ONU register auto find config |
AddAuthenticationConfig
OperationResponseDeviceResponseBodyVoid AddAuthenticationConfig(ctx, omadacId, siteId, deviceMac).AuthenticationConfigAddDTO(authenticationConfigAddDTO).Execute()
Create authentication 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
authenticationConfigAddDTO := *openapiclient.NewAuthenticationConfigAddDTO("PortId_example") // AuthenticationConfigAddDTO |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.OLTONURegisterAPI.AddAuthenticationConfig(context.Background(), omadacId, siteId, deviceMac).AuthenticationConfigAddDTO(authenticationConfigAddDTO).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OLTONURegisterAPI.AddAuthenticationConfig``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AddAuthenticationConfig`: OperationResponseDeviceResponseBodyVoid
fmt.Fprintf(os.Stdout, "Response from `OLTONURegisterAPI.AddAuthenticationConfig`: %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 apiAddAuthenticationConfigRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
authenticationConfigAddDTO | AuthenticationConfigAddDTO | |
Return type
OperationResponseDeviceResponseBodyVoid
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AddOnuAutoAuthenticationRuleConfig
OperationResponseDeviceResponseBodyVoid AddOnuAutoAuthenticationRuleConfig(ctx, omadacId, siteId, deviceMac).PonAutoAuthenticationRuleConfigDTO(ponAutoAuthenticationRuleConfigDTO).Execute()
Create ONU auto authentication rule
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
ponAutoAuthenticationRuleConfigDTO := *openapiclient.NewPonAutoAuthenticationRuleConfigDTO("LineProfile_example", "PonPort_example", "ServiceProfile_example") // PonAutoAuthenticationRuleConfigDTO |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.OLTONURegisterAPI.AddOnuAutoAuthenticationRuleConfig(context.Background(), omadacId, siteId, deviceMac).PonAutoAuthenticationRuleConfigDTO(ponAutoAuthenticationRuleConfigDTO).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OLTONURegisterAPI.AddOnuAutoAuthenticationRuleConfig``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AddOnuAutoAuthenticationRuleConfig`: OperationResponseDeviceResponseBodyVoid
fmt.Fprintf(os.Stdout, "Response from `OLTONURegisterAPI.AddOnuAutoAuthenticationRuleConfig`: %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 apiAddOnuAutoAuthenticationRuleConfigRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
ponAutoAuthenticationRuleConfigDTO | PonAutoAuthenticationRuleConfigDTO | |
Return type
OperationResponseDeviceResponseBodyVoid
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AuthOnu
OperationResponseDeviceResponseBodyVoid AuthOnu(ctx, omadacId, siteId, deviceMac).OnuActivationConfigDTO(onuActivationConfigDTO).Execute()
Authenticate 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
onuActivationConfigDTO := *openapiclient.NewOnuActivationConfigDTO("AuthenticationMethod_example", []string{"Keys_example"}, "LineProfile_example", "ServiceProfile_example") // OnuActivationConfigDTO |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.OLTONURegisterAPI.AuthOnu(context.Background(), omadacId, siteId, deviceMac).OnuActivationConfigDTO(onuActivationConfigDTO).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OLTONURegisterAPI.AuthOnu``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AuthOnu`: OperationResponseDeviceResponseBodyVoid
fmt.Fprintf(os.Stdout, "Response from `OLTONURegisterAPI.AuthOnu`: %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 apiAuthOnuRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
onuActivationConfigDTO | OnuActivationConfigDTO | |
Return type
OperationResponseDeviceResponseBodyVoid
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ClearOnuAutofindConfig
OperationResponseDeviceResponseBodyVoid ClearOnuAutofindConfig(ctx, omadacId, siteId, deviceMac).StringKeyListRequest(stringKeyListRequest).Execute()
Batch delete existing ONU auto find 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
stringKeyListRequest := *openapiclient.NewStringKeyListRequest([]string{"Keys_example"}) // StringKeyListRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.OLTONURegisterAPI.ClearOnuAutofindConfig(context.Background(), omadacId, siteId, deviceMac).StringKeyListRequest(stringKeyListRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OLTONURegisterAPI.ClearOnuAutofindConfig``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ClearOnuAutofindConfig`: OperationResponseDeviceResponseBodyVoid
fmt.Fprintf(os.Stdout, "Response from `OLTONURegisterAPI.ClearOnuAutofindConfig`: %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 apiClearOnuAutofindConfigRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
stringKeyListRequest | StringKeyListRequest | |
Return type
OperationResponseDeviceResponseBodyVoid
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteAuthenticationConfig
OperationResponseDeviceResponseBodyVoid DeleteAuthenticationConfig(ctx, omadacId, siteId, deviceMac).StringKeyListRequest(stringKeyListRequest).Execute()
Batch delete existing authentication 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
stringKeyListRequest := *openapiclient.NewStringKeyListRequest([]string{"Keys_example"}) // StringKeyListRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.OLTONURegisterAPI.DeleteAuthenticationConfig(context.Background(), omadacId, siteId, deviceMac).StringKeyListRequest(stringKeyListRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OLTONURegisterAPI.DeleteAuthenticationConfig``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DeleteAuthenticationConfig`: OperationResponseDeviceResponseBodyVoid
fmt.Fprintf(os.Stdout, "Response from `OLTONURegisterAPI.DeleteAuthenticationConfig`: %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 apiDeleteAuthenticationConfigRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
stringKeyListRequest | StringKeyListRequest | |
Return type
OperationResponseDeviceResponseBodyVoid
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteOnuAutoAuthenticationRuleConfig
OperationResponseDeviceResponseBodyVoid DeleteOnuAutoAuthenticationRuleConfig(ctx, omadacId, siteId, deviceMac).PonAutoAuthenticationRuleConfigDeleteDTO(ponAutoAuthenticationRuleConfigDeleteDTO).Execute()
Delete an existing ONU auto authentication rule
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
ponAutoAuthenticationRuleConfigDeleteDTO := *openapiclient.NewPonAutoAuthenticationRuleConfigDeleteDTO([]string{"Keys_example"}, "PonPort_example") // PonAutoAuthenticationRuleConfigDeleteDTO |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.OLTONURegisterAPI.DeleteOnuAutoAuthenticationRuleConfig(context.Background(), omadacId, siteId, deviceMac).PonAutoAuthenticationRuleConfigDeleteDTO(ponAutoAuthenticationRuleConfigDeleteDTO).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OLTONURegisterAPI.DeleteOnuAutoAuthenticationRuleConfig``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DeleteOnuAutoAuthenticationRuleConfig`: OperationResponseDeviceResponseBodyVoid
fmt.Fprintf(os.Stdout, "Response from `OLTONURegisterAPI.DeleteOnuAutoAuthenticationRuleConfig`: %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 apiDeleteOnuAutoAuthenticationRuleConfigRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
ponAutoAuthenticationRuleConfigDeleteDTO | PonAutoAuthenticationRuleConfigDeleteDTO | |
Return type
OperationResponseDeviceResponseBodyVoid
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EditAuthenticationConfig
OperationResponseDeviceResponseBodyVoid EditAuthenticationConfig(ctx, omadacId, siteId, deviceMac).AuthenticationConfigEditDTO(authenticationConfigEditDTO).Execute()
Modify an existing authentication 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
authenticationConfigEditDTO := *openapiclient.NewAuthenticationConfigEditDTO("Key_example", "PortId_example") // AuthenticationConfigEditDTO |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.OLTONURegisterAPI.EditAuthenticationConfig(context.Background(), omadacId, siteId, deviceMac).AuthenticationConfigEditDTO(authenticationConfigEditDTO).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OLTONURegisterAPI.EditAuthenticationConfig``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `EditAuthenticationConfig`: OperationResponseDeviceResponseBodyVoid
fmt.Fprintf(os.Stdout, "Response from `OLTONURegisterAPI.EditAuthenticationConfig`: %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 apiEditAuthenticationConfigRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
authenticationConfigEditDTO | AuthenticationConfigEditDTO | |
Return type
OperationResponseDeviceResponseBodyVoid
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EditOnuAdminStatus
OperationResponseDeviceResponseBodyVoid EditOnuAdminStatus(ctx, omadacId, siteId, deviceMac).OnuAdminStatusEditDTO(onuAdminStatusEditDTO).Execute()
Modify an existing ONU admin 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
onuAdminStatusEditDTO := *openapiclient.NewOnuAdminStatusEditDTO("AdminStatus_example", []string{"Keys_example"}) // OnuAdminStatusEditDTO |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.OLTONURegisterAPI.EditOnuAdminStatus(context.Background(), omadacId, siteId, deviceMac).OnuAdminStatusEditDTO(onuAdminStatusEditDTO).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OLTONURegisterAPI.EditOnuAdminStatus``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `EditOnuAdminStatus`: OperationResponseDeviceResponseBodyVoid
fmt.Fprintf(os.Stdout, "Response from `OLTONURegisterAPI.EditOnuAdminStatus`: %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 apiEditOnuAdminStatusRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
onuAdminStatusEditDTO | OnuAdminStatusEditDTO | |
Return type
OperationResponseDeviceResponseBodyVoid
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EditOnuAutoAuthenticationConfig
OperationResponseDeviceResponseBodyVoid EditOnuAutoAuthenticationConfig(ctx, omadacId, siteId, deviceMac).AutoAuthenticationConfigDTO(autoAuthenticationConfigDTO).Execute()
Modify an existing ONU auto authentication 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
autoAuthenticationConfigDTO := *openapiclient.NewAutoAuthenticationConfigDTO("AutoAuthenticationStatus_example") // AutoAuthenticationConfigDTO |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.OLTONURegisterAPI.EditOnuAutoAuthenticationConfig(context.Background(), omadacId, siteId, deviceMac).AutoAuthenticationConfigDTO(autoAuthenticationConfigDTO).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OLTONURegisterAPI.EditOnuAutoAuthenticationConfig``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `EditOnuAutoAuthenticationConfig`: OperationResponseDeviceResponseBodyVoid
fmt.Fprintf(os.Stdout, "Response from `OLTONURegisterAPI.EditOnuAutoAuthenticationConfig`: %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 apiEditOnuAutoAuthenticationConfigRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
autoAuthenticationConfigDTO | AutoAuthenticationConfigDTO | |
Return type
OperationResponseDeviceResponseBodyVoid
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EditOnuAutoAuthenticationRuleConfig
OperationResponseDeviceResponseBodyVoid EditOnuAutoAuthenticationRuleConfig(ctx, omadacId, siteId, deviceMac).PonAutoAuthenticationRuleConfigEditDTO(ponAutoAuthenticationRuleConfigEditDTO).Execute()
Modify an existing ONU auto authentication rule
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
ponAutoAuthenticationRuleConfigEditDTO := *openapiclient.NewPonAutoAuthenticationRuleConfigEditDTO("Key_example", "LineProfile_example", "PonPort_example", int32(123), "ServiceProfile_example") // PonAutoAuthenticationRuleConfigEditDTO |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.OLTONURegisterAPI.EditOnuAutoAuthenticationRuleConfig(context.Background(), omadacId, siteId, deviceMac).PonAutoAuthenticationRuleConfigEditDTO(ponAutoAuthenticationRuleConfigEditDTO).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OLTONURegisterAPI.EditOnuAutoAuthenticationRuleConfig``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `EditOnuAutoAuthenticationRuleConfig`: OperationResponseDeviceResponseBodyVoid
fmt.Fprintf(os.Stdout, "Response from `OLTONURegisterAPI.EditOnuAutoAuthenticationRuleConfig`: %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 apiEditOnuAutoAuthenticationRuleConfigRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
ponAutoAuthenticationRuleConfigEditDTO | PonAutoAuthenticationRuleConfigEditDTO | |
Return type
OperationResponseDeviceResponseBodyVoid
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EditOnuPonAutoAuthenticationConfig
OperationResponseDeviceResponseBodyVoid EditOnuPonAutoAuthenticationConfig(ctx, omadacId, siteId, deviceMac).PonAutoAuthenticationConfigDTO(ponAutoAuthenticationConfigDTO).Execute()
Modify an existing ONU pon auto authentication 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
ponAutoAuthenticationConfigDTO := *openapiclient.NewPonAutoAuthenticationConfigDTO("PonPort_example") // PonAutoAuthenticationConfigDTO |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.OLTONURegisterAPI.EditOnuPonAutoAuthenticationConfig(context.Background(), omadacId, siteId, deviceMac).PonAutoAuthenticationConfigDTO(ponAutoAuthenticationConfigDTO).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OLTONURegisterAPI.EditOnuPonAutoAuthenticationConfig``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `EditOnuPonAutoAuthenticationConfig`: OperationResponseDeviceResponseBodyVoid
fmt.Fprintf(os.Stdout, "Response from `OLTONURegisterAPI.EditOnuPonAutoAuthenticationConfig`: %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 apiEditOnuPonAutoAuthenticationConfigRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
ponAutoAuthenticationConfigDTO | PonAutoAuthenticationConfigDTO | |
Return type
OperationResponseDeviceResponseBodyVoid
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EditOnuRegisterAutofindConfig
OperationResponseDeviceResponseBodyVoid EditOnuRegisterAutofindConfig(ctx, omadacId, siteId, deviceMac).AutofindConfigDTO(autofindConfigDTO).Execute()
Modify an existing ONU register auto find 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
autofindConfigDTO := *openapiclient.NewAutofindConfigDTO("AgingTimeStatus_example", int32(123)) // AutofindConfigDTO |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.OLTONURegisterAPI.EditOnuRegisterAutofindConfig(context.Background(), omadacId, siteId, deviceMac).AutofindConfigDTO(autofindConfigDTO).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OLTONURegisterAPI.EditOnuRegisterAutofindConfig``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `EditOnuRegisterAutofindConfig`: OperationResponseDeviceResponseBodyVoid
fmt.Fprintf(os.Stdout, "Response from `OLTONURegisterAPI.EditOnuRegisterAutofindConfig`: %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 apiEditOnuRegisterAutofindConfigRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
autofindConfigDTO | AutofindConfigDTO | |
Return type
OperationResponseDeviceResponseBodyVoid
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetAuthenticationConfigList
OperationResponseListAuthenticationConfigDTO GetAuthenticationConfigList(ctx, omadacId, siteId, deviceMac).QueryParam(queryParam).Execute()
Get authentication 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.NewOnuRegisterAuthenPageQueryRequestDTO("PonPort_example") // OnuRegisterAuthenPageQueryRequestDTO |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.OLTONURegisterAPI.GetAuthenticationConfigList(context.Background(), omadacId, siteId, deviceMac).QueryParam(queryParam).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OLTONURegisterAPI.GetAuthenticationConfigList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetAuthenticationConfigList`: OperationResponseListAuthenticationConfigDTO
fmt.Fprintf(os.Stdout, "Response from `OLTONURegisterAPI.GetAuthenticationConfigList`: %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 apiGetAuthenticationConfigListRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
queryParam | OnuRegisterAuthenPageQueryRequestDTO | |
Return type
OperationResponseListAuthenticationConfigDTO
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetAuthenticationConfigPage
OperationResponsePageResponseAuthenticationConfigDTO GetAuthenticationConfigPage(ctx, omadacId, siteId, deviceMac).QueryParam(queryParam).Execute()
Get authentication 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.NewOnuRegisterAuthenPageQueryRequestDTO("PonPort_example") // OnuRegisterAuthenPageQueryRequestDTO |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.OLTONURegisterAPI.GetAuthenticationConfigPage(context.Background(), omadacId, siteId, deviceMac).QueryParam(queryParam).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OLTONURegisterAPI.GetAuthenticationConfigPage``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetAuthenticationConfigPage`: OperationResponsePageResponseAuthenticationConfigDTO
fmt.Fprintf(os.Stdout, "Response from `OLTONURegisterAPI.GetAuthenticationConfigPage`: %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 apiGetAuthenticationConfigPageRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
queryParam | OnuRegisterAuthenPageQueryRequestDTO | |
Return type
OperationResponsePageResponseAuthenticationConfigDTO
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetOnuAutoAuthenticationConfig
OperationResponseAutoAuthenticationConfigDTO GetOnuAutoAuthenticationConfig(ctx, omadacId, siteId, deviceMac).Execute()
Get ONU auto authentication 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
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.OLTONURegisterAPI.GetOnuAutoAuthenticationConfig(context.Background(), omadacId, siteId, deviceMac).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OLTONURegisterAPI.GetOnuAutoAuthenticationConfig``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetOnuAutoAuthenticationConfig`: OperationResponseAutoAuthenticationConfigDTO
fmt.Fprintf(os.Stdout, "Response from `OLTONURegisterAPI.GetOnuAutoAuthenticationConfig`: %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 apiGetOnuAutoAuthenticationConfigRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
Return type
OperationResponseAutoAuthenticationConfigDTO
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetOnuAutoAuthenticationRuleConfigList
OperationResponseListPonAutoAuthenticationRuleConfigDTO GetOnuAutoAuthenticationRuleConfigList(ctx, omadacId, siteId, deviceMac).QueryParam(queryParam).Execute()
Get ONU auto authentication rule 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.NewOnuRegisterAuthenticationPageQueryRequestDTO("PonPort_example") // OnuRegisterAuthenticationPageQueryRequestDTO |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.OLTONURegisterAPI.GetOnuAutoAuthenticationRuleConfigList(context.Background(), omadacId, siteId, deviceMac).QueryParam(queryParam).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OLTONURegisterAPI.GetOnuAutoAuthenticationRuleConfigList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetOnuAutoAuthenticationRuleConfigList`: OperationResponseListPonAutoAuthenticationRuleConfigDTO
fmt.Fprintf(os.Stdout, "Response from `OLTONURegisterAPI.GetOnuAutoAuthenticationRuleConfigList`: %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 apiGetOnuAutoAuthenticationRuleConfigListRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
queryParam | OnuRegisterAuthenticationPageQueryRequestDTO | |
Return type
OperationResponseListPonAutoAuthenticationRuleConfigDTO
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetOnuAutoAuthenticationRuleConfigPage
OperationResponsePageResponsePonAutoAuthenticationRuleConfigDTO GetOnuAutoAuthenticationRuleConfigPage(ctx, omadacId, siteId, deviceMac).QueryParam(queryParam).Execute()
Get ONU auto authentication rule 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.NewOnuRegisterAuthenticationPageQueryRequestDTO("PonPort_example") // OnuRegisterAuthenticationPageQueryRequestDTO |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.OLTONURegisterAPI.GetOnuAutoAuthenticationRuleConfigPage(context.Background(), omadacId, siteId, deviceMac).QueryParam(queryParam).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OLTONURegisterAPI.GetOnuAutoAuthenticationRuleConfigPage``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetOnuAutoAuthenticationRuleConfigPage`: OperationResponsePageResponsePonAutoAuthenticationRuleConfigDTO
fmt.Fprintf(os.Stdout, "Response from `OLTONURegisterAPI.GetOnuAutoAuthenticationRuleConfigPage`: %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 apiGetOnuAutoAuthenticationRuleConfigPageRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
queryParam | OnuRegisterAuthenticationPageQueryRequestDTO | |
Return type
OperationResponsePageResponsePonAutoAuthenticationRuleConfigDTO
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetOnuAutofindConfigList
OperationResponseListOnuAutofindConfigDTO GetOnuAutofindConfigList(ctx, omadacId, siteId, deviceMac).QueryParam(queryParam).Execute()
Get ONU auto find 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.NewOnuRegisterAutoFindPageQueryRequestDTO("PonPort_example") // OnuRegisterAutoFindPageQueryRequestDTO |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.OLTONURegisterAPI.GetOnuAutofindConfigList(context.Background(), omadacId, siteId, deviceMac).QueryParam(queryParam).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OLTONURegisterAPI.GetOnuAutofindConfigList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetOnuAutofindConfigList`: OperationResponseListOnuAutofindConfigDTO
fmt.Fprintf(os.Stdout, "Response from `OLTONURegisterAPI.GetOnuAutofindConfigList`: %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 apiGetOnuAutofindConfigListRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
queryParam | OnuRegisterAutoFindPageQueryRequestDTO | |
Return type
OperationResponseListOnuAutofindConfigDTO
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetOnuAutofindConfigPage
OperationResponsePageResponseOnuAutofindConfigDTO GetOnuAutofindConfigPage(ctx, omadacId, siteId, deviceMac).QueryParam(queryParam).Execute()
get ONU auto find 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.NewOnuRegisterAutoFindPageQueryRequestDTO("PonPort_example") // OnuRegisterAutoFindPageQueryRequestDTO |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.OLTONURegisterAPI.GetOnuAutofindConfigPage(context.Background(), omadacId, siteId, deviceMac).QueryParam(queryParam).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OLTONURegisterAPI.GetOnuAutofindConfigPage``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetOnuAutofindConfigPage`: OperationResponsePageResponseOnuAutofindConfigDTO
fmt.Fprintf(os.Stdout, "Response from `OLTONURegisterAPI.GetOnuAutofindConfigPage`: %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 apiGetOnuAutofindConfigPageRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
queryParam | OnuRegisterAutoFindPageQueryRequestDTO | |
Return type
OperationResponsePageResponseOnuAutofindConfigDTO
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetOnuPonAutoAuthenticationConfig
OperationResponsePonAutoAuthenticationConfigDTO GetOnuPonAutoAuthenticationConfig(ctx, omadacId, siteId, deviceMac).QueryParam(queryParam).Execute()
Get ONU pon auto authentication 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
queryParam := *openapiclient.NewPonPortRequestDTO("PonPort_example") // PonPortRequestDTO |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.OLTONURegisterAPI.GetOnuPonAutoAuthenticationConfig(context.Background(), omadacId, siteId, deviceMac).QueryParam(queryParam).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OLTONURegisterAPI.GetOnuPonAutoAuthenticationConfig``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetOnuPonAutoAuthenticationConfig`: OperationResponsePonAutoAuthenticationConfigDTO
fmt.Fprintf(os.Stdout, "Response from `OLTONURegisterAPI.GetOnuPonAutoAuthenticationConfig`: %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 apiGetOnuPonAutoAuthenticationConfigRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
queryParam | PonPortRequestDTO | |
Return type
OperationResponsePonAutoAuthenticationConfigDTO
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetOnuRegisterAutofindConfig
OperationResponseAutofindConfigDTO GetOnuRegisterAutofindConfig(ctx, omadacId, siteId, deviceMac).Execute()
Get ONU register auto find 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
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.OLTONURegisterAPI.GetOnuRegisterAutofindConfig(context.Background(), omadacId, siteId, deviceMac).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OLTONURegisterAPI.GetOnuRegisterAutofindConfig``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetOnuRegisterAutofindConfig`: OperationResponseAutofindConfigDTO
fmt.Fprintf(os.Stdout, "Response from `OLTONURegisterAPI.GetOnuRegisterAutofindConfig`: %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 apiGetOnuRegisterAutofindConfigRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
Return type
OperationResponseAutofindConfigDTO
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]