{ "deployment": { "files": { "main.py": { "sourceUrl": "https://storage.googleapis.com/admin-api-public-samples/hello_world/main.py" }, } }, "handlers": [ { "script": { "scriptPath": "main.app" }, "urlRegex": "/.*" } ], "runtime": "python27", "threadsafe": true, "id": "appengine-helloworld", "inboundServices": [ "INBOUND_SERVICE_WARMUP" ]}
POST https://appengine.googleapis.com/v1/apps/my-application/services/default/versions helloworld.json
{ "deployment": { "files": { "main.py": { "sourceUrl": "https://storage.googleapis.com/admin-api-public-samples/goodbye_world/main.py" }, } }, "handlers": [ { "script": { "scriptPath": "main.app" }, "urlRegex": "/.*" } ], "runtime": "python27", "threadsafe": true, "id": "appengine-goodbyeworld", "inboundServices": [ "INBOUND_SERVICE_WARMUP" ]}
PATCH https://appengine.googleapis.com/v1/apps/my-application/services/default/?updateMask=split { "split": { "shardBy": "IP", "allocations { "appengine-helloworld": 0.5, "appengine-goodbyeworld": 0.5 } } }
PATCH https://appengine.googleapis.com/v1/apps/my-application/services/default/?updateMask=split&migrateTraffic=true {"split": { "shardBy": "IP", "allocations": { <"appengine-goodbyeworld": 1 } } }
Use promo code NEXT1720 to save $300 off general admission
No comments :
Post a Comment