{
"cpu": 200,
"memory": 256,
"databaseCapacity": 2048,
"storageCapacity": 4096,
"autoscaling": {
"enable": false,
"minReplicas": 1,
"maxReplicas": 5,
"targetCPUUtilizationPercentage": 50,
"targetMemoryUtilizationPercentage": 50
},
"dedicatedDatabase": {
"cpu": 200,
"memory": 256,
"capacity": 1024,
"replicas": 3
},
"name": "string",
"state": "Running",
"regionId": "string",
"runtimeId": "string"
}
curl --location --request POST 'https://api.laf.run/v1/applications' \
--header 'Content-Type: application/json' \
--data-raw '{
"cpu": 200,
"memory": 256,
"databaseCapacity": 2048,
"storageCapacity": 4096,
"autoscaling": {
"enable": false,
"minReplicas": 1,
"maxReplicas": 5,
"targetCPUUtilizationPercentage": 50,
"targetMemoryUtilizationPercentage": 50
},
"dedicatedDatabase": {
"cpu": 200,
"memory": 256,
"capacity": 1024,
"replicas": 3
},
"name": "string",
"state": "Running",
"regionId": "string",
"runtimeId": "string"
}'
{
"error": "string",
"data": {
"_id": "string",
"name": "string",
"appid": "string",
"regionId": "string",
"runtimeId": "string",
"tags": [
"string"
],
"state": "Running",
"phase": "Creating",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z",
"createdBy": "string",
"region": {
"_id": "string",
"name": "string",
"displayName": "string",
"state": "string",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
},
"bundle": {
"_id": "string",
"appid": "string",
"resource": {
"limitCPU": 500,
"limitMemory": 1024,
"databaseCapacity": 1024,
"storageCapacity": 1024,
"limitCountOfCloudFunction": 100,
"limitCountOfBucket": 3,
"limitCountOfDatabasePolicy": 3,
"limitCountOfTrigger": 1,
"limitCountOfWebsiteHosting": 3,
"reservedTimeAfterExpired": 0,
"dedicatedDatabase": {
"limitCPU": 500,
"limitMemory": 1024,
"capacity": 1024,
"replicas": 1
}
},
"autoscaling": {
"enable": true,
"minReplicas": 0,
"maxReplicas": 0,
"targetCPUUtilizationPercentage": 0,
"targetMemoryUtilizationPercentage": 0
},
"isTrialTier": true,
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
},
"runtime": {
"_id": "string",
"name": "string",
"type": "string",
"image": {
"main": "string",
"init": "string",
"sidecar": "string"
},
"state": "string",
"version": "string",
"latest": true
},
"configuration": {
"_id": "string",
"appid": "string",
"environments": [
{
"name": "string",
"value": "string"
}
],
"dependencies": [
"string"
],
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
},
"domain": {
"_id": "string",
"appid": "string",
"domain": "string",
"customDomain": "string",
"state": "Active",
"phase": "Creating",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
}
}