POST api/srs/ns
Create a name server to a specific registry
Request Information
URI Parameters
None.
Body Parameters
SrsNsCreateParams| Name | Description | Type | Additional information |
|---|---|---|---|
| RegistryId | string |
Required |
|
| DomainName | string |
Required |
|
| IpAddress | Collection of string |
Max length: 2 |
Request Formats
application/json, text/json
Sample:
{
"RegistryId": "sample string 1",
"DomainName": "sample string 2",
"IpAddress": [
"sample string 1",
"sample string 2"
]
}
application/xml, text/xml
Sample:
<SrsNsCreateParams xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Namebay.Rest.Api.Models.SrsParams">
<DomainName>sample string 2</DomainName>
<IpAddress xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</IpAddress>
<RegistryId>sample string 1</RegistryId>
</SrsNsCreateParams>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
SrsRestResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| XmlStatusCode |
The legacy status codes as found in Interface.cs |
integer |
None. |
| Values |
Additional values |
Collection of string |
None. |
| ResponseData |
The response data of a successful SRS call |
Collection of Object |
None. |
Response Formats
application/json, text/json
Sample:
{
"XmlStatusCode": 1,
"Values": [
"sample string 1",
"sample string 2"
],
"ResponseData": null
}
application/xml
Sample:
text/xml
Sample: