POST account/domains/{domain}/hostrecords/srv
Creates an "SRV" record on the domain.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| domain |
a domain name |
string |
Required |
Body Parameters
The record.
SRVRecord| Name | Description | Type | Additional information |
|---|---|---|---|
| Service | string |
None. |
|
| Protocol | string |
None. |
|
| Priority | integer |
None. |
|
| Weight | integer |
None. |
|
| Port | integer |
None. |
|
| Target | string |
None. |
|
| RecordId | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"Service": "_http",
"Protocol": "_tcp",
"Priority": 10,
"Weight": 1,
"Port": 9213,
"Target": "http.example.com",
"RecordId": 4009
}
application/x-www-form-urlencoded
Sample:
Service=_http&Protocol=_tcp&Priority=10&Weight=1&Port=9213&Target=http.example.com&RecordId=4009
Response Information
Resource Description
HTTP 201 upon success or an appropriate HTTP error code.
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{
"Service": "_http",
"Protocol": "_tcp",
"Priority": 10,
"Weight": 1,
"Port": 9213,
"Target": "http.example.com",
"RecordId": 4009
}
