Skip to content

GitHub: Get a DNS health check for Git Hub Pages

GitHub repos.reposGetPagesHealthCheck: arguments, response, policy and SDK examples.

← Repos operations · Get started

Operation github.repos_get_pages_health_check

Provider route: GET /repos/{owner}/{repo}/pages/health. Alter supplies the connection’s credentials and routing.

Install @alter-ai/sdk @alter-ai/github with npm, or alter-sdk-github with pip. Supply your connected customer’s grant ID and the arguments described below.

import { App } from "@alter-ai/sdk";
import { GitHubIntegration } from "@alter-ai/github";
async function execute(input: Parameters<GitHubIntegration["repos"]["reposGetPagesHealthCheck"]>[0]) {
const app = new App({ apiKey: process.env.ALTER_API_KEY! });
try {
const provider = new GitHubIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! });
const call = await provider.repos.reposGetPagesHealthCheck(input);
const result = await call.wait();
return result.bodyJson();
} finally {
await app.close();
}
}
import os
from alter_sdk import App
from alter_sdk_github import GitHubIntegration
async def execute(arguments):
async with App(api_key=os.environ["ALTER_API_KEY"]) as app:
provider = GitHubIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]})
call = await provider.repos.repos_get_pages_health_check(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
pathobjectRequired within parentAdditional keys: not allowed
path.ownerstringRequired within parent
path.repostringRequired within parent

Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.

FieldTypePresenceDescription and constraints
$JSONRoot
$ (anyOf 1)ModelAlternativeExpand Get a DNS health check for Git Hub Pages — response body — Pages Health Check Status
$ (anyOf 2)ModelAlternativeExpand Re-run a workflow — response body

Referenced models: Re-run a workflow — response body, Get a DNS health check for Git Hub Pages — response body — Pages Health Check Status

Re-run a workflow — response body
FieldTypePresenceDescription and constraints
$objectRootAn object without any properties.
Additional keys: not allowed
Get a DNS health check for Git Hub Pages — response body — Pages Health Check Status
FieldTypePresenceDescription and constraints
$objectRootPages Health Check Status
alt_domainJSONOptional
alt_domain (anyOf 1)ModelAlternativeExpand Get a DNS health check for Git Hub Pages — response body — Pages Health Check Status domain
alt_domain (anyOf 2)nullAlternative
domainModelOptionalExpand Get a DNS health check for Git Hub Pages — response body — Pages Health Check Status domain

Referenced models: Get a DNS health check for Git Hub Pages — response body — Pages Health Check Status domain

Get a DNS health check for Git Hub Pages — response body — Pages Health Check Status domain
FieldTypePresenceDescription and constraints
$objectRoot
caa_errorJSONOptional
caa_error (anyOf 1)stringAlternative
caa_error (anyOf 2)nullAlternative
dns_resolvesbooleanOptional
enforces_httpsbooleanOptional
has_cname_recordJSONOptional
has_cname_record (anyOf 1)booleanAlternative
has_cname_record (anyOf 2)nullAlternative
has_mx_records_presentJSONOptional
has_mx_records_present (anyOf 1)booleanAlternative
has_mx_records_present (anyOf 2)nullAlternative
hoststringOptional
https_errorJSONOptional
https_error (anyOf 1)stringAlternative
https_error (anyOf 2)nullAlternative
is_a_recordJSONOptional
is_a_record (anyOf 1)booleanAlternative
is_a_record (anyOf 2)nullAlternative
is_apex_domainbooleanOptional
is_cloudflare_ipJSONOptional
is_cloudflare_ip (anyOf 1)booleanAlternative
is_cloudflare_ip (anyOf 2)nullAlternative
is_cname_to_fastlyJSONOptional
is_cname_to_fastly (anyOf 1)booleanAlternative
is_cname_to_fastly (anyOf 2)nullAlternative
is_cname_to_github_user_domainJSONOptional
is_cname_to_github_user_domain (anyOf 1)booleanAlternative
is_cname_to_github_user_domain (anyOf 2)nullAlternative
is_cname_to_pages_dot_github_dot_comJSONOptional
is_cname_to_pages_dot_github_dot_com (anyOf 1)booleanAlternative
is_cname_to_pages_dot_github_dot_com (anyOf 2)nullAlternative
is_fastly_ipJSONOptional
is_fastly_ip (anyOf 1)booleanAlternative
is_fastly_ip (anyOf 2)nullAlternative
is_https_eligibleJSONOptional
is_https_eligible (anyOf 1)booleanAlternative
is_https_eligible (anyOf 2)nullAlternative
is_non_github_pages_ip_presentJSONOptional
is_non_github_pages_ip_present (anyOf 1)booleanAlternative
is_non_github_pages_ip_present (anyOf 2)nullAlternative
is_old_ip_addressJSONOptional
is_old_ip_address (anyOf 1)booleanAlternative
is_old_ip_address (anyOf 2)nullAlternative
is_pages_domainbooleanOptional
is_pointed_to_github_pages_ipJSONOptional
is_pointed_to_github_pages_ip (anyOf 1)booleanAlternative
is_pointed_to_github_pages_ip (anyOf 2)nullAlternative
is_proxiedJSONOptional
is_proxied (anyOf 1)booleanAlternative
is_proxied (anyOf 2)nullAlternative
is_served_by_pagesJSONOptional
is_served_by_pages (anyOf 1)booleanAlternative
is_served_by_pages (anyOf 2)nullAlternative
is_validbooleanOptional
is_valid_domainbooleanOptional
nameserversstringOptional
reasonJSONOptional
reason (anyOf 1)stringAlternative
reason (anyOf 2)nullAlternative
responds_to_httpsbooleanOptional
should_be_a_recordJSONOptional
should_be_a_record (anyOf 1)booleanAlternative
should_be_a_record (anyOf 2)nullAlternative
uristringOptional

SDK function policy ID: github.repos_get_pages_health_check. Catalog operation: repos/get-pages-health-check. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.

Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.

Pinned headers: {"X-GitHub-Api-Version": "2026-03-10", "User-Agent": "Alter", "Accept": "application/vnd.github+json"}

Official provider source

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.