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/A00F-DBD8-4C2E-4A65-84EB/sites/27cfae90-7ac3-44da-b86a-4d63a4fe2ab1/dnsp/mappings/9f522615-59e1-4c3b-8da0-d899fdb826c5
|
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.23.0.250",
"DNSPolicyId": "9df46254-1a25-4bc8-9478-6799fcc98f99"
}
<EditDNSPPolicyMappingRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models"> <DNSPolicyId>9df46254-1a25-4bc8-9478-6799fcc98f99</DNSPolicyId> <Type>StaticIP</Type> <Value>10.23.0.250</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": "0b968af1-979a-449f-a3fc-57a95303aad4",
"Type": "StaticIP",
"Value": "95.198.114.73",
"DNSPolicyId": "581518ab-122d-4db8-8f3d-a06b6e528fa6"
}
<EditDNSPPolicyMappingResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models"> <DNSPolicyId>581518ab-122d-4db8-8f3d-a06b6e528fa6</DNSPolicyId> <Id>0b968af1-979a-449f-a3fc-57a95303aad4</Id> <Type>StaticIP</Type> <Value>95.198.114.73</Value> </EditDNSPPolicyMappingResponseModel>