GET api/Hosting/{hosting_handle}/Site?user={user}

Get sites for a given hosting

Request Information

URI Parameters

NameDescriptionTypeAdditional information
hosting_handle

Hosting object handle

string

Required

user

Owner of object. If empty, currently logged in user will be used

string

None.

Body Parameters

None.

Response Information

Resource Description

An array of site objects on success
Collection of errors on failure
Return codes
200 - ok
401 - unauthorized
404 - not found
500 - internal server error

Collection of Site
NameDescriptionTypeAdditional information
Id

Site id

integer

None.

HostingHandle

Hosting handle

string

None.

PhpVersion

Php Version

string

None.

Domain

Domain name

string

None.

Status

Status

integer

None.

DateModified

Last modified date

date

None.

DateCreated

Created date

date

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "HostingHandle": "sample string 2",
    "PhpVersion": "sample string 3",
    "Domain": "sample string 4",
    "Status": 5,
    "DateModified": "2025-04-04T00:21:59.2873208+02:00",
    "DateCreated": "2025-04-04T00:21:59.2873208+02:00"
  },
  {
    "Id": 1,
    "HostingHandle": "sample string 2",
    "PhpVersion": "sample string 3",
    "Domain": "sample string 4",
    "Status": 5,
    "DateModified": "2025-04-04T00:21:59.2873208+02:00",
    "DateCreated": "2025-04-04T00:21:59.2873208+02:00"
  }
]

application/xml, text/xml

Sample:
<ArrayOfSite xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Namebay.Rest.Api.Models.Hosting">
  <Site>
    <DateCreated>2025-04-04T00:21:59.2873208+02:00</DateCreated>
    <DateModified>2025-04-04T00:21:59.2873208+02:00</DateModified>
    <Domain>sample string 4</Domain>
    <HostingHandle>sample string 2</HostingHandle>
    <Id>1</Id>
    <PhpVersion>sample string 3</PhpVersion>
    <Status>5</Status>
  </Site>
  <Site>
    <DateCreated>2025-04-04T00:21:59.2873208+02:00</DateCreated>
    <DateModified>2025-04-04T00:21:59.2873208+02:00</DateModified>
    <Domain>sample string 4</Domain>
    <HostingHandle>sample string 2</HostingHandle>
    <Id>1</Id>
    <PhpVersion>sample string 3</PhpVersion>
    <Status>5</Status>
  </Site>
</ArrayOfSite>