VerifyStaticSiteDomain
Operations
Every route this entity exposes. Each route links to its own reference on this page.
| Method | Route | SDK operation | Returns |
|---|---|---|---|
POST |
/api/v1/static_sites/{static_site_id}/domains/{id}/verify |
create |
Updated static site domain |
Examples
One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.
Golang
Construct client as shown in the Golang setup, then call the operations:
created, err := client.VerifyStaticSiteDomain(nil).Create(map[string]any{"id": "example", "static_site_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(created)
Lua
Construct client as shown in the Lua setup, then call the operations:
local created, err = client:VerifyStaticSiteDomain():create({ id = "example", static_site_id = "example" })
PHP
Construct client as shown in the PHP setup, then call the operations:
$created = $client->VerifyStaticSiteDomain()->create(["id" => "example", "static_site_id" => "example"]);
Python
Construct client as shown in the Python setup, then call the operations:
created = client.VerifyStaticSiteDomain().create({ "id": "example", "static_site_id": "example" })
Ruby
Construct client as shown in the Ruby setup, then call the operations:
created = client.VerifyStaticSiteDomain.create({ "id" => "example", "static_site_id" => "example" })
TypeScript
Construct client as shown in the TypeScript setup, then call the operations:
const created = await client.VerifyStaticSiteDomain().create({ id: "example", static_site_id: "example" })
Fields
| Field | Type | Required | Description |
|---|---|---|---|
app_environment_id |
one,string,null |
Yes | App Environment Id |
app_service_id |
one,string,null |
Yes | App Service Id |
created_at |
string |
Yes | Created At |
dns_mode |
string |
Yes | Dns Mode |
dns_status |
string |
Yes | Dns Status |
failure_message |
one,string,null |
Yes | Failure Message |
hosted_app_id |
one,string,null |
Yes | Hosted App Id |
hostname |
string |
Yes | Hostname |
id |
string |
Yes | Id |
kind |
string |
Yes | Kind |
last_checked_at |
one,string,null |
Yes | Last Checked At |
record_name |
one,string,null |
Yes | Record Name |
record_type |
one,string,null |
Yes | Record Type |
record_value |
one,string,null |
Yes | Record Value |
redirect_to |
one,string,null |
Yes | Redirect To |
static_site_id |
one,string,null |
Yes | Static Site Id |
target_kind |
string |
Yes | Target Kind |
tls_status |
string |
Yes | Tls Status |
updated_at |
string |
Yes | Updated At |
verification_status |
string |
Yes | Verification Status |
create
POST /api/v1/static_sites/{static_site_id}/domains/{id}/verify
Operation ID: verify_api_v1_static_site_domain.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
static_site_id |
path |
string |
Yes | |
id |
path |
string |
Yes |
Request body
application/json
The request body is object.
Responses
200: Updated static site domain
application/json
| Property | Type | Required | Description |
|---|---|---|---|
domain |
object |
Yes | |
domain.app_environment_id |
string |
Yes | |
domain.app_service_id |
string |
Yes | |
domain.created_at |
string (date-time) |
Yes | |
domain.dns_mode |
enum: manual_cname, cloudflare |
Yes | |
domain.dns_status |
enum: pending, configured, failed |
Yes | |
domain.failure_message |
string |
Yes | |
domain.hosted_app_id |
string |
Yes | |
domain.hostname |
string |
Yes | |
domain.id |
string |
Yes | |
domain.kind |
enum: primary, redirect, preview, internal |
Yes | |
domain.last_checked_at |
string (date-time) |
Yes | |
domain.record_name |
string |
Yes | |
domain.record_type |
string |
Yes | |
domain.record_value |
string |
Yes | |
domain.redirect_to |
string |
Yes | |
domain.static_site_id |
string |
Yes | |
domain.target_kind |
enum: app_service, static_site |
Yes | |
domain.tls_status |
enum: pending, active, failed |
Yes | |
domain.updated_at |
string (date-time) |
Yes | |
domain.verification_status |
enum: pending, configured, failed |
Yes |
401: Unauthorized
403: Forbidden
404: Not found
422: Static site request failed validation
application/json
| Property | Type | Required | Description |
|---|---|---|---|
details |
array of string |
No | |
error |
string |
Yes | |
failure_message |
string |
No | |
status |
string |
No |