Documentation ¶
Index ¶
- Constants
- type ASN
- type ASNParam
- type AuditLog
- type AuditLogAction
- type AuditLogActor
- type AuditLogActorType
- type AuditLogOwner
- type AuditLogResource
- type BotFightModeConfiguration
- type BotFightModeConfigurationParam
- type BotManagementGetParams
- type BotManagementGetResponse
- type BotManagementGetResponseEnvelope
- type BotManagementGetResponseEnvelopeSuccess
- type BotManagementGetResponseSBFMDefinitelyAutomated
- type BotManagementGetResponseSBFMLikelyAutomated
- type BotManagementGetResponseSBFMVerifiedBots
- type BotManagementGetResponseUnion
- type BotManagementService
- type BotManagementUpdateParams
- type BotManagementUpdateParamsBody
- type BotManagementUpdateParamsBodySBFMDefinitelyAutomated
- type BotManagementUpdateParamsBodySBFMLikelyAutomated
- type BotManagementUpdateParamsBodySBFMVerifiedBots
- type BotManagementUpdateParamsBodyUnion
- type BotManagementUpdateResponse
- type BotManagementUpdateResponseEnvelope
- type BotManagementUpdateResponseEnvelopeSuccess
- type BotManagementUpdateResponseSBFMDefinitelyAutomated
- type BotManagementUpdateResponseSBFMLikelyAutomated
- type BotManagementUpdateResponseSBFMVerifiedBots
- type BotManagementUpdateResponseUnion
- type CertificateCA
- type CertificateRequestType
- type CloudflareTunnel
- type CloudflareTunnelConnection
- type CloudflareTunnelStatus
- type CloudflareTunnelTunType
- type Error
- type ErrorData
- type MemberParam
- type MemberRoleParam
- type MemberRolesPermissionsParam
- type MemberStatus
- type MemberUserParam
- type Permission
- type PermissionGrant
- type PermissionGrantParam
- type ResponseInfo
- type Role
- type SortDirection
- type SubscriptionConfiguration
- type SubscriptionConfigurationParam
- type SuperBotFightModeDefinitelyConfiguration
- type SuperBotFightModeDefinitelyConfigurationParam
- type SuperBotFightModeDefinitelyConfigurationSBFMDefinitelyAutomated
- type SuperBotFightModeDefinitelyConfigurationSBFMVerifiedBots
- type SuperBotFightModeLikelyConfiguration
- type SuperBotFightModeLikelyConfigurationParam
- type SuperBotFightModeLikelyConfigurationSBFMDefinitelyAutomated
- type SuperBotFightModeLikelyConfigurationSBFMLikelyAutomated
- type SuperBotFightModeLikelyConfigurationSBFMVerifiedBots
Constants ¶
const AuditLogActorTypeAdmin = shared.AuditLogActorTypeAdmin
This is an alias to an internal value.
const AuditLogActorTypeCloudflare = shared.AuditLogActorTypeCloudflare
This is an alias to an internal value.
const AuditLogActorTypeUser = shared.AuditLogActorTypeUser
This is an alias to an internal value.
const CertificateCADigicert = shared.CertificateCADigicert
This is an alias to an internal value.
const CertificateCAGoogle = shared.CertificateCAGoogle
This is an alias to an internal value.
const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt
This is an alias to an internal value.
const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate
This is an alias to an internal value.
const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC
This is an alias to an internal value.
const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA
This is an alias to an internal value.
const CloudflareTunnelStatusDegraded = shared.CloudflareTunnelStatusDegraded
This is an alias to an internal value.
const CloudflareTunnelStatusDown = shared.CloudflareTunnelStatusDown
This is an alias to an internal value.
const CloudflareTunnelStatusHealthy = shared.CloudflareTunnelStatusHealthy
This is an alias to an internal value.
const CloudflareTunnelStatusInactive = shared.CloudflareTunnelStatusInactive
This is an alias to an internal value.
const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI
This is an alias to an internal value.
const CloudflareTunnelTunTypeCfdTunnel = shared.CloudflareTunnelTunTypeCfdTunnel
This is an alias to an internal value.
const CloudflareTunnelTunTypeGRE = shared.CloudflareTunnelTunTypeGRE
This is an alias to an internal value.
const CloudflareTunnelTunTypeIPSec = shared.CloudflareTunnelTunTypeIPSec
This is an alias to an internal value.
const CloudflareTunnelTunTypeWARPConnector = shared.CloudflareTunnelTunTypeWARPConnector
This is an alias to an internal value.
const MemberStatusAccepted = shared.MemberStatusAccepted
This is an alias to an internal value.
const MemberStatusPending = shared.MemberStatusPending
This is an alias to an internal value.
const SortDirectionAsc = shared.SortDirectionAsc
This is an alias to an internal value.
const SortDirectionDesc = shared.SortDirectionDesc
This is an alias to an internal value.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuditLogAction ¶
type AuditLogAction = shared.AuditLogAction
This is an alias to an internal type.
type AuditLogActor ¶
type AuditLogActor = shared.AuditLogActor
This is an alias to an internal type.
type AuditLogActorType ¶
type AuditLogActorType = shared.AuditLogActorType
The type of actor, whether a User, Cloudflare Admin, or an Automated System.
This is an alias to an internal type.
type AuditLogOwner ¶
type AuditLogOwner = shared.AuditLogOwner
This is an alias to an internal type.
type AuditLogResource ¶
type AuditLogResource = shared.AuditLogResource
This is an alias to an internal type.
type BotFightModeConfiguration ¶
type BotFightModeConfiguration struct { // Use lightweight, invisible JavaScript detections to improve Bot Management. // [Learn more about JavaScript Detections](https://developers.cloudflare.com/bots/reference/javascript-detections/). EnableJS bool `json:"enable_js"` // Whether to enable Bot Fight Mode. FightMode bool `json:"fight_mode"` // A read-only field that indicates whether the zone currently is running the // latest ML model. UsingLatestModel bool `json:"using_latest_model"` JSON botFightModeConfigurationJSON `json:"-"` }
func (*BotFightModeConfiguration) UnmarshalJSON ¶
func (r *BotFightModeConfiguration) UnmarshalJSON(data []byte) (err error)
type BotFightModeConfigurationParam ¶
type BotFightModeConfigurationParam struct { // Use lightweight, invisible JavaScript detections to improve Bot Management. // [Learn more about JavaScript Detections](https://developers.cloudflare.com/bots/reference/javascript-detections/). EnableJS param.Field[bool] `json:"enable_js"` // Whether to enable Bot Fight Mode. FightMode param.Field[bool] `json:"fight_mode"` }
func (BotFightModeConfigurationParam) MarshalJSON ¶
func (r BotFightModeConfigurationParam) MarshalJSON() (data []byte, err error)
type BotManagementGetParams ¶
type BotManagementGetResponse ¶
type BotManagementGetResponse struct { // Use lightweight, invisible JavaScript detections to improve Bot Management. // [Learn more about JavaScript Detections](https://developers.cloudflare.com/bots/reference/javascript-detections/). EnableJS bool `json:"enable_js"` // A read-only field that indicates whether the zone currently is running the // latest ML model. UsingLatestModel bool `json:"using_latest_model"` // Whether to enable Bot Fight Mode. FightMode bool `json:"fight_mode"` // Whether to optimize Super Bot Fight Mode protections for Wordpress. OptimizeWordpress bool `json:"optimize_wordpress"` // Super Bot Fight Mode (SBFM) action to take on definitely automated requests. SBFMDefinitelyAutomated BotManagementGetResponseSBFMDefinitelyAutomated `json:"sbfm_definitely_automated"` // Super Bot Fight Mode (SBFM) to enable static resource protection. Enable if // static resources on your application need bot protection. Note: Static resource // protection can also result in legitimate traffic being blocked. SBFMStaticResourceProtection bool `json:"sbfm_static_resource_protection"` // Super Bot Fight Mode (SBFM) action to take on verified bots requests. SBFMVerifiedBots BotManagementGetResponseSBFMVerifiedBots `json:"sbfm_verified_bots"` // Super Bot Fight Mode (SBFM) action to take on likely automated requests. SBFMLikelyAutomated BotManagementGetResponseSBFMLikelyAutomated `json:"sbfm_likely_automated"` // Automatically update to the newest bot detection models created by Cloudflare as // they are released. // [Learn more.](https://developers.cloudflare.com/bots/reference/machine-learning-models#model-versions-and-release-notes) AutoUpdateModel bool `json:"auto_update_model"` // Whether to disable tracking the highest bot score for a session in the Bot // Management cookie. SuppressSessionScore bool `json:"suppress_session_score"` JSON botManagementGetResponseJSON `json:"-"` // contains filtered or unexported fields }
func (BotManagementGetResponse) AsUnion ¶
func (r BotManagementGetResponse) AsUnion() BotManagementGetResponseUnion
AsUnion returns a BotManagementGetResponseUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are bot_management.BotFightModeConfiguration, bot_management.SuperBotFightModeDefinitelyConfiguration, bot_management.SuperBotFightModeLikelyConfiguration, bot_management.SubscriptionConfiguration.
func (*BotManagementGetResponse) UnmarshalJSON ¶
func (r *BotManagementGetResponse) UnmarshalJSON(data []byte) (err error)
type BotManagementGetResponseEnvelope ¶
type BotManagementGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success BotManagementGetResponseEnvelopeSuccess `json:"success,required"` Result BotManagementGetResponse `json:"result"` JSON botManagementGetResponseEnvelopeJSON `json:"-"` }
func (*BotManagementGetResponseEnvelope) UnmarshalJSON ¶
func (r *BotManagementGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type BotManagementGetResponseEnvelopeSuccess ¶
type BotManagementGetResponseEnvelopeSuccess bool
Whether the API call was successful
const (
BotManagementGetResponseEnvelopeSuccessTrue BotManagementGetResponseEnvelopeSuccess = true
)
func (BotManagementGetResponseEnvelopeSuccess) IsKnown ¶
func (r BotManagementGetResponseEnvelopeSuccess) IsKnown() bool
type BotManagementGetResponseSBFMDefinitelyAutomated ¶
type BotManagementGetResponseSBFMDefinitelyAutomated string
Super Bot Fight Mode (SBFM) action to take on definitely automated requests.
const ( BotManagementGetResponseSBFMDefinitelyAutomatedAllow BotManagementGetResponseSBFMDefinitelyAutomated = "allow" BotManagementGetResponseSBFMDefinitelyAutomatedBlock BotManagementGetResponseSBFMDefinitelyAutomated = "block" BotManagementGetResponseSBFMDefinitelyAutomatedManagedChallenge BotManagementGetResponseSBFMDefinitelyAutomated = "managed_challenge" )
func (BotManagementGetResponseSBFMDefinitelyAutomated) IsKnown ¶
func (r BotManagementGetResponseSBFMDefinitelyAutomated) IsKnown() bool
type BotManagementGetResponseSBFMLikelyAutomated ¶
type BotManagementGetResponseSBFMLikelyAutomated string
Super Bot Fight Mode (SBFM) action to take on likely automated requests.
const ( BotManagementGetResponseSBFMLikelyAutomatedAllow BotManagementGetResponseSBFMLikelyAutomated = "allow" BotManagementGetResponseSBFMLikelyAutomatedBlock BotManagementGetResponseSBFMLikelyAutomated = "block" BotManagementGetResponseSBFMLikelyAutomatedManagedChallenge BotManagementGetResponseSBFMLikelyAutomated = "managed_challenge" )
func (BotManagementGetResponseSBFMLikelyAutomated) IsKnown ¶
func (r BotManagementGetResponseSBFMLikelyAutomated) IsKnown() bool
type BotManagementGetResponseSBFMVerifiedBots ¶
type BotManagementGetResponseSBFMVerifiedBots string
Super Bot Fight Mode (SBFM) action to take on verified bots requests.
const ( BotManagementGetResponseSBFMVerifiedBotsAllow BotManagementGetResponseSBFMVerifiedBots = "allow" BotManagementGetResponseSBFMVerifiedBotsBlock BotManagementGetResponseSBFMVerifiedBots = "block" )
func (BotManagementGetResponseSBFMVerifiedBots) IsKnown ¶
func (r BotManagementGetResponseSBFMVerifiedBots) IsKnown() bool
type BotManagementGetResponseUnion ¶
type BotManagementGetResponseUnion interface {
// contains filtered or unexported methods
}
Union satisfied by bot_management.BotFightModeConfiguration, bot_management.SuperBotFightModeDefinitelyConfiguration, bot_management.SuperBotFightModeLikelyConfiguration or bot_management.SubscriptionConfiguration.
type BotManagementService ¶
type BotManagementService struct {
Options []option.RequestOption
}
BotManagementService contains methods and other services that help with interacting with the cloudflare API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewBotManagementService method instead.
func NewBotManagementService ¶
func NewBotManagementService(opts ...option.RequestOption) (r *BotManagementService)
NewBotManagementService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*BotManagementService) Get ¶
func (r *BotManagementService) Get(ctx context.Context, query BotManagementGetParams, opts ...option.RequestOption) (res *BotManagementGetResponse, err error)
Retrieve a zone's Bot Management Config
func (*BotManagementService) Update ¶
func (r *BotManagementService) Update(ctx context.Context, params BotManagementUpdateParams, opts ...option.RequestOption) (res *BotManagementUpdateResponse, err error)
Updates the Bot Management configuration for a zone.
This API is used to update:
- **Bot Fight Mode** - **Super Bot Fight Mode** - **Bot Management for Enterprise**
See [Bot Plans](https://developers.cloudflare.com/bots/plans/) for more information on the different plans
type BotManagementUpdateParams ¶
type BotManagementUpdateParams struct { // Identifier ZoneID param.Field[string] `path:"zone_id,required"` Body BotManagementUpdateParamsBodyUnion `json:"body,required"` }
func (BotManagementUpdateParams) MarshalJSON ¶
func (r BotManagementUpdateParams) MarshalJSON() (data []byte, err error)
type BotManagementUpdateParamsBody ¶
type BotManagementUpdateParamsBody struct { // Use lightweight, invisible JavaScript detections to improve Bot Management. // [Learn more about JavaScript Detections](https://developers.cloudflare.com/bots/reference/javascript-detections/). EnableJS param.Field[bool] `json:"enable_js"` // Whether to enable Bot Fight Mode. FightMode param.Field[bool] `json:"fight_mode"` // Whether to optimize Super Bot Fight Mode protections for Wordpress. OptimizeWordpress param.Field[bool] `json:"optimize_wordpress"` // Super Bot Fight Mode (SBFM) action to take on definitely automated requests. SBFMDefinitelyAutomated param.Field[BotManagementUpdateParamsBodySBFMDefinitelyAutomated] `json:"sbfm_definitely_automated"` // Super Bot Fight Mode (SBFM) to enable static resource protection. Enable if // static resources on your application need bot protection. Note: Static resource // protection can also result in legitimate traffic being blocked. SBFMStaticResourceProtection param.Field[bool] `json:"sbfm_static_resource_protection"` // Super Bot Fight Mode (SBFM) action to take on verified bots requests. SBFMVerifiedBots param.Field[BotManagementUpdateParamsBodySBFMVerifiedBots] `json:"sbfm_verified_bots"` // Super Bot Fight Mode (SBFM) action to take on likely automated requests. SBFMLikelyAutomated param.Field[BotManagementUpdateParamsBodySBFMLikelyAutomated] `json:"sbfm_likely_automated"` // Automatically update to the newest bot detection models created by Cloudflare as // they are released. // [Learn more.](https://developers.cloudflare.com/bots/reference/machine-learning-models#model-versions-and-release-notes) AutoUpdateModel param.Field[bool] `json:"auto_update_model"` // Whether to disable tracking the highest bot score for a session in the Bot // Management cookie. SuppressSessionScore param.Field[bool] `json:"suppress_session_score"` }
func (BotManagementUpdateParamsBody) MarshalJSON ¶
func (r BotManagementUpdateParamsBody) MarshalJSON() (data []byte, err error)
type BotManagementUpdateParamsBodySBFMDefinitelyAutomated ¶
type BotManagementUpdateParamsBodySBFMDefinitelyAutomated string
Super Bot Fight Mode (SBFM) action to take on definitely automated requests.
const ( BotManagementUpdateParamsBodySBFMDefinitelyAutomatedAllow BotManagementUpdateParamsBodySBFMDefinitelyAutomated = "allow" BotManagementUpdateParamsBodySBFMDefinitelyAutomatedBlock BotManagementUpdateParamsBodySBFMDefinitelyAutomated = "block" BotManagementUpdateParamsBodySBFMDefinitelyAutomatedManagedChallenge BotManagementUpdateParamsBodySBFMDefinitelyAutomated = "managed_challenge" )
func (BotManagementUpdateParamsBodySBFMDefinitelyAutomated) IsKnown ¶
func (r BotManagementUpdateParamsBodySBFMDefinitelyAutomated) IsKnown() bool
type BotManagementUpdateParamsBodySBFMLikelyAutomated ¶
type BotManagementUpdateParamsBodySBFMLikelyAutomated string
Super Bot Fight Mode (SBFM) action to take on likely automated requests.
const ( BotManagementUpdateParamsBodySBFMLikelyAutomatedAllow BotManagementUpdateParamsBodySBFMLikelyAutomated = "allow" BotManagementUpdateParamsBodySBFMLikelyAutomatedBlock BotManagementUpdateParamsBodySBFMLikelyAutomated = "block" BotManagementUpdateParamsBodySBFMLikelyAutomatedManagedChallenge BotManagementUpdateParamsBodySBFMLikelyAutomated = "managed_challenge" )
func (BotManagementUpdateParamsBodySBFMLikelyAutomated) IsKnown ¶
func (r BotManagementUpdateParamsBodySBFMLikelyAutomated) IsKnown() bool
type BotManagementUpdateParamsBodySBFMVerifiedBots ¶
type BotManagementUpdateParamsBodySBFMVerifiedBots string
Super Bot Fight Mode (SBFM) action to take on verified bots requests.
const ( BotManagementUpdateParamsBodySBFMVerifiedBotsAllow BotManagementUpdateParamsBodySBFMVerifiedBots = "allow" BotManagementUpdateParamsBodySBFMVerifiedBotsBlock BotManagementUpdateParamsBodySBFMVerifiedBots = "block" )
func (BotManagementUpdateParamsBodySBFMVerifiedBots) IsKnown ¶
func (r BotManagementUpdateParamsBodySBFMVerifiedBots) IsKnown() bool
type BotManagementUpdateParamsBodyUnion ¶
type BotManagementUpdateParamsBodyUnion interface {
// contains filtered or unexported methods
}
Satisfied by bot_management.BotFightModeConfigurationParam, bot_management.SuperBotFightModeDefinitelyConfigurationParam, bot_management.SuperBotFightModeLikelyConfigurationParam, bot_management.SubscriptionConfigurationParam, BotManagementUpdateParamsBody.
type BotManagementUpdateResponse ¶
type BotManagementUpdateResponse struct { // Use lightweight, invisible JavaScript detections to improve Bot Management. // [Learn more about JavaScript Detections](https://developers.cloudflare.com/bots/reference/javascript-detections/). EnableJS bool `json:"enable_js"` // A read-only field that indicates whether the zone currently is running the // latest ML model. UsingLatestModel bool `json:"using_latest_model"` // Whether to enable Bot Fight Mode. FightMode bool `json:"fight_mode"` // Whether to optimize Super Bot Fight Mode protections for Wordpress. OptimizeWordpress bool `json:"optimize_wordpress"` // Super Bot Fight Mode (SBFM) action to take on definitely automated requests. SBFMDefinitelyAutomated BotManagementUpdateResponseSBFMDefinitelyAutomated `json:"sbfm_definitely_automated"` // Super Bot Fight Mode (SBFM) to enable static resource protection. Enable if // static resources on your application need bot protection. Note: Static resource // protection can also result in legitimate traffic being blocked. SBFMStaticResourceProtection bool `json:"sbfm_static_resource_protection"` // Super Bot Fight Mode (SBFM) action to take on verified bots requests. SBFMVerifiedBots BotManagementUpdateResponseSBFMVerifiedBots `json:"sbfm_verified_bots"` // Super Bot Fight Mode (SBFM) action to take on likely automated requests. SBFMLikelyAutomated BotManagementUpdateResponseSBFMLikelyAutomated `json:"sbfm_likely_automated"` // Automatically update to the newest bot detection models created by Cloudflare as // they are released. // [Learn more.](https://developers.cloudflare.com/bots/reference/machine-learning-models#model-versions-and-release-notes) AutoUpdateModel bool `json:"auto_update_model"` // Whether to disable tracking the highest bot score for a session in the Bot // Management cookie. SuppressSessionScore bool `json:"suppress_session_score"` JSON botManagementUpdateResponseJSON `json:"-"` // contains filtered or unexported fields }
func (BotManagementUpdateResponse) AsUnion ¶
func (r BotManagementUpdateResponse) AsUnion() BotManagementUpdateResponseUnion
AsUnion returns a BotManagementUpdateResponseUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are bot_management.BotFightModeConfiguration, bot_management.SuperBotFightModeDefinitelyConfiguration, bot_management.SuperBotFightModeLikelyConfiguration, bot_management.SubscriptionConfiguration.
func (*BotManagementUpdateResponse) UnmarshalJSON ¶
func (r *BotManagementUpdateResponse) UnmarshalJSON(data []byte) (err error)
type BotManagementUpdateResponseEnvelope ¶
type BotManagementUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success BotManagementUpdateResponseEnvelopeSuccess `json:"success,required"` Result BotManagementUpdateResponse `json:"result"` JSON botManagementUpdateResponseEnvelopeJSON `json:"-"` }
func (*BotManagementUpdateResponseEnvelope) UnmarshalJSON ¶
func (r *BotManagementUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type BotManagementUpdateResponseEnvelopeSuccess ¶
type BotManagementUpdateResponseEnvelopeSuccess bool
Whether the API call was successful
const (
BotManagementUpdateResponseEnvelopeSuccessTrue BotManagementUpdateResponseEnvelopeSuccess = true
)
func (BotManagementUpdateResponseEnvelopeSuccess) IsKnown ¶
func (r BotManagementUpdateResponseEnvelopeSuccess) IsKnown() bool
type BotManagementUpdateResponseSBFMDefinitelyAutomated ¶
type BotManagementUpdateResponseSBFMDefinitelyAutomated string
Super Bot Fight Mode (SBFM) action to take on definitely automated requests.
const ( BotManagementUpdateResponseSBFMDefinitelyAutomatedAllow BotManagementUpdateResponseSBFMDefinitelyAutomated = "allow" BotManagementUpdateResponseSBFMDefinitelyAutomatedBlock BotManagementUpdateResponseSBFMDefinitelyAutomated = "block" BotManagementUpdateResponseSBFMDefinitelyAutomatedManagedChallenge BotManagementUpdateResponseSBFMDefinitelyAutomated = "managed_challenge" )
func (BotManagementUpdateResponseSBFMDefinitelyAutomated) IsKnown ¶
func (r BotManagementUpdateResponseSBFMDefinitelyAutomated) IsKnown() bool
type BotManagementUpdateResponseSBFMLikelyAutomated ¶
type BotManagementUpdateResponseSBFMLikelyAutomated string
Super Bot Fight Mode (SBFM) action to take on likely automated requests.
const ( BotManagementUpdateResponseSBFMLikelyAutomatedAllow BotManagementUpdateResponseSBFMLikelyAutomated = "allow" BotManagementUpdateResponseSBFMLikelyAutomatedBlock BotManagementUpdateResponseSBFMLikelyAutomated = "block" BotManagementUpdateResponseSBFMLikelyAutomatedManagedChallenge BotManagementUpdateResponseSBFMLikelyAutomated = "managed_challenge" )
func (BotManagementUpdateResponseSBFMLikelyAutomated) IsKnown ¶
func (r BotManagementUpdateResponseSBFMLikelyAutomated) IsKnown() bool
type BotManagementUpdateResponseSBFMVerifiedBots ¶
type BotManagementUpdateResponseSBFMVerifiedBots string
Super Bot Fight Mode (SBFM) action to take on verified bots requests.
const ( BotManagementUpdateResponseSBFMVerifiedBotsAllow BotManagementUpdateResponseSBFMVerifiedBots = "allow" BotManagementUpdateResponseSBFMVerifiedBotsBlock BotManagementUpdateResponseSBFMVerifiedBots = "block" )
func (BotManagementUpdateResponseSBFMVerifiedBots) IsKnown ¶
func (r BotManagementUpdateResponseSBFMVerifiedBots) IsKnown() bool
type BotManagementUpdateResponseUnion ¶
type BotManagementUpdateResponseUnion interface {
// contains filtered or unexported methods
}
Union satisfied by bot_management.BotFightModeConfiguration, bot_management.SuperBotFightModeDefinitelyConfiguration, bot_management.SuperBotFightModeLikelyConfiguration or bot_management.SubscriptionConfiguration.
type CertificateCA ¶ added in v2.2.0
type CertificateCA = shared.CertificateCA
The Certificate Authority that will issue the certificate
This is an alias to an internal type.
type CertificateRequestType ¶ added in v2.2.0
type CertificateRequestType = shared.CertificateRequestType
Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), or "keyless-certificate" (for Keyless SSL servers).
This is an alias to an internal type.
type CloudflareTunnel ¶
type CloudflareTunnel = shared.CloudflareTunnel
A Cloudflare Tunnel that connects your origin to Cloudflare's edge.
This is an alias to an internal type.
type CloudflareTunnelConnection ¶
type CloudflareTunnelConnection = shared.CloudflareTunnelConnection
This is an alias to an internal type.
type CloudflareTunnelStatus ¶ added in v2.3.0
type CloudflareTunnelStatus = shared.CloudflareTunnelStatus
The status of the tunnel. Valid values are `inactive` (tunnel has never been run), `degraded` (tunnel is active and able to serve traffic but in an unhealthy state), `healthy` (tunnel is active and able to serve traffic), or `down` (tunnel can not serve traffic as it has no connections to the Cloudflare Edge).
This is an alias to an internal type.
type CloudflareTunnelTunType ¶
type CloudflareTunnelTunType = shared.CloudflareTunnelTunType
The type of tunnel.
This is an alias to an internal type.
type MemberParam ¶ added in v2.1.0
type MemberParam = shared.MemberParam
This is an alias to an internal type.
type MemberRoleParam ¶ added in v2.1.0
type MemberRoleParam = shared.MemberRoleParam
This is an alias to an internal type.
type MemberRolesPermissionsParam ¶ added in v2.1.0
type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam
This is an alias to an internal type.
type MemberStatus ¶ added in v2.3.0
type MemberStatus = shared.MemberStatus
A member's status in the account.
This is an alias to an internal type.
type MemberUserParam ¶ added in v2.1.0
type MemberUserParam = shared.MemberUserParam
Details of the user associated to the membership.
This is an alias to an internal type.
type PermissionGrant ¶
type PermissionGrant = shared.PermissionGrant
This is an alias to an internal type.
type PermissionGrantParam ¶
type PermissionGrantParam = shared.PermissionGrantParam
This is an alias to an internal type.
type SortDirection ¶ added in v2.2.0
type SortDirection = shared.SortDirection
Direction to order DNS records in.
This is an alias to an internal type.
type SubscriptionConfiguration ¶
type SubscriptionConfiguration struct { // Automatically update to the newest bot detection models created by Cloudflare as // they are released. // [Learn more.](https://developers.cloudflare.com/bots/reference/machine-learning-models#model-versions-and-release-notes) AutoUpdateModel bool `json:"auto_update_model"` // Use lightweight, invisible JavaScript detections to improve Bot Management. // [Learn more about JavaScript Detections](https://developers.cloudflare.com/bots/reference/javascript-detections/). EnableJS bool `json:"enable_js"` // Whether to disable tracking the highest bot score for a session in the Bot // Management cookie. SuppressSessionScore bool `json:"suppress_session_score"` // A read-only field that indicates whether the zone currently is running the // latest ML model. UsingLatestModel bool `json:"using_latest_model"` JSON subscriptionConfigurationJSON `json:"-"` }
func (*SubscriptionConfiguration) UnmarshalJSON ¶
func (r *SubscriptionConfiguration) UnmarshalJSON(data []byte) (err error)
type SubscriptionConfigurationParam ¶
type SubscriptionConfigurationParam struct { // Automatically update to the newest bot detection models created by Cloudflare as // they are released. // [Learn more.](https://developers.cloudflare.com/bots/reference/machine-learning-models#model-versions-and-release-notes) AutoUpdateModel param.Field[bool] `json:"auto_update_model"` // Use lightweight, invisible JavaScript detections to improve Bot Management. // [Learn more about JavaScript Detections](https://developers.cloudflare.com/bots/reference/javascript-detections/). EnableJS param.Field[bool] `json:"enable_js"` // Whether to disable tracking the highest bot score for a session in the Bot // Management cookie. SuppressSessionScore param.Field[bool] `json:"suppress_session_score"` }
func (SubscriptionConfigurationParam) MarshalJSON ¶
func (r SubscriptionConfigurationParam) MarshalJSON() (data []byte, err error)
type SuperBotFightModeDefinitelyConfiguration ¶
type SuperBotFightModeDefinitelyConfiguration struct { // Use lightweight, invisible JavaScript detections to improve Bot Management. // [Learn more about JavaScript Detections](https://developers.cloudflare.com/bots/reference/javascript-detections/). EnableJS bool `json:"enable_js"` // Whether to optimize Super Bot Fight Mode protections for Wordpress. OptimizeWordpress bool `json:"optimize_wordpress"` // Super Bot Fight Mode (SBFM) action to take on definitely automated requests. SBFMDefinitelyAutomated SuperBotFightModeDefinitelyConfigurationSBFMDefinitelyAutomated `json:"sbfm_definitely_automated"` // Super Bot Fight Mode (SBFM) to enable static resource protection. Enable if // static resources on your application need bot protection. Note: Static resource // protection can also result in legitimate traffic being blocked. SBFMStaticResourceProtection bool `json:"sbfm_static_resource_protection"` // Super Bot Fight Mode (SBFM) action to take on verified bots requests. SBFMVerifiedBots SuperBotFightModeDefinitelyConfigurationSBFMVerifiedBots `json:"sbfm_verified_bots"` // A read-only field that indicates whether the zone currently is running the // latest ML model. UsingLatestModel bool `json:"using_latest_model"` JSON superBotFightModeDefinitelyConfigurationJSON `json:"-"` }
func (*SuperBotFightModeDefinitelyConfiguration) UnmarshalJSON ¶
func (r *SuperBotFightModeDefinitelyConfiguration) UnmarshalJSON(data []byte) (err error)
type SuperBotFightModeDefinitelyConfigurationParam ¶
type SuperBotFightModeDefinitelyConfigurationParam struct { // Use lightweight, invisible JavaScript detections to improve Bot Management. // [Learn more about JavaScript Detections](https://developers.cloudflare.com/bots/reference/javascript-detections/). EnableJS param.Field[bool] `json:"enable_js"` // Whether to optimize Super Bot Fight Mode protections for Wordpress. OptimizeWordpress param.Field[bool] `json:"optimize_wordpress"` // Super Bot Fight Mode (SBFM) action to take on definitely automated requests. SBFMDefinitelyAutomated param.Field[SuperBotFightModeDefinitelyConfigurationSBFMDefinitelyAutomated] `json:"sbfm_definitely_automated"` // Super Bot Fight Mode (SBFM) to enable static resource protection. Enable if // static resources on your application need bot protection. Note: Static resource // protection can also result in legitimate traffic being blocked. SBFMStaticResourceProtection param.Field[bool] `json:"sbfm_static_resource_protection"` // Super Bot Fight Mode (SBFM) action to take on verified bots requests. SBFMVerifiedBots param.Field[SuperBotFightModeDefinitelyConfigurationSBFMVerifiedBots] `json:"sbfm_verified_bots"` }
func (SuperBotFightModeDefinitelyConfigurationParam) MarshalJSON ¶
func (r SuperBotFightModeDefinitelyConfigurationParam) MarshalJSON() (data []byte, err error)
type SuperBotFightModeDefinitelyConfigurationSBFMDefinitelyAutomated ¶
type SuperBotFightModeDefinitelyConfigurationSBFMDefinitelyAutomated string
Super Bot Fight Mode (SBFM) action to take on definitely automated requests.
const ( SuperBotFightModeDefinitelyConfigurationSBFMDefinitelyAutomatedAllow SuperBotFightModeDefinitelyConfigurationSBFMDefinitelyAutomated = "allow" SuperBotFightModeDefinitelyConfigurationSBFMDefinitelyAutomatedBlock SuperBotFightModeDefinitelyConfigurationSBFMDefinitelyAutomated = "block" SuperBotFightModeDefinitelyConfigurationSBFMDefinitelyAutomatedManagedChallenge SuperBotFightModeDefinitelyConfigurationSBFMDefinitelyAutomated = "managed_challenge" )
func (SuperBotFightModeDefinitelyConfigurationSBFMDefinitelyAutomated) IsKnown ¶
func (r SuperBotFightModeDefinitelyConfigurationSBFMDefinitelyAutomated) IsKnown() bool
type SuperBotFightModeDefinitelyConfigurationSBFMVerifiedBots ¶
type SuperBotFightModeDefinitelyConfigurationSBFMVerifiedBots string
Super Bot Fight Mode (SBFM) action to take on verified bots requests.
const ( SuperBotFightModeDefinitelyConfigurationSBFMVerifiedBotsAllow SuperBotFightModeDefinitelyConfigurationSBFMVerifiedBots = "allow" SuperBotFightModeDefinitelyConfigurationSBFMVerifiedBotsBlock SuperBotFightModeDefinitelyConfigurationSBFMVerifiedBots = "block" )
func (SuperBotFightModeDefinitelyConfigurationSBFMVerifiedBots) IsKnown ¶
func (r SuperBotFightModeDefinitelyConfigurationSBFMVerifiedBots) IsKnown() bool
type SuperBotFightModeLikelyConfiguration ¶
type SuperBotFightModeLikelyConfiguration struct { // Use lightweight, invisible JavaScript detections to improve Bot Management. // [Learn more about JavaScript Detections](https://developers.cloudflare.com/bots/reference/javascript-detections/). EnableJS bool `json:"enable_js"` // Whether to optimize Super Bot Fight Mode protections for Wordpress. OptimizeWordpress bool `json:"optimize_wordpress"` // Super Bot Fight Mode (SBFM) action to take on definitely automated requests. SBFMDefinitelyAutomated SuperBotFightModeLikelyConfigurationSBFMDefinitelyAutomated `json:"sbfm_definitely_automated"` // Super Bot Fight Mode (SBFM) action to take on likely automated requests. SBFMLikelyAutomated SuperBotFightModeLikelyConfigurationSBFMLikelyAutomated `json:"sbfm_likely_automated"` // Super Bot Fight Mode (SBFM) to enable static resource protection. Enable if // static resources on your application need bot protection. Note: Static resource // protection can also result in legitimate traffic being blocked. SBFMStaticResourceProtection bool `json:"sbfm_static_resource_protection"` // Super Bot Fight Mode (SBFM) action to take on verified bots requests. SBFMVerifiedBots SuperBotFightModeLikelyConfigurationSBFMVerifiedBots `json:"sbfm_verified_bots"` // A read-only field that indicates whether the zone currently is running the // latest ML model. UsingLatestModel bool `json:"using_latest_model"` JSON superBotFightModeLikelyConfigurationJSON `json:"-"` }
func (*SuperBotFightModeLikelyConfiguration) UnmarshalJSON ¶
func (r *SuperBotFightModeLikelyConfiguration) UnmarshalJSON(data []byte) (err error)
type SuperBotFightModeLikelyConfigurationParam ¶
type SuperBotFightModeLikelyConfigurationParam struct { // Use lightweight, invisible JavaScript detections to improve Bot Management. // [Learn more about JavaScript Detections](https://developers.cloudflare.com/bots/reference/javascript-detections/). EnableJS param.Field[bool] `json:"enable_js"` // Whether to optimize Super Bot Fight Mode protections for Wordpress. OptimizeWordpress param.Field[bool] `json:"optimize_wordpress"` // Super Bot Fight Mode (SBFM) action to take on definitely automated requests. SBFMDefinitelyAutomated param.Field[SuperBotFightModeLikelyConfigurationSBFMDefinitelyAutomated] `json:"sbfm_definitely_automated"` // Super Bot Fight Mode (SBFM) action to take on likely automated requests. SBFMLikelyAutomated param.Field[SuperBotFightModeLikelyConfigurationSBFMLikelyAutomated] `json:"sbfm_likely_automated"` // Super Bot Fight Mode (SBFM) to enable static resource protection. Enable if // static resources on your application need bot protection. Note: Static resource // protection can also result in legitimate traffic being blocked. SBFMStaticResourceProtection param.Field[bool] `json:"sbfm_static_resource_protection"` // Super Bot Fight Mode (SBFM) action to take on verified bots requests. SBFMVerifiedBots param.Field[SuperBotFightModeLikelyConfigurationSBFMVerifiedBots] `json:"sbfm_verified_bots"` }
func (SuperBotFightModeLikelyConfigurationParam) MarshalJSON ¶
func (r SuperBotFightModeLikelyConfigurationParam) MarshalJSON() (data []byte, err error)
type SuperBotFightModeLikelyConfigurationSBFMDefinitelyAutomated ¶
type SuperBotFightModeLikelyConfigurationSBFMDefinitelyAutomated string
Super Bot Fight Mode (SBFM) action to take on definitely automated requests.
const ( SuperBotFightModeLikelyConfigurationSBFMDefinitelyAutomatedAllow SuperBotFightModeLikelyConfigurationSBFMDefinitelyAutomated = "allow" SuperBotFightModeLikelyConfigurationSBFMDefinitelyAutomatedBlock SuperBotFightModeLikelyConfigurationSBFMDefinitelyAutomated = "block" SuperBotFightModeLikelyConfigurationSBFMDefinitelyAutomatedManagedChallenge SuperBotFightModeLikelyConfigurationSBFMDefinitelyAutomated = "managed_challenge" )
func (SuperBotFightModeLikelyConfigurationSBFMDefinitelyAutomated) IsKnown ¶
func (r SuperBotFightModeLikelyConfigurationSBFMDefinitelyAutomated) IsKnown() bool
type SuperBotFightModeLikelyConfigurationSBFMLikelyAutomated ¶
type SuperBotFightModeLikelyConfigurationSBFMLikelyAutomated string
Super Bot Fight Mode (SBFM) action to take on likely automated requests.
const ( SuperBotFightModeLikelyConfigurationSBFMLikelyAutomatedAllow SuperBotFightModeLikelyConfigurationSBFMLikelyAutomated = "allow" SuperBotFightModeLikelyConfigurationSBFMLikelyAutomatedBlock SuperBotFightModeLikelyConfigurationSBFMLikelyAutomated = "block" SuperBotFightModeLikelyConfigurationSBFMLikelyAutomatedManagedChallenge SuperBotFightModeLikelyConfigurationSBFMLikelyAutomated = "managed_challenge" )
func (SuperBotFightModeLikelyConfigurationSBFMLikelyAutomated) IsKnown ¶
func (r SuperBotFightModeLikelyConfigurationSBFMLikelyAutomated) IsKnown() bool
type SuperBotFightModeLikelyConfigurationSBFMVerifiedBots ¶
type SuperBotFightModeLikelyConfigurationSBFMVerifiedBots string
Super Bot Fight Mode (SBFM) action to take on verified bots requests.
const ( SuperBotFightModeLikelyConfigurationSBFMVerifiedBotsAllow SuperBotFightModeLikelyConfigurationSBFMVerifiedBots = "allow" SuperBotFightModeLikelyConfigurationSBFMVerifiedBotsBlock SuperBotFightModeLikelyConfigurationSBFMVerifiedBots = "block" )
func (SuperBotFightModeLikelyConfigurationSBFMVerifiedBots) IsKnown ¶
func (r SuperBotFightModeLikelyConfigurationSBFMVerifiedBots) IsKnown() bool