Skip to content

Latest commit

 

History

History
65 lines (45 loc) · 2.26 KB

File metadata and controls

65 lines (45 loc) · 2.26 KB

cloudflare_dart.api.NotificationAlertTypesApi

Load the API package

import 'package:cloudflare_dart/api.dart';

All URIs are relative to https://api.cloudflare.com/client/v4

Method HTTP request Description
notificationAlertTypesGetAlertTypes GET /accounts/{account_id}/alerting/v3/available_alerts Get Alert Types

notificationAlertTypesGetAlertTypes

AaaAlertsResponseCollection notificationAlertTypesGetAlertTypes(accountId)

Get Alert Types

Gets a list of all alert types for which an account is eligible.

Example

import 'package:cloudflare_dart/api.dart';
// TODO Configure API key authorization: api_key
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
// TODO Configure API key authorization: api_email
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_email').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_email').apiKeyPrefix = 'Bearer';

final api = CloudflareDart().getNotificationAlertTypesApi();
final String accountId = accountId_example; // String | 

try {
    final response = api.notificationAlertTypesGetAlertTypes(accountId);
    print(response);
} catch on DioException (e) {
    print('Exception when calling NotificationAlertTypesApi->notificationAlertTypesGetAlertTypes: $e\n');
}

Parameters

Name Type Description Notes
accountId String

Return type

AaaAlertsResponseCollection

Authorization

api_key, api_token, api_email

HTTP request headers

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

[Back to top] [Back to API list] [Back to Model list] [Back to README]