This package provides a command line interface to Azure Purview's REST API.
Project description
Azure Purview CLI
This package provides a command line interface to Azure Purview's REST API.
Pre-Requisites
- An Azure Purview account.
- A Service Principal (Azure AD application).
- Grant Service Principal role assignment (Azure Purview > Access Control (IAM) > Add role assignment > Purview Data Curator).
Installation
pip install purviewcli
Configuration
You will need the following to initialise the configuration file:
- Client ID (aka Application ID)
- Client Secret
- Tenant ID (aka Directory ID)
- Azure Purview Account Name
- Output Path (e.g. Windows: C:/Users/username/Desktop Mac: /Users/username/Desktop)
To initiate the configuration, execute the following command.
purviewcli config
Usage
purviewcli command (mandatory parameters) [optional parameters]
Commands
config
getEntityAudit (--guid=<guid>) [--auditAction=<auditAction> --count=<count> --startKey=<startKey>]
getEntityBulk (--guid=<guid>...) [--ignoreRelationships --minExtInfo]
getEntityBulkHeaders [--tagUpdateStartTime=<tagUpdateStartTime>]
getEntityBulkUniqueAttributeType (--typeName=<typeName>) [--ignoreRelationships --minExtInfo]
getEntityBusinessmetadataImportTemplate
getEntityGuid (--guid=<guid>) [--ignoreRelationships --minExtInfo]
getEntityGuidClassification (--guid=<guid> --classificationName=<classificationName>)
getEntityGuidClassifications (--guid=<guid>)
getEntityGuidHeader (--guid=<guid>)
getEntityUniqueAttributeType (--typeName=<typeName> --attrKey=<attrKey> --attrVal=<attrVal>) [--ignoreRelationships --minExtInfo]
getEntityUniqueAttributeTypeHeader (--typeName=<typeName> --attrKey=<attrKey> --attrVal=<attrVal>)
getGlossary [--glossaryGuid=<glossaryGuid>] [--limit=<limit> --offset=<offset> --sort=<sort>]
getGlossaryCategories (--glossaryGuid=<glossaryGuid>) [--limit=<limit> --offset=<offset> --sort=<sort>]
getGlossaryCategoriesHeaders (--glossaryGuid=<glossaryGuid>) [--limit=<limit> --offset=<offset> --sort=<sort>]
getGlossaryCategory (--categoryGuid=<categoryGuid>)
getGlossaryCategoryRelated (--categoryGuid=<categoryGuid>) [--limit=<limit> --offset=<offset> --sort=<sort>]
getGlossaryCategoryTerms (--categoryGuid=<categoryGuid>) [--limit=<limit> --offset=<offset> --sort=<sort>]
getGlossaryDetailed (--glossaryGuid=<glossaryGuid>)
getGlossaryTerm (--termGuid=<termGuid>)
getGlossaryTerms (--glossaryGuid=<glossaryGuid>) [--limit=<limit> --offset=<offset> --sort=<sort>]
getGlossaryTermsAssignedEntities (--termGuid=<termGuid>) [--limit=<limit> --offset=<offset> --sort=<sort>]
getGlossaryTermsHeaders (--glossaryGuid=<glossaryGuid>) [--limit=<limit> --offset=<offset> --sort=<sort>]
getGlossaryTermsRelated (--termGuid=<termGuid>) [--limit=<limit> --offset=<offset> --sort=<sort>]
getLineage (--guid=<guid>) [--depth=<depth> --width=<width> --direction=<direction> --forceNewApi --includeParent --getDerivedLineage]
getLineageUniqueAttributeType (--typeName=<typeName>) [--depth=<depth> --direction=<direction>]
getRelationshipGuid (--guid=<guid>) [--extendedInfo]
getTypesBusinessmetadatadef (--guid=<guid> | --name=<name>)
getTypesClassificationdef (--guid=<guid> | --name=<name>)
getTypesEntitydef (--guid=<guid> | --name=<name>)
getTypesEnumdef (--guid=<guid> | --name=<name>)
getTypesRelationshipdef (--guid=<guid> | --name=<name>)
getTypesStructdef (--guid=<guid> | --name=<name>)
getTypesTypedef (--guid=<guid> | --name=<name>)
getTypesTypedefs
getTypesTypedefsHeaders
Options:
| Option | Description |
|---|---|
| -h --help | Show this screen. |
| -v --version | Show version. |
| --limit=<limit> | Page size, by default there is no paging [default: -1]. |
| --offset=<offset> | Offset for pagination purpose [default: 0]. |
| --sort=<sort> | ASC or DESC [default: ASC]. |
| --auditAction=<auditAction> | BUSINESS_ATTRIBUTE_UPDATE or CLASSIFICATION_ADD or CLASSIFICATION_DELETE or C LASSIFICATION_UPDATE or ENTITY_CREATE or ENTITY_DELETE or ENTITY_IMPORT_CREATE or ENTITY_IMPORT_DELETE or ENTITY_IMPORT_UPDATE or ENTITY_PURGE or ENTITY_UPDATE or LABEL_ADD or LABEL_DELETE or PROPAGATED_CLASSIFICATION_ADD or PROPAGATED_CLASSIFICATION_DELETE or PROPAGATED_CLASSIFICATION_UPDATE or TERM_ADD or TERM_DELETE. |
| --count=<count> | Number of events required [default: 100]. |
| --startKey=<startKey> | Used for pagination. Startkey is inclusive, the returned results contain the event with the given startkey. |
| --tagUpdateStartTime=<tagUpdateStartTime> | DataType long. |
| --depth=<depth> | Number of hops for lineage [default: 3]. |
| --width=<width> | Custom to Azure Purview [default: 6]. |
| --direction=<direction> | INPUT or OUTPUT or BOTH [default: BOTH]. |
Export to JSON
purviewcli json command (mandatory parameters) [optional parameters]
Export to CSV
purviewcli csv command (mandatory parameters) [optional parameters]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file purviewcli-0.0.1.tar.gz.
File metadata
- Download URL: purviewcli-0.0.1.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
26db11f5377b254ed12365a3a0282f3b2e619739ee8f99ce0cfb179441486ad8
|
|
| MD5 |
e88e06eba53b2bf2723f4bfe90df3b5a
|
|
| BLAKE2b-256 |
98d870d8165698c66a6d1784868cfbe9cd05b41840156501bb9633c1d4830bad
|
File details
Details for the file purviewcli-0.0.1-py3-none-any.whl.
File metadata
- Download URL: purviewcli-0.0.1-py3-none-any.whl
- Upload date:
- Size: 10.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
551cf1db6b75cb7faf38b1a493dfb4b79181dffcca84201867025af245e9cb36
|
|
| MD5 |
fe0a99a8fed70cc056354c4f618f127e
|
|
| BLAKE2b-256 |
ef8675c73c1d4f79f003dd0c61662483ed4c51f87bcdbc337f0f2e34d449215d
|