Search for versions
Returns a paginated list of all versions that match the provided filter criteria.
This operation can fail for the following reasons:
- A server error occurred (HTTP error 500)
Query parameters
A single version of an artifact. Can be provided by the client when creating a new version, or it can be server-generated. The value can be any string unique to the artifact, but it is recommended to use a simple integer or a semver value.
Filter by version number.
The number of versions to skip before starting to collect the result set. Defaults to 0.
The number of versions to return. Defaults to 20.
Sort order, ascending (asc) or descending (desc).
The field to sort by. Can be one of:
- name
- createdOn
Filter by one or more name/value label. Separate each name/value pair using a colon. For example labels=foo:bar will return only artifacts with a label named foo and value bar.
Filter by description.
An ID of a single artifact group.
Filter by artifact group.
Filter by globalId.
Filter by contentId.
The ID of a single artifact.
Filter by artifactId.
Filter by name.
Describes the state of an artifact or artifact version.
- ENABLED
- DISABLED
- DEPRECATED
- DRAFT
- SUNSET — Signals that a migration deadline has passed and the version will be removed. Requires transitioning through DEPRECATED first. Added in 3.3.0.
Filter by version state.
Filter by artifact type (AVRO, JSON, etc).
Full-text search of artifact content. Requires the Lucene search index to be enabled.
Search by structured content elements (schemas, paths, fields, etc.) using a faceted format. Supports three formats: type:kind:name for exact match (e.g. openapi:schema:Pet), kind:name for cross-type match (e.g. schema:Pet), or just name for plain text search. Requires the Lucene search index to be enabled.
Indicates whether to skip the total count query. When true, the total count is not computed and count will be 0 in the response. This can improve performance for large datasets.
Response
On a successful response, returns a result set of versions - one for each version in the registry that matches the criteria.
Example response
{
"versions": [
{
"groupId": "DemoGroup",
"artifactId": "demo-artifact-id",
"name": "Artifact Version Name",
"description": "Description of the artifact version",
"artifactType": "AVRO",
"state": "ENABLED",
"createdOn": "2018-02-10T09:30Z",
"owner": "some text",
"globalId": 37,
"version": "1.0.7",
"contentId": 62
}
]
}