Cockpit API.
- Managed alerts management commands
- Cockpit management commands
- Contacts management commands
- Grafana user management commands
- Token management commands
Managed alerts management commands.
Disable managed alerts.
Usage:
scw cockpit alert disable [arg=value ...]
Args:
| Name | Description | |
|---|---|---|
| project-id | Project ID to use. If none is passed the default project ID will be used |
Enable managed alerts.
Usage:
scw cockpit alert enable [arg=value ...]
Args:
| Name | Description | |
|---|---|---|
| project-id | Project ID to use. If none is passed the default project ID will be used |
Trigger a test alert to all receivers.
Usage:
scw cockpit alert test [arg=value ...]
Args:
| Name | Description | |
|---|---|---|
| project-id | Project ID to use. If none is passed the default project ID will be used |
Cockpit management commands.
Activate a cockpit associated with the given project ID.
Usage:
scw cockpit cockpit activate [arg=value ...]
Args:
| Name | Description | |
|---|---|---|
| project-id | Project ID to use. If none is passed the default project ID will be used |
Deactivate a cockpit associated with the given project ID.
Usage:
scw cockpit cockpit deactivate [arg=value ...]
Args:
| Name | Description | |
|---|---|---|
| project-id | Project ID to use. If none is passed the default project ID will be used |
Get the cockpit associated with the given project ID.
Usage:
scw cockpit cockpit get [arg=value ...]
Args:
| Name | Description | |
|---|---|---|
| project-id | Project ID to use. If none is passed the default project ID will be used |
Reset the Grafana of your cockpit associated with the given project ID.
Usage:
scw cockpit cockpit reset-grafana [arg=value ...]
Args:
| Name | Description | |
|---|---|---|
| project-id | Project ID to use. If none is passed the default project ID will be used |
Wait for a cockpit to reach a stable state. This is similar to using --wait flag on other action commands, but without requiring a new action on the cockpit.
Usage:
scw cockpit cockpit wait <project-id ...> [arg=value ...]
Args:
| Name | Description | |
|---|---|---|
| project-id | Required | The ID of the project the cockpit is attached to |
Examples:
Wait for a cockpit to reach a stable state
scw cockpit cockpit wait 11111111-1111-1111-1111-111111111111
Contacts management commands.
Create an alert contact point for the default receiver.
Usage:
scw cockpit contact create [arg=value ...]
Args:
| Name | Description | |
|---|---|---|
| project-id | Project ID to use. If none is passed the default project ID will be used | |
| contact-point.email.to |
Delete an alert contact point for the default receiver.
Usage:
scw cockpit contact delete [arg=value ...]
Args:
| Name | Description | |
|---|---|---|
| project-id | Project ID to use. If none is passed the default project ID will be used | |
| contact-point.email.to |
List alert contact points associated with the given cockpit ID.
Usage:
scw cockpit contact list [arg=value ...]
Args:
| Name | Description | |
|---|---|---|
| project-id | Project ID to use. If none is passed the default project ID will be used |
Grafana user management commands.
Create a grafana user for your grafana instance.
Usage:
scw cockpit grafana-user create [arg=value ...]
Args:
| Name | Description | |
|---|---|---|
| project-id | Project ID to use. If none is passed the default project ID will be used | |
| login | ||
| role | One of: unknown_role, editor, viewer |
Delete a grafana user from your grafana instance.
Usage:
scw cockpit grafana-user delete [arg=value ...]
Args:
| Name | Description | |
|---|---|---|
| project-id | Project ID to use. If none is passed the default project ID will be used | |
| grafana-user-id | Required |
List grafana users who are able to connect to your grafana instance.
Usage:
scw cockpit grafana-user list [arg=value ...]
Args:
| Name | Description | |
|---|---|---|
| order-by | One of: login_asc, login_desc |
|
| project-id | Project ID to use. If none is passed the default project ID will be used |
Reset the Grafana user password from your grafana instance.
Usage:
scw cockpit grafana-user reset-password [arg=value ...]
Args:
| Name | Description | |
|---|---|---|
| project-id | Project ID to use. If none is passed the default project ID will be used | |
| grafana-user-id | Required |
Token management commands.
Create a token associated with the given project ID.
Usage:
scw cockpit token create [arg=value ...]
Args:
| Name | Description | |
|---|---|---|
| project-id | Project ID to use. If none is passed the default project ID will be used | |
| name | Default: <generated> |
|
| scopes.query-metrics | ||
| scopes.write-metrics | ||
| scopes.setup-metrics-rules | ||
| scopes.query-logs | ||
| scopes.write-logs | ||
| scopes.setup-logs-rules | ||
| scopes.setup-alerts |
Delete the token associated with the given ID.
Usage:
scw cockpit token delete [arg=value ...]
Args:
| Name | Description | |
|---|---|---|
| token-id | Required |
Get the token associated with the given ID.
Usage:
scw cockpit token get <token-id ...> [arg=value ...]
Args:
| Name | Description | |
|---|---|---|
| token-id | Required |
List tokens associated with the given project ID.
Usage:
scw cockpit token list [arg=value ...]
Args:
| Name | Description | |
|---|---|---|
| order-by | One of: created_at_asc, created_at_desc, name_asc, name_desc |
|
| project-id | Project ID to use. If none is passed the default project ID will be used |