PurviewCollection.CreateOrUpdateCollection Method

Definition

Creates or updates a collection entity.

public virtual Azure.Response CreateOrUpdateCollection (Azure.Core.RequestContent content, Azure.RequestOptions options = default);
abstract member CreateOrUpdateCollection : Azure.Core.RequestContent * Azure.RequestOptions -> Azure.Response
override this.CreateOrUpdateCollection : Azure.Core.RequestContent * Azure.RequestOptions -> Azure.Response
Public Overridable Function CreateOrUpdateCollection (content As RequestContent, Optional options As RequestOptions = Nothing) As Response

Parameters

content
RequestContent

The content to send as the body of the request.

options
Azure.RequestOptions

The request options.

Returns

Remarks

Schema for Request Body:

NameTypeRequiredDescription
collectionProvisioningState"Unknown" | "Creating" | "Moving" | "Deleting" | "Failed" | "Succeeded"Gets the state of the provisioning.
descriptionstringGets or sets the description.
friendlyNamestringGets or sets the friendly name of the collection.
namestringGets the name.
parentCollectionCollectionReferenceGets or sets the parent collection reference.
systemDataCollectionSystemDataGets the system data that contains information about who and when created and updated the resource.
Schema for CollectionReference:
NameTypeRequiredDescription
referenceNamestringGets or sets the reference name.
typestringGets the reference type property.
Schema for CollectionSystemData:
NameTypeRequiredDescription
createdAtstring (ISO 8601 Format)The timestamp of resource creation (UTC).
createdBystringThe identity that created the resource.
createdByType"User" | "Application" | "ManagedIdentity" | "Key"The type of identity that created the resource.
lastModifiedAtstring (ISO 8601 Format)The timestamp of the last modification the resource (UTC).
lastModifiedBystringThe identity that last modified the resource.
lastModifiedByType"User" | "Application" | "ManagedIdentity" | "Key"The type of identity that last modified the resource.

Applies to