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

StorageAccountsOperationsExtensions.GetPropertiesAsync 方法

定义

返回指定存储帐户的属性,包括但不限于名称、SKU 名称、位置和帐户状态。 ListKeys 操作应用于检索存储密钥。

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Storage.Fluent.Models.StorageAccountInner> GetPropertiesAsync (this Microsoft.Azure.Management.Storage.Fluent.IStorageAccountsOperations operations, string resourceGroupName, string accountName, Microsoft.Azure.Management.Storage.Fluent.Models.StorageAccountExpand? expand = default, System.Threading.CancellationToken cancellationToken = default);
static member GetPropertiesAsync : Microsoft.Azure.Management.Storage.Fluent.IStorageAccountsOperations * string * string * Nullable<Microsoft.Azure.Management.Storage.Fluent.Models.StorageAccountExpand> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Storage.Fluent.Models.StorageAccountInner>
<Extension()>
Public Function GetPropertiesAsync (operations As IStorageAccountsOperations, resourceGroupName As String, accountName As String, Optional expand As Nullable(Of StorageAccountExpand) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of StorageAccountInner)

参数

operations
IStorageAccountsOperations

此扩展方法的操作组。

resourceGroupName
String

用户订阅中资源组的名称。 此名称不区分大小写。

accountName
String

指定资源组中存储帐户的名称。 存储帐户名称长度必须为 3 到 24 个字符,并且只能使用数字和小写字母。

expand
Nullable<StorageAccountExpand>

可用于扩展帐户属性中的属性。 默认情况下,提取属性时不包括数据。 目前,我们仅支持 geoReplicationStats。 可能的值包括:“geoReplicationStats”

cancellationToken
CancellationToken

取消标记。

返回

适用于