Share via


你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ICosmosDBAccounts 接口

定义

Cosmos DB 管理 API 的入口点。

public interface ICosmosDBAccounts : Microsoft.Azure.Management.ResourceManager.Fluent.Core.CollectionActions.ISupportsBatchCreation<Microsoft.Azure.Management.CosmosDB.Fluent.ICosmosDBAccount>, Microsoft.Azure.Management.ResourceManager.Fluent.Core.CollectionActions.ISupportsCreating<Microsoft.Azure.Management.CosmosDB.Fluent.CosmosDBAccount.Definition.IBlank>, Microsoft.Azure.Management.ResourceManager.Fluent.Core.CollectionActions.ISupportsDeletingById, Microsoft.Azure.Management.ResourceManager.Fluent.Core.CollectionActions.ISupportsDeletingByResourceGroup, Microsoft.Azure.Management.ResourceManager.Fluent.Core.CollectionActions.ISupportsGettingById<Microsoft.Azure.Management.CosmosDB.Fluent.ICosmosDBAccount>, Microsoft.Azure.Management.ResourceManager.Fluent.Core.CollectionActions.ISupportsGettingByResourceGroup<Microsoft.Azure.Management.CosmosDB.Fluent.ICosmosDBAccount>, Microsoft.Azure.Management.ResourceManager.Fluent.Core.CollectionActions.ISupportsListing<Microsoft.Azure.Management.CosmosDB.Fluent.ICosmosDBAccount>, Microsoft.Azure.Management.ResourceManager.Fluent.Core.CollectionActions.ISupportsListingByResourceGroup<Microsoft.Azure.Management.CosmosDB.Fluent.ICosmosDBAccount>, Microsoft.Azure.Management.ResourceManager.Fluent.Core.IBeta, Microsoft.Azure.Management.ResourceManager.Fluent.Core.IHasInner<Microsoft.Azure.Management.CosmosDB.Fluent.IDatabaseAccountsOperations>, Microsoft.Azure.Management.ResourceManager.Fluent.Core.IHasManager<Microsoft.Azure.Management.CosmosDB.Fluent.ICosmosDBManager>
type ICosmosDBAccounts = interface
    interface IBeta
    interface ISupportsCreating<IBlank>
    interface IHasManager<ICosmosDBManager>
    interface IHasInner<IDatabaseAccountsOperations>
    interface ISupportsBatchCreation<ICosmosDBAccount>
    interface ISupportsGettingById<ICosmosDBAccount>
    interface ISupportsDeletingById
    interface ISupportsDeletingByResourceGroup
    interface ISupportsListing<ICosmosDBAccount>
    interface ISupportsListingByResourceGroup<ICosmosDBAccount>
    interface ISupportsGettingByResourceGroup<ICosmosDBAccount>
Public Interface ICosmosDBAccounts
Implements IBeta, IHasInner(Of IDatabaseAccountsOperations), IHasManager(Of ICosmosDBManager), ISupportsBatchCreation(Of ICosmosDBAccount), ISupportsCreating(Of IBlank), ISupportsDeletingById, ISupportsDeletingByResourceGroup, ISupportsGettingById(Of ICosmosDBAccount), ISupportsGettingByResourceGroup(Of ICosmosDBAccount), ISupportsListing(Of ICosmosDBAccount), ISupportsListingByResourceGroup(Of ICosmosDBAccount)
派生
实现

注解

(Beta 版:此功能处于预览状态,因此在未来版本中可能会以非向后兼容方式进行更改,包括删除,而不考虑包含库版本号.) 设置的任何兼容性预期。

属性

Inner

Cosmos DB 管理 API 的入口点。

(继承自 IHasInner<T>)
Manager

获取此资源类型的管理器客户端类型。

(继承自 IHasManager<ManagerT>)

方法

Create(ICreatable<IFluentResourceT>[])

创建一组资源 (批处理) 。

(继承自 ISupportsBatchCreation<IFluentResourceT>)
Create(IEnumerable<ICreatable<IFluentResourceT>>)

创建一组资源 (批处理) 。

(继承自 ISupportsBatchCreation<IFluentResourceT>)
CreateAsync(IEnumerable<ICreatable<IFluentResourceT>>, CancellationToken)

创建一组资源 (批处理) 。

(继承自 ISupportsBatchCreation<IFluentResourceT>)
Define(String)

Cosmos DB 管理 API 的入口点。

(继承自 ISupportsCreating<T>)
DeleteById(String)

从 Azure 中删除资源,并按资源 ID 标识该资源。

(继承自 ISupportsDeletingById)
DeleteByIdAsync(String, CancellationToken)

从 Azure 中删除资源,并按资源 ID 标识该资源。

(继承自 ISupportsDeletingById)
DeleteByResourceGroup(String, String)

从 Azure 中删除资源,并按其名称和资源组对其进行标识。

(继承自 ISupportsDeletingByResourceGroup)
DeleteByResourceGroupAsync(String, String, CancellationToken)

从 Azure 中删除资源,并按其名称和资源组对其进行标识。

(继承自 ISupportsDeletingByResourceGroup)
FailoverPriorityChange(String, String, IList<Location>)

更改 Azure CosmosDB 数据库帐户的故障转移优先级。 故障转移优先级为 0 表示写入区域。 故障转移优先级的最大值 = (区域总数 - 1) 。 对于数据库帐户所在的每个区域,故障转移优先级值必须是唯一的。

FailoverPriorityChangeAsync(String, String, IList<Location>, CancellationToken)

更改 Azure CosmosDB 数据库帐户的故障转移优先级。 故障转移优先级为 0 表示写入区域。 故障转移优先级的最大值 = (区域总数 - 1) 。 对于数据库帐户所在的每个区域,故障转移优先级值必须是唯一的。

GetById(String)

根据资源 ID 从 Azure 获取有关资源的信息。

(继承自 ISupportsGettingById<T>)
GetByIdAsync(String, CancellationToken)

根据资源 ID 从 Azure 获取有关资源的信息。

(继承自 ISupportsGettingById<T>)
GetByResourceGroup(String, String)

根据资源名称和资源组的名称,从 Azure 获取有关资源的信息。

(继承自 ISupportsGettingByResourceGroup<T>)
GetByResourceGroupAsync(String, String, CancellationToken)

根据资源名称和资源组的名称,从 Azure 获取有关资源的信息。

(继承自 ISupportsGettingByResourceGroup<T>)
List()

列出当前所选订阅中指定类型的所有资源。

(继承自 ISupportsListing<T>)
ListAsync(Boolean, CancellationToken)

列出当前所选订阅中指定类型的所有资源。

(继承自 ISupportsListing<T>)
ListByResourceGroup(String)

列出指定资源组中指定类型的资源。

(继承自 ISupportsListingByResourceGroup<T>)
ListByResourceGroupAsync(String, Boolean, CancellationToken)

列出指定资源组中指定类型的资源。

(继承自 ISupportsListingByResourceGroup<T>)
ListConnectionStrings(String, String)

列出指定 Azure CosmosDB 数据库帐户的连接字符串。

ListConnectionStringsAsync(String, String, CancellationToken)

列出指定 Azure CosmosDB 数据库帐户的连接字符串。

ListKeys(String, String)

列出指定 Azure CosmosDB 数据库帐户的访问密钥。

ListKeysAsync(String, String, CancellationToken)

列出指定 Azure CosmosDB 数据库帐户的访问密钥。

ListReadOnlyKeys(String, String)

列出指定 Azure CosmosDB 数据库帐户的只读访问密钥。

ListReadOnlyKeysAsync(String, String, CancellationToken)

列出指定 Azure CosmosDB 数据库帐户的只读访问密钥。

RegenerateKey(String, String, String)

为指定的 Azure CosmosDB 数据库帐户重新生成访问密钥。

RegenerateKeyAsync(String, String, String, CancellationToken)

为指定的 Azure CosmosDB 数据库帐户重新生成访问密钥。

适用于