POST v1/Delivery/Repositories/{repositoryId}/FirewallRules
User roles allowed to make this request:
DomainAdministrator
Permissions required to make this request:
Repository.Write
Repository.Read
Adds a firewall rule to allow access to repository database for specific IP addresses.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
repositoryId |
The repository id. |
integer |
Required |
Body Parameters
The FirewallRuleModel
FirewallRuleModelName | Description | Type | Additional information |
---|---|---|---|
Id |
The identifier for the rule |
integer |
None. |
Name |
The name of the rule. Unique per database. |
string |
None. |
StartIpAddress |
The starting IP Address of the allowed range. |
string |
None. |
EndIpAddress |
The last IP address that will be allowed (in the specified range). |
string |
None. |
Request Formats
application/json, text/json
Sample:
{ "Id": 1, "Name": "sample string 2", "StartIpAddress": "sample string 3", "EndIpAddress": "sample string 4" }
application/xml, text/xml
Sample:
<FirewallRuleModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NipoSoftware.Nfield.Manager.Api.Models.Delivery"> <EndIpAddress>sample string 4</EndIpAddress> <Id>1</Id> <Name>sample string 2</Name> <StartIpAddress>sample string 3</StartIpAddress> </FirewallRuleModel>
application/x-www-form-urlencoded
Sample:
Id=1&Name=sample&StartIpAddress=sample&EndIpAddress=sample
multipart/form-data
Sample:
Sample not available.
Response Information
Resource Description
Response Message
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |