Skip to content

Commit ee035e1

Browse files
authored
Merge branch 'databricks:main' into main
2 parents 755f84a + 1ccbcd2 commit ee035e1

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

docs/dataplane.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Data Plane APIs
2+
3+
Some APIs such as Model Serving support direct Data Plane access for higher throughput and lower latency requests.
4+
To access Data Plane access, a dedicated short-lived OAuth token must be used. The SDK is able to generate and refresh
5+
such tokens transparently for the user.
6+
7+
## Prerequisites
8+
Databricks SDK must be configured using a supported OAuth token. For more information, see
9+
[Supported Databricks authentication types](https://docs.databricks.com/en/dev-tools/auth/index.html)
10+
11+
The desired service or endpoint must have direct Data Plane access enabled.
12+
13+
## Usage
14+
Databricks SDK provides a separate service to be used for Data Plane access, which includes a `_data_plane` suffix.
15+
This service contains the subset of the methods for the original service which are supported in the Data Plane.
16+
17+
Example:
18+
19+
```python
20+
from databricks.sdk import WorkspaceClient
21+
# Control Plane
22+
w = WorkspaceClient()
23+
w.serving_endpoints.query(...)
24+
# Data Plane
25+
w.serving_endpoints_data_plane.query(...)
26+
```
27+

0 commit comments

Comments
 (0)