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/287A-5938-7759-4C4C-BF4E/sites/414f0060-5a6b-4b06-b7e4-0e360c57463b/dnsp/mappings/a90d682d-7b77-42c1-b6e8-265bd160b819
|
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.213.26.246",
"DNSPolicyId": "0139305f-06c6-4565-967d-e0985cb93062"
}
<EditDNSPPolicyMappingRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models"> <DNSPolicyId>0139305f-06c6-4565-967d-e0985cb93062</DNSPolicyId> <Type>StaticIP</Type> <Value>10.213.26.246</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": "cee7f75d-0e96-4b2f-b1cb-fdf5095bca54",
"Type": "StaticIP",
"Value": "95.68.219.85",
"DNSPolicyId": "b090e7ef-dad9-4879-82e8-d46bbb4b5332"
}
<EditDNSPPolicyMappingResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models"> <DNSPolicyId>b090e7ef-dad9-4879-82e8-d46bbb4b5332</DNSPolicyId> <Id>cee7f75d-0e96-4b2f-b1cb-fdf5095bca54</Id> <Type>StaticIP</Type> <Value>95.68.219.85</Value> </EditDNSPPolicyMappingResponseModel>