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/AF3A-D3DA-E8C6-418A-BDFD/sites/9980eede-9ddd-4a9d-9097-d147445d1106/dnsp/mappings/7a031da9-b2f0-49c8-b6d2-a3223f9125b6
|
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.111.94.183",
"DNSPolicyId": "46bfcfb2-b199-4db9-adb6-697060da1c59"
}
<EditDNSPPolicyMappingRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models"> <DNSPolicyId>46bfcfb2-b199-4db9-adb6-697060da1c59</DNSPolicyId> <Type>StaticIP</Type> <Value>10.111.94.183</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": "c0ed003c-a6c7-43ce-b8db-4066e13fdc5a",
"Type": "StaticIP",
"Value": "95.153.178.251",
"DNSPolicyId": "2901d2b3-c878-483f-ac21-f2295a9ec783"
}
<EditDNSPPolicyMappingResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models"> <DNSPolicyId>2901d2b3-c878-483f-ac21-f2295a9ec783</DNSPolicyId> <Id>c0ed003c-a6c7-43ce-b8db-4066e13fdc5a</Id> <Type>StaticIP</Type> <Value>95.153.178.251</Value> </EditDNSPPolicyMappingResponseModel>