func (c *Client) GetCloudAccountByID(ctx context.Context, accountNumber, provider string) (*CloudAccount, error) {
	cloudAccount := &CloudAccount{}
	path, err := genPathWithQueryParams(
		fmt.Sprintf("cloudaccounts/%s", accountNumber),
		map[string]string{"provider": provider},
	)
	if err != nil {
		return nil, err
	}

	err = c.Do(ctx, http.MethodGet, *path, nil, cloudAccount)
	if err != nil {
		return nil, err
	}

	if cloudAccount.AccountID == "" {
		return nil, NewError(fmt.Sprintf(content.ErrorNoCloudAccountWithIDFound, accountNumber))
	}
	return cloudAccount, nil
}
// GetCloudAccountByID method getting cloud account by user ID
GetCloudAccountByID method getting cloud account by user ID
// GetCloudAccountByID method getting cloud account by user ID
func (c *Client) GetCloudAccountByID(ctx context.Context, accountNumber, provider string) (*CloudAccount, error) {
	cloudAccount := &CloudAccount{}
	path, err := genPathWithQueryParams(
		fmt.Sprintf("cloudaccounts/%s", accountNumber),
		map[string]string{"provider": provider},
	)
	if err != nil {
		return nil, err
	}
	err = c.Do(ctx, http.MethodGet, *path, nil, cloudAccount)
	if err != nil {
		return nil, err
	}
	if cloudAccount.AccountID == "" {
		return nil, NewError(fmt.Sprintf(content.ErrorNoCloudAccountWithIDFound, accountNumber))
	}
	return cloudAccount, nil
}
func ( c * Client ) GetCloudAccountByID ( ctx context . Context , accountNumber , provider string ) ( * CloudAccount , error ) { cloudAccount := & CloudAccount { } path , err := genPathWithQueryParams ( fmt . Sprintf ( " " , accountNumber ) , map [ string ] string { " " : provider } , ) if err != nil { return nil , err } err = c . Do ( ctx , http . MethodGet , * path , nil , cloudAccount ) if err != nil { return nil , err } if cloudAccount . AccountID == " " { return nil , NewError ( fmt . Sprintf ( content . ErrorNoCloudAccountWithIDFound , accountNumber ) ) } return cloudAccount , nil }
GetCloudAccountByID method getting cloud account by user ID
GetCloudAccountByID method getting cloud account by user ID