---
title: Hostnames
---

[Skip to content](#_top)

[API Reference](https://developers.cloudflare.com/api/go)

[Origin TLS Client Auth](https://developers.cloudflare.com/api/go/resources/origin_tls_client_auth)

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# Hostnames

##### [Get the Hostname Status for Client Authentication](https://developers.cloudflare.com/api/go/resources/origin_tls_client_auth/subresources/hostnames/methods/get)

client.OriginTLSClientAuth.Hostnames.Get(ctx, hostname, query) (\*[AuthenticatedOriginPull](<https://developers.cloudflare.com/api/go/resources/origin_tls_client_auth#(resource)%20origin_tls_client_auth.hostnames%20%3E%20(model)%20authenticated_origin_pull%20%3E%20(schema)>), error)

GET/zones/{zone\_id}/origin\_tls\_client\_auth/hostnames/{hostname}

##### [Enable or Disable a Hostname for Client Authentication](https://developers.cloudflare.com/api/go/resources/origin_tls_client_auth/subresources/hostnames/methods/update)

client.OriginTLSClientAuth.Hostnames.Update(ctx, params) (\*SinglePage\[[HostnameUpdateResponse](<https://developers.cloudflare.com/api/go/resources/origin_tls_client_auth#(resource)%20origin_tls_client_auth.hostnames%20%3E%20(model)%20HostnameUpdateResponse%20%3E%20(schema)>)], error)

PUT/zones/{zone\_id}/origin\_tls\_client\_auth/hostnames

##### ModelsExpand Collapse

<details>

<summary>

type AuthenticatedOriginPull struct{…}

</summary>

CERTID stringOptional

Certificate identifier tag.

maxLength36

<a href="#(resource)%20origin_tls_client_auth.hostnames%20%3E%20(model)%20authenticated_origin_pull%20%3E%20(schema)%20%3E%20(property)%20cert_id">Link to this property</a>

<details>

<summary>

CERTStatus AuthenticatedOriginPullCERTStatusOptional

Status of the certificate or the association.

</summary>

One of the following:

const AuthenticatedOriginPullCERTStatusInitializing AuthenticatedOriginPullCERTStatus = "initializing"

<a href="#(resource)%20origin_tls_client_auth.hostnames%20%3E%20(model)%20authenticated_origin_pull%20%3E%20(schema)%20%3E%20(property)%20cert_status%20%3E%20(member)%200">Link to this property</a>

const AuthenticatedOriginPullCERTStatusPendingDeployment AuthenticatedOriginPullCERTStatus = "pending\_deployment"

<a href="#(resource)%20origin_tls_client_auth.hostnames%20%3E%20(model)%20authenticated_origin_pull%20%3E%20(schema)%20%3E%20(property)%20cert_status%20%3E%20(member)%201">Link to this property</a>

const AuthenticatedOriginPullCERTStatusPendingDeletion AuthenticatedOriginPullCERTStatus = "pending\_deletion"

<a href="#(resource)%20origin_tls_client_auth.hostnames%20%3E%20(model)%20authenticated_origin_pull%20%3E%20(schema)%20%3E%20(property)%20cert_status%20%3E%20(member)%202">Link to this property</a>

const AuthenticatedOriginPullCERTStatusActive AuthenticatedOriginPullCERTStatus = "active"

<a href="#(resource)%20origin_tls_client_auth.hostnames%20%3E%20(model)%20authenticated_origin_pull%20%3E%20(schema)%20%3E%20(property)%20cert_status%20%3E%20(member)%203">Link to this property</a>

const AuthenticatedOriginPullCERTStatusDeleted AuthenticatedOriginPullCERTStatus = "deleted"

<a href="#(resource)%20origin_tls_client_auth.hostnames%20%3E%20(model)%20authenticated_origin_pull%20%3E%20(schema)%20%3E%20(property)%20cert_status%20%3E%20(member)%204">Link to this property</a>

const AuthenticatedOriginPullCERTStatusDeploymentTimedOut AuthenticatedOriginPullCERTStatus = "deployment\_timed\_out"

<a href="#(resource)%20origin_tls_client_auth.hostnames%20%3E%20(model)%20authenticated_origin_pull%20%3E%20(schema)%20%3E%20(property)%20cert_status%20%3E%20(member)%205">Link to this property</a>

const AuthenticatedOriginPullCERTStatusDeletionTimedOut AuthenticatedOriginPullCERTStatus = "deletion\_timed\_out"

<a href="#(resource)%20origin_tls_client_auth.hostnames%20%3E%20(model)%20authenticated_origin_pull%20%3E%20(schema)%20%3E%20(property)%20cert_status%20%3E%20(member)%206">Link to this property</a>

</details>

<a href="#(resource)%20origin_tls_client_auth.hostnames%20%3E%20(model)%20authenticated_origin_pull%20%3E%20(schema)%20%3E%20(property)%20cert_status">Link to this property</a>

CERTUpdatedAt TimeOptional

The time when the certificate was updated.

formatdate-time

<a href="#(resource)%20origin_tls_client_auth.hostnames%20%3E%20(model)%20authenticated_origin_pull%20%3E%20(schema)%20%3E%20(property)%20cert_updated_at">Link to this property</a>

CERTUploadedOn TimeOptional

The time when the certificate was uploaded.

formatdate-time

<a href="#(resource)%20origin_tls_client_auth.hostnames%20%3E%20(model)%20authenticated_origin_pull%20%3E%20(schema)%20%3E%20(property)%20cert_uploaded_on">Link to this property</a>

Certificate stringOptional

The hostname certificate.

<a href="#(resource)%20origin_tls_client_auth.hostnames%20%3E%20(model)%20authenticated_origin_pull%20%3E%20(schema)%20%3E%20(property)%20certificate">Link to this property</a>

CreatedAt TimeOptional

The time when the certificate was created.

formatdate-time

<a href="#(resource)%20origin_tls_client_auth.hostnames%20%3E%20(model)%20authenticated_origin_pull%20%3E%20(schema)%20%3E%20(property)%20created_at">Link to this property</a>

Enabled boolOptional

Indicates whether hostname-level authenticated origin pulls is enabled. A null value voids the association.

<a href="#(resource)%20origin_tls_client_auth.hostnames%20%3E%20(model)%20authenticated_origin_pull%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

ExpiresOn TimeOptional

The date when the certificate expires.

formatdate-time

<a href="#(resource)%20origin_tls_client_auth.hostnames%20%3E%20(model)%20authenticated_origin_pull%20%3E%20(schema)%20%3E%20(property)%20expires_on">Link to this property</a>

Hostname stringOptional

The hostname on the origin for which the client certificate uploaded will be used.

maxLength255

<a href="#(resource)%20origin_tls_client_auth.hostnames%20%3E%20(model)%20authenticated_origin_pull%20%3E%20(schema)%20%3E%20(property)%20hostname">Link to this property</a>

Issuer stringOptional

The certificate authority that issued the certificate.

<a href="#(resource)%20origin_tls_client_auth.hostnames%20%3E%20(model)%20authenticated_origin_pull%20%3E%20(schema)%20%3E%20(property)%20issuer">Link to this property</a>

SerialNumber stringOptional

The serial number on the uploaded certificate.

<a href="#(resource)%20origin_tls_client_auth.hostnames%20%3E%20(model)%20authenticated_origin_pull%20%3E%20(schema)%20%3E%20(property)%20serial_number">Link to this property</a>

Signature stringOptional

The type of hash used for the certificate.

<a href="#(resource)%20origin_tls_client_auth.hostnames%20%3E%20(model)%20authenticated_origin_pull%20%3E%20(schema)%20%3E%20(property)%20signature">Link to this property</a>

<details>

<summary>

Status AuthenticatedOriginPullStatusOptional

Status of the certificate or the association.

</summary>

One of the following:

const AuthenticatedOriginPullStatusInitializing AuthenticatedOriginPullStatus = "initializing"

<a href="#(resource)%20origin_tls_client_auth.hostnames%20%3E%20(model)%20authenticated_origin_pull%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%200">Link to this property</a>

const AuthenticatedOriginPullStatusPendingDeployment AuthenticatedOriginPullStatus = "pending\_deployment"

<a href="#(resource)%20origin_tls_client_auth.hostnames%20%3E%20(model)%20authenticated_origin_pull%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%201">Link to this property</a>

const AuthenticatedOriginPullStatusPendingDeletion AuthenticatedOriginPullStatus = "pending\_deletion"

<a href="#(resource)%20origin_tls_client_auth.hostnames%20%3E%20(model)%20authenticated_origin_pull%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%202">Link to this property</a>

const AuthenticatedOriginPullStatusActive AuthenticatedOriginPullStatus = "active"

<a href="#(resource)%20origin_tls_client_auth.hostnames%20%3E%20(model)%20authenticated_origin_pull%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%203">Link to this property</a>

const AuthenticatedOriginPullStatusDeleted AuthenticatedOriginPullStatus = "deleted"

<a href="#(resource)%20origin_tls_client_auth.hostnames%20%3E%20(model)%20authenticated_origin_pull%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%204">Link to this property</a>

const AuthenticatedOriginPullStatusDeploymentTimedOut AuthenticatedOriginPullStatus = "deployment\_timed\_out"

<a href="#(resource)%20origin_tls_client_auth.hostnames%20%3E%20(model)%20authenticated_origin_pull%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%205">Link to this property</a>

const AuthenticatedOriginPullStatusDeletionTimedOut AuthenticatedOriginPullStatus = "deletion\_timed\_out"

<a href="#(resource)%20origin_tls_client_auth.hostnames%20%3E%20(model)%20authenticated_origin_pull%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%206">Link to this property</a>

</details>

<a href="#(resource)%20origin_tls_client_auth.hostnames%20%3E%20(model)%20authenticated_origin_pull%20%3E%20(schema)%20%3E%20(property)%20status">Link to this property</a>

UpdatedAt TimeOptional

The time when the certificate was updated.

formatdate-time

<a href="#(resource)%20origin_tls_client_auth.hostnames%20%3E%20(model)%20authenticated_origin_pull%20%3E%20(schema)%20%3E%20(property)%20updated_at">Link to this property</a>

</details>

[Link to this property](<#(resource)%20origin_tls_client_auth.hostnames%20%3E%20(model)%20authenticated_origin_pull%20%3E%20(schema)>)