Skip to main content
POST
/
registries
/
image-config
Get Image Config
curl --request POST \
  --url https://api.bunny.net/mc/registries/image-config \
  --header 'AccessKey: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "registryId": "<string>",
  "imageName": "<string>",
  "imageNamespace": "<string>",
  "tag": "<string>"
}
'
{
  "endpointSuggestions": [
    {
      "displayName": "<string>",
      "cdn": {
        "isSslEnabled": true,
        "stickySessions": {
          "sessionHeaders": [
            "<string>"
          ],
          "enabled": true,
          "cookieName": "<string>"
        },
        "pullZoneId": 123,
        "portMappings": [
          {
            "containerPort": 32768,
            "exposedPort": 32768,
            "protocols": []
          }
        ]
      },
      "anycast": {
        "portMappings": [
          {
            "containerPort": 32768,
            "exposedPort": 32768,
            "protocols": []
          }
        ]
      }
    }
  ],
  "volumeSuggestions": [
    {
      "containerPath": "<string>",
      "suggestedVolumeName": "<string>"
    }
  ]
}

Authorizations

AccessKey
string
header
required

Please enter a valid personal API key.

Body

registryId
string
required

The registry identifier. Can be "dockerhub", "github", or a private registry ID.

Minimum string length: 1
imageName
string
required
Required string length: 1 - 100
imageNamespace
string
required
Required string length: 1 - 100
tag
string
required
Required string length: 1 - 100

Response

Image configuration was successfully retrieved.

endpointSuggestions
object[]
volumeSuggestions
object[]