Table: hubspot_domain - Query HubSpot Domains using SQL
HubSpot Domains are resources within the HubSpot platform that represent the domains associated with a particular HubSpot portal. These domains are used to host the content created within HubSpot, including landing pages, blog posts, and other forms of web content. Each domain is unique to a particular portal and contains specific details such as its ID, name, and the timestamps for when it was created and last updated.
Table Usage Guide
The hubspot_domain
table provides insights into the domains within HubSpot. As a web content manager or digital marketer, you can explore domain-specific details through this table, including the domain's ID, name, created and updated timestamps, and more. Use this table to maintain an inventory of your domains, track their creation and update times, and manage your web content more effectively.
Examples
Basic info
Explore the basic information of your Hubspot domains to understand their creation details and DNS configurations. This can help assess the correctness of the DNS and identify any potential issues with the domain settings.
select id, title, created, primary_email, full_category_key, is_dns_correct, actual_cname, actual_ipfrom hubspot_domain;
select id, title, created, primary_email, full_category_key, is_dns_correct, actual_cname, actual_ipfrom hubspot_domain;
List legacy domains
Discover the segments that still use legacy domains, enabling you to assess the elements within your system that may require updates or changes. This is particularly useful in maintaining system efficiency and staying up-to-date with newer domain standards.
select id, title, created, primary_email, full_category_key, is_dns_correct, actual_cname, actual_ipfrom hubspot_domainwhere is_legacy;
select id, title, created, primary_email, full_category_key, is_dns_correct, actual_cname, actual_ipfrom hubspot_domainwhere is_legacy;
List domains where SSL is enabled
Explore domains that have SSL security enabled to ensure secure data transmission and improve website credibility. This is particularly beneficial for evaluating security measures and identifying potential improvements.
select id, title, created, primary_email, full_category_key, is_dns_correct, actual_cname, actual_ipfrom hubspot_domainwhere is_ssl_enabled;
select id, title, created, primary_email, full_category_key, is_dns_correct, actual_cname, actual_ipfrom hubspot_domainwhere is_ssl_enabled = 1;
List domains which are used for email
Uncover the details of domains that are configured for email usage. This is helpful for conducting audits or troubleshooting email delivery issues.
select id, title, created, primary_email, full_category_key, is_dns_correct, actual_cname, actual_ipfrom hubspot_domainwhere is_used_for_email;
select id, title, created, primary_email, full_category_key, is_dns_correct, actual_cname, actual_ipfrom hubspot_domainwhere is_used_for_email = 1;
List primary blog domains
Gain insights into the primary blog domains, focusing on their creation date, title, and email associated with them. This is beneficial for understanding the configuration and status of your blog domains, especially their DNS correctness and actual CNAME and IP.
select id, title, created, primary_email, full_category_key, is_dns_correct, actual_cname, actual_ipfrom hubspot_domainwhere primary_blog;
select id, title, created, primary_email, full_category_key, is_dns_correct, actual_cname, actual_ipfrom hubspot_domainwhere primary_blog;
List domains that are not associated with any team
Discover the segments that consist of domains not linked to any team. This could be useful in identifying potential areas for team assignment or highlighting domains that may be under-utilized or overlooked.
select id, title, created, primary_email, full_category_key, is_dns_correct, actual_cname, actual_ipfrom hubspot_domainwhere team_ids is null;
select id, title, created, primary_email, full_category_key, is_dns_correct, actual_cname, actual_ipfrom hubspot_domainwhere team_ids is null;
List deletable domains
Explore which domains are marked as deletable in your Hubspot account. This can help maintain your domain list by identifying those that can be safely removed without disrupting your operations.
select id, title, created, primary_email, full_category_key, is_dns_correct, actual_cname, actual_ipfrom hubspot_domainwhere deletable;
select id, title, created, primary_email, full_category_key, is_dns_correct, actual_cname, actual_ipfrom hubspot_domainwhere deletable = 1;
List domains where setup is incomplete
Discover the segments that consist of domains with incomplete setup, enabling you to identify and address these areas to ensure all domains are fully operational. This is beneficial for maintaining a seamless and efficient digital infrastructure.
select id, title, created, primary_email, full_category_key, is_dns_correct, actual_cname, actual_ipfrom hubspot_domainwhere not is_setup_complete;
select id, title, created, primary_email, full_category_key, is_dns_correct, actual_cname, actual_ipfrom hubspot_domainwhere not is_setup_complete;
Schema for hubspot_domain
Name | Type | Operators | Description |
---|---|---|---|
_ctx | jsonb | Steampipe context in JSON form. | |
actual_cname | text | The actual CNAME. | |
actual_ip | text | The actual IP address. | |
apex_domain | text | The apex domain. | |
apex_ip_addresses | jsonb | The IP addresses associated with the apex domain. | |
apex_resolution_status | text | The apex resolution status. | |
author_at | bigint | The timestamp of the author action. | |
brand_id | bigint | The brand ID. | |
cdn_purge_embargo_time | bigint | The CDN purge embargo time. | |
certificate_id | bigint | The certificate ID. | |
consecutive_non_resolving_count | bigint | The count of consecutive non-resolving attempts. | |
correct_cname | text | The correct CNAME. | |
cos_object_type | text | The COS object type. | |
created | timestamp with time zone | The creation timestamp. | |
created_by_id | bigint | The ID of the user who created the domain. | |
deletable | boolean | Indicates if the domain is deletable. | |
derived_brand_name | text | The derived brand name. | |
domain | text | The domain name. | |
domain_cdn_config | jsonb | CDN configuration for the domain. | |
full_category_key | text | The full category key. | |
id | text | = | The domain ID. |
is_any_primary | boolean | Indicates if the domain is the primary domain for any content type. | |
is_dns_correct | boolean | Indicates if the DNS is configured correctly for the domain. | |
is_internal_domain | boolean | Indicates if the domain is an internal domain. | |
is_legacy | boolean | Indicates if the domain is a legacy domain. | |
is_legacy_domain | boolean | Indicates if the domain is a legacy domain. | |
is_resolving | boolean | Indicates if the domain is resolving. | |
is_resolving_ignoring_manually_marked_as_resolving | boolean | Indicates if the domain is resolving, ignoring the manually marked flag. | |
is_resolving_internal_property | boolean | Indicates if the domain is resolving an internal property. | |
is_setup_complete | boolean | Indicates if the setup is complete for the domain. | |
is_ssl_enabled | boolean | Indicates if SSL is enabled for the domain. | |
is_ssl_only | boolean | Indicates if SSL is the only option for the domain. | |
is_staging_domain | boolean | Indicates if the domain is a staging domain. | |
is_used_for_any_content_type | boolean | Indicates if the domain is used for any content type. | |
is_used_for_blog_post | boolean | Indicates if the domain is used for blog posts. | |
is_used_for_email | boolean | Indicates if the domain is used for email. | |
is_used_for_knowledge | boolean | Indicates if the domain is used for knowledge content. | |
is_used_for_landing_page | boolean | Indicates if the domain is used for landing pages. | |
is_used_for_site_page | boolean | Indicates if the domain is used for site pages. | |
label | text | The label of the domain. | |
manually_marked_as_resolving | boolean | Indicates if the domain was manually marked as resolving. | |
portal_id | bigint | =, !=, ~~, ~~*, !~~, !~~* | The portal ID. |
primary_blog | boolean | Indicates if the domain is the primary blog domain. | |
primary_blog_post | boolean | Indicates if the domain is the primary domain for blog posts. | |
primary_click_tracking | boolean | Indicates if the domain is the primary domain for click tracking. | |
primary_email | boolean | Indicates if the domain is the primary email domain. | |
primary_knowledge | boolean | Indicates if the domain is the primary domain for knowledge content. | |
primary_landing_page | boolean | Indicates if the domain is the primary landing page. | |
primary_legacy_page | boolean | Indicates if the domain is the primary domain for legacy pages. | |
primary_site_page | boolean | Indicates if the domain is the primary domain for site pages. | |
public_suffix | text | The public suffix. | |
secondary_to_domain | text | The secondary domain. | |
set_up_language | text | The setup language. | |
setup_info | boolean | Setup information for the domain. | |
setup_task_id | bigint | The setup task ID. | |
site_id | bigint | The site ID. | |
sp_connection_name | text | =, !=, ~~, ~~*, !~~, !~~* | Steampipe connection name. |
sp_ctx | jsonb | Steampipe context in JSON form. | |
ssl_cname | text | The SSL CNAME. | |
ssl_request_id | bigint | The SSL request ID. | |
team_ids | jsonb | The team IDs associated with the domain. | |
title | text | Title of the resource. | |
updated | timestamp with time zone | The last update timestamp. | |
updated_by_id | bigint | The ID of the user who last updated the domain. |
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)" -- hubspot
You can pass the configuration to the command with the --config
argument:
steampipe_export_hubspot --config '<your_config>' hubspot_domain