anchorectl inventory
Inventory list operation.
Every command on this page also accepts the global flags.
Subcommands
- inventory delete — Delete inventory from the system.
- inventory list — Returns a list of the images that are in use
- inventory watch — Inventory subscription operations
inventory delete
Delete inventory from the system.
anchorectl inventory delete [flags]
Aliases: del
Flags
| Flag | Type | Environment variable | Default | Required | Description |
|---|---|---|---|---|---|
--type | string | ANCHORECTL_INVENTORY_INVENTORY_TYPE | "" | Yes | The type of inventory to delete. |
--context | string | ANCHORECTL_CONTEXT | "" | No | The inventory context. |
--image-digest | string | ANCHORECTL_IMAGE_DIGEST | "" | No | The image digest to delete inventory for. |
-o, --output | string | ANCHORECTL_FORMAT | text | No | The format to show the results. Allowable values: text, json, json-raw, id. See Output Formats. |
-y, --yes | bool | ANCHORECTL_CONFIRM | false | No | Confirm the deletion of the inventory. |
inventory list
Returns a list of the images that are in use.
anchorectl inventory list [flags]
Flags
| Flag | Type | Environment variable | Default | Required | Description |
|---|---|---|---|---|---|
--context | string | ANCHORECTL_INVENTORY_CONTEXT | "" | No | Limit results to a specific image context. |
--image-digest | string | ANCHORECTL_INVENTORY_IMAGE_DIGEST | "" | No | Search for a specific image digest. |
-o, --output | string | ANCHORECTL_FORMAT | text | No | The format to show the results. Allowable values: text, json, json-raw, id. See Output Formats. |
--type | string | ANCHORECTL_INVENTORY_TYPE | "" | No | The inventory type to limit results (e.g. Kubernetes). |
inventory watch
Inventory subscription operations.
anchorectl inventory watch [command]
Subcommands
- inventory watch activate — Watching a runtime inventory context will cause images to be automatically scheduled for analysis on discovery
- inventory watch deactivate — Runtime inventory context to stop watching
- inventory watch list — List all runtime inventory which have a watch configured
inventory watch activate
Watching a runtime inventory context will cause images to be automatically scheduled for analysis on discovery.
anchorectl inventory watch activate INVENTORY_CONTEXT [flags]
Arguments
| Argument | Description |
|---|---|
INVENTORY_CONTEXT | Inventory context. |
Flags
| Flag | Type | Environment variable | Default | Required | Description |
|---|---|---|---|---|---|
-o, --output | string | ANCHORECTL_FORMAT | text | No | The format to show the results. Allowable values: text, json, json-raw, id. See Output Formats. |
inventory watch deactivate
Runtime inventory context to stop watching.
anchorectl inventory watch deactivate INVENTORY_CONTEXT [flags]
Arguments
| Argument | Description |
|---|---|
INVENTORY_CONTEXT | Runtime inventory context. |
Flags
| Flag | Type | Environment variable | Default | Required | Description |
|---|---|---|---|---|---|
-o, --output | string | ANCHORECTL_FORMAT | text | No | The format to show the results. Allowable values: text, json, json-raw, id. See Output Formats. |
inventory watch list
List all runtime inventory which have a watch configured.
anchorectl inventory watch list [flags]
Flags
| Flag | Type | Environment variable | Default | Required | Description |
|---|---|---|---|---|---|
-k, --key | string | ANCHORECTL_SUBSCRIPTION_KEY | "" | No | Filter on this specific inventory context. |
-o, --output | string | ANCHORECTL_FORMAT | text | No | The format to show the results. Allowable values: text, json, json-raw, id. See Output Formats. |