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/9E54-80E7-23BD-4629-9A48/sites/16d73e44-cd34-49bd-975c-f4450667cad6/dnsp/mappings/6d803c51-1cfd-4e03-a3aa-91bb796d7494
|
Body Parameters
Additional information for editing the policy mapping.
Either DNSPolicyId, Type and Value, or all properties need to be specified.
EditDNSPPolicyMappingRequestModel| Name | 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.75.137.133",
"DNSPolicyId": "d3b5d765-f6c3-4df6-ab6d-0a02d2d3af57"
}
<EditDNSPPolicyMappingRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models"> <DNSPolicyId>d3b5d765-f6c3-4df6-ab6d-0a02d2d3af57</DNSPolicyId> <Type>StaticIP</Type> <Value>10.75.137.133</Value> </EditDNSPPolicyMappingRequestModel>
Response Information
Resource Description
Information about the edited policy mapping.
EditDNSPPolicyMappingResponseModel| Name | 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": "97089c8e-3263-45f5-b59e-2e65a70767e7",
"Type": "StaticIP",
"Value": "95.252.4.107",
"DNSPolicyId": "d79236bf-7e8e-437d-bb0d-0a9f4928388f"
}
<EditDNSPPolicyMappingResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models"> <DNSPolicyId>d79236bf-7e8e-437d-bb0d-0a9f4928388f</DNSPolicyId> <Id>97089c8e-3263-45f5-b59e-2e65a70767e7</Id> <Type>StaticIP</Type> <Value>95.252.4.107</Value> </EditDNSPPolicyMappingResponseModel>