deleteAddon — Deleting SiteLock Firewall & CDN
Once provisioned, the SiteLock Firewall & CDN service can be removed at any time using the deleteAddon call.
Make sure that the user reverts their DNS settings to the origin IP settings and away from SiteLock Firewall & CDN service, or their site may become unavailable.
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
-
-
deleteAddon: The method name
-
addonInfo: (Repeatable) The subscription to delete
-
site_id: A valid SiteLock site ID
-
prod_type:
WAF
-
-
-
Response format
-
SiteLockOnlineResponse: This element is used to delineate the full API response.
-
deleteAddon: The method name
-
addonStatuses: A list of subscriptions that were removed
-
addonStatus: (Repeatable) This element corresponds to the
addonInfoelement in the request-
account_id: The SiteLock account ID imputed from the
site_idprovided in the request -
site_id: The SiteLock site ID from the request
-
subscription: The plan ID deleted
-
dns_orig_a: The original origin IP address for the site
-
dns_orig_cname: The original CNAME alias assigned to the site
-
status: Can be one of the following values:
-
ok: Success return value
-
error: Error return value. The
messageelement contains more detail.
-
-
code: This element is present when
statusiserror. -
message: The detailed error or success message, for example:
-
WAF Subscription deleted ok
-
Invalid/Unknown Account ID
-
-
-
-
-
Example response
<SiteLockOnlineResponse>
<deleteAddon>
<addonStatuses>
<addonStatus>
<account_id>379430</account_id>
<site_id>442676</site_id>
<subscription>1234</subscription>
<dns_orig_a>193.20.121.90</dns_orig_a>
<dns_orig_cname>www.example.com</dns_orig_cname>
<status>ok</status>
<message>WAF Subscription deleted ok</message>
</addonStatus>
</addonStatuses>
</deleteAddon>
</SiteLockOnlineResponse>
Overview: Provisioning Firewall & CDN and checking Firewall & CDN provisioning status
-
Provision the site using
provisionAccountorprovisionAddon. -
If the site has no SSL, skip to Continue the site’s DNS zone…, below.
-
If the site has SSL, set up the DNS TXT resource record provided in
dns_ssl_verify. -
Firewall & CDN DNS records may always be retrieved by sending a request to
getAnpProvisioningStatus. -
After setting up the DNS TXT record, periodically send requests to
getAnpProvisioningStatusto check the state. -
When the
statevalue changes frompending-domain-validationtopending-dns, you will be provided with the new A records (IP addresses) and a CNAME alias, as shown previously. -
Configure the site’s DNS zone with the information specified in the
dns_new_aanddns_new_cnamerecords. -
(Optional) Call
getAnpProvisioningStatusperiodically to check for thereadystate. -
The site will be configured automatically. If you wish to confirm a site has been set up correctly, you may use this call to check.