heat.common.short_id module

heat.common.short_id module

Utilities for creating short ID strings based on a random UUID.

The IDs each comprise 12 (lower-case) alphanumeric characters.

heat.common.short_id.generate_id()[source]

Generate a short (12 character), random id.

heat.common.short_id.get_id(source_uuid)[source]

Derive a short (12 character) id from a random UUID.

The supplied UUID must be a version 4 UUID object.

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.