Get Woocommerce product attribute/variation

I need a little help. I’m trying to get the attributes and variations of a product.
How can I do that?
Thanks