Skip to main content

Perimeter Resolver API (0.3.0)

A Perimeter Resolver is a microservice responsible to supply resources to the Witboost Computational Governance.

When a policy or metric is being run from Witboost, the Perimeter Resolver gets invoked to get a list of resources of the policy/metric declared resource type together with additional filters.

Perimeter Resolver fetches resources for which is responsible to from an underlying storage or catalog. The resources are filtered based on the environment and the resource type.

Register a Perimeter Resolver

Once you develop a microservice that implements the Perimeter Resolver API, you can register it with the Witboost Computational Governance API. The registration process requires an HTTP call to this API.

PerimeterResolver

Retrieve resources to be evaluated by policies or metrics defined in Witboost Computational Governance

query Parameters
environment
required
string
Example: environment=development

Environment where to look for resources

resource-types
string
Example: resource-types=type1,type2,type3

Comma-separated list of resource types to filter on. Ignored if the perimeter resolver doesn't provide more than one resource type

id
string
Example: id=rf2e-3f2f-3f2f-3f2f

A resource id to retrieve

offset
integer
Default: 0
Example: offset=0

Number of resources to skip before retrieving data. Used for pagination.

limit
integer <= 50
Default: 5
Example: limit=5

Maximum number of resources to retrieve. Used for pagination.

Responses

Response samples

Content type
application/json
{
  • "resources": [
    ],
  • "page": {
    }
}

Retrieve resources

query Parameters
environment
required
string
Example: environment=development

Environment where to look for resources

resource-types
string
Example: resource-types=type1,type2,type3

Comma-separated list of resource types to filter on. Ignored if the perimeter resolver doesn't provide more than one resource type

id
string
Example: id=rf2e-3f2f-3f2f-3f2f

A resource id to retrieve

offset
integer
Default: 0
Example: offset=0

Number of resources to skip before retrieving data. Used for pagination.

limit
integer <= 50
Default: 5
Example: limit=5

Maximum number of resources to retrieve. Used for pagination.

Responses

Response samples

Content type
application/json
{
  • "content": [
    ],
  • "page": {
    }
}