GET api/Hosting/{hosting_handle}/Access/{id}?user={user}
Get the secured directory 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 access |
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
An access 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. |
| Dir |
Relative directory path |
string |
Max length: 100 |
| Users |
List of users with access |
Collection of AccessUser |
None. |
| Legend | string |
None. |
|
| Desrciption | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Id": 1.0,
"HostingHandle": "sample string 2",
"Dir": "sample string 3",
"Users": [
{
"Login": "sample string 1",
"Password": "sample string 2"
},
{
"Login": "sample string 1",
"Password": "sample string 2"
}
],
"Legend": "sample string 4",
"Desrciption": "sample string 5"
}
application/xml, text/xml
Sample:
<Access xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Namebay.Rest.Api.Models.Hosting">
<Desrciption>sample string 5</Desrciption>
<Dir>sample string 3</Dir>
<HostingHandle>sample string 2</HostingHandle>
<Id>1</Id>
<Legend>sample string 4</Legend>
<Users>
<AccessUser>
<Login>sample string 1</Login>
<Password>sample string 2</Password>
</AccessUser>
<AccessUser>
<Login>sample string 1</Login>
<Password>sample string 2</Password>
</AccessUser>
</Users>
</Access>