cloudflare
Version:
The official TypeScript library for the Cloudflare API
133 lines • 4.04 kB
TypeScript
import * as Core from 'cloudflare/core';
import { APIResource } from 'cloudflare/resource';
export declare class DNSSECResource extends APIResource {
/**
* Delete DNSSEC.
*/
delete(params: DNSSECDeleteParams, options?: Core.RequestOptions): Core.APIPromise<DNSSECDeleteResponse>;
/**
* Enable or disable DNSSEC.
*/
edit(params: DNSSECEditParams, options?: Core.RequestOptions): Core.APIPromise<DNSSEC>;
/**
* Details about DNSSEC status and configuration.
*/
get(params: DNSSECGetParams, options?: Core.RequestOptions): Core.APIPromise<DNSSEC>;
}
export interface DNSSEC {
/**
* Algorithm key code.
*/
algorithm?: string | null;
/**
* Digest hash.
*/
digest?: string | null;
/**
* Type of digest algorithm.
*/
digest_algorithm?: string | null;
/**
* Coded type for digest algorithm.
*/
digest_type?: string | null;
/**
* If true, multi-signer DNSSEC is enabled on the zone, allowing multiple providers
* to serve a DNSSEC-signed zone at the same time. This is required for DNSKEY
* records (except those automatically generated by Cloudflare) to be added to the
* zone.
*
* See
* [Multi-signer DNSSEC](https://developers.cloudflare.com/dns/dnssec/multi-signer-dnssec/)
* for details.
*/
dnssec_multi_signer?: boolean;
/**
* If true, allows Cloudflare to transfer in a DNSSEC-signed zone including
* signatures from an external provider, without requiring Cloudflare to sign any
* records on the fly.
*
* Note that this feature has some limitations. See
* [Cloudflare as Secondary](https://developers.cloudflare.com/dns/zone-setups/zone-transfers/cloudflare-as-secondary/setup/#dnssec)
* for details.
*/
dnssec_presigned?: boolean;
/**
* Full DS record.
*/
ds?: string | null;
/**
* Flag for DNSSEC record.
*/
flags?: number | null;
/**
* Code for key tag.
*/
key_tag?: number | null;
/**
* Algorithm key type.
*/
key_type?: string | null;
/**
* When DNSSEC was last modified.
*/
modified_on?: string | null;
/**
* Public key for DS record.
*/
public_key?: string | null;
/**
* Status of DNSSEC, based on user-desired state and presence of necessary records.
*/
status?: 'active' | 'pending' | 'disabled' | 'pending-disabled' | 'error';
}
export type DNSSECDeleteResponse = unknown | string;
export interface DNSSECDeleteParams {
/**
* Path param: Identifier
*/
zone_id: string;
/**
* Body param:
*/
body: unknown;
}
export interface DNSSECEditParams {
/**
* Path param: Identifier
*/
zone_id: string;
/**
* Body param: If true, multi-signer DNSSEC is enabled on the zone, allowing
* multiple providers to serve a DNSSEC-signed zone at the same time. This is
* required for DNSKEY records (except those automatically generated by Cloudflare)
* to be added to the zone.
*
* See
* [Multi-signer DNSSEC](https://developers.cloudflare.com/dns/dnssec/multi-signer-dnssec/)
* for details.
*/
dnssec_multi_signer?: boolean;
/**
* Body param: If true, allows Cloudflare to transfer in a DNSSEC-signed zone
* including signatures from an external provider, without requiring Cloudflare to
* sign any records on the fly.
*
* Note that this feature has some limitations. See
* [Cloudflare as Secondary](https://developers.cloudflare.com/dns/zone-setups/zone-transfers/cloudflare-as-secondary/setup/#dnssec)
* for details.
*/
dnssec_presigned?: boolean;
/**
* Body param: Status of DNSSEC, based on user-desired state and presence of
* necessary records.
*/
status?: 'active' | 'disabled';
}
export interface DNSSECGetParams {
/**
* Identifier
*/
zone_id: string;
}
//# sourceMappingURL=dnssec.d.ts.map