Understanding How The API Works »
Updating TSIGKey information in the API requires specific syntax depending on whether you are using REST or SOAP. Use this table to find the syntax for your command.
REST Syntax
Click to view all REST Resources |
TSIGKey/ PUT — Performs an update on the specified TSIG Key.
HTTP Action — PUT
URI — https://api.dynect.net/REST/TSIGKey/<name>/ |
Arguments:
- string
new_name — Update the name for the specified TSIG Key.
- string
algorithm — The encryption algorithm used in DNS transactions.
Valid Values:
hmac-md5
hmac-sha1
hmac-sha224
hmac-sha256
hmac-sha384
hmac-sha512
- string
secret — The key to be used.
|
Response:
- string
name — Updated name for the specified TSIG Key.
- string
algorithm — The encryption algorithm used in DNS transactions.
- string
secret — The key used.
|
SOAP Syntax
Click to view all SOAP Commands |
UpdateTSIGKey — Performs an update on the specified TSIG Key. |
Arguments:
- string
name — Required. Name of the TSIG Key.
- string
new_name — The new name of the TSIG Key.
- string
algorithm — The encryption algorithm used in DNS transactions.
Valid Values:
hmac-md5
hmac-sha1
hmac-sha224
hmac-sha256
hmac-sha384
hmac-sha512
- string
secret — The new key to use.
- string
token — Required. The session identifier.
|
Response:
- hash
data
- string
name — Name of the TSIG Key.
- string
algorithm — The encryption algorithm used in DNS transactions.
- string
secret — The actual key.
|
Example Request — Click for More Info
{
'name' => 'Example TSIG Key',
'new_name' => 'New Name',
'algorithm' => 'hmac-sha256',
'secret' => '0jnu7SdsMvzzlmTDPYRceA==',
'token' => 'zaq12wsxcDe34rf89gt56nh',
}
DNS API Knowledge Base