All Products
Search
Document Center

Edge Security Acceleration:GetMainDomainName

Last Updated:Jul 28, 2026

Retrieves the primary domain name based on the specified site name.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

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.