Skip to content

Latest commit

 

History

History
57 lines (48 loc) · 1.51 KB

putCollection.md

File metadata and controls

57 lines (48 loc) · 1.51 KB

pv account putCollection

Command Reference > account > putCollection

Description

Creates or updates a collection entity.

Syntax

pv account putCollection --friendlyName=<val> --parentCollection=<val>

Required Arguments

--friendlyName (string)
The friendly name of the collection.

--parentCollection (string)
This is the unique name of the parent collection (not the friendly name).

Optional Arguments

None

API Mapping

Account Data Plane > Collections > Create Or Update Collection

PUT https://{accountName}.purview.azure.com/account/collections/{collectionName}

Examples

Create or update a collection.

pv account putCollection --friendlyName "hello world" --parentCollection "w0kfma"
Sample response.

{
    "collectionProvisioningState": "Succeeded",
    "friendlyName": "hello world",
    "name": "qW48hl",
    "parentCollection": {
        "referenceName": "w0kfma",
        "type": "CollectionReference"
    },
    "systemData": {
        "createdAt": "2022-02-27T13:04:36.9095861Z",
        "createdBy": "095354ff-cae8-44ff-8120-22ec5a941b40",
        "createdByType": "User",
        "lastModifiedAt": "2022-02-27T13:04:36.9095862Z",
        "lastModifiedBy": "095354ff-cae8-44ff-8120-22ec5a941b40",
        "lastModifiedByType": "User"
    }
}