hostingaccount::get_suspended_url
Description
Get redirect URL for when a given hosting account is suspended.
This value retrieved with hostingaccount::get_suspended_url is the hosting account-specific value.
The account-wide account::set_suspended_url
is used as the default if a suspended URL is not specified for a given hosting account.
Request details
-
Method
GET
-
URL
https://api.hostingreborn.com/account/get_suspended_url/
Arguments
- key
- API key
- domain
- Hosting account domain name
Responses
<?xml version="1.0" encoding="utf-8"?>
<url>http://hostingreborn.com/suspended/</url>
- url
- Default redirect URL for a given hosting account
Exceptions
Examples
Get redirect URL for a hosting account with no custom URL set
GET /hostingaccount/get_suspended_url/?key=acbd18db4cc2f85cedef654fccc4a4d8&domain=test01.example.com
<?xml version="1.0" encoding="utf-8"?>
<url>http://hostingreborn.com/suspended/</url>
Get redirect URL for a hosting account with a custom URL set
GET /hostingaccount/get_suspended_url/?key=acbd18db4cc2f85cedef654fccc4a4d8&domain=test01.example.com
<?xml version="1.0" encoding="utf-8"?>
<url>http://example.com/customSuspendedUrl/</url>
See also
-
hostingaccount::set_suspended_url
Set default redirect URL for a hosting account
-
get_suspended_url
Get default redirect URL for all hosting accounts
-
set_suspended_url
Set default redirect URL for all hosting accounts