cloudflare
packagemoduleThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
README¶
cloudflare-go
Note: This library is under active development as we expand it to coverour (expanding!) API. Consider the public API of this package a littleunstable as we work towards a v1.0.
A Go library for interacting withCloudflare's API v4. This library allows you to:
- Manage and automate changes to your DNS records within Cloudflare
- Manage and automate changes to your zones (domains) on Cloudflare, includingadding new zones to your account
- List and modify the status of WAF (Web Application Firewall) rules for yourzones
- Fetch Cloudflare's IP ranges for automating your firewall whitelisting
A command-line client,flarectl, is also available as part ofthis project.
Installation
You need a working Go environment. We officially support only currently supported Go versions according toGo project's release policy.
go get github.com/cloudflare/cloudflare-go
Getting Started
package mainimport ("context""fmt""log""os""github.com/cloudflare/cloudflare-go")func main() {// Construct a new API object using a global API keyapi, err := cloudflare.New(os.Getenv("CLOUDFLARE_API_KEY"), os.Getenv("CLOUDFLARE_API_EMAIL"))// alternatively, you can use a scoped API token// api, err := cloudflare.NewWithAPIToken(os.Getenv("CLOUDFLARE_API_TOKEN"))if err != nil {log.Fatal(err)}// Most API calls require a Contextctx := context.Background()// Fetch user details on the accountu, err := api.UserDetails(ctx)if err != nil {log.Fatal(err)}// Print user detailsfmt.Println(u)}
Also refer to theAPI documentation forhow to use this package in-depth.
Contributing
Pull Requests are welcome, but please open an issue (or comment in an existingissue) to discuss any non-trivial changes before submitting code.
License
BSD licensed. See theLICENSE file for details.
Documentation¶
Overview¶
Package cloudflare implements the Cloudflare v4 API.
File contains helper methods for accepting variants (pointers, values,slices, etc) of a particular type and returning them in another. A common useis pointer to values and back.
_Most_ follow the convention of (where <type> is a Golang type such as Bool):
<type>Ptr: Accepts a value and returns a pointer.<type>: Accepts a pointer and returns a value.<type>PtrSlice: Accepts a slice of values and returns a slice of pointers.<type>Slice: Accepts a slice of pointers and returns a slice of values.<type>PtrMap: Accepts a string map of values into a string map of pointers.<type>Map: Accepts a string map of pointers into a string map of values.
Not all Golang types are covered here, only those that are commonly used.
Example¶
package mainimport ("context""fmt"cloudflare "github.com/cloudflare/cloudflare-go")const (user = "cloudflare@example.org"domain = "example.com"apiKey = "deadbeef")func main() {api, err := cloudflare.New("deadbeef", "cloudflare@example.org")if err != nil {fmt.Println(err)return}// Fetch the zone ID for zone example.orgzoneID, err := api.ZoneIDByName("example.org")if err != nil {fmt.Println(err)return}// Fetch all DNS records for example.orgrecords, _, err := api.ListDNSRecords(context.Background(), cloudflare.ZoneIdentifier(zoneID), cloudflare.ListDNSRecordsParams{})if err != nil {fmt.Println(err)return}for _, r := range records {fmt.Printf("%s: %s\n", r.Name, r.Content)}}
Index¶
- Constants
- Variables
- func AnyPtr[T any](v T) *T
- func Bool(v *bool) bool
- func BoolMap(src map[string]*bool) map[string]bool
- func BoolPtr(v bool) *bool
- func BoolPtrMap(src map[string]bool) map[string]*bool
- func BoolPtrSlice(src []bool) []*bool
- func BoolSlice(src []*bool) []bool
- func Byte(v *byte) byte
- func BytePtr(v byte) *byte
- func Complex128(v *complex128) complex128
- func Complex128Ptr(v complex128) *complex128
- func Complex64(v *complex64) complex64
- func Complex64Ptr(v complex64) *complex64
- func DurationPtr(v time.Duration) *time.Duration
- func Float32(v *float32) float32
- func Float32Map(src map[string]*float32) map[string]float32
- func Float32Ptr(v float32) *float32
- func Float32PtrMap(src map[string]float32) map[string]*float32
- func Float32PtrSlice(src []float32) []*float32
- func Float32Slice(src []*float32) []float32
- func Float64(v *float64) float64
- func Float64Map(src map[string]*float64) map[string]float64
- func Float64Ptr(v float64) *float64
- func Float64PtrMap(src map[string]float64) map[string]*float64
- func Float64PtrSlice(src []float64) []*float64
- func Float64Slice(src []*float64) []float64
- func GetOriginCARootCertificate(algorithm string) ([]byte, error)
- func Int(v *int) int
- func Int16(v *int16) int16
- func Int16Map(src map[string]*int16) map[string]int16
- func Int16Ptr(v int16) *int16
- func Int16PtrMap(src map[string]int16) map[string]*int16
- func Int16PtrSlice(src []int16) []*int16
- func Int16Slice(src []*int16) []int16
- func Int32(v *int32) int32
- func Int32Map(src map[string]*int32) map[string]int32
- func Int32Ptr(v int32) *int32
- func Int32PtrMap(src map[string]int32) map[string]*int32
- func Int32PtrSlice(src []int32) []*int32
- func Int32Slice(src []*int32) []int32
- func Int64(v *int64) int64
- func Int64Map(src map[string]*int64) map[string]int64
- func Int64Ptr(v int64) *int64
- func Int64PtrMap(src map[string]int64) map[string]*int64
- func Int64PtrSlice(src []int64) []*int64
- func Int64Slice(src []*int64) []int64
- func Int8(v *int8) int8
- func Int8Map(src map[string]*int8) map[string]int8
- func Int8Ptr(v int8) *int8
- func Int8PtrMap(src map[string]int8) map[string]*int8
- func Int8PtrSlice(src []int8) []*int8
- func Int8Slice(src []*int8) []int8
- func IntMap(src map[string]*int) map[string]int
- func IntPtr(v int) *int
- func IntPtrMap(src map[string]int) map[string]*int
- func IntPtrSlice(src []int) []*int
- func IntSlice(src []*int) []int
- func RulesetActionParameterProductValues() []string
- func RulesetKindValues() []string
- func RulesetPhaseValues() []string
- func RulesetRuleActionParametersHTTPHeaderOperationValues() []string
- func RulesetRuleActionValues() []string
- func Rune(v *rune) rune
- func RunePtr(v rune) *rune
- func String(v *string) string
- func StringMap(src map[string]*string) map[string]string
- func StringPtr(v string) *string
- func StringPtrMap(src map[string]string) map[string]*string
- func StringPtrSlice(src []string) []*string
- func StringSlice(src []*string) []string
- func TeamsRulesActionValues() []string
- func TeamsRulesUntrustedCertActionValues() []string
- func Time(v *time.Time) time.Time
- func TimePtr(v time.Time) *time.Time
- func Uint(v *uint) uint
- func Uint16(v *uint16) uint16
- func Uint16Map(src map[string]*uint16) map[string]uint16
- func Uint16Ptr(v uint16) *uint16
- func Uint16PtrMap(src map[string]uint16) map[string]*uint16
- func Uint16PtrSlice(src []uint16) []*uint16
- func Uint16Slice(src []*uint16) []uint16
- func Uint32(v *uint32) uint32
- func Uint32Map(src map[string]*uint32) map[string]uint32
- func Uint32Ptr(v uint32) *uint32
- func Uint32PtrMap(src map[string]uint32) map[string]*uint32
- func Uint32PtrSlice(src []uint32) []*uint32
- func Uint32Slice(src []*uint32) []uint32
- func Uint64(v *uint64) uint64
- func Uint64Map(src map[string]*uint64) map[string]uint64
- func Uint64Ptr(v uint64) *uint64
- func Uint64PtrMap(src map[string]uint64) map[string]*uint64
- func Uint64PtrSlice(src []uint64) []*uint64
- func Uint64Slice(src []*uint64) []uint64
- func Uint8(v *uint8) uint8
- func Uint8Map(src map[string]*uint8) map[string]uint8
- func Uint8Ptr(v uint8) *uint8
- func Uint8PtrMap(src map[string]uint8) map[string]*uint8
- func Uint8PtrSlice(src []uint8) []*uint8
- func Uint8Slice(src []*uint8) []uint8
- func UintMap(src map[string]*uint) map[string]uint
- func UintPtr(v uint) *uint
- func UintPtrMap(src map[string]uint) map[string]*uint
- func UintPtrSlice(src []uint) []*uint
- func UintSlice(src []*uint) []uint
- type API
- func (api *API) APITokens(ctx context.Context) ([]APIToken, error)
- func (api *API) AccessAuditLogs(ctx context.Context, accountID string, opts AccessAuditLogFilterOptions) ([]AccessAuditLogRecord, error)
- func (api *API) AccessBookmark(ctx context.Context, accountID, bookmarkID string) (AccessBookmark, error)
- func (api *API) AccessBookmarks(ctx context.Context, accountID string, pageOpts PaginationOptions) ([]AccessBookmark, ResultInfo, error)
- func (api *API) AccessKeysConfig(ctx context.Context, accountID string) (AccessKeysConfig, error)
- func (api *API) Account(ctx context.Context, accountID string) (Account, ResultInfo, error)
- func (api *API) AccountAccessRule(ctx context.Context, accountID string, accessRuleID string) (*AccessRuleResponse, error)
- func (api *API) AccountMember(ctx context.Context, accountID string, memberID string) (AccountMember, error)
- func (api *API) AccountMembers(ctx context.Context, accountID string, pageOpts PaginationOptions) ([]AccountMember, ResultInfo, error)
- func (api *API) Accounts(ctx context.Context, params AccountsListParams) ([]Account, ResultInfo, error)
- func (api *API) ArgoSmartRouting(ctx context.Context, zoneID string) (ArgoFeatureSetting, error)
- func (api *API) ArgoTieredCaching(ctx context.Context, zoneID string) (ArgoFeatureSetting, error)
- func (api *API) ArgoTunnel(ctx context.Context, accountID, tunnelUUID string) (ArgoTunnel, error)deprecated
- func (api *API) ArgoTunnels(ctx context.Context, accountID string) ([]ArgoTunnel, error)deprecated
- func (api *API) AttachWorkersDomain(ctx context.Context, rc *ResourceContainer, domain AttachWorkersDomainParams) (WorkersDomain, error)
- func (api *API) AvailableZonePlans(ctx context.Context, zoneID string) ([]ZonePlan, error)
- func (api *API) AvailableZoneRatePlans(ctx context.Context, zoneID string) ([]ZoneRatePlan, error)
- func (api *API) Behaviors(ctx context.Context, accountID string) (Behaviors, error)
- func (api *API) CancelRegistrarDomainTransfer(ctx context.Context, accountID, domainName string) ([]RegistrarDomain, error)
- func (api *API) CertificatePack(ctx context.Context, zoneID, certificatePackID string) (CertificatePack, error)
- func (api *API) ChangePageRule(ctx context.Context, zoneID, ruleID string, rule PageRule) error
- func (api *API) ChangeWaitingRoom(ctx context.Context, zoneID, waitingRoomID string, waitingRoom WaitingRoom) (WaitingRoom, error)
- func (api *API) ChangeWaitingRoomEvent(ctx context.Context, zoneID, waitingRoomID string, ...) (WaitingRoomEvent, error)
- func (api *API) CheckLogpushDestinationExists(ctx context.Context, rc *ResourceContainer, destinationConf string) (bool, error)
- func (api *API) CleanupArgoTunnelConnections(ctx context.Context, accountID, tunnelUUID string) errordeprecated
- func (api *API) CleanupTunnelConnections(ctx context.Context, rc *ResourceContainer, tunnelID string) error
- func (api *API) ContentScanningAddCustomExpressions(ctx context.Context, rc *ResourceContainer, ...) ([]ContentScanningCustomExpression, error)
- func (api *API) ContentScanningDeleteCustomExpression(ctx context.Context, rc *ResourceContainer, ...) ([]ContentScanningCustomExpression, error)
- func (api *API) ContentScanningDisable(ctx context.Context, rc *ResourceContainer, ...) (ContentScanningDisableResponse, error)
- func (api *API) ContentScanningEnable(ctx context.Context, rc *ResourceContainer, params ContentScanningEnableParams) (ContentScanningEnableResponse, error)
- func (api *API) ContentScanningListCustomExpressions(ctx context.Context, rc *ResourceContainer, ...) ([]ContentScanningCustomExpression, error)
- func (api *API) ContentScanningStatus(ctx context.Context, rc *ResourceContainer, params ContentScanningStatusParams) (ContentScanningStatusResponse, error)
- func (api *API) CreateAPIShieldOperations(ctx context.Context, rc *ResourceContainer, ...) ([]APIShieldOperation, error)
- func (api *API) CreateAPIShieldSchema(ctx context.Context, rc *ResourceContainer, params CreateAPIShieldSchemaParams) (*APIShieldCreateSchemaResult, error)
- func (api *API) CreateAPIToken(ctx context.Context, token APIToken) (APIToken, error)
- func (api *API) CreateAccessApplication(ctx context.Context, rc *ResourceContainer, ...) (AccessApplication, error)
- func (api *API) CreateAccessBookmark(ctx context.Context, accountID string, accessBookmark AccessBookmark) (AccessBookmark, error)
- func (api *API) CreateAccessCACertificate(ctx context.Context, rc *ResourceContainer, ...) (AccessCACertificate, error)
- func (api *API) CreateAccessCustomPage(ctx context.Context, rc *ResourceContainer, ...) (AccessCustomPage, error)
- func (api *API) CreateAccessGroup(ctx context.Context, rc *ResourceContainer, params CreateAccessGroupParams) (AccessGroup, error)
- func (api *API) CreateAccessIdentityProvider(ctx context.Context, rc *ResourceContainer, ...) (AccessIdentityProvider, error)
- func (api *API) CreateAccessMutualTLSCertificate(ctx context.Context, rc *ResourceContainer, ...) (AccessMutualTLSCertificate, error)
- func (api *API) CreateAccessOrganization(ctx context.Context, rc *ResourceContainer, ...) (AccessOrganization, error)
- func (api *API) CreateAccessPolicy(ctx context.Context, rc *ResourceContainer, params CreateAccessPolicyParams) (AccessPolicy, error)
- func (api *API) CreateAccessServiceToken(ctx context.Context, rc *ResourceContainer, ...) (AccessServiceTokenCreateResponse, error)
- func (api *API) CreateAccessTag(ctx context.Context, rc *ResourceContainer, params CreateAccessTagParams) (AccessTag, error)
- func (api *API) CreateAccount(ctx context.Context, account Account) (Account, error)
- func (api *API) CreateAccountAccessRule(ctx context.Context, accountID string, accessRule AccessRule) (*AccessRuleResponse, error)
- func (api *API) CreateAccountMember(ctx context.Context, rc *ResourceContainer, params CreateAccountMemberParams) (AccountMember, error)
- func (api *API) CreateAccountMemberWithStatus(ctx context.Context, accountID string, emailAddress string, roles []string, ...) (AccountMember, error)deprecated
- func (api *API) CreateAddressMap(ctx context.Context, rc *ResourceContainer, params CreateAddressMapParams) (AddressMap, error)
- func (api *API) CreateArgoTunnel(ctx context.Context, accountID, name, secret string) (ArgoTunnel, error)deprecated
- func (api *API) CreateCertificatePack(ctx context.Context, zoneID string, cert CertificatePackRequest) (CertificatePack, error)
- func (api *API) CreateCustomHostname(ctx context.Context, zoneID string, ch CustomHostname) (*CustomHostnameResponse, error)
- func (api *API) CreateCustomNameservers(ctx context.Context, rc *ResourceContainer, ...) (CustomNameserverResult, error)
- func (api *API) CreateD1Database(ctx context.Context, rc *ResourceContainer, params CreateD1DatabaseParams) (D1Database, error)
- func (api *API) CreateDLPDataset(ctx context.Context, rc *ResourceContainer, params CreateDLPDatasetParams) (CreateDLPDatasetResult, error)
- func (api *API) CreateDLPDatasetUpload(ctx context.Context, rc *ResourceContainer, ...) (CreateDLPDatasetUploadResult, error)
- func (api *API) CreateDLPProfiles(ctx context.Context, rc *ResourceContainer, params CreateDLPProfilesParams) ([]DLPProfile, error)
- func (api *API) CreateDNSFirewallCluster(ctx context.Context, rc *ResourceContainer, ...) (*DNSFirewallCluster, error)
- func (api *API) CreateDNSRecord(ctx context.Context, rc *ResourceContainer, params CreateDNSRecordParams) (DNSRecord, error)
- func (api *API) CreateDataLocalizationRegionalHostname(ctx context.Context, rc *ResourceContainer, ...) (RegionalHostname, error)
- func (api *API) CreateDeviceDexTest(ctx context.Context, rc *ResourceContainer, params CreateDeviceDexTestParams) (DeviceDexTest, error)
- func (api *API) CreateDeviceManagedNetwork(ctx context.Context, rc *ResourceContainer, ...) (DeviceManagedNetwork, error)
- func (api *API) CreateDevicePostureIntegration(ctx context.Context, accountID string, integration DevicePostureIntegration) (DevicePostureIntegration, error)
- func (api *API) CreateDevicePostureRule(ctx context.Context, accountID string, rule DevicePostureRule) (DevicePostureRule, error)
- func (api *API) CreateDeviceSettingsPolicy(ctx context.Context, rc *ResourceContainer, ...) (DeviceSettingsPolicy, error)
- func (api *API) CreateEmailRoutingDestinationAddress(ctx context.Context, rc *ResourceContainer, ...) (EmailRoutingDestinationAddress, error)
- func (api *API) CreateEmailRoutingRule(ctx context.Context, rc *ResourceContainer, ...) (EmailRoutingRule, error)
- func (api *API) CreateFilters(ctx context.Context, rc *ResourceContainer, params []FilterCreateParams) ([]Filter, error)
- func (api *API) CreateFirewallRules(ctx context.Context, rc *ResourceContainer, params []FirewallRuleCreateParams) ([]FirewallRule, error)
- func (api *API) CreateHealthcheck(ctx context.Context, zoneID string, healthcheck Healthcheck) (Healthcheck, error)
- func (api *API) CreateHealthcheckPreview(ctx context.Context, zoneID string, healthcheck Healthcheck) (Healthcheck, error)
- func (api *API) CreateHyperdriveConfig(ctx context.Context, rc *ResourceContainer, ...) (HyperdriveConfig, error)
- func (api *API) CreateIPAddressToAddressMap(ctx context.Context, rc *ResourceContainer, ...) error
- func (api *API) CreateIPList(ctx context.Context, accountID, name, description, kind string) (IPList, error)deprecated
- func (api *API) CreateIPListItem(ctx context.Context, accountID, ID, ip, comment string) ([]IPListItem, error)deprecated
- func (api *API) CreateIPListItemAsync(ctx context.Context, accountID, ID, ip, comment string) (IPListItemCreateResponse, error)deprecated
- func (api *API) CreateIPListItems(ctx context.Context, accountID, ID string, items []IPListItemCreateRequest) ([]IPListItem, error)deprecated
- func (api *API) CreateIPListItemsAsync(ctx context.Context, accountID, ID string, items []IPListItemCreateRequest) (IPListItemCreateResponse, error)deprecated
- func (api *API) CreateImageDirectUploadURL(ctx context.Context, rc *ResourceContainer, ...) (ImageDirectUploadURL, error)
- func (api *API) CreateImagesVariant(ctx context.Context, rc *ResourceContainer, params CreateImagesVariantParams) (ImagesVariant, error)
- func (api *API) CreateInfrastructureAccessTarget(ctx context.Context, rc *ResourceContainer, ...) (InfrastructureAccessTarget, error)
- func (api *API) CreateKeylessSSL(ctx context.Context, zoneID string, keylessSSL KeylessSSLCreateRequest) (KeylessSSL, error)
- func (api *API) CreateList(ctx context.Context, rc *ResourceContainer, params ListCreateParams) (List, error)
- func (api *API) CreateListItem(ctx context.Context, rc *ResourceContainer, params ListCreateItemParams) ([]ListItem, error)
- func (api *API) CreateListItemAsync(ctx context.Context, rc *ResourceContainer, params ListCreateItemParams) (ListItemCreateResponse, error)
- func (api *API) CreateListItems(ctx context.Context, rc *ResourceContainer, params ListCreateItemsParams) ([]ListItem, error)
- func (api *API) CreateListItemsAsync(ctx context.Context, rc *ResourceContainer, params ListCreateItemsParams) (ListItemCreateResponse, error)
- func (api *API) CreateLoadBalancer(ctx context.Context, rc *ResourceContainer, params CreateLoadBalancerParams) (LoadBalancer, error)
- func (api *API) CreateLoadBalancerMonitor(ctx context.Context, rc *ResourceContainer, ...) (LoadBalancerMonitor, error)
- func (api *API) CreateLoadBalancerPool(ctx context.Context, rc *ResourceContainer, ...) (LoadBalancerPool, error)
- func (api *API) CreateLogpushJob(ctx context.Context, rc *ResourceContainer, params CreateLogpushJobParams) (*LogpushJob, error)
- func (api *API) CreateMTLSCertificate(ctx context.Context, rc *ResourceContainer, params CreateMTLSCertificateParams) (MTLSCertificate, error)
- func (api *API) CreateMagicFirewallRuleset(ctx context.Context, accountID, name, description string, ...) (MagicFirewallRuleset, error)deprecated
- func (api *API) CreateMagicTransitGRETunnels(ctx context.Context, accountID string, tunnels []MagicTransitGRETunnel) ([]MagicTransitGRETunnel, error)
- func (api *API) CreateMagicTransitIPsecTunnels(ctx context.Context, accountID string, tunnels []MagicTransitIPsecTunnel) ([]MagicTransitIPsecTunnel, error)
- func (api *API) CreateMagicTransitStaticRoute(ctx context.Context, accountID string, route MagicTransitStaticRoute) ([]MagicTransitStaticRoute, error)
- func (api *API) CreateMembershipToAddressMap(ctx context.Context, rc *ResourceContainer, ...) error
- func (api *API) CreateMiscategorization(ctx context.Context, params MisCategorizationParameters) error
- func (api *API) CreateNotificationPolicy(ctx context.Context, accountID string, policy NotificationPolicy) (SaveResponse, error)
- func (api *API) CreateNotificationWebhooks(ctx context.Context, accountID string, webhooks *NotificationUpsertWebhooks) (SaveResponse, error)
- func (api *API) CreateObservatoryPageTest(ctx context.Context, rc *ResourceContainer, ...) (*ObservatoryPageTest, error)
- func (api *API) CreateObservatoryScheduledPageTest(ctx context.Context, rc *ResourceContainer, ...) (*ObservatoryScheduledPageTest, error)
- func (api *API) CreateOriginCACertificate(ctx context.Context, params CreateOriginCertificateParams) (*OriginCACertificate, error)
- func (api *API) CreatePageRule(ctx context.Context, zoneID string, rule PageRule) (*PageRule, error)
- func (api *API) CreatePageShieldPolicy(ctx context.Context, rc *ResourceContainer, ...) (*PageShieldPolicy, error)
- func (api *API) CreatePagesDeployment(ctx context.Context, rc *ResourceContainer, params CreatePagesDeploymentParams) (PagesProjectDeployment, error)
- func (api *API) CreatePagesProject(ctx context.Context, rc *ResourceContainer, params CreatePagesProjectParams) (PagesProject, error)
- func (api *API) CreateQueue(ctx context.Context, rc *ResourceContainer, queue CreateQueueParams) (Queue, error)
- func (api *API) CreateQueueConsumer(ctx context.Context, rc *ResourceContainer, params CreateQueueConsumerParams) (QueueConsumer, error)
- func (api *API) CreateR2Bucket(ctx context.Context, rc *ResourceContainer, params CreateR2BucketParameters) (R2Bucket, error)
- func (api *API) CreateRateLimit(ctx context.Context, zoneID string, limit RateLimit) (RateLimit, error)
- func (api *API) CreateRiskScoreIntegration(ctx context.Context, rc *ResourceContainer, ...) (RiskScoreIntegration, error)
- func (api *API) CreateRuleset(ctx context.Context, rc *ResourceContainer, params CreateRulesetParams) (Ruleset, error)
- func (api *API) CreateSSL(ctx context.Context, zoneID string, options ZoneCustomSSLOptions) (ZoneCustomSSL, error)
- func (api *API) CreateSecondaryDNSPrimary(ctx context.Context, accountID string, primary SecondaryDNSPrimary) (SecondaryDNSPrimary, error)
- func (api *API) CreateSecondaryDNSTSIG(ctx context.Context, accountID string, tsig SecondaryDNSTSIG) (SecondaryDNSTSIG, error)
- func (api *API) CreateSecondaryDNSZone(ctx context.Context, zoneID string, zone SecondaryDNSZone) (SecondaryDNSZone, error)
- func (api *API) CreateSpectrumApplication(ctx context.Context, zoneID string, appDetails SpectrumApplication) (SpectrumApplication, error)
- func (api *API) CreateTeamsList(ctx context.Context, rc *ResourceContainer, params CreateTeamsListParams) (TeamsList, error)
- func (api *API) CreateTeamsLocation(ctx context.Context, accountID string, teamsLocation TeamsLocation) (TeamsLocation, error)
- func (api *API) CreateTeamsProxyEndpoint(ctx context.Context, accountID string, proxyEndpoint TeamsProxyEndpoint) (TeamsProxyEndpoint, error)
- func (api *API) CreateTunnel(ctx context.Context, rc *ResourceContainer, params TunnelCreateParams) (Tunnel, error)
- func (api *API) CreateTunnelRoute(ctx context.Context, rc *ResourceContainer, params TunnelRoutesCreateParams) (TunnelRoute, error)
- func (api *API) CreateTunnelVirtualNetwork(ctx context.Context, rc *ResourceContainer, ...) (TunnelVirtualNetwork, error)
- func (api *API) CreateTurnstileWidget(ctx context.Context, rc *ResourceContainer, params CreateTurnstileWidgetParams) (TurnstileWidget, error)
- func (api *API) CreateUserAccessRule(ctx context.Context, accessRule AccessRule) (*AccessRuleResponse, error)
- func (api *API) CreateUserAgentRule(ctx context.Context, zoneID string, ld UserAgentRule) (*UserAgentRuleResponse, error)
- func (api *API) CreateWAFOverride(ctx context.Context, zoneID string, override WAFOverride) (WAFOverride, error)
- func (api *API) CreateWaitingRoom(ctx context.Context, zoneID string, waitingRoom WaitingRoom) (*WaitingRoom, error)
- func (api *API) CreateWaitingRoomEvent(ctx context.Context, zoneID string, waitingRoomID string, ...) (*WaitingRoomEvent, error)
- func (api *API) CreateWaitingRoomRule(ctx context.Context, rc *ResourceContainer, params CreateWaitingRoomRuleParams) ([]WaitingRoomRule, error)
- func (api *API) CreateWeb3Hostname(ctx context.Context, params Web3HostnameCreateParameters) (Web3Hostname, error)
- func (api *API) CreateWebAnalyticsRule(ctx context.Context, rc *ResourceContainer, ...) (*WebAnalyticsRule, error)
- func (api *API) CreateWebAnalyticsSite(ctx context.Context, rc *ResourceContainer, ...) (*WebAnalyticsSite, error)
- func (api *API) CreateWorkerRoute(ctx context.Context, rc *ResourceContainer, params CreateWorkerRouteParams) (WorkerRouteResponse, error)
- func (api *API) CreateWorkersAccountSettings(ctx context.Context, rc *ResourceContainer, ...) (WorkersAccountSettings, error)
- func (api *API) CreateWorkersForPlatformsDispatchNamespace(ctx context.Context, rc *ResourceContainer, ...) (*GetWorkersForPlatformsDispatchNamespaceResponse, error)
- func (api *API) CreateWorkersKVNamespace(ctx context.Context, rc *ResourceContainer, ...) (WorkersKVNamespaceResponse, error)
- func (api *API) CreateZone(ctx context.Context, name string, jumpstart bool, account Account, ...) (Zone, error)
- func (api *API) CreateZoneAccessRule(ctx context.Context, zoneID string, accessRule AccessRule) (*AccessRuleResponse, error)
- func (api *API) CreateZoneHold(ctx context.Context, rc *ResourceContainer, params CreateZoneHoldParams) (ZoneHold, error)
- func (api *API) CreateZoneLevelAccessBookmark(ctx context.Context, zoneID string, accessBookmark AccessBookmark) (AccessBookmark, error)
- func (api *API) CreateZoneLockdown(ctx context.Context, rc *ResourceContainer, params ZoneLockdownCreateParams) (ZoneLockdown, error)
- func (api *API) CustomHostname(ctx context.Context, zoneID string, customHostnameID string) (CustomHostname, error)
- func (api *API) CustomHostnameFallbackOrigin(ctx context.Context, zoneID string) (CustomHostnameFallbackOrigin, error)
- func (api *API) CustomHostnameIDByName(ctx context.Context, zoneID string, hostname string) (string, error)
- func (api *API) CustomHostnames(ctx context.Context, zoneID string, page int, filter CustomHostname) ([]CustomHostname, ResultInfo, error)
- func (api *API) CustomPage(ctx context.Context, options *CustomPageOptions, customPageID string) (CustomPage, error)
- func (api *API) CustomPages(ctx context.Context, options *CustomPageOptions) ([]CustomPage, error)
- func (api *API) DeleteAPIShieldOperation(ctx context.Context, rc *ResourceContainer, ...) error
- func (api *API) DeleteAPIShieldSchema(ctx context.Context, rc *ResourceContainer, params DeleteAPIShieldSchemaParams) error
- func (api *API) DeleteAPIToken(ctx context.Context, tokenID string) error
- func (api *API) DeleteAccessApplication(ctx context.Context, rc *ResourceContainer, applicationID string) error
- func (api *API) DeleteAccessBookmark(ctx context.Context, accountID, bookmarkID string) error
- func (api *API) DeleteAccessCACertificate(ctx context.Context, rc *ResourceContainer, applicationID string) error
- func (api *API) DeleteAccessCustomPage(ctx context.Context, rc *ResourceContainer, id string) error
- func (api *API) DeleteAccessGroup(ctx context.Context, rc *ResourceContainer, groupID string) error
- func (api *API) DeleteAccessIdentityProvider(ctx context.Context, rc *ResourceContainer, identityProviderUUID string) (AccessIdentityProvider, error)
- func (api *API) DeleteAccessMutualTLSCertificate(ctx context.Context, rc *ResourceContainer, certificateID string) error
- func (api *API) DeleteAccessPolicy(ctx context.Context, rc *ResourceContainer, params DeleteAccessPolicyParams) error
- func (api *API) DeleteAccessServiceToken(ctx context.Context, rc *ResourceContainer, uuid string) (AccessServiceTokenUpdateResponse, error)
- func (api *API) DeleteAccessTag(ctx context.Context, rc *ResourceContainer, tagName string) error
- func (api *API) DeleteAccount(ctx context.Context, accountID string) error
- func (api *API) DeleteAccountAccessRule(ctx context.Context, accountID, accessRuleID string) (*AccessRuleResponse, error)
- func (api *API) DeleteAccountMember(ctx context.Context, accountID string, userID string) error
- func (api *API) DeleteAddressMap(ctx context.Context, rc *ResourceContainer, id string) error
- func (api *API) DeleteArgoTunnel(ctx context.Context, accountID, tunnelUUID string) errordeprecated
- func (api *API) DeleteCertificatePack(ctx context.Context, zoneID, certificateID string) error
- func (api *API) DeleteCustomHostname(ctx context.Context, zoneID string, customHostnameID string) error
- func (api *API) DeleteCustomHostnameFallbackOrigin(ctx context.Context, zoneID string) error
- func (api *API) DeleteCustomNameservers(ctx context.Context, rc *ResourceContainer, ...) error
- func (api *API) DeleteD1Database(ctx context.Context, rc *ResourceContainer, databaseID string) error
- func (api *API) DeleteDLPDataset(ctx context.Context, rc *ResourceContainer, datasetID string) error
- func (api *API) DeleteDLPProfile(ctx context.Context, rc *ResourceContainer, profileID string) error
- func (api *API) DeleteDNSFirewallCluster(ctx context.Context, rc *ResourceContainer, clusterID string) error
- func (api *API) DeleteDNSRecord(ctx context.Context, rc *ResourceContainer, recordID string) error
- func (api *API) DeleteDataLocalizationRegionalHostname(ctx context.Context, rc *ResourceContainer, hostname string) error
- func (api *API) DeleteDevicePostureIntegration(ctx context.Context, accountID, ruleID string) error
- func (api *API) DeleteDevicePostureRule(ctx context.Context, accountID, ruleID string) error
- func (api *API) DeleteDeviceSettingsPolicy(ctx context.Context, rc *ResourceContainer, policyID string) ([]DeviceSettingsPolicy, error)
- func (api *API) DeleteDexTest(ctx context.Context, rc *ResourceContainer, testID string) (DeviceDexTests, error)
- func (api *API) DeleteEmailRoutingDestinationAddress(ctx context.Context, rc *ResourceContainer, addressID string) (EmailRoutingDestinationAddress, error)
- func (api *API) DeleteEmailRoutingRule(ctx context.Context, rc *ResourceContainer, ruleID string) (EmailRoutingRule, error)
- func (api *API) DeleteFilter(ctx context.Context, rc *ResourceContainer, filterID string) error
- func (api *API) DeleteFilters(ctx context.Context, rc *ResourceContainer, filterIDs []string) error
- func (api *API) DeleteFirewallRule(ctx context.Context, rc *ResourceContainer, firewallRuleID string) error
- func (api *API) DeleteFirewallRules(ctx context.Context, rc *ResourceContainer, firewallRuleIDs []string) error
- func (api *API) DeleteHealthcheck(ctx context.Context, zoneID string, healthcheckID string) error
- func (api *API) DeleteHealthcheckPreview(ctx context.Context, zoneID string, id string) error
- func (api *API) DeleteHostnameTLSSetting(ctx context.Context, rc *ResourceContainer, ...) (HostnameTLSSetting, error)
- func (api *API) DeleteHostnameTLSSettingCiphers(ctx context.Context, rc *ResourceContainer, ...) (HostnameTLSSettingCiphers, error)
- func (api *API) DeleteHyperdriveConfig(ctx context.Context, rc *ResourceContainer, hyperdriveID string) error
- func (api *API) DeleteIPAddressFromAddressMap(ctx context.Context, rc *ResourceContainer, ...) error
- func (api *API) DeleteIPList(ctx context.Context, accountID, ID string) (IPListDeleteResponse, error)deprecated
- func (api *API) DeleteIPListItems(ctx context.Context, accountID, ID string, items IPListItemDeleteRequest) ([]IPListItem, error)deprecated
- func (api *API) DeleteIPListItemsAsync(ctx context.Context, accountID, ID string, items IPListItemDeleteRequest) (IPListItemDeleteResponse, error)deprecated
- func (api *API) DeleteImage(ctx context.Context, rc *ResourceContainer, id string) error
- func (api *API) DeleteImagesVariant(ctx context.Context, rc *ResourceContainer, variantID string) error
- func (api *API) DeleteInfrastructureAccessTarget(ctx context.Context, rc *ResourceContainer, targetID string) error
- func (api *API) DeleteKeylessSSL(ctx context.Context, zoneID, keylessSSLID string) error
- func (api *API) DeleteList(ctx context.Context, rc *ResourceContainer, listID string) (ListDeleteResponse, error)
- func (api *API) DeleteListItems(ctx context.Context, rc *ResourceContainer, params ListDeleteItemsParams) ([]ListItem, error)
- func (api *API) DeleteListItemsAsync(ctx context.Context, rc *ResourceContainer, params ListDeleteItemsParams) (ListItemDeleteResponse, error)
- func (api *API) DeleteLoadBalancer(ctx context.Context, rc *ResourceContainer, loadbalancerID string) error
- func (api *API) DeleteLoadBalancerMonitor(ctx context.Context, rc *ResourceContainer, monitorID string) error
- func (api *API) DeleteLoadBalancerPool(ctx context.Context, rc *ResourceContainer, poolID string) error
- func (api *API) DeleteLogpushJob(ctx context.Context, rc *ResourceContainer, jobID int) error
- func (api *API) DeleteMTLSCertificate(ctx context.Context, rc *ResourceContainer, certificateID string) (MTLSCertificate, error)
- func (api *API) DeleteMagicFirewallRuleset(ctx context.Context, accountID, ID string) errordeprecated
- func (api *API) DeleteMagicTransitGRETunnel(ctx context.Context, accountID string, id string) (MagicTransitGRETunnel, error)
- func (api *API) DeleteMagicTransitIPsecTunnel(ctx context.Context, accountID string, id string) (MagicTransitIPsecTunnel, error)
- func (api *API) DeleteMagicTransitStaticRoute(ctx context.Context, accountID, ID string) (MagicTransitStaticRoute, error)
- func (api *API) DeleteManagedNetworks(ctx context.Context, rc *ResourceContainer, networkID string) ([]DeviceManagedNetwork, error)
- func (api *API) DeleteMembershipFromAddressMap(ctx context.Context, rc *ResourceContainer, ...) error
- func (api *API) DeleteNotificationPolicy(ctx context.Context, accountID, policyID string) (SaveResponse, error)
- func (api *API) DeleteNotificationWebhooks(ctx context.Context, accountID, webhookID string) (SaveResponse, error)
- func (api *API) DeleteObservatoryPageTests(ctx context.Context, rc *ResourceContainer, ...) (*int, error)
- func (api *API) DeleteObservatoryScheduledPageTest(ctx context.Context, rc *ResourceContainer, ...) (*int, error)
- func (api *API) DeletePageRule(ctx context.Context, zoneID, ruleID string) error
- func (api *API) DeletePageShieldPolicy(ctx context.Context, rc *ResourceContainer, policyID string) error
- func (api *API) DeletePagesDeployment(ctx context.Context, rc *ResourceContainer, params DeletePagesDeploymentParams) error
- func (api *API) DeletePagesProject(ctx context.Context, rc *ResourceContainer, projectName string) error
- func (api *API) DeletePerHostnameAuthenticatedOriginPullsCertificate(ctx context.Context, zoneID, certificateID string) (PerHostnameAuthenticatedOriginPullsCertificateDetails, error)
- func (api *API) DeletePerZoneAuthenticatedOriginPullsCertificate(ctx context.Context, zoneID, certificateID string) (PerZoneAuthenticatedOriginPullsCertificateDetails, error)
- func (api *API) DeleteQueue(ctx context.Context, rc *ResourceContainer, queueName string) error
- func (api *API) DeleteQueueConsumer(ctx context.Context, rc *ResourceContainer, params DeleteQueueConsumerParams) error
- func (api *API) DeleteR2Bucket(ctx context.Context, rc *ResourceContainer, bucketName string) error
- func (api *API) DeleteRateLimit(ctx context.Context, zoneID, limitID string) error
- func (api *API) DeleteRiskScoreIntegration(ctx context.Context, rc *ResourceContainer, integrationID string) error
- func (api *API) DeleteRuleset(ctx context.Context, rc *ResourceContainer, rulesetID string) error
- func (api *API) DeleteRulesetRule(ctx context.Context, rc *ResourceContainer, params DeleteRulesetRuleParams) error
- func (api *API) DeleteSSL(ctx context.Context, zoneID, certificateID string) error
- func (api *API) DeleteSecondaryDNSPrimary(ctx context.Context, accountID, primaryID string) error
- func (api *API) DeleteSecondaryDNSTSIG(ctx context.Context, accountID, tsigID string) error
- func (api *API) DeleteSecondaryDNSZone(ctx context.Context, zoneID string) error
- func (api *API) DeleteSpectrumApplication(ctx context.Context, zoneID string, applicationID string) error
- func (api *API) DeleteTeamsList(ctx context.Context, rc *ResourceContainer, teamsListID string) error
- func (api *API) DeleteTeamsLocation(ctx context.Context, accountID, teamsLocationID string) error
- func (api *API) DeleteTeamsProxyEndpoint(ctx context.Context, accountID, proxyEndpointID string) error
- func (api *API) DeleteTieredCache(ctx context.Context, rc *ResourceContainer) (TieredCache, error)
- func (api *API) DeleteTunnel(ctx context.Context, rc *ResourceContainer, tunnelID string) error
- func (api *API) DeleteTunnelRoute(ctx context.Context, rc *ResourceContainer, params TunnelRoutesDeleteParams) error
- func (api *API) DeleteTunnelVirtualNetwork(ctx context.Context, rc *ResourceContainer, vnetID string) error
- func (api *API) DeleteTurnstileWidget(ctx context.Context, rc *ResourceContainer, siteKey string) error
- func (api *API) DeleteUserAccessRule(ctx context.Context, accessRuleID string) (*AccessRuleResponse, error)
- func (api *API) DeleteUserAgentRule(ctx context.Context, zoneID string, id string) (*UserAgentRuleResponse, error)
- func (api *API) DeleteWAFOverride(ctx context.Context, zoneID, overrideID string) error
- func (api *API) DeleteWaitingRoom(ctx context.Context, zoneID, waitingRoomID string) error
- func (api *API) DeleteWaitingRoomEvent(ctx context.Context, zoneID string, waitingRoomID string, eventID string) error
- func (api *API) DeleteWaitingRoomRule(ctx context.Context, rc *ResourceContainer, params DeleteWaitingRoomRuleParams) ([]WaitingRoomRule, error)
- func (api *API) DeleteWeb3Hostname(ctx context.Context, params Web3HostnameDetailsParameters) (Web3HostnameDeleteResult, error)
- func (api *API) DeleteWebAnalyticsRule(ctx context.Context, rc *ResourceContainer, ...) (*string, error)
- func (api *API) DeleteWebAnalyticsSite(ctx context.Context, rc *ResourceContainer, ...) (*string, error)
- func (api *API) DeleteWorker(ctx context.Context, rc *ResourceContainer, params DeleteWorkerParams) error
- func (api *API) DeleteWorkerRoute(ctx context.Context, rc *ResourceContainer, routeID string) (WorkerRouteResponse, error)
- func (api *API) DeleteWorkersForPlatformsDispatchNamespace(ctx context.Context, rc *ResourceContainer, name string) error
- func (api *API) DeleteWorkersKVEntries(ctx context.Context, rc *ResourceContainer, ...) (Response, error)
- func (api API) DeleteWorkersKVEntry(ctx context.Context, rc *ResourceContainer, params DeleteWorkersKVEntryParams) (Response, error)
- func (api *API) DeleteWorkersKVNamespace(ctx context.Context, rc *ResourceContainer, namespaceID string) (Response, error)
- func (api *API) DeleteWorkersSecret(ctx context.Context, rc *ResourceContainer, params DeleteWorkersSecretParams) (Response, error)
- func (api *API) DeleteWorkersTail(ctx context.Context, rc *ResourceContainer, scriptName, tailID string) error
- func (api *API) DeleteZone(ctx context.Context, zoneID string) (ZoneID, error)
- func (api *API) DeleteZoneAccessRule(ctx context.Context, zoneID, accessRuleID string) (*AccessRuleResponse, error)
- func (api *API) DeleteZoneCacheVariants(ctx context.Context, zoneID string) error
- func (api *API) DeleteZoneDNSSEC(ctx context.Context, zoneID string) (string, error)
- func (api *API) DeleteZoneHold(ctx context.Context, rc *ResourceContainer, params DeleteZoneHoldParams) (ZoneHold, error)
- func (api *API) DeleteZoneLevelAccessBookmark(ctx context.Context, zoneID, bookmarkID string) error
- func (api *API) DeleteZoneLockdown(ctx context.Context, rc *ResourceContainer, id string) (ZoneLockdown, error)
- func (api *API) DeleteZoneSnippet(ctx context.Context, rc *ResourceContainer, snippetName string) error
- func (api *API) DetachWorkersDomain(ctx context.Context, rc *ResourceContainer, domainID string) error
- func (api *API) DevicePostureIntegration(ctx context.Context, accountID, integrationID string) (DevicePostureIntegration, error)
- func (api *API) DevicePostureIntegrations(ctx context.Context, accountID string) ([]DevicePostureIntegration, ResultInfo, error)
- func (api *API) DevicePostureRule(ctx context.Context, accountID, ruleID string) (DevicePostureRule, error)
- func (api *API) DevicePostureRules(ctx context.Context, accountID string) ([]DevicePostureRule, ResultInfo, error)
- func (api *API) DisableEmailRouting(ctx context.Context, rc *ResourceContainer) (EmailRoutingSettings, error)
- func (api *API) EditPerHostnameAuthenticatedOriginPullsConfig(ctx context.Context, zoneID string, ...) ([]PerHostnameAuthenticatedOriginPullsDetails, error)
- func (api *API) EditUniversalSSLSetting(ctx context.Context, zoneID string, setting UniversalSSLSetting) (UniversalSSLSetting, error)
- func (api *API) EditZone(ctx context.Context, zoneID string, zoneOpts ZoneOptions) (Zone, error)
- func (api *API) EnableEmailRouting(ctx context.Context, rc *ResourceContainer) (EmailRoutingSettings, error)
- func (api *API) ExportDNSRecords(ctx context.Context, rc *ResourceContainer, params ExportDNSRecordsParams) (string, error)
- func (api *API) ExportZarazConfig(ctx context.Context, rc *ResourceContainer) error
- func (api *API) FallbackOrigin(ctx context.Context, zoneID string) (FallbackOrigin, error)
- func (api *API) Filter(ctx context.Context, rc *ResourceContainer, filterID string) (Filter, error)
- func (api *API) Filters(ctx context.Context, rc *ResourceContainer, params FilterListParams) ([]Filter, *ResultInfo, error)
- func (api *API) FirewallRule(ctx context.Context, rc *ResourceContainer, firewallRuleID string) (FirewallRule, error)
- func (api *API) FirewallRules(ctx context.Context, rc *ResourceContainer, params FirewallRuleListParams) ([]FirewallRule, *ResultInfo, error)
- func (api *API) ForceSecondaryDNSZoneAXFR(ctx context.Context, zoneID string) error
- func (api *API) GenerateMagicTransitIPsecTunnelPSK(ctx context.Context, accountID string, id string) (string, *MagicTransitIPsecTunnelPskMetadata, error)
- func (api *API) GetAPIShieldConfiguration(ctx context.Context, rc *ResourceContainer) (APIShield, ResultInfo, error)
- func (api *API) GetAPIShieldOperation(ctx context.Context, rc *ResourceContainer, params GetAPIShieldOperationParams) (*APIShieldOperation, error)
- func (api *API) GetAPIShieldOperationSchemaValidationSettings(ctx context.Context, rc *ResourceContainer, ...) (*APIShieldOperationSchemaValidationSettings, error)
- func (api *API) GetAPIShieldSchema(ctx context.Context, rc *ResourceContainer, params GetAPIShieldSchemaParams) (*APIShieldSchema, error)
- func (api *API) GetAPIShieldSchemaValidationSettings(ctx context.Context, rc *ResourceContainer) (*APIShieldSchemaValidationSettings, error)
- func (api *API) GetAPIToken(ctx context.Context, tokenID string) (APIToken, error)
- func (api *API) GetAccessApplication(ctx context.Context, rc *ResourceContainer, applicationID string) (AccessApplication, error)
- func (api *API) GetAccessCACertificate(ctx context.Context, rc *ResourceContainer, applicationID string) (AccessCACertificate, error)
- func (api *API) GetAccessCustomPage(ctx context.Context, rc *ResourceContainer, id string) (AccessCustomPage, error)
- func (api *API) GetAccessGroup(ctx context.Context, rc *ResourceContainer, groupID string) (AccessGroup, error)
- func (api *API) GetAccessIdentityProvider(ctx context.Context, rc *ResourceContainer, identityProviderID string) (AccessIdentityProvider, error)
- func (api *API) GetAccessMutualTLSCertificate(ctx context.Context, rc *ResourceContainer, certificateID string) (AccessMutualTLSCertificate, error)
- func (api *API) GetAccessMutualTLSHostnameSettings(ctx context.Context, rc *ResourceContainer) ([]AccessMutualTLSHostnameSettings, error)
- func (api *API) GetAccessOrganization(ctx context.Context, rc *ResourceContainer, params GetAccessOrganizationParams) (AccessOrganization, ResultInfo, error)
- func (api *API) GetAccessPolicy(ctx context.Context, rc *ResourceContainer, params GetAccessPolicyParams) (AccessPolicy, error)
- func (api *API) GetAccessTag(ctx context.Context, rc *ResourceContainer, tagName string) (AccessTag, error)
- func (api *API) GetAccessUserActiveSessions(ctx context.Context, rc *ResourceContainer, userID string) ([]AccessUserActiveSessionResult, error)
- func (api *API) GetAccessUserFailedLogins(ctx context.Context, rc *ResourceContainer, userID string) ([]AccessUserFailedLoginResult, error)
- func (api *API) GetAccessUserLastSeenIdentity(ctx context.Context, rc *ResourceContainer, userID string) (GetAccessUserLastSeenIdentityResult, error)
- func (api *API) GetAccessUserSingleActiveSession(ctx context.Context, rc *ResourceContainer, userID string, sessionID string) (GetAccessUserSingleActiveSessionResult, error)
- func (api *API) GetAccountRole(ctx context.Context, rc *ResourceContainer, roleID string) (AccountRole, error)
- func (api *API) GetAddressMap(ctx context.Context, rc *ResourceContainer, id string) (AddressMap, error)
- func (api *API) GetAdvertisementStatus(ctx context.Context, accountID, ID string) (AdvertisementStatus, error)
- func (api *API) GetAuditSSHSettings(ctx context.Context, rc *ResourceContainer, params GetAuditSSHSettingsParams) (AuditSSHSettings, ResultInfo, error)
- func (api *API) GetAuthenticatedOriginPullsStatus(ctx context.Context, zoneID string) (AuthenticatedOriginPulls, error)
- func (api *API) GetAvailableNotificationTypes(ctx context.Context, accountID string) (NotificationAvailableAlertsResponse, error)
- func (api *API) GetBaseImage(ctx context.Context, rc *ResourceContainer, id string) ([]byte, error)
- func (api *API) GetBotManagement(ctx context.Context, rc *ResourceContainer) (BotManagement, error)
- func (api *API) GetCacheReserve(ctx context.Context, rc *ResourceContainer, params GetCacheReserveParams) (CacheReserve, error)
- func (api *API) GetCustomNameserverZoneMetadata(ctx context.Context, rc *ResourceContainer, ...) (CustomNameserverZoneMetadata, error)
- func (api *API) GetCustomNameservers(ctx context.Context, rc *ResourceContainer, params GetCustomNameserversParams) ([]CustomNameserverResult, error)
- func (api *API) GetD1Database(ctx context.Context, rc *ResourceContainer, databaseID string) (D1Database, error)
- func (api *API) GetDCVDelegation(ctx context.Context, rc *ResourceContainer, params GetDCVDelegationParams) (DCVDelegation, ResultInfo, error)
- func (api *API) GetDLPDataset(ctx context.Context, rc *ResourceContainer, datasetID string) (DLPDataset, error)
- func (api *API) GetDLPPayloadLogSettings(ctx context.Context, rc *ResourceContainer, ...) (DLPPayloadLogSettings, error)
- func (api *API) GetDLPProfile(ctx context.Context, rc *ResourceContainer, profileID string) (DLPProfile, error)
- func (api *API) GetDNSFirewallCluster(ctx context.Context, rc *ResourceContainer, params GetDNSFirewallClusterParams) (*DNSFirewallCluster, error)
- func (api *API) GetDNSFirewallUserAnalytics(ctx context.Context, rc *ResourceContainer, ...) (DNSFirewallAnalytics, error)
- func (api *API) GetDNSRecord(ctx context.Context, rc *ResourceContainer, recordID string) (DNSRecord, error)
- func (api *API) GetDataLocalizationRegionalHostname(ctx context.Context, rc *ResourceContainer, hostname string) (RegionalHostname, error)
- func (api *API) GetDefaultDeviceSettingsPolicy(ctx context.Context, rc *ResourceContainer, ...) (DeviceSettingsPolicy, error)
- func (api *API) GetDefaultZarazConfig(ctx context.Context, rc *ResourceContainer) (ZarazConfigResponse, error)
- func (api *API) GetDeviceClientCertificates(ctx context.Context, rc *ResourceContainer, ...) (DeviceClientCertificates, error)
- func (api *API) GetDeviceDexTest(ctx context.Context, rc *ResourceContainer, testID string) (DeviceDexTest, error)
- func (api *API) GetDeviceManagedNetwork(ctx context.Context, rc *ResourceContainer, networkID string) (DeviceManagedNetwork, error)
- func (api *API) GetDeviceSettingsPolicy(ctx context.Context, rc *ResourceContainer, ...) (DeviceSettingsPolicy, error)
- func (api *API) GetEligibleNotificationDestinations(ctx context.Context, accountID string) (NotificationEligibilityResponse, error)
- func (api *API) GetEligibleZonesAccountCustomNameservers(ctx context.Context, rc *ResourceContainer, ...) ([]string, error)
- func (api *API) GetEmailRoutingCatchAllRule(ctx context.Context, rc *ResourceContainer) (EmailRoutingCatchAllRule, error)
- func (api *API) GetEmailRoutingDNSSettings(ctx context.Context, rc *ResourceContainer) ([]DNSRecord, error)
- func (api *API) GetEmailRoutingDestinationAddress(ctx context.Context, rc *ResourceContainer, addressID string) (EmailRoutingDestinationAddress, error)
- func (api *API) GetEmailRoutingRule(ctx context.Context, rc *ResourceContainer, ruleID string) (EmailRoutingRule, error)
- func (api *API) GetEmailRoutingSettings(ctx context.Context, rc *ResourceContainer) (EmailRoutingSettings, error)
- func (api *API) GetEntrypointRuleset(ctx context.Context, rc *ResourceContainer, phase string) (Ruleset, error)
- func (api *API) GetHyperdriveConfig(ctx context.Context, rc *ResourceContainer, hyperdriveID string) (HyperdriveConfig, error)
- func (api *API) GetIPList(ctx context.Context, accountID, ID string) (IPList, error)deprecated
- func (api *API) GetIPListBulkOperation(ctx context.Context, accountID, ID string) (IPListBulkOperation, error)deprecated
- func (api *API) GetIPListItem(ctx context.Context, accountID, listID, id string) (IPListItem, error)deprecated
- func (api *API) GetImage(ctx context.Context, rc *ResourceContainer, id string) (Image, error)
- func (api *API) GetImagesStats(ctx context.Context, rc *ResourceContainer) (ImagesStatsCount, error)
- func (api *API) GetImagesVariant(ctx context.Context, rc *ResourceContainer, variantID string) (ImagesVariant, error)
- func (api *API) GetInfrastructureAccessTarget(ctx context.Context, rc *ResourceContainer, targetID string) (InfrastructureAccessTarget, error)
- func (api *API) GetList(ctx context.Context, rc *ResourceContainer, listID string) (List, error)
- func (api *API) GetListBulkOperation(ctx context.Context, rc *ResourceContainer, ID string) (ListBulkOperation, error)
- func (api *API) GetListItem(ctx context.Context, rc *ResourceContainer, listID, itemID string) (ListItem, error)
- func (api *API) GetLoadBalancer(ctx context.Context, rc *ResourceContainer, loadbalancerID string) (LoadBalancer, error)
- func (api *API) GetLoadBalancerMonitor(ctx context.Context, rc *ResourceContainer, monitorID string) (LoadBalancerMonitor, error)
- func (api *API) GetLoadBalancerPool(ctx context.Context, rc *ResourceContainer, poolID string) (LoadBalancerPool, error)
- func (api *API) GetLoadBalancerPoolHealth(ctx context.Context, rc *ResourceContainer, poolID string) (LoadBalancerPoolHealth, error)
- func (api *API) GetLogpullRetentionFlag(ctx context.Context, zoneID string) (*LogpullRetentionConfiguration, error)
- func (api *API) GetLogpushFields(ctx context.Context, rc *ResourceContainer, params GetLogpushFieldsParams) (LogpushFields, error)
- func (api *API) GetLogpushJob(ctx context.Context, rc *ResourceContainer, jobID int) (LogpushJob, error)
- func (api *API) GetLogpushOwnershipChallenge(ctx context.Context, rc *ResourceContainer, ...) (*LogpushGetOwnershipChallenge, error)
- func (api *API) GetMTLSCertificate(ctx context.Context, rc *ResourceContainer, certificateID string) (MTLSCertificate, error)
- func (api *API) GetMagicFirewallRuleset(ctx context.Context, accountID, ID string) (MagicFirewallRuleset, error)deprecated
- func (api *API) GetMagicTransitGRETunnel(ctx context.Context, accountID string, id string) (MagicTransitGRETunnel, error)
- func (api *API) GetMagicTransitIPsecTunnel(ctx context.Context, accountID string, id string) (MagicTransitIPsecTunnel, error)
- func (api *API) GetMagicTransitStaticRoute(ctx context.Context, accountID, ID string) (MagicTransitStaticRoute, error)
- func (api *API) GetNotificationPolicy(ctx context.Context, accountID, policyID string) (NotificationPolicyResponse, error)
- func (api *API) GetNotificationWebhooks(ctx context.Context, accountID, webhookID string) (NotificationWebhookResponse, error)
- func (api *API) GetObservatoryPageTest(ctx context.Context, rc *ResourceContainer, ...) (*ObservatoryPageTest, error)
- func (api *API) GetObservatoryPageTrend(ctx context.Context, rc *ResourceContainer, ...) (*ObservatoryPageTrend, error)
- func (api *API) GetObservatoryScheduledPageTest(ctx context.Context, rc *ResourceContainer, ...) (*ObservatorySchedule, error)
- func (api *API) GetOrganizationAuditLogs(ctx context.Context, organizationID string, a AuditLogFilter) (AuditLogResponse, error)
- func (api *API) GetOriginCACertificate(ctx context.Context, certificateID string) (*OriginCACertificate, error)
- func (api *API) GetPageShieldConnection(ctx context.Context, rc *ResourceContainer, connectionID string) (*PageShieldConnection, error)
- func (api *API) GetPageShieldPolicy(ctx context.Context, rc *ResourceContainer, policyID string) (*PageShieldPolicy, error)
- func (api *API) GetPageShieldScript(ctx context.Context, rc *ResourceContainer, scriptID string) (*PageShieldScript, []PageShieldScriptVersion, error)
- func (api *API) GetPageShieldSettings(ctx context.Context, rc *ResourceContainer, params GetPageShieldSettingsParams) (*PageShieldSettingsResponse, error)
- func (api *API) GetPagesDeploymentInfo(ctx context.Context, rc *ResourceContainer, projectName, deploymentID string) (PagesProjectDeployment, error)
- func (api *API) GetPagesDeploymentLogs(ctx context.Context, rc *ResourceContainer, ...) (PagesDeploymentLogs, error)
- func (api *API) GetPagesDomain(ctx context.Context, params PagesDomainParameters) (PagesDomain, error)
- func (api *API) GetPagesDomains(ctx context.Context, params PagesDomainsParameters) ([]PagesDomain, error)
- func (api *API) GetPagesProject(ctx context.Context, rc *ResourceContainer, projectName string) (PagesProject, error)
- func (api *API) GetPerHostnameAuthenticatedOriginPullsCertificate(ctx context.Context, zoneID, certificateID string) (PerHostnameAuthenticatedOriginPullsCertificateDetails, error)
- func (api *API) GetPerHostnameAuthenticatedOriginPullsConfig(ctx context.Context, zoneID, hostname string) (PerHostnameAuthenticatedOriginPullsDetails, error)
- func (api *API) GetPerZoneAuthenticatedOriginPullsCertificateDetails(ctx context.Context, zoneID, certificateID string) (PerZoneAuthenticatedOriginPullsCertificateDetails, error)
- func (api *API) GetPerZoneAuthenticatedOriginPullsStatus(ctx context.Context, zoneID string) (PerZoneAuthenticatedOriginPullsSettings, error)
- func (api *API) GetPermissionGroup(ctx context.Context, rc *ResourceContainer, permissionGroupId string) (PermissionGroup, error)
- func (api *API) GetPrefix(ctx context.Context, accountID, ID string) (IPPrefix, error)
- func (api *API) GetQueue(ctx context.Context, rc *ResourceContainer, queueName string) (Queue, error)
- func (api *API) GetR2Bucket(ctx context.Context, rc *ResourceContainer, bucketName string) (R2Bucket, error)
- func (api *API) GetRegionalTieredCache(ctx context.Context, rc *ResourceContainer, ...) (RegionalTieredCache, error)
- func (api *API) GetRiskScoreIntegration(ctx context.Context, rc *ResourceContainer, integrationID string) (RiskScoreIntegration, error)
- func (api *API) GetRuleset(ctx context.Context, rc *ResourceContainer, rulesetID string) (Ruleset, error)
- func (api *API) GetSecondaryDNSPrimary(ctx context.Context, accountID, primaryID string) (SecondaryDNSPrimary, error)
- func (api *API) GetSecondaryDNSTSIG(ctx context.Context, accountID, tsigID string) (SecondaryDNSTSIG, error)
- func (api *API) GetSecondaryDNSZone(ctx context.Context, zoneID string) (SecondaryDNSZone, error)
- func (api *API) GetTeamsDeviceDetails(ctx context.Context, accountID string, deviceID string) (TeamsDeviceListItem, error)
- func (api *API) GetTeamsList(ctx context.Context, rc *ResourceContainer, listID string) (TeamsList, error)
- func (api *API) GetTieredCache(ctx context.Context, rc *ResourceContainer) (TieredCache, error)
- func (api *API) GetTotalTLS(ctx context.Context, rc *ResourceContainer) (TotalTLS, error)
- func (api *API) GetTunnel(ctx context.Context, rc *ResourceContainer, tunnelID string) (Tunnel, error)
- func (api *API) GetTunnelConfiguration(ctx context.Context, rc *ResourceContainer, tunnelID string) (TunnelConfigurationResult, error)
- func (api *API) GetTunnelRouteForIP(ctx context.Context, rc *ResourceContainer, params TunnelRoutesForIPParams) (TunnelRoute, error)
- func (api *API) GetTunnelToken(ctx context.Context, rc *ResourceContainer, tunnelID string) (string, error)
- func (api *API) GetTurnstileWidget(ctx context.Context, rc *ResourceContainer, siteKey string) (TurnstileWidget, error)
- func (api *API) GetUserAuditLogs(ctx context.Context, a AuditLogFilter) (AuditLogResponse, error)
- func (api *API) GetWaitingRoomSettings(ctx context.Context, rc *ResourceContainer) (WaitingRoomSettings, error)
- func (api *API) GetWeb3Hostname(ctx context.Context, params Web3HostnameDetailsParameters) (Web3Hostname, error)
- func (api *API) GetWebAnalyticsSite(ctx context.Context, rc *ResourceContainer, params GetWebAnalyticsSiteParams) (*WebAnalyticsSite, error)
- func (api *API) GetWorker(ctx context.Context, rc *ResourceContainer, scriptName string) (WorkerScriptResponse, error)
- func (api *API) GetWorkerRoute(ctx context.Context, rc *ResourceContainer, routeID string) (WorkerRouteResponse, error)
- func (api *API) GetWorkerWithDispatchNamespace(ctx context.Context, rc *ResourceContainer, scriptName string, ...) (WorkerScriptResponse, error)
- func (api *API) GetWorkersDomain(ctx context.Context, rc *ResourceContainer, domainID string) (WorkersDomain, error)
- func (api *API) GetWorkersForPlatformsDispatchNamespace(ctx context.Context, rc *ResourceContainer, name string) (*GetWorkersForPlatformsDispatchNamespaceResponse, error)
- func (api API) GetWorkersKV(ctx context.Context, rc *ResourceContainer, params GetWorkersKVParams) ([]byte, error)
- func (api *API) GetWorkersScriptContent(ctx context.Context, rc *ResourceContainer, scriptName string) (string, error)
- func (api *API) GetWorkersScriptSettings(ctx context.Context, rc *ResourceContainer, scriptName string) (WorkerScriptSettingsResponse, error)
- func (api *API) GetZarazConfig(ctx context.Context, rc *ResourceContainer) (ZarazConfigResponse, error)
- func (api *API) GetZarazWorkflow(ctx context.Context, rc *ResourceContainer) (ZarazWorkflowResponse, error)
- func (api *API) GetZoneHold(ctx context.Context, rc *ResourceContainer, params GetZoneHoldParams) (ZoneHold, error)
- func (api *API) GetZoneSetting(ctx context.Context, rc *ResourceContainer, params GetZoneSettingParams) (ZoneSetting, error)
- func (api *API) GetZoneSnippet(ctx context.Context, rc *ResourceContainer, snippetName string) (*Snippet, error)
- func (api *API) Healthcheck(ctx context.Context, zoneID, healthcheckID string) (Healthcheck, error)
- func (api *API) HealthcheckPreview(ctx context.Context, zoneID, id string) (Healthcheck, error)
- func (api *API) Healthchecks(ctx context.Context, zoneID string) ([]Healthcheck, error)
- func (api *API) ImportDNSRecords(ctx context.Context, rc *ResourceContainer, params ImportDNSRecordsParams) error
- func (api *API) IntelligenceASNOverview(ctx context.Context, params IntelligenceASNOverviewParameters) ([]ASNInfo, error)
- func (api *API) IntelligenceASNSubnets(ctx context.Context, params IntelligenceASNSubnetsParameters) (IntelligenceASNSubnetResponse, error)
- func (api *API) IntelligenceBulkDomainDetails(ctx context.Context, params GetBulkDomainDetailsParameters) ([]DomainDetails, error)
- func (api *API) IntelligenceDomainDetails(ctx context.Context, params GetDomainDetailsParameters) (DomainDetails, error)
- func (api *API) IntelligenceDomainHistory(ctx context.Context, params GetDomainHistoryParameters) ([]DomainHistory, error)
- func (api *API) IntelligenceGetIPList(ctx context.Context, params IPIntelligenceListParameters) ([]IPIntelligenceItem, error)
- func (api *API) IntelligenceGetIPOverview(ctx context.Context, params IPIntelligenceParameters) ([]IPIntelligence, error)
- func (api *API) IntelligencePassiveDNS(ctx context.Context, params IPIntelligencePassiveDNSParameters) (IPPassiveDNS, error)
- func (api *API) IntelligencePhishingScan(ctx context.Context, params PhishingScanParameters) (PhishingScan, error)
- func (api *API) IntelligenceWHOIS(ctx context.Context, params WHOISParameters) (WHOIS, error)
- func (api *API) KeylessSSL(ctx context.Context, zoneID, keylessSSLID string) (KeylessSSL, error)
- func (api *API) LeakedCredentialCheckCreateDetection(ctx context.Context, rc *ResourceContainer, ...) (LeakedCredentialCheckDetectionEntry, error)
- func (api *API) LeakedCredentialCheckDeleteDetection(ctx context.Context, rc *ResourceContainer, ...) (LeakedCredentialCheckDeleteDetectionResponse, error)
- func (api *API) LeakedCredentialCheckGetStatus(ctx context.Context, rc *ResourceContainer, ...) (LeakedCredentialCheckStatus, error)
- func (api *API) LeakedCredentialCheckListDetections(ctx context.Context, rc *ResourceContainer, ...) ([]LeakedCredentialCheckDetectionEntry, error)
- func (api *API) LeakedCredentialCheckSetStatus(ctx context.Context, rc *ResourceContainer, ...) (LeakedCredentialCheckStatus, error)
- func (api *API) LeakedCredentialCheckUpdateDetection(ctx context.Context, rc *ResourceContainer, ...) (LeakedCredentialCheckDetectionEntry, error)
- func (api *API) ListAPIShieldDiscoveryOperations(ctx context.Context, rc *ResourceContainer, ...) ([]APIShieldDiscoveryOperation, ResultInfo, error)
- func (api *API) ListAPIShieldOperations(ctx context.Context, rc *ResourceContainer, ...) ([]APIShieldOperation, ResultInfo, error)
- func (api *API) ListAPIShieldSchemas(ctx context.Context, rc *ResourceContainer, params ListAPIShieldSchemasParams) ([]APIShieldSchema, ResultInfo, error)
- func (api *API) ListAPITokensPermissionGroups(ctx context.Context) ([]APITokenPermissionGroups, error)
- func (api *API) ListAccessApplications(ctx context.Context, rc *ResourceContainer, ...) ([]AccessApplication, *ResultInfo, error)
- func (api *API) ListAccessCACertificates(ctx context.Context, rc *ResourceContainer, ...) ([]AccessCACertificate, *ResultInfo, error)
- func (api *API) ListAccessCustomPages(ctx context.Context, rc *ResourceContainer, params ListAccessCustomPagesParams) ([]AccessCustomPage, error)
- func (api *API) ListAccessGroups(ctx context.Context, rc *ResourceContainer, params ListAccessGroupsParams) ([]AccessGroup, *ResultInfo, error)
- func (api *API) ListAccessIdentityProviderAuthContexts(ctx context.Context, rc *ResourceContainer, identityProviderID string) ([]AccessAuthContext, error)
- func (api *API) ListAccessIdentityProviders(ctx context.Context, rc *ResourceContainer, ...) ([]AccessIdentityProvider, *ResultInfo, error)
- func (api *API) ListAccessMutualTLSCertificates(ctx context.Context, rc *ResourceContainer, ...) ([]AccessMutualTLSCertificate, *ResultInfo, error)
- func (api *API) ListAccessPolicies(ctx context.Context, rc *ResourceContainer, params ListAccessPoliciesParams) ([]AccessPolicy, *ResultInfo, error)
- func (api *API) ListAccessServiceTokens(ctx context.Context, rc *ResourceContainer, ...) ([]AccessServiceToken, ResultInfo, error)
- func (api *API) ListAccessTags(ctx context.Context, rc *ResourceContainer, params ListAccessTagsParams) ([]AccessTag, error)
- func (api *API) ListAccessUsers(ctx context.Context, rc *ResourceContainer, params AccessUserParams) ([]AccessUser, *ResultInfo, error)
- func (api *API) ListAccountAccessRules(ctx context.Context, accountID string, accessRule AccessRule, page int) (*AccessRuleListResponse, error)
- func (api *API) ListAccountRoles(ctx context.Context, rc *ResourceContainer, params ListAccountRolesParams) ([]AccountRole, error)
- func (api *API) ListAddressMaps(ctx context.Context, rc *ResourceContainer, params ListAddressMapsParams) ([]AddressMap, error)
- func (api *API) ListAllRateLimits(ctx context.Context, zoneID string) ([]RateLimit, error)
- func (api *API) ListCertificateAuthoritiesHostnameAssociations(ctx context.Context, rc *ResourceContainer, ...) ([]HostnameAssociation, error)
- func (api *API) ListCertificatePacks(ctx context.Context, zoneID string) ([]CertificatePack, error)
- func (api *API) ListD1Databases(ctx context.Context, rc *ResourceContainer, params ListD1DatabasesParams) ([]D1Database, *ResultInfo, error)
- func (api *API) ListDLPDatasets(ctx context.Context, rc *ResourceContainer, params ListDLPDatasetsParams) ([]DLPDataset, error)
- func (api *API) ListDLPProfiles(ctx context.Context, rc *ResourceContainer, params ListDLPProfilesParams) ([]DLPProfile, error)
- func (api *API) ListDNSFirewallClusters(ctx context.Context, rc *ResourceContainer, ...) ([]*DNSFirewallCluster, error)
- func (api *API) ListDNSRecords(ctx context.Context, rc *ResourceContainer, params ListDNSRecordsParams) ([]DNSRecord, *ResultInfo, error)
- func (api *API) ListDataLocalizationRegionalHostnames(ctx context.Context, rc *ResourceContainer, ...) ([]RegionalHostname, error)
- func (api *API) ListDataLocalizationRegions(ctx context.Context, rc *ResourceContainer, ...) ([]Region, error)
- func (api *API) ListDeviceManagedNetworks(ctx context.Context, rc *ResourceContainer, ...) ([]DeviceManagedNetwork, error)
- func (api *API) ListDeviceSettingsPolicies(ctx context.Context, rc *ResourceContainer, ...) ([]DeviceSettingsPolicy, *ResultInfo, error)
- func (api *API) ListDexTests(ctx context.Context, rc *ResourceContainer, params ListDeviceDexTestParams) (DeviceDexTests, error)
- func (api *API) ListEmailRoutingDestinationAddresses(ctx context.Context, rc *ResourceContainer, ...) ([]EmailRoutingDestinationAddress, *ResultInfo, error)
- func (api *API) ListEmailRoutingRules(ctx context.Context, rc *ResourceContainer, ...) ([]EmailRoutingRule, *ResultInfo, error)
- func (api *API) ListFallbackDomains(ctx context.Context, accountID string) ([]FallbackDomain, error)
- func (api *API) ListFallbackDomainsDeviceSettingsPolicy(ctx context.Context, accountID, policyID string) ([]FallbackDomain, error)
- func (api *API) ListGatewayCategories(ctx context.Context, rc *ResourceContainer, params ListGatewayCategoriesParams) ([]GatewayCategory, ResultInfo, error)
- func (api *API) ListHostnameTLSSettings(ctx context.Context, rc *ResourceContainer, ...) ([]HostnameTLSSetting, ResultInfo, error)
- func (api *API) ListHostnameTLSSettingsCiphers(ctx context.Context, rc *ResourceContainer, ...) ([]HostnameTLSSettingCiphers, ResultInfo, error)
- func (api *API) ListHyperdriveConfigs(ctx context.Context, rc *ResourceContainer, params ListHyperdriveConfigParams) ([]HyperdriveConfig, error)
- func (api *API) ListIPAccessRules(ctx context.Context, rc *ResourceContainer, params ListIPAccessRulesParams) ([]IPAccessRule, *ResultInfo, error)
- func (api *API) ListIPListItems(ctx context.Context, accountID, ID string) ([]IPListItem, error)deprecated
- func (api *API) ListIPLists(ctx context.Context, accountID string) ([]IPList, error)deprecated
- func (api *API) ListImages(ctx context.Context, rc *ResourceContainer, params ListImagesParams) ([]Image, error)
- func (api *API) ListImagesVariants(ctx context.Context, rc *ResourceContainer, params ListImageVariantsParams) (ListImageVariantsResult, error)
- func (api *API) ListInfrastructureAccessTargets(ctx context.Context, rc *ResourceContainer, ...) ([]InfrastructureAccessTarget, *ResultInfo, error)
- func (api *API) ListKeylessSSL(ctx context.Context, zoneID string) ([]KeylessSSL, error)
- func (api *API) ListListItems(ctx context.Context, rc *ResourceContainer, params ListListItemsParams) ([]ListItem, error)
- func (api *API) ListLists(ctx context.Context, rc *ResourceContainer, params ListListsParams) ([]List, error)
- func (api *API) ListLoadBalancerMonitors(ctx context.Context, rc *ResourceContainer, ...) ([]LoadBalancerMonitor, error)
- func (api *API) ListLoadBalancerPools(ctx context.Context, rc *ResourceContainer, params ListLoadBalancerPoolParams) ([]LoadBalancerPool, error)
- func (api *API) ListLoadBalancers(ctx context.Context, rc *ResourceContainer, params ListLoadBalancerParams) ([]LoadBalancer, error)
- func (api *API) ListLogpushJobs(ctx context.Context, rc *ResourceContainer, params ListLogpushJobsParams) ([]LogpushJob, error)
- func (api *API) ListLogpushJobsForDataset(ctx context.Context, rc *ResourceContainer, ...) ([]LogpushJob, error)
- func (api *API) ListMTLSCertificateAssociations(ctx context.Context, rc *ResourceContainer, ...) ([]MTLSAssociation, error)
- func (api *API) ListMTLSCertificates(ctx context.Context, rc *ResourceContainer, params ListMTLSCertificatesParams) ([]MTLSCertificate, ResultInfo, error)
- func (api *API) ListMagicFirewallRulesets(ctx context.Context, accountID string) ([]MagicFirewallRuleset, error)deprecated
- func (api *API) ListMagicTransitGRETunnels(ctx context.Context, accountID string) ([]MagicTransitGRETunnel, error)
- func (api *API) ListMagicTransitIPsecTunnels(ctx context.Context, accountID string) ([]MagicTransitIPsecTunnel, error)
- func (api *API) ListMagicTransitStaticRoutes(ctx context.Context, accountID string) ([]MagicTransitStaticRoute, error)
- func (api *API) ListNotificationHistory(ctx context.Context, accountID string, alertHistoryFilter AlertHistoryFilter) ([]NotificationHistory, ResultInfo, error)
- func (api *API) ListNotificationPolicies(ctx context.Context, accountID string) (NotificationPoliciesResponse, error)
- func (api *API) ListNotificationWebhooks(ctx context.Context, accountID string) (NotificationWebhooksResponse, error)
- func (api *API) ListObservatoryPageTests(ctx context.Context, rc *ResourceContainer, ...) ([]ObservatoryPageTest, *ResultInfo, error)
- func (api *API) ListObservatoryPages(ctx context.Context, rc *ResourceContainer, params ListObservatoryPagesParams) ([]ObservatoryPage, error)
- func (api *API) ListOriginCACertificates(ctx context.Context, params ListOriginCertificatesParams) ([]OriginCACertificate, error)
- func (api *API) ListPageRules(ctx context.Context, zoneID string) ([]PageRule, error)
- func (api *API) ListPageShieldConnections(ctx context.Context, rc *ResourceContainer, ...) ([]PageShieldConnection, ResultInfo, error)
- func (api *API) ListPageShieldPolicies(ctx context.Context, rc *ResourceContainer, ...) ([]PageShieldPolicy, ResultInfo, error)
- func (api *API) ListPageShieldScripts(ctx context.Context, rc *ResourceContainer, params ListPageShieldScriptsParams) ([]PageShieldScript, ResultInfo, error)
- func (api *API) ListPagerDutyNotificationDestinations(ctx context.Context, accountID string) (NotificationPagerDutyResponse, error)
- func (api *API) ListPagesDeployments(ctx context.Context, rc *ResourceContainer, params ListPagesDeploymentsParams) ([]PagesProjectDeployment, *ResultInfo, error)
- func (api *API) ListPagesProjects(ctx context.Context, rc *ResourceContainer, params ListPagesProjectsParams) ([]PagesProject, ResultInfo, error)
- func (api *API) ListPerHostnameAuthenticatedOriginPullsCertificates(ctx context.Context, zoneID string) ([]PerHostnameAuthenticatedOriginPullsDetails, error)
- func (api *API) ListPerZoneAuthenticatedOriginPullsCertificates(ctx context.Context, zoneID string) ([]PerZoneAuthenticatedOriginPullsCertificateDetails, error)
- func (api *API) ListPermissionGroups(ctx context.Context, rc *ResourceContainer, params ListPermissionGroupParams) ([]PermissionGroup, error)
- func (api *API) ListPrefixes(ctx context.Context, accountID string) ([]IPPrefix, error)
- func (api *API) ListQueueConsumers(ctx context.Context, rc *ResourceContainer, params ListQueueConsumersParams) ([]QueueConsumer, *ResultInfo, error)
- func (api *API) ListQueues(ctx context.Context, rc *ResourceContainer, params ListQueuesParams) ([]Queue, *ResultInfo, error)
- func (api *API) ListR2Buckets(ctx context.Context, rc *ResourceContainer, params ListR2BucketsParams) ([]R2Bucket, error)
- func (api *API) ListRateLimits(ctx context.Context, zoneID string, pageOpts PaginationOptions) ([]RateLimit, ResultInfo, error)
- func (api *API) ListRiskScoreIntegrations(ctx context.Context, rc *ResourceContainer, ...) ([]RiskScoreIntegration, error)
- func (api *API) ListRulesets(ctx context.Context, rc *ResourceContainer, params ListRulesetsParams) ([]Ruleset, error)
- func (api *API) ListSSL(ctx context.Context, zoneID string) ([]ZoneCustomSSL, error)
- func (api *API) ListSecondaryDNSPrimaries(ctx context.Context, accountID string) ([]SecondaryDNSPrimary, error)
- func (api *API) ListSecondaryDNSTSIGs(ctx context.Context, accountID string) ([]SecondaryDNSTSIG, error)
- func (api *API) ListSplitTunnels(ctx context.Context, accountID string, mode string) ([]SplitTunnel, error)
- func (api *API) ListSplitTunnelsDeviceSettingsPolicy(ctx context.Context, accountID, policyID string, mode string) ([]SplitTunnel, error)
- func (api *API) ListTeamsDevices(ctx context.Context, accountID string) ([]TeamsDeviceListItem, error)
- func (api *API) ListTeamsListItems(ctx context.Context, rc *ResourceContainer, params ListTeamsListItemsParams) ([]TeamsListItem, ResultInfo, error)
- func (api *API) ListTeamsLists(ctx context.Context, rc *ResourceContainer, params ListTeamListsParams) ([]TeamsList, ResultInfo, error)
- func (api *API) ListTunnelConnections(ctx context.Context, rc *ResourceContainer, tunnelID string) ([]Connection, error)
- func (api *API) ListTunnelRoutes(ctx context.Context, rc *ResourceContainer, params TunnelRoutesListParams) ([]TunnelRoute, error)
- func (api *API) ListTunnelVirtualNetworks(ctx context.Context, rc *ResourceContainer, ...) ([]TunnelVirtualNetwork, error)
- func (api *API) ListTunnels(ctx context.Context, rc *ResourceContainer, params TunnelListParams) ([]Tunnel, *ResultInfo, error)
- func (api *API) ListTurnstileWidgets(ctx context.Context, rc *ResourceContainer, params ListTurnstileWidgetParams) ([]TurnstileWidget, *ResultInfo, error)
- func (api *API) ListUserAccessRules(ctx context.Context, accessRule AccessRule, page int) (*AccessRuleListResponse, error)
- func (api *API) ListUserAgentRules(ctx context.Context, zoneID string, page int) (*UserAgentRuleListResponse, error)
- func (api *API) ListWAFGroups(ctx context.Context, zoneID, packageID string) ([]WAFGroup, error)
- func (api *API) ListWAFOverrides(ctx context.Context, zoneID string) ([]WAFOverride, error)
- func (api *API) ListWAFPackages(ctx context.Context, zoneID string) ([]WAFPackage, error)
- func (api *API) ListWAFRules(ctx context.Context, zoneID, packageID string) ([]WAFRule, error)
- func (api *API) ListWaitingRoomEvents(ctx context.Context, zoneID string, waitingRoomID string) ([]WaitingRoomEvent, error)
- func (api *API) ListWaitingRoomRules(ctx context.Context, rc *ResourceContainer, params ListWaitingRoomRuleParams) ([]WaitingRoomRule, error)
- func (api *API) ListWaitingRooms(ctx context.Context, zoneID string) ([]WaitingRoom, error)
- func (api *API) ListWeb3Hostnames(ctx context.Context, params Web3HostnameListParameters) ([]Web3Hostname, error)
- func (api *API) ListWebAnalyticsRules(ctx context.Context, rc *ResourceContainer, params ListWebAnalyticsRulesParams) (*WebAnalyticsRulesetRules, error)
- func (api *API) ListWebAnalyticsSites(ctx context.Context, rc *ResourceContainer, params ListWebAnalyticsSitesParams) ([]WebAnalyticsSite, *ResultInfo, error)
- func (api *API) ListWorkerBindings(ctx context.Context, rc *ResourceContainer, params ListWorkerBindingsParams) (WorkerBindingListResponse, error)
- func (api *API) ListWorkerCronTriggers(ctx context.Context, rc *ResourceContainer, ...) ([]WorkerCronTrigger, error)
- func (api *API) ListWorkerRoutes(ctx context.Context, rc *ResourceContainer, params ListWorkerRoutesParams) (WorkerRoutesResponse, error)
- func (api *API) ListWorkers(ctx context.Context, rc *ResourceContainer, params ListWorkersParams) (WorkerListResponse, *ResultInfo, error)
- func (api *API) ListWorkersDomains(ctx context.Context, rc *ResourceContainer, params ListWorkersDomainParams) ([]WorkersDomain, error)
- func (api *API) ListWorkersForPlatformsDispatchNamespaces(ctx context.Context, rc *ResourceContainer) (*ListWorkersForPlatformsDispatchNamespaceResponse, error)
- func (api API) ListWorkersKVKeys(ctx context.Context, rc *ResourceContainer, params ListWorkersKVsParams) (ListStorageKeysResponse, error)
- func (api *API) ListWorkersKVNamespaces(ctx context.Context, rc *ResourceContainer, ...) ([]WorkersKVNamespace, *ResultInfo, error)
- func (api *API) ListWorkersSecrets(ctx context.Context, rc *ResourceContainer, params ListWorkersSecretsParams) (WorkersListSecretsResponse, error)
- func (api *API) ListWorkersTail(ctx context.Context, rc *ResourceContainer, params ListWorkersTailParameters) (WorkersTail, error)
- func (api *API) ListZarazConfigHistory(ctx context.Context, rc *ResourceContainer, ...) ([]ZarazHistoryRecord, *ResultInfo, error)
- func (api *API) ListZoneAccessRules(ctx context.Context, zoneID string, accessRule AccessRule, page int) (*AccessRuleListResponse, error)
- func (api *API) ListZoneCloudConnectorRules(ctx context.Context, rc *ResourceContainer) ([]CloudConnectorRule, error)
- func (api *API) ListZoneLockdowns(ctx context.Context, rc *ResourceContainer, params LockdownListParams) ([]ZoneLockdown, *ResultInfo, error)
- func (api *API) ListZoneManagedHeaders(ctx context.Context, rc *ResourceContainer, params ListManagedHeadersParams) (ManagedHeaders, error)
- func (api *API) ListZoneSnippets(ctx context.Context, rc *ResourceContainer) ([]Snippet, error)
- func (api *API) ListZoneSnippetsRules(ctx context.Context, rc *ResourceContainer) ([]SnippetRule, error)
- func (api *API) ListZones(ctx context.Context, z ...string) ([]Zone, error)
- func (api *API) ListZonesContext(ctx context.Context, opts ...ReqOption) (r ZonesResponse, err error)
- func (api *API) PageRule(ctx context.Context, zoneID, ruleID string) (PageRule, error)
- func (api *API) PagesAddDomain(ctx context.Context, params PagesDomainParameters) (PagesDomain, error)
- func (api *API) PagesDeleteDomain(ctx context.Context, params PagesDomainParameters) error
- func (api *API) PagesPatchDomain(ctx context.Context, params PagesDomainParameters) (PagesDomain, error)
- func (api *API) PatchTeamsList(ctx context.Context, rc *ResourceContainer, listPatch PatchTeamsListParams) (TeamsList, error)
- func (api *API) PatchWaitingRoomSettings(ctx context.Context, rc *ResourceContainer, ...) (WaitingRoomSettings, error)
- func (api *API) PerformTraceroute(ctx context.Context, accountID string, targets, colos []string, ...) ([]DiagnosticsTracerouteResponseResult, error)
- func (api *API) PublishZarazConfig(ctx context.Context, rc *ResourceContainer, params PublishZarazConfigParams) (ZarazPublishResponse, error)
- func (api *API) PurgeCache(ctx context.Context, zoneID string, pcr PurgeCacheRequest) (PurgeCacheResponse, error)
- func (api *API) PurgeCacheContext(ctx context.Context, zoneID string, pcr PurgeCacheRequest) (PurgeCacheResponse, error)
- func (api *API) PurgeEverything(ctx context.Context, zoneID string) (PurgeCacheResponse, error)
- func (api *API) QueryD1Database(ctx context.Context, rc *ResourceContainer, params QueryD1DatabaseParams) ([]D1Result, error)
- func (api *API) RateLimit(ctx context.Context, zoneID, limitID string) (RateLimit, error)
- func (api *API) Raw(ctx context.Context, method, endpoint string, data interface{}, ...) (RawResponse, error)
- func (api *API) RefreshAccessServiceToken(ctx context.Context, rc *ResourceContainer, id string) (AccessServiceTokenRefreshResponse, error)
- func (api *API) RegistrarDomain(ctx context.Context, accountID, domainName string) (RegistrarDomain, error)
- func (api *API) RegistrarDomains(ctx context.Context, accountID string) ([]RegistrarDomain, error)
- func (api *API) ReplaceIPListItems(ctx context.Context, accountID, ID string, items []IPListItemCreateRequest) ([]IPListItem, error)deprecated
- func (api *API) ReplaceIPListItemsAsync(ctx context.Context, accountID, ID string, items []IPListItemCreateRequest) (IPListItemCreateResponse, error)deprecated
- func (api *API) ReplaceListItems(ctx context.Context, rc *ResourceContainer, params ListReplaceItemsParams) ([]ListItem, error)
- func (api *API) ReplaceListItemsAsync(ctx context.Context, rc *ResourceContainer, params ListReplaceItemsParams) (ListItemCreateResponse, error)
- func (api *API) ReplaceWaitingRoomRules(ctx context.Context, rc *ResourceContainer, ...) ([]WaitingRoomRule, error)
- func (api *API) ReprioritizeSSL(ctx context.Context, zoneID string, p []ZoneCustomSSLPriority) ([]ZoneCustomSSL, error)
- func (api *API) RestartCertificateValidation(ctx context.Context, zoneID, certificateID string) (CertificatePack, error)
- func (api *API) RestoreFallbackDomainDefaults(ctx context.Context, accountID string) error
- func (api *API) RestoreFallbackDomainDefaultsDeviceSettingsPolicy(ctx context.Context, accountID, policyID string) error
- func (api *API) RetryPagesDeployment(ctx context.Context, rc *ResourceContainer, projectName, deploymentID string) (PagesProjectDeployment, error)
- func (api *API) RevokeAccessApplicationTokens(ctx context.Context, rc *ResourceContainer, applicationID string) error
- func (api *API) RevokeAccessUserTokens(ctx context.Context, rc *ResourceContainer, ...) error
- func (api *API) RevokeOriginCACertificate(ctx context.Context, certificateID string) (*OriginCACertificateID, error)
- func (api *API) RevokeTeamsDevices(ctx context.Context, accountID string, deviceIds []string) (Response, error)
- func (api *API) RollAPIToken(ctx context.Context, tokenID string) (string, error)
- func (api *API) RollbackPagesDeployment(ctx context.Context, rc *ResourceContainer, projectName, deploymentID string) (PagesProjectDeployment, error)
- func (api *API) RotateAccessKeys(ctx context.Context, accountID string) (AccessKeysConfig, error)
- func (api *API) RotateAccessServiceToken(ctx context.Context, rc *ResourceContainer, id string) (AccessServiceTokenRotateResponse, error)
- func (api *API) RotateTurnstileWidget(ctx context.Context, rc *ResourceContainer, param RotateTurnstileWidgetParams) (TurnstileWidget, error)
- func (api *API) SSLDetails(ctx context.Context, zoneID, certificateID string) (ZoneCustomSSL, error)
- func (api *API) SetAuthType(authType int)
- func (api *API) SetAuthenticatedOriginPullsStatus(ctx context.Context, zoneID string, enable bool) (AuthenticatedOriginPulls, error)
- func (api *API) SetLogpullRetentionFlag(ctx context.Context, zoneID string, enabled bool) (*LogpullRetentionConfiguration, error)
- func (api *API) SetPerZoneAuthenticatedOriginPullsStatus(ctx context.Context, zoneID string, enable bool) (PerZoneAuthenticatedOriginPullsSettings, error)
- func (api *API) SetTieredCache(ctx context.Context, rc *ResourceContainer, value TieredCacheType) (TieredCache, error)
- func (api *API) SetTotalTLS(ctx context.Context, rc *ResourceContainer, params TotalTLS) (TotalTLS, error)
- func (api *API) SetWorkersSecret(ctx context.Context, rc *ResourceContainer, params SetWorkersSecretParams) (WorkersPutSecretResponse, error)
- func (api *API) SpectrumApplication(ctx context.Context, zoneID string, applicationID string) (SpectrumApplication, error)
- func (api *API) SpectrumApplications(ctx context.Context, zoneID string) ([]SpectrumApplication, error)
- func (api *API) StartWorkersTail(ctx context.Context, rc *ResourceContainer, scriptName string) (WorkersTail, error)
- func (api *API) StreamAssociateNFT(ctx context.Context, options StreamVideoNFTParameters) (StreamVideo, error)
- func (api *API) StreamCreateSignedURL(ctx context.Context, params StreamSignedURLParameters) (string, error)
- func (api *API) StreamCreateVideoDirectURL(ctx context.Context, params StreamCreateVideoParameters) (StreamVideoCreate, error)
- func (api *API) StreamDeleteVideo(ctx context.Context, options StreamParameters) error
- func (api *API) StreamEmbedHTML(ctx context.Context, options StreamParameters) (string, error)
- func (api *API) StreamGetVideo(ctx context.Context, options StreamParameters) (StreamVideo, error)
- func (api *API) StreamInitiateTUSVideoUpload(ctx context.Context, rc *ResourceContainer, ...) (StreamInitiateTUSUploadResponse, error)
- func (api *API) StreamListVideos(ctx context.Context, params StreamListParameters) ([]StreamVideo, error)
- func (api *API) StreamUploadFromURL(ctx context.Context, params StreamUploadFromURLParameters) (StreamVideo, error)
- func (api *API) StreamUploadVideoFile(ctx context.Context, params StreamUploadFileParameters) (StreamVideo, error)
- func (api *API) TeamsAccount(ctx context.Context, accountID string) (TeamsAccount, error)
- func (api *API) TeamsAccountConfiguration(ctx context.Context, accountID string) (TeamsConfiguration, error)
- func (api *API) TeamsAccountConnectivityConfiguration(ctx context.Context, accountID string) (TeamsConnectivitySettings, error)
- func (api *API) TeamsAccountConnectivityUpdateConfiguration(ctx context.Context, accountID string, settings TeamsConnectivitySettings) (TeamsConnectivitySettings, error)
- func (api *API) TeamsAccountDeviceConfiguration(ctx context.Context, accountID string) (TeamsDeviceSettings, error)
- func (api *API) TeamsAccountDeviceUpdateConfiguration(ctx context.Context, accountID string, settings TeamsDeviceSettings) (TeamsDeviceSettings, error)
- func (api *API) TeamsAccountLoggingConfiguration(ctx context.Context, accountID string) (TeamsLoggingSettings, error)
- func (api *API) TeamsAccountUpdateConfiguration(ctx context.Context, accountID string, config TeamsConfiguration) (TeamsConfiguration, error)
- func (api *API) TeamsAccountUpdateLoggingConfiguration(ctx context.Context, accountID string, config TeamsLoggingSettings) (TeamsLoggingSettings, error)
- func (api *API) TeamsActivateCertificate(ctx context.Context, accountID string, certificateId string) (TeamsCertificate, error)
- func (api *API) TeamsCertificate(ctx context.Context, accountID string, certificateId string) (TeamsCertificate, error)
- func (api *API) TeamsCertificates(ctx context.Context, accountID string) ([]TeamsCertificate, error)
- func (api *API) TeamsCreateRule(ctx context.Context, accountID string, rule TeamsRule) (TeamsRule, error)
- func (api *API) TeamsDeactivateCertificate(ctx context.Context, accountID string, certificateId string) (TeamsCertificate, error)
- func (api *API) TeamsDeleteCertificate(ctx context.Context, accountID string, certificateId string) error
- func (api *API) TeamsDeleteRule(ctx context.Context, accountID string, ruleId string) error
- func (api *API) TeamsGenerateCertificate(ctx context.Context, accountID string, ...) (TeamsCertificate, error)
- func (api *API) TeamsLocation(ctx context.Context, accountID, locationID string) (TeamsLocation, error)
- func (api *API) TeamsLocations(ctx context.Context, accountID string) ([]TeamsLocation, ResultInfo, error)
- func (api *API) TeamsPatchRule(ctx context.Context, accountID string, ruleId string, ...) (TeamsRule, error)
- func (api *API) TeamsProxyEndpoint(ctx context.Context, accountID, proxyEndpointID string) (TeamsProxyEndpoint, error)
- func (api *API) TeamsProxyEndpoints(ctx context.Context, accountID string) ([]TeamsProxyEndpoint, ResultInfo, error)
- func (api *API) TeamsRule(ctx context.Context, accountID string, ruleId string) (TeamsRule, error)
- func (api *API) TeamsRules(ctx context.Context, accountID string) ([]TeamsRule, error)
- func (api *API) TeamsUpdateRule(ctx context.Context, accountID string, ruleId string, rule TeamsRule) (TeamsRule, error)
- func (api *API) TransferRegistrarDomain(ctx context.Context, accountID, domainName string) ([]RegistrarDomain, error)
- func (api *API) URLNormalizationSettings(ctx context.Context, rc *ResourceContainer) (URLNormalizationSettings, error)
- func (api *API) UniversalSSLSettingDetails(ctx context.Context, zoneID string) (UniversalSSLSetting, error)
- func (api *API) UniversalSSLVerificationDetails(ctx context.Context, zoneID string) ([]UniversalSSLVerificationDetails, error)
- func (api *API) UpdateAPIShieldConfiguration(ctx context.Context, rc *ResourceContainer, params UpdateAPIShieldParams) (Response, error)
- func (api *API) UpdateAPIShieldDiscoveryOperation(ctx context.Context, rc *ResourceContainer, ...) (*UpdateAPIShieldDiscoveryOperation, error)
- func (api *API) UpdateAPIShieldDiscoveryOperations(ctx context.Context, rc *ResourceContainer, ...) (*UpdateAPIShieldDiscoveryOperationsParams, error)
- func (api *API) UpdateAPIShieldOperationSchemaValidationSettings(ctx context.Context, rc *ResourceContainer, ...) (*UpdateAPIShieldOperationSchemaValidationSettings, error)
- func (api *API) UpdateAPIShieldSchema(ctx context.Context, rc *ResourceContainer, params UpdateAPIShieldSchemaParams) (*APIShieldSchema, error)
- func (api *API) UpdateAPIShieldSchemaValidationSettings(ctx context.Context, rc *ResourceContainer, ...) (*APIShieldSchemaValidationSettings, error)
- func (api *API) UpdateAPIToken(ctx context.Context, tokenID string, token APIToken) (APIToken, error)
- func (api *API) UpdateAccessApplication(ctx context.Context, rc *ResourceContainer, ...) (AccessApplication, error)
- func (api *API) UpdateAccessBookmark(ctx context.Context, accountID string, accessBookmark AccessBookmark) (AccessBookmark, error)
- func (api *API) UpdateAccessCustomPage(ctx context.Context, rc *ResourceContainer, ...) (AccessCustomPage, error)
- func (api *API) UpdateAccessGroup(ctx context.Context, rc *ResourceContainer, params UpdateAccessGroupParams) (AccessGroup, error)
- func (api *API) UpdateAccessIdentityProvider(ctx context.Context, rc *ResourceContainer, ...) (AccessIdentityProvider, error)
- func (api *API) UpdateAccessIdentityProviderAuthContexts(ctx context.Context, rc *ResourceContainer, identityProviderID string) (AccessIdentityProvider, error)
- func (api *API) UpdateAccessKeysConfig(ctx context.Context, accountID string, request AccessKeysConfigUpdateRequest) (AccessKeysConfig, error)
- func (api *API) UpdateAccessMutualTLSCertificate(ctx context.Context, rc *ResourceContainer, ...) (AccessMutualTLSCertificate, error)
- func (api *API) UpdateAccessMutualTLSHostnameSettings(ctx context.Context, rc *ResourceContainer, ...) ([]AccessMutualTLSHostnameSettings, error)
- func (api *API) UpdateAccessOrganization(ctx context.Context, rc *ResourceContainer, ...) (AccessOrganization, error)
- func (api *API) UpdateAccessPolicy(ctx context.Context, rc *ResourceContainer, params UpdateAccessPolicyParams) (AccessPolicy, error)
- func (api *API) UpdateAccessServiceToken(ctx context.Context, rc *ResourceContainer, ...) (AccessServiceTokenUpdateResponse, error)
- func (api *API) UpdateAccessUserSeat(ctx context.Context, rc *ResourceContainer, params UpdateAccessUserSeatParams) ([]AccessUpdateAccessUserSeatResult, error)
- func (api *API) UpdateAccessUsersSeats(ctx context.Context, rc *ResourceContainer, ...) ([]AccessUpdateAccessUserSeatResult, error)
- func (api *API) UpdateAccount(ctx context.Context, accountID string, account Account) (Account, error)
- func (api *API) UpdateAccountAccessRule(ctx context.Context, accountID, accessRuleID string, accessRule AccessRule) (*AccessRuleResponse, error)
- func (api *API) UpdateAccountMember(ctx context.Context, accountID string, userID string, member AccountMember) (AccountMember, error)
- func (api *API) UpdateAddressMap(ctx context.Context, rc *ResourceContainer, params UpdateAddressMapParams) (AddressMap, error)
- func (api *API) UpdateAdvertisementStatus(ctx context.Context, accountID, ID string, advertised bool) (AdvertisementStatus, error)
- func (api *API) UpdateArgoSmartRouting(ctx context.Context, zoneID, settingValue string) (ArgoFeatureSetting, error)
- func (api *API) UpdateArgoTieredCaching(ctx context.Context, zoneID, settingValue string) (ArgoFeatureSetting, error)
- func (api *API) UpdateAuditSSHSettings(ctx context.Context, rc *ResourceContainer, ...) (AuditSSHSettings, error)
- func (api *API) UpdateBehaviors(ctx context.Context, accountID string, behaviors Behaviors) (Behaviors, error)
- func (api *API) UpdateBotManagement(ctx context.Context, rc *ResourceContainer, params UpdateBotManagementParams) (BotManagement, error)
- func (api *API) UpdateCacheReserve(ctx context.Context, rc *ResourceContainer, params UpdateCacheReserveParams) (CacheReserve, error)
- func (api *API) UpdateCertificateAuthoritiesHostnameAssociations(ctx context.Context, rc *ResourceContainer, ...) ([]HostnameAssociation, error)
- func (api *API) UpdateCustomHostname(ctx context.Context, zoneID string, customHostnameID string, ch CustomHostname) (*CustomHostnameResponse, error)
- func (api *API) UpdateCustomHostnameFallbackOrigin(ctx context.Context, zoneID string, chfo CustomHostnameFallbackOrigin) (*CustomHostnameFallbackOriginResponse, error)
- func (api *API) UpdateCustomHostnameSSL(ctx context.Context, zoneID string, customHostnameID string, ...) (*CustomHostnameResponse, error)
- func (api *API) UpdateCustomNameserverZoneMetadata(ctx context.Context, rc *ResourceContainer, ...) error
- func (api *API) UpdateCustomPage(ctx context.Context, options *CustomPageOptions, customPageID string, ...) (CustomPage, error)
- func (api *API) UpdateDLPDataset(ctx context.Context, rc *ResourceContainer, params UpdateDLPDatasetParams) (DLPDataset, error)
- func (api *API) UpdateDLPPayloadLogSettings(ctx context.Context, rc *ResourceContainer, settings DLPPayloadLogSettings) (DLPPayloadLogSettings, error)
- func (api *API) UpdateDLPProfile(ctx context.Context, rc *ResourceContainer, params UpdateDLPProfileParams) (DLPProfile, error)
- func (api *API) UpdateDNSFirewallCluster(ctx context.Context, rc *ResourceContainer, ...) error
- func (api *API) UpdateDNSRecord(ctx context.Context, rc *ResourceContainer, params UpdateDNSRecordParams) (DNSRecord, error)
- func (api *API) UpdateDataLocalizationRegionalHostname(ctx context.Context, rc *ResourceContainer, ...) (RegionalHostname, error)
- func (api *API) UpdateDefaultDeviceSettingsPolicy(ctx context.Context, rc *ResourceContainer, ...) (DeviceSettingsPolicy, error)
- func (api *API) UpdateDeviceClientCertificates(ctx context.Context, rc *ResourceContainer, ...) (DeviceClientCertificates, error)
- func (api *API) UpdateDeviceDexTest(ctx context.Context, rc *ResourceContainer, params UpdateDeviceDexTestParams) (DeviceDexTest, error)
- func (api *API) UpdateDeviceManagedNetwork(ctx context.Context, rc *ResourceContainer, ...) (DeviceManagedNetwork, error)
- func (api *API) UpdateDevicePostureIntegration(ctx context.Context, accountID string, integration DevicePostureIntegration) (DevicePostureIntegration, error)
- func (api *API) UpdateDevicePostureRule(ctx context.Context, accountID string, rule DevicePostureRule) (DevicePostureRule, error)
- func (api *API) UpdateDeviceSettingsPolicy(ctx context.Context, rc *ResourceContainer, ...) (DeviceSettingsPolicy, error)
- func (api *API) UpdateEmailRoutingCatchAllRule(ctx context.Context, rc *ResourceContainer, params EmailRoutingCatchAllRule) (EmailRoutingCatchAllRule, error)
- func (api *API) UpdateEmailRoutingRule(ctx context.Context, rc *ResourceContainer, ...) (EmailRoutingRule, error)
- func (api *API) UpdateEntrypointRuleset(ctx context.Context, rc *ResourceContainer, ...) (Ruleset, error)
- func (api *API) UpdateFallbackDomain(ctx context.Context, accountID string, domains []FallbackDomain) ([]FallbackDomain, error)
- func (api *API) UpdateFallbackDomainDeviceSettingsPolicy(ctx context.Context, accountID, policyID string, domains []FallbackDomain) ([]FallbackDomain, error)
- func (api *API) UpdateFallbackOrigin(ctx context.Context, zoneID string, fbo FallbackOrigin) (*FallbackOriginResponse, error)
- func (api *API) UpdateFilter(ctx context.Context, rc *ResourceContainer, params FilterUpdateParams) (Filter, error)
- func (api *API) UpdateFilters(ctx context.Context, rc *ResourceContainer, params []FilterUpdateParams) ([]Filter, error)
- func (api *API) UpdateFirewallRule(ctx context.Context, rc *ResourceContainer, params FirewallRuleUpdateParams) (FirewallRule, error)
- func (api *API) UpdateFirewallRules(ctx context.Context, rc *ResourceContainer, params []FirewallRuleUpdateParams) ([]FirewallRule, error)
- func (api *API) UpdateHealthcheck(ctx context.Context, zoneID string, healthcheckID string, ...) (Healthcheck, error)
- func (api *API) UpdateHostnameTLSSetting(ctx context.Context, rc *ResourceContainer, ...) (HostnameTLSSetting, error)
- func (api *API) UpdateHostnameTLSSettingCiphers(ctx context.Context, rc *ResourceContainer, ...) (HostnameTLSSettingCiphers, error)
- func (api *API) UpdateHyperdriveConfig(ctx context.Context, rc *ResourceContainer, ...) (HyperdriveConfig, error)
- func (api *API) UpdateIPList(ctx context.Context, accountID, ID, description string) (IPList, error)deprecated
- func (api *API) UpdateImage(ctx context.Context, rc *ResourceContainer, params UpdateImageParams) (Image, error)
- func (api *API) UpdateImagesVariant(ctx context.Context, rc *ResourceContainer, params UpdateImagesVariantParams) (ImagesVariant, error)
- func (api *API) UpdateInfrastructureAccessTarget(ctx context.Context, rc *ResourceContainer, ...) (InfrastructureAccessTarget, error)
- func (api *API) UpdateKeylessSSL(ctx context.Context, zoneID, kelessSSLID string, ...) (KeylessSSL, error)
- func (api *API) UpdateList(ctx context.Context, rc *ResourceContainer, params ListUpdateParams) (List, error)
- func (api *API) UpdateLoadBalancer(ctx context.Context, rc *ResourceContainer, params UpdateLoadBalancerParams) (LoadBalancer, error)
- func (api *API) UpdateLoadBalancerMonitor(ctx context.Context, rc *ResourceContainer, ...) (LoadBalancerMonitor, error)
- func (api *API) UpdateLoadBalancerPool(ctx context.Context, rc *ResourceContainer, ...) (LoadBalancerPool, error)
- func (api *API) UpdateLogpushJob(ctx context.Context, rc *ResourceContainer, params UpdateLogpushJobParams) error
- func (api *API) UpdateMagicFirewallRuleset(ctx context.Context, accountID, ID string, description string, ...) (MagicFirewallRuleset, error)deprecated
- func (api *API) UpdateMagicTransitGRETunnel(ctx context.Context, accountID string, id string, tunnel MagicTransitGRETunnel) (MagicTransitGRETunnel, error)
- func (api *API) UpdateMagicTransitIPsecTunnel(ctx context.Context, accountID string, id string, ...) (MagicTransitIPsecTunnel, error)
- func (api *API) UpdateMagicTransitStaticRoute(ctx context.Context, accountID, ID string, route MagicTransitStaticRoute) (MagicTransitStaticRoute, error)
- func (api *API) UpdateNotificationPolicy(ctx context.Context, accountID string, policy *NotificationPolicy) (SaveResponse, error)
- func (api *API) UpdateNotificationWebhooks(ctx context.Context, accountID, webhookID string, ...) (SaveResponse, error)
- func (api *API) UpdatePageRule(ctx context.Context, zoneID, ruleID string, rule PageRule) error
- func (api *API) UpdatePageShieldPolicy(ctx context.Context, rc *ResourceContainer, ...) (*PageShieldPolicy, error)
- func (api *API) UpdatePageShieldSettings(ctx context.Context, rc *ResourceContainer, ...) (*PageShieldSettingsResponse, error)
- func (api *API) UpdatePagesProject(ctx context.Context, rc *ResourceContainer, params UpdatePagesProjectParams) (PagesProject, error)
- func (api *API) UpdatePrefixDescription(ctx context.Context, accountID, ID string, description string) (IPPrefix, error)
- func (api *API) UpdateQueue(ctx context.Context, rc *ResourceContainer, params UpdateQueueParams) (Queue, error)
- func (api *API) UpdateQueueConsumer(ctx context.Context, rc *ResourceContainer, params UpdateQueueConsumerParams) (QueueConsumer, error)
- func (api *API) UpdateRateLimit(ctx context.Context, zoneID, limitID string, limit RateLimit) (RateLimit, error)
- func (api *API) UpdateRegionalTieredCache(ctx context.Context, rc *ResourceContainer, ...) (RegionalTieredCache, error)
- func (api *API) UpdateRegistrarDomain(ctx context.Context, accountID, domainName string, ...) (RegistrarDomain, error)
- func (api *API) UpdateRiskScoreIntegration(ctx context.Context, rc *ResourceContainer, integrationID string, ...) (RiskScoreIntegration, error)
- func (api *API) UpdateRuleset(ctx context.Context, rc *ResourceContainer, params UpdateRulesetParams) (Ruleset, error)
- func (api *API) UpdateSSL(ctx context.Context, zoneID, certificateID string, ...) (ZoneCustomSSL, error)
- func (api *API) UpdateSecondaryDNSPrimary(ctx context.Context, accountID string, primary SecondaryDNSPrimary) (SecondaryDNSPrimary, error)
- func (api *API) UpdateSecondaryDNSTSIG(ctx context.Context, accountID string, tsig SecondaryDNSTSIG) (SecondaryDNSTSIG, error)
- func (api *API) UpdateSecondaryDNSZone(ctx context.Context, zoneID string, zone SecondaryDNSZone) (SecondaryDNSZone, error)
- func (api *API) UpdateSpectrumApplication(ctx context.Context, zoneID, appID string, appDetails SpectrumApplication) (SpectrumApplication, error)
- func (api *API) UpdateSplitTunnel(ctx context.Context, accountID string, mode string, tunnels []SplitTunnel) ([]SplitTunnel, error)
- func (api *API) UpdateSplitTunnelDeviceSettingsPolicy(ctx context.Context, accountID, policyID string, mode string, ...) ([]SplitTunnel, error)
- func (api *API) UpdateTeamsList(ctx context.Context, rc *ResourceContainer, params UpdateTeamsListParams) (TeamsList, error)
- func (api *API) UpdateTeamsLocation(ctx context.Context, accountID string, teamsLocation TeamsLocation) (TeamsLocation, error)
- func (api *API) UpdateTeamsProxyEndpoint(ctx context.Context, accountID string, proxyEndpoint TeamsProxyEndpoint) (TeamsProxyEndpoint, error)
- func (api *API) UpdateTunnel(ctx context.Context, rc *ResourceContainer, params TunnelUpdateParams) (Tunnel, error)
- func (api *API) UpdateTunnelConfiguration(ctx context.Context, rc *ResourceContainer, params TunnelConfigurationParams) (TunnelConfigurationResult, error)
- func (api *API) UpdateTunnelRoute(ctx context.Context, rc *ResourceContainer, params TunnelRoutesUpdateParams) (TunnelRoute, error)
- func (api *API) UpdateTunnelVirtualNetwork(ctx context.Context, rc *ResourceContainer, ...) (TunnelVirtualNetwork, error)
- func (api *API) UpdateTurnstileWidget(ctx context.Context, rc *ResourceContainer, params UpdateTurnstileWidgetParams) (TurnstileWidget, error)
- func (api *API) UpdateURLNormalizationSettings(ctx context.Context, rc *ResourceContainer, ...) (URLNormalizationSettings, error)
- func (api *API) UpdateUniversalSSLCertificatePackValidationMethod(ctx context.Context, zoneID string, certPackUUID string, ...) (UniversalSSLCertificatePackValidationMethodSetting, error)
- func (api *API) UpdateUser(ctx context.Context, user *User) (User, error)
- func (api *API) UpdateUserAccessRule(ctx context.Context, accessRuleID string, accessRule AccessRule) (*AccessRuleResponse, error)
- func (api *API) UpdateUserAgentRule(ctx context.Context, zoneID string, id string, ld UserAgentRule) (*UserAgentRuleResponse, error)
- func (api *API) UpdateWAFGroup(ctx context.Context, zoneID, packageID, groupID, mode string) (WAFGroup, error)
- func (api *API) UpdateWAFOverride(ctx context.Context, zoneID, overrideID string, override WAFOverride) (WAFOverride, error)
- func (api *API) UpdateWAFPackage(ctx context.Context, zoneID, packageID string, opts WAFPackageOptions) (WAFPackage, error)
- func (api *API) UpdateWAFRule(ctx context.Context, zoneID, packageID, ruleID, mode string) (WAFRule, error)
- func (api *API) UpdateWaitingRoom(ctx context.Context, zoneID string, waitingRoom WaitingRoom) (WaitingRoom, error)
- func (api *API) UpdateWaitingRoomEvent(ctx context.Context, zoneID string, waitingRoomID string, ...) (WaitingRoomEvent, error)
- func (api *API) UpdateWaitingRoomRule(ctx context.Context, rc *ResourceContainer, params UpdateWaitingRoomRuleParams) ([]WaitingRoomRule, error)
- func (api *API) UpdateWaitingRoomSettings(ctx context.Context, rc *ResourceContainer, ...) (WaitingRoomSettings, error)
- func (api *API) UpdateWeb3Hostname(ctx context.Context, params Web3HostnameUpdateParameters) (Web3Hostname, error)
- func (api *API) UpdateWebAnalyticsRule(ctx context.Context, rc *ResourceContainer, ...) (*WebAnalyticsRule, error)
- func (api *API) UpdateWebAnalyticsSite(ctx context.Context, rc *ResourceContainer, ...) (*WebAnalyticsSite, error)
- func (api *API) UpdateWorkerCronTriggers(ctx context.Context, rc *ResourceContainer, ...) ([]WorkerCronTrigger, error)
- func (api *API) UpdateWorkerRoute(ctx context.Context, rc *ResourceContainer, params UpdateWorkerRouteParams) (WorkerRouteResponse, error)
- func (api *API) UpdateWorkersKVNamespace(ctx context.Context, rc *ResourceContainer, ...) (Response, error)
- func (api *API) UpdateWorkersScriptContent(ctx context.Context, rc *ResourceContainer, ...) (WorkerScriptResponse, error)
- func (api *API) UpdateWorkersScriptSettings(ctx context.Context, rc *ResourceContainer, ...) (WorkerScriptSettingsResponse, error)
- func (api *API) UpdateZarazConfig(ctx context.Context, rc *ResourceContainer, params UpdateZarazConfigParams) (ZarazConfigResponse, error)
- func (api *API) UpdateZarazWorkflow(ctx context.Context, rc *ResourceContainer, params UpdateZarazWorkflowParams) (ZarazWorkflowResponse, error)
- func (api *API) UpdateZoneAccessRule(ctx context.Context, zoneID, accessRuleID string, accessRule AccessRule) (*AccessRuleResponse, error)
- func (api *API) UpdateZoneCacheVariants(ctx context.Context, zoneID string, variants ZoneCacheVariantsValues) (ZoneCacheVariants, error)
- func (api *API) UpdateZoneCloudConnectorRules(ctx context.Context, rc *ResourceContainer, params []CloudConnectorRule) ([]CloudConnectorRule, error)
- func (api *API) UpdateZoneDNSSEC(ctx context.Context, zoneID string, options ZoneDNSSECUpdateOptions) (ZoneDNSSEC, error)
- func (api *API) UpdateZoneLevelAccessBookmark(ctx context.Context, zoneID string, accessBookmark AccessBookmark) (AccessBookmark, error)
- func (api *API) UpdateZoneLockdown(ctx context.Context, rc *ResourceContainer, params ZoneLockdownUpdateParams) (ZoneLockdown, error)
- func (api *API) UpdateZoneManagedHeaders(ctx context.Context, rc *ResourceContainer, params UpdateManagedHeadersParams) (ManagedHeaders, error)
- func (api *API) UpdateZoneSSLSettings(ctx context.Context, zoneID string, sslValue string) (ZoneSSLSetting, error)
- func (api *API) UpdateZoneSetting(ctx context.Context, rc *ResourceContainer, params UpdateZoneSettingParams) (ZoneSetting, error)
- func (api *API) UpdateZoneSettings(ctx context.Context, zoneID string, settings []ZoneSetting) (*ZoneSettingResponse, error)
- func (api *API) UpdateZoneSnippet(ctx context.Context, rc *ResourceContainer, params SnippetRequest) (*Snippet, error)
- func (api *API) UpdateZoneSnippetsRules(ctx context.Context, rc *ResourceContainer, params []SnippetRule) ([]SnippetRule, error)
- func (api *API) UploadDLPDatasetVersion(ctx context.Context, rc *ResourceContainer, ...) (DLPDataset, error)
- func (api *API) UploadImage(ctx context.Context, rc *ResourceContainer, params UploadImageParams) (Image, error)
- func (api *API) UploadPerHostnameAuthenticatedOriginPullsCertificate(ctx context.Context, zoneID string, ...) (PerHostnameAuthenticatedOriginPullsCertificateDetails, error)
- func (api *API) UploadPerZoneAuthenticatedOriginPullsCertificate(ctx context.Context, zoneID string, ...) (PerZoneAuthenticatedOriginPullsCertificateDetails, error)
- func (api *API) UploadWorker(ctx context.Context, rc *ResourceContainer, params CreateWorkerParams) (WorkerScriptResponse, error)
- func (api *API) UserAccessRule(ctx context.Context, accessRuleID string) (*AccessRuleResponse, error)
- func (api *API) UserAgentRule(ctx context.Context, zoneID string, id string) (*UserAgentRuleResponse, error)
- func (api *API) UserBillingHistory(ctx context.Context, pageOpts UserBillingOptions) ([]UserBillingHistory, error)
- func (api *API) UserBillingProfile(ctx context.Context) (UserBillingProfile, error)
- func (api *API) UserDetails(ctx context.Context) (User, error)
- func (api *API) ValidateFilterExpression(ctx context.Context, expression string) error
- func (api *API) ValidateLogpushOwnershipChallenge(ctx context.Context, rc *ResourceContainer, ...) (bool, error)
- func (api *API) VerifyAPIToken(ctx context.Context) (APITokenVerifyBody, error)
- func (api *API) WAFGroup(ctx context.Context, zoneID, packageID, groupID string) (WAFGroup, error)
- func (api *API) WAFOverride(ctx context.Context, zoneID, overrideID string) (WAFOverride, error)
- func (api *API) WAFPackage(ctx context.Context, zoneID, packageID string) (WAFPackage, error)
- func (api *API) WAFRule(ctx context.Context, zoneID, packageID, ruleID string) (WAFRule, error)
- func (api *API) WaitingRoom(ctx context.Context, zoneID, waitingRoomID string) (WaitingRoom, error)
- func (api *API) WaitingRoomEvent(ctx context.Context, zoneID string, waitingRoomID string, eventID string) (WaitingRoomEvent, error)
- func (api *API) WaitingRoomEventPreview(ctx context.Context, zoneID string, waitingRoomID string, eventID string) (WaitingRoomEvent, error)
- func (api *API) WaitingRoomPagePreview(ctx context.Context, zoneID, customHTML string) (WaitingRoomPagePreviewURL, error)
- func (api *API) WaitingRoomStatus(ctx context.Context, zoneID, waitingRoomID string) (WaitingRoomStatus, error)
- func (api *API) WorkersAccountSettings(ctx context.Context, rc *ResourceContainer, ...) (WorkersAccountSettings, error)
- func (api *API) WorkersCreateSubdomain(ctx context.Context, rc *ResourceContainer, params WorkersSubdomain) (WorkersSubdomain, error)
- func (api *API) WorkersGetSubdomain(ctx context.Context, rc *ResourceContainer) (WorkersSubdomain, error)
- func (api *API) WriteWorkersKVEntries(ctx context.Context, rc *ResourceContainer, params WriteWorkersKVEntriesParams) (Response, error)
- func (api *API) WriteWorkersKVEntry(ctx context.Context, rc *ResourceContainer, params WriteWorkersKVEntryParams) (Response, error)
- func (api *API) ZoneAccessRule(ctx context.Context, zoneID string, accessRuleID string) (*AccessRuleResponse, error)
- func (api *API) ZoneActivationCheck(ctx context.Context, zoneID string) (Response, error)
- func (api *API) ZoneAnalyticsByColocation(ctx context.Context, zoneID string, options ZoneAnalyticsOptions) ([]ZoneAnalyticsColocation, error)
- func (api *API) ZoneAnalyticsDashboard(ctx context.Context, zoneID string, options ZoneAnalyticsOptions) (ZoneAnalyticsData, error)
- func (api *API) ZoneCacheVariants(ctx context.Context, zoneID string) (ZoneCacheVariants, error)
- func (api *API) ZoneDNSSECSetting(ctx context.Context, zoneID string) (ZoneDNSSEC, error)
- func (api *API) ZoneDetails(ctx context.Context, zoneID string) (Zone, error)
- func (api *API) ZoneExport(ctx context.Context, zoneID string) (string, error)
- func (api *API) ZoneIDByName(zoneName string) (string, error)
- func (api *API) ZoneLevelAccessBookmark(ctx context.Context, zoneID, bookmarkID string) (AccessBookmark, error)
- func (api *API) ZoneLevelAccessBookmarks(ctx context.Context, zoneID string, pageOpts PaginationOptions) ([]AccessBookmark, ResultInfo, error)
- func (api *API) ZoneLockdown(ctx context.Context, rc *ResourceContainer, id string) (ZoneLockdown, error)
- func (api *API) ZoneSSLSettings(ctx context.Context, zoneID string) (ZoneSSLSetting, error)
- func (api *API) ZoneSetPaused(ctx context.Context, zoneID string, paused bool) (Zone, error)
- func (api *API) ZoneSetPlan(ctx context.Context, zoneID string, planType string) error
- func (api *API) ZoneSetType(ctx context.Context, zoneID string, zoneType string) (Zone, error)
- func (api *API) ZoneSetVanityNS(ctx context.Context, zoneID string, ns []string) (Zone, error)
- func (api *API) ZoneSettings(ctx context.Context, zoneID string) (*ZoneSettingResponse, error)
- func (api *API) ZoneUpdatePlan(ctx context.Context, zoneID string, planType string) error
- type APIResponse
- type APIShield
- type APIShieldBasicOperation
- type APIShieldCreateSchemaEvent
- type APIShieldCreateSchemaEventWithLocation
- type APIShieldCreateSchemaEventWithLocations
- type APIShieldCreateSchemaEvents
- type APIShieldCreateSchemaResponse
- type APIShieldCreateSchemaResult
- type APIShieldDeleteOperationResponse
- type APIShieldDeleteSchemaResponse
- type APIShieldDiscoveryOperation
- type APIShieldDiscoveryOrigin
- type APIShieldDiscoveryState
- type APIShieldGetOperationResponse
- type APIShieldGetOperationsResponse
- type APIShieldGetSchemaResponse
- type APIShieldListDiscoveryOperationsResponse
- type APIShieldListOperationsFilters
- type APIShieldListSchemasResponse
- type APIShieldOperation
- type APIShieldOperationSchemaValidationSettings
- type APIShieldOperationSchemaValidationSettingsResponse
- type APIShieldPatchDiscoveryOperationResponse
- type APIShieldPatchDiscoveryOperationsResponse
- type APIShieldPatchSchemaResponse
- type APIShieldResponse
- type APIShieldSchema
- type APIShieldSchemaValidationSettings
- type APIShieldSchemaValidationSettingsResponse
- type APIToken
- type APITokenCondition
- type APITokenListResponse
- type APITokenPermissionGroups
- type APITokenPermissionGroupsResponse
- type APITokenPolicies
- type APITokenRequestIPCondition
- type APITokenResponse
- type APITokenRollResponse
- type APITokenVerifyBody
- type APITokenVerifyResponse
- type ASNInfo
- type AccessAppLauncherCustomization
- type AccessApplication
- type AccessApplicationCorsHeaders
- type AccessApplicationDetailResponse
- type AccessApplicationGatewayRule
- type AccessApplicationHybridAndImplicitOptions
- type AccessApplicationListResponse
- type AccessApplicationMultipleScimAuthentication
- type AccessApplicationSCIMConfig
- type AccessApplicationScimAuthentication
- type AccessApplicationScimAuthenticationHttpBasic
- type AccessApplicationScimAuthenticationJson
- type AccessApplicationScimAuthenticationOauth2
- type AccessApplicationScimAuthenticationOauthBearerToken
- type AccessApplicationScimAuthenticationScheme
- type AccessApplicationScimAuthenticationServiceToken
- type AccessApplicationScimAuthenticationSingleJSON
- type AccessApplicationScimMapping
- type AccessApplicationScimMappingOperations
- type AccessApplicationType
- type AccessApprovalGroup
- type AccessAuditLogFilterOptions
- type AccessAuditLogListResponse
- type AccessAuditLogRecord
- type AccessAuthContext
- type AccessAuthContextsListResponse
- type AccessBookmark
- type AccessBookmarkDetailResponse
- type AccessBookmarkListResponse
- type AccessCACertificate
- type AccessCACertificateListResponse
- type AccessCACertificateResponse
- type AccessConfig
- type AccessCustomPage
- type AccessCustomPageListResponse
- type AccessCustomPageResponse
- type AccessCustomPageType
- type AccessDestination
- type AccessDestinationType
- type AccessFooterLink
- type AccessGroup
- type AccessGroupAccessGroup
- type AccessGroupAnyValidServiceToken
- type AccessGroupAuthMethod
- type AccessGroupAzure
- type AccessGroupAzureAuthContext
- type AccessGroupCertificate
- type AccessGroupCertificateCommonName
- type AccessGroupDetailResponse
- type AccessGroupDevicePosture
- type AccessGroupEmail
- type AccessGroupEmailDomain
- type AccessGroupEmailList
- type AccessGroupEveryone
- type AccessGroupExternalEvaluation
- type AccessGroupGSuite
- type AccessGroupGeo
- type AccessGroupGitHub
- type AccessGroupIP
- type AccessGroupIPList
- type AccessGroupListResponse
- type AccessGroupLoginMethod
- type AccessGroupOkta
- type AccessGroupSAML
- type AccessGroupServiceToken
- type AccessIdentityProvider
- type AccessIdentityProviderConfiguration
- type AccessIdentityProviderResponse
- type AccessIdentityProviderScimConfiguration
- type AccessIdentityProvidersListResponse
- type AccessInfrastructureConnectionRules
- type AccessInfrastructureConnectionRulesSSH
- type AccessInfrastructureProtocol
- type AccessInfrastructureTargetContext
- type AccessKeysConfig
- type AccessKeysConfigUpdateRequest
- type AccessLandingPageDesign
- type AccessMutualTLSCertificate
- type AccessMutualTLSCertificateDetailResponse
- type AccessMutualTLSCertificateListResponse
- type AccessMutualTLSHostnameSettings
- type AccessOrganization
- type AccessOrganizationCustomPages
- type AccessOrganizationDetailResponse
- type AccessOrganizationListResponse
- type AccessOrganizationLoginDesign
- type AccessPolicy
- type AccessPolicyDetailResponse
- type AccessPolicyListResponse
- type AccessRule
- type AccessRuleConfiguration
- type AccessRuleListResponse
- type AccessRuleResponse
- type AccessRuleScope
- type AccessServiceToken
- type AccessServiceTokenCreateResponse
- type AccessServiceTokenRefreshResponse
- type AccessServiceTokenRotateResponse
- type AccessServiceTokenUpdateResponse
- type AccessServiceTokensCreationDetailResponse
- type AccessServiceTokensDetailResponse
- type AccessServiceTokensListResponse
- type AccessServiceTokensRefreshDetailResponse
- type AccessServiceTokensRotateSecretDetailResponse
- type AccessServiceTokensUpdateDetailResponse
- type AccessTag
- type AccessTagListResponse
- type AccessTagResponse
- type AccessUpdateAccessUserSeatResult
- type AccessUser
- type AccessUserActiveSessionMetadata
- type AccessUserActiveSessionMetadataApp
- type AccessUserActiveSessionResult
- type AccessUserActiveSessionsResponse
- type AccessUserDevicePosture
- type AccessUserDevicePostureCheck
- type AccessUserDeviceSession
- type AccessUserFailedLoginMetadata
- type AccessUserFailedLoginResult
- type AccessUserFailedLoginsResponse
- type AccessUserIDP
- type AccessUserIdentityGeo
- type AccessUserLastSeenIdentityResponse
- type AccessUserLastSeenIdentityResult
- type AccessUserLastSeenIdentitySessionResponse
- type AccessUserListResponse
- type AccessUserMTLSAuth
- type AccessUserParams
- type Account
- type AccountDetailResponse
- type AccountListResponse
- type AccountMember
- type AccountMemberDetailResponse
- type AccountMemberInvitation
- type AccountMemberUserDetails
- type AccountMembersListResponse
- type AccountResponse
- type AccountRole
- type AccountRoleDetailResponse
- type AccountRolePermission
- type AccountRolesListResponse
- type AccountSettings
- type AccountsListParams
- type AdaptiveRouting
- type AdditionalInformation
- type AddressMap
- type AddressMapIP
- type AddressMapMembership
- type AddressMapMembershipContainer
- type AddressMapMembershipKind
- type AdvertisementStatus
- type AdvertisementStatusUpdateRequest
- type AlertHistoryFilter
- type Application
- type ArgoDetailsResponse
- type ArgoFeatureSetting
- type ArgoTunnel
- type ArgoTunnelConnection
- type ArgoTunnelDetailResponse
- type ArgoTunnelsDetailResponse
- type AttachWorkersDomainParams
- type AuditLog
- type AuditLogAction
- type AuditLogActor
- type AuditLogFilter
- type AuditLogOwner
- type AuditLogResource
- type AuditLogResponse
- type AuditSSHRuleSettings
- type AuditSSHSettings
- type AuditSSHSettingsResponse
- type AuthIdCharacteristics
- type AuthenticatedOriginPulls
- type AuthenticatedOriginPullsResponse
- type AuthenticationError
- func (e AuthenticationError) Error() string
- func (e AuthenticationError) ErrorCodes() []int
- func (e AuthenticationError) ErrorMessages() []string
- func (e AuthenticationError) Errors() []ResponseInfo
- func (e AuthenticationError) InternalErrorCodeIs(code int) bool
- func (e AuthenticationError) RayID() string
- func (e AuthenticationError) Type() ErrorType
- func (e AuthenticationError) Unwrap() error
- type AuthorizationError
- func (e AuthorizationError) Error() string
- func (e AuthorizationError) ErrorCodes() []int
- func (e AuthorizationError) ErrorMessages() []string
- func (e AuthorizationError) Errors() []ResponseInfo
- func (e AuthorizationError) InternalErrorCodeIs(code int) bool
- func (e AuthorizationError) RayID() string
- func (e AuthorizationError) Type() ErrorType
- func (e AuthorizationError) Unwrap() error
- type AvailableZonePlansResponse
- type AvailableZoneRatePlansResponse
- type Behavior
- type BehaviorResponse
- type Behaviors
- type BelongsToRef
- type BotManagement
- type BotManagementResponse
- type BrowserIsolation
- type CacheReserve
- type CacheReserveDetailsResponse
- type Categories
- type Categorizations
- type CertificateLocations
- type CertificatePack
- type CertificatePackCertificate
- type CertificatePackGeoRestrictions
- type CertificatePackRequest
- type CertificatePacksDetailResponse
- type CertificatePacksResponse
- type CloudConnectorRule
- type CloudConnectorRuleParameters
- type CloudConnectorRulesResponse
- type Config
- type Connection
- type ContentCategories
- type ContentScanningAddCustomExpressionsParams
- type ContentScanningAddCustomExpressionsResponse
- type ContentScanningCustomExpression
- type ContentScanningCustomPayload
- type ContentScanningDeleteCustomExpressionsParams
- type ContentScanningDeleteCustomExpressionsResponse
- type ContentScanningDisableParams
- type ContentScanningDisableResponse
- type ContentScanningEnableParams
- type ContentScanningEnableResponse
- type ContentScanningListCustomExpressionsParams
- type ContentScanningListCustomExpressionsResponse
- type ContentScanningStatusParams
- type ContentScanningStatusResponse
- type ContentScanningStatusResult
- type CreateAPIShieldOperationsParams
- type CreateAPIShieldSchemaParams
- type CreateAccessApplicationParams
- type CreateAccessCACertificateParams
- type CreateAccessCustomPageParams
- type CreateAccessGroupParams
- type CreateAccessIdentityProviderParams
- type CreateAccessMutualTLSCertificateParams
- type CreateAccessOrganizationParams
- type CreateAccessPolicyParams
- type CreateAccessServiceTokenParams
- type CreateAccessTagParams
- type CreateAccountMemberParams
- type CreateAddressMapParams
- type CreateCustomNameserversParams
- type CreateD1DatabaseParams
- type CreateDLPDatasetParams
- type CreateDLPDatasetResponse
- type CreateDLPDatasetResult
- type CreateDLPDatasetUploadParams
- type CreateDLPDatasetUploadResponse
- type CreateDLPDatasetUploadResult
- type CreateDLPProfilesParams
- type CreateDNSFirewallClusterParams
- type CreateDNSRecordParams
- type CreateDataLocalizationRegionalHostnameParams
- type CreateDeviceDexTestParams
- type CreateDeviceManagedNetworkParams
- type CreateDeviceSettingsPolicyParams
- type CreateEmailRoutingAddressParameters
- type CreateEmailRoutingAddressResponse
- type CreateEmailRoutingRuleParameters
- type CreateEmailRoutingRuleResponse
- type CreateHyperdriveConfigParams
- type CreateIPAddressToAddressMapParams
- type CreateImageDirectUploadURLParams
- type CreateImagesVariantParams
- type CreateInfrastructureAccessTargetParams
- type CreateLoadBalancerMonitorParams
- type CreateLoadBalancerParams
- type CreateLoadBalancerPoolParams
- type CreateLogpushJobParams
- type CreateMTLSCertificateParams
- type CreateMagicFirewallRulesetRequest
- type CreateMagicFirewallRulesetResponse
- type CreateMagicTransitGRETunnelsRequest
- type CreateMagicTransitIPsecTunnelsRequest
- type CreateMagicTransitStaticRoutesRequest
- type CreateMembershipToAddressMapParams
- type CreateObservatoryPageTestParams
- type CreateObservatoryPageTestSettings
- type CreateObservatoryScheduledPageTestParams
- type CreateObservatoryScheduledPageTestResponse
- type CreateOriginCertificateParams
- type CreatePageShieldPolicyParams
- type CreatePagesDeploymentParams
- type CreatePagesProjectParams
- type CreateQueueConsumerParams
- type CreateQueueParams
- type CreateR2BucketParameters
- type CreateRulesetParams
- type CreateRulesetResponse
- type CreateTeamsListParams
- type CreateTurnstileWidgetParams
- type CreateWaitingRoomRuleParams
- type CreateWebAnalyticsRule
- type CreateWebAnalyticsRuleParams
- type CreateWebAnalyticsSiteParams
- type CreateWorkerParams
- type CreateWorkerRouteParams
- type CreateWorkersAccountSettingsParameters
- type CreateWorkersAccountSettingsResponse
- type CreateWorkersForPlatformsDispatchNamespaceParams
- type CreateWorkersKVNamespaceParams
- type CreateZoneHoldParams
- type CustomHostname
- type CustomHostnameFallbackOrigin
- type CustomHostnameFallbackOriginResponse
- type CustomHostnameListResponse
- type CustomHostnameOwnershipVerification
- type CustomHostnameOwnershipVerificationHTTP
- type CustomHostnameResponse
- type CustomHostnameSSL
- type CustomHostnameSSLCertificates
- type CustomHostnameSSLSettings
- type CustomHostnameStatus
- type CustomMetadata
- type CustomNameserver
- type CustomNameserverRecord
- type CustomNameserverResult
- type CustomNameserverZoneMetadata
- type CustomPage
- type CustomPageDetailResponse
- type CustomPageOptions
- type CustomPageParameters
- type CustomPageResponse
- type D1Binding
- type D1BindingMap
- type D1Database
- type D1DatabaseMetadata
- type D1DatabaseResponse
- type D1Result
- type DCVDelegation
- type DCVDelegationResponse
- type DLPContextAwareness
- type DLPContextAwarenessSkip
- type DLPDataset
- type DLPDatasetGetResponse
- type DLPDatasetListResponse
- type DLPDatasetUpload
- type DLPEntry
- type DLPPattern
- type DLPPayloadLogSettings
- type DLPPayloadLogSettingsResponse
- type DLPProfile
- type DLPProfileListResponse
- type DLPProfileResponse
- type DLPProfilesCreateRequest
- type DNSFirewallAnalytics
- type DNSFirewallAnalyticsMetrics
- type DNSFirewallCluster
- type DNSFirewallUserAnalyticsOptions
- type DNSListResponse
- type DNSRecord
- type DNSRecordResponse
- type DNSRecordSettings
- type DeleteAPIShieldOperationParams
- type DeleteAPIShieldSchemaParams
- type DeleteAccessPolicyParams
- type DeleteCustomNameserversParams
- type DeleteDeviceSettingsPolicyResponse
- type DeleteHostnameTLSSettingCiphersParams
- type DeleteHostnameTLSSettingParams
- type DeleteIPAddressFromAddressMapParams
- type DeleteMagicTransitGRETunnelResponse
- type DeleteMagicTransitIPsecTunnelResponse
- type DeleteMagicTransitStaticRouteResponse
- type DeleteMembershipFromAddressMapParams
- type DeleteObservatoryPageTestsParams
- type DeleteObservatoryScheduledPageTestParams
- type DeletePagesDeploymentParams
- type DeleteQueueConsumerParams
- type DeleteRulesetRuleParams
- type DeleteWaitingRoomRuleParams
- type DeleteWebAnalyticsRuleParams
- type DeleteWebAnalyticsSiteParams
- type DeleteWorkerParams
- type DeleteWorkersKVEntriesParams
- type DeleteWorkersKVEntryParams
- type DeleteWorkersSecretParams
- type DeleteZoneHoldParams
- type DeviceClientCertificates
- type DeviceDexTest
- type DeviceDexTestData
- type DeviceDexTestListResponse
- type DeviceDexTestResponse
- type DeviceDexTests
- type DeviceManagedNetwork
- type DeviceManagedNetworkListResponse
- type DeviceManagedNetworkResponse
- type DevicePostureIntegration
- type DevicePostureIntegrationConfig
- type DevicePostureIntegrationListResponse
- type DevicePostureIntegrationResponse
- type DevicePostureRule
- type DevicePostureRuleDetailResponse
- type DevicePostureRuleInput
- type DevicePostureRuleListResponse
- type DevicePostureRuleMatch
- type DeviceSettingsPolicy
- type DeviceSettingsPolicyResponse
- type DiagnosticsTracerouteConfiguration
- type DiagnosticsTracerouteConfigurationOptions
- type DiagnosticsTracerouteResponse
- type DiagnosticsTracerouteResponseColo
- type DiagnosticsTracerouteResponseColos
- type DiagnosticsTracerouteResponseHops
- type DiagnosticsTracerouteResponseNodes
- type DiagnosticsTracerouteResponseResult
- type DispatchNamespaceBinding
- type DomainDetails
- type DomainDetailsResponse
- type DomainHistory
- type Duration
- type EgressSettings
- type EmailRoutingCatchAllRule
- type EmailRoutingCatchAllRuleResponse
- type EmailRoutingDNSSettingsResponse
- type EmailRoutingDestinationAddress
- type EmailRoutingRule
- type EmailRoutingRuleAction
- type EmailRoutingRuleMatcher
- type EmailRoutingSettings
- type EmailRoutingSettingsResponse
- type Enabled
- type EnvVarType
- type EnvironmentVariable
- type EnvironmentVariableMap
- type Error
- type ErrorType
- type ExportDNSRecordsParams
- type FallbackDomain
- type FallbackDomainResponse
- type FallbackOrigin
- type FallbackOriginResponse
- type FileType
- type Filter
- type FilterCreateParams
- type FilterDetailResponse
- type FilterListParams
- type FilterUpdateParams
- type FilterValidateExpression
- type FilterValidateExpressionResponse
- type FilterValidationExpressionMessage
- type FiltersDetailResponse
- type FirewallRule
- type FirewallRuleCreateParams
- type FirewallRuleListParams
- type FirewallRuleResponse
- type FirewallRuleUpdateParams
- type FirewallRulesDetailResponse
- type GatewayCategoriesResponse
- type GatewayCategory
- type GenerateMagicTransitIPsecTunnelPSKResponse
- type GetAPIShieldOperationParams
- type GetAPIShieldOperationSchemaValidationSettingsParams
- type GetAPIShieldSchemaParams
- type GetAccessMutualTLSHostnameSettingsResponse
- type GetAccessOrganizationParams
- type GetAccessPolicyParams
- type GetAccessUserLastSeenIdentityResult
- type GetAccessUserSingleActiveSessionResponse
- type GetAccessUserSingleActiveSessionResult
- type GetAddressMapResponse
- type GetAdvertisementStatusResponse
- type GetAuditSSHSettingsParams
- type GetBulkDomainDetailsParameters
- type GetBulkDomainDetailsResponse
- type GetCacheReserveParams
- type GetCustomNameserverZoneMetadataParams
- type GetCustomNameserversParams
- type GetDCVDelegationParams
- type GetDLPPayloadLogSettingsParams
- type GetDNSFirewallClusterParams
- type GetDNSFirewallUserAnalyticsParams
- type GetDefaultDeviceSettingsPolicyParams
- type GetDeviceClientCertificatesParams
- type GetDeviceSettingsPolicyParams
- type GetDomainDetailsParameters
- type GetDomainHistoryParameters
- type GetDomainHistoryResponse
- type GetEligibleZonesAccountCustomNameserversParams
- type GetEmailRoutingRuleResponse
- type GetIPPrefixResponse
- type GetLogpushFieldsParams
- type GetLogpushOwnershipChallengeParams
- type GetMagicFirewallRulesetResponse
- type GetMagicTransitGRETunnelResponse
- type GetMagicTransitIPsecTunnelResponse
- type GetMagicTransitStaticRouteResponse
- type GetObservatoryPageTestParams
- type GetObservatoryPageTrendParams
- type GetObservatoryScheduledPageTestParams
- type GetPageShieldSettingsParams
- type GetPagesDeploymentInfoParams
- type GetPagesDeploymentLogsParams
- type GetPagesDeploymentStageLogsParams
- type GetRegionalTieredCacheParams
- type GetRulesetResponse
- type GetWebAnalyticsSiteParams
- type GetWorkersForPlatformsDispatchNamespaceResponse
- type GetWorkersKVParams
- type GetZarazConfigsByIdResponse
- type GetZoneHoldParams
- type GetZoneSettingParams
- type Healthcheck
- type HealthcheckHTTPConfig
- type HealthcheckListResponse
- type HealthcheckResponse
- type HealthcheckTCPConfig
- type Hostname
- type HostnameAssociation
- type HostnameAssociations
- type HostnameAssociationsResponse
- type HostnameAssociationsUpdateRequest
- type HostnameTLSSetting
- type HostnameTLSSettingCiphers
- type HostnameTLSSettingCiphersResponse
- type HostnameTLSSettingResponse
- type HostnameTLSSettingsCiphersResponse
- type HostnameTLSSettingsResponse
- type HyperdriveConfig
- type HyperdriveConfigCaching
- type HyperdriveConfigListResponse
- type HyperdriveConfigOrigin
- type HyperdriveConfigOriginWithSecrets
- type HyperdriveConfigResponse
- type HyperdriveOriginType
- type IPAccessRule
- type IPAccessRuleConfiguration
- type IPAccessRulesModeOption
- type IPIntelligence
- type IPIntelligenceItem
- type IPIntelligenceListParameters
- type IPIntelligenceListResponse
- type IPIntelligenceParameters
- type IPIntelligencePassiveDNSParameters
- type IPIntelligencePassiveDNSResponse
- type IPIntelligenceResponse
- type IPList
- type IPListBulkOperation
- type IPListBulkOperationResponse
- type IPListCreateRequest
- type IPListDeleteResponse
- type IPListItem
- type IPListItemCreateRequest
- type IPListItemCreateResponse
- type IPListItemDeleteItemRequest
- type IPListItemDeleteRequest
- type IPListItemDeleteResponse
- type IPListItemsGetResponse
- type IPListItemsListResponse
- type IPListListResponse
- type IPListResponse
- type IPListUpdateRequest
- type IPPassiveDNS
- type IPPrefix
- type IPPrefixUpdateRequest
- type IPRanges
- type IPRangesResponse
- type IPsResponse
- type Image
- type ImageDetailsResponse
- type ImageDirectUploadURL
- type ImageDirectUploadURLResponse
- type ImagesAPIVersion
- type ImagesListResponse
- type ImagesStatsCount
- type ImagesStatsResponse
- type ImagesVariant
- type ImagesVariantResponse
- type ImagesVariantResult
- type ImagesVariantsOptions
- type ImportDNSRecordsParams
- type InfrastructureAccessTarget
- type InfrastructureAccessTargetDetailResponse
- type InfrastructureAccessTargetIPDetails
- type InfrastructureAccessTargetIPInfo
- type InfrastructureAccessTargetListDetailResponse
- type InfrastructureAccessTargetListParams
- type InfrastructureAccessTargetParams
- type IngressIPRule
- type IntelligenceASNOverviewParameters
- type IntelligenceASNResponse
- type IntelligenceASNSubnetResponse
- type IntelligenceASNSubnetsParameters
- type KeylessSSL
- type KeylessSSLCreateRequest
- type KeylessSSLDetailResponse
- type KeylessSSLListResponse
- type KeylessSSLUpdateRequest
- type LeakCredentialCheckSetStatusParams
- type LeakCredentialCheckStatusResponse
- type LeakedCredentialCheckCreateDetectionParams
- type LeakedCredentialCheckCreateDetectionResponse
- type LeakedCredentialCheckDeleteDetectionParams
- type LeakedCredentialCheckDeleteDetectionResponse
- type LeakedCredentialCheckDetectionEntry
- type LeakedCredentialCheckGetStatusParams
- type LeakedCredentialCheckListDetectionsParams
- type LeakedCredentialCheckListDetectionsResponse
- type LeakedCredentialCheckStatus
- type LeakedCredentialCheckUpdateDetectionParams
- type LeakedCredentialCheckUpdateDetectionResponse
- type Level
- type LeveledLogger
- type LeveledLoggerInterface
- type List
- type ListAPIShieldDiscoveryOperationsParams
- type ListAPIShieldOperationsParams
- type ListAPIShieldSchemasParams
- type ListAccessApplicationsParams
- type ListAccessCACertificatesParams
- type ListAccessCustomPagesParams
- type ListAccessGroupsParams
- type ListAccessIdentityProvidersParams
- type ListAccessMutualTLSCertificatesParams
- type ListAccessPoliciesParams
- type ListAccessServiceTokensParams
- type ListAccessTagsParams
- type ListAccountRolesParams
- type ListAddressMapResponse
- type ListAddressMapsParams
- type ListBulkOperation
- type ListBulkOperationResponse
- type ListCertificateAuthoritiesHostnameAssociationsParams
- type ListCreateItemParams
- type ListCreateItemsParams
- type ListCreateParams
- type ListCreateRequest
- type ListD1DatabasesParams
- type ListD1Response
- type ListDLPDatasetsParams
- type ListDLPProfilesParams
- type ListDNSFirewallClustersParams
- type ListDNSRecordsParams
- type ListDataLocalizationRegionalHostnamesParams
- type ListDataLocalizationRegionsParams
- type ListDeleteItemsParams
- type ListDeleteParams
- type ListDeleteResponse
- type ListDeviceDexTestParams
- type ListDeviceManagedNetworksParams
- type ListDeviceSettingsPoliciesParams
- type ListDeviceSettingsPoliciesResponse
- type ListDirection
- type ListEmailRoutingAddressParameters
- type ListEmailRoutingAddressResponse
- type ListEmailRoutingRuleResponse
- type ListEmailRoutingRulesParameters
- type ListGatewayCategoriesParams
- type ListGetBulkOperationParams
- type ListGetItemParams
- type ListGetParams
- type ListHostnameTLSSettingsCiphersParams
- type ListHostnameTLSSettingsParams
- type ListHyperdriveConfigParams
- type ListIPAccessRulesFilters
- type ListIPAccessRulesMatchOption
- type ListIPAccessRulesOrderOption
- type ListIPAccessRulesParams
- type ListIPAccessRulesResponse
- type ListIPPrefixResponse
- type ListImageVariantsParams
- type ListImageVariantsResult
- type ListImagesParams
- type ListImagesVariantsResponse
- type ListItem
- type ListItemCreateRequest
- type ListItemCreateResponse
- type ListItemDeleteItemRequest
- type ListItemDeleteRequest
- type ListItemDeleteResponse
- type ListItemsGetResponse
- type ListItemsListResponse
- type ListListItemsParams
- type ListListResponse
- type ListListsParams
- type ListLoadBalancerMonitorParams
- type ListLoadBalancerParams
- type ListLoadBalancerPoolParams
- type ListLogpushJobsForDatasetParams
- type ListLogpushJobsParams
- type ListMTLSCertificateAssociationsParams
- type ListMTLSCertificatesParams
- type ListMagicFirewallRulesetResponse
- type ListMagicTransitGRETunnelsResponse
- type ListMagicTransitIPsecTunnelsResponse
- type ListMagicTransitStaticRoutesResponse
- type ListManagedHeadersParams
- type ListManagedHeadersResponse
- type ListObservatoryPageTestParams
- type ListObservatoryPagesParams
- type ListOriginCertificatesParams
- type ListPageShieldConnectionsParams
- type ListPageShieldConnectionsResponse
- type ListPageShieldPoliciesParams
- type ListPageShieldPoliciesResponse
- type ListPageShieldScriptsParams
- type ListPagesDeploymentsParams
- type ListPagesProjectsParams
- type ListPermissionGroupParams
- type ListQueueConsumersParams
- type ListQueueConsumersResponse
- type ListQueuesParams
- type ListR2BucketsParams
- type ListReplaceItemsParams
- type ListResponse
- type ListRiskScoreIntegrationParams
- type ListRulesetResponse
- type ListRulesetsParams
- type ListStorageKeysResponse
- type ListTeamListsParams
- type ListTeamsListItemsParams
- type ListTurnstileWidgetParams
- type ListTurnstileWidgetResponse
- type ListUpdateParams
- type ListUpdateRequest
- type ListWaitingRoomRuleParams
- type ListWebAnalyticsRulesParams
- type ListWebAnalyticsSitesParams
- type ListWorkerBindingsParams
- type ListWorkerCronTriggersParams
- type ListWorkerRoutes
- type ListWorkerRoutesParams
- type ListWorkersDomainParams
- type ListWorkersForPlatformsDispatchNamespaceResponse
- type ListWorkersKVNamespacesParams
- type ListWorkersKVNamespacesResponse
- type ListWorkersKVsParams
- type ListWorkersParams
- type ListWorkersSecretsParams
- type ListWorkersTailParameters
- type ListWorkersTailResponse
- type ListZarazConfigHistoryParams
- type LoadBalancer
- type LoadBalancerFixedResponseData
- type LoadBalancerLoadShedding
- type LoadBalancerMonitor
- type LoadBalancerOrigin
- type LoadBalancerOriginHealth
- type LoadBalancerOriginSteering
- type LoadBalancerPool
- type LoadBalancerPoolHealth
- type LoadBalancerPoolPopHealth
- type LoadBalancerRule
- type LoadBalancerRuleOverrides
- type LoadBalancerRuleOverridesSessionAffinityAttrs
- type LocationStrategy
- type LockdownListParams
- type Logger
- type LogpullRetentionConfiguration
- type LogpullRetentionConfigurationResponse
- type LogpushDestinationExistsRequest
- type LogpushDestinationExistsResponse
- type LogpushFields
- type LogpushFieldsResponse
- type LogpushGetOwnershipChallenge
- type LogpushGetOwnershipChallengeRequest
- type LogpushGetOwnershipChallengeResponse
- type LogpushJob
- type LogpushJobDetailsResponse
- type LogpushJobFilter
- type LogpushJobFilters
- type LogpushJobsResponse
- type LogpushOutputOptions
- type LogpushOwnershipChallengeValidationResponse
- type LogpushValidateOwnershipChallengeRequest
- type MTLSAssociation
- type MTLSAssociationResponse
- type MTLSCertificate
- type MTLSCertificateResponse
- type MTLSCertificatesResponse
- type MagicFirewallRuleset
- type MagicFirewallRulesetRule
- type MagicFirewallRulesetRuleAction
- type MagicFirewallRulesetRuleActionParameters
- type MagicTransitGRETunnel
- type MagicTransitGRETunnelHealthcheck
- type MagicTransitIPsecTunnel
- type MagicTransitIPsecTunnelPskMetadata
- type MagicTransitStaticRoute
- type MagicTransitStaticRouteScope
- type MagicTransitTunnelHealthcheck
- type ManagedHeader
- type ManagedHeaders
- type MisCategorizationParameters
- type NamespaceBindingMap
- type NamespaceBindingValue
- type NamespaceOutboundOptions
- type NotFoundError
- func (e NotFoundError) Error() string
- func (e NotFoundError) ErrorCodes() []int
- func (e NotFoundError) ErrorMessages() []string
- func (e NotFoundError) Errors() []ResponseInfo
- func (e NotFoundError) InternalErrorCodeIs(code int) bool
- func (e NotFoundError) RayID() string
- func (e NotFoundError) Type() ErrorType
- func (e NotFoundError) Unwrap() error
- type NotificationAlertWithDescription
- type NotificationAvailableAlertsResponse
- type NotificationEligibilityResponse
- type NotificationHistory
- type NotificationHistoryResponse
- type NotificationMechanismData
- type NotificationMechanismIntegrations
- type NotificationMechanismMetaData
- type NotificationMechanisms
- type NotificationPagerDutyResource
- type NotificationPagerDutyResponse
- type NotificationPoliciesResponse
- type NotificationPolicy
- type NotificationPolicyResponse
- type NotificationResource
- type NotificationUpsertWebhooks
- type NotificationWebhookIntegration
- type NotificationWebhookResponse
- type NotificationWebhooksResponse
- type NotificationsGroupedByProduct
- type OIDCClaimConfig
- type ObservatoryCountResponse
- type ObservatoryLighthouseReport
- type ObservatoryPage
- type ObservatoryPageTest
- type ObservatoryPageTestResponse
- type ObservatoryPageTestsResponse
- type ObservatoryPageTrend
- type ObservatoryPageTrendResponse
- type ObservatoryPagesResponse
- type ObservatorySchedule
- type ObservatoryScheduleResponse
- type ObservatoryScheduledPageTest
- type Operator
- type Option
- func BaseURL(baseURL string) Option
- func Debug(debug bool) Option
- func HTTPClient(client *http.Client) Option
- func Headers(headers http.Header) Option
- func UserAgent(userAgent string) Option
- func UsingLogger(logger Logger) Option
- func UsingRateLimit(rps float64) Option
- func UsingRetryPolicy(maxRetries int, minRetryDelaySecs int, maxRetryDelaySecs int) Option
- type OrderDirection
- type OriginCACertificate
- type OriginCACertificateID
- type OriginRequestConfig
- type OutboundParamSchema
- type Owner
- type PageRule
- type PageRuleAction
- type PageRuleDetailResponse
- type PageRuleTarget
- type PageRulesResponse
- type PageShield
- type PageShieldConnection
- type PageShieldPolicy
- type PageShieldScript
- type PageShieldScriptResponse
- type PageShieldScriptVersion
- type PageShieldScriptsResponse
- type PageShieldSettings
- type PageShieldSettingsResponse
- type PagesDeploymentLogEntry
- type PagesDeploymentLogs
- type PagesDeploymentStageLogEntry
- type PagesDeploymentStageLogs
- type PagesDomain
- type PagesDomainParameters
- type PagesDomainResponse
- type PagesDomainsParameters
- type PagesDomainsResponse
- type PagesPreviewDeploymentSetting
- type PagesProject
- type PagesProjectBuildConfig
- type PagesProjectDeployment
- type PagesProjectDeploymentConfigEnvironment
- type PagesProjectDeploymentConfigs
- type PagesProjectDeploymentStage
- type PagesProjectDeploymentTrigger
- type PagesProjectDeploymentTriggerMetadata
- type PagesProjectSource
- type PagesProjectSourceConfig
- type PaginationOptions
- type PatchTeamsList
- type PatchTeamsListParams
- type PatchWaitingRoomSettingsParams
- type PerHostnameAuthenticatedOriginPullsCertificateDetails
- type PerHostnameAuthenticatedOriginPullsCertificateParams
- type PerHostnameAuthenticatedOriginPullsCertificateResponse
- type PerHostnameAuthenticatedOriginPullsConfig
- type PerHostnameAuthenticatedOriginPullsConfigParams
- type PerHostnameAuthenticatedOriginPullsDetails
- type PerHostnameAuthenticatedOriginPullsDetailsResponse
- type PerHostnamesAuthenticatedOriginPullsDetailsResponse
- type PerZoneAuthenticatedOriginPullsCertificateDetails
- type PerZoneAuthenticatedOriginPullsCertificateParams
- type PerZoneAuthenticatedOriginPullsCertificateResponse
- type PerZoneAuthenticatedOriginPullsCertificatesResponse
- type PerZoneAuthenticatedOriginPullsSettings
- type PerZoneAuthenticatedOriginPullsSettingsResponse
- type Permission
- type PermissionGroup
- type PermissionGroupDetailResponse
- type PermissionGroupListResponse
- type PhishingScan
- type PhishingScanParameters
- type PhishingScanResponse
- type Placement
- type PlacementFields
- type PlacementMode
- type PlacementStatus
- type Policy
- type Polish
- type ProxyProtocol
- type PublishZarazConfigParams
- type PurgeCacheRequest
- type PurgeCacheResponse
- type QueryD1DatabaseParams
- type QueryD1Response
- type Queue
- type QueueConsumer
- type QueueConsumerResponse
- type QueueConsumerSettings
- type QueueListResponse
- type QueueProducer
- type QueueResponse
- type R2BindingMap
- type R2BindingValue
- type R2Bucket
- type R2BucketListResponse
- type R2BucketResponse
- type R2Buckets
- type RandomSteering
- type RateLimit
- type RateLimitAction
- type RateLimitActionResponse
- type RateLimitCorrelate
- type RateLimitKeyValue
- type RateLimitRequestMatcher
- type RateLimitResponseMatcher
- type RateLimitResponseMatcherHeader
- type RateLimitTrafficMatcher
- type RatelimitError
- func (e RatelimitError) Error() string
- func (e RatelimitError) ErrorCodes() []int
- func (e RatelimitError) ErrorMessages() []string
- func (e RatelimitError) Errors() []ResponseInfo
- func (e RatelimitError) InternalErrorCodeIs(code int) bool
- func (e RatelimitError) RayID() string
- func (e RatelimitError) Type() ErrorType
- func (e RatelimitError) Unwrap() error
- type RawResponse
- type Redirect
- type RefreshTokenOptions
- type Region
- type RegionalHostname
- type RegionalTieredCache
- type RegionalTieredCacheDetailsResponse
- type RegistrantContact
- type RegistrarDomain
- type RegistrarDomainConfiguration
- type RegistrarDomainDetailResponse
- type RegistrarDomainsDetailResponse
- type RegistrarTransferIn
- type RemoteIdentities
- type ReplaceWaitingRoomRuleParams
- type ReqOption
- type RequestError
- func (e RequestError) Error() string
- func (e RequestError) ErrorCodes() []int
- func (e RequestError) ErrorMessages() []string
- func (e RequestError) Errors() []ResponseInfo
- func (e RequestError) InternalErrorCodeIs(code int) bool
- func (e RequestError) Messages() []ResponseInfo
- func (e RequestError) RayID() string
- func (e RequestError) Type() ErrorType
- func (e RequestError) Unwrap() error
- type ResolvesToRefs
- type ResourceContainer
- type ResourceGroup
- type ResourceType
- type Response
- type ResponseInfo
- type ResultInfo
- type ResultInfoCursors
- type RetryPagesDeploymentParams
- type RetryPolicy
- type ReverseRecords
- type RevokeAccessUserTokensParams
- type RiskLevel
- type RiskScoreIntegration
- type RiskScoreIntegrationCreateRequest
- type RiskScoreIntegrationListResponse
- type RiskScoreIntegrationResponse
- type RiskScoreIntegrationUpdateRequest
- type RiskTypes
- type RollbackPagesDeploymentParams
- type RotateTurnstileWidgetParams
- type RouteLevel
- type RouteRoot
- type Ruleset
- type RulesetActionParameterProduct
- type RulesetActionParametersLogCustomField
- type RulesetKind
- type RulesetPhase
- type RulesetRule
- type RulesetRuleAction
- type RulesetRuleActionParameters
- type RulesetRuleActionParametersAutoMinify
- type RulesetRuleActionParametersBlockResponse
- type RulesetRuleActionParametersBrowserTTL
- type RulesetRuleActionParametersCacheKey
- type RulesetRuleActionParametersCacheReserve
- type RulesetRuleActionParametersCategories
- type RulesetRuleActionParametersCompressionAlgorithm
- type RulesetRuleActionParametersCustomKey
- type RulesetRuleActionParametersCustomKeyCookie
- type RulesetRuleActionParametersCustomKeyFields
- type RulesetRuleActionParametersCustomKeyHeader
- type RulesetRuleActionParametersCustomKeyHost
- type RulesetRuleActionParametersCustomKeyList
- type RulesetRuleActionParametersCustomKeyQuery
- type RulesetRuleActionParametersCustomKeyUser
- type RulesetRuleActionParametersEdgeTTL
- type RulesetRuleActionParametersFromList
- type RulesetRuleActionParametersFromValue
- type RulesetRuleActionParametersHTTPHeader
- type RulesetRuleActionParametersHTTPHeaderOperation
- type RulesetRuleActionParametersMatchedData
- type RulesetRuleActionParametersOrigin
- type RulesetRuleActionParametersOverrides
- type RulesetRuleActionParametersRules
- type RulesetRuleActionParametersServeStale
- type RulesetRuleActionParametersSni
- type RulesetRuleActionParametersStatusCodeRange
- type RulesetRuleActionParametersStatusCodeTTL
- type RulesetRuleActionParametersTargetURL
- type RulesetRuleActionParametersURI
- type RulesetRuleActionParametersURIPath
- type RulesetRuleActionParametersURIQuery
- type RulesetRuleExposedCredentialCheck
- type RulesetRuleLogging
- type RulesetRuleRateLimit
- type SAMLAttributeConfig
- type SSL
- type SSLValidationError
- type SSLValidationRecord
- type SaasApplication
- type SaveResponse
- type ScimAuthentication
- type Scope
- type ScopeObject
- type SecondaryDNSPrimary
- type SecondaryDNSPrimaryDetailResponse
- type SecondaryDNSPrimaryListResponse
- type SecondaryDNSTSIG
- type SecondaryDNSTSIGDetailResponse
- type SecondaryDNSTSIGListResponse
- type SecondaryDNSZone
- type SecondaryDNSZoneAXFRResponse
- type SecondaryDNSZoneDetailResponse
- type SecurityLevel
- type ServiceBinding
- type ServiceBindingMap
- type ServiceError
- func (e ServiceError) Error() string
- func (e ServiceError) ErrorCodes() []int
- func (e ServiceError) ErrorMessages() []string
- func (e ServiceError) Errors() []ResponseInfo
- func (e ServiceError) InternalErrorCodeIs(code int) bool
- func (e ServiceError) RayID() string
- func (e ServiceError) Type() ErrorType
- func (e ServiceError) Unwrap() error
- type ServiceMode
- type ServiceModeV2
- type SessionAffinityAttributes
- type SetWorkersSecretParams
- type SingleScimAuthentication
- type SizeOptions
- type Snippet
- type SnippetFile
- type SnippetMetadata
- type SnippetRequest
- type SnippetResponse
- type SnippetRule
- type SnippetRulesRequest
- type SnippetsResponse
- type SnippetsRulesResponse
- type SourceConfig
- type SpectrumApplication
- type SpectrumApplicationConnectivity
- type SpectrumApplicationDNS
- type SpectrumApplicationDetailResponse
- type SpectrumApplicationEdgeIPs
- type SpectrumApplicationEdgeType
- type SpectrumApplicationOriginDNS
- type SpectrumApplicationOriginPort
- type SpectrumApplicationsDetailResponse
- type SplitTunnel
- type SplitTunnelResponse
- type StartWorkersTailResponse
- type StorageKey
- type StreamAccessRule
- type StreamCreateVideoParameters
- type StreamInitiateTUSUploadParameters
- type StreamInitiateTUSUploadResponse
- type StreamListParameters
- type StreamListResponse
- type StreamParameters
- type StreamSignedURLParameters
- type StreamSignedURLResponse
- type StreamUploadFileParameters
- type StreamUploadFromURLParameters
- type StreamVideo
- type StreamVideoCreate
- type StreamVideoCreateResponse
- type StreamVideoInput
- type StreamVideoNFTParameters
- type StreamVideoPlayback
- type StreamVideoResponse
- type StreamVideoStatus
- type StreamVideoWatermark
- type TUSUploadMetadata
- type TeamsAccount
- type TeamsAccountConnectivitySettingsResponse
- type TeamsAccountLoggingConfiguration
- type TeamsAccountResponse
- type TeamsAccountSettings
- type TeamsActivityLog
- type TeamsAntivirus
- type TeamsBISOAdminControlSettings
- type TeamsBISOAdminControlSettingsVersion
- type TeamsBlockPage
- type TeamsBodyScanning
- type TeamsCertificate
- type TeamsCertificateCreateRequest
- type TeamsCertificateResponse
- type TeamsCertificateSetting
- type TeamsCertificatesResponse
- type TeamsCheckSessionSettings
- type TeamsConfigResponse
- type TeamsConfiguration
- type TeamsConnectivitySettings
- type TeamsCustomCertificate
- type TeamsDeviceDetail
- type TeamsDeviceListItem
- type TeamsDeviceSettings
- type TeamsDeviceSettingsResponse
- type TeamsDevicesList
- type TeamsDlpPayloadLogSettings
- type TeamsDnsResolverAddress
- type TeamsDnsResolverAddressV4
- type TeamsDnsResolverAddressV6
- type TeamsDnsResolverSettings
- type TeamsExtendedEmailMatching
- type TeamsFIPS
- type TeamsFilterType
- type TeamsForensicCopySettings
- type TeamsGatewayAction
- type TeamsGatewayUntrustedCertAction
- type TeamsInspectionMode
- type TeamsL4OverrideSettings
- type TeamsList
- type TeamsListDetailResponse
- type TeamsListItem
- type TeamsListItemsListResponse
- type TeamsListListResponse
- type TeamsLocation
- type TeamsLocationDetailResponse
- type TeamsLocationDohEndpointFields
- type TeamsLocationDotEndpointFields
- type TeamsLocationEndpointFields
- type TeamsLocationEndpoints
- type TeamsLocationIPv4EndpointFields
- type TeamsLocationIPv6EndpointFields
- type TeamsLocationNetwork
- type TeamsLocationsListResponse
- type TeamsLoggingSettings
- type TeamsLoggingSettingsResponse
- type TeamsNotificationSettings
- type TeamsProtocolDetection
- type TeamsProxyEndpoint
- type TeamsProxyEndpointDetailResponse
- type TeamsProxyEndpointListResponse
- type TeamsQuarantine
- type TeamsResolveDnsInternallyFallbackStrategy
- type TeamsResolveDnsInternallySettings
- type TeamsRule
- type TeamsRuleExpiration
- type TeamsRulePatchRequest
- type TeamsRuleResponse
- type TeamsRuleSchedule
- type TeamsRuleSettings
- type TeamsRuleType
- type TeamsRulesResponse
- type TeamsSandboxAccountSetting
- type TeamsScheduleTimes
- type TeamsTLSDecrypt
- type TeamsTeamsBISOAdminControlSettingsValue
- type TieredCache
- type TieredCacheType
- type TimeRange
- type TotalTLS
- type TotalTLSResponse
- type Tunnel
- type TunnelConfiguration
- type TunnelConfigurationParams
- type TunnelConfigurationResponse
- type TunnelConfigurationResult
- type TunnelConnection
- type TunnelConnectionResponse
- type TunnelCreateParams
- type TunnelDetailResponse
- type TunnelDuration
- type TunnelListParams
- type TunnelRoute
- type TunnelRoutesCreateParams
- type TunnelRoutesDeleteParams
- type TunnelRoutesForIPParams
- type TunnelRoutesListParams
- type TunnelRoutesUpdateParams
- type TunnelTokenResponse
- type TunnelUpdateParams
- type TunnelVirtualNetwork
- type TunnelVirtualNetworkCreateParams
- type TunnelVirtualNetworkUpdateParams
- type TunnelVirtualNetworksListParams
- type TunnelsDetailResponse
- type TurnstileWidget
- type TurnstileWidgetResponse
- type TusProtocolVersion
- type URLNormalizationSettings
- type URLNormalizationSettingsResponse
- type URLNormalizationSettingsUpdateParams
- type UniversalSSLCertificatePackValidationMethodSetting
- type UniversalSSLSetting
- type UniversalSSLVerificationDetails
- type UnsafeBinding
- type UntrustedCertSettings
- type UnvalidatedIngressRule
- type UpdateAPIShieldDiscoveryOperation
- type UpdateAPIShieldDiscoveryOperationParams
- type UpdateAPIShieldDiscoveryOperationsParams
- type UpdateAPIShieldOperationSchemaValidationSettings
- type UpdateAPIShieldOperationSchemaValidationSettingsResponse
- type UpdateAPIShieldParams
- type UpdateAPIShieldSchemaParams
- type UpdateAPIShieldSchemaValidationSettingsParams
- type UpdateAccessApplicationParams
- type UpdateAccessCustomPageParams
- type UpdateAccessGroupParams
- type UpdateAccessIdentityProviderParams
- type UpdateAccessMutualTLSCertificateParams
- type UpdateAccessMutualTLSHostnameSettingsParams
- type UpdateAccessOrganizationParams
- type UpdateAccessPolicyParams
- type UpdateAccessServiceTokenParams
- type UpdateAccessUserSeatParams
- type UpdateAccessUserSeatResponse
- type UpdateAccessUsersSeatsParams
- type UpdateAddressMapParams
- type UpdateAuditSSHSettingsParams
- type UpdateBotManagementParams
- type UpdateCacheReserveParams
- type UpdateCertificateAuthoritiesHostnameAssociationsParams
- type UpdateCustomNameserverZoneMetadataParams
- type UpdateDLPDatasetParams
- type UpdateDLPDatasetResponse
- type UpdateDLPProfileParams
- type UpdateDNSFirewallClusterParams
- type UpdateDNSRecordParams
- type UpdateDataLocalizationRegionalHostnameParams
- type UpdateDefaultDeviceSettingsPolicyParams
- type UpdateDeviceClientCertificatesParams
- type UpdateDeviceDexTestParams
- type UpdateDeviceManagedNetworkParams
- type UpdateDeviceSettingsPolicyParams
- type UpdateEmailRoutingRuleParameters
- type UpdateEntrypointRulesetParams
- type UpdateHostnameTLSSettingCiphersParams
- type UpdateHostnameTLSSettingParams
- type UpdateHyperdriveConfigParams
- type UpdateImageParams
- type UpdateImagesVariantParams
- type UpdateInfrastructureAccessTargetParams
- type UpdateLoadBalancerMonitorParams
- type UpdateLoadBalancerParams
- type UpdateLoadBalancerPoolParams
- type UpdateLogpushJobParams
- type UpdateMagicFirewallRulesetRequest
- type UpdateMagicFirewallRulesetResponse
- type UpdateMagicTransitGRETunnelResponse
- type UpdateMagicTransitIPsecTunnelResponse
- type UpdateMagicTransitStaticRouteResponse
- type UpdateManagedHeadersParams
- type UpdatePageShieldPolicyParams
- type UpdatePageShieldSettingsParams
- type UpdatePagesProjectParams
- type UpdateQueueConsumerParams
- type UpdateQueueParams
- type UpdateRegionalTieredCacheParams
- type UpdateRulesetParams
- type UpdateRulesetRequest
- type UpdateRulesetResponse
- type UpdateTeamsListParams
- type UpdateTurnstileWidgetParams
- type UpdateWaitingRoomRuleParams
- type UpdateWaitingRoomSettingsParams
- type UpdateWebAnalyticsRuleParams
- type UpdateWebAnalyticsSiteParams
- type UpdateWorkerCronTriggersParams
- type UpdateWorkerRouteParams
- type UpdateWorkersKVNamespaceParams
- type UpdateWorkersScriptContentParams
- type UpdateWorkersScriptSettingsParams
- type UpdateZarazConfigParams
- type UpdateZarazWorkflowParams
- type UpdateZoneSettingParams
- type UploadDLPDatasetVersionParams
- type UploadDLPDatasetVersionResponse
- type UploadImageParams
- type UploadVideoURLWatermark
- type UsageModel
- type User
- type UserAgentRule
- type UserAgentRuleConfig
- type UserAgentRuleListResponse
- type UserAgentRuleResponse
- type UserBillingHistory
- type UserBillingHistoryResponse
- type UserBillingOptions
- type UserBillingProfile
- type UserItem
- type UserResponse
- type ValidateLogpushOwnershipChallengeParams
- type ValidationData
- type VerificationData
- type WAFGroup
- type WAFGroupResponse
- type WAFGroupsResponse
- type WAFOverride
- type WAFOverrideResponse
- type WAFOverridesResponse
- type WAFPackage
- type WAFPackageOptions
- type WAFPackageResponse
- type WAFPackagesResponse
- type WAFRule
- type WAFRuleOptions
- type WAFRuleResponse
- type WAFRulesResponse
- type WHOIS
- type WHOISParameters
- type WHOISResponse
- type WaitingRoom
- type WaitingRoomCookieAttributes
- type WaitingRoomDetailResponse
- type WaitingRoomEvent
- type WaitingRoomEventDetailResponse
- type WaitingRoomEventsResponse
- type WaitingRoomPagePreviewCustomHTML
- type WaitingRoomPagePreviewResponse
- type WaitingRoomPagePreviewURL
- type WaitingRoomRoute
- type WaitingRoomRule
- type WaitingRoomRulesResponse
- type WaitingRoomSettings
- type WaitingRoomSettingsResponse
- type WaitingRoomStatus
- type WaitingRoomStatusResponse
- type WaitingRoomsResponse
- type WarpRoutingConfig
- type Web3Hostname
- type Web3HostnameCreateParameters
- type Web3HostnameDeleteResponse
- type Web3HostnameDeleteResult
- type Web3HostnameDetailsParameters
- type Web3HostnameListParameters
- type Web3HostnameListResponse
- type Web3HostnameResponse
- type Web3HostnameUpdateParameters
- type WebAnalyticsIDResponse
- type WebAnalyticsRule
- type WebAnalyticsRuleResponse
- type WebAnalyticsRulesResponse
- type WebAnalyticsRuleset
- type WebAnalyticsRulesetRules
- type WebAnalyticsSite
- type WebAnalyticsSiteResponse
- type WebAnalyticsSiteTagResponse
- type WebAnalyticsSitesResponse
- type WorkerAnalyticsEngineBinding
- type WorkerBinding
- type WorkerBindingListItem
- type WorkerBindingListResponse
- type WorkerBindingType
- type WorkerCronTrigger
- type WorkerCronTriggerResponse
- type WorkerCronTriggerSchedules
- type WorkerD1DatabaseBinding
- type WorkerDurableObjectBinding
- type WorkerHyperdriveBinding
- type WorkerInheritBinding
- type WorkerKvNamespaceBinding
- type WorkerListResponse
- type WorkerMetaData
- type WorkerPlainTextBinding
- type WorkerQueueBinding
- type WorkerR2BucketBinding
- type WorkerReference
- type WorkerRequestParams
- type WorkerRoute
- type WorkerRouteResponse
- type WorkerRoutesResponse
- type WorkerScript
- type WorkerScriptParams
- type WorkerScriptResponse
- type WorkerScriptSettingsResponse
- type WorkerSecretTextBinding
- type WorkerServiceBinding
- type WorkerWebAssemblyBinding
- type WorkersAccountSettings
- type WorkersAccountSettingsParameters
- type WorkersAccountSettingsResponse
- type WorkersDomain
- type WorkersDomainListResponse
- type WorkersDomainResponse
- type WorkersForPlatformsDispatchNamespace
- type WorkersKVNamespace
- type WorkersKVNamespaceResponse
- type WorkersKVPair
- type WorkersListSecretsResponse
- type WorkersPutSecretRequest
- type WorkersPutSecretResponse
- type WorkersSecret
- type WorkersSubdomain
- type WorkersSubdomainResponse
- type WorkersTail
- type WorkersTailConsumer
- type WriteWorkersKVEntriesParams
- type WriteWorkersKVEntryParams
- type ZarazAction
- type ZarazButtonTextTranslations
- type ZarazConfig
- type ZarazConfigHistoryListResponse
- type ZarazConfigResponse
- type ZarazConfigSettings
- type ZarazConsent
- type ZarazHistoryRecord
- type ZarazLoadRuleOp
- type ZarazNeoEventdeprecated
- type ZarazPublishResponse
- type ZarazPurpose
- type ZarazPurposeWithTranslations
- type ZarazRuleSettings
- type ZarazRuleType
- type ZarazSelectorType
- type ZarazTool
- type ZarazToolType
- type ZarazTrigger
- type ZarazTriggerRule
- type ZarazTriggerSystem
- type ZarazVariable
- type ZarazVariableType
- type ZarazWorker
- type ZarazWorkflowResponse
- type Zone
- type ZoneAnalytics
- type ZoneAnalyticsColocation
- type ZoneAnalyticsData
- type ZoneAnalyticsOptions
- type ZoneCacheVariants
- type ZoneCacheVariantsValues
- type ZoneCustomSSL
- type ZoneCustomSSLGeoRestrictions
- type ZoneCustomSSLOptions
- type ZoneCustomSSLPriority
- type ZoneDNSSEC
- type ZoneDNSSECDeleteResponse
- type ZoneDNSSECResponse
- type ZoneDNSSECUpdateOptions
- type ZoneHold
- type ZoneHoldResponse
- type ZoneID
- type ZoneIDResponse
- type ZoneLockdown
- type ZoneLockdownConfig
- type ZoneLockdownCreateParams
- type ZoneLockdownListResponse
- type ZoneLockdownResponse
- type ZoneLockdownUpdateParams
- type ZoneMeta
- type ZoneOptions
- type ZonePlan
- type ZonePlanCommon
- type ZoneRatePlan
- type ZoneRatePlanResponse
- type ZoneResponse
- type ZoneSSLSetting
- type ZoneSSLSettingResponse
- type ZoneSetting
- type ZoneSettingResponse
- type ZoneSettingSingleResponse
- type ZonesResponse
Examples¶
- Package
- API.AccessAuditLogs
- API.ArgoSmartRouting
- API.ArgoTieredCaching
- API.CancelRegistrarDomainTransfer
- API.CheckLogpushDestinationExists
- API.CreateLogpushJob
- API.CreatePageRule
- API.CreateRateLimit
- API.CreateWorkersKVNamespace
- API.CreateZoneLockdown
- API.DeleteLogpushJob
- API.DeletePageRule
- API.DeleteRateLimit
- API.DeleteWorkersKVEntries
- API.DeleteWorkersKVEntry
- API.DeleteWorkersKVNamespace
- API.GetLoadBalancerPoolHealth
- API.GetLogpushJob
- API.GetLogpushOwnershipChallenge
- API.GetWorkersKV
- API.ListDNSRecords (All)
- API.ListDNSRecords (FilterByContent)
- API.ListDNSRecords (FilterByName)
- API.ListDNSRecords (FilterByType)
- API.ListLoadBalancers
- API.ListLogpushJobs
- API.ListPageRules
- API.ListRateLimits
- API.ListUserAgentRules (All)
- API.ListWorkersKVKeys
- API.ListWorkersKVNamespaces
- API.ListZoneAccessRules (All)
- API.ListZoneAccessRules (FilterByIP)
- API.ListZoneAccessRules (FilterByMode)
- API.ListZoneAccessRules (FilterByNote)
- API.ListZoneLockdowns (All)
- API.ListZones (All)
- API.ListZones (Filter)
- API.PageRule
- API.RateLimit
- API.RegistrarDomain
- API.RegistrarDomains
- API.TransferRegistrarDomain
- API.UpdateArgoSmartRouting
- API.UpdateArgoTieredCaching
- API.UpdateLogpushJob
- API.UpdateRegistrarDomain
- API.UpdateWorkersKVNamespace
- API.ValidateLogpushOwnershipChallenge
- API.WriteWorkersKVEntries
- API.WriteWorkersKVEntry
- Duration
- LogpushJob.MarshalJSON
- UnsafeBinding
Constants¶
const (// AuthKeyEmail specifies that we should authenticate with API key and email address.AuthKeyEmail = 1 <<iota// AuthUserService specifies that we should authenticate with a User-Service key.AuthUserService// AuthToken specifies that we should authenticate with an API Token.AuthToken)
const (IPAccessRulesConfigurationTargetListIPAccessRulesOrderOption = "configuration.target"IPAccessRulesConfigurationValueListIPAccessRulesOrderOption = "configuration.value"IPAccessRulesMatchOptionAllListIPAccessRulesMatchOption = "all"IPAccessRulesMatchOptionAnyListIPAccessRulesMatchOption = "any"IPAccessRulesModeBlockIPAccessRulesModeOption = "block"IPAccessRulesModeChallengeIPAccessRulesModeOption = "challenge"IPAccessRulesModeJsChallengeIPAccessRulesModeOption = "js_challenge"IPAccessRulesModeManagedChallengeIPAccessRulesModeOption = "managed_challenge"IPAccessRulesModeWhitelistIPAccessRulesModeOption = "whitelist")
const (// ListTypeIP specifies a list containing IP addresses.ListTypeIP = "ip"// ListTypeRedirect specifies a list containing redirects.ListTypeRedirect = "redirect"// ListTypeHostname specifies a list containing hostnames.ListTypeHostname = "hostname"// ListTypeHostname specifies a list containing autonomous system numbers (ASNs).ListTypeASN = "asn")
const (// MagicFirewallRulesetKindRoot specifies a root Ruleset.MagicFirewallRulesetKindRoot = "root"// MagicFirewallRulesetPhaseMagicTransit specifies the Magic Transit Ruleset phase.MagicFirewallRulesetPhaseMagicTransit = "magic_transit"// MagicFirewallRulesetRuleActionSkip specifies a skip (allow) action.MagicFirewallRulesetRuleActionSkipMagicFirewallRulesetRuleAction = "skip"// MagicFirewallRulesetRuleActionBlock specifies a block action.MagicFirewallRulesetRuleActionBlockMagicFirewallRulesetRuleAction = "block")
const (AccountRouteLevelRouteLevel = accountsZoneRouteLevelRouteLevel = zonesUserRouteLevelRouteLevel = userAccountTypeResourceType = accountZoneTypeResourceType = zoneUserTypeResourceType = user)
const (RulesetKindCustomRulesetKind = "custom"RulesetKindManagedRulesetKind = "managed"RulesetKindRootRulesetKind = "root"RulesetKindZoneRulesetKind = "zone"RulesetPhaseDDoSL4RulesetPhase = "ddos_l4"RulesetPhaseDDoSL7RulesetPhase = "ddos_l7"RulesetPhaseHTTPConfigSettingsRulesetPhase = "http_config_settings"RulesetPhaseHTTPCustomErrorsRulesetPhase = "http_custom_errors"RulesetPhaseHTTPLogCustomFieldsRulesetPhase = "http_log_custom_fields"RulesetPhaseHTTPRatelimitRulesetPhase = "http_ratelimit"RulesetPhaseHTTPRequestCacheSettingsRulesetPhase = "http_request_cache_settings"RulesetPhaseHTTPRequestDynamicRedirectRulesetPhase = "http_request_dynamic_redirect"//nolint:gosecRulesetPhaseHTTPRequestFirewallCustomRulesetPhase = "http_request_firewall_custom"RulesetPhaseHTTPRequestFirewallManagedRulesetPhase = "http_request_firewall_managed"RulesetPhaseHTTPRequestLateTransformRulesetPhase = "http_request_late_transform"RulesetPhaseHTTPRequestOriginRulesetPhase = "http_request_origin"RulesetPhaseHTTPRequestRedirectRulesetPhase = "http_request_redirect"RulesetPhaseHTTPRequestSanitizeRulesetPhase = "http_request_sanitize"RulesetPhaseHTTPRequestTransformRulesetPhase = "http_request_transform"RulesetPhaseHTTPResponseCompressionRulesetPhase = "http_response_compression"RulesetPhaseHTTPResponseFirewallManagedRulesetPhase = "http_response_firewall_managed"RulesetPhaseHTTPResponseHeadersTransformRulesetPhase = "http_response_headers_transform"RulesetPhaseMagicTransitRulesetPhase = "magic_transit"RulesetRuleActionBlockRulesetRuleAction = "block"RulesetRuleActionChallengeRulesetRuleAction = "challenge"RulesetRuleActionCompressResponseRulesetRuleAction = "compress_response"RulesetRuleActionDDoSDynamicRulesetRuleAction = "ddos_dynamic"RulesetRuleActionDDoSMitigationRulesetRuleAction = "ddos_mitigation"RulesetRuleActionExecuteRulesetRuleAction = "execute"RulesetRuleActionForceConnectionCloseRulesetRuleAction = "force_connection_close"RulesetRuleActionJSChallengeRulesetRuleAction = "js_challenge"RulesetRuleActionLogRulesetRuleAction = "log"RulesetRuleActionLogCustomFieldRulesetRuleAction = "log_custom_field"RulesetRuleActionManagedChallengeRulesetRuleAction = "managed_challenge"RulesetRuleActionRedirectRulesetRuleAction = "redirect"RulesetRuleActionRewriteRulesetRuleAction = "rewrite"RulesetRuleActionRouteRulesetRuleAction = "route"RulesetRuleActionScoreRulesetRuleAction = "score"RulesetRuleActionServeErrorRulesetRuleAction = "serve_error"RulesetRuleActionSetCacheSettingsRulesetRuleAction = "set_cache_settings"RulesetRuleActionSetConfigRulesetRuleAction = "set_config"RulesetRuleActionSkipRulesetRuleAction = "skip"RulesetActionParameterProductBICRulesetActionParameterProduct = "bic"RulesetActionParameterProductHOTRulesetActionParameterProduct = "hot"RulesetActionParameterProductRateLimitRulesetActionParameterProduct = "ratelimit"RulesetActionParameterProductSecurityLevelRulesetActionParameterProduct = "securityLevel"RulesetActionParameterProductUABlockRulesetActionParameterProduct = "uablock"RulesetActionParameterProductWAFRulesetActionParameterProduct = "waf"RulesetActionParameterProductZoneLockdownRulesetActionParameterProduct = "zonelockdown"RulesetRuleActionParametersHTTPHeaderOperationRemoveRulesetRuleActionParametersHTTPHeaderOperation = "remove"RulesetRuleActionParametersHTTPHeaderOperationSetRulesetRuleActionParametersHTTPHeaderOperation = "set"RulesetRuleActionParametersHTTPHeaderOperationAddRulesetRuleActionParametersHTTPHeaderOperation = "add")
const DEFAULT_VALIDITY_PERIOD_DAYS = 1826
const (// IPListTypeIP specifies a list containing IP addresses.IPListTypeIP = "ip")
Variables¶
var (ErrAPIKeysAndTokensAreMutuallyExclusive =errors.New(errAPIKeysAndTokensAreMutuallyExclusive)ErrMissingCredentials =errors.New(errMissingCredentials)ErrMissingAccountID =errors.New(errMissingAccountID)ErrMissingZoneID =errors.New(errMissingZoneID)ErrAccountIDOrZoneIDAreRequired =errors.New(errMissingAccountOrZoneID)ErrAccountIDAndZoneIDAreMutuallyExclusive =errors.New(errAccountIDAndZoneIDAreMutuallyExclusive)ErrMissingResourceIdentifier =errors.New(errMissingResourceIdentifier)ErrRequiredAccountLevelResourceContainer =errors.New(errRequiredAccountLevelResourceContainer)ErrRequiredZoneLevelResourceContainer =errors.New(errRequiredZoneLevelResourceContainer)ErrMissingDetectionID =errors.New(errMissingDetectionID))
var (ErrMissingHyperdriveConfigID =errors.New("required hyperdrive config id is missing")ErrMissingHyperdriveConfigName =errors.New("required hyperdrive config name is missing")ErrMissingHyperdriveConfigOriginDatabase =errors.New("required hyperdrive config origin database is missing")ErrMissingHyperdriveConfigOriginPassword =errors.New("required hyperdrive config origin password is missing")ErrMissingHyperdriveConfigOriginHost =errors.New("required hyperdrive config origin host is missing")ErrMissingHyperdriveConfigOriginScheme =errors.New("required hyperdrive config origin scheme is missing")ErrMissingHyperdriveConfigOriginUser =errors.New("required hyperdrive config origin user is missing"))
var (ErrInvalidImagesAPIVersion =errors.New("invalid images API version")ErrMissingImageID =errors.New("required image ID missing"))
var (ErrMissingPoolID =errors.New("missing required pool ID")ErrMissingMonitorID =errors.New("missing required monitor ID")ErrMissingLoadBalancerID =errors.New("missing required load balancer ID"))
var (// ErrMissingIP is for when ipv4 or ipv6 indicator was given but ip is missing.ErrMissingIP =errors.New("ip is required when using 'ipv4' or 'ipv6' indicator type and is missing")// ErrMissingURL is for when url or domain indicator was given but url is missing.ErrMissingURL =errors.New("url is required when using 'domain' or 'url' indicator type and is missing"))
var (ErrMissingObservatoryUrl =errors.New("missing required page url")ErrMissingObservatoryTestID =errors.New("missing required test id"))
var (ErrMissingProjectName =errors.New("required missing project name")ErrMissingDeploymentID =errors.New("required missing deployment ID"))
var (ErrMissingQueueName =errors.New("required queue name is missing")ErrMissingQueueConsumerName =errors.New("required queue consumer name is missing"))
var (// ErrMissingUploadURL is for when a URL is required but missing.ErrMissingUploadURL =errors.New("required url missing")// ErrMissingMaxDuration is for when MaxDuration is required but missing.ErrMissingMaxDuration =errors.New("required max duration missing")// ErrMissingVideoID is for when VideoID is required but missing.ErrMissingVideoID =errors.New("required video id missing")// ErrMissingFilePath is for when FilePath is required but missing.ErrMissingFilePath =errors.New("required file path missing")// ErrMissingTusResumable is for when TusResumable is required but missing.ErrMissingTusResumable =errors.New("required tus resumable missing")// ErrInvalidTusResumable is for when TusResumable is invalid.ErrInvalidTusResumable =errors.New("invalid tus resumable")// ErrMarshallingTUSMetadata is for when TUS metadata cannot be marshalled.ErrMarshallingTUSMetadata =errors.New("error marshalling TUS metadata")// ErrMissingUploadLength is for when UploadLength is required but missing.ErrMissingUploadLength =errors.New("required upload length missing")// ErrInvalidStatusCode is for when the status code is invalid.ErrInvalidStatusCode =errors.New("invalid status code"))
var (ErrMissingNetwork =errors.New("missing required network parameter")ErrInvalidNetworkValue =errors.New("invalid IP parameter. Cannot use CIDR ranges for this endpoint."))
var (ErrMissingWaitingRoomID =errors.New("missing required waiting room ID")ErrMissingWaitingRoomRuleID =errors.New("missing required waiting room rule ID"))
var (// ErrMissingIdentifier is for when identifier is required but missing.ErrMissingIdentifier =errors.New("identifier required but missing")// ErrMissingName is for when name is required but missing.ErrMissingName =errors.New("name required but missing")// ErrMissingTarget is for when target is required but missing.ErrMissingTarget =errors.New("target required but missing"))
var (ErrMissingWebAnalyticsSiteTag =errors.New("missing required web analytics site ID")ErrMissingWebAnalyticsRulesetID =errors.New("missing required web analytics ruleset ID")ErrMissingWebAnalyticsRuleID =errors.New("missing required web analytics rule ID")ErrMissingWebAnalyticsSiteHost =errors.New("missing required web analytics host or zone_tag")ErrConflictingWebAnalyticSiteHost =errors.New("conflicting web analytics host and zone_tag, only one must be specified"))
var (ErrMissingHostname =errors.New("required hostname missing")ErrMissingService =errors.New("required service missing")ErrMissingEnvironment =errors.New("required environment missing"))
var (ErrMissingScriptName =errors.New("required script name missing")ErrMissingTailID =errors.New("required tail id missing"))
var ErrMissingASN =errors.New("required asn missing")
ErrMissingASN is for when ASN is required but not set.
var ErrMissingBINDContents =errors.New("required BIND config contents missing")
ErrMissingBINDContents is for when the BIND file contents is required but not set.
var (ErrMissingBucketName =errors.New("require bucket name missing"))
var (ErrMissingCertificateID =errors.New("missing required certificate ID"))
var ErrMissingClusterID =errors.New("missing required cluster ID")
var ErrMissingDNSRecordID =errors.New("required DNS record ID missing")
ErrMissingDNSRecordID is for when DNS record ID is needed but not given.
var (ErrMissingDatabaseID =fmt.Errorf("required missing database ID"))
var (ErrMissingDatasetID =errors.New("missing required dataset ID"))
var ErrMissingDomain =errors.New("required domain missing")
ErrMissingDomain is for when domain is needed but not given.
var (ErrMissingHostnameTLSSettingName =errors.New("tls setting name required but missing"))
var ErrMissingListID =errors.New("required missing list ID")
var ErrMissingMemberRolesOrPolicies =errors.New(errMissingMemberRolesOrPolicies)
var ErrMissingPermissionGroupID =errors.New(errMissingPermissionGroupID)
var (ErrMissingProfileID =errors.New("missing required profile ID"))
var (ErrMissingRiskScoreIntegrationID =errors.New("missing required Risk Score Integration UUID"))
var ErrMissingRuleID =errors.New("required rule id missing")
var (ErrMissingRulesetPhase =errors.New("missing required phase"))
var (ErrMissingServiceTokenUUID =errors.New("missing required service token UUID"))
var (// ErrMissingSettingName is for when setting name is required but missing.ErrMissingSettingName =errors.New("zone setting name required but missing"))
var ErrMissingSiteKey =errors.New("required site key missing")
var ErrMissingTargetId =errors.New("required target id missing")
var ErrMissingTunnelID =errors.New("required missing tunnel ID")
ErrMissingTunnelID is for when a required tunnel ID is missing from theparameters.
var ErrMissingUID =errors.New("required UID missing")
var ErrMissingVnetName =errors.New("required missing virtual network name")
var ErrMissingWorkerRouteID =errors.New("missing required route ID")
var ErrNotEnoughFilterIDsProvided =errors.New("at least one filter ID must be provided.")
var ErrOriginPortInvalid =errors.New("invalid origin port")
ErrOriginPortInvalid is a common error for failing to parse a single port or port range.
var PageRuleActions = map[string]string{"always_online": "Always Online","always_use_https": "Always Use HTTPS","automatic_https_rewrites": "Automatic HTTPS Rewrites","browser_cache_ttl": "Browser Cache TTL","browser_check": "Browser Integrity Check","bypass_cache_on_cookie": "Bypass Cache on Cookie","cache_by_device_type": "Cache By Device Type","cache_deception_armor": "Cache Deception Armor","cache_level": "Cache Level","cache_key_fields": "Custom Cache Key","cache_on_cookie": "Cache On Cookie","disable_apps": "Disable Apps","disable_performance": "Disable Performance","disable_railgun": "Disable Railgun","disable_security": "Disable Security","edge_cache_ttl": "Edge Cache TTL","email_obfuscation": "Email Obfuscation","explicit_cache_control": "Origin Cache Control","forwarding_url": "Forwarding URL","host_header_override": "Host Header Override","ip_geolocation": "IP Geolocation Header","minify": "Minify","mirage": "Mirage","opportunistic_encryption": "Opportunistic Encryption","origin_error_page_pass_thru": "Origin Error Page Pass-thru","polish": "Polish","resolve_override": "Resolve Override","respect_strong_etag": "Respect Strong ETags","response_buffering": "Response Buffering","rocket_loader": "Rocker Loader","security_level": "Security Level","server_side_exclude": "Server Side Excludes","sort_query_string_for_cache": "Query String Sort","ssl": "SSL","true_client_ip_header": "True Client IP Header","waf": "Web Application Firewall",}
PageRuleActions maps API action IDs to human-readable strings.
var (Versionstring = "v4")
Functions¶
funcAnyPtr¶added inv0.35.0
func AnyPtr[Tany](v T) *T
AnyPtr is a helper routine that allocates a new interface valueto store v and returns a pointer to it.
Usage: var _ *Type = AnyPtr(Type(value) | value).(*Type)
var _ *bool = AnyPtr(true).(*bool)var _ *byte = AnyPtr(byte(1)).(*byte)var _ *complex64 = AnyPtr(complex64(1.1)).(*complex64)var _ *complex128 = AnyPtr(complex128(1.1)).(*complex128)var _ *float32 = AnyPtr(float32(1.1)).(*float32)var _ *float64 = AnyPtr(float64(1.1)).(*float64)var _ *int = AnyPtr(int(1)).(*int)var _ *int8 = AnyPtr(int8(8)).(*int8)var _ *int16 = AnyPtr(int16(16)).(*int16)var _ *int32 = AnyPtr(int32(32)).(*int32)var _ *int64 = AnyPtr(int64(64)).(*int64)var _ *rune = AnyPtr(rune(1)).(*rune)var _ *string = AnyPtr("ptr").(*string)var _ *uint = AnyPtr(uint(1)).(*uint)var _ *uint8 = AnyPtr(uint8(8)).(*uint8)var _ *uint16 = AnyPtr(uint16(16)).(*uint16)var _ *uint32 = AnyPtr(uint32(32)).(*uint32)var _ *uint64 = AnyPtr(uint64(64)).(*uint64)
funcBoolMap¶added inv0.36.0
BoolMap converts a string map of bool pointers into a string map of boolvalues.
funcBoolPtr¶added inv0.35.0
BoolPtr is a helper routine that allocates a new bool value to store v andreturns a pointer to it.
funcBoolPtrMap¶added inv0.35.0
BoolPtrMap converts a string map of bool values into a string map of boolpointers.
funcBoolPtrSlice¶added inv0.35.0
BoolPtrSlice converts a slice of bool values into a slice of bool pointers.
funcBoolSlice¶added inv0.36.0
BoolSlice converts a slice of bool pointers into a slice of bool values.
funcByte¶added inv0.36.0
Byte is a helper routine that accepts a byte pointer and returns avalue to it.
funcBytePtr¶added inv0.35.0
BytePtr is a helper routine that allocates a new byte value to store v andreturns a pointer to it.
funcComplex128¶added inv0.36.0
func Complex128(v *complex128)complex128
Complex128 is a helper routine that accepts a complex128 pointer andreturns a value to it.
funcComplex128Ptr¶added inv0.35.0
func Complex128Ptr(vcomplex128) *complex128
Complex128Ptr is a helper routine that allocates a new complex128 valueto store v and returns a pointer to it.
funcComplex64¶added inv0.36.0
Complex64 is a helper routine that accepts a complex64 pointer andreturns a value to it.
funcComplex64Ptr¶added inv0.35.0
Complex64Ptr is a helper routine that allocates a new complex64 value tostore v and returns a pointer to it.
funcDurationPtr¶added inv0.35.0
DurationPtr is a helper routine that allocates a new time.Duration valueto store v and returns a pointer to it.
funcFloat32¶added inv0.36.0
Float32 is a helper routine that accepts a float32 pointer and returns avalue to it.
funcFloat32Map¶added inv0.36.0
Float32Map converts a string map of float32 pointers into a stringmap of float32 values.
funcFloat32Ptr¶added inv0.35.0
Float32Ptr is a helper routine that allocates a new float32 value to store vand returns a pointer to it.
funcFloat32PtrMap¶added inv0.35.0
Float32PtrMap converts a string map of float32 values into a string map offloat32 pointers.
funcFloat32PtrSlice¶added inv0.35.0
Float32PtrSlice converts a slice of float32 values into a slice of float32pointers.
funcFloat32Slice¶added inv0.36.0
Float32Slice converts a slice of float32 pointers into a slice offloat32 values.
funcFloat64¶added inv0.36.0
Float64 is a helper routine that accepts a float64 pointer and returns avalue to it.
funcFloat64Map¶added inv0.36.0
Float64Map converts a string map of float64 pointers into a stringmap of float64 values.
funcFloat64Ptr¶added inv0.35.0
Float64Ptr is a helper routine that allocates a new float64 value to store vand returns a pointer to it.
funcFloat64PtrMap¶added inv0.35.0
Float64PtrMap converts a string map of float64 values into a string map offloat64 pointers.
funcFloat64PtrSlice¶added inv0.35.0
Float64PtrSlice converts a slice of float64 values into a slice of float64pointers.
funcFloat64Slice¶added inv0.36.0
Float64Slice converts a slice of float64 pointers into a slice offloat64 values.
funcGetOriginCARootCertificate¶added inv0.58.0
Gets the Cloudflare Origin CA Root Certificate for a given algorithm in PEM format.Algorithm must be one of ['ecc', 'rsa'].
funcInt16¶added inv0.36.0
Int16 is a helper routine that accepts a int16 pointer and returns avalue to it.
funcInt16Map¶added inv0.36.0
Int16Map converts a string map of int16 pointers into a string map ofint16 values.
funcInt16Ptr¶added inv0.35.0
Int16Ptr is a helper routine that allocates a new int16 value to store vand returns a pointer to it.
funcInt16PtrMap¶added inv0.35.0
Int16PtrMap converts a string map of int16 values into a string map of int16pointers.
funcInt16PtrSlice¶added inv0.35.0
Int16PtrSlice converts a slice of int16 values into a slice of int16pointers.
funcInt16Slice¶added inv0.36.0
Int16Slice converts a slice of int16 pointers into a slice of int16values.
funcInt32¶added inv0.36.0
Int32 is a helper routine that accepts a int32 pointer and returns avalue to it.
funcInt32Map¶added inv0.36.0
Int32Map converts a string map of int32 pointers into a string map ofint32 values.
funcInt32Ptr¶added inv0.35.0
Int32Ptr is a helper routine that allocates a new int32 value to store vand returns a pointer to it.
funcInt32PtrMap¶added inv0.35.0
Int32PtrMap converts a string map of int32 values into a string map of int32pointers.
funcInt32PtrSlice¶added inv0.35.0
Int32PtrSlice converts a slice of int32 values into a slice of int32pointers.
funcInt32Slice¶added inv0.36.0
Int32Slice converts a slice of int32 pointers into a slice of int32values.
funcInt64¶added inv0.36.0
Int64 is a helper routine that accepts a int64 pointer and returns avalue to it.
funcInt64Map¶added inv0.36.0
Int64Map converts a string map of int64 pointers into a string map ofint64 values.
funcInt64Ptr¶added inv0.35.0
Int64Ptr is a helper routine that allocates a new int64 value to store vand returns a pointer to it.
funcInt64PtrMap¶added inv0.35.0
Int64PtrMap converts a string map of int64 values into a string map of int64pointers.
funcInt64PtrSlice¶added inv0.35.0
Int64PtrSlice converts a slice of int64 values into a slice of int64pointers.
funcInt64Slice¶added inv0.36.0
Int64Slice converts a slice of int64 pointers into a slice of int64values.
funcInt8¶added inv0.36.0
Int8 is a helper routine that accepts a int8 pointer and returns a valueto it.
funcInt8Map¶added inv0.36.0
Int8Map converts a string map of int8 pointers into a string map of int8values.
funcInt8Ptr¶added inv0.35.0
Int8Ptr is a helper routine that allocates a new int8 value to store v andreturns a pointer to it.
funcInt8PtrMap¶added inv0.35.0
Int8PtrMap converts a string map of int8 values into a string map of int8pointers.
funcInt8PtrSlice¶added inv0.35.0
Int8PtrSlice converts a slice of int8 values into a slice of int8 pointers.
funcInt8Slice¶added inv0.36.0
Int8Slice converts a slice of int8 pointers into a slice of int8 values.
funcIntMap¶added inv0.36.0
IntMap converts a string map of int pointers into a string map of intvalues.
funcIntPtr¶added inv0.35.0
IntPtr is a helper routine that allocates a new int value to store v andreturns a pointer to it.
funcIntPtrMap¶added inv0.35.0
IntPtrMap converts a string map of int values into a string map of intpointers.
funcIntPtrSlice¶added inv0.35.0
IntPtrSlice converts a slice of int values into a slice of int pointers.
funcRulesetActionParameterProductValues¶added inv0.19.0
func RulesetActionParameterProductValues() []string
RulesetActionParameterProductValues exposes all the available`RulesetActionParameterProduct` values as a slice of strings.
funcRulesetKindValues¶added inv0.19.0
func RulesetKindValues() []string
RulesetKindValues exposes all the available `RulesetKind` values as a sliceof strings.
funcRulesetPhaseValues¶added inv0.19.0
func RulesetPhaseValues() []string
RulesetPhaseValues exposes all the available `RulesetPhase` values as a sliceof strings.
funcRulesetRuleActionParametersHTTPHeaderOperationValues¶added inv0.19.0
func RulesetRuleActionParametersHTTPHeaderOperationValues() []string
funcRulesetRuleActionValues¶added inv0.19.0
func RulesetRuleActionValues() []string
RulesetRuleActionValues exposes all the available `RulesetRuleAction` valuesas a slice of strings.
funcRune¶added inv0.36.0
Rune is a helper routine that accepts a rune pointer and returns a valueto it.
funcRunePtr¶added inv0.35.0
RunePtr is a helper routine that allocates a new rune value to store vand returns a pointer to it.
funcStringMap¶added inv0.36.0
StringMap converts a string map of string pointers into a string map ofstring values.
funcStringPtr¶added inv0.35.0
StringPtr is a helper routine that allocates a new string value to store vand returns a pointer to it.
funcStringPtrMap¶added inv0.35.0
StringPtrMap converts a string map of string values into a string map ofstring pointers.
funcStringPtrSlice¶added inv0.35.0
StringPtrSlice converts a slice of string values into a slice of stringpointers.
funcStringSlice¶added inv0.36.0
StringSlice converts a slice of string pointers into a slice of stringvalues.
funcTeamsRulesActionValues¶added inv0.22.0
func TeamsRulesActionValues() []string
funcTeamsRulesUntrustedCertActionValues¶added inv0.62.0
func TeamsRulesUntrustedCertActionValues() []string
funcTime¶added inv0.36.0
Time is a helper routine that accepts a time pointer value and returns avalue to it.
funcTimePtr¶added inv0.35.0
TimePtr is a helper routine that allocates a new time.Time valueto store v and returns a pointer to it.
funcUint¶added inv0.36.0
Uint is a helper routine that accepts a uint pointer and returns a valueto it.
funcUint16¶added inv0.36.0
Uint16 is a helper routine that accepts a uint16 pointer and returns avalue to it.
funcUint16Map¶added inv0.36.0
Uint16Map converts a string map of uint16 pointers into a string map ofuint16 values.
funcUint16Ptr¶added inv0.35.0
Uint16Ptr is a helper routine that allocates a new uint16 value to store vand returns a pointer to it.
funcUint16PtrMap¶added inv0.35.0
Uint16PtrMap converts a string map of uint16 values into a string map ofuint16 pointers.
funcUint16PtrSlice¶added inv0.35.0
Uint16PtrSlice converts a slice of uint16 values into a slice of uint16pointers.
funcUint16Slice¶added inv0.36.0
Uint16Slice converts a slice of uint16 pointers into a slice of uint16values.
funcUint32¶added inv0.36.0
Uint32 is a helper routine that accepts a uint32 pointer and returns avalue to it.
funcUint32Map¶added inv0.36.0
Uint32Map converts a string map of uint32 pointers into a stringmap of uint32 values.
funcUint32Ptr¶added inv0.35.0
Uint32Ptr is a helper routine that allocates a new uint32 value to store vand returns a pointer to it.
funcUint32PtrMap¶added inv0.35.0
Uint32PtrMap converts a string map of uint32 values into a string map ofuint32 pointers.
funcUint32PtrSlice¶added inv0.35.0
Uint32PtrSlice converts a slice of uint32 values into a slice of uint32pointers.
funcUint32Slice¶added inv0.36.0
Uint32Slice converts a slice of uint32 pointers into a slice of uint32values.
funcUint64¶added inv0.36.0
Uint64 is a helper routine that accepts a uint64 pointer and returns avalue to it.
funcUint64Map¶added inv0.36.0
Uint64Map converts a string map of uint64 pointers into a string map ofuint64 values.
funcUint64Ptr¶added inv0.35.0
Uint64Ptr is a helper routine that allocates a new uint64 value to store vand returns a pointer to it.
funcUint64PtrMap¶added inv0.35.0
Uint64PtrMap converts a string map of uint64 values into a string map ofuint64 pointers.
funcUint64PtrSlice¶added inv0.35.0
Uint64PtrSlice converts a slice of uint64 values into a slice of uint64pointers.
funcUint64Slice¶added inv0.36.0
Uint64Slice converts a slice of uint64 pointers into a slice of uint64values.
funcUint8¶added inv0.36.0
Uint8 is a helper routine that accepts a uint8 pointer and returns avalue to it.
funcUint8Map¶added inv0.36.0
Uint8Map converts a string map of uint8 pointers into a stringmap of uint8 values.
funcUint8Ptr¶added inv0.35.0
Uint8Ptr is a helper routine that allocates a new uint8 value to store vand returns a pointer to it.
funcUint8PtrMap¶added inv0.35.0
Uint8PtrMap converts a string map of uint8 values into a string map of uint8pointers.
funcUint8PtrSlice¶added inv0.35.0
Uint8PtrSlice converts a slice of uint8 values into a slice of uint8pointers.
funcUint8Slice¶added inv0.36.0
Uint8Slice converts a slice of uint8 pointers into a slice of uint8values.
funcUintMap¶added inv0.36.0
UintMap converts a string map of uint pointers uinto a string map ofuint values.
funcUintPtr¶added inv0.35.0
UintPtr is a helper routine that allocates a new uint value to store vand returns a pointer to it.
funcUintPtrMap¶added inv0.35.0
UintPtrMap converts a string map of uint values uinto a string map of uintpointers.
funcUintPtrSlice¶added inv0.35.0
UintPtrSlice converts a slice of uint values uinto a slice of uint pointers.
Types¶
typeAPI¶added inv0.7.2
type API struct {APIKeystringAPIEmailstringAPIUserServiceKeystringAPITokenstringBaseURLstringUserAgentstringDebugbool// contains filtered or unexported fields}
API holds the configuration for the current API client. A client should notbe modified concurrently.
funcNewWithAPIToken¶added inv0.9.3
NewWithAPIToken creates a new Cloudflare v4 API client using API Tokens.
funcNewWithUserServiceKey¶added inv0.9.0
NewWithUserServiceKey creates a new Cloudflare v4 API client using service key authentication.
func (*API)APITokens¶added inv0.13.5
APITokens returns all available API tokens.
API reference:https://api.cloudflare.com/#user-api-tokens-list-tokens
func (*API)AccessAuditLogs¶added inv0.12.1
func (api *API) AccessAuditLogs(ctxcontext.Context, accountIDstring, optsAccessAuditLogFilterOptions) ([]AccessAuditLogRecord,error)
AccessAuditLogs retrieves all audit logs for the Access service.
API reference:https://api.cloudflare.com/#access-requests-access-requests-audit
Example¶
api, err := cloudflare.New("deadbeef", "test@example.org")if err != nil {log.Fatal(err)}filterOpts := cloudflare.AccessAuditLogFilterOptions{}results, _ := api.AccessAuditLogs(context.Background(), "someaccountid", filterOpts)for _, record := range results {b, _ := json.Marshal(record)fmt.Println(string(b))}
func (*API)AccessBookmark¶added inv0.36.0
func (api *API) AccessBookmark(ctxcontext.Context, accountID, bookmarkIDstring) (AccessBookmark,error)
AccessBookmark returns a single bookmark based on thebookmark ID.
API reference:https://api.cloudflare.com/#access-bookmarks-access-bookmarks-details
func (*API)AccessBookmarks¶added inv0.36.0
func (api *API) AccessBookmarks(ctxcontext.Context, accountIDstring, pageOptsPaginationOptions) ([]AccessBookmark,ResultInfo,error)
AccessBookmarks returns all bookmarks within an account.
API reference:https://api.cloudflare.com/#access-bookmarks-list-access-bookmarks
func (*API)AccessKeysConfig¶added inv0.23.0
AccessKeysConfig returns the Access Keys Configuration for an account.
API reference:https://api.cloudflare.com/#access-keys-configuration-get-access-keys-configuration
func (*API)Account¶added inv0.9.0
Account returns a single account based on the ID.
API reference:https://api.cloudflare.com/#accounts-account-details
func (*API)AccountAccessRule¶added inv0.10.0
func (api *API) AccountAccessRule(ctxcontext.Context, accountIDstring, accessRuleIDstring) (*AccessRuleResponse,error)
AccountAccessRule returns the details of an account's access rule.
API reference:https://api.cloudflare.com/#account-level-firewall-access-rule-access-rule-details
func (*API)AccountMember¶added inv0.9.0
func (api *API) AccountMember(ctxcontext.Context, accountIDstring, memberIDstring) (AccountMember,error)
AccountMember returns details of a single account member.
API reference:https://api.cloudflare.com/#account-members-member-details
func (*API)AccountMembers¶added inv0.9.0
func (api *API) AccountMembers(ctxcontext.Context, accountIDstring, pageOptsPaginationOptions) ([]AccountMember,ResultInfo,error)
AccountMembers returns all members of an account.
API reference:https://api.cloudflare.com/#accounts-list-accounts
func (*API)Accounts¶added inv0.9.0
func (api *API) Accounts(ctxcontext.Context, paramsAccountsListParams) ([]Account,ResultInfo,error)
Accounts returns all accounts the logged in user has access to.
API reference:https://api.cloudflare.com/#accounts-list-accounts
func (*API)ArgoSmartRouting¶added inv0.9.0
ArgoSmartRouting returns the current settings for smart routing.
API reference:https://api.cloudflare.com/#argo-smart-routing-get-argo-smart-routing-setting
Example¶
package mainimport ("context""fmt""log"cloudflare "github.com/cloudflare/cloudflare-go")func main() {api, err := cloudflare.New("deadbeef", "test@example.org")if err != nil {log.Fatal(err)}smartRoutingSettings, err := api.ArgoSmartRouting(context.Background(), "01a7362d577a6c3019a474fd6f485823")if err != nil {log.Fatal(err)}fmt.Printf("smart routing is %s", smartRoutingSettings.Value)}
func (*API)ArgoTieredCaching¶added inv0.9.0
ArgoTieredCaching returns the current settings for tiered caching.
API reference: TBA.
Example¶
package mainimport ("context""fmt""log"cloudflare "github.com/cloudflare/cloudflare-go")func main() {api, err := cloudflare.New("deadbeef", "test@example.org")if err != nil {log.Fatal(err)}tieredCachingSettings, err := api.ArgoTieredCaching(context.Background(), "01a7362d577a6c3019a474fd6f485823")if err != nil {log.Fatal(err)}fmt.Printf("tiered caching is %s", tieredCachingSettings.Value)}
func (*API)ArgoTunneldeprecatedadded inv0.13.7
ArgoTunnel returns a single Argo tunnel.
API reference:https://api.cloudflare.com/#argo-tunnel-get-argo-tunnel
Deprecated: Use `Tunnel` instead.
func (*API)ArgoTunnelsdeprecatedadded inv0.13.7
ArgoTunnels lists all tunnels.
API reference:https://api.cloudflare.com/#argo-tunnel-list-argo-tunnels
Deprecated: Use `Tunnels` instead.
func (*API)AttachWorkersDomain¶added inv0.55.0
func (api *API) AttachWorkersDomain(ctxcontext.Context, rc *ResourceContainer, domainAttachWorkersDomainParams) (WorkersDomain,error)
AttachWorkersDomain attaches a worker to a zone and hostname.
API reference:https://developers.cloudflare.com/api/resources/workers/subresources/domains/methods/update/
func (*API)AvailableZonePlans¶added inv0.7.2
AvailableZonePlans returns information about all plans available to the specified zone.
API reference:https://api.cloudflare.com/#zone-rate-plan-list-available-plans
func (*API)AvailableZoneRatePlans¶added inv0.7.4
AvailableZoneRatePlans returns information about all plans available to the specified zone.
API reference:https://api.cloudflare.com/#zone-plan-available-plans
func (*API)Behaviors¶added inv0.95.0
Behaviors returns all zero trust risk scoring behaviors for the provided account
API reference:https://developers.cloudflare.com/api/operations/dlp-zt-risk-score-get-behaviors
func (*API)CancelRegistrarDomainTransfer¶added inv0.9.0
func (api *API) CancelRegistrarDomainTransfer(ctxcontext.Context, accountID, domainNamestring) ([]RegistrarDomain,error)
CancelRegistrarDomainTransfer cancels a pending domain transfer.
API reference:https://api.cloudflare.com/#registrar-domains-cancel-transfer
Example¶
api, err := cloudflare.New(apiKey, user)if err != nil {log.Fatal(err)}domains, err := api.CancelRegistrarDomainTransfer(context.Background(), "01a7362d577a6c3019a474fd6f485823", "cloudflare.com")if err != nil {log.Fatal(err)}fmt.Printf("%+v\n", domains)
func (*API)CertificatePack¶added inv0.13.0
func (api *API) CertificatePack(ctxcontext.Context, zoneID, certificatePackIDstring) (CertificatePack,error)
CertificatePack returns a single TLS certificate pack on a zone.
API Reference:https://api.cloudflare.com/#certificate-packs-get-certificate-pack
func (*API)ChangePageRule¶added inv0.7.2
ChangePageRule lets you change individual settings for a Page Rule. This isin contrast to UpdatePageRule which replaces the entire Page Rule.
API reference:https://api.cloudflare.com/#page-rules-for-a-zone-change-a-page-rule
func (*API)ChangeWaitingRoom¶added inv0.17.0
func (api *API) ChangeWaitingRoom(ctxcontext.Context, zoneID, waitingRoomIDstring, waitingRoomWaitingRoom) (WaitingRoom,error)
ChangeWaitingRoom lets you change individual settings for a Waiting room. This isin contrast to UpdateWaitingRoom which replaces the entire Waiting room.
API reference:https://api.cloudflare.com/#waiting-room-update-waiting-room
func (*API)ChangeWaitingRoomEvent¶added inv0.33.0
func (api *API) ChangeWaitingRoomEvent(ctxcontext.Context, zoneID, waitingRoomIDstring, waitingRoomEventWaitingRoomEvent) (WaitingRoomEvent,error)
ChangeWaitingRoomEvent lets you change individual settings for a Waiting Room Event. This isin contrast to UpdateWaitingRoomEvent which replaces the entire Waiting Room Event.
API reference:https://api.cloudflare.com/#waiting-room-patch-event
func (*API)CheckLogpushDestinationExists¶added inv0.9.0
func (api *API) CheckLogpushDestinationExists(ctxcontext.Context, rc *ResourceContainer, destinationConfstring) (bool,error)
CheckLogpushDestinationExists returns zone-level destination exists check result.
API reference:https://api.cloudflare.com/#logpush-jobs-check-destination-exists
Example¶
api, err := cloudflare.New(apiKey, user)if err != nil {log.Fatal(err)}zoneID, err := api.ZoneIDByName(domain)if err != nil {log.Fatal(err)}exists, err := api.CheckLogpushDestinationExists(context.Background(), cloudflare.ZoneIdentifier(zoneID), "destination_conf")if err != nil {log.Fatal(err)}fmt.Printf("%+v\n", exists)
func (*API)CleanupArgoTunnelConnectionsdeprecatedadded inv0.13.7
CleanupArgoTunnelConnections deletes any inactive connections on a tunnel.
API reference:https://api.cloudflare.com/#argo-tunnel-clean-up-argo-tunnel-connections
Deprecated: Use `CleanupTunnelConnections` instead.
func (*API)CleanupTunnelConnections¶added inv0.39.0
func (api *API) CleanupTunnelConnections(ctxcontext.Context, rc *ResourceContainer, tunnelIDstring)error
CleanupTunnelConnections deletes any inactive connections on a tunnel.
API reference:https://api.cloudflare.com/#cloudflare-tunnel-clean-up-cloudflare-tunnel-connections
func (*API)ContentScanningAddCustomExpressions¶added inv0.112.0
func (api *API) ContentScanningAddCustomExpressions(ctxcontext.Context, rc *ResourceContainer, paramsContentScanningAddCustomExpressionsParams) ([]ContentScanningCustomExpression,error)
ContentScanningAddCustomExpressions add new custom scan expressions for Content Scanning
API reference:https://developers.cloudflare.com/api/resources/content_scanning/subresources/payloads/methods/list/
func (*API)ContentScanningDeleteCustomExpression¶added inv0.112.0
func (api *API) ContentScanningDeleteCustomExpression(ctxcontext.Context, rc *ResourceContainer, paramsContentScanningDeleteCustomExpressionsParams) ([]ContentScanningCustomExpression,error)
ContentScanningDeleteCustomExpressions delete custom scan expressions for Content Scanning
API reference:https://developers.cloudflare.com/api/resources/content_scanning/subresources/payloads/methods/delete/
func (*API)ContentScanningDisable¶added inv0.112.0
func (api *API) ContentScanningDisable(ctxcontext.Context, rc *ResourceContainer, paramsContentScanningDisableParams) (ContentScanningDisableResponse,error)
ContentScanningDisable disables Content Scanning.
API reference:https://developers.cloudflare.com/api/resources/content_scanning/methods/disable/
func (*API)ContentScanningEnable¶added inv0.112.0
func (api *API) ContentScanningEnable(ctxcontext.Context, rc *ResourceContainer, paramsContentScanningEnableParams) (ContentScanningEnableResponse,error)
ContentScanningEnable enables Content Scanning.
API reference:https://developers.cloudflare.com/api/resources/content_scanning/methods/enable/
func (*API)ContentScanningListCustomExpressions¶added inv0.112.0
func (api *API) ContentScanningListCustomExpressions(ctxcontext.Context, rc *ResourceContainer, paramsContentScanningListCustomExpressionsParams) ([]ContentScanningCustomExpression,error)
ContentScanningListCustomExpressions retrieves the list of existing custom scan expressions for Content Scanning
API reference:https://developers.cloudflare.com/api/resources/content_scanning/subresources/payloads/methods/list/
func (*API)ContentScanningStatus¶added inv0.112.0
func (api *API) ContentScanningStatus(ctxcontext.Context, rc *ResourceContainer, paramsContentScanningStatusParams) (ContentScanningStatusResponse,error)
ContentScanningStatus reads the status of Content Scanning.
API reference:https://developers.cloudflare.com/api/resources/content_scanning/subresources/settings/methods/get/
func (*API)CreateAPIShieldOperations¶added inv0.78.0
func (api *API) CreateAPIShieldOperations(ctxcontext.Context, rc *ResourceContainer, paramsCreateAPIShieldOperationsParams) ([]APIShieldOperation,error)
CreateAPIShieldOperations add one or more operations to a zone.
API documentationhttps://developers.cloudflare.com/api/resources/api_gateway/subresources/operations/methods/create/
func (*API)CreateAPIShieldSchema¶added inv0.79.0
func (api *API) CreateAPIShieldSchema(ctxcontext.Context, rc *ResourceContainer, paramsCreateAPIShieldSchemaParams) (*APIShieldCreateSchemaResult,error)
CreateAPIShieldSchema uploads a schema to a zone
API documentation:https://developers.cloudflare.com/api/resources/api_gateway/subresources/user_schemas/methods/create/
func (*API)CreateAPIToken¶added inv0.13.5
CreateAPIToken creates a new token. Returns the API token that has beengenerated.
The token value itself is only shown once (post create) and will present as`Value` from this method. If you fail to capture it at this point, you willneed to roll the token in order to get a new value.
API reference:https://api.cloudflare.com/#user-api-tokens-create-token
func (*API)CreateAccessApplication¶added inv0.9.0
func (api *API) CreateAccessApplication(ctxcontext.Context, rc *ResourceContainer, paramsCreateAccessApplicationParams) (AccessApplication,error)
CreateAccessApplication creates a new access application.
Account API reference:https://developers.cloudflare.com/api/operations/access-applications-add-an-applicationZone API reference:https://developers.cloudflare.com/api/operations/zone-level-access-applications-add-a-bookmark-application
func (*API)CreateAccessBookmark¶added inv0.36.0
func (api *API) CreateAccessBookmark(ctxcontext.Context, accountIDstring, accessBookmarkAccessBookmark) (AccessBookmark,error)
CreateAccessBookmark creates a new access bookmark.
API reference:https://api.cloudflare.com/#access-bookmarks-create-access-bookmark
func (*API)CreateAccessCACertificate¶added inv0.12.1
func (api *API) CreateAccessCACertificate(ctxcontext.Context, rc *ResourceContainer, paramsCreateAccessCACertificateParams) (AccessCACertificate,error)
CreateAccessCACertificate creates a new CA certificate for an AccessApplication.
Account API reference:https://developers.cloudflare.com/api/operations/access-short-lived-certificate-c-as-create-a-short-lived-certificate-caZone API reference:https://developers.cloudflare.com/api/operations/zone-level-access-short-lived-certificate-c-as-create-a-short-lived-certificate-ca
func (*API)CreateAccessCustomPage¶added inv0.74.0
func (api *API) CreateAccessCustomPage(ctxcontext.Context, rc *ResourceContainer, paramsCreateAccessCustomPageParams) (AccessCustomPage,error)
func (*API)CreateAccessGroup¶added inv0.10.5
func (api *API) CreateAccessGroup(ctxcontext.Context, rc *ResourceContainer, paramsCreateAccessGroupParams) (AccessGroup,error)
CreateAccessGroup creates a new access group.
Account API Reference:https://developers.cloudflare.com/api/operations/access-groups-create-an-access-groupZone API Reference:https://developers.cloudflare.com/api/operations/zone-level-access-groups-create-an-access-group
func (*API)CreateAccessIdentityProvider¶added inv0.10.1
func (api *API) CreateAccessIdentityProvider(ctxcontext.Context, rc *ResourceContainer, paramsCreateAccessIdentityProviderParams) (AccessIdentityProvider,error)
CreateAccessIdentityProvider creates a new Access Identity Provider.
Account API Reference:https://developers.cloudflare.com/api/operations/access-identity-providers-add-an-access-identity-providerZone API Reference:https://developers.cloudflare.com/api/operations/zone-level-access-identity-providers-add-an-access-identity-provider
func (*API)CreateAccessMutualTLSCertificate¶added inv0.13.8
func (api *API) CreateAccessMutualTLSCertificate(ctxcontext.Context, rc *ResourceContainer, paramsCreateAccessMutualTLSCertificateParams) (AccessMutualTLSCertificate,error)
CreateAccessMutualTLSCertificate creates an Access TLS Mutualcertificate.
Account API Reference:https://developers.cloudflare.com/api/operations/access-mtls-authentication-add-an-mtls-certificateZone API Reference:https://developers.cloudflare.com/api/operations/zone-level-access-mtls-authentication-add-an-mtls-certificate
func (*API)CreateAccessOrganization¶added inv0.10.1
func (api *API) CreateAccessOrganization(ctxcontext.Context, rc *ResourceContainer, paramsCreateAccessOrganizationParams) (AccessOrganization,error)
func (*API)CreateAccessPolicy¶added inv0.9.0
func (api *API) CreateAccessPolicy(ctxcontext.Context, rc *ResourceContainer, paramsCreateAccessPolicyParams) (AccessPolicy,error)
CreateAccessPolicy creates a new access policy.
Account API reference:https://developers.cloudflare.com/api/operations/access-policies-create-an-access-policyZone API reference:https://developers.cloudflare.com/api/operations/zone-level-access-policies-create-an-access-policy
func (*API)CreateAccessServiceToken¶added inv0.10.1
func (api *API) CreateAccessServiceToken(ctxcontext.Context, rc *ResourceContainer, paramsCreateAccessServiceTokenParams) (AccessServiceTokenCreateResponse,error)
func (*API)CreateAccessTag¶added inv0.78.0
func (api *API) CreateAccessTag(ctxcontext.Context, rc *ResourceContainer, paramsCreateAccessTagParams) (AccessTag,error)
func (*API)CreateAccount¶added inv0.13.8
CreateAccount creates a new account. Note: This requires the Tenantentitlement.
API reference:https://developers.cloudflare.com/tenant/tutorial/provisioning-resources#creating-an-account
func (*API)CreateAccountAccessRule¶added inv0.10.0
func (api *API) CreateAccountAccessRule(ctxcontext.Context, accountIDstring, accessRuleAccessRule) (*AccessRuleResponse,error)
CreateAccountAccessRule creates a firewall access rule for the givenaccount identifier.
API reference:https://api.cloudflare.com/#account-level-firewall-access-rule-create-access-rule
func (*API)CreateAccountMember¶added inv0.9.0
func (api *API) CreateAccountMember(ctxcontext.Context, rc *ResourceContainer, paramsCreateAccountMemberParams) (AccountMember,error)
CreateAccountMember invites a new member to join an account with roles.The member will be placed into "pending" status and receive an email confirmation.NOTE: If you are currently enrolled in Domain Scoped Roles, your roles willbe converted to policies upon member invitation.
API reference:https://api.cloudflare.com/#account-members-add-member
func (*API)CreateAccountMemberWithStatusdeprecatedadded inv0.25.0
func (api *API) CreateAccountMemberWithStatus(ctxcontext.Context, accountIDstring, emailAddressstring, roles []string, statusstring) (AccountMember,error)
CreateAccountMemberWithStatus invites a new member to join an account, allowing setting the status.
Refer to the API reference for valid statuses.
Deprecated: Use `CreateAccountMember` with a `Status` field instead.
API reference:https://api.cloudflare.com/#account-members-add-member
func (*API)CreateAddressMap¶added inv0.63.0
func (api *API) CreateAddressMap(ctxcontext.Context, rc *ResourceContainer, paramsCreateAddressMapParams) (AddressMap,error)
CreateAddressMap creates a new address map under the account.
API reference:https://developers.cloudflare.com/api/resources/addressing/subresources/address_maps/methods/create/
func (*API)CreateArgoTunneldeprecatedadded inv0.13.7
func (api *API) CreateArgoTunnel(ctxcontext.Context, accountID, name, secretstring) (ArgoTunnel,error)
CreateArgoTunnel creates a new tunnel for the account.
API reference:https://api.cloudflare.com/#argo-tunnel-create-argo-tunnel
Deprecated: Use `CreateTunnel` instead.
func (*API)CreateCertificatePack¶added inv0.13.0
func (api *API) CreateCertificatePack(ctxcontext.Context, zoneIDstring, certCertificatePackRequest) (CertificatePack,error)
CreateCertificatePack creates a new certificate pack associated with a zone.
API Reference:https://api.cloudflare.com/#certificate-packs-order-advanced-certificate-manager-certificate-pack
func (*API)CreateCustomHostname¶added inv0.7.4
func (api *API) CreateCustomHostname(ctxcontext.Context, zoneIDstring, chCustomHostname) (*CustomHostnameResponse,error)
CreateCustomHostname creates a new custom hostname and requests that an SSL certificate be issued for it.
API reference:https://api.cloudflare.com/#custom-hostname-for-a-zone-create-custom-hostname
func (*API)CreateCustomNameservers¶added inv0.70.0
func (api *API) CreateCustomNameservers(ctxcontext.Context, rc *ResourceContainer, paramsCreateCustomNameserversParams) (CustomNameserverResult,error)
CreateCustomNameservers adds a custom nameserver.
API documentation:https://developers.cloudflare.com/api/resources/custom_nameservers/methods/create/
func (*API)CreateD1Database¶added inv0.79.0
func (api *API) CreateD1Database(ctxcontext.Context, rc *ResourceContainer, paramsCreateD1DatabaseParams) (D1Database,error)
CreateD1Database creates a new database for an account.
API reference:https://developers.cloudflare.com/api/resources/d1/subresources/database/methods/create/
func (*API)CreateDLPDataset¶added inv0.87.0
func (api *API) CreateDLPDataset(ctxcontext.Context, rc *ResourceContainer, paramsCreateDLPDatasetParams) (CreateDLPDatasetResult,error)
CreateDLPDataset creates a DLP dataset.
API reference:https://developers.cloudflare.com/api/resources/zero_trust/subresources/dlp/subresources/datasets/methods/create/
func (*API)CreateDLPDatasetUpload¶added inv0.87.0
func (api *API) CreateDLPDatasetUpload(ctxcontext.Context, rc *ResourceContainer, paramsCreateDLPDatasetUploadParams) (CreateDLPDatasetUploadResult,error)
CreateDLPDatasetUpload creates a new upload version for the specified DLP dataset.
API reference:https://developers.cloudflare.com/api/resources/zero_trust/subresources/dlp/subresources/datasets/methods/create/-version
func (*API)CreateDLPProfiles¶added inv0.53.0
func (api *API) CreateDLPProfiles(ctxcontext.Context, rc *ResourceContainer, paramsCreateDLPProfilesParams) ([]DLPProfile,error)
CreateDLPProfiles creates a set of DLP Profile.
API reference:https://api.cloudflare.com/#dlp-profiles-create-custom-profiles
func (*API)CreateDNSFirewallCluster¶added inv0.29.0
func (api *API) CreateDNSFirewallCluster(ctxcontext.Context, rc *ResourceContainer, paramsCreateDNSFirewallClusterParams) (*DNSFirewallCluster,error)
CreateDNSFirewallCluster creates a new DNS Firewall cluster.
API reference:https://api.cloudflare.com/#dns-firewall-create-dns-firewall-cluster
func (*API)CreateDNSRecord¶added inv0.7.2
func (api *API) CreateDNSRecord(ctxcontext.Context, rc *ResourceContainer, paramsCreateDNSRecordParams) (DNSRecord,error)
CreateDNSRecord creates a DNS record for the zone identifier.
API reference:https://api.cloudflare.com/#dns-records-for-a-zone-create-dns-record
func (*API)CreateDataLocalizationRegionalHostname¶added inv0.66.0
func (api *API) CreateDataLocalizationRegionalHostname(ctxcontext.Context, rc *ResourceContainer, paramsCreateDataLocalizationRegionalHostnameParams) (RegionalHostname,error)
CreateDataLocalizationRegionalHostname lists all regional hostnames for a zone.
API reference:https://developers.cloudflare.com/data-localization/regional-services/get-started/#configure-regional-services-via-api
func (*API)CreateDeviceDexTest¶added inv0.62.0
func (api *API) CreateDeviceDexTest(ctxcontext.Context, rc *ResourceContainer, paramsCreateDeviceDexTestParams) (DeviceDexTest,error)
CreateDeviceDexTest created a new Device Dex Test
API reference:https://developers.cloudflare.com/api/resources/zero_trust/subresources/devices/subresources/dex_tests/methods/create/
func (*API)CreateDeviceManagedNetwork¶added inv0.57.0
func (api *API) CreateDeviceManagedNetwork(ctxcontext.Context, rc *ResourceContainer, paramsCreateDeviceManagedNetworkParams) (DeviceManagedNetwork,error)
CreateDeviceManagedNetwork creates a new Device Managed Network.
API reference:https://api.cloudflare.com/#device-managed-networks-create-device-managed-network
func (*API)CreateDevicePostureIntegration¶added inv0.29.0
func (api *API) CreateDevicePostureIntegration(ctxcontext.Context, accountIDstring, integrationDevicePostureIntegration) (DevicePostureIntegration,error)
CreateDevicePostureIntegration creates a device posture integration within an account.
API reference:https://api.cloudflare.com/#device-posture-integrations-create-device-posture-integration
func (*API)CreateDevicePostureRule¶added inv0.17.0
func (api *API) CreateDevicePostureRule(ctxcontext.Context, accountIDstring, ruleDevicePostureRule) (DevicePostureRule,error)
CreateDevicePostureRule creates a new device posture rule.
API reference:https://api.cloudflare.com/#device-posture-rules-create-device-posture-rule
func (*API)CreateDeviceSettingsPolicy¶added inv0.52.0
func (api *API) CreateDeviceSettingsPolicy(ctxcontext.Context, rc *ResourceContainer, paramsCreateDeviceSettingsPolicyParams) (DeviceSettingsPolicy,error)
CreateDeviceSettingsPolicy creates a settings policy against devices thatmatch the policy.
API reference:https://api.cloudflare.com/#devices-create-device-settings-policy
func (*API)CreateEmailRoutingDestinationAddress¶added inv0.47.0
func (api *API) CreateEmailRoutingDestinationAddress(ctxcontext.Context, rc *ResourceContainer, paramsCreateEmailRoutingAddressParameters) (EmailRoutingDestinationAddress,error)
CreateEmailRoutingDestinationAddress Create a destination address to forward your emails to.Destination addresses need to be verified before they become active.
API reference:https://api.cloudflare.com/#email-routing-destination-addresses-create-a-destination-address
func (*API)CreateEmailRoutingRule¶added inv0.47.0
func (api *API) CreateEmailRoutingRule(ctxcontext.Context, rc *ResourceContainer, paramsCreateEmailRoutingRuleParameters) (EmailRoutingRule,error)
CreateEmailRoutingRule Rules consist of a set of criteria for matching emails (such as an email being sent to a specific custom email address) plus a set of actions to take on the email (like forwarding it to a specific destination address).
API reference:https://api.cloudflare.com/#email-routing-routing-rules-create-routing-rule
func (*API)CreateFilters¶added inv0.9.0
func (api *API) CreateFilters(ctxcontext.Context, rc *ResourceContainer, params []FilterCreateParams) ([]Filter,error)
CreateFilters creates new filters.
API reference:https://developers.cloudflare.com/firewall/api/cf-filters/post/
func (*API)CreateFirewallRules¶added inv0.9.0
func (api *API) CreateFirewallRules(ctxcontext.Context, rc *ResourceContainer, params []FirewallRuleCreateParams) ([]FirewallRule,error)
CreateFirewallRules creates new firewall rules.
API reference:https://developers.cloudflare.com/firewall/api/cf-firewall-rules/post/
func (*API)CreateHealthcheck¶added inv0.11.1
func (api *API) CreateHealthcheck(ctxcontext.Context, zoneIDstring, healthcheckHealthcheck) (Healthcheck,error)
CreateHealthcheck creates a new healthcheck in a zone.
API reference:https://api.cloudflare.com/#health-checks-create-health-check
func (*API)CreateHealthcheckPreview¶added inv0.11.5
func (api *API) CreateHealthcheckPreview(ctxcontext.Context, zoneIDstring, healthcheckHealthcheck) (Healthcheck,error)
CreateHealthcheckPreview creates a new preview of a healthcheck in a zone.
API reference:https://api.cloudflare.com/#health-checks-create-preview-health-check
func (*API)CreateHyperdriveConfig¶added inv0.88.0
func (api *API) CreateHyperdriveConfig(ctxcontext.Context, rc *ResourceContainer, paramsCreateHyperdriveConfigParams) (HyperdriveConfig,error)
CreateHyperdriveConfig creates a new Hyperdrive config.
API reference:https://developers.cloudflare.com/api/resources/hyperdrive/subresources/configs/methods/create/
func (*API)CreateIPAddressToAddressMap¶added inv0.63.0
func (api *API) CreateIPAddressToAddressMap(ctxcontext.Context, rc *ResourceContainer, paramsCreateIPAddressToAddressMapParams)error
CreateIPAddressToAddressMap adds an IP address from a prefix owned by the account to a particular address map.
API reference:https://developers.cloudflare.com/api/resources/addressing/subresources/address_maps/subresources/ips/methods/update/
func (*API)CreateIPListdeprecatedadded inv0.13.0
func (*API)CreateIPListItemdeprecatedadded inv0.13.0
func (*API)CreateIPListItemAsyncdeprecatedadded inv0.13.0
func (api *API) CreateIPListItemAsync(ctxcontext.Context, accountID, ID, ip, commentstring) (IPListItemCreateResponse,error)
CreateIPListItemAsync creates a new IP List Item asynchronously. Users haveto poll the operation status by using the operation_id returned by thisfunction.
API reference:https://api.cloudflare.com/#rules-lists-create-list-items
Deprecated: Use `CreateListItemAsync` instead.
func (*API)CreateIPListItemsdeprecatedadded inv0.13.0
func (api *API) CreateIPListItems(ctxcontext.Context, accountID, IDstring, items []IPListItemCreateRequest) ([]IPListItem,error)
CreateIPListItems bulk creates many IP List Items synchronously and returnsthe current set of IP List Items.
Deprecated: Use `CreateListItems` instead.
func (*API)CreateIPListItemsAsyncdeprecatedadded inv0.13.0
func (api *API) CreateIPListItemsAsync(ctxcontext.Context, accountID, IDstring, items []IPListItemCreateRequest) (IPListItemCreateResponse,error)
CreateIPListItemsAsync bulk creates many IP List Items asynchronously. Usershave to poll the operation status by using the operation_id returned by thisfunction.
API reference:https://api.cloudflare.com/#rules-lists-create-list-items
Deprecated: Use `CreateListItemsAsync` instead.
func (*API)CreateImageDirectUploadURL¶added inv0.30.0
func (api *API) CreateImageDirectUploadURL(ctxcontext.Context, rc *ResourceContainer, paramsCreateImageDirectUploadURLParams) (ImageDirectUploadURL,error)
CreateImageDirectUploadURL creates an authenticated direct upload url.
API Reference:https://api.cloudflare.com/#cloudflare-images-create-authenticated-direct-upload-url
func (*API)CreateImagesVariant¶added inv0.88.0
func (api *API) CreateImagesVariant(ctxcontext.Context, rc *ResourceContainer, paramsCreateImagesVariantParams) (ImagesVariant,error)
Specify variants that allow you to resize images for different use cases.
API Reference:https://developers.cloudflare.com/api/resources/images/subresources/v1/subresources/variants/methods/create/
func (*API)CreateInfrastructureAccessTarget¶added inv0.105.0
func (api *API) CreateInfrastructureAccessTarget(ctxcontext.Context, rc *ResourceContainer, paramsCreateInfrastructureAccessTargetParams) (InfrastructureAccessTarget,error)
CreateInfrastructureAccessTarget creates a new infrastructure access target.
Account API reference:https://developers.cloudflare.com/api/resources/zero_trust/subresources/access/subresources/infrastructure/subresources/targets/methods/create/
func (*API)CreateKeylessSSL¶added inv0.17.0
func (api *API) CreateKeylessSSL(ctxcontext.Context, zoneIDstring, keylessSSLKeylessSSLCreateRequest) (KeylessSSL,error)
CreateKeylessSSL creates a new Keyless SSL configuration for the zone.
API reference:https://api.cloudflare.com/#keyless-ssl-for-a-zone-create-keyless-ssl-configuration
func (*API)CreateList¶added inv0.41.0
func (api *API) CreateList(ctxcontext.Context, rc *ResourceContainer, paramsListCreateParams) (List,error)
CreateList creates a new List.
API reference:https://api.cloudflare.com/#rules-lists-create-list
func (*API)CreateListItem¶added inv0.41.0
func (api *API) CreateListItem(ctxcontext.Context, rc *ResourceContainer, paramsListCreateItemParams) ([]ListItem,error)
CreateListItem creates a new List Item synchronously and returns the current set of List Items.
func (*API)CreateListItemAsync¶added inv0.41.0
func (api *API) CreateListItemAsync(ctxcontext.Context, rc *ResourceContainer, paramsListCreateItemParams) (ListItemCreateResponse,error)
CreateListItemAsync creates a new List Item asynchronously. Users have to poll the operation status byusing the operation_id returned by this function.
API reference:https://api.cloudflare.com/#rules-lists-create-list-items
func (*API)CreateListItems¶added inv0.41.0
func (api *API) CreateListItems(ctxcontext.Context, rc *ResourceContainer, paramsListCreateItemsParams) ([]ListItem,error)
CreateListItems bulk creates multiple List Items synchronously and returnsthe current set of List Items.
func (*API)CreateListItemsAsync¶added inv0.41.0
func (api *API) CreateListItemsAsync(ctxcontext.Context, rc *ResourceContainer, paramsListCreateItemsParams) (ListItemCreateResponse,error)
CreateListItemsAsync bulk creates multiple List Items asynchronously. Usershave to poll the operation status by using the operation_id returned by thisfunction.
API reference:https://api.cloudflare.com/#rules-lists-create-list-items
func (*API)CreateLoadBalancer¶added inv0.8.0
func (api *API) CreateLoadBalancer(ctxcontext.Context, rc *ResourceContainer, paramsCreateLoadBalancerParams) (LoadBalancer,error)
CreateLoadBalancer creates a new load balancer.
API reference:https://api.cloudflare.com/#load-balancers-create-load-balancer
func (*API)CreateLoadBalancerMonitor¶added inv0.8.0
func (api *API) CreateLoadBalancerMonitor(ctxcontext.Context, rc *ResourceContainer, paramsCreateLoadBalancerMonitorParams) (LoadBalancerMonitor,error)
CreateLoadBalancerMonitor creates a new load balancer monitor.
API reference:https://api.cloudflare.com/#load-balancer-monitors-create-monitor
func (*API)CreateLoadBalancerPool¶added inv0.8.0
func (api *API) CreateLoadBalancerPool(ctxcontext.Context, rc *ResourceContainer, paramsCreateLoadBalancerPoolParams) (LoadBalancerPool,error)
CreateLoadBalancerPool creates a new load balancer pool.
API reference:https://api.cloudflare.com/#load-balancer-pools-create-pool
func (*API)CreateLogpushJob¶added inv0.9.0
func (api *API) CreateLogpushJob(ctxcontext.Context, rc *ResourceContainer, paramsCreateLogpushJobParams) (*LogpushJob,error)
CreateLogpushJob creates a new zone-level Logpush Job.
API reference:https://api.cloudflare.com/#logpush-jobs-create-logpush-job
Example¶
api, err := cloudflare.New(apiKey, user)if err != nil {log.Fatal(err)}zoneID, err := api.ZoneIDByName(domain)if err != nil {log.Fatal(err)}job, err := api.CreateLogpushJob(context.Background(), cloudflare.ZoneIdentifier(zoneID), cloudflare.CreateLogpushJobParams{Enabled: false,Name: "example.com",LogpullOptions: "fields=RayID,ClientIP,EdgeStartTimestamp×tamps=rfc3339",DestinationConf: "s3://mybucket/logs?region=us-west-2",})if err != nil {log.Fatal(err)}fmt.Printf("%+v\n", job)
func (*API)CreateMTLSCertificate¶added inv0.58.0
func (api *API) CreateMTLSCertificate(ctxcontext.Context, rc *ResourceContainer, paramsCreateMTLSCertificateParams) (MTLSCertificate,error)
CreateMTLSCertificate will create the provided certificate for use with mTLSenabled Cloudflare services.
API reference:https://api.cloudflare.com/#mtls-certificate-management-upload-mtls-certificate
func (*API)CreateMagicFirewallRulesetdeprecatedadded inv0.13.7
func (api *API) CreateMagicFirewallRuleset(ctxcontext.Context, accountID, name, descriptionstring, rules []MagicFirewallRulesetRule) (MagicFirewallRuleset,error)
CreateMagicFirewallRuleset creates a Magic Firewall ruleset
API reference:https://api.cloudflare.com/#rulesets-list-rulesets
Deprecated: Use `CreateZoneRuleset` or `CreateAccountRuleset` instead.
func (*API)CreateMagicTransitGRETunnels¶added inv0.32.0
func (api *API) CreateMagicTransitGRETunnels(ctxcontext.Context, accountIDstring, tunnels []MagicTransitGRETunnel) ([]MagicTransitGRETunnel,error)
CreateMagicTransitGRETunnels creates one or more GRE tunnels.
API reference:https://api.cloudflare.com/#magic-gre-tunnels-create-gre-tunnels
func (*API)CreateMagicTransitIPsecTunnels¶added inv0.31.0
func (api *API) CreateMagicTransitIPsecTunnels(ctxcontext.Context, accountIDstring, tunnels []MagicTransitIPsecTunnel) ([]MagicTransitIPsecTunnel,error)
CreateMagicTransitIPsecTunnels creates one or more IPsec tunnels
API reference:https://api.cloudflare.com/#magic-ipsec-tunnels-create-ipsec-tunnels
func (*API)CreateMagicTransitStaticRoute¶added inv0.18.0
func (api *API) CreateMagicTransitStaticRoute(ctxcontext.Context, accountIDstring, routeMagicTransitStaticRoute) ([]MagicTransitStaticRoute,error)
CreateMagicTransitStaticRoute creates a new static route
API reference:https://api.cloudflare.com/#magic-transit-static-routes-create-routes
func (*API)CreateMembershipToAddressMap¶added inv0.63.0
func (api *API) CreateMembershipToAddressMap(ctxcontext.Context, rc *ResourceContainer, paramsCreateMembershipToAddressMapParams)error
CreateMembershipToAddressMap adds a zone/account as a member of a particular address map.
API reference:
func (*API)CreateMiscategorization¶added inv0.45.0
func (api *API) CreateMiscategorization(ctxcontext.Context, paramsMisCategorizationParameters)error
CreateMiscategorization creates a miscatergorization.
API Reference:https://api.cloudflare.com/#miscategorization-create-miscategorization
func (*API)CreateNotificationPolicy¶added inv0.19.0
func (api *API) CreateNotificationPolicy(ctxcontext.Context, accountIDstring, policyNotificationPolicy) (SaveResponse,error)
CreateNotificationPolicy creates a notification policy for an account.
API Reference:https://api.cloudflare.com/#notification-policies-create-notification-policy
func (*API)CreateNotificationWebhooks¶added inv0.19.0
func (api *API) CreateNotificationWebhooks(ctxcontext.Context, accountIDstring, webhooks *NotificationUpsertWebhooks) (SaveResponse,error)
CreateNotificationWebhooks will help connect a webhooks destination.A test message will be sent to the webhooks endpoint during creation.If added successfully, the webhooks can be setup as a destination mechanismwhile creating policies.
Notifications will be posted to this URL.
API Reference:https://api.cloudflare.com/#notification-webhooks-create-webhook
func (*API)CreateObservatoryPageTest¶added inv0.78.0
func (api *API) CreateObservatoryPageTest(ctxcontext.Context, rc *ResourceContainer, paramsCreateObservatoryPageTestParams) (*ObservatoryPageTest,error)
CreateObservatoryPageTest starts a test for a page in a specific region.
API reference:https://api.cloudflare.com/#speed-create-test
func (*API)CreateObservatoryScheduledPageTest¶added inv0.78.0
func (api *API) CreateObservatoryScheduledPageTest(ctxcontext.Context, rc *ResourceContainer, paramsCreateObservatoryScheduledPageTestParams) (*ObservatoryScheduledPageTest,error)
CreateObservatoryScheduledPageTest creates a scheduled test for a page in a specific region.
API reference:https://api.cloudflare.com/#speed-create-scheduled-test
func (*API)CreateOriginCACertificate¶added inv0.58.0
func (api *API) CreateOriginCACertificate(ctxcontext.Context, paramsCreateOriginCertificateParams) (*OriginCACertificate,error)
CreateOriginCACertificate creates a Cloudflare-signed certificate.
API reference:https://api.cloudflare.com/#cloudflare-ca-create-certificate
func (*API)CreatePageRule¶added inv0.7.2
CreatePageRule creates a new Page Rule for a zone.
API reference:https://api.cloudflare.com/#page-rules-for-a-zone-create-a-page-rule
Example¶
api, err := cloudflare.New(apiKey, user)if err != nil {log.Fatal(err)}zoneID, err := api.ZoneIDByName(domain)if err != nil {log.Fatal(err)}pageRule, err := api.CreatePageRule(context.Background(), zoneID, exampleNewPageRule)if err != nil {log.Fatal(err)}fmt.Printf("%+v\n", pageRule)
func (*API)CreatePageShieldPolicy¶added inv0.84.0
func (api *API) CreatePageShieldPolicy(ctxcontext.Context, rc *ResourceContainer, paramsCreatePageShieldPolicyParams) (*PageShieldPolicy,error)
CreatePageShieldPolicy creates a page shield policy for a zone.
API documentation:https://developers.cloudflare.com/api/operations/page-shield-create-page-shield-policy
func (*API)CreatePagesDeployment¶added inv0.40.0
func (api *API) CreatePagesDeployment(ctxcontext.Context, rc *ResourceContainer, paramsCreatePagesDeploymentParams) (PagesProjectDeployment,error)
CreatePagesDeployment creates a Pages production deployment.
API reference:https://api.cloudflare.com/#pages-deployment-create-deployment
func (*API)CreatePagesProject¶added inv0.26.0
func (api *API) CreatePagesProject(ctxcontext.Context, rc *ResourceContainer, paramsCreatePagesProjectParams) (PagesProject,error)
CreatePagesProject creates a new Pages project in an account.
API reference:https://api.cloudflare.com/#pages-project-create-project
func (*API)CreateQueue¶added inv0.55.0
func (api *API) CreateQueue(ctxcontext.Context, rc *ResourceContainer, queueCreateQueueParams) (Queue,error)
CreateQueue creates a new queue.
API reference:https://api.cloudflare.com/#queue-create-queue
func (*API)CreateQueueConsumer¶added inv0.55.0
func (api *API) CreateQueueConsumer(ctxcontext.Context, rc *ResourceContainer, paramsCreateQueueConsumerParams) (QueueConsumer,error)
CreateQueueConsumer creates a new consumer for a queue.
API reference:https://api.cloudflare.com/#queue-create-queue-consumer
func (*API)CreateR2Bucket¶added inv0.47.0
func (api *API) CreateR2Bucket(ctxcontext.Context, rc *ResourceContainer, paramsCreateR2BucketParameters) (R2Bucket,error)
CreateR2Bucket Creates a new R2 bucket.
API reference:https://api.cloudflare.com/#r2-bucket-create-bucket
func (*API)CreateRateLimit¶added inv0.8.5
CreateRateLimit creates a new rate limit for a zone.
API reference:https://api.cloudflare.com/#rate-limits-for-a-zone-create-a-ratelimit
Example¶
api, err := cloudflare.New(apiKey, user)if err != nil {log.Fatal(err)}zoneID, err := api.ZoneIDByName(domain)if err != nil {log.Fatal(err)}rateLimit, err := api.CreateRateLimit(context.Background(), zoneID, exampleNewRateLimit)if err != nil {log.Fatal(err)}fmt.Printf("%+v\n", rateLimit)
func (*API)CreateRiskScoreIntegration¶added inv0.101.0
func (api *API) CreateRiskScoreIntegration(ctxcontext.Context, rc *ResourceContainer, paramsRiskScoreIntegrationCreateRequest) (RiskScoreIntegration,error)
CreateRiskScoreIntegration creates a new Risk Score Integration.
API reference:https://developers.cloudflare.com/api/resources/zero_trust/subresources/risk_scoring/subresources/integrations/methods/create/
func (*API)CreateRuleset¶added inv0.73.0
func (api *API) CreateRuleset(ctxcontext.Context, rc *ResourceContainer, paramsCreateRulesetParams) (Ruleset,error)
CreateRuleset creates a new ruleset.
API reference:https://developers.cloudflare.com/api/operations/createAccountRulesetAPI reference:https://developers.cloudflare.com/api/resources/rulesets/methods/create/
func (*API)CreateSSL¶added inv0.7.2
func (api *API) CreateSSL(ctxcontext.Context, zoneIDstring, optionsZoneCustomSSLOptions) (ZoneCustomSSL,error)
CreateSSL allows you to add a custom SSL certificate to the given zone.
API reference:https://api.cloudflare.com/#custom-ssl-for-a-zone-create-ssl-configuration
func (*API)CreateSecondaryDNSPrimary¶added inv0.15.0
func (api *API) CreateSecondaryDNSPrimary(ctxcontext.Context, accountIDstring, primarySecondaryDNSPrimary) (SecondaryDNSPrimary,error)
CreateSecondaryDNSPrimary creates a secondary DNS primary.
API reference:https://api.cloudflare.com/#secondary-dns-primary--create-primary
func (*API)CreateSecondaryDNSTSIG¶added inv0.15.0
func (api *API) CreateSecondaryDNSTSIG(ctxcontext.Context, accountIDstring, tsigSecondaryDNSTSIG) (SecondaryDNSTSIG,error)
CreateSecondaryDNSTSIG creates a secondary DNS TSIG at the account level.
API reference:https://api.cloudflare.com/#secondary-dns-tsig--create-tsig
func (*API)CreateSecondaryDNSZone¶added inv0.15.0
func (api *API) CreateSecondaryDNSZone(ctxcontext.Context, zoneIDstring, zoneSecondaryDNSZone) (SecondaryDNSZone,error)
CreateSecondaryDNSZone creates a secondary DNS zone.
API reference:https://api.cloudflare.com/#secondary-dns-create-secondary-zone-configuration
func (*API)CreateSpectrumApplication¶added inv0.9.0
func (api *API) CreateSpectrumApplication(ctxcontext.Context, zoneIDstring, appDetailsSpectrumApplication) (SpectrumApplication,error)
CreateSpectrumApplication creates a new Spectrum application.
API reference:https://developers.cloudflare.com/spectrum/api-reference/#create-a-spectrum-application
func (*API)CreateTeamsList¶added inv0.17.0
func (api *API) CreateTeamsList(ctxcontext.Context, rc *ResourceContainer, paramsCreateTeamsListParams) (TeamsList,error)
CreateTeamsList creates a new teams list.
API reference:https://api.cloudflare.com/#teams-lists-create-teams-list
func (*API)CreateTeamsLocation¶added inv0.21.0
func (api *API) CreateTeamsLocation(ctxcontext.Context, accountIDstring, teamsLocationTeamsLocation) (TeamsLocation,error)
CreateTeamsLocation creates a new teams location.
API reference:https://api.cloudflare.com/#teams-locations-create-teams-location
func (*API)CreateTeamsProxyEndpoint¶added inv0.35.0
func (api *API) CreateTeamsProxyEndpoint(ctxcontext.Context, accountIDstring, proxyEndpointTeamsProxyEndpoint) (TeamsProxyEndpoint,error)
CreateTeamsProxyEndpoint creates a new proxy endpoint.
API reference:https://api.cloudflare.com/#zero-trust-gateway-proxy-endpoints-create-proxy-endpoint
func (*API)CreateTunnel¶added inv0.39.0
func (api *API) CreateTunnel(ctxcontext.Context, rc *ResourceContainer, paramsTunnelCreateParams) (Tunnel,error)
CreateTunnel creates a new tunnel for the account.
API reference:https://api.cloudflare.com/#cloudflare-tunnel-create-cloudflare-tunnel
func (*API)CreateTunnelRoute¶added inv0.36.0
func (api *API) CreateTunnelRoute(ctxcontext.Context, rc *ResourceContainer, paramsTunnelRoutesCreateParams) (TunnelRoute,error)
CreateTunnelRoute add a new route to the account routing table for the giventunnel.
func (*API)CreateTunnelVirtualNetwork¶added inv0.41.0
func (api *API) CreateTunnelVirtualNetwork(ctxcontext.Context, rc *ResourceContainer, paramsTunnelVirtualNetworkCreateParams) (TunnelVirtualNetwork,error)
CreateTunnelVirtualNetwork adds a new virtual network to the account.
API reference:https://api.cloudflare.com/#tunnel-virtual-network-create-virtual-network
func (*API)CreateTurnstileWidget¶added inv0.66.0
func (api *API) CreateTurnstileWidget(ctxcontext.Context, rc *ResourceContainer, paramsCreateTurnstileWidgetParams) (TurnstileWidget,error)
CreateTurnstileWidget creates a new challenge widgets.
API reference:https://api.cloudflare.com/#challenge-widgets-properties
func (*API)CreateUserAccessRule¶added inv0.8.1
func (api *API) CreateUserAccessRule(ctxcontext.Context, accessRuleAccessRule) (*AccessRuleResponse,error)
CreateUserAccessRule creates a firewall access rule for the logged-in user.
API reference:https://api.cloudflare.com/#user-level-firewall-access-rule-create-access-rule
func (*API)CreateUserAgentRule¶added inv0.8.0
func (api *API) CreateUserAgentRule(ctxcontext.Context, zoneIDstring, ldUserAgentRule) (*UserAgentRuleResponse,error)
CreateUserAgentRule creates a User-Agent Block rule for the given zone ID.
API reference:https://api.cloudflare.com/#user-agent-blocking-rules-create-a-useragent-rule
func (*API)CreateWAFOverride¶added inv0.11.1
func (api *API) CreateWAFOverride(ctxcontext.Context, zoneIDstring, overrideWAFOverride) (WAFOverride,error)
CreateWAFOverride creates a new WAF override.
API reference:https://api.cloudflare.com/#waf-overrides-create-a-uri-controlled-waf-configuration
func (*API)CreateWaitingRoom¶added inv0.17.0
func (api *API) CreateWaitingRoom(ctxcontext.Context, zoneIDstring, waitingRoomWaitingRoom) (*WaitingRoom,error)
CreateWaitingRoom creates a new Waiting Room for a zone.
API reference:https://api.cloudflare.com/#waiting-room-create-waiting-room
func (*API)CreateWaitingRoomEvent¶added inv0.33.0
func (api *API) CreateWaitingRoomEvent(ctxcontext.Context, zoneIDstring, waitingRoomIDstring, waitingRoomEventWaitingRoomEvent) (*WaitingRoomEvent,error)
CreateWaitingRoomEvent creates a new event for a Waiting Room.
API reference:https://api.cloudflare.com/#waiting-room-create-event
func (*API)CreateWaitingRoomRule¶added inv0.53.0
func (api *API) CreateWaitingRoomRule(ctxcontext.Context, rc *ResourceContainer, paramsCreateWaitingRoomRuleParams) ([]WaitingRoomRule,error)
CreateWaitingRoomRule creates a new rule for a Waiting Room.
API reference:https://api.cloudflare.com/#waiting-room-create-waiting-room-rule
func (*API)CreateWeb3Hostname¶added inv0.45.0
func (api *API) CreateWeb3Hostname(ctxcontext.Context, paramsWeb3HostnameCreateParameters) (Web3Hostname,error)
CreateWeb3Hostname creates a web3 hostname.
API Reference:https://api.cloudflare.com/#web3-hostname-create-web3-hostname
func (*API)CreateWebAnalyticsRule¶added inv0.75.0
func (api *API) CreateWebAnalyticsRule(ctxcontext.Context, rc *ResourceContainer, paramsCreateWebAnalyticsRuleParams) (*WebAnalyticsRule,error)
CreateWebAnalyticsRule creates a new Web Analytics Rule in a Web Analytics ruleset.
API reference:https://api.cloudflare.com/#web-analytics-create-rule
func (*API)CreateWebAnalyticsSite¶added inv0.75.0
func (api *API) CreateWebAnalyticsSite(ctxcontext.Context, rc *ResourceContainer, paramsCreateWebAnalyticsSiteParams) (*WebAnalyticsSite,error)
CreateWebAnalyticsSite creates a new Web Analytics Site for an Account.
API reference:https://api.cloudflare.com/#web-analytics-create-site
func (*API)CreateWorkerRoute¶added inv0.9.0
func (api *API) CreateWorkerRoute(ctxcontext.Context, rc *ResourceContainer, paramsCreateWorkerRouteParams) (WorkerRouteResponse,error)
CreateWorkerRoute creates worker route for a script.
API reference:https://developers.cloudflare.com/api/operations/worker-routes-create-route
func (*API)CreateWorkersAccountSettings¶added inv0.47.0
func (api *API) CreateWorkersAccountSettings(ctxcontext.Context, rc *ResourceContainer, paramsCreateWorkersAccountSettingsParameters) (WorkersAccountSettings,error)
CreateWorkersAccountSettings sets the account settings for Workers.
API reference:https://developers.cloudflare.com/api/resources/workers/subresources/account_settings/methods/update/
func (*API)CreateWorkersForPlatformsDispatchNamespace¶added inv0.90.0
func (api *API) CreateWorkersForPlatformsDispatchNamespace(ctxcontext.Context, rc *ResourceContainer, paramsCreateWorkersForPlatformsDispatchNamespaceParams) (*GetWorkersForPlatformsDispatchNamespaceResponse,error)
CreateWorkersForPlatformsDispatchNamespace creates a new dispatch namespace.
func (*API)CreateWorkersKVNamespace¶added inv0.9.0
func (api *API) CreateWorkersKVNamespace(ctxcontext.Context, rc *ResourceContainer, paramsCreateWorkersKVNamespaceParams) (WorkersKVNamespaceResponse,error)
CreateWorkersKVNamespace creates a namespace under the given title.A 400 is returned if the account already owns a namespace with this title.A namespace must be explicitly deleted to be replaced.
API reference:https://developers.cloudflare.com/api/resources/kv/subresources/namespaces/methods/create/
Example¶
api, err := cloudflare.New(apiKey, user)if err != nil {log.Fatal(err)}req := cloudflare.CreateWorkersKVNamespaceParams{Title: "test_namespace2"}response, err := api.CreateWorkersKVNamespace(context.Background(), cloudflare.AccountIdentifier(accountID), req)if err != nil {log.Fatal(err)}fmt.Println(response)
func (*API)CreateZone¶added inv0.7.2
func (api *API) CreateZone(ctxcontext.Context, namestring, jumpstartbool, accountAccount, zoneTypestring) (Zone,error)
CreateZone creates a zone on an account.
Setting jumpstart to true will attempt to automatically scan for existingDNS records. Setting this to false will create the zone with no DNS records.
If account is non-empty, it must have at least the ID field populated.This will add the new zone to the specified multi-user account.
API reference:https://api.cloudflare.com/#zone-create-a-zone
func (*API)CreateZoneAccessRule¶added inv0.8.1
func (api *API) CreateZoneAccessRule(ctxcontext.Context, zoneIDstring, accessRuleAccessRule) (*AccessRuleResponse,error)
CreateZoneAccessRule creates a firewall access rule for the given zoneidentifier.
API reference:https://api.cloudflare.com/#firewall-access-rule-for-a-zone-create-access-rule
func (*API)CreateZoneHold¶added inv0.75.0
func (api *API) CreateZoneHold(ctxcontext.Context, rc *ResourceContainer, paramsCreateZoneHoldParams) (ZoneHold,error)
CreateZoneHold enforces a zone hold on the zone, blocking the creation andactivation of zone.
API reference:https://developers.cloudflare.com/api/resources/zones/subresources/holds/methods/create/
func (*API)CreateZoneLevelAccessBookmark¶added inv0.36.0
func (api *API) CreateZoneLevelAccessBookmark(ctxcontext.Context, zoneIDstring, accessBookmarkAccessBookmark) (AccessBookmark,error)
CreateZoneLevelAccessBookmark creates a new zone level access bookmark.
API reference:https://api.cloudflare.com/#zone-level-access-bookmarks-create-access-bookmark
func (*API)CreateZoneLockdown¶added inv0.8.0
func (api *API) CreateZoneLockdown(ctxcontext.Context, rc *ResourceContainer, paramsZoneLockdownCreateParams) (ZoneLockdown,error)
CreateZoneLockdown creates a Zone ZoneLockdown rule for the given zone ID.
API reference:https://api.cloudflare.com/#zone-ZoneLockdown-create-a-ZoneLockdown-rule
Example¶
package mainimport ("context""fmt""log"cloudflare "github.com/cloudflare/cloudflare-go")func main() {api, err := cloudflare.New("deadbeef", "test@example.org")if err != nil {log.Fatal(err)}zoneID, err := api.ZoneIDByName("example.org")if err != nil {log.Fatal(err)}newZoneLockdown := cloudflare.ZoneLockdownCreateParams{Description: "Test Zone Lockdown Rule",URLs: []string{"*.example.org/test",},Configurations: []cloudflare.ZoneLockdownConfig{{Target: "ip",Value: "198.51.100.1",},},Paused: false,}response, err := api.CreateZoneLockdown(context.Background(), cloudflare.ZoneIdentifier(zoneID), newZoneLockdown)if err != nil {log.Fatal(err)}fmt.Println("Response: ", response)}
func (*API)CustomHostname¶added inv0.7.4
func (api *API) CustomHostname(ctxcontext.Context, zoneIDstring, customHostnameIDstring) (CustomHostname,error)
CustomHostname inspects the given custom hostname in the given zone.
API reference:https://api.cloudflare.com/#custom-hostname-for-a-zone-custom-hostname-configuration-details
func (*API)CustomHostnameFallbackOrigin¶added inv0.12.0
func (api *API) CustomHostnameFallbackOrigin(ctxcontext.Context, zoneIDstring) (CustomHostnameFallbackOrigin,error)
CustomHostnameFallbackOrigin inspects the Custom Hostname Fallback origin in the given zone.
API reference:https://api.cloudflare.com/#custom-hostname-fallback-origin-for-a-zone-properties
func (*API)CustomHostnameIDByName¶added inv0.7.4
func (api *API) CustomHostnameIDByName(ctxcontext.Context, zoneIDstring, hostnamestring) (string,error)
CustomHostnameIDByName retrieves the ID for the given hostname in the given zone.
func (*API)CustomHostnames¶added inv0.7.4
func (api *API) CustomHostnames(ctxcontext.Context, zoneIDstring, pageint, filterCustomHostname) ([]CustomHostname,ResultInfo,error)
CustomHostnames fetches custom hostnames for the given zone,by applying filter.Hostname if not empty and scoping the result to page'th 50 items.
The returned ResultInfo can be used to implement pagination.
API reference:https://api.cloudflare.com/#custom-hostname-for-a-zone-list-custom-hostnames
func (*API)CustomPage¶added inv0.9.0
func (api *API) CustomPage(ctxcontext.Context, options *CustomPageOptions, customPageIDstring) (CustomPage,error)
CustomPage lists a single custom page based on the ID.
Zone API reference:https://api.cloudflare.com/#custom-pages-for-a-zone-custom-page-detailsAccount API reference:https://api.cloudflare.com/#custom-pages-account--custom-page-details
func (*API)CustomPages¶added inv0.9.0
func (api *API) CustomPages(ctxcontext.Context, options *CustomPageOptions) ([]CustomPage,error)
CustomPages lists custom pages for a zone or account.
Zone API reference:https://api.cloudflare.com/#custom-pages-for-a-zone-list-available-custom-pagesAccount API reference:https://api.cloudflare.com/#custom-pages-account--list-custom-pages
func (*API)DeleteAPIShieldOperation¶added inv0.78.0
func (api *API) DeleteAPIShieldOperation(ctxcontext.Context, rc *ResourceContainer, paramsDeleteAPIShieldOperationParams)error
DeleteAPIShieldOperation deletes a single operation
API documentationhttps://developers.cloudflare.com/api/resources/api_gateway/subresources/operations/methods/delete/
func (*API)DeleteAPIShieldSchema¶added inv0.79.0
func (api *API) DeleteAPIShieldSchema(ctxcontext.Context, rc *ResourceContainer, paramsDeleteAPIShieldSchemaParams)error
DeleteAPIShieldSchema deletes a single schema
API documentation:https://developers.cloudflare.com/api/resources/api_gateway/subresources/user_schemas/methods/delete/
func (*API)DeleteAPIToken¶added inv0.13.5
DeleteAPIToken deletes a single API token.
API reference:https://api.cloudflare.com/#user-api-tokens-delete-token
func (*API)DeleteAccessApplication¶added inv0.9.0
func (api *API) DeleteAccessApplication(ctxcontext.Context, rc *ResourceContainer, applicationIDstring)error
DeleteAccessApplication deletes an access application.
Account API reference:https://developers.cloudflare.com/api/operations/access-applications-delete-an-access-applicationZone API reference:https://developers.cloudflare.com/api/operations/zone-level-access-applications-delete-an-access-application
func (*API)DeleteAccessBookmark¶added inv0.36.0
DeleteAccessBookmark deletes an access bookmark.
API reference:https://api.cloudflare.com/#access-bookmarks-delete-access-bookmark
func (*API)DeleteAccessCACertificate¶added inv0.12.1
func (api *API) DeleteAccessCACertificate(ctxcontext.Context, rc *ResourceContainer, applicationIDstring)error
DeleteAccessCACertificate deletes an Access CA certificate on a definedAccessApplication.
Account API reference:https://developers.cloudflare.com/api/operations/access-short-lived-certificate-c-as-delete-a-short-lived-certificate-caZone API reference:https://developers.cloudflare.com/api/operations/zone-level-access-short-lived-certificate-c-as-delete-a-short-lived-certificate-ca
func (*API)DeleteAccessCustomPage¶added inv0.74.0
func (*API)DeleteAccessGroup¶added inv0.10.5
DeleteAccessGroup deletes an access group
Account API Reference:https://developers.cloudflare.com/api/operations/access-groups-delete-an-access-groupZone API Reference:https://developers.cloudflare.com/api/operations/zone-level-access-groups-delete-an-access-group
func (*API)DeleteAccessIdentityProvider¶added inv0.10.1
func (api *API) DeleteAccessIdentityProvider(ctxcontext.Context, rc *ResourceContainer, identityProviderUUIDstring) (AccessIdentityProvider,error)
DeleteAccessIdentityProvider deletes an Access Identity Provider.
Account API Reference:https://developers.cloudflare.com/api/operations/access-identity-providers-delete-an-access-identity-providerZone API Reference:https://developers.cloudflare.com/api/operations/zone-level-access-identity-providers-delete-an-access-identity-provider
func (*API)DeleteAccessMutualTLSCertificate¶added inv0.13.8
func (api *API) DeleteAccessMutualTLSCertificate(ctxcontext.Context, rc *ResourceContainer, certificateIDstring)error
DeleteAccessMutualTLSCertificate destroys an Access MutualTLS certificate.
Account API Reference:https://developers.cloudflare.com/api/operations/access-mtls-authentication-delete-an-mtls-certificateZone API Reference:https://developers.cloudflare.com/api/operations/zone-level-access-mtls-authentication-delete-an-mtls-certificate
func (*API)DeleteAccessPolicy¶added inv0.9.0
func (api *API) DeleteAccessPolicy(ctxcontext.Context, rc *ResourceContainer, paramsDeleteAccessPolicyParams)error
DeleteAccessPolicy deletes an access policy.
Account API reference:https://developers.cloudflare.com/api/operations/access-policies-delete-an-access-policyZone API reference:https://developers.cloudflare.com/api/operations/zone-level-access-policies-delete-an-access-policy
func (*API)DeleteAccessServiceToken¶added inv0.10.1
func (api *API) DeleteAccessServiceToken(ctxcontext.Context, rc *ResourceContainer, uuidstring) (AccessServiceTokenUpdateResponse,error)
func (*API)DeleteAccessTag¶added inv0.78.0
func (*API)DeleteAccount¶added inv0.13.8
DeleteAccount removes an account. Note: This requires the Tenantentitlement.
API reference:https://developers.cloudflare.com/tenant/tutorial/provisioning-resources#optional-deleting-accounts
func (*API)DeleteAccountAccessRule¶added inv0.10.0
func (api *API) DeleteAccountAccessRule(ctxcontext.Context, accountID, accessRuleIDstring) (*AccessRuleResponse,error)
DeleteAccountAccessRule deletes a single access rule for the givenaccount and access rule identifiers.
API reference:https://api.cloudflare.com/#account-level-firewall-access-rule-delete-access-rule
func (*API)DeleteAccountMember¶added inv0.9.0
DeleteAccountMember removes a member from an account.
API reference:https://api.cloudflare.com/#account-members-remove-member
func (*API)DeleteAddressMap¶added inv0.63.0
DeleteAddressMap deletes a particular address map owned by the account.
API reference:https://developers.cloudflare.com/api/resources/addressing/subresources/address_maps/methods/delete/
func (*API)DeleteArgoTunneldeprecatedadded inv0.13.7
func (*API)DeleteCertificatePack¶added inv0.13.0
DeleteCertificatePack removes a certificate pack associated with a zone.
API Reference:https://api.cloudflare.com/#certificate-packs-delete-advanced-certificate-manager-certificate-pack
func (*API)DeleteCustomHostname¶added inv0.7.4
DeleteCustomHostname deletes a custom hostname (and any issued SSLcertificates).
API reference:https://api.cloudflare.com/#custom-hostname-for-a-zone-delete-a-custom-hostname-and-any-issued-ssl-certificates-
func (*API)DeleteCustomHostnameFallbackOrigin¶added inv0.13.0
DeleteCustomHostnameFallbackOrigin deletes the Custom Hostname Fallback origin in the given zone.
API reference:https://api.cloudflare.com/#custom-hostname-fallback-origin-for-a-zone-delete-fallback-origin-for-custom-hostnames
func (*API)DeleteCustomNameservers¶added inv0.70.0
func (api *API) DeleteCustomNameservers(ctxcontext.Context, rc *ResourceContainer, paramsDeleteCustomNameserversParams)error
DeleteCustomNameservers removes a custom nameserver.
API documentation:https://developers.cloudflare.com/api/resources/custom_nameservers/methods/delete/
func (*API)DeleteD1Database¶added inv0.79.0
DeleteD1Database deletes a database for an account.
API reference:https://developers.cloudflare.com/api/resources/d1/subresources/database/methods/delete/
func (*API)DeleteDLPDataset¶added inv0.87.0
DeleteDLPDataset deletes a DLP dataset.
API reference:https://developers.cloudflare.com/api/resources/zero_trust/subresources/dlp/subresources/datasets/methods/delete/
func (*API)DeleteDLPProfile¶added inv0.53.0
DeleteDLPProfile deletes a DLP profile. Only custom profiles can be deleted.
API reference:https://api.cloudflare.com/#dlp-profiles-delete-custom-profile
func (*API)DeleteDNSFirewallCluster¶added inv0.29.0
func (api *API) DeleteDNSFirewallCluster(ctxcontext.Context, rc *ResourceContainer, clusterIDstring)error
DeleteDNSFirewallCluster deletes a DNS Firewall cluster. Note that this cannot beundone, and will stop all traffic to that cluster.
API reference:https://api.cloudflare.com/#dns-firewall-delete-dns-firewall-cluster
func (*API)DeleteDNSRecord¶added inv0.7.2
DeleteDNSRecord deletes a single DNS record for the given zone & recordidentifiers.
API reference:https://api.cloudflare.com/#dns-records-for-a-zone-delete-dns-record
func (*API)DeleteDataLocalizationRegionalHostname¶added inv0.66.0
func (api *API) DeleteDataLocalizationRegionalHostname(ctxcontext.Context, rc *ResourceContainer, hostnamestring)error
DeleteDataLocalizationRegionalHostname deletes a regional hostname.
API reference:https://developers.cloudflare.com/data-localization/regional-services/get-started/#configure-regional-services-via-api
func (*API)DeleteDevicePostureIntegration¶added inv0.29.0
DeleteDevicePostureIntegration deletes a device posture integration.
API reference:https://api.cloudflare.com/#device-posture-integrations-delete-device-posture-integration
func (*API)DeleteDevicePostureRule¶added inv0.17.0
DeleteDevicePostureRule deletes a device posture rule.
API reference:https://api.cloudflare.com/#device-posture-rules-delete-device-posture-rule
func (*API)DeleteDeviceSettingsPolicy¶added inv0.52.0
func (api *API) DeleteDeviceSettingsPolicy(ctxcontext.Context, rc *ResourceContainer, policyIDstring) ([]DeviceSettingsPolicy,error)
DeleteDeviceSettingsPolicy deletes a settings policy and returns a listof all of the other policies in the account.
API reference:https://api.cloudflare.com/#devices-delete-device-settings-policy
func (*API)DeleteDexTest¶added inv0.62.0
func (api *API) DeleteDexTest(ctxcontext.Context, rc *ResourceContainer, testIDstring) (DeviceDexTests,error)
DeleteDexTest deletes a Device Dex Test.
API reference:https://developers.cloudflare.com/api/resources/zero_trust/subresources/devices/subresources/dex_tests/methods/delete/
func (*API)DeleteEmailRoutingDestinationAddress¶added inv0.47.0
func (api *API) DeleteEmailRoutingDestinationAddress(ctxcontext.Context, rc *ResourceContainer, addressIDstring) (EmailRoutingDestinationAddress,error)
DeleteEmailRoutingDestinationAddress Deletes a specific destination address.
API reference:https://api.cloudflare.com/#email-routing-destination-addresses-delete-destination-address
func (*API)DeleteEmailRoutingRule¶added inv0.47.0
func (api *API) DeleteEmailRoutingRule(ctxcontext.Context, rc *ResourceContainer, ruleIDstring) (EmailRoutingRule,error)
DeleteEmailRoutingRule Delete a specific routing rule.
API reference:https://api.cloudflare.com/#email-routing-routing-rules-delete-routing-rule
func (*API)DeleteFilter¶added inv0.9.0
DeleteFilter deletes a single filter.
API reference:https://developers.cloudflare.com/firewall/api/cf-filters/delete/#delete-a-single-filter
func (*API)DeleteFilters¶added inv0.9.0
DeleteFilters deletes multiple filters.
API reference:https://developers.cloudflare.com/firewall/api/cf-filters/delete/#delete-multiple-filters
func (*API)DeleteFirewallRule¶added inv0.9.0
func (api *API) DeleteFirewallRule(ctxcontext.Context, rc *ResourceContainer, firewallRuleIDstring)error
DeleteFirewallRule deletes a single firewall rule.
API reference:https://developers.cloudflare.com/firewall/api/cf-firewall-rules/delete/#delete-a-single-rule
func (*API)DeleteFirewallRules¶added inv0.9.0
func (api *API) DeleteFirewallRules(ctxcontext.Context, rc *ResourceContainer, firewallRuleIDs []string)error
DeleteFirewallRules deletes multiple firewall rules at once.
API reference:https://developers.cloudflare.com/firewall/api/cf-firewall-rules/delete/#delete-multiple-rules
func (*API)DeleteHealthcheck¶added inv0.11.1
DeleteHealthcheck deletes a healthcheck in a zone.
API reference:https://api.cloudflare.com/#health-checks-delete-health-check
func (*API)DeleteHealthcheckPreview¶added inv0.11.5
DeleteHealthcheckPreview deletes a healthcheck preview in a zone if it exists.
API reference:https://api.cloudflare.com/#health-checks-delete-preview-health-check
func (*API)DeleteHostnameTLSSetting¶added inv0.75.0
func (api *API) DeleteHostnameTLSSetting(ctxcontext.Context, rc *ResourceContainer, paramsDeleteHostnameTLSSettingParams) (HostnameTLSSetting,error)
DeleteHostnameTLSSetting will delete the specified per-hostname tls setting.
API reference:https://developers.cloudflare.com/api/resources/hostnames/subresources/settings/subresources/tls/methods/delete/
func (*API)DeleteHostnameTLSSettingCiphers¶added inv0.75.0
func (api *API) DeleteHostnameTLSSettingCiphers(ctxcontext.Context, rc *ResourceContainer, paramsDeleteHostnameTLSSettingCiphersParams) (HostnameTLSSettingCiphers,error)
DeleteHostnameTLSSettingCiphers will delete the specified per-hostname ciphers tls setting value.Ciphers functions are separate due to the API returning a list of strings as the value, rather than a string (as is the case for the other tls settings).
API reference:https://developers.cloudflare.com/api/resources/hostnames/subresources/settings/subresources/tls/methods/delete/
func (*API)DeleteHyperdriveConfig¶added inv0.88.0
func (api *API) DeleteHyperdriveConfig(ctxcontext.Context, rc *ResourceContainer, hyperdriveIDstring)error
DeleteHyperdriveConfig deletes a Hyperdrive config.
API reference:https://developers.cloudflare.com/api/resources/hyperdrive/subresources/configs/methods/delete/
func (*API)DeleteIPAddressFromAddressMap¶added inv0.63.0
func (api *API) DeleteIPAddressFromAddressMap(ctxcontext.Context, rc *ResourceContainer, paramsDeleteIPAddressFromAddressMapParams)error
DeleteIPAddressFromAddressMap removes an IP address from a particular address map.
API reference:https://developers.cloudflare.com/api/resources/addressing/subresources/address_maps/subresources/ips/methods/delete/
func (*API)DeleteIPListdeprecatedadded inv0.13.0
DeleteIPList deletes an IP List.
API reference:https://api.cloudflare.com/#rules-lists-delete-list
Deprecated: Use `DeleteList` instead.
func (*API)DeleteIPListItemsdeprecatedadded inv0.13.0
func (api *API) DeleteIPListItems(ctxcontext.Context, accountID, IDstring, itemsIPListItemDeleteRequest) ([]IPListItem,error)
DeleteIPListItems removes specific Items of an IP List by their IDsynchronously and returns the current set of IP List Items.
Deprecated: Use `DeleteListItems` instead.
func (*API)DeleteIPListItemsAsyncdeprecatedadded inv0.13.0
func (api *API) DeleteIPListItemsAsync(ctxcontext.Context, accountID, IDstring, itemsIPListItemDeleteRequest) (IPListItemDeleteResponse,error)
DeleteIPListItemsAsync removes specific Items of an IP List by their IDasynchronously. Users have to poll the operation status by using theoperation_id returned by this function.
API reference:https://api.cloudflare.com/#rules-lists-delete-list-items
Deprecated: Use `DeleteListItemsAsync` instead.
func (*API)DeleteImage¶added inv0.30.0
DeleteImage deletes an image.
API Reference:https://api.cloudflare.com/#cloudflare-images-delete-image
func (*API)DeleteImagesVariant¶added inv0.88.0
func (api *API) DeleteImagesVariant(ctxcontext.Context, rc *ResourceContainer, variantIDstring)error
Deleting a variant purges the cache for all images associated with the variant.
API Reference:https://developers.cloudflare.com/api/resources/images/subresources/v1/subresources/variants/methods/get/
func (*API)DeleteInfrastructureAccessTarget¶added inv0.105.0
func (api *API) DeleteInfrastructureAccessTarget(ctxcontext.Context, rc *ResourceContainer, targetIDstring)error
DeleteInfrastructureAccessTarget deletes an infrastructure access target.
Account API reference:https://developers.cloudflare.com/api/resources/zero_trust/subresources/access/subresources/infrastructure/subresources/targets/methods/delete/
func (*API)DeleteKeylessSSL¶added inv0.17.0
DeleteKeylessSSL deletes an existing Keyless SSL configuration.
API reference:https://api.cloudflare.com/#keyless-ssl-for-a-zone-delete-keyless-ssl-configuration
func (*API)DeleteList¶added inv0.41.0
func (api *API) DeleteList(ctxcontext.Context, rc *ResourceContainer, listIDstring) (ListDeleteResponse,error)
DeleteList deletes a List.
API reference:https://api.cloudflare.com/#rules-lists-delete-list
func (*API)DeleteListItems¶added inv0.41.0
func (api *API) DeleteListItems(ctxcontext.Context, rc *ResourceContainer, paramsListDeleteItemsParams) ([]ListItem,error)
DeleteListItems removes specific Items of a List by their ID synchronouslyand returns the current set of List Items.
func (*API)DeleteListItemsAsync¶added inv0.41.0
func (api *API) DeleteListItemsAsync(ctxcontext.Context, rc *ResourceContainer, paramsListDeleteItemsParams) (ListItemDeleteResponse,error)
DeleteListItemsAsync removes specific Items of a List by their IDasynchronously. Users have to poll the operation status by using theoperation_id returned by this function.
API reference:https://api.cloudflare.com/#rules-lists-delete-list-items
func (*API)DeleteLoadBalancer¶added inv0.8.0
func (api *API) DeleteLoadBalancer(ctxcontext.Context, rc *ResourceContainer, loadbalancerIDstring)error
DeleteLoadBalancer disables and deletes a load balancer.
API reference:https://api.cloudflare.com/#load-balancers-delete-load-balancer
func (*API)DeleteLoadBalancerMonitor¶added inv0.8.0
func (api *API) DeleteLoadBalancerMonitor(ctxcontext.Context, rc *ResourceContainer, monitorIDstring)error
DeleteLoadBalancerMonitor disables and deletes a load balancer monitor.
API reference:https://api.cloudflare.com/#load-balancer-monitors-delete-monitor
func (*API)DeleteLoadBalancerPool¶added inv0.8.0
func (api *API) DeleteLoadBalancerPool(ctxcontext.Context, rc *ResourceContainer, poolIDstring)error
DeleteLoadBalancerPool disables and deletes a load balancer pool.
API reference:https://api.cloudflare.com/#load-balancer-pools-delete-pool
func (*API)DeleteLogpushJob¶added inv0.9.0
DeleteLogpushJob deletes a Logpush Job for a zone.
API reference:https://api.cloudflare.com/#logpush-jobs-delete-logpush-job
Example¶
api, err := cloudflare.New(apiKey, user)if err != nil {log.Fatal(err)}zoneID, err := api.ZoneIDByName(domain)if err != nil {log.Fatal(err)}err = api.DeleteLogpushJob(context.Background(), cloudflare.ZoneIdentifier(zoneID), 1)if err != nil {log.Fatal(err)}
func (*API)DeleteMTLSCertificate¶added inv0.58.0
func (api *API) DeleteMTLSCertificate(ctxcontext.Context, rc *ResourceContainer, certificateIDstring) (MTLSCertificate,error)
DeleteMTLSCertificate will delete the specified mTLS certificate.
API reference:https://api.cloudflare.com/#mtls-certificate-management-delete-mtls-certificate
func (*API)DeleteMagicFirewallRulesetdeprecatedadded inv0.13.7
func (*API)DeleteMagicTransitGRETunnel¶added inv0.32.0
func (api *API) DeleteMagicTransitGRETunnel(ctxcontext.Context, accountIDstring, idstring) (MagicTransitGRETunnel,error)
DeleteMagicTransitGRETunnel deletes a GRE tunnel.
API reference:https://api.cloudflare.com/#magic-gre-tunnels-delete-gre-tunnel
func (*API)DeleteMagicTransitIPsecTunnel¶added inv0.31.0
func (api *API) DeleteMagicTransitIPsecTunnel(ctxcontext.Context, accountIDstring, idstring) (MagicTransitIPsecTunnel,error)
DeleteMagicTransitIPsecTunnel deletes an IPsec Tunnel
API reference:https://api.cloudflare.com/#magic-ipsec-tunnels-delete-ipsec-tunnel
func (*API)DeleteMagicTransitStaticRoute¶added inv0.18.0
func (api *API) DeleteMagicTransitStaticRoute(ctxcontext.Context, accountID, IDstring) (MagicTransitStaticRoute,error)
DeleteMagicTransitStaticRoute deletes a static route
API reference:https://api.cloudflare.com/#magic-transit-static-routes-delete-route
func (*API)DeleteManagedNetworks¶added inv0.57.0
func (api *API) DeleteManagedNetworks(ctxcontext.Context, rc *ResourceContainer, networkIDstring) ([]DeviceManagedNetwork,error)
DeleteManagedNetworks deletes a Device Managed Network.
API reference:https://api.cloudflare.com/#device-managed-networks-delete-device-managed-network
func (*API)DeleteMembershipFromAddressMap¶added inv0.63.0
func (api *API) DeleteMembershipFromAddressMap(ctxcontext.Context, rc *ResourceContainer, paramsDeleteMembershipFromAddressMapParams)error
DeleteMembershipFromAddressMap removes a zone/account as a member of a particular address map.
API reference:
func (*API)DeleteNotificationPolicy¶added inv0.19.0
func (api *API) DeleteNotificationPolicy(ctxcontext.Context, accountID, policyIDstring) (SaveResponse,error)
DeleteNotificationPolicy deletes a notification policy for an account.
API Reference:https://api.cloudflare.com/#notification-policies-delete-notification-policy
func (*API)DeleteNotificationWebhooks¶added inv0.19.0
func (api *API) DeleteNotificationWebhooks(ctxcontext.Context, accountID, webhookIDstring) (SaveResponse,error)
DeleteNotificationWebhooks will delete a webhook, given the account andwebhooks ids. Deleting the webhooks will remove it from any connectednotification policies.
API Reference:https://api.cloudflare.com/#notification-webhooks-delete-webhook
func (*API)DeleteObservatoryPageTests¶added inv0.78.0
func (api *API) DeleteObservatoryPageTests(ctxcontext.Context, rc *ResourceContainer, paramsDeleteObservatoryPageTestsParams) (*int,error)
DeleteObservatoryPageTests deletes all tests for a page in a specific region.
API reference:https://api.cloudflare.com/#speed-delete-tests
func (*API)DeleteObservatoryScheduledPageTest¶added inv0.78.0
func (api *API) DeleteObservatoryScheduledPageTest(ctxcontext.Context, rc *ResourceContainer, paramsDeleteObservatoryScheduledPageTestParams) (*int,error)
DeleteObservatoryScheduledPageTest deletes the test schedule for a page in a specific region.
API reference:https://api.cloudflare.com/#speed-delete-scheduled-test
func (*API)DeletePageRule¶added inv0.7.2
DeletePageRule deletes a Page Rule for a zone.
API reference:https://api.cloudflare.com/#page-rules-for-a-zone-delete-a-page-rule
Example¶
api, err := cloudflare.New(apiKey, user)if err != nil {log.Fatal(err)}zoneID, err := api.ZoneIDByName(domain)if err != nil {log.Fatal(err)}err = api.DeletePageRule(context.Background(), zoneID, "my_page_rule_id")if err != nil {log.Fatal(err)}
func (*API)DeletePageShieldPolicy¶added inv0.84.0
func (api *API) DeletePageShieldPolicy(ctxcontext.Context, rc *ResourceContainer, policyIDstring)error
DeletePageShieldPolicy deletes a page shield policy for a zone.
API documentation:https://developers.cloudflare.com/api/operations/page-shield-delete-page-shield-policy
func (*API)DeletePagesDeployment¶added inv0.40.0
func (api *API) DeletePagesDeployment(ctxcontext.Context, rc *ResourceContainer, paramsDeletePagesDeploymentParams)error
DeletePagesDeployment deletes a Pages deployment.
API reference:https://api.cloudflare.com/#pages-deployment-delete-deployment
func (*API)DeletePagesProject¶added inv0.26.0
func (api *API) DeletePagesProject(ctxcontext.Context, rc *ResourceContainer, projectNamestring)error
DeletePagesProject deletes a Pages project by name.
API reference:https://api.cloudflare.com/#pages-project-delete-project
func (*API)DeletePerHostnameAuthenticatedOriginPullsCertificate¶added inv0.12.2
func (api *API) DeletePerHostnameAuthenticatedOriginPullsCertificate(ctxcontext.Context, zoneID, certificateIDstring) (PerHostnameAuthenticatedOriginPullsCertificateDetails,error)
DeletePerHostnameAuthenticatedOriginPullsCertificate will remove the requested Per Hostname certificate from the edge.
API reference:https://api.cloudflare.com/#per-hostname-authenticated-origin-pull-delete-hostname-client-certificate
func (*API)DeletePerZoneAuthenticatedOriginPullsCertificate¶added inv0.12.2
func (api *API) DeletePerZoneAuthenticatedOriginPullsCertificate(ctxcontext.Context, zoneID, certificateIDstring) (PerZoneAuthenticatedOriginPullsCertificateDetails,error)
DeletePerZoneAuthenticatedOriginPullsCertificate removes the specified client certificate from the edge.
API reference:https://api.cloudflare.com/#zone-level-authenticated-origin-pulls-delete-certificate
func (*API)DeleteQueue¶added inv0.55.0
DeleteQueue deletes a queue.
API reference:https://api.cloudflare.com/#queue-delete-queue
func (*API)DeleteQueueConsumer¶added inv0.55.0
func (api *API) DeleteQueueConsumer(ctxcontext.Context, rc *ResourceContainer, paramsDeleteQueueConsumerParams)error
DeleteQueueConsumer deletes the consumer for a queue..
API reference:https://api.cloudflare.com/#queue-delete-queue-consumer
func (*API)DeleteR2Bucket¶added inv0.47.0
DeleteR2Bucket Deletes an existing R2 bucket.
API reference:https://api.cloudflare.com/#r2-bucket-delete-bucket
func (*API)DeleteRateLimit¶added inv0.8.5
DeleteRateLimit deletes a Rate Limit for a zone.
API reference:https://api.cloudflare.com/#rate-limits-for-a-zone-delete-rate-limit
Example¶
api, err := cloudflare.New(apiKey, user)if err != nil {log.Fatal(err)}zoneID, err := api.ZoneIDByName(domain)if err != nil {log.Fatal(err)}err = api.DeleteRateLimit(context.Background(), zoneID, "my_rate_limit_id")if err != nil {log.Fatal(err)}
func (*API)DeleteRiskScoreIntegration¶added inv0.101.0
func (api *API) DeleteRiskScoreIntegration(ctxcontext.Context, rc *ResourceContainer, integrationIDstring)error
DeleteRiskScoreIntegration deletes a Risk Score Integration.
API reference:https://developers.cloudflare.com/api/resources/zero_trust/subresources/risk_scoring/subresources/integrations/methods/delete/
func (*API)DeleteRuleset¶added inv0.73.0
DeleteRuleset removes a ruleset based on the ruleset ID.
API reference:https://developers.cloudflare.com/api/operations/deleteAccountRulesetAPI reference:https://developers.cloudflare.com/api/resources/rulesets/methods/delete/
func (*API)DeleteRulesetRule¶added inv0.102.0
func (api *API) DeleteRulesetRule(ctxcontext.Context, rc *ResourceContainer, paramsDeleteRulesetRuleParams)error
DeleteRulesetRule removes a ruleset rule based on the ruleset ID +ruleset rule ID.
API reference:https://developers.cloudflare.com/api/resources/rulesets/methods/delete/
func (*API)DeleteSSL¶added inv0.7.2
DeleteSSL deletes a custom SSL certificate from the given zone.
API reference:https://api.cloudflare.com/#custom-ssl-for-a-zone-delete-an-ssl-certificate
func (*API)DeleteSecondaryDNSPrimary¶added inv0.15.0
DeleteSecondaryDNSPrimary deletes a secondary DNS primary.
API reference:https://api.cloudflare.com/#secondary-dns-primary--delete-primary
func (*API)DeleteSecondaryDNSTSIG¶added inv0.15.0
DeleteSecondaryDNSTSIG deletes a secondary DNS TSIG.
API reference:https://api.cloudflare.com/#secondary-dns-tsig--delete-tsig
func (*API)DeleteSecondaryDNSZone¶added inv0.15.0
DeleteSecondaryDNSZone deletes a secondary DNS zone.
API reference:https://api.cloudflare.com/#secondary-dns-delete-secondary-zone-configuration
func (*API)DeleteSpectrumApplication¶added inv0.9.0
func (api *API) DeleteSpectrumApplication(ctxcontext.Context, zoneIDstring, applicationIDstring)error
DeleteSpectrumApplication removes a Spectrum application based on the ID.
API reference:https://developers.cloudflare.com/spectrum/api-reference/#delete-a-spectrum-application
func (*API)DeleteTeamsList¶added inv0.17.0
DeleteTeamsList deletes a teams list.
API reference:https://api.cloudflare.com/#teams-lists-delete-teams-list
func (*API)DeleteTeamsLocation¶added inv0.21.0
DeleteTeamsLocation deletes a teams location.
API reference:https://api.cloudflare.com/#teams-locations-delete-teams-location
func (*API)DeleteTeamsProxyEndpoint¶added inv0.35.0
DeleteTeamsProxyEndpoint deletes a teams Proxy Endpoint.
API reference:https://api.cloudflare.com/#zero-trust-gateway-proxy-endpoints-delete-proxy-endpoint
func (*API)DeleteTieredCache¶added inv0.57.1
func (api *API) DeleteTieredCache(ctxcontext.Context, rc *ResourceContainer) (TieredCache,error)
DeleteTieredCache allows you to delete the tiered cache settings for a zone.This is equivalent to using SetTieredCache with the value of TieredCacheOff.
API Reference:https://api.cloudflare.com/#smart-tiered-cache-delete-smart-tiered-cache-settingAPI Reference:https://api.cloudflare.com/#tiered-cache-patch-tiered-cache-setting
func (*API)DeleteTunnel¶added inv0.39.0
DeleteTunnel removes a single Argo tunnel.
API reference:https://api.cloudflare.com/#cloudflare-tunnel-delete-cloudflare-tunnel
func (*API)DeleteTunnelRoute¶added inv0.36.0
func (api *API) DeleteTunnelRoute(ctxcontext.Context, rc *ResourceContainer, paramsTunnelRoutesDeleteParams)error
DeleteTunnelRoute delete an existing route from the account routing table.
func (*API)DeleteTunnelVirtualNetwork¶added inv0.41.0
func (api *API) DeleteTunnelVirtualNetwork(ctxcontext.Context, rc *ResourceContainer, vnetIDstring)error
DeleteTunnelVirtualNetwork deletes an existing virtual network from theaccount.
API reference:https://api.cloudflare.com/#tunnel-virtual-network-delete-virtual-network
func (*API)DeleteTurnstileWidget¶added inv0.66.0
func (api *API) DeleteTurnstileWidget(ctxcontext.Context, rc *ResourceContainer, siteKeystring)error
DeleteTurnstileWidget delete a challenge widget.
API reference:https://api.cloudflare.com/#challenge-widgets-delete-a-challenge-widget
func (*API)DeleteUserAccessRule¶added inv0.8.1
func (api *API) DeleteUserAccessRule(ctxcontext.Context, accessRuleIDstring) (*AccessRuleResponse,error)
DeleteUserAccessRule deletes a single access rule for the logged-in user andaccess rule identifiers.
API reference:https://api.cloudflare.com/#user-level-firewall-access-rule-update-access-rule
func (*API)DeleteUserAgentRule¶added inv0.8.0
func (api *API) DeleteUserAgentRule(ctxcontext.Context, zoneIDstring, idstring) (*UserAgentRuleResponse,error)
DeleteUserAgentRule deletes a User-Agent Block rule (based on the ID) for the given zone ID.
API reference:https://api.cloudflare.com/#user-agent-blocking-rules-delete-useragent-rule
func (*API)DeleteWAFOverride¶added inv0.11.1
DeleteWAFOverride deletes a WAF override for a zone.
API reference:https://api.cloudflare.com/#waf-overrides-delete-lockdown-rule
func (*API)DeleteWaitingRoom¶added inv0.17.0
DeleteWaitingRoom deletes a Waiting Room for a zone.
API reference:https://api.cloudflare.com/#waiting-room-delete-waiting-room
func (*API)DeleteWaitingRoomEvent¶added inv0.33.0
func (api *API) DeleteWaitingRoomEvent(ctxcontext.Context, zoneIDstring, waitingRoomIDstring, eventIDstring)error
DeleteWaitingRoomEvent deletes an event for a Waiting Room.
API reference:https://api.cloudflare.com/#waiting-room-delete-event
func (*API)DeleteWaitingRoomRule¶added inv0.53.0
func (api *API) DeleteWaitingRoomRule(ctxcontext.Context, rc *ResourceContainer, paramsDeleteWaitingRoomRuleParams) ([]WaitingRoomRule,error)
DeleteWaitingRoomRule deletes a rule for a Waiting Room.
API reference:https://api.cloudflare.com/#waiting-room-delete-waiting-room-rule
func (*API)DeleteWeb3Hostname¶added inv0.45.0
func (api *API) DeleteWeb3Hostname(ctxcontext.Context, paramsWeb3HostnameDetailsParameters) (Web3HostnameDeleteResult,error)
DeleteWeb3Hostname deletes a web3 hostname.
API Reference:https://api.cloudflare.com/#web3-hostname-delete-web3-hostname
func (*API)DeleteWebAnalyticsRule¶added inv0.75.0
func (api *API) DeleteWebAnalyticsRule(ctxcontext.Context, rc *ResourceContainer, paramsDeleteWebAnalyticsRuleParams) (*string,error)
DeleteWebAnalyticsRule deletes an existing Web Analytics Rule from a Web Analytics ruleset.
API reference:https://api.cloudflare.com/#web-analytics-delete-rule
func (*API)DeleteWebAnalyticsSite¶added inv0.75.0
func (api *API) DeleteWebAnalyticsSite(ctxcontext.Context, rc *ResourceContainer, paramsDeleteWebAnalyticsSiteParams) (*string,error)
DeleteWebAnalyticsSite deletes an existing Web Analytics Site for an Account.
API reference:https://api.cloudflare.com/#web-analytics-delete-site
func (*API)DeleteWorker¶added inv0.9.0
func (api *API) DeleteWorker(ctxcontext.Context, rc *ResourceContainer, paramsDeleteWorkerParams)error
DeleteWorker deletes a single Worker.
API reference:https://developers.cloudflare.com/api/resources/workers/subresources/scripts/methods/delete/
func (*API)DeleteWorkerRoute¶added inv0.9.0
func (api *API) DeleteWorkerRoute(ctxcontext.Context, rc *ResourceContainer, routeIDstring) (WorkerRouteResponse,error)
DeleteWorkerRoute deletes worker route for a script.
API reference:https://developers.cloudflare.com/api/operations/worker-routes-delete-route
func (*API)DeleteWorkersForPlatformsDispatchNamespace¶added inv0.90.0
func (api *API) DeleteWorkersForPlatformsDispatchNamespace(ctxcontext.Context, rc *ResourceContainer, namestring)error
DeleteWorkersForPlatformsDispatchNamespace deletes a dispatch namespace.
func (*API)DeleteWorkersKVEntries¶added inv0.55.0
func (api *API) DeleteWorkersKVEntries(ctxcontext.Context, rc *ResourceContainer, paramsDeleteWorkersKVEntriesParams) (Response,error)
DeleteWorkersKVEntries deletes multiple KVs at once.
API reference:https://developers.cloudflare.com/api/resources/kv/subresources/namespaces/methods/bulk_delete/
Example¶
api, err := cloudflare.New(apiKey, user)if err != nil {log.Fatal(err)}keys := []string{"key1", "key2", "key3"}resp, err := api.DeleteWorkersKVEntries(context.Background(), cloudflare.AccountIdentifier(accountID), cloudflare.DeleteWorkersKVEntriesParams{NamespaceID: namespace,Keys: keys,})if err != nil {log.Fatal(err)}fmt.Println(resp)
func (API)DeleteWorkersKVEntry¶added inv0.55.0
func (apiAPI) DeleteWorkersKVEntry(ctxcontext.Context, rc *ResourceContainer, paramsDeleteWorkersKVEntryParams) (Response,error)
DeleteWorkersKVEntry deletes a key and value for a provided storage namespace.
API reference:https://developers.cloudflare.com/api/resources/kv/subresources/namespaces/subresources/values/methods/delete/
Example¶
api, err := cloudflare.New(apiKey, user)if err != nil {log.Fatal(err)}key := "test_key"resp, err := api.DeleteWorkersKVEntry(context.Background(), cloudflare.AccountIdentifier(accountID), cloudflare.DeleteWorkersKVEntryParams{NamespaceID: namespace,Key: key,})if err != nil {log.Fatal(err)}fmt.Printf("%+v\n", resp)
func (*API)DeleteWorkersKVNamespace¶added inv0.9.0
func (api *API) DeleteWorkersKVNamespace(ctxcontext.Context, rc *ResourceContainer, namespaceIDstring) (Response,error)
DeleteWorkersKVNamespace deletes the namespace corresponding to the given ID.
API reference:https://developers.cloudflare.com/api/resources/kv/subresources/namespaces/methods/delete/
Example¶
api, err := cloudflare.New(apiKey, user)if err != nil {log.Fatal(err)}response, err := api.DeleteWorkersKVNamespace(context.Background(), cloudflare.AccountIdentifier(accountID), namespace)if err != nil {log.Fatal(err)}fmt.Println(response)
func (*API)DeleteWorkersSecret¶added inv0.13.1
func (api *API) DeleteWorkersSecret(ctxcontext.Context, rc *ResourceContainer, paramsDeleteWorkersSecretParams) (Response,error)
DeleteWorkersSecret deletes a secret.
API reference:https://api.cloudflare.com/
func (*API)DeleteWorkersTail¶added inv0.47.0
func (api *API) DeleteWorkersTail(ctxcontext.Context, rc *ResourceContainer, scriptName, tailIDstring)error
DeleteWorkersTail Deletes a tail from a Worker.
API reference:https://developers.cloudflare.com/api/resources/workers/subresources/scripts/subresources/tail/methods/delete/
func (*API)DeleteZone¶added inv0.7.2
DeleteZone deletes the given zone.
API reference:https://api.cloudflare.com/#zone-delete-a-zone
func (*API)DeleteZoneAccessRule¶added inv0.8.1
func (api *API) DeleteZoneAccessRule(ctxcontext.Context, zoneID, accessRuleIDstring) (*AccessRuleResponse,error)
DeleteZoneAccessRule deletes a single access rule for the given zone andaccess rule identifiers.
API reference:https://api.cloudflare.com/#firewall-access-rule-for-a-zone-delete-access-rule
func (*API)DeleteZoneCacheVariants¶added inv0.32.0
DeleteZoneCacheVariants deletes cache variants for a given zone.
API reference:https://api.cloudflare.com/#zone-cache-settings-delete-variants-setting
func (*API)DeleteZoneDNSSEC¶added inv0.13.5
DeleteZoneDNSSEC deletes DNSSEC for zone
API reference:https://api.cloudflare.com/#dnssec-delete-dnssec-records
func (*API)DeleteZoneHold¶added inv0.75.0
func (api *API) DeleteZoneHold(ctxcontext.Context, rc *ResourceContainer, paramsDeleteZoneHoldParams) (ZoneHold,error)
DeleteZoneHold removes enforcement of a zone hold on the zone, permanently ortemporarily, allowing the creation and activation of zones with this hostname.
API reference:https://developers.cloudflare.com/api/resources/zones/subresources/holds/methods/delete/
func (*API)DeleteZoneLevelAccessBookmark¶added inv0.36.0
DeleteZoneLevelAccessBookmark deletes a zone level access bookmark.
API reference:https://api.cloudflare.com/#zone-level-access-bookmarks-delete-access-bookmark
func (*API)DeleteZoneLockdown¶added inv0.8.0
func (api *API) DeleteZoneLockdown(ctxcontext.Context, rc *ResourceContainer, idstring) (ZoneLockdown,error)
DeleteZoneLockdown deletes a Zone ZoneLockdown rule (based on the ID) for the given zone ID.
API reference:https://api.cloudflare.com/#zone-ZoneLockdown-delete-ZoneLockdown-rule
func (*API)DeleteZoneSnippet¶added inv0.109.0
func (*API)DetachWorkersDomain¶added inv0.55.0
DetachWorkersDomain detaches a worker from a zone and hostname.
API reference:https://developers.cloudflare.com/api/resources/workers/subresources/domains/methods/delete/
func (*API)DevicePostureIntegration¶added inv0.29.0
func (api *API) DevicePostureIntegration(ctxcontext.Context, accountID, integrationIDstring) (DevicePostureIntegration,error)
DevicePostureIntegration returns a specific device posture integrations within an account.
API reference:https://api.cloudflare.com/#device-posture-integrations-device-posture-integration-details
func (*API)DevicePostureIntegrations¶added inv0.29.0
func (api *API) DevicePostureIntegrations(ctxcontext.Context, accountIDstring) ([]DevicePostureIntegration,ResultInfo,error)
DevicePostureIntegrations returns all device posture integrations within an account.
API reference:https://api.cloudflare.com/#device-posture-integrations-list-device-posture-integrations
func (*API)DevicePostureRule¶added inv0.17.0
func (api *API) DevicePostureRule(ctxcontext.Context, accountID, ruleIDstring) (DevicePostureRule,error)
DevicePostureRule returns a single device posture rule based on the rule ID.
API reference:https://api.cloudflare.com/#device-posture-rules-device-posture-rules-details
func (*API)DevicePostureRules¶added inv0.17.0
func (api *API) DevicePostureRules(ctxcontext.Context, accountIDstring) ([]DevicePostureRule,ResultInfo,error)
DevicePostureRules returns all device posture rules within an account.
API reference:https://api.cloudflare.com/#device-posture-rules-list-device-posture-rules
func (*API)DisableEmailRouting¶added inv0.47.0
func (api *API) DisableEmailRouting(ctxcontext.Context, rc *ResourceContainer) (EmailRoutingSettings,error)
DisableEmailRouting Disable your Email Routing zone. Also removes additional MX records previously required for Email Routing to work.
API reference:https://api.cloudflare.com/#email-routing-settings-disable-email-routing
func (*API)EditPerHostnameAuthenticatedOriginPullsConfig¶added inv0.12.2
func (api *API) EditPerHostnameAuthenticatedOriginPullsConfig(ctxcontext.Context, zoneIDstring, config []PerHostnameAuthenticatedOriginPullsConfig) ([]PerHostnameAuthenticatedOriginPullsDetails,error)
EditPerHostnameAuthenticatedOriginPullsConfig applies the supplied Per Hostname AuthenticatedOriginPulls config onto a hostname(s) in the edge.
API reference:https://api.cloudflare.com/#per-hostname-authenticated-origin-pull-enable-or-disable-a-hostname-for-client-authentication
func (*API)EditUniversalSSLSetting¶added inv0.9.0
func (api *API) EditUniversalSSLSetting(ctxcontext.Context, zoneIDstring, settingUniversalSSLSetting) (UniversalSSLSetting,error)
EditUniversalSSLSetting edits the universal ssl setting for a zone
API reference:https://api.cloudflare.com/#universal-ssl-settings-for-a-zone-edit-universal-ssl-settings
func (*API)EditZone¶added inv0.7.2
EditZone edits the given zone.
This is usually called by ZoneSetPaused, ZoneSetType, or ZoneSetVanityNS.
API reference:https://api.cloudflare.com/#zone-edit-zone-properties
func (*API)EnableEmailRouting¶added inv0.47.0
func (api *API) EnableEmailRouting(ctxcontext.Context, rc *ResourceContainer) (EmailRoutingSettings,error)
EnableEmailRouting Enable you Email Routing zone. Add and lock the necessary MX and SPF records.
API reference:https://api.cloudflare.com/#email-routing-settings-enable-email-routing
func (*API)ExportDNSRecords¶added inv0.66.0
func (api *API) ExportDNSRecords(ctxcontext.Context, rc *ResourceContainer, paramsExportDNSRecordsParams) (string,error)
ExportDNSRecords returns all DNS records for a zone in the BIND format.
API reference:https://developers.cloudflare.com/api/resources/dns/subresources/records/methods/export/
func (*API)ExportZarazConfig¶added inv0.86.0
func (api *API) ExportZarazConfig(ctxcontext.Context, rc *ResourceContainer)error
func (*API)FallbackOrigin¶added inv0.10.1
FallbackOrigin returns information about the fallback origin for the specified zone.
API reference:https://developers.cloudflare.com/ssl/ssl-for-saas/api-calls/#fallback-origin-configuration
func (*API)Filter¶added inv0.9.0
Filter returns a single filter in a zone based on the filter ID.
API reference:https://developers.cloudflare.com/firewall/api/cf-filters/get/#get-by-filter-id
func (*API)Filters¶added inv0.9.0
func (api *API) Filters(ctxcontext.Context, rc *ResourceContainer, paramsFilterListParams) ([]Filter, *ResultInfo,error)
Filters returns filters for a zone.
Automatically paginates all results unless `params.PerPage` and `params.Page`is set.
API reference:https://developers.cloudflare.com/firewall/api/cf-filters/get/#get-all-filters
func (*API)FirewallRule¶added inv0.9.0
func (api *API) FirewallRule(ctxcontext.Context, rc *ResourceContainer, firewallRuleIDstring) (FirewallRule,error)
FirewallRule returns a single firewall rule based on the ID.
API reference:https://developers.cloudflare.com/firewall/api/cf-firewall-rules/get/#get-by-rule-id
func (*API)FirewallRules¶added inv0.9.0
func (api *API) FirewallRules(ctxcontext.Context, rc *ResourceContainer, paramsFirewallRuleListParams) ([]FirewallRule, *ResultInfo,error)
FirewallRules returns all firewall rules.
Automatically paginates all results unless `params.PerPage` and `params.Page`is set.
API reference:https://developers.cloudflare.com/firewall/api/cf-firewall-rules/get/#get-all-rules
func (*API)ForceSecondaryDNSZoneAXFR¶added inv0.15.0
ForceSecondaryDNSZoneAXFR requests an immediate AXFR request.
API reference:https://api.cloudflare.com/#secondary-dns-update-secondary-zone-configuration
func (*API)GenerateMagicTransitIPsecTunnelPSK¶added inv0.41.0
func (api *API) GenerateMagicTransitIPsecTunnelPSK(ctxcontext.Context, accountIDstring, idstring) (string, *MagicTransitIPsecTunnelPskMetadata,error)
GenerateMagicTransitIPsecTunnelPSK generates a pre shared key (psk) for an IPsec tunnel
API reference:https://api.cloudflare.com/#magic-ipsec-tunnels-generate-pre-shared-key-psk-for-ipsec-tunnels
func (*API)GetAPIShieldConfiguration¶added inv0.49.0
func (api *API) GetAPIShieldConfiguration(ctxcontext.Context, rc *ResourceContainer) (APIShield,ResultInfo,error)
GetAPIShieldConfiguration gets a zone API shield configuration.
API documentation:https://api.cloudflare.com/#api-shield-settings-retrieve-information-about-specific-configuration-properties
func (*API)GetAPIShieldOperation¶added inv0.78.0
func (api *API) GetAPIShieldOperation(ctxcontext.Context, rc *ResourceContainer, paramsGetAPIShieldOperationParams) (*APIShieldOperation,error)
GetAPIShieldOperation returns information about an operation
API documentationhttps://developers.cloudflare.com/api/resources/api_gateway/subresources/operations/methods/get/
func (*API)GetAPIShieldOperationSchemaValidationSettings¶added inv0.80.0
func (api *API) GetAPIShieldOperationSchemaValidationSettings(ctxcontext.Context, rc *ResourceContainer, paramsGetAPIShieldOperationSchemaValidationSettingsParams) (*APIShieldOperationSchemaValidationSettings,error)
GetAPIShieldOperationSchemaValidationSettings retrieves operation level schema validation settings
API documentation:https://developers.cloudflare.com/api/resources/api_gateway/subresources/operations/subresources/schema_validation/methods/get/
func (*API)GetAPIShieldSchema¶added inv0.79.0
func (api *API) GetAPIShieldSchema(ctxcontext.Context, rc *ResourceContainer, paramsGetAPIShieldSchemaParams) (*APIShieldSchema,error)
GetAPIShieldSchema retrieves information about a specific schema on a zone
API documentation:https://developers.cloudflare.com/api/resources/api_gateway/subresources/user_schemas/methods/get/
func (*API)GetAPIShieldSchemaValidationSettings¶added inv0.80.0
func (api *API) GetAPIShieldSchemaValidationSettings(ctxcontext.Context, rc *ResourceContainer) (*APIShieldSchemaValidationSettings,error)
GetAPIShieldSchemaValidationSettings retrieves zone level schema validation settings
API documentation:https://developers.cloudflare.com/api/resources/api_gateway/subresources/settings/subresources/schema_validation/methods/get/
func (*API)GetAPIToken¶added inv0.13.5
GetAPIToken returns a single API token based on the ID.
API reference:https://api.cloudflare.com/#user-api-tokens-token-details
func (*API)GetAccessApplication¶added inv0.71.0
func (api *API) GetAccessApplication(ctxcontext.Context, rc *ResourceContainer, applicationIDstring) (AccessApplication,error)
GetAccessApplication returns a single application based on the applicationID for either account or zone.
Account API reference:https://developers.cloudflare.com/api/operations/access-applications-get-an-access-applicationZone API reference:https://developers.cloudflare.com/api/operations/zone-level-access-applications-get-an-access-application
func (*API)GetAccessCACertificate¶added inv0.71.0
func (api *API) GetAccessCACertificate(ctxcontext.Context, rc *ResourceContainer, applicationIDstring) (AccessCACertificate,error)
GetAccessCACertificate returns a single CA certificate associated withinAccess.
Account API reference:https://developers.cloudflare.com/api/operations/access-short-lived-certificate-c-as-get-a-short-lived-certificate-caZone API reference:https://developers.cloudflare.com/api/operations/zone-level-access-short-lived-certificate-c-as-get-a-short-lived-certificate-ca
func (*API)GetAccessCustomPage¶added inv0.74.0
func (api *API) GetAccessCustomPage(ctxcontext.Context, rc *ResourceContainer, idstring) (AccessCustomPage,error)
func (*API)GetAccessGroup¶added inv0.71.0
func (api *API) GetAccessGroup(ctxcontext.Context, rc *ResourceContainer, groupIDstring) (AccessGroup,error)
GetAccessGroup returns a single group based on the group ID.
Account API Reference:https://developers.cloudflare.com/api/operations/access-groups-get-an-access-groupZone API Reference:https://developers.cloudflare.com/api/operations/zone-level-access-groups-get-an-access-group
func (*API)GetAccessIdentityProvider¶added inv0.71.0
func (api *API) GetAccessIdentityProvider(ctxcontext.Context, rc *ResourceContainer, identityProviderIDstring) (AccessIdentityProvider,error)
GetAccessIdentityProvider returns a single Access IdentityProvider for an account or zone.
Account API Reference:https://developers.cloudflare.com/api/operations/access-identity-providers-get-an-access-identity-providerZone API Reference:https://developers.cloudflare.com/api/operations/zone-level-access-identity-providers-get-an-access-identity-provider
func (*API)GetAccessMutualTLSCertificate¶added inv0.71.0
func (api *API) GetAccessMutualTLSCertificate(ctxcontext.Context, rc *ResourceContainer, certificateIDstring) (AccessMutualTLSCertificate,error)
GetAccessMutualTLSCertificate returns a single Access Mutual TLScertificate.
Account API Reference:https://developers.cloudflare.com/api/operations/access-mtls-authentication-get-an-mtls-certificateZone API Reference:https://developers.cloudflare.com/api/operations/zone-level-access-mtls-authentication-get-an-mtls-certificate
func (*API)GetAccessMutualTLSHostnameSettings¶added inv0.90.0
func (api *API) GetAccessMutualTLSHostnameSettings(ctxcontext.Context, rc *ResourceContainer) ([]AccessMutualTLSHostnameSettings,error)
GetAccessMutualTLSHostnameSettings returns all Access mTLS hostname settings.
Account API Reference:https://developers.cloudflare.com/api/operations/access-mtls-authentication-update-an-mtls-certificate-settingsZone API Reference:https://developers.cloudflare.com/api/operations/zone-level-access-mtls-authentication-list-mtls-certificates-hostname-settings
func (*API)GetAccessOrganization¶added inv0.71.0
func (api *API) GetAccessOrganization(ctxcontext.Context, rc *ResourceContainer, paramsGetAccessOrganizationParams) (AccessOrganization,ResultInfo,error)
func (*API)GetAccessPolicy¶added inv0.71.0
func (api *API) GetAccessPolicy(ctxcontext.Context, rc *ResourceContainer, paramsGetAccessPolicyParams) (AccessPolicy,error)
GetAccessPolicy returns a single policy based on the policy ID.
Account API reference:https://developers.cloudflare.com/api/operations/access-policies-get-an-access-policyZone API reference:https://developers.cloudflare.com/api/operations/zone-level-access-policies-get-an-access-policy
func (*API)GetAccessTag¶added inv0.78.0
func (*API)GetAccessUserActiveSessions¶added inv0.81.0
func (api *API) GetAccessUserActiveSessions(ctxcontext.Context, rc *ResourceContainer, userIDstring) ([]AccessUserActiveSessionResult,error)
GetAccessUserActiveSessions returns a list of active sessions for an user.
API documentation:https://developers.cloudflare.com/api/resources/zero_trust/subresources/access/subresources/users/subresources/active_sessions/methods/list/
func (*API)GetAccessUserFailedLogins¶added inv0.81.0
func (api *API) GetAccessUserFailedLogins(ctxcontext.Context, rc *ResourceContainer, userIDstring) ([]AccessUserFailedLoginResult,error)
GetAccessUserFailedLogins returns a list of failed logins for a user.
API documentation:https://developers.cloudflare.com/api/resources/zero_trust/subresources/access/subresources/users/subresources/failed_logins/methods/list/
func (*API)GetAccessUserLastSeenIdentity¶added inv0.81.0
func (api *API) GetAccessUserLastSeenIdentity(ctxcontext.Context, rc *ResourceContainer, userIDstring) (GetAccessUserLastSeenIdentityResult,error)
GetAccessUserLastSeenIdentity returns the last seen identity for a user.
API documentation:https://developers.cloudflare.com/api/resources/zero_trust/subresources/access/subresources/users/subresources/last_seen_identity/methods/get/
func (*API)GetAccessUserSingleActiveSession¶added inv0.81.0
func (api *API) GetAccessUserSingleActiveSession(ctxcontext.Context, rc *ResourceContainer, userIDstring, sessionIDstring) (GetAccessUserSingleActiveSessionResult,error)
GetAccessUserSingleActiveSession returns a single active session for a user.
API documentation:https://developers.cloudflare.com/api/resources/zero_trust/subresources/access/subresources/users/subresources/active_sessions/methods/get/
func (*API)GetAccountRole¶added inv0.78.0
func (api *API) GetAccountRole(ctxcontext.Context, rc *ResourceContainer, roleIDstring) (AccountRole,error)
GetAccountRole returns the details of a single account role.
API reference:https://developers.cloudflare.com/api/resources/accounts/subresources/roles/methods/get/
func (*API)GetAddressMap¶added inv0.63.0
func (api *API) GetAddressMap(ctxcontext.Context, rc *ResourceContainer, idstring) (AddressMap,error)
GetAddressMap returns a specific address map.
API reference:https://developers.cloudflare.com/api/resources/addressing/subresources/address_maps/methods/get/
func (*API)GetAdvertisementStatus¶added inv0.11.7
func (api *API) GetAdvertisementStatus(ctxcontext.Context, accountID, IDstring) (AdvertisementStatus,error)
GetAdvertisementStatus returns the BGP status of the IP prefix
API reference:https://api.cloudflare.com/#ip-address-management-prefixes-update-prefix-description
func (*API)GetAuditSSHSettings¶added inv0.79.0
func (api *API) GetAuditSSHSettings(ctxcontext.Context, rc *ResourceContainer, paramsGetAuditSSHSettingsParams) (AuditSSHSettings,ResultInfo,error)
GetAuditSSHSettings returns the accounts zt audit ssh settings.
API reference:https://api.cloudflare.com/#zero-trust-get-audit-ssh-settings
func (*API)GetAuthenticatedOriginPullsStatus¶added inv0.12.2
func (api *API) GetAuthenticatedOriginPullsStatus(ctxcontext.Context, zoneIDstring) (AuthenticatedOriginPulls,error)
GetAuthenticatedOriginPullsStatus returns the configuration details for global AuthenticatedOriginPulls (tls_client_auth).
API reference:https://api.cloudflare.com/#zone-settings-get-tls-client-auth-setting
func (*API)GetAvailableNotificationTypes¶added inv0.19.0
func (api *API) GetAvailableNotificationTypes(ctxcontext.Context, accountIDstring) (NotificationAvailableAlertsResponse,error)
GetAvailableNotificationTypes will return the alert types available fora given account.
API Reference:https://api.cloudflare.com/#notification-mechanism-eligibility-properties
func (*API)GetBaseImage¶added inv0.71.0
GetBaseImage gets the base image used to derive variants.
API Reference:https://api.cloudflare.com/#cloudflare-images-base-image
func (*API)GetBotManagement¶added inv0.75.0
func (api *API) GetBotManagement(ctxcontext.Context, rc *ResourceContainer) (BotManagement,error)
GetBotManagement gets a zone API shield configuration.
API documentation:https://developers.cloudflare.com/api/resources/bot_management/methods/get/
func (*API)GetCacheReserve¶added inv0.68.0
func (api *API) GetCacheReserve(ctxcontext.Context, rc *ResourceContainer, paramsGetCacheReserveParams) (CacheReserve,error)
GetCacheReserve returns information about the current cache reserve settings.
API reference:https://developers.cloudflare.com/api/resources/cache/subresources/cache_reserve/methods/get/
func (*API)GetCustomNameserverZoneMetadata¶added inv0.70.0
func (api *API) GetCustomNameserverZoneMetadata(ctxcontext.Context, rc *ResourceContainer, paramsGetCustomNameserverZoneMetadataParams) (CustomNameserverZoneMetadata,error)
GetCustomNameserverZoneMetadata get metadata for custom nameservers on a zone.
API documentation:https://developers.cloudflare.com/api/resources/zones/subresources/custom_nameservers/methods/get/
func (*API)GetCustomNameservers¶added inv0.70.0
func (api *API) GetCustomNameservers(ctxcontext.Context, rc *ResourceContainer, paramsGetCustomNameserversParams) ([]CustomNameserverResult,error)
GetCustomNameservers lists custom nameservers.
API documentation:https://developers.cloudflare.com/api/resources/custom_nameservers/methods/get/
func (*API)GetD1Database¶added inv0.79.0
func (api *API) GetD1Database(ctxcontext.Context, rc *ResourceContainer, databaseIDstring) (D1Database,error)
GetD1Database returns a database for an account.
API reference:https://developers.cloudflare.com/api/resources/d1/subresources/database/methods/get/
func (*API)GetDCVDelegation¶added inv0.77.0
func (api *API) GetDCVDelegation(ctxcontext.Context, rc *ResourceContainer, paramsGetDCVDelegationParams) (DCVDelegation,ResultInfo,error)
GetDCVDelegation gets a zone DCV Delegation UUID.
API documentation:https://developers.cloudflare.com/api/resources/dcv_delegation/methods/get/
func (*API)GetDLPDataset¶added inv0.87.0
func (api *API) GetDLPDataset(ctxcontext.Context, rc *ResourceContainer, datasetIDstring) (DLPDataset,error)
GetDLPDataset returns a DLP dataset based on the dataset ID.
API reference:https://developers.cloudflare.com/api/resources/zero_trust/subresources/dlp/subresources/datasets/methods/get/
func (*API)GetDLPPayloadLogSettings¶added inv0.62.0
func (api *API) GetDLPPayloadLogSettings(ctxcontext.Context, rc *ResourceContainer, paramsGetDLPPayloadLogSettingsParams) (DLPPayloadLogSettings,error)
GetDLPPayloadLogSettings gets the current DLP payload logging settings.
API reference:https://api.cloudflare.com/#dlp-payload-log-settings-get-settings
func (*API)GetDLPProfile¶added inv0.53.0
func (api *API) GetDLPProfile(ctxcontext.Context, rc *ResourceContainer, profileIDstring) (DLPProfile,error)
GetDLPProfile returns a single DLP profile (custom or predefined) based onthe profile ID.
API reference:https://api.cloudflare.com/#dlp-profiles-get-dlp-profile
func (*API)GetDNSFirewallCluster¶added inv0.70.0
func (api *API) GetDNSFirewallCluster(ctxcontext.Context, rc *ResourceContainer, paramsGetDNSFirewallClusterParams) (*DNSFirewallCluster,error)
GetDNSFirewallCluster fetches a single DNS Firewall cluster.
API reference:https://api.cloudflare.com/#dns-firewall-dns-firewall-cluster-details
func (*API)GetDNSFirewallUserAnalytics¶added inv0.70.0
func (api *API) GetDNSFirewallUserAnalytics(ctxcontext.Context, rc *ResourceContainer, paramsGetDNSFirewallUserAnalyticsParams) (DNSFirewallAnalytics,error)
GetDNSFirewallUserAnalytics retrieves analytics report for a specified dimension and time range.
func (*API)GetDNSRecord¶added inv0.58.0
func (api *API) GetDNSRecord(ctxcontext.Context, rc *ResourceContainer, recordIDstring) (DNSRecord,error)
GetDNSRecord returns a single DNS record for the given zone & recordidentifiers.
API reference:https://api.cloudflare.com/#dns-records-for-a-zone-dns-record-details
func (*API)GetDataLocalizationRegionalHostname¶added inv0.66.0
func (api *API) GetDataLocalizationRegionalHostname(ctxcontext.Context, rc *ResourceContainer, hostnamestring) (RegionalHostname,error)
GetDataLocalizationRegionalHostname returns the details of a specific regional hostname.
API reference:https://developers.cloudflare.com/data-localization/regional-services/get-started/#configure-regional-services-via-api
func (*API)GetDefaultDeviceSettingsPolicy¶added inv0.52.0
func (api *API) GetDefaultDeviceSettingsPolicy(ctxcontext.Context, rc *ResourceContainer, paramsGetDefaultDeviceSettingsPolicyParams) (DeviceSettingsPolicy,error)
GetDefaultDeviceSettings gets the default device settings policy.
API reference:https://api.cloudflare.com/#devices-get-default-device-settings-policy
func (*API)GetDefaultZarazConfig¶added inv0.86.0
func (api *API) GetDefaultZarazConfig(ctxcontext.Context, rc *ResourceContainer) (ZarazConfigResponse,error)
func (*API)GetDeviceClientCertificates¶added inv0.81.0
func (api *API) GetDeviceClientCertificates(ctxcontext.Context, rc *ResourceContainer, paramsGetDeviceClientCertificatesParams) (DeviceClientCertificates,error)
GetDeviceClientCertificates controls the zero trust zone used to provisionclient certificates.
API reference:https://api.cloudflare.com/#device-client-certificates
func (*API)GetDeviceDexTest¶added inv0.62.0
func (api *API) GetDeviceDexTest(ctxcontext.Context, rc *ResourceContainer, testIDstring) (DeviceDexTest,error)
GetDeviceDexTest gets a single Device Dex Test.
API reference:https://developers.cloudflare.com/api/resources/zero_trust/subresources/devices/subresources/dex_tests/methods/get/
func (*API)GetDeviceManagedNetwork¶added inv0.57.0
func (api *API) GetDeviceManagedNetwork(ctxcontext.Context, rc *ResourceContainer, networkIDstring) (DeviceManagedNetwork,error)
GetDeviceManagedNetwork gets a single Device Managed Network.
API reference:https://api.cloudflare.com/#device-managed-networks-device-managed-network-details
func (*API)GetDeviceSettingsPolicy¶added inv0.52.0
func (api *API) GetDeviceSettingsPolicy(ctxcontext.Context, rc *ResourceContainer, paramsGetDeviceSettingsPolicyParams) (DeviceSettingsPolicy,error)
GetDefaultDeviceSettings gets the device settings policy by its policyID.
API reference:https://api.cloudflare.com/#devices-get-device-settings-policy-by-id
func (*API)GetEligibleNotificationDestinations¶added inv0.19.0
func (api *API) GetEligibleNotificationDestinations(ctxcontext.Context, accountIDstring) (NotificationEligibilityResponse,error)
GetEligibleNotificationDestinations will return the types ofdestinations an account is eligible to configure.
API Reference:https://api.cloudflare.com/#notification-mechanism-eligibility-properties
func (*API)GetEligibleZonesAccountCustomNameservers¶added inv0.70.0
func (api *API) GetEligibleZonesAccountCustomNameservers(ctxcontext.Context, rc *ResourceContainer, paramsGetEligibleZonesAccountCustomNameserversParams) ([]string,error)
GetEligibleZonesAccountCustomNameservers lists zones eligible for custom nameservers.
API documentation:https://developers.cloudflare.com/api/resources/custom_nameservers/methods/availabilty/
func (*API)GetEmailRoutingCatchAllRule¶added inv0.47.0
func (api *API) GetEmailRoutingCatchAllRule(ctxcontext.Context, rc *ResourceContainer) (EmailRoutingCatchAllRule,error)
GetEmailRoutingCatchAllRule Get information on the default catch-all routing rule.
API reference:https://api.cloudflare.com/#email-routing-routing-rules-get-catch-all-rule
func (*API)GetEmailRoutingDNSSettings¶added inv0.47.0
func (api *API) GetEmailRoutingDNSSettings(ctxcontext.Context, rc *ResourceContainer) ([]DNSRecord,error)
GetEmailRoutingDNSSettings Show the DNS records needed to configure your Email Routing zone.
API reference:https://api.cloudflare.com/#email-routing-settings-email-routing---dns-settings
func (*API)GetEmailRoutingDestinationAddress¶added inv0.47.0
func (api *API) GetEmailRoutingDestinationAddress(ctxcontext.Context, rc *ResourceContainer, addressIDstring) (EmailRoutingDestinationAddress,error)
GetEmailRoutingDestinationAddress Gets information for a specific destination email already created.
API reference:https://api.cloudflare.com/#email-routing-destination-addresses-get-a-destination-address
func (*API)GetEmailRoutingRule¶added inv0.47.0
func (api *API) GetEmailRoutingRule(ctxcontext.Context, rc *ResourceContainer, ruleIDstring) (EmailRoutingRule,error)
GetEmailRoutingRule Get information for a specific routing rule already created.
API reference:https://api.cloudflare.com/#email-routing-routing-rules-get-routing-rule
func (*API)GetEmailRoutingSettings¶added inv0.47.0
func (api *API) GetEmailRoutingSettings(ctxcontext.Context, rc *ResourceContainer) (EmailRoutingSettings,error)
GetEmailRoutingSettings Get information about the settings for your Email Routing zone.
API reference:https://api.cloudflare.com/#email-routing-settings-get-email-routing-settings
func (*API)GetEntrypointRuleset¶added inv0.73.0
func (api *API) GetEntrypointRuleset(ctxcontext.Context, rc *ResourceContainer, phasestring) (Ruleset,error)
GetEntrypointRuleset returns an entry point ruleset base on the phase.
API reference:https://developers.cloudflare.com/api/operations/getAccountEntrypointRulesetAPI reference:https://developers.cloudflare.com/api/resources/rulesets/subresources/phases/methods/get/
func (*API)GetHyperdriveConfig¶added inv0.88.0
func (api *API) GetHyperdriveConfig(ctxcontext.Context, rc *ResourceContainer, hyperdriveIDstring) (HyperdriveConfig,error)
GetHyperdriveConfig returns a single Hyperdrive config based on the ID.
API reference:https://developers.cloudflare.com/api/resources/hyperdrive/subresources/configs/methods/get/
func (*API)GetIPListBulkOperationdeprecatedadded inv0.13.0
func (api *API) GetIPListBulkOperation(ctxcontext.Context, accountID, IDstring) (IPListBulkOperation,error)
GetIPListBulkOperation returns the status of a bulk operation.
API reference:https://api.cloudflare.com/#rules-lists-get-bulk-operation
Deprecated: Use `GetListBulkOperation` instead.
func (*API)GetIPListItemdeprecatedadded inv0.13.0
GetIPListItem returns a single IP List Item.
API reference:https://api.cloudflare.com/#rules-lists-get-list-item
Deprecated: Use `GetListItem` instead.
func (*API)GetImage¶added inv0.71.0
GetImage gets the details of an uploaded image.
API Reference:https://api.cloudflare.com/#cloudflare-images-image-details
func (*API)GetImagesStats¶added inv0.71.0
func (api *API) GetImagesStats(ctxcontext.Context, rc *ResourceContainer) (ImagesStatsCount,error)
GetImagesStats gets an account's statistics for Cloudflare Images.
API Reference:https://api.cloudflare.com/#cloudflare-images-images-usage-statistics
func (*API)GetImagesVariant¶added inv0.88.0
func (api *API) GetImagesVariant(ctxcontext.Context, rc *ResourceContainer, variantIDstring) (ImagesVariant,error)
Fetch details for a single variant.
API Reference:https://developers.cloudflare.com/api/resources/images/subresources/v1/subresources/variants/methods/get/
func (*API)GetInfrastructureAccessTarget¶added inv0.105.0
func (api *API) GetInfrastructureAccessTarget(ctxcontext.Context, rc *ResourceContainer, targetIDstring) (InfrastructureAccessTarget,error)
GetInfrastructureAccessTarget returns a single infrastructure access target based on target IDID for either account or zone.
Account API reference:https://developers.cloudflare.com/api/resources/zero_trust/subresources/access/subresources/infrastructure/subresources/targets/methods/get/
func (*API)GetList¶added inv0.41.0
GetList returns a single List.
API reference:https://api.cloudflare.com/#rules-lists-get-list
func (*API)GetListBulkOperation¶added inv0.41.0
func (api *API) GetListBulkOperation(ctxcontext.Context, rc *ResourceContainer, IDstring) (ListBulkOperation,error)
GetListBulkOperation returns the status of a bulk operation.
API reference:https://api.cloudflare.com/#rules-lists-get-bulk-operation
func (*API)GetListItem¶added inv0.41.0
func (api *API) GetListItem(ctxcontext.Context, rc *ResourceContainer, listID, itemIDstring) (ListItem,error)
GetListItem returns a single List Item.
API reference:https://api.cloudflare.com/#rules-lists-get-list-item
func (*API)GetLoadBalancer¶added inv0.51.0
func (api *API) GetLoadBalancer(ctxcontext.Context, rc *ResourceContainer, loadbalancerIDstring) (LoadBalancer,error)
GetLoadBalancer returns the details for a load balancer.
API reference:https://api.cloudflare.com/#load-balancers-load-balancer-details
func (*API)GetLoadBalancerMonitor¶added inv0.51.0
func (api *API) GetLoadBalancerMonitor(ctxcontext.Context, rc *ResourceContainer, monitorIDstring) (LoadBalancerMonitor,error)
GetLoadBalancerMonitor returns the details for a load balancer monitor.
API reference:https://api.cloudflare.com/#load-balancer-monitors-monitor-details
func (*API)GetLoadBalancerPool¶added inv0.51.0
func (api *API) GetLoadBalancerPool(ctxcontext.Context, rc *ResourceContainer, poolIDstring) (LoadBalancerPool,error)
GetLoadBalancerPool returns the details for a load balancer pool.
API reference:https://api.cloudflare.com/#load-balancer-pools-pool-details
func (*API)GetLoadBalancerPoolHealth¶added inv0.51.0
func (api *API) GetLoadBalancerPoolHealth(ctxcontext.Context, rc *ResourceContainer, poolIDstring) (LoadBalancerPoolHealth,error)
GetLoadBalancerPoolHealth fetches the latest healtcheck details for a singlepool.
API reference:https://api.cloudflare.com/#load-balancer-pools-pool-health-details
Example¶
package mainimport (context "context""fmt""log"cloudflare "github.com/cloudflare/cloudflare-go")func main() {// Construct a new API object.api, err := cloudflare.New("deadbeef", "test@example.com")if err != nil {log.Fatal(err)}// Fetch pool health details.healthInfo, err := api.GetLoadBalancerPoolHealth(context.Background(), cloudflare.AccountIdentifier("01a7362d577a6c3019a474fd6f485823"), "example-pool-id")if err != nil {log.Fatal(err)}fmt.Println(healthInfo)}
func (*API)GetLogpullRetentionFlag¶added inv0.12.0
func (api *API) GetLogpullRetentionFlag(ctxcontext.Context, zoneIDstring) (*LogpullRetentionConfiguration,error)
GetLogpullRetentionFlag gets the current setting flag.
API reference:https://developers.cloudflare.com/logs/logpull-api/enabling-log-retention/
func (*API)GetLogpushFields¶added inv0.72.0
func (api *API) GetLogpushFields(ctxcontext.Context, rc *ResourceContainer, paramsGetLogpushFieldsParams) (LogpushFields,error)
LogpushFields returns fields for a given dataset.
API reference:https://api.cloudflare.com/#logpush-jobs-list-logpush-jobs
func (*API)GetLogpushJob¶added inv0.72.0
func (api *API) GetLogpushJob(ctxcontext.Context, rc *ResourceContainer, jobIDint) (LogpushJob,error)
LogpushJob fetches detail about one Logpush Job for a zone.
API reference:https://api.cloudflare.com/#logpush-jobs-logpush-job-details
Example¶
api, err := cloudflare.New(apiKey, user)if err != nil {log.Fatal(err)}zoneID, err := api.ZoneIDByName(domain)if err != nil {log.Fatal(err)}job, err := api.GetLogpushJob(context.Background(), cloudflare.ZoneIdentifier(zoneID), 1)if err != nil {log.Fatal(err)}fmt.Printf("%+v\n", job)
func (*API)GetLogpushOwnershipChallenge¶added inv0.9.0
func (api *API) GetLogpushOwnershipChallenge(ctxcontext.Context, rc *ResourceContainer, paramsGetLogpushOwnershipChallengeParams) (*LogpushGetOwnershipChallenge,error)
GetLogpushOwnershipChallenge returns ownership challenge.
API reference:https://api.cloudflare.com/#logpush-jobs-get-ownership-challenge
Example¶
api, err := cloudflare.New(apiKey, user)if err != nil {log.Fatal(err)}zoneID, err := api.ZoneIDByName(domain)if err != nil {log.Fatal(err)}ownershipChallenge, err := api.GetLogpushOwnershipChallenge(context.Background(), cloudflare.ZoneIdentifier(zoneID), cloudflare.GetLogpushOwnershipChallengeParams{DestinationConf: "destination_conf"})if err != nil {log.Fatal(err)}fmt.Printf("%+v\n", ownershipChallenge)
func (*API)GetMTLSCertificate¶added inv0.58.0
func (api *API) GetMTLSCertificate(ctxcontext.Context, rc *ResourceContainer, certificateIDstring) (MTLSCertificate,error)
GetMTLSCertificate returns the metadata associated with a user-uploaded mTLScertificate.
API reference:https://api.cloudflare.com/#mtls-certificate-management-get-mtls-certificate
func (*API)GetMagicFirewallRulesetdeprecatedadded inv0.13.7
func (api *API) GetMagicFirewallRuleset(ctxcontext.Context, accountID, IDstring) (MagicFirewallRuleset,error)
GetMagicFirewallRuleset returns a specific Magic Firewall Ruleset
API reference:https://api.cloudflare.com/#rulesets-get-a-ruleset
Deprecated: Use `GetZoneRuleset` or `GetAccountRuleset` instead.
func (*API)GetMagicTransitGRETunnel¶added inv0.32.0
func (api *API) GetMagicTransitGRETunnel(ctxcontext.Context, accountIDstring, idstring) (MagicTransitGRETunnel,error)
GetMagicTransitGRETunnel returns zero or one GRE tunnel.
API reference:https://api.cloudflare.com/#magic-gre-tunnels-gre-tunnel-details
func (*API)GetMagicTransitIPsecTunnel¶added inv0.31.0
func (api *API) GetMagicTransitIPsecTunnel(ctxcontext.Context, accountIDstring, idstring) (MagicTransitIPsecTunnel,error)
GetMagicTransitIPsecTunnel returns zero or one IPsec tunnel
API reference:https://api.cloudflare.com/#magic-ipsec-tunnels-ipsec-tunnel-details
func (*API)GetMagicTransitStaticRoute¶added inv0.18.0
func (api *API) GetMagicTransitStaticRoute(ctxcontext.Context, accountID, IDstring) (MagicTransitStaticRoute,error)
GetMagicTransitStaticRoute returns exactly one static route
API reference:https://api.cloudflare.com/#magic-transit-static-routes-route-details
func (*API)GetNotificationPolicy¶added inv0.19.0
func (api *API) GetNotificationPolicy(ctxcontext.Context, accountID, policyIDstring) (NotificationPolicyResponse,error)
GetNotificationPolicy returns a specific created by a user, given the accountid and the policy id.
API Reference:https://api.cloudflare.com/#notification-policies-properties
func (*API)GetNotificationWebhooks¶added inv0.19.0
func (api *API) GetNotificationWebhooks(ctxcontext.Context, accountID, webhookIDstring) (NotificationWebhookResponse,error)
GetNotificationWebhooks will return a specific webhook destination,given the account and webhooks ids.
API Reference:https://api.cloudflare.com/#notification-webhooks-get-webhook
func (*API)GetObservatoryPageTest¶added inv0.78.0
func (api *API) GetObservatoryPageTest(ctxcontext.Context, rc *ResourceContainer, paramsGetObservatoryPageTestParams) (*ObservatoryPageTest,error)
GetObservatoryPageTest returns a specific test for a page.
API reference:https://api.cloudflare.com/#speed-get-test
func (*API)GetObservatoryPageTrend¶added inv0.78.0
func (api *API) GetObservatoryPageTrend(ctxcontext.Context, rc *ResourceContainer, paramsGetObservatoryPageTrendParams) (*ObservatoryPageTrend,error)
GetObservatoryPageTrend returns a the trend of web vital metrics for a page in a specific region.
API reference:https://api.cloudflare.com/#speed-list-page-trend
func (*API)GetObservatoryScheduledPageTest¶added inv0.78.0
func (api *API) GetObservatoryScheduledPageTest(ctxcontext.Context, rc *ResourceContainer, paramsGetObservatoryScheduledPageTestParams) (*ObservatorySchedule,error)
GetObservatoryScheduledPageTest returns the test schedule for a page in a specific region.
API reference:https://api.cloudflare.com/#speed-get-scheduled-test
func (*API)GetOrganizationAuditLogs¶added inv0.9.0
func (api *API) GetOrganizationAuditLogs(ctxcontext.Context, organizationIDstring, aAuditLogFilter) (AuditLogResponse,error)
GetOrganizationAuditLogs will return the audit logs of a specificorganization, based on the ID passed in. The audit logs can befiltered based on any argument in the AuditLogFilter.
API Reference:https://api.cloudflare.com/#audit-logs-list-organization-audit-logs
func (*API)GetOriginCACertificate¶added inv0.58.0
func (api *API) GetOriginCACertificate(ctxcontext.Context, certificateIDstring) (*OriginCACertificate,error)
GetOriginCACertificate returns the details for a Cloudflare-issuedcertificate.
API reference:https://api.cloudflare.com/#cloudflare-ca-certificate-details
func (*API)GetPageShieldConnection¶added inv0.84.0
func (api *API) GetPageShieldConnection(ctxcontext.Context, rc *ResourceContainer, connectionIDstring) (*PageShieldConnection,error)
GetPageShieldConnection gets a page shield connection for a zone.
API documentation:https://developers.cloudflare.com/api/operations/page-shield-get-a-page-shield-connection
func (*API)GetPageShieldPolicy¶added inv0.84.0
func (api *API) GetPageShieldPolicy(ctxcontext.Context, rc *ResourceContainer, policyIDstring) (*PageShieldPolicy,error)
GetPageShieldPolicy gets a page shield policy for a zone.
API documentation:https://developers.cloudflare.com/api/operations/page-shield-get-page-shield-policy
func (*API)GetPageShieldScript¶added inv0.84.0
func (api *API) GetPageShieldScript(ctxcontext.Context, rc *ResourceContainer, scriptIDstring) (*PageShieldScript, []PageShieldScriptVersion,error)
GetPageShieldScript returns a PageShield Script.
API reference:https://developers.cloudflare.com/api/operations/page-shield-get-a-page-shield-script
func (*API)GetPageShieldSettings¶added inv0.84.0
func (api *API) GetPageShieldSettings(ctxcontext.Context, rc *ResourceContainer, paramsGetPageShieldSettingsParams) (*PageShieldSettingsResponse,error)
GetPageShieldSettings returns the page shield settings for a zone.
API documentation:https://developers.cloudflare.com/api/operations/page-shield-get-page-shield-settings
func (*API)GetPagesDeploymentInfo¶added inv0.40.0
func (api *API) GetPagesDeploymentInfo(ctxcontext.Context, rc *ResourceContainer, projectName, deploymentIDstring) (PagesProjectDeployment,error)
GetPagesDeploymentInfo returns a deployment for a Pages project.
API reference:https://api.cloudflare.com/#pages-deployment-get-deployment-info
func (*API)GetPagesDeploymentLogs¶added inv0.43.0
func (api *API) GetPagesDeploymentLogs(ctxcontext.Context, rc *ResourceContainer, paramsGetPagesDeploymentLogsParams) (PagesDeploymentLogs,error)
GetPagesDeploymentLogs returns the logs for a Pages deployment.
API reference:https://api.cloudflare.com/#pages-deployment-get-deployment-logs
func (*API)GetPagesDomain¶added inv0.44.0
func (api *API) GetPagesDomain(ctxcontext.Context, paramsPagesDomainParameters) (PagesDomain,error)
GetPagesDomain gets a single domain.
API Reference:https://api.cloudflare.com/#pages-domains-get-domains
func (*API)GetPagesDomains¶added inv0.44.0
func (api *API) GetPagesDomains(ctxcontext.Context, paramsPagesDomainsParameters) ([]PagesDomain,error)
GetPagesDomains gets all domains for a pages project.
API Reference:https://api.cloudflare.com/#pages-domains-get-domains
func (*API)GetPagesProject¶added inv0.73.0
func (api *API) GetPagesProject(ctxcontext.Context, rc *ResourceContainer, projectNamestring) (PagesProject,error)
GetPagesProject returns a single Pages project by name.
API reference:https://api.cloudflare.com/#pages-project-get-project
func (*API)GetPerHostnameAuthenticatedOriginPullsCertificate¶added inv0.12.2
func (api *API) GetPerHostnameAuthenticatedOriginPullsCertificate(ctxcontext.Context, zoneID, certificateIDstring) (PerHostnameAuthenticatedOriginPullsCertificateDetails,error)
GetPerHostnameAuthenticatedOriginPullsCertificate retrieves certificate metadata about the requested Per Hostname certificate.
API reference:https://api.cloudflare.com/#per-hostname-authenticated-origin-pull-get-the-hostname-client-certificate
func (*API)GetPerHostnameAuthenticatedOriginPullsConfig¶added inv0.12.2
func (api *API) GetPerHostnameAuthenticatedOriginPullsConfig(ctxcontext.Context, zoneID, hostnamestring) (PerHostnameAuthenticatedOriginPullsDetails,error)
GetPerHostnameAuthenticatedOriginPullsConfig returns the config state of Per Hostname AuthenticatedOriginPulls of the provided hostname within a zone.
API reference:https://api.cloudflare.com/#per-hostname-authenticated-origin-pull-get-the-hostname-status-for-client-authentication
func (*API)GetPerZoneAuthenticatedOriginPullsCertificateDetails¶added inv0.12.2
func (api *API) GetPerZoneAuthenticatedOriginPullsCertificateDetails(ctxcontext.Context, zoneID, certificateIDstring) (PerZoneAuthenticatedOriginPullsCertificateDetails,error)
GetPerZoneAuthenticatedOriginPullsCertificateDetails returns the metadata associated with a user uploaded client certificate to Per Zone AuthenticatedOriginPulls.
API reference:https://api.cloudflare.com/#zone-level-authenticated-origin-pulls-get-certificate-details
func (*API)GetPerZoneAuthenticatedOriginPullsStatus¶added inv0.12.2
func (api *API) GetPerZoneAuthenticatedOriginPullsStatus(ctxcontext.Context, zoneIDstring) (PerZoneAuthenticatedOriginPullsSettings,error)
GetPerZoneAuthenticatedOriginPullsStatus returns whether per zone AuthenticatedOriginPulls is enabled or not. It is false by default.
API reference:https://api.cloudflare.com/#zone-level-authenticated-origin-pulls-get-enablement-setting-for-zone
func (*API)GetPermissionGroup¶added inv0.53.0
func (api *API) GetPermissionGroup(ctxcontext.Context, rc *ResourceContainer, permissionGroupIdstring) (PermissionGroup,error)
GetPermissionGroup returns a specific permission group from the API giventhe account ID and permission group ID.
func (*API)GetPrefix¶added inv0.11.7
GetPrefix returns a specific IP prefix
API reference:https://api.cloudflare.com/#ip-address-management-prefixes-prefix-details
func (*API)GetQueue¶added inv0.55.0
GetQueue returns a single queue based on the name.
API reference:https://api.cloudflare.com/#queue-get-queue
func (*API)GetR2Bucket¶added inv0.68.0
func (api *API) GetR2Bucket(ctxcontext.Context, rc *ResourceContainer, bucketNamestring) (R2Bucket,error)
GetR2Bucket Gets an existing R2 bucket.
API reference:https://api.cloudflare.com/#r2-bucket-get-bucket
func (*API)GetRegionalTieredCache¶added inv0.73.0
func (api *API) GetRegionalTieredCache(ctxcontext.Context, rc *ResourceContainer, paramsGetRegionalTieredCacheParams) (RegionalTieredCache,error)
GetRegionalTieredCache returns information about the current regional tieredcache settings.
API reference:https://developers.cloudflare.com/api/resources/cache/subresources/regional_tiered_cache/methods/get/
func (*API)GetRiskScoreIntegration¶added inv0.101.0
func (api *API) GetRiskScoreIntegration(ctxcontext.Context, rc *ResourceContainer, integrationIDstring) (RiskScoreIntegration,error)
GetRiskScoreIntegration returns a single Risk Score Integration by its ID.
API reference:https://developers.cloudflare.com/api/resources/zero_trust/subresources/risk_scoring/subresources/integrations/methods/get/
func (*API)GetRuleset¶added inv0.73.0
func (api *API) GetRuleset(ctxcontext.Context, rc *ResourceContainer, rulesetIDstring) (Ruleset,error)
GetRuleset fetches a single ruleset.
API reference:https://developers.cloudflare.com/api/operations/getAccountRulesetAPI reference:https://developers.cloudflare.com/api/resources/rulesets/methods/get/
func (*API)GetSecondaryDNSPrimary¶added inv0.15.0
func (api *API) GetSecondaryDNSPrimary(ctxcontext.Context, accountID, primaryIDstring) (SecondaryDNSPrimary,error)
GetSecondaryDNSPrimary returns a single secondary DNS primary.
API reference:https://api.cloudflare.com/#secondary-dns-primary--primary-details
func (*API)GetSecondaryDNSTSIG¶added inv0.15.0
func (api *API) GetSecondaryDNSTSIG(ctxcontext.Context, accountID, tsigIDstring) (SecondaryDNSTSIG,error)
GetSecondaryDNSTSIG gets a single account level TSIG for a secondary DNSconfiguration.
API reference:https://api.cloudflare.com/#secondary-dns-tsig--tsig-details
func (*API)GetSecondaryDNSZone¶added inv0.15.0
GetSecondaryDNSZone returns the secondary DNS zone configuration for asingle zone.
API reference:https://api.cloudflare.com/#secondary-dns-secondary-zone-configuration-details
func (*API)GetTeamsDeviceDetails¶added inv0.32.0
func (api *API) GetTeamsDeviceDetails(ctxcontext.Context, accountIDstring, deviceIDstring) (TeamsDeviceListItem,error)
GetTeamsDeviceDetails gets device details.
API reference :https://api.cloudflare.com/#devices-device-details
func (*API)GetTeamsList¶added inv0.53.0
func (api *API) GetTeamsList(ctxcontext.Context, rc *ResourceContainer, listIDstring) (TeamsList,error)
GetTeamsList returns a single list based on the list ID.
API reference:https://api.cloudflare.com/#teams-lists-teams-list-details
func (*API)GetTieredCache¶added inv0.57.1
func (api *API) GetTieredCache(ctxcontext.Context, rc *ResourceContainer) (TieredCache,error)
GetTieredCache allows you to retrieve the current Tiered Cache Settings for a Zone.This function does not support custom topologies, only Generic and Smart Tiered Caching.
API Reference:https://api.cloudflare.com/#smart-tiered-cache-get-smart-tiered-cache-settingAPI Reference:https://api.cloudflare.com/#tiered-cache-get-tiered-cache-setting
func (*API)GetTotalTLS¶added inv0.53.0
GetTotalTLS Get Total TLS Settings for a Zone.
API Reference:https://api.cloudflare.com/#total-tls-total-tls-settings-details
func (*API)GetTunnel¶added inv0.63.0
GetTunnel returns a single Argo tunnel.
API reference:https://api.cloudflare.com/#cloudflare-tunnel-get-cloudflare-tunnel
func (*API)GetTunnelConfiguration¶added inv0.43.0
func (api *API) GetTunnelConfiguration(ctxcontext.Context, rc *ResourceContainer, tunnelIDstring) (TunnelConfigurationResult,error)
GetTunnelConfiguration updates an existing tunnel for the account.
API reference:https://api.cloudflare.com/#cloudflare-tunnel-configuration-properties
func (*API)GetTunnelRouteForIP¶added inv0.37.0
func (api *API) GetTunnelRouteForIP(ctxcontext.Context, rc *ResourceContainer, paramsTunnelRoutesForIPParams) (TunnelRoute,error)
GetTunnelRouteForIP finds the Tunnel Route that encompasses the given IP.
See:https://api.cloudflare.com/#tunnel-route-get-tunnel-route-by-ip
func (*API)GetTunnelToken¶added inv0.63.0
func (api *API) GetTunnelToken(ctxcontext.Context, rc *ResourceContainer, tunnelIDstring) (string,error)
GetTunnelToken that allows to run a tunnel.
API reference:https://api.cloudflare.com/#cloudflare-tunnel-get-cloudflare-tunnel-token
func (*API)GetTurnstileWidget¶added inv0.66.0
func (api *API) GetTurnstileWidget(ctxcontext.Context, rc *ResourceContainer, siteKeystring) (TurnstileWidget,error)
GetTurnstileWidget shows a single challenge widget configuration.
API reference:https://api.cloudflare.com/#challenge-widgets-challenge-widget-details
func (*API)GetUserAuditLogs¶added inv0.9.0
func (api *API) GetUserAuditLogs(ctxcontext.Context, aAuditLogFilter) (AuditLogResponse,error)
GetUserAuditLogs will return your user's audit logs. The audit logs can befiltered based on any argument in the AuditLogFilter.
API Reference:https://api.cloudflare.com/#audit-logs-list-user-audit-logs
func (*API)GetWaitingRoomSettings¶added inv0.67.0
func (api *API) GetWaitingRoomSettings(ctxcontext.Context, rc *ResourceContainer) (WaitingRoomSettings,error)
GetWaitingRoomSettings fetches the Waiting Room zone-level settings for a zone.
API reference:https://api.cloudflare.com/#waiting-room-get-zone-settings
func (*API)GetWeb3Hostname¶added inv0.45.0
func (api *API) GetWeb3Hostname(ctxcontext.Context, paramsWeb3HostnameDetailsParameters) (Web3Hostname,error)
GetWeb3Hostname gets a single web3 hostname by identifier.
API Reference:https://api.cloudflare.com/#web3-hostname-web3-hostname-details
func (*API)GetWebAnalyticsSite¶added inv0.75.0
func (api *API) GetWebAnalyticsSite(ctxcontext.Context, rc *ResourceContainer, paramsGetWebAnalyticsSiteParams) (*WebAnalyticsSite,error)
GetWebAnalyticsSite fetches detail about one Web Analytics Site for an Account.
API reference:https://api.cloudflare.com/#web-analytics-get-site
func (*API)GetWorker¶added inv0.57.0
func (api *API) GetWorker(ctxcontext.Context, rc *ResourceContainer, scriptNamestring) (WorkerScriptResponse,error)
GetWorker fetch raw script content for your worker returns string containingworker code js.
API reference:https://developers.cloudflare.com/api/resources/workers/subresources/scripts/methods/get/
func (*API)GetWorkerRoute¶added inv0.16.0
func (api *API) GetWorkerRoute(ctxcontext.Context, rc *ResourceContainer, routeIDstring) (WorkerRouteResponse,error)
GetWorkerRoute returns a Workers route.
API reference:https://developers.cloudflare.com/api/operations/worker-routes-get-route
func (*API)GetWorkerWithDispatchNamespace¶added inv0.90.0
func (api *API) GetWorkerWithDispatchNamespace(ctxcontext.Context, rc *ResourceContainer, scriptNamestring, dispatchNamespacestring) (WorkerScriptResponse,error)
GetWorker fetch raw script content for your worker returns string containingworker code js.
API reference:https://developers.cloudflare.com/api/resources/workers/subresources/scripts/methods/get/
func (*API)GetWorkersDomain¶added inv0.55.0
func (api *API) GetWorkersDomain(ctxcontext.Context, rc *ResourceContainer, domainIDstring) (WorkersDomain,error)
GetWorkersDomain gets a single Worker Domain.
API reference:https://developers.cloudflare.com/api/resources/workers/subresources/domains/methods/get/
func (*API)GetWorkersForPlatformsDispatchNamespace¶added inv0.90.0
func (api *API) GetWorkersForPlatformsDispatchNamespace(ctxcontext.Context, rc *ResourceContainer, namestring) (*GetWorkersForPlatformsDispatchNamespaceResponse,error)
GetWorkersForPlatformsDispatchNamespace gets a specific dispatch namespace.
func (API)GetWorkersKV¶added inv0.55.0
func (apiAPI) GetWorkersKV(ctxcontext.Context, rc *ResourceContainer, paramsGetWorkersKVParams) ([]byte,error)
GetWorkersKV returns the value associated with the given key in thegiven namespace.
API reference:https://developers.cloudflare.com/api/resources/kv/subresources/namespaces/subresources/values/methods/get/
Example¶
api, err := cloudflare.New(apiKey, user)if err != nil {log.Fatal(err)}key := "test_key"resp, err := api.GetWorkersKV(context.Background(), cloudflare.AccountIdentifier(accountID), cloudflare.GetWorkersKVParams{NamespaceID: namespace, Key: key})if err != nil {log.Fatal(err)}fmt.Printf("%s\n", resp)
func (*API)GetWorkersScriptContent¶added inv0.76.0
func (api *API) GetWorkersScriptContent(ctxcontext.Context, rc *ResourceContainer, scriptNamestring) (string,error)
GetWorkersScriptContent returns the pure script content of a worker.
API reference:https://developers.cloudflare.com/api/resources/workers/subresources/scripts/subresources/content/methods/get/
func (*API)GetWorkersScriptSettings¶added inv0.76.0
func (api *API) GetWorkersScriptSettings(ctxcontext.Context, rc *ResourceContainer, scriptNamestring) (WorkerScriptSettingsResponse,error)
GetWorkersScriptSettings returns the metadata of a worker.
API reference:https://developers.cloudflare.com/api/operations/worker-script-get-settings
func (*API)GetZarazConfig¶added inv0.86.0
func (api *API) GetZarazConfig(ctxcontext.Context, rc *ResourceContainer) (ZarazConfigResponse,error)
func (*API)GetZarazWorkflow¶added inv0.86.0
func (api *API) GetZarazWorkflow(ctxcontext.Context, rc *ResourceContainer) (ZarazWorkflowResponse,error)
func (*API)GetZoneHold¶added inv0.75.0
func (api *API) GetZoneHold(ctxcontext.Context, rc *ResourceContainer, paramsGetZoneHoldParams) (ZoneHold,error)
GetZoneHold retrieves whether the zone is subject to a zone hold, and themetadata about the hold.
API reference:https://developers.cloudflare.com/api/resources/zones/subresources/holds/methods/get/
func (*API)GetZoneSetting¶added inv0.64.0
func (api *API) GetZoneSetting(ctxcontext.Context, rc *ResourceContainer, paramsGetZoneSettingParams) (ZoneSetting,error)
GetZoneSetting returns information about specified setting to the specifiedzone.
API reference:https://api.cloudflare.com/#zone-settings-get-all-zone-settings
func (*API)GetZoneSnippet¶added inv0.109.0
func (*API)Healthcheck¶added inv0.11.1
Healthcheck returns a single healthcheck by ID.
API reference:https://api.cloudflare.com/#health-checks-health-check-details
func (*API)HealthcheckPreview¶added inv0.11.5
HealthcheckPreview returns a single healthcheck preview by its ID.
API reference:https://api.cloudflare.com/#health-checks-health-check-preview-details
func (*API)Healthchecks¶added inv0.11.1
Healthchecks returns all healthchecks for a zone.
API reference:https://api.cloudflare.com/#health-checks-list-health-checks
func (*API)ImportDNSRecords¶added inv0.66.0
func (api *API) ImportDNSRecords(ctxcontext.Context, rc *ResourceContainer, paramsImportDNSRecordsParams)error
ImportDNSRecords takes the contents of a BIND configuration file and importsall records at once.
The current state of the API doesn't allow the proxying field to beautomatically set on records where the TTL is 1. Instead you need toexplicitly tell the endpoint which records are proxied in the form data. Toachieve a simpler abstraction, we do the legwork in the method of making thetwo separate API calls (one for proxied and one for non-proxied) instead ofmaking the end user know about this detail.
API reference:https://developers.cloudflare.com/api/resources/dns/subresources/records/methods/import/
func (*API)IntelligenceASNOverview¶added inv0.44.0
func (api *API) IntelligenceASNOverview(ctxcontext.Context, paramsIntelligenceASNOverviewParameters) ([]ASNInfo,error)
IntelligenceASNOverview get overview for an ASN number
API Reference:https://api.cloudflare.com/#asn-intelligence-get-asn-overview
func (*API)IntelligenceASNSubnets¶added inv0.44.0
func (api *API) IntelligenceASNSubnets(ctxcontext.Context, paramsIntelligenceASNSubnetsParameters) (IntelligenceASNSubnetResponse,error)
IntelligenceASNSubnets gets all subnets of an ASN
API Reference:https://api.cloudflare.com/#asn-intelligence-get-asn-subnets
func (*API)IntelligenceBulkDomainDetails¶added inv0.44.0
func (api *API) IntelligenceBulkDomainDetails(ctxcontext.Context, paramsGetBulkDomainDetailsParameters) ([]DomainDetails,error)
IntelligenceBulkDomainDetails gets domain information for a list of domains.
API Reference:https://api.cloudflare.com/#domain-intelligence-get-multiple-domain-details
func (*API)IntelligenceDomainDetails¶added inv0.44.0
func (api *API) IntelligenceDomainDetails(ctxcontext.Context, paramsGetDomainDetailsParameters) (DomainDetails,error)
IntelligenceDomainDetails gets domain information.
API Reference:https://api.cloudflare.com/#domain-intelligence-get-domain-details
func (*API)IntelligenceDomainHistory¶added inv0.44.0
func (api *API) IntelligenceDomainHistory(ctxcontext.Context, paramsGetDomainHistoryParameters) ([]DomainHistory,error)
IntelligenceDomainHistory get domain history for given domain
API Reference:https://api.cloudflare.com/#domain-history-get-domain-history
func (*API)IntelligenceGetIPList¶added inv0.44.0
func (api *API) IntelligenceGetIPList(ctxcontext.Context, paramsIPIntelligenceListParameters) ([]IPIntelligenceItem,error)
IntelligenceGetIPList gets intelligence ip-lists.
API Reference:https://api.cloudflare.com/#ip-list-get-ip-lists
func (*API)IntelligenceGetIPOverview¶added inv0.44.0
func (api *API) IntelligenceGetIPOverview(ctxcontext.Context, paramsIPIntelligenceParameters) ([]IPIntelligence,error)
IntelligenceGetIPOverview gets information about ipv4 or ipv6 address.
API Reference:https://api.cloudflare.com/#ip-intelligence-get-ip-overview
func (*API)IntelligencePassiveDNS¶added inv0.44.0
func (api *API) IntelligencePassiveDNS(ctxcontext.Context, paramsIPIntelligencePassiveDNSParameters) (IPPassiveDNS,error)
IntelligencePassiveDNS gets a history of DNS for an ip.
API Reference:https://api.cloudflare.com/#passive-dns-by-ip-get-passive-dns-by-ip
func (*API)IntelligencePhishingScan¶added inv0.44.0
func (api *API) IntelligencePhishingScan(ctxcontext.Context, paramsPhishingScanParameters) (PhishingScan,error)
IntelligencePhishingScan scans a URL for suspected phishing
API Reference:https://api.cloudflare.com/#phishing-url-scanner-scan-suspicious-url
func (*API)IntelligenceWHOIS¶added inv0.44.0
IntelligenceWHOIS gets whois information for a domain.
API Reference:https://api.cloudflare.com/#whois-record-get-whois-record
func (*API)KeylessSSL¶added inv0.17.0
KeylessSSL provides the configuration for a given Keyless SSL identifier.
API reference:https://api.cloudflare.com/#keyless-ssl-for-a-zone-keyless-ssl-details
func (*API)LeakedCredentialCheckCreateDetection¶added inv0.111.0
func (api *API) LeakedCredentialCheckCreateDetection(ctxcontext.Context, rc *ResourceContainer, paramsLeakedCredentialCheckCreateDetectionParams) (LeakedCredentialCheckDetectionEntry,error)
LeakedCredentialCheckCreateDetection creates user-defined detection pattern for Leaked Credential Checks
API reference:https://developers.cloudflare.com/api/resources/leaked_credential_checks/subresources/detections/methods/create/
func (*API)LeakedCredentialCheckDeleteDetection¶added inv0.111.0
func (api *API) LeakedCredentialCheckDeleteDetection(ctxcontext.Context, rc *ResourceContainer, paramsLeakedCredentialCheckDeleteDetectionParams) (LeakedCredentialCheckDeleteDetectionResponse,error)
LeakedCredentialCheckDeleteDetection removes user-defined detection pattern for Leaked Credential Checks
API reference:https://developers.cloudflare.com/api/resources/leaked_credential_checks/subresources/detections/methods/delete/
func (*API)LeakedCredentialCheckGetStatus¶added inv0.111.0
func (api *API) LeakedCredentialCheckGetStatus(ctxcontext.Context, rc *ResourceContainer, paramsLeakedCredentialCheckGetStatusParams) (LeakedCredentialCheckStatus,error)
LeakCredentialCheckGetStatus returns whether Leaked credential check is enabled or not. It is false by default.
API reference:https://developers.cloudflare.com/api/resources/leaked_credential_checks/methods/get/
func (*API)LeakedCredentialCheckListDetections¶added inv0.111.0
func (api *API) LeakedCredentialCheckListDetections(ctxcontext.Context, rc *ResourceContainer, paramsLeakedCredentialCheckListDetectionsParams) ([]LeakedCredentialCheckDetectionEntry,error)
LeakedCredentialCheckListDetections lists user-defined detection patterns for Leaked Credential Checks.
API reference:https://developers.cloudflare.com/api/resources/leaked_credential_checks/subresources/detections/methods/list/
func (*API)LeakedCredentialCheckSetStatus¶added inv0.111.0
func (api *API) LeakedCredentialCheckSetStatus(ctxcontext.Context, rc *ResourceContainer, paramsLeakCredentialCheckSetStatusParams) (LeakedCredentialCheckStatus,error)
LeakedCredentialCheckSetStatus enable or disable the Leak Credential Check. Returns the status.
API reference:https://developers.cloudflare.com/api/resources/leaked_credential_checks/methods/create/
func (*API)LeakedCredentialCheckUpdateDetection¶added inv0.111.0
func (api *API) LeakedCredentialCheckUpdateDetection(ctxcontext.Context, rc *ResourceContainer, paramsLeakedCredentialCheckUpdateDetectionParams) (LeakedCredentialCheckDetectionEntry,error)
LeakedCredentialCheckUpdateDetection updates user-defined detection pattern for Leaked Credential Checks. Returns updated detection.
API reference:https://developers.cloudflare.com/api/resources/leaked_credential_checks/subresources/detections/methods/update/
func (*API)ListAPIShieldDiscoveryOperations¶added inv0.79.0
func (api *API) ListAPIShieldDiscoveryOperations(ctxcontext.Context, rc *ResourceContainer, paramsListAPIShieldDiscoveryOperationsParams) ([]APIShieldDiscoveryOperation,ResultInfo,error)
ListAPIShieldDiscoveryOperations retrieve the most up to date view of discovered operations.
API documentation:https://developers.cloudflare.com/api/resources/api_gateway/subresources/discovery/subresources/operations/methods/list/
func (*API)ListAPIShieldOperations¶added inv0.78.0
func (api *API) ListAPIShieldOperations(ctxcontext.Context, rc *ResourceContainer, paramsListAPIShieldOperationsParams) ([]APIShieldOperation,ResultInfo,error)
ListAPIShieldOperations retrieve information about all operations on a zone
API documentationhttps://developers.cloudflare.com/api/resources/api_gateway/subresources/operations/methods/list/
func (*API)ListAPIShieldSchemas¶added inv0.79.0
func (api *API) ListAPIShieldSchemas(ctxcontext.Context, rc *ResourceContainer, paramsListAPIShieldSchemasParams) ([]APIShieldSchema,ResultInfo,error)
ListAPIShieldSchemas retrieves all schemas for a zone
API documentation:https://developers.cloudflare.com/api/resources/api_gateway/subresources/user_schemas/methods/list/
func (*API)ListAPITokensPermissionGroups¶added inv0.13.5
func (api *API) ListAPITokensPermissionGroups(ctxcontext.Context) ([]APITokenPermissionGroups,error)
ListAPITokensPermissionGroups returns all available API token permission groups.
API reference:https://api.cloudflare.com/#permission-groups-list-permission-groups
func (*API)ListAccessApplications¶added inv0.71.0
func (api *API) ListAccessApplications(ctxcontext.Context, rc *ResourceContainer, paramsListAccessApplicationsParams) ([]AccessApplication, *ResultInfo,error)
ListAccessApplications returns all applications within an account or zone.
Account API reference:https://developers.cloudflare.com/api/operations/access-applications-list-access-applicationsZone API reference:https://developers.cloudflare.com/api/operations/zone-level-access-applications-list-access-applications
func (*API)ListAccessCACertificates¶added inv0.71.0
func (api *API) ListAccessCACertificates(ctxcontext.Context, rc *ResourceContainer, paramsListAccessCACertificatesParams) ([]AccessCACertificate, *ResultInfo,error)
ListAccessCACertificates returns all AccessCACertificate within Access.
Account API reference:https://developers.cloudflare.com/api/operations/access-short-lived-certificate-c-as-list-short-lived-certificate-c-asZone API reference:https://developers.cloudflare.com/api/operations/zone-level-access-short-lived-certificate-c-as-list-short-lived-certificate-c-as
func (*API)ListAccessCustomPages¶added inv0.74.0
func (api *API) ListAccessCustomPages(ctxcontext.Context, rc *ResourceContainer, paramsListAccessCustomPagesParams) ([]AccessCustomPage,error)
func (*API)ListAccessGroups¶added inv0.71.0
func (api *API) ListAccessGroups(ctxcontext.Context, rc *ResourceContainer, paramsListAccessGroupsParams) ([]AccessGroup, *ResultInfo,error)
ListAccessGroups returns all access groups for an access application.
Account API Reference:https://developers.cloudflare.com/api/operations/access-groups-list-access-groupsZone API Reference:https://developers.cloudflare.com/api/operations/zone-level-access-groups-list-access-groups
func (*API)ListAccessIdentityProviderAuthContexts¶added inv0.75.0
func (api *API) ListAccessIdentityProviderAuthContexts(ctxcontext.Context, rc *ResourceContainer, identityProviderIDstring) ([]AccessAuthContext,error)
ListAccessIdentityProviderAuthContexts returns an identity provider's auth contextsAzureAD onlyAccount API Reference:https://developers.cloudflare.com/api/operations/access-identity-providers-get-an-access-identity-providerZone API Reference:https://developers.cloudflare.com/api/operations/zone-level-access-identity-providers-get-an-access-identity-provider
func (*API)ListAccessIdentityProviders¶added inv0.71.0
func (api *API) ListAccessIdentityProviders(ctxcontext.Context, rc *ResourceContainer, paramsListAccessIdentityProvidersParams) ([]AccessIdentityProvider, *ResultInfo,error)
ListAccessIdentityProviders returns all Access Identity Providers for anaccount or zone.
Account API Reference:https://developers.cloudflare.com/api/operations/access-identity-providers-list-access-identity-providersZone API Reference:https://developers.cloudflare.com/api/operations/zone-level-access-identity-providers-list-access-identity-providers
func (*API)ListAccessMutualTLSCertificates¶added inv0.71.0
func (api *API) ListAccessMutualTLSCertificates(ctxcontext.Context, rc *ResourceContainer, paramsListAccessMutualTLSCertificatesParams) ([]AccessMutualTLSCertificate, *ResultInfo,error)
ListAccessMutualTLSCertificates returns all Access TLS certificates
Account API Reference:https://developers.cloudflare.com/api/operations/access-mtls-authentication-list-mtls-certificatesZone API Reference:https://developers.cloudflare.com/api/operations/zone-level-access-mtls-authentication-list-mtls-certificates
func (*API)ListAccessPolicies¶added inv0.71.0
func (api *API) ListAccessPolicies(ctxcontext.Context, rc *ResourceContainer, paramsListAccessPoliciesParams) ([]AccessPolicy, *ResultInfo,error)
ListAccessPolicies returns all access policies that match the parameters.
Account API reference:https://developers.cloudflare.com/api/operations/access-policies-list-access-policiesZone API reference:https://developers.cloudflare.com/api/operations/zone-level-access-policies-list-access-policies
func (*API)ListAccessServiceTokens¶added inv0.71.0
func (api *API) ListAccessServiceTokens(ctxcontext.Context, rc *ResourceContainer, paramsListAccessServiceTokensParams) ([]AccessServiceToken,ResultInfo,error)
func (*API)ListAccessTags¶added inv0.78.0
func (api *API) ListAccessTags(ctxcontext.Context, rc *ResourceContainer, paramsListAccessTagsParams) ([]AccessTag,error)
func (*API)ListAccessUsers¶added inv0.81.0
func (api *API) ListAccessUsers(ctxcontext.Context, rc *ResourceContainer, paramsAccessUserParams) ([]AccessUser, *ResultInfo,error)
ListAccessUsers returns a list of users for a single cloudflare access/zerotrust account.
API documentation:https://developers.cloudflare.com/api/resources/zero_trust/subresources/access/subresources/users/methods/list/
func (*API)ListAccountAccessRules¶added inv0.10.0
func (api *API) ListAccountAccessRules(ctxcontext.Context, accountIDstring, accessRuleAccessRule, pageint) (*AccessRuleListResponse,error)
ListAccountAccessRules returns a slice of access rules for the givenaccount identifier.
This takes an AccessRule to allow filtering of the results returned.
API reference:https://api.cloudflare.com/#account-level-firewall-access-rule-list-access-rules
func (*API)ListAccountRoles¶added inv0.78.0
func (api *API) ListAccountRoles(ctxcontext.Context, rc *ResourceContainer, paramsListAccountRolesParams) ([]AccountRole,error)
ListAccountRoles returns all roles of an account.
API reference:https://developers.cloudflare.com/api/resources/accounts/subresources/roles/methods/list/
func (*API)ListAddressMaps¶added inv0.63.0
func (api *API) ListAddressMaps(ctxcontext.Context, rc *ResourceContainer, paramsListAddressMapsParams) ([]AddressMap,error)
ListAddressMaps lists all address maps owned by the account.
API reference:https://developers.cloudflare.com/api/resources/addressing/subresources/address_maps/methods/list/
func (*API)ListAllRateLimits¶added inv0.8.5
ListAllRateLimits returns all Rate Limits for a zone.
API reference:https://api.cloudflare.com/#rate-limits-for-a-zone-list-rate-limits
func (*API)ListCertificateAuthoritiesHostnameAssociations¶added inv0.112.0
func (api *API) ListCertificateAuthoritiesHostnameAssociations(ctxcontext.Context, rc *ResourceContainer, paramsListCertificateAuthoritiesHostnameAssociationsParams) ([]HostnameAssociation,error)
List Hostname Associations
API Reference:https://developers.cloudflare.com/api/resources/certificate_authorities/subresources/hostname_associations/methods/get/
func (*API)ListCertificatePacks¶added inv0.13.0
ListCertificatePacks returns all available TLS certificate packs for a zone.
API Reference:https://api.cloudflare.com/#certificate-packs-list-certificate-packs
func (*API)ListD1Databases¶added inv0.79.0
func (api *API) ListD1Databases(ctxcontext.Context, rc *ResourceContainer, paramsListD1DatabasesParams) ([]D1Database, *ResultInfo,error)
ListD1Databases returns all databases for an account.
API reference:https://developers.cloudflare.com/api/resources/d1/subresources/database/methods/list/
func (*API)ListDLPDatasets¶added inv0.87.0
func (api *API) ListDLPDatasets(ctxcontext.Context, rc *ResourceContainer, paramsListDLPDatasetsParams) ([]DLPDataset,error)
ListDLPDatasets returns all the DLP datasets associated with an account.
API reference:https://developers.cloudflare.com/api/resources/zero_trust/subresources/dlp/subresources/datasets/methods/list/
func (*API)ListDLPProfiles¶added inv0.53.0
func (api *API) ListDLPProfiles(ctxcontext.Context, rc *ResourceContainer, paramsListDLPProfilesParams) ([]DLPProfile,error)
ListDLPProfiles returns all DLP profiles within an account.
API reference:https://api.cloudflare.com/#dlp-profiles-list-all-profiles
func (*API)ListDNSFirewallClusters¶added inv0.29.0
func (api *API) ListDNSFirewallClusters(ctxcontext.Context, rc *ResourceContainer, paramsListDNSFirewallClustersParams) ([]*DNSFirewallCluster,error)
ListDNSFirewallClusters lists the DNS Firewall clusters associated with an account.
API reference:https://api.cloudflare.com/#dns-firewall-list-dns-firewall-clusters
func (*API)ListDNSRecords¶added inv0.58.0
func (api *API) ListDNSRecords(ctxcontext.Context, rc *ResourceContainer, paramsListDNSRecordsParams) ([]DNSRecord, *ResultInfo,error)
ListDNSRecords returns a slice of DNS records for the given zone identifier.
API reference:https://api.cloudflare.com/#dns-records-for-a-zone-list-dns-records
Example (All)¶
api, err := cloudflare.New("deadbeef", "test@example.org")if err != nil {log.Fatal(err)}zoneID, err := api.ZoneIDByName("example.com")if err != nil {log.Fatal(err)}// Fetch all records for a zonerecs, _, err := api.ListDNSRecords(context.Background(), cloudflare.ZoneIdentifier(zoneID), cloudflare.ListDNSRecordsParams{})if err != nil {log.Fatal(err)}for _, r := range recs {fmt.Printf("%s: %s\n", r.Name, r.Content)}
Example (FilterByContent)¶
api, err := cloudflare.New("deadbeef", "test@example.org")if err != nil {log.Fatal(err)}zoneID, err := api.ZoneIDByName("example.com")if err != nil {log.Fatal(err)}recs, _, err := api.ListDNSRecords(context.Background(), cloudflare.ZoneIdentifier(zoneID), cloudflare.ListDNSRecordsParams{Content: "198.51.100.1"})if err != nil {log.Fatal(err)}for _, r := range recs {fmt.Printf("%s: %s\n", r.Name, r.Content)}
Example (FilterByName)¶
api, err := cloudflare.New("deadbeef", "test@example.org")if err != nil {log.Fatal(err)}zoneID, err := api.ZoneIDByName("example.com")if err != nil {log.Fatal(err)}recs, _, err := api.ListDNSRecords(context.Background(), cloudflare.ZoneIdentifier(zoneID), cloudflare.ListDNSRecordsParams{Name: "foo.example.com"})if err != nil {log.Fatal(err)}for _, r := range recs {fmt.Printf("%s: %s\n", r.Name, r.Content)}
Example (FilterByType)¶
api, err := cloudflare.New("deadbeef", "test@example.org")if err != nil {log.Fatal(err)}zoneID, err := api.ZoneIDByName("example.com")if err != nil {log.Fatal(err)}recs, _, err := api.ListDNSRecords(context.Background(), cloudflare.ZoneIdentifier(zoneID), cloudflare.ListDNSRecordsParams{Type: "AAAA"})if err != nil {log.Fatal(err)}for _, r := range recs {fmt.Printf("%s: %s\n", r.Name, r.Content)}
func (*API)ListDataLocalizationRegionalHostnames¶added inv0.66.0
func (api *API) ListDataLocalizationRegionalHostnames(ctxcontext.Context, rc *ResourceContainer, paramsListDataLocalizationRegionalHostnamesParams) ([]RegionalHostname,error)
ListDataLocalizationRegionalHostnames lists all regional hostnames for a zone.
API reference:https://developers.cloudflare.com/data-localization/regional-services/get-started/#configure-regional-services-via-api
func (*API)ListDataLocalizationRegions¶added inv0.66.0
func (api *API) ListDataLocalizationRegions(ctxcontext.Context, rc *ResourceContainer, paramsListDataLocalizationRegionsParams) ([]Region,error)
ListDataLocalizationRegions lists all available regions.
API reference:https://developers.cloudflare.com/data-localization/regional-services/get-started/#configure-regional-services-via-api
func (*API)ListDeviceManagedNetworks¶added inv0.57.0
func (api *API) ListDeviceManagedNetworks(ctxcontext.Context, rc *ResourceContainer, paramsListDeviceManagedNetworksParams) ([]DeviceManagedNetwork,error)
ListDeviceManagedNetwork returns all Device Managed Networks for a givenaccount.
API reference :https://api.cloudflare.com/#device-managed-networks-list-device-managed-networks
func (*API)ListDeviceSettingsPolicies¶added inv0.81.0
func (api *API) ListDeviceSettingsPolicies(ctxcontext.Context, rc *ResourceContainer, paramsListDeviceSettingsPoliciesParams) ([]DeviceSettingsPolicy, *ResultInfo,error)
ListDeviceSettingsPolicies returns all device settings policies for an account
API reference:https://api.cloudflare.com/#devices-list-device-settings-policies
func (*API)ListDexTests¶added inv0.62.0
func (api *API) ListDexTests(ctxcontext.Context, rc *ResourceContainer, paramsListDeviceDexTestParams) (DeviceDexTests,error)
ListDexTests returns all Device Dex Tests for a given account.
API reference :https://developers.cloudflare.com/api/resources/zero_trust/subresources/devices/subresources/dex_tests/methods/list/
func (*API)ListEmailRoutingDestinationAddresses¶added inv0.47.0
func (api *API) ListEmailRoutingDestinationAddresses(ctxcontext.Context, rc *ResourceContainer, paramsListEmailRoutingAddressParameters) ([]EmailRoutingDestinationAddress, *ResultInfo,error)
ListEmailRoutingDestinationAddresses Lists existing destination addresses.
API reference:https://api.cloudflare.com/#email-routing-destination-addresses-list-destination-addresses
func (*API)ListEmailRoutingRules¶added inv0.47.0
func (api *API) ListEmailRoutingRules(ctxcontext.Context, rc *ResourceContainer, paramsListEmailRoutingRulesParameters) ([]EmailRoutingRule, *ResultInfo,error)
ListEmailRoutingRules Lists existing routing rules.
API reference:https://api.cloudflare.com/#email-routing-routing-rules-list-routing-rules
func (*API)ListFallbackDomains¶added inv0.29.0
ListFallbackDomains returns all fallback domains within an account.
API reference:https://api.cloudflare.com/#devices-get-local-domain-fallback-list
func (*API)ListFallbackDomainsDeviceSettingsPolicy¶added inv0.52.0
func (api *API) ListFallbackDomainsDeviceSettingsPolicy(ctxcontext.Context, accountID, policyIDstring) ([]FallbackDomain,error)
ListFallbackDomainsDeviceSettingsPolicy returns all fallback domains within an account for a specific device settings policy.
API reference:https://api.cloudflare.com/#devices-get-local-domain-fallback-list
func (*API)ListGatewayCategories¶added inv0.100.0
func (api *API) ListGatewayCategories(ctxcontext.Context, rc *ResourceContainer, paramsListGatewayCategoriesParams) ([]GatewayCategory,ResultInfo,error)
ListGatewayCategories returns all gateway categories within an account.
API reference:https://developers.cloudflare.com/api/resources/zero_trust/subresources/gateway/subresources/categories/methods/list/
func (*API)ListHostnameTLSSettings¶added inv0.75.0
func (api *API) ListHostnameTLSSettings(ctxcontext.Context, rc *ResourceContainer, paramsListHostnameTLSSettingsParams) ([]HostnameTLSSetting,ResultInfo,error)
ListHostnameTLSSettings returns a list of all user-created tls setting values for the specified setting and hostnames.
API reference:https://developers.cloudflare.com/api/resources/hostnames/subresources/settings/subresources/tls/methods/get/
func (*API)ListHostnameTLSSettingsCiphers¶added inv0.75.0
func (api *API) ListHostnameTLSSettingsCiphers(ctxcontext.Context, rc *ResourceContainer, paramsListHostnameTLSSettingsCiphersParams) ([]HostnameTLSSettingCiphers,ResultInfo,error)
ListHostnameTLSSettingsCiphers returns a list of all user-created tls setting ciphers values for the specified setting and hostnames.Ciphers functions are separate due to the API returning a list of strings as the value, rather than a string (as is the case for the other tls settings).
API reference:https://developers.cloudflare.com/api/resources/hostnames/subresources/settings/subresources/tls/methods/get/
func (*API)ListHyperdriveConfigs¶added inv0.88.0
func (api *API) ListHyperdriveConfigs(ctxcontext.Context, rc *ResourceContainer, paramsListHyperdriveConfigParams) ([]HyperdriveConfig,error)
ListHyperdriveConfigs returns the Hyperdrive configs owned by an account.
API reference:https://developers.cloudflare.com/api/resources/hyperdrive/subresources/configs/methods/list/
func (*API)ListIPAccessRules¶added inv0.82.0
func (api *API) ListIPAccessRules(ctxcontext.Context, rc *ResourceContainer, paramsListIPAccessRulesParams) ([]IPAccessRule, *ResultInfo,error)
ListIPAccessRules fetches IP Access rules of a zone/user/account. You canfilter the results using several optional parameters.
API references:
func (*API)ListIPListItemsdeprecatedadded inv0.13.0
ListIPListItems returns a list with all items in an IP List.
API reference:https://api.cloudflare.com/#rules-lists-list-list-items
Deprecated: Use `ListListItems` instead.
func (*API)ListIPListsdeprecatedadded inv0.13.0
func (*API)ListImages¶added inv0.30.0
func (api *API) ListImages(ctxcontext.Context, rc *ResourceContainer, paramsListImagesParams) ([]Image,error)
ListImages lists all images.
API Reference:https://api.cloudflare.com/#cloudflare-images-list-images
func (*API)ListImagesVariants¶added inv0.88.0
func (api *API) ListImagesVariants(ctxcontext.Context, rc *ResourceContainer, paramsListImageVariantsParams) (ListImageVariantsResult,error)
Lists existing variants.
API Reference:https://developers.cloudflare.com/api/resources/images/subresources/v1/subresources/variants/methods/list/
func (*API)ListInfrastructureAccessTargets¶added inv0.105.0
func (api *API) ListInfrastructureAccessTargets(ctxcontext.Context, rc *ResourceContainer, paramsInfrastructureAccessTargetListParams) ([]InfrastructureAccessTarget, *ResultInfo,error)
ListInfrastructureAccessTargets returns all infrastructure access targets within an account.
Account API reference:https://developers.cloudflare.com/api/resources/zero_trust/subresources/access/subresources/infrastructure/subresources/targets/methods/list/
func (*API)ListKeylessSSL¶added inv0.17.0
ListKeylessSSL lists Keyless SSL configurations for a zone.
API reference:https://api.cloudflare.com/#keyless-ssl-for-a-zone-list-keyless-ssl-configurations
func (*API)ListListItems¶added inv0.41.0
func (api *API) ListListItems(ctxcontext.Context, rc *ResourceContainer, paramsListListItemsParams) ([]ListItem,error)
ListListItems returns a list with all items in a List.
API reference:https://api.cloudflare.com/#rules-lists-list-list-items
func (*API)ListLists¶added inv0.41.0
func (api *API) ListLists(ctxcontext.Context, rc *ResourceContainer, paramsListListsParams) ([]List,error)
ListLists lists all Lists.
API reference:https://api.cloudflare.com/#rules-lists-list-lists
func (*API)ListLoadBalancerMonitors¶added inv0.8.0
func (api *API) ListLoadBalancerMonitors(ctxcontext.Context, rc *ResourceContainer, paramsListLoadBalancerMonitorParams) ([]LoadBalancerMonitor,error)
ListLoadBalancerMonitors lists load balancer monitors connected to an account.
API reference:https://api.cloudflare.com/#load-balancer-monitors-list-monitors
func (*API)ListLoadBalancerPools¶added inv0.8.0
func (api *API) ListLoadBalancerPools(ctxcontext.Context, rc *ResourceContainer, paramsListLoadBalancerPoolParams) ([]LoadBalancerPool,error)
ListLoadBalancerPools lists load balancer pools connected to an account.
API reference:https://api.cloudflare.com/#load-balancer-pools-list-pools
func (*API)ListLoadBalancers¶added inv0.8.0
func (api *API) ListLoadBalancers(ctxcontext.Context, rc *ResourceContainer, paramsListLoadBalancerParams) ([]LoadBalancer,error)
ListLoadBalancers lists load balancers configured on a zone.
API reference:https://api.cloudflare.com/#load-balancers-list-load-balancers
Example¶
package mainimport (context "context""fmt""log"cloudflare "github.com/cloudflare/cloudflare-go")func main() {// Construct a new API object.api, err := cloudflare.New("deadbeef", "test@example.com")if err != nil {log.Fatal(err)}// List LBs configured in zone.lbList, err := api.ListLoadBalancers(context.Background(), cloudflare.ZoneIdentifier("d56084adb405e0b7e32c52321bf07be6"), cloudflare.ListLoadBalancerParams{})if err != nil {log.Fatal(err)}for _, lb := range lbList {fmt.Println(lb)}}
func (*API)ListLogpushJobs¶added inv0.72.0
func (api *API) ListLogpushJobs(ctxcontext.Context, rc *ResourceContainer, paramsListLogpushJobsParams) ([]LogpushJob,error)
ListAccountLogpushJobs returns all Logpush Jobs for all datasets.
API reference:https://api.cloudflare.com/#logpush-jobs-list-logpush-jobs
Example¶
api, err := cloudflare.New(apiKey, user)if err != nil {log.Fatal(err)}zoneID, err := api.ZoneIDByName(domain)if err != nil {log.Fatal(err)}jobs, err := api.ListLogpushJobs(context.Background(), cloudflare.ZoneIdentifier(zoneID), cloudflare.ListLogpushJobsParams{})if err != nil {log.Fatal(err)}fmt.Printf("%+v\n", jobs)for _, r := range jobs {fmt.Printf("%+v\n", r)}
func (*API)ListLogpushJobsForDataset¶added inv0.72.0
func (api *API) ListLogpushJobsForDataset(ctxcontext.Context, rc *ResourceContainer, paramsListLogpushJobsForDatasetParams) ([]LogpushJob,error)
LogpushJobsForDataset returns all Logpush Jobs for a dataset.
API reference:https://api.cloudflare.com/#logpush-jobs-list-logpush-jobs-for-a-dataset
func (*API)ListMTLSCertificateAssociations¶added inv0.58.0
func (api *API) ListMTLSCertificateAssociations(ctxcontext.Context, rc *ResourceContainer, paramsListMTLSCertificateAssociationsParams) ([]MTLSAssociation,error)
ListMTLSCertificateAssociations returns a list of all existing associationsbetween the mTLS certificate and Cloudflare services.
API reference:https://api.cloudflare.com/#mtls-certificate-management-list-mtls-certificate-associations
func (*API)ListMTLSCertificates¶added inv0.58.0
func (api *API) ListMTLSCertificates(ctxcontext.Context, rc *ResourceContainer, paramsListMTLSCertificatesParams) ([]MTLSCertificate,ResultInfo,error)
ListMTLSCertificates returns a list of all user-uploaded mTLS certificates.
API reference:https://api.cloudflare.com/#mtls-certificate-management-list-mtls-certificates
func (*API)ListMagicFirewallRulesetsdeprecatedadded inv0.13.7
func (api *API) ListMagicFirewallRulesets(ctxcontext.Context, accountIDstring) ([]MagicFirewallRuleset,error)
ListMagicFirewallRulesets lists all Rulesets for a given account
API reference:https://api.cloudflare.com/#rulesets-list-rulesets
Deprecated: Use `ListZoneRuleset` or `ListAccountRuleset` instead.
func (*API)ListMagicTransitGRETunnels¶added inv0.32.0
func (api *API) ListMagicTransitGRETunnels(ctxcontext.Context, accountIDstring) ([]MagicTransitGRETunnel,error)
ListMagicTransitGRETunnels lists all GRE tunnels for a given account.
API reference:https://api.cloudflare.com/#magic-gre-tunnels-list-gre-tunnels
func (*API)ListMagicTransitIPsecTunnels¶added inv0.31.0
func (api *API) ListMagicTransitIPsecTunnels(ctxcontext.Context, accountIDstring) ([]MagicTransitIPsecTunnel,error)
ListMagicTransitIPsecTunnels lists all IPsec tunnels for a given account
API reference:https://api.cloudflare.com/#magic-ipsec-tunnels-list-ipsec-tunnels
func (*API)ListMagicTransitStaticRoutes¶added inv0.18.0
func (api *API) ListMagicTransitStaticRoutes(ctxcontext.Context, accountIDstring) ([]MagicTransitStaticRoute,error)
ListMagicTransitStaticRoutes lists all static routes for a given account
API reference:https://api.cloudflare.com/#magic-transit-static-routes-list-routes
func (*API)ListNotificationHistory¶added inv0.28.0
func (api *API) ListNotificationHistory(ctxcontext.Context, accountIDstring, alertHistoryFilterAlertHistoryFilter) ([]NotificationHistory,ResultInfo,error)
ListNotificationHistory will return the history of alerts sent fora given account. The time period varies based on zone plan.Free, Biz, Pro = 30 daysEnt = 90 days
API Reference:https://api.cloudflare.com/#notification-history-list-history
func (*API)ListNotificationPolicies¶added inv0.19.0
func (api *API) ListNotificationPolicies(ctxcontext.Context, accountIDstring) (NotificationPoliciesResponse,error)
ListNotificationPolicies will return the notification policiescreated by a user for a specific account.
API Reference:https://api.cloudflare.com/#notification-policies-properties
func (*API)ListNotificationWebhooks¶added inv0.19.0
func (api *API) ListNotificationWebhooks(ctxcontext.Context, accountIDstring) (NotificationWebhooksResponse,error)
ListNotificationWebhooks will return the webhook destinations configuredfor an account.
API Reference:https://api.cloudflare.com/#notification-webhooks-list-webhooks
func (*API)ListObservatoryPageTests¶added inv0.78.0
func (api *API) ListObservatoryPageTests(ctxcontext.Context, rc *ResourceContainer, paramsListObservatoryPageTestParams) ([]ObservatoryPageTest, *ResultInfo,error)
ListObservatoryPageTests returns a list of tests for a page in a specific region.
API reference:https://api.cloudflare.com/#speed-list-test-history
func (*API)ListObservatoryPages¶added inv0.78.0
func (api *API) ListObservatoryPages(ctxcontext.Context, rc *ResourceContainer, paramsListObservatoryPagesParams) ([]ObservatoryPage,error)
ListObservatoryPages returns a list of pages which have been tested.
API reference:https://api.cloudflare.com/#speed-list-pages
func (*API)ListOriginCACertificates¶added inv0.58.0
func (api *API) ListOriginCACertificates(ctxcontext.Context, paramsListOriginCertificatesParams) ([]OriginCACertificate,error)
ListOriginCACertificates lists all Cloudflare-issued certificates.
API reference:https://api.cloudflare.com/#cloudflare-ca-list-certificates
func (*API)ListPageRules¶added inv0.7.2
ListPageRules returns all Page Rules for a zone.
API reference:https://api.cloudflare.com/#page-rules-for-a-zone-list-page-rules
Example¶
api, err := cloudflare.New(apiKey, user)if err != nil {log.Fatal(err)}zoneID, err := api.ZoneIDByName(domain)if err != nil {log.Fatal(err)}pageRules, err := api.ListPageRules(context.Background(), zoneID)if err != nil {log.Fatal(err)}fmt.Printf("%+v\n", pageRules)for _, r := range pageRules {fmt.Printf("%+v\n", r)}
func (*API)ListPageShieldConnections¶added inv0.84.0
func (api *API) ListPageShieldConnections(ctxcontext.Context, rc *ResourceContainer, paramsListPageShieldConnectionsParams) ([]PageShieldConnection,ResultInfo,error)
ListPageShieldConnections lists all page shield connections for a zone.
API documentation:https://developers.cloudflare.com/api/operations/page-shield-list-page-shield-connections
func (*API)ListPageShieldPolicies¶added inv0.84.0
func (api *API) ListPageShieldPolicies(ctxcontext.Context, rc *ResourceContainer, paramsListPageShieldPoliciesParams) ([]PageShieldPolicy,ResultInfo,error)
ListPageShieldPolicies lists all page shield policies for a zone.
API documentation:https://developers.cloudflare.com/api/operations/page-shield-list-page-shield-policies
func (*API)ListPageShieldScripts¶added inv0.84.0
func (api *API) ListPageShieldScripts(ctxcontext.Context, rc *ResourceContainer, paramsListPageShieldScriptsParams) ([]PageShieldScript,ResultInfo,error)
ListPageShieldScripts returns a list of PageShield Scripts.
API reference:https://developers.cloudflare.com/api/operations/page-shield-list-page-shield-scripts
func (*API)ListPagerDutyNotificationDestinations¶added inv0.19.0
func (api *API) ListPagerDutyNotificationDestinations(ctxcontext.Context, accountIDstring) (NotificationPagerDutyResponse,error)
ListPagerDutyNotificationDestinations will return the pagerdutydestinations configured for an account.
API Reference:https://api.cloudflare.com/#notification-destinations-with-pagerduty-list-pagerduty-services
func (*API)ListPagesDeployments¶added inv0.40.0
func (api *API) ListPagesDeployments(ctxcontext.Context, rc *ResourceContainer, paramsListPagesDeploymentsParams) ([]PagesProjectDeployment, *ResultInfo,error)
ListPagesDeployments returns all deployments for a Pages project.
API reference:https://api.cloudflare.com/#pages-deployment-get-deployments
func (*API)ListPagesProjects¶added inv0.26.0
func (api *API) ListPagesProjects(ctxcontext.Context, rc *ResourceContainer, paramsListPagesProjectsParams) ([]PagesProject,ResultInfo,error)
ListPagesProjects returns all Pages projects for an account.
API reference:https://api.cloudflare.com/#pages-project-get-projects
func (*API)ListPerHostnameAuthenticatedOriginPullsCertificates¶added inv0.17.0
func (api *API) ListPerHostnameAuthenticatedOriginPullsCertificates(ctxcontext.Context, zoneIDstring) ([]PerHostnameAuthenticatedOriginPullsDetails,error)
ListPerHostnameAuthenticatedOriginPullsCertificates will get all certificate under Per Hostname AuthenticatedOriginPulls zone.
API reference:https://api.cloudflare.com/#per-hostname-authenticated-origin-pull-list-certificates
func (*API)ListPerZoneAuthenticatedOriginPullsCertificates¶added inv0.12.2
func (api *API) ListPerZoneAuthenticatedOriginPullsCertificates(ctxcontext.Context, zoneIDstring) ([]PerZoneAuthenticatedOriginPullsCertificateDetails,error)
ListPerZoneAuthenticatedOriginPullsCertificates returns a list of all user uploaded client certificates to Per Zone AuthenticatedOriginPulls.
API reference:https://api.cloudflare.com/#zone-level-authenticated-origin-pulls-list-certificates
func (*API)ListPermissionGroups¶added inv0.53.0
func (api *API) ListPermissionGroups(ctxcontext.Context, rc *ResourceContainer, paramsListPermissionGroupParams) ([]PermissionGroup,error)
ListPermissionGroups returns all valid permission groups for the providedparameters.
func (*API)ListPrefixes¶added inv0.11.7
ListPrefixes lists all IP prefixes for a given account
API reference:https://api.cloudflare.com/#ip-address-management-prefixes-list-prefixes
func (*API)ListQueueConsumers¶added inv0.55.0
func (api *API) ListQueueConsumers(ctxcontext.Context, rc *ResourceContainer, paramsListQueueConsumersParams) ([]QueueConsumer, *ResultInfo,error)
ListQueueConsumers returns the consumers of a queue.
API reference:https://api.cloudflare.com/#queue-list-queue-consumers
func (*API)ListQueues¶added inv0.55.0
func (api *API) ListQueues(ctxcontext.Context, rc *ResourceContainer, paramsListQueuesParams) ([]Queue, *ResultInfo,error)
ListQueues returns the queues owned by an account.
API reference:https://api.cloudflare.com/#queue-list-queues
func (*API)ListR2Buckets¶added inv0.55.0
func (api *API) ListR2Buckets(ctxcontext.Context, rc *ResourceContainer, paramsListR2BucketsParams) ([]R2Bucket,error)
ListR2Buckets Lists R2 buckets.
func (*API)ListRateLimits¶added inv0.8.5
func (api *API) ListRateLimits(ctxcontext.Context, zoneIDstring, pageOptsPaginationOptions) ([]RateLimit,ResultInfo,error)
ListRateLimits returns Rate Limits for a zone, paginated according to the provided options
API reference:https://api.cloudflare.com/#rate-limits-for-a-zone-list-rate-limits
Example¶
api, err := cloudflare.New(apiKey, user)if err != nil {log.Fatal(err)}zoneID, err := api.ZoneIDByName(domain)if err != nil {log.Fatal(err)}pageOpts := cloudflare.PaginationOptions{PerPage: 5,Page: 1,}rateLimits, _, err := api.ListRateLimits(context.Background(), zoneID, pageOpts)if err != nil {log.Fatal(err)}fmt.Printf("%+v\n", rateLimits)for _, r := range rateLimits {fmt.Printf("%+v\n", r)}
func (*API)ListRiskScoreIntegrations¶added inv0.101.0
func (api *API) ListRiskScoreIntegrations(ctxcontext.Context, rc *ResourceContainer, paramsListRiskScoreIntegrationParams) ([]RiskScoreIntegration,error)
ListRiskScoreIntegrations returns all Risk Score Integrations for an account.
API reference:https://developers.cloudflare.com/api/resources/zero_trust/subresources/risk_scoring/subresources/integrations/methods/list/
func (*API)ListRulesets¶added inv0.73.0
func (api *API) ListRulesets(ctxcontext.Context, rc *ResourceContainer, paramsListRulesetsParams) ([]Ruleset,error)
ListRulesets lists all Rulesets in a given zone or account depending on theResourceContainer type provided.
API reference:https://developers.cloudflare.com/api/operations/listAccountRulesetsAPI reference:https://developers.cloudflare.com/api/resources/rulesets/methods/list/
func (*API)ListSSL¶added inv0.7.2
ListSSL lists the custom certificates for the given zone.
API reference:https://api.cloudflare.com/#custom-ssl-for-a-zone-list-ssl-configurations
func (*API)ListSecondaryDNSPrimaries¶added inv0.15.0
func (api *API) ListSecondaryDNSPrimaries(ctxcontext.Context, accountIDstring) ([]SecondaryDNSPrimary,error)
ListSecondaryDNSPrimaries returns all secondary DNS primaries for an account.
API reference:https://api.cloudflare.com/#secondary-dns-primary--list-primaries
func (*API)ListSecondaryDNSTSIGs¶added inv0.15.0
func (api *API) ListSecondaryDNSTSIGs(ctxcontext.Context, accountIDstring) ([]SecondaryDNSTSIG,error)
ListSecondaryDNSTSIGs gets all account level TSIG for a secondary DNSconfiguration.
API reference:https://api.cloudflare.com/#secondary-dns-tsig--list-tsigs
func (*API)ListSplitTunnels¶added inv0.25.0
func (api *API) ListSplitTunnels(ctxcontext.Context, accountIDstring, modestring) ([]SplitTunnel,error)
ListSplitTunnel returns all include or exclude split tunnel within an account.
API reference for include:https://api.cloudflare.com/#device-policy-get-split-tunnel-include-listAPI reference for exclude:https://api.cloudflare.com/#device-policy-get-split-tunnel-exclude-list
func (*API)ListSplitTunnelsDeviceSettingsPolicy¶added inv0.52.0
func (api *API) ListSplitTunnelsDeviceSettingsPolicy(ctxcontext.Context, accountID, policyIDstring, modestring) ([]SplitTunnel,error)
ListSplitTunnelDeviceSettingsPolicy returns all include or exclude split tunnel within a device settings policy
API reference for include:https://api.cloudflare.com/#device-policy-get-split-tunnel-include-listAPI reference for exclude:https://api.cloudflare.com/#device-policy-get-split-tunnel-exclude-list
func (*API)ListTeamsDevices¶added inv0.32.0
ListTeamsDevice returns all devices for a given account.
API reference :https://api.cloudflare.com/#devices-list-devices
func (*API)ListTeamsListItems¶added inv0.53.0
func (api *API) ListTeamsListItems(ctxcontext.Context, rc *ResourceContainer, paramsListTeamsListItemsParams) ([]TeamsListItem,ResultInfo,error)
ListTeamsListItems returns all list items for a list.
API reference:https://api.cloudflare.com/#teams-lists-teams-list-items
func (*API)ListTeamsLists¶added inv0.53.0
func (api *API) ListTeamsLists(ctxcontext.Context, rc *ResourceContainer, paramsListTeamListsParams) ([]TeamsList,ResultInfo,error)
ListTeamsLists returns all lists within an account.
API reference:https://api.cloudflare.com/#teams-lists-list-teams-lists
func (*API)ListTunnelConnections¶added inv0.63.0
func (api *API) ListTunnelConnections(ctxcontext.Context, rc *ResourceContainer, tunnelIDstring) ([]Connection,error)
ListTunnelConnections gets all connections on a tunnel.
API reference:https://api.cloudflare.com/#cloudflare-tunnel-list-cloudflare-tunnel-connections
func (*API)ListTunnelRoutes¶added inv0.37.0
func (api *API) ListTunnelRoutes(ctxcontext.Context, rc *ResourceContainer, paramsTunnelRoutesListParams) ([]TunnelRoute,error)
ListTunnelRoutes lists all defined routes for tunnels in the account.
See:https://api.cloudflare.com/#tunnel-route-list-tunnel-routes
func (*API)ListTunnelVirtualNetworks¶added inv0.41.0
func (api *API) ListTunnelVirtualNetworks(ctxcontext.Context, rc *ResourceContainer, paramsTunnelVirtualNetworksListParams) ([]TunnelVirtualNetwork,error)
ListTunnelVirtualNetworks lists all defined virtual networks for tunnels inthe account.
API reference:https://api.cloudflare.com/#tunnel-virtual-network-list-virtual-networks
func (*API)ListTunnels¶added inv0.63.0
func (api *API) ListTunnels(ctxcontext.Context, rc *ResourceContainer, paramsTunnelListParams) ([]Tunnel, *ResultInfo,error)
ListTunnels lists all tunnels.
API reference:https://api.cloudflare.com/#cloudflare-tunnel-list-cloudflare-tunnels
func (*API)ListTurnstileWidgets¶added inv0.66.0
func (api *API) ListTurnstileWidgets(ctxcontext.Context, rc *ResourceContainer, paramsListTurnstileWidgetParams) ([]TurnstileWidget, *ResultInfo,error)
ListTurnstileWidgets lists challenge widgets.
API reference:https://api.cloudflare.com/#challenge-widgets-list-challenge-widgets
func (*API)ListUserAccessRules¶added inv0.8.1
func (api *API) ListUserAccessRules(ctxcontext.Context, accessRuleAccessRule, pageint) (*AccessRuleListResponse,error)
ListUserAccessRules returns a slice of access rules for the logged-in user.
This takes an AccessRule to allow filtering of the results returned.
API reference:https://api.cloudflare.com/#user-level-firewall-access-rule-list-access-rules
func (*API)ListUserAgentRules¶added inv0.8.0
func (api *API) ListUserAgentRules(ctxcontext.Context, zoneIDstring, pageint) (*UserAgentRuleListResponse,error)
ListUserAgentRules retrieves a list of User-Agent Block rules for a given zone ID by page number.
API reference:https://api.cloudflare.com/#user-agent-blocking-rules-list-useragent-rules
Example (All)¶
package mainimport ("context""fmt""log"cloudflare "github.com/cloudflare/cloudflare-go")func main() {api, err := cloudflare.New("deadbeef", "test@example.org")if err != nil {log.Fatal(err)}zoneID, err := api.ZoneIDByName("example.com")if err != nil {log.Fatal(err)}// Fetch all Zone Lockdown rules for a zone, by page.rules, err := api.ListUserAgentRules(context.Background(), zoneID, 1)if err != nil {log.Fatal(err)}for _, r := range rules.Result {fmt.Printf("%s: %s\n", r.Configuration.Target, r.Configuration.Value)}}
func (*API)ListWAFGroups¶added inv0.10.0
ListWAFGroups returns a slice of the WAF groups for the given WAF package.
API Reference:https://api.cloudflare.com/#waf-rule-groups-list-rule-groups
func (*API)ListWAFOverrides¶added inv0.11.1
ListWAFOverrides returns a slice of the WAF overrides.
API Reference:https://api.cloudflare.com/#waf-overrides-list-uri-controlled-waf-configurations
func (*API)ListWAFPackages¶added inv0.7.2
ListWAFPackages returns a slice of the WAF packages for the given zone.
API Reference:https://api.cloudflare.com/#waf-rule-packages-list-firewall-packages
func (*API)ListWAFRules¶added inv0.7.2
ListWAFRules returns a slice of the WAF rules for the given WAF package.
API Reference:https://api.cloudflare.com/#waf-rules-list-rules
func (*API)ListWaitingRoomEvents¶added inv0.33.0
func (api *API) ListWaitingRoomEvents(ctxcontext.Context, zoneIDstring, waitingRoomIDstring) ([]WaitingRoomEvent,error)
ListWaitingRoomEvents returns all Waiting Room Events for a zone.
API reference:https://api.cloudflare.com/#waiting-room-list-events
func (*API)ListWaitingRoomRules¶added inv0.53.0
func (api *API) ListWaitingRoomRules(ctxcontext.Context, rc *ResourceContainer, paramsListWaitingRoomRuleParams) ([]WaitingRoomRule,error)
ListWaitingRoomRules lists all rules for a Waiting Room.
API reference:https://api.cloudflare.com/#waiting-room-list-waiting-room-rules
func (*API)ListWaitingRooms¶added inv0.17.0
ListWaitingRooms returns all Waiting Room for a zone.
API reference:https://api.cloudflare.com/#waiting-room-list-waiting-rooms
func (*API)ListWeb3Hostnames¶added inv0.45.0
func (api *API) ListWeb3Hostnames(ctxcontext.Context, paramsWeb3HostnameListParameters) ([]Web3Hostname,error)
ListWeb3Hostnames lists all web3 hostnames.
API Reference:https://api.cloudflare.com/#web3-hostname-list-web3-hostnames
func (*API)ListWebAnalyticsRules¶added inv0.75.0
func (api *API) ListWebAnalyticsRules(ctxcontext.Context, rc *ResourceContainer, paramsListWebAnalyticsRulesParams) (*WebAnalyticsRulesetRules,error)
ListWebAnalyticsRules fetches all Web Analytics Rules in a Web Analytics ruleset.
API reference:https://api.cloudflare.com/#web-analytics-list-rules
func (*API)ListWebAnalyticsSites¶added inv0.75.0
func (api *API) ListWebAnalyticsSites(ctxcontext.Context, rc *ResourceContainer, paramsListWebAnalyticsSitesParams) ([]WebAnalyticsSite, *ResultInfo,error)
ListWebAnalyticsSites returns all Web Analytics Sites of an Account.
API reference:https://api.cloudflare.com/#web-analytics-list-sites
func (*API)ListWorkerBindings¶added inv0.10.7
func (api *API) ListWorkerBindings(ctxcontext.Context, rc *ResourceContainer, paramsListWorkerBindingsParams) (WorkerBindingListResponse,error)
ListWorkerBindings returns all the bindings for a particular worker.
func (*API)ListWorkerCronTriggers¶added inv0.13.8
func (api *API) ListWorkerCronTriggers(ctxcontext.Context, rc *ResourceContainer, paramsListWorkerCronTriggersParams) ([]WorkerCronTrigger,error)
ListWorkerCronTriggers fetches all available cron triggers for a single Workerscript.
API reference:https://developers.cloudflare.com/api/resources/workers/subresources/scripts/subresources/schedules/methods/get/
func (*API)ListWorkerRoutes¶added inv0.9.0
func (api *API) ListWorkerRoutes(ctxcontext.Context, rc *ResourceContainer, paramsListWorkerRoutesParams) (WorkerRoutesResponse,error)
ListWorkerRoutes returns list of Worker routes.
API reference:https://developers.cloudflare.com/api/operations/worker-routes-list-routes
func (*API)ListWorkers¶added inv0.57.0
func (api *API) ListWorkers(ctxcontext.Context, rc *ResourceContainer, paramsListWorkersParams) (WorkerListResponse, *ResultInfo,error)
ListWorkers returns list of Workers for given account.
API reference:https://developers.cloudflare.com/api/resources/workers/subresources/scripts/methods/list/
func (*API)ListWorkersDomains¶added inv0.55.0
func (api *API) ListWorkersDomains(ctxcontext.Context, rc *ResourceContainer, paramsListWorkersDomainParams) ([]WorkersDomain,error)
ListWorkersDomains lists all Worker Domains.
API reference:https://developers.cloudflare.com/api/resources/workers/subresources/domains/methods/list/
func (*API)ListWorkersForPlatformsDispatchNamespaces¶added inv0.90.0
func (api *API) ListWorkersForPlatformsDispatchNamespaces(ctxcontext.Context, rc *ResourceContainer) (*ListWorkersForPlatformsDispatchNamespaceResponse,error)
ListWorkersForPlatformsDispatchNamespaces lists the dispatch namespaces.
func (API)ListWorkersKVKeys¶added inv0.55.0
func (apiAPI) ListWorkersKVKeys(ctxcontext.Context, rc *ResourceContainer, paramsListWorkersKVsParams) (ListStorageKeysResponse,error)
ListWorkersKVKeys lists a namespace's keys.
API Reference:https://developers.cloudflare.com/api/resources/kv/subresources/namespaces/subresources/keys/methods/list/
Example¶
api, err := cloudflare.New(apiKey, user)if err != nil {log.Fatal(err)}limit := 50prefix := "my-prefix"cursor := "AArAbNSOuYcr4HmzGH02-cfDN8Ck9ejOwkn_Ai5rsn7S9NEqVJBenU9-gYRlrsziyjKLx48hNDLvtYzBAmkPsLGdye8ECr5PqFYcIOfUITdhkyTc1x6bV8nmyjz5DO-XaZH4kYY1KfqT8NRBIe5sic6yYt3FUDttGjafy0ivi-Up-TkVdRB0OxCf3O3OB-svG6DXheV5XTdDNrNx1o_CVqy2l2j0F4iKV1qFe_KhdkjC7Y6QjhUZ1MOb3J_uznNYVCoxZ-bVAAsJmXA"resp, err := api.ListWorkersKVKeys(context.Background(), cloudflare.AccountIdentifier(accountID), cloudflare.ListWorkersKVsParams{NamespaceID: namespace,Prefix: prefix,Limit: limit,Cursor: cursor,})if err != nil {log.Fatal(err)}fmt.Println(resp)
func (*API)ListWorkersKVNamespaces¶added inv0.9.0
func (api *API) ListWorkersKVNamespaces(ctxcontext.Context, rc *ResourceContainer, paramsListWorkersKVNamespacesParams) ([]WorkersKVNamespace, *ResultInfo,error)
ListWorkersKVNamespaces lists storage namespaces.
API reference:https://developers.cloudflare.com/api/resources/kv/subresources/namespaces/methods/list/
Example¶
api, err := cloudflare.New(apiKey, user)if err != nil {log.Fatal(err)}lsr, _, err := api.ListWorkersKVNamespaces(context.Background(), cloudflare.AccountIdentifier(accountID), cloudflare.ListWorkersKVNamespacesParams{})if err != nil {log.Fatal(err)}fmt.Println(lsr)resp, _, err := api.ListWorkersKVNamespaces(context.Background(), cloudflare.AccountIdentifier(accountID), cloudflare.ListWorkersKVNamespacesParams{ResultInfo: cloudflare.ResultInfo{PerPage: 10,}})if err != nil {log.Fatal(err)}fmt.Println(resp)
func (*API)ListWorkersSecrets¶added inv0.13.1
func (api *API) ListWorkersSecrets(ctxcontext.Context, rc *ResourceContainer, paramsListWorkersSecretsParams) (WorkersListSecretsResponse,error)
ListWorkersSecrets lists secrets for a given workerAPI reference:https://api.cloudflare.com/
func (*API)ListWorkersTail¶added inv0.47.0
func (api *API) ListWorkersTail(ctxcontext.Context, rc *ResourceContainer, paramsListWorkersTailParameters) (WorkersTail,error)
ListWorkersTail Get list of tails currently deployed on a Worker.
API reference:https://developers.cloudflare.com/api/resources/workers/subresources/scripts/subresources/tail/methods/get/
func (*API)ListZarazConfigHistory¶added inv0.86.0
func (api *API) ListZarazConfigHistory(ctxcontext.Context, rc *ResourceContainer, paramsListZarazConfigHistoryParams) ([]ZarazHistoryRecord, *ResultInfo,error)
func (*API)ListZoneAccessRules¶added inv0.8.1
func (api *API) ListZoneAccessRules(ctxcontext.Context, zoneIDstring, accessRuleAccessRule, pageint) (*AccessRuleListResponse,error)
ListZoneAccessRules returns a slice of access rules for the given zoneidentifier.
This takes an AccessRule to allow filtering of the results returned.
API reference:https://api.cloudflare.com/#firewall-access-rule-for-a-zone-list-access-rules
Example (All)¶
package mainimport ("context""fmt""log"cloudflare "github.com/cloudflare/cloudflare-go")func main() {api, err := cloudflare.New("deadbeef", "test@example.org")if err != nil {log.Fatal(err)}zoneID, err := api.ZoneIDByName("example.com")if err != nil {log.Fatal(err)}// Fetch all access rules for a zoneresponse, err := api.ListZoneAccessRules(context.Background(), zoneID, cloudflare.AccessRule{}, 1)if err != nil {log.Fatal(err)}for _, r := range response.Result {fmt.Printf("%s: %s\n", r.Configuration.Value, r.Mode)}}
Example (FilterByIP)¶
package mainimport ("context""fmt""log"cloudflare "github.com/cloudflare/cloudflare-go")func main() {api, err := cloudflare.New("deadbeef", "test@example.org")if err != nil {log.Fatal(err)}zoneID, err := api.ZoneIDByName("example.com")if err != nil {log.Fatal(err)}// Fetch only access rules whose target is 198.51.100.1localhost := cloudflare.AccessRule{Configuration: cloudflare.AccessRuleConfiguration{Target: "198.51.100.1"},}response, err := api.ListZoneAccessRules(context.Background(), zoneID, localhost, 1)if err != nil {log.Fatal(err)}for _, r := range response.Result {fmt.Printf("%s: %s\n", r.Configuration.Value, r.Mode)}}
Example (FilterByMode)¶
package mainimport ("context""fmt""log"cloudflare "github.com/cloudflare/cloudflare-go")func main() {api, err := cloudflare.New("deadbeef", "test@example.org")if err != nil {log.Fatal(err)}zoneID, err := api.ZoneIDByName("example.com")if err != nil {log.Fatal(err)}// Fetch access rules with an action of "block"foo := cloudflare.AccessRule{Mode: "block",}response, err := api.ListZoneAccessRules(context.Background(), zoneID, foo, 1)if err != nil {log.Fatal(err)}for _, r := range response.Result {fmt.Printf("%s: %s\n", r.Configuration.Value, r.Mode)}}
Example (FilterByNote)¶
package mainimport ("context""fmt""log"cloudflare "github.com/cloudflare/cloudflare-go")func main() {api, err := cloudflare.New("deadbeef", "test@example.org")if err != nil {log.Fatal(err)}zoneID, err := api.ZoneIDByName("example.com")if err != nil {log.Fatal(err)}// Fetch only access rules with notes containing "example"foo := cloudflare.AccessRule{Notes: "example",}response, err := api.ListZoneAccessRules(context.Background(), zoneID, foo, 1)if err != nil {log.Fatal(err)}for _, r := range response.Result {fmt.Printf("%s: %s\n", r.Configuration.Value, r.Mode)}}
func (*API)ListZoneCloudConnectorRules¶added inv0.100.0
func (api *API) ListZoneCloudConnectorRules(ctxcontext.Context, rc *ResourceContainer) ([]CloudConnectorRule,error)
func (*API)ListZoneLockdowns¶added inv0.8.0
func (api *API) ListZoneLockdowns(ctxcontext.Context, rc *ResourceContainer, paramsLockdownListParams) ([]ZoneLockdown, *ResultInfo,error)
ListZoneLockdowns retrieves every Zone ZoneLockdown rules for a given zone ID.
Automatically paginates all results unless `params.PerPage` and `params.Page`is set.
API reference:https://api.cloudflare.com/#zone-ZoneLockdown-list-ZoneLockdown-rules
Example (All)¶
package mainimport ("context""fmt""log""strings"cloudflare "github.com/cloudflare/cloudflare-go")func main() {api, err := cloudflare.New("deadbeef", "test@example.org")if err != nil {log.Fatal(err)}zoneID, err := api.ZoneIDByName("example.com")if err != nil {log.Fatal(err)}// Fetch all Zone Lockdown rules for a zone, by page.rules, _, err := api.ListZoneLockdowns(context.Background(), cloudflare.ZoneIdentifier(zoneID), cloudflare.LockdownListParams{})if err != nil {log.Fatal(err)}for _, r := range rules {fmt.Printf("%s: %s\n", strings.Join(r.URLs, ", "), r.Configurations)}}
func (*API)ListZoneManagedHeaders¶added inv0.42.0
func (api *API) ListZoneManagedHeaders(ctxcontext.Context, rc *ResourceContainer, paramsListManagedHeadersParams) (ManagedHeaders,error)
func (*API)ListZoneSnippets¶added inv0.108.0
func (*API)ListZoneSnippetsRules¶added inv0.108.0
func (api *API) ListZoneSnippetsRules(ctxcontext.Context, rc *ResourceContainer) ([]SnippetRule,error)
func (*API)ListZones¶added inv0.7.2
ListZones lists zones on an account. Optionally takes a list of zone namesto filter against.
API reference:https://api.cloudflare.com/#zone-list-zones
Example (All)¶
package mainimport ("context""fmt""log"cloudflare "github.com/cloudflare/cloudflare-go")func main() {api, err := cloudflare.New("deadbeef", "test@example.org")if err != nil {log.Fatal(err)}// Fetch all zones available to this user.zones, err := api.ListZones(context.Background())if err != nil {log.Fatal(err)}for _, z := range zones {fmt.Println(z.Name)}}
Example (Filter)¶
package mainimport ("context""fmt""log"cloudflare "github.com/cloudflare/cloudflare-go")func main() {api, err := cloudflare.New("deadbeef", "test@example.org")if err != nil {log.Fatal(err)}// Fetch a slice of zones example.org and example.net.zones, err := api.ListZones(context.Background(), "example.org", "example.net")if err != nil {log.Fatal(err)}for _, z := range zones {fmt.Println(z.Name)}}
func (*API)ListZonesContext¶added inv0.9.0
ListZonesContext lists all zones on an account automatically handling thepagination. Optionally takes a list of ReqOptions.
func (*API)PageRule¶added inv0.7.2
PageRule fetches detail about one Page Rule for a zone.
API reference:https://api.cloudflare.com/#page-rules-for-a-zone-page-rule-details
Example¶
api, err := cloudflare.New(apiKey, user)if err != nil {log.Fatal(err)}zoneID, err := api.ZoneIDByName(domain)if err != nil {log.Fatal(err)}pageRules, err := api.PageRule(context.Background(), zoneID, "my_page_rule_id")if err != nil {log.Fatal(err)}fmt.Printf("%+v\n", pageRules)
func (*API)PagesAddDomain¶added inv0.44.0
func (api *API) PagesAddDomain(ctxcontext.Context, paramsPagesDomainParameters) (PagesDomain,error)
PagesAddDomain adds a domain to a pages project.
API Reference:https://api.cloudflare.com/#pages-domains-add-domain
func (*API)PagesDeleteDomain¶added inv0.44.0
func (api *API) PagesDeleteDomain(ctxcontext.Context, paramsPagesDomainParameters)error
PagesDeleteDomain removes a domain from a pages project.
API Reference:https://api.cloudflare.com/#pages-domains-delete-domain
func (*API)PagesPatchDomain¶added inv0.44.0
func (api *API) PagesPatchDomain(ctxcontext.Context, paramsPagesDomainParameters) (PagesDomain,error)
PagesPatchDomain retries the validation status of a single domain.
API Reference:https://api.cloudflare.com/#pages-domains-patch-domain
func (*API)PatchTeamsList¶added inv0.17.0
func (api *API) PatchTeamsList(ctxcontext.Context, rc *ResourceContainer, listPatchPatchTeamsListParams) (TeamsList,error)
PatchTeamsList updates the items in an existing teams list.
API reference:https://api.cloudflare.com/#teams-lists-patch-teams-list
func (*API)PatchWaitingRoomSettings¶added inv0.67.0
func (api *API) PatchWaitingRoomSettings(ctxcontext.Context, rc *ResourceContainer, paramsPatchWaitingRoomSettingsParams) (WaitingRoomSettings,error)
PatchWaitingRoomSettings lets you change individual zone-level Waiting Room settings. This isin contrast to UpdateWaitingRoomSettings which replaces all settings.
API reference:https://api.cloudflare.com/#waiting-room-patch-zone-settings
func (*API)PerformTraceroute¶added inv0.13.1
func (api *API) PerformTraceroute(ctxcontext.Context, accountIDstring, targets, colos []string, tracerouteOptionsDiagnosticsTracerouteConfigurationOptions) ([]DiagnosticsTracerouteResponseResult,error)
PerformTraceroute initiates a traceroute from the Cloudflare network to therequested targets.
API documentation:https://api.cloudflare.com/#diagnostics-traceroute
func (*API)PublishZarazConfig¶added inv0.86.0
func (api *API) PublishZarazConfig(ctxcontext.Context, rc *ResourceContainer, paramsPublishZarazConfigParams) (ZarazPublishResponse,error)
func (*API)PurgeCache¶added inv0.7.2
func (api *API) PurgeCache(ctxcontext.Context, zoneIDstring, pcrPurgeCacheRequest) (PurgeCacheResponse,error)
PurgeCache purges the cache using the given PurgeCacheRequest (zone/url/tag).
API reference:https://api.cloudflare.com/#zone-purge-individual-files-by-url-and-cache-tags
func (*API)PurgeCacheContext¶added inv0.13.1
func (api *API) PurgeCacheContext(ctxcontext.Context, zoneIDstring, pcrPurgeCacheRequest) (PurgeCacheResponse,error)
PurgeCacheContext purges the cache using the given PurgeCacheRequest (zone/url/tag).
API reference:https://api.cloudflare.com/#zone-purge-individual-files-by-url-and-cache-tags
func (*API)PurgeEverything¶added inv0.7.2
PurgeEverything purges the cache for the given zone.
Note: this will substantially increase load on the origin server for thatzone if there is a high cached vs. uncached request ratio.
API reference:https://api.cloudflare.com/#zone-purge-all-files
func (*API)QueryD1Database¶added inv0.79.0
func (api *API) QueryD1Database(ctxcontext.Context, rc *ResourceContainer, paramsQueryD1DatabaseParams) ([]D1Result,error)
QueryD1Database queries a database for an account.
API reference:https://developers.cloudflare.com/api/resources/d1/subresources/database/methods/query/
func (*API)RateLimit¶added inv0.8.5
RateLimit fetches detail about one Rate Limit for a zone.
API reference:https://api.cloudflare.com/#rate-limits-for-a-zone-rate-limit-details
Example¶
api, err := cloudflare.New(apiKey, user)if err != nil {log.Fatal(err)}zoneID, err := api.ZoneIDByName(domain)if err != nil {log.Fatal(err)}rateLimits, err := api.RateLimit(context.Background(), zoneID, "my_rate_limit_id")if err != nil {log.Fatal(err)}fmt.Printf("%+v\n", rateLimits)
func (*API)Raw¶added inv0.8.0
func (api *API) Raw(ctxcontext.Context, method, endpointstring, data interface{}, headershttp.Header) (RawResponse,error)
Raw makes a HTTP request with user provided params and returns theresult as a RawResponse, which contains the untouched JSON result.
func (*API)RefreshAccessServiceToken¶added inv0.49.0
func (api *API) RefreshAccessServiceToken(ctxcontext.Context, rc *ResourceContainer, idstring) (AccessServiceTokenRefreshResponse,error)
RefreshAccessServiceToken updates the expiry of an Access Service Tokenin place.
API reference:https://api.cloudflare.com/#access-service-tokens-refresh-a-service-token
func (*API)RegistrarDomain¶added inv0.9.0
func (api *API) RegistrarDomain(ctxcontext.Context, accountID, domainNamestring) (RegistrarDomain,error)
RegistrarDomain returns a single domain based on the account ID anddomain name.
API reference:https://api.cloudflare.com/#registrar-domains-get-domain
Example¶
api, err := cloudflare.New(apiKey, user)if err != nil {log.Fatal(err)}domain, err := api.RegistrarDomain(context.Background(), "01a7362d577a6c3019a474fd6f485823", "cloudflare.com")if err != nil {log.Fatal(err)}if err != nil {log.Fatal(err)}fmt.Printf("%+v\n", domain)
func (*API)RegistrarDomains¶added inv0.9.0
RegistrarDomains returns all registrar domains based on the accountID.
API reference:https://api.cloudflare.com/#registrar-domains-list-domains
Example¶
api, err := cloudflare.New(apiKey, user)if err != nil {log.Fatal(err)}domains, err := api.RegistrarDomains(context.Background(), "01a7362d577a6c3019a474fd6f485823")if err != nil {log.Fatal(err)}fmt.Printf("%+v\n", domains)
func (*API)ReplaceIPListItemsdeprecatedadded inv0.13.0
func (api *API) ReplaceIPListItems(ctxcontext.Context, accountID, IDstring, items []IPListItemCreateRequest) ([]IPListItem,error)
ReplaceIPListItems replaces all IP List Items synchronously and returns thecurrent set of IP List Items.
Deprecated: Use `ReplaceListItems` instead.
func (*API)ReplaceIPListItemsAsyncdeprecatedadded inv0.13.0
func (api *API) ReplaceIPListItemsAsync(ctxcontext.Context, accountID, IDstring, items []IPListItemCreateRequest) (IPListItemCreateResponse,error)
ReplaceIPListItemsAsync replaces all IP List Items asynchronously. Users haveto poll the operation status by using the operation_id returned by thisfunction.
API reference:https://api.cloudflare.com/#rules-lists-replace-list-items
Deprecated: Use `ReplaceListItemsAsync` instead.
func (*API)ReplaceListItems¶added inv0.41.0
func (api *API) ReplaceListItems(ctxcontext.Context, rc *ResourceContainer, paramsListReplaceItemsParams) ([]ListItem,error)
ReplaceListItems replaces all List Items synchronously and returns thecurrent set of List Items.
func (*API)ReplaceListItemsAsync¶added inv0.41.0
func (api *API) ReplaceListItemsAsync(ctxcontext.Context, rc *ResourceContainer, paramsListReplaceItemsParams) (ListItemCreateResponse,error)
ReplaceListItemsAsync replaces all List Items asynchronously. Users have topoll the operation status by using the operation_id returned by thisfunction.
API reference:https://api.cloudflare.com/#rules-lists-replace-list-items
func (*API)ReplaceWaitingRoomRules¶added inv0.53.0
func (api *API) ReplaceWaitingRoomRules(ctxcontext.Context, rc *ResourceContainer, paramsReplaceWaitingRoomRuleParams) ([]WaitingRoomRule,error)
ReplaceWaitingRoomRules replaces all rules for a Waiting Room.
API reference:https://api.cloudflare.com/#waiting-room-replace-waiting-room-rules
func (*API)ReprioritizeSSL¶added inv0.7.2
func (api *API) ReprioritizeSSL(ctxcontext.Context, zoneIDstring, p []ZoneCustomSSLPriority) ([]ZoneCustomSSL,error)
ReprioritizeSSL allows you to change the priority (which is served for a givenrequest) of custom SSL certificates associated with the given zone.
API reference:https://api.cloudflare.com/#custom-ssl-for-a-zone-re-prioritize-ssl-certificates
func (*API)RestartCertificateValidation¶added inv0.47.0
func (api *API) RestartCertificateValidation(ctxcontext.Context, zoneID, certificateIDstring) (CertificatePack,error)
RestartCertificateValidation kicks off the validation process for apending certificate pack.
API Reference:https://api.cloudflare.com/#certificate-packs-restart-validation-for-advanced-certificate-manager-certificate-pack
func (*API)RestoreFallbackDomainDefaults¶added inv0.31.0
RestoreFallbackDomainDefaultsDeviceSettingsPolicy resets the domain fallback values to the defaultlist for a specific device settings policy.
API reference: TBA.
func (*API)RestoreFallbackDomainDefaultsDeviceSettingsPolicy¶added inv0.52.0
func (api *API) RestoreFallbackDomainDefaultsDeviceSettingsPolicy(ctxcontext.Context, accountID, policyIDstring)error
RestoreFallbackDomainDefaults resets the domain fallback values to the defaultlist.
API reference: TBA.
func (*API)RetryPagesDeployment¶added inv0.40.0
func (api *API) RetryPagesDeployment(ctxcontext.Context, rc *ResourceContainer, projectName, deploymentIDstring) (PagesProjectDeployment,error)
RetryPagesDeployment retries a specific Pages deployment.
API reference:https://api.cloudflare.com/#pages-deployment-retry-deployment
func (*API)RevokeAccessApplicationTokens¶added inv0.9.0
func (api *API) RevokeAccessApplicationTokens(ctxcontext.Context, rc *ResourceContainer, applicationIDstring)error
RevokeAccessApplicationTokens revokes tokens associated with anaccess application.
Account API reference:https://developers.cloudflare.com/api/operations/access-applications-revoke-service-tokensZone API reference:https://developers.cloudflare.com/api/operations/zone-level-access-applications-revoke-service-tokens
func (*API)RevokeAccessUserTokens¶added inv0.31.0
func (api *API) RevokeAccessUserTokens(ctxcontext.Context, rc *ResourceContainer, paramsRevokeAccessUserTokensParams)error
RevokeAccessUserTokens revokes any outstanding tokens issued for a specific userAccess User.
func (*API)RevokeOriginCACertificate¶added inv0.58.0
func (api *API) RevokeOriginCACertificate(ctxcontext.Context, certificateIDstring) (*OriginCACertificateID,error)
RevokeOriginCACertificate revokes a created certificate for a zone.
API reference:https://api.cloudflare.com/#cloudflare-ca-revoke-certificate
func (*API)RevokeTeamsDevices¶added inv0.32.0
func (api *API) RevokeTeamsDevices(ctxcontext.Context, accountIDstring, deviceIds []string) (Response,error)
RevokeTeamsDevice revokes device with given identifiers.
API reference :https://api.cloudflare.com/#devices-revoke-devices
func (*API)RollAPIToken¶added inv0.13.5
RollAPIToken rolls the credential associated with the token.
API reference:https://api.cloudflare.com/#user-api-tokens-roll-token
func (*API)RollbackPagesDeployment¶added inv0.40.0
func (api *API) RollbackPagesDeployment(ctxcontext.Context, rc *ResourceContainer, projectName, deploymentIDstring) (PagesProjectDeployment,error)
RollbackPagesDeployment rollbacks the Pages production deployment to a previous production deployment.
API reference:https://api.cloudflare.com/#pages-deployment-rollback-deployment
func (*API)RotateAccessKeys¶added inv0.23.0
RotateAccessKeys rotates the Access Keys for an account and returns the updated Access Keys Configuration
API reference:https://api.cloudflare.com/#access-keys-configuration-rotate-access-keys
func (*API)RotateAccessServiceToken¶added inv0.54.0
func (api *API) RotateAccessServiceToken(ctxcontext.Context, rc *ResourceContainer, idstring) (AccessServiceTokenRotateResponse,error)
RotateAccessServiceToken rotates the client secret of an Access ServiceToken in place.API reference:https://api.cloudflare.com/#access-service-tokens-rotate-a-service-token
func (*API)RotateTurnstileWidget¶added inv0.66.0
func (api *API) RotateTurnstileWidget(ctxcontext.Context, rc *ResourceContainer, paramRotateTurnstileWidgetParams) (TurnstileWidget,error)
RotateTurnstileWidget generates a new secret key for this widget. Ifinvalidate_immediately is set to false, the previous secret remains valid for2 hours.
Note that secrets cannot be rotated again during the grace period.
API reference:https://api.cloudflare.com/#challenge-widgets-rotate-secret-for-a-challenge-widget
func (*API)SSLDetails¶added inv0.7.2
SSLDetails returns the configuration details for a custom SSL certificate.
API reference:https://api.cloudflare.com/#custom-ssl-for-a-zone-ssl-configuration-details
func (*API)SetAuthType¶added inv0.7.4
SetAuthType sets the authentication method (AuthKeyEmail, AuthToken, or AuthUserService).
func (*API)SetAuthenticatedOriginPullsStatus¶added inv0.12.2
func (api *API) SetAuthenticatedOriginPullsStatus(ctxcontext.Context, zoneIDstring, enablebool) (AuthenticatedOriginPulls,error)
SetAuthenticatedOriginPullsStatus toggles whether global AuthenticatedOriginPulls is enabled for the zone.
API reference:https://api.cloudflare.com/#zone-settings-change-tls-client-auth-setting
func (*API)SetLogpullRetentionFlag¶added inv0.12.0
func (api *API) SetLogpullRetentionFlag(ctxcontext.Context, zoneIDstring, enabledbool) (*LogpullRetentionConfiguration,error)
SetLogpullRetentionFlag updates the retention flag to the defined boolean.
API reference:https://developers.cloudflare.com/logs/logpull-api/enabling-log-retention/
func (*API)SetPerZoneAuthenticatedOriginPullsStatus¶added inv0.12.2
func (api *API) SetPerZoneAuthenticatedOriginPullsStatus(ctxcontext.Context, zoneIDstring, enablebool) (PerZoneAuthenticatedOriginPullsSettings,error)
SetPerZoneAuthenticatedOriginPullsStatus will update whether Per Zone AuthenticatedOriginPulls is enabled for the zone.
API reference:https://api.cloudflare.com/#zone-level-authenticated-origin-pulls-set-enablement-for-zone
func (*API)SetTieredCache¶added inv0.57.1
func (api *API) SetTieredCache(ctxcontext.Context, rc *ResourceContainer, valueTieredCacheType) (TieredCache,error)
SetTieredCache allows you to set a zone's tiered cache topology between the available types.Using the value of TieredCacheOff will disable Tiered Cache entirely.
API Reference:https://api.cloudflare.com/#smart-tiered-cache-patch-smart-tiered-cache-settingAPI Reference:https://api.cloudflare.com/#tiered-cache-patch-tiered-cache-setting
func (*API)SetTotalTLS¶added inv0.53.0
func (api *API) SetTotalTLS(ctxcontext.Context, rc *ResourceContainer, paramsTotalTLS) (TotalTLS,error)
SetTotalTLS Set Total TLS Settings or disable the feature for a Zone.
API Reference:https://api.cloudflare.com/#total-tls-enable-or-disable-total-tls
func (*API)SetWorkersSecret¶added inv0.13.1
func (api *API) SetWorkersSecret(ctxcontext.Context, rc *ResourceContainer, paramsSetWorkersSecretParams) (WorkersPutSecretResponse,error)
SetWorkersSecret creates or updates a secret.
API reference:https://api.cloudflare.com/
func (*API)SpectrumApplication¶added inv0.9.0
func (api *API) SpectrumApplication(ctxcontext.Context, zoneIDstring, applicationIDstring) (SpectrumApplication,error)
SpectrumApplication fetches a single Spectrum application based on the ID.
API reference:https://developers.cloudflare.com/spectrum/api-reference/#list-spectrum-applications
func (*API)SpectrumApplications¶added inv0.9.0
func (api *API) SpectrumApplications(ctxcontext.Context, zoneIDstring) ([]SpectrumApplication,error)
SpectrumApplications fetches all of the Spectrum applications for a zone.
API reference:https://developers.cloudflare.com/spectrum/api-reference/#list-spectrum-applications
func (*API)StartWorkersTail¶added inv0.47.0
func (api *API) StartWorkersTail(ctxcontext.Context, rc *ResourceContainer, scriptNamestring) (WorkersTail,error)
StartWorkersTail Starts a tail that receives logs and exception from a Worker.
API reference:https://developers.cloudflare.com/api/resources/workers/subresources/scripts/subresources/tail/methods/create/
func (*API)StreamAssociateNFT¶added inv0.44.0
func (api *API) StreamAssociateNFT(ctxcontext.Context, optionsStreamVideoNFTParameters) (StreamVideo,error)
StreamAssociateNFT associates a video to a token and contract address.
API Reference:https://api.cloudflare.com/#stream-videos-associate-video-to-an-nft
func (*API)StreamCreateSignedURL¶added inv0.44.0
func (api *API) StreamCreateSignedURL(ctxcontext.Context, paramsStreamSignedURLParameters) (string,error)
StreamCreateSignedURL creates a signed URL token for a video.
API Reference:https://api.cloudflare.com/#stream-videos-associate-video-to-an-nft
func (*API)StreamCreateVideoDirectURL¶added inv0.44.0
func (api *API) StreamCreateVideoDirectURL(ctxcontext.Context, paramsStreamCreateVideoParameters) (StreamVideoCreate,error)
StreamCreateVideoDirectURL creates a video and returns an authenticated URL.
API Reference:https://api.cloudflare.com/#stream-videos-create-a-video-and-get-authenticated-direct-upload-url
func (*API)StreamDeleteVideo¶added inv0.44.0
func (api *API) StreamDeleteVideo(ctxcontext.Context, optionsStreamParameters)error
StreamDeleteVideo deletes a video.
API Reference:https://api.cloudflare.com/#stream-videos-delete-video
func (*API)StreamEmbedHTML¶added inv0.44.0
StreamEmbedHTML gets an HTML fragment to embed on a web page.
API Reference:https://api.cloudflare.com/#stream-videos-embed-code-html
func (*API)StreamGetVideo¶added inv0.44.0
func (api *API) StreamGetVideo(ctxcontext.Context, optionsStreamParameters) (StreamVideo,error)
StreamGetVideo gets the details for a specific video.
API Reference:https://api.cloudflare.com/#stream-videos-video-details
func (*API)StreamInitiateTUSVideoUpload¶added inv0.77.0
func (api *API) StreamInitiateTUSVideoUpload(ctxcontext.Context, rc *ResourceContainer, paramsStreamInitiateTUSUploadParameters) (StreamInitiateTUSUploadResponse,error)
StreamInitiateTUSVideoUpload generates a direct upload TUS url for a video.
API Reference:https://developers.cloudflare.com/api/resources/stream/methods/create/
func (*API)StreamListVideos¶added inv0.44.0
func (api *API) StreamListVideos(ctxcontext.Context, paramsStreamListParameters) ([]StreamVideo,error)
StreamListVideos list videos currently in stream.
API reference:https://api.cloudflare.com/#stream-videos-list-videos
func (*API)StreamUploadFromURL¶added inv0.44.0
func (api *API) StreamUploadFromURL(ctxcontext.Context, paramsStreamUploadFromURLParameters) (StreamVideo,error)
StreamUploadFromURL send a video URL to it will be downloaded and made available on Stream.
API Reference:https://api.cloudflare.com/#stream-videos-upload-a-video-from-a-url
func (*API)StreamUploadVideoFile¶added inv0.44.0
func (api *API) StreamUploadVideoFile(ctxcontext.Context, paramsStreamUploadFileParameters) (StreamVideo,error)
StreamUploadVideoFile uploads a video from a path to the file.
API Reference:https://api.cloudflare.com/#stream-videos-upload-a-video-using-a-single-http-request
func (*API)TeamsAccount¶added inv0.21.0
TeamsAccount returns teams account information with internal and external ID.
API reference: TBA.
func (*API)TeamsAccountConfiguration¶added inv0.21.0
func (api *API) TeamsAccountConfiguration(ctxcontext.Context, accountIDstring) (TeamsConfiguration,error)
TeamsAccountConfiguration returns teams account configuration.
API reference: TBA.
func (*API)TeamsAccountConnectivityConfiguration¶added inv0.97.0
func (api *API) TeamsAccountConnectivityConfiguration(ctxcontext.Context, accountIDstring) (TeamsConnectivitySettings,error)
TeamsAccountConnectivityConfiguration returns zero trust account connectivity settings.
API reference:https://developers.cloudflare.com/api/resources/zero_trust/subresources/connectivity_settings/methods/get/
func (*API)TeamsAccountConnectivityUpdateConfiguration¶added inv0.97.0
func (api *API) TeamsAccountConnectivityUpdateConfiguration(ctxcontext.Context, accountIDstring, settingsTeamsConnectivitySettings) (TeamsConnectivitySettings,error)
TeamsAccountConnectivityUpdateConfiguration updates zero trust account connectivity settings.
API reference:https://developers.cloudflare.com/api/resources/zero_trust/subresources/connectivity_settings/methods/edit/
func (*API)TeamsAccountDeviceConfiguration¶added inv0.31.0
func (api *API) TeamsAccountDeviceConfiguration(ctxcontext.Context, accountIDstring) (TeamsDeviceSettings,error)
TeamsAccountDeviceConfiguration returns teams account device configuration with udp status.
API reference: TBA.
func (*API)TeamsAccountDeviceUpdateConfiguration¶added inv0.31.0
func (api *API) TeamsAccountDeviceUpdateConfiguration(ctxcontext.Context, accountIDstring, settingsTeamsDeviceSettings) (TeamsDeviceSettings,error)
TeamsAccountDeviceUpdateConfiguration updates teams account device configuration including udp filtering status.
API reference: TBA.
func (*API)TeamsAccountLoggingConfiguration¶added inv0.30.0
func (api *API) TeamsAccountLoggingConfiguration(ctxcontext.Context, accountIDstring) (TeamsLoggingSettings,error)
TeamsAccountLoggingConfiguration returns teams account logging configuration.
API reference: TBA.
func (*API)TeamsAccountUpdateConfiguration¶added inv0.21.0
func (api *API) TeamsAccountUpdateConfiguration(ctxcontext.Context, accountIDstring, configTeamsConfiguration) (TeamsConfiguration,error)
TeamsAccountUpdateConfiguration updates a teams account configuration.
API reference: TBA.
func (*API)TeamsAccountUpdateLoggingConfiguration¶added inv0.30.0
func (api *API) TeamsAccountUpdateLoggingConfiguration(ctxcontext.Context, accountIDstring, configTeamsLoggingSettings) (TeamsLoggingSettings,error)
TeamsAccountUpdateLoggingConfiguration updates the log settings and returns new teams account logging configuration.
API reference: TBA.
func (*API)TeamsActivateCertificate¶added inv0.100.0
func (api *API) TeamsActivateCertificate(ctxcontext.Context, accountIDstring, certificateIdstring) (TeamsCertificate,error)
TeamsActivateCertificate activates a certificate
API reference:https://developers.cloudflare.com/api/resources/zero_trust/subresources/gateway/subresources/certificates/methods/activate/
func (*API)TeamsCertificate¶added inv0.100.0
func (api *API) TeamsCertificate(ctxcontext.Context, accountIDstring, certificateIdstring) (TeamsCertificate,error)
TeamsCertificate returns teams account certificate.
API reference:https://developers.cloudflare.com/api/resources/zero_trust/subresources/gateway/subresources/certificates/methods/get/
func (*API)TeamsCertificates¶added inv0.100.0
TeamsCertificates returns all certificates in an account
API reference:https://developers.cloudflare.com/api/resources/zero_trust/subresources/gateway/subresources/certificates/methods/list/
func (*API)TeamsCreateRule¶added inv0.21.0
func (api *API) TeamsCreateRule(ctxcontext.Context, accountIDstring, ruleTeamsRule) (TeamsRule,error)
TeamsCreateRule creates a rule with wirefilter expression.
API reference:https://api.cloudflare.com/#teams-rules-properties
func (*API)TeamsDeactivateCertificate¶added inv0.100.0
func (api *API) TeamsDeactivateCertificate(ctxcontext.Context, accountIDstring, certificateIdstring) (TeamsCertificate,error)
TeamsDectivateCertificate deactivates a certificate
API reference:https://developers.cloudflare.com/api/resources/zero_trust/subresources/gateway/subresources/certificates/methods/deactivate/
func (*API)TeamsDeleteCertificate¶added inv0.100.0
func (api *API) TeamsDeleteCertificate(ctxcontext.Context, accountIDstring, certificateIdstring)error
TeamsDeleteCertificate deletes a certificate.
API reference:https://developers.cloudflare.com/api/resources/zero_trust/subresources/gateway/subresources/certificates/methods/delete/
func (*API)TeamsDeleteRule¶added inv0.21.0
TeamsDeleteRule deletes a rule.
API reference:https://api.cloudflare.com/#teams-rules-properties
func (*API)TeamsGenerateCertificate¶added inv0.100.0
func (api *API) TeamsGenerateCertificate(ctxcontext.Context, accountIDstring, certificateRequestTeamsCertificateCreateRequest) (TeamsCertificate,error)
TeamsGenerateCertificate generates a new gateway managed certificate
API reference:https://developers.cloudflare.com/api/resources/zero_trust/subresources/gateway/subresources/certificates/methods/create/
func (*API)TeamsLocation¶added inv0.21.0
func (api *API) TeamsLocation(ctxcontext.Context, accountID, locationIDstring) (TeamsLocation,error)
TeamsLocation returns a single location based on the ID.
API reference:https://api.cloudflare.com/#teams-locations-teams-location-details
func (*API)TeamsLocations¶added inv0.21.0
func (api *API) TeamsLocations(ctxcontext.Context, accountIDstring) ([]TeamsLocation,ResultInfo,error)
TeamsLocations returns all locations within an account.
API reference:https://api.cloudflare.com/#teams-locations-list-teams-locations
func (*API)TeamsPatchRule¶added inv0.21.0
func (api *API) TeamsPatchRule(ctxcontext.Context, accountIDstring, ruleIdstring, ruleTeamsRulePatchRequest) (TeamsRule,error)
TeamsPatchRule patches a rule associated values.
API reference:https://api.cloudflare.com/#teams-rules-properties
func (*API)TeamsProxyEndpoint¶added inv0.35.0
func (api *API) TeamsProxyEndpoint(ctxcontext.Context, accountID, proxyEndpointIDstring) (TeamsProxyEndpoint,error)
TeamsProxyEndpoint returns a single proxy endpoints within an account.
API reference:https://api.cloudflare.com/#zero-trust-gateway-proxy-endpoints-proxy-endpoint-details
func (*API)TeamsProxyEndpoints¶added inv0.35.0
func (api *API) TeamsProxyEndpoints(ctxcontext.Context, accountIDstring) ([]TeamsProxyEndpoint,ResultInfo,error)
TeamsProxyEndpoints returns all proxy endpoints within an account.
API reference:https://api.cloudflare.com/#zero-trust-gateway-proxy-endpoints-list-proxy-endpoints
func (*API)TeamsRule¶added inv0.21.0
TeamsRule returns the rule with rule ID in the URL.
API reference:https://api.cloudflare.com/#teams-rules-properties
func (*API)TeamsRules¶added inv0.21.0
TeamsRules returns all rules within an account.
API reference:https://api.cloudflare.com/#teams-rules-properties
func (*API)TeamsUpdateRule¶added inv0.21.0
func (api *API) TeamsUpdateRule(ctxcontext.Context, accountIDstring, ruleIdstring, ruleTeamsRule) (TeamsRule,error)
TeamsUpdateRule updates a rule with wirefilter expression.
API reference:https://api.cloudflare.com/#teams-rules-properties
func (*API)TransferRegistrarDomain¶added inv0.9.0
func (api *API) TransferRegistrarDomain(ctxcontext.Context, accountID, domainNamestring) ([]RegistrarDomain,error)
TransferRegistrarDomain initiates the transfer from another registrarto Cloudflare Registrar.
API reference:https://api.cloudflare.com/#registrar-domains-transfer-domain
Example¶
api, err := cloudflare.New(apiKey, user)if err != nil {log.Fatal(err)}domain, err := api.TransferRegistrarDomain(context.Background(), "01a7362d577a6c3019a474fd6f485823", "cloudflare.com")if err != nil {log.Fatal(err)}fmt.Printf("%+v\n", domain)
func (*API)URLNormalizationSettings¶added inv0.49.0
func (api *API) URLNormalizationSettings(ctxcontext.Context, rc *ResourceContainer) (URLNormalizationSettings,error)
URLNormalizationSettings API reference:https://api.cloudflare.com/#url-normalization-get-url-normalization-settings
func (*API)UniversalSSLSettingDetails¶added inv0.9.0
func (api *API) UniversalSSLSettingDetails(ctxcontext.Context, zoneIDstring) (UniversalSSLSetting,error)
UniversalSSLSettingDetails returns the details for a universal ssl setting
API reference:https://api.cloudflare.com/#universal-ssl-settings-for-a-zone-universal-ssl-settings-details
func (*API)UniversalSSLVerificationDetails¶added inv0.10.0
func (api *API) UniversalSSLVerificationDetails(ctxcontext.Context, zoneIDstring) ([]UniversalSSLVerificationDetails,error)
UniversalSSLVerificationDetails returns the details for a universal ssl verification
API reference:https://api.cloudflare.com/#ssl-verification-ssl-verification-details
func (*API)UpdateAPIShieldConfiguration¶added inv0.49.0
func (api *API) UpdateAPIShieldConfiguration(ctxcontext.Context, rc *ResourceContainer, paramsUpdateAPIShieldParams) (Response,error)
UpdateAPIShieldConfiguration sets a zone API shield configuration.
API documentation:https://api.cloudflare.com/#api-shield-settings-set-configuration-properties
func (*API)UpdateAPIShieldDiscoveryOperation¶added inv0.79.0
func (api *API) UpdateAPIShieldDiscoveryOperation(ctxcontext.Context, rc *ResourceContainer, paramsUpdateAPIShieldDiscoveryOperationParams) (*UpdateAPIShieldDiscoveryOperation,error)
UpdateAPIShieldDiscoveryOperation updates certain fields on a discovered operation.
API Documentation:https://developers.cloudflare.com/api/resources/api_gateway/subresources/discovery/subresources/operations/methods/edit/
func (*API)UpdateAPIShieldDiscoveryOperations¶added inv0.79.0
func (api *API) UpdateAPIShieldDiscoveryOperations(ctxcontext.Context, rc *ResourceContainer, paramsUpdateAPIShieldDiscoveryOperationsParams) (*UpdateAPIShieldDiscoveryOperationsParams,error)
UpdateAPIShieldDiscoveryOperations bulk updates certain fields on multiple discovered operations
API documentation:https://developers.cloudflare.com/api/resources/api_gateway/subresources/discovery/subresources/operations/methods/bulk_edit/
func (*API)UpdateAPIShieldOperationSchemaValidationSettings¶added inv0.80.0
func (api *API) UpdateAPIShieldOperationSchemaValidationSettings(ctxcontext.Context, rc *ResourceContainer, paramsUpdateAPIShieldOperationSchemaValidationSettings) (*UpdateAPIShieldOperationSchemaValidationSettings,error)
UpdateAPIShieldOperationSchemaValidationSettings update multiple operation level schema validation settings
API documentation:https://developers.cloudflare.com/api/resources/api_gateway/subresources/operations/subresources/schema_validation/methods/edit/
func (*API)UpdateAPIShieldSchema¶added inv0.79.0
func (api *API) UpdateAPIShieldSchema(ctxcontext.Context, rc *ResourceContainer, paramsUpdateAPIShieldSchemaParams) (*APIShieldSchema,error)
UpdateAPIShieldSchema updates certain fields on an existing schema.
API documentation:https://developers.cloudflare.com/api/resources/api_gateway/subresources/user_schemas/methods/edit/
func (*API)UpdateAPIShieldSchemaValidationSettings¶added inv0.80.0
func (api *API) UpdateAPIShieldSchemaValidationSettings(ctxcontext.Context, rc *ResourceContainer, paramsUpdateAPIShieldSchemaValidationSettingsParams) (*APIShieldSchemaValidationSettings,error)
UpdateAPIShieldSchemaValidationSettings updates certain fields on zone level schema validation settings
API documentation:https://developers.cloudflare.com/api/resources/api_gateway/subresources/settings/subresources/schema_validation/methods/edit/
func (*API)UpdateAPIToken¶added inv0.13.5
UpdateAPIToken updates an existing API token.
API reference:https://api.cloudflare.com/#user-api-tokens-update-token
func (*API)UpdateAccessApplication¶added inv0.9.0
func (api *API) UpdateAccessApplication(ctxcontext.Context, rc *ResourceContainer, paramsUpdateAccessApplicationParams) (AccessApplication,error)
UpdateAccessApplication updates an existing access application.
Account API reference:https://developers.cloudflare.com/api/operations/access-applications-update-a-bookmark-applicationZone API reference:https://developers.cloudflare.com/api/operations/zone-level-access-applications-update-a-bookmark-application
func (*API)UpdateAccessBookmark¶added inv0.36.0
func (api *API) UpdateAccessBookmark(ctxcontext.Context, accountIDstring, accessBookmarkAccessBookmark) (AccessBookmark,error)
UpdateAccessBookmark updates an existing access bookmark.
API reference:https://api.cloudflare.com/#access-bookmarks-update-access-bookmark
func (*API)UpdateAccessCustomPage¶added inv0.74.0
func (api *API) UpdateAccessCustomPage(ctxcontext.Context, rc *ResourceContainer, paramsUpdateAccessCustomPageParams) (AccessCustomPage,error)
func (*API)UpdateAccessGroup¶added inv0.10.5
func (api *API) UpdateAccessGroup(ctxcontext.Context, rc *ResourceContainer, paramsUpdateAccessGroupParams) (AccessGroup,error)
UpdateAccessGroup updates an existing access group.
Account API Reference:https://developers.cloudflare.com/api/operations/access-groups-update-an-access-groupZone API Reference:https://developers.cloudflare.com/api/operations/zone-level-access-groups-update-an-access-group
func (*API)UpdateAccessIdentityProvider¶added inv0.10.1
func (api *API) UpdateAccessIdentityProvider(ctxcontext.Context, rc *ResourceContainer, paramsUpdateAccessIdentityProviderParams) (AccessIdentityProvider,error)
UpdateAccessIdentityProvider updates an existing Access IdentityProvider.
Account API Reference:https://developers.cloudflare.com/api/operations/access-identity-providers-update-an-access-identity-providerZone API Reference:https://developers.cloudflare.com/api/operations/zone-level-access-identity-providers-update-an-access-identity-provider
func (*API)UpdateAccessIdentityProviderAuthContexts¶added inv0.75.0
func (api *API) UpdateAccessIdentityProviderAuthContexts(ctxcontext.Context, rc *ResourceContainer, identityProviderIDstring) (AccessIdentityProvider,error)
UpdateAccessIdentityProviderAuthContexts updates an existing Access IdentityProvider.AzureAD onlyAccount API Reference:https://developers.cloudflare.com/api/operations/access-identity-providers-refresh-an-access-identity-provider-auth-contextsZone API Reference:https://developers.cloudflare.com/api/operations/zone-level-access-identity-providers-update-an-access-identity-provider
func (*API)UpdateAccessKeysConfig¶added inv0.23.0
func (api *API) UpdateAccessKeysConfig(ctxcontext.Context, accountIDstring, requestAccessKeysConfigUpdateRequest) (AccessKeysConfig,error)
UpdateAccessKeysConfig updates the Access Keys Configuration for an account.
API reference:https://api.cloudflare.com/#access-keys-configuration-update-access-keys-configuration
func (*API)UpdateAccessMutualTLSCertificate¶added inv0.13.8
func (api *API) UpdateAccessMutualTLSCertificate(ctxcontext.Context, rc *ResourceContainer, paramsUpdateAccessMutualTLSCertificateParams) (AccessMutualTLSCertificate,error)
UpdateAccessMutualTLSCertificate updates an account level Access TLS Mutualcertificate.
Account API Reference:https://developers.cloudflare.com/api/operations/access-mtls-authentication-update-an-mtls-certificateZone API Reference:https://developers.cloudflare.com/api/operations/zone-level-access-mtls-authentication-update-an-mtls-certificate
func (*API)UpdateAccessMutualTLSHostnameSettings¶added inv0.90.0
func (api *API) UpdateAccessMutualTLSHostnameSettings(ctxcontext.Context, rc *ResourceContainer, paramsUpdateAccessMutualTLSHostnameSettingsParams) ([]AccessMutualTLSHostnameSettings,error)
UpdateAccessMutualTLSHostnameSettings updates Access mTLS certificate hostname settings.
Account API Reference:https://developers.cloudflare.com/api/operations/access-mtls-authentication-update-an-mtls-certificate-settingsZone API Reference:https://developers.cloudflare.com/api/operations/zone-level-access-mtls-authentication-update-an-mtls-certificate-settings
func (*API)UpdateAccessOrganization¶added inv0.10.1
func (api *API) UpdateAccessOrganization(ctxcontext.Context, rc *ResourceContainer, paramsUpdateAccessOrganizationParams) (AccessOrganization,error)
UpdateAccessOrganization updates the Access organisation details.
Account API reference:https://api.cloudflare.com/#access-organizations-update-access-organizationZone API reference:https://api.cloudflare.com/#zone-level-access-organizations-update-access-organization
func (*API)UpdateAccessPolicy¶added inv0.9.0
func (api *API) UpdateAccessPolicy(ctxcontext.Context, rc *ResourceContainer, paramsUpdateAccessPolicyParams) (AccessPolicy,error)
UpdateAccessPolicy updates an existing access policy.
Account API reference:https://developers.cloudflare.com/api/operations/access-policies-update-an-access-policyZone API reference:https://developers.cloudflare.com/api/operations/zone-level-access-policies-update-an-access-policy
func (*API)UpdateAccessServiceToken¶added inv0.10.1
func (api *API) UpdateAccessServiceToken(ctxcontext.Context, rc *ResourceContainer, paramsUpdateAccessServiceTokenParams) (AccessServiceTokenUpdateResponse,error)
func (*API)UpdateAccessUserSeat¶added inv0.81.0
func (api *API) UpdateAccessUserSeat(ctxcontext.Context, rc *ResourceContainer, paramsUpdateAccessUserSeatParams) ([]AccessUpdateAccessUserSeatResult,error)
UpdateAccessUserSeat updates a single Access User Seat.
API documentation:https://developers.cloudflare.com/api/resources/zero_trust/subresources/seats/methods/edit/
func (*API)UpdateAccessUsersSeats¶added inv0.87.0
func (api *API) UpdateAccessUsersSeats(ctxcontext.Context, rc *ResourceContainer, paramsUpdateAccessUsersSeatsParams) ([]AccessUpdateAccessUserSeatResult,error)
UpdateAccessUsersSeats updates many Access User Seats.
API documentation:https://developers.cloudflare.com/api/resources/zero_trust/subresources/seats/methods/edit/
func (*API)UpdateAccount¶added inv0.9.0
UpdateAccount allows management of an account using the account ID.
API reference:https://api.cloudflare.com/#accounts-update-account
func (*API)UpdateAccountAccessRule¶added inv0.10.0
func (api *API) UpdateAccountAccessRule(ctxcontext.Context, accountID, accessRuleIDstring, accessRuleAccessRule) (*AccessRuleResponse,error)
UpdateAccountAccessRule updates a single access rule for the givenaccount & access rule identifiers.
API reference:https://api.cloudflare.com/#account-level-firewall-access-rule-update-access-rule
func (*API)UpdateAccountMember¶added inv0.9.0
func (api *API) UpdateAccountMember(ctxcontext.Context, accountIDstring, userIDstring, memberAccountMember) (AccountMember,error)
UpdateAccountMember modifies an existing account member.
API reference:https://api.cloudflare.com/#account-members-update-member
func (*API)UpdateAddressMap¶added inv0.63.0
func (api *API) UpdateAddressMap(ctxcontext.Context, rc *ResourceContainer, paramsUpdateAddressMapParams) (AddressMap,error)
UpdateAddressMap modifies properties of an address map owned by the account.
API reference:https://developers.cloudflare.com/api/resources/addressing/subresources/address_maps/methods/edit/
func (*API)UpdateAdvertisementStatus¶added inv0.11.7
func (api *API) UpdateAdvertisementStatus(ctxcontext.Context, accountID, IDstring, advertisedbool) (AdvertisementStatus,error)
UpdateAdvertisementStatus changes the BGP status of an IP prefix
API reference:https://api.cloudflare.com/#ip-address-management-prefixes-update-prefix-description
func (*API)UpdateArgoSmartRouting¶added inv0.9.0
func (api *API) UpdateArgoSmartRouting(ctxcontext.Context, zoneID, settingValuestring) (ArgoFeatureSetting,error)
UpdateArgoSmartRouting updates the setting for smart routing.
API reference:https://api.cloudflare.com/#argo-smart-routing-patch-argo-smart-routing-setting
Example¶
package mainimport ("context""fmt""log"cloudflare "github.com/cloudflare/cloudflare-go")func main() {api, err := cloudflare.New("deadbeef", "test@example.org")if err != nil {log.Fatal(err)}smartRoutingSettings, err := api.UpdateArgoSmartRouting(context.Background(), "01a7362d577a6c3019a474fd6f485823", "on")if err != nil {log.Fatal(err)}fmt.Printf("smart routing is %s", smartRoutingSettings.Value)}
func (*API)UpdateArgoTieredCaching¶added inv0.9.0
func (api *API) UpdateArgoTieredCaching(ctxcontext.Context, zoneID, settingValuestring) (ArgoFeatureSetting,error)
UpdateArgoTieredCaching updates the setting for tiered caching.
API reference: TBA.
Example¶
package mainimport ("context""fmt""log"cloudflare "github.com/cloudflare/cloudflare-go")func main() {api, err := cloudflare.New("deadbeef", "test@example.org")if err != nil {log.Fatal(err)}tieredCachingSettings, err := api.UpdateArgoTieredCaching(context.Background(), "01a7362d577a6c3019a474fd6f485823", "on")if err != nil {log.Fatal(err)}fmt.Printf("tiered caching is %s", tieredCachingSettings.Value)}
func (*API)UpdateAuditSSHSettings¶added inv0.79.0
func (api *API) UpdateAuditSSHSettings(ctxcontext.Context, rc *ResourceContainer, paramsUpdateAuditSSHSettingsParams) (AuditSSHSettings,error)
UpdateAuditSSHSettings updates an existing zt audit ssh setting.
API reference:https://api.cloudflare.com/#zero-trust-update-audit-ssh-settings
func (*API)UpdateBehaviors¶added inv0.95.0
func (api *API) UpdateBehaviors(ctxcontext.Context, accountIDstring, behaviorsBehaviors) (Behaviors,error)
UpdateBehaviors returns all zero trust risk scoring behaviors for the provided accountNOTE: description/name updates are no-ops, risk_level [low medium high] and enabledtrue/false results in modifications
API reference:https://developers.cloudflare.com/api/operations/dlp-zt-risk-score-put-behaviors
func (*API)UpdateBotManagement¶added inv0.75.0
func (api *API) UpdateBotManagement(ctxcontext.Context, rc *ResourceContainer, paramsUpdateBotManagementParams) (BotManagement,error)
UpdateBotManagement sets a zone API shield configuration.
API documentation:https://developers.cloudflare.com/api/resources/bot_management/methods/update/
func (*API)UpdateCacheReserve¶added inv0.68.0
func (api *API) UpdateCacheReserve(ctxcontext.Context, rc *ResourceContainer, paramsUpdateCacheReserveParams) (CacheReserve,error)
UpdateCacheReserve updates the cache reserve setting for a zone
API reference:https://developers.cloudflare.com/api/resources/cache/subresources/cache_reserve/methods/edit/
func (*API)UpdateCertificateAuthoritiesHostnameAssociations¶added inv0.112.0
func (api *API) UpdateCertificateAuthoritiesHostnameAssociations(ctxcontext.Context, rc *ResourceContainer, paramsUpdateCertificateAuthoritiesHostnameAssociationsParams) ([]HostnameAssociation,error)
Replace Hostname Associations
API Reference:https://developers.cloudflare.com/api/resources/certificate_authorities/subresources/hostname_associations/methods/update/
func (*API)UpdateCustomHostname¶added inv0.12.0
func (api *API) UpdateCustomHostname(ctxcontext.Context, zoneIDstring, customHostnameIDstring, chCustomHostname) (*CustomHostnameResponse,error)
UpdateCustomHostname modifies configuration for the given customhostname in the given zone.
API reference:https://api.cloudflare.com/#custom-hostname-for-a-zone-update-custom-hostname-configuration
func (*API)UpdateCustomHostnameFallbackOrigin¶added inv0.12.0
func (api *API) UpdateCustomHostnameFallbackOrigin(ctxcontext.Context, zoneIDstring, chfoCustomHostnameFallbackOrigin) (*CustomHostnameFallbackOriginResponse,error)
UpdateCustomHostnameFallbackOrigin modifies the Custom Hostname Fallback origin in the given zone.
API reference:https://api.cloudflare.com/#custom-hostname-fallback-origin-for-a-zone-update-fallback-origin-for-custom-hostnames
func (*API)UpdateCustomHostnameSSL¶added inv0.7.4
func (api *API) UpdateCustomHostnameSSL(ctxcontext.Context, zoneIDstring, customHostnameIDstring, ssl *CustomHostnameSSL) (*CustomHostnameResponse,error)
UpdateCustomHostnameSSL modifies SSL configuration for the given customhostname in the given zone.
API reference:https://api.cloudflare.com/#custom-hostname-for-a-zone-update-custom-hostname-configuration
func (*API)UpdateCustomNameserverZoneMetadata¶added inv0.70.0
func (api *API) UpdateCustomNameserverZoneMetadata(ctxcontext.Context, rc *ResourceContainer, paramsUpdateCustomNameserverZoneMetadataParams)error
UpdateCustomNameserverZoneMetadata set metadata for custom nameservers on a zone.
API documentation:https://developers.cloudflare.com/api/resources/zones/subresources/custom_nameservers/methods/update/
func (*API)UpdateCustomPage¶added inv0.9.0
func (api *API) UpdateCustomPage(ctxcontext.Context, options *CustomPageOptions, customPageIDstring, pageParametersCustomPageParameters) (CustomPage,error)
UpdateCustomPage updates a single custom page setting.
Zone API reference:https://api.cloudflare.com/#custom-pages-for-a-zone-update-custom-page-urlAccount API reference:https://api.cloudflare.com/#custom-pages-account--update-custom-page
func (*API)UpdateDLPDataset¶added inv0.87.0
func (api *API) UpdateDLPDataset(ctxcontext.Context, rc *ResourceContainer, paramsUpdateDLPDatasetParams) (DLPDataset,error)
UpdateDLPDataset updates the details of a DLP dataset.
API reference:https://developers.cloudflare.com/api/resources/zero_trust/subresources/dlp/subresources/datasets/methods/update/
func (*API)UpdateDLPPayloadLogSettings¶added inv0.62.0
func (api *API) UpdateDLPPayloadLogSettings(ctxcontext.Context, rc *ResourceContainer, settingsDLPPayloadLogSettings) (DLPPayloadLogSettings,error)
UpdateDLPPayloadLogSettings sets the current DLP payload logging settings to new values.
API reference:https://api.cloudflare.com/#dlp-payload-log-settings-update-settings
func (*API)UpdateDLPProfile¶added inv0.53.0
func (api *API) UpdateDLPProfile(ctxcontext.Context, rc *ResourceContainer, paramsUpdateDLPProfileParams) (DLPProfile,error)
UpdateDLPProfile updates a DLP profile.
API reference:https://api.cloudflare.com/#dlp-profiles-update-custom-profileAPI reference:https://api.cloudflare.com/#dlp-profiles-update-predefined-profile
func (*API)UpdateDNSFirewallCluster¶added inv0.29.0
func (api *API) UpdateDNSFirewallCluster(ctxcontext.Context, rc *ResourceContainer, paramsUpdateDNSFirewallClusterParams)error
UpdateDNSFirewallCluster updates a DNS Firewall cluster.
API reference:https://api.cloudflare.com/#dns-firewall-update-dns-firewall-cluster
func (*API)UpdateDNSRecord¶added inv0.7.2
func (api *API) UpdateDNSRecord(ctxcontext.Context, rc *ResourceContainer, paramsUpdateDNSRecordParams) (DNSRecord,error)
UpdateDNSRecord updates a single DNS record for the given zone & recordidentifiers.
API reference:https://api.cloudflare.com/#dns-records-for-a-zone-update-dns-record
func (*API)UpdateDataLocalizationRegionalHostname¶added inv0.66.0
func (api *API) UpdateDataLocalizationRegionalHostname(ctxcontext.Context, rc *ResourceContainer, paramsUpdateDataLocalizationRegionalHostnameParams) (RegionalHostname,error)
UpdateDataLocalizationRegionalHostname returns the details of a specific regional hostname.
API reference:https://developers.cloudflare.com/data-localization/regional-services/get-started/#configure-regional-services-via-api
func (*API)UpdateDefaultDeviceSettingsPolicy¶added inv0.52.0
func (api *API) UpdateDefaultDeviceSettingsPolicy(ctxcontext.Context, rc *ResourceContainer, paramsUpdateDefaultDeviceSettingsPolicyParams) (DeviceSettingsPolicy,error)
UpdateDefaultDeviceSettingsPolicy updates the default settings policy for an account
API reference:https://api.cloudflare.com/#devices-update-default-device-settings-policy
func (*API)UpdateDeviceClientCertificates¶added inv0.81.0
func (api *API) UpdateDeviceClientCertificates(ctxcontext.Context, rc *ResourceContainer, paramsUpdateDeviceClientCertificatesParams) (DeviceClientCertificates,error)
UpdateDeviceClientCertificates controls the zero trust zone used to provision client certificates.
API reference:https://api.cloudflare.com/#device-client-certificates
func (*API)UpdateDeviceDexTest¶added inv0.62.0
func (api *API) UpdateDeviceDexTest(ctxcontext.Context, rc *ResourceContainer, paramsUpdateDeviceDexTestParams) (DeviceDexTest,error)
UpdateDeviceDexTest Updates a Device Dex Test.
API reference:https://developers.cloudflare.com/api/resources/zero_trust/subresources/devices/subresources/dex_tests/methods/update/
func (*API)UpdateDeviceManagedNetwork¶added inv0.57.0
func (api *API) UpdateDeviceManagedNetwork(ctxcontext.Context, rc *ResourceContainer, paramsUpdateDeviceManagedNetworkParams) (DeviceManagedNetwork,error)
UpdateDeviceManagedNetwork Update a Device Managed Network.
API reference:https://api.cloudflare.com/#device-managed-networks-update-device-managed-network
func (*API)UpdateDevicePostureIntegration¶added inv0.29.0
func (api *API) UpdateDevicePostureIntegration(ctxcontext.Context, accountIDstring, integrationDevicePostureIntegration) (DevicePostureIntegration,error)
UpdateDevicePostureIntegration updates a device posture integration within an account.
API reference:https://api.cloudflare.com/#device-posture-integrations-update-device-posture-integration
func (*API)UpdateDevicePostureRule¶added inv0.17.0
func (api *API) UpdateDevicePostureRule(ctxcontext.Context, accountIDstring, ruleDevicePostureRule) (DevicePostureRule,error)
UpdateDevicePostureRule updates an existing device posture rule.
API reference:https://api.cloudflare.com/#device-posture-rules-update-device-posture-rule
func (*API)UpdateDeviceSettingsPolicy¶added inv0.52.0
func (api *API) UpdateDeviceSettingsPolicy(ctxcontext.Context, rc *ResourceContainer, paramsUpdateDeviceSettingsPolicyParams) (DeviceSettingsPolicy,error)
UpdateDeviceSettingsPolicy updates a settings policy
API reference:https://api.cloudflare.com/#devices-update-device-settings-policy
func (*API)UpdateEmailRoutingCatchAllRule¶added inv0.47.0
func (api *API) UpdateEmailRoutingCatchAllRule(ctxcontext.Context, rc *ResourceContainer, paramsEmailRoutingCatchAllRule) (EmailRoutingCatchAllRule,error)
UpdateEmailRoutingCatchAllRule Enable or disable catch-all routing rule, or change action to forward to specific destination address.
API reference:https://api.cloudflare.com/#email-routing-routing-rules-update-catch-all-rule
func (*API)UpdateEmailRoutingRule¶added inv0.47.0
func (api *API) UpdateEmailRoutingRule(ctxcontext.Context, rc *ResourceContainer, paramsUpdateEmailRoutingRuleParameters) (EmailRoutingRule,error)
UpdateEmailRoutingRule Update actions, matches, or enable/disable specific routing rules
API reference:https://api.cloudflare.com/#email-routing-routing-rules-update-routing-rule
func (*API)UpdateEntrypointRuleset¶added inv0.73.0
func (api *API) UpdateEntrypointRuleset(ctxcontext.Context, rc *ResourceContainer, paramsUpdateEntrypointRulesetParams) (Ruleset,error)
UpdateEntrypointRuleset updates an entry point ruleset phase based on thephase.
API reference:https://developers.cloudflare.com/api/operations/updateAccountEntrypointRulesetAPI reference:https://developers.cloudflare.com/api/resources/rulesets/subresources/phases/methods/update/
func (*API)UpdateFallbackDomain¶added inv0.29.0
func (api *API) UpdateFallbackDomain(ctxcontext.Context, accountIDstring, domains []FallbackDomain) ([]FallbackDomain,error)
UpdateFallbackDomain updates the existing fallback domain policy.
API reference:https://api.cloudflare.com/#devices-set-local-domain-fallback-list
func (*API)UpdateFallbackDomainDeviceSettingsPolicy¶added inv0.52.0
func (api *API) UpdateFallbackDomainDeviceSettingsPolicy(ctxcontext.Context, accountID, policyIDstring, domains []FallbackDomain) ([]FallbackDomain,error)
UpdateFallbackDomainDeviceSettingsPolicy updates the existing fallback domain policy for a specific device settings policy.
API reference:https://api.cloudflare.com/#devices-set-local-domain-fallback-list
func (*API)UpdateFallbackOrigin¶added inv0.10.1
func (api *API) UpdateFallbackOrigin(ctxcontext.Context, zoneIDstring, fboFallbackOrigin) (*FallbackOriginResponse,error)
UpdateFallbackOrigin updates the fallback origin for a given zone.
API reference:https://developers.cloudflare.com/ssl/ssl-for-saas/api-calls/#4-example-patch-to-change-fallback-origin
func (*API)UpdateFilter¶added inv0.9.0
func (api *API) UpdateFilter(ctxcontext.Context, rc *ResourceContainer, paramsFilterUpdateParams) (Filter,error)
UpdateFilter updates a single filter.
API reference:https://developers.cloudflare.com/firewall/api/cf-filters/put/#update-a-single-filter
func (*API)UpdateFilters¶added inv0.9.0
func (api *API) UpdateFilters(ctxcontext.Context, rc *ResourceContainer, params []FilterUpdateParams) ([]Filter,error)
UpdateFilters updates many filters at once.
API reference:https://developers.cloudflare.com/firewall/api/cf-filters/put/#update-multiple-filters
func (*API)UpdateFirewallRule¶added inv0.9.0
func (api *API) UpdateFirewallRule(ctxcontext.Context, rc *ResourceContainer, paramsFirewallRuleUpdateParams) (FirewallRule,error)
UpdateFirewallRule updates a single firewall rule.
API reference:https://developers.cloudflare.com/firewall/api/cf-firewall-rules/put/#update-a-single-rule
func (*API)UpdateFirewallRules¶added inv0.9.0
func (api *API) UpdateFirewallRules(ctxcontext.Context, rc *ResourceContainer, params []FirewallRuleUpdateParams) ([]FirewallRule,error)
UpdateFirewallRules updates a single firewall rule.
API reference:https://developers.cloudflare.com/firewall/api/cf-firewall-rules/put/#update-multiple-rules
func (*API)UpdateHealthcheck¶added inv0.11.1
func (api *API) UpdateHealthcheck(ctxcontext.Context, zoneIDstring, healthcheckIDstring, healthcheckHealthcheck) (Healthcheck,error)
UpdateHealthcheck updates an existing healthcheck.
API reference:https://api.cloudflare.com/#health-checks-update-health-check
func (*API)UpdateHostnameTLSSetting¶added inv0.75.0
func (api *API) UpdateHostnameTLSSetting(ctxcontext.Context, rc *ResourceContainer, paramsUpdateHostnameTLSSettingParams) (HostnameTLSSetting,error)
UpdateHostnameTLSSetting will update the per-hostname tls setting for the specified hostname.
API reference:https://developers.cloudflare.com/api/resources/hostnames/subresources/settings/subresources/tls/methods/update/
func (*API)UpdateHostnameTLSSettingCiphers¶added inv0.75.0
func (api *API) UpdateHostnameTLSSettingCiphers(ctxcontext.Context, rc *ResourceContainer, paramsUpdateHostnameTLSSettingCiphersParams) (HostnameTLSSettingCiphers,error)
UpdateHostnameTLSSettingCiphers will update the per-hostname ciphers tls setting for the specified hostname.Ciphers functions are separate due to the API returning a list of strings as the value, rather than a string (as is the case for the other tls settings).
API reference:https://developers.cloudflare.com/api/resources/hostnames/subresources/settings/subresources/tls/methods/update/
func (*API)UpdateHyperdriveConfig¶added inv0.88.0
func (api *API) UpdateHyperdriveConfig(ctxcontext.Context, rc *ResourceContainer, paramsUpdateHyperdriveConfigParams) (HyperdriveConfig,error)
UpdateHyperdriveConfig updates a Hyperdrive config.
API reference:https://developers.cloudflare.com/api/resources/hyperdrive/subresources/configs/methods/update/
func (*API)UpdateIPListdeprecatedadded inv0.13.0
func (*API)UpdateImage¶added inv0.30.0
func (api *API) UpdateImage(ctxcontext.Context, rc *ResourceContainer, paramsUpdateImageParams) (Image,error)
UpdateImage updates an existing image's metadata.
API Reference:https://api.cloudflare.com/#cloudflare-images-update-image
func (*API)UpdateImagesVariant¶added inv0.88.0
func (api *API) UpdateImagesVariant(ctxcontext.Context, rc *ResourceContainer, paramsUpdateImagesVariantParams) (ImagesVariant,error)
Updating a variant purges the cache for all images associated with the variant.
API Reference:https://developers.cloudflare.com/api/resources/images/subresources/v1/subresources/variants/methods/get/
func (*API)UpdateInfrastructureAccessTarget¶added inv0.105.0
func (api *API) UpdateInfrastructureAccessTarget(ctxcontext.Context, rc *ResourceContainer, paramsUpdateInfrastructureAccessTargetParams) (InfrastructureAccessTarget,error)
UpdateInfrastructureAccessTarget updates an existing infrastructure access target.
Account API reference:https://developers.cloudflare.com/api/resources/zero_trust/subresources/access/subresources/infrastructure/subresources/targets/methods/update/
func (*API)UpdateKeylessSSL¶added inv0.17.0
func (api *API) UpdateKeylessSSL(ctxcontext.Context, zoneID, kelessSSLIDstring, keylessSSLKeylessSSLUpdateRequest) (KeylessSSL,error)
UpdateKeylessSSL updates an existing Keyless SSL configuration.
API reference:https://api.cloudflare.com/#keyless-ssl-for-a-zone-edit-keyless-ssl-configuration
func (*API)UpdateList¶added inv0.41.0
func (api *API) UpdateList(ctxcontext.Context, rc *ResourceContainer, paramsListUpdateParams) (List,error)
UpdateList updates the description of an existing List.
API reference:https://api.cloudflare.com/#rules-lists-update-list
func (*API)UpdateLoadBalancer¶added inv0.51.0
func (api *API) UpdateLoadBalancer(ctxcontext.Context, rc *ResourceContainer, paramsUpdateLoadBalancerParams) (LoadBalancer,error)
UpdateLoadBalancer modifies a configured load balancer.
API reference:https://api.cloudflare.com/#load-balancers-update-load-balancer
func (*API)UpdateLoadBalancerMonitor¶added inv0.51.0
func (api *API) UpdateLoadBalancerMonitor(ctxcontext.Context, rc *ResourceContainer, paramsUpdateLoadBalancerMonitorParams) (LoadBalancerMonitor,error)
UpdateLoadBalancerMonitor modifies a configured load balancer monitor.
API reference:https://api.cloudflare.com/#load-balancer-monitors-update-monitor
func (*API)UpdateLoadBalancerPool¶added inv0.51.0
func (api *API) UpdateLoadBalancerPool(ctxcontext.Context, rc *ResourceContainer, paramsUpdateLoadBalancerPoolParams) (LoadBalancerPool,error)
UpdateLoadBalancerPool modifies a configured load balancer pool.
API reference:https://api.cloudflare.com/#load-balancer-pools-update-pool
func (*API)UpdateLogpushJob¶added inv0.9.0
func (api *API) UpdateLogpushJob(ctxcontext.Context, rc *ResourceContainer, paramsUpdateLogpushJobParams)error
UpdateLogpushJob lets you update a Logpush Job.
API reference:https://api.cloudflare.com/#logpush-jobs-update-logpush-job
Example¶
api, err := cloudflare.New(apiKey, user)if err != nil {log.Fatal(err)}zoneID, err := api.ZoneIDByName(domain)if err != nil {log.Fatal(err)}err = api.UpdateLogpushJob(context.Background(), cloudflare.ZoneIdentifier(zoneID), cloudflare.UpdateLogpushJobParams{ID: 1,Enabled: true,Name: "updated.com",LogpullOptions: "fields=RayID,ClientIP,EdgeStartTimestamp",DestinationConf: "gs://mybucket/logs",})if err != nil {log.Fatal(err)}
func (*API)UpdateMagicFirewallRulesetdeprecatedadded inv0.13.7
func (api *API) UpdateMagicFirewallRuleset(ctxcontext.Context, accountID, IDstring, descriptionstring, rules []MagicFirewallRulesetRule) (MagicFirewallRuleset,error)
UpdateMagicFirewallRuleset updates a Magic Firewall ruleset
API reference:https://api.cloudflare.com/#rulesets-update-ruleset
Deprecated: Use `UpdateZoneRuleset` or `UpdateAccountRuleset` instead.
func (*API)UpdateMagicTransitGRETunnel¶added inv0.32.0
func (api *API) UpdateMagicTransitGRETunnel(ctxcontext.Context, accountIDstring, idstring, tunnelMagicTransitGRETunnel) (MagicTransitGRETunnel,error)
UpdateMagicTransitGRETunnel updates a GRE tunnel.
API reference:https://api.cloudflare.com/#magic-gre-tunnels-update-gre-tunnel
func (*API)UpdateMagicTransitIPsecTunnel¶added inv0.31.0
func (api *API) UpdateMagicTransitIPsecTunnel(ctxcontext.Context, accountIDstring, idstring, tunnelMagicTransitIPsecTunnel) (MagicTransitIPsecTunnel,error)
UpdateMagicTransitIPsecTunnel updates an IPsec tunnel
API reference:https://api.cloudflare.com/#magic-ipsec-tunnels-update-ipsec-tunnel
func (*API)UpdateMagicTransitStaticRoute¶added inv0.18.0
func (api *API) UpdateMagicTransitStaticRoute(ctxcontext.Context, accountID, IDstring, routeMagicTransitStaticRoute) (MagicTransitStaticRoute,error)
UpdateMagicTransitStaticRoute updates a static route
API reference:https://api.cloudflare.com/#magic-transit-static-routes-update-route
func (*API)UpdateNotificationPolicy¶added inv0.19.0
func (api *API) UpdateNotificationPolicy(ctxcontext.Context, accountIDstring, policy *NotificationPolicy) (SaveResponse,error)
UpdateNotificationPolicy updates a notification policy, given theaccount id and the policy id and returns the policy id.
API Reference:https://api.cloudflare.com/#notification-policies-update-notification-policy
func (*API)UpdateNotificationWebhooks¶added inv0.19.0
func (api *API) UpdateNotificationWebhooks(ctxcontext.Context, accountID, webhookIDstring, webhooks *NotificationUpsertWebhooks) (SaveResponse,error)
UpdateNotificationWebhooks will update a particular webhook's name,given the account and webhooks ids.
The webhook url and secret cannot be updated.
API Reference:https://api.cloudflare.com/#notification-webhooks-update-webhook
func (*API)UpdatePageRule¶added inv0.7.2
UpdatePageRule lets you replace a Page Rule. This is in contrast toChangePageRule which lets you change individual settings.
API reference:https://api.cloudflare.com/#page-rules-for-a-zone-update-a-page-rule
func (*API)UpdatePageShieldPolicy¶added inv0.84.0
func (api *API) UpdatePageShieldPolicy(ctxcontext.Context, rc *ResourceContainer, paramsUpdatePageShieldPolicyParams) (*PageShieldPolicy,error)
UpdatePageShieldPolicy updates a page shield policy for a zone.
API documentation:https://developers.cloudflare.com/api/operations/page-shield-update-page-shield-policy
func (*API)UpdatePageShieldSettings¶added inv0.84.0
func (api *API) UpdatePageShieldSettings(ctxcontext.Context, rc *ResourceContainer, paramsUpdatePageShieldSettingsParams) (*PageShieldSettingsResponse,error)
UpdatePageShieldSettings updates the page shield settings for a zone.
API documentation:https://developers.cloudflare.com/api/operations/page-shield-update-page-shield-settings
func (*API)UpdatePagesProject¶added inv0.26.0
func (api *API) UpdatePagesProject(ctxcontext.Context, rc *ResourceContainer, paramsUpdatePagesProjectParams) (PagesProject,error)
UpdatePagesProject updates an existing Pages project.
API reference:https://api.cloudflare.com/#pages-project-update-project
func (*API)UpdatePrefixDescription¶added inv0.11.7
func (api *API) UpdatePrefixDescription(ctxcontext.Context, accountID, IDstring, descriptionstring) (IPPrefix,error)
UpdatePrefixDescription edits the description of the IP prefix
API reference:https://api.cloudflare.com/#ip-address-management-prefixes-update-prefix-description
func (*API)UpdateQueue¶added inv0.55.0
func (api *API) UpdateQueue(ctxcontext.Context, rc *ResourceContainer, paramsUpdateQueueParams) (Queue,error)
UpdateQueue updates a queue.
API reference:https://api.cloudflare.com/#queue-update-queue
func (*API)UpdateQueueConsumer¶added inv0.55.0
func (api *API) UpdateQueueConsumer(ctxcontext.Context, rc *ResourceContainer, paramsUpdateQueueConsumerParams) (QueueConsumer,error)
UpdateQueueConsumer updates the consumer for a queue, or creates one if it does not exist..
API reference:https://api.cloudflare.com/#queue-update-queue-consumer
func (*API)UpdateRateLimit¶added inv0.8.5
func (api *API) UpdateRateLimit(ctxcontext.Context, zoneID, limitIDstring, limitRateLimit) (RateLimit,error)
UpdateRateLimit lets you replace a Rate Limit for a zone.
API reference:https://api.cloudflare.com/#rate-limits-for-a-zone-update-rate-limit
func (*API)UpdateRegionalTieredCache¶added inv0.73.0
func (api *API) UpdateRegionalTieredCache(ctxcontext.Context, rc *ResourceContainer, paramsUpdateRegionalTieredCacheParams) (RegionalTieredCache,error)
UpdateRegionalTieredCache updates the regional tiered cache setting for azone.
API reference:https://developers.cloudflare.com/api/resources/cache/subresources/regional_tiered_cache/methods/edit/
func (*API)UpdateRegistrarDomain¶added inv0.9.0
func (api *API) UpdateRegistrarDomain(ctxcontext.Context, accountID, domainNamestring, domainConfigurationRegistrarDomainConfiguration) (RegistrarDomain,error)
UpdateRegistrarDomain updates an existing Registrar Domain configuration.
API reference:https://api.cloudflare.com/#registrar-domains-update-domain
Example¶
api, err := cloudflare.New(apiKey, user)if err != nil {log.Fatal(err)}domain, err := api.UpdateRegistrarDomain(context.Background(), "01a7362d577a6c3019a474fd6f485823", "cloudflare.com", cloudflare.RegistrarDomainConfiguration{NameServers: []string{"ns1.cloudflare.com", "ns2.cloudflare.com"},Locked: false,})if err != nil {log.Fatal(err)}fmt.Printf("%+v\n", domain)
func (*API)UpdateRiskScoreIntegration¶added inv0.101.0
func (api *API) UpdateRiskScoreIntegration(ctxcontext.Context, rc *ResourceContainer, integrationIDstring, paramsRiskScoreIntegrationUpdateRequest) (RiskScoreIntegration,error)
UpdateRiskScoreIntegration updates a Risk Score Integration.
Can be used to disable or active the integration using the "active" boolean property.API reference:https://developers.cloudflare.com/api/resources/zero_trust/subresources/risk_scoring/subresources/integrations/methods/update/
func (*API)UpdateRuleset¶added inv0.73.0
func (api *API) UpdateRuleset(ctxcontext.Context, rc *ResourceContainer, paramsUpdateRulesetParams) (Ruleset,error)
UpdateRuleset updates a ruleset based on the ruleset ID.
API reference:https://developers.cloudflare.com/api/operations/updateAccountRulesetAPI reference:https://developers.cloudflare.com/api/resources/rulesets/methods/update/
func (*API)UpdateSSL¶added inv0.7.2
func (api *API) UpdateSSL(ctxcontext.Context, zoneID, certificateIDstring, optionsZoneCustomSSLOptions) (ZoneCustomSSL,error)
UpdateSSL updates (replaces) a custom SSL certificate.
API reference:https://api.cloudflare.com/#custom-ssl-for-a-zone-update-ssl-configuration
func (*API)UpdateSecondaryDNSPrimary¶added inv0.15.0
func (api *API) UpdateSecondaryDNSPrimary(ctxcontext.Context, accountIDstring, primarySecondaryDNSPrimary) (SecondaryDNSPrimary,error)
UpdateSecondaryDNSPrimary creates a secondary DNS primary.
API reference:https://api.cloudflare.com/#secondary-dns-primary--update-primary
func (*API)UpdateSecondaryDNSTSIG¶added inv0.15.0
func (api *API) UpdateSecondaryDNSTSIG(ctxcontext.Context, accountIDstring, tsigSecondaryDNSTSIG) (SecondaryDNSTSIG,error)
UpdateSecondaryDNSTSIG updates an existing secondary DNS TSIG atthe account level.
API reference:https://api.cloudflare.com/#secondary-dns-tsig--update-tsig
func (*API)UpdateSecondaryDNSZone¶added inv0.15.0
func (api *API) UpdateSecondaryDNSZone(ctxcontext.Context, zoneIDstring, zoneSecondaryDNSZone) (SecondaryDNSZone,error)
UpdateSecondaryDNSZone updates an existing secondary DNS zone.
API reference:https://api.cloudflare.com/#secondary-dns-update-secondary-zone-configuration
func (*API)UpdateSpectrumApplication¶added inv0.9.0
func (api *API) UpdateSpectrumApplication(ctxcontext.Context, zoneID, appIDstring, appDetailsSpectrumApplication) (SpectrumApplication,error)
UpdateSpectrumApplication updates an existing Spectrum application.
API reference:https://developers.cloudflare.com/spectrum/api-reference/#update-a-spectrum-application
func (*API)UpdateSplitTunnel¶added inv0.25.0
func (api *API) UpdateSplitTunnel(ctxcontext.Context, accountIDstring, modestring, tunnels []SplitTunnel) ([]SplitTunnel,error)
UpdateSplitTunnel updates the existing split tunnel policy.
API reference for include:https://api.cloudflare.com/#device-policy-set-split-tunnel-include-listAPI reference for exclude:https://api.cloudflare.com/#device-policy-set-split-tunnel-exclude-list
func (*API)UpdateSplitTunnelDeviceSettingsPolicy¶added inv0.52.0
func (api *API) UpdateSplitTunnelDeviceSettingsPolicy(ctxcontext.Context, accountID, policyIDstring, modestring, tunnels []SplitTunnel) ([]SplitTunnel,error)
UpdateSplitTunnelDeviceSettingsPolicy updates the existing split tunnel policy within a device settings policy
API reference for include:https://api.cloudflare.com/#device-policy-set-split-tunnel-include-listAPI reference for exclude:https://api.cloudflare.com/#device-policy-set-split-tunnel-exclude-list
func (*API)UpdateTeamsList¶added inv0.17.0
func (api *API) UpdateTeamsList(ctxcontext.Context, rc *ResourceContainer, paramsUpdateTeamsListParams) (TeamsList,error)
UpdateTeamsList updates an existing teams list.
API reference:https://api.cloudflare.com/#teams-lists-update-teams-list
func (*API)UpdateTeamsLocation¶added inv0.21.0
func (api *API) UpdateTeamsLocation(ctxcontext.Context, accountIDstring, teamsLocationTeamsLocation) (TeamsLocation,error)
UpdateTeamsLocation updates an existing teams location.
API reference:https://api.cloudflare.com/#teams-locations-update-teams-location
func (*API)UpdateTeamsProxyEndpoint¶added inv0.35.0
func (api *API) UpdateTeamsProxyEndpoint(ctxcontext.Context, accountIDstring, proxyEndpointTeamsProxyEndpoint) (TeamsProxyEndpoint,error)
UpdateTeamsProxyEndpoint updates an existing teams Proxy Endpoint.
API reference:https://api.cloudflare.com/#zero-trust-gateway-proxy-endpoints-update-proxy-endpoint
func (*API)UpdateTunnel¶added inv0.39.0
func (api *API) UpdateTunnel(ctxcontext.Context, rc *ResourceContainer, paramsTunnelUpdateParams) (Tunnel,error)
UpdateTunnel updates an existing tunnel for the account.
API reference:https://api.cloudflare.com/#cloudflare-tunnel-update-cloudflare-tunnel
func (*API)UpdateTunnelConfiguration¶added inv0.43.0
func (api *API) UpdateTunnelConfiguration(ctxcontext.Context, rc *ResourceContainer, paramsTunnelConfigurationParams) (TunnelConfigurationResult,error)
UpdateTunnelConfiguration updates an existing tunnel for the account.
API reference:https://api.cloudflare.com/#cloudflare-tunnel-configuration-properties
func (*API)UpdateTunnelRoute¶added inv0.36.0
func (api *API) UpdateTunnelRoute(ctxcontext.Context, rc *ResourceContainer, paramsTunnelRoutesUpdateParams) (TunnelRoute,error)
UpdateTunnelRoute updates an existing route in the account routing table forthe given tunnel.
func (*API)UpdateTunnelVirtualNetwork¶added inv0.41.0
func (api *API) UpdateTunnelVirtualNetwork(ctxcontext.Context, rc *ResourceContainer, paramsTunnelVirtualNetworkUpdateParams) (TunnelVirtualNetwork,error)
UpdateTunnelRoute updates an existing virtual network in the account.
API reference:https://api.cloudflare.com/#tunnel-virtual-network-update-virtual-network
func (*API)UpdateTurnstileWidget¶added inv0.66.0
func (api *API) UpdateTurnstileWidget(ctxcontext.Context, rc *ResourceContainer, paramsUpdateTurnstileWidgetParams) (TurnstileWidget,error)
UpdateTurnstileWidget update the configuration of a widget.
API reference:https://api.cloudflare.com/#challenge-widgets-update-a-challenge-widget
func (*API)UpdateURLNormalizationSettings¶added inv0.49.0
func (api *API) UpdateURLNormalizationSettings(ctxcontext.Context, rc *ResourceContainer, paramsURLNormalizationSettingsUpdateParams) (URLNormalizationSettings,error)
UpdateURLNormalizationSettingshttps://api.cloudflare.com/#url-normalization-update-url-normalization-settings
func (*API)UpdateUniversalSSLCertificatePackValidationMethod¶added inv0.20.0
func (api *API) UpdateUniversalSSLCertificatePackValidationMethod(ctxcontext.Context, zoneIDstring, certPackUUIDstring, settingUniversalSSLCertificatePackValidationMethodSetting) (UniversalSSLCertificatePackValidationMethodSetting,error)
UpdateUniversalSSLCertificatePackValidationMethod changes the validation method for a certificate pack
API reference:https://api.cloudflare.com/#ssl-verification-ssl-verification-details
func (*API)UpdateUser¶added inv0.7.2
UpdateUser updates the properties of the given user.
API reference:https://api.cloudflare.com/#user-update-user
func (*API)UpdateUserAccessRule¶added inv0.8.1
func (api *API) UpdateUserAccessRule(ctxcontext.Context, accessRuleIDstring, accessRuleAccessRule) (*AccessRuleResponse,error)
UpdateUserAccessRule updates a single access rule for the logged-in user &given access rule identifier.
API reference:https://api.cloudflare.com/#user-level-firewall-access-rule-update-access-rule
func (*API)UpdateUserAgentRule¶added inv0.8.0
func (api *API) UpdateUserAgentRule(ctxcontext.Context, zoneIDstring, idstring, ldUserAgentRule) (*UserAgentRuleResponse,error)
UpdateUserAgentRule updates a User-Agent Block rule (based on the ID) for the given zone ID.
API reference:https://api.cloudflare.com/#user-agent-blocking-rules-update-useragent-rule
func (*API)UpdateWAFGroup¶added inv0.10.1
func (api *API) UpdateWAFGroup(ctxcontext.Context, zoneID, packageID, groupID, modestring) (WAFGroup,error)
UpdateWAFGroup lets you update the mode of a WAF Group.
API Reference:https://api.cloudflare.com/#waf-rule-groups-edit-rule-group
func (*API)UpdateWAFOverride¶added inv0.11.1
func (api *API) UpdateWAFOverride(ctxcontext.Context, zoneID, overrideIDstring, overrideWAFOverride) (WAFOverride,error)
UpdateWAFOverride updates an existing WAF override.
API reference:https://api.cloudflare.com/#waf-overrides-update-uri-controlled-waf-configuration
func (*API)UpdateWAFPackage¶added inv0.10.0
func (api *API) UpdateWAFPackage(ctxcontext.Context, zoneID, packageIDstring, optsWAFPackageOptions) (WAFPackage,error)
UpdateWAFPackage lets you update the a WAF Package.
API Reference:https://api.cloudflare.com/#waf-rule-packages-edit-firewall-package
func (*API)UpdateWAFRule¶added inv0.9.0
func (api *API) UpdateWAFRule(ctxcontext.Context, zoneID, packageID, ruleID, modestring) (WAFRule,error)
UpdateWAFRule lets you update the mode of a WAF Rule.
API Reference:https://api.cloudflare.com/#waf-rules-edit-rule
func (*API)UpdateWaitingRoom¶added inv0.17.0
func (api *API) UpdateWaitingRoom(ctxcontext.Context, zoneIDstring, waitingRoomWaitingRoom) (WaitingRoom,error)
UpdateWaitingRoom lets you replace a Waiting Room. This is in contrast toChangeWaitingRoom which lets you change individual settings.
API reference:https://api.cloudflare.com/#waiting-room-update-waiting-room
func (*API)UpdateWaitingRoomEvent¶added inv0.33.0
func (api *API) UpdateWaitingRoomEvent(ctxcontext.Context, zoneIDstring, waitingRoomIDstring, waitingRoomEventWaitingRoomEvent) (WaitingRoomEvent,error)
UpdateWaitingRoomEvent lets you replace a Waiting Room Event. This is in contrast toChangeWaitingRoomEvent which lets you change individual settings.
API reference:https://api.cloudflare.com/#waiting-room-update-event
func (*API)UpdateWaitingRoomRule¶added inv0.53.0
func (api *API) UpdateWaitingRoomRule(ctxcontext.Context, rc *ResourceContainer, paramsUpdateWaitingRoomRuleParams) ([]WaitingRoomRule,error)
UpdateWaitingRoomRule updates a rule for a Waiting Room.
API reference:https://api.cloudflare.com/#waiting-room-patch-waiting-room-rule
func (*API)UpdateWaitingRoomSettings¶added inv0.67.0
func (api *API) UpdateWaitingRoomSettings(ctxcontext.Context, rc *ResourceContainer, paramsUpdateWaitingRoomSettingsParams) (WaitingRoomSettings,error)
UpdateWaitingRoomSettings lets you replace all zone-level Waiting Room settings. This is in contrast toPatchWaitingRoomSettings which lets you change individual settings.
API reference:https://api.cloudflare.com/#waiting-room-update-zone-settings
func (*API)UpdateWeb3Hostname¶added inv0.45.0
func (api *API) UpdateWeb3Hostname(ctxcontext.Context, paramsWeb3HostnameUpdateParameters) (Web3Hostname,error)
UpdateWeb3Hostname edits a web3 hostname.
API Reference:https://api.cloudflare.com/#web3-hostname-edit-web3-hostname
func (*API)UpdateWebAnalyticsRule¶added inv0.75.0
func (api *API) UpdateWebAnalyticsRule(ctxcontext.Context, rc *ResourceContainer, paramsUpdateWebAnalyticsRuleParams) (*WebAnalyticsRule,error)
UpdateWebAnalyticsRule updates a Web Analytics Rule in a Web Analytics ruleset.
API reference:https://api.cloudflare.com/#web-analytics-update-rule
func (*API)UpdateWebAnalyticsSite¶added inv0.75.0
func (api *API) UpdateWebAnalyticsSite(ctxcontext.Context, rc *ResourceContainer, paramsUpdateWebAnalyticsSiteParams) (*WebAnalyticsSite,error)
UpdateWebAnalyticsSite updates an existing Web Analytics Site for an Account.
API reference:https://api.cloudflare.com/#web-analytics-update-site
func (*API)UpdateWorkerCronTriggers¶added inv0.13.8
func (api *API) UpdateWorkerCronTriggers(ctxcontext.Context, rc *ResourceContainer, paramsUpdateWorkerCronTriggersParams) ([]WorkerCronTrigger,error)
UpdateWorkerCronTriggers updates a single schedule for a Worker cron trigger.
API reference:https://developers.cloudflare.com/api/resources/workers/subresources/scripts/subresources/schedules/methods/update/
func (*API)UpdateWorkerRoute¶added inv0.9.0
func (api *API) UpdateWorkerRoute(ctxcontext.Context, rc *ResourceContainer, paramsUpdateWorkerRouteParams) (WorkerRouteResponse,error)
UpdateWorkerRoute updates worker route for a script.
API reference:https://developers.cloudflare.com/api/operations/worker-routes-update-route
func (*API)UpdateWorkersKVNamespace¶added inv0.9.0
func (api *API) UpdateWorkersKVNamespace(ctxcontext.Context, rc *ResourceContainer, paramsUpdateWorkersKVNamespaceParams) (Response,error)
UpdateWorkersKVNamespace modifies a KV namespace based on the ID.
API reference:https://developers.cloudflare.com/api/resources/kv/subresources/namespaces/methods/update/
Example¶
api, err := cloudflare.New(apiKey, user)if err != nil {log.Fatal(err)}resp, err := api.UpdateWorkersKVNamespace(context.Background(), cloudflare.AccountIdentifier(accountID), cloudflare.UpdateWorkersKVNamespaceParams{NamespaceID: namespace,Title: "test_title",})if err != nil {log.Fatal(err)}fmt.Println(resp)
func (*API)UpdateWorkersScriptContent¶added inv0.76.0
func (api *API) UpdateWorkersScriptContent(ctxcontext.Context, rc *ResourceContainer, paramsUpdateWorkersScriptContentParams) (WorkerScriptResponse,error)
UpdateWorkersScriptContent pushes only script content, no metadata.
API reference:https://developers.cloudflare.com/api/resources/workers/subresources/scripts/subresources/content/methods/update/
func (*API)UpdateWorkersScriptSettings¶added inv0.76.0
func (api *API) UpdateWorkersScriptSettings(ctxcontext.Context, rc *ResourceContainer, paramsUpdateWorkersScriptSettingsParams) (WorkerScriptSettingsResponse,error)
UpdateWorkersScriptSettings pushes only script metadata.
API reference:https://developers.cloudflare.com/api/operations/worker-script-patch-settings
func (*API)UpdateZarazConfig¶added inv0.86.0
func (api *API) UpdateZarazConfig(ctxcontext.Context, rc *ResourceContainer, paramsUpdateZarazConfigParams) (ZarazConfigResponse,error)
func (*API)UpdateZarazWorkflow¶added inv0.86.0
func (api *API) UpdateZarazWorkflow(ctxcontext.Context, rc *ResourceContainer, paramsUpdateZarazWorkflowParams) (ZarazWorkflowResponse,error)
func (*API)UpdateZoneAccessRule¶added inv0.8.1
func (api *API) UpdateZoneAccessRule(ctxcontext.Context, zoneID, accessRuleIDstring, accessRuleAccessRule) (*AccessRuleResponse,error)
UpdateZoneAccessRule updates a single access rule for the given zone &access rule identifiers.
API reference:https://api.cloudflare.com/#firewall-access-rule-for-a-zone-update-access-rule
func (*API)UpdateZoneCacheVariants¶added inv0.32.0
func (api *API) UpdateZoneCacheVariants(ctxcontext.Context, zoneIDstring, variantsZoneCacheVariantsValues) (ZoneCacheVariants,error)
UpdateZoneCacheVariants updates the cache variants for a given zone.
API reference:https://api.cloudflare.com/#zone-cache-settings-change-variants-setting
func (*API)UpdateZoneCloudConnectorRules¶added inv0.100.0
func (api *API) UpdateZoneCloudConnectorRules(ctxcontext.Context, rc *ResourceContainer, params []CloudConnectorRule) ([]CloudConnectorRule,error)
func (*API)UpdateZoneDNSSEC¶added inv0.13.5
func (api *API) UpdateZoneDNSSEC(ctxcontext.Context, zoneIDstring, optionsZoneDNSSECUpdateOptions) (ZoneDNSSEC,error)
UpdateZoneDNSSEC updates DNSSEC for a zone
API reference:https://api.cloudflare.com/#dnssec-edit-dnssec-status
func (*API)UpdateZoneLevelAccessBookmark¶added inv0.36.0
func (api *API) UpdateZoneLevelAccessBookmark(ctxcontext.Context, zoneIDstring, accessBookmarkAccessBookmark) (AccessBookmark,error)
UpdateZoneLevelAccessBookmark updates an existing zone level access bookmark.
API reference:https://api.cloudflare.com/#zone-level-access-bookmarks-update-access-bookmark
func (*API)UpdateZoneLockdown¶added inv0.8.0
func (api *API) UpdateZoneLockdown(ctxcontext.Context, rc *ResourceContainer, paramsZoneLockdownUpdateParams) (ZoneLockdown,error)
UpdateZoneLockdown updates a Zone ZoneLockdown rule (based on the ID) for the given zone ID.
API reference:https://api.cloudflare.com/#zone-ZoneLockdown-update-ZoneLockdown-rule
func (*API)UpdateZoneManagedHeaders¶added inv0.42.0
func (api *API) UpdateZoneManagedHeaders(ctxcontext.Context, rc *ResourceContainer, paramsUpdateManagedHeadersParams) (ManagedHeaders,error)
func (*API)UpdateZoneSSLSettings¶added inv0.25.0
func (api *API) UpdateZoneSSLSettings(ctxcontext.Context, zoneIDstring, sslValuestring) (ZoneSSLSetting,error)
UpdateZoneSSLSettings update information about SSL setting to the specified zone.
API reference:https://api.cloudflare.com/#zone-settings-change-ssl-setting
func (*API)UpdateZoneSetting¶added inv0.64.0
func (api *API) UpdateZoneSetting(ctxcontext.Context, rc *ResourceContainer, paramsUpdateZoneSettingParams) (ZoneSetting,error)
UpdateZoneSetting updates the specified setting for a given zone.
API reference:https://api.cloudflare.com/#zone-settings-edit-zone-settings-info
func (*API)UpdateZoneSettings¶added inv0.8.5
func (api *API) UpdateZoneSettings(ctxcontext.Context, zoneIDstring, settings []ZoneSetting) (*ZoneSettingResponse,error)
UpdateZoneSettings updates the settings for a given zone.
API reference:https://api.cloudflare.com/#zone-settings-edit-zone-settings-info
func (*API)UpdateZoneSnippet¶added inv0.108.0
func (api *API) UpdateZoneSnippet(ctxcontext.Context, rc *ResourceContainer, paramsSnippetRequest) (*Snippet,error)
func (*API)UpdateZoneSnippetsRules¶added inv0.108.0
func (api *API) UpdateZoneSnippetsRules(ctxcontext.Context, rc *ResourceContainer, params []SnippetRule) ([]SnippetRule,error)
func (*API)UploadDLPDatasetVersion¶added inv0.87.0
func (api *API) UploadDLPDatasetVersion(ctxcontext.Context, rc *ResourceContainer, paramsUploadDLPDatasetVersionParams) (DLPDataset,error)
UploadDLPDatasetVersion uploads a new version of the specified DLP dataset.
func (*API)UploadImage¶added inv0.30.0
func (api *API) UploadImage(ctxcontext.Context, rc *ResourceContainer, paramsUploadImageParams) (Image,error)
UploadImage uploads a single image.
API Reference:https://api.cloudflare.com/#cloudflare-images-upload-an-image-using-a-single-http-request
func (*API)UploadPerHostnameAuthenticatedOriginPullsCertificate¶added inv0.12.2
func (api *API) UploadPerHostnameAuthenticatedOriginPullsCertificate(ctxcontext.Context, zoneIDstring, paramsPerHostnameAuthenticatedOriginPullsCertificateParams) (PerHostnameAuthenticatedOriginPullsCertificateDetails,error)
UploadPerHostnameAuthenticatedOriginPullsCertificate will upload the provided certificate and private key to the edge under Per Hostname AuthenticatedOriginPulls.
API reference:https://api.cloudflare.com/#per-hostname-authenticated-origin-pull-upload-a-hostname-client-certificate
func (*API)UploadPerZoneAuthenticatedOriginPullsCertificate¶added inv0.12.2
func (api *API) UploadPerZoneAuthenticatedOriginPullsCertificate(ctxcontext.Context, zoneIDstring, paramsPerZoneAuthenticatedOriginPullsCertificateParams) (PerZoneAuthenticatedOriginPullsCertificateDetails,error)
UploadPerZoneAuthenticatedOriginPullsCertificate will upload a provided client certificate and enable it to be used in all AuthenticatedOriginPulls requests for the zone.
API reference:https://api.cloudflare.com/#zone-level-authenticated-origin-pulls-upload-certificate
func (*API)UploadWorker¶added inv0.9.0
func (api *API) UploadWorker(ctxcontext.Context, rc *ResourceContainer, paramsCreateWorkerParams) (WorkerScriptResponse,error)
UploadWorker pushes raw script content for your Worker.
API reference:https://developers.cloudflare.com/api/resources/workers/subresources/scripts/methods/update/
func (*API)UserAccessRule¶added inv0.9.0
UserAccessRule returns the details of a user's account access rule.
API reference:https://api.cloudflare.com/#user-level-firewall-access-rule-list-access-rules
func (*API)UserAgentRule¶added inv0.8.0
func (api *API) UserAgentRule(ctxcontext.Context, zoneIDstring, idstring) (*UserAgentRuleResponse,error)
UserAgentRule retrieves a User-Agent Block rule (based on the ID) for the given zone ID.
API reference:https://api.cloudflare.com/#user-agent-blocking-rules-useragent-rule-details
func (*API)UserBillingHistory¶added inv0.43.0
func (api *API) UserBillingHistory(ctxcontext.Context, pageOptsUserBillingOptions) ([]UserBillingHistory,error)
UserBillingHistory return the billing history of the user
API reference:https://api.cloudflare.com/#user-billing-history-billing-history-details
func (*API)UserBillingProfile¶added inv0.7.3
func (api *API) UserBillingProfile(ctxcontext.Context) (UserBillingProfile,error)
UserBillingProfile returns the billing profile of the user.
API reference:https://api.cloudflare.com/#user-billing-profile
func (*API)UserDetails¶added inv0.7.2
UserDetails provides information about the logged-in user.
API reference:https://api.cloudflare.com/#user-user-details
func (*API)ValidateFilterExpression¶added inv0.9.0
ValidateFilterExpression checks correctness of a filter expression.
API reference:https://developers.cloudflare.com/firewall/api/cf-filters/validation/
func (*API)ValidateLogpushOwnershipChallenge¶added inv0.9.0
func (api *API) ValidateLogpushOwnershipChallenge(ctxcontext.Context, rc *ResourceContainer, paramsValidateLogpushOwnershipChallengeParams) (bool,error)
ValidateLogpushOwnershipChallenge returns zone-level ownership challenge validation result.
API reference:https://api.cloudflare.com/#logpush-jobs-validate-ownership-challenge
Example¶
api, err := cloudflare.New(apiKey, user)if err != nil {log.Fatal(err)}zoneID, err := api.ZoneIDByName(domain)if err != nil {log.Fatal(err)}isValid, err := api.ValidateLogpushOwnershipChallenge(context.Background(), cloudflare.ZoneIdentifier(zoneID), cloudflare.ValidateLogpushOwnershipChallengeParams{DestinationConf: "destination_conf",OwnershipChallenge: "ownership_challenge",})if err != nil {log.Fatal(err)}fmt.Printf("%+v\n", isValid)
func (*API)VerifyAPIToken¶added inv0.13.5
func (api *API) VerifyAPIToken(ctxcontext.Context) (APITokenVerifyBody,error)
VerifyAPIToken tests the validity of the token.
API reference:https://api.cloudflare.com/#user-api-tokens-verify-token
func (*API)WAFGroup¶added inv0.10.1
WAFGroup returns a WAF rule group from the given WAF package.
API Reference:https://api.cloudflare.com/#waf-rule-groups-rule-group-details
func (*API)WAFOverride¶added inv0.11.1
WAFOverride returns a WAF override from the given override ID.
API Reference:https://api.cloudflare.com/#waf-overrides-uri-controlled-waf-configuration-details
func (*API)WAFPackage¶added inv0.10.0
WAFPackage returns a WAF package for the given zone.
API Reference:https://api.cloudflare.com/#waf-rule-packages-firewall-package-details
func (*API)WAFRule¶added inv0.9.0
WAFRule returns a WAF rule from the given WAF package.
API Reference:https://api.cloudflare.com/#waf-rules-rule-details
func (*API)WaitingRoom¶added inv0.17.0
WaitingRoom fetches detail about one Waiting room for a zone.
API reference:https://api.cloudflare.com/#waiting-room-waiting-room-details
func (*API)WaitingRoomEvent¶added inv0.33.0
func (api *API) WaitingRoomEvent(ctxcontext.Context, zoneIDstring, waitingRoomIDstring, eventIDstring) (WaitingRoomEvent,error)
WaitingRoomEvent fetches detail about one Waiting Room Event for a zone.
API reference:https://api.cloudflare.com/#waiting-room-event-details
func (*API)WaitingRoomEventPreview¶added inv0.33.0
func (api *API) WaitingRoomEventPreview(ctxcontext.Context, zoneIDstring, waitingRoomIDstring, eventIDstring) (WaitingRoomEvent,error)
WaitingRoomEventPreview returns an event's configuration as if it was active.Inherited fields from the waiting room will be displayed with their current values.
API reference:https://api.cloudflare.com/#waiting-room-preview-active-event-details
func (*API)WaitingRoomPagePreview¶added inv0.34.0
func (api *API) WaitingRoomPagePreview(ctxcontext.Context, zoneID, customHTMLstring) (WaitingRoomPagePreviewURL,error)
WaitingRoomPagePreview uploads a custom waiting room page for preview andreturns a preview URL.
API reference:https://api.cloudflare.com/#waiting-room-create-a-custom-waiting-room-page-preview
func (*API)WaitingRoomStatus¶added inv0.33.0
func (api *API) WaitingRoomStatus(ctxcontext.Context, zoneID, waitingRoomIDstring) (WaitingRoomStatus,error)
WaitingRoomStatus returns the status of one Waiting Room for a zone.
API reference:https://api.cloudflare.com/#waiting-room-get-waiting-room-status
func (*API)WorkersAccountSettings¶added inv0.47.0
func (api *API) WorkersAccountSettings(ctxcontext.Context, rc *ResourceContainer, paramsWorkersAccountSettingsParameters) (WorkersAccountSettings,error)
WorkersAccountSettings returns the current account settings for Workers.
API reference:https://developers.cloudflare.com/api/resources/workers/subresources/account_settings/methods/get/
func (*API)WorkersCreateSubdomain¶added inv0.47.0
func (api *API) WorkersCreateSubdomain(ctxcontext.Context, rc *ResourceContainer, paramsWorkersSubdomain) (WorkersSubdomain,error)
WorkersCreateSubdomain Creates a Workers subdomain for an account.
API reference:https://developers.cloudflare.com/api/resources/workers/subresources/subdomains/methods/update/
func (*API)WorkersGetSubdomain¶added inv0.47.0
func (api *API) WorkersGetSubdomain(ctxcontext.Context, rc *ResourceContainer) (WorkersSubdomain,error)
WorkersGetSubdomain Creates a Workers subdomain for an account.
API reference:https://developers.cloudflare.com/api/resources/workers/subresources/subdomains/methods/get/
func (*API)WriteWorkersKVEntries¶added inv0.55.0
func (api *API) WriteWorkersKVEntries(ctxcontext.Context, rc *ResourceContainer, paramsWriteWorkersKVEntriesParams) (Response,error)
WriteWorkersKVEntries writes multiple KVs at once.
API reference:https://developers.cloudflare.com/api/resources/kv/subresources/namespaces/methods/bulk_update/
Example¶
api, err := cloudflare.New(apiKey, user)if err != nil {log.Fatal(err)}payload := []*cloudflare.WorkersKVPair{{Key: "key1",Value: "value1",},{Key: "key2",Value: base64.StdEncoding.EncodeToString([]byte("value2")),Base64: true,Metadata: "key2's value will be decoded in base64 before it is stored",},}resp, err := api.WriteWorkersKVEntries(context.Background(), cloudflare.AccountIdentifier(accountID), cloudflare.WriteWorkersKVEntriesParams{NamespaceID: namespace,KVs: payload,})if err != nil {log.Fatal(err)}fmt.Println(resp)
func (*API)WriteWorkersKVEntry¶added inv0.55.0
func (api *API) WriteWorkersKVEntry(ctxcontext.Context, rc *ResourceContainer, paramsWriteWorkersKVEntryParams) (Response,error)
WriteWorkersKVEntry writes a single KV value based on the key.
API reference:https://developers.cloudflare.com/api/resources/kv/subresources/namespaces/subresources/values/methods/update/
Example¶
api, err := cloudflare.New(apiKey, user)if err != nil {log.Fatal(err)}payload := []byte("test payload")key := "test_key"resp, err := api.WriteWorkersKVEntry(context.Background(), cloudflare.AccountIdentifier(accountID), cloudflare.WriteWorkersKVEntryParams{NamespaceID: namespace,Key: key,Value: payload,})if err != nil {log.Fatal(err)}fmt.Println(resp)
func (*API)ZoneAccessRule¶added inv0.9.0
func (api *API) ZoneAccessRule(ctxcontext.Context, zoneIDstring, accessRuleIDstring) (*AccessRuleResponse,error)
ZoneAccessRule returns the details of a zone's access rule.
API reference:https://api.cloudflare.com/#firewall-access-rule-for-a-zone-list-access-rules
func (*API)ZoneActivationCheck¶added inv0.7.2
ZoneActivationCheck initiates another zone activation check for newly-created zones.
API reference:https://api.cloudflare.com/#zone-initiate-another-zone-activation-check
func (*API)ZoneAnalyticsByColocation¶added inv0.7.2
func (api *API) ZoneAnalyticsByColocation(ctxcontext.Context, zoneIDstring, optionsZoneAnalyticsOptions) ([]ZoneAnalyticsColocation,error)
ZoneAnalyticsByColocation returns zone analytics information by datacenter.
API reference:https://api.cloudflare.com/#zone-analytics-analytics-by-co-locations
func (*API)ZoneAnalyticsDashboard¶added inv0.7.2
func (api *API) ZoneAnalyticsDashboard(ctxcontext.Context, zoneIDstring, optionsZoneAnalyticsOptions) (ZoneAnalyticsData,error)
ZoneAnalyticsDashboard returns zone analytics information.
API reference:https://api.cloudflare.com/#zone-analytics-dashboard
func (*API)ZoneCacheVariants¶added inv0.32.0
ZoneCacheVariants returns information about the current cache variants
API reference:https://api.cloudflare.com/#zone-cache-settings-get-variants-setting
func (*API)ZoneDNSSECSetting¶added inv0.13.5
ZoneDNSSECSetting returns the DNSSEC details of a zone
API reference:https://api.cloudflare.com/#dnssec-dnssec-details
func (*API)ZoneDetails¶added inv0.7.2
ZoneDetails fetches information about a zone.
API reference:https://api.cloudflare.com/#zone-zone-details
func (*API)ZoneExport¶added inv0.10.9
ZoneExport returns the text BIND config for the given zone
API reference:https://api.cloudflare.com/#dns-records-for-a-zone-export-dns-records
func (*API)ZoneIDByName¶added inv0.7.2
ZoneIDByName retrieves a zone's ID from the name.
func (*API)ZoneLevelAccessBookmark¶added inv0.36.0
func (api *API) ZoneLevelAccessBookmark(ctxcontext.Context, zoneID, bookmarkIDstring) (AccessBookmark,error)
ZoneLevelAccessBookmark returns a single zone level bookmark based on thebookmark ID.
API reference:https://api.cloudflare.com/#zone-level-access-bookmarks-access-bookmarks-details
func (*API)ZoneLevelAccessBookmarks¶added inv0.36.0
func (api *API) ZoneLevelAccessBookmarks(ctxcontext.Context, zoneIDstring, pageOptsPaginationOptions) ([]AccessBookmark,ResultInfo,error)
ZoneLevelAccessBookmarks returns all bookmarks within a zone.
API reference:https://api.cloudflare.com/#zone-level-access-bookmarks-list-access-bookmarks
func (*API)ZoneLockdown¶added inv0.8.0
func (api *API) ZoneLockdown(ctxcontext.Context, rc *ResourceContainer, idstring) (ZoneLockdown,error)
ZoneLockdown retrieves a Zone ZoneLockdown rule (based on the ID) for the given zone ID.
API reference:https://api.cloudflare.com/#zone-ZoneLockdown-ZoneLockdown-rule-details
func (*API)ZoneSSLSettings¶added inv0.7.4
ZoneSSLSettings returns information about SSL setting to the specified zone.
API reference:https://api.cloudflare.com/#zone-settings-get-ssl-setting
func (*API)ZoneSetPaused¶added inv0.7.2
ZoneSetPaused pauses Cloudflare service for the entire zone, sending alltraffic direct to the origin.
func (*API)ZoneSetPlan¶added inv0.7.2
ZoneSetPlan sets the rate plan of an existing zone.
Valid values for `planType` are "CF_FREE", "CF_PRO", "CF_BIZ" and"CF_ENT".
API reference:https://api.cloudflare.com/#zone-subscription-create-zone-subscription
func (*API)ZoneSetType¶added inv0.27.0
ZoneSetType toggles the type for an existing zone.
Valid values for `type` are "full" and "partial"
API reference:https://api.cloudflare.com/#zone-edit-zone
func (*API)ZoneSetVanityNS¶added inv0.7.2
ZoneSetVanityNS sets custom nameservers for the zone.These names must be within the same zone.
func (*API)ZoneSettings¶added inv0.8.5
ZoneSettings returns all of the settings for a given zone.
API reference:https://api.cloudflare.com/#zone-settings-get-all-zone-settings
func (*API)ZoneUpdatePlan¶added inv0.10.6
ZoneUpdatePlan updates the rate plan of an existing zone.
Valid values for `planType` are "CF_FREE", "CF_PRO", "CF_BIZ" and"CF_ENT".
API reference:https://api.cloudflare.com/#zone-subscription-update-zone-subscription
typeAPIResponse¶added inv0.49.0
APIResponse holds the structure for a response from the API. It looks alotlike `http.Response` however, uses a `[]byte` for the `Body` instead of a`io.ReadCloser`.
This may go away in the experimental client in favour of `http.Response`.
typeAPIShield¶added inv0.49.0
type APIShield struct {AuthIdCharacteristics []AuthIdCharacteristics `json:"auth_id_characteristics"`}
APIShield is all the available options underconfiguration?properties=auth_id_characteristics.
typeAPIShieldBasicOperation¶added inv0.78.0
type APIShieldBasicOperation struct {Methodstring `json:"method"`Hoststring `json:"host"`Endpointstring `json:"endpoint"`}
APIShieldBasicOperation should be used when creating an operation in API Shield Endpoint Management.
typeAPIShieldCreateSchemaEvent¶added inv0.79.0
type APIShieldCreateSchemaEvent struct {// Code identifies the event that occurredCodeuint `json:"code"`// Message describes the event that occurredMessagestring `json:"message"`}
APIShieldCreateSchemaEvent is an event log that occurred during processing.
typeAPIShieldCreateSchemaEventWithLocation¶added inv0.79.0
type APIShieldCreateSchemaEventWithLocation struct {APIShieldCreateSchemaEvent// Location is where the event occurred// Seehttps://goessner.net/articles/JsonPath/ for JSONPath specification.Locationstring `json:"location,omitempty"`}
APIShieldCreateSchemaEventWithLocation is an event log that occurred during processing, with the locationin the schema where the event occurred.
typeAPIShieldCreateSchemaEventWithLocations¶added inv0.79.0
type APIShieldCreateSchemaEventWithLocations struct {APIShieldCreateSchemaEvent// Locations lists JSONPath locations where the event occurred// Seehttps://goessner.net/articles/JsonPath/ for JSONPath specificationLocations []string `json:"locations"`}
APIShieldCreateSchemaEventWithLocations is an event log that occurred during processing, with the location(s)in the schema where the event occurred.
func (APIShieldCreateSchemaEventWithLocations)String¶added inv0.79.0
func (cseAPIShieldCreateSchemaEventWithLocations) String()string
typeAPIShieldCreateSchemaEvents¶added inv0.79.0
type APIShieldCreateSchemaEvents struct {Critical *APIShieldCreateSchemaEventWithLocation `json:"critical,omitempty"`Errors []APIShieldCreateSchemaEventWithLocations `json:"errors,omitempty"`Warnings []APIShieldCreateSchemaEventWithLocations `json:"warnings,omitempty"`}
APIShieldCreateSchemaEvents are event logs that occurred during processing.
The logs are separated into levels of severity.
typeAPIShieldCreateSchemaResponse¶added inv0.79.0
type APIShieldCreateSchemaResponse struct {ResultAPIShieldCreateSchemaResult `json:"result"`Response}
APIShieldCreateSchemaResponse represents the response from the POST api_gateway/user_schemas endpoint.
typeAPIShieldCreateSchemaResult¶added inv0.79.0
type APIShieldCreateSchemaResult struct {// APIShieldSchema is the schema that was createdSchemaAPIShieldSchema `json:"schema"`// APIShieldCreateSchemaEvents are non-critical event logs that occurred during processing.EventsAPIShieldCreateSchemaEvents `json:"upload_details"`}
APIShieldCreateSchemaResult represents the successful result of creating a schema in Schema Validation 2.0.
typeAPIShieldDeleteOperationResponse¶added inv0.78.0
type APIShieldDeleteOperationResponse struct {Result interface{} `json:"result"`Response}
APIShieldDeleteOperationResponse represents the response from the api_gateway/operations/{id} endpoint (DELETE).
typeAPIShieldDeleteSchemaResponse¶added inv0.79.0
type APIShieldDeleteSchemaResponse struct {Result interface{} `json:"result"`Response}
APIShieldDeleteSchemaResponse represents the response from the DELETE api_gateway/user_schemas/{id} endpoint.
typeAPIShieldDiscoveryOperation¶added inv0.79.0
type APIShieldDiscoveryOperation struct {// ID represents the ID of the operation, formatted as UUIDIDstring `json:"id"`// Origin represents the API discovery engine(s) that discovered this operationOrigin []APIShieldDiscoveryOrigin `json:"origin"`// State represents the state of operation in API DiscoveryStateAPIShieldDiscoveryState `json:"state"`// LastUpdated timestamp of when this operation was last updatedLastUpdated *time.Time `json:"last_updated"`// Features are additional data about the operationFeatures map[string]any `json:"features,omitempty"`Methodstring `json:"method"`Hoststring `json:"host"`Endpointstring `json:"endpoint"`}
APIShieldDiscoveryOperation is an operation that was discovered by API Discovery.
typeAPIShieldDiscoveryOrigin¶added inv0.79.0
type APIShieldDiscoveryOriginstring
APIShieldDiscoveryOrigin is an enumeration on what discovery engine an operation was discovered by.
const (// APIShieldDiscoveryOriginML discovered operations that were sourced using ML API Discovery.APIShieldDiscoveryOriginMLAPIShieldDiscoveryOrigin = "ML"// APIShieldDiscoveryOriginSessionIdentifier discovered operations that were sourced using Session Identifier// API Discovery.APIShieldDiscoveryOriginSessionIdentifierAPIShieldDiscoveryOrigin = "SessionIdentifier")
typeAPIShieldDiscoveryState¶added inv0.79.0
type APIShieldDiscoveryStatestring
APIShieldDiscoveryState is an enumeration on states a discovery operation can be in.
const (// APIShieldDiscoveryStateReview discovered operations that are not saved into API Shield Endpoint Management.APIShieldDiscoveryStateReviewAPIShieldDiscoveryState = "review"// APIShieldDiscoveryStateSaved discovered operations that are already saved into API Shield Endpoint Management.APIShieldDiscoveryStateSavedAPIShieldDiscoveryState = "saved"// APIShieldDiscoveryStateIgnored discovered operations that have been marked as ignored.APIShieldDiscoveryStateIgnoredAPIShieldDiscoveryState = "ignored")
typeAPIShieldGetOperationResponse¶added inv0.78.0
type APIShieldGetOperationResponse struct {ResultAPIShieldOperation `json:"result"`Response}
APIShieldGetOperationResponse represents the response from the api_gateway/operations/{id} endpoint.
typeAPIShieldGetOperationsResponse¶added inv0.78.0
type APIShieldGetOperationsResponse struct {Result []APIShieldOperation `json:"result"`ResultInfo `json:"result_info"`Response}
APIShieldGetOperationsResponse represents the response from the api_gateway/operations endpoint.
typeAPIShieldGetSchemaResponse¶added inv0.79.0
type APIShieldGetSchemaResponse struct {ResultAPIShieldSchema `json:"result"`Response}
APIShieldGetSchemaResponse represents the response from the GET api_gateway/user_schemas/{id} endpoint.
typeAPIShieldListDiscoveryOperationsResponse¶added inv0.79.0
type APIShieldListDiscoveryOperationsResponse struct {Result []APIShieldDiscoveryOperation `json:"result"`ResultInfo `json:"result_info"`Response}
APIShieldListDiscoveryOperationsResponse represents the response from the api_gateway/discovery/operations endpoint.
typeAPIShieldListOperationsFilters¶added inv0.78.0
type APIShieldListOperationsFilters struct {// Hosts filters results to only include the specified hosts.Hosts []string `url:"host,omitempty"`// Methods filters results to only include the specified methods.Methods []string `url:"method,omitempty"`// Endpoint filter results to only include endpoints containing this pattern.Endpointstring `url:"endpoint,omitempty"`}
APIShieldListOperationsFilters represents the filtering query parameters to set when retrieving operations
API documentation:https://developers.cloudflare.com/api/resources/api_gateway/subresources/operations/methods/list/
typeAPIShieldListSchemasResponse¶added inv0.79.0
type APIShieldListSchemasResponse struct {Result []APIShieldSchema `json:"result"`ResultInfo `json:"result_info"`Response}
APIShieldListSchemasResponse represents the response from the GET api_gateway/user_schemas endpoint.
typeAPIShieldOperation¶added inv0.78.0
type APIShieldOperation struct {APIShieldBasicOperationIDstring `json:"operation_id"`LastUpdated *time.Time `json:"last_updated"`Features map[string]any `json:"features,omitempty"`}
APIShieldOperation represents an operation stored in API Shield Endpoint Management.
typeAPIShieldOperationSchemaValidationSettings¶added inv0.80.0
type APIShieldOperationSchemaValidationSettings struct {// MitigationAction is the mitigation to apply to the operationMitigationAction *string `json:"mitigation_action" url:"-"`}
APIShieldOperationSchemaValidationSettings represents operation level schema validation settings forAPI Shield Schema Validation 2.0.
typeAPIShieldOperationSchemaValidationSettingsResponse¶added inv0.80.0
type APIShieldOperationSchemaValidationSettingsResponse struct {ResultAPIShieldOperationSchemaValidationSettings `json:"result"`Response}
APIShieldOperationSchemaValidationSettingsResponse represents the response from the GET api_gateway/operation/{operationID}/schema_validation endpoint.
typeAPIShieldPatchDiscoveryOperationResponse¶added inv0.79.0
type APIShieldPatchDiscoveryOperationResponse struct {ResultUpdateAPIShieldDiscoveryOperation `json:"result"`Response}
APIShieldPatchDiscoveryOperationResponse represents the response from the PATCH api_gateway/discovery/operations/{id} endpoint.
typeAPIShieldPatchDiscoveryOperationsResponse¶added inv0.79.0
type APIShieldPatchDiscoveryOperationsResponse struct {ResultUpdateAPIShieldDiscoveryOperationsParams `json:"result"`Response}
APIShieldPatchDiscoveryOperationsResponse represents the response from the PATCH api_gateway/discovery/operations endpoint.
typeAPIShieldPatchSchemaResponse¶added inv0.79.0
type APIShieldPatchSchemaResponse struct {ResultAPIShieldSchema `json:"result"`Response}
APIShieldPatchSchemaResponse represents the response from the PATCH api_gateway/user_schemas/{id} endpoint.
typeAPIShieldResponse¶added inv0.49.0
type APIShieldResponse struct {ResultAPIShield `json:"result"`ResponseResultInfo `json:"result_info"`}
APIShieldResponse represents the response from the api_gateway/configuration endpoint.
typeAPIShieldSchema¶added inv0.79.0
type APIShieldSchema struct {// ID represents the ID of the schemaIDstring `json:"schema_id"`// Name represents the name of the schemaNamestring `json:"name"`// Kind of the schemaKindstring `json:"kind"`// Source is the contents of the schemaSourcestring `json:"source,omitempty"`// CreatedAt is the time the schema was createdCreatedAt *time.Time `json:"created_at,omitempty"`// ValidationEnabled controls if schema is used for validationValidationEnabledbool `json:"validation_enabled,omitempty"`}
APIShieldSchema represents a schema stored in API Shield Schema Validation 2.0.
typeAPIShieldSchemaValidationSettings¶added inv0.80.0
type APIShieldSchemaValidationSettings struct {// DefaultMitigationAction is the mitigation to apply when there is no operation-level// mitigation action definedDefaultMitigationActionstring `json:"validation_default_mitigation_action" url:"-"`// OverrideMitigationAction when set, will apply to all requests regardless of// zone-level/operation-level settingOverrideMitigationAction *string `json:"validation_override_mitigation_action" url:"-"`}
APIShieldSchemaValidationSettings represents zone level schema validation settings forAPI Shield Schema Validation 2.0.
typeAPIShieldSchemaValidationSettingsResponse¶added inv0.80.0
type APIShieldSchemaValidationSettingsResponse struct {ResultAPIShieldSchemaValidationSettings `json:"result"`Response}
APIShieldSchemaValidationSettingsResponse represents the response from the GET api_gateway/settings/schema_validation endpoint.
typeAPIToken¶added inv0.13.5
type APIToken struct {IDstring `json:"id,omitempty"`Namestring `json:"name,omitempty"`Statusstring `json:"status,omitempty"`IssuedOn *time.Time `json:"issued_on,omitempty"`ModifiedOn *time.Time `json:"modified_on,omitempty"`NotBefore *time.Time `json:"not_before,omitempty"`ExpiresOn *time.Time `json:"expires_on,omitempty"`Policies []APITokenPolicies `json:"policies,omitempty"`Condition *APITokenCondition `json:"condition,omitempty"`Valuestring `json:"value,omitempty"`}
APIToken is the full API token.
typeAPITokenCondition¶added inv0.13.5
type APITokenCondition struct {RequestIP *APITokenRequestIPCondition `json:"request.ip,omitempty"`}
APITokenCondition is the outer structure for request conditions (currentlyonly IPs).
typeAPITokenListResponse¶added inv0.13.5
APITokenListResponse is the API response for multiple API tokens.
typeAPITokenPermissionGroups¶added inv0.13.5
type APITokenPermissionGroups struct {IDstring `json:"id"`Namestring `json:"name,omitempty"`Scopes []string `json:"scopes,omitempty"`}
APITokenPermissionGroups is the permission groups associated with API tokens.
typeAPITokenPermissionGroupsResponse¶added inv0.13.5
type APITokenPermissionGroupsResponse struct {ResponseResult []APITokenPermissionGroups `json:"result"`}
APITokenPermissionGroupsResponse is the API response for the availablepermission groups.
typeAPITokenPolicies¶added inv0.13.5
type APITokenPolicies struct {IDstring `json:"id,omitempty"`Effectstring `json:"effect"`Resources map[string]interface{} `json:"resources"`PermissionGroups []APITokenPermissionGroups `json:"permission_groups"`}
APITokenPolicies are policies attached to an API token.
typeAPITokenRequestIPCondition¶added inv0.13.5
type APITokenRequestIPCondition struct {In []string `json:"in,omitempty"`NotIn []string `json:"not_in,omitempty"`}
APITokenRequestIPCondition is the struct for adding an IP restriction to anAPI token.
typeAPITokenResponse¶added inv0.13.5
APITokenResponse is the API response for a single API token.
typeAPITokenRollResponse¶added inv0.13.5
APITokenRollResponse is the API response when rolling the token.
typeAPITokenVerifyBody¶added inv0.13.5
type APITokenVerifyBody struct {IDstring `json:"id"`Statusstring `json:"status"`NotBeforetime.Time `json:"not_before"`ExpiresOntime.Time `json:"expires_on"`}
APITokenVerifyBody is the API body for verifying a token.
typeAPITokenVerifyResponse¶added inv0.13.5
type APITokenVerifyResponse struct {ResponseResultAPITokenVerifyBody `json:"result"`}
APITokenVerifyResponse is the API response for verifying a token.
typeASNInfo¶added inv0.44.0
type ASNInfo struct {ASNint `json:"asn"`Descriptionstring `json:"description"`Countrystring `json:"country"`Typestring `json:"type"`DomainCountint `json:"domain_count"`TopDomains []string `json:"top_domains"`}
ASNInfo represents ASN information.
typeAccessAppLauncherCustomization¶added inv0.80.0
type AccessAppLauncherCustomization struct {LandingPageDesignAccessLandingPageDesign `json:"landing_page_design"`LogoURLstring `json:"app_launcher_logo_url"`HeaderBackgroundColorstring `json:"header_bg_color"`BackgroundColorstring `json:"bg_color"`FooterLinks []AccessFooterLink `json:"footer_links"`SkipAppLauncherLoginPage *bool `json:"skip_app_launcher_login_page,omitempty"`}
typeAccessApplication¶added inv0.9.0
type AccessApplication struct {GatewayRules []AccessApplicationGatewayRule `json:"gateway_rules,omitempty"`AllowedIdps []string `json:"allowed_idps,omitempty"`CustomDenyMessagestring `json:"custom_deny_message,omitempty"`LogoURLstring `json:"logo_url,omitempty"`AUDstring `json:"aud,omitempty"`Domainstring `json:"domain"`DomainTypeAccessDestinationType `json:"domain_type,omitempty"`Destinations []AccessDestination `json:"destinations"`TypeAccessApplicationType `json:"type,omitempty"`SessionDurationstring `json:"session_duration,omitempty"`SameSiteCookieAttributestring `json:"same_site_cookie_attribute,omitempty"`CustomDenyURLstring `json:"custom_deny_url,omitempty"`CustomNonIdentityDenyURLstring `json:"custom_non_identity_deny_url,omitempty"`Namestring `json:"name"`IDstring `json:"id,omitempty"`PrivateAddressstring `json:"private_address"`CorsHeaders *AccessApplicationCorsHeaders `json:"cors_headers,omitempty"`CreatedAt *time.Time `json:"created_at,omitempty"`UpdatedAt *time.Time `json:"updated_at,omitempty"`SaasApplication *SaasApplication `json:"saas_app,omitempty"`AutoRedirectToIdentity *bool `json:"auto_redirect_to_identity,omitempty"`SkipInterstitial *bool `json:"skip_interstitial,omitempty"`AppLauncherVisible *bool `json:"app_launcher_visible,omitempty"`EnableBindingCookie *bool `json:"enable_binding_cookie,omitempty"`HttpOnlyCookieAttribute *bool `json:"http_only_cookie_attribute,omitempty"`ServiceAuth401Redirect *bool `json:"service_auth_401_redirect,omitempty"`PathCookieAttribute *bool `json:"path_cookie_attribute,omitempty"`AllowAuthenticateViaWarp *bool `json:"allow_authenticate_via_warp,omitempty"`OptionsPreflightBypass *bool `json:"options_preflight_bypass,omitempty"`CustomPages []string `json:"custom_pages,omitempty"`Tags []string `json:"tags,omitempty"`SCIMConfig *AccessApplicationSCIMConfig `json:"scim_config,omitempty"`Policies []AccessPolicy `json:"policies,omitempty"`TargetContexts *[]AccessInfrastructureTargetContext `json:"target_criteria,omitempty"`AccessAppLauncherCustomization}
AccessApplication represents an Access application.
typeAccessApplicationCorsHeaders¶added inv0.12.1
type AccessApplicationCorsHeaders struct {AllowedMethods []string `json:"allowed_methods,omitempty"`AllowedOrigins []string `json:"allowed_origins,omitempty"`AllowedHeaders []string `json:"allowed_headers,omitempty"`AllowAllMethodsbool `json:"allow_all_methods,omitempty"`AllowAllHeadersbool `json:"allow_all_headers,omitempty"`AllowAllOriginsbool `json:"allow_all_origins,omitempty"`AllowCredentialsbool `json:"allow_credentials,omitempty"`MaxAgeint `json:"max_age,omitempty"`}
AccessApplicationCorsHeaders represents the CORS HTTP headers for an AccessApplication.
typeAccessApplicationDetailResponse¶added inv0.9.0
type AccessApplicationDetailResponse struct {Successbool `json:"success"`Errors []string `json:"errors"`Messages []string `json:"messages"`ResultAccessApplication `json:"result"`}
AccessApplicationDetailResponse is the API response, containing a singleaccess application.
typeAccessApplicationGatewayRule¶added inv0.30.0
type AccessApplicationGatewayRule struct {IDstring `json:"id,omitempty"`}
typeAccessApplicationHybridAndImplicitOptions¶added inv0.97.0
typeAccessApplicationListResponse¶added inv0.9.0
type AccessApplicationListResponse struct {Result []AccessApplication `json:"result"`ResponseResultInfo `json:"result_info"`}
AccessApplicationListResponse represents the response from the listaccess applications endpoint.
typeAccessApplicationMultipleScimAuthentication¶added inv0.112.0
type AccessApplicationMultipleScimAuthentication []*AccessApplicationScimAuthenticationSingleJSON
typeAccessApplicationSCIMConfig¶added inv0.95.0
type AccessApplicationSCIMConfig struct {Enabled *bool `json:"enabled,omitempty"`RemoteURIstring `json:"remote_uri,omitempty"`Authentication *AccessApplicationScimAuthenticationJson `json:"authentication,omitempty"`IdPUIDstring `json:"idp_uid,omitempty"`DeactivateOnDelete *bool `json:"deactivate_on_delete,omitempty"`Mappings []*AccessApplicationScimMapping `json:"mappings,omitempty"`}
AccessApplicationSCIMConfig represents the configuration for provisioning to an Access Application via SCIM.
typeAccessApplicationScimAuthentication¶added inv0.95.0
type AccessApplicationScimAuthentication interface {// contains filtered or unexported methods}
typeAccessApplicationScimAuthenticationHttpBasic¶added inv0.95.0
typeAccessApplicationScimAuthenticationJson¶added inv0.95.0
type AccessApplicationScimAuthenticationJson struct {ValueAccessApplicationScimAuthentication}
func (*AccessApplicationScimAuthenticationJson)MarshalJSON¶added inv0.95.0
func (a *AccessApplicationScimAuthenticationJson) MarshalJSON() ([]byte,error)
func (*AccessApplicationScimAuthenticationJson)UnmarshalJSON¶added inv0.95.0
func (a *AccessApplicationScimAuthenticationJson) UnmarshalJSON(buf []byte)error
typeAccessApplicationScimAuthenticationOauth2¶added inv0.95.0
typeAccessApplicationScimAuthenticationOauthBearerToken¶added inv0.95.0
type AccessApplicationScimAuthenticationOauthBearerToken struct {Tokenstring `json:"token"`// contains filtered or unexported fields}
typeAccessApplicationScimAuthenticationScheme¶added inv0.95.0
type AccessApplicationScimAuthenticationSchemestring
const (AccessApplicationScimAuthenticationSchemeHttpBasicAccessApplicationScimAuthenticationScheme = "httpbasic"AccessApplicationScimAuthenticationSchemeOauthBearerTokenAccessApplicationScimAuthenticationScheme = "oauthbearertoken"AccessApplicationScimAuthenticationSchemeOauth2AccessApplicationScimAuthenticationScheme = "oauth2"AccessApplicationScimAuthenticationAccessServiceTokenAccessApplicationScimAuthenticationScheme = "access_service_token")
typeAccessApplicationScimAuthenticationServiceToken¶added inv0.112.0
type AccessApplicationScimAuthenticationServiceToken struct {ClientIDstring `json:"client_id,omitempty" validate:"required_with=ClientSecret,excluded_with=ServiceTokenID"`ClientSecretstring `json:"client_secret,omitempty" validate:"required_with=ClientID,excluded_with=ServiceTokenID"`// contains filtered or unexported fields}
typeAccessApplicationScimAuthenticationSingleJSON¶added inv0.112.0
type AccessApplicationScimAuthenticationSingleJSON struct {ValueSingleScimAuthentication}
func (AccessApplicationScimAuthenticationSingleJSON)MarshalJSON¶added inv0.112.0
func (aAccessApplicationScimAuthenticationSingleJSON) MarshalJSON() ([]byte,error)
func (*AccessApplicationScimAuthenticationSingleJSON)UnmarshalJSON¶added inv0.112.0
func (a *AccessApplicationScimAuthenticationSingleJSON) UnmarshalJSON(buf []byte)error
typeAccessApplicationScimMapping¶added inv0.95.0
type AccessApplicationScimMapping struct {Schemastring `json:"schema"`Enabled *bool `json:"enabled,omitempty"`Filterstring `json:"filter,omitempty"`TransformJsonatastring `json:"transform_jsonata,omitempty"`Operations *AccessApplicationScimMappingOperations `json:"operations,omitempty"`Strictnessstring `json:"strictness,omitempty"`}
typeAccessApplicationScimMappingOperations¶added inv0.95.0
typeAccessApplicationType¶added inv0.18.0
type AccessApplicationTypestring
AccessApplicationType represents the application type.
const (SelfHostedAccessApplicationType = "self_hosted"SSHAccessApplicationType = "ssh"VNCAccessApplicationType = "vnc"BisoAccessApplicationType = "biso"AppLauncherAccessApplicationType = "app_launcher"WarpAccessApplicationType = "warp"BookmarkAccessApplicationType = "bookmark"SaasAccessApplicationType = "saas"InfrastructureAccessApplicationType = "infrastructure")
These constants represent all valid application types.
typeAccessApprovalGroup¶added inv0.23.0
typeAccessAuditLogFilterOptions¶added inv0.12.1
AccessAuditLogFilterOptions provides the structure of available audit logfilters.
func (AccessAuditLogFilterOptions)Encode¶added inv0.12.1
func (aAccessAuditLogFilterOptions) Encode()string
Encode is a custom method for encoding the filter options into a usable HTTPquery parameter string.
typeAccessAuditLogListResponse¶added inv0.12.1
type AccessAuditLogListResponse struct {Result []AccessAuditLogRecord `json:"result"`ResponseResultInfo `json:"result_info"`}
AccessAuditLogListResponse represents the response from the listaccess applications endpoint.
typeAccessAuditLogRecord¶added inv0.12.1
type AccessAuditLogRecord struct {UserEmailstring `json:"user_email"`IPAddressstring `json:"ip_address"`AppUIDstring `json:"app_uid"`AppDomainstring `json:"app_domain"`Actionstring `json:"action"`Connectionstring `json:"connection"`Allowedbool `json:"allowed"`CreatedAt *time.Time `json:"created_at"`RayIDstring `json:"ray_id"`}
AccessAuditLogRecord is the structure of a single Access Audit Log entry.
typeAccessAuthContext¶added inv0.75.0
type AccessAuthContext struct {IDstring `json:"id"`UIDstring `json:"uid"`ACIDstring `json:"ac_id"`DisplayNamestring `json:"display_name"`Descriptionstring `json:"description"`}
AccessAuthContext represents an Access Azure Identity Provider Auth Context.
typeAccessAuthContextsListResponse¶added inv0.75.0
type AccessAuthContextsListResponse struct {Result []AccessAuthContext `json:"result"`Response}
AccessAuthContextsListResponse represents the response from the listAccess Auth Contexts endpoint.
typeAccessBookmark¶added inv0.36.0
type AccessBookmark struct {IDstring `json:"id,omitempty"`Domainstring `json:"domain"`Namestring `json:"name"`LogoURLstring `json:"logo_url,omitempty"`AppLauncherVisible *bool `json:"app_launcher_visible,omitempty"`CreatedAt *time.Time `json:"created_at,omitempty"`UpdatedAt *time.Time `json:"updated_at,omitempty"`}
AccessBookmark represents an Access bookmark application.
typeAccessBookmarkDetailResponse¶added inv0.36.0
type AccessBookmarkDetailResponse struct {ResponseResultAccessBookmark `json:"result"`}
AccessBookmarkDetailResponse is the API response, containing a singleaccess bookmark.
typeAccessBookmarkListResponse¶added inv0.36.0
type AccessBookmarkListResponse struct {Result []AccessBookmark `json:"result"`ResponseResultInfo `json:"result_info"`}
AccessBookmarkListResponse represents the response from the listaccess bookmarks endpoint.
typeAccessCACertificate¶added inv0.12.1
type AccessCACertificate struct {IDstring `json:"id"`Audstring `json:"aud"`PublicKeystring `json:"public_key"`}
AccessCACertificate is the structure of the CA certificate used forshort-lived certificates.
typeAccessCACertificateListResponse¶added inv0.12.1
type AccessCACertificateListResponse struct {ResponseResult []AccessCACertificate `json:"result"`ResultInfo}
AccessCACertificateListResponse represents the response of all CAcertificates within Access.
typeAccessCACertificateResponse¶added inv0.12.1
type AccessCACertificateResponse struct {ResponseResultAccessCACertificate `json:"result"`}
AccessCACertificateResponse represents the response of a single CAcertificate.
typeAccessConfig¶added inv0.68.0
type AccessConfig struct {// Required when set to true will fail every request that does not arrive// through an access authenticated endpoint.Requiredbool `yaml:"required" json:"required,omitempty"`// TeamName is the organization team name to get the public key certificates for.TeamNamestring `yaml:"teamName" json:"teamName"`// AudTag is the AudTag to verify access JWT against.AudTag []string `yaml:"audTag" json:"audTag"`}
typeAccessCustomPage¶added inv0.74.0
type AccessCustomPage struct {// The HTML content of the custom page.CustomHTMLstring `json:"custom_html,omitempty"`Namestring `json:"name,omitempty"`AppCountint `json:"app_count,omitempty"`TypeAccessCustomPageType `json:"type,omitempty"`UIDstring `json:"uid,omitempty"`}
typeAccessCustomPageListResponse¶added inv0.74.0
type AccessCustomPageListResponse struct {ResponseResult []AccessCustomPage `json:"result"`ResultInfo `json:"result_info"`}
typeAccessCustomPageResponse¶added inv0.74.0
type AccessCustomPageResponse struct {ResponseResultAccessCustomPage `json:"result"`}
typeAccessCustomPageType¶added inv0.74.0
type AccessCustomPageTypestring
const (ForbiddenAccessCustomPageType = "forbidden"IdentityDeniedAccessCustomPageType = "identity_denied")
typeAccessDestination¶added inv0.111.0
type AccessDestination struct {TypeAccessDestinationType `json:"type"`// URI is required and only used for public destinations.URIstring `json:"uri,omitempty"`// Hostname can only be used for private destinations.Hostnamestring `json:"hostname,omitempty"`// CIDR can only be used for private destinations.CIDRstring `json:"cidr,omitempty"`// PortRange can only be used for private destinations.PortRangestring `json:"port_range,omitempty"`// L4Protocol can only be used for private destinations.L4Protocolstring `json:"l4_protocol,omitempty"`// VnetID can only be used for private destinations.VnetIDstring `json:"vnet_id,omitempty"`}
typeAccessDestinationType¶added inv0.111.0
type AccessDestinationTypestring
const (AccessDestinationPublicAccessDestinationType = "public"AccessDestinationPrivateAccessDestinationType = "private")
typeAccessFooterLink¶added inv0.80.0
typeAccessGroup¶added inv0.10.5
type AccessGroup struct {IDstring `json:"id,omitempty"`CreatedAt *time.Time `json:"created_at"`UpdatedAt *time.Time `json:"updated_at"`Namestring `json:"name"`// The include group works like an OR logical operator. The user must// satisfy one of the rules.Include []interface{} `json:"include"`// The exclude group works like a NOT logical operator. The user must// not satisfy all the rules in exclude.Exclude []interface{} `json:"exclude"`// The require group works like a AND logical operator. The user must// satisfy all the rules in require.Require []interface{} `json:"require"`}
AccessGroup defines a group for allowing or disallowing access toone or more Access applications.
typeAccessGroupAccessGroup¶added inv0.10.5
type AccessGroupAccessGroup struct {Group struct {IDstring `json:"id"`} `json:"group"`}
AccessGroupAccessGroup is used for managing access based on anaccess group.
typeAccessGroupAnyValidServiceToken¶added inv0.11.2
type AccessGroupAnyValidServiceToken struct {AnyValidServiceToken struct{} `json:"any_valid_service_token"`}
AccessGroupAnyValidServiceToken is used for managing access for all validservice tokens (not restricted).
typeAccessGroupAuthMethod¶added inv0.13.1
type AccessGroupAuthMethod struct {AuthMethod struct {AuthMethodstring `json:"auth_method"`} `json:"auth_method"`}
AccessGroupAuthMethod is used for managing access by the "amr"(Authentication Methods References) identifier. For example, anapplication may want to require that users authenticate using a hardwarekey by setting the "auth_method" to "swk". A list of values are listedhere:https://tools.ietf.org/html/rfc8176#section-2. Custom values aresupported as well.
typeAccessGroupAzure¶added inv0.11.5
type AccessGroupAzure struct {AzureAD struct {IDstring `json:"id"`IdentityProviderIDstring `json:"identity_provider_id"`} `json:"azureAD"`}
AccessGroupAzure is used to configure access based on a Azure group.
typeAccessGroupAzureAuthContext¶added inv0.75.0
type AccessGroupAzureAuthContext struct {AuthContext struct {IDstring `json:"id"`IdentityProviderIDstring `json:"identity_provider_id"`ACIDstring `json:"ac_id"`} `json:"auth_context"`}
AccessGroupAzureAuthContext is used to configure access based on Azure auth contexts.
typeAccessGroupCertificate¶added inv0.11.5
type AccessGroupCertificate struct {Certificate struct{} `json:"certificate"`}
AccessGroupCertificate is used for managing access to based on a validmTLS certificate being presented.
typeAccessGroupCertificateCommonName¶added inv0.11.5
type AccessGroupCertificateCommonName struct {CommonName struct {CommonNamestring `json:"common_name"`} `json:"common_name"`}
AccessGroupCertificateCommonName is used for managing access based on acommon name within a certificate.
typeAccessGroupDetailResponse¶added inv0.10.5
type AccessGroupDetailResponse struct {Successbool `json:"success"`Errors []string `json:"errors"`Messages []string `json:"messages"`ResultAccessGroup `json:"result"`}
AccessGroupDetailResponse is the API response, containing a singleaccess group.
typeAccessGroupDevicePosture¶added inv0.17.0
type AccessGroupDevicePosture struct {DevicePosture struct {IDstring `json:"integration_uid"`} `json:"device_posture"`}
AccessGroupDevicePosture restricts the application to specific devices.
typeAccessGroupEmail¶added inv0.10.5
type AccessGroupEmail struct {Email struct {Emailstring `json:"email"`} `json:"email"`}
AccessGroupEmail is used for managing access based on the email.For example, restrict access to users with the email addresses`test@example.com` or `someone@example.com`.
typeAccessGroupEmailDomain¶added inv0.10.5
type AccessGroupEmailDomain struct {EmailDomain struct {Domainstring `json:"domain"`} `json:"email_domain"`}
AccessGroupEmailDomain is used for managing access based on an emaildomain such as `example.com` instead of individual addresses.
typeAccessGroupEmailList¶added inv0.84.0
type AccessGroupEmailList struct {EmailList struct {IDstring `json:"id"`} `json:"email_list"`}
AccessGroupEmailList is used for managing access based on the emaillist. For example, restrict access to users with the email addressesin the email list with the ID `1234567890abcdef1234567890abcdef`.
typeAccessGroupEveryone¶added inv0.10.5
type AccessGroupEveryone struct {Everyone struct{} `json:"everyone"`}
AccessGroupEveryone is used for managing access to everyone.
typeAccessGroupExternalEvaluation¶added inv0.40.0
type AccessGroupExternalEvaluation struct {ExternalEvaluation struct {EvaluateURLstring `json:"evaluate_url"`KeysURLstring `json:"keys_url"`} `json:"external_evaluation"`}
AccessGroupExternalEvaluation is used for passing user identity to an external url.
typeAccessGroupGSuite¶added inv0.11.5
type AccessGroupGSuite struct {Gsuite struct {Emailstring `json:"email"`IdentityProviderIDstring `json:"identity_provider_id"`} `json:"gsuite"`}
AccessGroupGSuite is used to configure access based on GSuite group.
typeAccessGroupGeo¶added inv0.13.3
type AccessGroupGeo struct {Geo struct {CountryCodestring `json:"country_code"`} `json:"geo"`}
AccessGroupGeo is used for managing access based on the country code.
typeAccessGroupGitHub¶added inv0.11.5
type AccessGroupGitHub struct {GitHubOrganization struct {Namestring `json:"name"`Teamstring `json:"team,omitempty"`IdentityProviderIDstring `json:"identity_provider_id"`} `json:"github-organization"`}
AccessGroupGitHub is used to configure access based on a GitHub organisation.
typeAccessGroupIP¶added inv0.10.5
type AccessGroupIP struct {IP struct {IPstring `json:"ip"`} `json:"ip"`}
AccessGroupIP is used for managing access based in the IP. Itaccepts individual IPs or CIDRs.
typeAccessGroupIPList¶added inv0.44.0
type AccessGroupIPList struct {IPList struct {IDstring `json:"id"`} `json:"ip_list"`}
AccessGroupIPList restricts the application to specific teams_list of ips.
typeAccessGroupListResponse¶added inv0.10.5
type AccessGroupListResponse struct {Result []AccessGroup `json:"result"`ResponseResultInfo `json:"result_info"`}
AccessGroupListResponse represents the response from the listaccess group endpoint.
typeAccessGroupLoginMethod¶added inv0.16.0
type AccessGroupLoginMethod struct {LoginMethod struct {IDstring `json:"id"`} `json:"login_method"`}
AccessGroupLoginMethod restricts the application to specific IdP instances.
typeAccessGroupOkta¶added inv0.11.5
type AccessGroupOkta struct {Okta struct {Namestring `json:"name"`IdentityProviderIDstring `json:"identity_provider_id"`} `json:"okta"`}
AccessGroupOkta is used to configure access based on a Okta group.
typeAccessGroupSAML¶added inv0.11.5
type AccessGroupSAML struct {Saml struct {AttributeNamestring `json:"attribute_name"`AttributeValuestring `json:"attribute_value"`IdentityProviderIDstring `json:"identity_provider_id"`} `json:"saml"`}
AccessGroupSAML is used to allow SAML users with a specific attributeconfiguration.
typeAccessGroupServiceToken¶added inv0.11.2
type AccessGroupServiceToken struct {ServiceToken struct {IDstring `json:"token_id"`} `json:"service_token"`}
AccessGroupServiceToken is used for managing access based on a specificservice token.
typeAccessIdentityProvider¶added inv0.10.1
type AccessIdentityProvider struct {IDstring `json:"id,omitempty"`Namestring `json:"name"`Typestring `json:"type"`ConfigAccessIdentityProviderConfiguration `json:"config"`ScimConfigAccessIdentityProviderScimConfiguration `json:"scim_config"`}
AccessIdentityProvider is the structure of the provider object.
typeAccessIdentityProviderConfiguration¶added inv0.11.2
type AccessIdentityProviderConfiguration struct {APITokenstring `json:"api_token,omitempty"`AppsDomainstring `json:"apps_domain,omitempty"`Attributes []string `json:"attributes,omitempty"`AuthURLstring `json:"auth_url,omitempty"`CentrifyAccountstring `json:"centrify_account,omitempty"`CentrifyAppIDstring `json:"centrify_app_id,omitempty"`CertsURLstring `json:"certs_url,omitempty"`ClientIDstring `json:"client_id,omitempty"`ClientSecretstring `json:"client_secret,omitempty"`Claims []string `json:"claims,omitempty"`Scopes []string `json:"scopes,omitempty"`DirectoryIDstring `json:"directory_id,omitempty"`EmailAttributeNamestring `json:"email_attribute_name,omitempty"`EmailClaimNamestring `json:"email_claim_name,omitempty"`IdpPublicCertstring `json:"idp_public_cert,omitempty"`IssuerURLstring `json:"issuer_url,omitempty"`OktaAccountstring `json:"okta_account,omitempty"`OktaAuthorizationServerIDstring `json:"authorization_server_id,omitempty"`OneloginAccountstring `json:"onelogin_account,omitempty"`PingEnvIDstring `json:"ping_env_id,omitempty"`RedirectURLstring `json:"redirect_url,omitempty"`SignRequestbool `json:"sign_request,omitempty"`SsoTargetURLstring `json:"sso_target_url,omitempty"`SupportGroupsbool `json:"support_groups,omitempty"`TokenURLstring `json:"token_url,omitempty"`PKCEEnabled *bool `json:"pkce_enabled,omitempty"`ConditionalAccessEnabledbool `json:"conditional_access_enabled,omitempty"`}
AccessIdentityProviderConfiguration is the combined structure of *all*identity provider configuration fields. This is done to simplify the use ofAccess products and their relationship to each other.
API reference:https://developers.cloudflare.com/access/configuring-identity-providers/
typeAccessIdentityProviderResponse¶added inv0.71.0
type AccessIdentityProviderResponse struct {ResponseResultAccessIdentityProvider `json:"result"`}
AccessIdentityProviderResponse is the API response for a singleAccess Identity Provider.
typeAccessIdentityProviderScimConfiguration¶added inv0.64.0
type AccessIdentityProviderScimConfiguration struct {Enabledbool `json:"enabled,omitempty"`Secretstring `json:"secret,omitempty"`UserDeprovisionbool `json:"user_deprovision,omitempty"`SeatDeprovisionbool `json:"seat_deprovision,omitempty"`GroupMemberDeprovisionbool `json:"group_member_deprovision,omitempty"`IdentityUpdateBehaviorstring `json:"identity_update_behavior,omitempty"`}
typeAccessIdentityProvidersListResponse¶added inv0.10.1
type AccessIdentityProvidersListResponse struct {ResponseResult []AccessIdentityProvider `json:"result"`ResultInfo `json:"result_info"`}
AccessIdentityProvidersListResponse is the API response for multipleAccess Identity Providers.
typeAccessInfrastructureConnectionRules¶added inv0.106.0
type AccessInfrastructureConnectionRules struct {SSH *AccessInfrastructureConnectionRulesSSH `json:"ssh,omitempty"`}
typeAccessInfrastructureConnectionRulesSSH¶added inv0.106.0
typeAccessInfrastructureProtocol¶added inv0.106.0
type AccessInfrastructureProtocolstring
const (AccessInfrastructureSSHAccessInfrastructureProtocol = "SSH"AccessInfrastructureRDPAccessInfrastructureProtocol = "RDP")
typeAccessInfrastructureTargetContext¶added inv0.106.0
type AccessInfrastructureTargetContext struct {TargetAttributes map[string][]string `json:"target_attributes"`Portint `json:"port"`ProtocolAccessInfrastructureProtocol `json:"protocol"`}
typeAccessKeysConfig¶added inv0.23.0
typeAccessKeysConfigUpdateRequest¶added inv0.23.0
type AccessKeysConfigUpdateRequest struct {KeyRotationIntervalDaysint `json:"key_rotation_interval_days"`}
typeAccessLandingPageDesign¶added inv0.80.0
typeAccessMutualTLSCertificate¶added inv0.13.8
type AccessMutualTLSCertificate struct {IDstring `json:"id,omitempty"`CreatedAttime.Time `json:"created_at,omitempty"`UpdatedAttime.Time `json:"updated_at,omitempty"`ExpiresOntime.Time `json:"expires_on,omitempty"`Namestring `json:"name,omitempty"`Fingerprintstring `json:"fingerprint,omitempty"`Certificatestring `json:"certificate,omitempty"`AssociatedHostnames []string `json:"associated_hostnames,omitempty"`}
AccessMutualTLSCertificate is the structure of a single Access Mutual TLScertificate.
typeAccessMutualTLSCertificateDetailResponse¶added inv0.13.8
type AccessMutualTLSCertificateDetailResponse struct {ResponseResultAccessMutualTLSCertificate `json:"result"`}
AccessMutualTLSCertificateDetailResponse is the API response for a singleAccess Mutual TLS certificate.
typeAccessMutualTLSCertificateListResponse¶added inv0.13.8
type AccessMutualTLSCertificateListResponse struct {ResponseResult []AccessMutualTLSCertificate `json:"result"`ResultInfo `json:"result_info"`}
AccessMutualTLSCertificateListResponse is the API response for all AccessMutual TLS certificates.
typeAccessMutualTLSHostnameSettings¶added inv0.90.0
typeAccessOrganization¶added inv0.10.1
type AccessOrganization struct {CreatedAt *time.Time `json:"created_at"`UpdatedAt *time.Time `json:"updated_at"`Namestring `json:"name"`AuthDomainstring `json:"auth_domain"`LoginDesignAccessOrganizationLoginDesign `json:"login_design"`IsUIReadOnly *bool `json:"is_ui_read_only,omitempty"`UIReadOnlyToggleReasonstring `json:"ui_read_only_toggle_reason,omitempty"`UserSeatExpirationInactiveTimestring `json:"user_seat_expiration_inactive_time,omitempty"`AutoRedirectToIdentity *bool `json:"auto_redirect_to_identity,omitempty"`SessionDuration *string `json:"session_duration,omitempty"`CustomPagesAccessOrganizationCustomPages `json:"custom_pages,omitempty"`WarpAuthSessionDuration *string `json:"warp_auth_session_duration,omitempty"`AllowAuthenticateViaWarp *bool `json:"allow_authenticate_via_warp,omitempty"`}
AccessOrganization represents an Access organization.
typeAccessOrganizationCustomPages¶added inv0.74.0
type AccessOrganizationCustomPages struct {ForbiddenAccessCustomPageType `json:"forbidden,omitempty"`IdentityDeniedAccessCustomPageType `json:"identity_denied,omitempty"`}
typeAccessOrganizationDetailResponse¶added inv0.10.1
type AccessOrganizationDetailResponse struct {Successbool `json:"success"`Errors []string `json:"errors"`Messages []string `json:"messages"`ResultAccessOrganization `json:"result"`}
AccessOrganizationDetailResponse is the API response, containing asingle access organization.
typeAccessOrganizationListResponse¶added inv0.10.1
type AccessOrganizationListResponse struct {ResultAccessOrganization `json:"result"`ResponseResultInfo `json:"result_info"`}
AccessOrganizationListResponse represents the response from the listaccess organization endpoint.
typeAccessOrganizationLoginDesign¶added inv0.10.1
type AccessOrganizationLoginDesign struct {BackgroundColorstring `json:"background_color"`LogoPathstring `json:"logo_path"`TextColorstring `json:"text_color"`HeaderTextstring `json:"header_text"`FooterTextstring `json:"footer_text"`}
AccessOrganizationLoginDesign represents the login design options.
typeAccessPolicy¶added inv0.9.0
type AccessPolicy struct {IDstring `json:"id,omitempty"`// Precedence is the order in which the policy is executed in an Access application.// As a general rule, lower numbers take precedence over higher numbers.// This field can only be zero when a reusable policy is requested outside the context// of an Access application.Precedenceint `json:"precedence"`Decisionstring `json:"decision"`CreatedAt *time.Time `json:"created_at"`UpdatedAt *time.Time `json:"updated_at"`Reusable *bool `json:"reusable,omitempty"`Namestring `json:"name"`IsolationRequired *bool `json:"isolation_required,omitempty"`SessionDuration *string `json:"session_duration,omitempty"`PurposeJustificationRequired *bool `json:"purpose_justification_required,omitempty"`PurposeJustificationPrompt *string `json:"purpose_justification_prompt,omitempty"`ApprovalRequired *bool `json:"approval_required,omitempty"`ApprovalGroups []AccessApprovalGroup `json:"approval_groups"`InfrastructureConnectionRules *AccessInfrastructureConnectionRules `json:"connection_rules,omitempty"`// The include policy works like an OR logical operator. The user must// satisfy one of the rules.Include []interface{} `json:"include"`// The exclude policy works like a NOT logical operator. The user must// not satisfy all the rules in exclude.Exclude []interface{} `json:"exclude"`// The require policy works like a AND logical operator. The user must// satisfy all the rules in require.Require []interface{} `json:"require"`}
AccessPolicy defines a policy for allowing or disallowing access toone or more Access applications.
typeAccessPolicyDetailResponse¶added inv0.9.0
type AccessPolicyDetailResponse struct {Successbool `json:"success"`Errors []string `json:"errors"`Messages []string `json:"messages"`ResultAccessPolicy `json:"result"`}
AccessPolicyDetailResponse is the API response, containing a singleaccess policy.
typeAccessPolicyListResponse¶added inv0.9.0
type AccessPolicyListResponse struct {Result []AccessPolicy `json:"result"`ResponseResultInfo `json:"result_info"`}
AccessPolicyListResponse represents the response from the listaccess policies endpoint.
typeAccessRule¶added inv0.8.1
type AccessRule struct {IDstring `json:"id,omitempty"`Notesstring `json:"notes,omitempty"`AllowedModes []string `json:"allowed_modes,omitempty"`Modestring `json:"mode,omitempty"`ConfigurationAccessRuleConfiguration `json:"configuration,omitempty"`ScopeAccessRuleScope `json:"scope,omitempty"`CreatedOntime.Time `json:"created_on,omitempty"`ModifiedOntime.Time `json:"modified_on,omitempty"`}
AccessRule represents a firewall access rule.
typeAccessRuleConfiguration¶added inv0.8.1
type AccessRuleConfiguration struct {Targetstring `json:"target,omitempty"`Valuestring `json:"value,omitempty"`}
AccessRuleConfiguration represents the configuration of a firewallaccess rule.
typeAccessRuleListResponse¶added inv0.8.1
type AccessRuleListResponse struct {Result []AccessRule `json:"result"`ResponseResultInfo `json:"result_info"`}
AccessRuleListResponse represents the response from the list access rulesendpoint.
typeAccessRuleResponse¶added inv0.8.1
type AccessRuleResponse struct {ResultAccessRule `json:"result"`ResponseResultInfo `json:"result_info"`}
AccessRuleResponse represents the response from the firewall accessrule endpoint.
typeAccessRuleScope¶added inv0.8.1
type AccessRuleScope struct {IDstring `json:"id,omitempty"`Emailstring `json:"email,omitempty"`Namestring `json:"name,omitempty"`Typestring `json:"type,omitempty"`}
AccessRuleScope represents the scope of a firewall access rule.
typeAccessServiceToken¶added inv0.10.1
type AccessServiceToken struct {ClientIDstring `json:"client_id"`CreatedAt *time.Time `json:"created_at"`ExpiresAt *time.Time `json:"expires_at"`IDstring `json:"id"`Namestring `json:"name"`UpdatedAt *time.Time `json:"updated_at"`Durationstring `json:"duration,omitempty"`LastSeenAt *time.Time `json:"last_seen_at,omitempty"`}
AccessServiceToken represents an Access Service Token.
typeAccessServiceTokenCreateResponse¶added inv0.10.1
type AccessServiceTokenCreateResponse struct {CreatedAt *time.Time `json:"created_at"`UpdatedAt *time.Time `json:"updated_at"`ExpiresAt *time.Time `json:"expires_at"`IDstring `json:"id"`Namestring `json:"name"`ClientIDstring `json:"client_id"`ClientSecretstring `json:"client_secret"`Durationstring `json:"duration,omitempty"`}
AccessServiceTokenCreateResponse is the same API response as the Updateoperation with the exception that the `ClientSecret` is present in aCreate operation.
typeAccessServiceTokenRefreshResponse¶added inv0.49.0
type AccessServiceTokenRefreshResponse struct {CreatedAt *time.Time `json:"created_at"`UpdatedAt *time.Time `json:"updated_at"`ExpiresAt *time.Time `json:"expires_at"`IDstring `json:"id"`Namestring `json:"name"`ClientIDstring `json:"client_id"`Durationstring `json:"duration,omitempty"`LastSeenAt *time.Time `json:"last_seen_at,omitempty"`}
AccessServiceTokenRefreshResponse represents the response from the APIwhen an existing service token is refreshed to last longer.
typeAccessServiceTokenRotateResponse¶added inv0.54.0
type AccessServiceTokenRotateResponse struct {CreatedAt *time.Time `json:"created_at"`UpdatedAt *time.Time `json:"updated_at"`ExpiresAt *time.Time `json:"expires_at"`IDstring `json:"id"`Namestring `json:"name"`ClientIDstring `json:"client_id"`ClientSecretstring `json:"client_secret"`Durationstring `json:"duration,omitempty"`}
AccessServiceTokenRotateResponse is the same API response as the Createoperation.
typeAccessServiceTokenUpdateResponse¶added inv0.10.1
type AccessServiceTokenUpdateResponse struct {CreatedAt *time.Time `json:"created_at"`UpdatedAt *time.Time `json:"updated_at"`ExpiresAt *time.Time `json:"expires_at"`IDstring `json:"id"`Namestring `json:"name"`ClientIDstring `json:"client_id"`Durationstring `json:"duration,omitempty"`LastSeenAt *time.Time `json:"last_seen_at,omitempty"`}
AccessServiceTokenUpdateResponse represents the response from the APIwhen a new Service Token is updated. This base struct is also used in theCreate as they are very similar responses.
typeAccessServiceTokensCreationDetailResponse¶added inv0.10.1
type AccessServiceTokensCreationDetailResponse struct {Successbool `json:"success"`Errors []string `json:"errors"`Messages []string `json:"messages"`ResultAccessServiceTokenCreateResponse `json:"result"`}
AccessServiceTokensCreationDetailResponse is the API response, containing asingle Access Service Token.
typeAccessServiceTokensDetailResponse¶added inv0.10.1
type AccessServiceTokensDetailResponse struct {Successbool `json:"success"`Errors []string `json:"errors"`Messages []string `json:"messages"`ResultAccessServiceToken `json:"result"`}
AccessServiceTokensDetailResponse is the API response, containing a singleAccess Service Token.
typeAccessServiceTokensListResponse¶added inv0.10.1
type AccessServiceTokensListResponse struct {Result []AccessServiceToken `json:"result"`ResponseResultInfo `json:"result_info"`}
AccessServiceTokensListResponse represents the response from the listAccess Service Tokens endpoint.
typeAccessServiceTokensRefreshDetailResponse¶added inv0.49.0
type AccessServiceTokensRefreshDetailResponse struct {Successbool `json:"success"`Errors []string `json:"errors"`Messages []string `json:"messages"`ResultAccessServiceTokenRefreshResponse `json:"result"`}
AccessServiceTokensRefreshDetailResponse is the API response, containing asingle Access Service Token.
typeAccessServiceTokensRotateSecretDetailResponse¶added inv0.54.0
type AccessServiceTokensRotateSecretDetailResponse struct {Successbool `json:"success"`Errors []string `json:"errors"`Messages []string `json:"messages"`ResultAccessServiceTokenRotateResponse `json:"result"`}
AccessServiceTokensRotateSecretDetailResponse is the API response, containing asingle Access Service Token.
typeAccessServiceTokensUpdateDetailResponse¶added inv0.10.1
type AccessServiceTokensUpdateDetailResponse struct {Successbool `json:"success"`Errors []string `json:"errors"`Messages []string `json:"messages"`ResultAccessServiceTokenUpdateResponse `json:"result"`}
AccessServiceTokensUpdateDetailResponse is the API response, containing asingle Access Service Token.
typeAccessTagListResponse¶added inv0.78.0
type AccessTagListResponse struct {ResponseResult []AccessTag `json:"result"`ResultInfo `json:"result_info"`}
typeAccessTagResponse¶added inv0.78.0
typeAccessUpdateAccessUserSeatResult¶added inv0.81.0
type AccessUpdateAccessUserSeatResult struct {AccessSeat *bool `json:"access_seat"`CreatedAt *time.Time `json:"created_at"`UpdatedAt *time.Time `json:"updated_at"`GatewaySeat *bool `json:"gateway_seat"`SeatUIDstring `json:"seat_uid,omitempty"`}
AccessUpdateAccessUserSeatResult represents a Access User Seat.
typeAccessUser¶added inv0.81.0
type AccessUser struct {IDstring `json:"id"`AccessSeat *bool `json:"access_seat"`ActiveDeviceCountint `json:"active_device_count"`CreatedAtstring `json:"created_at"`Emailstring `json:"email"`GatewaySeat *bool `json:"gateway_seat"`LastSuccessfulLoginstring `json:"last_successful_login"`Namestring `json:"name"`SeatUIDstring `json:"seat_uid"`UIDstring `json:"uid"`UpdatedAtstring `json:"updated_at"`}
typeAccessUserActiveSessionMetadata¶added inv0.81.0
typeAccessUserActiveSessionMetadataApp¶added inv0.81.0
typeAccessUserActiveSessionResult¶added inv0.81.0
type AccessUserActiveSessionResult struct {Expirationint64 `json:"expiration"`MetadataAccessUserActiveSessionMetadata `json:"metadata"`Namestring `json:"name"`}
typeAccessUserActiveSessionsResponse¶added inv0.81.0
type AccessUserActiveSessionsResponse struct {Result []AccessUserActiveSessionResult `json:"result"`ResultInfo `json:"result_info"`Response}
typeAccessUserDevicePosture¶added inv0.81.0
type AccessUserDevicePosture struct {CheckAccessUserDevicePostureCheck `json:"check"`Data map[string]interface{} `json:"data"`Descriptionstring `json:"description"`Errorstring `json:"error"`IDstring `json:"id"`RuleNamestring `json:"rule_name"`Success *bool `json:"success"`Timestampstring `json:"timestamp"`Typestring `json:"type"`}
typeAccessUserDevicePostureCheck¶added inv0.81.0
typeAccessUserDeviceSession¶added inv0.81.0
type AccessUserDeviceSession struct {LastAuthenticatedint64 `json:"last_authenticated"`}
typeAccessUserFailedLoginMetadata¶added inv0.81.0
typeAccessUserFailedLoginResult¶added inv0.81.0
type AccessUserFailedLoginResult struct {Expirationint64 `json:"expiration"`MetadataAccessUserFailedLoginMetadata `json:"metadata"`}
typeAccessUserFailedLoginsResponse¶added inv0.81.0
type AccessUserFailedLoginsResponse struct {Result []AccessUserFailedLoginResult `json:"result"`ResultInfo `json:"result_info"`Response}
typeAccessUserIDP¶added inv0.81.0
typeAccessUserIdentityGeo¶added inv0.81.0
type AccessUserIdentityGeo struct {Countrystring `json:"country"`}
typeAccessUserLastSeenIdentityResponse¶added inv0.81.0
type AccessUserLastSeenIdentityResponse struct {ResultAccessUserLastSeenIdentityResult `json:"result"`ResultInfoResultInfo `json:"result_info"`Response}
typeAccessUserLastSeenIdentityResult¶added inv0.81.0
type AccessUserLastSeenIdentityResult struct {AccountIDstring `json:"account_id"`AuthStatusstring `json:"auth_status"`CommonNamestring `json:"common_name"`DeviceIDstring `json:"device_id"`DevicePosture map[string]AccessUserDevicePosture `json:"devicePosture"`DeviceSessions map[string]AccessUserDeviceSession `json:"device_sessions"`Emailstring `json:"email"`GeoAccessUserIdentityGeo `json:"geo"`IATint64 `json:"iat"`IDPAccessUserIDP `json:"idp"`IPstring `json:"ip"`IsGateway *bool `json:"is_gateway"`IsWarp *bool `json:"is_warp"`MtlsAuthAccessUserMTLSAuth `json:"mtls_auth"`ServiceTokenIDstring `json:"service_token_id"`ServiceTokenStatus *bool `json:"service_token_status"`UserUUIDstring `json:"user_uuid"`Versionint `json:"version"`}
typeAccessUserLastSeenIdentitySessionResponse¶added inv0.81.0
type AccessUserLastSeenIdentitySessionResponse struct {ResultGetAccessUserLastSeenIdentityResult `json:"result"`ResultInfoResultInfo `json:"result_info"`Response}
typeAccessUserListResponse¶added inv0.81.0
type AccessUserListResponse struct {Result []AccessUser `json:"result"`ResultInfo `json:"result_info"`Response}
typeAccessUserMTLSAuth¶added inv0.81.0
typeAccessUserParams¶added inv0.81.0
type AccessUserParams struct {ResultInfo}
typeAccount¶
type Account struct {IDstring `json:"id,omitempty"`Namestring `json:"name,omitempty"`Typestring `json:"type,omitempty"`CreatedOntime.Time `json:"created_on,omitempty"`Settings *AccountSettings `json:"settings,omitempty"`}
Account represents the root object that owns resources.
typeAccountDetailResponse¶added inv0.9.0
type AccountDetailResponse struct {Successbool `json:"success"`Errors []string `json:"errors"`Messages []string `json:"messages"`ResultAccount `json:"result"`}
AccountDetailResponse is the API response, containing a single Account.
typeAccountListResponse¶
type AccountListResponse struct {Result []Account `json:"result"`ResponseResultInfo `json:"result_info"`}
AccountListResponse represents the response from the list accounts endpoint.
typeAccountMember¶
type AccountMember struct {IDstring `json:"id"`Codestring `json:"code"`UserAccountMemberUserDetails `json:"user"`Statusstring `json:"status"`Roles []AccountRole `json:"roles,omitempty"`Policies []Policy `json:"policies,omitempty"`}
AccountMember is the definition of a member of an account.
typeAccountMemberDetailResponse¶added inv0.9.0
type AccountMemberDetailResponse struct {Successbool `json:"success"`Errors []string `json:"errors"`Messages []string `json:"messages"`ResultAccountMember `json:"result"`}
AccountMemberDetailResponse is the API response, containing a singleaccount member.
typeAccountMemberInvitation¶added inv0.9.0
type AccountMemberInvitation struct {Emailstring `json:"email"`Roles []string `json:"roles,omitempty"`Policies []Policy `json:"policies,omitempty"`Statusstring `json:"status,omitempty"`}
AccountMemberInvitation represents the invitation for a new member tothe account.
typeAccountMemberUserDetails¶added inv0.9.0
type AccountMemberUserDetails struct {IDstring `json:"id"`FirstNamestring `json:"first_name"`LastNamestring `json:"last_name"`Emailstring `json:"email"`TwoFactorAuthenticationEnabledbool `json:"two_factor_authentication_enabled"`}
AccountMemberUserDetails outlines all the personal information abouta member.
typeAccountMembersListResponse¶added inv0.9.0
type AccountMembersListResponse struct {Result []AccountMember `json:"result"`ResponseResultInfo `json:"result_info"`}
AccountMembersListResponse represents the response from the listaccount members endpoint.
typeAccountResponse¶added inv0.9.0
type AccountResponse struct {ResultAccount `json:"result"`ResponseResultInfo `json:"result_info"`}
AccountResponse represents the response from the accounts endpoint for asingle account ID.
typeAccountRole¶added inv0.9.0
type AccountRole struct {IDstring `json:"id"`Namestring `json:"name"`Descriptionstring `json:"description"`Permissions map[string]AccountRolePermission `json:"permissions"`}
AccountRole defines the roles that a member can have attached.
typeAccountRoleDetailResponse¶added inv0.9.0
type AccountRoleDetailResponse struct {Successbool `json:"success"`Errors []string `json:"errors"`Messages []string `json:"messages"`ResultAccountRole `json:"result"`}
AccountRoleDetailResponse is the API response, containing a singleaccount role.
typeAccountRolePermission¶added inv0.9.0
AccountRolePermission is the shared structure for all permissionsthat can be assigned to a member.
typeAccountRolesListResponse¶added inv0.9.0
type AccountRolesListResponse struct {Result []AccountRole `json:"result"`ResponseResultInfo `json:"result_info"`}
AccountRolesListResponse represents the list response from theaccount roles.
typeAccountSettings¶
type AccountSettings struct {EnforceTwoFactorbool `json:"enforce_twofactor"`}
AccountSettings outlines the available options for an account.
typeAccountsListParams¶added inv0.40.0
type AccountsListParams struct {Namestring `url:"name,omitempty"`PaginationOptions}
AccountsListParams holds the filterable options for Accounts.
typeAdaptiveRouting¶added inv0.51.0
type AdaptiveRouting struct {// FailoverAcrossPools extends zero-downtime failover of requests to healthy origins// from alternate pools, when no healthy alternate exists in the same pool, according// to the failover order defined by traffic and origin steering.// When set false (the default) zero-downtime failover will only occur between origins// within the same pool. See SessionAffinityAttributes for control over when sessions// are broken or reassigned.FailoverAcrossPools *bool `json:"failover_across_pools,omitempty"`}
AdaptiveRouting controls features that modify the routing of requeststo pools and origins in response to dynamic conditions, such as duringthe interval between active health monitoring requests.For example, zero-downtime failover occurs immediately when an originbecomes unavailable due to HTTP 521, 522, or 523 response codes.If there is another healthy origin in the same pool, the request isretried once against this alternate origin.
typeAdditionalInformation¶added inv0.44.0
type AdditionalInformation struct {SuspectedMalwareFamilystring `json:"suspected_malware_family"`}
AdditionalInformation represents any additional information for a domain.
typeAddressMap¶added inv0.63.0
type AddressMap struct {IDstring `json:"id"`Description *string `json:"description,omitempty"`DefaultSNI *string `json:"default_sni"`Enabled *bool `json:"enabled"`Deletable *bool `json:"can_delete"`CanModifyIPs *bool `json:"can_modify_ips"`Memberships []AddressMapMembership `json:"memberships"`IPs []AddressMapIP `json:"ips"`CreatedAttime.Time `json:"created_at"`ModifiedAttime.Time `json:"modified_at"`}
AddressMap contains information about an address map.
typeAddressMapIP¶added inv0.63.0
typeAddressMapMembership¶added inv0.63.0
type AddressMapMembership struct {Identifierstring `json:"identifier"`KindAddressMapMembershipKind `json:"kind"`Deletable *bool `json:"can_delete"`CreatedAttime.Time `json:"created_at"`}
typeAddressMapMembershipContainer¶added inv0.63.0
type AddressMapMembershipContainer struct {Identifierstring `json:"identifier"`KindAddressMapMembershipKind `json:"kind"`}
func (*AddressMapMembershipContainer)URLFragment¶added inv0.63.0
func (ammb *AddressMapMembershipContainer) URLFragment()string
typeAddressMapMembershipKind¶added inv0.63.0
type AddressMapMembershipKindstring
const (AddressMapMembershipZoneAddressMapMembershipKind = "zone"AddressMapMembershipAccountAddressMapMembershipKind = "account")
typeAdvertisementStatus¶added inv0.11.7
type AdvertisementStatus struct {Advertisedbool `json:"advertised"`AdvertisedModifiedAt *time.Time `json:"advertised_modified_at"`}
AdvertisementStatus contains information about the BGP status of an IP prefix.
typeAdvertisementStatusUpdateRequest¶added inv0.11.7
type AdvertisementStatusUpdateRequest struct {Advertisedbool `json:"advertised"`}
AdvertisementStatusUpdateRequest contains information about bgp status updates.
typeAlertHistoryFilter¶added inv0.40.0
type AlertHistoryFilter struct {TimeRangePaginationOptions}
AlertHistoryFilter is an object for filtering the alert history response from the api.
typeApplication¶added inv0.44.0
typeArgoDetailsResponse¶added inv0.9.0
type ArgoDetailsResponse struct {ResultArgoFeatureSetting `json:"result"`Response}
ArgoDetailsResponse is the API response for the argo smart routingand tiered caching response.
typeArgoFeatureSetting¶added inv0.9.0
type ArgoFeatureSetting struct {Editablebool `json:"editable,omitempty"`IDstring `json:"id,omitempty"`ModifiedOntime.Time `json:"modified_on,omitempty"`Valuestring `json:"value"`}
ArgoFeatureSetting is the structure of the API object for theargo smart routing and tiered caching settings.
typeArgoTunnel¶added inv0.13.7
type ArgoTunnel struct {IDstring `json:"id,omitempty"`Namestring `json:"name,omitempty"`Secretstring `json:"tunnel_secret,omitempty"`CreatedAt *time.Time `json:"created_at,omitempty"`DeletedAt *time.Time `json:"deleted_at,omitempty"`Connections []ArgoTunnelConnection `json:"connections,omitempty"`}
ArgoTunnel is the struct definition of a tunnel.
typeArgoTunnelConnection¶added inv0.13.7
type ArgoTunnelConnection struct {ColoNamestring `json:"colo_name"`UUIDstring `json:"uuid"`IsPendingReconnectbool `json:"is_pending_reconnect"`}
ArgoTunnelConnection represents the connections associated with a tunnel.
typeArgoTunnelDetailResponse¶added inv0.13.7
type ArgoTunnelDetailResponse struct {ResultArgoTunnel `json:"result"`Response}
ArgoTunnelDetailResponse is used for representing the API response payload fora single tunnel.
typeArgoTunnelsDetailResponse¶added inv0.13.7
type ArgoTunnelsDetailResponse struct {Result []ArgoTunnel `json:"result"`Response}
ArgoTunnelsDetailResponse is used for representing the API response payload formultiple tunnels.
typeAttachWorkersDomainParams¶added inv0.55.0
typeAuditLog¶added inv0.9.0
type AuditLog struct {ActionAuditLogAction `json:"action"`ActorAuditLogActor `json:"actor"`IDstring `json:"id"`Metadata map[string]interface{} `json:"metadata"`NewValuestring `json:"newValue"`NewValueJSON map[string]interface{} `json:"newValueJson"`OldValuestring `json:"oldValue"`OldValueJSON map[string]interface{} `json:"oldValueJson"`OwnerAuditLogOwner `json:"owner"`ResourceAuditLogResource `json:"resource"`Whentime.Time `json:"when"`}
AuditLog is an resource that represents an update in the cloudflare dash.
typeAuditLogAction¶added inv0.9.0
AuditLogAction is a member of AuditLog, the action that was taken.
typeAuditLogActor¶added inv0.9.0
type AuditLogActor struct {Emailstring `json:"email"`IDstring `json:"id"`IPstring `json:"ip"`Typestring `json:"type"`}
AuditLogActor is a member of AuditLog, who performed the action.
typeAuditLogFilter¶added inv0.9.0
type AuditLogFilter struct {IDstringActorIPstringActorEmailstringHideUserLogsboolDirectionstringZoneNamestringSincestringBeforestringPerPageintPageint}
AuditLogFilter is an object for filtering the audit log response from the api.
func (AuditLogFilter)ToQuery¶added inv0.11.2
func (aAuditLogFilter) ToQuery()url.Values
ToQuery turns an audit log filter in to an HTTP Query Paramlist, suitable for use in a url.URL.RawQuery. It will not include emptymembers of the struct in the query parameters.
typeAuditLogOwner¶added inv0.9.0
type AuditLogOwner struct {IDstring `json:"id"`}
AuditLogOwner is a member of AuditLog, who owns this audit log.
typeAuditLogResource¶added inv0.9.0
AuditLogResource is a member of AuditLog, what was the action performed on.
typeAuditLogResponse¶added inv0.9.0
type AuditLogResponse struct {ResponseResponseResult []AuditLog `json:"result"`ResultInfo `json:"result_info"`}
AuditLogResponse is the response returned from the cloudflare v4 api.
typeAuditSSHRuleSettings¶added inv0.63.0
type AuditSSHRuleSettings struct {CommandLoggingbool `json:"command_logging"`}
typeAuditSSHSettings¶added inv0.79.0
type AuditSSHSettings struct {PublicKeystring `json:"public_key"`SeedUUIDstring `json:"seed_id"`IsPublicKeyValidbool `json:"is_public_key_valid,omitempty"`CreatedAt *time.Time `json:"created_at"`UpdatedAt *time.Time `json:"updated_at"`}
TeamsList represents a Teams List.
typeAuditSSHSettingsResponse¶added inv0.79.0
type AuditSSHSettingsResponse struct {ResultAuditSSHSettings `json:"result"`ResponseResultInfo `json:"result_info"`}
typeAuthIdCharacteristics¶added inv0.49.0
AuthIdCharacteristics a single option fromconfiguration?properties=auth_id_characteristics.
typeAuthenticatedOriginPulls¶added inv0.12.2
type AuthenticatedOriginPulls struct {IDstring `json:"id"`Valuestring `json:"value"`Editablebool `json:"editable"`ModifiedOntime.Time `json:"modified_on"`}
AuthenticatedOriginPulls represents global AuthenticatedOriginPulls (tls_client_auth) metadata.
typeAuthenticatedOriginPullsResponse¶added inv0.12.2
type AuthenticatedOriginPullsResponse struct {ResponseResultAuthenticatedOriginPulls `json:"result"`}
AuthenticatedOriginPullsResponse represents the response from the global AuthenticatedOriginPulls (tls_client_auth) details endpoint.
typeAuthenticationError¶added inv0.36.0
type AuthenticationError struct {// contains filtered or unexported fields}
AuthenticationError is for HTTP 401 responses.
funcNewAuthenticationError¶added inv0.48.0
func NewAuthenticationError(e *Error)AuthenticationError
func (AuthenticationError)Error¶added inv0.36.0
func (eAuthenticationError) Error()string
func (AuthenticationError)ErrorCodes¶added inv0.36.0
func (eAuthenticationError) ErrorCodes() []int
func (AuthenticationError)ErrorMessages¶added inv0.36.0
func (eAuthenticationError) ErrorMessages() []string
func (AuthenticationError)Errors¶added inv0.36.0
func (eAuthenticationError) Errors() []ResponseInfo
func (AuthenticationError)InternalErrorCodeIs¶added inv0.48.0
func (eAuthenticationError) InternalErrorCodeIs(codeint)bool
func (AuthenticationError)RayID¶added inv0.36.0
func (eAuthenticationError) RayID()string
func (AuthenticationError)Type¶added inv0.36.0
func (eAuthenticationError) Type()ErrorType
func (AuthenticationError)Unwrap¶added inv0.103.0
func (eAuthenticationError) Unwrap()error
typeAuthorizationError¶added inv0.36.0
type AuthorizationError struct {// contains filtered or unexported fields}
AuthorizationError is for HTTP 403 responses.
funcNewAuthorizationError¶added inv0.48.0
func NewAuthorizationError(e *Error)AuthorizationError
func (AuthorizationError)Error¶added inv0.36.0
func (eAuthorizationError) Error()string
func (AuthorizationError)ErrorCodes¶added inv0.36.0
func (eAuthorizationError) ErrorCodes() []int
func (AuthorizationError)ErrorMessages¶added inv0.36.0
func (eAuthorizationError) ErrorMessages() []string
func (AuthorizationError)Errors¶added inv0.36.0
func (eAuthorizationError) Errors() []ResponseInfo
func (AuthorizationError)InternalErrorCodeIs¶added inv0.48.0
func (eAuthorizationError) InternalErrorCodeIs(codeint)bool
func (AuthorizationError)RayID¶added inv0.36.0
func (eAuthorizationError) RayID()string
func (AuthorizationError)Type¶added inv0.36.0
func (eAuthorizationError) Type()ErrorType
func (AuthorizationError)Unwrap¶added inv0.103.0
func (eAuthorizationError) Unwrap()error
typeAvailableZonePlansResponse¶added inv0.7.2
type AvailableZonePlansResponse struct {ResponseResult []ZonePlan `json:"result"`ResultInfo}
AvailableZonePlansResponse represents the response from the Available Plans endpoint.
typeAvailableZoneRatePlansResponse¶added inv0.7.4
type AvailableZoneRatePlansResponse struct {ResponseResult []ZoneRatePlan `json:"result"`ResultInfo `json:"result_info"`}
AvailableZoneRatePlansResponse represents the response from the Available Rate Plans endpoint.
typeBehavior¶added inv0.95.0
type Behavior struct {Namestring `json:"name,omitempty"`Descriptionstring `json:"description,omitempty"`RiskLevelRiskLevel `json:"risk_level"`Enabled *bool `json:"enabled"`}
Behavior represents a single zt risk behavior config.
typeBehaviorResponse¶added inv0.95.0
type BehaviorResponse struct {Successbool `json:"success"`ResultBehaviors `json:"result"`Errors []string `json:"errors"`Messages []string `json:"messages"`}
BehaviorResponse represents the response from the zt risk scoring endpointand contains risk behaviors for an account.
typeBelongsToRef¶added inv0.44.0
type BelongsToRef struct {IDstring `json:"id"`Valueint `json:"value"`Typestring `json:"type"`Countrystring `json:"country"`Descriptionstring `json:"description"`}
BelongsToRef represents information about who owns an IP address.
typeBotManagement¶added inv0.75.0
type BotManagement struct {EnableJS *bool `json:"enable_js,omitempty"`FightMode *bool `json:"fight_mode,omitempty"`SBFMDefinitelyAutomated *string `json:"sbfm_definitely_automated,omitempty"`SBFMLikelyAutomated *string `json:"sbfm_likely_automated,omitempty"`SBFMVerifiedBots *string `json:"sbfm_verified_bots,omitempty"`SBFMStaticResourceProtection *bool `json:"sbfm_static_resource_protection,omitempty"`OptimizeWordpress *bool `json:"optimize_wordpress,omitempty"`SuppressSessionScore *bool `json:"suppress_session_score,omitempty"`AutoUpdateModel *bool `json:"auto_update_model,omitempty"`UsingLatestModel *bool `json:"using_latest_model,omitempty"`AIBotsProtection *string `json:"ai_bots_protection,omitempty"`}
BotManagement represents the bots config for a zone.
typeBotManagementResponse¶added inv0.75.0
type BotManagementResponse struct {ResultBotManagement `json:"result"`Response}
BotManagementResponse represents the response from the bot_management endpoint.
typeBrowserIsolation¶added inv0.30.0
typeCacheReserve¶added inv0.68.0
type CacheReserve struct {IDstring `json:"id,omitempty"`ModifiedOntime.Time `json:"modified_on,omitempty"`Valuestring `json:"value"`}
CacheReserve is the structure of the API object for the cache reservesetting.
typeCacheReserveDetailsResponse¶added inv0.68.0
type CacheReserveDetailsResponse struct {ResultCacheReserve `json:"result"`Response}
CacheReserveDetailsResponse is the API response for the cache reservesetting.
typeCategories¶added inv0.44.0
Categories represents categories for a domain.
typeCategorizations¶added inv0.44.0
type Categorizations struct {Categories []Categories `json:"categories"`Startstring `json:"start"`Endstring `json:"end"`}
Categorizations represents the categories and when those categories were set.
typeCertificateLocations¶added inv0.101.0
type CertificateLocations struct {Paths []string `json:"paths,omitempty"`TrustStores []string `json:"trust_stores,omitempty"`}
Locations struct for client certificate rule v2.
typeCertificatePack¶added inv0.13.0
type CertificatePack struct {IDstring `json:"id"`Typestring `json:"type"`Hosts []string `json:"hosts"`Certificates []CertificatePackCertificate `json:"certificates"`PrimaryCertificatestring `json:"primary_certificate"`Statusstring `json:"status"`ValidationRecords []SSLValidationRecord `json:"validation_records,omitempty"`ValidationErrors []SSLValidationError `json:"validation_errors,omitempty"`ValidationMethodstring `json:"validation_method"`ValidityDaysint `json:"validity_days"`CertificateAuthoritystring `json:"certificate_authority"`CloudflareBrandingbool `json:"cloudflare_branding"`}
CertificatePack is the overarching structure of a certificate pack response.
typeCertificatePackCertificate¶added inv0.13.0
type CertificatePackCertificate struct {IDstring `json:"id"`Hosts []string `json:"hosts"`Issuerstring `json:"issuer"`Signaturestring `json:"signature"`Statusstring `json:"status"`BundleMethodstring `json:"bundle_method"`GeoRestrictionsCertificatePackGeoRestrictions `json:"geo_restrictions"`ZoneIDstring `json:"zone_id"`UploadedOntime.Time `json:"uploaded_on"`ModifiedOntime.Time `json:"modified_on"`ExpiresOntime.Time `json:"expires_on"`Priorityint `json:"priority"`}
CertificatePackCertificate is the base structure of a TLS certificate that iscontained within a certificate pack.
typeCertificatePackGeoRestrictions¶added inv0.13.0
type CertificatePackGeoRestrictions struct {Labelstring `json:"label"`}
CertificatePackGeoRestrictions is for the structure of the geographicrestrictions for a TLS certificate.
typeCertificatePackRequest¶added inv0.13.0
type CertificatePackRequest struct {Typestring `json:"type"`Hosts []string `json:"hosts"`ValidationMethodstring `json:"validation_method"`ValidityDaysint `json:"validity_days"`CertificateAuthoritystring `json:"certificate_authority"`CloudflareBrandingbool `json:"cloudflare_branding"`}
CertificatePackRequest is used for requesting a new certificate.
typeCertificatePacksDetailResponse¶added inv0.13.0
type CertificatePacksDetailResponse struct {ResponseResultCertificatePack `json:"result"`}
CertificatePacksDetailResponse contains a single certificate pack in theresponse.
typeCertificatePacksResponse¶added inv0.13.0
type CertificatePacksResponse struct {ResponseResult []CertificatePack `json:"result"`}
CertificatePacksResponse is for responses where multiple certificates areexpected.
typeCloudConnectorRule¶added inv0.100.0
typeCloudConnectorRuleParameters¶added inv0.100.0
type CloudConnectorRuleParameters struct {Hoststring `json:"host"`}
typeCloudConnectorRulesResponse¶added inv0.100.0
type CloudConnectorRulesResponse struct {ResponseResult []CloudConnectorRule `json:"result"`}
typeConnection¶added inv0.45.0
type Connection struct {IDstring `json:"id,omitempty"`Features []string `json:"features,omitempty"`Versionstring `json:"version,omitempty"`Archstring `json:"arch,omitempty"`Connections []TunnelConnection `json:"conns,omitempty"`RunAt *time.Time `json:"run_at,omitempty"`ConfigVersionint `json:"config_version,omitempty"`}
Connection is the struct definition of a connection.
typeContentCategories¶added inv0.44.0
type ContentCategories struct {IDint `json:"id"`SuperCategoryIDint `json:"super_category_id"`Namestring `json:"name"`}
ContentCategories represents the categories for a domain.
typeContentScanningAddCustomExpressionsParams¶added inv0.112.0
type ContentScanningAddCustomExpressionsParams struct {Payloads []ContentScanningCustomPayload}
typeContentScanningAddCustomExpressionsResponse¶added inv0.112.0
type ContentScanningAddCustomExpressionsResponse struct {ResponseResult []ContentScanningCustomExpression `json:"result"`}
typeContentScanningCustomExpression¶added inv0.112.0
typeContentScanningCustomPayload¶added inv0.112.0
type ContentScanningCustomPayload struct {Payloadstring `json:"payload"`}
typeContentScanningDeleteCustomExpressionsParams¶added inv0.112.0
type ContentScanningDeleteCustomExpressionsParams struct {IDstring}
typeContentScanningDeleteCustomExpressionsResponse¶added inv0.112.0
type ContentScanningDeleteCustomExpressionsResponse struct {ResponseResult []ContentScanningCustomExpression `json:"result"`}
typeContentScanningDisableParams¶added inv0.112.0
type ContentScanningDisableParams struct{}
typeContentScanningDisableResponse¶added inv0.112.0
type ContentScanningDisableResponse struct {ResponseResult *ContentScanningStatusResult `json:"result"`// nil}
typeContentScanningEnableParams¶added inv0.112.0
type ContentScanningEnableParams struct{}
typeContentScanningEnableResponse¶added inv0.112.0
type ContentScanningEnableResponse struct {ResponseResult *ContentScanningStatusResult `json:"result"`// nil}
typeContentScanningListCustomExpressionsParams¶added inv0.112.0
type ContentScanningListCustomExpressionsParams struct{}
typeContentScanningListCustomExpressionsResponse¶added inv0.112.0
type ContentScanningListCustomExpressionsResponse struct {ResponseResult []ContentScanningCustomExpression `json:"result"`}
typeContentScanningStatusParams¶added inv0.112.0
type ContentScanningStatusParams struct{}
typeContentScanningStatusResponse¶added inv0.112.0
type ContentScanningStatusResponse struct {ResponseResult *ContentScanningStatusResult `json:"result"`// object or nil}
typeContentScanningStatusResult¶added inv0.112.0
typeCreateAPIShieldOperationsParams¶added inv0.78.0
type CreateAPIShieldOperationsParams struct {// Operations are a slice of operations to be created in API Shield Endpoint ManagementOperations []APIShieldBasicOperation `url:"-"`}
CreateAPIShieldOperationsParams represents the parameters to pass when adding one or more operations.
API documentation:https://developers.cloudflare.com/api/resources/api_gateway/subresources/operations/methods/create/
typeCreateAPIShieldSchemaParams¶added inv0.79.0
type CreateAPIShieldSchemaParams struct {// Source is a io.Reader containing the contents of the schemaSourceio.Reader// Name represents the name of the schema.Namestring// Kind of the schema. This is always set to openapi_v3.Kindstring// ValidationEnabled controls if schema is used for validationValidationEnabled *bool}
CreateAPIShieldSchemaParams represents the parameters to pass when creating a schema in Schema Validation 2.0.
API documentation:https://developers.cloudflare.com/api/resources/api_gateway/subresources/user_schemas/methods/create/
typeCreateAccessApplicationParams¶added inv0.71.0
type CreateAccessApplicationParams struct {AllowedIdps []string `json:"allowed_idps,omitempty"`AppLauncherVisible *bool `json:"app_launcher_visible,omitempty"`AUDstring `json:"aud,omitempty"`AutoRedirectToIdentity *bool `json:"auto_redirect_to_identity,omitempty"`CorsHeaders *AccessApplicationCorsHeaders `json:"cors_headers,omitempty"`CustomDenyMessagestring `json:"custom_deny_message,omitempty"`CustomDenyURLstring `json:"custom_deny_url,omitempty"`CustomNonIdentityDenyURLstring `json:"custom_non_identity_deny_url,omitempty"`Domainstring `json:"domain"`DomainTypeAccessDestinationType `json:"domain_type,omitempty"`EnableBindingCookie *bool `json:"enable_binding_cookie,omitempty"`GatewayRules []AccessApplicationGatewayRule `json:"gateway_rules,omitempty"`HttpOnlyCookieAttribute *bool `json:"http_only_cookie_attribute,omitempty"`LogoURLstring `json:"logo_url,omitempty"`Namestring `json:"name"`PathCookieAttribute *bool `json:"path_cookie_attribute,omitempty"`PrivateAddressstring `json:"private_address"`SaasApplication *SaasApplication `json:"saas_app,omitempty"`SameSiteCookieAttributestring `json:"same_site_cookie_attribute,omitempty"`Destinations []AccessDestination `json:"destinations"`ServiceAuth401Redirect *bool `json:"service_auth_401_redirect,omitempty"`SessionDurationstring `json:"session_duration,omitempty"`SkipInterstitial *bool `json:"skip_interstitial,omitempty"`OptionsPreflightBypass *bool `json:"options_preflight_bypass,omitempty"`TypeAccessApplicationType `json:"type,omitempty"`AllowAuthenticateViaWarp *bool `json:"allow_authenticate_via_warp,omitempty"`CustomPages []string `json:"custom_pages,omitempty"`Tags []string `json:"tags,omitempty"`SCIMConfig *AccessApplicationSCIMConfig `json:"scim_config,omitempty"`TargetContexts *[]AccessInfrastructureTargetContext `json:"target_criteria,omitempty"`// List of policy ids to link to this application in ascending order of precedence.Policies []string `json:"policies,omitempty"`AccessAppLauncherCustomization}
typeCreateAccessCACertificateParams¶added inv0.71.0
type CreateAccessCACertificateParams struct {ApplicationIDstring}
typeCreateAccessCustomPageParams¶added inv0.74.0
type CreateAccessCustomPageParams struct {CustomHTMLstring `json:"custom_html,omitempty"`Namestring `json:"name,omitempty"`TypeAccessCustomPageType `json:"type,omitempty"`}
typeCreateAccessGroupParams¶added inv0.71.0
type CreateAccessGroupParams struct {Namestring `json:"name"`// The include group works like an OR logical operator. The user must// satisfy one of the rules.Include []interface{} `json:"include"`// The exclude group works like a NOT logical operator. The user must// not satisfy all the rules in exclude.Exclude []interface{} `json:"exclude"`// The require group works like a AND logical operator. The user must// satisfy all the rules in require.Require []interface{} `json:"require"`}
typeCreateAccessIdentityProviderParams¶added inv0.71.0
type CreateAccessIdentityProviderParams struct {Namestring `json:"name"`Typestring `json:"type"`ConfigAccessIdentityProviderConfiguration `json:"config"`ScimConfigAccessIdentityProviderScimConfiguration `json:"scim_config"`}
typeCreateAccessMutualTLSCertificateParams¶added inv0.71.0
typeCreateAccessOrganizationParams¶added inv0.71.0
type CreateAccessOrganizationParams struct {Namestring `json:"name"`AuthDomainstring `json:"auth_domain"`LoginDesignAccessOrganizationLoginDesign `json:"login_design"`IsUIReadOnly *bool `json:"is_ui_read_only,omitempty"`UIReadOnlyToggleReasonstring `json:"ui_read_only_toggle_reason,omitempty"`UserSeatExpirationInactiveTimestring `json:"user_seat_expiration_inactive_time,omitempty"`AutoRedirectToIdentity *bool `json:"auto_redirect_to_identity,omitempty"`SessionDuration *string `json:"session_duration,omitempty"`CustomPagesAccessOrganizationCustomPages `json:"custom_pages,omitempty"`WarpAuthSessionDuration *string `json:"warp_auth_session_duration,omitempty"`AllowAuthenticateViaWarp *bool `json:"allow_authenticate_via_warp,omitempty"`}
typeCreateAccessPolicyParams¶added inv0.71.0
type CreateAccessPolicyParams struct {// ApplicationID is the application ID for which to create the policy for.// Pass an empty value to create a reusable policy.ApplicationIDstring `json:"-"`// Precedence is the order in which the policy is executed in an Access application.// As a general rule, lower numbers take precedence over higher numbers.// This field is ignored when creating a reusable policy.// Read more herehttps://developers.cloudflare.com/cloudflare-one/policies/access/#order-of-executionPrecedenceint `json:"precedence"`Decisionstring `json:"decision"`Namestring `json:"name"`IsolationRequired *bool `json:"isolation_required,omitempty"`SessionDuration *string `json:"session_duration,omitempty"`PurposeJustificationRequired *bool `json:"purpose_justification_required,omitempty"`PurposeJustificationPrompt *string `json:"purpose_justification_prompt,omitempty"`ApprovalRequired *bool `json:"approval_required,omitempty"`ApprovalGroups []AccessApprovalGroup `json:"approval_groups"`InfrastructureConnectionRules *AccessInfrastructureConnectionRules `json:"connection_rules,omitempty"`// The include policy works like an OR logical operator. The user must// satisfy one of the rules.Include []interface{} `json:"include"`// The exclude policy works like a NOT logical operator. The user must// not satisfy all the rules in exclude.Exclude []interface{} `json:"exclude"`// The require policy works like a AND logical operator. The user must// satisfy all the rules in require.Require []interface{} `json:"require"`}
typeCreateAccessServiceTokenParams¶added inv0.71.0
typeCreateAccessTagParams¶added inv0.78.0
type CreateAccessTagParams struct {Namestring `json:"name,omitempty"`}
typeCreateAccountMemberParams¶added inv0.53.0
typeCreateAddressMapParams¶added inv0.63.0
type CreateAddressMapParams struct {Description *string `json:"description"`Enabled *bool `json:"enabled"`IPs []string `json:"ips"`Memberships []AddressMapMembershipContainer `json:"memberships"`}
CreateAddressMapParams contains information about an address map to be created.
typeCreateCustomNameserversParams¶added inv0.70.0
typeCreateD1DatabaseParams¶added inv0.79.0
type CreateD1DatabaseParams struct {Namestring `json:"name"`}
typeCreateDLPDatasetParams¶added inv0.87.0
typeCreateDLPDatasetResponse¶added inv0.87.0
type CreateDLPDatasetResponse struct {ResultCreateDLPDatasetResult `json:"result"`Response}
typeCreateDLPDatasetResult¶added inv0.87.0
type CreateDLPDatasetResult struct {MaxCellsint `json:"max_cells"`Secretstring `json:"secret"`Versionint `json:"version"`DatasetDLPDataset `json:"dataset"`}
typeCreateDLPDatasetUploadParams¶added inv0.87.0
type CreateDLPDatasetUploadParams struct {DatasetIDstring}
typeCreateDLPDatasetUploadResponse¶added inv0.87.0
type CreateDLPDatasetUploadResponse struct {ResultCreateDLPDatasetUploadResult `json:"result"`Response}
typeCreateDLPDatasetUploadResult¶added inv0.87.0
typeCreateDLPProfilesParams¶added inv0.53.0
type CreateDLPProfilesParams struct {Profiles []DLPProfile `json:"profiles"`Typestring}
typeCreateDNSFirewallClusterParams¶added inv0.70.0
type CreateDNSFirewallClusterParams struct {Namestring `json:"name"`UpstreamIPs []string `json:"upstream_ips"`DNSFirewallIPs []string `json:"dns_firewall_ips,omitempty"`MinimumCacheTTLuint `json:"minimum_cache_ttl,omitempty"`MaximumCacheTTLuint `json:"maximum_cache_ttl,omitempty"`DeprecateAnyRequestsbool `json:"deprecate_any_requests"`}
typeCreateDNSRecordParams¶added inv0.58.0
type CreateDNSRecordParams struct {CreatedOntime.Time `json:"created_on,omitempty" url:"created_on,omitempty"`ModifiedOntime.Time `json:"modified_on,omitempty" url:"modified_on,omitempty"`Typestring `json:"type,omitempty" url:"type,omitempty"`Namestring `json:"name,omitempty" url:"name,omitempty"`Contentstring `json:"content,omitempty" url:"content,omitempty"`Meta interface{} `json:"meta,omitempty"`Data interface{} `json:"data,omitempty"`// data returned by: SRV, LOCIDstring `json:"id,omitempty"`Priority *uint16 `json:"priority,omitempty"`TTLint `json:"ttl,omitempty"`Proxied *bool `json:"proxied,omitempty" url:"proxied,omitempty"`Proxiablebool `json:"proxiable,omitempty"`Commentstring `json:"comment,omitempty" url:"comment,omitempty"`// to the server, there's no difference between "no comment" and "empty comment"Tags []string `json:"tags,omitempty"`SettingsDNSRecordSettings `json:"settings,omitempty"`}
typeCreateDataLocalizationRegionalHostnameParams¶added inv0.66.0
typeCreateDeviceDexTestParams¶added inv0.62.0
typeCreateDeviceManagedNetworkParams¶added inv0.57.0
typeCreateDeviceSettingsPolicyParams¶added inv0.81.0
type CreateDeviceSettingsPolicyParams struct {DisableAutoFallback *bool `json:"disable_auto_fallback,omitempty"`CaptivePortal *int `json:"captive_portal,omitempty"`AllowModeSwitch *bool `json:"allow_mode_switch,omitempty"`SwitchLocked *bool `json:"switch_locked,omitempty"`AllowUpdates *bool `json:"allow_updates,omitempty"`AutoConnect *int `json:"auto_connect,omitempty"`AllowedToLeave *bool `json:"allowed_to_leave,omitempty"`SupportURL *string `json:"support_url,omitempty"`ServiceModeV2 *ServiceModeV2 `json:"service_mode_v2,omitempty"`Precedence *int `json:"precedence,omitempty"`Name *string `json:"name,omitempty"`Match *string `json:"match,omitempty"`Enabled *bool `json:"enabled,omitempty"`ExcludeOfficeIps *bool `json:"exclude_office_ips"`Description *string `json:"description,omitempty"`LANAllowMinutes *uint `json:"lan_allow_minutes,omitempty"`LANAllowSubnetSize *uint `json:"lan_allow_subnet_size,omitempty"`TunnelProtocol *string `json:"tunnel_protocol,omitempty"`}
typeCreateEmailRoutingAddressParameters¶added inv0.47.0
type CreateEmailRoutingAddressParameters struct {Emailstring `json:"email,omitempty"`}
typeCreateEmailRoutingAddressResponse¶added inv0.47.0
type CreateEmailRoutingAddressResponse struct {ResultEmailRoutingDestinationAddress `json:"result,omitempty"`Response}
typeCreateEmailRoutingRuleParameters¶added inv0.47.0
type CreateEmailRoutingRuleParameters struct {Matchers []EmailRoutingRuleMatcher `json:"matchers,omitempty"`Actions []EmailRoutingRuleAction `json:"actions,omitempty"`Namestring `json:"name,omitempty"`Enabled *bool `json:"enabled,omitempty"`Priorityint `json:"priority,omitempty"`}
typeCreateEmailRoutingRuleResponse¶added inv0.47.0
type CreateEmailRoutingRuleResponse struct {ResultEmailRoutingRule `json:"result"`Response}
typeCreateHyperdriveConfigParams¶added inv0.88.0
type CreateHyperdriveConfigParams struct {Namestring `json:"name"`OriginHyperdriveConfigOriginWithSecrets `json:"origin"`CachingHyperdriveConfigCaching `json:"caching,omitempty"`}
typeCreateIPAddressToAddressMapParams¶added inv0.63.0
type CreateIPAddressToAddressMapParams struct {// ID represents the target address map for adding the IP address.IDstring// The IP address.IPstring}
CreateIPAddressToAddressMapParams contains request parameters to add/remove IP address to/from an address map.
typeCreateImageDirectUploadURLParams¶added inv0.71.0
type CreateImageDirectUploadURLParams struct {VersionImagesAPIVersion `json:"-"`Expiry *time.Time `json:"expiry,omitempty"`Metadata map[string]interface{} `json:"metadata,omitempty"`RequireSignedURLs *bool `json:"requireSignedURLs,omitempty"`}
CreateImageDirectUploadURLParams is the data required for a CreateImageDirectUploadURL request.
typeCreateImagesVariantParams¶added inv0.88.0
type CreateImagesVariantParams struct {IDstring `json:"id,omitempty"`NeverRequireSignedURLs *bool `json:"neverRequireSignedURLs,omitempty"`OptionsImagesVariantsOptions `json:"options,omitempty"`}
typeCreateInfrastructureAccessTargetParams¶added inv0.105.0
type CreateInfrastructureAccessTargetParams struct {InfrastructureAccessTargetParams}
typeCreateLoadBalancerMonitorParams¶added inv0.51.0
type CreateLoadBalancerMonitorParams struct {LoadBalancerMonitorLoadBalancerMonitor}
typeCreateLoadBalancerParams¶added inv0.51.0
type CreateLoadBalancerParams struct {LoadBalancerLoadBalancer}
typeCreateLoadBalancerPoolParams¶added inv0.51.0
type CreateLoadBalancerPoolParams struct {LoadBalancerPoolLoadBalancerPool}
typeCreateLogpushJobParams¶added inv0.72.0
type CreateLogpushJobParams struct {Datasetstring `json:"dataset"`Enabledbool `json:"enabled"`Kindstring `json:"kind,omitempty"`Namestring `json:"name"`LogpullOptionsstring `json:"logpull_options,omitempty"`OutputOptions *LogpushOutputOptions `json:"output_options,omitempty"`DestinationConfstring `json:"destination_conf"`OwnershipChallengestring `json:"ownership_challenge,omitempty"`ErrorMessagestring `json:"error_message,omitempty"`Frequencystring `json:"frequency,omitempty"`Filter *LogpushJobFilters `json:"filter,omitempty"`MaxUploadBytesint `json:"max_upload_bytes,omitempty"`MaxUploadRecordsint `json:"max_upload_records,omitempty"`MaxUploadIntervalSecondsint `json:"max_upload_interval_seconds,omitempty"`}
func (CreateLogpushJobParams)MarshalJSON¶added inv0.72.0
func (fCreateLogpushJobParams) MarshalJSON() ([]byte,error)
func (*CreateLogpushJobParams)UnmarshalJSON¶added inv0.72.0
func (f *CreateLogpushJobParams) UnmarshalJSON(data []byte)error
Custom Unmarshaller for CreateLogpushJobParams filter key.
typeCreateMTLSCertificateParams¶added inv0.58.0
type CreateMTLSCertificateParams struct {Namestring `json:"name"`Certificatesstring `json:"certificates"`PrivateKeystring `json:"private_key"`CAbool `json:"ca"`}
MTLSCertificateParams represents the data related to the mTLS certificatebeing uploaded. Name is an optional field.
typeCreateMagicFirewallRulesetRequest¶added inv0.13.7
type CreateMagicFirewallRulesetRequest struct {Namestring `json:"name"`Descriptionstring `json:"description"`Kindstring `json:"kind"`Phasestring `json:"phase"`Rules []MagicFirewallRulesetRule `json:"rules"`}
CreateMagicFirewallRulesetRequest contains data for a new Firewall ruleset.
typeCreateMagicFirewallRulesetResponse¶added inv0.13.7
type CreateMagicFirewallRulesetResponse struct {ResponseResultMagicFirewallRuleset `json:"result"`}
CreateMagicFirewallRulesetResponse contains response data when creating a new Magic Firewall ruleset.
typeCreateMagicTransitGRETunnelsRequest¶added inv0.32.0
type CreateMagicTransitGRETunnelsRequest struct {GRETunnels []MagicTransitGRETunnel `json:"gre_tunnels"`}
CreateMagicTransitGRETunnelsRequest is an array of GRE tunnels to create.
typeCreateMagicTransitIPsecTunnelsRequest¶added inv0.31.0
type CreateMagicTransitIPsecTunnelsRequest struct {IPsecTunnels []MagicTransitIPsecTunnel `json:"ipsec_tunnels"`}
CreateMagicTransitIPsecTunnelsRequest is an array of IPsec tunnels to create.
typeCreateMagicTransitStaticRoutesRequest¶added inv0.18.0
type CreateMagicTransitStaticRoutesRequest struct {Routes []MagicTransitStaticRoute `json:"routes"`}
CreateMagicTransitStaticRoutesRequest is an array of static routes to create.
typeCreateMembershipToAddressMapParams¶added inv0.63.0
type CreateMembershipToAddressMapParams struct {// ID represents the target address map for adding the membershp.IDstringMembershipAddressMapMembershipContainer}
CreateMembershipToAddressMapParams contains request parameters to add/remove membership from an address map.
typeCreateObservatoryPageTestParams¶added inv0.78.0
type CreateObservatoryPageTestParams struct {URLstringSettingsCreateObservatoryPageTestSettings}
typeCreateObservatoryPageTestSettings¶added inv0.78.0
type CreateObservatoryPageTestSettings struct {Regionstring `json:"region"`}
typeCreateObservatoryScheduledPageTestParams¶added inv0.78.0
typeCreateObservatoryScheduledPageTestResponse¶added inv0.78.0
type CreateObservatoryScheduledPageTestResponse struct {ResponseResultObservatoryScheduledPageTest `json:"result"`}
typeCreateOriginCertificateParams¶added inv0.58.0
type CreateOriginCertificateParams struct {IDstring `json:"id"`Certificatestring `json:"certificate"`Hostnames []string `json:"hostnames"`ExpiresOntime.Time `json:"expires_on"`RequestTypestring `json:"request_type"`RequestValidityint `json:"requested_validity"`RevokedAttime.Time `json:"revoked_at,omitempty"`CSRstring `json:"csr"`}
typeCreatePageShieldPolicyParams¶added inv0.84.0
typeCreatePagesDeploymentParams¶added inv0.40.0
typeCreatePagesProjectParams¶added inv0.73.0
type CreatePagesProjectParams struct {Namestring `json:"name,omitempty"`SubDomainstring `json:"subdomain"`Domains []string `json:"domains,omitempty"`Source *PagesProjectSource `json:"source,omitempty"`BuildConfigPagesProjectBuildConfig `json:"build_config"`DeploymentConfigsPagesProjectDeploymentConfigs `json:"deployment_configs"`LatestDeploymentPagesProjectDeployment `json:"latest_deployment"`CanonicalDeploymentPagesProjectDeployment `json:"canonical_deployment"`ProductionBranchstring `json:"production_branch,omitempty"`}
typeCreateQueueConsumerParams¶added inv0.55.0
type CreateQueueConsumerParams struct {QueueNamestring `json:"-"`ConsumerQueueConsumer}
typeCreateQueueParams¶added inv0.55.0
type CreateQueueParams struct {Namestring `json:"queue_name"`}
typeCreateR2BucketParameters¶added inv0.48.0
typeCreateRulesetParams¶added inv0.73.0
type CreateRulesetParams struct {Namestring `json:"name,omitempty"`Descriptionstring `json:"description,omitempty"`Kindstring `json:"kind,omitempty"`Phasestring `json:"phase,omitempty"`Rules []RulesetRule `json:"rules"`}
typeCreateRulesetResponse¶added inv0.19.0
CreateRulesetResponse contains response data when creating a new Ruleset.
typeCreateTeamsListParams¶added inv0.53.0
type CreateTeamsListParams struct {IDstring `json:"id,omitempty"`Namestring `json:"name"`Typestring `json:"type"`Descriptionstring `json:"description,omitempty"`Items []TeamsListItem `json:"items,omitempty"`Countuint64 `json:"count,omitempty"`CreatedAt *time.Time `json:"created_at,omitempty"`UpdatedAt *time.Time `json:"updated_at,omitempty"`}
typeCreateTurnstileWidgetParams¶added inv0.66.0
typeCreateWaitingRoomRuleParams¶added inv0.53.0
type CreateWaitingRoomRuleParams struct {WaitingRoomIDstringRuleWaitingRoomRule}
typeCreateWebAnalyticsRule¶added inv0.75.0
type CreateWebAnalyticsRule struct {IDstring `json:"id,omitempty"`Hoststring `json:"host"`Paths []string `json:"paths"`// Inclusive defines whether the rule includes or excludes the matched traffic from being measured in web analytics.Inclusivebool `json:"inclusive"`IsPausedbool `json:"is_paused"`}
CreateWebAnalyticsRule describes the properties required to create or update a Web Analytics Rule object.
typeCreateWebAnalyticsRuleParams¶added inv0.75.0
type CreateWebAnalyticsRuleParams struct {RulesetIDstringRuleCreateWebAnalyticsRule}
typeCreateWebAnalyticsSiteParams¶added inv0.75.0
type CreateWebAnalyticsSiteParams struct {// Host is the host to measure traffic for.Hoststring `json:"host,omitempty"`// ZoneTag is the zone tag to measure traffic for.ZoneTagstring `json:"zone_tag,omitempty"`// AutoInstall defines whether Cloudflare will inject the JS snippet automatically for orange-clouded sites.AutoInstall *bool `json:"auto_install"`}
typeCreateWorkerParams¶added inv0.57.0
type CreateWorkerParams struct {ScriptNamestringScriptstring// DispatchNamespaceName uploads the worker to a WFP dispatch namespace if providedDispatchNamespaceName *string// Module changes the Content-Type header to specify the script is an// ES Module syntax script.Modulebool// Logpush opts the worker into Workers Logpush logging. A nil value leaves// the current setting unchanged.//// Documentation:https://developers.cloudflare.com/workers/platform/logpush/Logpush *bool// TailConsumers specifies a list of Workers that will consume the logs of// the attached Worker.// Documentation:https://developers.cloudflare.com/workers/platform/tail-workers/TailConsumers *[]WorkersTailConsumer// Bindings should be a map where the keys are the binding name, and the// values are the binding contentBindings map[string]WorkerBinding// CompatibilityDate is a date in the form yyyy-mm-dd,// which will be used to determine which version of the Workers runtime is used.//https://developers.cloudflare.com/workers/platform/compatibility-dates/CompatibilityDatestring// CompatibilityFlags are the names of features of the Workers runtime to be enabled or disabled,// usually used together with CompatibilityDate.//https://developers.cloudflare.com/workers/platform/compatibility-dates/#compatibility-flagsCompatibilityFlags []stringPlacement *Placement// Tags are used to better manage CRUD operations at scale.//https://developers.cloudflare.com/cloudflare-for-platforms/workers-for-platforms/platform/tags/Tags []string}
func (CreateWorkerParams)RequiresMultipart¶added inv0.75.0
func (pCreateWorkerParams) RequiresMultipart()bool
typeCreateWorkerRouteParams¶added inv0.57.0
typeCreateWorkersAccountSettingsParameters¶added inv0.47.0
typeCreateWorkersAccountSettingsResponse¶added inv0.47.0
type CreateWorkersAccountSettingsResponse struct {ResponseResultWorkersAccountSettings}
typeCreateWorkersForPlatformsDispatchNamespaceParams¶added inv0.90.0
type CreateWorkersForPlatformsDispatchNamespaceParams struct {Namestring `json:"name"`}
typeCreateWorkersKVNamespaceParams¶added inv0.55.0
type CreateWorkersKVNamespaceParams struct {Titlestring `json:"title"`}
CreateWorkersKVNamespaceParams provides parameters for creating and updating storage namespaces.
typeCreateZoneHoldParams¶added inv0.75.0
type CreateZoneHoldParams struct {IncludeSubdomains *bool `url:"include_subdomains,omitempty"`}
CreateZoneHoldParams represents params for the Create Zone Holdendpoint.
typeCustomHostname¶added inv0.7.4
type CustomHostname struct {IDstring `json:"id,omitempty"`Hostnamestring `json:"hostname,omitempty"`CustomOriginServerstring `json:"custom_origin_server,omitempty"`CustomOriginSNIstring `json:"custom_origin_sni,omitempty"`SSL *CustomHostnameSSL `json:"ssl,omitempty"`CustomMetadata *CustomMetadata `json:"custom_metadata,omitempty"`StatusCustomHostnameStatus `json:"status,omitempty"`VerificationErrors []string `json:"verification_errors,omitempty"`OwnershipVerificationCustomHostnameOwnershipVerification `json:"ownership_verification,omitempty"`OwnershipVerificationHTTPCustomHostnameOwnershipVerificationHTTP `json:"ownership_verification_http,omitempty"`CreatedAt *time.Time `json:"created_at,omitempty"`}
CustomHostname represents a custom hostname in a zone.
typeCustomHostnameFallbackOrigin¶added inv0.12.0
type CustomHostnameFallbackOrigin struct {Originstring `json:"origin,omitempty"`Statusstring `json:"status,omitempty"`Errors []string `json:"errors,omitempty"`}
CustomHostnameFallbackOrigin represents a Custom Hostnames Fallback Origin.
typeCustomHostnameFallbackOriginResponse¶added inv0.12.0
type CustomHostnameFallbackOriginResponse struct {ResultCustomHostnameFallbackOrigin `json:"result"`Response}
CustomHostnameFallbackOriginResponse represents a response from the Custom Hostnames Fallback Origin endpoint.
typeCustomHostnameListResponse¶
type CustomHostnameListResponse struct {Result []CustomHostname `json:"result"`ResponseResultInfo `json:"result_info"`}
CustomHostnameListResponse represents a response from the Custom Hostnames endpoints.
typeCustomHostnameOwnershipVerification¶added inv0.11.7
type CustomHostnameOwnershipVerification struct {Typestring `json:"type,omitempty"`Namestring `json:"name,omitempty"`Valuestring `json:"value,omitempty"`}
CustomHostnameOwnershipVerification represents ownership verification status of a given custom hostname.
typeCustomHostnameOwnershipVerificationHTTP¶added inv0.12.0
type CustomHostnameOwnershipVerificationHTTP struct {HTTPUrlstring `json:"http_url,omitempty"`HTTPBodystring `json:"http_body,omitempty"`}
CustomHostnameOwnershipVerificationHTTP represents a response from the Custom Hostnames endpoints.
typeCustomHostnameResponse¶added inv0.7.4
type CustomHostnameResponse struct {ResultCustomHostname `json:"result"`Response}
CustomHostnameResponse represents a response from the Custom Hostnames endpoints.
typeCustomHostnameSSL¶added inv0.7.4
type CustomHostnameSSL struct {IDstring `json:"id,omitempty"`Statusstring `json:"status,omitempty"`Methodstring `json:"method,omitempty"`Typestring `json:"type,omitempty"`Wildcard *bool `json:"wildcard,omitempty"`CustomCertificatestring `json:"custom_certificate,omitempty"`CustomKeystring `json:"custom_key,omitempty"`CertificateAuthoritystring `json:"certificate_authority,omitempty"`Issuerstring `json:"issuer,omitempty"`SerialNumberstring `json:"serial_number,omitempty"`SettingsCustomHostnameSSLSettings `json:"settings,omitempty"`Certificates []CustomHostnameSSLCertificates `json:"certificates,omitempty"`// Deprecated: use ValidationRecords.// If there a single validation record, this will equal ValidationRecords[0] for backwards compatibility.SSLValidationRecordValidationRecords []SSLValidationRecord `json:"validation_records,omitempty"`ValidationErrors []SSLValidationError `json:"validation_errors,omitempty"`BundleMethodstring `json:"bundle_method,omitempty"`}
CustomHostnameSSL represents the SSL section in a given custom hostname.
typeCustomHostnameSSLCertificates¶added inv0.31.0
type CustomHostnameSSLCertificates struct {Issuerstring `json:"issuer"`SerialNumberstring `json:"serial_number"`Signaturestring `json:"signature"`ExpiresOn *time.Time `json:"expires_on"`IssuedOn *time.Time `json:"issued_on"`FingerprintSha256string `json:"fingerprint_sha256"`IDstring `json:"id"`}
CustomHostnameSSLCertificates represent certificate properties like issuer, expires date and etc.
typeCustomHostnameSSLSettings¶added inv0.9.0
type CustomHostnameSSLSettings struct {HTTP2string `json:"http2,omitempty"`HTTP3string `json:"http3,omitempty"`TLS13string `json:"tls_1_3,omitempty"`MinTLSVersionstring `json:"min_tls_version,omitempty"`Ciphers []string `json:"ciphers,omitempty"`EarlyHintsstring `json:"early_hints,omitempty"`}
CustomHostnameSSLSettings represents the SSL settings for a custom hostname.
typeCustomHostnameStatus¶added inv0.11.7
type CustomHostnameStatusstring
CustomHostnameStatus is the enumeration of valid state values in the CustomHostnameSSL.
const (// PENDING status represents state of CustomHostname is pending.PENDINGCustomHostnameStatus = "pending"// ACTIVE status represents state of CustomHostname is active.ACTIVECustomHostnameStatus = "active"// MOVED status represents state of CustomHostname is moved.MOVEDCustomHostnameStatus = "moved"// DELETED status represents state of CustomHostname is deleted.DELETEDCustomHostnameStatus = "deleted"// BLOCKED status represents state of CustomHostname is blocked from going active.BLOCKEDCustomHostnameStatus = "blocked")
typeCustomMetadata¶added inv0.7.4
type CustomMetadata map[string]interface{}
CustomMetadata defines custom metadata for the hostname. This requires logic to be implemented by Cloudflare to act on the data provided.
typeCustomNameserver¶added inv0.70.0
typeCustomNameserverRecord¶added inv0.70.0
typeCustomNameserverResult¶added inv0.70.0
type CustomNameserverResult struct {DNSRecords []CustomNameserverRecord `json:"dns_records"`NSNamestring `json:"ns_name"`NSSetint `json:"ns_set"`Statusstring `json:"status"`ZoneTagstring `json:"zone_tag"`}
typeCustomNameserverZoneMetadata¶added inv0.70.0
typeCustomPage¶added inv0.7.2
type CustomPage struct {CreatedOntime.Time `json:"created_on"`ModifiedOntime.Time `json:"modified_on"`URL interface{} `json:"url"`Statestring `json:"state"`RequiredTokens []string `json:"required_tokens"`PreviewTargetstring `json:"preview_target"`Descriptionstring `json:"description"`IDstring `json:"id"`}
CustomPage represents a custom page configuration.
typeCustomPageDetailResponse¶added inv0.9.0
type CustomPageDetailResponse struct {ResponseResultCustomPage `json:"result"`}
CustomPageDetailResponse represents the response from the custom page endpoint.
typeCustomPageOptions¶added inv0.9.0
CustomPageOptions is used to determine whether or not the operationshould take place on an account or zone level based on which isprovided to the function.
A non-empty value denotes desired use.
typeCustomPageParameters¶added inv0.9.0
type CustomPageParameters struct {URL interface{} `json:"url"`Statestring `json:"state"`}
CustomPageParameters is used to update a particular custom page withthe values provided.
typeCustomPageResponse¶added inv0.7.2
type CustomPageResponse struct {ResponseResult []CustomPage `json:"result"`}
CustomPageResponse represents the response from the custom pages endpoint.
typeD1BindingMap¶added inv0.49.0
typeD1Database¶added inv0.79.0
typeD1DatabaseMetadata¶added inv0.79.0
typeD1DatabaseResponse¶added inv0.79.0
type D1DatabaseResponse struct {ResultD1Database `json:"result"`Response}
typeD1Result¶added inv0.79.0
type D1Result struct {Success *bool `json:"success"`Results []map[string]any `json:"results"`MetaD1DatabaseMetadata `json:"meta"`}
typeDCVDelegation¶added inv0.77.0
type DCVDelegation struct {UUIDstring `json:"uuid"`}
typeDCVDelegationResponse¶added inv0.77.0
type DCVDelegationResponse struct {ResultDCVDelegation `json:"result"`ResponseResultInfo `json:"result_info"`}
DCVDelegationResponse represents the response from the dcv_delegation/uuid endpoint.
typeDLPContextAwareness¶added inv0.90.0
type DLPContextAwareness struct {Enabled *bool `json:"enabled,omitempty"`SkipDLPContextAwarenessSkip `json:"skip"`}
Scan the context of predefined entries to only return matches surrounded by keywords.
typeDLPContextAwarenessSkip¶added inv0.90.0
type DLPContextAwarenessSkip struct {// Return all matches, regardless of context analysis result, if the data is a file.Files *bool `json:"files,omitempty"`}
Content types to exclude from context analysis and return all matches.
typeDLPDataset¶added inv0.87.0
type DLPDataset struct {CreatedAt *time.Time `json:"created_at,omitempty"`Descriptionstring `json:"description,omitempty"`IDstring `json:"id,omitempty"`Namestring `json:"name,omitempty"`NumCellsint `json:"num_cells"`Secret *bool `json:"secret,omitempty"`Statusstring `json:"status,omitempty"`UpdatedAt *time.Time `json:"updated_at,omitempty"`Uploads []DLPDatasetUpload `json:"uploads"`}
DLPDataset represents a DLP Exact Data Match dataset or Custom Word List.
typeDLPDatasetGetResponse¶added inv0.87.0
type DLPDatasetGetResponse struct {ResultDLPDataset `json:"result"`Response}
typeDLPDatasetListResponse¶added inv0.87.0
type DLPDatasetListResponse struct {Result []DLPDataset `json:"result"`Response}
typeDLPDatasetUpload¶added inv0.87.0
type DLPDatasetUpload struct {NumCellsint `json:"num_cells"`Statusstring `json:"status,omitempty"`Versionint `json:"version"`}
DLPDatasetUpload represents a single upload version attached to a DLP dataset.
typeDLPEntry¶added inv0.53.0
type DLPEntry struct {IDstring `json:"id,omitempty"`Namestring `json:"name,omitempty"`ProfileIDstring `json:"profile_id,omitempty"`Enabled *bool `json:"enabled,omitempty"`Typestring `json:"type,omitempty"`Pattern *DLPPattern `json:"pattern,omitempty"`CreatedAt *time.Time `json:"created_at,omitempty"`UpdatedAt *time.Time `json:"updated_at,omitempty"`}
DLPEntry represents a DLP Entry, which can be matched in HTTP bodies or files.
typeDLPPattern¶added inv0.53.0
type DLPPattern struct {Regexstring `json:"regex,omitempty"`Validationstring `json:"validation,omitempty"`}
DLPPattern represents a DLP Pattern that matches an entry.
typeDLPPayloadLogSettings¶added inv0.62.0
typeDLPPayloadLogSettingsResponse¶added inv0.62.0
type DLPPayloadLogSettingsResponse struct {ResponseResultDLPPayloadLogSettings `json:"result"`}
typeDLPProfile¶added inv0.53.0
type DLPProfile struct {IDstring `json:"id,omitempty"`Namestring `json:"name,omitempty"`Typestring `json:"type,omitempty"`Descriptionstring `json:"description,omitempty"`AllowedMatchCountint `json:"allowed_match_count"`OCREnabled *bool `json:"ocr_enabled,omitempty"`ContextAwareness *DLPContextAwareness `json:"context_awareness,omitempty"`// The following fields are omitted for predefined DLP// profiles.Entries []DLPEntry `json:"entries,omitempty"`CreatedAt *time.Time `json:"created_at,omitempty"`UpdatedAt *time.Time `json:"updated_at,omitempty"`}
DLPProfile represents a DLP Profile, which contains a setof entries.
typeDLPProfileListResponse¶added inv0.53.0
type DLPProfileListResponse struct {Result []DLPProfile `json:"result"`Response}
DLPProfileListResponse represents the response from the listdlp profiles endpoint.
typeDLPProfileResponse¶added inv0.53.0
type DLPProfileResponse struct {Successbool `json:"success"`Errors []string `json:"errors"`Messages []string `json:"messages"`ResultDLPProfile `json:"result"`}
DLPProfileResponse is the API response, containing a singleaccess application.
typeDLPProfilesCreateRequest¶added inv0.53.0
type DLPProfilesCreateRequest struct {Profiles []DLPProfile `json:"profiles"`}
DLPProfilesCreateRequest represents a request to create aset of profiles.
typeDNSFirewallAnalytics¶added inv0.29.0
type DNSFirewallAnalytics struct {TotalsDNSFirewallAnalyticsMetrics `json:"totals"`MinDNSFirewallAnalyticsMetrics `json:"min"`MaxDNSFirewallAnalyticsMetrics `json:"max"`}
DNSFirewallAnalytics represents a set of aggregated DNS Firewall metrics.TODO: Add the queried data and not only the aggregated values.
typeDNSFirewallAnalyticsMetrics¶added inv0.29.0
type DNSFirewallAnalyticsMetrics struct {QueryCount *int64 `json:"queryCount"`UncachedCount *int64 `json:"uncachedCount"`StaleCount *int64 `json:"staleCount"`ResponseTimeAvg *float64 `json:"responseTimeAvg"`ResponseTimeMedian *float64 `json:"responseTimeMedian"`ResponseTime90th *float64 `json:"responseTime90th"`ResponseTime99th *float64 `json:"responseTime99th"`}
DNSFirewallAnalyticsMetrics represents a group of aggregated DNS Firewall metrics.
typeDNSFirewallCluster¶added inv0.29.0
type DNSFirewallCluster struct {IDstring `json:"id,omitempty"`Namestring `json:"name"`UpstreamIPs []string `json:"upstream_ips"`DNSFirewallIPs []string `json:"dns_firewall_ips,omitempty"`MinimumCacheTTLuint `json:"minimum_cache_ttl,omitempty"`MaximumCacheTTLuint `json:"maximum_cache_ttl,omitempty"`DeprecateAnyRequestsbool `json:"deprecate_any_requests"`ModifiedOnstring `json:"modified_on,omitempty"`}
DNSFirewallCluster represents a DNS Firewall configuration.
typeDNSFirewallUserAnalyticsOptions¶added inv0.29.0
type DNSFirewallUserAnalyticsOptions struct {Metrics []string `url:"metrics,omitempty" del:","`Since *time.Time `url:"since,omitempty"`Until *time.Time `url:"until,omitempty"`}
DNSFirewallUserAnalyticsOptions represents range and dimension selection on analytics endpoint.
typeDNSListResponse¶added inv0.7.2
type DNSListResponse struct {Result []DNSRecord `json:"result"`ResponseResultInfo `json:"result_info"`}
DNSListResponse represents the response from the list DNS records endpoint.
typeDNSRecord¶added inv0.7.2
type DNSRecord struct {CreatedOntime.Time `json:"created_on,omitempty"`ModifiedOntime.Time `json:"modified_on,omitempty"`Typestring `json:"type,omitempty"`Namestring `json:"name,omitempty"`Contentstring `json:"content,omitempty"`Meta interface{} `json:"meta,omitempty"`Data interface{} `json:"data,omitempty"`// data returned by: SRV, LOCIDstring `json:"id,omitempty"`Priority *uint16 `json:"priority,omitempty"`TTLint `json:"ttl,omitempty"`Proxied *bool `json:"proxied,omitempty"`Proxiablebool `json:"proxiable,omitempty"`Commentstring `json:"comment,omitempty"`// the server will omit the comment field when the comment is emptyTags []string `json:"tags,omitempty"`SettingsDNSRecordSettings `json:"settings,omitempty"`}
DNSRecord represents a DNS record in a zone.
typeDNSRecordResponse¶added inv0.7.2
type DNSRecordResponse struct {ResultDNSRecord `json:"result"`ResponseResultInfo `json:"result_info"`}
DNSRecordResponse represents the response from the DNS endpoint.
typeDNSRecordSettings¶added inv0.115.0
type DNSRecordSettings struct {FlattenCNAME *bool `json:"flatten_cname,omitempty"`}
typeDeleteAPIShieldOperationParams¶added inv0.78.0
type DeleteAPIShieldOperationParams struct {// OperationID is the operation to be deletedOperationIDstring `url:"-"`}
DeleteAPIShieldOperationParams represents the parameters to pass to delete an operation.
API documentation:https://developers.cloudflare.com/api/resources/api_gateway/subresources/operations/methods/delete/
typeDeleteAPIShieldSchemaParams¶added inv0.79.0
type DeleteAPIShieldSchemaParams struct {// SchemaID is the schema to be deletedSchemaIDstring `url:"-"`}
DeleteAPIShieldSchemaParams represents the parameters to pass to delete a schema.
API documentation:https://developers.cloudflare.com/api/resources/api_gateway/subresources/user_schemas/methods/delete/
typeDeleteAccessPolicyParams¶added inv0.71.0
typeDeleteCustomNameserversParams¶added inv0.70.0
type DeleteCustomNameserversParams struct {NSNamestring}
typeDeleteDeviceSettingsPolicyResponse¶added inv0.52.0
type DeleteDeviceSettingsPolicyResponse struct {ResponseResult []DeviceSettingsPolicy}
typeDeleteHostnameTLSSettingCiphersParams¶added inv0.75.0
type DeleteHostnameTLSSettingCiphersParams struct {Hostnamestring}
DeleteHostnameTLSSettingCiphersParams represents the data related to the per-hostname ciphers tls setting being deleted.
typeDeleteHostnameTLSSettingParams¶added inv0.75.0
DeleteHostnameTLSSettingParams represents the data related to the per-hostname tls setting being deleted.
typeDeleteIPAddressFromAddressMapParams¶added inv0.63.0
typeDeleteMagicTransitGRETunnelResponse¶added inv0.32.0
type DeleteMagicTransitGRETunnelResponse struct {ResponseResult struct {Deletedbool `json:"deleted"`DeletedGRETunnelMagicTransitGRETunnel `json:"deleted_gre_tunnel"`} `json:"result"`}
DeleteMagicTransitGRETunnelResponse contains a response after deleting a GRE Tunnel.
typeDeleteMagicTransitIPsecTunnelResponse¶added inv0.31.0
type DeleteMagicTransitIPsecTunnelResponse struct {ResponseResult struct {Deletedbool `json:"deleted"`DeletedIPsecTunnelMagicTransitIPsecTunnel `json:"deleted_ipsec_tunnel"`} `json:"result"`}
DeleteMagicTransitIPsecTunnelResponse contains a response after deleting an IPsec Tunnel.
typeDeleteMagicTransitStaticRouteResponse¶added inv0.18.0
type DeleteMagicTransitStaticRouteResponse struct {ResponseResult struct {Deletedbool `json:"deleted"`DeletedRouteMagicTransitStaticRoute `json:"deleted_route"`} `json:"result"`}
DeleteMagicTransitStaticRouteResponse contains a static route deletion response.
typeDeleteMembershipFromAddressMapParams¶added inv0.63.0
type DeleteMembershipFromAddressMapParams struct {// ID represents the target address map for removing the IP address.IDstringMembershipAddressMapMembershipContainer}
typeDeleteObservatoryPageTestsParams¶added inv0.78.0
typeDeleteObservatoryScheduledPageTestParams¶added inv0.78.0
typeDeletePagesDeploymentParams¶added inv0.40.0
typeDeleteQueueConsumerParams¶added inv0.55.0
type DeleteQueueConsumerParams struct {QueueName, ConsumerNamestring}
typeDeleteRulesetRuleParams¶added inv0.102.0
typeDeleteWaitingRoomRuleParams¶added inv0.53.0
typeDeleteWebAnalyticsRuleParams¶added inv0.75.0
typeDeleteWebAnalyticsSiteParams¶added inv0.75.0
type DeleteWebAnalyticsSiteParams struct {SiteTagstring}
typeDeleteWorkerParams¶added inv0.57.0
typeDeleteWorkersKVEntriesParams¶added inv0.55.0
typeDeleteWorkersKVEntryParams¶added inv0.55.0
typeDeleteWorkersSecretParams¶added inv0.57.0
typeDeleteZoneHoldParams¶added inv0.75.0
DeleteZoneHoldParams represents params for the Delete Zone Holdendpoint.
typeDeviceClientCertificates¶added inv0.81.0
DeviceClientCertificates identifies if the zero trust zone is configured for an account.
typeDeviceDexTest¶added inv0.62.0
typeDeviceDexTestData¶added inv0.62.0
type DeviceDexTestData map[string]interface{}
typeDeviceDexTestListResponse¶added inv0.62.0
type DeviceDexTestListResponse struct {ResponseResultDeviceDexTests `json:"result"`}
typeDeviceDexTestResponse¶added inv0.62.0
type DeviceDexTestResponse struct {ResponseResultDeviceDexTest `json:"result"`}
typeDeviceDexTests¶added inv0.62.0
type DeviceDexTests struct {DexTests []DeviceDexTest `json:"dex_tests"`}
typeDeviceManagedNetwork¶added inv0.57.0
typeDeviceManagedNetworkListResponse¶added inv0.57.0
type DeviceManagedNetworkListResponse struct {ResponseResult []DeviceManagedNetwork `json:"result"`}
typeDeviceManagedNetworkResponse¶added inv0.57.0
type DeviceManagedNetworkResponse struct {ResponseResultDeviceManagedNetwork `json:"result"`}
typeDevicePostureIntegration¶added inv0.29.0
type DevicePostureIntegration struct {IntegrationIDstring `json:"id,omitempty"`Namestring `json:"name,omitempty"`Typestring `json:"type,omitempty"`Intervalstring `json:"interval,omitempty"`ConfigDevicePostureIntegrationConfig `json:"config,omitempty"`}
DevicePostureIntegration represents a device posture integration.
typeDevicePostureIntegrationConfig¶added inv0.29.0
type DevicePostureIntegrationConfig struct {ClientIDstring `json:"client_id,omitempty"`ClientSecretstring `json:"client_secret,omitempty"`AuthUrlstring `json:"auth_url,omitempty"`ApiUrlstring `json:"api_url,omitempty"`ClientKeystring `json:"client_key,omitempty"`CustomerIDstring `json:"customer_id,omitempty"`AccessClientIDstring `json:"access_client_id,omitempty"`AccessClientSecretstring `json:"access_client_secret,omitempty"`}
DevicePostureIntegrationConfig contains authentication informationfor a device posture integration.
typeDevicePostureIntegrationListResponse¶added inv0.29.0
type DevicePostureIntegrationListResponse struct {Result []DevicePostureIntegration `json:"result"`ResponseResultInfo `json:"result_info"`}
DevicePostureIntegrationListResponse represents the response from the listdevice posture integrations endpoint.
typeDevicePostureIntegrationResponse¶added inv0.29.0
type DevicePostureIntegrationResponse struct {ResultDevicePostureIntegration `json:"result"`ResponseResultInfo `json:"result_info"`}
DevicePostureIntegrationResponse represents the response from the getdevice posture integrations endpoint.
typeDevicePostureRule¶added inv0.17.0
type DevicePostureRule struct {IDstring `json:"id,omitempty"`Typestring `json:"type"`Namestring `json:"name"`Descriptionstring `json:"description,omitempty"`Schedulestring `json:"schedule,omitempty"`Match []DevicePostureRuleMatch `json:"match,omitempty"`InputDevicePostureRuleInput `json:"input,omitempty"`Expirationstring `json:"expiration,omitempty"`}
DevicePostureRule represents a device posture rule.
typeDevicePostureRuleDetailResponse¶added inv0.17.0
type DevicePostureRuleDetailResponse struct {ResponseResultDevicePostureRule `json:"result"`}
DevicePostureRuleDetailResponse is the API response, containing a singledevice posture rule.
typeDevicePostureRuleInput¶added inv0.17.0
type DevicePostureRuleInput struct {IDstring `json:"id,omitempty"`Pathstring `json:"path,omitempty"`Exists *bool `json:"exists,omitempty"`Thumbprintstring `json:"thumbprint,omitempty"`Sha256string `json:"sha256,omitempty"`Running *bool `json:"running,omitempty"`RequireAll *bool `json:"requireAll,omitempty"`CheckDisks []string `json:"checkDisks,omitempty"`Enabled *bool `json:"enabled,omitempty"`Versionstring `json:"version,omitempty"`VersionOperatorstring `json:"versionOperator,omitempty"`Overallstring `json:"overall,omitempty"`SensorConfigstring `json:"sensor_config,omitempty"`Osstring `json:"os,omitempty"`OsDistroNamestring `json:"os_distro_name,omitempty"`OsDistroRevisionstring `json:"os_distro_revision,omitempty"`OSVersionExtrastring `json:"os_version_extra,omitempty"`Operatorstring `json:"operator,omitempty"`Domainstring `json:"domain,omitempty"`ComplianceStatusstring `json:"compliance_status,omitempty"`ConnectionIDstring `json:"connection_id,omitempty"`IssueCountstring `json:"issue_count,omitempty"`CountOperatorstring `json:"countOperator,omitempty"`TotalScoreint `json:"total_score,omitempty"`ScoreOperatorstring `json:"scoreOperator,omitempty"`CertificateIDstring `json:"certificate_id,omitempty"`CommonNamestring `json:"cn,omitempty"`ActiveThreatsint `json:"active_threats,omitempty"`NetworkStatusstring `json:"network_status,omitempty"`Infected *bool `json:"infected,omitempty"`IsActive *bool `json:"is_active,omitempty"`OperationalState *string `json:"operational_state,omitempty"`EidLastSeenstring `json:"eid_last_seen,omitempty"`RiskLevelstring `json:"risk_level,omitempty"`Statestring `json:"state,omitempty"`LastSeenstring `json:"last_seen,omitempty"`ExtendedKeyUsage []string `json:"extended_key_usage,omitempty"`CheckPrivateKey *bool `json:"check_private_key,omitempty"`LocationsCertificateLocations `json:"locations,omitempty"`Scoreint `json:"score,omitempty"`}
DevicePostureRuleInput represents the value to be checked against.
typeDevicePostureRuleListResponse¶added inv0.17.0
type DevicePostureRuleListResponse struct {Result []DevicePostureRule `json:"result"`ResponseResultInfo `json:"result_info"`}
DevicePostureRuleListResponse represents the response from the listdevice posture rules endpoint.
typeDevicePostureRuleMatch¶added inv0.17.0
type DevicePostureRuleMatch struct {Platformstring `json:"platform,omitempty"`}
DevicePostureRuleMatch represents the conditions that the client must match to run the rule.
typeDeviceSettingsPolicy¶added inv0.52.0
type DeviceSettingsPolicy struct {ServiceModeV2 *ServiceModeV2 `json:"service_mode_v2"`DisableAutoFallback *bool `json:"disable_auto_fallback"`FallbackDomains *[]FallbackDomain `json:"fallback_domains"`Include *[]SplitTunnel `json:"include"`Exclude *[]SplitTunnel `json:"exclude"`GatewayUniqueID *string `json:"gateway_unique_id"`SupportURL *string `json:"support_url"`CaptivePortal *int `json:"captive_portal"`AllowModeSwitch *bool `json:"allow_mode_switch"`SwitchLocked *bool `json:"switch_locked"`AllowUpdates *bool `json:"allow_updates"`AutoConnect *int `json:"auto_connect"`AllowedToLeave *bool `json:"allowed_to_leave"`PolicyID *string `json:"policy_id"`Enabled *bool `json:"enabled"`Name *string `json:"name"`Match *string `json:"match"`Precedence *int `json:"precedence"`Defaultbool `json:"default"`ExcludeOfficeIps *bool `json:"exclude_office_ips"`Description *string `json:"description"`LANAllowMinutes *uint `json:"lan_allow_minutes"`LANAllowSubnetSize *uint `json:"lan_allow_subnet_size"`TunnelProtocol *string `json:"tunnel_protocol"`}
typeDeviceSettingsPolicyResponse¶added inv0.52.0
type DeviceSettingsPolicyResponse struct {ResponseResultDeviceSettingsPolicy}
typeDiagnosticsTracerouteConfiguration¶added inv0.13.1
type DiagnosticsTracerouteConfiguration struct {Targets []string `json:"targets"`Colos []string `json:"colos,omitempty"`OptionsDiagnosticsTracerouteConfigurationOptions `json:"options,omitempty"`}
DiagnosticsTracerouteConfiguration is the overarching structure of thediagnostics traceroute requests.
typeDiagnosticsTracerouteConfigurationOptions¶added inv0.13.1
type DiagnosticsTracerouteConfigurationOptions struct {PacketsPerTTLint `json:"packets_per_ttl"`PacketTypestring `json:"packet_type"`MaxTTLint `json:"max_ttl"`WaitTimeint `json:"wait_time"`}
DiagnosticsTracerouteConfigurationOptions contains the options for performingtraceroutes.
typeDiagnosticsTracerouteResponse¶added inv0.13.1
type DiagnosticsTracerouteResponse struct {ResponseResult []DiagnosticsTracerouteResponseResult `json:"result"`}
DiagnosticsTracerouteResponse is the outer response of the API response.
typeDiagnosticsTracerouteResponseColo¶added inv0.13.1
DiagnosticsTracerouteResponseColo contains the Name and City of a colocation.
typeDiagnosticsTracerouteResponseColos¶added inv0.13.1
type DiagnosticsTracerouteResponseColos struct {Errorstring `json:"error"`ColoDiagnosticsTracerouteResponseColo `json:"colo"`TracerouteTimeMsint `json:"traceroute_time_ms"`TargetSummaryDiagnosticsTracerouteResponseNodes `json:"target_summary"`Hops []DiagnosticsTracerouteResponseHops `json:"hops"`}
DiagnosticsTracerouteResponseColos is the summary struct of a colocation test.
typeDiagnosticsTracerouteResponseHops¶added inv0.13.1
type DiagnosticsTracerouteResponseHops struct {PacketsTTLint `json:"packets_ttl"`PacketsSentint `json:"packets_sent"`PacketsLostint `json:"packets_lost"`Nodes []DiagnosticsTracerouteResponseNodes `json:"nodes"`}
DiagnosticsTracerouteResponseHops holds packet and node information of thehops.
typeDiagnosticsTracerouteResponseNodes¶added inv0.13.1
type DiagnosticsTracerouteResponseNodes struct {Asnstring `json:"asn"`IPstring `json:"ip"`Namestring `json:"name"`PacketCountint `json:"packet_count"`MeanRttMsfloat64 `json:"mean_rtt_ms"`StdDevRttMsfloat64 `json:"std_dev_rtt_ms"`MinRttMsfloat64 `json:"min_rtt_ms"`MaxRttMsfloat64 `json:"max_rtt_ms"`}
DiagnosticsTracerouteResponseNodes holds a summary of nodes contacted in thetraceroute.
typeDiagnosticsTracerouteResponseResult¶added inv0.13.1
type DiagnosticsTracerouteResponseResult struct {Targetstring `json:"target"`Colos []DiagnosticsTracerouteResponseColos `json:"colos"`}
DiagnosticsTracerouteResponseResult is the inner API response for thetraceroute request.
typeDispatchNamespaceBinding¶added inv0.74.0
type DispatchNamespaceBinding struct {BindingstringNamespacestringOutbound *NamespaceOutboundOptions}
DispatchNamespaceBinding is a binding to a Workers for Platforms namespace
func (DispatchNamespaceBinding)Type¶added inv0.74.0
func (bDispatchNamespaceBinding) Type()WorkerBindingType
Type returns the type of the binding.
typeDomainDetails¶added inv0.44.0
type DomainDetails struct {Domainstring `json:"domain"`ResolvesToRefs []ResolvesToRefs `json:"resolves_to_refs"`PopularityRankint `json:"popularity_rank"`ApplicationApplication `json:"application"`RiskTypes []interface{} `json:"risk_types"`ContentCategories []ContentCategories `json:"content_categories"`AdditionalInformationAdditionalInformation `json:"additional_information"`}
DomainDetails represents details for a domain.
typeDomainDetailsResponse¶added inv0.44.0
type DomainDetailsResponse struct {ResponseResultDomainDetails `json:"result,omitempty"`}
DomainDetailsResponse represents an API response for domain details.
typeDomainHistory¶added inv0.44.0
type DomainHistory struct {Domainstring `json:"domain"`Categorizations []Categorizations `json:"categorizations"`}
DomainHistory represents the history for a domain.
typeDuration¶added inv0.9.0
Duration implements json.Marshaler and json.Unmarshaler for time.Durationusing the fmt.Stringer interface of time.Duration and time.ParseDuration.
Example¶
d := Duration{1 * time.Second}fmt.Println(d)buf, err := json.Marshal(d)fmt.Println(string(buf), err)err = json.Unmarshal([]byte(`"5s"`), &d)fmt.Println(d, err)d.Duration += time.Secondfmt.Println(d, err)
Output:1s"1s" <nil>5s <nil>6s <nil>
func (Duration)MarshalJSON¶added inv0.9.0
MarshalJSON encodes a Duration as a JSON string formatted using String.
func (*Duration)UnmarshalJSON¶added inv0.9.0
UnmarshalJSON decodes a Duration from a JSON string parsed using time.ParseDuration.
typeEgressSettings¶added inv0.59.0
typeEmailRoutingCatchAllRule¶added inv0.47.0
type EmailRoutingCatchAllRule struct {Tagstring `json:"tag,omitempty"`Namestring `json:"name,omitempty"`Enabled *bool `json:"enabled,omitempty"`Matchers []EmailRoutingRuleMatcher `json:"matchers,omitempty"`Actions []EmailRoutingRuleAction `json:"actions,omitempty"`}
typeEmailRoutingCatchAllRuleResponse¶added inv0.49.0
type EmailRoutingCatchAllRuleResponse struct {ResultEmailRoutingCatchAllRule `json:"result"`Response}
typeEmailRoutingDNSSettingsResponse¶added inv0.47.0
typeEmailRoutingDestinationAddress¶added inv0.47.0
typeEmailRoutingRule¶added inv0.47.0
type EmailRoutingRule struct {Tagstring `json:"tag,omitempty"`Namestring `json:"name,omitempty"`Priorityint `json:"priority,omitempty"`Enabled *bool `json:"enabled,omitempty"`Matchers []EmailRoutingRuleMatcher `json:"matchers,omitempty"`Actions []EmailRoutingRuleAction `json:"actions,omitempty"`}
typeEmailRoutingRuleAction¶added inv0.47.0
typeEmailRoutingRuleMatcher¶added inv0.47.0
typeEmailRoutingSettings¶added inv0.47.0
type EmailRoutingSettings struct {Tagstring `json:"tag,omitempty"`Namestring `json:"name,omitempty"`Enabledbool `json:"enabled,omitempty"`Created *time.Time `json:"created,omitempty"`Modified *time.Time `json:"modified,omitempty"`SkipWizard *bool `json:"skip_wizard,omitempty"`Statusstring `json:"status,omitempty"`}
typeEmailRoutingSettingsResponse¶added inv0.47.0
type EmailRoutingSettingsResponse struct {ResultEmailRoutingSettings `json:"result,omitempty"`Response}
typeEnvVarType¶added inv0.56.0
type EnvVarTypestring
const (PlainTextEnvVarType = "plain_text"SecretTextEnvVarType = "secret_text")
typeEnvironmentVariable¶added inv0.56.0
type EnvironmentVariable struct {Valuestring `json:"value"`TypeEnvVarType `json:"type"`}
PagesProjectDeploymentVar represents a deployment environment variable.
typeEnvironmentVariableMap¶added inv0.56.0
type EnvironmentVariableMap map[string]*EnvironmentVariable
typeError¶
type Error struct {// The classification of error encountered.TypeErrorType// StatusCode is the HTTP status code from the response.StatusCodeint// Errors is all of the error messages and codes, combined.Errors []ResponseInfo// ErrorCodes is a list of all the error codes.ErrorCodes []int// ErrorMessages is a list of all the error codes.ErrorMessages []string// Messages is a list of informational messages provided by the endpoint.Messages []ResponseInfo// RayID is the internal identifier for the request that was made.RayIDstring}
func (*Error)ClientError¶added inv0.36.0
ClientError returns a boolean whether or not the raised error was caused bysomething client side.
func (*Error)ClientRateLimited¶added inv0.36.0
ClientRateLimited returns a boolean whether or not the raised error wascaused by too many requests from the client.
func (*Error)ErrorMessageContains¶added inv0.36.0
ErrorMessageContains returns a boolean whether or not a substring exists inany of the `e.ErrorMessages` slice entries.
func (*Error)InternalErrorCodeIs¶added inv0.36.0
InternalErrorCodeIs returns a boolean whether or not the desired internalerror code is present in `e.InternalErrorCodes`.
typeExportDNSRecordsParams¶added inv0.66.0
type ExportDNSRecordsParams struct{}
typeFallbackDomain¶added inv0.29.0
type FallbackDomain struct {Suffixstring `json:"suffix,omitempty"`Descriptionstring `json:"description,omitempty"`DNSServer []string `json:"dns_server,omitempty"`}
FallbackDomain represents the individual domain struct.
typeFallbackDomainResponse¶added inv0.29.0
type FallbackDomainResponse struct {ResponseResult []FallbackDomain `json:"result"`}
FallbackDomainResponse represents the response from the get fallbackdomain endpoints.
typeFallbackOrigin¶added inv0.10.1
FallbackOrigin describes a fallback origin.
typeFallbackOriginResponse¶added inv0.10.1
type FallbackOriginResponse struct {ResponseResultFallbackOrigin `json:"result"`}
FallbackOriginResponse represents the response from the fallback_origin endpoint.
typeFilter¶added inv0.9.0
type Filter struct {IDstring `json:"id,omitempty"`Expressionstring `json:"expression"`Pausedbool `json:"paused"`Descriptionstring `json:"description"`// Property is mentioned in documentation however isn't populated in// any of the API requests. For now, let's just omit it unless it's// provided.Refstring `json:"ref,omitempty"`}
Filter holds the structure of the filter type.
typeFilterCreateParams¶added inv0.47.0
type FilterCreateParams struct {IDstring `json:"id,omitempty"`Expressionstring `json:"expression"`Pausedbool `json:"paused"`Descriptionstring `json:"description"`Refstring `json:"ref,omitempty"`}
FilterCreateParams contains required and optional paramsfor creating a filter.
typeFilterDetailResponse¶added inv0.9.0
type FilterDetailResponse struct {ResultFilter `json:"result"`ResultInfo `json:"result_info"`Response}
FilterDetailResponse is the API response that is returnedfor requesting a single filter on a zone.
typeFilterListParams¶
type FilterListParams struct {ResultInfo}
typeFilterUpdateParams¶
type FilterUpdateParams struct {IDstring `json:"id"`Expressionstring `json:"expression"`Pausedbool `json:"paused"`Descriptionstring `json:"description"`Refstring `json:"ref,omitempty"`}
FilterUpdateParams contains required and optional paramsfor updating a filter.
typeFilterValidateExpression¶added inv0.9.0
type FilterValidateExpression struct {Expressionstring `json:"expression"`}
FilterValidateExpression represents the JSON payload for checkingan expression.
typeFilterValidateExpressionResponse¶added inv0.9.0
type FilterValidateExpressionResponse struct {Successbool `json:"success"`Errors []FilterValidationExpressionMessage `json:"errors"`}
FilterValidateExpressionResponse represents the API response forchecking the expression. It conforms to the JSON API approach howeverwe don't need all of the fields exposed.
typeFilterValidationExpressionMessage¶added inv0.9.0
type FilterValidationExpressionMessage struct {Messagestring `json:"message"`}
FilterValidationExpressionMessage represents the API error message.
typeFiltersDetailResponse¶added inv0.9.0
type FiltersDetailResponse struct {Result []Filter `json:"result"`ResultInfo `json:"result_info"`Response}
FiltersDetailResponse is the API response that is returnedfor requesting all filters on a zone.
typeFirewallRule¶added inv0.9.0
type FirewallRule struct {IDstring `json:"id,omitempty"`Pausedbool `json:"paused"`Descriptionstring `json:"description"`Actionstring `json:"action"`Priority interface{} `json:"priority"`FilterFilter `json:"filter"`Products []string `json:"products,omitempty"`Refstring `json:"ref,omitempty"`CreatedOntime.Time `json:"created_on,omitempty"`ModifiedOntime.Time `json:"modified_on,omitempty"`}
FirewallRule is the struct of the firewall rule.
typeFirewallRuleCreateParams¶added inv0.47.0
type FirewallRuleCreateParams struct {IDstring `json:"id,omitempty"`Pausedbool `json:"paused"`Descriptionstring `json:"description"`Actionstring `json:"action"`Priority interface{} `json:"priority"`FilterFilter `json:"filter"`Products []string `json:"products,omitempty"`Refstring `json:"ref,omitempty"`}
FirewallRuleCreateParams contains required and optional paramsfor creating a firewall rule.
typeFirewallRuleListParams¶
type FirewallRuleListParams struct {ResultInfo}
typeFirewallRuleResponse¶added inv0.9.0
type FirewallRuleResponse struct {ResultFirewallRule `json:"result"`ResultInfo `json:"result_info"`Response}
FirewallRuleResponse is the API response that is returnedfor requesting a single firewall rule on a zone.
typeFirewallRuleUpdateParams¶
type FirewallRuleUpdateParams struct {IDstring `json:"id"`Pausedbool `json:"paused"`Descriptionstring `json:"description"`Actionstring `json:"action"`Priority interface{} `json:"priority"`FilterFilter `json:"filter"`Products []string `json:"products,omitempty"`Refstring `json:"ref,omitempty"`}
FirewallRuleUpdateParams contains required and optional paramsfor updating a firewall rule.
typeFirewallRulesDetailResponse¶added inv0.9.0
type FirewallRulesDetailResponse struct {Result []FirewallRule `json:"result"`ResultInfo `json:"result_info"`Response}
FirewallRulesDetailResponse is the API response for the firewallrules.
typeGatewayCategoriesResponse¶added inv0.100.0
type GatewayCategoriesResponse struct {Successbool `json:"success"`Result []GatewayCategory `json:"result"`Errors []string `json:"errors"`Messages []string `json:"messages"`ResultInfoResultInfo `json:"result_info"`}
GatewayCategoriesResponse represents the response from the listgateway categories endpoint.
typeGatewayCategory¶added inv0.100.0
type GatewayCategory struct {Beta *bool `json:"beta,omitempty"`Classstring `json:"class"`Descriptionstring `json:"description"`IDint `json:"id"`Namestring `json:"name"`Subcategories []GatewayCategory `json:"subcategories"`}
GatewayCategory represents a single gateway category.
typeGenerateMagicTransitIPsecTunnelPSKResponse¶added inv0.41.0
type GenerateMagicTransitIPsecTunnelPSKResponse struct {ResponseResult struct {Pskstring `json:"psk"`PskMetadata *MagicTransitIPsecTunnelPskMetadata `json:"psk_metadata"`} `json:"result"`}
GenerateMagicTransitIPsecTunnelPSKResponse contains a response after generating IPsec Tunnel.
typeGetAPIShieldOperationParams¶added inv0.78.0
type GetAPIShieldOperationParams struct {// The Operation ID to retrieveOperationIDstring `url:"-"`// Features represents a set of features to return in `features` object when// performing making read requests against an Operation or listing operations.Features []string `url:"feature,omitempty"`}
GetAPIShieldOperationParams represents the parameters to pass when retrieving an operation.
API documentation:https://developers.cloudflare.com/api/resources/api_gateway/subresources/operations/methods/get/
typeGetAPIShieldOperationSchemaValidationSettingsParams¶added inv0.80.0
type GetAPIShieldOperationSchemaValidationSettingsParams struct {// The Operation ID to apply the mitigation action toOperationIDstring `url:"-"`}
GetAPIShieldOperationSchemaValidationSettingsParams represents the parameters to pass to retrievethe schema validation settings set on the operation.
API documentation:https://developers.cloudflare.com/api/resources/api_gateway/subresources/operations/subresources/schema_validation/methods/get/
typeGetAPIShieldSchemaParams¶added inv0.79.0
type GetAPIShieldSchemaParams struct {// SchemaID is the ID of the schema to retrieveSchemaIDstring `url:"-"`// OmitSource specifies whether the contents of the schema should be returned in the "Source" field.OmitSource *bool `url:"omit_source,omitempty"`}
GetAPIShieldSchemaParams represents the parameters to pass when retrieving a schema with a given schema ID.
API documentation:https://developers.cloudflare.com/api/resources/api_gateway/subresources/user_schemas/methods/get/
typeGetAccessMutualTLSHostnameSettingsResponse¶added inv0.90.0
type GetAccessMutualTLSHostnameSettingsResponse struct {ResponseResult []AccessMutualTLSHostnameSettings `json:"result"`}
typeGetAccessOrganizationParams¶added inv0.71.0
type GetAccessOrganizationParams struct{}
typeGetAccessPolicyParams¶added inv0.71.0
typeGetAccessUserLastSeenIdentityResult¶added inv0.81.0
type GetAccessUserLastSeenIdentityResult struct {AccountIDstring `json:"account_id"`AuthStatusstring `json:"auth_status"`CommonNamestring `json:"common_name"`DevicePosture map[string]AccessUserDevicePosture `json:"devicePosture"`DeviceSessions map[string]AccessUserDeviceSession `json:"device_sessions"`DeviceIDstring `json:"device_id"`Emailstring `json:"email"`GeoAccessUserIdentityGeo `json:"geo"`IATint64 `json:"iat"`IDPAccessUserIDP `json:"idp"`IPstring `json:"ip"`IsGateway *bool `json:"is_gateway"`IsWarp *bool `json:"is_warp"`MtlsAuthAccessUserMTLSAuth `json:"mtls_auth"`ServiceTokenIDstring `json:"service_token_id"`ServiceTokenStatus *bool `json:"service_token_status"`UserUUIDstring `json:"user_uuid"`Versionint `json:"version"`}
typeGetAccessUserSingleActiveSessionResponse¶added inv0.81.0
type GetAccessUserSingleActiveSessionResponse struct {ResultGetAccessUserSingleActiveSessionResult `json:"result"`ResultInfo `json:"result_info"`Response}
typeGetAccessUserSingleActiveSessionResult¶added inv0.81.0
type GetAccessUserSingleActiveSessionResult struct {AccountIDstring `json:"account_id"`AuthStatusstring `json:"auth_status"`CommonNamestring `json:"common_name"`DevicePosture map[string]AccessUserDevicePosture `json:"devicePosture"`DeviceSessions map[string]AccessUserDeviceSession `json:"device_sessions"`DeviceIDstring `json:"device_id"`Emailstring `json:"email"`GeoAccessUserIdentityGeo `json:"geo"`IATint64 `json:"iat"`IDPAccessUserIDP `json:"idp"`IPstring `json:"ip"`IsGateway *bool `json:"is_gateway"`IsWarp *bool `json:"is_warp"`MtlsAuthAccessUserMTLSAuth `json:"mtls_auth"`ServiceTokenIDstring `json:"service_token_id"`ServiceTokenStatus *bool `json:"service_token_status"`UserUUIDstring `json:"user_uuid"`Versionint `json:"version"`IsActive *bool `json:"isActive"`}
typeGetAddressMapResponse¶added inv0.63.0
type GetAddressMapResponse struct {ResponseResultAddressMap `json:"result"`}
GetAddressMapResponse contains a specific address map's API Response.
typeGetAdvertisementStatusResponse¶added inv0.11.7
type GetAdvertisementStatusResponse struct {ResponseResultAdvertisementStatus `json:"result"`}
GetAdvertisementStatusResponse contains an API Response for the BGP status of the IP Prefix.
typeGetAuditSSHSettingsParams¶added inv0.79.0
type GetAuditSSHSettingsParams struct{}
typeGetBulkDomainDetailsParameters¶added inv0.44.0
type GetBulkDomainDetailsParameters struct {AccountIDstring `url:"-"`Domains []string `url:"domain"`}
GetBulkDomainDetailsParameters represents the parameters for bulk domain details request.
typeGetBulkDomainDetailsResponse¶added inv0.44.0
type GetBulkDomainDetailsResponse struct {ResponseResult []DomainDetails `json:"result,omitempty"`}
GetBulkDomainDetailsResponse represents an API response for bulk domain details.
typeGetCacheReserveParams¶added inv0.68.0
type GetCacheReserveParams struct{}
typeGetCustomNameserverZoneMetadataParams¶added inv0.70.0
type GetCustomNameserverZoneMetadataParams struct{}
typeGetCustomNameserversParams¶added inv0.70.0
type GetCustomNameserversParams struct{}
typeGetDCVDelegationParams¶added inv0.77.0
type GetDCVDelegationParams struct{}
typeGetDLPPayloadLogSettingsParams¶added inv0.62.0
type GetDLPPayloadLogSettingsParams struct{}
typeGetDNSFirewallClusterParams¶added inv0.70.0
type GetDNSFirewallClusterParams struct {ClusterIDstring `json:"-"`}
typeGetDNSFirewallUserAnalyticsParams¶added inv0.70.0
type GetDNSFirewallUserAnalyticsParams struct {ClusterIDstring `json:"-"`DNSFirewallUserAnalyticsOptions}
typeGetDefaultDeviceSettingsPolicyParams¶added inv0.81.0
type GetDefaultDeviceSettingsPolicyParams struct{}
typeGetDeviceClientCertificatesParams¶added inv0.81.0
type GetDeviceClientCertificatesParams struct{}
typeGetDeviceSettingsPolicyParams¶added inv0.81.0
type GetDeviceSettingsPolicyParams struct {PolicyID *string `json:"-"`}
typeGetDomainDetailsParameters¶added inv0.44.0
type GetDomainDetailsParameters struct {AccountIDstring `url:"-"`Domainstring `url:"domain,omitempty"`}
GetDomainDetailsParameters represent the parameters for a domain details request.
typeGetDomainHistoryParameters¶added inv0.44.0
type GetDomainHistoryParameters struct {AccountIDstring `url:"-"`Domainstring `url:"domain,omitempty"`}
GetDomainHistoryParameters represents the parameters for domain history request.
typeGetDomainHistoryResponse¶added inv0.44.0
type GetDomainHistoryResponse struct {ResponseResult []DomainHistory `json:"result,omitempty"`}
GetDomainHistoryResponse represents an API response for domain history.
typeGetEligibleZonesAccountCustomNameserversParams¶added inv0.70.0
type GetEligibleZonesAccountCustomNameserversParams struct{}
typeGetEmailRoutingRuleResponse¶added inv0.47.0
type GetEmailRoutingRuleResponse struct {ResultEmailRoutingRule `json:"result"`Response}
typeGetIPPrefixResponse¶added inv0.11.7
GetIPPrefixResponse contains a specific IP prefix's API Response.
typeGetLogpushFieldsParams¶added inv0.72.0
type GetLogpushFieldsParams struct {Datasetstring `json:"-"`}
typeGetLogpushOwnershipChallengeParams¶added inv0.72.0
type GetLogpushOwnershipChallengeParams struct {DestinationConfstring `json:"destination_conf"`}
typeGetMagicFirewallRulesetResponse¶added inv0.13.7
type GetMagicFirewallRulesetResponse struct {ResponseResultMagicFirewallRuleset `json:"result"`}
GetMagicFirewallRulesetResponse contains a single Magic Firewall Ruleset.
typeGetMagicTransitGRETunnelResponse¶added inv0.32.0
type GetMagicTransitGRETunnelResponse struct {ResponseResult struct {GRETunnelMagicTransitGRETunnel `json:"gre_tunnel"`} `json:"result"`}
GetMagicTransitGRETunnelResponse contains a response including zero or one GRE tunnels.
typeGetMagicTransitIPsecTunnelResponse¶added inv0.31.0
type GetMagicTransitIPsecTunnelResponse struct {ResponseResult struct {IPsecTunnelMagicTransitIPsecTunnel `json:"ipsec_tunnel"`} `json:"result"`}
GetMagicTransitIPsecTunnelResponse contains a response including zero or one IPsec tunnels.
typeGetMagicTransitStaticRouteResponse¶added inv0.18.0
type GetMagicTransitStaticRouteResponse struct {ResponseResult struct {RouteMagicTransitStaticRoute `json:"route"`} `json:"result"`}
GetMagicTransitStaticRouteResponse contains a response including exactly one static route.
typeGetObservatoryPageTestParams¶added inv0.78.0
typeGetObservatoryPageTrendParams¶added inv0.78.0
typeGetObservatoryScheduledPageTestParams¶added inv0.78.0
typeGetPageShieldSettingsParams¶added inv0.84.0
type GetPageShieldSettingsParams struct{}
typeGetPagesDeploymentInfoParams¶added inv0.40.0
typeGetPagesDeploymentLogsParams¶added inv0.43.0
type GetPagesDeploymentLogsParams struct {ProjectNamestringDeploymentIDstringSizeOptions}
typeGetPagesDeploymentStageLogsParams¶added inv0.40.0
type GetPagesDeploymentStageLogsParams struct {ProjectNamestringDeploymentIDstringStageNamestringSizeOptions}
typeGetRegionalTieredCacheParams¶added inv0.73.0
type GetRegionalTieredCacheParams struct{}
typeGetRulesetResponse¶added inv0.19.0
GetRulesetResponse contains a single Ruleset.
typeGetWebAnalyticsSiteParams¶added inv0.75.0
type GetWebAnalyticsSiteParams struct {SiteTagstring}
typeGetWorkersForPlatformsDispatchNamespaceResponse¶added inv0.90.0
type GetWorkersForPlatformsDispatchNamespaceResponse struct {ResponseResultWorkersForPlatformsDispatchNamespace `json:"result"`}
typeGetWorkersKVParams¶added inv0.55.0
typeGetZarazConfigsByIdResponse¶added inv0.86.0
type GetZarazConfigsByIdResponse = map[string]interface{}
typeGetZoneHoldParams¶added inv0.75.0
type GetZoneHoldParams struct{}
typeGetZoneSettingParams¶added inv0.64.0
typeHealthcheck¶added inv0.11.1
type Healthcheck struct {IDstring `json:"id,omitempty"`CreatedOn *time.Time `json:"created_on,omitempty"`ModifiedOn *time.Time `json:"modified_on,omitempty"`Namestring `json:"name"`Descriptionstring `json:"description"`Suspendedbool `json:"suspended"`Addressstring `json:"address"`Retriesint `json:"retries,omitempty"`Timeoutint `json:"timeout,omitempty"`Intervalint `json:"interval,omitempty"`ConsecutiveSuccessesint `json:"consecutive_successes,omitempty"`ConsecutiveFailsint `json:"consecutive_fails,omitempty"`Typestring `json:"type,omitempty"`CheckRegions []string `json:"check_regions"`HTTPConfig *HealthcheckHTTPConfig `json:"http_config,omitempty"`TCPConfig *HealthcheckTCPConfig `json:"tcp_config,omitempty"`Statusstring `json:"status"`FailureReasonstring `json:"failure_reason"`}
Healthcheck describes a Healthcheck object.
typeHealthcheckHTTPConfig¶added inv0.11.1
type HealthcheckHTTPConfig struct {Methodstring `json:"method"`Portuint16 `json:"port,omitempty"`Pathstring `json:"path"`ExpectedCodes []string `json:"expected_codes"`ExpectedBodystring `json:"expected_body"`FollowRedirectsbool `json:"follow_redirects"`AllowInsecurebool `json:"allow_insecure"`Header map[string][]string `json:"header"`}
HealthcheckHTTPConfig describes configuration for a HTTP healthcheck.
typeHealthcheckListResponse¶
type HealthcheckListResponse struct {ResponseResult []Healthcheck `json:"result"`ResultInfo `json:"result_info"`}
HealthcheckListResponse is the API response, containing an array of healthchecks.
typeHealthcheckResponse¶added inv0.11.1
type HealthcheckResponse struct {ResponseResultHealthcheck `json:"result"`}
HealthcheckResponse is the API response, containing a single healthcheck.
typeHealthcheckTCPConfig¶added inv0.11.5
HealthcheckTCPConfig describes configuration for a TCP healthcheck.
typeHostnameAssociation¶added inv0.112.0
type HostnameAssociation =string
typeHostnameAssociations¶added inv0.112.0
type HostnameAssociations struct {Hostnames []HostnameAssociation `json:"hostnames"`}
typeHostnameAssociationsResponse¶added inv0.112.0
type HostnameAssociationsResponse struct {ResponseResultHostnameAssociations `json:"result"`}
typeHostnameAssociationsUpdateRequest¶added inv0.112.0
type HostnameAssociationsUpdateRequest struct {Hostnames []HostnameAssociation `json:"hostnames,omitempty"`MTLSCertificateIDstring `json:"mtls_certificate_id,omitempty"`}
typeHostnameTLSSetting¶added inv0.75.0
type HostnameTLSSetting struct {Hostnamestring `json:"hostname"`Valuestring `json:"value"`Statusstring `json:"status"`CreatedAt *time.Time `json:"created_at"`UpdatedAt *time.Time `json:"updated_at"`}
HostnameTLSSetting represents the metadata for a user-created tls setting.
typeHostnameTLSSettingCiphers¶added inv0.75.0
type HostnameTLSSettingCiphers struct {Hostnamestring `json:"hostname"`Value []string `json:"value"`Statusstring `json:"status"`CreatedAt *time.Time `json:"created_at"`UpdatedAt *time.Time `json:"updated_at"`}
HostnameTLSSettingCiphers represents the metadata for a user-created ciphers tls setting.
typeHostnameTLSSettingCiphersResponse¶added inv0.75.0
type HostnameTLSSettingCiphersResponse struct {ResponseResultHostnameTLSSettingCiphers `json:"result"`}
HostnameTLSSettingCiphersResponse represents the response from the PUT and DELETE endpoints for per-hostname ciphers tls settings.
typeHostnameTLSSettingResponse¶added inv0.75.0
type HostnameTLSSettingResponse struct {ResponseResultHostnameTLSSetting `json:"result"`}
HostnameTLSSettingResponse represents the response from the PUT and DELETE endpoints for per-hostname tls settings.
typeHostnameTLSSettingsCiphersResponse¶added inv0.75.0
type HostnameTLSSettingsCiphersResponse struct {ResponseResult []HostnameTLSSettingCiphers `json:"result"`ResultInfo `json:"result_info"`}
HostnameTLSSettingsCiphersResponse represents the response from the retrieval endpoint for per-hostname ciphers tls settings.
typeHostnameTLSSettingsResponse¶added inv0.75.0
type HostnameTLSSettingsResponse struct {ResponseResult []HostnameTLSSetting `json:"result"`ResultInfo `json:"result_info"`}
HostnameTLSSettingsResponse represents the response from the retrieval endpoint for per-hostname tls settings.
typeHyperdriveConfig¶added inv0.88.0
type HyperdriveConfig struct {IDstring `json:"id,omitempty"`Namestring `json:"name,omitempty"`OriginHyperdriveConfigOrigin `json:"origin,omitempty"`CachingHyperdriveConfigCaching `json:"caching,omitempty"`}
typeHyperdriveConfigCaching¶added inv0.88.0
typeHyperdriveConfigListResponse¶
type HyperdriveConfigListResponse struct {ResponseResult []HyperdriveConfig `json:"result"`}
typeHyperdriveConfigOrigin¶added inv0.88.0
typeHyperdriveConfigOriginWithSecrets¶added inv0.100.0
type HyperdriveConfigOriginWithSecrets struct {HyperdriveConfigOriginPasswordstring `json:"password"`AccessClientSecretstring `json:"access_client_secret,omitempty"`}
typeHyperdriveConfigResponse¶added inv0.88.0
type HyperdriveConfigResponse struct {ResponseResultHyperdriveConfig `json:"result"`}
typeHyperdriveOriginType¶added inv0.100.0
type HyperdriveOriginTypestring
typeIPAccessRule¶added inv0.82.0
type IPAccessRule struct {AllowedModes []IPAccessRulesModeOption `json:"allowed_modes"`ConfigurationIPAccessRuleConfiguration `json:"configuration"`CreatedOnstring `json:"created_on"`IDstring `json:"id"`ModeIPAccessRulesModeOption `json:"mode"`ModifiedOnstring `json:"modified_on"`Notesstring `json:"notes"`}
typeIPAccessRuleConfiguration¶added inv0.82.0
typeIPAccessRulesModeOption¶added inv0.82.0
type IPAccessRulesModeOptionstring
typeIPIntelligence¶added inv0.44.0
type IPIntelligence struct {IPstring `json:"ip"`BelongsToRefBelongsToRef `json:"belongs_to_ref"`RiskTypes []RiskTypes `json:"risk_types"`}
IPIntelligence represents IP intelligence information.
typeIPIntelligenceItem¶added inv0.44.0
IPIntelligenceItem represents an item in an IP list.
typeIPIntelligenceListParameters¶added inv0.44.0
type IPIntelligenceListParameters struct {AccountIDstring}
IPIntelligenceListParameters represents the parameters for an IP list request.
typeIPIntelligenceListResponse¶added inv0.44.0
type IPIntelligenceListResponse struct {ResponseResult []IPIntelligenceItem `json:"result,omitempty"`}
IPIntelligenceListResponse represents the response for an IP list API response.
typeIPIntelligenceParameters¶added inv0.44.0
type IPIntelligenceParameters struct {AccountIDstring `url:"-"`IPv4string `url:"ipv4,omitempty"`IPv6string `url:"ipv6,omitempty"`}
IPIntelligenceParameters represents parameters for an IP Intelligence request.
typeIPIntelligencePassiveDNSParameters¶added inv0.44.0
type IPIntelligencePassiveDNSParameters struct {AccountIDstring `url:"-"`IPv4string `url:"ipv4,omitempty"`Startstring `url:"start,omitempty"`Endstring `url:"end,omitempty"`Pageint `url:"page,omitempty"`PerPageint `url:"per_page,omitempty"`}
IPIntelligencePassiveDNSParameters represents the parameters for a passive DNS request.
typeIPIntelligencePassiveDNSResponse¶added inv0.44.0
type IPIntelligencePassiveDNSResponse struct {ResponseResultIPPassiveDNS `json:"result,omitempty"`}
IPIntelligencePassiveDNSResponse represents a passive API response.
typeIPIntelligenceResponse¶added inv0.44.0
type IPIntelligenceResponse struct {ResponseResult []IPIntelligence `json:"result,omitempty"`}
IPIntelligenceResponse represents an IP Intelligence API response.
typeIPList¶added inv0.13.0
type IPList struct {IDstring `json:"id"`Namestring `json:"name"`Descriptionstring `json:"description"`Kindstring `json:"kind"`NumItemsint `json:"num_items"`NumReferencingFiltersint `json:"num_referencing_filters"`CreatedOn *time.Time `json:"created_on"`ModifiedOn *time.Time `json:"modified_on"`}
IPList contains information about an IP List.
typeIPListBulkOperation¶added inv0.13.0
type IPListBulkOperation struct {IDstring `json:"id"`Statusstring `json:"status"`Errorstring `json:"error"`Completed *time.Time `json:"completed"`}
IPListBulkOperation contains information about a Bulk Operation.
typeIPListBulkOperationResponse¶added inv0.13.0
type IPListBulkOperationResponse struct {ResponseResultIPListBulkOperation `json:"result"`}
IPListBulkOperationResponse contains information about a Bulk Operation.
typeIPListCreateRequest¶added inv0.13.0
type IPListCreateRequest struct {Namestring `json:"name"`Descriptionstring `json:"description"`Kindstring `json:"kind"`}
IPListCreateRequest contains data for a new IP List.
typeIPListDeleteResponse¶added inv0.13.0
IPListDeleteResponse contains information about the deletion of an IP List.
typeIPListItem¶added inv0.13.0
type IPListItem struct {IDstring `json:"id"`IPstring `json:"ip"`Commentstring `json:"comment"`CreatedOn *time.Time `json:"created_on"`ModifiedOn *time.Time `json:"modified_on"`}
IPListItem contains information about a single IP List Item.
typeIPListItemCreateRequest¶added inv0.13.0
IPListItemCreateRequest contains data for a new IP List Item.
typeIPListItemCreateResponse¶added inv0.13.0
type IPListItemCreateResponse struct {ResponseResult struct {OperationIDstring `json:"operation_id"`} `json:"result"`}
IPListItemCreateResponse contains information about the creation of an IP List Item.
typeIPListItemDeleteItemRequest¶added inv0.13.0
type IPListItemDeleteItemRequest struct {IDstring `json:"id"`}
IPListItemDeleteItemRequest contains single IP List Items that shall be deleted.
typeIPListItemDeleteRequest¶added inv0.13.0
type IPListItemDeleteRequest struct {Items []IPListItemDeleteItemRequest `json:"items"`}
IPListItemDeleteRequest wraps IP List Items that shall be deleted.
typeIPListItemDeleteResponse¶added inv0.13.0
type IPListItemDeleteResponse struct {ResponseResult struct {OperationIDstring `json:"operation_id"`} `json:"result"`}
IPListItemDeleteResponse contains information about the deletion of an IP List Item.
typeIPListItemsGetResponse¶added inv0.13.0
type IPListItemsGetResponse struct {ResponseResultIPListItem `json:"result"`}
IPListItemsGetResponse contains information about a single IP List Item.
typeIPListItemsListResponse¶added inv0.13.0
type IPListItemsListResponse struct {ResponseResultInfo `json:"result_info"`Result []IPListItem `json:"result"`}
IPListItemsListResponse contains information about IP List Items.
typeIPListListResponse¶added inv0.13.0
IPListListResponse contains a slice of IP Lists.
typeIPListResponse¶
IPListResponse contains a single IP List.
typeIPListUpdateRequest¶added inv0.13.0
type IPListUpdateRequest struct {Descriptionstring `json:"description"`}
IPListUpdateRequest contains data for an IP List update.
typeIPPassiveDNS¶added inv0.44.0
type IPPassiveDNS struct {ReverseRecords []ReverseRecords `json:"reverse_records,omitempty"`Countint `json:"count,omitempty"`Pageint `json:"page,omitempty"`PerPageint `json:"per_page,omitempty"`}
IPPassiveDNS represent DNS response.
typeIPPrefix¶added inv0.11.7
type IPPrefix struct {IDstring `json:"id"`CreatedAt *time.Time `json:"created_at"`ModifiedAt *time.Time `json:"modified_at"`CIDRstring `json:"cidr"`AccountIDstring `json:"account_id"`Descriptionstring `json:"description"`Approvedstring `json:"approved"`OnDemandEnabledbool `json:"on_demand_enabled"`OnDemandLockedbool `json:"on_demand_locked"`Advertisedbool `json:"advertised"`AdvertisedModifiedAt *time.Time `json:"advertised_modified_at"`}
IPPrefix contains information about an IP prefix.
typeIPPrefixUpdateRequest¶added inv0.11.7
type IPPrefixUpdateRequest struct {Descriptionstring `json:"description"`}
IPPrefixUpdateRequest contains information about prefix updates.
typeIPRanges¶added inv0.7.2
type IPRanges struct {IPv4CIDRs []string `json:"ipv4_cidrs"`IPv6CIDRs []string `json:"ipv6_cidrs"`ChinaIPv4CIDRs []string `json:"china_ipv4_cidrs"`ChinaIPv6CIDRs []string `json:"china_ipv6_cidrs"`}
IPRanges contains lists of IPv4 and IPv6 CIDRs.
funcIPs¶
IPs gets a list of Cloudflare's IP ranges.
This does not require logging in to the API.
API reference:https://api.cloudflare.com/#cloudflare-ips
typeIPRangesResponse¶added inv0.13.4
type IPRangesResponse struct {IPv4CIDRs []string `json:"ipv4_cidrs"`IPv6CIDRs []string `json:"ipv6_cidrs"`ChinaColos []string `json:"china_colos"`}
IPRangesResponse contains the structure for the API response, not modified.
typeIPsResponse¶added inv0.7.2
type IPsResponse struct {ResponseResultIPRangesResponse `json:"result"`}
IPsResponse is the API response containing a list of IPs.
typeImage¶added inv0.30.0
type Image struct {IDstring `json:"id"`Filenamestring `json:"filename"`Meta map[string]interface{} `json:"meta,omitempty"`RequireSignedURLsbool `json:"requireSignedURLs"`Variants []string `json:"variants"`Uploadedtime.Time `json:"uploaded"`}
Image represents a Cloudflare Image.
typeImageDetailsResponse¶added inv0.30.0
ImageDetailsResponse is the API response for getting an image's details.
typeImageDirectUploadURL¶added inv0.30.0
ImageDirectUploadURL .
typeImageDirectUploadURLResponse¶added inv0.30.0
type ImageDirectUploadURLResponse struct {ResultImageDirectUploadURL `json:"result"`Response}
ImageDirectUploadURLResponse is the API response for a direct image upload url.
typeImagesAPIVersion¶added inv0.71.0
type ImagesAPIVersionstring
const (ImagesAPIVersionV1ImagesAPIVersion = "v1"ImagesAPIVersionV2ImagesAPIVersion = "v2")
typeImagesListResponse¶added inv0.30.0
type ImagesListResponse struct {Result struct {Images []Image `json:"images"`} `json:"result"`Response}
ImagesListResponse is the API response for listing all images.
typeImagesStatsCount¶added inv0.30.0
ImagesStatsCount is the stats attached to a ImagesStatsResponse.
typeImagesStatsResponse¶added inv0.30.0
type ImagesStatsResponse struct {Result struct {CountImagesStatsCount `json:"count"`} `json:"result"`Response}
ImagesStatsResponse is the API response for image stats.
typeImagesVariant¶added inv0.88.0
type ImagesVariant struct {IDstring `json:"id,omitempty"`NeverRequireSignedURLs *bool `json:"neverRequireSignedURLs,omitempty"`OptionsImagesVariantsOptions `json:"options,omitempty"`}
typeImagesVariantResponse¶added inv0.88.0
type ImagesVariantResponse struct {ResultImagesVariantResult `json:"result,omitempty"`Response}
typeImagesVariantResult¶added inv0.88.0
type ImagesVariantResult struct {VariantImagesVariant `json:"variant,omitempty"`}
typeImagesVariantsOptions¶added inv0.88.0
typeImportDNSRecordsParams¶added inv0.66.0
type ImportDNSRecordsParams struct {BINDContentsstring}
typeInfrastructureAccessTarget¶added inv0.105.0
type InfrastructureAccessTarget struct {Hostnamestring `json:"hostname"`IDstring `json:"id"`IPInfrastructureAccessTargetIPInfo `json:"ip"`CreatedAtstring `json:"created_at"`ModifiedAtstring `json:"modified_at"`}
typeInfrastructureAccessTargetDetailResponse¶added inv0.105.0
type InfrastructureAccessTargetDetailResponse struct {ResultInfrastructureAccessTarget `json:"result"`Response}
InfrastructureAccessTargetDetailResponse is the API response, containing a single target.
typeInfrastructureAccessTargetIPDetails¶added inv0.105.0
typeInfrastructureAccessTargetIPInfo¶added inv0.105.0
type InfrastructureAccessTargetIPInfo struct {IPV4 *InfrastructureAccessTargetIPDetails `json:"ipv4,omitempty"`IPV6 *InfrastructureAccessTargetIPDetails `json:"ipv6,omitempty"`}
typeInfrastructureAccessTargetListDetailResponse¶added inv0.105.0
type InfrastructureAccessTargetListDetailResponse struct {Result []InfrastructureAccessTarget `json:"result"`ResponseResultInfo `json:"result_info"`}
typeInfrastructureAccessTargetListParams¶added inv0.105.0
type InfrastructureAccessTargetListParams struct {Hostnamestring `url:"hostname,omitempty"`HostnameContainsstring `url:"hostname_contains,omitempty"`IPV4string `url:"ip_v4,omitempty"`IPV6string `url:"ip_v6,omitempty"`CreatedAfterstring `url:"created_after,omitempty"`ModifedAfterstring `url:"modified_after,omitempty"`VirtualNetworkIdstring `url:"virtual_network_id,omitempty"`ResultInfo}
typeInfrastructureAccessTargetParams¶added inv0.105.0
type InfrastructureAccessTargetParams struct {Hostnamestring `json:"hostname"`IPInfrastructureAccessTargetIPInfo `json:"ip"`}
typeIngressIPRule¶added inv0.43.0
typeIntelligenceASNOverviewParameters¶added inv0.44.0
IntelligenceASNOverviewParameters represents parameters for an ASN request.
typeIntelligenceASNResponse¶added inv0.44.0
IntelligenceASNResponse represents an API response for ASN info.
typeIntelligenceASNSubnetResponse¶added inv0.44.0
type IntelligenceASNSubnetResponse struct {ASNint `json:"asn,omitempty"`IPCountTotalint `json:"ip_count_total,omitempty"`Subnets []string `json:"subnets,omitempty"`Countint `json:"count,omitempty"`Pageint `json:"page,omitempty"`PerPageint `json:"per_page,omitempty"`}
IntelligenceASNSubnetResponse represents an ASN subnet API response.
typeIntelligenceASNSubnetsParameters¶added inv0.44.0
IntelligenceASNSubnetsParameters represents parameters for an ASN subnet request.
typeKeylessSSL¶added inv0.7.2
type KeylessSSL struct {IDstring `json:"id"`Namestring `json:"name"`Hoststring `json:"host"`Portint `json:"port"`Statusstring `json:"status"`Enabledbool `json:"enabled"`Permissions []string `json:"permissions"`CreatedOntime.Time `json:"created_on"`ModifiedOntime.Time `json:"modified_on"`}
KeylessSSL represents Keyless SSL configuration.
typeKeylessSSLCreateRequest¶added inv0.17.0
type KeylessSSLCreateRequest struct {Hoststring `json:"host"`Portint `json:"port"`Certificatestring `json:"certificate"`Namestring `json:"name,omitempty"`BundleMethodstring `json:"bundle_method,omitempty"`}
KeylessSSLCreateRequest represents the request format made for creating KeylessSSL.
typeKeylessSSLDetailResponse¶added inv0.17.0
type KeylessSSLDetailResponse struct {ResponseResultKeylessSSL `json:"result"`}
KeylessSSLDetailResponse is the API response, containing a single Keyless SSL.
typeKeylessSSLListResponse¶added inv0.17.0
type KeylessSSLListResponse struct {ResponseResult []KeylessSSL `json:"result"`}
KeylessSSLListResponse represents the response from the Keyless SSL list endpoint.
typeKeylessSSLUpdateRequest¶added inv0.17.0
type KeylessSSLUpdateRequest struct {Hoststring `json:"host,omitempty"`Namestring `json:"name,omitempty"`Portint `json:"port,omitempty"`Enabled *bool `json:"enabled,omitempty"`}
KeylessSSLUpdateRequest represents the request for updating KeylessSSL.
typeLeakCredentialCheckSetStatusParams¶added inv0.111.0
type LeakCredentialCheckSetStatusParams struct {Enabled *bool `json:"enabled"`}
typeLeakCredentialCheckStatusResponse¶added inv0.111.0
type LeakCredentialCheckStatusResponse struct {ResponseResultLeakedCredentialCheckStatus `json:"result"`}
typeLeakedCredentialCheckCreateDetectionParams¶added inv0.111.0
typeLeakedCredentialCheckCreateDetectionResponse¶added inv0.111.0
type LeakedCredentialCheckCreateDetectionResponse struct {ResponseResultLeakedCredentialCheckDetectionEntry `json:"result"`}
typeLeakedCredentialCheckDeleteDetectionParams¶added inv0.111.0
type LeakedCredentialCheckDeleteDetectionParams struct {DetectionIDstring}
typeLeakedCredentialCheckDeleteDetectionResponse¶added inv0.111.0
type LeakedCredentialCheckDeleteDetectionResponse struct {ResponseResult []struct{} `json:"result"`}
typeLeakedCredentialCheckDetectionEntry¶added inv0.111.0
typeLeakedCredentialCheckGetStatusParams¶added inv0.111.0
type LeakedCredentialCheckGetStatusParams struct{}
typeLeakedCredentialCheckListDetectionsParams¶added inv0.111.0
type LeakedCredentialCheckListDetectionsParams struct{}
typeLeakedCredentialCheckListDetectionsResponse¶added inv0.111.0
type LeakedCredentialCheckListDetectionsResponse struct {ResponseResult []LeakedCredentialCheckDetectionEntry `json:"result"`}
typeLeakedCredentialCheckStatus¶added inv0.111.0
type LeakedCredentialCheckStatus struct {Enabled *bool `json:"enabled"`}
typeLeakedCredentialCheckUpdateDetectionParams¶added inv0.111.0
type LeakedCredentialCheckUpdateDetectionParams struct {LeakedCredentialCheckDetectionEntry}
typeLeakedCredentialCheckUpdateDetectionResponse¶added inv0.111.0
type LeakedCredentialCheckUpdateDetectionResponse struct {ResponseResultLeakedCredentialCheckDetectionEntry}
typeLevel¶added inv0.36.0
type Leveluint32
Level represents a logging level.
const (// LevelNull sets a logger to show no messages at all.LevelNullLevel = 0// LevelError sets a logger to show error messages only.LevelErrorLevel = 1// LevelWarn sets a logger to show warning messages or anything more// severe.LevelWarnLevel = 2// LevelInfo sets a logger to show informational messages or anything more// severe.LevelInfoLevel = 3// LevelDebug sets a logger to show informational messages or anything more// severe.LevelDebugLevel = 4)
typeLeveledLogger¶added inv0.36.0
type LeveledLogger struct {// Level is the minimum logging level that will be emitted by this logger.//// For example, a Level set to LevelWarn will emit warnings and errors, but// not informational or debug messages.//// Always set this with a constant like LevelWarn because the individual// values are not guaranteed to be stable.LevelLevel// contains filtered or unexported fields}
LeveledLogger is a leveled logger implementation.
It prints warnings and errors to `os.Stderr` and other messages to`os.Stdout`.
func (*LeveledLogger)Debugf¶added inv0.36.0
func (l *LeveledLogger) Debugf(formatstring, v ...interface{})
Debugf logs a debug message using Printf conventions.
func (*LeveledLogger)Errorf¶added inv0.36.0
func (l *LeveledLogger) Errorf(formatstring, v ...interface{})
Errorf logs a warning message using Printf conventions.
func (*LeveledLogger)Infof¶added inv0.36.0
func (l *LeveledLogger) Infof(formatstring, v ...interface{})
Infof logs an informational message using Printf conventions.
func (*LeveledLogger)Warnf¶added inv0.36.0
func (l *LeveledLogger) Warnf(formatstring, v ...interface{})
Warnf logs a warning message using Printf conventions.
typeLeveledLoggerInterface¶added inv0.36.0
type LeveledLoggerInterface interface {// Debugf logs a debug message using Printf conventions.Debugf(formatstring, v ...interface{})// Errorf logs a warning message using Printf conventions.Errorf(formatstring, v ...interface{})// Infof logs an informational message using Printf conventions.Infof(formatstring, v ...interface{})// Warnf logs a warning message using Printf conventions.Warnf(formatstring, v ...interface{})}
LeveledLoggerInterface provides a basic leveled logging interface forprinting debug, informational, warning, and error messages.
It's implemented by LeveledLogger and also provides out-of-the-boxcompatibility with a Logrus Logger, but may require a thin shim for use withother logging libraries that you use less standard conventions like Zap.
var DefaultLeveledLoggerLeveledLoggerInterface = &LeveledLogger{Level:LevelError,}
DefaultLeveledLogger is the default logger that the library will use to logerrors, warnings, and informational messages.
var SilentLeveledLoggerLeveledLoggerInterface = &LeveledLogger{Level:LevelNull,}
SilentLeveledLogger is a logger for disregarding all logs written.
typeList¶added inv0.41.0
type List struct {IDstring `json:"id"`Namestring `json:"name"`Descriptionstring `json:"description"`Kindstring `json:"kind"`NumItemsint `json:"num_items"`NumReferencingFiltersint `json:"num_referencing_filters"`CreatedOn *time.Time `json:"created_on"`ModifiedOn *time.Time `json:"modified_on"`}
List contains information about a List.
typeListAPIShieldDiscoveryOperationsParams¶added inv0.79.0
type ListAPIShieldDiscoveryOperationsParams struct {// Direction to order results.Directionstring `url:"direction,omitempty"`// OrderBy when requesting a feature, the feature keys are available for ordering as well, e.g., thresholds.suggested_threshold.OrderBystring `url:"order,omitempty"`// Hosts filters results to only include the specified hosts.Hosts []string `url:"host,omitempty"`// Methods filters results to only include the specified methods.Methods []string `url:"method,omitempty"`// Endpoint filters results to only include endpoints containing this pattern.Endpointstring `url:"endpoint,omitempty"`// Diff when true, only return API Discovery results that are not saved into API Shield Endpoint ManagementDiffbool `url:"diff,omitempty"`// Origin filters results to only include discovery results sourced from a particular discovery engine// See APIShieldDiscoveryOrigin for valid values.OriginAPIShieldDiscoveryOrigin `url:"origin,omitempty"`// State filters results to only include discovery results in a particular state// See APIShieldDiscoveryState for valid values.StateAPIShieldDiscoveryState `url:"state,omitempty"`// Pagination options to apply to the request.PaginationOptions}
ListAPIShieldDiscoveryOperationsParams represents the parameters to pass when retrieving discovered operations.
API documentation:https://developers.cloudflare.com/api/resources/api_gateway/subresources/discovery/subresources/operations/methods/list/
typeListAPIShieldOperationsParams¶added inv0.78.0
type ListAPIShieldOperationsParams struct {// Features represents a set of features to return in `features` object when// performing making read requests against an Operation or listing operations.Features []string `url:"feature,omitempty"`// Direction to order results.Directionstring `url:"direction,omitempty"`// OrderBy when requesting a feature, the feature keys are available for ordering as well, e.g., thresholds.suggested_threshold.OrderBystring `url:"order,omitempty"`// Filters to only return operations that match filtering criteria, see APIShieldGetOperationsFiltersAPIShieldListOperationsFilters// Pagination options to apply to the request.PaginationOptions}
ListAPIShieldOperationsParams represents the parameters to pass when retrieving operations
API documentation:https://developers.cloudflare.com/api/resources/api_gateway/subresources/operations/methods/list/
typeListAPIShieldSchemasParams¶added inv0.79.0
type ListAPIShieldSchemasParams struct {// OmitSource specifies whether the contents of the schema should be returned in the "Source" field.OmitSource *bool `url:"omit_source,omitempty"`// ValidationEnabled specifies whether to return only schemas that have validation enabled.ValidationEnabled *bool `url:"validation_enabled,omitempty"`// PaginationOptions to apply to the request.PaginationOptions}
ListAPIShieldSchemasParams represents the parameters to pass when retrieving all schemas.
API documentation:https://developers.cloudflare.com/api/resources/api_gateway/subresources/user_schemas/methods/list/
typeListAccessApplicationsParams¶added inv0.71.0
type ListAccessApplicationsParams struct {ResultInfo}
typeListAccessCACertificatesParams¶added inv0.71.0
type ListAccessCACertificatesParams struct {ResultInfo}
typeListAccessCustomPagesParams¶added inv0.74.0
type ListAccessCustomPagesParams struct{}
typeListAccessGroupsParams¶added inv0.71.0
type ListAccessGroupsParams struct {ResultInfo}
typeListAccessIdentityProvidersParams¶added inv0.71.0
type ListAccessIdentityProvidersParams struct {ResultInfo}
typeListAccessMutualTLSCertificatesParams¶added inv0.71.0
type ListAccessMutualTLSCertificatesParams struct {ResultInfo}
typeListAccessPoliciesParams¶added inv0.71.0
type ListAccessPoliciesParams struct {// ApplicationID is the application ID to list attached access policies for.// If omitted, only reusable policies for the account are returned.ApplicationIDstring `json:"-"`ResultInfo}
typeListAccessServiceTokensParams¶added inv0.71.0
type ListAccessServiceTokensParams struct{}
typeListAccessTagsParams¶added inv0.78.0
type ListAccessTagsParams struct{}
typeListAccountRolesParams¶added inv0.78.0
type ListAccountRolesParams struct {ResultInfo}
typeListAddressMapResponse¶added inv0.63.0
type ListAddressMapResponse struct {ResponseResult []AddressMap `json:"result"`}
ListAddressMapResponse contains a slice of address maps.
typeListAddressMapsParams¶added inv0.63.0
type ListAddressMapsParams struct {IP *string `url:"ip,omitempty"`CIDR *string `url:"cidr,omitempty"`}
AddressMapFilter contains filter parameters for finding a list of address maps.
typeListBulkOperation¶added inv0.41.0
type ListBulkOperation struct {IDstring `json:"id"`Statusstring `json:"status"`Errorstring `json:"error"`Completed *time.Time `json:"completed"`}
ListBulkOperation contains information about a Bulk Operation.
typeListBulkOperationResponse¶added inv0.41.0
type ListBulkOperationResponse struct {ResponseResultListBulkOperation `json:"result"`}
ListBulkOperationResponse contains information about a Bulk Operation.
typeListCertificateAuthoritiesHostnameAssociationsParams¶added inv0.112.0
type ListCertificateAuthoritiesHostnameAssociationsParams struct {MTLSCertificateIDstring `url:"mtls_certificate_id,omitempty"`}
typeListCreateItemParams¶added inv0.41.0
type ListCreateItemParams struct {IDstringItemListItemCreateRequest}
typeListCreateItemsParams¶added inv0.41.0
type ListCreateItemsParams struct {IDstringItems []ListItemCreateRequest}
typeListCreateParams¶added inv0.41.0
typeListCreateRequest¶added inv0.41.0
type ListCreateRequest struct {Namestring `json:"name"`Descriptionstring `json:"description"`Kindstring `json:"kind"`}
ListCreateRequest contains data for a new List.
typeListD1DatabasesParams¶added inv0.79.0
type ListD1DatabasesParams struct {Namestring `url:"name,omitempty"`ResultInfo}
typeListD1Response¶added inv0.79.0
type ListD1Response struct {Result []D1Database `json:"result"`ResponseResultInfo `json:"result_info"`}
typeListDLPDatasetsParams¶added inv0.87.0
type ListDLPDatasetsParams struct{}
typeListDLPProfilesParams¶added inv0.53.0
type ListDLPProfilesParams struct{}
typeListDNSFirewallClustersParams¶added inv0.70.0
type ListDNSFirewallClustersParams struct{}
typeListDNSRecordsParams¶added inv0.58.0
type ListDNSRecordsParams struct {Typestring `url:"type,omitempty"`Namestring `url:"name,omitempty"`Contentstring `url:"content,omitempty"`Proxied *bool `url:"proxied,omitempty"`Commentstring `url:"comment,omitempty"`// currently, the server does not support searching for records with an empty commentTags []string `url:"tag,omitempty"`// potentially multiple `tag=`TagMatchstring `url:"tag-match,omitempty"`Orderstring `url:"order,omitempty"`DirectionListDirection `url:"direction,omitempty"`Matchstring `url:"match,omitempty"`Priority *uint16 `url:"-"`ResultInfo}
typeListDataLocalizationRegionalHostnamesParams¶added inv0.66.0
type ListDataLocalizationRegionalHostnamesParams struct{}
typeListDataLocalizationRegionsParams¶added inv0.66.0
type ListDataLocalizationRegionsParams struct{}
typeListDeleteItemsParams¶added inv0.41.0
type ListDeleteItemsParams struct {IDstringItemsListItemDeleteRequest}
typeListDeleteParams¶added inv0.41.0
type ListDeleteParams struct {IDstring}
typeListDeleteResponse¶added inv0.41.0
ListDeleteResponse contains information about the deletion of a List.
typeListDeviceDexTestParams¶added inv0.62.0
type ListDeviceDexTestParams struct{}
typeListDeviceManagedNetworksParams¶added inv0.57.0
type ListDeviceManagedNetworksParams struct{}
typeListDeviceSettingsPoliciesParams¶added inv0.81.0
type ListDeviceSettingsPoliciesParams struct {ResultInfo}
typeListDeviceSettingsPoliciesResponse¶added inv0.81.0
type ListDeviceSettingsPoliciesResponse struct {ResponseResultInfoResultInfo `json:"result_info"`Result []DeviceSettingsPolicy `json:"result"`}
typeListDirection¶added inv0.58.0
type ListDirectionstring
const (ListDirectionAscListDirection = "asc"ListDirectionDescListDirection = "desc")
typeListEmailRoutingAddressParameters¶added inv0.47.0
type ListEmailRoutingAddressParameters struct {ResultInfoDirectionstring `url:"direction,omitempty"`Verified *bool `url:"verified,omitempty"`}
typeListEmailRoutingAddressResponse¶added inv0.47.0
type ListEmailRoutingAddressResponse struct {Result []EmailRoutingDestinationAddress `json:"result"`ResultInfo `json:"result_info"`Response}
typeListEmailRoutingRuleResponse¶added inv0.47.0
type ListEmailRoutingRuleResponse struct {Result []EmailRoutingRule `json:"result"`ResultInfo `json:"result_info,omitempty"`Response}
typeListEmailRoutingRulesParameters¶added inv0.47.0
type ListEmailRoutingRulesParameters struct {Enabled *bool `url:"enabled,omitempty"`ResultInfo}
typeListGatewayCategoriesParams¶added inv0.100.0
type ListGatewayCategoriesParams struct {ResultInfo}
ListGatewayCategoriesParams represents the parameters for listing gateway categories.
typeListGetBulkOperationParams¶added inv0.41.0
type ListGetBulkOperationParams struct {IDstring}
typeListGetItemParams¶added inv0.41.0
typeListGetParams¶added inv0.41.0
type ListGetParams struct {IDstring}
typeListHostnameTLSSettingsCiphersParams¶added inv0.75.0
type ListHostnameTLSSettingsCiphersParams struct {PaginationOptionsLimitint `json:"-" url:"limit,omitempty"`Offsetint `json:"-" url:"offset,omitempty"`Hostname []string `json:"-" url:"hostname,omitempty"`}
ListHostnameTLSSettingsCiphersParams represents the data related to per-hostname ciphers tls settings being retrieved.
typeListHostnameTLSSettingsParams¶added inv0.75.0
type ListHostnameTLSSettingsParams struct {Settingstring `json:"-" url:"setting,omitempty"`PaginationOptions `json:"-"`Limitint `json:"-" url:"limit,omitempty"`Offsetint `json:"-" url:"offset,omitempty"`Hostname []string `json:"-" url:"hostname,omitempty"`}
ListHostnameTLSSettingsParams represents the data related to per-hostname tls settings being retrieved.
typeListHyperdriveConfigParams¶added inv0.88.0
type ListHyperdriveConfigParams struct{}
typeListIPAccessRulesFilters¶added inv0.82.0
type ListIPAccessRulesFilters struct {ConfigurationIPAccessRuleConfiguration `json:"configuration,omitempty"`MatchListIPAccessRulesMatchOption `json:"match,omitempty"`ModeIPAccessRulesModeOption `json:"mode,omitempty"`Notesstring `json:"notes,omitempty"`}
typeListIPAccessRulesMatchOption¶added inv0.82.0
type ListIPAccessRulesMatchOptionstring
typeListIPAccessRulesOrderOption¶added inv0.82.0
type ListIPAccessRulesOrderOptionstring
typeListIPAccessRulesParams¶added inv0.82.0
type ListIPAccessRulesParams struct {Directionstring `url:"direction,omitempty"`FiltersListIPAccessRulesFilters `url:"filters,omitempty"`OrderListIPAccessRulesOrderOption `url:"order,omitempty"`PaginationOptions}
typeListIPAccessRulesResponse¶added inv0.82.0
type ListIPAccessRulesResponse struct {Result []IPAccessRule `json:"result"`ResultInfo `json:"result_info"`Response}
typeListIPPrefixResponse¶added inv0.11.7
ListIPPrefixResponse contains a slice of IP prefixes.
typeListImageVariantsParams¶added inv0.88.0
type ListImageVariantsParams struct{}
typeListImageVariantsResult¶added inv0.88.0
type ListImageVariantsResult struct {ImagesVariants map[string]ImagesVariant `json:"variants,omitempty"`}
typeListImagesParams¶added inv0.71.0
type ListImagesParams struct {ResultInfo}
typeListImagesVariantsResponse¶added inv0.88.0
type ListImagesVariantsResponse struct {ResultListImageVariantsResult `json:"result,omitempty"`Response}
typeListItem¶added inv0.41.0
type ListItem struct {IDstring `json:"id"`IP *string `json:"ip,omitempty"`Redirect *Redirect `json:"redirect,omitempty"`Hostname *Hostname `json:"hostname,omitempty"`ASN *uint32 `json:"asn,omitempty"`Commentstring `json:"comment"`CreatedOn *time.Time `json:"created_on"`ModifiedOn *time.Time `json:"modified_on"`}
ListItem contains information about a single List Item.
typeListItemCreateRequest¶added inv0.41.0
type ListItemCreateRequest struct {IP *string `json:"ip,omitempty"`Redirect *Redirect `json:"redirect,omitempty"`Hostname *Hostname `json:"hostname,omitempty"`ASN *uint32 `json:"asn,omitempty"`Commentstring `json:"comment"`}
ListItemCreateRequest contains data for a new List Item.
typeListItemCreateResponse¶added inv0.41.0
type ListItemCreateResponse struct {ResponseResult struct {OperationIDstring `json:"operation_id"`} `json:"result"`}
ListItemCreateResponse contains information about the creation of a List Item.
typeListItemDeleteItemRequest¶added inv0.41.0
type ListItemDeleteItemRequest struct {IDstring `json:"id"`}
ListItemDeleteItemRequest contains single List Items that shall be deleted.
typeListItemDeleteRequest¶added inv0.41.0
type ListItemDeleteRequest struct {Items []ListItemDeleteItemRequest `json:"items"`}
ListItemDeleteRequest wraps List Items that shall be deleted.
typeListItemDeleteResponse¶added inv0.41.0
type ListItemDeleteResponse struct {ResponseResult struct {OperationIDstring `json:"operation_id"`} `json:"result"`}
ListItemDeleteResponse contains information about the deletion of a List Item.
typeListItemsGetResponse¶added inv0.41.0
ListItemsGetResponse contains information about a single List Item.
typeListItemsListResponse¶added inv0.41.0
type ListItemsListResponse struct {ResponseResultInfo `json:"result_info"`Result []ListItem `json:"result"`}
ListItemsListResponse contains information about List Items.
typeListListItemsParams¶added inv0.41.0
typeListListResponse¶added inv0.41.0
ListListResponse contains a slice of Lists.
typeListListsParams¶added inv0.41.0
type ListListsParams struct {}
typeListLoadBalancerMonitorParams¶added inv0.51.0
type ListLoadBalancerMonitorParams struct {PaginationOptions}
typeListLoadBalancerParams¶added inv0.51.0
type ListLoadBalancerParams struct {PaginationOptions}
typeListLoadBalancerPoolParams¶added inv0.51.0
type ListLoadBalancerPoolParams struct {PaginationOptions}
typeListLogpushJobsForDatasetParams¶added inv0.72.0
type ListLogpushJobsForDatasetParams struct {Datasetstring `json:"-"`}
typeListLogpushJobsParams¶added inv0.72.0
type ListLogpushJobsParams struct{}
typeListMTLSCertificateAssociationsParams¶added inv0.58.0
type ListMTLSCertificateAssociationsParams struct {CertificateIDstring}
typeListMTLSCertificatesParams¶added inv0.58.0
type ListMTLSCertificatesParams struct {PaginationOptionsLimitint `url:"limit,omitempty"`Offsetint `url:"offset,omitempty"`Namestring `url:"name,omitempty"`CAbool `url:"ca,omitempty"`}
typeListMagicFirewallRulesetResponse¶added inv0.13.7
type ListMagicFirewallRulesetResponse struct {ResponseResult []MagicFirewallRuleset `json:"result"`}
ListMagicFirewallRulesetResponse contains a list of Magic Firewall rulesets.
typeListMagicTransitGRETunnelsResponse¶added inv0.32.0
type ListMagicTransitGRETunnelsResponse struct {ResponseResult struct {GRETunnels []MagicTransitGRETunnel `json:"gre_tunnels"`} `json:"result"`}
ListMagicTransitGRETunnelsResponse contains a response including GRE tunnels.
typeListMagicTransitIPsecTunnelsResponse¶added inv0.31.0
type ListMagicTransitIPsecTunnelsResponse struct {ResponseResult struct {IPsecTunnels []MagicTransitIPsecTunnel `json:"ipsec_tunnels"`} `json:"result"`}
ListMagicTransitIPsecTunnelsResponse contains a response including IPsec tunnels.
typeListMagicTransitStaticRoutesResponse¶added inv0.18.0
type ListMagicTransitStaticRoutesResponse struct {ResponseResult struct {Routes []MagicTransitStaticRoute `json:"routes"`} `json:"result"`}
ListMagicTransitStaticRoutesResponse contains a response including Magic Transit static routes.
typeListManagedHeadersParams¶added inv0.42.0
type ListManagedHeadersParams struct {Statusstring `url:"status,omitempty"`}
typeListManagedHeadersResponse¶added inv0.42.0
type ListManagedHeadersResponse struct {ResponseResultManagedHeaders `json:"result"`}
typeListObservatoryPageTestParams¶added inv0.78.0
type ListObservatoryPageTestParams struct {URLstring `url:"-"`Regionstring `url:"region"`ResultInfo}
typeListObservatoryPagesParams¶added inv0.78.0
type ListObservatoryPagesParams struct {}
typeListOriginCertificatesParams¶added inv0.58.0
type ListOriginCertificatesParams struct {ZoneIDstring `url:"zone_id,omitempty"`}
ListOriginCertificatesParams represents the parameters used to listCloudflare-issued certificates.
typeListPageShieldConnectionsParams¶added inv0.84.0
type ListPageShieldConnectionsParams struct {Directionstring `url:"direction"`ExcludeCdnCgi *bool `url:"exclude_cdn_cgi,omitempty"`ExcludeUrlsstring `url:"exclude_urls"`Exportstring `url:"export"`Hostsstring `url:"hosts"`OrderBystring `url:"order_by"`Pagestring `url:"page"`PageURLstring `url:"page_url"`PerPageint `url:"per_page"`PrioritizeMalicious *bool `url:"prioritize_malicious,omitempty"`Statusstring `url:"status"`URLsstring `url:"urls"`}
ListPageShieldConnectionsParams represents parameters for a page shield connection request.
typeListPageShieldConnectionsResponse¶added inv0.84.0
type ListPageShieldConnectionsResponse struct {Result []PageShieldConnection `json:"result"`ResponseResultInfo `json:"result_info"`}
ListPageShieldConnectionsResponse represents the response from the list page shield connections endpoint.
typeListPageShieldPoliciesParams¶added inv0.84.0
type ListPageShieldPoliciesParams struct{}
typeListPageShieldPoliciesResponse¶added inv0.84.0
type ListPageShieldPoliciesResponse struct {Result []PageShieldPolicy `json:"result"`ResponseResultInfo `json:"result_info"`}
ListPageShieldPoliciesResponse represents the response from the list page shield policies endpoint.
typeListPageShieldScriptsParams¶added inv0.84.0
type ListPageShieldScriptsParams struct {Directionstring `url:"direction"`ExcludeCdnCgi *bool `url:"exclude_cdn_cgi,omitempty"`ExcludeDuplicates *bool `url:"exclude_duplicates,omitempty"`ExcludeUrlsstring `url:"exclude_urls"`Exportstring `url:"export"`Hostsstring `url:"hosts"`OrderBystring `url:"order_by"`Pagestring `url:"page"`PageURLstring `url:"page_url"`PerPageint `url:"per_page"`PrioritizeMalicious *bool `url:"prioritize_malicious,omitempty"`Statusstring `url:"status"`URLsstring `url:"urls"`}
ListPageShieldScriptsParams represents a PageShield Script request parameters.
API reference:https://developers.cloudflare.com/api/operations/page-shield-list-page-shield-scripts#Query-Parameters
typeListPagesDeploymentsParams¶added inv0.40.0
type ListPagesDeploymentsParams struct {ProjectNamestring `url:"-"`ResultInfo}
typeListPagesProjectsParams¶added inv0.73.0
type ListPagesProjectsParams struct {PaginationOptions}
typeListPermissionGroupParams¶added inv0.53.0
typeListQueueConsumersParams¶added inv0.55.0
type ListQueueConsumersParams struct {QueueNamestring `url:"-"`ResultInfo}
typeListQueueConsumersResponse¶added inv0.55.0
type ListQueueConsumersResponse struct {ResponseResultInfo `json:"result_info"`Result []QueueConsumer `json:"result"`}
typeListQueuesParams¶added inv0.55.0
type ListQueuesParams struct {ResultInfo}
typeListR2BucketsParams¶added inv0.55.0
typeListReplaceItemsParams¶added inv0.41.0
type ListReplaceItemsParams struct {IDstringItems []ListItemCreateRequest}
typeListResponse¶added inv0.41.0
ListResponse contains a single List.
typeListRiskScoreIntegrationParams¶added inv0.101.0
type ListRiskScoreIntegrationParams struct{}
typeListRulesetResponse¶added inv0.19.0
ListRulesetResponse contains all Rulesets.
typeListRulesetsParams¶added inv0.73.0
type ListRulesetsParams struct{}
typeListStorageKeysResponse¶added inv0.9.0
type ListStorageKeysResponse struct {ResponseResult []StorageKey `json:"result"`ResultInfo `json:"result_info"`}
ListStorageKeysResponse contains a slice of keys belonging to a storage namespace,pagination information, and an embedded response struct.
typeListTeamListsParams¶added inv0.53.0
type ListTeamListsParams struct{}
typeListTeamsListItemsParams¶added inv0.53.0
type ListTeamsListItemsParams struct {ListIDstring `url:"-"`ResultInfo}
typeListTurnstileWidgetParams¶added inv0.66.0
type ListTurnstileWidgetParams struct {ResultInfoDirectionstring `url:"direction,omitempty"`OrderOrderDirection `url:"order,omitempty"`}
typeListTurnstileWidgetResponse¶added inv0.66.0
type ListTurnstileWidgetResponse struct {ResponseResultInfo `json:"result_info"`Result []TurnstileWidget `json:"result"`}
typeListUpdateParams¶added inv0.41.0
typeListUpdateRequest¶added inv0.41.0
type ListUpdateRequest struct {Descriptionstring `json:"description"`}
ListUpdateRequest contains data for a List update.
typeListWaitingRoomRuleParams¶added inv0.53.0
type ListWaitingRoomRuleParams struct {WaitingRoomIDstring}
typeListWebAnalyticsRulesParams¶added inv0.75.0
type ListWebAnalyticsRulesParams struct {RulesetIDstring}
typeListWebAnalyticsSitesParams¶added inv0.75.0
type ListWebAnalyticsSitesParams struct {ResultInfo// Property to order Sites by, "host" or "created".OrderBystring `url:"order_by,omitempty"`}
typeListWorkerBindingsParams¶added inv0.57.0
typeListWorkerCronTriggersParams¶added inv0.57.0
type ListWorkerCronTriggersParams struct {ScriptNamestring}
typeListWorkerRoutes¶added inv0.57.0
type ListWorkerRoutes struct{}
typeListWorkerRoutesParams¶added inv0.57.0
type ListWorkerRoutesParams struct{}
typeListWorkersDomainParams¶added inv0.55.0
typeListWorkersForPlatformsDispatchNamespaceResponse¶added inv0.90.0
type ListWorkersForPlatformsDispatchNamespaceResponse struct {ResponseResult []WorkersForPlatformsDispatchNamespace `json:"result"`}
typeListWorkersKVNamespacesParams¶added inv0.55.0
type ListWorkersKVNamespacesParams struct {ResultInfo}
typeListWorkersKVNamespacesResponse¶added inv0.9.0
type ListWorkersKVNamespacesResponse struct {ResponseResult []WorkersKVNamespace `json:"result"`ResultInfo `json:"result_info"`}
ListWorkersKVNamespacesResponse contains a slice of storage namespaces associated with anaccount, pagination information, and an embedded response struct.
typeListWorkersKVsParams¶added inv0.55.0
typeListWorkersParams¶added inv0.57.0
type ListWorkersParams struct{}
typeListWorkersSecretsParams¶added inv0.57.0
type ListWorkersSecretsParams struct {ScriptNamestring}
typeListWorkersTailParameters¶added inv0.47.0
typeListWorkersTailResponse¶added inv0.47.0
type ListWorkersTailResponse struct {ResponseResultWorkersTail}
typeListZarazConfigHistoryParams¶added inv0.86.0
type ListZarazConfigHistoryParams struct {ResultInfo}
typeLoadBalancer¶
type LoadBalancer struct {IDstring `json:"id,omitempty"`CreatedOn *time.Time `json:"created_on,omitempty"`ModifiedOn *time.Time `json:"modified_on,omitempty"`Descriptionstring `json:"description"`Namestring `json:"name,omitempty"`TTLint `json:"ttl,omitempty"`FallbackPoolstring `json:"fallback_pool"`DefaultPools []string `json:"default_pools"`RegionPools map[string][]string `json:"region_pools"`PopPools map[string][]string `json:"pop_pools"`CountryPools map[string][]string `json:"country_pools"`Proxiedbool `json:"proxied"`Enabled *bool `json:"enabled,omitempty"`Persistencestring `json:"session_affinity,omitempty"`PersistenceTTLint `json:"session_affinity_ttl,omitempty"`SessionAffinityAttributes *SessionAffinityAttributes `json:"session_affinity_attributes,omitempty"`Rules []*LoadBalancerRule `json:"rules,omitempty"`RandomSteering *RandomSteering `json:"random_steering,omitempty"`AdaptiveRouting *AdaptiveRouting `json:"adaptive_routing,omitempty"`LocationStrategy *LocationStrategy `json:"location_strategy,omitempty"`// SteeringPolicy controls pool selection logic.//// "off": Select pools in DefaultPools order.//// "geo": Select pools based on RegionPools/PopPools/CountryPools.// For non-proxied requests, the country for CountryPools is determined by LocationStrategy.//// "dynamic_latency": Select pools based on RTT (requires health checks).//// "random": Selects pools in a random order.//// "proximity": Use the pools' latitude and longitude to select the closest pool using// the Cloudflare PoP location for proxied requests or the location determined by// LocationStrategy for non-proxied requests.//// "least_outstanding_requests": Select a pool by taking into consideration// RandomSteering weights, as well as each pool's number of outstanding requests.// Pools with more pending requests are weighted proportionately less relative to others.//// "least_connections": Select a pool by taking into consideration// RandomSteering weights, as well as each pool's number of open connections.// Pools with more open connections are weighted proportionately less relative to others.// Supported for HTTP/1 and HTTP/2 connections.//// "": Maps to "geo" if RegionPools or PopPools or CountryPools have entries otherwise "off".SteeringPolicystring `json:"steering_policy,omitempty"`// TunnelID is the ID of the tunnel associated with this load balancer.// It is only used for account load balancers and has no relation to any// tunnels used as origins for this load balancer.TunnelIDstring `json:"tunnel_id,omitempty"`}
LoadBalancer represents a load balancer's properties.
typeLoadBalancerFixedResponseData¶added inv0.14.0
type LoadBalancerFixedResponseData struct {// MessageBody data to write into the http bodyMessageBodystring `json:"message_body,omitempty"`// StatusCode the http status code to response withStatusCodeint `json:"status_code,omitempty"`// ContentType value of the http 'content-type' headerContentTypestring `json:"content_type,omitempty"`// Location value of the http 'location' headerLocationstring `json:"location,omitempty"`}
LoadBalancerFixedResponseData contains all the data needed to generatea fixed response from a Load Balancer. This behavior can be enabled via Rules.
typeLoadBalancerLoadShedding¶added inv0.19.0
type LoadBalancerLoadShedding struct {DefaultPercentfloat32 `json:"default_percent,omitempty"`DefaultPolicystring `json:"default_policy,omitempty"`SessionPercentfloat32 `json:"session_percent,omitempty"`SessionPolicystring `json:"session_policy,omitempty"`}
LoadBalancerLoadShedding contains the settings for controlling load shedding.
typeLoadBalancerMonitor¶added inv0.8.0
type LoadBalancerMonitor struct {IDstring `json:"id,omitempty"`CreatedOn *time.Time `json:"created_on,omitempty"`ModifiedOn *time.Time `json:"modified_on,omitempty"`Typestring `json:"type"`Descriptionstring `json:"description"`Methodstring `json:"method"`Pathstring `json:"path"`Header map[string][]string `json:"header"`Timeoutint `json:"timeout"`Retriesint `json:"retries"`Intervalint `json:"interval"`ConsecutiveUpint `json:"consecutive_up"`ConsecutiveDownint `json:"consecutive_down"`Portuint16 `json:"port,omitempty"`ExpectedBodystring `json:"expected_body"`ExpectedCodesstring `json:"expected_codes"`FollowRedirectsbool `json:"follow_redirects"`AllowInsecurebool `json:"allow_insecure"`ProbeZonestring `json:"probe_zone"`}
LoadBalancerMonitor represents a load balancer monitor's properties.
typeLoadBalancerOrigin¶added inv0.8.0
type LoadBalancerOrigin struct {Namestring `json:"name"`Addressstring `json:"address"`Enabledbool `json:"enabled"`// Weight of this origin relative to other origins in the pool.// Based on the configured weight the total traffic is distributed// among origins within the pool.//// When LoadBalancerOriginSteering.Policy="least_outstanding_requests", this// weight is used to scale the origin's outstanding requests.// When LoadBalancerOriginSteering.Policy="least_connections", this// weight is used to scale the origin's open connections.Weightfloat64 `json:"weight"`Header map[string][]string `json:"header"`// The virtual network subnet ID the origin belongs in.// Virtual network must also belong to the account.VirtualNetworkIDstring `json:"virtual_network_id,omitempty"`}
LoadBalancerOrigin represents a Load Balancer origin's properties.
typeLoadBalancerOriginHealth¶added inv0.9.0
type LoadBalancerOriginHealth struct {Healthybool `json:"healthy,omitempty"`RTTDuration `json:"rtt,omitempty"`FailureReasonstring `json:"failure_reason,omitempty"`ResponseCodeint `json:"response_code,omitempty"`}
LoadBalancerOriginHealth represents the health of the origin.
typeLoadBalancerOriginSteering¶added inv0.25.0
type LoadBalancerOriginSteering struct {// Policy determines the type of origin steering policy to use.// It defaults to "random" (weighted) when empty or unspecified.//// "random": Select an origin randomly.//// "hash": Select an origin by computing a hash over the CF-Connecting-IP address.//// "least_outstanding_requests": Select an origin by taking into consideration origin weights,// as well as each origin's number of outstanding requests. Origins with more pending requests// are weighted proportionately less relative to others.//// "least_connections": Select an origin by taking into consideration origin weights,// as well as each origin's number of open connections. Origins with more open connections// are weighted proportionately less relative to others. Supported for HTTP/1 and HTTP/2 connections.Policystring `json:"policy,omitempty"`}
LoadBalancerOriginSteering controls origin selection for new sessions and traffic without session affinity.
typeLoadBalancerPool¶added inv0.8.0
type LoadBalancerPool struct {IDstring `json:"id,omitempty"`CreatedOn *time.Time `json:"created_on,omitempty"`ModifiedOn *time.Time `json:"modified_on,omitempty"`Descriptionstring `json:"description"`Namestring `json:"name"`Enabledbool `json:"enabled"`MinimumOrigins *int `json:"minimum_origins,omitempty"`Monitorstring `json:"monitor,omitempty"`Origins []LoadBalancerOrigin `json:"origins"`NotificationEmailstring `json:"notification_email,omitempty"`Latitude *float32 `json:"latitude,omitempty"`Longitude *float32 `json:"longitude,omitempty"`LoadShedding *LoadBalancerLoadShedding `json:"load_shedding,omitempty"`OriginSteering *LoadBalancerOriginSteering `json:"origin_steering,omitempty"`Healthy *bool `json:"healthy,omitempty"`// CheckRegions defines the geographic region(s) from where to run health-checks from - e.g. "WNAM", "WEU", "SAF", "SAM".// Providing a null/empty value means "all regions", which may not be available to all plan types.CheckRegions []string `json:"check_regions"`}
LoadBalancerPool represents a load balancer pool's properties.
typeLoadBalancerPoolHealth¶added inv0.9.0
type LoadBalancerPoolHealth struct {IDstring `json:"pool_id,omitempty"`PopHealth map[string]LoadBalancerPoolPopHealth `json:"pop_health,omitempty"`}
LoadBalancerPoolHealth represents the healthchecks from different PoPs for a pool.
typeLoadBalancerPoolPopHealth¶added inv0.9.0
type LoadBalancerPoolPopHealth struct {Healthybool `json:"healthy,omitempty"`Origins []map[string]LoadBalancerOriginHealth `json:"origins,omitempty"`}
LoadBalancerPoolPopHealth represents the health of the pool for given PoP.
typeLoadBalancerRule¶
type LoadBalancerRule struct {OverridesLoadBalancerRuleOverrides `json:"overrides"`// Name is required but is only used for human readabilityNamestring `json:"name"`Conditionstring `json:"condition"`// Priority controls the order of rule execution the lowest value will be invoked firstPriorityint `json:"priority"`// FixedResponse if set and the condition is true we will not run// routing logic but rather directly respond with the provided fields.// FixedResponse implies terminates.FixedResponse *LoadBalancerFixedResponseData `json:"fixed_response,omitempty"`Disabledbool `json:"disabled"`// Terminates flag this rule as 'terminating'. No further rules will// be executed after this one.Terminatesbool `json:"terminates,omitempty"`}
LoadBalancerRule represents a single rule entry for a Load Balancer. Each rulesis run one after the other in priority order. Disabled rules are skipped.
typeLoadBalancerRuleOverrides¶added inv0.14.0
type LoadBalancerRuleOverrides struct {// session affinityPersistencestring `json:"session_affinity,omitempty"`PersistenceTTL *uint `json:"session_affinity_ttl,omitempty"`SessionAffinityAttrs *LoadBalancerRuleOverridesSessionAffinityAttrs `json:"session_affinity_attributes,omitempty"`TTLuint `json:"ttl,omitempty"`SteeringPolicystring `json:"steering_policy,omitempty"`FallbackPoolstring `json:"fallback_pool,omitempty"`DefaultPools []string `json:"default_pools,omitempty"`PoPPools map[string][]string `json:"pop_pools,omitempty"`RegionPools map[string][]string `json:"region_pools,omitempty"`CountryPools map[string][]string `json:"country_pools,omitempty"`RandomSteering *RandomSteering `json:"random_steering,omitempty"`AdaptiveRouting *AdaptiveRouting `json:"adaptive_routing,omitempty"`LocationStrategy *LocationStrategy `json:"location_strategy,omitempty"`}
LoadBalancerRuleOverrides are the set of field overridable by the rules system.
typeLoadBalancerRuleOverridesSessionAffinityAttrs¶added inv0.14.0
type LoadBalancerRuleOverridesSessionAffinityAttrs struct {SameSitestring `json:"samesite,omitempty"`Securestring `json:"secure,omitempty"`ZeroDowntimeFailoverstring `json:"zero_downtime_failover,omitempty"`Headers []string `json:"headers,omitempty"`RequireAllHeaders *bool `json:"require_all_headers,omitempty"`}
LoadBalancerRuleOverridesSessionAffinityAttrs mimics SessionAffinityAttributes without theDrainDuration field as that field can not be overwritten via rules.
typeLocationStrategy¶added inv0.51.0
type LocationStrategy struct {// PreferECS determines whether the EDNS Client Subnet (ECS) GeoIP should// be preferred as the authoritative location.//// "always": Always prefer ECS.//// "never": Never prefer ECS.//// "proximity": (default) Prefer ECS only when SteeringPolicy="proximity".//// "geo": Prefer ECS only when SteeringPolicy="geo".PreferECSstring `json:"prefer_ecs,omitempty"`// Mode determines the authoritative location when ECS is not preferred,// does not exist in the request, or its GeoIP lookup is unsuccessful.//// "pop": (default) Use the Cloudflare PoP location.//// "resolver_ip": Use the DNS resolver GeoIP location.// If the GeoIP lookup is unsuccessful, use the Cloudflare PoP location.Modestring `json:"mode,omitempty"`}
LocationStrategy controls location-based steering for non-proxied requests.See SteeringPolicy to learn how steering is affected.
typeLockdownListParams¶added inv0.47.0
type LockdownListParams struct {ResultInfo}
typeLogger¶added inv0.8.5
type Logger interface {Printf(formatstring, v ...interface{})}
Logger defines the interface this library needs to use loggingThis is a subset of the methods implemented in the log package.
typeLogpullRetentionConfiguration¶added inv0.12.0
type LogpullRetentionConfiguration struct {Flagbool `json:"flag"`}
LogpullRetentionConfiguration describes a the structure of a Logpull Retentionpayload.
typeLogpullRetentionConfigurationResponse¶added inv0.12.0
type LogpullRetentionConfigurationResponse struct {ResponseResultLogpullRetentionConfiguration `json:"result"`}
LogpullRetentionConfigurationResponse is the API response, containing theLogpull retention result.
typeLogpushDestinationExistsRequest¶added inv0.9.0
type LogpushDestinationExistsRequest struct {DestinationConfstring `json:"destination_conf"`}
LogpushDestinationExistsRequest is the API request for check destination exists.
typeLogpushDestinationExistsResponse¶added inv0.9.0
LogpushDestinationExistsResponse is the API response,containing a destination exists check result.
typeLogpushFields¶added inv0.11.1
LogpushFields is a map of available Logpush field names & descriptions.
typeLogpushFieldsResponse¶added inv0.11.1
type LogpushFieldsResponse struct {ResponseResultLogpushFields `json:"result"`}
LogpushFieldsResponse is the API response for a datasets fields.
typeLogpushGetOwnershipChallenge¶added inv0.9.0
type LogpushGetOwnershipChallenge struct {Filenamestring `json:"filename"`Validbool `json:"valid"`Messagestring `json:"message"`}
LogpushGetOwnershipChallenge describes a ownership validation.
typeLogpushGetOwnershipChallengeRequest¶added inv0.9.0
type LogpushGetOwnershipChallengeRequest struct {DestinationConfstring `json:"destination_conf"`}
LogpushGetOwnershipChallengeRequest is the API request for get ownership challenge.
typeLogpushGetOwnershipChallengeResponse¶added inv0.9.0
type LogpushGetOwnershipChallengeResponse struct {ResponseResultLogpushGetOwnershipChallenge `json:"result"`}
LogpushGetOwnershipChallengeResponse is the API response, containing a ownership challenge.
typeLogpushJob¶added inv0.9.0
type LogpushJob struct {IDint `json:"id,omitempty"`Datasetstring `json:"dataset"`Enabledbool `json:"enabled"`Kindstring `json:"kind,omitempty"`Namestring `json:"name"`LogpullOptionsstring `json:"logpull_options,omitempty"`OutputOptions *LogpushOutputOptions `json:"output_options,omitempty"`DestinationConfstring `json:"destination_conf"`OwnershipChallengestring `json:"ownership_challenge,omitempty"`LastComplete *time.Time `json:"last_complete,omitempty"`LastError *time.Time `json:"last_error,omitempty"`ErrorMessagestring `json:"error_message,omitempty"`Frequencystring `json:"frequency,omitempty"`Filter *LogpushJobFilters `json:"filter,omitempty"`MaxUploadBytesint `json:"max_upload_bytes,omitempty"`MaxUploadRecordsint `json:"max_upload_records,omitempty"`MaxUploadIntervalSecondsint `json:"max_upload_interval_seconds,omitempty"`}
LogpushJob describes a Logpush job.
func (LogpushJob)MarshalJSON¶added inv0.41.0
func (fLogpushJob) MarshalJSON() ([]byte,error)
Custom Marshaller for LogpushJob filter key.
Example¶
job := cloudflare.LogpushJob{Name: "example.com static assets",LogpullOptions: "fields=RayID,ClientIP,EdgeStartTimestamp×tamps=rfc3339&CVE-2021-44228=true",Dataset: "http_requests",DestinationConf: "s3://<BUCKET_PATH>?region=us-west-2/",Filter: &cloudflare.LogpushJobFilters{Where: cloudflare.LogpushJobFilter{And: []cloudflare.LogpushJobFilter{{Key: "ClientRequestPath", Operator: cloudflare.Contains, Value: "/static\\"},{Key: "ClientRequestHost", Operator: cloudflare.Equal, Value: "example.com"},},},},}jobstring, err := json.Marshal(job)if err != nil {log.Fatal(err)}fmt.Printf("%s", jobstring)
Output:{"filter":"{\"where\":{\"and\":[{\"key\":\"ClientRequestPath\",\"operator\":\"contains\",\"value\":\"/static\\\\\"},{\"key\":\"ClientRequestHost\",\"operator\":\"eq\",\"value\":\"example.com\"}]}}","dataset":"http_requests","enabled":false,"name":"example.com static assets","logpull_options":"fields=RayID,ClientIP,EdgeStartTimestamp\u0026timestamps=rfc3339\u0026CVE-2021-44228=true","destination_conf":"s3://\u003cBUCKET_PATH\u003e?region=us-west-2/"}
func (*LogpushJob)UnmarshalJSON¶added inv0.41.0
func (f *LogpushJob) UnmarshalJSON(data []byte)error
Custom Unmarshaller for LogpushJob filter key.
typeLogpushJobDetailsResponse¶added inv0.9.0
type LogpushJobDetailsResponse struct {ResponseResultLogpushJob `json:"result"`}
LogpushJobDetailsResponse is the API response, containing a single Logpush Job.
typeLogpushJobFilter¶added inv0.41.0
type LogpushJobFilter struct {// either thisAnd []LogpushJobFilter `json:"and,omitempty"`Or []LogpushJobFilter `json:"or,omitempty"`// or thisKeystring `json:"key,omitempty"`OperatorOperator `json:"operator,omitempty"`Value interface{} `json:"value,omitempty"`}
func (*LogpushJobFilter)Validate¶added inv0.41.0
func (filter *LogpushJobFilter) Validate()error
typeLogpushJobFilters¶added inv0.41.0
type LogpushJobFilters struct {WhereLogpushJobFilter `json:"where"`}
typeLogpushJobsResponse¶added inv0.9.0
type LogpushJobsResponse struct {ResponseResult []LogpushJob `json:"result"`}
LogpushJobsResponse is the API response, containing an array of Logpush Jobs.
typeLogpushOutputOptions¶added inv0.87.0
type LogpushOutputOptions struct {FieldNames []string `json:"field_names"`OutputTypestring `json:"output_type,omitempty"`BatchPrefixstring `json:"batch_prefix,omitempty"`BatchSuffixstring `json:"batch_suffix,omitempty"`RecordPrefixstring `json:"record_prefix,omitempty"`RecordSuffixstring `json:"record_suffix,omitempty"`RecordTemplatestring `json:"record_template,omitempty"`RecordDelimiterstring `json:"record_delimiter,omitempty"`FieldDelimiterstring `json:"field_delimiter,omitempty"`TimestampFormatstring `json:"timestamp_format,omitempty"`SampleRatefloat64 `json:"sample_rate,omitempty"`CVE202144228 *bool `json:"CVE-2021-44228,omitempty"`}
typeLogpushOwnershipChallengeValidationResponse¶added inv0.12.1
type LogpushOwnershipChallengeValidationResponse struct {ResponseResult struct {Validbool `json:"valid"`}}
LogpushOwnershipChallengeValidationResponse is the API response,containing a ownership challenge validation result.
typeLogpushValidateOwnershipChallengeRequest¶added inv0.9.0
type LogpushValidateOwnershipChallengeRequest struct {DestinationConfstring `json:"destination_conf"`OwnershipChallengestring `json:"ownership_challenge"`}
LogpushValidateOwnershipChallengeRequest is the API request for validate ownership challenge.
typeMTLSAssociation¶added inv0.58.0
MTLSAssociation represents the metadata for an existing associationbetween a user-uploaded mTLS certificate and a Cloudflare service.
typeMTLSAssociationResponse¶added inv0.58.0
type MTLSAssociationResponse struct {ResponseResult []MTLSAssociation `json:"result"`}
MTLSAssociationResponse represents the response from the retrieval endpointfor mTLS certificate associations.
typeMTLSCertificate¶added inv0.58.0
type MTLSCertificate struct {IDstring `json:"id"`Namestring `json:"name"`Issuerstring `json:"issuer"`Signaturestring `json:"signature"`SerialNumberstring `json:"serial_number"`Certificatesstring `json:"certificates"`CAbool `json:"ca"`UploadedOntime.Time `json:"uploaded_on"`UpdatedAttime.Time `json:"updated_at"`ExpiresOntime.Time `json:"expires_on"`}
MTLSCertificate represents the metadata for a user-uploaded mTLScertificate.
typeMTLSCertificateResponse¶added inv0.58.0
type MTLSCertificateResponse struct {ResponseResultMTLSCertificate `json:"result"`}
MTLSCertificateResponse represents the response from endpoints relating toretrieving, creating, and deleting an mTLS certificate.
typeMTLSCertificatesResponse¶added inv0.58.0
type MTLSCertificatesResponse struct {ResponseResult []MTLSCertificate `json:"result"`ResultInfo `json:"result_info"`}
MTLSCertificatesResponse represents the response from the mTLS certificatelist endpoint.
typeMagicFirewallRuleset¶added inv0.13.7
type MagicFirewallRuleset struct {IDstring `json:"id"`Namestring `json:"name"`Descriptionstring `json:"description"`Kindstring `json:"kind"`Versionstring `json:"version,omitempty"`LastUpdated *time.Time `json:"last_updated,omitempty"`Phasestring `json:"phase"`Rules []MagicFirewallRulesetRule `json:"rules"`}
MagicFirewallRuleset contains information about a Firewall Ruleset.
typeMagicFirewallRulesetRule¶added inv0.13.7
type MagicFirewallRulesetRule struct {IDstring `json:"id,omitempty"`Versionstring `json:"version,omitempty"`ActionMagicFirewallRulesetRuleAction `json:"action"`ActionParameters *MagicFirewallRulesetRuleActionParameters `json:"action_parameters,omitempty"`Expressionstring `json:"expression"`Descriptionstring `json:"description"`LastUpdated *time.Time `json:"last_updated,omitempty"`Refstring `json:"ref,omitempty"`Enabledbool `json:"enabled"`}
MagicFirewallRulesetRule contains information about a single Magic Firewall rule.
typeMagicFirewallRulesetRuleAction¶added inv0.13.7
type MagicFirewallRulesetRuleActionstring
MagicFirewallRulesetRuleAction specifies the action for a Firewall rule.
typeMagicFirewallRulesetRuleActionParameters¶added inv0.13.7
type MagicFirewallRulesetRuleActionParameters struct {Rulesetstring `json:"ruleset,omitempty"`}
MagicFirewallRulesetRuleActionParameters specifies the action parameters for a Firewall rule.
typeMagicTransitGRETunnel¶added inv0.32.0
type MagicTransitGRETunnel struct {IDstring `json:"id,omitempty"`CreatedOn *time.Time `json:"created_on,omitempty"`ModifiedOn *time.Time `json:"modified_on,omitempty"`Namestring `json:"name"`CustomerGREEndpointstring `json:"customer_gre_endpoint"`CloudflareGREEndpointstring `json:"cloudflare_gre_endpoint"`InterfaceAddressstring `json:"interface_address"`Descriptionstring `json:"description,omitempty"`TTLuint8 `json:"ttl,omitempty"`MTUuint16 `json:"mtu,omitempty"`HealthCheck *MagicTransitGRETunnelHealthcheck `json:"health_check,omitempty"`}
MagicTransitGRETunnel contains information about a GRE tunnel.
typeMagicTransitGRETunnelHealthcheck¶added inv0.32.0
type MagicTransitGRETunnelHealthcheck struct {Enabledbool `json:"enabled"`Targetstring `json:"target,omitempty"`Typestring `json:"type,omitempty"`}
MagicTransitGRETunnelHealthcheck contains information about a GRE tunnel health check.
typeMagicTransitIPsecTunnel¶added inv0.31.0
type MagicTransitIPsecTunnel struct {IDstring `json:"id,omitempty"`CreatedOn *time.Time `json:"created_on,omitempty"`ModifiedOn *time.Time `json:"modified_on,omitempty"`Namestring `json:"name"`CustomerEndpointstring `json:"customer_endpoint,omitempty"`CloudflareEndpointstring `json:"cloudflare_endpoint"`InterfaceAddressstring `json:"interface_address"`Descriptionstring `json:"description,omitempty"`HealthCheck *MagicTransitTunnelHealthcheck `json:"health_check,omitempty"`Pskstring `json:"psk,omitempty"`PskMetadata *MagicTransitIPsecTunnelPskMetadata `json:"psk_metadata,omitempty"`RemoteIdentities *RemoteIdentities `json:"remote_identities,omitempty"`AllowNullCipherbool `json:"allow_null_cipher"`ReplayProtection *bool `json:"replay_protection,omitempty"`}
MagicTransitIPsecTunnel contains information about an IPsec tunnel.
typeMagicTransitIPsecTunnelPskMetadata¶added inv0.41.0
type MagicTransitIPsecTunnelPskMetadata struct {LastGeneratedOn *time.Time `json:"last_generated_on,omitempty"`}
MagicTransitIPsecTunnelPskMetadata contains metadata associated with PSK.
typeMagicTransitStaticRoute¶added inv0.18.0
type MagicTransitStaticRoute struct {IDstring `json:"id,omitempty"`Prefixstring `json:"prefix"`CreatedOn *time.Time `json:"created_on,omitempty"`ModifiedOn *time.Time `json:"modified_on,omitempty"`Nexthopstring `json:"nexthop"`Priorityint `json:"priority,omitempty"`Descriptionstring `json:"description,omitempty"`Weightint `json:"weight,omitempty"`ScopeMagicTransitStaticRouteScope `json:"scope,omitempty"`}
MagicTransitStaticRoute contains information about a static route.
typeMagicTransitStaticRouteScope¶added inv0.18.0
type MagicTransitStaticRouteScope struct {ColoRegions []string `json:"colo_regions,omitempty"`ColoNames []string `json:"colo_names,omitempty"`}
MagicTransitStaticRouteScope contains information about a static route's scope.
typeMagicTransitTunnelHealthcheck¶added inv0.41.0
type MagicTransitTunnelHealthcheck struct {Enabledbool `json:"enabled"`Targetstring `json:"target,omitempty"`Typestring `json:"type,omitempty"`Ratestring `json:"rate,omitempty"`Directionstring `json:"direction,omitempty"`}
MagicTransitTunnelHealthcheck contains information about a tunnel health check.
typeManagedHeader¶added inv0.42.0
typeManagedHeaders¶added inv0.42.0
type ManagedHeaders struct {ManagedRequestHeaders []ManagedHeader `json:"managed_request_headers"`ManagedResponseHeaders []ManagedHeader `json:"managed_response_headers"`}
typeMisCategorizationParameters¶added inv0.45.0
type MisCategorizationParameters struct {AccountIDstringIndicatorTypestring `json:"indicator_type,omitempty"`IPstring `json:"ip,omitempty"`URLstring `json:"url,omitempty"`ContentAdds []int `json:"content_adds,omitempty"`ContentRemoves []int `json:"content_removes,omitempty"`SecurityAdds []int `json:"security_adds,omitempty"`SecurityRemoves []int `json:"security_removes,omitempty"`}
MisCategorizationParameters represents the parameters for a miscategorization request.
typeNamespaceBindingMap¶added inv0.49.0
type NamespaceBindingMap map[string]*NamespaceBindingValue
typeNamespaceBindingValue¶added inv0.49.0
type NamespaceBindingValue struct {Valuestring `json:"namespace_id"`}
typeNamespaceOutboundOptions¶added inv0.74.0
type NamespaceOutboundOptions struct {WorkerWorkerReferenceParams []OutboundParamSchema}
typeNotFoundError¶added inv0.36.0
type NotFoundError struct {// contains filtered or unexported fields}
NotFoundError is for HTTP 404 responses.
funcNewNotFoundError¶added inv0.48.0
func NewNotFoundError(e *Error)NotFoundError
func (NotFoundError)Error¶added inv0.36.0
func (eNotFoundError) Error()string
func (NotFoundError)ErrorCodes¶added inv0.36.0
func (eNotFoundError) ErrorCodes() []int
func (NotFoundError)ErrorMessages¶added inv0.36.0
func (eNotFoundError) ErrorMessages() []string
func (NotFoundError)Errors¶added inv0.36.0
func (eNotFoundError) Errors() []ResponseInfo
func (NotFoundError)InternalErrorCodeIs¶added inv0.48.0
func (eNotFoundError) InternalErrorCodeIs(codeint)bool
func (NotFoundError)RayID¶added inv0.36.0
func (eNotFoundError) RayID()string
func (NotFoundError)Type¶added inv0.36.0
func (eNotFoundError) Type()ErrorType
func (NotFoundError)Unwrap¶added inv0.103.0
func (eNotFoundError) Unwrap()error
typeNotificationAlertWithDescription¶added inv0.19.0
type NotificationAlertWithDescription struct {DisplayNamestring `json:"display_name"`Typestring `json:"type"`Descriptionstring `json:"description"`}
NotificationAlertWithDescription represents the alert/notificationavailable.
typeNotificationAvailableAlertsResponse¶added inv0.19.0
type NotificationAvailableAlertsResponse struct {ResponseResultNotificationsGroupedByProduct}
NotificationAvailableAlertsResponse describes the availablealerts/notifications grouped by products.
typeNotificationEligibilityResponse¶added inv0.19.0
type NotificationEligibilityResponse struct {ResponseResultNotificationMechanisms}
NotificationEligibilityResponse describes the eligible mechanisms thatcan be configured for a notification.
typeNotificationHistory¶added inv0.28.0
type NotificationHistory struct {IDstring `json:"id"`Namestring `json:"name"`Descriptionstring `json:"description"`AlertBodystring `json:"alert_body"`AlertTypestring `json:"alert_type"`Mechanismstring `json:"mechanism"`MechanismTypestring `json:"mechanism_type"`Senttime.Time `json:"sent"`}
NotificationHistory describes the historyof notifications sent for an account.
typeNotificationHistoryResponse¶added inv0.28.0
type NotificationHistoryResponse struct {ResponseResultInfo `json:"result_info"`Result []NotificationHistory}
NotificationHistoryResponse describes the notification historyresponse for an account for a specific time period.
typeNotificationMechanismData¶added inv0.19.0
NotificationMechanismData holds a single public facing mechanism dataintegation.
typeNotificationMechanismIntegrations¶added inv0.19.0
type NotificationMechanismIntegrations []NotificationMechanismData
NotificationMechanismIntegrations is a list of all the integrations of acertain mechanism type e.g. all email integrations.
typeNotificationMechanismMetaData¶added inv0.19.0
type NotificationMechanismMetaData struct {Eligiblebool `json:"eligible"`Readybool `json:"ready"`Typestring `json:"type"`}
NotificationMechanismMetaData represents the state of the deliverymechanism.
typeNotificationMechanisms¶added inv0.19.0
type NotificationMechanisms struct {EmailNotificationMechanismMetaData `json:"email"`PagerDutyNotificationMechanismMetaData `json:"pagerduty"`WebhooksNotificationMechanismMetaData `json:"webhooks,omitempty"`}
NotificationMechanisms are the different possible delivery mechanisms.
typeNotificationPagerDutyResource¶added inv0.19.0
NotificationPagerDutyResource describes a PagerDuty integration.
typeNotificationPagerDutyResponse¶added inv0.19.0
type NotificationPagerDutyResponse struct {ResponseResultInfoResultNotificationPagerDutyResource}
NotificationPagerDutyResponse describes the PagerDuty integrationretrieved.
typeNotificationPoliciesResponse¶added inv0.19.0
type NotificationPoliciesResponse struct {ResponseResultInfoResult []NotificationPolicy}
NotificationPoliciesResponse holds the response for listing allnotification policies for an account.
typeNotificationPolicy¶added inv0.19.0
type NotificationPolicy struct {IDstring `json:"id"`Namestring `json:"name"`Descriptionstring `json:"description"`Enabledbool `json:"enabled"`AlertTypestring `json:"alert_type"`Mechanisms map[string]NotificationMechanismIntegrations `json:"mechanisms"`Createdtime.Time `json:"created"`Modifiedtime.Time `json:"modified"`Conditions map[string]interface{} `json:"conditions"`Filters map[string][]string `json:"filters"`}
NotificationPolicy represents the notification policy created along withthe destinations.
typeNotificationPolicyResponse¶added inv0.19.0
type NotificationPolicyResponse struct {ResponseResultNotificationPolicy}
NotificationPolicyResponse holds the response type when a single policyis retrieved.
typeNotificationResource¶added inv0.19.0
type NotificationResource struct {IDstring}
NotificationResource describes the id of an inserted/updated/deletedresource.
typeNotificationUpsertWebhooks¶added inv0.19.0
type NotificationUpsertWebhooks struct {Namestring `json:"name"`URLstring `json:"url"`Secretstring `json:"secret"`}
NotificationUpsertWebhooks describes a valid webhook request.
typeNotificationWebhookIntegration¶added inv0.19.0
type NotificationWebhookIntegration struct {IDstring `json:"id"`Namestring `json:"name"`Typestring `json:"type"`URLstring `json:"url"`CreatedAttime.Time `json:"created_at"`LastSuccess *time.Time `json:"last_success"`LastFailure *time.Time `json:"last_failure"`}
NotificationWebhookIntegration describes the webhook information alongwith its status.
typeNotificationWebhookResponse¶added inv0.19.0
type NotificationWebhookResponse struct {ResponseResultInfoResultNotificationWebhookIntegration}
NotificationWebhookResponse describes a single webhook retrieved.
typeNotificationWebhooksResponse¶added inv0.19.0
type NotificationWebhooksResponse struct {ResponseResultInfoResult []NotificationWebhookIntegration}
NotificationWebhooksResponse describes a list of webhooks retrieved.
typeNotificationsGroupedByProduct¶added inv0.19.0
type NotificationsGroupedByProduct map[string][]NotificationAlertWithDescription
NotificationsGroupedByProduct are grouped by products.
typeOIDCClaimConfig¶added inv0.96.0
type OIDCClaimConfig struct {Namestring `json:"name,omitempty"`SourceSourceConfig `json:"source"`Required *bool `json:"required,omitempty"`Scopestring `json:"scope,omitempty"`}
typeObservatoryCountResponse¶added inv0.78.0
typeObservatoryLighthouseReport¶added inv0.78.0
type ObservatoryLighthouseReport struct {PerformanceScoreint `json:"performanceScore"`Statestring `json:"state"`DeviceTypestring `json:"deviceType"`// TTFB is time to first byteTTFBint `json:"ttfb"`// FCP is first contentful paintFCPint `json:"fcp"`// LCP is largest contentful painLCPint `json:"lcp"`// TTI is time to interactiveTTIint `json:"tti"`// TBT is total blocking timeTBTint `json:"tbt"`// SI is speed indexSIint `json:"si"`// CLS is cumulative layout shiftCLSfloat64 `json:"cls"`Error *lighthouseError `json:"error,omitempty"`}
ObservatoryLighthouseReport describes the web vital metrics result.
typeObservatoryPage¶added inv0.78.0
type ObservatoryPage struct {URLstring `json:"url"`Region labeledRegion `json:"region"`ScheduleFrequencystring `json:"scheduleFrequency"`Tests []ObservatoryPageTest `json:"tests"`}
ObservatoryPage describes all the tests for a web page.
typeObservatoryPageTest¶added inv0.78.0
type ObservatoryPageTest struct {IDstring `json:"id"`Date *time.Time `json:"date"`URLstring `json:"url"`Region labeledRegion `json:"region"`ScheduleFrequency *string `json:"scheduleFrequency"`MobileReportObservatoryLighthouseReport `json:"mobileReport"`DesktopReportObservatoryLighthouseReport `json:"desktopReport"`}
ObservatoryPageTest describes a single test for a web page.
typeObservatoryPageTestResponse¶added inv0.78.0
type ObservatoryPageTestResponse struct {ResponseResultObservatoryPageTest `json:"result"`}
typeObservatoryPageTestsResponse¶added inv0.78.0
type ObservatoryPageTestsResponse struct {ResponseResult []ObservatoryPageTest `json:"result"`ResultInfo `json:"result_info"`}
typeObservatoryPageTrend¶added inv0.78.0
type ObservatoryPageTrend struct {PerformanceScore []*int `json:"performanceScore"`TTFB []*int `json:"ttfb"`FCP []*int `json:"fcp"`LCP []*int `json:"lcp"`TTI []*int `json:"tti"`TBT []*int `json:"tbt"`SI []*int `json:"si"`CLS []*float64 `json:"cls"`}
ObservatoryPageTrend describes the web vital metrics trend.
typeObservatoryPageTrendResponse¶added inv0.78.0
type ObservatoryPageTrendResponse struct {ResponseResultObservatoryPageTrend `json:"result"`}
typeObservatoryPagesResponse¶added inv0.78.0
type ObservatoryPagesResponse struct {ResponseResult []ObservatoryPage `json:"result"`}
ObservatoryPagesResponse is the API response, containing a list of ObservatoryPage.
typeObservatorySchedule¶added inv0.78.0
type ObservatorySchedule struct {URLstring `json:"url"`Regionstring `json:"region"`Frequencystring `json:"frequency"`}
ObservatorySchedule describe a test schedule.
typeObservatoryScheduleResponse¶added inv0.78.0
type ObservatoryScheduleResponse struct {ResponseResultObservatorySchedule `json:"result"`}
typeObservatoryScheduledPageTest¶added inv0.78.0
type ObservatoryScheduledPageTest struct {ScheduleObservatorySchedule `json:"schedule"`TestObservatoryPageTest `json:"test"`}
typeOperator¶added inv0.41.0
type Operatorstring
const (EqualOperator = "eq"NotEqualOperator = "!eq"LessThanOperator = "lt"LessThanOrEqualOperator = "leq"GreaterThanOperator = "gt"GreaterThanOrEqualOperator = "geq"StartsWithOperator = "startsWith"EndsWithOperator = "endsWith"NotStartsWithOperator = "!startsWith"NotEndsWithOperator = "!endsWith"ContainsOperator = "contains"NotContainsOperator = "!contains"ValueIsInOperator = "in"ValueIsNotInOperator = "!in")
typeOption¶added inv0.7.2
Option is a functional option for configuring the API client.
funcBaseURL¶added inv0.15.0
BaseURL allows you to override the default HTTP base URL used for API calls.
funcHTTPClient¶added inv0.7.2
HTTPClient accepts a custom *http.Client for making API calls.
funcHeaders¶added inv0.7.2
Headers allows you to set custom HTTP headers when making API calls (e.g. forsatisfying HTTP proxies, or for debugging).
funcUserAgent¶added inv0.9.0
UserAgent can be set if you want to send a software name and version for HTTP access logs.It is recommended to set it in order to help future Customer Support diagnosticsand prevent collateral damage by sharing generic User-Agent string with abusive users.E.g. "my-software/1.2.3". By default generic Go User-Agent is used.
funcUsingLogger¶added inv0.8.5
UsingLogger can be set if you want to get log output from this API instanceBy default no log output is emitted.
funcUsingRateLimit¶added inv0.8.5
UsingRateLimit applies a non-default rate limit to client API requestsIf not specified the default of 4rps will be applied.
typeOrderDirection¶added inv0.66.0
type OrderDirectionstring
const (OrderDirectionAscOrderDirection = "asc"OrderDirectionDescOrderDirection = "desc")
typeOriginCACertificate¶
type OriginCACertificate struct {IDstring `json:"id"`Certificatestring `json:"certificate"`Hostnames []string `json:"hostnames"`ExpiresOntime.Time `json:"expires_on"`RequestTypestring `json:"request_type"`RequestValidityint `json:"requested_validity"`RevokedAttime.Time `json:"revoked_at,omitempty"`CSRstring `json:"csr"`}
OriginCACertificate represents a Cloudflare-issued certificate.
API reference:https://api.cloudflare.com/#cloudflare-ca
func (*OriginCACertificate)UnmarshalJSON¶
func (c *OriginCACertificate) UnmarshalJSON(data []byte)error
UnmarshalJSON handles custom parsing from an API response to an OriginCACertificatehttp://choly.ca/post/go-json-marshalling/
typeOriginCACertificateID¶added inv0.7.4
type OriginCACertificateID struct {IDstring `json:"id"`}
OriginCACertificateID represents the ID of the revoked certificate from the Revoke Certificate endpoint.
typeOriginRequestConfig¶added inv0.43.0
type OriginRequestConfig struct {// HTTP proxy timeout for establishing a new connectionConnectTimeout *TunnelDuration `json:"connectTimeout,omitempty"`// HTTP proxy timeout for completing a TLS handshakeTLSTimeout *TunnelDuration `json:"tlsTimeout,omitempty"`// HTTP proxy TCP keepalive durationTCPKeepAlive *TunnelDuration `json:"tcpKeepAlive,omitempty"`// HTTP proxy should disable "happy eyeballs" for IPv4/v6 fallbackNoHappyEyeballs *bool `json:"noHappyEyeballs,omitempty"`// HTTP proxy maximum keepalive connection pool sizeKeepAliveConnections *int `json:"keepAliveConnections,omitempty"`// HTTP proxy timeout for closing an idle connectionKeepAliveTimeout *TunnelDuration `json:"keepAliveTimeout,omitempty"`// Sets the HTTP Host header for the local webserver.HTTPHostHeader *string `json:"httpHostHeader,omitempty"`// Hostname on the origin server certificate.OriginServerName *string `json:"originServerName,omitempty"`// Path to the CA for the certificate of your origin.// This option should be used only if your certificate is not signed by Cloudflare.CAPool *string `json:"caPool,omitempty"`// Disables TLS verification of the certificate presented by your origin.// Will allow any certificate from the origin to be accepted.// Note: The connection from your machine to Cloudflare's Edge is still encrypted.NoTLSVerify *bool `json:"noTLSVerify,omitempty"`// Disables chunked transfer encoding.// Useful if you are running a WSGI server.DisableChunkedEncoding *bool `json:"disableChunkedEncoding,omitempty"`// Runs as jump hostBastionMode *bool `json:"bastionMode,omitempty"`// Listen address for the proxy.ProxyAddress *string `json:"proxyAddress,omitempty"`// Listen port for the proxy.ProxyPort *uint `json:"proxyPort,omitempty"`// Valid options are 'socks' or empty.ProxyType *string `json:"proxyType,omitempty"`// IP rules for the proxy serviceIPRules []IngressIPRule `json:"ipRules,omitempty"`// Attempt to connect to origin with HTTP/2Http2Origin *bool `json:"http2Origin,omitempty"`// Access holds all access related configsAccess *AccessConfig `json:"access,omitempty"`}
OriginRequestConfig is a set of optional fields that users may set tocustomize how cloudflared sends requests to origin services. It is used to setup general config that apply to all rules, and also, specific per-ruleconfig.
typeOutboundParamSchema¶added inv0.74.0
type OutboundParamSchema struct {Namestring}
typeOwner¶added inv0.7.2
type Owner struct {IDstring `json:"id"`Emailstring `json:"email"`Namestring `json:"name"`OwnerTypestring `json:"type"`}
Owner describes the resource owner.
typePageRule¶added inv0.7.2
type PageRule struct {IDstring `json:"id,omitempty"`Targets []PageRuleTarget `json:"targets"`Actions []PageRuleAction `json:"actions"`Priorityint `json:"priority"`Statusstring `json:"status"`ModifiedOntime.Time `json:"modified_on,omitempty"`CreatedOntime.Time `json:"created_on,omitempty"`}
PageRule describes a Page Rule.
typePageRuleAction¶added inv0.7.2
type PageRuleAction struct {IDstring `json:"id"`Value interface{} `json:"value"`}
PageRuleAction is the action to take when the target is matched.
Valid IDs are:
always_onlinealways_use_httpsautomatic_https_rewritesbrowser_cache_ttlbrowser_checkbypass_cache_on_cookiecache_by_device_typecache_deception_armorcache_levelcache_key_fieldscache_on_cookiedisable_appsdisable_performancedisable_railgundisable_securityedge_cache_ttlemail_obfuscationexplicit_cache_controlforwarding_urlhost_header_overrideip_geolocationminifymirageopportunistic_encryptionorigin_error_page_pass_thrupolishresolve_overriderespect_strong_etagresponse_bufferingrocket_loadersecurity_levelserver_side_excludesort_query_string_for_cachessltrue_client_ip_headerwaf
typePageRuleDetailResponse¶added inv0.7.2
type PageRuleDetailResponse struct {Successbool `json:"success"`Errors []string `json:"errors"`Messages []string `json:"messages"`ResultPageRule `json:"result"`}
PageRuleDetailResponse is the API response, containing a single PageRule.
typePageRuleTarget¶added inv0.7.2
type PageRuleTarget struct {Targetstring `json:"target"`Constraint struct {Operatorstring `json:"operator"`Valuestring `json:"value"`} `json:"constraint"`}
PageRuleTarget is the target to evaluate on a request.
Currently Target must always be "url" and Operator must be "matches". Valueis the URL pattern to match against.
typePageRulesResponse¶added inv0.7.2
type PageRulesResponse struct {Successbool `json:"success"`Errors []string `json:"errors"`Messages []string `json:"messages"`Result []PageRule `json:"result"`}
PageRulesResponse is the API response, containing an array of PageRules.
typePageShield¶added inv0.84.0
type PageShield struct {Enabled *bool `json:"enabled,omitempty"`UseCloudflareReportingEndpoint *bool `json:"use_cloudflare_reporting_endpoint,omitempty"`UseConnectionURLPath *bool `json:"use_connection_url_path,omitempty"`}
PageShield represents the page shield object minus any timestamps.
typePageShieldConnection¶added inv0.84.0
type PageShieldConnection struct {AddedAtstring `json:"added_at"`DomainReportedMalicious *bool `json:"domain_reported_malicious,omitempty"`FirstPageURLstring `json:"first_page_url"`FirstSeenAtstring `json:"first_seen_at"`Hoststring `json:"host"`IDstring `json:"id"`LastSeenAtstring `json:"last_seen_at"`PageURLs []string `json:"page_urls"`URLstring `json:"url"`URLContainsCdnCgiPath *bool `json:"url_contains_cdn_cgi_path,omitempty"`}
PageShieldConnection represents a page shield connection.
typePageShieldPolicy¶added inv0.84.0
type PageShieldPolicy struct {Actionstring `json:"action"`Descriptionstring `json:"description"`Enabled *bool `json:"enabled,omitempty"`Expressionstring `json:"expression"`IDstring `json:"id"`Valuestring `json:"value"`}
PageShieldPolicy represents a page shield policy.
typePageShieldScript¶added inv0.84.0
type PageShieldScript struct {AddedAtstring `json:"added_at"`DomainReportedMalicious *bool `json:"domain_reported_malicious,omitempty"`FetchedAtstring `json:"fetched_at"`FirstPageURLstring `json:"first_page_url"`FirstSeenAtstring `json:"first_seen_at"`Hashstring `json:"hash"`Hoststring `json:"host"`IDstring `json:"id"`JSIntegrityScoreint `json:"js_integrity_score"`LastSeenAtstring `json:"last_seen_at"`PageURLs []string `json:"page_urls"`URLstring `json:"url"`URLContainsCdnCgiPath *bool `json:"url_contains_cdn_cgi_path,omitempty"`}
PageShieldScript represents a Page Shield script.
typePageShieldScriptResponse¶added inv0.84.0
type PageShieldScriptResponse struct {ResultPageShieldScript `json:"result"`Versions []PageShieldScriptVersion `json:"versions"`}
PageShieldScriptResponse represents the response from the PageShield Script API.
typePageShieldScriptVersion¶added inv0.84.0
type PageShieldScriptVersion struct {FetchedAtstring `json:"fetched_at"`Hashstring `json:"hash"`JSIntegrityScoreint `json:"js_integrity_score"`}
PageShieldScriptVersion represents a Page Shield script version.
typePageShieldScriptsResponse¶added inv0.84.0
type PageShieldScriptsResponse struct {Results []PageShieldScript `json:"result"`ResponseResultInfo `json:"result_info"`}
PageShieldScriptsResponse represents the response from the PageShield Script API.
typePageShieldSettings¶added inv0.84.0
type PageShieldSettings struct {PageShieldUpdatedAtstring `json:"updated_at"`}
PageShieldSettings represents the page shield settings for a zone.
typePageShieldSettingsResponse¶added inv0.84.0
type PageShieldSettingsResponse struct {PageShieldPageShieldSettings `json:"result"`Response}
PageShieldSettingsResponse represents the response from the page shield settings endpoint.
typePagesDeploymentLogEntry¶added inv0.43.0
PagesDeploymentLogEntry represents a single log entry in a Pages deployment.
typePagesDeploymentLogs¶added inv0.43.0
type PagesDeploymentLogs struct {Totalint `json:"total"`IncludesContainerLogsbool `json:"includes_container_logs"`Data []PagesDeploymentLogEntry `json:"data"`}
PagesDeploymentLogs represents the logs for a Pages deployment.
typePagesDeploymentStageLogEntry¶added inv0.40.0
type PagesDeploymentStageLogEntry struct {IDint `json:"id"`Timestamp *time.Time `json:"timestamp"`Messagestring `json:"message"`}
PagesDeploymentStageLogEntry represents a single log entry in a Pages deployment stage.
typePagesDeploymentStageLogs¶added inv0.40.0
type PagesDeploymentStageLogs struct {Namestring `json:"name"`StartedOn *time.Time `json:"started_on"`EndedOn *time.Time `json:"ended_on"`Statusstring `json:"status"`Startint `json:"start"`Endint `json:"end"`Totalint `json:"total"`Data []PagesDeploymentStageLogEntry `json:"data"`}
PagesDeploymentStageLogs represents the logs for a Pages deployment stage.
typePagesDomain¶added inv0.44.0
type PagesDomain struct {IDstring `json:"id"`Namestring `json:"name"`Statusstring `json:"status"`VerificationDataVerificationData `json:"verification_data"`ValidationDataValidationData `json:"validation_data"`ZoneTagstring `json:"zone_tag"`CreatedOn *time.Time `json:"created_on"`}
PagesDomain represents a pages domain.
typePagesDomainParameters¶added inv0.44.0
type PagesDomainParameters struct {AccountIDstring `json:"-"`ProjectNamestring `json:"-"`DomainNamestring `json:"name,omitempty"`}
PagesDomainParameters represents parameters for a pages domain request.
typePagesDomainResponse¶added inv0.44.0
type PagesDomainResponse struct {ResponseResultPagesDomain `json:"result,omitempty"`}
PagesDomainResponse represents an API response for a pages domain request.
typePagesDomainsParameters¶added inv0.44.0
PagesDomainsParameters represents parameters for a pages domains request.
typePagesDomainsResponse¶added inv0.44.0
type PagesDomainsResponse struct {ResponseResult []PagesDomain `json:"result,omitempty"`}
PagesDomainsResponse represents an API response for a pages domains request.
typePagesPreviewDeploymentSetting¶added inv0.49.0
type PagesPreviewDeploymentSettingstring
const (PagesPreviewAllBranchesPagesPreviewDeploymentSetting = "all"PagesPreviewNoBranchesPagesPreviewDeploymentSetting = "none"PagesPreviewCustomBranchesPagesPreviewDeploymentSetting = "custom")
typePagesProject¶added inv0.26.0
type PagesProject struct {Namestring `json:"name,omitempty"`IDstring `json:"id"`CreatedOn *time.Time `json:"created_on"`SubDomainstring `json:"subdomain"`Domains []string `json:"domains,omitempty"`Source *PagesProjectSource `json:"source,omitempty"`BuildConfigPagesProjectBuildConfig `json:"build_config"`DeploymentConfigsPagesProjectDeploymentConfigs `json:"deployment_configs"`LatestDeploymentPagesProjectDeployment `json:"latest_deployment"`CanonicalDeploymentPagesProjectDeployment `json:"canonical_deployment"`ProductionBranchstring `json:"production_branch,omitempty"`}
PagesProject represents a Pages project.
typePagesProjectBuildConfig¶added inv0.26.0
type PagesProjectBuildConfig struct {BuildCaching *bool `json:"build_caching,omitempty"`BuildCommandstring `json:"build_command"`DestinationDirstring `json:"destination_dir"`RootDirstring `json:"root_dir"`WebAnalyticsTagstring `json:"web_analytics_tag"`WebAnalyticsTokenstring `json:"web_analytics_token"`}
PagesProjectBuildConfig represents the configuration of a Pages project build process.
typePagesProjectDeployment¶added inv0.26.0
type PagesProjectDeployment struct {IDstring `json:"id"`ShortIDstring `json:"short_id"`ProjectIDstring `json:"project_id"`ProjectNamestring `json:"project_name"`Environmentstring `json:"environment"`URLstring `json:"url"`CreatedOn *time.Time `json:"created_on"`ModifiedOn *time.Time `json:"modified_on"`Aliases []string `json:"aliases,omitempty"`LatestStagePagesProjectDeploymentStage `json:"latest_stage"`EnvVarsEnvironmentVariableMap `json:"env_vars"`KvNamespacesNamespaceBindingMap `json:"kv_namespaces,omitempty"`DoNamespacesNamespaceBindingMap `json:"durable_object_namespaces,omitempty"`D1DatabasesD1BindingMap `json:"d1_databases,omitempty"`R2BindingsR2BindingMap `json:"r2_buckets,omitempty"`ServiceBindingsServiceBindingMap `json:"services,omitempty"`Placement *Placement `json:"placement,omitempty"`DeploymentTriggerPagesProjectDeploymentTrigger `json:"deployment_trigger"`Stages []PagesProjectDeploymentStage `json:"stages"`BuildConfigPagesProjectBuildConfig `json:"build_config"`SourcePagesProjectSource `json:"source"`CompatibilityDatestring `json:"compatibility_date,omitempty"`CompatibilityFlags []string `json:"compatibility_flags,omitempty"`UsageModelUsageModel `json:"usage_model,omitempty"`IsSkippedbool `json:"is_skipped"`ProductionBranchstring `json:"production_branch,omitempty"`}
PagesProjectDeployment represents a deployment to a Pages project.
typePagesProjectDeploymentConfigEnvironment¶added inv0.26.0
type PagesProjectDeploymentConfigEnvironment struct {EnvVarsEnvironmentVariableMap `json:"env_vars,omitempty"`KvNamespacesNamespaceBindingMap `json:"kv_namespaces,omitempty"`DoNamespacesNamespaceBindingMap `json:"durable_object_namespaces,omitempty"`D1DatabasesD1BindingMap `json:"d1_databases,omitempty"`R2BindingsR2BindingMap `json:"r2_buckets,omitempty"`ServiceBindingsServiceBindingMap `json:"services,omitempty"`CompatibilityDatestring `json:"compatibility_date,omitempty"`CompatibilityFlags []string `json:"compatibility_flags,omitempty"`FailOpenbool `json:"fail_open"`AlwaysUseLatestCompatibilityDatebool `json:"always_use_latest_compatibility_date"`UsageModelUsageModel `json:"usage_model,omitempty"`Placement *Placement `json:"placement,omitempty"`}
PagesProjectDeploymentConfigEnvironment represents the configuration for preview or production deploys.
typePagesProjectDeploymentConfigs¶added inv0.26.0
type PagesProjectDeploymentConfigs struct {PreviewPagesProjectDeploymentConfigEnvironment `json:"preview"`ProductionPagesProjectDeploymentConfigEnvironment `json:"production"`}
PagesProjectDeploymentConfigs represents the configuration for deployments in a Pages project.
typePagesProjectDeploymentStage¶added inv0.26.0
type PagesProjectDeploymentStage struct {Namestring `json:"name"`StartedOn *time.Time `json:"started_on,omitempty"`EndedOn *time.Time `json:"ended_on,omitempty"`Statusstring `json:"status"`}
PagesProjectDeploymentStage represents an individual stage in a Pages project deployment.
typePagesProjectDeploymentTrigger¶added inv0.26.0
type PagesProjectDeploymentTrigger struct {Typestring `json:"type"`Metadata *PagesProjectDeploymentTriggerMetadata `json:"metadata"`}
PagesProjectDeploymentTrigger represents information about what caused a deployment.
typePagesProjectDeploymentTriggerMetadata¶added inv0.26.0
type PagesProjectDeploymentTriggerMetadata struct {Branchstring `json:"branch"`CommitHashstring `json:"commit_hash"`CommitMessagestring `json:"commit_message"`}
PagesProjectDeploymentTriggerMetadata represents additional information about the cause of a deployment.
typePagesProjectSource¶added inv0.26.0
type PagesProjectSource struct {Typestring `json:"type"`Config *PagesProjectSourceConfig `json:"config"`}
PagesProjectSource represents the configuration of a Pages project source.
typePagesProjectSourceConfig¶added inv0.26.0
type PagesProjectSourceConfig struct {Ownerstring `json:"owner"`RepoNamestring `json:"repo_name"`ProductionBranchstring `json:"production_branch"`PRCommentsEnabledbool `json:"pr_comments_enabled"`DeploymentsEnabledbool `json:"deployments_enabled"`ProductionDeploymentsEnabledbool `json:"production_deployments_enabled"`PreviewDeploymentSettingPagesPreviewDeploymentSetting `json:"preview_deployment_setting"`PreviewBranchIncludes []string `json:"preview_branch_includes"`PreviewBranchExcludes []string `json:"preview_branch_excludes"`}
PagesProjectSourceConfig represents the properties use to configure a Pages project source.
typePaginationOptions¶added inv0.8.5
type PaginationOptions struct {Pageint `json:"page,omitempty" url:"page,omitempty"`PerPageint `json:"per_page,omitempty" url:"per_page,omitempty"`}
PaginationOptions can be passed to a list request to configure pagingThese values will be defaulted if omitted, and PerPage has min/max limits set by resource.
typePatchTeamsList¶added inv0.17.0
type PatchTeamsList struct {IDstring `json:"id"`Append []TeamsListItem `json:"append"`Remove []string `json:"remove"`}
PatchTeamsList represents a patch request for appending/removing list items.
typePatchTeamsListParams¶added inv0.53.0
type PatchTeamsListParams struct {IDstring `json:"id"`Append []TeamsListItem `json:"append"`Remove []string `json:"remove"`}
typePatchWaitingRoomSettingsParams¶added inv0.67.0
type PatchWaitingRoomSettingsParams struct {SearchEngineCrawlerBypass *bool `json:"search_engine_crawler_bypass,omitempty"`}
typePerHostnameAuthenticatedOriginPullsCertificateDetails¶added inv0.12.2
type PerHostnameAuthenticatedOriginPullsCertificateDetails struct {IDstring `json:"id"`Certificatestring `json:"certificate"`Issuerstring `json:"issuer"`Signaturestring `json:"signature"`SerialNumberstring `json:"serial_number"`ExpiresOntime.Time `json:"expires_on"`Statusstring `json:"status"`UploadedOntime.Time `json:"uploaded_on"`}
PerHostnameAuthenticatedOriginPullsCertificateDetails represents the metadata for a Per Hostname AuthenticatedOriginPulls certificate.
typePerHostnameAuthenticatedOriginPullsCertificateParams¶added inv0.12.2
type PerHostnameAuthenticatedOriginPullsCertificateParams struct {Certificatestring `json:"certificate"`PrivateKeystring `json:"private_key"`}
PerHostnameAuthenticatedOriginPullsCertificateParams represents the required data related to the client certificate being uploaded to be used in Per Hostname AuthenticatedOriginPulls.
typePerHostnameAuthenticatedOriginPullsCertificateResponse¶added inv0.12.2
type PerHostnameAuthenticatedOriginPullsCertificateResponse struct {ResponseResultPerHostnameAuthenticatedOriginPullsCertificateDetails `json:"result"`}
PerHostnameAuthenticatedOriginPullsCertificateResponse represents the response from endpoints relating to creating and deleting a Per Hostname AuthenticatedOriginPulls certificate.
typePerHostnameAuthenticatedOriginPullsConfig¶added inv0.12.2
type PerHostnameAuthenticatedOriginPullsConfig struct {Hostnamestring `json:"hostname"`CertIDstring `json:"cert_id"`Enabled *bool `json:"enabled"`}
PerHostnameAuthenticatedOriginPullsConfig represents the config state for Per Hostname AuthenticatedOriginPulls applied on a hostname.
typePerHostnameAuthenticatedOriginPullsConfigParams¶added inv0.13.0
type PerHostnameAuthenticatedOriginPullsConfigParams struct {Config []PerHostnameAuthenticatedOriginPullsConfig `json:"config"`}
PerHostnameAuthenticatedOriginPullsConfigParams represents the expected config param format for Per Hostname AuthenticatedOriginPulls applied on a hostname.
typePerHostnameAuthenticatedOriginPullsDetails¶added inv0.12.2
type PerHostnameAuthenticatedOriginPullsDetails struct {Hostnamestring `json:"hostname"`CertIDstring `json:"cert_id"`Enabledbool `json:"enabled"`Statusstring `json:"status"`CreatedAttime.Time `json:"created_at"`UpdatedAttime.Time `json:"updated_at"`CertStatusstring `json:"cert_status"`Issuerstring `json:"issuer"`Signaturestring `json:"signature"`SerialNumberstring `json:"serial_number"`Certificatestring `json:"certificate"`CertUploadedOntime.Time `json:"cert_uploaded_on"`CertUpdatedAttime.Time `json:"cert_updated_at"`ExpiresOntime.Time `json:"expires_on"`}
PerHostnameAuthenticatedOriginPullsDetails contains metadata about the Per Hostname AuthenticatedOriginPulls configuration on a hostname.
typePerHostnameAuthenticatedOriginPullsDetailsResponse¶added inv0.12.2
type PerHostnameAuthenticatedOriginPullsDetailsResponse struct {ResponseResultPerHostnameAuthenticatedOriginPullsDetails `json:"result"`}
PerHostnameAuthenticatedOriginPullsDetailsResponse represents Per Hostname AuthenticatedOriginPulls configuration metadata for a single hostname.
typePerHostnamesAuthenticatedOriginPullsDetailsResponse¶added inv0.12.2
type PerHostnamesAuthenticatedOriginPullsDetailsResponse struct {ResponseResult []PerHostnameAuthenticatedOriginPullsDetails `json:"result"`}
PerHostnamesAuthenticatedOriginPullsDetailsResponse represents Per Hostname AuthenticatedOriginPulls configuration metadata for multiple hostnames.
typePerZoneAuthenticatedOriginPullsCertificateDetails¶added inv0.12.2
type PerZoneAuthenticatedOriginPullsCertificateDetails struct {IDstring `json:"id"`Certificatestring `json:"certificate"`Issuerstring `json:"issuer"`Signaturestring `json:"signature"`ExpiresOntime.Time `json:"expires_on"`Statusstring `json:"status"`UploadedOntime.Time `json:"uploaded_on"`}
PerZoneAuthenticatedOriginPullsCertificateDetails represents the metadata for a Per Zone AuthenticatedOriginPulls client certificate.
typePerZoneAuthenticatedOriginPullsCertificateParams¶added inv0.12.2
type PerZoneAuthenticatedOriginPullsCertificateParams struct {Certificatestring `json:"certificate"`PrivateKeystring `json:"private_key"`}
PerZoneAuthenticatedOriginPullsCertificateParams represents the required data related to the client certificate being uploaded to be used in Per Zone AuthenticatedOriginPulls.
typePerZoneAuthenticatedOriginPullsCertificateResponse¶added inv0.12.2
type PerZoneAuthenticatedOriginPullsCertificateResponse struct {ResponseResultPerZoneAuthenticatedOriginPullsCertificateDetails `json:"result"`}
PerZoneAuthenticatedOriginPullsCertificateResponse represents the response from endpoints relating to creating and deleting a per zone AuthenticatedOriginPulls certificate.
typePerZoneAuthenticatedOriginPullsCertificatesResponse¶added inv0.12.2
type PerZoneAuthenticatedOriginPullsCertificatesResponse struct {ResponseResult []PerZoneAuthenticatedOriginPullsCertificateDetails `json:"result"`}
PerZoneAuthenticatedOriginPullsCertificatesResponse represents the response from the per zone AuthenticatedOriginPulls certificate list endpoint.
typePerZoneAuthenticatedOriginPullsSettings¶added inv0.12.2
type PerZoneAuthenticatedOriginPullsSettings struct {Enabledbool `json:"enabled"`}
PerZoneAuthenticatedOriginPullsSettings represents the settings for Per Zone AuthenticatedOriginPulls.
typePerZoneAuthenticatedOriginPullsSettingsResponse¶added inv0.12.2
type PerZoneAuthenticatedOriginPullsSettingsResponse struct {ResponseResultPerZoneAuthenticatedOriginPullsSettings `json:"result"`}
PerZoneAuthenticatedOriginPullsSettingsResponse represents the response from the Per Zone AuthenticatedOriginPulls settings endpoint.
typePermission¶added inv0.53.0
typePermissionGroup¶added inv0.53.0
type PermissionGroup struct {IDstring `json:"id"`Namestring `json:"name"`Meta map[string]string `json:"meta"`Permissions []Permission `json:"permissions"`}
typePermissionGroupDetailResponse¶added inv0.53.0
type PermissionGroupDetailResponse struct {Successbool `json:"success"`Errors []string `json:"errors"`Messages []string `json:"messages"`ResultPermissionGroup `json:"result"`}
typePermissionGroupListResponse¶added inv0.53.0
type PermissionGroupListResponse struct {Successbool `json:"success"`Errors []string `json:"errors"`Messages []string `json:"messages"`Result []PermissionGroup `json:"result"`}
typePhishingScan¶added inv0.44.0
type PhishingScan struct {URLstring `json:"url"`Phishingbool `json:"phishing"`Verifiedbool `json:"verified"`Scorefloat64 `json:"score"`Classifierstring `json:"classifier"`}
PhishingScan represent information about a phishing scan.
typePhishingScanParameters¶added inv0.44.0
type PhishingScanParameters struct {AccountIDstring `url:"-"`URLstring `url:"url,omitempty"`Skipbool `url:"skip,omitempty"`}
PhishingScanParameters represent parameters for a phishing scan request.
typePhishingScanResponse¶added inv0.44.0
type PhishingScanResponse struct {ResponseResultPhishingScan `json:"result,omitempty"`}
PhishingScanResponse represent an API response for a phishing scan.
typePlacement¶added inv0.68.0
type Placement struct {// Mode is the placement mode for the worker (e.g. "smart").ModePlacementMode `json:"mode"`// Status is the status of the placement (readonly).StatusPlacementStatus `json:"status,omitempty"`}
Placement contains all the worker placement information.
typePlacementFields¶added inv0.114.0
type PlacementFields struct {// PlacementMode.//// Deprecated: Use Placement.Mode instead.PlacementMode *PlacementMode `json:"placement_mode,omitempty"`// Placement.Placement *Placement `json:"placement,omitempty"`}
PlacementFields contains all the worker placement fields (deprecated and nested).This struct is meant to be embedded, it exists for locality of deprecated and regular fields.
typePlacementMode¶added inv0.68.0
type PlacementModestring
const (PlacementModeOffPlacementMode = ""PlacementModeSmartPlacementMode = "smart")
typePlacementStatus¶added inv0.114.0
type PlacementStatusstring
typePolicy¶added inv0.53.0
type Policy struct {IDstring `json:"id"`PermissionGroups []PermissionGroup `json:"permission_groups"`ResourceGroups []ResourceGroup `json:"resource_groups"`Accessstring `json:"access"`}
typePolish¶added inv0.47.0
type Polishint
const (PolishOff PolishPolishLosslessPolishLossy)
funcPolishFromString¶added inv0.47.0
func (Polish)MarshalJSON¶added inv0.47.0
func (*Polish)UnmarshalJSON¶added inv0.47.0
typeProxyProtocol¶added inv0.11.0
type ProxyProtocolstring
ProxyProtocol implements json.Unmarshaler in order to support deserializing of the deprecated booleanvalue for `proxy_protocol`.
func (*ProxyProtocol)UnmarshalJSON¶added inv0.11.0
func (p *ProxyProtocol) UnmarshalJSON(data []byte)error
UnmarshalJSON handles deserializing of both the deprecated boolean value and the current string valuefor the `proxy_protocol` field.
typePublishZarazConfigParams¶added inv0.86.0
type PublishZarazConfigParams struct {Descriptionstring `json:"description"`}
typePurgeCacheRequest¶added inv0.7.2
type PurgeCacheRequest struct {Everythingbool `json:"purge_everything,omitempty"`// Purge by filepath (exact match). Limit of 30Files []string `json:"files,omitempty"`// Purge by Tag (Enterprise only)://https://support.cloudflare.com/hc/en-us/articles/206596608-How-to-Purge-Cache-Using-Cache-Tags-Enterprise-only-Tags []string `json:"tags,omitempty"`// Purge by hostname - e.g. "assets.example.com"Hosts []string `json:"hosts,omitempty"`// Purge by prefix - e.g. "example.com/css"Prefixes []string `json:"prefixes,omitempty"`}
PurgeCacheRequest represents the request format made to the purge endpoint.
typePurgeCacheResponse¶added inv0.7.2
PurgeCacheResponse represents the response from the purge endpoint.
typeQueryD1DatabaseParams¶added inv0.79.0
typeQueryD1Response¶added inv0.79.0
typeQueue¶added inv0.55.0
type Queue struct {IDstring `json:"queue_id,omitempty"`Namestring `json:"queue_name,omitempty"`CreatedOn *time.Time `json:"created_on,omitempty"`ModifiedOn *time.Time `json:"modified_on,omitempty"`ProducersTotalCountint `json:"producers_total_count,omitempty"`Producers []QueueProducer `json:"producers,omitempty"`ConsumersTotalCountint `json:"consumers_total_count,omitempty"`Consumers []QueueConsumer `json:"consumers,omitempty"`}
typeQueueConsumer¶added inv0.55.0
type QueueConsumer struct {Namestring `json:"-"`Servicestring `json:"service,omitempty"`ScriptNamestring `json:"script_name,omitempty"`Environmentstring `json:"environment,omitempty"`SettingsQueueConsumerSettings `json:"settings,omitempty"`QueueNamestring `json:"queue_name,omitempty"`CreatedOn *time.Time `json:"created_on,omitempty"`DeadLetterQueuestring `json:"dead_letter_queue,omitempty"`}
typeQueueConsumerResponse¶added inv0.55.0
type QueueConsumerResponse struct {ResponseResultQueueConsumer `json:"result"`}
typeQueueConsumerSettings¶added inv0.55.0
typeQueueListResponse¶
type QueueListResponse struct {ResponseResultInfo `json:"result_info"`Result []Queue `json:"result"`}
typeQueueProducer¶added inv0.55.0
typeQueueResponse¶added inv0.55.0
typeR2BindingMap¶added inv0.49.0
type R2BindingMap map[string]*R2BindingValue
typeR2BindingValue¶added inv0.49.0
type R2BindingValue struct {Namestring `json:"name"`}
typeR2Bucket¶added inv0.55.0
type R2Bucket struct {Namestring `json:"name"`CreationDate *time.Time `json:"creation_date,omitempty"`Locationstring `json:"location,omitempty"`}
R2Bucket defines a container for objects stored in R2 Storage.
typeR2BucketListResponse¶
R2BucketListResponse represents the response from the listR2 buckets endpoint.
typeR2BucketResponse¶added inv0.68.0
typeR2Buckets¶added inv0.55.0
type R2Buckets struct {Buckets []R2Bucket `json:"buckets"`}
R2Buckets represents the map of buckets response fromthe R2 buckets endpoint.
typeRandomSteering¶added inv0.42.0
type RandomSteering struct {DefaultWeightfloat64 `json:"default_weight,omitempty"`PoolWeights map[string]float64 `json:"pool_weights,omitempty"`}
RandomSteering configures pool weights.
SteeringPolicy="random": A random pool is selected with probabilityproportional to pool weights.
SteeringPolicy="least_outstanding_requests": Use pool weights toscale each pool's outstanding requests.
SteeringPolicy="least_connections": Use pool weights toscale each pool's open connections.
typeRateLimit¶added inv0.8.5
type RateLimit struct {IDstring `json:"id,omitempty"`Disabledbool `json:"disabled,omitempty"`Descriptionstring `json:"description,omitempty"`MatchRateLimitTrafficMatcher `json:"match"`Bypass []RateLimitKeyValue `json:"bypass,omitempty"`Thresholdint `json:"threshold"`Periodint `json:"period"`ActionRateLimitAction `json:"action"`Correlate *RateLimitCorrelate `json:"correlate,omitempty"`}
RateLimit is a policy than can be applied to limit traffic within a customer domain.
typeRateLimitAction¶added inv0.8.5
type RateLimitAction struct {Modestring `json:"mode"`Timeoutint `json:"timeout"`Response *RateLimitActionResponse `json:"response"`}
RateLimitAction is the action that will be taken when the rate limit threshold is reached.
typeRateLimitActionResponse¶added inv0.8.5
type RateLimitActionResponse struct {ContentTypestring `json:"content_type"`Bodystring `json:"body"`}
RateLimitActionResponse is the response that will be returned when rate limit action is triggered.
typeRateLimitCorrelate¶added inv0.9.0
type RateLimitCorrelate struct {Bystring `json:"by"`}
RateLimitCorrelate pertainings to NAT support.
typeRateLimitKeyValue¶added inv0.8.5
RateLimitKeyValue is k-v formatted as expected in the rate limit description.
typeRateLimitRequestMatcher¶added inv0.8.5
type RateLimitRequestMatcher struct {Methods []string `json:"methods,omitempty"`Schemes []string `json:"schemes,omitempty"`URLPatternstring `json:"url,omitempty"`}
RateLimitRequestMatcher contains the matching rules pertaining to requests.
typeRateLimitResponseMatcher¶added inv0.8.5
type RateLimitResponseMatcher struct {Statuses []int `json:"status,omitempty"`OriginTraffic *bool `json:"origin_traffic,omitempty"`// api defaults to true so we need an explicit empty valueHeaders []RateLimitResponseMatcherHeader `json:"headers,omitempty"`}
RateLimitResponseMatcher contains the matching rules pertaining to responses.
typeRateLimitResponseMatcherHeader¶added inv0.9.0
type RateLimitResponseMatcherHeader struct {Namestring `json:"name"`Opstring `json:"op"`Valuestring `json:"value"`}
RateLimitResponseMatcherHeader contains the structure of the originHTTP headers used in request matcher checks.
typeRateLimitTrafficMatcher¶added inv0.8.5
type RateLimitTrafficMatcher struct {RequestRateLimitRequestMatcher `json:"request"`ResponseRateLimitResponseMatcher `json:"response"`}
RateLimitTrafficMatcher contains the rules that will be used to apply a rate limit to traffic.
typeRatelimitError¶added inv0.36.0
type RatelimitError struct {// contains filtered or unexported fields}
RatelimitError is for HTTP 429s where the service is telling the client toslow down.
funcNewRatelimitError¶added inv0.48.0
func NewRatelimitError(e *Error)RatelimitError
func (RatelimitError)Error¶added inv0.36.0
func (eRatelimitError) Error()string
func (RatelimitError)ErrorCodes¶added inv0.36.0
func (eRatelimitError) ErrorCodes() []int
func (RatelimitError)ErrorMessages¶added inv0.36.0
func (eRatelimitError) ErrorMessages() []string
func (RatelimitError)Errors¶added inv0.36.0
func (eRatelimitError) Errors() []ResponseInfo
func (RatelimitError)InternalErrorCodeIs¶added inv0.48.0
func (eRatelimitError) InternalErrorCodeIs(codeint)bool
func (RatelimitError)RayID¶added inv0.36.0
func (eRatelimitError) RayID()string
func (RatelimitError)Type¶added inv0.36.0
func (eRatelimitError) Type()ErrorType
func (RatelimitError)Unwrap¶added inv0.103.0
func (eRatelimitError) Unwrap()error
typeRawResponse¶added inv0.8.0
type RawResponse struct {ResponseResult json.RawMessage `json:"result"`ResultInfo *ResultInfo `json:"result_info,omitempty"`}
RawResponse keeps the result as JSON form.
typeRedirect¶added inv0.42.0
type Redirect struct {SourceUrlstring `json:"source_url"`IncludeSubdomains *bool `json:"include_subdomains,omitempty"`TargetUrlstring `json:"target_url"`StatusCode *int `json:"status_code,omitempty"`PreserveQueryString *bool `json:"preserve_query_string,omitempty"`SubpathMatching *bool `json:"subpath_matching,omitempty"`PreservePathSuffix *bool `json:"preserve_path_suffix,omitempty"`}
Redirect represents a redirect item in a List.
typeRefreshTokenOptions¶added inv0.96.0
type RefreshTokenOptions struct {Lifetimestring `json:"lifetime,omitempty"`}
typeRegionalHostname¶added inv0.66.0
typeRegionalTieredCache¶added inv0.73.0
type RegionalTieredCache struct {IDstring `json:"id,omitempty"`ModifiedOntime.Time `json:"modified_on,omitempty"`Valuestring `json:"value"`}
RegionalTieredCache is the structure of the API object for the regional tiered cachesetting.
typeRegionalTieredCacheDetailsResponse¶added inv0.73.0
type RegionalTieredCacheDetailsResponse struct {ResultRegionalTieredCache `json:"result"`Response}
RegionalTieredCacheDetailsResponse is the API response for the regional tiered cachesetting.
typeRegistrantContact¶added inv0.9.0
type RegistrantContact struct {IDstring `json:"id"`FirstNamestring `json:"first_name"`LastNamestring `json:"last_name"`Organizationstring `json:"organization"`Addressstring `json:"address"`Address2string `json:"address2"`Citystring `json:"city"`Statestring `json:"state"`Zipstring `json:"zip"`Countrystring `json:"country"`Phonestring `json:"phone"`Emailstring `json:"email"`Faxstring `json:"fax"`}
RegistrantContact is the contact details for the domain registration.
typeRegistrarDomain¶added inv0.9.0
type RegistrarDomain struct {IDstring `json:"id"`Availablebool `json:"available"`SupportedTLDbool `json:"supported_tld"`CanRegisterbool `json:"can_register"`TransferInRegistrarTransferIn `json:"transfer_in"`CurrentRegistrarstring `json:"current_registrar"`ExpiresAttime.Time `json:"expires_at"`RegistryStatusesstring `json:"registry_statuses"`Lockedbool `json:"locked"`CreatedAttime.Time `json:"created_at"`UpdatedAttime.Time `json:"updated_at"`RegistrantContactRegistrantContact `json:"registrant_contact"`}
RegistrarDomain is the structure of the API response for a newCloudflare Registrar domain.
typeRegistrarDomainConfiguration¶added inv0.9.0
type RegistrarDomainConfiguration struct {NameServers []string `json:"name_servers"`Privacybool `json:"privacy"`Lockedbool `json:"locked"`AutoRenewbool `json:"auto_renew"`}
RegistrarDomainConfiguration is the structure for making updates toand existing domain.
typeRegistrarDomainDetailResponse¶added inv0.9.0
type RegistrarDomainDetailResponse struct {ResponseResultRegistrarDomain `json:"result"`}
RegistrarDomainDetailResponse is the structure of the detailedresponse from the API for a single domain.
typeRegistrarDomainsDetailResponse¶added inv0.9.0
type RegistrarDomainsDetailResponse struct {ResponseResult []RegistrarDomain `json:"result"`}
RegistrarDomainsDetailResponse is the structure of the detailedresponse from the API.
typeRegistrarTransferIn¶added inv0.9.0
type RegistrarTransferIn struct {UnlockDomainstring `json:"unlock_domain"`DisablePrivacystring `json:"disable_privacy"`EnterAuthCodestring `json:"enter_auth_code"`ApproveTransferstring `json:"approve_transfer"`AcceptFoastring `json:"accept_foa"`CanCancelTransferbool `json:"can_cancel_transfer"`}
RegistrarTransferIn contains the structure for a domain transfer inrequest.
typeRemoteIdentities¶added inv0.41.0
typeReplaceWaitingRoomRuleParams¶added inv0.53.0
type ReplaceWaitingRoomRuleParams struct {WaitingRoomIDstringRules []WaitingRoomRule}
typeReqOption¶added inv0.9.0
type ReqOption func(opt *reqOption)
ReqOption is a functional option for configuring API requests.
funcWithPagination¶added inv0.9.0
func WithPagination(optsPaginationOptions)ReqOption
WithPagination configures the pagination for a response.
funcWithZoneFilters¶added inv0.12.0
WithZoneFilters applies a filter based on zone properties.
typeRequestError¶added inv0.36.0
type RequestError struct {// contains filtered or unexported fields}
RequestError is for 4xx errors that we encounter not covered elsewhere(generally bad payloads).
funcNewRequestError¶added inv0.48.0
func NewRequestError(e *Error)RequestError
func (RequestError)Error¶added inv0.36.0
func (eRequestError) Error()string
func (RequestError)ErrorCodes¶added inv0.36.0
func (eRequestError) ErrorCodes() []int
func (RequestError)ErrorMessages¶added inv0.36.0
func (eRequestError) ErrorMessages() []string
func (RequestError)Errors¶added inv0.36.0
func (eRequestError) Errors() []ResponseInfo
func (RequestError)InternalErrorCodeIs¶added inv0.48.0
func (eRequestError) InternalErrorCodeIs(codeint)bool
func (RequestError)Messages¶added inv0.53.0
func (eRequestError) Messages() []ResponseInfo
func (RequestError)RayID¶added inv0.36.0
func (eRequestError) RayID()string
func (RequestError)Type¶added inv0.36.0
func (eRequestError) Type()ErrorType
func (RequestError)Unwrap¶added inv0.103.0
func (eRequestError) Unwrap()error
typeResolvesToRefs¶added inv0.44.0
ResolvesToRefs what a domain resolves to.
typeResourceContainer¶added inv0.45.0
type ResourceContainer struct {LevelRouteLevelIdentifierstringTypeResourceType}
ResourceContainer defines an API resource you wish to target. Should not beused directly, use `UserIdentifier`, `ZoneIdentifier` and `AccountIdentifier`instead.
funcAccountIdentifier¶added inv0.45.0
func AccountIdentifier(idstring) *ResourceContainer
AccountIdentifier returns an account level *ResourceContainer.
funcResourceIdentifier¶added inv0.45.0
func ResourceIdentifier(idstring) *ResourceContainer
ResourceIdentifier returns a generic *ResourceContainer.
funcUserIdentifier¶added inv0.45.0
func UserIdentifier(idstring) *ResourceContainer
UserIdentifier returns a user level *ResourceContainer.
funcZoneIdentifier¶added inv0.36.0
func ZoneIdentifier(idstring) *ResourceContainer
ZoneIdentifier returns a zone level *ResourceContainer.
func (*ResourceContainer)URLFragment¶added inv0.63.0
func (rc *ResourceContainer) URLFragment()string
Returns a URL fragment of the endpoint scoped by the container.
For example, a zone identifier would have a fragment like "zones/foobar" whilean account identifier would generate "accounts/foobar".
typeResourceGroup¶added inv0.53.0
type ResourceGroup struct {IDstring `json:"id"`Namestring `json:"name"`Meta map[string]string `json:"meta"`ScopeScope `json:"scope"`}
funcNewResourceGroup¶added inv0.53.0
func NewResourceGroup(keystring)ResourceGroup
NewResourceGroup takes a Cloudflare-formatted key (e.g. 'com.cloudflare.api.%s') andreturns a resource group to be used within a Policy to allow access to that resource.
funcNewResourceGroupForAccount¶added inv0.53.0
func NewResourceGroupForAccount(accountAccount)ResourceGroup
NewResourceGroupForAccount takes an existing zone and provides a resource groupto be used within a Policy that allows access to that account.
funcNewResourceGroupForZone¶added inv0.53.0
func NewResourceGroupForZone(zoneZone)ResourceGroup
NewResourceGroupForZone takes an existing zone and provides a resource groupto be used within a Policy that allows access to that zone.
typeResourceType¶added inv0.72.0
type ResourceTypestring
ResourceType holds the type of the resource. This is similar to `RouteLevel`however this is the singular version of `RouteLevel` and isn't suitable foruse in routing.
func (ResourceType)String¶added inv0.72.0
func (rResourceType) String()string
typeResponse¶added inv0.7.2
type Response struct {Successbool `json:"success"`Errors []ResponseInfo `json:"errors"`Messages []ResponseInfo `json:"messages"`}
Response is a template. There will also be a result struct. There will be aunique response type for each response, which will include this type.
typeResponseInfo¶added inv0.7.2
ResponseInfo contains a code and message returned by the API as errors orinformational messages inside the response.
typeResultInfo¶added inv0.7.2
type ResultInfo struct {Pageint `json:"page" url:"page,omitempty"`PerPageint `json:"per_page" url:"per_page,omitempty"`TotalPagesint `json:"total_pages" url:"-"`Countint `json:"count" url:"-"`Totalint `json:"total_count" url:"-"`Cursorstring `json:"cursor" url:"cursor,omitempty"`CursorsResultInfoCursors `json:"cursors" url:"cursors,omitempty"`}
ResultInfo contains metadata about the Response.
func (ResultInfo)Done¶added inv0.45.0
func (pResultInfo) Done()bool
Done returns true for the last page and false otherwise.
func (ResultInfo)HasMorePages¶added inv0.45.0
func (pResultInfo) HasMorePages()bool
HasMorePages returns whether there is another page of results after thecurrent one.
func (ResultInfo)Next¶added inv0.45.0
func (pResultInfo) Next()ResultInfo
Next advances the page of a paginated API response, but does not fetch thenext page of results.
typeResultInfoCursors¶added inv0.13.0
type ResultInfoCursors struct {Beforestring `json:"before" url:"before,omitempty"`Afterstring `json:"after" url:"after,omitempty"`}
ResultInfoCursors contains information about cursors.
typeRetryPagesDeploymentParams¶added inv0.40.0
typeRetryPolicy¶added inv0.8.5
RetryPolicy specifies number of retries and min/max retry delaysThis config is used when the client exponentially backs off after errored requests.
typeReverseRecords¶added inv0.44.0
type ReverseRecords struct {FirstSeenstring `json:"first_seen,omitempty"`LastSeenstring `json:"last_seen,omitempty"`Hostnamestring `json:"hostname,omitempty"`}
ReverseRecords represent records for passive DNS.
typeRevokeAccessUserTokensParams¶added inv0.71.0
type RevokeAccessUserTokensParams struct {Emailstring `json:"email"`}
typeRiskLevel¶added inv0.95.0
type RiskLevelint
const (Low RiskLevelMediumHigh)
funcRiskLevelFromString¶added inv0.95.0
func (RiskLevel)MarshalJSON¶added inv0.95.0
func (*RiskLevel)UnmarshalJSON¶added inv0.95.0
typeRiskScoreIntegration¶added inv0.101.0
type RiskScoreIntegration struct {IDstring `json:"id,omitempty"`IntegrationTypestring `json:"integration_type,omitempty"`TenantUrlstring `json:"tenant_url,omitempty"`ReferenceIDstring `json:"reference_id,omitempty"`AccountTagstring `json:"account_tag,omitempty"`WellKnownUrlstring `json:"well_known_url,omitempty"`Active *bool `json:"active,omitempty"`CreatedAt *time.Time `json:"created_at,omitempty"`}
Represents a Risk Score Sharing Integration.If enabled, Cloudflare will share changes in user risk score with the specified vendor.
typeRiskScoreIntegrationCreateRequest¶added inv0.101.0
type RiskScoreIntegrationCreateRequest struct {IntegrationTypestring `json:"integration_type,omitempty"`TenantUrlstring `json:"tenant_url,omitempty"`ReferenceIDstring `json:"reference_id,omitempty"`}
The properties required to create a new risk score integration.
typeRiskScoreIntegrationListResponse¶added inv0.101.0
type RiskScoreIntegrationListResponse struct {Result []RiskScoreIntegration `json:"result"`Response}
A list of risk score integrations as returned from the API.
typeRiskScoreIntegrationResponse¶added inv0.101.0
type RiskScoreIntegrationResponse struct {ResultRiskScoreIntegration `json:"result"`Response}
A risk score integration as returned from the API.
typeRiskScoreIntegrationUpdateRequest¶added inv0.101.0
type RiskScoreIntegrationUpdateRequest struct {IntegrationTypestring `json:"integration_type,omitempty"`TenantUrlstring `json:"tenant_url,omitempty"`ReferenceIDstring `json:"reference_id,omitempty"`Active *bool `json:"active,omitempty"`}
The properties required to update a risk score integration.
typeRiskTypes¶added inv0.44.0
type RiskTypes struct {IDint `json:"id"`SuperCategoryIDint `json:"super_category_id"`Namestring `json:"name"`}
RiskTypes represent risk types for an IP.
typeRollbackPagesDeploymentParams¶added inv0.40.0
typeRotateTurnstileWidgetParams¶added inv0.66.0
typeRouteLevel¶added inv0.45.0
type RouteLevelstring
RouteLevel holds the "level" where the resource resides. Commonly used inrouting configurations or builders.
func (RouteLevel)String¶added inv0.72.0
func (rRouteLevel) String()string
typeRouteRoot¶added inv0.13.4
type RouteRootstring
RouteRoot represents the name of the route namespace.
typeRuleset¶added inv0.19.0
type Ruleset struct {IDstring `json:"id,omitempty"`Namestring `json:"name,omitempty"`Descriptionstring `json:"description,omitempty"`Kindstring `json:"kind,omitempty"`Version *string `json:"version,omitempty"`LastUpdated *time.Time `json:"last_updated,omitempty"`Phasestring `json:"phase,omitempty"`Rules []RulesetRule `json:"rules"`ShareableEntitlementNamestring `json:"shareable_entitlement_name,omitempty"`}
Ruleset contains the structure of a Ruleset. Using `string` for Kind andPhase is a developer nicety to support downstream clients like Terraform whodon't really have a strong and expansive type system. As always, therecommendation is to use the types provided where possible to avoidsurprises.
typeRulesetActionParameterProduct¶added inv0.19.0
type RulesetActionParameterProductstring
RulesetActionParameterProduct is the custom type for defining what productscan be used within the action parameters of a ruleset.
typeRulesetActionParametersLogCustomField¶added inv0.40.0
type RulesetActionParametersLogCustomField struct {Namestring `json:"name,omitempty"`}
RulesetActionParametersLogCustomField wraps an object that is part ofrequest_fields, response_fields or cookie_fields.
typeRulesetKind¶added inv0.19.0
type RulesetKindstring
RulesetKind is the custom type for allowed variances of rulesets.
typeRulesetPhase¶added inv0.19.0
type RulesetPhasestring
RulesetPhase is the custom type for defining at what point the ruleset willbe applied in the request pipeline.
typeRulesetRule¶added inv0.19.0
type RulesetRule struct {IDstring `json:"id,omitempty"`Version *string `json:"version,omitempty"`Actionstring `json:"action"`ActionParameters *RulesetRuleActionParameters `json:"action_parameters,omitempty"`Expressionstring `json:"expression"`Descriptionstring `json:"description,omitempty"`LastUpdated *time.Time `json:"last_updated,omitempty"`Refstring `json:"ref,omitempty"`Enabled *bool `json:"enabled,omitempty"`ScoreThresholdint `json:"score_threshold,omitempty"`RateLimit *RulesetRuleRateLimit `json:"ratelimit,omitempty"`ExposedCredentialCheck *RulesetRuleExposedCredentialCheck `json:"exposed_credential_check,omitempty"`Logging *RulesetRuleLogging `json:"logging,omitempty"`}
RulesetRule contains information about a single Ruleset Rule.
typeRulesetRuleAction¶added inv0.19.0
type RulesetRuleActionstring
RulesetRuleAction defines a custom type that is used to express allowedvalues for the rule action.
typeRulesetRuleActionParameters¶added inv0.19.0
type RulesetRuleActionParameters struct {IDstring `json:"id,omitempty"`Rulesetstring `json:"ruleset,omitempty"`Rulesets []string `json:"rulesets,omitempty"`Rules map[string][]string `json:"rules,omitempty"`Incrementint `json:"increment,omitempty"`URI *RulesetRuleActionParametersURI `json:"uri,omitempty"`Headers map[string]RulesetRuleActionParametersHTTPHeader `json:"headers,omitempty"`Products []string `json:"products,omitempty"`Phases []string `json:"phases,omitempty"`Overrides *RulesetRuleActionParametersOverrides `json:"overrides,omitempty"`MatchedData *RulesetRuleActionParametersMatchedData `json:"matched_data,omitempty"`Version *string `json:"version,omitempty"`Response *RulesetRuleActionParametersBlockResponse `json:"response,omitempty"`HostHeaderstring `json:"host_header,omitempty"`Origin *RulesetRuleActionParametersOrigin `json:"origin,omitempty"`SNI *RulesetRuleActionParametersSni `json:"sni,omitempty"`RequestFields []RulesetActionParametersLogCustomField `json:"request_fields,omitempty"`ResponseFields []RulesetActionParametersLogCustomField `json:"response_fields,omitempty"`CookieFields []RulesetActionParametersLogCustomField `json:"cookie_fields,omitempty"`Cache *bool `json:"cache,omitempty"`AdditionalCacheablePorts []int `json:"additional_cacheable_ports,omitempty"`EdgeTTL *RulesetRuleActionParametersEdgeTTL `json:"edge_ttl,omitempty"`BrowserTTL *RulesetRuleActionParametersBrowserTTL `json:"browser_ttl,omitempty"`ServeStale *RulesetRuleActionParametersServeStale `json:"serve_stale,omitempty"`Contentstring `json:"content,omitempty"`ContentTypestring `json:"content_type,omitempty"`StatusCodeuint16 `json:"status_code,omitempty"`RespectStrongETags *bool `json:"respect_strong_etags,omitempty"`CacheKey *RulesetRuleActionParametersCacheKey `json:"cache_key,omitempty"`OriginCacheControl *bool `json:"origin_cache_control,omitempty"`OriginErrorPagePassthru *bool `json:"origin_error_page_passthru,omitempty"`CacheReserve *RulesetRuleActionParametersCacheReserve `json:"cache_reserve,omitempty"`FromList *RulesetRuleActionParametersFromList `json:"from_list,omitempty"`FromValue *RulesetRuleActionParametersFromValue `json:"from_value,omitempty"`AutomaticHTTPSRewrites *bool `json:"automatic_https_rewrites,omitempty"`AutoMinify *RulesetRuleActionParametersAutoMinify `json:"autominify,omitempty"`BrowserIntegrityCheck *bool `json:"bic,omitempty"`DisableApps *bool `json:"disable_apps,omitempty"`DisableZaraz *bool `json:"disable_zaraz,omitempty"`DisableRailgun *bool `json:"disable_railgun,omitempty"`DisableRUM *bool `json:"disable_rum,omitempty"`EmailObfuscation *bool `json:"email_obfuscation,omitempty"`Fonts *bool `json:"fonts,omitempty"`Mirage *bool `json:"mirage,omitempty"`OpportunisticEncryption *bool `json:"opportunistic_encryption,omitempty"`Polish *Polish `json:"polish,omitempty"`ReadTimeout *uint `json:"read_timeout,omitempty"`RocketLoader *bool `json:"rocket_loader,omitempty"`SecurityLevel *SecurityLevel `json:"security_level,omitempty"`ServerSideExcludes *bool `json:"server_side_excludes,omitempty"`SSL *SSL `json:"ssl,omitempty"`SXG *bool `json:"sxg,omitempty"`HotLinkProtection *bool `json:"hotlink_protection,omitempty"`Algorithms []RulesetRuleActionParametersCompressionAlgorithm `json:"algorithms,omitempty"`}
RulesetRuleActionParameters specifies the action parameters for a Rulesetrule.
typeRulesetRuleActionParametersAutoMinify¶added inv0.47.0
typeRulesetRuleActionParametersBlockResponse¶added inv0.35.1
type RulesetRuleActionParametersBlockResponse struct {StatusCodeuint16 `json:"status_code"`ContentTypestring `json:"content_type"`Contentstring `json:"content"`}
RulesetRuleActionParametersBlockResponse holds the BlockResponse structfor an action parameter.
typeRulesetRuleActionParametersBrowserTTL¶added inv0.42.0
typeRulesetRuleActionParametersCacheKey¶added inv0.42.0
type RulesetRuleActionParametersCacheKey struct {CacheByDeviceType *bool `json:"cache_by_device_type,omitempty"`IgnoreQueryStringsOrder *bool `json:"ignore_query_strings_order,omitempty"`CacheDeceptionArmor *bool `json:"cache_deception_armor,omitempty"`CustomKey *RulesetRuleActionParametersCustomKey `json:"custom_key,omitempty"`}
typeRulesetRuleActionParametersCacheReserve¶added inv0.77.0
typeRulesetRuleActionParametersCategories¶added inv0.20.0
typeRulesetRuleActionParametersCompressionAlgorithm¶added inv0.65.0
type RulesetRuleActionParametersCompressionAlgorithm struct {Namestring `json:"name"`}
RulesetRuleActionParametersCompressionAlgorithm defines a compressionalgorithm for the compress_response action.
typeRulesetRuleActionParametersCustomKey¶added inv0.42.0
type RulesetRuleActionParametersCustomKey struct {Query *RulesetRuleActionParametersCustomKeyQuery `json:"query_string,omitempty"`Header *RulesetRuleActionParametersCustomKeyHeader `json:"header,omitempty"`Cookie *RulesetRuleActionParametersCustomKeyCookie `json:"cookie,omitempty"`User *RulesetRuleActionParametersCustomKeyUser `json:"user,omitempty"`Host *RulesetRuleActionParametersCustomKeyHost `json:"host,omitempty"`}
typeRulesetRuleActionParametersCustomKeyCookie¶added inv0.42.0
type RulesetRuleActionParametersCustomKeyCookieRulesetRuleActionParametersCustomKeyFields
typeRulesetRuleActionParametersCustomKeyFields¶added inv0.42.0
typeRulesetRuleActionParametersCustomKeyHeader¶added inv0.42.0
type RulesetRuleActionParametersCustomKeyHeader struct {RulesetRuleActionParametersCustomKeyFieldsExcludeOrigin *bool `json:"exclude_origin,omitempty"`Contains map[string][]string `json:"contains,omitempty"`}
typeRulesetRuleActionParametersCustomKeyHost¶added inv0.42.0
type RulesetRuleActionParametersCustomKeyHost struct {Resolved *bool `json:"resolved,omitempty"`}
typeRulesetRuleActionParametersCustomKeyList¶added inv0.42.0
func (RulesetRuleActionParametersCustomKeyList)MarshalJSON¶added inv0.42.0
func (sRulesetRuleActionParametersCustomKeyList) MarshalJSON() ([]byte,error)
func (*RulesetRuleActionParametersCustomKeyList)UnmarshalJSON¶added inv0.42.0
func (s *RulesetRuleActionParametersCustomKeyList) UnmarshalJSON(data []byte)error
typeRulesetRuleActionParametersCustomKeyQuery¶added inv0.42.0
type RulesetRuleActionParametersCustomKeyQuery struct {Include *RulesetRuleActionParametersCustomKeyList `json:"include,omitempty"`Exclude *RulesetRuleActionParametersCustomKeyList `json:"exclude,omitempty"`Ignore *bool `json:"ignore,omitempty"`}
typeRulesetRuleActionParametersCustomKeyUser¶added inv0.42.0
typeRulesetRuleActionParametersEdgeTTL¶added inv0.42.0
type RulesetRuleActionParametersEdgeTTL struct {Modestring `json:"mode,omitempty"`Default *uint `json:"default,omitempty"`StatusCodeTTL []RulesetRuleActionParametersStatusCodeTTL `json:"status_code_ttl,omitempty"`}
typeRulesetRuleActionParametersFromList¶added inv0.42.0
RulesetRuleActionParametersFromList holds the FromList struct foractions which pull data from a list.
typeRulesetRuleActionParametersFromValue¶added inv0.45.0
type RulesetRuleActionParametersFromValue struct {StatusCodeuint16 `json:"status_code,omitempty"`TargetURLRulesetRuleActionParametersTargetURL `json:"target_url"`PreserveQueryString *bool `json:"preserve_query_string,omitempty"`}
typeRulesetRuleActionParametersHTTPHeader¶added inv0.19.0
type RulesetRuleActionParametersHTTPHeader struct {Operationstring `json:"operation,omitempty"`Valuestring `json:"value,omitempty"`Expressionstring `json:"expression,omitempty"`}
RulesetRuleActionParametersHTTPHeader is the definition for define actionparameters that involve HTTP headers.
typeRulesetRuleActionParametersHTTPHeaderOperation¶added inv0.19.0
type RulesetRuleActionParametersHTTPHeaderOperationstring
RulesetRuleActionParametersHTTPHeaderOperation defines available options forHTTP header operations in actions.
typeRulesetRuleActionParametersMatchedData¶added inv0.22.0
type RulesetRuleActionParametersMatchedData struct {PublicKeystring `json:"public_key,omitempty"`}
RulesetRuleActionParametersMatchedData holds the structure for WAF basedpayload logging.
typeRulesetRuleActionParametersOrigin¶added inv0.39.0
type RulesetRuleActionParametersOrigin struct {Hoststring `json:"host,omitempty"`Portuint16 `json:"port,omitempty"`}
RulesetRuleActionParametersOrigin is the definition for route actionparameters that involve origin overrides.
typeRulesetRuleActionParametersOverrides¶added inv0.20.0
type RulesetRuleActionParametersOverrides struct {Enabled *bool `json:"enabled,omitempty"`Actionstring `json:"action,omitempty"`SensitivityLevelstring `json:"sensitivity_level,omitempty"`Categories []RulesetRuleActionParametersCategories `json:"categories,omitempty"`Rules []RulesetRuleActionParametersRules `json:"rules,omitempty"`}
typeRulesetRuleActionParametersRules¶added inv0.20.0
typeRulesetRuleActionParametersServeStale¶added inv0.42.0
type RulesetRuleActionParametersServeStale struct {DisableStaleWhileUpdating *bool `json:"disable_stale_while_updating,omitempty"`}
typeRulesetRuleActionParametersSni¶added inv0.46.0
type RulesetRuleActionParametersSni struct {Valuestring `json:"value"`}
RulesetRuleActionParametersSni is the definition for the route actionparameters that involve SNI overrides.
typeRulesetRuleActionParametersStatusCodeRange¶added inv0.42.0
typeRulesetRuleActionParametersStatusCodeTTL¶added inv0.42.0
type RulesetRuleActionParametersStatusCodeTTL struct {StatusCodeRange *RulesetRuleActionParametersStatusCodeRange `json:"status_code_range,omitempty"`StatusCodeValue *uint `json:"status_code,omitempty"`Value *int `json:"value,omitempty"`}
typeRulesetRuleActionParametersTargetURL¶added inv0.45.0
typeRulesetRuleActionParametersURI¶added inv0.19.0
type RulesetRuleActionParametersURI struct {Path *RulesetRuleActionParametersURIPath `json:"path,omitempty"`Query *RulesetRuleActionParametersURIQuery `json:"query,omitempty"`Origin *bool `json:"origin,omitempty"`}
RulesetRuleActionParametersURI holds the URI struct for an action parameter.
typeRulesetRuleActionParametersURIPath¶added inv0.19.0
type RulesetRuleActionParametersURIPath struct {Valuestring `json:"value,omitempty"`Expressionstring `json:"expression,omitempty"`}
RulesetRuleActionParametersURIPath holds the path specific portion of a URIaction parameter.
typeRulesetRuleActionParametersURIQuery¶added inv0.19.0
type RulesetRuleActionParametersURIQuery struct {Value *string `json:"value,omitempty"`Expressionstring `json:"expression,omitempty"`}
RulesetRuleActionParametersURIQuery holds the query specific portion of a URIaction parameter.
typeRulesetRuleExposedCredentialCheck¶added inv0.27.0
type RulesetRuleExposedCredentialCheck struct {UsernameExpressionstring `json:"username_expression,omitempty"`PasswordExpressionstring `json:"password_expression,omitempty"`}
RulesetRuleExposedCredentialCheck contains the structure of an exposedcredential check Ruleset Rule.
typeRulesetRuleLogging¶added inv0.37.0
type RulesetRuleLogging struct {Enabled *bool `json:"enabled,omitempty"`}
RulesetRuleLogging contains the logging configuration for the rule.
typeRulesetRuleRateLimit¶added inv0.22.0
type RulesetRuleRateLimit struct {Characteristics []string `json:"characteristics,omitempty"`RequestsPerPeriodint `json:"requests_per_period,omitempty"`ScorePerPeriodint `json:"score_per_period,omitempty"`ScoreResponseHeaderNamestring `json:"score_response_header_name,omitempty"`Periodint `json:"period,omitempty"`MitigationTimeoutint `json:"mitigation_timeout,omitempty"`CountingExpressionstring `json:"counting_expression,omitempty"`RequestsToOriginbool `json:"requests_to_origin,omitempty"`}
RulesetRuleRateLimit contains the structure of a HTTP rate limit Ruleset Rule.
typeSAMLAttributeConfig¶added inv0.41.0
type SAMLAttributeConfig struct {Namestring `json:"name,omitempty"`NameFormatstring `json:"name_format,omitempty"`FriendlyNamestring `json:"friendly_name,omitempty"`Requiredbool `json:"required,omitempty"`SourceSourceConfig `json:"source"`}
typeSSL¶added inv0.47.0
type SSLint
const (SSLOff SSLSSLFlexibleSSLFullSSLStrictSSLOriginPull)
funcSSLFromString¶added inv0.47.0
func (SSL)MarshalJSON¶added inv0.47.0
func (*SSL)UnmarshalJSON¶added inv0.47.0
typeSSLValidationError¶added inv0.32.0
type SSLValidationError struct {Messagestring `json:"message,omitempty"`}
SSLValidationError represents errors that occurred during SSL validation.
typeSSLValidationRecord¶added inv0.32.0
type SSLValidationRecord struct {CnameTargetstring `json:"cname_target,omitempty"`CnameNamestring `json:"cname,omitempty"`TxtNamestring `json:"txt_name,omitempty"`TxtValuestring `json:"txt_value,omitempty"`HTTPUrlstring `json:"http_url,omitempty"`HTTPBodystring `json:"http_body,omitempty"`Emails []string `json:"emails,omitempty"`}
SSLValidationRecord displays Domain Control Validation tokens.
typeSaasApplication¶added inv0.41.0
type SaasApplication struct {// Items common to both SAML and OIDCAppIDstring `json:"app_id,omitempty"`UpdatedAt *time.Time `json:"updated_at,omitempty"`CreatedAt *time.Time `json:"created_at,omitempty"`PublicKeystring `json:"public_key,omitempty"`AuthTypestring `json:"auth_type,omitempty"`// SAML saas appConsumerServiceUrlstring `json:"consumer_service_url,omitempty"`SPEntityIDstring `json:"sp_entity_id,omitempty"`IDPEntityIDstring `json:"idp_entity_id,omitempty"`NameIDFormatstring `json:"name_id_format,omitempty"`SSOEndpointstring `json:"sso_endpoint,omitempty"`DefaultRelayStatestring `json:"default_relay_state,omitempty"`CustomAttributes *[]SAMLAttributeConfig `json:"custom_attributes"`NameIDTransformJsonatastring `json:"name_id_transform_jsonata,omitempty"`SamlAttributeTransformJsonatastring `json:"saml_attribute_transform_jsonata"`// OIDC saas appClientIDstring `json:"client_id,omitempty"`ClientSecretstring `json:"client_secret,omitempty"`RedirectURIs []string `json:"redirect_uris,omitempty"`GrantTypes []string `json:"grant_types,omitempty"`Scopes []string `json:"scopes,omitempty"`AppLauncherURLstring `json:"app_launcher_url,omitempty"`GroupFilterRegexstring `json:"group_filter_regex,omitempty"`CustomClaims *[]OIDCClaimConfig `json:"custom_claims"`AllowPKCEWithoutClientSecret *bool `json:"allow_pkce_without_client_secret,omitempty"`RefreshTokenOptions *RefreshTokenOptions `json:"refresh_token_options,omitempty"`HybridAndImplicitOptions *AccessApplicationHybridAndImplicitOptions `json:"hybrid_and_implicit_options,omitempty"`AccessTokenLifetimestring `json:"access_token_lifetime,omitempty"`}
typeSaveResponse¶added inv0.19.0
type SaveResponse struct {ResponseResultNotificationResource}
SaveResponse is returned when a resource is inserted/updated/deleted.
typeScimAuthentication¶added inv0.112.0
type ScimAuthentication interface {// contains filtered or unexported methods}
typeScope¶added inv0.53.0
type Scope struct {Keystring `json:"key"`ScopeObjects []ScopeObject `json:"objects"`}
typeScopeObject¶added inv0.53.0
type ScopeObject struct {Keystring `json:"key"`}
typeSecondaryDNSPrimary¶added inv0.15.0
type SecondaryDNSPrimary struct {IDstring `json:"id,omitempty"`IPstring `json:"ip"`Portint `json:"port"`IxfrEnablebool `json:"ixfr_enable"`TsigIDstring `json:"tsig_id"`Namestring `json:"name"`}
SecondaryDNSPrimary is the representation of the DNS Primary.
typeSecondaryDNSPrimaryDetailResponse¶added inv0.15.0
type SecondaryDNSPrimaryDetailResponse struct {ResponseResultSecondaryDNSPrimary `json:"result"`}
SecondaryDNSPrimaryDetailResponse is the API representation of a singlesecondary DNS primary response.
typeSecondaryDNSPrimaryListResponse¶added inv0.15.0
type SecondaryDNSPrimaryListResponse struct {ResponseResult []SecondaryDNSPrimary `json:"result"`}
SecondaryDNSPrimaryListResponse is the API representation of all secondary DNSprimaries.
typeSecondaryDNSTSIG¶added inv0.15.0
type SecondaryDNSTSIG struct {IDstring `json:"id,omitempty"`Namestring `json:"name"`Secretstring `json:"secret"`Algostring `json:"algo"`}
SecondaryDNSTSIG contains the structure for a secondary DNS TSIG.
typeSecondaryDNSTSIGDetailResponse¶added inv0.15.0
type SecondaryDNSTSIGDetailResponse struct {ResponseResultSecondaryDNSTSIG `json:"result"`}
SecondaryDNSTSIGDetailResponse is the API response for a single secondaryDNS TSIG.
typeSecondaryDNSTSIGListResponse¶added inv0.15.0
type SecondaryDNSTSIGListResponse struct {ResponseResult []SecondaryDNSTSIG `json:"result"`}
SecondaryDNSTSIGListResponse is the API response for all secondary DNS TSIGs.
typeSecondaryDNSZone¶added inv0.15.0
type SecondaryDNSZone struct {IDstring `json:"id,omitempty"`Namestring `json:"name,omitempty"`Primaries []string `json:"primaries,omitempty"`AutoRefreshSecondsint `json:"auto_refresh_seconds,omitempty"`SoaSerialint `json:"soa_serial,omitempty"`CreatedTimetime.Time `json:"created_time,omitempty"`CheckedTimetime.Time `json:"checked_time,omitempty"`ModifiedTimetime.Time `json:"modified_time,omitempty"`}
SecondaryDNSZone contains the high level structure of a secondary DNS zone.
typeSecondaryDNSZoneAXFRResponse¶added inv0.15.0
SecondaryDNSZoneAXFRResponse is the API response for a single secondaryDNS AXFR response.
typeSecondaryDNSZoneDetailResponse¶added inv0.15.0
type SecondaryDNSZoneDetailResponse struct {ResponseResultSecondaryDNSZone `json:"result"`}
SecondaryDNSZoneDetailResponse is the API response for a single secondaryDNS zone.
typeSecurityLevel¶added inv0.47.0
type SecurityLevelint
const (SecurityLevelOff SecurityLevelSecurityLevelEssentiallyOffSecurityLevelLowSecurityLevelMediumSecurityLevelHighSecurityLevelHelp)
funcSecurityLevelFromString¶added inv0.47.0
func SecurityLevelFromString(sstring) (*SecurityLevel,error)
func (SecurityLevel)IntoRef¶added inv0.47.0
func (pSecurityLevel) IntoRef() *SecurityLevel
func (SecurityLevel)MarshalJSON¶added inv0.47.0
func (pSecurityLevel) MarshalJSON() ([]byte,error)
func (SecurityLevel)String¶added inv0.47.0
func (pSecurityLevel) String()string
func (*SecurityLevel)UnmarshalJSON¶added inv0.47.0
func (p *SecurityLevel) UnmarshalJSON(data []byte)error
typeServiceBinding¶added inv0.56.0
typeServiceBindingMap¶added inv0.56.0
type ServiceBindingMap map[string]*ServiceBinding
typeServiceError¶added inv0.36.0
type ServiceError struct {// contains filtered or unexported fields}
ServiceError is a handler for 5xx errors returned to the client.
funcNewServiceError¶added inv0.48.0
func NewServiceError(e *Error)ServiceError
func (ServiceError)Error¶added inv0.36.0
func (eServiceError) Error()string
func (ServiceError)ErrorCodes¶added inv0.36.0
func (eServiceError) ErrorCodes() []int
func (ServiceError)ErrorMessages¶added inv0.36.0
func (eServiceError) ErrorMessages() []string
func (ServiceError)Errors¶added inv0.36.0
func (eServiceError) Errors() []ResponseInfo
func (ServiceError)InternalErrorCodeIs¶added inv0.48.0
func (eServiceError) InternalErrorCodeIs(codeint)bool
func (ServiceError)RayID¶added inv0.36.0
func (eServiceError) RayID()string
func (ServiceError)Type¶added inv0.36.0
func (eServiceError) Type()ErrorType
func (ServiceError)Unwrap¶added inv0.103.0
func (eServiceError) Unwrap()error
typeServiceMode¶added inv0.64.0
type ServiceModestring
typeServiceModeV2¶added inv0.52.0
type ServiceModeV2 struct {ModeServiceMode `json:"mode,omitempty"`Portint `json:"port,omitempty"`}
typeSessionAffinityAttributes¶added inv0.12.0
type SessionAffinityAttributes struct {SameSitestring `json:"samesite,omitempty"`Securestring `json:"secure,omitempty"`DrainDurationint `json:"drain_duration,omitempty"`ZeroDowntimeFailoverstring `json:"zero_downtime_failover,omitempty"`Headers []string `json:"headers,omitempty"`RequireAllHeadersbool `json:"require_all_headers,omitempty"`}
SessionAffinityAttributes represents additional configuration options for session affinity.
typeSetWorkersSecretParams¶added inv0.57.0
type SetWorkersSecretParams struct {ScriptNamestringSecret *WorkersPutSecretRequest}
typeSingleScimAuthentication¶added inv0.112.0
type SingleScimAuthentication interface {// contains filtered or unexported methods}
typeSizeOptions¶added inv0.40.0
type SizeOptions struct {Sizeint `json:"size,omitempty" url:"size,omitempty"`Before *int `json:"before,omitempty" url:"before,omitempty"`After *int `json:"after,omitempty" url:"after,omitempty"`}
SizeOptions can be passed to a list request to configure size and cursor location.These values will be defaulted if omitted.
This should be swapped to ResultInfoCursors once the types are corrected.
typeSnippetFile¶added inv0.108.0
typeSnippetMetadata¶added inv0.108.0
type SnippetMetadata struct {MainModulestring `json:"main_module"`}
typeSnippetRequest¶added inv0.108.0
type SnippetRequest struct {SnippetNamestring `json:"snippet_name"`MainFilestring `json:"main_file"`Files []SnippetFile `json:"files"`}
typeSnippetResponse¶added inv0.109.0
typeSnippetRule¶added inv0.108.0
typeSnippetRulesRequest¶added inv0.111.0
type SnippetRulesRequest struct {Rules []SnippetRule `json:"rules"`}
typeSnippetsResponse¶added inv0.108.0
typeSnippetsRulesResponse¶added inv0.108.0
type SnippetsRulesResponse struct {ResponseResult []SnippetRule `json:"result"`}
typeSourceConfig¶added inv0.41.0
typeSpectrumApplication¶added inv0.9.0
type SpectrumApplication struct {DNSSpectrumApplicationDNS `json:"dns,omitempty"`OriginDirect []string `json:"origin_direct,omitempty"`IDstring `json:"id,omitempty"`Protocolstring `json:"protocol,omitempty"`TrafficTypestring `json:"traffic_type,omitempty"`TLSstring `json:"tls,omitempty"`ProxyProtocolProxyProtocol `json:"proxy_protocol,omitempty"`ModifiedOn *time.Time `json:"modified_on,omitempty"`OriginDNS *SpectrumApplicationOriginDNS `json:"origin_dns,omitempty"`OriginPort *SpectrumApplicationOriginPort `json:"origin_port,omitempty"`CreatedOn *time.Time `json:"created_on,omitempty"`EdgeIPs *SpectrumApplicationEdgeIPs `json:"edge_ips,omitempty"`ArgoSmartRoutingbool `json:"argo_smart_routing,omitempty"`IPv4bool `json:"ipv4,omitempty"`IPFirewallbool `json:"ip_firewall,omitempty"`}
SpectrumApplication defines a single Spectrum Application.
func (*SpectrumApplication)UnmarshalJSON¶added inv0.11.0
func (a *SpectrumApplication) UnmarshalJSON(data []byte)error
UnmarshalJSON handles setting the `ProxyProtocol` field based on the value of the deprecated `spp` field.
typeSpectrumApplicationConnectivity¶added inv0.11.5
type SpectrumApplicationConnectivitystring
SpectrumApplicationConnectivity specifies IP address type on the edge configuration.
const (// SpectrumConnectivityAll specifies IPv4/6 edge IP.SpectrumConnectivityAllSpectrumApplicationConnectivity = "all"// SpectrumConnectivityIPv4 specifies IPv4 edge IP.SpectrumConnectivityIPv4SpectrumApplicationConnectivity = "ipv4"// SpectrumConnectivityIPv6 specifies IPv6 edge IP.SpectrumConnectivityIPv6SpectrumApplicationConnectivity = "ipv6"// SpectrumConnectivityStatic specifies static edge IP configuration.SpectrumConnectivityStaticSpectrumApplicationConnectivity = "static")
func (SpectrumApplicationConnectivity)Dynamic¶added inv0.11.5
func (cSpectrumApplicationConnectivity) Dynamic()bool
Dynamic checks if address family is specified as dynamic config.
func (SpectrumApplicationConnectivity)Static¶added inv0.11.5
func (cSpectrumApplicationConnectivity) Static()bool
Static checks if address family is specified as static config.
func (SpectrumApplicationConnectivity)String¶added inv0.11.5
func (cSpectrumApplicationConnectivity) String()string
func (*SpectrumApplicationConnectivity)UnmarshalJSON¶added inv0.11.5
func (c *SpectrumApplicationConnectivity) UnmarshalJSON(b []byte)error
UnmarshalJSON function for SpectrumApplicationConnectivity enum.
typeSpectrumApplicationDNS¶added inv0.9.0
SpectrumApplicationDNS holds the external DNS configuration for a SpectrumApplication.
typeSpectrumApplicationDetailResponse¶added inv0.9.0
type SpectrumApplicationDetailResponse struct {ResponseResultSpectrumApplication `json:"result"`}
SpectrumApplicationDetailResponse is the structure of the detailed responsefrom the API.
typeSpectrumApplicationEdgeIPs¶added inv0.11.5
type SpectrumApplicationEdgeIPs struct {TypeSpectrumApplicationEdgeType `json:"type"`Connectivity *SpectrumApplicationConnectivity `json:"connectivity,omitempty"`IPs []net.IP `json:"ips,omitempty"`}
SpectrumApplicationEdgeIPs represents configuration for Bring-Your-Own-IPhttps://developers.cloudflare.com/spectrum/getting-started/byoip/
typeSpectrumApplicationEdgeType¶added inv0.11.5
type SpectrumApplicationEdgeTypestring
SpectrumApplicationEdgeType for possible Edge configurations.
const (// SpectrumEdgeTypeDynamic IP config.SpectrumEdgeTypeDynamicSpectrumApplicationEdgeType = "dynamic"// SpectrumEdgeTypeStatic IP config.SpectrumEdgeTypeStaticSpectrumApplicationEdgeType = "static")
func (SpectrumApplicationEdgeType)String¶added inv0.11.5
func (tSpectrumApplicationEdgeType) String()string
func (*SpectrumApplicationEdgeType)UnmarshalJSON¶added inv0.11.5
func (t *SpectrumApplicationEdgeType) UnmarshalJSON(b []byte)error
UnmarshalJSON function for SpectrumApplicationEdgeType enum.
typeSpectrumApplicationOriginDNS¶added inv0.9.0
type SpectrumApplicationOriginDNS struct {Namestring `json:"name"`}
SpectrumApplicationOriginDNS holds the origin DNS configuration for a SpectrumApplication.
typeSpectrumApplicationOriginPort¶added inv0.13.0
type SpectrumApplicationOriginPort struct {Port, Start, Enduint16}
SpectrumApplicationOriginPort defines a union of a single port or range of ports.
func (*SpectrumApplicationOriginPort)MarshalJSON¶added inv0.13.0
func (p *SpectrumApplicationOriginPort) MarshalJSON() ([]byte,error)
MarshalJSON converts a single port or port range to a suitable byte slice.
func (*SpectrumApplicationOriginPort)UnmarshalJSON¶added inv0.13.0
func (p *SpectrumApplicationOriginPort) UnmarshalJSON(b []byte)error
UnmarshalJSON converts a byte slice into a single port or port range.
typeSpectrumApplicationsDetailResponse¶added inv0.9.0
type SpectrumApplicationsDetailResponse struct {ResponseResult []SpectrumApplication `json:"result"`}
SpectrumApplicationsDetailResponse is the structure of the detailed responsefrom the API.
typeSplitTunnel¶added inv0.25.0
type SplitTunnel struct {Addressstring `json:"address,omitempty"`Hoststring `json:"host,omitempty"`Descriptionstring `json:"description,omitempty"`}
SplitTunnel represents the individual tunnel struct.
typeSplitTunnelResponse¶added inv0.25.0
type SplitTunnelResponse struct {ResponseResult []SplitTunnel `json:"result"`}
SplitTunnelResponse represents the response from the get splittunnel endpoints.
typeStartWorkersTailResponse¶added inv0.47.0
type StartWorkersTailResponse struct {ResponseResultWorkersTail}
typeStorageKey¶added inv0.9.0
type StorageKey struct {Namestring `json:"name"`Expirationint `json:"expiration"`Metadata interface{} `json:"metadata"`}
StorageKey is a key name used to identify a storage value.
typeStreamAccessRule¶added inv0.44.0
type StreamAccessRule struct {Typestring `json:"type"`Country []string `json:"country,omitempty"`Actionstring `json:"action"`IP []string `json:"ip,omitempty"`}
StreamAccessRule represents the accessRules when creating a signed URL.
typeStreamCreateVideoParameters¶added inv0.44.0
type StreamCreateVideoParameters struct {AccountIDstringMaxDurationSecondsint `json:"maxDurationSeconds,omitempty"`Expiry *time.Time `json:"expiry,omitempty"`Creatorstring `json:"creator,omitempty"`ThumbnailTimestampPctfloat64 `json:"thumbnailTimestampPct,omitempty"`AllowedOrigins []string `json:"allowedOrigins,omitempty"`RequireSignedURLsbool `json:"requireSignedURLs,omitempty"`WatermarkUploadVideoURLWatermark `json:"watermark,omitempty"`Meta map[string]interface{} `json:"meta,omitempty"`ScheduledDeletion *time.Time `json:"scheduledDeletion,omitempty"`}
StreamCreateVideoParameters are parameters used when creating a video.
typeStreamInitiateTUSUploadParameters¶added inv0.77.0
type StreamInitiateTUSUploadParameters struct {DirectUserUploadbool `url:"direct_user,omitempty"`TusResumableTusProtocolVersion `url:"-"`UploadLengthint64 `url:"-"`UploadCreatorstring `url:"-"`MetadataTUSUploadMetadata `url:"-"`}
typeStreamInitiateTUSUploadResponse¶added inv0.77.0
typeStreamListParameters¶added inv0.44.0
type StreamListParameters struct {AccountIDstringVideoIDstringAfter *time.Time `url:"after,omitempty"`Before *time.Time `url:"before,omitempty"`Creatorstring `url:"creator,omitempty"`IncludeCountsbool `url:"include_counts,omitempty"`Searchstring `url:"search,omitempty"`Limitint `url:"limit,omitempty"`Ascbool `url:"asc,omitempty"`Statusstring `url:"status,omitempty"`}
StreamListParameters represents parameters used when listing stream videos.
typeStreamListResponse¶
type StreamListResponse struct {ResponseResult []StreamVideo `json:"result,omitempty"`Totalstring `json:"total,omitempty"`Rangestring `json:"range,omitempty"`}
StreamListResponse represents the API response from a StreamListRequest.
typeStreamParameters¶added inv0.44.0
StreamParameters are the basic parameters needed.
typeStreamSignedURLParameters¶added inv0.44.0
type StreamSignedURLParameters struct {AccountIDstringVideoIDstringIDstring `json:"id,omitempty"`PEMstring `json:"pem,omitempty"`EXPint `json:"exp,omitempty"`NBFint `json:"nbf,omitempty"`Downloadablebool `json:"downloadable,omitempty"`AccessRules []StreamAccessRule `json:"accessRules,omitempty"`}
StreamSignedURLParameters represent parameters used when creating a signed URL.
typeStreamSignedURLResponse¶added inv0.44.0
StreamSignedURLResponse represents an API response for a signed URL.
typeStreamUploadFileParameters¶added inv0.44.0
type StreamUploadFileParameters struct {AccountIDstringVideoIDstringFilePathstringScheduledDeletion *time.Time}
StreamUploadFileParameters are parameters needed for file upload of a video.
typeStreamUploadFromURLParameters¶added inv0.44.0
type StreamUploadFromURLParameters struct {AccountIDstringVideoIDstringURLstring `json:"url"`Creatorstring `json:"creator,omitempty"`ThumbnailTimestampPctfloat64 `json:"thumbnailTimestampPct,omitempty"`AllowedOrigins []string `json:"allowedOrigins,omitempty"`RequireSignedURLsbool `json:"requireSignedURLs,omitempty"`WatermarkUploadVideoURLWatermark `json:"watermark,omitempty"`Meta map[string]interface{} `json:"meta,omitempty"`ScheduledDeletion *time.Time `json:"scheduledDeletion,omitempty"`}
StreamUploadFromURLParameters are the parameters used when uploading a video from URL.
typeStreamVideo¶added inv0.44.0
type StreamVideo struct {AllowedOrigins []string `json:"allowedOrigins,omitempty"`Created *time.Time `json:"created,omitempty"`Durationfloat64 `json:"duration,omitempty"`InputStreamVideoInput `json:"input,omitempty"`MaxDurationSecondsint `json:"maxDurationSeconds,omitempty"`Meta map[string]interface{} `json:"meta,omitempty"`Modified *time.Time `json:"modified,omitempty"`UploadExpiry *time.Time `json:"uploadExpiry,omitempty"`PlaybackStreamVideoPlayback `json:"playback,omitempty"`Previewstring `json:"preview,omitempty"`ReadyToStreambool `json:"readyToStream,omitempty"`RequireSignedURLsbool `json:"requireSignedURLs,omitempty"`Sizeint `json:"size,omitempty"`StatusStreamVideoStatus `json:"status,omitempty"`Thumbnailstring `json:"thumbnail,omitempty"`ThumbnailTimestampPctfloat64 `json:"thumbnailTimestampPct,omitempty"`UIDstring `json:"uid,omitempty"`Creatorstring `json:"creator,omitempty"`LiveInputstring `json:"liveInput,omitempty"`Uploaded *time.Time `json:"uploaded,omitempty"`ScheduledDeletion *time.Time `json:"scheduledDeletion,omitempty"`WatermarkStreamVideoWatermark `json:"watermark,omitempty"`NFTStreamVideoNFTParameters `json:"nft,omitempty"`}
StreamVideo represents a stream video.
typeStreamVideoCreate¶added inv0.44.0
type StreamVideoCreate struct {UploadURLstring `json:"uploadURL,omitempty"`UIDstring `json:"uid,omitempty"`WatermarkStreamVideoWatermark `json:"watermark,omitempty"`ScheduledDeletion *time.Time `json:"scheduledDeletion,omitempty"`}
StreamVideoCreate represents parameters returned after creating a video.
typeStreamVideoCreateResponse¶added inv0.44.0
type StreamVideoCreateResponse struct {ResponseResultStreamVideoCreate `json:"result,omitempty"`}
StreamVideoCreateResponse represents an API response of creating a stream video.
typeStreamVideoInput¶added inv0.44.0
StreamVideoInput represents the video input values of a stream video.
typeStreamVideoNFTParameters¶added inv0.44.0
type StreamVideoNFTParameters struct {AccountIDstringVideoIDstringContractstring `json:"contract,omitempty"`Tokenint `json:"token,omitempty"`}
StreamVideoNFTParameters represents a NFT for a stream video.
typeStreamVideoPlayback¶added inv0.44.0
type StreamVideoPlayback struct {HLSstring `json:"hls,omitempty"`Dashstring `json:"dash,omitempty"`}
StreamVideoPlayback represents the playback URLs for a video.
typeStreamVideoResponse¶added inv0.44.0
type StreamVideoResponse struct {ResponseResultStreamVideo `json:"result,omitempty"`}
StreamVideoResponse represents an API response of a stream video.
typeStreamVideoStatus¶added inv0.44.0
type StreamVideoStatus struct {Statestring `json:"state,omitempty"`PctCompletestring `json:"pctComplete,omitempty"`ErrorReasonCodestring `json:"errorReasonCode,omitempty"`ErrorReasonTextstring `json:"errorReasonText,omitempty"`}
StreamVideoStatus represents the status of a stream video.
typeStreamVideoWatermark¶added inv0.44.0
type StreamVideoWatermark struct {UIDstring `json:"uid,omitempty"`Sizeint `json:"size,omitempty"`Heightint `json:"height,omitempty"`Widthint `json:"width,omitempty"`Created *time.Time `json:"created,omitempty"`DownloadedFromstring `json:"downloadedFrom,omitempty"`Namestring `json:"name,omitempty"`Opacityfloat64 `json:"opacity,omitempty"`Paddingfloat64 `json:"padding,omitempty"`Scalefloat64 `json:"scale,omitempty"`Positionstring `json:"position,omitempty"`}
StreamVideoWatermark represents a watermark for a stream video.
typeTUSUploadMetadata¶added inv0.77.0
type TUSUploadMetadata struct {Namestring `json:"name,omitempty"`MaxDurationSecondsint `json:"maxDurationSeconds,omitempty"`RequireSignedURLsbool `json:"requiresignedurls,omitempty"`AllowedOriginsstring `json:"allowedorigins,omitempty"`ThumbnailTimestampPctfloat64 `json:"thumbnailtimestamppct,omitempty"`ScheduledDeletion *time.Time `json:"scheduledDeletion,omitempty"`Expiry *time.Time `json:"expiry,omitempty"`Watermarkstring `json:"watermark,omitempty"`}
func (TUSUploadMetadata)ToTUSCsv¶added inv0.77.0
func (tTUSUploadMetadata) ToTUSCsv() (string,error)
typeTeamsAccount¶added inv0.21.0
type TeamsAccount struct {GatewayTagstring `json:"gateway_tag"`// Internal teams IDProviderNamestring `json:"provider_name"`// Auth providerIDstring `json:"id"`// cloudflare account IDTenantAccountIDstring `json:"tenant_account_id,omitempty"`// cloudflare Tenant account ID, if a tenant accountTenantIDstring `json:"tenant_id,omitempty"`// cloudflare Tenant ID, if a tenant account id}
typeTeamsAccountConnectivitySettingsResponse¶added inv0.97.0
type TeamsAccountConnectivitySettingsResponse struct {ResponseResultTeamsConnectivitySettings `json:"result"`}
typeTeamsAccountLoggingConfiguration¶added inv0.30.0
typeTeamsAccountResponse¶added inv0.21.0
type TeamsAccountResponse struct {ResponseResultTeamsAccount `json:"result"`}
TeamsAccountResponse is the API response, containing information on teamsaccount.
typeTeamsAccountSettings¶added inv0.21.0
type TeamsAccountSettings struct {Antivirus *TeamsAntivirus `json:"antivirus,omitempty"`TLSDecrypt *TeamsTLSDecrypt `json:"tls_decrypt,omitempty"`ActivityLog *TeamsActivityLog `json:"activity_log,omitempty"`BlockPage *TeamsBlockPage `json:"block_page,omitempty"`BrowserIsolation *BrowserIsolation `json:"browser_isolation,omitempty"`FIPS *TeamsFIPS `json:"fips,omitempty"`ProtocolDetection *TeamsProtocolDetection `json:"protocol_detection,omitempty"`BodyScanning *TeamsBodyScanning `json:"body_scanning,omitempty"`ExtendedEmailMatching *TeamsExtendedEmailMatching `json:"extended_email_matching,omitempty"`CustomCertificate *TeamsCustomCertificate `json:"custom_certificate,omitempty"`Certificate *TeamsCertificateSetting `json:"certificate,omitempty"`Sandbox *TeamsSandboxAccountSetting `json:"sandbox,omitempty"`}
typeTeamsActivityLog¶added inv0.21.0
type TeamsActivityLog struct {Enabledbool `json:"enabled"`}
typeTeamsAntivirus¶added inv0.21.0
type TeamsAntivirus struct {EnabledDownloadPhasebool `json:"enabled_download_phase"`EnabledUploadPhasebool `json:"enabled_upload_phase"`FailClosedbool `json:"fail_closed"`NotificationSettings *TeamsNotificationSettings `json:"notification_settings"`}
typeTeamsBISOAdminControlSettings¶added inv0.21.0
type TeamsBISOAdminControlSettings struct {DisablePrintingbool `json:"dp"`DisableCopyPastebool `json:"dcp"`DisableDownloadbool `json:"dd"`DisableUploadbool `json:"du"`DisableKeyboardbool `json:"dk"`DisableClipboardRedirectionbool `json:"dcr"`CopyTeamsTeamsBISOAdminControlSettingsValue `json:"copy"`DownloadTeamsTeamsBISOAdminControlSettingsValue `json:"download"`KeyboardTeamsTeamsBISOAdminControlSettingsValue `json:"keyboard"`PasteTeamsTeamsBISOAdminControlSettingsValue `json:"paste"`PrintingTeamsTeamsBISOAdminControlSettingsValue `json:"printing"`UploadTeamsTeamsBISOAdminControlSettingsValue `json:"upload"`VersionTeamsBISOAdminControlSettingsVersion `json:"version"`}
typeTeamsBISOAdminControlSettingsVersion¶added inv0.115.0
type TeamsBISOAdminControlSettingsVersionstring
const (TeamsBISOAdminControlSettingsV1TeamsBISOAdminControlSettingsVersion = "v1"TeamsBISOAdminControlSettingsV2TeamsBISOAdminControlSettingsVersion = "v2")
typeTeamsBlockPage¶added inv0.21.0
type TeamsBlockPage struct {Enabled *bool `json:"enabled,omitempty"`FooterTextstring `json:"footer_text,omitempty"`HeaderTextstring `json:"header_text,omitempty"`LogoPathstring `json:"logo_path,omitempty"`BackgroundColorstring `json:"background_color,omitempty"`Namestring `json:"name,omitempty"`MailtoAddressstring `json:"mailto_address,omitempty"`MailtoSubjectstring `json:"mailto_subject,omitempty"`SuppressFooter *bool `json:"suppress_footer,omitempty"`}
typeTeamsBodyScanning¶added inv0.80.0
type TeamsBodyScanning struct {InspectionModeTeamsInspectionMode `json:"inspection_mode,omitempty"`}
typeTeamsCertificate¶added inv0.99.0
type TeamsCertificate struct {InUse *bool `json:"in_use"`IDstring `json:"id"`BindingStatusstring `json:"binding_status"`QsPackIdstring `json:"qs_pack_id"`Typestring `json:"type"`UpdatedAt *time.Time `json:"updated_at"`UploadedOn *time.Time `json:"uploaded_on"`CreatedAt *time.Time `json:"created_at"`ExpiresOn *time.Time `json:"expires_on"`}
typeTeamsCertificateCreateRequest¶added inv0.100.0
type TeamsCertificateCreateRequest struct {ValidityPeriodDaysint `json:"validity_period_days,omitempty"`}
typeTeamsCertificateResponse¶added inv0.100.0
type TeamsCertificateResponse struct {ResponseResultTeamsCertificate `json:"result"`}
TeamsCertificateResponse is the API response, containing a single certificate.
typeTeamsCertificateSetting¶added inv0.100.0
type TeamsCertificateSetting struct {IDstring `json:"id"`}
typeTeamsCertificatesResponse¶added inv0.100.0
type TeamsCertificatesResponse struct {ResponseResult []TeamsCertificate `json:"result"`}
TeamsCertificatesResponse is the API response, containing an array of certificates.
typeTeamsCheckSessionSettings¶added inv0.31.0
typeTeamsConfigResponse¶added inv0.21.0
type TeamsConfigResponse struct {ResponseResultTeamsConfiguration `json:"result"`}
TeamsConfigResponse is the API response, containing information on teamsaccount config.
typeTeamsConfiguration¶added inv0.21.0
type TeamsConfiguration struct {SettingsTeamsAccountSettings `json:"settings"`CreatedAttime.Time `json:"created_at,omitempty"`UpdatedAttime.Time `json:"updated_at,omitempty"`}
TeamsConfiguration data model.
typeTeamsConnectivitySettings¶added inv0.97.0
typeTeamsCustomCertificate¶added inv0.94.0
typeTeamsDeviceDetail¶added inv0.32.0
type TeamsDeviceDetail struct {ResponseResultTeamsDeviceListItem `json:"result"`}
typeTeamsDeviceListItem¶added inv0.32.0
type TeamsDeviceListItem struct {UserUserItem `json:"user,omitempty"`IDstring `json:"id,omitempty"`Keystring `json:"key,omitempty"`DeviceTypestring `json:"device_type,omitempty"`Namestring `json:"name,omitempty"`Modelstring `json:"model,omitempty"`Manufacturerstring `json:"manufacturer,omitempty"`Deletedbool `json:"deleted,omitempty"`Versionstring `json:"version,omitempty"`SerialNumberstring `json:"serial_number,omitempty"`OSVersionstring `json:"os_version,omitempty"`OSDistroNamestring `json:"os_distro_name,omitempty"`OsDistroRevisionstring `json:"os_distro_revision,omitempty"`OSVersionExtrastring `json:"os_version_extra,omitempty"`MacAddressstring `json:"mac_address,omitempty"`IPstring `json:"ip,omitempty"`Createdstring `json:"created,omitempty"`Updatedstring `json:"updated,omitempty"`LastSeenstring `json:"last_seen,omitempty"`RevokedAtstring `json:"revoked_at,omitempty"`}
typeTeamsDeviceSettings¶added inv0.31.0
type TeamsDeviceSettings struct {GatewayProxyEnabledbool `json:"gateway_proxy_enabled"`GatewayProxyUDPEnabledbool `json:"gateway_udp_proxy_enabled"`RootCertificateInstallationEnabledbool `json:"root_certificate_installation_enabled"`UseZTVirtualIP *bool `json:"use_zt_virtual_ip"`DisableForTimeint32 `json:"disable_for_time"`}
typeTeamsDeviceSettingsResponse¶added inv0.31.0
type TeamsDeviceSettingsResponse struct {ResponseResultTeamsDeviceSettings `json:"result"`}
typeTeamsDevicesList¶added inv0.32.0
type TeamsDevicesList struct {ResponseResult []TeamsDeviceListItem `json:"result"`}
typeTeamsDlpPayloadLogSettings¶added inv0.62.0
type TeamsDlpPayloadLogSettings struct {Enabledbool `json:"enabled"`}
typeTeamsDnsResolverAddress¶added inv0.81.0
typeTeamsDnsResolverAddressV4¶added inv0.81.0
type TeamsDnsResolverAddressV4 struct {TeamsDnsResolverAddress}
typeTeamsDnsResolverAddressV6¶added inv0.81.0
type TeamsDnsResolverAddressV6 struct {TeamsDnsResolverAddress}
typeTeamsDnsResolverSettings¶added inv0.81.0
type TeamsDnsResolverSettings struct {V4Resolvers []TeamsDnsResolverAddressV4 `json:"ipv4,omitempty"`V6Resolvers []TeamsDnsResolverAddressV6 `json:"ipv6,omitempty"`}
typeTeamsExtendedEmailMatching¶added inv0.87.0
type TeamsExtendedEmailMatching struct {Enabled *bool `json:"enabled,omitempty"`}
typeTeamsFilterType¶added inv0.21.0
type TeamsFilterTypestring
const (HttpFilterTeamsFilterType = "http"DnsFilterTeamsFilterType = "dns"L4FilterTeamsFilterType = "l4"EgressFilterTeamsFilterType = "egress"DnsResolverFilterTeamsFilterType = "dns_resolver")
typeTeamsForensicCopySettings¶added inv0.112.0
type TeamsForensicCopySettings struct {Enabledbool `json:"enabled"`}
typeTeamsGatewayAction¶added inv0.21.0
type TeamsGatewayActionstring
const (AllowTeamsGatewayAction = "allow"// dns|http|l4BlockTeamsGatewayAction = "block"// dns|http|l4SafeSearchTeamsGatewayAction = "safesearch"// dnsYTRestrictedTeamsGatewayAction = "ytrestricted"// dnsOnTeamsGatewayAction = "on"// httpOffTeamsGatewayAction = "off"// httpScanTeamsGatewayAction = "scan"// httpNoScanTeamsGatewayAction = "noscan"// httpIsolateTeamsGatewayAction = "isolate"// httpNoIsolateTeamsGatewayAction = "noisolate"// httpOverrideTeamsGatewayAction = "override"// httpL4OverrideTeamsGatewayAction = "l4_override"// l4EgressTeamsGatewayAction = "egress"// egressAuditSSHTeamsGatewayAction = "audit_ssh"// l4ResolveTeamsGatewayAction = "resolve"// resolve)
typeTeamsGatewayUntrustedCertAction¶added inv0.62.0
type TeamsGatewayUntrustedCertActionstring
const (UntrustedCertPassthroughTeamsGatewayUntrustedCertAction = "pass_through"UntrustedCertBlockTeamsGatewayUntrustedCertAction = "block"UntrustedCertErrorTeamsGatewayUntrustedCertAction = "error")
typeTeamsInspectionMode¶added inv0.80.0
type TeamsInspectionMode =string
const (TeamsShallowInspectionModeTeamsInspectionMode = "shallow"TeamsDeepInspectionModeTeamsInspectionMode = "deep")
typeTeamsL4OverrideSettings¶added inv0.21.0
TeamsL4OverrideSettings used in l4 filter type rule with action set to override.
typeTeamsList¶added inv0.17.0
type TeamsList struct {IDstring `json:"id,omitempty"`Namestring `json:"name"`Typestring `json:"type"`Descriptionstring `json:"description,omitempty"`Items []TeamsListItem `json:"items,omitempty"`Countuint64 `json:"count,omitempty"`CreatedAt *time.Time `json:"created_at,omitempty"`UpdatedAt *time.Time `json:"updated_at,omitempty"`}
TeamsList represents a Teams List.
typeTeamsListDetailResponse¶added inv0.17.0
TeamsListDetailResponse is the API response, containing a singleteams list.
typeTeamsListItem¶added inv0.17.0
type TeamsListItem struct {Valuestring `json:"value"`Descriptionstring `json:"description,omitempty"`CreatedAt *time.Time `json:"created_at,omitempty"`}
TeamsListItem represents a single list item.
typeTeamsListItemsListResponse¶added inv0.17.0
type TeamsListItemsListResponse struct {Result []TeamsListItem `json:"result"`ResponseResultInfo `json:"result_info"`}
TeamsListItemsListResponse represents the response from the listteams list items endpoint.
typeTeamsListListResponse¶added inv0.17.0
type TeamsListListResponse struct {Result []TeamsList `json:"result"`ResponseResultInfo `json:"result_info"`}
TeamsListListResponse represents the response from the listteams lists endpoint.
typeTeamsLocation¶added inv0.21.0
type TeamsLocation struct {IDstring `json:"id"`Namestring `json:"name"`Networks []TeamsLocationNetwork `json:"networks"`Ipstring `json:"ip,omitempty"`Subdomainstring `json:"doh_subdomain"`AnonymizedLogsEnabledbool `json:"anonymized_logs_enabled"`IPv4Destinationstring `json:"ipv4_destination,omitempty"`IPv4DestinationBackupstring `json:"ipv4_destination_backup,omitempty"`DNSDestinationIPsID *string `json:"dns_destination_ips_id,omitempty"`DNSDestinationIPv6BlockID *string `json:"dns_destination_ipv6_block_id,omitempty"`ClientDefaultbool `json:"client_default"`ECSSupport *bool `json:"ecs_support,omitempty"`Endpoints *TeamsLocationEndpoints `json:"endpoints,omitempty"`CreatedAt *time.Time `json:"created_at,omitempty"`UpdatedAt *time.Time `json:"updated_at,omitempty"`}
typeTeamsLocationDetailResponse¶added inv0.21.0
type TeamsLocationDetailResponse struct {ResponseResultTeamsLocation `json:"result"`}
typeTeamsLocationDohEndpointFields¶added inv0.112.0
type TeamsLocationDohEndpointFields struct {RequireTokenbool `json:"require_token"`TeamsLocationEndpointFields}
typeTeamsLocationDotEndpointFields¶added inv0.112.0
type TeamsLocationDotEndpointFields struct {RequireTokenbool `json:"require_token"`TeamsLocationEndpointFields}
typeTeamsLocationEndpointFields¶added inv0.112.0
type TeamsLocationEndpointFields struct {Enabledbool `json:"enabled"`AuthenticationEnabledUIHelperbool `json:"authentication_enabled,omitempty"`Networks []TeamsLocationNetwork `json:"networks,omitempty"`}
typeTeamsLocationEndpoints¶added inv0.112.0
type TeamsLocationEndpoints struct {IPv4EndpointTeamsLocationIPv4EndpointFields `json:"ipv4"`IPv6EndpointTeamsLocationIPv6EndpointFields `json:"ipv6"`DotEndpointTeamsLocationDotEndpointFields `json:"dot"`DohEndpointTeamsLocationDohEndpointFields `json:"doh"`}
typeTeamsLocationIPv4EndpointFields¶added inv0.112.0
typeTeamsLocationIPv6EndpointFields¶added inv0.112.0
type TeamsLocationIPv6EndpointFields struct {TeamsLocationEndpointFields}
typeTeamsLocationNetwork¶added inv0.21.0
typeTeamsLocationsListResponse¶added inv0.21.0
type TeamsLocationsListResponse struct {ResponseResultInfo `json:"result_info"`Result []TeamsLocation `json:"result"`}
typeTeamsLoggingSettings¶added inv0.30.0
type TeamsLoggingSettings struct {LoggingSettingsByRuleType map[TeamsRuleType]TeamsAccountLoggingConfiguration `json:"settings_by_rule_type"`RedactPii *bool `json:"redact_pii,omitempty"`}
typeTeamsLoggingSettingsResponse¶added inv0.30.0
type TeamsLoggingSettingsResponse struct {ResponseResultTeamsLoggingSettings `json:"result"`}
typeTeamsNotificationSettings¶added inv0.84.0
typeTeamsProtocolDetection¶added inv0.74.0
type TeamsProtocolDetection struct {Enabledbool `json:"enabled"`}
typeTeamsProxyEndpoint¶added inv0.35.0
typeTeamsProxyEndpointDetailResponse¶added inv0.35.0
type TeamsProxyEndpointDetailResponse struct {ResponseResultTeamsProxyEndpoint `json:"result"`}
typeTeamsProxyEndpointListResponse¶added inv0.35.0
type TeamsProxyEndpointListResponse struct {ResponseResultInfo `json:"result_info"`Result []TeamsProxyEndpoint `json:"result"`}
typeTeamsQuarantine¶added inv0.112.0
type TeamsQuarantine struct {FileTypes []FileType `json:"file_types"`}
typeTeamsResolveDnsInternallyFallbackStrategy¶added inv0.114.0
type TeamsResolveDnsInternallyFallbackStrategystring
const (NoneTeamsResolveDnsInternallyFallbackStrategy = "none"PublicDnsTeamsResolveDnsInternallyFallbackStrategy = "public_dns")
typeTeamsResolveDnsInternallySettings¶added inv0.114.0
type TeamsResolveDnsInternallySettings struct {ViewIDstring `json:"view_id"`FallbackTeamsResolveDnsInternallyFallbackStrategy `json:"fallback"`}
typeTeamsRule¶added inv0.21.0
type TeamsRule struct {IDstring `json:"id,omitempty"`CreatedAt *time.Time `json:"created_at,omitempty"`UpdatedAt *time.Time `json:"updated_at,omitempty"`DeletedAt *time.Time `json:"deleted_at,omitempty"`Namestring `json:"name"`Descriptionstring `json:"description"`Precedenceuint64 `json:"precedence"`Enabledbool `json:"enabled"`ActionTeamsGatewayAction `json:"action"`Filters []TeamsFilterType `json:"filters"`Trafficstring `json:"traffic"`Identitystring `json:"identity"`DevicePosturestring `json:"device_posture"`Versionuint64 `json:"version"`RuleSettingsTeamsRuleSettings `json:"rule_settings,omitempty"`Schedule *TeamsRuleSchedule `json:"schedule,omitempty"`// only available at DNS rulesExpiration *TeamsRuleExpiration `json:"expiration,omitempty"`// only available at DNS rules}
TeamsRule represents an Teams wirefilter rule.
typeTeamsRuleExpiration¶added inv0.112.0
typeTeamsRulePatchRequest¶added inv0.21.0
type TeamsRulePatchRequest struct {IDstring `json:"id"`Namestring `json:"name"`Descriptionstring `json:"description"`Precedenceuint64 `json:"precedence"`Enabledbool `json:"enabled"`ActionTeamsGatewayAction `json:"action"`RuleSettingsTeamsRuleSettings `json:"rule_settings,omitempty"`}
TeamsRulePatchRequest is used to patch an existing rule.
typeTeamsRuleResponse¶added inv0.21.0
TeamsRuleResponse is the API response, containing a single rule.
typeTeamsRuleSchedule¶added inv0.112.0
type TeamsRuleSchedule struct {MondayTeamsScheduleTimes `json:"mon,omitempty"`TuesdayTeamsScheduleTimes `json:"tue,omitempty"`WednesdayTeamsScheduleTimes `json:"wed,omitempty"`ThursdayTeamsScheduleTimes `json:"thu,omitempty"`FridayTeamsScheduleTimes `json:"fri,omitempty"`SaturdayTeamsScheduleTimes `json:"sat,omitempty"`SundayTeamsScheduleTimes `json:"sun,omitempty"`TimeZonestring `json:"time_zone,omitempty"`// default to user TZ based on the user IP location, fall backs to colo TZ}
typeTeamsRuleSettings¶added inv0.21.0
type TeamsRuleSettings struct {// list of ipv4 or ipv6 ips to override with, when action is set to dns overrideOverrideIPs []string `json:"override_ips"`// show this string at block page caused by this ruleBlockReasonstring `json:"block_reason"`// host name to override with when action is set to dns override. Can not be used with OverrideIPsOverrideHoststring `json:"override_host"`// settings for browser isolation actionsBISOAdminControls *TeamsBISOAdminControlSettings `json:"biso_admin_controls"`// settings for l4(network) level overridesL4Override *TeamsL4OverrideSettings `json:"l4override"`// settings for adding headers to http requestsAddHeadershttp.Header `json:"add_headers"`// settings for session check in allow actionCheckSession *TeamsCheckSessionSettings `json:"check_session"`// Enable block page on rules with action blockBlockPageEnabledbool `json:"block_page_enabled"`// whether to disable dnssec validation for allow actionInsecureDisableDNSSECValidationbool `json:"insecure_disable_dnssec_validation"`// settings for rules with egress actionEgressSettings *EgressSettings `json:"egress"`// DLP payload logging configurationPayloadLog *TeamsDlpPayloadLogSettings `json:"payload_log"`//AuditSsh SettingsAuditSSH *AuditSSHRuleSettings `json:"audit_ssh"`// Turns on ip category based filter on dns if the rule contains dns category checksIPCategoriesbool `json:"ip_categories"`// Turns on for explicitly ignoring cname domain category matchesIgnoreCNAMECategoryMatches *bool `json:"ignore_cname_category_matches"`// Allow parent MSP accounts to enable bypass their children's rules. Do not set them for non MSP accounts.AllowChildBypass *bool `json:"allow_child_bypass,omitempty"`// Allow child MSP accounts to bypass their parent's rules. Do not set them for non MSP accounts.BypassParentRule *bool `json:"bypass_parent_rule,omitempty"`// Action taken when an untrusted origin certificate error occurs in a http allow ruleUntrustedCertSettings *UntrustedCertSettings `json:"untrusted_cert"`// Specifies that a resolver policy should use Cloudflare's DNS Resolver.ResolveDnsThroughCloudflare *bool `json:"resolve_dns_through_cloudflare,omitempty"`// Resolver policy settings.DnsResolverSettings *TeamsDnsResolverSettings `json:"dns_resolvers,omitempty"`ResolveDnsInternallySettings *TeamsResolveDnsInternallySettings `json:"resolve_dns_internally,omitempty"`NotificationSettings *TeamsNotificationSettings `json:"notification_settings"`Quarantine *TeamsQuarantine `json:"quarantine,omitempty"`ForensicCopySettings *TeamsForensicCopySettings `json:"forensic_copy,omitempty"`}
typeTeamsRuleType¶added inv0.30.0
type TeamsRuleType =string
const (TeamsHttpRuleTypeTeamsRuleType = "http"TeamsDnsRuleTypeTeamsRuleType = "dns"TeamsL4RuleTypeTeamsRuleType = "l4")
typeTeamsRulesResponse¶added inv0.21.0
TeamsRuleResponse is the API response, containing an array of rules.
typeTeamsSandboxAccountSetting¶added inv0.112.0
typeTeamsTLSDecrypt¶added inv0.21.0
type TeamsTLSDecrypt struct {Enabledbool `json:"enabled"`}
typeTeamsTeamsBISOAdminControlSettingsValue¶added inv0.115.0
type TeamsTeamsBISOAdminControlSettingsValuestring
const (TeamsBISOAdminControlEnabledTeamsTeamsBISOAdminControlSettingsValue = "enabled"TeamsBISOAdminControlDisabledTeamsTeamsBISOAdminControlSettingsValue = "disabled"TeamsBISOAdminControlRemoteOnlyTeamsTeamsBISOAdminControlSettingsValue = "remote_only")
typeTieredCache¶added inv0.57.1
type TieredCache struct {TypeTieredCacheTypeLastModifiedtime.Time}
typeTieredCacheType¶added inv0.57.1
type TieredCacheTypeint
const (TieredCacheOffTieredCacheType = 0TieredCacheGenericTieredCacheType = 1TieredCacheSmartTieredCacheType = 2)
func (TieredCacheType)String¶added inv0.57.1
func (eTieredCacheType) String()string
typeTimeRange¶added inv0.40.0
type TimeRange struct {Sincestring `json:"since,omitempty" url:"since,omitempty"`Beforestring `json:"before,omitempty" url:"before,omitempty"`}
TimeRange is an object for filtering the alert history based on timestamp.
typeTotalTLSResponse¶added inv0.53.0
typeTunnel¶added inv0.39.0
type Tunnel struct {IDstring `json:"id,omitempty"`Namestring `json:"name,omitempty"`Secretstring `json:"tunnel_secret,omitempty"`CreatedAt *time.Time `json:"created_at,omitempty"`DeletedAt *time.Time `json:"deleted_at,omitempty"`Connections []TunnelConnection `json:"connections,omitempty"`ConnsActiveAt *time.Time `json:"conns_active_at,omitempty"`ConnInactiveAt *time.Time `json:"conns_inactive_at,omitempty"`TunnelTypestring `json:"tun_type,omitempty"`Statusstring `json:"status,omitempty"`RemoteConfigbool `json:"remote_config,omitempty"`}
Tunnel is the struct definition of a tunnel.
typeTunnelConfiguration¶added inv0.43.0
type TunnelConfiguration struct {Ingress []UnvalidatedIngressRule `json:"ingress,omitempty"`WarpRouting *WarpRoutingConfig `json:"warp-routing,omitempty"`OriginRequestOriginRequestConfig `json:"originRequest,omitempty"`}
typeTunnelConfigurationParams¶added inv0.43.0
type TunnelConfigurationParams struct {TunnelIDstring `json:"-"`ConfigTunnelConfiguration `json:"config,omitempty"`}
typeTunnelConfigurationResponse¶added inv0.43.0
type TunnelConfigurationResponse struct {ResultTunnelConfigurationResult `json:"result"`Response}
TunnelConfigurationResponse is used for representing the API response payloadfor a single tunnel.
typeTunnelConfigurationResult¶added inv0.43.0
type TunnelConfigurationResult struct {TunnelIDstring `json:"tunnel_id,omitempty"`ConfigTunnelConfiguration `json:"config,omitempty"`Versionint `json:"version,omitempty"`}
typeTunnelConnection¶added inv0.39.0
type TunnelConnection struct {ColoNamestring `json:"colo_name"`IDstring `json:"id"`IsPendingReconnectbool `json:"is_pending_reconnect"`ClientIDstring `json:"client_id"`ClientVersionstring `json:"client_version"`OpenedAtstring `json:"opened_at"`OriginIPstring `json:"origin_ip"`}
TunnelConnection represents the connections associated with a tunnel.
typeTunnelConnectionResponse¶added inv0.45.0
type TunnelConnectionResponse struct {Result []Connection `json:"result"`Response}
TunnelConnectionResponse is used for representing the API response payload forconnections of a single tunnel.
typeTunnelCreateParams¶added inv0.39.0
typeTunnelDetailResponse¶added inv0.39.0
TunnelDetailResponse is used for representing the API response payload fora single tunnel.
typeTunnelDuration¶added inv0.70.0
A TunnelDuration is a Duration that has custom serialization for JSON.JSON in Javascript assumes that int fields are 32 bits and Duration fieldsare deserialized assuming that numbers are in nanoseconds, which in 32bitintegers limits to just 2 seconds. This type assumes that whenserializing/deserializing from JSON, that the number is in seconds, while itmaintains the YAML serde assumptions.
func (TunnelDuration)MarshalJSON¶added inv0.70.0
func (sTunnelDuration) MarshalJSON() ([]byte,error)
func (*TunnelDuration)UnmarshalJSON¶added inv0.70.0
func (s *TunnelDuration) UnmarshalJSON(data []byte)error
typeTunnelListParams¶added inv0.39.0
type TunnelListParams struct {Namestring `url:"name,omitempty"`UUIDstring `url:"uuid,omitempty"`// the tunnel IDIsDeleted *bool `url:"is_deleted,omitempty"`ExistedAt *time.Time `url:"existed_at,omitempty"`IncludePrefixstring `url:"include_prefix,omitempty"`ExcludePrefixstring `url:"exclude_prefix,omitempty"`ResultInfo}
typeTunnelRoute¶added inv0.36.0
type TunnelRoute struct {Networkstring `json:"network"`TunnelIDstring `json:"tunnel_id"`TunnelNamestring `json:"tunnel_name"`Commentstring `json:"comment"`CreatedAt *time.Time `json:"created_at"`DeletedAt *time.Time `json:"deleted_at"`VirtualNetworkIDstring `json:"virtual_network_id"`}
TunnelRoute is the full record for a route.
typeTunnelRoutesCreateParams¶added inv0.36.0
typeTunnelRoutesDeleteParams¶added inv0.36.0
typeTunnelRoutesForIPParams¶added inv0.36.0
typeTunnelRoutesListParams¶added inv0.36.0
type TunnelRoutesListParams struct {TunnelIDstring `url:"tunnel_id,omitempty"`Commentstring `url:"comment,omitempty"`IsDeleted *bool `url:"is_deleted,omitempty"`NetworkSubsetstring `url:"network_subset,omitempty"`NetworkSupersetstring `url:"network_superset,omitempty"`ExistedAt *time.Time `url:"existed_at,omitempty"`VirtualNetworkIDstring `url:"virtual_network_id,omitempty"`PaginationOptions}
typeTunnelRoutesUpdateParams¶added inv0.36.0
typeTunnelTokenResponse¶added inv0.40.0
TunnelTokenResponse is the API response for a tunnel token.
typeTunnelUpdateParams¶added inv0.39.0
typeTunnelVirtualNetwork¶added inv0.41.0
type TunnelVirtualNetwork struct {IDstring `json:"id"`Namestring `json:"name"`IsDefaultNetworkbool `json:"is_default_network"`Commentstring `json:"comment"`CreatedAt *time.Time `json:"created_at"`DeletedAt *time.Time `json:"deleted_at"`}
TunnelVirtualNetwork is segregation of Tunnel IP Routes via VirtualizedNetworks to handle overlapping private IPs in your origins.
typeTunnelVirtualNetworkCreateParams¶added inv0.41.0
typeTunnelVirtualNetworkUpdateParams¶added inv0.41.0
typeTunnelVirtualNetworksListParams¶added inv0.41.0
type TunnelVirtualNetworksListParams struct {IDstring `url:"id,omitempty"`Namestring `url:"name,omitempty"`IsDefault *bool `url:"is_default,omitempty"`IsDeleted *bool `url:"is_deleted,omitempty"`PaginationOptions}
typeTunnelsDetailResponse¶added inv0.39.0
type TunnelsDetailResponse struct {Result []Tunnel `json:"result"`ResponseResultInfo `json:"result_info"`}
TunnelsDetailResponse is used for representing the API response payload formultiple tunnels.
typeTurnstileWidget¶added inv0.66.0
type TurnstileWidget struct {SiteKeystring `json:"sitekey,omitempty"`Secretstring `json:"secret,omitempty"`CreatedOn *time.Time `json:"created_on,omitempty"`ModifiedOn *time.Time `json:"modified_on,omitempty"`Namestring `json:"name,omitempty"`Domains []string `json:"domains,omitempty"`Modestring `json:"mode,omitempty"`BotFightModebool `json:"bot_fight_mode,omitempty"`Regionstring `json:"region,omitempty"`OffLabelbool `json:"offlabel,omitempty"`}
typeTurnstileWidgetResponse¶added inv0.66.0
type TurnstileWidgetResponse struct {ResponseResultTurnstileWidget `json:"result"`}
typeTusProtocolVersion¶added inv0.77.0
type TusProtocolVersionstring
const (TusProtocolVersion1_0_0TusProtocolVersion = "1.0.0")
typeURLNormalizationSettings¶added inv0.49.0
typeURLNormalizationSettingsResponse¶added inv0.49.0
type URLNormalizationSettingsResponse struct {ResultURLNormalizationSettings `json:"result"`Response}
typeURLNormalizationSettingsUpdateParams¶added inv0.49.0
typeUniversalSSLCertificatePackValidationMethodSetting¶added inv0.20.0
type UniversalSSLCertificatePackValidationMethodSetting struct {ValidationMethodstring `json:"validation_method"`}
typeUniversalSSLSetting¶added inv0.9.0
type UniversalSSLSetting struct {Enabledbool `json:"enabled"`}
UniversalSSLSetting represents a universal ssl setting's properties.
typeUniversalSSLVerificationDetails¶added inv0.10.0
type UniversalSSLVerificationDetails struct {CertificateStatusstring `json:"certificate_status"`VerificationTypestring `json:"verification_type"`ValidationMethodstring `json:"validation_method"`CertPackUUIDstring `json:"cert_pack_uuid"`VerificationStatusbool `json:"verification_status"`BrandCheckbool `json:"brand_check"`VerificationInfo []SSLValidationRecord `json:"verification_info"`}
UniversalSSLVerificationDetails represents a universal ssl verification's properties.
typeUnsafeBinding¶added inv0.74.0
type UnsafeBinding map[string]interface{}
UnsafeBinding is for experimental or deprecated bindings, and allows specifying any binding type or property.
Example¶
pretty := func(meta workerBindingMeta) string {buf := bytes.NewBufferString("")encoder := json.NewEncoder(buf)encoder.SetIndent("", " ")if err := encoder.Encode(meta); err != nil {fmt.Println("error:", err)}return buf.String()}binding_a := WorkerServiceBinding{Service: "foo",}meta_a, _, _ := binding_a.serialize("my_binding")meta_a_json := pretty(meta_a)fmt.Println(meta_a_json)binding_b := UnsafeBinding{"type": "service","service": "foo",}meta_b, _, _ := binding_b.serialize("my_binding")meta_b_json := pretty(meta_b)fmt.Println(meta_b_json)fmt.Println(meta_a_json == meta_b_json)
Output:{ "name": "my_binding", "service": "foo", "type": "service"}{ "name": "my_binding", "service": "foo", "type": "service"}true
func (UnsafeBinding)Type¶added inv0.74.0
func (bUnsafeBinding) Type()WorkerBindingType
Type returns the type of the binding.
typeUntrustedCertSettings¶added inv0.62.0
type UntrustedCertSettings struct {ActionTeamsGatewayUntrustedCertAction `json:"action"`}
typeUnvalidatedIngressRule¶added inv0.43.0
type UnvalidatedIngressRule struct {Hostnamestring `json:"hostname,omitempty"`Pathstring `json:"path,omitempty"`Servicestring `json:"service,omitempty"`OriginRequest *OriginRequestConfig `json:"originRequest,omitempty"`}
typeUpdateAPIShieldDiscoveryOperation¶added inv0.79.0
type UpdateAPIShieldDiscoveryOperation struct {// State is the state to set on the operationStateAPIShieldDiscoveryState `json:"state" url:"-"`}
UpdateAPIShieldDiscoveryOperation represents the state to set on a discovery operation.
typeUpdateAPIShieldDiscoveryOperationParams¶added inv0.79.0
type UpdateAPIShieldDiscoveryOperationParams struct {// OperationID is the ID, formatted as UUID, of the operation to be updatedOperationIDstring `json:"-" url:"-"`StateAPIShieldDiscoveryState `json:"state" url:"-"`}
UpdateAPIShieldDiscoveryOperationParams represents the parameters to pass to patch a discovery operation
API documentation:https://developers.cloudflare.com/api/resources/api_gateway/subresources/discovery/subresources/operations/methods/edit/
typeUpdateAPIShieldDiscoveryOperationsParams¶added inv0.79.0
type UpdateAPIShieldDiscoveryOperationsParams map[string]UpdateAPIShieldDiscoveryOperation
UpdateAPIShieldDiscoveryOperationsParams maps discovery operation IDs to PatchAPIShieldDiscoveryOperation structs
Example:
UpdateAPIShieldDiscoveryOperations{"99522293-a505-45e5-bbad-bbc339f5dc40": PatchAPIShieldDiscoveryOperation{ State: "review" },}
API documentation:https://developers.cloudflare.com/api/resources/api_gateway/subresources/discovery/subresources/operations/methods/bulk_edit/
typeUpdateAPIShieldOperationSchemaValidationSettings¶added inv0.80.0
type UpdateAPIShieldOperationSchemaValidationSettings map[string]APIShieldOperationSchemaValidationSettings
UpdateAPIShieldOperationSchemaValidationSettings maps operation IDs to APIShieldOperationSchemaValidationSettings
This can be used to bulk update operations in one call¶
Example:
UpdateAPIShieldOperationSchemaValidationSettings{"99522293-a505-45e5-bbad-bbc339f5dc40": APIShieldOperationSchemaValidationSettings{ MitigationAction: nil },}
API documentation:https://developers.cloudflare.com/api/resources/api_gateway/subresources/operations/subresources/schema_validation/methods/edit/
typeUpdateAPIShieldOperationSchemaValidationSettingsResponse¶added inv0.80.0
type UpdateAPIShieldOperationSchemaValidationSettingsResponse struct {ResultUpdateAPIShieldOperationSchemaValidationSettings `json:"result"`Response}
UpdateAPIShieldOperationSchemaValidationSettingsResponse represents the response from the PATCH api_gateway/operations/schema_validation endpoint.
typeUpdateAPIShieldParams¶added inv0.49.0
type UpdateAPIShieldParams struct {AuthIdCharacteristics []AuthIdCharacteristics `json:"auth_id_characteristics"`}
typeUpdateAPIShieldSchemaParams¶added inv0.79.0
type UpdateAPIShieldSchemaParams struct {// SchemaID is the schema to be patchedSchemaIDstring `json:"-" url:"-"`// ValidationEnabled controls if schema is used for validationValidationEnabled *bool `json:"validation_enabled" url:"-"`}
UpdateAPIShieldSchemaParams represents the parameters to pass to patch certain fields on an existing schema
API documentation:https://developers.cloudflare.com/api/resources/api_gateway/subresources/user_schemas/methods/edit/
typeUpdateAPIShieldSchemaValidationSettingsParams¶added inv0.80.0
type UpdateAPIShieldSchemaValidationSettingsParams struct {// DefaultMitigationAction is the mitigation to apply when there is no operation-level// mitigation action defined//// passing a `nil` value will have no effect on this settingDefaultMitigationAction *string `json:"validation_default_mitigation_action" url:"-"`// OverrideMitigationAction when set, will apply to all requests regardless of// zone-level/operation-level setting//// passing a `nil` value will have no effect on this settingOverrideMitigationAction *string `json:"validation_override_mitigation_action" url:"-"`}
UpdateAPIShieldSchemaValidationSettingsParams represents the parameters to pass to update certain fieldson schema validation settings on the zone
API documentation:https://developers.cloudflare.com/api/resources/api_gateway/subresources/settings/subresources/schema_validation/methods/edit/
typeUpdateAccessApplicationParams¶added inv0.71.0
type UpdateAccessApplicationParams struct {IDstring `json:"id,omitempty"`AllowedIdps []string `json:"allowed_idps,omitempty"`AppLauncherVisible *bool `json:"app_launcher_visible,omitempty"`AUDstring `json:"aud,omitempty"`AutoRedirectToIdentity *bool `json:"auto_redirect_to_identity,omitempty"`CorsHeaders *AccessApplicationCorsHeaders `json:"cors_headers,omitempty"`CustomDenyMessagestring `json:"custom_deny_message,omitempty"`CustomDenyURLstring `json:"custom_deny_url,omitempty"`CustomNonIdentityDenyURLstring `json:"custom_non_identity_deny_url,omitempty"`Domainstring `json:"domain"`DomainTypeAccessDestinationType `json:"domain_type,omitempty"`EnableBindingCookie *bool `json:"enable_binding_cookie,omitempty"`GatewayRules []AccessApplicationGatewayRule `json:"gateway_rules,omitempty"`HttpOnlyCookieAttribute *bool `json:"http_only_cookie_attribute,omitempty"`LogoURLstring `json:"logo_url,omitempty"`Namestring `json:"name"`PathCookieAttribute *bool `json:"path_cookie_attribute,omitempty"`PrivateAddressstring `json:"private_address"`SaasApplication *SaasApplication `json:"saas_app,omitempty"`SameSiteCookieAttributestring `json:"same_site_cookie_attribute,omitempty"`Destinations []AccessDestination `json:"destinations"`ServiceAuth401Redirect *bool `json:"service_auth_401_redirect,omitempty"`SessionDurationstring `json:"session_duration,omitempty"`SkipInterstitial *bool `json:"skip_interstitial,omitempty"`TypeAccessApplicationType `json:"type,omitempty"`AllowAuthenticateViaWarp *bool `json:"allow_authenticate_via_warp,omitempty"`OptionsPreflightBypass *bool `json:"options_preflight_bypass,omitempty"`CustomPages []string `json:"custom_pages,omitempty"`Tags []string `json:"tags,omitempty"`SCIMConfig *AccessApplicationSCIMConfig `json:"scim_config,omitempty"`TargetContexts *[]AccessInfrastructureTargetContext `json:"target_criteria,omitempty"`// List of policy ids to link to this application in ascending order of precedence.// Can reference reusable policies and policies specific to this application.// If this field is not provided, the existing policies will not be modified.Policies *[]string `json:"policies,omitempty"`AccessAppLauncherCustomization}
typeUpdateAccessCustomPageParams¶added inv0.74.0
type UpdateAccessCustomPageParams struct {CustomHTMLstring `json:"custom_html,omitempty"`Namestring `json:"name,omitempty"`TypeAccessCustomPageType `json:"type,omitempty"`UIDstring `json:"uid,omitempty"`}
typeUpdateAccessGroupParams¶added inv0.71.0
type UpdateAccessGroupParams struct {IDstring `json:"id,omitempty"`Namestring `json:"name"`// The include group works like an OR logical operator. The user must// satisfy one of the rules.Include []interface{} `json:"include"`// The exclude group works like a NOT logical operator. The user must// not satisfy all the rules in exclude.Exclude []interface{} `json:"exclude"`// The require group works like a AND logical operator. The user must// satisfy all the rules in require.Require []interface{} `json:"require"`}
typeUpdateAccessIdentityProviderParams¶added inv0.71.0
type UpdateAccessIdentityProviderParams struct {IDstring `json:"-"`Namestring `json:"name"`Typestring `json:"type"`ConfigAccessIdentityProviderConfiguration `json:"config"`ScimConfigAccessIdentityProviderScimConfiguration `json:"scim_config"`}
typeUpdateAccessMutualTLSCertificateParams¶added inv0.71.0
type UpdateAccessMutualTLSCertificateParams struct {IDstring `json:"-"`ExpiresOntime.Time `json:"expires_on,omitempty"`Namestring `json:"name,omitempty"`Fingerprintstring `json:"fingerprint,omitempty"`Certificatestring `json:"certificate,omitempty"`AssociatedHostnames []string `json:"associated_hostnames,omitempty"`}
typeUpdateAccessMutualTLSHostnameSettingsParams¶added inv0.90.0
type UpdateAccessMutualTLSHostnameSettingsParams struct {Settings []AccessMutualTLSHostnameSettings `json:"settings,omitempty"`}
typeUpdateAccessOrganizationParams¶added inv0.71.0
type UpdateAccessOrganizationParams struct {Namestring `json:"name"`AuthDomainstring `json:"auth_domain"`LoginDesignAccessOrganizationLoginDesign `json:"login_design"`IsUIReadOnly *bool `json:"is_ui_read_only,omitempty"`UIReadOnlyToggleReasonstring `json:"ui_read_only_toggle_reason,omitempty"`UserSeatExpirationInactiveTimestring `json:"user_seat_expiration_inactive_time,omitempty"`AutoRedirectToIdentity *bool `json:"auto_redirect_to_identity,omitempty"`SessionDuration *string `json:"session_duration,omitempty"`CustomPagesAccessOrganizationCustomPages `json:"custom_pages,omitempty"`WarpAuthSessionDuration *string `json:"warp_auth_session_duration,omitempty"`AllowAuthenticateViaWarp *bool `json:"allow_authenticate_via_warp,omitempty"`}
typeUpdateAccessPolicyParams¶added inv0.72.0
type UpdateAccessPolicyParams struct {// ApplicationID is the application ID that owns the existing policy.// Pass an empty value if the existing policy is reusable.ApplicationIDstring `json:"-"`PolicyIDstring `json:"-"`// Precedence is the order in which the policy is executed in an Access application.// As a general rule, lower numbers take precedence over higher numbers.// This field is ignored when updating a reusable policy.Precedenceint `json:"precedence"`Decisionstring `json:"decision"`Namestring `json:"name"`IsolationRequired *bool `json:"isolation_required,omitempty"`SessionDuration *string `json:"session_duration,omitempty"`PurposeJustificationRequired *bool `json:"purpose_justification_required,omitempty"`PurposeJustificationPrompt *string `json:"purpose_justification_prompt,omitempty"`ApprovalRequired *bool `json:"approval_required,omitempty"`ApprovalGroups []AccessApprovalGroup `json:"approval_groups"`InfrastructureConnectionRules *AccessInfrastructureConnectionRules `json:"connection_rules,omitempty"`// The include policy works like an OR logical operator. The user must// satisfy one of the rules.Include []interface{} `json:"include"`// The exclude policy works like a NOT logical operator. The user must// not satisfy all the rules in exclude.Exclude []interface{} `json:"exclude"`// The require policy works like a AND logical operator. The user must// satisfy all the rules in require.Require []interface{} `json:"require"`}
typeUpdateAccessServiceTokenParams¶added inv0.71.0
typeUpdateAccessUserSeatParams¶added inv0.81.0
type UpdateAccessUserSeatParams struct {SeatUIDstring `json:"seat_uid,omitempty"`AccessSeat *bool `json:"access_seat"`GatewaySeat *bool `json:"gateway_seat"`}
UpdateAccessUserSeatParams represents the update payload for access seats.
typeUpdateAccessUserSeatResponse¶added inv0.81.0
type UpdateAccessUserSeatResponse struct {ResponseResult []AccessUpdateAccessUserSeatResult `json:"result"`ResultInfo `json:"result_info"`}
AccessUserSeatResponse represents the response from the access user seat endpoints.
typeUpdateAccessUsersSeatsParams¶added inv0.87.0
type UpdateAccessUsersSeatsParams []struct {SeatUIDstring `json:"seat_uid,omitempty"`AccessSeat *bool `json:"access_seat"`GatewaySeat *bool `json:"gateway_seat"`}
UpdateAccessUsersSeatsParams represents the update payload for multiple access seats.
typeUpdateAddressMapParams¶added inv0.63.0
type UpdateAddressMapParams struct {IDstring `json:"-"`Description *string `json:"description,omitempty"`Enabled *bool `json:"enabled,omitempty"`DefaultSNI *string `json:"default_sni,omitempty"`}
UpdateAddressMapParams contains information about an address map to be updated.
typeUpdateAuditSSHSettingsParams¶added inv0.79.0
type UpdateAuditSSHSettingsParams struct {PublicKeystring `json:"public_key"`}
typeUpdateBotManagementParams¶added inv0.75.0
type UpdateBotManagementParams struct {EnableJS *bool `json:"enable_js,omitempty"`FightMode *bool `json:"fight_mode,omitempty"`SBFMDefinitelyAutomated *string `json:"sbfm_definitely_automated,omitempty"`SBFMLikelyAutomated *string `json:"sbfm_likely_automated,omitempty"`SBFMVerifiedBots *string `json:"sbfm_verified_bots,omitempty"`SBFMStaticResourceProtection *bool `json:"sbfm_static_resource_protection,omitempty"`OptimizeWordpress *bool `json:"optimize_wordpress,omitempty"`SuppressSessionScore *bool `json:"suppress_session_score,omitempty"`AutoUpdateModel *bool `json:"auto_update_model,omitempty"`AIBotsProtection *string `json:"ai_bots_protection,omitempty"`}
typeUpdateCacheReserveParams¶added inv0.68.0
type UpdateCacheReserveParams struct {Valuestring `json:"value"`}
typeUpdateCertificateAuthoritiesHostnameAssociationsParams¶added inv0.112.0
type UpdateCertificateAuthoritiesHostnameAssociationsParams struct {Hostnames []HostnameAssociation `json:"hostnames,omitempty"`MTLSCertificateIDstring `json:"mtls_certificate_id,omitempty"`}
typeUpdateCustomNameserverZoneMetadataParams¶added inv0.70.0
typeUpdateDLPDatasetParams¶added inv0.87.0
typeUpdateDLPDatasetResponse¶added inv0.87.0
type UpdateDLPDatasetResponse struct {ResultDLPDataset `json:"result"`Response}
typeUpdateDLPProfileParams¶added inv0.53.0
type UpdateDLPProfileParams struct {ProfileIDstringProfileDLPProfileTypestring}
typeUpdateDNSFirewallClusterParams¶added inv0.70.0
type UpdateDNSFirewallClusterParams struct {ClusterIDstring `json:"-"`Namestring `json:"name"`UpstreamIPs []string `json:"upstream_ips"`DNSFirewallIPs []string `json:"dns_firewall_ips,omitempty"`MinimumCacheTTLuint `json:"minimum_cache_ttl,omitempty"`MaximumCacheTTLuint `json:"maximum_cache_ttl,omitempty"`DeprecateAnyRequestsbool `json:"deprecate_any_requests"`}
typeUpdateDNSRecordParams¶added inv0.58.0
type UpdateDNSRecordParams struct {Typestring `json:"type,omitempty"`Namestring `json:"name,omitempty"`Contentstring `json:"content,omitempty"`Data interface{} `json:"data,omitempty"`// data for: SRV, LOCIDstring `json:"-"`Priority *uint16 `json:"priority,omitempty"`TTLint `json:"ttl,omitempty"`Proxied *bool `json:"proxied,omitempty"`Comment *string `json:"comment,omitempty"`// nil will keep the current comment, while StringPtr("") will empty itTags []string `json:"tags"`SettingsDNSRecordSettings `json:"settings,omitempty"`}
typeUpdateDataLocalizationRegionalHostnameParams¶added inv0.66.0
typeUpdateDefaultDeviceSettingsPolicyParams¶added inv0.81.0
type UpdateDefaultDeviceSettingsPolicyParams struct {DisableAutoFallback *bool `json:"disable_auto_fallback,omitempty"`CaptivePortal *int `json:"captive_portal,omitempty"`AllowModeSwitch *bool `json:"allow_mode_switch,omitempty"`SwitchLocked *bool `json:"switch_locked,omitempty"`AllowUpdates *bool `json:"allow_updates,omitempty"`AutoConnect *int `json:"auto_connect,omitempty"`AllowedToLeave *bool `json:"allowed_to_leave,omitempty"`SupportURL *string `json:"support_url,omitempty"`ServiceModeV2 *ServiceModeV2 `json:"service_mode_v2,omitempty"`Precedence *int `json:"precedence,omitempty"`Name *string `json:"name,omitempty"`Match *string `json:"match,omitempty"`Enabled *bool `json:"enabled,omitempty"`ExcludeOfficeIps *bool `json:"exclude_office_ips"`Description *string `json:"description,omitempty"`LANAllowMinutes *uint `json:"lan_allow_minutes,omitempty"`LANAllowSubnetSize *uint `json:"lan_allow_subnet_size,omitempty"`TunnelProtocol *string `json:"tunnel_protocol,omitempty"`}
typeUpdateDeviceClientCertificatesParams¶added inv0.81.0
type UpdateDeviceClientCertificatesParams struct {Enabled *bool `json:"enabled"`}
typeUpdateDeviceDexTestParams¶added inv0.62.0
typeUpdateDeviceManagedNetworkParams¶added inv0.57.0
typeUpdateDeviceSettingsPolicyParams¶added inv0.81.0
type UpdateDeviceSettingsPolicyParams struct {PolicyID *string `json:"-"`DisableAutoFallback *bool `json:"disable_auto_fallback,omitempty"`CaptivePortal *int `json:"captive_portal,omitempty"`AllowModeSwitch *bool `json:"allow_mode_switch,omitempty"`SwitchLocked *bool `json:"switch_locked,omitempty"`AllowUpdates *bool `json:"allow_updates,omitempty"`AutoConnect *int `json:"auto_connect,omitempty"`AllowedToLeave *bool `json:"allowed_to_leave,omitempty"`SupportURL *string `json:"support_url,omitempty"`ServiceModeV2 *ServiceModeV2 `json:"service_mode_v2,omitempty"`Precedence *int `json:"precedence,omitempty"`Name *string `json:"name,omitempty"`Match *string `json:"match,omitempty"`Enabled *bool `json:"enabled,omitempty"`ExcludeOfficeIps *bool `json:"exclude_office_ips"`Description *string `json:"description,omitempty"`LANAllowMinutes *uint `json:"lan_allow_minutes,omitempty"`LANAllowSubnetSize *uint `json:"lan_allow_subnet_size,omitempty"`TunnelProtocol *string `json:"tunnel_protocol,omitempty"`}
typeUpdateEmailRoutingRuleParameters¶added inv0.47.0
type UpdateEmailRoutingRuleParameters struct {Matchers []EmailRoutingRuleMatcher `json:"matchers,omitempty"`Actions []EmailRoutingRuleAction `json:"actions,omitempty"`Namestring `json:"name,omitempty"`Enabled *bool `json:"enabled,omitempty"`Priorityint `json:"priority,omitempty"`RuleIDstring}
typeUpdateEntrypointRulesetParams¶added inv0.73.0
type UpdateEntrypointRulesetParams struct {Phasestring `json:"-"`Descriptionstring `json:"description,omitempty"`Rules []RulesetRule `json:"rules"`}
typeUpdateHostnameTLSSettingCiphersParams¶added inv0.75.0
UpdateHostnameTLSSettingCiphersParams represents the data related to the per-hostname ciphers tls setting being updated.
typeUpdateHostnameTLSSettingParams¶added inv0.75.0
UpdateHostnameTLSSettingParams represents the data related to the per-hostname tls setting being updated.
typeUpdateHyperdriveConfigParams¶added inv0.88.0
type UpdateHyperdriveConfigParams struct {HyperdriveIDstring `json:"-"`Namestring `json:"name"`OriginHyperdriveConfigOriginWithSecrets `json:"origin"`CachingHyperdriveConfigCaching `json:"caching,omitempty"`}
typeUpdateImageParams¶added inv0.71.0
type UpdateImageParams struct {IDstring `json:"-"`RequireSignedURLsbool `json:"requireSignedURLs"`Metadata map[string]interface{} `json:"metadata,omitempty"`}
UpdateImageParams is the data required for an UpdateImage request.
typeUpdateImagesVariantParams¶added inv0.88.0
type UpdateImagesVariantParams struct {IDstring `json:"-"`NeverRequireSignedURLs *bool `json:"neverRequireSignedURLs,omitempty"`OptionsImagesVariantsOptions `json:"options,omitempty"`}
typeUpdateInfrastructureAccessTargetParams¶added inv0.105.0
type UpdateInfrastructureAccessTargetParams struct {IDstring `json:"-"`ModifyParamsInfrastructureAccessTargetParams `json:"modify_params"`}
typeUpdateLoadBalancerMonitorParams¶added inv0.51.0
type UpdateLoadBalancerMonitorParams struct {LoadBalancerMonitorLoadBalancerMonitor}
typeUpdateLoadBalancerParams¶added inv0.51.0
type UpdateLoadBalancerParams struct {LoadBalancerLoadBalancer}
typeUpdateLoadBalancerPoolParams¶added inv0.51.0
type UpdateLoadBalancerPoolParams struct {LoadBalancerLoadBalancerPool}
typeUpdateLogpushJobParams¶added inv0.72.0
type UpdateLogpushJobParams struct {IDint `json:"-"`Datasetstring `json:"dataset"`Enabledbool `json:"enabled"`Kindstring `json:"kind,omitempty"`Namestring `json:"name"`LogpullOptionsstring `json:"logpull_options,omitempty"`OutputOptions *LogpushOutputOptions `json:"output_options,omitempty"`DestinationConfstring `json:"destination_conf"`OwnershipChallengestring `json:"ownership_challenge,omitempty"`LastComplete *time.Time `json:"last_complete,omitempty"`LastError *time.Time `json:"last_error,omitempty"`ErrorMessagestring `json:"error_message,omitempty"`Frequencystring `json:"frequency,omitempty"`Filter *LogpushJobFilters `json:"filter,omitempty"`MaxUploadBytesint `json:"max_upload_bytes,omitempty"`MaxUploadRecordsint `json:"max_upload_records,omitempty"`MaxUploadIntervalSecondsint `json:"max_upload_interval_seconds,omitempty"`}
func (UpdateLogpushJobParams)MarshalJSON¶added inv0.72.0
func (fUpdateLogpushJobParams) MarshalJSON() ([]byte,error)
func (*UpdateLogpushJobParams)UnmarshalJSON¶added inv0.72.0
func (f *UpdateLogpushJobParams) UnmarshalJSON(data []byte)error
Custom Unmarshaller for UpdateLogpushJobParams filter key.
typeUpdateMagicFirewallRulesetRequest¶added inv0.13.7
type UpdateMagicFirewallRulesetRequest struct {Descriptionstring `json:"description"`Rules []MagicFirewallRulesetRule `json:"rules"`}
UpdateMagicFirewallRulesetRequest contains data for a Magic Firewall ruleset update.
typeUpdateMagicFirewallRulesetResponse¶added inv0.13.7
type UpdateMagicFirewallRulesetResponse struct {ResponseResultMagicFirewallRuleset `json:"result"`}
UpdateMagicFirewallRulesetResponse contains response data when updating an existing Magic Firewall ruleset.
typeUpdateMagicTransitGRETunnelResponse¶added inv0.32.0
type UpdateMagicTransitGRETunnelResponse struct {ResponseResult struct {Modifiedbool `json:"modified"`ModifiedGRETunnelMagicTransitGRETunnel `json:"modified_gre_tunnel"`} `json:"result"`}
UpdateMagicTransitGRETunnelResponse contains a response after updating a GRE Tunnel.
typeUpdateMagicTransitIPsecTunnelResponse¶added inv0.31.0
type UpdateMagicTransitIPsecTunnelResponse struct {ResponseResult struct {Modifiedbool `json:"modified"`ModifiedIPsecTunnelMagicTransitIPsecTunnel `json:"modified_ipsec_tunnel"`} `json:"result"`}
UpdateMagicTransitIPsecTunnelResponse contains a response after updating an IPsec Tunnel.
typeUpdateMagicTransitStaticRouteResponse¶added inv0.18.0
type UpdateMagicTransitStaticRouteResponse struct {ResponseResult struct {Modifiedbool `json:"modified"`ModifiedRouteMagicTransitStaticRoute `json:"modified_route"`} `json:"result"`}
UpdateMagicTransitStaticRouteResponse contains a static route update response.
typeUpdateManagedHeadersParams¶added inv0.42.0
type UpdateManagedHeadersParams struct {ManagedHeaders}
typeUpdatePageShieldPolicyParams¶added inv0.84.0
typeUpdatePageShieldSettingsParams¶added inv0.84.0
typeUpdatePagesProjectParams¶added inv0.73.0
type UpdatePagesProjectParams struct {// `ID` is used for addressing the resource via the UI or a stable// anchor whereas `Name` is used for updating the value.IDstring `json:"-"`Namestring `json:"name,omitempty"`SubDomainstring `json:"subdomain"`Domains []string `json:"domains,omitempty"`Source *PagesProjectSource `json:"source,omitempty"`BuildConfigPagesProjectBuildConfig `json:"build_config"`DeploymentConfigsPagesProjectDeploymentConfigs `json:"deployment_configs"`LatestDeploymentPagesProjectDeployment `json:"latest_deployment"`CanonicalDeploymentPagesProjectDeployment `json:"canonical_deployment"`ProductionBranchstring `json:"production_branch,omitempty"`}
typeUpdateQueueConsumerParams¶added inv0.55.0
type UpdateQueueConsumerParams struct {QueueNamestring `json:"-"`ConsumerQueueConsumer}
typeUpdateQueueParams¶added inv0.55.0
typeUpdateRegionalTieredCacheParams¶added inv0.73.0
type UpdateRegionalTieredCacheParams struct {Valuestring `json:"value"`}
typeUpdateRulesetParams¶added inv0.73.0
type UpdateRulesetParams struct {IDstring `json:"-"`Descriptionstring `json:"description"`Rules []RulesetRule `json:"rules"`}
typeUpdateRulesetRequest¶added inv0.19.0
type UpdateRulesetRequest struct {Descriptionstring `json:"description"`Rules []RulesetRule `json:"rules"`}
UpdateRulesetRequest is the representation of a Ruleset update.
typeUpdateRulesetResponse¶added inv0.19.0
UpdateRulesetResponse contains response data when updating an existingRuleset.
typeUpdateTeamsListParams¶added inv0.53.0
type UpdateTeamsListParams struct {IDstring `json:"id,omitempty"`Namestring `json:"name"`Typestring `json:"type"`Descriptionstring `json:"description,omitempty"`Items []TeamsListItem `json:"items,omitempty"`Countuint64 `json:"count,omitempty"`CreatedAt *time.Time `json:"created_at,omitempty"`UpdatedAt *time.Time `json:"updated_at,omitempty"`}
typeUpdateTurnstileWidgetParams¶added inv0.66.0
typeUpdateWaitingRoomRuleParams¶added inv0.53.0
type UpdateWaitingRoomRuleParams struct {WaitingRoomIDstringRuleWaitingRoomRule}
typeUpdateWaitingRoomSettingsParams¶added inv0.67.0
type UpdateWaitingRoomSettingsParams struct {SearchEngineCrawlerBypass *bool `json:"search_engine_crawler_bypass,omitempty"`}
typeUpdateWebAnalyticsRuleParams¶added inv0.75.0
type UpdateWebAnalyticsRuleParams struct {RulesetIDstringRuleIDstringRuleCreateWebAnalyticsRule}
typeUpdateWebAnalyticsSiteParams¶added inv0.75.0
type UpdateWebAnalyticsSiteParams struct {SiteTagstring `json:"-"`// Host is the host to measure traffic for.Hoststring `json:"host,omitempty"`// ZoneTag is the zone tag to measure traffic for.ZoneTagstring `json:"zone_tag,omitempty"`// AutoInstall defines whether Cloudflare will inject the JS snippet automatically for orange-clouded sites.AutoInstall *bool `json:"auto_install"`}
typeUpdateWorkerCronTriggersParams¶added inv0.57.0
type UpdateWorkerCronTriggersParams struct {ScriptNamestringCrons []WorkerCronTrigger}
typeUpdateWorkerRouteParams¶added inv0.57.0
typeUpdateWorkersKVNamespaceParams¶added inv0.55.0
typeUpdateWorkersScriptContentParams¶added inv0.76.0
typeUpdateWorkersScriptSettingsParams¶added inv0.76.0
type UpdateWorkersScriptSettingsParams struct {ScriptNamestring// Logpush opts the worker into Workers Logpush logging. A nil value leaves// the current setting unchanged.//// Documentation:https://developers.cloudflare.com/workers/platform/logpush/Logpush *bool// TailConsumers specifies a list of Workers that will consume the logs of// the attached Worker.// Documentation:https://developers.cloudflare.com/workers/platform/tail-workers/TailConsumers *[]WorkersTailConsumer// Bindings should be a map where the keys are the binding name, and the// values are the binding contentBindings map[string]WorkerBinding// CompatibilityDate is a date in the form yyyy-mm-dd,// which will be used to determine which version of the Workers runtime is used.//https://developers.cloudflare.com/workers/platform/compatibility-dates/CompatibilityDatestring// CompatibilityFlags are the names of features of the Workers runtime to be enabled or disabled,// usually used together with CompatibilityDate.//https://developers.cloudflare.com/workers/platform/compatibility-dates/#compatibility-flagsCompatibilityFlags []stringPlacement *Placement}
typeUpdateZarazConfigParams¶added inv0.86.0
type UpdateZarazConfigParams struct {DebugKeystring `json:"debugKey"`Tools map[string]ZarazTool `json:"tools"`Triggers map[string]ZarazTrigger `json:"triggers"`ZarazVersionint64 `json:"zarazVersion"`ConsentZarazConsent `json:"consent,omitempty"`DataLayer *bool `json:"dataLayer,omitempty"`Dlp []any `json:"dlp,omitempty"`HistoryChange *bool `json:"historyChange,omitempty"`SettingsZarazConfigSettings `json:"settings,omitempty"`Variables map[string]ZarazVariable `json:"variables,omitempty"`}
typeUpdateZarazWorkflowParams¶added inv0.86.0
type UpdateZarazWorkflowParams struct {Workflowstring `json:"workflow"`}
typeUpdateZoneSettingParams¶added inv0.64.0
typeUploadDLPDatasetVersionParams¶added inv0.87.0
typeUploadDLPDatasetVersionResponse¶added inv0.87.0
type UploadDLPDatasetVersionResponse struct {ResultDLPDataset `json:"result"`Response}
typeUploadImageParams¶added inv0.71.0
type UploadImageParams struct {Fileio.ReadCloserURLstringNamestringRequireSignedURLsboolMetadata map[string]interface{}}
UploadImageParams is the data required for an Image Upload request.
typeUploadVideoURLWatermark¶added inv0.44.0
type UploadVideoURLWatermark struct {UIDstring `json:"uid,omitempty"`}
UploadVideoURLWatermark represents UID of an existing watermark.
typeUsageModel¶added inv0.56.0
type UsageModelstring
const (BundledUsageModel = "bundled"UnboundUsageModel = "unbound"StandardUsageModel = "standard")
typeUser¶added inv0.7.2
type User struct {IDstring `json:"id,omitempty"`Emailstring `json:"email,omitempty"`FirstNamestring `json:"first_name,omitempty"`LastNamestring `json:"last_name,omitempty"`Usernamestring `json:"username,omitempty"`Telephonestring `json:"telephone,omitempty"`Countrystring `json:"country,omitempty"`Zipcodestring `json:"zipcode,omitempty"`CreatedOn *time.Time `json:"created_on,omitempty"`ModifiedOn *time.Time `json:"modified_on,omitempty"`APIKeystring `json:"api_key,omitempty"`TwoFAbool `json:"two_factor_authentication_enabled,omitempty"`Betas []string `json:"betas,omitempty"`Accounts []Account `json:"organizations,omitempty"`}
User describes a user account.
typeUserAgentRule¶added inv0.8.0
type UserAgentRule struct {IDstring `json:"id"`Descriptionstring `json:"description"`Modestring `json:"mode"`ConfigurationUserAgentRuleConfig `json:"configuration"`Pausedbool `json:"paused"`}
UserAgentRule represents a User-Agent Block. These rules can be used tochallenge, block or whitelist specific User-Agents for a given zone.
typeUserAgentRuleConfig¶added inv0.8.0
type UserAgentRuleConfigZoneLockdownConfig
UserAgentRuleConfig represents a Zone Lockdown config, which comprisesa Target ("ip" or "ip_range") and a Value (an IP address or IP+mask,respectively.)
typeUserAgentRuleListResponse¶added inv0.8.0
type UserAgentRuleListResponse struct {Result []UserAgentRule `json:"result"`ResponseResultInfo `json:"result_info"`}
UserAgentRuleListResponse represents a response from the List Zone Lockdown endpoint.
typeUserAgentRuleResponse¶added inv0.8.0
type UserAgentRuleResponse struct {ResultUserAgentRule `json:"result"`ResponseResultInfo `json:"result_info"`}
UserAgentRuleResponse represents a response from the Zone Lockdown endpoint.
typeUserBillingHistory¶added inv0.43.0
type UserBillingHistory struct {IDstring `json:"id,omitempty"`Typestring `json:"type,omitempty"`Actionstring `json:"action,omitempty"`Descriptionstring `json:"description,omitempty"`OccurredAt *time.Time `json:"occurred_at,omitempty"`Amountfloat32 `json:"amount,omitempty"`Currencystring `json:"currency,omitempty"`Zone userBillingHistoryZone `json:"zone"`}
typeUserBillingHistoryResponse¶added inv0.43.0
type UserBillingHistoryResponse struct {ResponseResult []UserBillingHistory `json:"result"`ResultInfoResultInfo `json:"result_info"`}
typeUserBillingOptions¶added inv0.43.0
typeUserBillingProfile¶added inv0.7.3
type UserBillingProfile struct {IDstring `json:"id,omitempty"`FirstNamestring `json:"first_name,omitempty"`LastNamestring `json:"last_name,omitempty"`Addressstring `json:"address,omitempty"`Address2string `json:"address2,omitempty"`Companystring `json:"company,omitempty"`Citystring `json:"city,omitempty"`Statestring `json:"state,omitempty"`ZipCodestring `json:"zipcode,omitempty"`Countrystring `json:"country,omitempty"`Telephonestring `json:"telephone,omitempty"`CardNumberstring `json:"card_number,omitempty"`CardExpiryYearint `json:"card_expiry_year,omitempty"`CardExpiryMonthint `json:"card_expiry_month,omitempty"`VATstring `json:"vat,omitempty"`CreatedOn *time.Time `json:"created_on,omitempty"`EditedOn *time.Time `json:"edited_on,omitempty"`}
UserBillingProfile contains Billing Profile information.
typeUserResponse¶added inv0.7.2
UserResponse wraps a response containing User accounts.
typeValidateLogpushOwnershipChallengeParams¶added inv0.72.0
typeValidationData¶added inv0.44.0
ValidationData represents validation data for a domain.
typeVerificationData¶added inv0.44.0
type VerificationData struct {Statusstring `json:"status"`}
VerificationData represents verification data for a domain.
typeWAFGroup¶added inv0.10.0
type WAFGroup struct {IDstring `json:"id"`Namestring `json:"name"`Descriptionstring `json:"description"`RulesCountint `json:"rules_count"`ModifiedRulesCountint `json:"modified_rules_count"`PackageIDstring `json:"package_id"`Modestring `json:"mode"`AllowedModes []string `json:"allowed_modes"`}
WAFGroup represents a WAF rule group.
typeWAFGroupResponse¶added inv0.10.1
type WAFGroupResponse struct {ResponseResultWAFGroup `json:"result"`ResultInfoResultInfo `json:"result_info"`}
WAFGroupResponse represents the response from the WAF group endpoint.
typeWAFGroupsResponse¶added inv0.10.0
type WAFGroupsResponse struct {ResponseResult []WAFGroup `json:"result"`ResultInfoResultInfo `json:"result_info"`}
WAFGroupsResponse represents the response from the WAF groups endpoint.
typeWAFOverride¶added inv0.11.1
type WAFOverride struct {IDstring `json:"id,omitempty"`Descriptionstring `json:"description"`URLs []string `json:"urls"`Priorityint `json:"priority"`Groups map[string]string `json:"groups"`RewriteAction map[string]string `json:"rewrite_action"`Rules map[string]string `json:"rules"`Pausedbool `json:"paused"`}
WAFOverride represents a WAF override.
typeWAFOverrideResponse¶added inv0.11.1
type WAFOverrideResponse struct {ResponseResultWAFOverride `json:"result"`ResultInfoResultInfo `json:"result_info"`}
WAFOverrideResponse represents the response form the WAF override endpoint.
typeWAFOverridesResponse¶added inv0.11.1
type WAFOverridesResponse struct {ResponseResult []WAFOverride `json:"result"`ResultInfoResultInfo `json:"result_info"`}
WAFOverridesResponse represents the response form the WAF overrides endpoint.
typeWAFPackage¶added inv0.7.2
type WAFPackage struct {IDstring `json:"id"`Namestring `json:"name"`Descriptionstring `json:"description"`ZoneIDstring `json:"zone_id"`DetectionModestring `json:"detection_mode"`Sensitivitystring `json:"sensitivity"`ActionModestring `json:"action_mode"`}
WAFPackage represents a WAF package configuration.
typeWAFPackageOptions¶added inv0.10.0
type WAFPackageOptions struct {Sensitivitystring `json:"sensitivity,omitempty"`ActionModestring `json:"action_mode,omitempty"`}
WAFPackageOptions represents options to edit a WAF package.
typeWAFPackageResponse¶added inv0.10.0
type WAFPackageResponse struct {ResponseResultWAFPackage `json:"result"`ResultInfoResultInfo `json:"result_info"`}
WAFPackageResponse represents the response from the WAF package endpoint.
typeWAFPackagesResponse¶added inv0.7.2
type WAFPackagesResponse struct {ResponseResult []WAFPackage `json:"result"`ResultInfoResultInfo `json:"result_info"`}
WAFPackagesResponse represents the response from the WAF packages endpoint.
typeWAFRule¶added inv0.7.2
type WAFRule struct {IDstring `json:"id"`Descriptionstring `json:"description"`Prioritystring `json:"priority"`PackageIDstring `json:"package_id"`Group struct {IDstring `json:"id"`Namestring `json:"name"`} `json:"group"`Modestring `json:"mode"`DefaultModestring `json:"default_mode"`AllowedModes []string `json:"allowed_modes"`}
WAFRule represents a WAF rule.
typeWAFRuleOptions¶added inv0.9.0
type WAFRuleOptions struct {Modestring `json:"mode"`}
WAFRuleOptions is a subset of WAFRule, for editable options.
typeWAFRuleResponse¶added inv0.9.0
type WAFRuleResponse struct {ResponseResultWAFRule `json:"result"`ResultInfoResultInfo `json:"result_info"`}
WAFRuleResponse represents the response from the WAF rule endpoint.
typeWAFRulesResponse¶added inv0.7.2
type WAFRulesResponse struct {ResponseResult []WAFRule `json:"result"`ResultInfoResultInfo `json:"result_info"`}
WAFRulesResponse represents the response from the WAF rules endpoint.
typeWHOIS¶added inv0.44.0
type WHOIS struct {Domainstring `json:"domain,omitempty"`CreatedDatestring `json:"created_date,omitempty"`UpdatedDatestring `json:"updated_date,omitempty"`Registrantstring `json:"registrant,omitempty"`RegistrantOrgstring `json:"registrant_org,omitempty"`RegistrantCountrystring `json:"registrant_country,omitempty"`RegistrantEmailstring `json:"registrant_email,omitempty"`Registrarstring `json:"registrar,omitempty"`Nameservers []string `json:"nameservers,omitempty"`}
WHOIS represents whois information.
typeWHOISParameters¶added inv0.44.0
WHOISParameters represents parameters for a who is request.
typeWHOISResponse¶added inv0.44.0
WHOISResponse represents an API response for a whois request.
typeWaitingRoom¶added inv0.17.0
type WaitingRoom struct {CreatedOntime.Time `json:"created_on,omitempty"`ModifiedOntime.Time `json:"modified_on,omitempty"`Pathstring `json:"path"`Namestring `json:"name"`Descriptionstring `json:"description,omitempty"`QueueingMethodstring `json:"queueing_method,omitempty"`CustomPageHTMLstring `json:"custom_page_html,omitempty"`DefaultTemplateLanguagestring `json:"default_template_language,omitempty"`Hoststring `json:"host"`IDstring `json:"id,omitempty"`NewUsersPerMinuteint `json:"new_users_per_minute"`TotalActiveUsersint `json:"total_active_users"`SessionDurationint `json:"session_duration"`QueueAllbool `json:"queue_all"`DisableSessionRenewalbool `json:"disable_session_renewal"`Suspendedbool `json:"suspended"`JsonResponseEnabledbool `json:"json_response_enabled"`NextEventPrequeueStartTime *time.Time `json:"next_event_prequeue_start_time,omitempty"`NextEventStartTime *time.Time `json:"next_event_start_time,omitempty"`CookieSuffixstring `json:"cookie_suffix"`AdditionalRoutes []*WaitingRoomRoute `json:"additional_routes,omitempty"`QueueingStatusCodeint `json:"queueing_status_code"`EnabledOriginCommands []string `json:"enabled_origin_commands,omitempty"`CookieAttributes *WaitingRoomCookieAttributes `json:"cookie_attributes,omitempty"`TurnstileModestring `json:"turnstile_mode,omitempty"`TurnstileActionstring `json:"turnstile_action,omitempty"`}
WaitingRoom describes a WaitingRoom object.
typeWaitingRoomCookieAttributes¶added inv0.108.0
type WaitingRoomCookieAttributes struct {Samesitestring `json:"samesite"`Securestring `json:"secure"`}
WaitingRoomCookieAttributes describes a WaitingRoomCookieAttributes object.
typeWaitingRoomDetailResponse¶added inv0.17.0
type WaitingRoomDetailResponse struct {ResponseResultWaitingRoom `json:"result"`}
WaitingRoomDetailResponse is the API response, containing a single WaitingRoom.
typeWaitingRoomEvent¶added inv0.33.0
type WaitingRoomEvent struct {EventEndTimetime.Time `json:"event_end_time"`CreatedOntime.Time `json:"created_on,omitempty"`ModifiedOntime.Time `json:"modified_on,omitempty"`PrequeueStartTime *time.Time `json:"prequeue_start_time,omitempty"`EventStartTimetime.Time `json:"event_start_time"`Namestring `json:"name"`Descriptionstring `json:"description,omitempty"`QueueingMethodstring `json:"queueing_method,omitempty"`IDstring `json:"id,omitempty"`CustomPageHTMLstring `json:"custom_page_html,omitempty"`NewUsersPerMinuteint `json:"new_users_per_minute,omitempty"`TotalActiveUsersint `json:"total_active_users,omitempty"`SessionDurationint `json:"session_duration,omitempty"`DisableSessionRenewal *bool `json:"disable_session_renewal,omitempty"`Suspendedbool `json:"suspended"`ShuffleAtEventStartbool `json:"shuffle_at_event_start"`TurnstileModestring `json:"turnstile_mode,omitempty"`TurnstileActionstring `json:"turnstile_action,omitempty"`}
WaitingRoomEvent describes a WaitingRoomEvent object.
typeWaitingRoomEventDetailResponse¶added inv0.33.0
type WaitingRoomEventDetailResponse struct {ResponseResultWaitingRoomEvent `json:"result"`}
WaitingRoomEventDetailResponse is the API response, containing a single WaitingRoomEvent.
typeWaitingRoomEventsResponse¶added inv0.33.0
type WaitingRoomEventsResponse struct {ResponseResult []WaitingRoomEvent `json:"result"`}
WaitingRoomEventsResponse is the API response, containing an array of WaitingRoomEvents.
typeWaitingRoomPagePreviewCustomHTML¶added inv0.34.0
type WaitingRoomPagePreviewCustomHTML struct {CustomHTMLstring `json:"custom_html"`}
WaitingRoomPagePreviewCustomHTML describes a WaitingRoomPagePreviewCustomHTML object.
typeWaitingRoomPagePreviewResponse¶added inv0.34.0
type WaitingRoomPagePreviewResponse struct {ResponseResultWaitingRoomPagePreviewURL `json:"result"`}
WaitingRoomPagePreviewResponse is the API response, containing the URL to a custom waiting room preview.
typeWaitingRoomPagePreviewURL¶added inv0.34.0
type WaitingRoomPagePreviewURL struct {PreviewURLstring `json:"preview_url"`}
WaitingRoomPagePreviewURL describes a WaitingRoomPagePreviewURL object.
typeWaitingRoomRoute¶added inv0.70.0
WaitingRoomRoute describes a WaitingRoomRoute object.
typeWaitingRoomRule¶added inv0.53.0
typeWaitingRoomRulesResponse¶added inv0.53.0
type WaitingRoomRulesResponse struct {ResponseResult []WaitingRoomRule `json:"result"`}
WaitingRoomRulesResponse is the API response, containing an array of WaitingRoomRule.
typeWaitingRoomSettings¶added inv0.67.0
type WaitingRoomSettings struct {// Whether to allow verified search engine crawlers to bypass all waiting rooms on this zoneSearchEngineCrawlerBypassbool `json:"search_engine_crawler_bypass"`}
WaitingRoomSettings describes zone-level waiting room settings.
typeWaitingRoomSettingsResponse¶added inv0.67.0
type WaitingRoomSettingsResponse struct {ResponseResultWaitingRoomSettings `json:"result"`}
WaitingRoomSettingsResponse is the API response, containing zone-level Waiting Room settings.
typeWaitingRoomStatus¶added inv0.33.0
type WaitingRoomStatus struct {Statusstring `json:"status"`EventIDstring `json:"event_id"`EstimatedQueuedUsersint `json:"estimated_queued_users"`EstimatedTotalActiveUsersint `json:"estimated_total_active_users"`MaxEstimatedTimeMinutesint `json:"max_estimated_time_minutes"`}
WaitingRoomStatus describes the status of a waiting room.
typeWaitingRoomStatusResponse¶added inv0.33.0
type WaitingRoomStatusResponse struct {ResponseResultWaitingRoomStatus `json:"result"`}
WaitingRoomStatusResponse is the API response, containing the status of a waiting room.
typeWaitingRoomsResponse¶added inv0.17.0
type WaitingRoomsResponse struct {ResponseResult []WaitingRoom `json:"result"`}
WaitingRoomsResponse is the API response, containing an array of WaitingRooms.
typeWarpRoutingConfig¶added inv0.43.0
type WarpRoutingConfig struct {Enabledbool `json:"enabled,omitempty"`}
typeWeb3Hostname¶added inv0.45.0
type Web3Hostname struct {IDstring `json:"id,omitempty"`Namestring `json:"name,omitempty"`Descriptionstring `json:"description,omitempty"`Statusstring `json:"status,omitempty"`Targetstring `json:"target,omitempty"`Dnslinkstring `json:"dnslink,omitempty"`CreatedOn *time.Time `json:"created_on,omitempty"`ModifiedOn *time.Time `json:"modified_on,omitempty"`}
Web3Hostname represents a web3 hostname.
typeWeb3HostnameCreateParameters¶added inv0.45.0
type Web3HostnameCreateParameters struct {ZoneIDstringNamestring `json:"name,omitempty"`Targetstring `json:"target,omitempty"`Descriptionstring `json:"description,omitempty"`DNSLinkstring `json:"dnslink,omitempty"`}
Web3HostnameCreateParameters represents the parameters for creating a web3 hostname.
typeWeb3HostnameDeleteResponse¶
type Web3HostnameDeleteResponse struct {ResponseResultWeb3HostnameDeleteResult `json:"result,omitempty"`}
Web3HostnameDeleteResponse represents the API response body for deleting a web3 hostname.
typeWeb3HostnameDeleteResult¶added inv0.45.0
type Web3HostnameDeleteResult struct {IDstring `json:"id,omitempty"`}
Web3HostnameDeleteResult represents the result of deleting a web3 hostname.
typeWeb3HostnameDetailsParameters¶added inv0.45.0
Web3HostnameDetailsParameters represents the parameters for getting a single web3 hostname.
typeWeb3HostnameListParameters¶added inv0.45.0
type Web3HostnameListParameters struct {ZoneIDstring}
Web3HostnameListParameters represents the parameters for listing web3 hostnames.
typeWeb3HostnameListResponse¶
type Web3HostnameListResponse struct {ResponseResult []Web3Hostname `json:"result"`}
Web3HostnameListResponse represents the API response body for listing web3 hostnames.
typeWeb3HostnameResponse¶added inv0.45.0
type Web3HostnameResponse struct {ResponseResultWeb3Hostname `json:"result,omitempty"`}
Web3HostnameResponse represents an API response body for a web3 hostname.
typeWeb3HostnameUpdateParameters¶added inv0.45.0
type Web3HostnameUpdateParameters struct {ZoneIDstringIdentifierstringDescriptionstring `json:"description,omitempty"`DNSLinkstring `json:"dnslink,omitempty"`}
Web3HostnameUpdateParameters represents the parameters for editing a web3 hostname.
typeWebAnalyticsIDResponse¶added inv0.75.0
WebAnalyticsIDResponse is the API response, containing a single ID.
typeWebAnalyticsRule¶added inv0.75.0
type WebAnalyticsRule struct {IDstring `json:"id,omitempty"`Hoststring `json:"host"`Paths []string `json:"paths"`// Inclusive defines whether the rule includes or excludes the matched traffic from being measured in web analytics.Inclusivebool `json:"inclusive"`Created *time.Time `json:"created,omitempty"`// IsPaused defines whether the rule is paused (inactive) or not.IsPausedbool `json:"is_paused"`Priorityint `json:"priority,omitempty"`}
WebAnalyticsRule describes a Web Analytics Rule object.
typeWebAnalyticsRuleResponse¶added inv0.75.0
type WebAnalyticsRuleResponse struct {ResponseResultWebAnalyticsRule `json:"result"`}
WebAnalyticsRuleResponse is the API response, containing a single WebAnalyticsRule.
typeWebAnalyticsRulesResponse¶added inv0.75.0
type WebAnalyticsRulesResponse struct {ResponseResultWebAnalyticsRulesetRules `json:"result"`}
WebAnalyticsRulesResponse is the API response, containing a WebAnalyticsRuleset and array of WebAnalyticsRule.
typeWebAnalyticsRuleset¶added inv0.75.0
type WebAnalyticsRuleset struct {IDstring `json:"id"`ZoneTagstring `json:"zone_tag"`ZoneNamestring `json:"zone_name"`Enabledbool `json:"enabled"`}
WebAnalyticsRuleset describes a Web Analytics Ruleset object.
typeWebAnalyticsRulesetRules¶added inv0.75.0
type WebAnalyticsRulesetRules struct {RulesetWebAnalyticsRuleset `json:"ruleset"`Rules []WebAnalyticsRule `json:"rules"`}
typeWebAnalyticsSite¶added inv0.75.0
type WebAnalyticsSite struct {SiteTagstring `json:"site_tag"`SiteTokenstring `json:"site_token"`Created *time.Time `json:"created,omitempty"`// Snippet is an encoded JS script to insert into your site HTML.Snippetstring `json:"snippet"`// AutoInstall defines whether Cloudflare will inject the JS snippet automatically for orange-clouded sites.AutoInstallbool `json:"auto_install"`RulesetWebAnalyticsRuleset `json:"ruleset"`Rules []WebAnalyticsRule `json:"rules"`}
WebAnalyticsSite describes a Web Analytics Site object.
typeWebAnalyticsSiteResponse¶added inv0.75.0
type WebAnalyticsSiteResponse struct {ResponseResultWebAnalyticsSite `json:"result"`}
WebAnalyticsSiteResponse is the API response, containing a single WebAnalyticsSite.
typeWebAnalyticsSiteTagResponse¶added inv0.75.0
type WebAnalyticsSiteTagResponse struct {ResponseResult struct {SiteTagstring `json:"site_tag"`} `json:"result"`}
WebAnalyticsSiteTagResponse is the API response, containing a single ID.
typeWebAnalyticsSitesResponse¶added inv0.75.0
type WebAnalyticsSitesResponse struct {ResponseResultInfoResultInfo `json:"result_info"`Result []WebAnalyticsSite `json:"result"`}
WebAnalyticsSitesResponse is the API response, containing an array of WebAnalyticsSite.
typeWorkerAnalyticsEngineBinding¶added inv0.56.0
type WorkerAnalyticsEngineBinding struct {Datasetstring}
WorkerAnalyticsEngineBinding is a binding to an Analytics Engine dataset.
func (WorkerAnalyticsEngineBinding)Type¶added inv0.56.0
func (bWorkerAnalyticsEngineBinding) Type()WorkerBindingType
Type returns the type of the binding.
typeWorkerBinding¶added inv0.10.7
type WorkerBinding interface {Type()WorkerBindingType// contains filtered or unexported methods}
WorkerBinding is the generic interface implemented by all ofthe various binding types.
typeWorkerBindingListItem¶added inv0.10.7
type WorkerBindingListItem struct {Namestring `json:"name"`BindingWorkerBinding}
WorkerBindingListItem a struct representing an individual binding in a list of bindings.
typeWorkerBindingListResponse¶added inv0.10.7
type WorkerBindingListResponse struct {ResponseBindingList []WorkerBindingListItem}
WorkerBindingListResponse wrapper struct for API response to worker binding list API call.
typeWorkerBindingType¶added inv0.10.7
type WorkerBindingTypestring
WorkerBindingType represents a particular type of binding.
const (// WorkerDurableObjectBindingType is the type for Durable Object bindings.WorkerDurableObjectBindingTypeWorkerBindingType = "durable_object_namespace"// WorkerInheritBindingType is the type for inherited bindings.WorkerInheritBindingTypeWorkerBindingType = "inherit"// WorkerKvNamespaceBindingType is the type for KV Namespace bindings.WorkerKvNamespaceBindingTypeWorkerBindingType = "kv_namespace"// WorkerWebAssemblyBindingType is the type for Web Assembly module bindings.WorkerWebAssemblyBindingTypeWorkerBindingType = "wasm_module"// WorkerSecretTextBindingType is the type for secret text bindings.WorkerSecretTextBindingTypeWorkerBindingType = "secret_text"// WorkerPlainTextBindingType is the type for plain text bindings.WorkerPlainTextBindingTypeWorkerBindingType = "plain_text"// WorkerServiceBindingType is the type for service bindings.WorkerServiceBindingTypeWorkerBindingType = "service"// WorkerR2BucketBindingType is the type for R2 bucket bindings.WorkerR2BucketBindingTypeWorkerBindingType = "r2_bucket"// WorkerAnalyticsEngineBindingType is the type for Analytics Engine dataset bindings.WorkerAnalyticsEngineBindingTypeWorkerBindingType = "analytics_engine"// WorkerQueueBindingType is the type for queue bindings.WorkerQueueBindingTypeWorkerBindingType = "queue"// DispatchNamespaceBindingType is the type for WFP namespace bindings.DispatchNamespaceBindingTypeWorkerBindingType = "dispatch_namespace"// WorkerD1DataseBindingType is for D1 databases.WorkerD1DataseBindingTypeWorkerBindingType = "d1"// WorkerHyperdriveBindingType is for Hyperdrive config bindings.WorkerHyperdriveBindingTypeWorkerBindingType = "hyperdrive")
func (WorkerBindingType)String¶added inv0.10.7
func (bWorkerBindingType) String()string
typeWorkerCronTrigger¶added inv0.13.8
type WorkerCronTrigger struct {Cronstring `json:"cron"`CreatedOn *time.Time `json:"created_on,omitempty"`ModifiedOn *time.Time `json:"modified_on,omitempty"`}
WorkerCronTrigger holds an individual cron schedule for a worker.
typeWorkerCronTriggerResponse¶added inv0.13.8
type WorkerCronTriggerResponse struct {ResponseResultWorkerCronTriggerSchedules `json:"result"`}
WorkerCronTriggerResponse represents the response from the Worker cron triggerAPI endpoint.
typeWorkerCronTriggerSchedules¶added inv0.13.8
type WorkerCronTriggerSchedules struct {Schedules []WorkerCronTrigger `json:"schedules"`}
WorkerCronTriggerSchedules contains the schedule of Worker cron triggers.
typeWorkerD1DatabaseBinding¶added inv0.83.0
type WorkerD1DatabaseBinding struct {DatabaseIDstring}
WorkerD1DatabaseBinding is a binding to a D1 instance.
func (WorkerD1DatabaseBinding)Type¶added inv0.83.0
func (bWorkerD1DatabaseBinding) Type()WorkerBindingType
Type returns the type of the binding.
typeWorkerDurableObjectBinding¶added inv0.43.0
WorkerDurableObjectBinding is a binding to a Workers Durable Object.
https://api.cloudflare.com/#durable-objects-namespace-properties
func (WorkerDurableObjectBinding)Type¶added inv0.43.0
func (bWorkerDurableObjectBinding) Type()WorkerBindingType
Type returns the type of the binding.
typeWorkerHyperdriveBinding¶added inv0.102.0
WorkerHyperdriveBinding is a binding to a Hyperdrive config.
func (WorkerHyperdriveBinding)Type¶added inv0.102.0
func (bWorkerHyperdriveBinding) Type()WorkerBindingType
Type returns the type of the binding.
typeWorkerInheritBinding¶added inv0.10.7
type WorkerInheritBinding struct {// Optional parameter that allows for renaming a binding without changing// its contents. If `OldName` is empty, the binding name will not be changed.OldNamestring}
WorkerInheritBinding will just persist whatever binding content was previously uploaded.
func (WorkerInheritBinding)Type¶added inv0.10.7
func (bWorkerInheritBinding) Type()WorkerBindingType
Type returns the type of the binding.
typeWorkerKvNamespaceBinding¶added inv0.10.7
type WorkerKvNamespaceBinding struct {NamespaceIDstring}
WorkerKvNamespaceBinding is a binding to a Workers KV Namespace.
https://developers.cloudflare.com/workers/archive/api/resource-bindings/kv-namespaces/
func (WorkerKvNamespaceBinding)Type¶added inv0.10.7
func (bWorkerKvNamespaceBinding) Type()WorkerBindingType
Type returns the type of the binding.
typeWorkerListResponse¶added inv0.9.0
type WorkerListResponse struct {ResponseResultInfoWorkerList []WorkerMetaData `json:"result"`}
WorkerListResponse wrapper struct for API response to worker script list API call.
typeWorkerMetaData¶added inv0.9.0
type WorkerMetaData struct {IDstring `json:"id,omitempty"`ETAGstring `json:"etag,omitempty"`Sizeint `json:"size,omitempty"`CreatedOntime.Time `json:"created_on,omitempty"`ModifiedOntime.Time `json:"modified_on,omitempty"`Logpush *bool `json:"logpush,omitempty"`TailConsumers *[]WorkersTailConsumer `json:"tail_consumers,omitempty"`LastDeployedFrom *string `json:"last_deployed_from,omitempty"`DeploymentId *string `json:"deployment_id,omitempty"`PlacementFieldsPipelineHash *string `json:"pipeline_hash,omitempty"`}
WorkerMetaData contains worker script information such as size, creation & modification dates.
typeWorkerPlainTextBinding¶added inv0.12.0
type WorkerPlainTextBinding struct {Textstring}
WorkerPlainTextBinding is a binding to plain text.
https://developers.cloudflare.com/workers/tooling/api/scripts/#add-a-plain-text-binding
func (WorkerPlainTextBinding)Type¶added inv0.12.0
func (bWorkerPlainTextBinding) Type()WorkerBindingType
Type returns the type of the binding.
typeWorkerQueueBinding¶added inv0.59.0
WorkerQueueBinding is a binding to a Workers Queue.
https://developers.cloudflare.com/workers/platform/bindings/#queue-bindings
func (WorkerQueueBinding)Type¶added inv0.59.0
func (bWorkerQueueBinding) Type()WorkerBindingType
Type returns the type of the binding.
typeWorkerR2BucketBinding¶added inv0.44.0
type WorkerR2BucketBinding struct {BucketNamestring}
WorkerR2BucketBinding is a binding to an R2 bucket.
func (WorkerR2BucketBinding)Type¶added inv0.44.0
func (bWorkerR2BucketBinding) Type()WorkerBindingType
Type returns the type of the binding.
typeWorkerReference¶added inv0.74.0
typeWorkerRequestParams¶added inv0.9.0
WorkerRequestParams provides parameters for worker requests for both enterprise and standard requests.
typeWorkerRoute¶added inv0.9.0
type WorkerRoute struct {IDstring `json:"id,omitempty"`Patternstring `json:"pattern"`ScriptNamestring `json:"script,omitempty"`}
WorkerRoute is used to map traffic matching a URL pattern to a workers
API reference:https://api.cloudflare.com/#worker-routes-properties
typeWorkerRouteResponse¶added inv0.9.0
type WorkerRouteResponse struct {ResponseWorkerRoute `json:"result"`}
WorkerRouteResponse embeds Response struct and a single WorkerRoute.
typeWorkerRoutesResponse¶added inv0.9.0
type WorkerRoutesResponse struct {ResponseRoutes []WorkerRoute `json:"result"`}
WorkerRoutesResponse embeds Response struct and slice of WorkerRoutes.
typeWorkerScript¶added inv0.9.0
type WorkerScript struct {WorkerMetaDataScriptstring `json:"script"`UsageModelstring `json:"usage_model,omitempty"`}
WorkerScript Cloudflare Worker struct with metadata.
typeWorkerScriptParams¶added inv0.10.7
type WorkerScriptParams struct {ScriptNamestring// Module changes the Content-Type header to specify the script is an// ES Module syntax script.Modulebool// Bindings should be a map where the keys are the binding name, and the// values are the binding contentBindings map[string]WorkerBinding}
WorkerScriptParams provides a worker script and the associated bindings.
typeWorkerScriptResponse¶added inv0.9.0
type WorkerScriptResponse struct {ResponseModuleboolWorkerScript `json:"result"`}
WorkerScriptResponse wrapper struct for API response to worker script calls.
typeWorkerScriptSettingsResponse¶added inv0.76.0
type WorkerScriptSettingsResponse struct {ResponseWorkerMetaData}
WorkerScriptSettingsResponse wrapper struct for API response to worker script settings calls.
typeWorkerSecretTextBinding¶added inv0.12.0
type WorkerSecretTextBinding struct {Textstring}
WorkerSecretTextBinding is a binding to secret text.
https://developers.cloudflare.com/workers/tooling/api/scripts/#add-a-secret-text-binding
func (WorkerSecretTextBinding)Type¶added inv0.12.0
func (bWorkerSecretTextBinding) Type()WorkerBindingType
Type returns the type of the binding.
typeWorkerServiceBinding¶added inv0.43.0
func (WorkerServiceBinding)Type¶added inv0.43.0
func (bWorkerServiceBinding) Type()WorkerBindingType
typeWorkerWebAssemblyBinding¶added inv0.10.7
WorkerWebAssemblyBinding is a binding to a WebAssembly module.
https://developers.cloudflare.com/workers/archive/api/resource-bindings/webassembly-modules/
func (WorkerWebAssemblyBinding)Type¶added inv0.10.7
func (bWorkerWebAssemblyBinding) Type()WorkerBindingType
Type returns the type of the binding.
typeWorkersAccountSettings¶added inv0.47.0
typeWorkersAccountSettingsParameters¶added inv0.47.0
type WorkersAccountSettingsParameters struct{}
typeWorkersAccountSettingsResponse¶added inv0.47.0
type WorkersAccountSettingsResponse struct {ResponseResultWorkersAccountSettings}
typeWorkersDomain¶added inv0.55.0
typeWorkersDomainListResponse¶added inv0.55.0
type WorkersDomainListResponse struct {ResponseResult []WorkersDomain `json:"result"`}
typeWorkersDomainResponse¶added inv0.55.0
type WorkersDomainResponse struct {ResponseResultWorkersDomain `json:"result"`}
typeWorkersForPlatformsDispatchNamespace¶added inv0.90.0
type WorkersForPlatformsDispatchNamespace struct {NamespaceIdstring `json:"namespace_id"`NamespaceNamestring `json:"namespace_name"`CreatedOn *time.Time `json:"created_on,omitempty"`CreatedBystring `json:"created_by"`ModifiedOn *time.Time `json:"modified_on,omitempty"`ModifiedBystring `json:"modified_by"`}
typeWorkersKVNamespace¶added inv0.9.0
WorkersKVNamespace contains the unique identifier and title of a storage namespace.
typeWorkersKVNamespaceResponse¶added inv0.9.0
type WorkersKVNamespaceResponse struct {ResponseResultWorkersKVNamespace `json:"result"`}
WorkersKVNamespaceResponse is the response received when creating storage namespaces.
typeWorkersKVPair¶added inv0.10.7
type WorkersKVPair struct {Keystring `json:"key"`Valuestring `json:"value"`Expirationint `json:"expiration,omitempty"`ExpirationTTLint `json:"expiration_ttl,omitempty"`Metadata interface{} `json:"metadata,omitempty"`Base64bool `json:"base64,omitempty"`}
WorkersKVPair is used in an array in the request to the bulk KV api.
typeWorkersListSecretsResponse¶added inv0.13.1
type WorkersListSecretsResponse struct {ResponseResult []WorkersSecret `json:"result"`}
WorkersListSecretsResponse is the response received when listing secrets.
typeWorkersPutSecretRequest¶added inv0.13.1
type WorkersPutSecretRequest struct {Namestring `json:"name"`Textstring `json:"text"`TypeWorkerBindingType `json:"type"`}
WorkersPutSecretRequest provides parameters for creating and updating secrets.
typeWorkersPutSecretResponse¶added inv0.13.1
type WorkersPutSecretResponse struct {ResponseResultWorkersSecret `json:"result"`}
WorkersPutSecretResponse is the response received when creating or updating a secret.
typeWorkersSecret¶added inv0.13.1
WorkersSecret contains the name and type of the secret.
typeWorkersSubdomain¶added inv0.47.0
type WorkersSubdomain struct {Namestring `json:"name,omitempty"`}
typeWorkersSubdomainResponse¶added inv0.47.0
type WorkersSubdomainResponse struct {ResponseResultWorkersSubdomain}
typeWorkersTail¶added inv0.47.0
typeWorkersTailConsumer¶added inv0.71.0
typeWriteWorkersKVEntriesParams¶added inv0.55.0
type WriteWorkersKVEntriesParams struct {NamespaceIDstringKVs []*WorkersKVPair}
typeWriteWorkersKVEntryParams¶added inv0.55.0
typeZarazAction¶added inv0.89.0
typeZarazButtonTextTranslations¶added inv0.86.0
typeZarazConfig¶added inv0.86.0
type ZarazConfig struct {DebugKeystring `json:"debugKey"`Tools map[string]ZarazTool `json:"tools"`Triggers map[string]ZarazTrigger `json:"triggers"`ZarazVersionint64 `json:"zarazVersion"`ConsentZarazConsent `json:"consent,omitempty"`DataLayer *bool `json:"dataLayer,omitempty"`Dlp []any `json:"dlp,omitempty"`HistoryChange *bool `json:"historyChange,omitempty"`SettingsZarazConfigSettings `json:"settings,omitempty"`Variables map[string]ZarazVariable `json:"variables,omitempty"`}
typeZarazConfigHistoryListResponse¶added inv0.86.0
type ZarazConfigHistoryListResponse struct {Result []ZarazHistoryRecord `json:"result"`ResponseResultInfo `json:"result_info"`}
typeZarazConfigResponse¶added inv0.86.0
type ZarazConfigResponse struct {ResultZarazConfig `json:"result"`Response}
typeZarazConfigSettings¶added inv0.86.0
type ZarazConfigSettings struct {AutoInjectScript *bool `json:"autoInjectScript"`InjectIframes *bool `json:"injectIframes,omitempty"`Ecommerce *bool `json:"ecommerce,omitempty"`HideQueryParams *bool `json:"hideQueryParams,omitempty"`HideIpAddress *bool `json:"hideIPAddress,omitempty"`HideUserAgent *bool `json:"hideUserAgent,omitempty"`HideExternalReferer *bool `json:"hideExternalReferer,omitempty"`CookieDomainstring `json:"cookieDomain,omitempty"`InitPathstring `json:"initPath,omitempty"`ScriptPathstring `json:"scriptPath,omitempty"`TrackPathstring `json:"trackPath,omitempty"`EventsApiPathstring `json:"eventsApiPath,omitempty"`McRootPathstring `json:"mcRootPath,omitempty"`ContextEnricherZarazWorker `json:"contextEnricher,omitempty"`}
typeZarazConsent¶added inv0.86.0
type ZarazConsent struct {Enabled *bool `json:"enabled"`ButtonTextTranslationsZarazButtonTextTranslations `json:"buttonTextTranslations,omitempty"`CompanyEmailstring `json:"companyEmail,omitempty"`CompanyNamestring `json:"companyName,omitempty"`CompanyStreetAddressstring `json:"companyStreetAddress,omitempty"`ConsentModalIntroHTMLstring `json:"consentModalIntroHTML,omitempty"`ConsentModalIntroHTMLWithTranslations map[string]string `json:"consentModalIntroHTMLWithTranslations,omitempty"`CookieNamestring `json:"cookieName,omitempty"`CustomCSSstring `json:"customCSS,omitempty"`CustomIntroDisclaimerDismissed *bool `json:"customIntroDisclaimerDismissed,omitempty"`DefaultLanguagestring `json:"defaultLanguage,omitempty"`HideModal *bool `json:"hideModal,omitempty"`Purposes map[string]ZarazPurpose `json:"purposes,omitempty"`PurposesWithTranslations map[string]ZarazPurposeWithTranslations `json:"purposesWithTranslations,omitempty"`}
typeZarazHistoryRecord¶added inv0.86.0
typeZarazLoadRuleOp¶added inv0.86.0
type ZarazLoadRuleOpstring
typeZarazNeoEventdeprecatedadded inv0.86.0
typeZarazPublishResponse¶added inv0.86.0
typeZarazPurpose¶added inv0.86.0
typeZarazPurposeWithTranslations¶added inv0.86.0
typeZarazRuleSettings¶added inv0.86.0
type ZarazRuleSettings struct {TypeZarazSelectorType `json:"type,omitempty"`Selectorstring `json:"selector,omitempty"`WaitForTagsint `json:"waitForTags,omitempty"`Intervalint `json:"interval,omitempty"`Limitint `json:"limit,omitempty"`Validate *bool `json:"validate,omitempty"`Variablestring `json:"variable,omitempty"`Matchstring `json:"match,omitempty"`Positionsstring `json:"positions,omitempty"`OpZarazLoadRuleOp `json:"op,omitempty"`Valuestring `json:"value,omitempty"`}
typeZarazRuleType¶added inv0.86.0
type ZarazRuleTypestring
const (ZarazClickListenerZarazRuleType = "clickListener"ZarazTimerZarazRuleType = "timer"ZarazFormSubmissionZarazRuleType = "formSubmission"ZarazVariableMatchZarazRuleType = "variableMatch"ZarazScrollDepthZarazRuleType = "scrollDepth"ZarazElementVisibilityZarazRuleType = "elementVisibility"ZarazClientEvalZarazRuleType = "clientEval")
typeZarazSelectorType¶added inv0.86.0
type ZarazSelectorTypestring
const (ZarazXPathZarazSelectorType = "xpath"ZarazCSSZarazSelectorType = "css")
typeZarazTool¶added inv0.86.0
type ZarazTool struct {BlockingTriggers []string `json:"blockingTriggers"`Enabled *bool `json:"enabled"`DefaultFields map[string]any `json:"defaultFields"`Namestring `json:"name"`NeoEvents []ZarazNeoEvent `json:"neoEvents"`Actions map[string]ZarazAction `json:"actions"`TypeZarazToolType `json:"type"`DefaultPurposestring `json:"defaultPurpose,omitempty"`Librarystring `json:"library,omitempty"`Componentstring `json:"component,omitempty"`Permissions []string `json:"permissions"`Settings map[string]any `json:"settings"`WorkerZarazWorker `json:"worker,omitempty"`}
typeZarazToolType¶added inv0.86.0
type ZarazToolTypestring
const (ZarazToolLibraryZarazToolType = "library"ZarazToolComponentZarazToolType = "component"ZarazToolCustomMcZarazToolType = "custom-mc")
typeZarazTrigger¶added inv0.86.0
type ZarazTrigger struct {Namestring `json:"name"`Descriptionstring `json:"description,omitempty"`LoadRules []ZarazTriggerRule `json:"loadRules"`ExcludeRules []ZarazTriggerRule `json:"excludeRules"`ClientRules []any `json:"clientRules,omitempty"`// what is this?SystemZarazTriggerSystem `json:"system,omitempty"`}
typeZarazTriggerRule¶added inv0.86.0
type ZarazTriggerRule struct {Idstring `json:"id"`Matchstring `json:"match,omitempty"`OpZarazLoadRuleOp `json:"op,omitempty"`Valuestring `json:"value,omitempty"`ActionZarazRuleType `json:"action"`SettingsZarazRuleSettings `json:"settings"`}
typeZarazTriggerSystem¶added inv0.86.0
type ZarazTriggerSystemstring
const ZarazPageloadZarazTriggerSystem = "pageload"
typeZarazVariable¶added inv0.86.0
type ZarazVariable struct {Namestring `json:"name"`TypeZarazVariableType `json:"type"`Value interface{} `json:"value"`}
typeZarazVariableType¶added inv0.86.0
type ZarazVariableTypestring
const (ZarazVarStringZarazVariableType = "string"ZarazVarSecretZarazVariableType = "secret"ZarazVarWorkerZarazVariableType = "worker")
typeZarazWorker¶added inv0.86.0
typeZarazWorkflowResponse¶added inv0.86.0
typeZone¶added inv0.7.2
type Zone struct {IDstring `json:"id"`Namestring `json:"name"`// DevMode contains the time in seconds until development expires (if// positive) or since it expired (if negative). It will be 0 if never used.DevModeint `json:"development_mode"`OriginalNS []string `json:"original_name_servers"`OriginalRegistrarstring `json:"original_registrar"`OriginalDNSHoststring `json:"original_dnshost"`CreatedOntime.Time `json:"created_on"`ModifiedOntime.Time `json:"modified_on"`NameServers []string `json:"name_servers"`OwnerOwner `json:"owner"`Permissions []string `json:"permissions"`PlanZonePlan `json:"plan"`PlanPendingZonePlan `json:"plan_pending,omitempty"`Statusstring `json:"status"`Pausedbool `json:"paused"`Typestring `json:"type"`Host struct {NamestringWebsitestring} `json:"host"`VanityNS []string `json:"vanity_name_servers"`Betas []string `json:"betas"`DeactReasonstring `json:"deactivation_reason"`MetaZoneMeta `json:"meta"`AccountAccount `json:"account"`VerificationKeystring `json:"verification_key"`}
Zone describes a Cloudflare zone.
typeZoneAnalytics¶added inv0.7.2
type ZoneAnalytics struct {Sincetime.Time `json:"since"`Untiltime.Time `json:"until"`Requests struct {Allint `json:"all"`Cachedint `json:"cached"`Uncachedint `json:"uncached"`ContentType map[string]int `json:"content_type"`Country map[string]int `json:"country"`SSL struct {Encryptedint `json:"encrypted"`Unencryptedint `json:"unencrypted"`} `json:"ssl"`HTTPStatus map[string]int `json:"http_status"`} `json:"requests"`Bandwidth struct {Allint `json:"all"`Cachedint `json:"cached"`Uncachedint `json:"uncached"`ContentType map[string]int `json:"content_type"`Country map[string]int `json:"country"`SSL struct {Encryptedint `json:"encrypted"`Unencryptedint `json:"unencrypted"`} `json:"ssl"`} `json:"bandwidth"`Threats struct {Allint `json:"all"`Country map[string]int `json:"country"`Type map[string]int `json:"type"`} `json:"threats"`Pageviews struct {Allint `json:"all"`SearchEngines map[string]int `json:"search_engines"`} `json:"pageviews"`Uniques struct {Allint `json:"all"`}}
ZoneAnalytics contains analytics data for a zone.
typeZoneAnalyticsColocation¶added inv0.7.2
type ZoneAnalyticsColocation struct {ColocationIDstring `json:"colo_id"`Timeseries []ZoneAnalytics `json:"timeseries"`}
ZoneAnalyticsColocation contains analytics data by datacenter.
typeZoneAnalyticsData¶added inv0.7.2
type ZoneAnalyticsData struct {TotalsZoneAnalytics `json:"totals"`Timeseries []ZoneAnalytics `json:"timeseries"`}
ZoneAnalyticsData contains totals and timeseries analytics data for a zone.
typeZoneAnalyticsOptions¶added inv0.7.2
ZoneAnalyticsOptions represents the optional parameters in Zone Analyticsendpoint requests.
typeZoneCacheVariants¶added inv0.32.0
type ZoneCacheVariants struct {ModifiedOntime.Time `json:"modified_on"`ValueZoneCacheVariantsValues `json:"value"`}
typeZoneCacheVariantsValues¶added inv0.32.0
type ZoneCacheVariantsValues struct {Avif []string `json:"avif,omitempty"`Bmp []string `json:"bmp,omitempty"`Gif []string `json:"gif,omitempty"`Jpeg []string `json:"jpeg,omitempty"`Jpg []string `json:"jpg,omitempty"`Jpg2 []string `json:"jpg2,omitempty"`Jp2 []string `json:"jp2,omitempty"`Png []string `json:"png,omitempty"`Tiff []string `json:"tiff,omitempty"`Tif []string `json:"tif,omitempty"`Webp []string `json:"webp,omitempty"`}
typeZoneCustomSSL¶added inv0.7.2
type ZoneCustomSSL struct {IDstring `json:"id"`Hosts []string `json:"hosts"`Issuerstring `json:"issuer"`Signaturestring `json:"signature"`Statusstring `json:"status"`BundleMethodstring `json:"bundle_method"`GeoRestrictions *ZoneCustomSSLGeoRestrictions `json:"geo_restrictions,omitempty"`ZoneIDstring `json:"zone_id"`UploadedOntime.Time `json:"uploaded_on"`ModifiedOntime.Time `json:"modified_on"`ExpiresOntime.Time `json:"expires_on"`Priorityint `json:"priority"`KeylessServerKeylessSSL `json:"keyless_server"`}
ZoneCustomSSL represents custom SSL certificate metadata.
typeZoneCustomSSLGeoRestrictions¶added inv0.9.4
type ZoneCustomSSLGeoRestrictions struct {Labelstring `json:"label"`}
ZoneCustomSSLGeoRestrictions represents the parameter to create or updategeographic restrictions on a custom ssl certificate.
typeZoneCustomSSLOptions¶added inv0.7.2
type ZoneCustomSSLOptions struct {Certificatestring `json:"certificate"`PrivateKeystring `json:"private_key"`BundleMethodstring `json:"bundle_method,omitempty"`GeoRestrictions *ZoneCustomSSLGeoRestrictions `json:"geo_restrictions,omitempty"`Typestring `json:"type,omitempty"`}
ZoneCustomSSLOptions represents the parameters to create or update an existingcustom SSL configuration.
typeZoneCustomSSLPriority¶added inv0.7.2
ZoneCustomSSLPriority represents a certificate's ID and priority. It is asubset of ZoneCustomSSL used for patch requests.
typeZoneDNSSEC¶added inv0.13.5
type ZoneDNSSEC struct {Statusstring `json:"status"`Flagsint `json:"flags"`Algorithmstring `json:"algorithm"`KeyTypestring `json:"key_type"`DigestTypestring `json:"digest_type"`DigestAlgorithmstring `json:"digest_algorithm"`Digeststring `json:"digest"`DSstring `json:"ds"`KeyTagint `json:"key_tag"`PublicKeystring `json:"public_key"`ModifiedOntime.Time `json:"modified_on"`}
ZoneDNSSEC represents the response from the Zone DNSSEC Setting result.
typeZoneDNSSECDeleteResponse¶added inv0.13.5
ZoneDNSSECDeleteResponse represents the response from the Zone DNSSEC Delete request.
typeZoneDNSSECResponse¶added inv0.13.5
type ZoneDNSSECResponse struct {ResponseResultZoneDNSSEC `json:"result"`}
ZoneDNSSECResponse represents the response from the Zone DNSSEC Setting.
typeZoneDNSSECUpdateOptions¶added inv0.13.5
type ZoneDNSSECUpdateOptions struct {Statusstring `json:"status"`}
ZoneDNSSECUpdateOptions represents the options for DNSSEC update.
typeZoneHold¶added inv0.75.0
type ZoneHold struct {Hold *bool `json:"hold,omitempty"`IncludeSubdomains *bool `json:"include_subdomains,omitempty"`HoldAfter *time.Time `json:"hold_after,omitempty"`}
Retrieve whether the zone is subject to a zone hold, and metadata about thehold.
typeZoneHoldResponse¶added inv0.75.0
type ZoneHoldResponse struct {ResultZoneHold `json:"result"`ResponseResultInfo `json:"result_info"`}
ZoneHoldResponse represents a response from the Zone Hold endpoint.
typeZoneIDResponse¶added inv0.7.2
ZoneIDResponse represents the response from the Zone endpoint, containing only a zone ID.
typeZoneLockdown¶added inv0.8.0
type ZoneLockdown struct {IDstring `json:"id"`Descriptionstring `json:"description"`URLs []string `json:"urls"`Configurations []ZoneLockdownConfig `json:"configurations"`Pausedbool `json:"paused"`Priorityint `json:"priority,omitempty"`CreatedOn *time.Time `json:"created_on,omitempty"`ModifiedOn *time.Time `json:"modified_on,omitempty"`}
ZoneLockdown represents a Zone Lockdown rule. A rule only permits access tothe provided URL pattern(s) from the given IP address(es) or subnet(s).
typeZoneLockdownConfig¶added inv0.8.0
ZoneLockdownConfig represents a Zone Lockdown config, which comprisesa Target ("ip" or "ip_range") and a Value (an IP address or IP+mask,respectively.)
typeZoneLockdownCreateParams¶added inv0.47.0
type ZoneLockdownCreateParams struct {Descriptionstring `json:"description"`URLs []string `json:"urls"`Configurations []ZoneLockdownConfig `json:"configurations"`Pausedbool `json:"paused"`Priorityint `json:"priority,omitempty"`}
ZoneLockdownCreateParams contains required and optional paramsfor creating a zone lockdown.
typeZoneLockdownListResponse¶added inv0.8.0
type ZoneLockdownListResponse struct {Result []ZoneLockdown `json:"result"`ResponseResultInfo `json:"result_info"`}
ZoneLockdownListResponse represents a response from the List Zone Lockdownendpoint.
typeZoneLockdownResponse¶added inv0.8.0
type ZoneLockdownResponse struct {ResultZoneLockdown `json:"result"`ResponseResultInfo `json:"result_info"`}
ZoneLockdownResponse represents a response from the Zone Lockdown endpoint.
typeZoneLockdownUpdateParams¶added inv0.47.0
type ZoneLockdownUpdateParams struct {IDstring `json:"id"`Descriptionstring `json:"description"`URLs []string `json:"urls"`Configurations []ZoneLockdownConfig `json:"configurations"`Pausedbool `json:"paused"`Priorityint `json:"priority,omitempty"`}
ZoneLockdownUpdateParams contains required and optional paramsfor updating a zone lockdown.
typeZoneMeta¶added inv0.7.2
type ZoneMeta struct {// custom_certificate_quota is broken - sometimes it's a string, sometimes a number!// CustCertQuota int `json:"custom_certificate_quota"`PageRuleQuotaint `json:"page_rule_quota"`WildcardProxiablebool `json:"wildcard_proxiable"`PhishingDetectedbool `json:"phishing_detected"`}
ZoneMeta describes metadata about a zone.
typeZoneOptions¶added inv0.7.2
type ZoneOptions struct {Paused *bool `json:"paused,omitempty"`VanityNS []string `json:"vanity_name_servers,omitempty"`Plan *ZonePlan `json:"plan,omitempty"`Typestring `json:"type,omitempty"`}
ZoneOptions is a subset of Zone, for editable options.
typeZonePlan¶added inv0.7.2
type ZonePlan struct {ZonePlanCommonLegacyIDstring `json:"legacy_id"`IsSubscribedbool `json:"is_subscribed"`CanSubscribebool `json:"can_subscribe"`LegacyDiscountbool `json:"legacy_discount"`ExternallyManagedbool `json:"externally_managed"`}
ZonePlan contains the plan information for a zone.
typeZonePlanCommon¶added inv0.9.0
type ZonePlanCommon struct {IDstring `json:"id"`Namestring `json:"name,omitempty"`Priceint `json:"price,omitempty"`Currencystring `json:"currency,omitempty"`Frequencystring `json:"frequency,omitempty"`}
ZonePlanCommon contains fields used by various Plan endpoints.
typeZoneRatePlan¶added inv0.7.4
type ZoneRatePlan struct {ZonePlanCommonComponents []zoneRatePlanComponents `json:"components,omitempty"`}
ZoneRatePlan contains the plan information for a zone.
typeZoneRatePlanResponse¶added inv0.7.4
type ZoneRatePlanResponse struct {ResponseResultZoneRatePlan `json:"result"`}
ZoneRatePlanResponse represents the response from the Plan Details endpoint.
typeZoneResponse¶added inv0.7.2
ZoneResponse represents the response from the Zone endpoint containing a single zone.
typeZoneSSLSetting¶added inv0.7.4
type ZoneSSLSetting struct {IDstring `json:"id"`Editablebool `json:"editable"`ModifiedOnstring `json:"modified_on"`Valuestring `json:"value"`CertificateStatusstring `json:"certificate_status"`}
ZoneSSLSetting contains ssl setting for a zone.
typeZoneSSLSettingResponse¶added inv0.7.4
type ZoneSSLSettingResponse struct {ResponseResultZoneSSLSetting `json:"result"`}
ZoneSSLSettingResponse represents the response from the Zone SSL Setting
typeZoneSetting¶added inv0.7.2
type ZoneSetting struct {IDstring `json:"id"`Editablebool `json:"editable"`ModifiedOnstring `json:"modified_on,omitempty"`Value interface{} `json:"value"`TimeRemainingint `json:"time_remaining"`NextScheduledScanstring `json:"next_scheduled_scan,omitempty"`}
ZoneSetting contains settings for a zone.
typeZoneSettingResponse¶added inv0.7.2
type ZoneSettingResponse struct {ResponseResult []ZoneSetting `json:"result"`}
ZoneSettingResponse represents the response from the Zone Setting endpoint.
typeZoneSettingSingleResponse¶added inv0.10.2
type ZoneSettingSingleResponse struct {ResponseResultZoneSetting `json:"result"`}
ZoneSettingSingleResponse represents the response from the Zone Setting endpoint for the specified setting.
typeZonesResponse¶added inv0.7.2
type ZonesResponse struct {ResponseResult []Zone `json:"result"`ResultInfo `json:"result_info"`}
ZonesResponse represents the response from the Zone endpoint containing an array of zones.
Source Files¶
- access_application.go
- access_audit_log.go
- access_bookmark.go
- access_ca_certificate.go
- access_custom_page.go
- access_group.go
- access_identity_provider.go
- access_infrastructure_application.go
- access_keys.go
- access_mutual_tls_certificates.go
- access_organization.go
- access_policy.go
- access_seats.go
- access_service_tokens.go
- access_tag.go
- access_user_tokens.go
- access_users.go
- account_members.go
- account_roles.go
- accounts.go
- addressing_address_map.go
- addressing_ip_prefix.go
- api_shield.go
- api_shield_api_discovery.go
- api_shield_operations.go
- api_shield_schemas.go
- api_token.go
- argo.go
- argo_tunnel.go
- auditlogs.go
- authenticated_origin_pulls.go
- authenticated_origin_pulls_per_hostname.go
- authenticated_origin_pulls_per_zone.go
- bot_management.go
- cache_reserve.go
- certificate_authorities.go
- certificate_packs.go
- cloud_connector.go
- cloudflare.go
- consts.go
- content_scanning.go
- convert_types.go
- custom_hostname.go
- custom_nameservers.go
- custom_pages.go
- d1.go
- dcv_delegation.go
- device_posture_rule.go
- devices_dex.go
- devices_managed_networks.go
- devices_policy.go
- diagnostics.go
- dlp_dataset.go
- dlp_payload_log.go
- dlp_profile.go
- dns.go
- dns_firewall.go
- duration.go
- email_routing_destination.go
- email_routing_rules.go
- email_routing_settings.go
- errors.go
- fallback_domain.go
- filter.go
- firewall.go
- firewall_rules.go
- gateway_categories.go
- healthchecks.go
- hyperdrive.go
- images.go
- images_variants.go
- infrastructure_access_target.go
- intelligence_asn.go
- intelligence_domain.go
- intelligence_ip.go
- intelligence_phishing.go
- intelligence_whois.go
- ip_access_rules.go
- ip_list.go
- ips.go
- keyless.go
- leaked_credential_check.go
- list.go
- load_balancing.go
- lockdown.go
- logger.go
- logpull.go
- logpush.go
- magic_firewall_rulesets.go
- magic_transit_gre_tunnel.go
- magic_transit_ipsec_tunnel.go
- magic_transit_static_routes.go
- magic_transit_tunnel_healthcheck.go
- managed_headers.go
- miscategorization.go
- mtls_certificates.go
- notifications.go
- observatory.go
- options.go
- origin_ca.go
- page_rules.go
- page_shield.go
- page_shield_connections.go
- page_shield_policies.go
- page_shield_scripts.go
- pages_deployment.go
- pages_domain.go
- pages_project.go
- pagination.go
- per_hostname_tls_settings.go
- permission_group.go
- policy.go
- queue.go
- r2_bucket.go
- rate_limiting.go
- regional_hostnames.go
- regional_tiered_cache.go
- registrar.go
- resource.go
- resource_group.go
- rulesets.go
- secondary_dns_primaries.go
- secondary_dns_tsig.go
- secondary_dns_zone.go
- snippets.go
- snippets_rules.go
- spectrum.go
- split_tunnel.go
- ssl.go
- stream.go
- teams_accounts.go
- teams_audit_ssh_settings.go
- teams_certificates.go
- teams_devices.go
- teams_list.go
- teams_locations.go
- teams_proxy_endpoints.go
- teams_rules.go
- tiered_cache.go
- total_tls.go
- tunnel.go
- tunnel_routes.go
- tunnel_virtual_networks.go
- turnstile.go
- universal_ssl.go
- url_normalization_settings.go
- user.go
- user_agent.go
- utils.go
- waf.go
- waf_overrides.go
- waiting_room.go
- web3.go
- web_analytics.go
- workers.go
- workers_account_settings.go
- workers_bindings.go
- workers_cron_triggers.go
- workers_domain.go
- workers_for_platforms.go
- workers_kv.go
- workers_routes.go
- workers_secrets.go
- workers_subdomain.go
- workers_tail.go
- zaraz.go
- zone.go
- zone_cache_variants.go
- zone_hold.go
- zt_risk_behaviors.go
- zt_risk_score_integration.go