Edit mirror authorized IPs

Restrict which IP addresses have access to write to a mirror.

Request

Security

Table 1. Roles capable of executing the Edit Mirror Authorized IDs (editMirrorAccessControl) API method
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

Table 2. Request Parameters for Edit Mirror Authorized IDs (editMirrorAccessControl) API method
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