Queries the nameservers configured for a website.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
esa:GetSiteCurrentNS |
get |
*Site
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| SiteId |
integer |
Yes |
The website ID. It can be obtained by calling the ListSites operation. |
1234567890123 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| NSList |
array |
The nameservers of the website. |
|
|
string |
The nameserver name. |
ns1.example.com |
|
| RequestId |
string |
The request ID. |
2430E05E-1340-5773-B5E1-B743929F46F2 |
Examples
Success response
JSON format
{
"NSList": [
"ns1.example.com"
],
"RequestId": "2430E05E-1340-5773-B5E1-B743929F46F2"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InternalException | Failed to call the service. Try again later or contact technical support. | Failed to call the service. Try again later or contact technical support. |
| 400 | InvalidParameter.SiteName | Invalid website name. Specify a valid name that contains letters and digits and does not contain special characters. | Invalid website name. Specify a valid name that contains letters and digits and does not contain special characters. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.