Get Auto-Origin TLS KEX enrollment status for the given zone
client.SSL.AutoOriginTLSKex.Get(ctx, query) (*AutoOriginTLSKexGetResponse, error)
GET/zones/{zone_id}/settings/auto_origin_tls_kex
When enabled, Cloudflare automatically selects the preferred TLS key-exchange algorithm to use when establishing the TLS connection to the zone’s origin, picking from the algorithms permitted by the zone’s origin_tls_compliance_modes setting. When disabled, the default key-exchange ordering is used.
Security
API Token
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example:
API Email + API Key
The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.
Example:
The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.
Example:
Get Auto-Origin TLS KEX enrollment status for the given zone
package main
import (
"context"
"fmt"
"github.com/cloudflare/cloudflare-go"
"github.com/cloudflare/cloudflare-go/option"
"github.com/cloudflare/cloudflare-go/ssl"
)
func main() {
client := cloudflare.NewClient(
option.WithAPIToken("Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY"),
)
autoOriginTLSKex, err := client.SSL.AutoOriginTLSKex.Get(context.TODO(), ssl.AutoOriginTLSKexGetParams{
ZoneID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"),
})
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", autoOriginTLSKex.ID)
}
{
"errors": [],
"messages": [],
"result": {
"enabled": false,
"id": "auto_origin_tls_kex",
"modified_on": "2014-01-01T05:20:00.12345Z"
},
"success": true
}{
"errors": [],
"messages": [],
"result": {
"enabled": true,
"id": "auto_origin_tls_kex",
"modified_on": "2014-01-01T05:20:00.12345Z"
},
"success": true
}{
"errors": [
{
"code": 1009,
"message": "Missing field 'enabled' in JSON body"
}
],
"messages": [],
"result": {
"enabled": false,
"id": "auto_origin_tls_kex",
"modified_on": "2014-01-01T05:20:00.12345Z"
},
"success": false
}Returns Examples
{
"errors": [],
"messages": [],
"result": {
"enabled": false,
"id": "auto_origin_tls_kex",
"modified_on": "2014-01-01T05:20:00.12345Z"
},
"success": true
}{
"errors": [],
"messages": [],
"result": {
"enabled": true,
"id": "auto_origin_tls_kex",
"modified_on": "2014-01-01T05:20:00.12345Z"
},
"success": true
}{
"errors": [
{
"code": 1009,
"message": "Missing field 'enabled' in JSON body"
}
],
"messages": [],
"result": {
"enabled": false,
"id": "auto_origin_tls_kex",
"modified_on": "2014-01-01T05:20:00.12345Z"
},
"success": false
}