Table: godaddy_subscription - Query GoDaddy Subscriptions using SQL
A GoDaddy Subscription is a service that allows users to avail various GoDaddy services on a recurring basis. It provides a centralized way to manage and maintain subscriptions for various GoDaddy resources, including domains, hosting, and more. GoDaddy Subscription helps you stay informed about the status and details of your GoDaddy resources and take appropriate actions when renewal or cancellation is required.
Table Usage Guide
The godaddy_subscription
table provides insights into subscriptions within GoDaddy. As a DevOps engineer or a domain manager, explore subscription-specific details through this table, including renewal status, expiration dates, and associated metadata. Utilize it to uncover information about subscriptions, such as those nearing expiration, the renewal status of subscriptions, and verification of subscription details.
Examples
Basic info
Explore which GoDaddy subscriptions are cancelable and when they are due to expire. This is useful for assessing potential changes in your domain portfolio costs and planning ahead.
select subscription_id, created_at, cancelable, label, launch_url, payment_profile_id, price_locked, expires_atfrom godaddy_subscription;
select subscription_id, created_at, cancelable, label, launch_url, payment_profile_id, price_locked, expires_atfrom godaddy_subscription;
List subscriptions with price locked enabled
Analyze your GoDaddy subscriptions to identify which ones have a locked price. This can be useful to understand your financial commitments and plan for future costs.
select subscription_id, created_at, cancelable, price_locked, expires_atfrom godaddy_subscriptionwhere price_locked;
select subscription_id, created_at, cancelable, price_locked, expires_atfrom godaddy_subscriptionwhere price_locked = 1;
Count subscriptions by product key
Analyze your product subscriptions to understand their distribution. This is useful in identifying the most subscribed products, aiding in decision-making for marketing strategies or product development.
select product_group_key, count(*) as subscription_countfrom godaddy_subscriptiongroup by product_group_key;
select product_group_key, count(*) as subscription_countfrom godaddy_subscriptiongroup by product_group_key;
Get subscription details that have addons
Explore which subscription details include addons to understand the pricing and cancellation options. This can be useful for assessing the costs and flexibility of different subscriptions.
select subscription_id, created_at, cancelable, price_lockedfrom godaddy_subscriptionwhere addons is not null;
select subscription_id, created_at, cancelable, price_lockedfrom godaddy_subscriptionwhere addons is not null;
List non-cancelable subscriptions
Determine the areas in which you have non-cancelable subscriptions. This can be beneficial for understanding your ongoing commitments and potential liabilities.
select subscription_id, created_at, cancelablefrom godaddy_subscriptionwhere not cancelable;
select subscription_id, created_at, cancelablefrom godaddy_subscriptionwhere cancelable = 0;
List subscriptions that were created between two specific dates
Explore which subscriptions were initiated within a particular year to gain insights into customer engagement and subscription trends during that period. This can assist in understanding the effectiveness of marketing strategies implemented within that timeframe.
select subscription_id, created_at, expires_at, renew_autofrom godaddy_subscriptionwhere created_at between '2022-01-01' and '2022-12-31';
select subscription_id, created_at, expires_at, renew_autofrom godaddy_subscriptionwhere created_at between '2022-01-01' and '2022-12-31';
List subscriptions that have auto-renew enabled
Explore which subscriptions have the auto-renew feature enabled. This is useful for understanding which customers will automatically renew their subscriptions, aiding in revenue forecasting and customer retention strategies.
select subscription_id, created_at, product_renewal_period, product_renewal_period_unit, status, upgradablefrom godaddy_subscriptionwhere renew_auto;
select subscription_id, created_at, product_renewal_period, product_renewal_period_unit, status, upgradablefrom godaddy_subscriptionwhere renew_auto = 1;
List active subscriptions
Explore which subscriptions are currently active to manage and monitor your GoDaddy account effectively. This helps in assessing the status of your subscriptions, allowing for better resource allocation and planning.
select subscription_id, status, created_atfrom godaddy_subscriptionwhere status = 'ACTIVE';
select subscription_id, status, created_atfrom godaddy_subscriptionwhere status = 'ACTIVE';
List subscriptions that will expire within the next 10 days
Discover the segments that are due for renewal in the coming days. This helps in proactive renewal management and avoids service disruption due to expired subscriptions.
select subscription_id, status, created_at, expires_atfrom godaddy_subscriptionwhere expires_at <= now() + interval '10' day;
select subscription_id, status, created_at, expires_atfrom godaddy_subscriptionwhere expires_at <= datetime('now', '+10 day');
Get product details of each subscription
Explore the specific details of each subscription, such as product label, namespace, renewal period, and billing information. This can help in understanding the subscription structure, tracking renewals, and managing billing cycles.
select subscription_id, product -> 'PfID' as pf_id, product ->> 'Label' as product_label, product ->> 'Namespace' as product_namespace, product -> 'RenewalPfID' as product_renewal_pf_id, product -> 'PRenewalPeriodfID' as product_renewal_period, product -> 'SupportBillOn' as product_support_bill_on, product ->> 'ProductGroupKey' as product_group_key, product ->> 'RenewalPeriodUnit' as product_renewal_period_unitfrom godaddy_subscription;
select subscription_id, json_extract(product, '$.PfID') as pf_id, json_extract(product, '$.Label') as product_label, json_extract(product, '$.Namespace') as product_namespace, json_extract(product, '$.RenewalPfID') as product_renewal_pf_id, json_extract(product, '$.PRenewalPeriodfID') as product_renewal_period, json_extract(product, '$.SupportBillOn') as product_support_bill_on, json_extract(product, '$.ProductGroupKey') as product_group_key, json_extract(product, '$.RenewalPeriodUnit') as product_renewal_period_unitfrom godaddy_subscription;
Get the billing details of each subscription
Discover the billing status and renewal date of each subscription to understand their commitment and potential past due issues. This can be used to manage financial aspects and ensure timely renewals.
select subscription_id, billing ->> 'Status' as billing_status, billing ->> 'RenewAt' as billing_renew_at, billing ->> 'Commitment' as billing_commitment, billing ->> 'PastDueTypes' as billing_past_due_typesfrom godaddy_subscription;
select subscription_id, json_extract(billing, '$.Status') as billing_status, json_extract(billing, '$.RenewAt') as billing_renew_at, json_extract(billing, '$.Commitment') as billing_commitment, json_extract(billing, '$.PastDueTypes') as billing_past_due_typesfrom godaddy_subscription;
Schema for godaddy_subscription
Name | Type | Operators | Description |
---|---|---|---|
_ctx | jsonb | Steampipe context in JSON form. | |
addons | jsonb | An array of additional products that have been purchased to augment the subscription. | |
billing | jsonb | The billing details of the subscription. | |
cancelable | boolean | Whether or not the Subscription is allowed to be canceled. | |
created_at | text | The date and time when the subscription was created. | |
expires_at | timestamp with time zone | The date when the registration for the domain is set to expire. The date and time is in Unix time format and coordinated universal time (UTC). | |
label | text | A human readable description of the subscription. | |
launch_url | text | The url to use or manage this subscription's active product. | |
payment_profile_id | text | The unique identifier of the payment profile that will be used to automatically renew this subscription. | |
price_locked | boolean | Whether the renewal price will be based from the list price or a locked-in price for this shopper. | |
product | jsonb | The product details associated to the subscription. | |
product_group_key | text | = | Primary key of a grouping of related subscriptions. |
product_renewal_period | text | The number of renewal period units that will be added for each subscription. | |
product_renewal_period_unit | text | Specifies whether subscription is allowed to be renewed. | |
relations | jsonb | The relationship between the subscriptions that will be canceled automatically, when current subscription is canceled. | |
renew_auto | boolean | Whether or not the subscription is set to be automatically renewed via the billing agent. | |
renewable | boolean | Specifies whether subscription is allowed to be renewed. | |
sp_connection_name | text | =, !=, ~~, ~~*, !~~, !~~* | Steampipe connection name. |
sp_ctx | jsonb | Steampipe context in JSON form. | |
status | text | Specifies whether the subscription is active or the specific non-active state. | |
subscription_id | text | = | Unique identifier of the subscription. |
title | text | Title of the resource. | |
upgradable | boolean | Specifies whether or not the subscription is allowed to be upgraded. |
Export
This table is available as a standalone Exporter CLI. Steampipe exporters are stand-alone binaries that allow you to extract data using Steampipe plugins without a database.
You can download the tarball for your platform from the Releases page, but it is simplest to install them with the steampipe_export_installer.sh
script:
/bin/sh -c "$(curl -fsSL https://steampipe.io/install/export.sh)" -- godaddy
You can pass the configuration to the command with the --config
argument:
steampipe_export_godaddy --config '<your_config>' godaddy_subscription