curl --request PUT \
--url https://api.bunny.net/mc/apps/{appId} \
--header 'AccessKey: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"runtimeType": "Shared",
"autoScaling": {
"min": 1,
"max": 10
},
"regionSettings": {
"allowedRegionIds": [
"DE",
"UK",
"US"
],
"requiredRegionIds": [
"DE"
],
"maxAllowedRegions": 5,
"nodeSelectors": {}
},
"terminationGracePeriodSeconds": 150,
"containerTemplates": [
{
"name": "<string>",
"imageName": "<string>",
"imageNamespace": "<string>",
"imageTag": "<string>",
"imageRegistryId": "<string>",
"id": "<string>",
"image": "<string>",
"imageDigest": "<string>",
"imagePullPolicy": "Always",
"entryPoint": {
"command": "<string>",
"commandArray": [
"<string>"
],
"arguments": "<string>",
"argumentsArray": [
"<string>"
],
"workingDirectory": "<string>"
},
"probes": {
"startup": {
"initialDelaySeconds": 10,
"periodSeconds": 10,
"timeoutSeconds": 7,
"failureThreshold": 3,
"successThreshold": 1,
"httpGet": {
"request": {
"path": "<string>",
"portNumber": 32768
},
"response": {
"expectedStatusCode": "Continue"
}
},
"tcpSocket": {
"request": {
"portNumber": 32768
}
},
"grpc": {
"request": {
"portNumber": 32768,
"serviceName": "<string>"
}
}
},
"readiness": {
"initialDelaySeconds": 10,
"periodSeconds": 10,
"timeoutSeconds": 7,
"failureThreshold": 3,
"successThreshold": 1,
"httpGet": {
"request": {
"path": "<string>",
"portNumber": 32768
},
"response": {
"expectedStatusCode": "Continue"
}
},
"tcpSocket": {
"request": {
"portNumber": 32768
}
},
"grpc": {
"request": {
"portNumber": 32768,
"serviceName": "<string>"
}
}
},
"liveness": {
"initialDelaySeconds": 10,
"periodSeconds": 10,
"timeoutSeconds": 7,
"failureThreshold": 3,
"successThreshold": 1,
"httpGet": {
"request": {
"path": "<string>",
"portNumber": 32768
},
"response": {
"expectedStatusCode": "Continue"
}
},
"tcpSocket": {
"request": {
"portNumber": 32768
}
},
"grpc": {
"request": {
"portNumber": 32768,
"serviceName": "<string>"
}
}
}
},
"environmentVariables": [
{
"name": "<string>",
"value": "<string>"
}
],
"endpoints": [
{
"displayName": "<string>",
"cdn": {
"isSslEnabled": true,
"stickySessions": {
"sessionHeaders": [
"<string>"
],
"enabled": true,
"cookieName": "<string>"
},
"pullZoneId": 123,
"portMappings": [
{
"containerPort": 32768,
"exposedPort": 32768,
"protocols": [
"Tcp"
]
}
]
},
"anycast": {
"type": "IPv4",
"portMappings": [
{
"containerPort": 32768,
"exposedPort": 32768,
"protocols": [
"Tcp"
]
}
]
}
}
],
"volumeMounts": [
{
"name": "<string>",
"mountPath": "<string>"
}
]
}
],
"volumes": [
{
"name": "<string>",
"size": 5
}
]
}
'{
"id": "<string>"
}Updates an existing application with full replacement of all configuration fields.
curl --request PUT \
--url https://api.bunny.net/mc/apps/{appId} \
--header 'AccessKey: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"runtimeType": "Shared",
"autoScaling": {
"min": 1,
"max": 10
},
"regionSettings": {
"allowedRegionIds": [
"DE",
"UK",
"US"
],
"requiredRegionIds": [
"DE"
],
"maxAllowedRegions": 5,
"nodeSelectors": {}
},
"terminationGracePeriodSeconds": 150,
"containerTemplates": [
{
"name": "<string>",
"imageName": "<string>",
"imageNamespace": "<string>",
"imageTag": "<string>",
"imageRegistryId": "<string>",
"id": "<string>",
"image": "<string>",
"imageDigest": "<string>",
"imagePullPolicy": "Always",
"entryPoint": {
"command": "<string>",
"commandArray": [
"<string>"
],
"arguments": "<string>",
"argumentsArray": [
"<string>"
],
"workingDirectory": "<string>"
},
"probes": {
"startup": {
"initialDelaySeconds": 10,
"periodSeconds": 10,
"timeoutSeconds": 7,
"failureThreshold": 3,
"successThreshold": 1,
"httpGet": {
"request": {
"path": "<string>",
"portNumber": 32768
},
"response": {
"expectedStatusCode": "Continue"
}
},
"tcpSocket": {
"request": {
"portNumber": 32768
}
},
"grpc": {
"request": {
"portNumber": 32768,
"serviceName": "<string>"
}
}
},
"readiness": {
"initialDelaySeconds": 10,
"periodSeconds": 10,
"timeoutSeconds": 7,
"failureThreshold": 3,
"successThreshold": 1,
"httpGet": {
"request": {
"path": "<string>",
"portNumber": 32768
},
"response": {
"expectedStatusCode": "Continue"
}
},
"tcpSocket": {
"request": {
"portNumber": 32768
}
},
"grpc": {
"request": {
"portNumber": 32768,
"serviceName": "<string>"
}
}
},
"liveness": {
"initialDelaySeconds": 10,
"periodSeconds": 10,
"timeoutSeconds": 7,
"failureThreshold": 3,
"successThreshold": 1,
"httpGet": {
"request": {
"path": "<string>",
"portNumber": 32768
},
"response": {
"expectedStatusCode": "Continue"
}
},
"tcpSocket": {
"request": {
"portNumber": 32768
}
},
"grpc": {
"request": {
"portNumber": 32768,
"serviceName": "<string>"
}
}
}
},
"environmentVariables": [
{
"name": "<string>",
"value": "<string>"
}
],
"endpoints": [
{
"displayName": "<string>",
"cdn": {
"isSslEnabled": true,
"stickySessions": {
"sessionHeaders": [
"<string>"
],
"enabled": true,
"cookieName": "<string>"
},
"pullZoneId": 123,
"portMappings": [
{
"containerPort": 32768,
"exposedPort": 32768,
"protocols": [
"Tcp"
]
}
]
},
"anycast": {
"type": "IPv4",
"portMappings": [
{
"containerPort": 32768,
"exposedPort": 32768,
"protocols": [
"Tcp"
]
}
]
}
}
],
"volumeMounts": [
{
"name": "<string>",
"mountPath": "<string>"
}
]
}
],
"volumes": [
{
"name": "<string>",
"size": 5
}
]
}
'{
"id": "<string>"
}Please enter a valid personal API key.
The ID of the application to update
Complete application configuration
1 - 100Shared, Reserved Show child attributes
Show child attributes
1 <= x <= 3001Show child attributes
Show child attributes
Application was successfully updated.
Was this page helpful?