Skip to content

Latest commit

 

History

History
67 lines (47 loc) · 2.31 KB

AwsSettingsControllerApi.md

File metadata and controls

67 lines (47 loc) · 2.31 KB

AwsSettingsControllerApi

All URIs are relative to /

Method HTTP request Description
updateUsingPUT PUT /users-web/api/v3/apps/{appId}/aws Update App's AWS CloudWatch settings

updateUsingPUT

CloudWatchSettingsResponse updateUsingPUT(body, appId)

Update App's AWS CloudWatch settings

Applicable only for AWS Apps

Example

// Import classes:
//import com.sematext.cloud.ApiClient;
//import com.sematext.cloud.ApiException;
//import com.sematext.cloud.Configuration;
//import com.sematext.cloud.auth.*;
//import com.sematext.cloud.client.AwsSettingsControllerApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");

AwsSettingsControllerApi apiInstance = new AwsSettingsControllerApi();
CloudWatchSettings body = new CloudWatchSettings(); // CloudWatchSettings | dto
Long appId = 789L; // Long | appId
try {
    CloudWatchSettingsResponse result = apiInstance.updateUsingPUT(body, appId);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling AwsSettingsControllerApi#updateUsingPUT");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
body CloudWatchSettings dto
appId Long appId

Return type

CloudWatchSettingsResponse

Authorization

api_key

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json