postPlatformProjectsByProjectAppsByAppStopWithHttpInfo method
Stops an app without deleting it.
Stops an app without deleting it. It scales the app's Service to zero replicas and marks it stopped, answering the updated application. Nothing else is removed — the record, its env, its domains and its deployment history all survive, and /start brings it back at the same replica count. An app that is not deployed has no Service CR to scale and is 404. An unreachable cluster is 503 and a cluster that refuses the scale is 502. Because the pods stop, so does the compute metering. Requires a validated principal; 403 without one.
Note: This method returns the HTTP Response.
Parameters:
Implementation
Future<Response> postPlatformProjectsByProjectAppsByAppStopWithHttpInfo(String project, String app,) async {
// ignore: prefer_const_declarations
final path = r'/v1/platform/projects/{project}/apps/{app}/stop'
.replaceAll('{project}', project)
.replaceAll('{app}', app);
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}