FarmsClient.CreateOrUpdate(String, String, RequestContent, RequestOptions) Method

Definition

Creates or updates a farm resource under a particular farmer.

public virtual Azure.Response CreateOrUpdate (string farmerId, string farmId, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = default);
abstract member CreateOrUpdate : string * string * Azure.Core.RequestContent * Azure.RequestOptions -> Azure.Response
override this.CreateOrUpdate : string * string * Azure.Core.RequestContent * Azure.RequestOptions -> Azure.Response
Public Overridable Function CreateOrUpdate (farmerId As String, farmId As String, requestBody As RequestContent, Optional requestOptions As RequestOptions = Nothing) As Response

Parameters

farmerId
String

ID of the associated farmer resource.

farmId
String

ID of the farm resource.

requestBody
RequestContent

The request body.

requestOptions
Azure.RequestOptions

The request options.

Returns

Response

Remarks

Schema for Request Body:

farmerIdstring Farmer ID.
idstring Unique resource ID.
eTagstring The ETag value to implement optimistic concurrency.
statusstring Status of the resource.
createdDateTimestring (ISO 8601 Format) Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ.
modifiedDateTimestring (ISO 8601 Format) Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ.
namestring Name to identify resource.
descriptionstring Textual description of the resource.
propertiesDictionary<string, AnyObject> A collection of key value pairs that belongs to the resource.

Each pair must not have a key greater than 50 characters

and must not have a value greater than 150 characters.

Note: A maximum of 25 key value pairs can be provided for a resource and only string and numeral values are supported.

Applies to