Documentation ¶
Index ¶
- type BotManagementGetParams
- type BotManagementGetResponse
- type BotManagementGetResponseBotManagementBmSubscriptionConfig
- type BotManagementGetResponseBotManagementBotFightModeConfig
- type BotManagementGetResponseBotManagementSbfmDefinitelyConfig
- type BotManagementGetResponseBotManagementSbfmDefinitelyConfigSbfmDefinitelyAutomated
- type BotManagementGetResponseBotManagementSbfmDefinitelyConfigSbfmVerifiedBots
- type BotManagementGetResponseBotManagementSbfmLikelyConfig
- type BotManagementGetResponseBotManagementSbfmLikelyConfigSbfmDefinitelyAutomated
- type BotManagementGetResponseBotManagementSbfmLikelyConfigSbfmLikelyAutomated
- type BotManagementGetResponseBotManagementSbfmLikelyConfigSbfmVerifiedBots
- type BotManagementGetResponseEnvelope
- type BotManagementGetResponseEnvelopeErrors
- type BotManagementGetResponseEnvelopeMessages
- type BotManagementGetResponseEnvelopeSuccess
- type BotManagementService
- type BotManagementUpdateParams
- type BotManagementUpdateParamsSbfmDefinitelyAutomated
- type BotManagementUpdateParamsSbfmLikelyAutomated
- type BotManagementUpdateParamsSbfmVerifiedBots
- type BotManagementUpdateResponse
- type BotManagementUpdateResponseBotManagementBmSubscriptionConfig
- type BotManagementUpdateResponseBotManagementBotFightModeConfig
- type BotManagementUpdateResponseBotManagementSbfmDefinitelyConfig
- type BotManagementUpdateResponseBotManagementSbfmDefinitelyConfigSbfmDefinitelyAutomated
- type BotManagementUpdateResponseBotManagementSbfmDefinitelyConfigSbfmVerifiedBots
- type BotManagementUpdateResponseBotManagementSbfmLikelyConfig
- type BotManagementUpdateResponseBotManagementSbfmLikelyConfigSbfmDefinitelyAutomated
- type BotManagementUpdateResponseBotManagementSbfmLikelyConfigSbfmLikelyAutomated
- type BotManagementUpdateResponseBotManagementSbfmLikelyConfigSbfmVerifiedBots
- type BotManagementUpdateResponseEnvelope
- type BotManagementUpdateResponseEnvelopeErrors
- type BotManagementUpdateResponseEnvelopeMessages
- type BotManagementUpdateResponseEnvelopeSuccess
- type Error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BotManagementGetParams ¶
type BotManagementGetResponse ¶
type BotManagementGetResponse interface {
// contains filtered or unexported methods
}
Union satisfied by bot_management.BotManagementGetResponseBotManagementBotFightModeConfig, bot_management.BotManagementGetResponseBotManagementSbfmDefinitelyConfig, bot_management.BotManagementGetResponseBotManagementSbfmLikelyConfig or bot_management.BotManagementGetResponseBotManagementBmSubscriptionConfig.
type BotManagementGetResponseBotManagementBmSubscriptionConfig ¶
type BotManagementGetResponseBotManagementBmSubscriptionConfig 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 botManagementGetResponseBotManagementBmSubscriptionConfigJSON `json:"-"` }
func (*BotManagementGetResponseBotManagementBmSubscriptionConfig) UnmarshalJSON ¶
func (r *BotManagementGetResponseBotManagementBmSubscriptionConfig) UnmarshalJSON(data []byte) (err error)
type BotManagementGetResponseBotManagementBotFightModeConfig ¶
type BotManagementGetResponseBotManagementBotFightModeConfig 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 botManagementGetResponseBotManagementBotFightModeConfigJSON `json:"-"` }
func (*BotManagementGetResponseBotManagementBotFightModeConfig) UnmarshalJSON ¶
func (r *BotManagementGetResponseBotManagementBotFightModeConfig) UnmarshalJSON(data []byte) (err error)
type BotManagementGetResponseBotManagementSbfmDefinitelyConfig ¶
type BotManagementGetResponseBotManagementSbfmDefinitelyConfig 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 BotManagementGetResponseBotManagementSbfmDefinitelyConfigSbfmDefinitelyAutomated `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 BotManagementGetResponseBotManagementSbfmDefinitelyConfigSbfmVerifiedBots `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 botManagementGetResponseBotManagementSbfmDefinitelyConfigJSON `json:"-"` }
func (*BotManagementGetResponseBotManagementSbfmDefinitelyConfig) UnmarshalJSON ¶
func (r *BotManagementGetResponseBotManagementSbfmDefinitelyConfig) UnmarshalJSON(data []byte) (err error)
type BotManagementGetResponseBotManagementSbfmDefinitelyConfigSbfmDefinitelyAutomated ¶
type BotManagementGetResponseBotManagementSbfmDefinitelyConfigSbfmDefinitelyAutomated string
Super Bot Fight Mode (SBFM) action to take on definitely automated requests.
const ( BotManagementGetResponseBotManagementSbfmDefinitelyConfigSbfmDefinitelyAutomatedAllow BotManagementGetResponseBotManagementSbfmDefinitelyConfigSbfmDefinitelyAutomated = "allow" BotManagementGetResponseBotManagementSbfmDefinitelyConfigSbfmDefinitelyAutomatedBlock BotManagementGetResponseBotManagementSbfmDefinitelyConfigSbfmDefinitelyAutomated = "block" BotManagementGetResponseBotManagementSbfmDefinitelyConfigSbfmDefinitelyAutomatedManagedChallenge BotManagementGetResponseBotManagementSbfmDefinitelyConfigSbfmDefinitelyAutomated = "managed_challenge" )
type BotManagementGetResponseBotManagementSbfmDefinitelyConfigSbfmVerifiedBots ¶
type BotManagementGetResponseBotManagementSbfmDefinitelyConfigSbfmVerifiedBots string
Super Bot Fight Mode (SBFM) action to take on verified bots requests.
const ( BotManagementGetResponseBotManagementSbfmDefinitelyConfigSbfmVerifiedBotsAllow BotManagementGetResponseBotManagementSbfmDefinitelyConfigSbfmVerifiedBots = "allow" BotManagementGetResponseBotManagementSbfmDefinitelyConfigSbfmVerifiedBotsBlock BotManagementGetResponseBotManagementSbfmDefinitelyConfigSbfmVerifiedBots = "block" )
type BotManagementGetResponseBotManagementSbfmLikelyConfig ¶
type BotManagementGetResponseBotManagementSbfmLikelyConfig 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 BotManagementGetResponseBotManagementSbfmLikelyConfigSbfmDefinitelyAutomated `json:"sbfm_definitely_automated"` // Super Bot Fight Mode (SBFM) action to take on likely automated requests. SbfmLikelyAutomated BotManagementGetResponseBotManagementSbfmLikelyConfigSbfmLikelyAutomated `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 BotManagementGetResponseBotManagementSbfmLikelyConfigSbfmVerifiedBots `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 botManagementGetResponseBotManagementSbfmLikelyConfigJSON `json:"-"` }
func (*BotManagementGetResponseBotManagementSbfmLikelyConfig) UnmarshalJSON ¶
func (r *BotManagementGetResponseBotManagementSbfmLikelyConfig) UnmarshalJSON(data []byte) (err error)
type BotManagementGetResponseBotManagementSbfmLikelyConfigSbfmDefinitelyAutomated ¶
type BotManagementGetResponseBotManagementSbfmLikelyConfigSbfmDefinitelyAutomated string
Super Bot Fight Mode (SBFM) action to take on definitely automated requests.
const ( BotManagementGetResponseBotManagementSbfmLikelyConfigSbfmDefinitelyAutomatedAllow BotManagementGetResponseBotManagementSbfmLikelyConfigSbfmDefinitelyAutomated = "allow" BotManagementGetResponseBotManagementSbfmLikelyConfigSbfmDefinitelyAutomatedBlock BotManagementGetResponseBotManagementSbfmLikelyConfigSbfmDefinitelyAutomated = "block" BotManagementGetResponseBotManagementSbfmLikelyConfigSbfmDefinitelyAutomatedManagedChallenge BotManagementGetResponseBotManagementSbfmLikelyConfigSbfmDefinitelyAutomated = "managed_challenge" )
type BotManagementGetResponseBotManagementSbfmLikelyConfigSbfmLikelyAutomated ¶
type BotManagementGetResponseBotManagementSbfmLikelyConfigSbfmLikelyAutomated string
Super Bot Fight Mode (SBFM) action to take on likely automated requests.
const ( BotManagementGetResponseBotManagementSbfmLikelyConfigSbfmLikelyAutomatedAllow BotManagementGetResponseBotManagementSbfmLikelyConfigSbfmLikelyAutomated = "allow" BotManagementGetResponseBotManagementSbfmLikelyConfigSbfmLikelyAutomatedBlock BotManagementGetResponseBotManagementSbfmLikelyConfigSbfmLikelyAutomated = "block" BotManagementGetResponseBotManagementSbfmLikelyConfigSbfmLikelyAutomatedManagedChallenge BotManagementGetResponseBotManagementSbfmLikelyConfigSbfmLikelyAutomated = "managed_challenge" )
type BotManagementGetResponseBotManagementSbfmLikelyConfigSbfmVerifiedBots ¶
type BotManagementGetResponseBotManagementSbfmLikelyConfigSbfmVerifiedBots string
Super Bot Fight Mode (SBFM) action to take on verified bots requests.
const ( BotManagementGetResponseBotManagementSbfmLikelyConfigSbfmVerifiedBotsAllow BotManagementGetResponseBotManagementSbfmLikelyConfigSbfmVerifiedBots = "allow" BotManagementGetResponseBotManagementSbfmLikelyConfigSbfmVerifiedBotsBlock BotManagementGetResponseBotManagementSbfmLikelyConfigSbfmVerifiedBots = "block" )
type BotManagementGetResponseEnvelope ¶
type BotManagementGetResponseEnvelope struct { Errors []BotManagementGetResponseEnvelopeErrors `json:"errors,required"` Messages []BotManagementGetResponseEnvelopeMessages `json:"messages,required"` Result BotManagementGetResponse `json:"result,required"` // Whether the API call was successful Success BotManagementGetResponseEnvelopeSuccess `json:"success,required"` JSON botManagementGetResponseEnvelopeJSON `json:"-"` }
func (*BotManagementGetResponseEnvelope) UnmarshalJSON ¶
func (r *BotManagementGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type BotManagementGetResponseEnvelopeErrors ¶
type BotManagementGetResponseEnvelopeErrors struct { Code int64 `json:"code,required"` Message string `json:"message,required"` JSON botManagementGetResponseEnvelopeErrorsJSON `json:"-"` }
func (*BotManagementGetResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *BotManagementGetResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type BotManagementGetResponseEnvelopeMessages ¶
type BotManagementGetResponseEnvelopeMessages struct { Code int64 `json:"code,required"` Message string `json:"message,required"` JSON botManagementGetResponseEnvelopeMessagesJSON `json:"-"` }
func (*BotManagementGetResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *BotManagementGetResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type BotManagementGetResponseEnvelopeSuccess ¶
type BotManagementGetResponseEnvelopeSuccess bool
Whether the API call was successful
const (
BotManagementGetResponseEnvelopeSuccessTrue BotManagementGetResponseEnvelopeSuccess = true
)
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"` // 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 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[BotManagementUpdateParamsSbfmDefinitelyAutomated] `json:"sbfm_definitely_automated"` // Super Bot Fight Mode (SBFM) action to take on likely automated requests. SbfmLikelyAutomated param.Field[BotManagementUpdateParamsSbfmLikelyAutomated] `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[BotManagementUpdateParamsSbfmVerifiedBots] `json:"sbfm_verified_bots"` // 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 (BotManagementUpdateParams) MarshalJSON ¶
func (r BotManagementUpdateParams) MarshalJSON() (data []byte, err error)
type BotManagementUpdateParamsSbfmDefinitelyAutomated ¶
type BotManagementUpdateParamsSbfmDefinitelyAutomated string
Super Bot Fight Mode (SBFM) action to take on definitely automated requests.
const ( BotManagementUpdateParamsSbfmDefinitelyAutomatedAllow BotManagementUpdateParamsSbfmDefinitelyAutomated = "allow" BotManagementUpdateParamsSbfmDefinitelyAutomatedBlock BotManagementUpdateParamsSbfmDefinitelyAutomated = "block" BotManagementUpdateParamsSbfmDefinitelyAutomatedManagedChallenge BotManagementUpdateParamsSbfmDefinitelyAutomated = "managed_challenge" )
type BotManagementUpdateParamsSbfmLikelyAutomated ¶
type BotManagementUpdateParamsSbfmLikelyAutomated string
Super Bot Fight Mode (SBFM) action to take on likely automated requests.
const ( BotManagementUpdateParamsSbfmLikelyAutomatedAllow BotManagementUpdateParamsSbfmLikelyAutomated = "allow" BotManagementUpdateParamsSbfmLikelyAutomatedBlock BotManagementUpdateParamsSbfmLikelyAutomated = "block" BotManagementUpdateParamsSbfmLikelyAutomatedManagedChallenge BotManagementUpdateParamsSbfmLikelyAutomated = "managed_challenge" )
type BotManagementUpdateParamsSbfmVerifiedBots ¶
type BotManagementUpdateParamsSbfmVerifiedBots string
Super Bot Fight Mode (SBFM) action to take on verified bots requests.
const ( BotManagementUpdateParamsSbfmVerifiedBotsAllow BotManagementUpdateParamsSbfmVerifiedBots = "allow" BotManagementUpdateParamsSbfmVerifiedBotsBlock BotManagementUpdateParamsSbfmVerifiedBots = "block" )
type BotManagementUpdateResponse ¶
type BotManagementUpdateResponse interface {
// contains filtered or unexported methods
}
Union satisfied by bot_management.BotManagementUpdateResponseBotManagementBotFightModeConfig, bot_management.BotManagementUpdateResponseBotManagementSbfmDefinitelyConfig, bot_management.BotManagementUpdateResponseBotManagementSbfmLikelyConfig or bot_management.BotManagementUpdateResponseBotManagementBmSubscriptionConfig.
type BotManagementUpdateResponseBotManagementBmSubscriptionConfig ¶
type BotManagementUpdateResponseBotManagementBmSubscriptionConfig 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 botManagementUpdateResponseBotManagementBmSubscriptionConfigJSON `json:"-"` }
func (*BotManagementUpdateResponseBotManagementBmSubscriptionConfig) UnmarshalJSON ¶
func (r *BotManagementUpdateResponseBotManagementBmSubscriptionConfig) UnmarshalJSON(data []byte) (err error)
type BotManagementUpdateResponseBotManagementBotFightModeConfig ¶
type BotManagementUpdateResponseBotManagementBotFightModeConfig 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 botManagementUpdateResponseBotManagementBotFightModeConfigJSON `json:"-"` }
func (*BotManagementUpdateResponseBotManagementBotFightModeConfig) UnmarshalJSON ¶
func (r *BotManagementUpdateResponseBotManagementBotFightModeConfig) UnmarshalJSON(data []byte) (err error)
type BotManagementUpdateResponseBotManagementSbfmDefinitelyConfig ¶
type BotManagementUpdateResponseBotManagementSbfmDefinitelyConfig 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 BotManagementUpdateResponseBotManagementSbfmDefinitelyConfigSbfmDefinitelyAutomated `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 BotManagementUpdateResponseBotManagementSbfmDefinitelyConfigSbfmVerifiedBots `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 botManagementUpdateResponseBotManagementSbfmDefinitelyConfigJSON `json:"-"` }
func (*BotManagementUpdateResponseBotManagementSbfmDefinitelyConfig) UnmarshalJSON ¶
func (r *BotManagementUpdateResponseBotManagementSbfmDefinitelyConfig) UnmarshalJSON(data []byte) (err error)
type BotManagementUpdateResponseBotManagementSbfmDefinitelyConfigSbfmDefinitelyAutomated ¶
type BotManagementUpdateResponseBotManagementSbfmDefinitelyConfigSbfmDefinitelyAutomated string
Super Bot Fight Mode (SBFM) action to take on definitely automated requests.
const ( BotManagementUpdateResponseBotManagementSbfmDefinitelyConfigSbfmDefinitelyAutomatedAllow BotManagementUpdateResponseBotManagementSbfmDefinitelyConfigSbfmDefinitelyAutomated = "allow" BotManagementUpdateResponseBotManagementSbfmDefinitelyConfigSbfmDefinitelyAutomatedBlock BotManagementUpdateResponseBotManagementSbfmDefinitelyConfigSbfmDefinitelyAutomated = "block" BotManagementUpdateResponseBotManagementSbfmDefinitelyConfigSbfmDefinitelyAutomatedManagedChallenge BotManagementUpdateResponseBotManagementSbfmDefinitelyConfigSbfmDefinitelyAutomated = "managed_challenge" )
type BotManagementUpdateResponseBotManagementSbfmDefinitelyConfigSbfmVerifiedBots ¶
type BotManagementUpdateResponseBotManagementSbfmDefinitelyConfigSbfmVerifiedBots string
Super Bot Fight Mode (SBFM) action to take on verified bots requests.
const ( BotManagementUpdateResponseBotManagementSbfmDefinitelyConfigSbfmVerifiedBotsAllow BotManagementUpdateResponseBotManagementSbfmDefinitelyConfigSbfmVerifiedBots = "allow" BotManagementUpdateResponseBotManagementSbfmDefinitelyConfigSbfmVerifiedBotsBlock BotManagementUpdateResponseBotManagementSbfmDefinitelyConfigSbfmVerifiedBots = "block" )
type BotManagementUpdateResponseBotManagementSbfmLikelyConfig ¶
type BotManagementUpdateResponseBotManagementSbfmLikelyConfig 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 BotManagementUpdateResponseBotManagementSbfmLikelyConfigSbfmDefinitelyAutomated `json:"sbfm_definitely_automated"` // Super Bot Fight Mode (SBFM) action to take on likely automated requests. SbfmLikelyAutomated BotManagementUpdateResponseBotManagementSbfmLikelyConfigSbfmLikelyAutomated `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 BotManagementUpdateResponseBotManagementSbfmLikelyConfigSbfmVerifiedBots `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 botManagementUpdateResponseBotManagementSbfmLikelyConfigJSON `json:"-"` }
func (*BotManagementUpdateResponseBotManagementSbfmLikelyConfig) UnmarshalJSON ¶
func (r *BotManagementUpdateResponseBotManagementSbfmLikelyConfig) UnmarshalJSON(data []byte) (err error)
type BotManagementUpdateResponseBotManagementSbfmLikelyConfigSbfmDefinitelyAutomated ¶
type BotManagementUpdateResponseBotManagementSbfmLikelyConfigSbfmDefinitelyAutomated string
Super Bot Fight Mode (SBFM) action to take on definitely automated requests.
const ( BotManagementUpdateResponseBotManagementSbfmLikelyConfigSbfmDefinitelyAutomatedAllow BotManagementUpdateResponseBotManagementSbfmLikelyConfigSbfmDefinitelyAutomated = "allow" BotManagementUpdateResponseBotManagementSbfmLikelyConfigSbfmDefinitelyAutomatedBlock BotManagementUpdateResponseBotManagementSbfmLikelyConfigSbfmDefinitelyAutomated = "block" BotManagementUpdateResponseBotManagementSbfmLikelyConfigSbfmDefinitelyAutomatedManagedChallenge BotManagementUpdateResponseBotManagementSbfmLikelyConfigSbfmDefinitelyAutomated = "managed_challenge" )
type BotManagementUpdateResponseBotManagementSbfmLikelyConfigSbfmLikelyAutomated ¶
type BotManagementUpdateResponseBotManagementSbfmLikelyConfigSbfmLikelyAutomated string
Super Bot Fight Mode (SBFM) action to take on likely automated requests.
const ( BotManagementUpdateResponseBotManagementSbfmLikelyConfigSbfmLikelyAutomatedAllow BotManagementUpdateResponseBotManagementSbfmLikelyConfigSbfmLikelyAutomated = "allow" BotManagementUpdateResponseBotManagementSbfmLikelyConfigSbfmLikelyAutomatedBlock BotManagementUpdateResponseBotManagementSbfmLikelyConfigSbfmLikelyAutomated = "block" BotManagementUpdateResponseBotManagementSbfmLikelyConfigSbfmLikelyAutomatedManagedChallenge BotManagementUpdateResponseBotManagementSbfmLikelyConfigSbfmLikelyAutomated = "managed_challenge" )
type BotManagementUpdateResponseBotManagementSbfmLikelyConfigSbfmVerifiedBots ¶
type BotManagementUpdateResponseBotManagementSbfmLikelyConfigSbfmVerifiedBots string
Super Bot Fight Mode (SBFM) action to take on verified bots requests.
const ( BotManagementUpdateResponseBotManagementSbfmLikelyConfigSbfmVerifiedBotsAllow BotManagementUpdateResponseBotManagementSbfmLikelyConfigSbfmVerifiedBots = "allow" BotManagementUpdateResponseBotManagementSbfmLikelyConfigSbfmVerifiedBotsBlock BotManagementUpdateResponseBotManagementSbfmLikelyConfigSbfmVerifiedBots = "block" )
type BotManagementUpdateResponseEnvelope ¶
type BotManagementUpdateResponseEnvelope struct { Errors []BotManagementUpdateResponseEnvelopeErrors `json:"errors,required"` Messages []BotManagementUpdateResponseEnvelopeMessages `json:"messages,required"` Result BotManagementUpdateResponse `json:"result,required"` // Whether the API call was successful Success BotManagementUpdateResponseEnvelopeSuccess `json:"success,required"` JSON botManagementUpdateResponseEnvelopeJSON `json:"-"` }
func (*BotManagementUpdateResponseEnvelope) UnmarshalJSON ¶
func (r *BotManagementUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type BotManagementUpdateResponseEnvelopeErrors ¶
type BotManagementUpdateResponseEnvelopeErrors struct { Code int64 `json:"code,required"` Message string `json:"message,required"` JSON botManagementUpdateResponseEnvelopeErrorsJSON `json:"-"` }
func (*BotManagementUpdateResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *BotManagementUpdateResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type BotManagementUpdateResponseEnvelopeMessages ¶
type BotManagementUpdateResponseEnvelopeMessages struct { Code int64 `json:"code,required"` Message string `json:"message,required"` JSON botManagementUpdateResponseEnvelopeMessagesJSON `json:"-"` }
func (*BotManagementUpdateResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *BotManagementUpdateResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type BotManagementUpdateResponseEnvelopeSuccess ¶
type BotManagementUpdateResponseEnvelopeSuccess bool
Whether the API call was successful
const (
BotManagementUpdateResponseEnvelopeSuccessTrue BotManagementUpdateResponseEnvelopeSuccess = true
)