// applyNms applies the specified nms-servers in the yaml-file
applyNms applies the specified nms-servers in the yaml-file
// applyNms applies the specified nms - servers in the yaml - file
func applyNms(ctx context.Context, path string) error {
	cfg, err := configs.Get(path)
	if err != nil {
		return fmt.Errorf("Couldn't parse yml-file %s : %v", path, err)
	}
	err = configs.ValidateNmsConfigs(cfg.API.Nms)
	if err != nil {
		return err
	}
	nmsList := configs.PostprocessNmsConfigs(cfg.API.Nms)
	resp, err := nmsService.Apply(ctx, nmsList)
	if err != nil {
		return err
	}
	fmt.Fprintf(os.Stdout, "applied %d nuix management servers to backend", len(resp.Nms))
	return nil
}
func applyNms ( ctx context . Context , path string ) error { cfg , err := configs . Get ( path ) if err != nil { return fmt . Errorf ( " " , path , err ) } err = configs . ValidateNmsConfigs ( cfg . API . Nms ) if err != nil { return err } nmsList := configs . PostprocessNmsConfigs ( cfg . API . Nms ) resp , err := nmsService . Apply ( ctx , nmsList ) if err != nil { return err } fmt . Fprintf ( os . Stdout , " " , len ( resp . Nms ) ) return nil }
applyNms applies the specified nms-servers in the yaml-file
applyNms applies the specified nms - servers in the yaml - file
// get the nms-config // Validate and post-process server config. // send the request to the service