Skip to content

Latest commit

 

History

History
142 lines (92 loc) · 4.16 KB

File metadata and controls

142 lines (92 loc) · 4.16 KB

\LoggingConfigAPI

All URIs are relative to http://localhost

Method HTTP request Description
SetAuditLoggingSettings Post /api/v1/audit_logging_config Set Audit Logging Level
SetLoggingSettings Post /api/v1/logging_config Set Logging Level

SetAuditLoggingSettings

AuditLoggingConfig SetAuditLoggingSettings(ctx).AuditLoggingConfig(auditLoggingConfig).Request(request).Execute()

Set Audit Logging Level

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/yugabyte/platform-go-client/v1"
)

func main() {
	auditLoggingConfig := *openapiclient.NewAuditLoggingConfig(false, false) // AuditLoggingConfig | Audit Logging config to be updated
	request := TODO // interface{} |  (optional)

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

Path Parameters

Other Parameters

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

Name Type Description Notes
auditLoggingConfig AuditLoggingConfig Audit Logging config to be updated
request interface{}

Return type

AuditLoggingConfig

Authorization

apiKeyAuth

HTTP request headers

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

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

SetLoggingSettings

PlatformLoggingConfig SetLoggingSettings(ctx).LoggingConfig(loggingConfig).Request(request).Execute()

Set Logging Level

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/yugabyte/platform-go-client/v1"
)

func main() {
	loggingConfig := *openapiclient.NewPlatformLoggingConfig("Level_example", int32(123), "RolloverPattern_example") // PlatformLoggingConfig | Logging config to be updated
	request := TODO // interface{} |  (optional)

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.LoggingConfigAPI.SetLoggingSettings(context.Background()).LoggingConfig(loggingConfig).Request(request).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `LoggingConfigAPI.SetLoggingSettings``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `SetLoggingSettings`: PlatformLoggingConfig
	fmt.Fprintf(os.Stdout, "Response from `LoggingConfigAPI.SetLoggingSettings`: %v\n", resp)
}

Path Parameters

Other Parameters

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

Name Type Description Notes
loggingConfig PlatformLoggingConfig Logging config to be updated
request interface{}

Return type

PlatformLoggingConfig

Authorization

apiKeyAuth

HTTP request headers

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

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