Registers an existing ISO into the CloudStack Cloud.
(p *RegisterIsoParams)
| 2914 | |
| 2915 | // Registers an existing ISO into the CloudStack Cloud. |
| 2916 | func (s *ISOService) RegisterIso(p *RegisterIsoParams) (*RegisterIsoResponse, error) { |
| 2917 | resp, err := s.cs.newPostRequest("registerIso", p.toURLValues()) |
| 2918 | if err != nil { |
| 2919 | return nil, err |
| 2920 | } |
| 2921 | |
| 2922 | if resp, err = getRawValue(resp); err != nil { |
| 2923 | return nil, err |
| 2924 | } |
| 2925 | |
| 2926 | var r RegisterIsoResponse |
| 2927 | if err := json.Unmarshal(resp, &r); err != nil { |
| 2928 | return nil, err |
| 2929 | } |
| 2930 | |
| 2931 | return &r, nil |
| 2932 | } |
| 2933 | |
| 2934 | type RegisterIsoResponse struct { |
| 2935 | Account string `json:"account"` |
nothing calls this directly
no test coverage detected