getPlatformEnvironmentsWithHttpInfo method
Returns your deploy targets, and what is running on each.
Returns your deploy targets, and what is running on each. It returns the org's environments — the distinct deploy targets its applications name, production for anything that names none — each aggregating the apps that target it, a rolled-up status and when it last changed. An environment is DERIVED, not stored: there is nothing to create or delete here, and an environment exists exactly as long as an app points at it. Requires a validated principal; 403 without one.
Note: This method returns the HTTP Response.
Implementation
Future<Response> getPlatformEnvironmentsWithHttpInfo() async {
// ignore: prefer_const_declarations
final path = r'/v1/platform/environments';
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'GET',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}