Edit mirror authorized IPs
Restrict which IP addresses have access to write to a mirror.
Request
Security
| Any | Super User | System Admin | Security Admin | Operator |
|---|---|---|---|---|
| superUser | securityAdmin |
HTTP method
POST /manager/api/{apiResponseType}/1.0/editMirrorAccessControl.adm HTTP/1.1
Host:{manager.dsnet}
id={mirrorId}&allowedIps={ip1,ip2,...}&accessMap[{key}]={ip-address]
Curl method
curl -X POST -u {admin}:{password}
-k "https://{manager.dsnet}/manager/api/{apiResponseType}/1.0/editMirrorAccessControl.adm"
-d "id={mirrorId}&allowedIps={ip1,ip2,...}&accessMap[{key}]={ip-address]" Parameters
| Parameter | Type | Usage | Default | Description |
|---|---|---|---|---|
| id | Long | Required |
The ID of a mirror to modify. |
|
| allowedIps | String | Optional | A comma-separated list of ALL IP addresses (+
optionally action groups) that should have access to the vault. here, ip address string follows structure <ip address> [= <action-group>:<action-group> {, |, \n}]
|
|
| accessMap | Map | Optional | A map of IP address to action
representing whether to add or remove the IP (+ optionally action groups) from the set of
allowed here, ip address string follows structure <ip address> [= <action-group>:<action-group> {, |, \n}]
and, Action in map can be add, or remove |
Response
Returns success or failure status.
JSON response example
Default JSON success or failure response that is shown in Default JSON success response and Default JSON failure response.
Parameters
None other than the default response parameters shown in Common response parameters.