GET api/Hosting/{hosting_handle}/Alias/{id}?user={user}
Get the alias with the given id on the given hosting
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| hosting_handle |
Hosting object handle |
string |
Required |
| id |
Id of the alias |
decimal number |
Required |
| user |
Owner of object. If empty, currently logged in user will be used |
string |
None. |
Body Parameters
None.
Response Information
Resource Description
The alias object on success
Collection of errors on failure
Return codes
200 - ok
300 - ambiguous
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
{
"Id": 0.0,
"HostingHandle": "myhost1",
"Host": "www",
"Domaine": "mydomain.com",
"Etat": 0,
"DateModif": "0001-01-01T00:00:00"
}
application/xml, text/xml
<Alias xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Namebay.Rest.Api.Models.Hosting"> <DateModif>0001-01-01T00:00:00</DateModif> <Domaine>mydomain.com</Domaine> <Etat>0</Etat> <Host>www</Host> <HostingHandle>myhost1</HostingHandle> <Id>0</Id> </Alias>