Skip to content

Latest commit

 

History

History
119 lines (84 loc) · 4.44 KB

File metadata and controls

119 lines (84 loc) · 4.44 KB

cloudflare_dart.api.DNSSettingsForAZoneApi

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
dnsSettingsForAZoneListDnsSettings GET /zones/{zone_id}/dns_settings Show DNS Settings
dnsSettingsForAZoneUpdateDnsSettings PATCH /zones/{zone_id}/dns_settings Update DNS Settings

dnsSettingsForAZoneListDnsSettings

DnsSettingsSchemasDnsResponseSingle dnsSettingsForAZoneListDnsSettings(zoneId)

Show DNS Settings

Show DNS settings for a zone

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().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');
}

Parameters

Name Type Description Notes
zoneId String

Return type

DnsSettingsSchemasDnsResponseSingle

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]

dnsSettingsForAZoneUpdateDnsSettings

DnsSettingsSchemasDnsResponseSingle dnsSettingsForAZoneUpdateDnsSettings(zoneId, dnsSettingsDnsSettingsZonePatch)

Update DNS Settings

Update DNS settings for a zone

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().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');
}

Parameters

Name Type Description Notes
zoneId String
dnsSettingsDnsSettingsZonePatch DnsSettingsDnsSettingsZonePatch

Return type

DnsSettingsSchemasDnsResponseSingle

Authorization

api_key, api_token, api_email

HTTP request headers

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

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