github.com/opentelekomcloud/gophertelekomcloud@v0.9.3/openstack/autoscaling/v1/configurations/BatchDeleteScalingConfigs.go (about)

     1  package configurations
     2  
     3  import (
     4  	golangsdk "github.com/opentelekomcloud/gophertelekomcloud"
     5  	"github.com/opentelekomcloud/gophertelekomcloud/internal/build"
     6  )
     7  
     8  type BatchDeleteOpts struct {
     9  	ScalingConfigurationId []string `json:"scaling_configuration_id"`
    10  }
    11  
    12  func BatchDeleteScalingConfigs(client *golangsdk.ServiceClient, opts BatchDeleteOpts) (err error) {
    13  	b, err := build.RequestBody(opts, "")
    14  	if err != nil {
    15  		return
    16  	}
    17  
    18  	// POST /autoscaling-api/v1/{project_id}/scaling_configurations
    19  	_, err = client.Post(client.ServiceURL("scaling_configurations"), b, nil, nil)
    20  	return
    21  }