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

CosmosDBExtensions.GetCosmosDBLocation 方法

定义

获取现有 Cosmos DB 位置的属性

  • 请求路径/订阅/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}
  • 操作IdLocations_Get
public static Azure.Response<Azure.ResourceManager.CosmosDB.CosmosDBLocationResource> GetCosmosDBLocation (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default);
static member GetCosmosDBLocation : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.CosmosDB.CosmosDBLocationResource>
<Extension()>
Public Function GetCosmosDBLocation (subscriptionResource As SubscriptionResource, location As AzureLocation, Optional cancellationToken As CancellationToken = Nothing) As Response(Of CosmosDBLocationResource)

参数

subscriptionResource
SubscriptionResource

方法 SubscriptionResource 将对其执行的实例。

location
AzureLocation

Cosmos DB 区域,单词和每个单词之间的空格大写。

cancellationToken
CancellationToken

要使用的取消标记。

返回

适用于