Skip to content

Latest commit

 

History

History
128 lines (80 loc) · 2.96 KB

NetworkApi.md

File metadata and controls

128 lines (80 loc) · 2.96 KB

\NetworkApi

All URIs are relative to http://localhost

Method HTTP request Description
GetNetworkConfiguration Get /network/configuration
GetNetworkSummary Get /network/general/summary

GetNetworkConfiguration

NetworkConfig GetNetworkConfiguration(ctx).Execute()

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {

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

Path Parameters

This endpoint does not need any parameter.

Other Parameters

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

Return type

NetworkConfig

Authorization

bearerAuth

HTTP request headers

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

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

GetNetworkSummary

NetworkSummary GetNetworkSummary(ctx).Execute()

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {

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

Path Parameters

This endpoint does not need any parameter.

Other Parameters

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

Return type

NetworkSummary

Authorization

bearerAuth

HTTP request headers

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

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