Skip to content

Latest commit

 

History

History
61 lines (40 loc) · 2.08 KB

AwsSettingsControllerApi.md

File metadata and controls

61 lines (40 loc) · 2.08 KB

SematextApiClientJavascript.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 {SematextApiClientJavascript} from 'sematext-api-client-javascript';
let defaultClient = SematextApiClientJavascript.ApiClient.instance;

// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';

let apiInstance = new SematextApiClientJavascript.AwsSettingsControllerApi();
let body = new SematextApiClientJavascript.CloudWatchSettings(); // CloudWatchSettings | dto
let appId = 789; // Number | appId

apiInstance.updateUsingPUT(body, appId).then((data) => {
  console.log('API called successfully. Returned data: ' + data);
}, (error) => {
  console.error(error);
});

Parameters

Name Type Description Notes
body CloudWatchSettings dto
appId Number appId

Return type

CloudWatchSettingsResponse

Authorization

api_key

HTTP request headers

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