The instance might be automatically recreated based on the scaling settings of the version. For more information, see "How Instances are Managed" (standard environment | flexible environment).
To ensure that instances are not re-created and avoid getting billed, you can stop all instances within the target version by changing the serving status of the version to STOPPED with the apps.services.versions.patch method.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2022-05-23 UTC."],[[["This page details how to stop a running instance, which may be automatically recreated based on version scaling settings."],["Stopping all instances in a version can be achieved by changing the version's serving status to `STOPPED` using the `apps.services.versions.patch` method, ensuring instances are not recreated."],["The HTTP request to stop an instance is a `DELETE` operation using a specific URL structure defined by gRPC Transcoding, targeting the resource name."],["The request requires a resource name as a path parameter and the `appengine.instances.delete` IAM permission, while the request body itself must remain empty."],["A successful request will return an instance of an `Operation` and needs `https://www.googleapis.com/auth/cloud-platform` OAuth scope authorization."]]],[]]