Share via


ResourceManagerRestRestClient.InvokeActionOnResource Method

Definition

Overloads

InvokeActionOnResource(String, String, String, CancellationToken, String, JObject)

Get a nested resource.

InvokeActionOnResource<TResult>(String, String, String, CancellationToken, String, JToken)

Get a nested resource.

InvokeActionOnResource(String, String, String, CancellationToken, String, JObject)

Get a nested resource.

public System.Threading.Tasks.Task<Microsoft.Azure.Commands.ResourceManager.Cmdlets.Components.OperationResult> InvokeActionOnResource (string resourceId, string action, string apiVersion, System.Threading.CancellationToken cancellationToken, string odataQuery = default, Newtonsoft.Json.Linq.JObject parameters = default);
member this.InvokeActionOnResource : string * string * string * System.Threading.CancellationToken * string * Newtonsoft.Json.Linq.JObject -> System.Threading.Tasks.Task<Microsoft.Azure.Commands.ResourceManager.Cmdlets.Components.OperationResult>
Public Function InvokeActionOnResource (resourceId As String, action As String, apiVersion As String, cancellationToken As CancellationToken, Optional odataQuery As String = Nothing, Optional parameters As JObject = Nothing) As Task(Of OperationResult)

Parameters

resourceId
String

The resource Id.

action
String

The action to invoke.

apiVersion
String

The API version to use.

cancellationToken
CancellationToken

The CancellationToken used to cancel the request.

odataQuery
String

The OData query.

parameters
Newtonsoft.Json.Linq.JObject

The parameters to pass.

Returns

Applies to

InvokeActionOnResource<TResult>(String, String, String, CancellationToken, String, JToken)

Get a nested resource.

public System.Threading.Tasks.Task<Microsoft.Azure.Commands.ResourceManager.Cmdlets.Components.OperationResult> InvokeActionOnResource<TResult> (string resourceId, string action, string apiVersion, System.Threading.CancellationToken cancellationToken, string odataQuery = default, Newtonsoft.Json.Linq.JToken parameters = default);
member this.InvokeActionOnResource : string * string * string * System.Threading.CancellationToken * string * Newtonsoft.Json.Linq.JToken -> System.Threading.Tasks.Task<Microsoft.Azure.Commands.ResourceManager.Cmdlets.Components.OperationResult>
Public Function InvokeActionOnResource(Of TResult) (resourceId As String, action As String, apiVersion As String, cancellationToken As CancellationToken, Optional odataQuery As String = Nothing, Optional parameters As JToken = Nothing) As Task(Of OperationResult)

Type Parameters

TResult

The type of the result

Parameters

resourceId
String

The resource Id.

action
String

The action to invoke.

apiVersion
String

The API version to use.

cancellationToken
CancellationToken

The CancellationToken used to cancel the request.

odataQuery
String

The OData query.

parameters
Newtonsoft.Json.Linq.JToken

The parameters to pass.

Returns

Applies to