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

Storages interface

表示存储的接口。

方法

beginCreateOrUpdate(string, string, string, StorageResource, StoragesCreateOrUpdateOptionalParams)

创建或更新存储资源。

beginCreateOrUpdateAndWait(string, string, string, StorageResource, StoragesCreateOrUpdateOptionalParams)

创建或更新存储资源。

beginDelete(string, string, string, StoragesDeleteOptionalParams)

删除存储资源。

beginDeleteAndWait(string, string, string, StoragesDeleteOptionalParams)

删除存储资源。

get(string, string, string, StoragesGetOptionalParams)

获取存储资源。

list(string, string, StoragesListOptionalParams)

列出一个 Azure Spring Apps 资源的所有存储。

方法详细信息

beginCreateOrUpdate(string, string, string, StorageResource, StoragesCreateOrUpdateOptionalParams)

创建或更新存储资源。

function beginCreateOrUpdate(resourceGroupName: string, serviceName: string, storageName: string, storageResource: StorageResource, options?: StoragesCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<StorageResource>, StorageResource>>

参数

resourceGroupName

string

包含资源的资源组的名称。 可以从 Azure 资源管理器 API 或门户获取此值。

serviceName

string

服务资源的名称。

storageName

string

存储资源的名称。

storageResource
StorageResource

创建或更新操作的参数

options
StoragesCreateOrUpdateOptionalParams

选项参数。

返回

Promise<@azure/core-lro.SimplePollerLike<OperationState<StorageResource>, StorageResource>>

beginCreateOrUpdateAndWait(string, string, string, StorageResource, StoragesCreateOrUpdateOptionalParams)

创建或更新存储资源。

function beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, storageName: string, storageResource: StorageResource, options?: StoragesCreateOrUpdateOptionalParams): Promise<StorageResource>

参数

resourceGroupName

string

包含资源的资源组的名称。 可以从 Azure 资源管理器 API 或门户获取此值。

serviceName

string

服务资源的名称。

storageName

string

存储资源的名称。

storageResource
StorageResource

创建或更新操作的参数

options
StoragesCreateOrUpdateOptionalParams

选项参数。

返回

Promise<StorageResource>

beginDelete(string, string, string, StoragesDeleteOptionalParams)

删除存储资源。

function beginDelete(resourceGroupName: string, serviceName: string, storageName: string, options?: StoragesDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>

参数

resourceGroupName

string

包含资源的资源组的名称。 可以从 Azure 资源管理器 API 或门户获取此值。

serviceName

string

服务资源的名称。

storageName

string

存储资源的名称。

options
StoragesDeleteOptionalParams

选项参数。

返回

Promise<@azure/core-lro.SimplePollerLike<OperationState<void>, void>>

beginDeleteAndWait(string, string, string, StoragesDeleteOptionalParams)

删除存储资源。

function beginDeleteAndWait(resourceGroupName: string, serviceName: string, storageName: string, options?: StoragesDeleteOptionalParams): Promise<void>

参数

resourceGroupName

string

包含资源的资源组的名称。 可以从 Azure 资源管理器 API 或门户获取此值。

serviceName

string

服务资源的名称。

storageName

string

存储资源的名称。

options
StoragesDeleteOptionalParams

选项参数。

返回

Promise<void>

get(string, string, string, StoragesGetOptionalParams)

获取存储资源。

function get(resourceGroupName: string, serviceName: string, storageName: string, options?: StoragesGetOptionalParams): Promise<StorageResource>

参数

resourceGroupName

string

包含资源的资源组的名称。 可以从 Azure 资源管理器 API 或门户获取此值。

serviceName

string

服务资源的名称。

storageName

string

存储资源的名称。

options
StoragesGetOptionalParams

选项参数。

返回

Promise<StorageResource>

list(string, string, StoragesListOptionalParams)

列出一个 Azure Spring Apps 资源的所有存储。

function list(resourceGroupName: string, serviceName: string, options?: StoragesListOptionalParams): PagedAsyncIterableIterator<StorageResource, StorageResource[], PageSettings>

参数

resourceGroupName

string

包含资源的资源组的名称。 可以从 Azure 资源管理器 API 或门户获取此值。

serviceName

string

服务资源的名称。

options
StoragesListOptionalParams

选项参数。

返回