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/109E-AE0D-E244-426C-86D0/sites/3325404f-e52d-4eef-b9d6-fc4ec0e5f98c/dnsp/mappings/dddb63d6-b5b3-4229-a00d-a7332d0fe1b6
|
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.191.3.100", "DNSPolicyId": "c48ec72a-3ee7-46b3-a834-517153d940b1" }
<EditDNSPPolicyMappingRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models"> <DNSPolicyId>c48ec72a-3ee7-46b3-a834-517153d940b1</DNSPolicyId> <Type>StaticIP</Type> <Value>10.191.3.100</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": "d792fcbd-fa9a-4b62-ac3d-ab4d718429ac", "Type": "StaticIP", "Value": "95.0.249.112", "DNSPolicyId": "91fb3589-2f34-4d6e-b333-c1aedc3a8df4" }
<EditDNSPPolicyMappingResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models"> <DNSPolicyId>91fb3589-2f34-4d6e-b333-c1aedc3a8df4</DNSPolicyId> <Id>d792fcbd-fa9a-4b62-ac3d-ab4d718429ac</Id> <Type>StaticIP</Type> <Value>95.0.249.112</Value> </EditDNSPPolicyMappingResponseModel>