GET api/Hosting/{hosting_handle}/Db?user={user}
Get dbs 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
A list of db 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 |
---|---|---|---|
Name |
Database name |
string |
None. |
HostingHandle |
Hosting handle |
string |
None. |
User |
Database user name |
string |
None. |
Pwd |
Database user password. Returned once on db creation |
string |
None. |
Type |
Database type - sqlserver2k5 (windows only), mysql5 |
string |
None. |
Size |
Database size |
integer |
None. |
MaxSize |
Max size |
integer |
None. |
ServerId | integer |
None. |
|
DateCre |
Date created |
date |
None. |
DateReq |
Date requested |
date |
None. |
Etat |
Status |
string |
None. |
UserLang |
User language |
string |
None. |
Response Formats
application/json, text/json
[ { "Name": "sample string 1", "HostingHandle": "sample string 2", "User": "sample string 3", "Pwd": "sample string 4", "Type": "sample string 5", "Size": 6, "MaxSize": 7, "ServerId": 8, "DateCre": "2025-04-04T00:19:26.6806287+02:00", "DateReq": "2025-04-04T00:19:26.6806287+02:00", "Etat": "sample string 11", "UserLang": "sample string 12" }, { "Name": "sample string 1", "HostingHandle": "sample string 2", "User": "sample string 3", "Pwd": "sample string 4", "Type": "sample string 5", "Size": 6, "MaxSize": 7, "ServerId": 8, "DateCre": "2025-04-04T00:19:26.6806287+02:00", "DateReq": "2025-04-04T00:19:26.6806287+02:00", "Etat": "sample string 11", "UserLang": "sample string 12" } ]
application/xml, text/xml
<ArrayOfDb xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Namebay.Rest.Api.Models.Hosting"> <Db> <DateCre>2025-04-04T00:19:26.6806287+02:00</DateCre> <DateReq>2025-04-04T00:19:26.6806287+02:00</DateReq> <Etat>sample string 11</Etat> <HostingHandle>sample string 2</HostingHandle> <MaxSize>7</MaxSize> <Name>sample string 1</Name> <Pwd>sample string 4</Pwd> <ServerId>8</ServerId> <Size>6</Size> <Type>sample string 5</Type> <User>sample string 3</User> <UserLang>sample string 12</UserLang> </Db> <Db> <DateCre>2025-04-04T00:19:26.6806287+02:00</DateCre> <DateReq>2025-04-04T00:19:26.6806287+02:00</DateReq> <Etat>sample string 11</Etat> <HostingHandle>sample string 2</HostingHandle> <MaxSize>7</MaxSize> <Name>sample string 1</Name> <Pwd>sample string 4</Pwd> <ServerId>8</ServerId> <Size>6</Size> <Type>sample string 5</Type> <User>sample string 3</User> <UserLang>sample string 12</UserLang> </Db> </ArrayOfDb>