GitOps commands
GitOps mode provides the commands to manage access to a remote repository.
To enter GitOps mode, use the global gitops command.
While in this mode, use the commands in the following table to define repository access.
- To view the current configuration, use the show command.
- To restore default values, use the reset command.
- To exit this configuration mode without saving changes to the running configuration, use the cancel command.
- To exit this configuration mode and save changes to the running configuration, use the exit command.
| Command | Purpose |
|---|---|
| admin-state | This command sets the administrative state for the configuration. |
| commit-id | This command specifies the value for the branch, commit hash, or tag for read and write GitOps operations to the repository. |
| commit-id-type | This command specifies the branch, commit hash, or tag for read and write GitOps operations against the repository. |
This command specifies the user email that controls
user.email in git config. |
|
| https-valcred | This command specifies the truststore that validates certificates from remote peers for HTTPS connections. |
| interval | This command specifies the interval in minutes to poll the repository for changes. |
| json-settings | This command specifies the JSON settings configuration for read and write GitOps operations against the repository. |
| location | This command specifies the URL of the repository for read and write GitOps operations. |
| mode | This command specifies the operation mode of the repository. |
| name | This command specifies the full username that controls
user.name in git config. |
| password | This command specifies the account password for basic authentication with the HTTPS protocol. |
| ssh-authorized-keyfile | This command specifies the file that contains the authorized SSH keys for the SSH protocol. |
| ssh-client-profile | This command specifies the SSH client profile to secure connections with the SSH protocol. |
| summary | This command specifies the brief, descriptive summary for the object instance. |
| template-policy | This command specifies a remote policy for GitOps processing. |
| type | This command specifies the protocol to establish a secured connection to the repository. |
| username | This command specifies the account name for HTTPS basic authentication. |