Interface ZoneOperations

All Known Implementing Classes:
ZoneOperationsImpl

public interface ZoneOperations
Fluent interface for zone-level operations. Provides a chainable API for accessing and manipulating DNS records within a specific zone.
  • Method Details

    • record

      Selects a record (subdomain) within the zone for further operations.
      Parameters:
      sld - the second-level domain (subdomain) name
      Returns:
      a RecordOperations instance for chaining record-specific operations
      Throws:
      CloudflareApiException - if the zone cannot be found or accessed
    • record

      RecordOperations record(String sld, @Nullable @Nullable RecordType... types) throws CloudflareApiException
      Selects a record with specific types within the zone for further operations.
      Parameters:
      sld - the second-level domain (subdomain) name
      types - optional DNS record types to filter by
      Returns:
      a RecordOperations instance for chaining record-specific operations
      Throws:
      CloudflareApiException - if the zone cannot be found or accessed
    • list

      List<RecordEntity> list(@Nullable @Nullable RecordType... types) throws CloudflareApiException
      Lists all DNS records within the zone, optionally filtered by types.
      Parameters:
      types - optional DNS record types to filter by
      Returns:
      a list of RecordEntity objects matching the criteria
      Throws:
      CloudflareApiException - if an error occurs while retrieving records