你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

PurviewCollection.CreateOrUpdateCollection 方法

定义

创建或更新集合实体。

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

参数

content
RequestContent

要作为请求正文发送的内容。

options
Azure.RequestOptions

请求选项。

返回

注解

Request Body架构:

NameTypeRequiredDescription
collectionProvisioningState“Unknown” |“正在创建” |“移动” |“正在删除” |“Failed” |“Succeeded”获取预配的状态。
descriptionstring获取或设置说明。
friendlyNamestringGets 或设置集合的友好名称。
namestring 获取名称。
parentCollectionCollectionReferenceGets 或设置父集合引用。
systemDataCollectionSystemData获取系统数据,其中包含有关创建和更新资源的人员以及时间的信息。
CollectionReference架构:
NameTypeRequiredDescription
referenceNamestring获取或设置引用名称。
typestring获取引用类型属性。
CollectionSystemData架构:
NameTypeRequiredDescription
createdAtstring (ISO 8601 格式) 资源创建时间戳 (UTC) 。
createdBystring创建资源的标识。
createdByType“User” |“应用程序” |“ManagedIdentity” |“Key”创建资源的标识类型。
lastModifiedAtstring (ISO 8601 格式) 资源的上次修改时间戳 (UTC) 。
lastModifiedBystring上次修改资源的标识。
lastModifiedByType“User” |“应用程序” |“ManagedIdentity” |“Key”上次修改资源的标识类型。

适用于