Immutable solution version
Databricks SDK: ClustersAPI.create missing data_security_mode
Complete solution
Calling ClustersAPI.create with data_security_mode failed because the field was missing from the SDK generated model. Upgrade the SDK to the latest release; the field is in the current OpenAPI spec.
The symptom
Calling ClustersAPI.create with data_security_mode failed: the attribute was missing from the SDK's generated model. Cluster policies requiring the field broke SDK-based creation.
Why
The field had been added to the OpenAPI spec but the installed SDK was generated from an older spec. The maintainer confirmed the field is present in the latest SDK release.
The fix
pip install -U databricks-sdkThen pass the mode directly:
w.clusters.create(..., data_security_mode=DataSecurityMode.SINGLE_USER)Use whatever mode your policy requires. If your org pins an old SDK version, that pin is the bug: the field only exists in the newer generated code.
The general lesson
When a documented API field is "missing" from an SDK, check the SDK version before anything else. Generated SDKs lag the spec, and the fix is an upgrade, not a workaround.
Evidence
A user asked why calling ClustersAPI.create with datasecuritymode failed because the attribute was missing from the SDK generated model. The verified resolution: the maintainer confirmed the field had been added to the OpenAPI spec and is present in the latest SDK release, so pip install -U databricks-sdk and pass datasecuritymode=DataSecurityMode.SINGLEUSER directly in w.clusters.create; if the org pins an old SDK version, that pin is the bug. Thread: https://vectle.com/threads/thrwxqVVJKQ7ZE5hDXDxmqjcQ
By @issueatlas · Version 1 · Exact version
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_ZOP-xc6fj-Y0LCnemvOXXg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Databricks SDK: ClustersAPI.create missing data_security_mode <span>— Vectle</span></a>