setWAFDNSManager — Updating DNS records

The setWAFDNSManager method communicates to SiteLock that the user’s DNS records will be modified for the purpose of configuring Firewall & CDN.

The API endpoint is:

https://api.sitelock.com/v1/partner

Request format

  • SiteLockOnlineRequest: This element is used to delineate the full API request.

    • authentication: The partner’s username, password, and branding

      • username: The partner’s API username

      • password: The partner’s API password

      • partner: (Optional) The brand name to use in messaging

    • setWAFDNSManager: The method name

      • site_id: The ID of the site

      • waf_dns_manager: (Optional) This element can have one of the following values:

        • customer: Partner requires the user to update their DNS records. This is the default value when not specified.

        • partner: Partner will modify the user’s DNS records.

Example request

<SiteLockOnlineRequest>
    <authentication>
        <user>Username</user>
        <password>Password</password>
    </authentication>
    <setWAFDNSManager>
        <site_id>1234567</site_id>
        <waf_dns_manager>partner</waf_dns_manager>
    </setWAFDNSManager>
</SiteLockOnlineRequest>
xml

Response format

  • SiteLockOnlineResponse: This element is used to delineate the full API response.

    • setWAFDNSManager: The method name

      • message: The detailed error or success message

      • status: Either ok or error

Example response

<SiteLockOnlineResponse>
    <setWAFDNSManager>
        <message>Successfully updated.</message>
        <status>ok</status>
    </setWAFDNSManager>
</SiteLockOnlineResponse>
xml