共用方式為


FabricClient.QueryClient.GetDeployedServicePackageListAsync Method

Definition

Overloads

GetDeployedServicePackageListAsync(String, Uri)

Gets the deployed service packages for the given node and application. For more functionality, use GetDeployedServicePackagePagedListAsync(PagedDeployedServicePackageQueryDescription). This method will be deprecated in the future.

GetDeployedServicePackageListAsync(String, Uri, String)

Gets the deployed service packages for the given node and application. For more functionality, use GetDeployedServicePackagePagedListAsync(PagedDeployedServicePackageQueryDescription). This method will be deprecated in the future.

GetDeployedServicePackageListAsync(String, Uri, String, TimeSpan, CancellationToken)

Gets the deployed service packages for the given node and application. For more functionality, use GetDeployedServicePackagePagedListAsync(PagedDeployedServicePackageQueryDescription, TimeSpan, CancellationToken). This method will be deprecated in the future.

GetDeployedServicePackageListAsync(String, Uri)

Gets the deployed service packages for the given node and application. For more functionality, use GetDeployedServicePackagePagedListAsync(PagedDeployedServicePackageQueryDescription). This method will be deprecated in the future.

public System.Threading.Tasks.Task<System.Fabric.Query.DeployedServicePackageList> GetDeployedServicePackageListAsync (string nodeName, Uri applicationName);
member this.GetDeployedServicePackageListAsync : string * Uri -> System.Threading.Tasks.Task<System.Fabric.Query.DeployedServicePackageList>
Public Function GetDeployedServicePackageListAsync (nodeName As String, applicationName As Uri) As Task(Of DeployedServicePackageList)

Parameters

nodeName
String

The name of the node. This is a case-sensitive exact match. This value should not be null or empty, and if the node name does not match any node on the cluster, an exception is thrown.

applicationName
Uri

The name of the application.

Returns

A task that represents the asynchronous query operation.

The returned task contains the list of deployed service packages as DeployedServicePackageList.

Exceptions

This operation has a timeout of 60 seconds.

See https://docs.microsoft.com/azure/service-fabric/service-fabric-errors-and-exceptions for handling common FabricClient failures.

For this query, this exception usually means that the given node name does not match any node in the cluster.

Applies to

GetDeployedServicePackageListAsync(String, Uri, String)

Gets the deployed service packages for the given node and application. For more functionality, use GetDeployedServicePackagePagedListAsync(PagedDeployedServicePackageQueryDescription). This method will be deprecated in the future.

public System.Threading.Tasks.Task<System.Fabric.Query.DeployedServicePackageList> GetDeployedServicePackageListAsync (string nodeName, Uri applicationName, string serviceManifestNameFilter);
member this.GetDeployedServicePackageListAsync : string * Uri * string -> System.Threading.Tasks.Task<System.Fabric.Query.DeployedServicePackageList>
Public Function GetDeployedServicePackageListAsync (nodeName As String, applicationName As Uri, serviceManifestNameFilter As String) As Task(Of DeployedServicePackageList)

Parameters

nodeName
String

The name of the node. This is a case-sensitive exact match. This value should not be null or empty, and if the node name does not match any node on the cluster, an exception is thrown.

applicationName
Uri

The name of the application.

serviceManifestNameFilter
String

Filter results to include only those matching this service manifest name.

Returns

A task that represents the asynchronous query operation.

The returned task contains the list of deployed service packages as DeployedServicePackageList.

Exceptions

This operation has a timeout of 60 seconds.

See https://docs.microsoft.com/azure/service-fabric/service-fabric-errors-and-exceptions for handling common FabricClient failures.

For this query, this exception usually means that the given node name does not match any node in the cluster.

Applies to

GetDeployedServicePackageListAsync(String, Uri, String, TimeSpan, CancellationToken)

Gets the deployed service packages for the given node and application. For more functionality, use GetDeployedServicePackagePagedListAsync(PagedDeployedServicePackageQueryDescription, TimeSpan, CancellationToken). This method will be deprecated in the future.

public System.Threading.Tasks.Task<System.Fabric.Query.DeployedServicePackageList> GetDeployedServicePackageListAsync (string nodeName, Uri applicationName, string serviceManifestNameFilter, TimeSpan timeout, System.Threading.CancellationToken cancellationToken);
member this.GetDeployedServicePackageListAsync : string * Uri * string * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Fabric.Query.DeployedServicePackageList>
Public Function GetDeployedServicePackageListAsync (nodeName As String, applicationName As Uri, serviceManifestNameFilter As String, timeout As TimeSpan, cancellationToken As CancellationToken) As Task(Of DeployedServicePackageList)

Parameters

nodeName
String

The name of the node. This is a case-sensitive exact match. This value should not be null or empty, and if the node name does not match any node on the cluster, an exception is thrown.

applicationName
Uri

The name of the application.

serviceManifestNameFilter
String

Filter results to include only those matching this service manifest name.

timeout
TimeSpan

Specifies the duration this operation has to complete before timing out.

cancellationToken
CancellationToken

Propagates notification that operations should be canceled.

Returns

A task that represents the asynchronous query operation.

The returned task contains the list of deployed service packages as DeployedServicePackageList.

Exceptions

For this query, this exception usually means that the given node name does not match any node in the cluster.

Applies to