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

Method GetUploadParamsForIso

cloudstack/ISOService.go:1516–1528  ·  view source on GitHub ↗

upload an existing ISO into the CloudStack cloud.

(p *GetUploadParamsForIsoParams)

Source from the content-addressed store, hash-verified

1514
1515// upload an existing ISO into the CloudStack cloud.
1516func (s *ISOService) GetUploadParamsForIso(p *GetUploadParamsForIsoParams) (*GetUploadParamsForIsoResponse, error) {
1517 resp, err := s.cs.newRequest("getUploadParamsForIso", p.toURLValues())
1518 if err != nil {
1519 return nil, err
1520 }
1521
1522 var r GetUploadParamsForIsoResponse
1523 if err := json.Unmarshal(resp, &r); err != nil {
1524 return nil, err
1525 }
1526
1527 return &r, nil
1528}
1529
1530type GetUploadParamsForIsoResponse struct {
1531 Expires string `json:"expires"`

Callers

nothing calls this directly

Calls 2

newRequestMethod · 0.80
toURLValuesMethod · 0.45

Tested by

no test coverage detected