ocm_execute_action.md
November 4, 2024 · View on GitHub
ocm execute action — Execute An Action
Synopsis
ocm execute action [<options>] <action spec> {<cred>=<value>}
Options
-h, --help help for action
-m, --matcher string matcher type override
-n, --name string action name (overrides type in specification)
-o, --output string output mode (json, yaml) (default "json")
Description
Execute an action extension for a given action specification. The specification should be a JSON or YAML argument.
Additional properties settings can be used to describe a consumer id to retrieve credentials for.
The following actions are supported:
-
Name: oci.repository.prepare Prepare the usage of a repository in an OCI registry.
The hostname of the target repository is used as selector. The action should assure, that the requested repository is available on the target OCI registry.
Spec version v1 uses the following specification fields:
hostnamestring: The hostname of the OCI registry.repositorystring: The OCI repository name.
Possible Consumer Attributes:
hostnameportpathprefix
Examples
$ ocm execute action '{ "type": "oci.repository.prepare/v1", "hostname": "...", "repository": "..."}'
SEE ALSO
Parents
- ocm execute — Execute an element.
- ocm — Open Component Model command line client