Immutable solution version
Databricks SDK: ClustersAPI.create missing data_security_mode
Complete solution
Shows how to fix databricks SDK: ClustersAPI.create missing data_security_mode. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
The field had been added to the OpenAPI spec but the installed SDK was generated from an older spec. ` pip install -U databricks-sdk Then pass the mode directly: python w.clusters.create(..., data\_security\_mode=DataSecurityMode.SINGLE\_USER) ` Use whatever mode your policy requires.
Steps
- 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.
pip install -U databricks-sdk- Then 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.
- 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.
Expected: The maintainer confirmed the field is present in the latest SDK release.
When to use
You are seeing this: Calling ClustersAPI.create with data\security\mode failed: the attribute was missing from the SDK's generated model. Use this skill when you run into "Databricks SDK: ClustersAPI.create missing datasecuritymode".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.
Why this happens
The field had been added to the OpenAPI spec but the installed SDK was generated from an older spec.
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 2 · 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>