All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
DeleteFeed | Delete /system/feeds/{feed} | |
DeleteFeedGroup | Delete /system/feeds/{feed}/{group} | |
DeleteService | Delete /system/services/{servicename}/{hostid} | Delete the service config |
DescribeErrorCodes | Get /system/error_codes | Describe anchore engine error codes. |
DescribePolicy | Get /system/policy_spec | Describe the policy language spec implemented by this service. |
GetServiceDetail | Get /system | System status |
GetServicesByName | Get /system/services/{servicename} | Get a service configuration and state |
GetServicesByNameAndHost | Get /system/services/{servicename}/{hostid} | Get service config for a specific host |
GetStatus | Get /status | Service status |
GetSystemFeeds | Get /system/feeds | list feeds operations and information |
ListServices | Get /system/services | List system services |
PostSystemFeeds | Post /system/feeds | trigger feeds operations |
TestWebhook | Post /system/webhooks/{webhook_type}/test | Adds the capabilities to test a webhook delivery for the given notification type |
ToggleFeedEnabled | Put /system/feeds/{feed} | |
ToggleGroupEnabled | Put /system/feeds/{feed}/{group} |
DeleteFeed(ctx, feed)
Delete the groups and data for the feed and disable the feed itself
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
feed | string |
(empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteFeedGroup(ctx, feed, group)
Delete the group data and disable the group itself
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
feed | string | ||
group | string |
(empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteService(ctx, servicename, hostid)
Delete the service config
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
servicename | string | ||
hostid | string |
(empty response body)
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]AnchoreErrorCode DescribeErrorCodes(ctx, )
Describe anchore engine error codes.
Describe anchore engine error codes.
This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]GateSpec DescribePolicy(ctx, )
Describe the policy language spec implemented by this service.
Get the policy language spec for this service
This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SystemStatusResponse GetServiceDetail(ctx, )
System status
Get the system status including queue lengths
This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]Service GetServicesByName(ctx, servicename)
Get a service configuration and state
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
servicename | string |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]Service GetServicesByNameAndHost(ctx, servicename, hostid)
Get service config for a specific host
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
servicename | string | ||
hostid | string |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
StatusResponse GetStatus(ctx, )
Service status
Get the API service status
This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]FeedMetadata GetSystemFeeds(ctx, )
list feeds operations and information
Return a list of feed and their groups along with update and record count information. This data reflects the state of the policy engine, not the upstream feed service itself.
This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]Service ListServices(ctx, )
List system services
This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]FeedSyncResult PostSystemFeeds(ctx, optional)
trigger feeds operations
Execute a synchronous feed sync operation. The response will block until complete, then return the result summary.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
optional | *PostSystemFeedsOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a PostSystemFeedsOpts struct
Name | Type | Description | Notes |
---|---|---|---|
flush | optional.Bool | instruct system to flush existing data feeds records from anchore-engine | |
sync | optional.Bool | instruct system to re-sync data feeds |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TestWebhook(ctx, webhookType, optional)
Adds the capabilities to test a webhook delivery for the given notification type
Loads the Webhook configuration for webhook_type, and sends the notification out as a test
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
webhookType | string | The Webhook Type that we should test | |
optional | *TestWebhookOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a TestWebhookOpts struct
Name | Type | Description | Notes |
---|
notificationType | optional.String| What kind of Notification to send | [default to tag_update]
(empty response body)
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
FeedMetadata ToggleFeedEnabled(ctx, feed, enabled)
Disable the feed so that it does not sync on subsequent sync operations
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
feed | string | ||
enabled | bool |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]FeedMetadata ToggleGroupEnabled(ctx, feed, group, enabled)
Disable a specific group within a feed to not sync
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
feed | string | ||
group | string | ||
enabled | bool |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]