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

ArmDeploymentCollection.GetAllAsync 方法

定义

获取给定范围内的所有部署。

  • 请求路径/{scope}/providers/Microsoft.Resources/deployments
  • 操作IdDeployments_ListAtScope
public virtual Azure.AsyncPageable<Azure.ResourceManager.Resources.ArmDeploymentResource> GetAllAsync (string filter = default, int? top = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAllAsync : string * Nullable<int> * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Resources.ArmDeploymentResource>
override this.GetAllAsync : string * Nullable<int> * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Resources.ArmDeploymentResource>
Public Overridable Function GetAllAsync (Optional filter As String = Nothing, Optional top As Nullable(Of Integer) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of ArmDeploymentResource)

参数

filter
String

要应用于操作的筛选器。 例如,可以使用 $filter=provisioningState eq '{state}'。

top
Nullable<Int32>

要获取的结果数。 如果传递 null,则返回所有部署。

cancellationToken
CancellationToken

要使用的取消标记。

返回

的异步集合 ArmDeploymentResource ,可能需要循环访问多个服务请求。

适用于