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

Method CreateInstanceGroup

cloudstack/VMGroupService.go:162–174  ·  view source on GitHub ↗

Creates a vm group

(p *CreateInstanceGroupParams)

Source from the content-addressed store, hash-verified

160
161// Creates a vm group
162func (s *VMGroupService) CreateInstanceGroup(p *CreateInstanceGroupParams) (*CreateInstanceGroupResponse, error) {
163 resp, err := s.cs.newPostRequest("createInstanceGroup", p.toURLValues())
164 if err != nil {
165 return nil, err
166 }
167
168 var r CreateInstanceGroupResponse
169 if err := json.Unmarshal(resp, &r); err != nil {
170 return nil, err
171 }
172
173 return &r, nil
174}
175
176type CreateInstanceGroupResponse struct {
177 Account string `json:"account"`

Callers

nothing calls this directly

Calls 2

newPostRequestMethod · 0.80
toURLValuesMethod · 0.45

Tested by

no test coverage detected