rhoas_service-registry_artifact
#
rhoas service-registry artifact[beta] Manage Service Registry artifacts
#
SynopsisManage Service Registry schema and API artifacts in the currently selected Service Registry instance.
Commands are executed on the currently selected Service Registry instance, which can be overridden using the --instance-id flag.
Service Registry enables developers to manage and share the structure of their data. For example, client applications can dynamically push or pull the latest schema or API updates to or from the registry without needing to redeploy. Service Registry also enables developers to create rules that govern how registry content can evolve over time. For example, this includes rules for content validation and version compatibility.
Artifact commands enable client applications to manage the schema and API artifacts in the registry instance. This set of commands provide create, read, update, and delete operations for artifacts, rules, versions, and metadata.
This command is available as part of the Development Preview release.
#
Examples## Create artifact in my-group from schema.json filerhoas service-registry artifact create --artifact-id=my-artifact --group=my-group artifact.json
## Get artifact contentrhoas service-registry artifact get --artifact-id=my-artifact --group=my-group --output-file=artifact.json
## Get artifact content by hashrhoas service-registry artifact download --hash=cab4...al9 --output-file=artifact.json
## Delete artifactrhoas service-registry artifact delete --artifact-id=my-artifact
## Get artifact metadatarhoas service-registry artifact metadata --artifact-id=my-artifact --group=my-group
## Update artifactrhoas service-registry artifact update --artifact-id=my-artifact artifact-new.json
## List artifactsrhoas service-registry artifact list --group=my-group --limit=10 page=1
## View artifact versionsrhoas service-registry artifact versions --artifact-id=my-artifact --group=my-group
Artifacts file can be instance of any schema like OpenAPI, Avro etc.For example: https://raw.githubusercontent.com/redhat-developer/app-services-cli/main/docs/resources/avro-userInfo.json
#
Options inherited from parent commands -h, --help Show help for a command -v, --verbose Enable verbose mode
#
SEE ALSO- rhoas service-registry - [beta] Service Registry commands
- rhoas service-registry artifact create - [beta] Creates new artifact from file or standard input
- rhoas service-registry artifact delete - [beta] Deletes single or all artifacts in a given group
- rhoas service-registry artifact download - [beta] Download artifacts from Service Registry using global identifiers
- rhoas service-registry artifact export - [beta] Export data from Service Registry instance
- rhoas service-registry artifact get - [beta] Get artifact by ID and group
- rhoas service-registry artifact import - [beta] Import data into a Service Registry instance
- rhoas service-registry artifact list - [beta] List artifacts
- rhoas service-registry artifact metadata-get - [beta] Get artifact metadata
- rhoas service-registry artifact metadata-set - [beta] Update artifact metadata
- rhoas service-registry artifact state-set - [beta] Set artifact state
- rhoas service-registry artifact update - [beta] Update artifact
- rhoas service-registry artifact versions - [beta] Get latest artifact versions by artifact-id and group