Add a Trusted Registry

Adds a registry hostname to the Runtime trusted-registries list so images from that host are not marked Untrusted.

Call this on the Runtime service path https://<JPD_HOST>/runtime/api/v1/trusted_registries. Do not send the request to /api/v1/ on the Artifactory base URL.

Runtime auto-trusts only the JPD platform base URL hostname. Custom Docker CNAMEs (for example docker.corp.example.com) and external or mirror registries (for example cgr.dev) are not auto-trusted. Images from those hosts stay Untrusted until you add the exact hostname Runtime reports for the image.

registryUrl is the hostname only. It must match the image registry host in Runtime exactly. trusted set to true treats the registry as trusted. supported set to true runs Artifactory integrity checks against this registry. Set supported to false for an external or mirror host that is not an Artifactory Docker API. If you omit supported, Runtime stores false.

This operation creates a new entry. Sending a hostname that is already registered returns 404.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required

Display name for the registry.

string
required

Registry hostname as reported by Runtime for the image. Hostname only. Must match exactly (for example docker.corp.example.com or cgr.dev).

boolean
required

Set to true to treat images from this registry as trusted. Images from an untrusted registry are marked Untrusted and Xray results for those images are hidden.

boolean

Set to true if Runtime should run Artifactory integrity checks against this registry. Set to false for an external or mirror host that is not an Artifactory Docker API. Defaults to false when omitted.

Responses

Language
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json