import 'package:cloudflare_dart/api.dart';All URIs are relative to https://api.cloudflare.com/client/v4
| Method | HTTP request | Description |
|---|---|---|
| dnsSettingsForAZoneListDnsSettings | GET /zones/{zone_id}/dns_settings | Show DNS Settings |
| dnsSettingsForAZoneUpdateDnsSettings | PATCH /zones/{zone_id}/dns_settings | Update DNS Settings |
DnsSettingsSchemasDnsResponseSingle dnsSettingsForAZoneListDnsSettings(zoneId)
Show DNS Settings
Show DNS settings for a 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().getDNSSettingsForAZoneApi();
final String zoneId = zoneId_example; // String |
try {
final response = api.dnsSettingsForAZoneListDnsSettings(zoneId);
print(response);
} catch on DioException (e) {
print('Exception when calling DNSSettingsForAZoneApi->dnsSettingsForAZoneListDnsSettings: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| zoneId | String |
DnsSettingsSchemasDnsResponseSingle
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DnsSettingsSchemasDnsResponseSingle dnsSettingsForAZoneUpdateDnsSettings(zoneId, dnsSettingsDnsSettingsZonePatch)
Update DNS Settings
Update DNS settings for a 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().getDNSSettingsForAZoneApi();
final String zoneId = zoneId_example; // String |
final DnsSettingsDnsSettingsZonePatch dnsSettingsDnsSettingsZonePatch = ; // DnsSettingsDnsSettingsZonePatch |
try {
final response = api.dnsSettingsForAZoneUpdateDnsSettings(zoneId, dnsSettingsDnsSettingsZonePatch);
print(response);
} catch on DioException (e) {
print('Exception when calling DNSSettingsForAZoneApi->dnsSettingsForAZoneUpdateDnsSettings: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| zoneId | String | ||
| dnsSettingsDnsSettingsZonePatch | DnsSettingsDnsSettingsZonePatch |
DnsSettingsSchemasDnsResponseSingle
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]