import 'package:cloudflare_dart/api.dart';All URIs are relative to https://api.cloudflare.com/client/v4
| Method | HTTP request | Description |
|---|---|---|
| tokenValidationConfigCreate | POST /zones/{zone_id}/token_validation/config | Create a new Token Validation configuration |
| tokenValidationConfigCredentialsUpdate | PUT /zones/{zone_id}/token_validation/config/{config_id}/credentials | Update Token Configuration credentials |
| tokenValidationConfigDelete | DELETE /zones/{zone_id}/token_validation/config/{config_id} | Delete Token Configuration |
| tokenValidationConfigEdit | PATCH /zones/{zone_id}/token_validation/config/{config_id} | Edit an existing Token Configuration |
| tokenValidationConfigGet | GET /zones/{zone_id}/token_validation/config/{config_id} | Get a single Token Configuration |
| tokenValidationConfigList | GET /zones/{zone_id}/token_validation/config | List token validation configurations |
TokenValidationConfigCreate200Response tokenValidationConfigCreate(zoneId, tokenValidationConfigCreateRequest)
Create a new Token Validation configuration
Create a new Token Validation configuration
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().getTokenValidationTokenConfigurationApi();
final ApiShieldSchemasIdentifier zoneId = ; // ApiShieldSchemasIdentifier |
final TokenValidationConfigCreateRequest tokenValidationConfigCreateRequest = ; // TokenValidationConfigCreateRequest |
try {
final response = api.tokenValidationConfigCreate(zoneId, tokenValidationConfigCreateRequest);
print(response);
} catch on DioException (e) {
print('Exception when calling TokenValidationTokenConfigurationApi->tokenValidationConfigCreate: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| zoneId | ApiShieldSchemasIdentifier | ||
| tokenValidationConfigCreateRequest | TokenValidationConfigCreateRequest |
TokenValidationConfigCreate200Response
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TokenValidationConfigCredentialsUpdate200Response tokenValidationConfigCredentialsUpdate(zoneId, configId, apiShieldCredentials)
Update Token Configuration credentials
Update Token Configuration credentials
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().getTokenValidationTokenConfigurationApi();
final ApiShieldSchemasIdentifier zoneId = ; // ApiShieldSchemasIdentifier |
final ApiShieldSchemasUuid configId = 4a7ee8d3-dd63-4ceb-9d5f-c27831854ce7; // ApiShieldSchemasUuid | Token Configuration ID
final ApiShieldCredentials apiShieldCredentials = ; // ApiShieldCredentials |
try {
final response = api.tokenValidationConfigCredentialsUpdate(zoneId, configId, apiShieldCredentials);
print(response);
} catch on DioException (e) {
print('Exception when calling TokenValidationTokenConfigurationApi->tokenValidationConfigCredentialsUpdate: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| zoneId | ApiShieldSchemasIdentifier | ||
| configId | ApiShieldSchemasUuid | Token Configuration ID | |
| apiShieldCredentials | ApiShieldCredentials |
TokenValidationConfigCredentialsUpdate200Response
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TokenValidationConfigDelete200Response tokenValidationConfigDelete(zoneId, configId)
Delete Token Configuration
Delete Token Configuration
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().getTokenValidationTokenConfigurationApi();
final ApiShieldSchemasIdentifier zoneId = ; // ApiShieldSchemasIdentifier |
final ApiShieldSchemasUuid configId = 4a7ee8d3-dd63-4ceb-9d5f-c27831854ce7; // ApiShieldSchemasUuid | Token Configuration ID
try {
final response = api.tokenValidationConfigDelete(zoneId, configId);
print(response);
} catch on DioException (e) {
print('Exception when calling TokenValidationTokenConfigurationApi->tokenValidationConfigDelete: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| zoneId | ApiShieldSchemasIdentifier | ||
| configId | ApiShieldSchemasUuid | Token Configuration ID |
TokenValidationConfigDelete200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TokenValidationConfigEdit200Response tokenValidationConfigEdit(zoneId, configId, tokenValidationConfigEditRequest)
Edit an existing Token Configuration
Edit fields of an existing Token Configuration
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().getTokenValidationTokenConfigurationApi();
final ApiShieldSchemasIdentifier zoneId = ; // ApiShieldSchemasIdentifier |
final ApiShieldSchemasUuid configId = 4a7ee8d3-dd63-4ceb-9d5f-c27831854ce7; // ApiShieldSchemasUuid | Token Configuration ID
final TokenValidationConfigEditRequest tokenValidationConfigEditRequest = ; // TokenValidationConfigEditRequest |
try {
final response = api.tokenValidationConfigEdit(zoneId, configId, tokenValidationConfigEditRequest);
print(response);
} catch on DioException (e) {
print('Exception when calling TokenValidationTokenConfigurationApi->tokenValidationConfigEdit: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| zoneId | ApiShieldSchemasIdentifier | ||
| configId | ApiShieldSchemasUuid | Token Configuration ID | |
| tokenValidationConfigEditRequest | TokenValidationConfigEditRequest |
TokenValidationConfigEdit200Response
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TokenValidationConfigCreate200Response tokenValidationConfigGet(zoneId, configId)
Get a single Token Configuration
Get a single Token Configuration
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().getTokenValidationTokenConfigurationApi();
final ApiShieldSchemasIdentifier zoneId = ; // ApiShieldSchemasIdentifier |
final ApiShieldSchemasUuid configId = 4a7ee8d3-dd63-4ceb-9d5f-c27831854ce7; // ApiShieldSchemasUuid | Token Configuration ID
try {
final response = api.tokenValidationConfigGet(zoneId, configId);
print(response);
} catch on DioException (e) {
print('Exception when calling TokenValidationTokenConfigurationApi->tokenValidationConfigGet: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| zoneId | ApiShieldSchemasIdentifier | ||
| configId | ApiShieldSchemasUuid | Token Configuration ID |
TokenValidationConfigCreate200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TokenValidationConfigList200Response tokenValidationConfigList(zoneId, page, perPage)
List token validation configurations
Lists all token validation configurations for this zone
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().getTokenValidationTokenConfigurationApi();
final ApiShieldSchemasIdentifier zoneId = ; // ApiShieldSchemasIdentifier |
final int page = 56; // int | Page number of paginated results.
final int perPage = 56; // int | Maximum number of results per page.
try {
final response = api.tokenValidationConfigList(zoneId, page, perPage);
print(response);
} catch on DioException (e) {
print('Exception when calling TokenValidationTokenConfigurationApi->tokenValidationConfigList: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| zoneId | ApiShieldSchemasIdentifier | ||
| page | int | Page number of paginated results. | [optional] [default to 1] |
| perPage | int | Maximum number of results per page. | [optional] [default to 20] |
TokenValidationConfigList200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]