Retrieves the primary domain name based on the specified site name.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| SiteName |
string |
Yes |
The site name. |
sub.example.com |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
9732E117-8A37-49FD-A36F-ABBB87556CA7 |
| RR |
string |
The host record information. |
sub |
| MainDomainName |
string |
The primary domain name. |
example.com |
| DomainLevel |
integer |
The level of the input domain name. |
2 |
Examples
Success response
JSON format
{
"RequestId": "9732E117-8A37-49FD-A36F-ABBB87556CA7",
"RR": "sub",
"MainDomainName": "example.com",
"DomainLevel": 2
}
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. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.