MCPcopy Index your code
hub / github.com/apache/cloudstack-go / UpdateInstanceGroup

Method UpdateInstanceGroup

cloudstack/VMGroupService.go:737–749  ·  view source on GitHub ↗

Updates a vm group

(p *UpdateInstanceGroupParams)

Source from the content-addressed store, hash-verified

735
736// Updates a vm group
737func (s *VMGroupService) UpdateInstanceGroup(p *UpdateInstanceGroupParams) (*UpdateInstanceGroupResponse, error) {
738 resp, err := s.cs.newPostRequest("updateInstanceGroup", p.toURLValues())
739 if err != nil {
740 return nil, err
741 }
742
743 var r UpdateInstanceGroupResponse
744 if err := json.Unmarshal(resp, &r); err != nil {
745 return nil, err
746 }
747
748 return &r, nil
749}
750
751type UpdateInstanceGroupResponse struct {
752 Account string `json:"account"`

Callers

nothing calls this directly

Calls 2

newPostRequestMethod · 0.80
toURLValuesMethod · 0.45

Tested by

no test coverage detected