# CustomHostnames

Params Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames">custom_hostnames</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames#BundleMethod">BundleMethod</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames">custom_hostnames</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames#DCVMethod">DCVMethod</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames">custom_hostnames</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames#DomainValidationType">DomainValidationType</a>

Response Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames">custom_hostnames</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames#BundleMethod">BundleMethod</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames">custom_hostnames</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames#DCVMethod">DCVMethod</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames">custom_hostnames</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames#DomainValidationType">DomainValidationType</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames">custom_hostnames</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames#CustomHostnameNewResponse">CustomHostnameNewResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames">custom_hostnames</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames#CustomHostnameListResponse">CustomHostnameListResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames">custom_hostnames</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames#CustomHostnameDeleteResponse">CustomHostnameDeleteResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames">custom_hostnames</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames#CustomHostnameEditResponse">CustomHostnameEditResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames">custom_hostnames</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames#CustomHostnameGetResponse">CustomHostnameGetResponse</a>

Methods:

- <code title="post /zones/{zone_id}/custom_hostnames">client.CustomHostnames.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames#CustomHostnameService.New">New</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames">custom_hostnames</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames#CustomHostnameNewParams">CustomHostnameNewParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames">custom_hostnames</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames#CustomHostnameNewResponse">CustomHostnameNewResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /zones/{zone_id}/custom_hostnames">client.CustomHostnames.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames#CustomHostnameService.List">List</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames">custom_hostnames</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames#CustomHostnameListParams">CustomHostnameListParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/packages/pagination">pagination</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/packages/pagination#V4PagePaginationArray">V4PagePaginationArray</a>[<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames">custom_hostnames</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames#CustomHostnameListResponse">CustomHostnameListResponse</a>], <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="delete /zones/{zone_id}/custom_hostnames/{custom_hostname_id}">client.CustomHostnames.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames#CustomHostnameService.Delete">Delete</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, customHostnameID <a href="https://pkg.go.dev/builtin#string">string</a>, body <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames">custom_hostnames</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames#CustomHostnameDeleteParams">CustomHostnameDeleteParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames">custom_hostnames</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames#CustomHostnameDeleteResponse">CustomHostnameDeleteResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="patch /zones/{zone_id}/custom_hostnames/{custom_hostname_id}">client.CustomHostnames.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames#CustomHostnameService.Edit">Edit</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, customHostnameID <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames">custom_hostnames</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames#CustomHostnameEditParams">CustomHostnameEditParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames">custom_hostnames</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames#CustomHostnameEditResponse">CustomHostnameEditResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /zones/{zone_id}/custom_hostnames/{custom_hostname_id}">client.CustomHostnames.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames#CustomHostnameService.Get">Get</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, customHostnameID <a href="https://pkg.go.dev/builtin#string">string</a>, query <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames">custom_hostnames</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames#CustomHostnameGetParams">CustomHostnameGetParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames">custom_hostnames</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames#CustomHostnameGetResponse">CustomHostnameGetResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>

## FallbackOrigin

Response Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames">custom_hostnames</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames#FallbackOriginUpdateResponse">FallbackOriginUpdateResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames">custom_hostnames</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames#FallbackOriginDeleteResponse">FallbackOriginDeleteResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames">custom_hostnames</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames#FallbackOriginGetResponse">FallbackOriginGetResponse</a>

Methods:

- <code title="put /zones/{zone_id}/custom_hostnames/fallback_origin">client.CustomHostnames.FallbackOrigin.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames#FallbackOriginService.Update">Update</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames">custom_hostnames</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames#FallbackOriginUpdateParams">FallbackOriginUpdateParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames">custom_hostnames</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames#FallbackOriginUpdateResponse">FallbackOriginUpdateResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="delete /zones/{zone_id}/custom_hostnames/fallback_origin">client.CustomHostnames.FallbackOrigin.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames#FallbackOriginService.Delete">Delete</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, body <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames">custom_hostnames</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames#FallbackOriginDeleteParams">FallbackOriginDeleteParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames">custom_hostnames</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames#FallbackOriginDeleteResponse">FallbackOriginDeleteResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /zones/{zone_id}/custom_hostnames/fallback_origin">client.CustomHostnames.FallbackOrigin.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames#FallbackOriginService.Get">Get</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, query <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames">custom_hostnames</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames#FallbackOriginGetParams">FallbackOriginGetParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames">custom_hostnames</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames#FallbackOriginGetResponse">FallbackOriginGetResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>

## CertificatePack

### Certificates

Response Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames">custom_hostnames</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames#CertificatePackCertificateUpdateResponse">CertificatePackCertificateUpdateResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames">custom_hostnames</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames#CertificatePackCertificateDeleteResponse">CertificatePackCertificateDeleteResponse</a>

Methods:

- <code title="put /zones/{zone_id}/custom_hostnames/{custom_hostname_id}/certificate_pack/{certificate_pack_id}/certificates/{certificate_id}">client.CustomHostnames.CertificatePack.Certificates.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames#CertificatePackCertificateService.Update">Update</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, customHostnameID <a href="https://pkg.go.dev/builtin#string">string</a>, certificatePackID <a href="https://pkg.go.dev/builtin#string">string</a>, certificateID <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames">custom_hostnames</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames#CertificatePackCertificateUpdateParams">CertificatePackCertificateUpdateParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames">custom_hostnames</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames#CertificatePackCertificateUpdateResponse">CertificatePackCertificateUpdateResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="delete /zones/{zone_id}/custom_hostnames/{custom_hostname_id}/certificate_pack/{certificate_pack_id}/certificates/{certificate_id}">client.CustomHostnames.CertificatePack.Certificates.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames#CertificatePackCertificateService.Delete">Delete</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, customHostnameID <a href="https://pkg.go.dev/builtin#string">string</a>, certificatePackID <a href="https://pkg.go.dev/builtin#string">string</a>, certificateID <a href="https://pkg.go.dev/builtin#string">string</a>, body <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames">custom_hostnames</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames#CertificatePackCertificateDeleteParams">CertificatePackCertificateDeleteParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames">custom_hostnames</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/custom_hostnames#CertificatePackCertificateDeleteResponse">CertificatePackCertificateDeleteResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
