你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
KustoDatabaseCollection.CreateOrUpdate 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
CreateOrUpdate(WaitUntil, String, KustoDatabaseData, CancellationToken) |
创建或更新数据库。
|
CreateOrUpdate(WaitUntil, String, KustoDatabaseData, Nullable<KustoDatabaseCallerRole>, CancellationToken) |
创建或更新数据库。
|
CreateOrUpdate(WaitUntil, String, KustoDatabaseData, CancellationToken)
创建或更新数据库。
- 请求路径/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}
- 操作IdDatabases_CreateOrUpdate
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Kusto.KustoDatabaseResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string databaseName, Azure.ResourceManager.Kusto.KustoDatabaseData data, System.Threading.CancellationToken cancellationToken);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Kusto.KustoDatabaseData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Kusto.KustoDatabaseResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Kusto.KustoDatabaseData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Kusto.KustoDatabaseResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, databaseName As String, data As KustoDatabaseData, cancellationToken As CancellationToken) As ArmOperation(Of KustoDatabaseResource)
参数
- waitUntil
- WaitUntil
Completed 如果方法应等待返回,直到服务上长时间运行的操作完成; Started 如果它应在启动操作后返回,则为 。 有关长时间运行的操作的详细信息,请参阅 Azure.Core Long-Running 操作示例。
- databaseName
- String
Kusto 群集中数据库的名称。
- data
- KustoDatabaseData
提供给 CreateOrUpdate 操作的数据库参数。
- cancellationToken
- CancellationToken
要使用的取消标记。
返回
例外
databaseName
是一个空字符串,预期为非空。
databaseName
或 data
为 null。
适用于
CreateOrUpdate(WaitUntil, String, KustoDatabaseData, Nullable<KustoDatabaseCallerRole>, CancellationToken)
创建或更新数据库。
- 请求路径/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}
- 操作IdDatabases_CreateOrUpdate
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Kusto.KustoDatabaseResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string databaseName, Azure.ResourceManager.Kusto.KustoDatabaseData data, Azure.ResourceManager.Kusto.Models.KustoDatabaseCallerRole? callerRole = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Kusto.KustoDatabaseData * Nullable<Azure.ResourceManager.Kusto.Models.KustoDatabaseCallerRole> * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Kusto.KustoDatabaseResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Kusto.KustoDatabaseData * Nullable<Azure.ResourceManager.Kusto.Models.KustoDatabaseCallerRole> * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Kusto.KustoDatabaseResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, databaseName As String, data As KustoDatabaseData, Optional callerRole As Nullable(Of KustoDatabaseCallerRole) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of KustoDatabaseResource)
参数
- waitUntil
- WaitUntil
Completed 如果方法应等待返回,直到服务上长时间运行的操作完成; Started 如果它应在启动操作后返回,则为 。 有关长时间运行的操作的详细信息,请参阅 Azure.Core Long-Running 操作示例。
- databaseName
- String
Kusto 群集中数据库的名称。
- data
- KustoDatabaseData
提供给 CreateOrUpdate 操作的数据库参数。
- callerRole
- Nullable<KustoDatabaseCallerRole>
默认情况下,对数据库运行操作的任何用户都将成为数据库管理员。 此属性允许调用方从管理员列表中排除调用方。
- cancellationToken
- CancellationToken
要使用的取消标记。
返回
例外
databaseName
是一个空字符串,预期为非空。
databaseName
或 data
为 null。