How do I get the UUID of a bundle?
Replace BUNDLE_MACHINE_NAME with your bundle machine name.

Drupal::entityTypeManager()-&gt;getStorage("node_type")-&gt;load("BUNDLE_MACHINE_NAME")-&gt;uuid();


Or you can also load it like this:

Drupal\node\Entity\NodeType::load("BUNDLE_MACHINE_NAME")-&gt;uuid();


Entities based on EntityInterface will have the uuid() method.

See EntityInterface::uuid