import 'package:cloudflare_dart/api.dart';All URIs are relative to https://api.cloudflare.com/client/v4
| Method | HTTP request | Description |
|---|---|---|
| notificationWebhooksCreateAWebhook | POST /accounts/{account_id}/alerting/v3/destinations/webhooks | Create a webhook |
| notificationWebhooksDeleteAWebhook | DELETE /accounts/{account_id}/alerting/v3/destinations/webhooks/{webhook_id} | Delete a webhook |
| notificationWebhooksGetAWebhook | GET /accounts/{account_id}/alerting/v3/destinations/webhooks/{webhook_id} | Get a webhook |
| notificationWebhooksListWebhooks | GET /accounts/{account_id}/alerting/v3/destinations/webhooks | List webhooks |
| notificationWebhooksUpdateAWebhook | PUT /accounts/{account_id}/alerting/v3/destinations/webhooks/{webhook_id} | Update a webhook |
AaaIdResponse notificationWebhooksCreateAWebhook(accountId, notificationWebhooksCreateAWebhookRequest)
Create a webhook
Creates a new webhook destination.
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().getNotificationWebhooksApi();
final String accountId = accountId_example; // String |
final NotificationWebhooksCreateAWebhookRequest notificationWebhooksCreateAWebhookRequest = ; // NotificationWebhooksCreateAWebhookRequest |
try {
final response = api.notificationWebhooksCreateAWebhook(accountId, notificationWebhooksCreateAWebhookRequest);
print(response);
} catch on DioException (e) {
print('Exception when calling NotificationWebhooksApi->notificationWebhooksCreateAWebhook: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| accountId | String | ||
| notificationWebhooksCreateAWebhookRequest | NotificationWebhooksCreateAWebhookRequest |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AaaSchemasApiResponseCommon notificationWebhooksDeleteAWebhook(webhookId, accountId)
Delete a webhook
Delete a configured webhook destination.
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().getNotificationWebhooksApi();
final String webhookId = webhookId_example; // String |
final String accountId = accountId_example; // String |
try {
final response = api.notificationWebhooksDeleteAWebhook(webhookId, accountId);
print(response);
} catch on DioException (e) {
print('Exception when calling NotificationWebhooksApi->notificationWebhooksDeleteAWebhook: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| webhookId | String | ||
| accountId | String |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AaaSchemasSingleResponse notificationWebhooksGetAWebhook(accountId, webhookId)
Get a webhook
Get details for a single webhooks destination.
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().getNotificationWebhooksApi();
final String accountId = accountId_example; // String |
final String webhookId = webhookId_example; // String |
try {
final response = api.notificationWebhooksGetAWebhook(accountId, webhookId);
print(response);
} catch on DioException (e) {
print('Exception when calling NotificationWebhooksApi->notificationWebhooksGetAWebhook: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| accountId | String | ||
| webhookId | String |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AaaWebhooksComponentsSchemasResponseCollection notificationWebhooksListWebhooks(accountId)
List webhooks
Gets a list of all configured webhook destinations.
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().getNotificationWebhooksApi();
final String accountId = accountId_example; // String |
try {
final response = api.notificationWebhooksListWebhooks(accountId);
print(response);
} catch on DioException (e) {
print('Exception when calling NotificationWebhooksApi->notificationWebhooksListWebhooks: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| accountId | String |
AaaWebhooksComponentsSchemasResponseCollection
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AaaIdResponse notificationWebhooksUpdateAWebhook(webhookId, accountId, notificationWebhooksCreateAWebhookRequest)
Update a webhook
Update a webhook destination.
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().getNotificationWebhooksApi();
final String webhookId = webhookId_example; // String |
final String accountId = accountId_example; // String |
final NotificationWebhooksCreateAWebhookRequest notificationWebhooksCreateAWebhookRequest = ; // NotificationWebhooksCreateAWebhookRequest |
try {
final response = api.notificationWebhooksUpdateAWebhook(webhookId, accountId, notificationWebhooksCreateAWebhookRequest);
print(response);
} catch on DioException (e) {
print('Exception when calling NotificationWebhooksApi->notificationWebhooksUpdateAWebhook: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| webhookId | String | ||
| accountId | String | ||
| notificationWebhooksCreateAWebhookRequest | NotificationWebhooksCreateAWebhookRequest |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]