ArmClient.ResourcesCreateOrUpdateByIdAsync Method

Definition

Create or update a resource

public virtual System.Threading.Tasks.Task<Azure.Connectors.Sdk.Arm.Models.GenericResource> ResourcesCreateOrUpdateByIdAsync(string subscription, string resourceGroup, string resourceProvider, string shortResourceId, Azure.Connectors.Sdk.Arm.Models.GenericResource input, string clientApiVersion, System.Threading.CancellationToken cancellationToken = default);
abstract member ResourcesCreateOrUpdateByIdAsync : string * string * string * string * Azure.Connectors.Sdk.Arm.Models.GenericResource * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Connectors.Sdk.Arm.Models.GenericResource>
override this.ResourcesCreateOrUpdateByIdAsync : string * string * string * string * Azure.Connectors.Sdk.Arm.Models.GenericResource * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Connectors.Sdk.Arm.Models.GenericResource>
Public Overridable Function ResourcesCreateOrUpdateByIdAsync (subscription As String, resourceGroup As String, resourceProvider As String, shortResourceId As String, input As GenericResource, clientApiVersion As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of GenericResource)

Parameters

subscription
String

Subscription

resourceGroup
String

Resource Group

resourceProvider
String

Resource Provider

shortResourceId
String

Short Resource Id

input
GenericResource

The request body.

clientApiVersion
String

Client Api Version

cancellationToken
CancellationToken

Cancellation token.

Returns

The Create or update a resource response.

Remarks

Creates or updates a resource. The response code can be used to distinguish between a create (201) or update (200).

Applies to