getMachineSecretKeyWithHttpInfo method
Retrieve a machine secret key
Returns the secret key for a machine.
Note: This method returns the HTTP Response.
Parameters:
- String machineId (required): The ID of the machine to retrieve the secret key for
Implementation
Future<http.Response> getMachineSecretKeyWithHttpInfo(
String machineId,
) async {
// ignore: prefer_const_declarations
final path = r'/machines/{machine_id}/secret_key'
.replaceAll('{machine_id}', machineId);
// 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,
);
}