Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ISSUE] service_principal_id has a wrong type #566

Closed
hiroyone opened this issue Feb 28, 2024 · 3 comments
Closed

[ISSUE] service_principal_id has a wrong type #566

hiroyone opened this issue Feb 28, 2024 · 3 comments

Comments

@hiroyone
Copy link

Description
service_principal_id in

.. currentmodule:: databricks.sdk.service.oauth2
is defined as int but it should be str in my understanding.

https://docs.databricks.com/api/workspace/serviceprincipals/get
"id": "string"

But even the above API doc says int64 in the definition part, so I am confused.

@hiroyone
Copy link
Author

I found that actually int is correct and I needed to specify the int value that is found at the URL of service principals.
But how can I find this value from the API?

@mgyucht
Copy link
Contributor

mgyucht commented Mar 13, 2024

It should be the same ID you use to get a service principal, or the id field of a service principal if you list them with a.service_principals.list(). See the id field in https://docs.databricks.com/api/account/accountserviceprincipals/get.

@hiroyone
Copy link
Author

I see. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants