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/FE65-CD9C-7858-4056-B5CC/sites/1fe442f5-82a5-43a9-9c7b-03b2511a9166/dnsp/mappings/4517945e-c9e7-4598-8bce-4b5e5a55f70a
|
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.94.28.253", "DNSPolicyId": "b696eae5-02a0-41d3-8633-1c53d3b5d7a6" }
<EditDNSPPolicyMappingRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models"> <DNSPolicyId>b696eae5-02a0-41d3-8633-1c53d3b5d7a6</DNSPolicyId> <Type>StaticIP</Type> <Value>10.94.28.253</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": "6dc82a08-117f-4538-b7a8-8082ff3dc33f", "Type": "StaticIP", "Value": "95.208.247.26", "DNSPolicyId": "a7949875-5c46-4c39-85aa-d01ca54e9ffe" }
<EditDNSPPolicyMappingResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models"> <DNSPolicyId>a7949875-5c46-4c39-85aa-d01ca54e9ffe</DNSPolicyId> <Id>6dc82a08-117f-4538-b7a8-8082ff3dc33f</Id> <Type>StaticIP</Type> <Value>95.208.247.26</Value> </EditDNSPPolicyMappingResponseModel>