PurviewCollection.CreateOrUpdateCollectionAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. |
CollectionReference
: NameTypeRequiredDescription |
---|
referenceNamestringGets or sets the reference name. |
typestringGets the reference type property. |
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
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.
Azure SDK for .NET