AzureSqlDatabaseDatastore 類別
表示資料存放區,該資料存放區會將連接資訊儲存至 Azure SQL Database。
您不應該直接使用此類別。 若要建立將資料存放區儲存至 Azure SQL Database 的連接資訊,請使用 register_azure_sql_database 類別的 Datastore 方法。
注意:使用資料存放區來存取資料時,您必須具有存取資料的許可權,這取決於向資料存放區註冊的認證。
初始化新的Azure SQL資料庫資料存放區。
- 繼承
-
AzureSqlDatabaseDatastore
建構函式
AzureSqlDatabaseDatastore(workspace, name, server_name, database_name, tenant_id=None, client_id=None, client_secret=None, resource_url=None, authority_url=None, username=None, password=None, auth_type=None, service_data_access_auth_identity=None)
參數
名稱 | Description |
---|---|
workspace
必要
|
此資料存放區所屬的工作區。 |
name
必要
|
資料存放區名稱。 |
server_name
必要
|
SQL 伺服器名稱 |
database_name
必要
|
SQL 資料庫名稱 |
tenant_id
|
服務主體的目錄識別碼/租使用者識別碼。 預設值: None
|
client_id
|
服務主體的用戶端識別碼/應用程式識別碼。 預設值: None
|
client_secret
|
服務主體的秘密。 預設值: None
|
resource_url
|
str, <xref:optional>
資源 URL,決定將在 SQL 資料庫存放區上執行的作業。 如果為 None,則預設為 https://database.windows.net/ 。 預設值: None
|
authority_url
|
str, <xref:optional>
用來驗證使用者的授權單位 URL。 預設值為 https://login.microsoftonline.com。 預設值: None
|
username
|
要存取資料庫之資料庫使用者的使用者名稱。 預設值: None
|
password
|
存取資料庫之資料庫使用者的密碼。 預設值: None
|
workspace
必要
|
此資料存放區所屬的工作區。 |
name
必要
|
資料存放區名稱。 |
server_name
必要
|
SQL 伺服器名稱 |
database_name
必要
|
SQL 資料庫名稱 |
tenant_id
必要
|
服務主體的目錄識別碼/租使用者識別碼。 |
client_id
必要
|
服務主體的用戶端識別碼/應用程式識別碼。 |
client_secret
必要
|
服務主體的秘密。 |
resource_url
必要
|
str, <xref:optional>
資源 URL,決定將在 SQL 資料庫存放區上執行的作業。 如果為 None,則預設為 https://database.windows.net/ 。 |
authority_url
必要
|
str, <xref:optional>
用來驗證使用者的授權單位 URL。 預設值為 https://login.microsoftonline.com。 |
username
必要
|
要存取資料庫之資料庫使用者的使用者名稱。 |
password
必要
|
存取資料庫之資料庫使用者的密碼。 |
auth_type
|
驗證類型。 預設值: None
|
service_data_access_auth_identity
|
str 或
<xref:_restclient.models.ServiceDataAccessAuthIdentity>
指出要用來驗證客戶儲存體之服務資料存取權的身分識別。 可能的值包括:'None'、'WorkspaceSystemAssignedIdentity'、'WorkspaceUserAssignedIdentity' 預設值: None
|