Skip to content

Commit 8ec57cc

Browse files
committed
#145: Described SaaS instance naming conventions in the User Guide
1 parent 4882aa9 commit 8ec57cc

2 files changed

Lines changed: 29 additions & 0 deletions

File tree

doc/changes/unreleased.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,9 @@
11
# Unreleased
2+
3+
## Summary
4+
5+
This release describes naming conventions for SaaS instances in the User Guide.
6+
7+
## Documentation
8+
9+
* #145: Described SaaS instance naming conventions in the User Guide

doc/user_guide/user-guide.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,26 @@
11
# SaaS API for Python User Guide
22

3+
## Naming SaaS instances
4+
5+
SAPIPY offers function `timestamp_name()` to name database instances.
6+
7+
In case of left over SaaS instances, the generated name is intended to identify who created the database, when, and for which project.
8+
9+
Exasol SaaS limits database names to max 20 characters.
10+
11+
SAPIPY function `timestamp_name()` uses the following format: <var>&lt;time>&lt;random>&lt;pst>`-`&lt;user></var>
12+
13+
* <var>&lt;time></var> 5 characters hex `0-9a-f` encoding the minutes since new year UTC.
14+
* <var>&lt;random></var> 5 random hex characters `0-9a-f` to avoid duplicate names.
15+
* <var>&lt;pst></var> optional project short tag, truncated to not exceed the maximum name length.
16+
* <var>&lt;user></var> name of the current user. On GitHub runners typically "runner", also truncated.
17+
18+
Example: `10aa5dd99cSAPIPY-run`, was generated from
19+
* <var>&lt;time></var> `10aa5`<sub>hex</sub> = `68261`<sub>dec</sub> minutes since new year = February, 17 09:41
20+
* <var>&lt;random></var> `dd99c`
21+
* <var>&lt;pst></var> `SAPIPY`
22+
* <var>&lt;user></var> `run`, probably truncated from `runner`
23+
324
## Raise Error on Response Status Code Other Than 200
425

526
The default behavior of the API client is to return a response with a status code and optionally an attribute `parsed` containing the returned data.

0 commit comments

Comments
 (0)