Command Reference > types > readStructDef
Get the struct definition for the given GUID or by its name (unique).
pv types readStructDef (--guid=<val> | --name=<val>)
--guid
(string)
The globally unique identifier of the struct.
--name
(string)
The name of the struct.
None
Catalog Data Plane > Types > Get Struct Def By Guid
GET https://{accountName}.purview.azure.com/catalog/api/atlas/v2/types/structdef/guid/{guid}
Catalog Data Plane > Types > Get Struct Def By Name
GET https://{accountName}.purview.azure.com/catalog/api/atlas/v2/types/structdef/name/{name}
Get struct definition by name.
pv types readStructDef --name "cosmosdb_offer"
Sample response.
{
"attributeDefs": [
{
"cardinality": "SINGLE",
"includeInNotification": false,
"isIndexable": true,
"isOptional": false,
"isUnique": false,
"name": "content",
"typeName": "string",
"valuesMaxCount": 1,
"valuesMinCount": 1
},
{
"cardinality": "SINGLE",
"includeInNotification": false,
"isIndexable": true,
"isOptional": false,
"isUnique": false,
"name": "offerLink",
"typeName": "string",
"valuesMaxCount": 1,
"valuesMinCount": 1
}
],
"category": "STRUCT",
"createTime": 1615787946118,
"createdBy": "admin",
"description": "cosmosdb_offer",
"guid": "d96ff541-abd9-a199-58b6-2deb81e4ca5f",
"lastModifiedTS": "1",
"name": "cosmosdb_offer",
"serviceType": "Azure Cosmos DB",
"typeVersion": "1.0",
"updateTime": 1615787946118,
"updatedBy": "admin",
"version": 1
}
Get struct definition by guid.
pv types readStructDef --guid "d96ff541-abd9-a199-58b6-2deb81e4ca5f"