deleteSSLHost — Deleting an SSL host

The deleteSSLHost method deletes a hostname for which an SSL check is conducted.

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

    • deleteSSLHost: The method name

      • site_id: (Repeatable) The ID of the site for which to delete the hostname. An alternative method is to pass the account_id element instead of one or more site_id elements, which will delete all hostnames for that account.

Example request

<SiteLockOnlineRequest>
    <authentication>
        <user>Username</user>
        <password>Password</password>
    </authentication>
    <deleteSSLHost >
        <site_id>10900</site_id>
        <site_id>10800</site_id>
    </deleteSSLHost>
</SiteLockOnlineRequest>

Response format

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

    • deleteSSLHost: The method name

      • sslhost: (Repeatable) The hostname details

        • site_id: [attribute] - The ID of the site for which the hostname was deleted

        • action: [attribute] - The action that was performed

          • deleted: The hostname has been deleted

          • notdeleted: The hostname hasn’t been defined in the past and cannot be deleted

Example response

Example response for hostnames that have been deleted.

<SiteLockOnlineResponse>
    <deleteSSLHost>
        <sslhost site_id="100900" action="deleted" />
        <sslhost site_id="100800" action="deleted" />
    </deleteSSLHost>
</SiteLockOnlineResponse>

Example response for hostnames that haven’t been defined previously.

<SiteLockOnlineResponse>
    <deleteSSLHost>
        <sslhost site_id="100900" action="notdeleted"/>
        <sslhost site_id="100800" action="notdeleted"/>
    </deleteSSLHost>
</SiteLockOnlineResponse>