Removing a Record from the Traffic Director (DSF) service 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 »
REST Syntax
Click to view all REST Resources |
/REST/DSFRecord/ DELETE — Removes the identified Record from the Traffic Director (DSF) service.
HTTP Action — DELETE
URIs — https://api.dynect.net/REST/DSFRecord/<service_id>/<dsf_record_id>/
|
Arguments:
string publish — Indicates when Record will be deleted.
Valid values:
Y — The Record will be deleted on execution.
N — The Record will be deleted when zone changes are next published.
string notes — A custom note field. All content in the string is added to the Zone Notes for the zones attached to this service when the zone is published. Only used when publish = Y
|
Response — Click for More Info
- string
dsf_record_id — Identifier for the Record.
- string
service_id — The id of a Traffic Director (DSF) service.
- string
label — A label for the Record
- string
master_line — Master line for the Record
- string
weight — Weight for the Record. Defaults to 1.
Valid values for A or AAAA records: 1 – 15.
Valid values for CNAME records: 1 – 255.
- string
automation — Defines how eligible can be changed in response to monitoring.
Valid values:
auto — Sets the serve_mode field to ‘Monitor & Obey’. Default.
auto_down — Sets the serve_mode field to ‘Monitor & Remove’.
manual — Couples with eligible value to determine other serve_mode field values.
- array
endpoints — Endpoints are used to determine status, torpidity, and eligible in response to monitor data.
- array
endpoint_up_count — Number of endpoints that must be up for the Record status to be ‘up’.
- string
eligible — Indicates whether or not the Record can be served.
Valid values:
false — When automation is set to manual, sets the serve_mode field to ‘Do Not Serve’.
true — Default. When automation is set to manual, sets the serve_mode field to ‘Always Serve’.
- string
rdata_class — The type of rdata represented by this Record Set.
- string
ttl — Default TTL used for Records within this Record Set.
- hash
rdata — RData that comprises the Record.
string status — The status of the pool indicated by any attached monitors
Valid values:
ok — The object is available (up).
unknown — The object has not provided a status to the monitor.
down — ‘x’ records are ineligible or Unable to satisfy minimum eligible records.
string response_time — Time it took to receive a response from the endpoints
string torpidity — Performance indicator for the Record. Lower is better.
string last_monitored — Epoch timestamp of the last time the Record Set was monitored
string pending_change — Indicates whether or not the object will be added, updated, or deleted.
|
SOAP Syntax
Click to view all SOAP Commands |
DeleteOneDSFRecord — Removes an existing Record from the Traffic Director (DSF) service indicated.
|
Arguments — Click for More Info
string service_id — Required. Identifier of the Traffic Director (DSF) service where the Record exists.
string dsf_record_id — Required. Record identifier.
string publish — Indicates when Record will be deleted.
Valid values:
Y — The Record will be deleted on execution.
N — The Record will be deleted when zone changes are next published.
string notes — A custom note field. All content in the string is added to the Zone Notes for the zones attached to this service when the zone is published. Only used when publish = Y
string token — Required. The session identifier.
|
Response — Click for More Info
- hash
data
- string
dsf_record_id — Identifier for the Record.
- string
service_id — The id of a Traffic Director (DSF) service.
- string
label — A label for the Record
- string
master_line — Master line for the Record
- string
weight — Weight for the Record. Defaults to 1.
Valid values for A or AAAA records: 1 – 15.
Valid values for CNAME records: 1 – 255.
- string
automation — Defines how eligible can be changed in response to monitoring.
Valid values:
auto — Sets the serve_mode field to ‘Monitor & Obey’. Default.
auto_down — Sets the serve_mode field to ‘Monitor & Remove’.
manual — Couples with eligible value to determine other serve_mode field values.
- array
endpoints — Endpoints are used to determine status, torpidity, and eligible in response to monitor data.
- array
endpoint_up_count — Number of endpoints that must be up for the Record status to be ‘up’.
- string
eligible — Indicates whether or not the Record can be served.
Valid values:
false — When automation is set to manual, sets the serve_mode field to ‘Do Not Serve’.
true — Default. When automation is set to manual, sets the serve_mode field to ‘Always Serve’.
- string
rdata_class — The type of rdata represented by this Record Set.
- string
ttl — Default TTL used for Records within this Record Set.
- hash
rdata — RData that comprises the Record.
- string
status — The status of the pool indicated by any attached monitors
Valid values:
ok — The object is available (up).
unknown — The object has not provided a status to the monitor.
down — ‘x’ records are ineligible or Unable to satisfy minimum eligible records.
- string
response_time — Time it took to receive a response from the endpoints
- string
torpidity — Performance indicator for the Record. Lower is better.
- string
last_monitored — Epoch timestamp of the last time the Record Set was monitored
- string
pending_change — Indicates whether or not the object will be added, updated, or deleted.
|
Example Request — Click for More Info
{
'service_id' => '0bi5k...', # ID shortened...
'dsf_record_id' => 'ab32f...', # ID shortened...
'publish' => 'Y',
'token' => 'asdlj34ot879834cdzjklfK',
}
|
<< DNS API Knowledge Base