ServiceFabricExtensions.GetClusterVersionsByEnvironment Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetClusterVersionsByEnvironment(SubscriptionResource, AzureLocation, ClusterVersionsEnvironment, CancellationToken) |
Gets all available code versions for Service Fabric cluster resources by environment.
|
GetClusterVersionsByEnvironment(SubscriptionResource, AzureLocation, ClusterVersionsEnvironment, String, CancellationToken) |
Gets information about an available Service Fabric cluster code version by environment.
|
GetClusterVersionsByEnvironment(SubscriptionResource, AzureLocation, ClusterVersionsEnvironment, CancellationToken)
- Source:
- ServiceFabricExtensions.cs
- Source:
- ServiceFabricExtensions.cs
Gets all available code versions for Service Fabric cluster resources by environment.
- Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabric/locations/{location}/environments/{environment}/clusterVersions
- Operation Id: ClusterVersions_ListByEnvironment
- Default Api Version: 2023-11-01-preview
public static Azure.Pageable<Azure.ResourceManager.ServiceFabric.Models.ClusterCodeVersionsResult> GetClusterVersionsByEnvironment (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, Azure.ResourceManager.ServiceFabric.Models.ClusterVersionsEnvironment environment, System.Threading.CancellationToken cancellationToken = default);
static member GetClusterVersionsByEnvironment : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation * Azure.ResourceManager.ServiceFabric.Models.ClusterVersionsEnvironment * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.ServiceFabric.Models.ClusterCodeVersionsResult>
<Extension()>
Public Function GetClusterVersionsByEnvironment (subscriptionResource As SubscriptionResource, location As AzureLocation, environment As ClusterVersionsEnvironment, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of ClusterCodeVersionsResult)
Parameters
- subscriptionResource
- SubscriptionResource
The SubscriptionResource instance the method will execute against.
- location
- AzureLocation
The location parameter.
- environment
- ClusterVersionsEnvironment
The operating system of the cluster. The default means all.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of ClusterCodeVersionsResult that may take multiple service requests to iterate over.
Exceptions
subscriptionResource
is null.
Applies to
GetClusterVersionsByEnvironment(SubscriptionResource, AzureLocation, ClusterVersionsEnvironment, String, CancellationToken)
- Source:
- ServiceFabricExtensions.cs
- Source:
- ServiceFabricExtensions.cs
Gets information about an available Service Fabric cluster code version by environment.
- Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabric/locations/{location}/environments/{environment}/clusterVersions/{clusterVersion}
- Operation Id: ClusterVersions_GetByEnvironment
- Default Api Version: 2023-11-01-preview
public static Azure.Pageable<Azure.ResourceManager.ServiceFabric.Models.ClusterCodeVersionsResult> GetClusterVersionsByEnvironment (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 GetClusterVersionsByEnvironment : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation * Azure.ResourceManager.ServiceFabric.Models.ClusterVersionsEnvironment * string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.ServiceFabric.Models.ClusterCodeVersionsResult>
<Extension()>
Public Function GetClusterVersionsByEnvironment (subscriptionResource As SubscriptionResource, location As AzureLocation, environment As ClusterVersionsEnvironment, clusterVersion As String, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of ClusterCodeVersionsResult)
Parameters
- subscriptionResource
- SubscriptionResource
The SubscriptionResource instance the method will execute against.
- location
- AzureLocation
The location parameter.
- environment
- ClusterVersionsEnvironment
The operating system of the cluster. The default means all.
- clusterVersion
- String
The cluster code version.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of ClusterCodeVersionsResult that may take multiple service requests to iterate over.
Exceptions
clusterVersion
is an empty string, and was expected to be non-empty.
subscriptionResource
or clusterVersion
is null.
Applies to
Azure SDK for .NET
Váš názor
https://aka.ms/ContentUserFeedback.
Připravujeme: V průběhu roku 2024 budeme postupně vyřazovat problémy z GitHub coby mechanismus zpětné vazby pro obsah a nahrazovat ho novým systémem zpětné vazby. Další informace naleznete v tématu:Odeslat a zobrazit názory pro