Share feedback
Answers are generated based on the documentation.

sbx policy check http

DescriptionCheck HTTP access to a URL
Usagesbx policy check http [--sandbox SANDBOX] [--method METHOD] URL [flags]

Description

Evaluate current policy for an HTTP request to URL.

URL must be an absolute HTTP or HTTPS URL. The check evaluates network access first, then evaluates HTTP method, path, and query policy when it applies. It does not resolve hostnames, make a network request, or account for runtime transport behavior. Transparent connections that require HTTP authorization are blocked at runtime, while daemon-managed aliases can be reachable regardless of the policy result. Results for hostnames do not include policy applied to their resolved IP addresses. The displayed URL retains the target's host spelling; with --verbose, Resource shows the normalized host and port evaluated by policy.

Options

OptionDefaultDescription
--formatOutput format: table, json or yaml
--jsonOutput in JSON format
--methodGETHTTP method to evaluate
--sandboxEvaluate in a specific sandbox policy context
--verboseShow the policy action and resource

Global options

OptionDefaultDescription
--cloudDispatch to Docker Cloud Sandboxes API instead of local sandboxd (supported by a growing set of verbs — run 'sbx --cloud --help' for the current list)
-D, --debugEnable debug logging
--no-inputNever prompt; commands that need an answer fail with the command to run instead

Examples

# Check a GET request
sbx policy check http https://api.example.com/v1/items

# Check a POST request in a sandbox context
sbx policy check http --sandbox my-sandbox --method POST https://api.example.com/v1/items

# Check a query-qualified request and output JSON
sbx policy check http --json 'https://api.example.com/search?team=platform'