@@ -1585,6 +1585,14 @@ <h2>Table of Contents</h2>
15851585 <a href="#metalstack%2fadmin%2fv2%2ftoken.proto">metalstack/admin/v2/token.proto</a>
15861586 <ul>
15871587
1588+ <li>
1589+ <a href="#metalstack.admin.v2.TokenServiceCreateRequest"><span class="badge">M</span>TokenServiceCreateRequest</a>
1590+ </li>
1591+
1592+ <li>
1593+ <a href="#metalstack.admin.v2.TokenServiceCreateResponse"><span class="badge">M</span>TokenServiceCreateResponse</a>
1594+ </li>
1595+
15881596 <li>
15891597 <a href="#metalstack.admin.v2.TokenServiceListRequest"><span class="badge">M</span>TokenServiceListRequest</a>
15901598 </li>
@@ -13149,6 +13157,68 @@ <h2 id="metalstack/admin/v2/token.proto">metalstack/admin/v2/token.proto</h2><a
1314913157 <p></p>
1315013158
1315113159
13160+ <h3 id="metalstack.admin.v2.TokenServiceCreateRequest">TokenServiceCreateRequest</h3>
13161+ <p>TokenServiceCreateRequest is the request payload to create a token</p>
13162+
13163+
13164+ <table class="field-table">
13165+ <thead>
13166+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
13167+ </thead>
13168+ <tbody>
13169+
13170+ <tr>
13171+ <td>user</td>
13172+ <td><a href="#string">string</a></td>
13173+ <td>optional</td>
13174+ <td><p>User this token should be created for, if omitted, user is derived from caller </p></td>
13175+ </tr>
13176+
13177+ <tr>
13178+ <td>token</td>
13179+ <td><a href="#metalstack.api.v2.Token">metalstack.api.v2.Token</a></td>
13180+ <td></td>
13181+ <td><p>Token which was should be created </p></td>
13182+ </tr>
13183+
13184+ </tbody>
13185+ </table>
13186+
13187+
13188+
13189+
13190+
13191+ <h3 id="metalstack.admin.v2.TokenServiceCreateResponse">TokenServiceCreateResponse</h3>
13192+ <p>TokenServiceCreateResponse is the response payload of a token create request</p>
13193+
13194+
13195+ <table class="field-table">
13196+ <thead>
13197+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
13198+ </thead>
13199+ <tbody>
13200+
13201+ <tr>
13202+ <td>token</td>
13203+ <td><a href="#metalstack.api.v2.Token">metalstack.api.v2.Token</a></td>
13204+ <td></td>
13205+ <td><p>Token which was created </p></td>
13206+ </tr>
13207+
13208+ <tr>
13209+ <td>secret</td>
13210+ <td><a href="#string">string</a></td>
13211+ <td></td>
13212+ <td><p>Secret is the body if the jwt token, should be used in api requests as bearer token </p></td>
13213+ </tr>
13214+
13215+ </tbody>
13216+ </table>
13217+
13218+
13219+
13220+
13221+
1315213222 <h3 id="metalstack.admin.v2.TokenServiceListRequest">TokenServiceListRequest</h3>
1315313223 <p>TokenServiceListRequest is the request payload for the token list request</p>
1315413224
@@ -13263,6 +13333,13 @@ <h3 id="metalstack.admin.v2.TokenService">TokenService</h3>
1326313333 <td><p>Revoke a token</p></td>
1326413334 </tr>
1326513335
13336+ <tr>
13337+ <td>Create</td>
13338+ <td><a href="#metalstack.admin.v2.TokenServiceCreateRequest">TokenServiceCreateRequest</a></td>
13339+ <td><a href="#metalstack.admin.v2.TokenServiceCreateResponse">TokenServiceCreateResponse</a></td>
13340+ <td><p>Create a token to authenticate against the platform, the secret will be only visible in the response</p></td>
13341+ </tr>
13342+
1326613343 </tbody>
1326713344 </table>
1326813345
0 commit comments