Dela via


PurviewCollection.CreateOrUpdateCollectionAsync Method

Definition

Creates or updates a collection entity.

public virtual System.Threading.Tasks.Task<Azure.Response> CreateOrUpdateCollectionAsync (Azure.Core.RequestContent content, Azure.RequestOptions options = default);
abstract member CreateOrUpdateCollectionAsync : Azure.Core.RequestContent * Azure.RequestOptions -> System.Threading.Tasks.Task<Azure.Response>
override this.CreateOrUpdateCollectionAsync : Azure.Core.RequestContent * Azure.RequestOptions -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function CreateOrUpdateCollectionAsync (content As RequestContent, Optional options As RequestOptions = Nothing) As Task(Of 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