All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
deletePoliciesDelete | DELETE /policies/{id} | |
getPoliciesGet | GET /policies/{id} | |
getPoliciesGetAll | GET /policies | |
postPoliciesPost | POST /policies | |
putPoliciesPut | PUT /policies/{id} |
PolicySchema deletePoliciesDelete(id)
import Alertmanager from 'alertmanager';
let defaultClient = Alertmanager.ApiClient.instance;
// Configure API key authorization: auth_token
let auth_token = defaultClient.authentications['auth_token'];
auth_token.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//auth_token.apiKeyPrefix = 'Token';
let apiInstance = new Alertmanager.PoliciesApi();
let id = "id_example"; // String |
apiInstance.deletePoliciesDelete(id, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
id | String |
- Content-Type: Not defined
- Accept: application/json
PolicySchema getPoliciesGet(id)
import Alertmanager from 'alertmanager';
let defaultClient = Alertmanager.ApiClient.instance;
// Configure API key authorization: auth_token
let auth_token = defaultClient.authentications['auth_token'];
auth_token.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//auth_token.apiKeyPrefix = 'Token';
let apiInstance = new Alertmanager.PoliciesApi();
let id = "id_example"; // String |
apiInstance.getPoliciesGet(id, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
id | String |
- Content-Type: Not defined
- Accept: application/json
PaginationSchema getPoliciesGetAll()
import Alertmanager from 'alertmanager';
let defaultClient = Alertmanager.ApiClient.instance;
// Configure API key authorization: auth_token
let auth_token = defaultClient.authentications['auth_token'];
auth_token.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//auth_token.apiKeyPrefix = 'Token';
let apiInstance = new Alertmanager.PoliciesApi();
apiInstance.getPoliciesGetAll((error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
PolicySchema postPoliciesPost(opts)
import Alertmanager from 'alertmanager';
let defaultClient = Alertmanager.ApiClient.instance;
// Configure API key authorization: auth_token
let auth_token = defaultClient.authentications['auth_token'];
auth_token.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//auth_token.apiKeyPrefix = 'Token';
let apiInstance = new Alertmanager.PoliciesApi();
let opts = {
'requestBody': new Alertmanager.PolicySchema() // PolicySchema |
};
apiInstance.postPoliciesPost(opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
requestBody | PolicySchema | [optional] |
- Content-Type: Not defined
- Accept: application/json
PolicySchema putPoliciesPut(id, opts)
import Alertmanager from 'alertmanager';
let defaultClient = Alertmanager.ApiClient.instance;
// Configure API key authorization: auth_token
let auth_token = defaultClient.authentications['auth_token'];
auth_token.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//auth_token.apiKeyPrefix = 'Token';
let apiInstance = new Alertmanager.PoliciesApi();
let id = "id_example"; // String |
let opts = {
'requestBody': new Alertmanager.PolicySchema() // PolicySchema |
};
apiInstance.putPoliciesPut(id, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
id | String | ||
requestBody | PolicySchema | [optional] |
- Content-Type: Not defined
- Accept: application/json