Compartilhar via


ResourceManagerRestRestClient.PutResource Method

Definition

Put a single resource.

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

Parameters

resourceId
String

The subscription Id.

apiVersion
String

The API version to use.

resource
Newtonsoft.Json.Linq.JToken

The resource to put.

cancellationToken
CancellationToken

The CancellationToken used to cancel the request.

odataQuery
String

The OData query.

Returns

Applies to