Skip to content

Commit

Permalink
[Feat.] Add func Reload Table Data
Browse files Browse the repository at this point in the history
  • Loading branch information
muneeb-jan committed Sep 4, 2024
1 parent a9f25e3 commit fbd9e12
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions openstack/ddm/instances/ReloadTableData.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package instances

import (
golangsdk "github.com/opentelekomcloud/gophertelekomcloud"
)

func ReloadTableData(client *golangsdk.ServiceClient, instanceId string) error {
// POST /v1/{project_id}/instances/{instance_id}/reload-config
_, err := client.Post(client.ServiceURL("instances", instanceId, "reload-config"), nil, nil, &golangsdk.RequestOpts{
OkCodes: []int{200},
})
if err != nil {
return err
}
return nil
}

0 comments on commit fbd9e12

Please sign in to comment.