Share via


ResourceManagerRestRestClient.ListResources Method

Definition

Overloads

ListResources<TType>(String, CancellationToken, Nullable<Int32>, String)

Lists all the resources under the user's tenant.

ListResources<TType>(Guid, String, CancellationToken, Nullable<Int32>, String)

Lists all the resources under a single the subscription.

ListResources<TType>(Guid, String, String, CancellationToken, Nullable<Int32>, String)

Get all the resources in a single resource group.

ListResources<TType>(String, CancellationToken, Nullable<Int32>, String)

Lists all the resources under the user's tenant.

public System.Threading.Tasks.Task<Microsoft.Azure.Commands.ResourceManager.Common.ResponseWithContinuation<TType[]>> ListResources<TType> (string apiVersion, System.Threading.CancellationToken cancellationToken, int? top = default, string filter = default);
member this.ListResources : string * System.Threading.CancellationToken * Nullable<int> * string -> System.Threading.Tasks.Task<Microsoft.Azure.Commands.ResourceManager.Common.ResponseWithContinuation<'ype[]>>
Public Function ListResources(Of TType) (apiVersion As String, cancellationToken As CancellationToken, Optional top As Nullable(Of Integer) = Nothing, Optional filter As String = Nothing) As Task(Of ResponseWithContinuation(Of TType()))

Type Parameters

TType

Parameters

apiVersion
String

The API version to use.

cancellationToken
CancellationToken
top
Nullable<Int32>

The number of resources to fetch.

filter
String

The filter query.

Returns

Applies to

ListResources<TType>(Guid, String, CancellationToken, Nullable<Int32>, String)

Lists all the resources under a single the subscription.

public System.Threading.Tasks.Task<Microsoft.Azure.Commands.ResourceManager.Common.ResponseWithContinuation<TType[]>> ListResources<TType> (Guid subscriptionId, string apiVersion, System.Threading.CancellationToken cancellationToken, int? top = default, string filter = default);
member this.ListResources : Guid * string * System.Threading.CancellationToken * Nullable<int> * string -> System.Threading.Tasks.Task<Microsoft.Azure.Commands.ResourceManager.Common.ResponseWithContinuation<'ype[]>>
Public Function ListResources(Of TType) (subscriptionId As Guid, apiVersion As String, cancellationToken As CancellationToken, Optional top As Nullable(Of Integer) = Nothing, Optional filter As String = Nothing) As Task(Of ResponseWithContinuation(Of TType()))

Type Parameters

TType

Parameters

subscriptionId
Guid

The subscription Id.

apiVersion
String

The API version to use.

cancellationToken
CancellationToken
top
Nullable<Int32>

The number of resources to fetch.

filter
String

The filter query.

Returns

Applies to

ListResources<TType>(Guid, String, String, CancellationToken, Nullable<Int32>, String)

Get all the resources in a single resource group.

public System.Threading.Tasks.Task<Microsoft.Azure.Commands.ResourceManager.Common.ResponseWithContinuation<TType[]>> ListResources<TType> (Guid subscriptionId, string resourceGroupName, string apiVersion, System.Threading.CancellationToken cancellationToken, int? top = default, string filter = default);
member this.ListResources : Guid * string * string * System.Threading.CancellationToken * Nullable<int> * string -> System.Threading.Tasks.Task<Microsoft.Azure.Commands.ResourceManager.Common.ResponseWithContinuation<'ype[]>>
Public Function ListResources(Of TType) (subscriptionId As Guid, resourceGroupName As String, apiVersion As String, cancellationToken As CancellationToken, Optional top As Nullable(Of Integer) = Nothing, Optional filter As String = Nothing) As Task(Of ResponseWithContinuation(Of TType()))

Type Parameters

TType

Parameters

subscriptionId
Guid

The subscription Id.

resourceGroupName
String

The resource group name.

apiVersion
String

The API version to use.

cancellationToken
CancellationToken
top
Nullable<Int32>

The number of resources to fetch.

filter
String

The filter query.

Returns

Applies to