PUT /service/api/console/gsm/{gsmKey}/sites/{siteId}/dnsp/mappings/{mappingId}
Edits a specified mapping of a DNS Protection policy.
Request Information
URI Parameters
Name | Description | Type | Additional Information |
---|---|---|---|
gsmKey |
The GSM console keycode. |
string |
Required |
siteId |
The identifier of the site for which the mapping should be modified. |
string |
Required |
mappingId |
The identifier of the mapping. |
string |
Required |
URI Sample(s)
PUT
|
https://unityapi.webrootcloudav.com/service/api/console/gsm/F027-1081-8646-478B-A303/sites/b949e4b0-2175-442a-a622-83797949de80/dnsp/mappings/001e4336-7f62-4a3d-b746-e305def28dd0
|
Body Parameters
Additional information for editing the policy mapping.
Either DNSPolicyId, Type and Value, or all properties need to be specified.
EditDNSPPolicyMappingRequestModelName | Description | Type | Additional Information |
---|---|---|---|
Type |
The type of the mapping. The supported type is "StaticIP", which associates an IP address with a DNS Protection policy. |
string |
If specified, Value needs to be specified too. |
Value |
The value of the mapping. For mappings of type "StaticIP" the value must be an IP address. |
string |
If specified, Type needs to be specified too. |
DNSPolicyId |
The DNS Protection policy id to be set for the mapping. |
string |
None. |
Sample Request
{ "Type": "StaticIP", "Value": "10.25.97.110", "DNSPolicyId": "73ca25fd-c57d-4783-a71d-7d9df7980869" }
<EditDNSPPolicyMappingRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models"> <DNSPolicyId>73ca25fd-c57d-4783-a71d-7d9df7980869</DNSPolicyId> <Type>StaticIP</Type> <Value>10.25.97.110</Value> </EditDNSPPolicyMappingRequestModel>
Response Information
Resource Description
Information about the edited policy mapping.
EditDNSPPolicyMappingResponseModelName | Description | Type | Additional Information |
---|---|---|---|
Id |
The mapping id. |
string |
None. |
Type |
The type of the mapping. |
string |
None. |
Value |
The value of the mapping. For mappings of type "StaticIP" the value is an IP address. |
string |
None. |
DNSPolicyId |
The DNS Protection policy id assigned to the mapping. |
string |
None. |
Sample Response
{ "Id": "4fe50121-6056-4724-8907-d6337f2cbd7a", "Type": "StaticIP", "Value": "95.18.212.228", "DNSPolicyId": "6ad7fe11-4989-4d30-b4a9-f40fe8a1105c" }
<EditDNSPPolicyMappingResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models"> <DNSPolicyId>6ad7fe11-4989-4d30-b4a9-f40fe8a1105c</DNSPolicyId> <Id>4fe50121-6056-4724-8907-d6337f2cbd7a</Id> <Type>StaticIP</Type> <Value>95.18.212.228</Value> </EditDNSPPolicyMappingResponseModel>