postPlatformFleetByAppDeployWithHttpInfo method
Rolls a platform service's pods, in a named environment.
Rolls a platform service's pods, in a named environment. It triggers a rolling restart of one platform service's Deployment by stamping a fresh restart annotation, and answers 202 with the app, the namespace, the environment and the timestamp. It restarts pods; it does NOT change the image — a version change is the release path, not this. SuperAdmin ONLY, and deliberately narrower than the read gate beside it. The only namespaces this board touches are the platform's own tier, so a restart here recycles a SHARED service every tenant depends on. A brand-org admin is a customer-org admin, not a platform operator: observing the board is bounded and audited, and restarting production identity is not. ?env=main|test|dev is REQUIRED — a bare call does not default to production, which is what closes the fat-finger and confused-deputy hazard — and any other value is 400. A service with no Deployment to restart in that environment is 404.
Note: This method returns the HTTP Response.
Parameters:
-
String app (required): App is the service's CR name, from the path. It must be a DNS-1123 label.
-
RestartRef restartRef (required):
Implementation
Future<Response> postPlatformFleetByAppDeployWithHttpInfo(String app, RestartRef restartRef,) async {
// ignore: prefer_const_declarations
final path = r'/v1/platform/fleet/{app}/deploy'
.replaceAll('{app}', app);
// ignore: prefer_final_locals
Object? postBody = restartRef;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}