@@ -423,7 +423,7 @@ func (s *AccountService) NewCreateAccountParams(email string, firstname string,
423423
424424// Creates an account
425425func (s * AccountService ) CreateAccount (p * CreateAccountParams ) (* CreateAccountResponse , error ) {
426- resp , err := s .cs .newRequest ("createAccount" , p .toURLValues ())
426+ resp , err := s .cs .newPostRequest ("createAccount" , p .toURLValues ())
427427 if err != nil {
428428 return nil , err
429429 }
@@ -579,7 +579,7 @@ func (s *AccountService) NewDeleteAccountParams(id string) *DeleteAccountParams
579579
580580// Deletes a account, and all users associated with this account
581581func (s * AccountService ) DeleteAccount (p * DeleteAccountParams ) (* DeleteAccountResponse , error ) {
582- resp , err := s .cs .newRequest ("deleteAccount" , p .toURLValues ())
582+ resp , err := s .cs .newPostRequest ("deleteAccount" , p .toURLValues ())
583583 if err != nil {
584584 return nil , err
585585 }
@@ -734,7 +734,7 @@ func (s *AccountService) NewDisableAccountParams(lock bool) *DisableAccountParam
734734
735735// Disables an account
736736func (s * AccountService ) DisableAccount (p * DisableAccountParams ) (* DisableAccountResponse , error ) {
737- resp , err := s .cs .newRequest ("disableAccount" , p .toURLValues ())
737+ resp , err := s .cs .newPostRequest ("disableAccount" , p .toURLValues ())
738738 if err != nil {
739739 return nil , err
740740 }
@@ -953,7 +953,7 @@ func (s *AccountService) NewEnableAccountParams() *EnableAccountParams {
953953
954954// Enables an account
955955func (s * AccountService ) EnableAccount (p * EnableAccountParams ) (* EnableAccountResponse , error ) {
956- resp , err := s .cs .newRequest ("enableAccount" , p .toURLValues ())
956+ resp , err := s .cs .newPostRequest ("enableAccount" , p .toURLValues ())
957957 if err != nil {
958958 return nil , err
959959 }
@@ -1317,7 +1317,7 @@ func (s *AccountService) NewLinkAccountToLdapParams(account string, domainid str
13171317
13181318// link a cloudstack account to a group or OU in ldap
13191319func (s * AccountService ) LinkAccountToLdap (p * LinkAccountToLdapParams ) (* LinkAccountToLdapResponse , error ) {
1320- resp , err := s .cs .newRequest ("linkAccountToLdap" , p .toURLValues ())
1320+ resp , err := s .cs .newPostRequest ("linkAccountToLdap" , p .toURLValues ())
13211321 if err != nil {
13221322 return nil , err
13231323 }
@@ -2310,7 +2310,7 @@ func (s *AccountService) NewLockAccountParams(account string, domainid string) *
23102310
23112311// This deprecated function used to locks an account. Look for the API DisableAccount instead
23122312func (s * AccountService ) LockAccount (p * LockAccountParams ) (* LockAccountResponse , error ) {
2313- resp , err := s .cs .newRequest ("lockAccount" , p .toURLValues ())
2313+ resp , err := s .cs .newPostRequest ("lockAccount" , p .toURLValues ())
23142314 if err != nil {
23152315 return nil , err
23162316 }
@@ -2512,7 +2512,7 @@ func (s *AccountService) NewMarkDefaultZoneForAccountParams(account string, doma
25122512
25132513// Marks a default zone for this account
25142514func (s * AccountService ) MarkDefaultZoneForAccount (p * MarkDefaultZoneForAccountParams ) (* MarkDefaultZoneForAccountResponse , error ) {
2515- resp , err := s .cs .newRequest ("markDefaultZoneForAccount" , p .toURLValues ())
2515+ resp , err := s .cs .newPostRequest ("markDefaultZoneForAccount" , p .toURLValues ())
25162516 if err != nil {
25172517 return nil , err
25182518 }
@@ -2830,7 +2830,7 @@ func (s *AccountService) NewUpdateAccountParams() *UpdateAccountParams {
28302830
28312831// Updates account information for the authenticated user
28322832func (s * AccountService ) UpdateAccount (p * UpdateAccountParams ) (* UpdateAccountResponse , error ) {
2833- resp , err := s .cs .newRequest ("updateAccount" , p .toURLValues ())
2833+ resp , err := s .cs .newPostRequest ("updateAccount" , p .toURLValues ())
28342834 if err != nil {
28352835 return nil , err
28362836 }
0 commit comments