update perms table for session recordings and storage buckets (#3253)
This commit is contained in:
1 parent
5a64946f9d
commit
97977f1995
2 files changed
+235
No files matched your search
@@ -77,6 +77,8 @@ func main() {
|
||||
role,
|
||||
scope,
|
||||
session,
|
||||
sessionRecording,
|
||||
storageBucket,
|
||||
target,
|
||||
user,
|
||||
worker,
|
||||
@@ -741,6 +743,73 @@ var session = &Resource{
|
||||
},
|
||||
}
|
||||
|
||||
var sessionRecording = &Resource{
|
||||
Type: "Session Recording",
|
||||
Scopes: iamScopes,
|
||||
Endpoints: []*Endpoint{
|
||||
{
|
||||
Path: "/session-recordings",
|
||||
Params: map[string]string{
|
||||
"Type": "session-recording",
|
||||
},
|
||||
Actions: []*Action{
|
||||
{
|
||||
Name: "list",
|
||||
Description: "List session recordings",
|
||||
Examples: []string{
|
||||
"type=<type>;actions=list",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
Path: "/session-recordings/<id>",
|
||||
Params: map[string]string{
|
||||
"ID": "<id>",
|
||||
"Type": "session-recording",
|
||||
},
|
||||
Actions: []*Action{
|
||||
{
|
||||
Name: "read",
|
||||
Description: "Read a session recording",
|
||||
Examples: []string{
|
||||
"id=<id>;actions=read",
|
||||
},
|
||||
},
|
||||
{
|
||||
Name: "download",
|
||||
Description: "Download a session recording",
|
||||
Examples: []string{
|
||||
"id=<id>;actions=download",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
var storageBucket = &Resource{
|
||||
Type: "Storage Bucket",
|
||||
Scopes: iamScopes,
|
||||
Endpoints: []*Endpoint{
|
||||
{
|
||||
Path: "/storage-buckets",
|
||||
Params: map[string]string{
|
||||
"Type": "storage-bucket",
|
||||
},
|
||||
Actions: clActions("a storage bucket"),
|
||||
},
|
||||
{
|
||||
Path: "/storage-buckets/<id>",
|
||||
Params: map[string]string{
|
||||
"ID": "<id>",
|
||||
"Type": "storage-bucket",
|
||||
},
|
||||
Actions: rudActions("a storage bucket", false),
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
var target = &Resource{
|
||||
Type: "Target",
|
||||
Scopes: infraScope,
|
||||
|
||||
@@ -1205,6 +1205,172 @@ documentation](/boundary/api-docs) for guidance.
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td rowSpan="2">Session Recording</td>
|
||||
<td rowSpan="2">
|
||||
<ul>
|
||||
<li>Global</li>
|
||||
<li>Org</li>
|
||||
</ul>
|
||||
</td>
|
||||
<td>
|
||||
<code>/session-recordings</code>
|
||||
</td>
|
||||
<td>
|
||||
<ul>
|
||||
<li>Type</li>
|
||||
<ul>
|
||||
<li>
|
||||
<code>session-recording</code>
|
||||
</li>
|
||||
</ul>
|
||||
</ul>
|
||||
</td>
|
||||
<td>
|
||||
<ul>
|
||||
<li>
|
||||
<code>list</code>: List session recordings
|
||||
</li>
|
||||
<ul>
|
||||
<li>
|
||||
<code>type=<type>;actions=list</code>
|
||||
</li>
|
||||
</ul>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>/session-recordings/<id></code>
|
||||
</td>
|
||||
<td>
|
||||
<ul>
|
||||
<li>ID</li>
|
||||
<ul>
|
||||
<li>
|
||||
<code><id></code>
|
||||
</li>
|
||||
</ul>
|
||||
<li>Type</li>
|
||||
<ul>
|
||||
<li>
|
||||
<code>session-recording</code>
|
||||
</li>
|
||||
</ul>
|
||||
</ul>
|
||||
</td>
|
||||
<td>
|
||||
<ul>
|
||||
<li>
|
||||
<code>read</code>: Read a session recording
|
||||
</li>
|
||||
<ul>
|
||||
<li>
|
||||
<code>id=<id>;actions=read</code>
|
||||
</li>
|
||||
</ul>
|
||||
<li>
|
||||
<code>download</code>: Download a session recording
|
||||
</li>
|
||||
<ul>
|
||||
<li>
|
||||
<code>id=<id>;actions=download</code>
|
||||
</li>
|
||||
</ul>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td rowSpan="2">Storage Bucket</td>
|
||||
<td rowSpan="2">
|
||||
<ul>
|
||||
<li>Global</li>
|
||||
<li>Org</li>
|
||||
</ul>
|
||||
</td>
|
||||
<td>
|
||||
<code>/storage-buckets</code>
|
||||
</td>
|
||||
<td>
|
||||
<ul>
|
||||
<li>Type</li>
|
||||
<ul>
|
||||
<li>
|
||||
<code>storage-bucket</code>
|
||||
</li>
|
||||
</ul>
|
||||
</ul>
|
||||
</td>
|
||||
<td>
|
||||
<ul>
|
||||
<li>
|
||||
<code>create</code>: Create a storage bucket
|
||||
</li>
|
||||
<ul>
|
||||
<li>
|
||||
<code>type=<type>;actions=create</code>
|
||||
</li>
|
||||
</ul>
|
||||
<li>
|
||||
<code>list</code>: List storage buckets
|
||||
</li>
|
||||
<ul>
|
||||
<li>
|
||||
<code>type=<type>;actions=list</code>
|
||||
</li>
|
||||
</ul>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>/storage-buckets/<id></code>
|
||||
</td>
|
||||
<td>
|
||||
<ul>
|
||||
<li>ID</li>
|
||||
<ul>
|
||||
<li>
|
||||
<code><id></code>
|
||||
</li>
|
||||
</ul>
|
||||
<li>Type</li>
|
||||
<ul>
|
||||
<li>
|
||||
<code>storage-bucket</code>
|
||||
</li>
|
||||
</ul>
|
||||
</ul>
|
||||
</td>
|
||||
<td>
|
||||
<ul>
|
||||
<li>
|
||||
<code>read</code>: Read a storage bucket
|
||||
</li>
|
||||
<ul>
|
||||
<li>
|
||||
<code>id=<id>;actions=read</code>
|
||||
</li>
|
||||
</ul>
|
||||
<li>
|
||||
<code>update</code>: Update a storage bucket
|
||||
</li>
|
||||
<ul>
|
||||
<li>
|
||||
<code>id=<id>;actions=update</code>
|
||||
</li>
|
||||
</ul>
|
||||
<li>
|
||||
<code>delete</code>: Delete a storage bucket
|
||||
</li>
|
||||
<ul>
|
||||
<li>
|
||||
<code>id=<id>;actions=delete</code>
|
||||
</li>
|
||||
</ul>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td rowSpan="2">Target</td>
|
||||
<td rowSpan="2">
|
||||
|
||||
Reference in new issue
Block a user