POST api/Zone/{zone_handle}/DnsSec

Create dns sec for a zone that doesn't have one

Request Information

URI Parameters

NameDescriptionTypeAdditional information
zone_handle

Handle of a zone

string

Required

Body Parameters

dsn sec status

DnsSec
NameDescriptionTypeAdditional information
Zone

Name of the zone

string

None.

IsSec

Active or not

boolean

None.

IsSign

Signed or not

boolean

None.

SignDate

Signature date

date

None.

Request Formats

application/json, text/json

Sample:
{
  "Zone": "sample string 1",
  "IsSec": true,
  "IsSign": true,
  "SignDate": "2024-07-09T22:14:19.8949418+02:00"
}

application/xml, text/xml

Sample:
<DnsSec xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Namebay.Rest.Api.Models.Zone">
  <IsSec>true</IsSec>
  <IsSign>true</IsSign>
  <SignDate>2024-07-09T22:14:19.8949418+02:00</SignDate>
  <Zone>sample string 1</Zone>
</DnsSec>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'DnsSec'.

Response Information

Resource Description

dnssec object on success
Collection of errors on failure
Return codes
200 - ok
401 - unauthorized
404 - not found
500 - internal server error

DnsSec
NameDescriptionTypeAdditional information
Zone

Name of the zone

string

None.

IsSec

Active or not

boolean

None.

IsSign

Signed or not

boolean

None.

SignDate

Signature date

date

None.

Response Formats

application/json, text/json

Sample:
{
  "Zone": "sample string 1",
  "IsSec": true,
  "IsSign": true,
  "SignDate": "2024-07-09T22:14:19.9574414+02:00"
}

application/xml, text/xml

Sample:
<DnsSec xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Namebay.Rest.Api.Models.Zone">
  <IsSec>true</IsSec>
  <IsSign>true</IsSign>
  <SignDate>2024-07-09T22:14:19.9574414+02:00</SignDate>
  <Zone>sample string 1</Zone>
</DnsSec>