Parser
A customer-authored, versioned contract describing the fields of an ingested log source.
The parser is a container: it carries the identity and a pointer to the
newest version. Specs live on the immutable ParserVersion children, so one
parser can be attached to many data sources and each attachment pins a
version.
Parser object
A customer-authored, versioned contract describing the fields of an ingested log source.
The parser is a container: it carries the identity and a pointer to the
newest version. Specs live on the immutable ParserVersion children, so one
parser can be attached to many data sources and each attachment pins a
version.
- namestringBetaIDImmutable
Resource name. Format:
parsers/{parser_id}, where the leaf is the immutable server-assigned UUID. Create-time placement names are stored separately and do not affect the resource name.
- parser_idstringBetaOutput only
The parser's server-assigned UUID. It is not currently a UC securable ID, is immutable for the life of the resource, is the leaf of
name, and is returned by CreateParser.
- catalog_namestringBetaImmutable
Name of the parent UC catalog, set on create. Reads return the value as supplied; the current UC catalog name is reported in
effective_catalog_name.
- schema_namestringBetaImmutable
Name of the parent UC schema, set on create. Reads return the value as supplied; the current UC schema name is reported in
effective_schema_name.
- parser_namestringBetaImmutable
Client-supplied parser name, stored as supplied and fixed at create time. Must be a valid UC identifier. A custom parser is not currently a UC securable and this field has no rename path.
- latest_versionint64BetaOutput only
Newest version of this parser. Read its spec by passing this to
GetParserVersion, or by using thelatestalias. Absent when every version has been deleted.
- create_timestringBetaOutput only
When the parser was created.
- created_byobjectBetaOutput only
The principal that created this parser. Each version records its own
created_by.Show child attributesHide child attributes
- idstringBeta
User / service-principal ID.
- principal_typestringBeta
Whether this principal is a regular user, service principal, or system principal.
REGULAR_USERSERVICE_PRINCIPALSYSTEM_USER
- emailstringBeta
Email (regular users only).
- display_namestringBeta
Display name (user or SP name).
- ownerobjectBetaOutput only
The principal that owns this parser. Server-set from the authenticated creator, never supplied by the client. Beta reads by UUID perform no authorization. Owner-gated write RPCs are outside this API's current implementation scope.
Show child attributesHide child attributes
- idstringBeta
User / service-principal ID.
- principal_typestringBeta
Whether this principal is a regular user, service principal, or system principal.
REGULAR_USERSERVICE_PRINCIPALSYSTEM_USER
- emailstringBeta
Email (regular users only).
- display_namestringBeta
Display name (user or SP name).
- effective_catalog_namestringBetaOutput only
The current name of the parser's UC catalog. Tracks UC renames; when the current name cannot be looked up, the name as of the parser's last write.
- effective_schema_namestringBetaOutput only
The current name of the parser's UC schema. Tracks UC renames; when the current name cannot be looked up, the name as of the parser's last write.
- specstringBetaInput onlyImmutable
Spec of version 1, as a YAML document. Accepted only by
CreateParser; read a version's spec withGetParserVersion.
- descriptionstringBetaInput onlyImmutable
Description of version 1. Accepted only by
CreateParser; read a version's description withGetParserVersion.
Get a parser Beta
GET
Returns a parser's identity and latest-version pointer. Does not return the spec; read a spec with GetParserVersion.
API scopes: lakewatch
Parameters
- namestringRequiredpath
Resource name of the parser. Format:
parsers/{parser_id}.
Response
Returns the Parser object.
List parsers Beta
GET
Lists parsers in a catalog, without their specs.
API scopes: lakewatch
Parameters
- page_sizeint32query
Maximum number of results to return in one page. This is a best-effort upper bound, not a guarantee: the server may return fewer items than requested (even zero) while more results still exist. If unset or 0, the server picks a default.
- page_tokenstringquery
Page token from a previous
ListParsersresponse, used to fetch the next page of results. Send the other request fields unchanged when requesting later pages; a token from a request with different fields is rejected.
- filterstringquery
AIP-160 filter expression. Parsers are filterable by
parser_name.
- catalog_namestringRequiredquery
Name of the parent UC catalog to list parsers from. Required: List is scoped to a single catalog, mirroring the Unity Catalog tables/functions APIs, which take catalog_name as a request field (bound to a query parameter) rather than a catalog path segment.
- schema_namestringquery
Name of the parent UC schema. Optional: when set, results are narrowed to this schema; when omitted, parsers across all schemas in
catalog_nameare returned.
Response
Returns a list of Parser objects.
Create a parser Beta
POST
Creates a parser and its first version in one call.
API scopes: lakewatch
Request body
The parser to create. spec and description become version 1.
- namestringIDImmutable
Resource name. Format:
parsers/{parser_id}, where the leaf is the immutable server-assigned UUID. Create-time placement names are stored separately and do not affect the resource name.
- catalog_namestringRequiredImmutable
Name of the parent UC catalog, set on create. Reads return the value as supplied; the current UC catalog name is reported in
effective_catalog_name.
- schema_namestringRequiredImmutable
Name of the parent UC schema, set on create. Reads return the value as supplied; the current UC schema name is reported in
effective_schema_name.
- parser_namestringRequiredImmutable
Client-supplied parser name, stored as supplied and fixed at create time. Must be a valid UC identifier. A custom parser is not currently a UC securable and this field has no rename path.
- specstringRequiredInput onlyImmutable
Spec of version 1, as a YAML document. Accepted only by
CreateParser; read a version's spec withGetParserVersion.
- descriptionstringInput onlyImmutable
Description of version 1. Accepted only by
CreateParser; read a version's description withGetParserVersion.
Response
Returns the Parser object.