Deleting one or all Delegation Signer (DS) records using the API requires specific syntax depending on whether you are using REST or SOAP. Use this table to find the syntax for your command.
Understanding How The API Works »
See RFC 4034 for more information about DS records.
REST Syntax
Click to view all REST Resources |
/REST/DSRecord/ DELETE — Deletes one or all existing DS record on the designated node.
HTTP Action — DELETE
URIs:
Delete one DS record — https://api.dynect.net/REST/DSRecord/<zone>/<fqdn>/<record_id>/
Delete all DS records — https://api.dynect.net/REST/DSRecord/<zone>/<fqdn>/ |
Arguments:
No Arguments. |
Response:
Not Applicable. |
SOAP Syntax
Click to view all SOAP Commands |
DeleteOneDSRecord — Deletes one existing DS record at the zone/node indicated.
DeleteDSRecords — Deletes all existing DS records. |
Arguments:
DeleteOneDSRecord — Click for More Info
- string
fqdn — Required. Name of node where the record exists.
- string
record_id — Required only if there is more than one DS record.
- hash
rdata — If specified, the RData defining the record to retrieve.
- string
algorithm — Required. Identifies the encoding algorithm.
Valid values:
1 — RSA/MD5
2 — Diffie-Hellman
3 — DSA/SHA1
4 — Elliptic Curve
5 — RSA/SHA1 ** Use this value unless otherwise directed.
252 — Indirect Key
253 — Private – Domain Name
254 — Private – OID
- string
digest — Required. The digest in hexadecimal form. 20-byte, hexadecimal-encoded, one-way hash of the DNSKEY record surrounded by parenthesis characters ‘(‘ & ‘)’.
- string
digtype — Required. Identifies which digest mechanism to use to verify the digest.
Valid values:
1 — SHA1 ** Use this value unless otherwise directed.
2 — SHA256
- string
keytag — Required. Identifies which digest mechanism to use to verify the digest.
- string
ttl TTL for the record. Set to “0” to use zone default.
- string
zone — Required. Name of the zone where the record exists.
- string
token — Required. The session identifier.
DeleteDSRecords:
- string
fqdn — Required. Name of node where the record exists.
- string
token — Required. The session identifier.
- string
zone — Required. Name of the zone where the record exists.
|
Response:
Not Applicable |
Example Request(DeleteOneDSRecord) — Click for More Info
{
'fqdn' => 'www.example.com',
'record_id' => '32',
'token' => 'asdlkfjasl23j4879afa',
'zone' => 'example.com',
}
|
Example Request(DeleteDSRecords) — Click for More Info
{
'fqdn' => 'www.example.com',
'token' => 'asdlkfjasl23j4879afa',
'zone' => 'example.com',
}
|
DNS API Knowledge Base