Skip to content

Latest commit

 

History

History
68 lines (42 loc) · 1.53 KB

DiskSpaceAPI.md

File metadata and controls

68 lines (42 loc) · 1.53 KB

\DiskSpaceAPI

All URIs are relative to http://localhost:8989

Method HTTP request Description
ListDiskSpace Get /api/v3/diskspace

ListDiskSpace

[]DiskSpaceResource ListDiskSpace(ctx).Execute()

Example

package main

import (
	"context"
	"fmt"
	"os"
	sonarrClient "github.com/devopsarr/sonarr-go/sonarr"
)

func main() {

	configuration := sonarrClient.NewConfiguration()
	apiClient := sonarrClient.NewAPIClient(configuration)
	resp, r, err := apiClient.DiskSpaceAPI.ListDiskSpace(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `DiskSpaceAPI.ListDiskSpace``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `ListDiskSpace`: []DiskSpaceResource
	fmt.Fprintf(os.Stdout, "Response from `DiskSpaceAPI.ListDiskSpace`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

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

Return type

[]DiskSpaceResource

Authorization

apikey, X-Api-Key

HTTP request headers

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

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