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/DDCC-3CBE-A75A-49C3-86DD/sites/c6195679-e019-4b73-a44b-b14b5fa0f84d/dnsp/mappings/39c97b87-380a-4bae-b7ae-2bd1b717ddf6
|
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.89.18.246", "DNSPolicyId": "5da8334c-e69e-4537-adf2-ac703a90bdcf" }
<EditDNSPPolicyMappingRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models"> <DNSPolicyId>5da8334c-e69e-4537-adf2-ac703a90bdcf</DNSPolicyId> <Type>StaticIP</Type> <Value>10.89.18.246</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": "668b13fa-b404-4e32-91bb-f0515865f8ad", "Type": "StaticIP", "Value": "95.3.170.162", "DNSPolicyId": "5dbe95bd-6798-4c6f-b98a-6c9902349bcb" }
<EditDNSPPolicyMappingResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models"> <DNSPolicyId>5dbe95bd-6798-4c6f-b98a-6c9902349bcb</DNSPolicyId> <Id>668b13fa-b404-4e32-91bb-f0515865f8ad</Id> <Type>StaticIP</Type> <Value>95.3.170.162</Value> </EditDNSPPolicyMappingResponseModel>