Wash the cucumbers thoroughly and slice them into suitable pieces.
Sterilize a glass jar with boiling water.
In a pot, combine water, vinegar, sugar, salt, and whole spices, then bring to a boil.
Let the pickling liquid cool.
Place cucumbers and spices in the glass jar and pour in the cooled pickling liquid.
Close the lid and store in the refrigerator.