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

ServiceFabricExtensions.GetClusterVersionsByEnvironmentAsync 方法

定义

重载

GetClusterVersionsByEnvironmentAsync(SubscriptionResource, AzureLocation, ClusterVersionsEnvironment, CancellationToken)

按环境获取 Service Fabric 群集资源的所有可用代码版本。

  • 请求路径/订阅/{subscriptionId}/providers/Microsoft.ServiceFabric/locations/{location}/environments/{environment}/clusterVersions
  • 操作IdClusterVersions_ListByEnvironment
GetClusterVersionsByEnvironmentAsync(SubscriptionResource, AzureLocation, ClusterVersionsEnvironment, String, CancellationToken)

按环境获取有关可用 Service Fabric 群集代码版本的信息。

  • 请求路径/订阅/{subscriptionId}/providers/Microsoft.ServiceFabric/locations/{location}/environments/{environment}/clusterVersions/{clusterVersion}
  • 操作IdClusterVersions_GetByEnvironment

GetClusterVersionsByEnvironmentAsync(SubscriptionResource, AzureLocation, ClusterVersionsEnvironment, CancellationToken)

按环境获取 Service Fabric 群集资源的所有可用代码版本。

  • 请求路径/订阅/{subscriptionId}/providers/Microsoft.ServiceFabric/locations/{location}/environments/{environment}/clusterVersions
  • 操作IdClusterVersions_ListByEnvironment
public static Azure.AsyncPageable<Azure.ResourceManager.ServiceFabric.Models.ClusterCodeVersionsResult> GetClusterVersionsByEnvironmentAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, Azure.ResourceManager.ServiceFabric.Models.ClusterVersionsEnvironment environment, System.Threading.CancellationToken cancellationToken = default);
static member GetClusterVersionsByEnvironmentAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation * Azure.ResourceManager.ServiceFabric.Models.ClusterVersionsEnvironment * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.ServiceFabric.Models.ClusterCodeVersionsResult>
<Extension()>
Public Function GetClusterVersionsByEnvironmentAsync (subscriptionResource As SubscriptionResource, location As AzureLocation, environment As ClusterVersionsEnvironment, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of ClusterCodeVersionsResult)

参数

subscriptionResource
SubscriptionResource

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

location
AzureLocation

群集代码版本的位置。 这与群集位置不同。

environment
ClusterVersionsEnvironment

群集的操作系统。 默认值表示 all。

cancellationToken
CancellationToken

要使用的取消标记。

返回

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

适用于

GetClusterVersionsByEnvironmentAsync(SubscriptionResource, AzureLocation, ClusterVersionsEnvironment, String, CancellationToken)

按环境获取有关可用 Service Fabric 群集代码版本的信息。

  • 请求路径/订阅/{subscriptionId}/providers/Microsoft.ServiceFabric/locations/{location}/environments/{environment}/clusterVersions/{clusterVersion}
  • 操作IdClusterVersions_GetByEnvironment
public static Azure.AsyncPageable<Azure.ResourceManager.ServiceFabric.Models.ClusterCodeVersionsResult> GetClusterVersionsByEnvironmentAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, Azure.ResourceManager.ServiceFabric.Models.ClusterVersionsEnvironment environment, string clusterVersion, System.Threading.CancellationToken cancellationToken = default);
static member GetClusterVersionsByEnvironmentAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation * Azure.ResourceManager.ServiceFabric.Models.ClusterVersionsEnvironment * string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.ServiceFabric.Models.ClusterCodeVersionsResult>
<Extension()>
Public Function GetClusterVersionsByEnvironmentAsync (subscriptionResource As SubscriptionResource, location As AzureLocation, environment As ClusterVersionsEnvironment, clusterVersion As String, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of ClusterCodeVersionsResult)

参数

subscriptionResource
SubscriptionResource

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

location
AzureLocation

群集代码版本的位置。 这与群集位置不同。

environment
ClusterVersionsEnvironment

群集的操作系统。 默认值表示 all。

clusterVersion
String

群集代码版本。

cancellationToken
CancellationToken

要使用的取消标记。

返回

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

例外

clusterVersion 是一个空字符串,预期为非空。

clusterVersion 为 null。

适用于