Get hosting domains

Request Information
URL GET {{basepath}}/hosting/:hosting_id/domains
CategoryHosting

Description

Allows you to see the current state of the hosting object including all relevant objects.

Returns a HostingDomainsGetResponse object.

Url variables
:hosting_id{{hosting_id}}The hosting identifier

Example responses

Get hosting domains
Request Method & URL
GET {{basepath}}/hosting/:hosting_id/domains
Url variables
:hosting_id{{hosting_id}}The hosting identifier
Response Code:
200 OK
Response Body:
{
    "responseId": "1_67f5f01fa44e65ccb1c77515bba405a5f55efffd",
    "status": "ok",
    "message": "The domain list is attached",
    "domains": [
        {
            "name": "example-2022-4-26-13-50-36.com",
            "forward": false,
            "primary": true
        },
        {
            "name": "sub.example-2022-4-26-13-50-36.com",
            "forward": false,
            "primary": false,
            "subDomainOf": "example-2022-4-26-13-50-36.com"
        },
        {
            "name": "sub2.example-2022-4-26-13-50-36.com",
            "forward": true,
            "primary": false,
            "subDomainOf": "example-2022-4-26-13-50-36.com"
        }
    ]
}