POST api/Hosting/{hosting_handle}/IpFilter?user={user}
Create a new ip address for connection to the given hosting and belonging to the given user
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
The Ip Filter object to create
IpFilterNew| Name | Description | Type | Additional information |
|---|---|---|---|
| IpAddress |
Ip address |
string |
Required |
| IpType |
Ip Type - IPV4 or IPV6 |
string |
Required |
| ServiceType |
Service Type - SQL Server or SSH |
string |
Required Matching regular expression pattern: ^(?i)(SQL Server|SSH)$ |
| Comment |
Comment |
string |
None. |
Request Formats
application/json, text/json
{
"IpAddress": "sample string 1",
"IpType": "sample string 2",
"ServiceType": "sample string 3",
"Comment": "sample string 4"
}
application/xml, text/xml
<IpFilterNew xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Namebay.Rest.Api.Models.Hosting"> <Comment>sample string 4</Comment> <IpAddress>sample string 1</IpAddress> <IpType>sample string 2</IpType> <ServiceType>sample string 3</ServiceType> </IpFilterNew>
application/x-www-form-urlencoded
Response Information
Resource Description
The Ip Filter object on success
Collection of errors on failure
Return codes
200 - ok
300 - ambiguous
401 - unauthorized
404 - not found
500 - internal server error
513 - quota exceeded
525 - object already registered
530 - invalid attribute value
| Name | Description | Type | Additional information |
|---|---|---|---|
| Id |
Id |
integer |
None. |
| HostingHandle |
Hosting handle |
string |
None. |
| IpAddress |
Ip address |
string |
None. |
| IpType |
Ip Type - IPV4 or IPV6 |
string |
None. |
| ServiceType |
Service Type - SQL Server or SSH |
string |
None. |
| Comment |
Comment |
string |
None. |
| DateModified |
Last modified date |
date |
None. |
| DateCreated |
Created date |
date |
None. |
Response Formats
application/json, text/json
{
"Id": 1,
"HostingHandle": "sample string 2",
"IpAddress": "sample string 3",
"IpType": "sample string 4",
"ServiceType": "sample string 5",
"Comment": "sample string 6",
"DateModified": "2025-12-13T16:32:05.7387373+01:00",
"DateCreated": "2025-12-13T16:32:05.7387373+01:00"
}
application/xml, text/xml
<IpFilter xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Namebay.Rest.Api.Models.Hosting"> <Comment>sample string 6</Comment> <DateCreated>2025-12-13T16:32:05.7387373+01:00</DateCreated> <DateModified>2025-12-13T16:32:05.7387373+01:00</DateModified> <HostingHandle>sample string 2</HostingHandle> <Id>1</Id> <IpAddress>sample string 3</IpAddress> <IpType>sample string 4</IpType> <ServiceType>sample string 5</ServiceType> </IpFilter>