GET api/Hosting/{hosting_handle}/Alias?user={user}
Get aliases for a given hosting
Request Information
URI Parameters
Name | Description | Type | Additional 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 alias objects on success
Collection of errors on failure
Return codes
200 - ok
401 - unauthorized
404 - not found
500 - internal server error
Name | Description | Type | Additional information |
---|---|---|---|
Id |
Alias id |
decimal number |
None. |
HostingHandle |
Hosting handle |
string |
None. |
Host |
Host name |
string |
None. |
Domaine |
Domain name |
string |
None. |
Etat |
Status |
integer |
None. |
DateModif |
Last modified date |
date |
None. |
Response Formats
application/json, text/json
Sample:
[ { "Id": 0.0, "HostingHandle": "myhost1", "Host": "www", "Domaine": "mydomain.com", "Etat": 0, "DateModif": "0001-01-01T00:00:00" } ]
application/xml, text/xml
Sample:
<ArrayOfAlias xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Namebay.Rest.Api.Models.Hosting"> <Alias> <DateModif>0001-01-01T00:00:00</DateModif> <Domaine>mydomain.com</Domaine> <Etat>0</Etat> <Host>www</Host> <HostingHandle>myhost1</HostingHandle> <Id>0</Id> </Alias> </ArrayOfAlias>