# Hostnames

## Settings

### TLS

Params Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/hostnames">hostnames</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/hostnames#SettingValueUnionParam">SettingValueUnionParam</a>

Response Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/hostnames">hostnames</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/hostnames#Setting">Setting</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/hostnames">hostnames</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/hostnames#SettingValueUnion">SettingValueUnion</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/hostnames">hostnames</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/hostnames#SettingTLSDeleteResponse">SettingTLSDeleteResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/hostnames">hostnames</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/hostnames#SettingTLSGetResponse">SettingTLSGetResponse</a>

Methods:

- <code title="put /zones/{zone_id}/hostnames/settings/{setting_id}/{hostname}">client.Hostnames.Settings.TLS.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/hostnames#SettingTLSService.Update">Update</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, settingID <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/hostnames">hostnames</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/hostnames#SettingTLSUpdateParamsSettingID">SettingTLSUpdateParamsSettingID</a>, hostname <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/hostnames">hostnames</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/hostnames#SettingTLSUpdateParams">SettingTLSUpdateParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/hostnames">hostnames</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/hostnames#Setting">Setting</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="delete /zones/{zone_id}/hostnames/settings/{setting_id}/{hostname}">client.Hostnames.Settings.TLS.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/hostnames#SettingTLSService.Delete">Delete</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, settingID <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/hostnames">hostnames</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/hostnames#SettingTLSDeleteParamsSettingID">SettingTLSDeleteParamsSettingID</a>, hostname <a href="https://pkg.go.dev/builtin#string">string</a>, body <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/hostnames">hostnames</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/hostnames#SettingTLSDeleteParams">SettingTLSDeleteParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/hostnames">hostnames</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/hostnames#SettingTLSDeleteResponse">SettingTLSDeleteResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /zones/{zone_id}/hostnames/settings/{setting_id}">client.Hostnames.Settings.TLS.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/hostnames#SettingTLSService.Get">Get</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, settingID <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/hostnames">hostnames</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/hostnames#SettingTLSGetParamsSettingID">SettingTLSGetParamsSettingID</a>, query <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/hostnames">hostnames</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/hostnames#SettingTLSGetParams">SettingTLSGetParams</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#SinglePage">SinglePage</a>[<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/hostnames">hostnames</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/hostnames#SettingTLSGetResponse">SettingTLSGetResponse</a>], <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
