You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/credential-vending/index.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,19 @@ The path operations are used for [TemporaryPathCredentialsService](../server/Tem
37
37
??? note "OpenAPI Generator"
38
38
Path operations are defined in `PathOperation` enum in Unity Catalog's [OpenAPI specification]({{ uc.github }}/api/all.yaml).
39
39
40
+
## Model Version Operations
41
+
42
+
There are the following model version operations supported in Unity Catalog:
43
+
44
+
*`READ_MODEL_VERSION`
45
+
*`READ_WRITE_MODEL_VERSION`
46
+
*`UNKNOWN_MODEL_VERSION_OPERATION`
47
+
48
+
The path operations are used for [TemporaryModelVersionCredentialsService](../server/TemporaryModelVersionCredentialsService.md) to determine the [privileges for a model version operation](../server/TemporaryModelVersionCredentialsService.md#modelVersionOperationToPrivileges) (while [generating temporary model version credentials](../server/TemporaryModelVersionCredentialsService.md#generateTemporaryModelVersionCredentials)).
49
+
50
+
??? note "OpenAPI Generator"
51
+
Path operations are defined in `ModelVersionOperation` enum in Unity Catalog's [OpenAPI specification]({{ uc.github }}/api/all.yaml).
52
+
40
53
## Amazon S3
41
54
42
55
[Alex Reid once wrote]({{ uc.slack }}/C076YREKX8W/p1728333073156489?thread_ts=1728308961.254459&cid=C076YREKX8W):
Copy file name to clipboardExpand all lines: docs/server/TemporaryModelVersionCredentialsService.md
+30-1Lines changed: 30 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,13 @@
1
1
# TemporaryModelVersionCredentialsService
2
2
3
+
`TemporaryModelVersionCredentialsService` is an API service of [UnityCatalogServer](UnityCatalogServer.md) to handle HTTP requests at `/api/2.1/unity-catalog/temporary-model-version-credentials` URL.
4
+
5
+
Method | URL | Handler | Params
6
+
-|-|-|-
7
+
POST | `/` | [generateTemporaryModelVersionCredentials](#generateTemporaryModelVersionCredentials) | JSON-ified `GenerateTemporaryModelVersionCredential`
8
+
9
+
`TemporaryModelVersionCredentialsService` supports [credential vending](#generateTemporaryModelVersionCredentials) for model versions in non-file-based storage locations.
10
+
3
11
## Creating Instance
4
12
5
13
`TemporaryModelVersionCredentialsService` takes the following to be created:
@@ -17,11 +25,32 @@ While being created, `TemporaryModelVersionCredentialsService` creates an [Unity
17
25
18
26
`TemporaryModelVersionCredentialsService` creates an [UnityAccessEvaluator](../server-authorization/UnityAccessEvaluator.md) (with the given [UnityCatalogAuthorizer](#authorizer)) when [created](#creating-instance).
`TemporaryModelVersionCredentialsService` gets the system-wide [ModelRepository](../persistent-storage/ModelRepository.md#getInstance) instance when [created](#creating-instance).
31
+
32
+
`TemporaryModelVersionCredentialsService` uses the `ModelRepository` to [look up the model version](../persistent-storage/ModelRepository.md#getModelVersion) while [generating temporary model version credentials](#generateTemporaryModelVersionCredentials).
33
+
34
+
## Generate Temporary Model Version Credentials { #generateTemporaryModelVersionCredentials }
`modelVersionOperationToPrivileges` converts the given [ModelVersionOperation](../credential-vending/index.md#model-version-operations) to [Privileges](../basic-server-access-control/index.md#privileges):
51
+
52
+
ModelVersionOperation | Privileges
53
+
-|-
54
+
`READ_MODEL_VERSION` | `SELECT`
55
+
`READ_WRITE_MODEL_VERSION` | `SELECT`, `UPDATE`
56
+
`UNKNOWN_MODEL_VERSION_OPERATION` | A `BaseException` is thrown
0 commit comments