Skip to content

Commit 96467e2

Browse files
committed
Bump v3 API docs version release-candidate
1 parent 7dc352b commit 96467e2

File tree

1 file changed

+58
-2
lines changed

1 file changed

+58
-2
lines changed

version/release-candidate/index.html

Lines changed: 58 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@
227227

228228

229229

230+
230231

231232

232233
<h1 id="introduction">Introduction</h1>
@@ -17026,6 +17027,9 @@ <h3 id="create-a-role">Create a role</h3>
1702617027

1702717028
<p>If the associated user is valid but does not exist in Cloud Controller&rsquo;s database, a user resource will be created automatically.</p>
1702817029

17030+
<p>If CAPI property <code class="prettyprint">cc.allow_user_creation_by_org_manager</code> is enabled, the organization role is being created by username + origin and the user does not exist in UAA yet, the user will be created.
17031+
The origin must be different from <code class="prettyprint">uaa</code> in this case.</p>
17032+
1702917033
<h4 id="definition">Definition</h4>
1703017034

1703117035
<p><code class="prettyprint">POST /v3/roles</code></p>
@@ -32101,7 +32105,12 @@ <h3 id="create-a-user">Create a user</h3>
3210132105
Controller database.</p>
3210232106

3210332107
<p>Generally, the GUID should match the GUID of an already-created user in the
32104-
UAA database, though this is not required.</p>
32108+
UAA database, though this is not required.
32109+
Creating a user by guid is only permitted by admins.</p>
32110+
32111+
<p>If CAPI property <code class="prettyprint">cc.allow_user_creation_by_org_manager</code> is enabled, a UAA user will be automatically created if it does not exist yet.
32112+
The UAA user will be only created when <code class="prettyprint">username</code> and <code class="prettyprint">origin</code> have been provided instead of a guid. Additionally <code class="prettyprint">origin</code> must be different from <code class="prettyprint">uaa</code>.
32113+
Admins and OrgManagers can make use of the UAA user creation.</p>
3210532114
<div class="highlight"><pre class="highlight plaintext"><code>Example Request
3210632115
</code></pre></div><div class="highlight"><pre class="highlight shell"><code>curl <span class="s2">"https://api.example.org/v3/users"</span> <span class="se">\</span>
3210732116
<span class="nt">-X</span> POST <span class="se">\</span>
@@ -32132,6 +32141,37 @@ <h3 id="create-a-user">Create a user</h3>
3213232141
</span><span class="p">}</span><span class="w">
3213332142
</span><span class="p">}</span><span class="w">
3213432143

32144+
</span></code></pre></div><div class="highlight"><pre class="highlight plaintext"><code>Example Request (by username and origin)
32145+
</code></pre></div><div class="highlight"><pre class="highlight shell"><code>curl <span class="s2">"https://api.example.org/v3/users"</span> <span class="se">\</span>
32146+
<span class="nt">-X</span> POST <span class="se">\</span>
32147+
<span class="nt">-H</span> <span class="s2">"Authorization: bearer [token]"</span> <span class="se">\</span>
32148+
<span class="nt">-H</span> <span class="s2">"Content-type: application/json"</span> <span class="se">\</span>
32149+
<span class="nt">-d</span> <span class="s1">'{
32150+
"username": "some-user",
32151+
"origin": "some-origin"
32152+
}'</span>
32153+
</code></pre></div><div class="highlight"><pre class="highlight plaintext"><code>Example Response
32154+
</code></pre></div><div class="highlight"><pre class="highlight http"><code><span class="k">HTTP</span><span class="o">/</span><span class="m">1.1</span> <span class="m">201</span> <span class="ne">Created</span>
32155+
<span class="na">Content-Type</span><span class="p">:</span> <span class="s">application/json</span>
32156+
32157+
<span class="w"> </span><span class="p">{</span><span class="w">
32158+
</span><span class="nl">"guid"</span><span class="p">:</span><span class="w"> </span><span class="s2">"3a5d3d89-3f89-4f05-8188-8a2b298c79d5"</span><span class="p">,</span><span class="w">
32159+
</span><span class="nl">"created_at"</span><span class="p">:</span><span class="w"> </span><span class="s2">"2019-03-08T01:06:19Z"</span><span class="p">,</span><span class="w">
32160+
</span><span class="nl">"updated_at"</span><span class="p">:</span><span class="w"> </span><span class="s2">"2019-03-08T01:06:19Z"</span><span class="p">,</span><span class="w">
32161+
</span><span class="nl">"username"</span><span class="p">:</span><span class="w"> </span><span class="s2">"some-user"</span><span class="p">,</span><span class="w">
32162+
</span><span class="nl">"presentation_name"</span><span class="p">:</span><span class="w"> </span><span class="s2">"some-user"</span><span class="p">,</span><span class="w">
32163+
</span><span class="nl">"origin"</span><span class="p">:</span><span class="w"> </span><span class="s2">"some-origin"</span><span class="p">,</span><span class="w">
32164+
</span><span class="nl">"metadata"</span><span class="p">:</span><span class="w"> </span><span class="p">{</span><span class="w">
32165+
</span><span class="nl">"labels"</span><span class="p">:</span><span class="w"> </span><span class="p">{},</span><span class="w">
32166+
</span><span class="nl">"annotations"</span><span class="p">:{}</span><span class="w">
32167+
</span><span class="p">},</span><span class="w">
32168+
</span><span class="nl">"links"</span><span class="p">:</span><span class="w"> </span><span class="p">{</span><span class="w">
32169+
</span><span class="nl">"self"</span><span class="p">:</span><span class="w"> </span><span class="p">{</span><span class="w">
32170+
</span><span class="nl">"href"</span><span class="p">:</span><span class="w"> </span><span class="s2">"https://api.example.org/v3/users/3a5d3d89-3f89-4f05-8188-8a2b298c79d5"</span><span class="w">
32171+
</span><span class="p">}</span><span class="w">
32172+
</span><span class="p">}</span><span class="w">
32173+
</span><span class="p">}</span><span class="w">
32174+
3213532175
</span></code></pre></div>
3213632176
<h4 id="definition">Definition</h4>
3213732177

@@ -32152,6 +32192,16 @@ <h4 id="required-parameters">Required parameters</h4>
3215232192
<td>Unique identifier for the user. For UAA users this will match the user ID of an existing UAA user&rsquo;s GUID; in the case of UAA clients, this will match the UAA client ID</td>
3215332193
</tr>
3215432194
<tr>
32195+
<td><strong>username</strong></td>
32196+
<td><em>string</em></td>
32197+
<td>Username of the user to be created. This can only be provided together with <code class="prettyprint">origin</code>.</td>
32198+
</tr>
32199+
<tr>
32200+
<td><strong>origin</strong></td>
32201+
<td><em>string</em></td>
32202+
<td>Origin of the user to be created. This can only be provided together with <code class="prettyprint">username</code> and cannot be <code class="prettyprint">uaa</code>.</td>
32203+
</tr>
32204+
<tr>
3215532205
<td><strong>metadata.labels</strong></td>
3215632206
<td><a href="#links"><em>label object</em></a></td>
3215732207
<td>Labels applied to the user</td>
@@ -32167,11 +32217,17 @@ <h4 id="permitted-roles">Permitted roles</h4>
3216732217

3216832218
<table><thead>
3216932219
<tr>
32170-
<th></th>
32220+
<th>Role</th>
32221+
<th>Notes</th>
3217132222
</tr>
3217232223
</thead><tbody>
3217332224
<tr>
3217432225
<td>Admin</td>
32226+
<td></td>
32227+
</tr>
32228+
<tr>
32229+
<td>OrgManager</td>
32230+
<td>can only create users by <code class="prettyprint">username</code> and <code class="prettyprint">origin</code> and when CAPI property <code class="prettyprint">cc.allow_user_creation_by_org_manager</code> is enabled</td>
3217532231
</tr>
3217632232
</tbody></table>
3217732233
<h3 id="get-a-user">Get a user</h3>

0 commit comments

Comments
 (0)