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

AppPlatformServiceResource.GetDeploymentsAsync 方法

定义

列出特定服务的部署

  • 请求路径/订阅/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/deployments
  • 操作IdDeployments_ListForCluster
public virtual Azure.AsyncPageable<Azure.ResourceManager.AppPlatform.AppPlatformDeploymentResource> GetDeploymentsAsync (System.Collections.Generic.IEnumerable<string> version = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetDeploymentsAsync : seq<string> * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.AppPlatform.AppPlatformDeploymentResource>
override this.GetDeploymentsAsync : seq<string> * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.AppPlatform.AppPlatformDeploymentResource>
Public Overridable Function GetDeploymentsAsync (Optional version As IEnumerable(Of String) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of AppPlatformDeploymentResource)

参数

version
IEnumerable<String>

要列出的部署的版本。

cancellationToken
CancellationToken

要使用的取消标记。

返回

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

适用于