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/711B-FAE7-109B-4EB9-8532/sites/6a6ef6e7-f47b-4c11-9641-9e98ad4c0b3f/dnsp/mappings/b5c93229-e76d-4ebe-8e66-001e31a7c957
|
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.141.144.5", "DNSPolicyId": "b7a70e15-ce67-4a35-b0a9-b3c28614a96b" }
<EditDNSPPolicyMappingRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models"> <DNSPolicyId>b7a70e15-ce67-4a35-b0a9-b3c28614a96b</DNSPolicyId> <Type>StaticIP</Type> <Value>10.141.144.5</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": "f85616a4-467e-43b3-b616-ee6ffbdbc59d", "Type": "StaticIP", "Value": "95.32.218.2", "DNSPolicyId": "a3d4b32d-af9d-4a26-9ab6-bf8b991793aa" }
<EditDNSPPolicyMappingResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models"> <DNSPolicyId>a3d4b32d-af9d-4a26-9ab6-bf8b991793aa</DNSPolicyId> <Id>f85616a4-467e-43b3-b616-ee6ffbdbc59d</Id> <Type>StaticIP</Type> <Value>95.32.218.2</Value> </EditDNSPPolicyMappingResponseModel>