Documentation ¶
Index ¶
- Constants
- type AccessApplicationCADeleteParams
- type AccessApplicationCADeleteResponse
- type AccessApplicationCADeleteResponseEnvelope
- type AccessApplicationCADeleteResponseEnvelopeSuccess
- type AccessApplicationCAGetParams
- type AccessApplicationCAGetResponseEnvelope
- type AccessApplicationCAGetResponseEnvelopeSuccess
- type AccessApplicationCAGetResponseUnion
- type AccessApplicationCAListParams
- type AccessApplicationCANewParams
- type AccessApplicationCANewResponseEnvelope
- type AccessApplicationCANewResponseEnvelopeSuccess
- type AccessApplicationCANewResponseUnion
- type AccessApplicationCAService
- func (r *AccessApplicationCAService) Delete(ctx context.Context, uuid string, body AccessApplicationCADeleteParams, ...) (res *AccessApplicationCADeleteResponse, err error)
- func (r *AccessApplicationCAService) Get(ctx context.Context, uuid string, query AccessApplicationCAGetParams, ...) (res *AccessApplicationCAGetResponseUnion, err error)
- func (r *AccessApplicationCAService) List(ctx context.Context, query AccessApplicationCAListParams, ...) (res *pagination.SinglePage[CA], err error)
- func (r *AccessApplicationCAService) ListAutoPaging(ctx context.Context, query AccessApplicationCAListParams, ...) *pagination.SinglePageAutoPager[CA]
- func (r *AccessApplicationCAService) New(ctx context.Context, uuid string, body AccessApplicationCANewParams, ...) (res *AccessApplicationCANewResponseUnion, err error)
- type AccessApplicationDeleteParams
- type AccessApplicationDeleteResponse
- type AccessApplicationDeleteResponseEnvelope
- type AccessApplicationDeleteResponseEnvelopeSuccess
- type AccessApplicationGetParams
- type AccessApplicationGetResponseEnvelope
- type AccessApplicationGetResponseEnvelopeSuccess
- type AccessApplicationListParams
- type AccessApplicationNewParams
- type AccessApplicationNewResponseEnvelope
- type AccessApplicationNewResponseEnvelopeSuccess
- type AccessApplicationPolicyDeleteParams
- type AccessApplicationPolicyDeleteResponse
- type AccessApplicationPolicyDeleteResponseEnvelope
- type AccessApplicationPolicyDeleteResponseEnvelopeSuccess
- type AccessApplicationPolicyGetParams
- type AccessApplicationPolicyGetResponseEnvelope
- type AccessApplicationPolicyGetResponseEnvelopeSuccess
- type AccessApplicationPolicyListParams
- type AccessApplicationPolicyNewParams
- type AccessApplicationPolicyNewParamsDecision
- type AccessApplicationPolicyNewResponseEnvelope
- type AccessApplicationPolicyNewResponseEnvelopeSuccess
- type AccessApplicationPolicyService
- func (r *AccessApplicationPolicyService) Delete(ctx context.Context, uuid1 string, uuid string, ...) (res *AccessApplicationPolicyDeleteResponse, err error)
- func (r *AccessApplicationPolicyService) Get(ctx context.Context, uuid1 string, uuid string, ...) (res *Policy, err error)
- func (r *AccessApplicationPolicyService) List(ctx context.Context, uuid string, query AccessApplicationPolicyListParams, ...) (res *pagination.SinglePage[Policy], err error)
- func (r *AccessApplicationPolicyService) ListAutoPaging(ctx context.Context, uuid string, query AccessApplicationPolicyListParams, ...) *pagination.SinglePageAutoPager[Policy]
- func (r *AccessApplicationPolicyService) New(ctx context.Context, uuid string, params AccessApplicationPolicyNewParams, ...) (res *Policy, err error)
- func (r *AccessApplicationPolicyService) Update(ctx context.Context, uuid1 string, uuid string, ...) (res *Policy, err error)
- type AccessApplicationPolicyUpdateParams
- type AccessApplicationPolicyUpdateParamsDecision
- type AccessApplicationPolicyUpdateResponseEnvelope
- type AccessApplicationPolicyUpdateResponseEnvelopeSuccess
- type AccessApplicationRevokeTokensParams
- type AccessApplicationRevokeTokensResponse
- type AccessApplicationRevokeTokensResponseEnvelope
- type AccessApplicationRevokeTokensResponseEnvelopeSuccess
- type AccessApplicationService
- func (r *AccessApplicationService) Delete(ctx context.Context, appID AppIDUnionParam, body AccessApplicationDeleteParams, ...) (res *AccessApplicationDeleteResponse, err error)
- func (r *AccessApplicationService) Get(ctx context.Context, appID AppIDUnionParam, query AccessApplicationGetParams, ...) (res *Application, err error)
- func (r *AccessApplicationService) List(ctx context.Context, query AccessApplicationListParams, ...) (res *pagination.SinglePage[Application], err error)
- func (r *AccessApplicationService) ListAutoPaging(ctx context.Context, query AccessApplicationListParams, ...) *pagination.SinglePageAutoPager[Application]
- func (r *AccessApplicationService) New(ctx context.Context, params AccessApplicationNewParams, ...) (res *Application, err error)
- func (r *AccessApplicationService) RevokeTokens(ctx context.Context, appID AppIDUnionParam, ...) (res *AccessApplicationRevokeTokensResponse, err error)
- func (r *AccessApplicationService) Update(ctx context.Context, appID AppIDUnionParam, ...) (res *Application, err error)
- type AccessApplicationUpdateParams
- type AccessApplicationUpdateResponseEnvelope
- type AccessApplicationUpdateResponseEnvelopeSuccess
- type AccessApplicationUserPolicyCheckListParams
- type AccessApplicationUserPolicyCheckListResponse
- type AccessApplicationUserPolicyCheckListResponseAppState
- type AccessApplicationUserPolicyCheckListResponseEnvelope
- type AccessApplicationUserPolicyCheckListResponseEnvelopeSuccess
- type AccessApplicationUserPolicyCheckListResponseUserIdentity
- type AccessApplicationUserPolicyCheckService
- type AccessBookmarkDeleteParams
- type AccessBookmarkDeleteResponse
- type AccessBookmarkDeleteResponseEnvelope
- type AccessBookmarkDeleteResponseEnvelopeSuccess
- type AccessBookmarkGetResponseEnvelope
- type AccessBookmarkGetResponseEnvelopeSuccess
- type AccessBookmarkNewParams
- type AccessBookmarkNewResponseEnvelope
- type AccessBookmarkNewResponseEnvelopeSuccess
- type AccessBookmarkService
- func (r *AccessBookmarkService) Delete(ctx context.Context, identifier string, uuid string, ...) (res *AccessBookmarkDeleteResponse, err error)
- func (r *AccessBookmarkService) Get(ctx context.Context, identifier string, uuid string, ...) (res *Bookmark, err error)
- func (r *AccessBookmarkService) List(ctx context.Context, identifier string, opts ...option.RequestOption) (res *pagination.SinglePage[Bookmark], err error)
- func (r *AccessBookmarkService) ListAutoPaging(ctx context.Context, identifier string, opts ...option.RequestOption) *pagination.SinglePageAutoPager[Bookmark]
- func (r *AccessBookmarkService) New(ctx context.Context, identifier string, uuid string, ...) (res *Bookmark, err error)
- func (r *AccessBookmarkService) Update(ctx context.Context, identifier string, uuid string, ...) (res *Bookmark, err error)
- type AccessBookmarkUpdateParams
- type AccessBookmarkUpdateResponseEnvelope
- type AccessBookmarkUpdateResponseEnvelopeSuccess
- type AccessCertificateDeleteParams
- type AccessCertificateDeleteResponse
- type AccessCertificateDeleteResponseEnvelope
- type AccessCertificateDeleteResponseEnvelopeSuccess
- type AccessCertificateGetParams
- type AccessCertificateGetResponseEnvelope
- type AccessCertificateGetResponseEnvelopeSuccess
- type AccessCertificateListParams
- type AccessCertificateNewParams
- type AccessCertificateNewResponseEnvelope
- type AccessCertificateNewResponseEnvelopeSuccess
- type AccessCertificateService
- func (r *AccessCertificateService) Delete(ctx context.Context, uuid string, body AccessCertificateDeleteParams, ...) (res *AccessCertificateDeleteResponse, err error)
- func (r *AccessCertificateService) Get(ctx context.Context, uuid string, query AccessCertificateGetParams, ...) (res *Certificate, err error)
- func (r *AccessCertificateService) List(ctx context.Context, query AccessCertificateListParams, ...) (res *pagination.SinglePage[Certificate], err error)
- func (r *AccessCertificateService) ListAutoPaging(ctx context.Context, query AccessCertificateListParams, ...) *pagination.SinglePageAutoPager[Certificate]
- func (r *AccessCertificateService) New(ctx context.Context, params AccessCertificateNewParams, ...) (res *Certificate, err error)
- func (r *AccessCertificateService) Update(ctx context.Context, uuid string, params AccessCertificateUpdateParams, ...) (res *Certificate, err error)
- type AccessCertificateSettingGetParams
- type AccessCertificateSettingGetResponseEnvelope
- type AccessCertificateSettingGetResponseEnvelopeResultInfo
- type AccessCertificateSettingGetResponseEnvelopeSuccess
- type AccessCertificateSettingService
- func (r *AccessCertificateSettingService) Get(ctx context.Context, query AccessCertificateSettingGetParams, ...) (res *[]CertificateSettings, err error)
- func (r *AccessCertificateSettingService) Update(ctx context.Context, params AccessCertificateSettingUpdateParams, ...) (res *[]CertificateSettings, err error)
- type AccessCertificateSettingUpdateParams
- type AccessCertificateSettingUpdateResponseEnvelope
- type AccessCertificateSettingUpdateResponseEnvelopeResultInfo
- type AccessCertificateSettingUpdateResponseEnvelopeSuccess
- type AccessCertificateUpdateParams
- type AccessCertificateUpdateResponseEnvelope
- type AccessCertificateUpdateResponseEnvelopeSuccess
- type AccessCustomPageDeleteResponse
- type AccessCustomPageDeleteResponseEnvelope
- type AccessCustomPageDeleteResponseEnvelopeSuccess
- type AccessCustomPageGetResponseEnvelope
- type AccessCustomPageGetResponseEnvelopeSuccess
- type AccessCustomPageNewParams
- type AccessCustomPageNewResponseEnvelope
- type AccessCustomPageNewResponseEnvelopeSuccess
- type AccessCustomPageService
- func (r *AccessCustomPageService) Delete(ctx context.Context, identifier string, uuid string, ...) (res *AccessCustomPageDeleteResponse, err error)
- func (r *AccessCustomPageService) Get(ctx context.Context, identifier string, uuid string, ...) (res *CustomPage, err error)
- func (r *AccessCustomPageService) List(ctx context.Context, identifier string, opts ...option.RequestOption) (res *pagination.SinglePage[CustomPageWithoutHTML], err error)
- func (r *AccessCustomPageService) ListAutoPaging(ctx context.Context, identifier string, opts ...option.RequestOption) *pagination.SinglePageAutoPager[CustomPageWithoutHTML]
- func (r *AccessCustomPageService) New(ctx context.Context, identifier string, body AccessCustomPageNewParams, ...) (res *CustomPageWithoutHTML, err error)
- func (r *AccessCustomPageService) Update(ctx context.Context, identifier string, uuid string, ...) (res *CustomPageWithoutHTML, err error)
- type AccessCustomPageUpdateParams
- type AccessCustomPageUpdateResponseEnvelope
- type AccessCustomPageUpdateResponseEnvelopeSuccess
- type AccessDevicePostureRule
- type AccessDevicePostureRuleDevicePosture
- type AccessDevicePostureRuleDevicePostureParam
- type AccessDevicePostureRuleParam
- type AccessGroupDeleteParams
- type AccessGroupDeleteResponse
- type AccessGroupDeleteResponseEnvelope
- type AccessGroupDeleteResponseEnvelopeSuccess
- type AccessGroupGetParams
- type AccessGroupGetResponseEnvelope
- type AccessGroupGetResponseEnvelopeSuccess
- type AccessGroupListParams
- type AccessGroupNewParams
- type AccessGroupNewResponseEnvelope
- type AccessGroupNewResponseEnvelopeSuccess
- type AccessGroupService
- func (r *AccessGroupService) Delete(ctx context.Context, uuid string, body AccessGroupDeleteParams, ...) (res *AccessGroupDeleteResponse, err error)
- func (r *AccessGroupService) Get(ctx context.Context, uuid string, query AccessGroupGetParams, ...) (res *ZeroTrustGroup, err error)
- func (r *AccessGroupService) List(ctx context.Context, query AccessGroupListParams, opts ...option.RequestOption) (res *pagination.SinglePage[ZeroTrustGroup], err error)
- func (r *AccessGroupService) ListAutoPaging(ctx context.Context, query AccessGroupListParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[ZeroTrustGroup]
- func (r *AccessGroupService) New(ctx context.Context, params AccessGroupNewParams, opts ...option.RequestOption) (res *ZeroTrustGroup, err error)
- func (r *AccessGroupService) Update(ctx context.Context, uuid string, params AccessGroupUpdateParams, ...) (res *ZeroTrustGroup, err error)
- type AccessGroupUpdateParams
- type AccessGroupUpdateResponseEnvelope
- type AccessGroupUpdateResponseEnvelopeSuccess
- type AccessKeyGetResponseEnvelope
- type AccessKeyGetResponseEnvelopeSuccess
- type AccessKeyGetResponseUnion
- type AccessKeyRotateResponseEnvelope
- type AccessKeyRotateResponseEnvelopeSuccess
- type AccessKeyRotateResponseUnion
- type AccessKeyService
- func (r *AccessKeyService) Get(ctx context.Context, identifier string, opts ...option.RequestOption) (res *AccessKeyGetResponseUnion, err error)
- func (r *AccessKeyService) Rotate(ctx context.Context, identifier string, opts ...option.RequestOption) (res *AccessKeyRotateResponseUnion, err error)
- func (r *AccessKeyService) Update(ctx context.Context, identifier string, body AccessKeyUpdateParams, ...) (res *AccessKeyUpdateResponseUnion, err error)
- type AccessKeyUpdateParams
- type AccessKeyUpdateResponseEnvelope
- type AccessKeyUpdateResponseEnvelopeSuccess
- type AccessKeyUpdateResponseUnion
- type AccessLogAccessRequestListResponseEnvelope
- type AccessLogAccessRequestListResponseEnvelopeResultInfo
- type AccessLogAccessRequestListResponseEnvelopeSuccess
- type AccessLogAccessRequestService
- type AccessLogService
- type AccessRequests
- type AccessRule
- type AccessRuleParam
- type AccessRuleUnion
- type AccessRuleUnionParam
- type AccessService
- type AccessServiceTokenDeleteParams
- type AccessServiceTokenDeleteResponseEnvelope
- type AccessServiceTokenDeleteResponseEnvelopeSuccess
- type AccessServiceTokenListParams
- type AccessServiceTokenNewParams
- type AccessServiceTokenNewResponse
- type AccessServiceTokenNewResponseEnvelope
- type AccessServiceTokenNewResponseEnvelopeSuccess
- type AccessServiceTokenRefreshResponseEnvelope
- type AccessServiceTokenRefreshResponseEnvelopeSuccess
- type AccessServiceTokenRotateResponse
- type AccessServiceTokenRotateResponseEnvelope
- type AccessServiceTokenRotateResponseEnvelopeSuccess
- type AccessServiceTokenService
- func (r *AccessServiceTokenService) Delete(ctx context.Context, uuid string, body AccessServiceTokenDeleteParams, ...) (res *ServiceToken, err error)
- func (r *AccessServiceTokenService) List(ctx context.Context, query AccessServiceTokenListParams, ...) (res *pagination.SinglePage[ServiceToken], err error)
- func (r *AccessServiceTokenService) ListAutoPaging(ctx context.Context, query AccessServiceTokenListParams, ...) *pagination.SinglePageAutoPager[ServiceToken]
- func (r *AccessServiceTokenService) New(ctx context.Context, params AccessServiceTokenNewParams, ...) (res *AccessServiceTokenNewResponse, err error)
- func (r *AccessServiceTokenService) Refresh(ctx context.Context, identifier string, uuid string, ...) (res *ServiceToken, err error)
- func (r *AccessServiceTokenService) Rotate(ctx context.Context, identifier string, uuid string, ...) (res *AccessServiceTokenRotateResponse, err error)
- func (r *AccessServiceTokenService) Update(ctx context.Context, uuid string, params AccessServiceTokenUpdateParams, ...) (res *ServiceToken, err error)
- type AccessServiceTokenUpdateParams
- type AccessServiceTokenUpdateResponseEnvelope
- type AccessServiceTokenUpdateResponseEnvelopeSuccess
- type AccessTagDeleteResponse
- type AccessTagDeleteResponseEnvelope
- type AccessTagDeleteResponseEnvelopeSuccess
- type AccessTagGetResponseEnvelope
- type AccessTagGetResponseEnvelopeSuccess
- type AccessTagNewParams
- type AccessTagNewResponseEnvelope
- type AccessTagNewResponseEnvelopeSuccess
- type AccessTagService
- func (r *AccessTagService) Delete(ctx context.Context, identifier string, name string, ...) (res *AccessTagDeleteResponse, err error)
- func (r *AccessTagService) Get(ctx context.Context, identifier string, name string, ...) (res *Tag, err error)
- func (r *AccessTagService) List(ctx context.Context, identifier string, opts ...option.RequestOption) (res *pagination.SinglePage[Tag], err error)
- func (r *AccessTagService) ListAutoPaging(ctx context.Context, identifier string, opts ...option.RequestOption) *pagination.SinglePageAutoPager[Tag]
- func (r *AccessTagService) New(ctx context.Context, identifier string, body AccessTagNewParams, ...) (res *Tag, err error)
- func (r *AccessTagService) Update(ctx context.Context, identifier string, tagName string, ...) (res *Tag, err error)
- type AccessTagUpdateParams
- type AccessTagUpdateResponseEnvelope
- type AccessTagUpdateResponseEnvelopeSuccess
- type AccessUser
- type AccessUserActiveSessionGetResponse
- type AccessUserActiveSessionGetResponseDevicePosture
- type AccessUserActiveSessionGetResponseDevicePostureCheck
- type AccessUserActiveSessionGetResponseDeviceSession
- type AccessUserActiveSessionGetResponseEnvelope
- type AccessUserActiveSessionGetResponseEnvelopeSuccess
- type AccessUserActiveSessionGetResponseIDP
- type AccessUserActiveSessionGetResponseMTLSAuth
- type AccessUserActiveSessionListResponse
- type AccessUserActiveSessionListResponseMetadata
- type AccessUserActiveSessionListResponseMetadataApp
- type AccessUserActiveSessionService
- func (r *AccessUserActiveSessionService) Get(ctx context.Context, identifier string, id string, nonce string, ...) (res *AccessUserActiveSessionGetResponse, err error)
- func (r *AccessUserActiveSessionService) List(ctx context.Context, identifier string, id string, ...) (res *pagination.SinglePage[AccessUserActiveSessionListResponse], err error)
- func (r *AccessUserActiveSessionService) ListAutoPaging(ctx context.Context, identifier string, id string, ...) *pagination.SinglePageAutoPager[AccessUserActiveSessionListResponse]
- type AccessUserFailedLoginListResponse
- type AccessUserFailedLoginService
- func (r *AccessUserFailedLoginService) List(ctx context.Context, identifier string, id string, ...) (res *pagination.SinglePage[AccessUserFailedLoginListResponse], err error)
- func (r *AccessUserFailedLoginService) ListAutoPaging(ctx context.Context, identifier string, id string, ...) *pagination.SinglePageAutoPager[AccessUserFailedLoginListResponse]
- type AccessUserLastSeenIdentityGetResponseEnvelope
- type AccessUserLastSeenIdentityGetResponseEnvelopeSuccess
- type AccessUserLastSeenIdentityService
- type AccessUserService
- func (r *AccessUserService) List(ctx context.Context, identifier string, opts ...option.RequestOption) (res *pagination.SinglePage[AccessUser], err error)
- func (r *AccessUserService) ListAutoPaging(ctx context.Context, identifier string, opts ...option.RequestOption) *pagination.SinglePageAutoPager[AccessUser]
- type ActivityLogSettings
- type ActivityLogSettingsParam
- type AggregateTimePeriod
- type AggregateTimePeriodUnits
- type AllowedHeadersh
- type AllowedHeadershParam
- type AllowedIdpsh
- type AllowedIdpshParam
- type AllowedMethodsh
- type AllowedOriginsh
- type AllowedOriginshParam
- type AntiVirusSettings
- type AntiVirusSettingsParam
- type AnyValidServiceTokenRule
- type AnyValidServiceTokenRuleParam
- type AppIDUnionParam
- type AppType
- type AppTypeUnion
- type AppTypeZeroTrustGatewayApplication
- type AppTypeZeroTrustGatewayApplicationType
- type Application
- type ApplicationAppLauncherApplication
- type ApplicationAppLauncherApplicationParam
- type ApplicationAppLauncherApplicationType
- type ApplicationBookmarkApplication
- type ApplicationBookmarkApplicationParam
- type ApplicationBrowserIsolationPermissionsApplication
- type ApplicationBrowserIsolationPermissionsApplicationParam
- type ApplicationBrowserIsolationPermissionsApplicationType
- type ApplicationBrowserSSHApplication
- type ApplicationBrowserSSHApplicationParam
- type ApplicationBrowserVncApplication
- type ApplicationBrowserVncApplicationParam
- type ApplicationDeviceEnrollmentPermissionsApplication
- type ApplicationDeviceEnrollmentPermissionsApplicationParam
- type ApplicationDeviceEnrollmentPermissionsApplicationType
- type ApplicationParam
- type ApplicationSaaSApplication
- type ApplicationSaaSApplicationParam
- type ApplicationSaaSApplicationSaasApp
- type ApplicationSaaSApplicationSaasAppAccessOIDCSaasApp
- type ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppAuthType
- type ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppGrantType
- type ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppParam
- type ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppScope
- type ApplicationSaaSApplicationSaasAppAuthType
- type ApplicationSaaSApplicationSaasAppParam
- type ApplicationSaaSApplicationSaasAppUnion
- type ApplicationSaaSApplicationSaasAppUnionParam
- type ApplicationSelfHostedApplication
- type ApplicationSelfHostedApplicationParam
- type ApplicationUnion
- type ApplicationUnionParam
- type ApprovalGroup
- type ApprovalGroupParam
- type AssociatedHostnames
- type AssociatedHostnamesParam
- type AuditLog
- type AuditLogAction
- type AuditLogActor
- type AuditLogActorType
- type AuditLogOwner
- type AuditLogResource
- type AuthenticationMethodRule
- type AuthenticationMethodRuleAuthMethod
- type AuthenticationMethodRuleAuthMethodParam
- type AuthenticationMethodRuleParam
- type AzureAD
- type AzureADConfig
- type AzureADConfigParam
- type AzureADConfigPrompt
- type AzureADParam
- type AzureGroupRule
- type AzureGroupRuleAzureAD
- type AzureGroupRuleAzureADParam
- type AzureGroupRuleParam
- type BlockPageSettings
- type BlockPageSettingsParam
- type BodyScanningSettings
- type BodyScanningSettingsParam
- type Bookmark
- type BrowserIsolationSettings
- type BrowserIsolationSettingsParam
- type CA
- type CarbonblackInput
- type CarbonblackInputParam
- type Category
- type CategoryClass
- type CategorySubcategoriesClass
- type CategorySubcategory
- type Certificate
- type CertificateRule
- type CertificateRuleParam
- type CertificateSettings
- type CertificateSettingsParam
- type Client
- type ClientCertificateInput
- type ClientCertificateInputParam
- type ClientConn
- type CloudflareTunnel
- type CloudflareTunnelConnection
- type CloudflareTunnelTunType
- type Connection
- type ConnectivitySettingEditParams
- type ConnectivitySettingEditResponse
- type ConnectivitySettingEditResponseEnvelope
- type ConnectivitySettingEditResponseEnvelopeSuccess
- type ConnectivitySettingGetParams
- type ConnectivitySettingGetResponse
- type ConnectivitySettingGetResponseEnvelope
- type ConnectivitySettingGetResponseEnvelopeSuccess
- type ConnectivitySettingService
- func (r *ConnectivitySettingService) Edit(ctx context.Context, params ConnectivitySettingEditParams, ...) (res *ConnectivitySettingEditResponse, err error)
- func (r *ConnectivitySettingService) Get(ctx context.Context, query ConnectivitySettingGetParams, ...) (res *ConnectivitySettingGetResponse, err error)
- type ContextAwareness
- type ContextAwarenessParam
- type CorsHeaders
- type CorsHeadersParam
- type CountryRule
- type CountryRuleGeo
- type CountryRuleGeoParam
- type CountryRuleParam
- type CrowdstrikeInput
- type CrowdstrikeInputOperator
- type CrowdstrikeInputParam
- type CrowdstrikeInputState
- type CrowdstrikeInputVersionOperator
- type CustomCertificateSettings
- type CustomCertificateSettingsParam
- type CustomPage
- type CustomPageParam
- type CustomPageType
- type CustomPageWithoutHTML
- type CustomPageWithoutHTMLType
- type CustomPagesh
- type CustomPageshParam
- type CustomProfile
- type CustomProfileEntry
- type CustomProfileType
- type DEXColoListParams
- type DEXColoListParamsSortBy
- type DEXColoListResponse
- type DEXColoService
- func (r *DEXColoService) List(ctx context.Context, params DEXColoListParams, opts ...option.RequestOption) (res *pagination.SinglePage[DEXColoListResponse], err error)
- func (r *DEXColoService) ListAutoPaging(ctx context.Context, params DEXColoListParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[DEXColoListResponse]
- type DEXFleetStatusDeviceListParams
- type DEXFleetStatusDeviceListParamsSortBy
- type DEXFleetStatusDeviceListResponse
- type DEXFleetStatusDeviceService
- func (r *DEXFleetStatusDeviceService) List(ctx context.Context, params DEXFleetStatusDeviceListParams, ...) (res *pagination.V4PagePaginationArray[DEXFleetStatusDeviceListResponse], ...)
- func (r *DEXFleetStatusDeviceService) ListAutoPaging(ctx context.Context, params DEXFleetStatusDeviceListParams, ...) *pagination.V4PagePaginationArrayAutoPager[DEXFleetStatusDeviceListResponse]
- type DEXFleetStatusLiveParams
- type DEXFleetStatusLiveResponse
- type DEXFleetStatusLiveResponseDeviceStats
- type DEXFleetStatusLiveResponseEnvelope
- type DEXFleetStatusLiveResponseEnvelopeSuccess
- type DEXFleetStatusOverTimeParams
- type DEXFleetStatusService
- type DEXHTTPTestGetParams
- type DEXHTTPTestPercentileGetParams
- type DEXHTTPTestPercentileService
- type DEXHTTPTestService
- type DEXService
- type DEXTestListParams
- type DEXTestListResponse
- type DEXTestListResponseResultInfo
- type DEXTestListResponseSuccess
- type DEXTestService
- func (r *DEXTestService) List(ctx context.Context, params DEXTestListParams, opts ...option.RequestOption) (res *pagination.V4PagePagination[DEXTestListResponse], err error)
- func (r *DEXTestService) ListAutoPaging(ctx context.Context, params DEXTestListParams, opts ...option.RequestOption) *pagination.V4PagePaginationAutoPager[DEXTestListResponse]
- type DEXTestUniqueDeviceListParams
- type DEXTestUniqueDeviceListResponseEnvelope
- type DEXTestUniqueDeviceListResponseEnvelopeSuccess
- type DEXTestUniqueDeviceService
- type DEXTracerouteTestGetParams
- type DEXTracerouteTestGetParamsInterval
- type DEXTracerouteTestGetResponseEnvelope
- type DEXTracerouteTestGetResponseEnvelopeSuccess
- type DEXTracerouteTestNetworkPathParams
- type DEXTracerouteTestNetworkPathParamsInterval
- type DEXTracerouteTestNetworkPathResponseEnvelope
- type DEXTracerouteTestNetworkPathResponseEnvelopeSuccess
- type DEXTracerouteTestPercentilesParams
- type DEXTracerouteTestPercentilesResponse
- type DEXTracerouteTestPercentilesResponseEnvelope
- type DEXTracerouteTestPercentilesResponseEnvelopeSuccess
- type DEXTracerouteTestResultNetworkPathGetParams
- type DEXTracerouteTestResultNetworkPathGetResponse
- type DEXTracerouteTestResultNetworkPathGetResponseEnvelope
- type DEXTracerouteTestResultNetworkPathGetResponseEnvelopeSuccess
- type DEXTracerouteTestResultNetworkPathGetResponseHop
- type DEXTracerouteTestResultNetworkPathGetResponseHopsLocation
- type DEXTracerouteTestResultNetworkPathGetResponseHopsMile
- type DEXTracerouteTestResultNetworkPathService
- type DEXTracerouteTestResultService
- type DEXTracerouteTestService
- func (r *DEXTracerouteTestService) Get(ctx context.Context, testID string, params DEXTracerouteTestGetParams, ...) (res *Traceroute, err error)
- func (r *DEXTracerouteTestService) NetworkPath(ctx context.Context, testID string, params DEXTracerouteTestNetworkPathParams, ...) (res *NetworkPath, err error)
- func (r *DEXTracerouteTestService) Percentiles(ctx context.Context, testID string, params DEXTracerouteTestPercentilesParams, ...) (res *DEXTracerouteTestPercentilesResponse, err error)
- type DLPDatasetDeleteParams
- type DLPDatasetGetParams
- type DLPDatasetGetResponseEnvelope
- type DLPDatasetGetResponseEnvelopeResultInfo
- type DLPDatasetListParams
- type DLPDatasetNewParams
- type DLPDatasetNewResponseEnvelope
- type DLPDatasetNewResponseEnvelopeResultInfo
- type DLPDatasetService
- func (r *DLPDatasetService) Delete(ctx context.Context, datasetID string, body DLPDatasetDeleteParams, ...) (err error)
- func (r *DLPDatasetService) Get(ctx context.Context, datasetID string, query DLPDatasetGetParams, ...) (res *Dataset, err error)
- func (r *DLPDatasetService) List(ctx context.Context, query DLPDatasetListParams, opts ...option.RequestOption) (res *pagination.SinglePage[Dataset], err error)
- func (r *DLPDatasetService) ListAutoPaging(ctx context.Context, query DLPDatasetListParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[Dataset]
- func (r *DLPDatasetService) New(ctx context.Context, params DLPDatasetNewParams, opts ...option.RequestOption) (res *DatasetCreation, err error)
- func (r *DLPDatasetService) Update(ctx context.Context, datasetID string, params DLPDatasetUpdateParams, ...) (res *Dataset, err error)
- type DLPDatasetUpdateParams
- type DLPDatasetUpdateResponseEnvelope
- type DLPDatasetUpdateResponseEnvelopeResultInfo
- type DLPDatasetUploadEditParams
- type DLPDatasetUploadEditResponseEnvelope
- type DLPDatasetUploadEditResponseEnvelopeResultInfo
- type DLPDatasetUploadNewParams
- type DLPDatasetUploadNewResponseEnvelope
- type DLPDatasetUploadNewResponseEnvelopeResultInfo
- type DLPDatasetUploadService
- type DLPPatternService
- type DLPPatternValidateParams
- type DLPPatternValidateResponseEnvelope
- type DLPPatternValidateResponseEnvelopeSuccess
- type DLPPayloadLogGetParams
- type DLPPayloadLogGetResponse
- type DLPPayloadLogGetResponseEnvelope
- type DLPPayloadLogGetResponseEnvelopeSuccess
- type DLPPayloadLogService
- type DLPPayloadLogUpdateParams
- type DLPPayloadLogUpdateResponse
- type DLPPayloadLogUpdateResponseEnvelope
- type DLPPayloadLogUpdateResponseEnvelopeSuccess
- type DLPProfileCustomDeleteParams
- type DLPProfileCustomDeleteResponseEnvelope
- type DLPProfileCustomDeleteResponseEnvelopeSuccess
- type DLPProfileCustomDeleteResponseUnion
- type DLPProfileCustomGetParams
- type DLPProfileCustomGetResponseEnvelope
- type DLPProfileCustomGetResponseEnvelopeSuccess
- type DLPProfileCustomNewParams
- type DLPProfileCustomNewParamsProfile
- type DLPProfileCustomNewParamsProfilesEntry
- type DLPProfileCustomNewResponseEnvelope
- type DLPProfileCustomNewResponseEnvelopeResultInfo
- type DLPProfileCustomNewResponseEnvelopeSuccess
- type DLPProfileCustomService
- func (r *DLPProfileCustomService) Delete(ctx context.Context, profileID string, params DLPProfileCustomDeleteParams, ...) (res *DLPProfileCustomDeleteResponseUnion, err error)
- func (r *DLPProfileCustomService) Get(ctx context.Context, profileID string, query DLPProfileCustomGetParams, ...) (res *CustomProfile, err error)
- func (r *DLPProfileCustomService) New(ctx context.Context, params DLPProfileCustomNewParams, ...) (res *[]CustomProfile, err error)
- func (r *DLPProfileCustomService) Update(ctx context.Context, profileID string, params DLPProfileCustomUpdateParams, ...) (res *CustomProfile, err error)
- type DLPProfileCustomUpdateParams
- type DLPProfileCustomUpdateParamsEntry
- type DLPProfileCustomUpdateParamsSharedEntriesDLPSharedEntryUpdateIntegration
- type DLPProfileCustomUpdateParamsSharedEntriesDLPSharedEntryUpdatePredefined
- type DLPProfileCustomUpdateParamsSharedEntry
- type DLPProfileCustomUpdateParamsSharedEntryUnion
- type DLPProfileGetParams
- type DLPProfileGetResponse
- type DLPProfileGetResponseDLPIntegrationProfile
- type DLPProfileGetResponseDLPIntegrationProfileEntry
- type DLPProfileGetResponseDLPIntegrationProfileType
- type DLPProfileGetResponseEnvelope
- type DLPProfileGetResponseEnvelopeSuccess
- type DLPProfileGetResponseType
- type DLPProfileGetResponseUnion
- type DLPProfileListParams
- type DLPProfilePredefinedGetParams
- type DLPProfilePredefinedGetResponseEnvelope
- type DLPProfilePredefinedGetResponseEnvelopeSuccess
- type DLPProfilePredefinedService
- func (r *DLPProfilePredefinedService) Get(ctx context.Context, profileID string, query DLPProfilePredefinedGetParams, ...) (res *PredefinedProfile, err error)
- func (r *DLPProfilePredefinedService) Update(ctx context.Context, profileID string, params DLPProfilePredefinedUpdateParams, ...) (res *PredefinedProfile, err error)
- type DLPProfilePredefinedUpdateParams
- type DLPProfilePredefinedUpdateParamsEntry
- type DLPProfileService
- func (r *DLPProfileService) Get(ctx context.Context, profileID string, query DLPProfileGetParams, ...) (res *DLPProfileGetResponse, err error)
- func (r *DLPProfileService) List(ctx context.Context, query DLPProfileListParams, opts ...option.RequestOption) (res *pagination.SinglePage[Profile], err error)
- func (r *DLPProfileService) ListAutoPaging(ctx context.Context, query DLPProfileListParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[Profile]
- type DLPService
- type DNSResolverSettingsV4
- type DNSResolverSettingsV4Param
- type DNSResolverSettingsV6
- type DNSResolverSettingsV6Param
- type Dataset
- type DatasetArray
- type DatasetCreation
- type DatasetStatus
- type DatasetUpload
- type DatasetUploadsStatus
- type Device
- type DeviceDEXTestDeleteParams
- type DeviceDEXTestDeleteResponseEnvelope
- type DeviceDEXTestDeleteResponseEnvelopeSuccess
- type DeviceDEXTestGetParams
- type DeviceDEXTestGetResponseEnvelope
- type DeviceDEXTestGetResponseEnvelopeSuccess
- type DeviceDEXTestListParams
- type DeviceDEXTestNewParams
- type DeviceDEXTestNewResponseEnvelope
- type DeviceDEXTestNewResponseEnvelopeSuccess
- type DeviceDEXTestService
- func (r *DeviceDEXTestService) Delete(ctx context.Context, dexTestID string, body DeviceDEXTestDeleteParams, ...) (res *[]SchemaHTTP, err error)
- func (r *DeviceDEXTestService) Get(ctx context.Context, dexTestID string, query DeviceDEXTestGetParams, ...) (res *SchemaHTTP, err error)
- func (r *DeviceDEXTestService) List(ctx context.Context, query DeviceDEXTestListParams, ...) (res *pagination.SinglePage[SchemaHTTP], err error)
- func (r *DeviceDEXTestService) ListAutoPaging(ctx context.Context, query DeviceDEXTestListParams, ...) *pagination.SinglePageAutoPager[SchemaHTTP]
- func (r *DeviceDEXTestService) New(ctx context.Context, params DeviceDEXTestNewParams, ...) (res *SchemaHTTP, err error)
- func (r *DeviceDEXTestService) Update(ctx context.Context, dexTestID string, params DeviceDEXTestUpdateParams, ...) (res *SchemaHTTP, err error)
- type DeviceDEXTestUpdateParams
- type DeviceDEXTestUpdateResponseEnvelope
- type DeviceDEXTestUpdateResponseEnvelopeSuccess
- type DeviceDeviceType
- type DeviceExperienceMonitor
- type DeviceGetParams
- type DeviceGetResponseEnvelope
- type DeviceGetResponseEnvelopeSuccess
- type DeviceGetResponseUnion
- type DeviceInput
- type DeviceInputComplianceStatus
- type DeviceInputCountOperator
- type DeviceInputNetworkStatus
- type DeviceInputOperatingSystem
- type DeviceInputOperator
- type DeviceInputParam
- type DeviceInputRiskLevel
- type DeviceInputScoreOperator
- type DeviceInputState
- type DeviceInputTeamsDevicesApplicationInputRequest
- type DeviceInputTeamsDevicesApplicationInputRequestOperatingSystem
- type DeviceInputTeamsDevicesApplicationInputRequestParam
- type DeviceInputTeamsDevicesCarbonblackInputRequest
- type DeviceInputTeamsDevicesCarbonblackInputRequestOperatingSystem
- type DeviceInputTeamsDevicesCarbonblackInputRequestParam
- type DeviceInputUnion
- type DeviceInputUnionParam
- type DeviceInputVersionOperator
- type DeviceListParams
- type DeviceMatch
- type DeviceMatchParam
- type DeviceMatchPlatform
- type DeviceNetwork
- type DeviceNetworkConfig
- type DeviceNetworkDeleteParams
- type DeviceNetworkDeleteResponseEnvelope
- type DeviceNetworkDeleteResponseEnvelopeResultInfo
- type DeviceNetworkDeleteResponseEnvelopeSuccess
- type DeviceNetworkGetParams
- type DeviceNetworkGetResponseEnvelope
- type DeviceNetworkGetResponseEnvelopeSuccess
- type DeviceNetworkListParams
- type DeviceNetworkNewParams
- type DeviceNetworkNewParamsConfig
- type DeviceNetworkNewParamsType
- type DeviceNetworkNewResponseEnvelope
- type DeviceNetworkNewResponseEnvelopeSuccess
- type DeviceNetworkService
- func (r *DeviceNetworkService) Delete(ctx context.Context, networkID string, params DeviceNetworkDeleteParams, ...) (res *[]DeviceNetwork, err error)
- func (r *DeviceNetworkService) Get(ctx context.Context, networkID string, query DeviceNetworkGetParams, ...) (res *DeviceNetwork, err error)
- func (r *DeviceNetworkService) List(ctx context.Context, query DeviceNetworkListParams, ...) (res *pagination.SinglePage[DeviceNetwork], err error)
- func (r *DeviceNetworkService) ListAutoPaging(ctx context.Context, query DeviceNetworkListParams, ...) *pagination.SinglePageAutoPager[DeviceNetwork]
- func (r *DeviceNetworkService) New(ctx context.Context, params DeviceNetworkNewParams, ...) (res *DeviceNetwork, err error)
- func (r *DeviceNetworkService) Update(ctx context.Context, networkID string, params DeviceNetworkUpdateParams, ...) (res *DeviceNetwork, err error)
- type DeviceNetworkType
- type DeviceNetworkUpdateParams
- type DeviceNetworkUpdateParamsConfig
- type DeviceNetworkUpdateParamsType
- type DeviceNetworkUpdateResponseEnvelope
- type DeviceNetworkUpdateResponseEnvelopeSuccess
- type DeviceOverrideCodeListParams
- type DeviceOverrideCodeListResponse
- type DeviceOverrideCodeListResponseDisableForTime
- type DeviceOverrideCodeListResponseEnvelope
- type DeviceOverrideCodeListResponseEnvelopeResultInfo
- type DeviceOverrideCodeListResponseEnvelopeSuccess
- type DeviceOverrideCodeService
- type DevicePolicyDefaultPolicyGetParams
- type DevicePolicyDefaultPolicyGetResponse
- type DevicePolicyDefaultPolicyGetResponseEnvelope
- type DevicePolicyDefaultPolicyGetResponseEnvelopeResultInfo
- type DevicePolicyDefaultPolicyGetResponseEnvelopeSuccess
- type DevicePolicyDefaultPolicyService
- type DevicePolicyDeleteParams
- type DevicePolicyDeleteResponseEnvelope
- type DevicePolicyDeleteResponseEnvelopeResultInfo
- type DevicePolicyDeleteResponseEnvelopeSuccess
- type DevicePolicyEditParams
- type DevicePolicyEditParamsServiceModeV2
- type DevicePolicyEditResponse
- type DevicePolicyEditResponseEnvelope
- type DevicePolicyEditResponseEnvelopeResultInfo
- type DevicePolicyEditResponseEnvelopeSuccess
- type DevicePolicyExcludeGetParams
- type DevicePolicyExcludeGetResponseEnvelope
- type DevicePolicyExcludeGetResponseEnvelopeResultInfo
- type DevicePolicyExcludeGetResponseEnvelopeSuccess
- type DevicePolicyExcludeListParams
- type DevicePolicyExcludeService
- func (r *DevicePolicyExcludeService) Get(ctx context.Context, policyID string, query DevicePolicyExcludeGetParams, ...) (res *[]SplitTunnelExclude, err error)
- func (r *DevicePolicyExcludeService) List(ctx context.Context, query DevicePolicyExcludeListParams, ...) (res *pagination.SinglePage[SplitTunnelExclude], err error)
- func (r *DevicePolicyExcludeService) ListAutoPaging(ctx context.Context, query DevicePolicyExcludeListParams, ...) *pagination.SinglePageAutoPager[SplitTunnelExclude]
- func (r *DevicePolicyExcludeService) Update(ctx context.Context, params DevicePolicyExcludeUpdateParams, ...) (res *[]SplitTunnelExclude, err error)
- type DevicePolicyExcludeUpdateParams
- type DevicePolicyExcludeUpdateResponseEnvelope
- type DevicePolicyExcludeUpdateResponseEnvelopeResultInfo
- type DevicePolicyExcludeUpdateResponseEnvelopeSuccess
- type DevicePolicyFallbackDomainGetParams
- type DevicePolicyFallbackDomainGetResponseEnvelope
- type DevicePolicyFallbackDomainGetResponseEnvelopeResultInfo
- type DevicePolicyFallbackDomainGetResponseEnvelopeSuccess
- type DevicePolicyFallbackDomainListParams
- type DevicePolicyFallbackDomainService
- func (r *DevicePolicyFallbackDomainService) Get(ctx context.Context, policyID string, ...) (res *[]FallbackDomain, err error)
- func (r *DevicePolicyFallbackDomainService) List(ctx context.Context, query DevicePolicyFallbackDomainListParams, ...) (res *pagination.SinglePage[FallbackDomain], err error)
- func (r *DevicePolicyFallbackDomainService) ListAutoPaging(ctx context.Context, query DevicePolicyFallbackDomainListParams, ...) *pagination.SinglePageAutoPager[FallbackDomain]
- func (r *DevicePolicyFallbackDomainService) Update(ctx context.Context, policyID string, ...) (res *[]FallbackDomain, err error)
- type DevicePolicyFallbackDomainUpdateParams
- type DevicePolicyFallbackDomainUpdateResponseEnvelope
- type DevicePolicyFallbackDomainUpdateResponseEnvelopeResultInfo
- type DevicePolicyFallbackDomainUpdateResponseEnvelopeSuccess
- type DevicePolicyGetParams
- type DevicePolicyGetResponse
- type DevicePolicyGetResponseEnvelope
- type DevicePolicyGetResponseEnvelopeResultInfo
- type DevicePolicyGetResponseEnvelopeSuccess
- type DevicePolicyIncludeGetParams
- type DevicePolicyIncludeGetResponseEnvelope
- type DevicePolicyIncludeGetResponseEnvelopeResultInfo
- type DevicePolicyIncludeGetResponseEnvelopeSuccess
- type DevicePolicyIncludeListParams
- type DevicePolicyIncludeService
- func (r *DevicePolicyIncludeService) Get(ctx context.Context, policyID string, query DevicePolicyIncludeGetParams, ...) (res *[]SplitTunnelInclude, err error)
- func (r *DevicePolicyIncludeService) List(ctx context.Context, query DevicePolicyIncludeListParams, ...) (res *pagination.SinglePage[SplitTunnelInclude], err error)
- func (r *DevicePolicyIncludeService) ListAutoPaging(ctx context.Context, query DevicePolicyIncludeListParams, ...) *pagination.SinglePageAutoPager[SplitTunnelInclude]
- func (r *DevicePolicyIncludeService) Update(ctx context.Context, params DevicePolicyIncludeUpdateParams, ...) (res *[]SplitTunnelInclude, err error)
- type DevicePolicyIncludeUpdateParams
- type DevicePolicyIncludeUpdateResponseEnvelope
- type DevicePolicyIncludeUpdateResponseEnvelopeResultInfo
- type DevicePolicyIncludeUpdateResponseEnvelopeSuccess
- type DevicePolicyListParams
- type DevicePolicyNewParams
- type DevicePolicyNewParamsServiceModeV2
- type DevicePolicyNewResponse
- type DevicePolicyNewResponseEnvelope
- type DevicePolicyNewResponseEnvelopeResultInfo
- type DevicePolicyNewResponseEnvelopeSuccess
- type DevicePolicyService
- func (r *DevicePolicyService) Delete(ctx context.Context, policyID string, params DevicePolicyDeleteParams, ...) (res *[]SettingsPolicy, err error)
- func (r *DevicePolicyService) Edit(ctx context.Context, policyID string, params DevicePolicyEditParams, ...) (res *SettingsPolicy, err error)
- func (r *DevicePolicyService) Get(ctx context.Context, policyID string, query DevicePolicyGetParams, ...) (res *SettingsPolicy, err error)
- func (r *DevicePolicyService) List(ctx context.Context, query DevicePolicyListParams, ...) (res *pagination.SinglePage[SettingsPolicy], err error)
- func (r *DevicePolicyService) ListAutoPaging(ctx context.Context, query DevicePolicyListParams, ...) *pagination.SinglePageAutoPager[SettingsPolicy]
- func (r *DevicePolicyService) New(ctx context.Context, params DevicePolicyNewParams, ...) (res *SettingsPolicy, err error)
- type DevicePostureDeleteParams
- type DevicePostureDeleteResponse
- type DevicePostureDeleteResponseEnvelope
- type DevicePostureDeleteResponseEnvelopeSuccess
- type DevicePostureGetParams
- type DevicePostureGetResponseEnvelope
- type DevicePostureGetResponseEnvelopeSuccess
- type DevicePostureIntegrationDeleteParams
- type DevicePostureIntegrationDeleteResponseEnvelope
- type DevicePostureIntegrationDeleteResponseEnvelopeSuccess
- type DevicePostureIntegrationDeleteResponseUnion
- type DevicePostureIntegrationEditParams
- type DevicePostureIntegrationEditParamsConfig
- type DevicePostureIntegrationEditParamsConfigTeamsDevicesCrowdstrikeConfigRequest
- type DevicePostureIntegrationEditParamsConfigTeamsDevicesIntuneConfigRequest
- type DevicePostureIntegrationEditParamsConfigTeamsDevicesKolideConfigRequest
- type DevicePostureIntegrationEditParamsConfigTeamsDevicesSentineloneS2sConfigRequest
- type DevicePostureIntegrationEditParamsConfigTeamsDevicesTaniumConfigRequest
- type DevicePostureIntegrationEditParamsConfigTeamsDevicesUptycsConfigRequest
- type DevicePostureIntegrationEditParamsConfigTeamsDevicesWorkspaceOneConfigRequest
- type DevicePostureIntegrationEditParamsConfigUnion
- type DevicePostureIntegrationEditParamsType
- type DevicePostureIntegrationEditResponseEnvelope
- type DevicePostureIntegrationEditResponseEnvelopeSuccess
- type DevicePostureIntegrationGetParams
- type DevicePostureIntegrationGetResponseEnvelope
- type DevicePostureIntegrationGetResponseEnvelopeSuccess
- type DevicePostureIntegrationListParams
- type DevicePostureIntegrationNewParams
- type DevicePostureIntegrationNewParamsConfig
- type DevicePostureIntegrationNewParamsConfigTeamsDevicesCrowdstrikeConfigRequest
- type DevicePostureIntegrationNewParamsConfigTeamsDevicesIntuneConfigRequest
- type DevicePostureIntegrationNewParamsConfigTeamsDevicesKolideConfigRequest
- type DevicePostureIntegrationNewParamsConfigTeamsDevicesSentineloneS2sConfigRequest
- type DevicePostureIntegrationNewParamsConfigTeamsDevicesTaniumConfigRequest
- type DevicePostureIntegrationNewParamsConfigTeamsDevicesUptycsConfigRequest
- type DevicePostureIntegrationNewParamsConfigTeamsDevicesWorkspaceOneConfigRequest
- type DevicePostureIntegrationNewParamsConfigUnion
- type DevicePostureIntegrationNewParamsType
- type DevicePostureIntegrationNewResponseEnvelope
- type DevicePostureIntegrationNewResponseEnvelopeSuccess
- type DevicePostureIntegrationService
- func (r *DevicePostureIntegrationService) Delete(ctx context.Context, integrationID string, ...) (res *DevicePostureIntegrationDeleteResponseUnion, err error)
- func (r *DevicePostureIntegrationService) Edit(ctx context.Context, integrationID string, ...) (res *Integration, err error)
- func (r *DevicePostureIntegrationService) Get(ctx context.Context, integrationID string, ...) (res *Integration, err error)
- func (r *DevicePostureIntegrationService) List(ctx context.Context, query DevicePostureIntegrationListParams, ...) (res *pagination.SinglePage[Integration], err error)
- func (r *DevicePostureIntegrationService) ListAutoPaging(ctx context.Context, query DevicePostureIntegrationListParams, ...) *pagination.SinglePageAutoPager[Integration]
- func (r *DevicePostureIntegrationService) New(ctx context.Context, params DevicePostureIntegrationNewParams, ...) (res *Integration, err error)
- type DevicePostureListParams
- type DevicePostureNewParams
- type DevicePostureNewParamsType
- type DevicePostureNewResponseEnvelope
- type DevicePostureNewResponseEnvelopeSuccess
- type DevicePostureRule
- type DevicePostureRuleType
- type DevicePostureService
- func (r *DevicePostureService) Delete(ctx context.Context, ruleID string, params DevicePostureDeleteParams, ...) (res *DevicePostureDeleteResponse, err error)
- func (r *DevicePostureService) Get(ctx context.Context, ruleID string, query DevicePostureGetParams, ...) (res *DevicePostureRule, err error)
- func (r *DevicePostureService) List(ctx context.Context, query DevicePostureListParams, ...) (res *pagination.SinglePage[DevicePostureRule], err error)
- func (r *DevicePostureService) ListAutoPaging(ctx context.Context, query DevicePostureListParams, ...) *pagination.SinglePageAutoPager[DevicePostureRule]
- func (r *DevicePostureService) New(ctx context.Context, params DevicePostureNewParams, ...) (res *DevicePostureRule, err error)
- func (r *DevicePostureService) Update(ctx context.Context, ruleID string, params DevicePostureUpdateParams, ...) (res *DevicePostureRule, err error)
- type DevicePostureUpdateParams
- type DevicePostureUpdateParamsType
- type DevicePostureUpdateResponseEnvelope
- type DevicePostureUpdateResponseEnvelopeSuccess
- type DeviceRevokeNewParams
- type DeviceRevokeNewResponseEnvelope
- type DeviceRevokeNewResponseEnvelopeSuccess
- type DeviceRevokeNewResponseUnion
- type DeviceRevokeService
- type DeviceService
- func (r *DeviceService) Get(ctx context.Context, deviceID string, query DeviceGetParams, ...) (res *DeviceGetResponseUnion, err error)
- func (r *DeviceService) List(ctx context.Context, query DeviceListParams, opts ...option.RequestOption) (res *pagination.SinglePage[Device], err error)
- func (r *DeviceService) ListAutoPaging(ctx context.Context, query DeviceListParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[Device]
- type DeviceSettingListParams
- type DeviceSettingListResponseEnvelope
- type DeviceSettingListResponseEnvelopeSuccess
- type DeviceSettingService
- type DeviceSettingUpdateParams
- type DeviceSettingUpdateResponseEnvelope
- type DeviceSettingUpdateResponseEnvelopeSuccess
- type DeviceSettings
- type DeviceSettingsParam
- type DeviceUnrevokeNewParams
- type DeviceUnrevokeNewResponseEnvelope
- type DeviceUnrevokeNewResponseEnvelopeSuccess
- type DeviceUnrevokeNewResponseUnion
- type DeviceUnrevokeService
- type DeviceUser
- type DexhttpTestGetParamsInterval
- type DexhttpTestGetResponseEnvelope
- type DexhttpTestGetResponseEnvelopeSuccess
- type DexhttpTestPercentileGetResponseEnvelope
- type DexhttpTestPercentileGetResponseEnvelopeSuccess
- type DiskEncryptionInput
- type DiskEncryptionInputParam
- type DomainJoinedInput
- type DomainJoinedInputOperatingSystem
- type DomainJoinedInputParam
- type DomainRule
- type DomainRuleEmailDomain
- type DomainRuleEmailDomainParam
- type DomainRuleParam
- type EmailListRule
- type EmailListRuleEmailList
- type EmailListRuleEmailListParam
- type EmailListRuleParam
- type EmailRule
- type EmailRuleEmail
- type EmailRuleEmailParam
- type EmailRuleParam
- type Error
- type ErrorData
- type EveryoneRule
- type EveryoneRuleParam
- type ExtendedEmailMatching
- type ExtendedEmailMatchingParam
- type ExternalEvaluationRule
- type ExternalEvaluationRuleExternalEvaluation
- type ExternalEvaluationRuleExternalEvaluationParam
- type ExternalEvaluationRuleParam
- type FallbackDomain
- type FallbackDomainParam
- type FileInput
- type FileInputOperatingSystem
- type FileInputParam
- type FipsSettings
- type FipsSettingsParam
- type FirewallInput
- type FirewallInputOperatingSystem
- type FirewallInputParam
- type GSuiteGroupRule
- type GSuiteGroupRuleGSuite
- type GSuiteGroupRuleGSuiteJSON
- type GSuiteGroupRuleGSuiteParam
- type GSuiteGroupRuleJSON
- type GSuiteGroupRuleParam
- type GatewayAppTypeListParams
- type GatewayAppTypeService
- type GatewayAuditSSHSettingGetParams
- type GatewayAuditSSHSettingGetResponseEnvelope
- type GatewayAuditSSHSettingGetResponseEnvelopeSuccess
- type GatewayAuditSSHSettingService
- type GatewayAuditSSHSettingUpdateParams
- type GatewayAuditSSHSettingUpdateResponseEnvelope
- type GatewayAuditSSHSettingUpdateResponseEnvelopeSuccess
- type GatewayCategoryListParams
- type GatewayCategoryService
- type GatewayConfigurationEditParams
- type GatewayConfigurationEditResponse
- type GatewayConfigurationEditResponseEnvelope
- type GatewayConfigurationEditResponseEnvelopeSuccess
- type GatewayConfigurationGetParams
- type GatewayConfigurationGetResponse
- type GatewayConfigurationGetResponseEnvelope
- type GatewayConfigurationGetResponseEnvelopeSuccess
- type GatewayConfigurationService
- func (r *GatewayConfigurationService) Edit(ctx context.Context, params GatewayConfigurationEditParams, ...) (res *GatewayConfigurationEditResponse, err error)
- func (r *GatewayConfigurationService) Get(ctx context.Context, query GatewayConfigurationGetParams, ...) (res *GatewayConfigurationGetResponse, err error)
- func (r *GatewayConfigurationService) Update(ctx context.Context, params GatewayConfigurationUpdateParams, ...) (res *GatewayConfigurationUpdateResponse, err error)
- type GatewayConfigurationSettings
- type GatewayConfigurationSettingsParam
- type GatewayConfigurationUpdateParams
- type GatewayConfigurationUpdateResponse
- type GatewayConfigurationUpdateResponseEnvelope
- type GatewayConfigurationUpdateResponseEnvelopeSuccess
- type GatewayFilter
- type GatewayIPs
- type GatewayIPsParam
- type GatewayItem
- type GatewayItemParam
- type GatewayList
- type GatewayListDeleteParams
- type GatewayListDeleteResponseEnvelope
- type GatewayListDeleteResponseEnvelopeSuccess
- type GatewayListDeleteResponseUnion
- type GatewayListEditParams
- type GatewayListEditResponseEnvelope
- type GatewayListEditResponseEnvelopeSuccess
- type GatewayListGetParams
- type GatewayListGetResponseEnvelope
- type GatewayListGetResponseEnvelopeSuccess
- type GatewayListItemListParams
- type GatewayListItemService
- func (r *GatewayListItemService) List(ctx context.Context, listID string, query GatewayListItemListParams, ...) (res *pagination.SinglePage[[]GatewayItem], err error)
- func (r *GatewayListItemService) ListAutoPaging(ctx context.Context, listID string, query GatewayListItemListParams, ...) *pagination.SinglePageAutoPager[[]GatewayItem]
- type GatewayListListParams
- type GatewayListNewParams
- type GatewayListNewParamsType
- type GatewayListNewResponse
- type GatewayListNewResponseEnvelope
- type GatewayListNewResponseEnvelopeSuccess
- type GatewayListNewResponseType
- type GatewayListParams
- type GatewayListResponse
- type GatewayListResponseEnvelope
- type GatewayListResponseEnvelopeSuccess
- type GatewayListService
- func (r *GatewayListService) Delete(ctx context.Context, listID string, params GatewayListDeleteParams, ...) (res *GatewayListDeleteResponseUnion, err error)
- func (r *GatewayListService) Edit(ctx context.Context, listID string, params GatewayListEditParams, ...) (res *GatewayList, err error)
- func (r *GatewayListService) Get(ctx context.Context, listID string, query GatewayListGetParams, ...) (res *GatewayList, err error)
- func (r *GatewayListService) List(ctx context.Context, query GatewayListListParams, opts ...option.RequestOption) (res *pagination.SinglePage[GatewayList], err error)
- func (r *GatewayListService) ListAutoPaging(ctx context.Context, query GatewayListListParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[GatewayList]
- func (r *GatewayListService) New(ctx context.Context, params GatewayListNewParams, opts ...option.RequestOption) (res *GatewayListNewResponse, err error)
- func (r *GatewayListService) Update(ctx context.Context, listID string, params GatewayListUpdateParams, ...) (res *GatewayList, err error)
- type GatewayListType
- type GatewayListUpdateParams
- type GatewayListUpdateResponseEnvelope
- type GatewayListUpdateResponseEnvelopeSuccess
- type GatewayLocationDeleteParams
- type GatewayLocationDeleteResponseEnvelope
- type GatewayLocationDeleteResponseEnvelopeSuccess
- type GatewayLocationDeleteResponseUnion
- type GatewayLocationGetParams
- type GatewayLocationGetResponseEnvelope
- type GatewayLocationGetResponseEnvelopeSuccess
- type GatewayLocationListParams
- type GatewayLocationNewParams
- type GatewayLocationNewResponseEnvelope
- type GatewayLocationNewResponseEnvelopeSuccess
- type GatewayLocationService
- func (r *GatewayLocationService) Delete(ctx context.Context, locationID string, params GatewayLocationDeleteParams, ...) (res *GatewayLocationDeleteResponseUnion, err error)
- func (r *GatewayLocationService) Get(ctx context.Context, locationID string, query GatewayLocationGetParams, ...) (res *Location, err error)
- func (r *GatewayLocationService) List(ctx context.Context, query GatewayLocationListParams, ...) (res *pagination.SinglePage[Location], err error)
- func (r *GatewayLocationService) ListAutoPaging(ctx context.Context, query GatewayLocationListParams, ...) *pagination.SinglePageAutoPager[Location]
- func (r *GatewayLocationService) New(ctx context.Context, params GatewayLocationNewParams, ...) (res *Location, err error)
- func (r *GatewayLocationService) Update(ctx context.Context, locationID string, params GatewayLocationUpdateParams, ...) (res *Location, err error)
- type GatewayLocationUpdateParams
- type GatewayLocationUpdateResponseEnvelope
- type GatewayLocationUpdateResponseEnvelopeSuccess
- type GatewayLoggingGetParams
- type GatewayLoggingGetResponseEnvelope
- type GatewayLoggingGetResponseEnvelopeSuccess
- type GatewayLoggingService
- type GatewayLoggingUpdateParams
- type GatewayLoggingUpdateResponseEnvelope
- type GatewayLoggingUpdateResponseEnvelopeSuccess
- type GatewayNewParams
- type GatewayNewResponse
- type GatewayNewResponseEnvelope
- type GatewayNewResponseEnvelopeSuccess
- type GatewayProxyEndpointDeleteParams
- type GatewayProxyEndpointDeleteResponseEnvelope
- type GatewayProxyEndpointDeleteResponseEnvelopeSuccess
- type GatewayProxyEndpointDeleteResponseUnion
- type GatewayProxyEndpointEditParams
- type GatewayProxyEndpointEditResponseEnvelope
- type GatewayProxyEndpointEditResponseEnvelopeSuccess
- type GatewayProxyEndpointGetParams
- type GatewayProxyEndpointGetResponseEnvelope
- type GatewayProxyEndpointGetResponseEnvelopeSuccess
- type GatewayProxyEndpointListParams
- type GatewayProxyEndpointNewParams
- type GatewayProxyEndpointNewResponseEnvelope
- type GatewayProxyEndpointNewResponseEnvelopeSuccess
- type GatewayProxyEndpointService
- func (r *GatewayProxyEndpointService) Delete(ctx context.Context, proxyEndpointID string, ...) (res *GatewayProxyEndpointDeleteResponseUnion, err error)
- func (r *GatewayProxyEndpointService) Edit(ctx context.Context, proxyEndpointID string, ...) (res *ProxyEndpoint, err error)
- func (r *GatewayProxyEndpointService) Get(ctx context.Context, proxyEndpointID string, ...) (res *ProxyEndpoint, err error)
- func (r *GatewayProxyEndpointService) List(ctx context.Context, query GatewayProxyEndpointListParams, ...) (res *pagination.SinglePage[ProxyEndpoint], err error)
- func (r *GatewayProxyEndpointService) ListAutoPaging(ctx context.Context, query GatewayProxyEndpointListParams, ...) *pagination.SinglePageAutoPager[ProxyEndpoint]
- func (r *GatewayProxyEndpointService) New(ctx context.Context, params GatewayProxyEndpointNewParams, ...) (res *ProxyEndpoint, err error)
- type GatewayRule
- type GatewayRuleAction
- type GatewayRuleDeleteParams
- type GatewayRuleDeleteResponseEnvelope
- type GatewayRuleDeleteResponseEnvelopeSuccess
- type GatewayRuleDeleteResponseUnion
- type GatewayRuleGetParams
- type GatewayRuleGetResponseEnvelope
- type GatewayRuleGetResponseEnvelopeSuccess
- type GatewayRuleListParams
- type GatewayRuleNewParams
- type GatewayRuleNewParamsAction
- type GatewayRuleNewResponseEnvelope
- type GatewayRuleNewResponseEnvelopeSuccess
- type GatewayRuleService
- func (r *GatewayRuleService) Delete(ctx context.Context, ruleID string, params GatewayRuleDeleteParams, ...) (res *GatewayRuleDeleteResponseUnion, err error)
- func (r *GatewayRuleService) Get(ctx context.Context, ruleID string, query GatewayRuleGetParams, ...) (res *GatewayRule, err error)
- func (r *GatewayRuleService) List(ctx context.Context, query GatewayRuleListParams, opts ...option.RequestOption) (res *pagination.SinglePage[GatewayRule], err error)
- func (r *GatewayRuleService) ListAutoPaging(ctx context.Context, query GatewayRuleListParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[GatewayRule]
- func (r *GatewayRuleService) New(ctx context.Context, params GatewayRuleNewParams, opts ...option.RequestOption) (res *GatewayRule, err error)
- func (r *GatewayRuleService) Update(ctx context.Context, ruleID string, params GatewayRuleUpdateParams, ...) (res *GatewayRule, err error)
- type GatewayRuleUpdateParams
- type GatewayRuleUpdateParamsAction
- type GatewayRuleUpdateResponseEnvelope
- type GatewayRuleUpdateResponseEnvelopeSuccess
- type GatewayService
- type GatewaySettings
- type GenericOAuthConfig
- type GenericOAuthConfigParam
- type GitHubOrganizationRule
- type GitHubOrganizationRuleGitHubOrganization
- type GitHubOrganizationRuleGitHubOrganizationParam
- type GitHubOrganizationRuleParam
- type GroupRule
- type GroupRuleGroup
- type GroupRuleGroupParam
- type GroupRuleParam
- type HTTPDetails
- type HTTPDetailsHTTPStats
- type HTTPDetailsHTTPStatsAvailabilityPct
- type HTTPDetailsHTTPStatsAvailabilityPctSlot
- type HTTPDetailsHTTPStatsByColo
- type HTTPDetailsHTTPStatsByColoAvailabilityPct
- type HTTPDetailsHTTPStatsByColoAvailabilityPctSlot
- type HTTPDetailsHTTPStatsByColoHTTPStatusCode
- type HTTPDetailsHTTPStatsHTTPStatusCode
- type HTTPDetailsKind
- type HTTPDetailsPercentiles
- type IPListRule
- type IPListRuleIPList
- type IPListRuleIPListParam
- type IPListRuleParam
- type IPRule
- type IPRuleIP
- type IPRuleIPParam
- type IPRuleParam
- type Identity
- type IdentityDevicePosture
- type IdentityDevicePostureCheck
- type IdentityDeviceSession
- type IdentityIDP
- type IdentityMTLSAuth
- type IdentityProvider
- type IdentityProviderAccessCentrify
- type IdentityProviderAccessCentrifyConfig
- type IdentityProviderAccessCentrifyConfigParam
- type IdentityProviderAccessCentrifyParam
- type IdentityProviderAccessFacebook
- type IdentityProviderAccessFacebookParam
- type IdentityProviderAccessGitHub
- type IdentityProviderAccessGitHubParam
- type IdentityProviderAccessGoogle
- type IdentityProviderAccessGoogleApps
- type IdentityProviderAccessGoogleAppsConfig
- type IdentityProviderAccessGoogleAppsConfigParam
- type IdentityProviderAccessGoogleAppsParam
- type IdentityProviderAccessGoogleConfig
- type IdentityProviderAccessGoogleConfigParam
- type IdentityProviderAccessGoogleParam
- type IdentityProviderAccessLinkedin
- type IdentityProviderAccessLinkedinParam
- type IdentityProviderAccessOIDC
- type IdentityProviderAccessOIDCConfig
- type IdentityProviderAccessOIDCConfigParam
- type IdentityProviderAccessOIDCParam
- type IdentityProviderAccessOkta
- type IdentityProviderAccessOktaConfig
- type IdentityProviderAccessOktaConfigParam
- type IdentityProviderAccessOktaParam
- type IdentityProviderAccessOnelogin
- type IdentityProviderAccessOneloginConfig
- type IdentityProviderAccessOneloginConfigParam
- type IdentityProviderAccessOneloginParam
- type IdentityProviderAccessOnetimepin
- type IdentityProviderAccessOnetimepinParam
- type IdentityProviderAccessPingone
- type IdentityProviderAccessPingoneConfig
- type IdentityProviderAccessPingoneConfigParam
- type IdentityProviderAccessPingoneParam
- type IdentityProviderAccessSAML
- type IdentityProviderAccessSAMLConfig
- type IdentityProviderAccessSAMLConfigHeaderAttribute
- type IdentityProviderAccessSAMLConfigHeaderAttributeParam
- type IdentityProviderAccessSAMLConfigParam
- type IdentityProviderAccessSAMLParam
- type IdentityProviderAccessYandex
- type IdentityProviderAccessYandexParam
- type IdentityProviderDeleteParams
- type IdentityProviderDeleteResponse
- type IdentityProviderDeleteResponseEnvelope
- type IdentityProviderDeleteResponseEnvelopeSuccess
- type IdentityProviderGetParams
- type IdentityProviderGetResponseEnvelope
- type IdentityProviderGetResponseEnvelopeSuccess
- type IdentityProviderListParams
- type IdentityProviderListResponse
- type IdentityProviderListResponseAccessCentrify
- type IdentityProviderListResponseAccessCentrifyConfig
- type IdentityProviderListResponseAccessFacebook
- type IdentityProviderListResponseAccessGitHub
- type IdentityProviderListResponseAccessGoogle
- type IdentityProviderListResponseAccessGoogleApps
- type IdentityProviderListResponseAccessGoogleAppsConfig
- type IdentityProviderListResponseAccessGoogleConfig
- type IdentityProviderListResponseAccessLinkedin
- type IdentityProviderListResponseAccessOIDC
- type IdentityProviderListResponseAccessOIDCConfig
- type IdentityProviderListResponseAccessOkta
- type IdentityProviderListResponseAccessOktaConfig
- type IdentityProviderListResponseAccessOnelogin
- type IdentityProviderListResponseAccessOneloginConfig
- type IdentityProviderListResponseAccessPingone
- type IdentityProviderListResponseAccessPingoneConfig
- type IdentityProviderListResponseAccessSAML
- type IdentityProviderListResponseAccessSAMLConfig
- type IdentityProviderListResponseAccessSAMLConfigHeaderAttribute
- type IdentityProviderListResponseAccessYandex
- type IdentityProviderListResponseUnion
- type IdentityProviderNewParams
- type IdentityProviderNewResponseEnvelope
- type IdentityProviderNewResponseEnvelopeSuccess
- type IdentityProviderParam
- type IdentityProviderService
- func (r *IdentityProviderService) Delete(ctx context.Context, uuid string, body IdentityProviderDeleteParams, ...) (res *IdentityProviderDeleteResponse, err error)
- func (r *IdentityProviderService) Get(ctx context.Context, uuid string, query IdentityProviderGetParams, ...) (res *IdentityProvider, err error)
- func (r *IdentityProviderService) List(ctx context.Context, query IdentityProviderListParams, ...) (res *pagination.SinglePage[IdentityProviderListResponse], err error)
- func (r *IdentityProviderService) ListAutoPaging(ctx context.Context, query IdentityProviderListParams, ...) *pagination.SinglePageAutoPager[IdentityProviderListResponse]
- func (r *IdentityProviderService) New(ctx context.Context, params IdentityProviderNewParams, ...) (res *IdentityProvider, err error)
- func (r *IdentityProviderService) Update(ctx context.Context, uuid string, params IdentityProviderUpdateParams, ...) (res *IdentityProvider, err error)
- type IdentityProviderType
- type IdentityProviderUnion
- type IdentityProviderUnionParam
- type IdentityProviderUpdateParams
- type IdentityProviderUpdateResponseEnvelope
- type IdentityProviderUpdateResponseEnvelopeSuccess
- type Integration
- type IntegrationConfig
- type IntegrationType
- type IntuneInput
- type IntuneInputComplianceStatus
- type IntuneInputParam
- type KolideInput
- type KolideInputCountOperator
- type KolideInputParam
- type LiveStat
- type Location
- type LocationNetwork
- type LocationNetworkParam
- type LoggingSetting
- type LoggingSettingParam
- type LoggingSettingSettingsByRuleType
- type LoggingSettingSettingsByRuleTypeParam
- type LoginDesign
- type LoginDesignParam
- type NetworkPath
- type NetworkPathKind
- type NetworkPathNetworkPath
- type NetworkPathNetworkPathSampling
- type NetworkPathNetworkPathSamplingUnit
- type NetworkPathNetworkPathSlot
- type NetworkRouteDeleteParams
- type NetworkRouteDeleteResponseEnvelope
- type NetworkRouteDeleteResponseEnvelopeSuccess
- type NetworkRouteEditParams
- type NetworkRouteEditParamsTunType
- type NetworkRouteEditResponseEnvelope
- type NetworkRouteEditResponseEnvelopeSuccess
- type NetworkRouteIPGetParams
- type NetworkRouteIPGetResponseEnvelope
- type NetworkRouteIPGetResponseEnvelopeSuccess
- type NetworkRouteIPService
- type NetworkRouteListParams
- type NetworkRouteNetworkDeleteParams
- type NetworkRouteNetworkDeleteParamsTunType
- type NetworkRouteNetworkDeleteResponseEnvelope
- type NetworkRouteNetworkDeleteResponseEnvelopeSuccess
- type NetworkRouteNetworkEditParams
- type NetworkRouteNetworkEditResponseEnvelope
- type NetworkRouteNetworkEditResponseEnvelopeSuccess
- type NetworkRouteNetworkNewParams
- type NetworkRouteNetworkNewResponseEnvelope
- type NetworkRouteNetworkNewResponseEnvelopeSuccess
- type NetworkRouteNetworkService
- func (r *NetworkRouteNetworkService) Delete(ctx context.Context, ipNetworkEncoded string, ...) (res *Route, err error)
- func (r *NetworkRouteNetworkService) Edit(ctx context.Context, ipNetworkEncoded string, ...) (res *Route, err error)
- func (r *NetworkRouteNetworkService) New(ctx context.Context, ipNetworkEncoded string, ...) (res *Route, err error)
- type NetworkRouteNewParams
- type NetworkRouteNewResponseEnvelope
- type NetworkRouteNewResponseEnvelopeSuccess
- type NetworkRouteService
- func (r *NetworkRouteService) Delete(ctx context.Context, routeID string, body NetworkRouteDeleteParams, ...) (res *Route, err error)
- func (r *NetworkRouteService) Edit(ctx context.Context, routeID string, params NetworkRouteEditParams, ...) (res *Route, err error)
- func (r *NetworkRouteService) List(ctx context.Context, params NetworkRouteListParams, ...) (res *pagination.V4PagePaginationArray[Teamnet], err error)
- func (r *NetworkRouteService) ListAutoPaging(ctx context.Context, params NetworkRouteListParams, ...) *pagination.V4PagePaginationArrayAutoPager[Teamnet]
- func (r *NetworkRouteService) New(ctx context.Context, params NetworkRouteNewParams, ...) (res *Route, err error)
- type NetworkService
- type NetworkVirtualNetworkDeleteParams
- type NetworkVirtualNetworkDeleteResponseArray
- type NetworkVirtualNetworkDeleteResponseEnvelope
- type NetworkVirtualNetworkDeleteResponseEnvelopeSuccess
- type NetworkVirtualNetworkDeleteResponseUnion
- type NetworkVirtualNetworkEditParams
- type NetworkVirtualNetworkEditResponseArray
- type NetworkVirtualNetworkEditResponseEnvelope
- type NetworkVirtualNetworkEditResponseEnvelopeSuccess
- type NetworkVirtualNetworkEditResponseUnion
- type NetworkVirtualNetworkListParams
- type NetworkVirtualNetworkNewParams
- type NetworkVirtualNetworkNewResponseArray
- type NetworkVirtualNetworkNewResponseEnvelope
- type NetworkVirtualNetworkNewResponseEnvelopeSuccess
- type NetworkVirtualNetworkNewResponseUnion
- type NetworkVirtualNetworkService
- func (r *NetworkVirtualNetworkService) Delete(ctx context.Context, virtualNetworkID string, ...) (res *NetworkVirtualNetworkDeleteResponseUnion, err error)
- func (r *NetworkVirtualNetworkService) Edit(ctx context.Context, virtualNetworkID string, ...) (res *NetworkVirtualNetworkEditResponseUnion, err error)
- func (r *NetworkVirtualNetworkService) List(ctx context.Context, params NetworkVirtualNetworkListParams, ...) (res *pagination.SinglePage[VirtualNetwork], err error)
- func (r *NetworkVirtualNetworkService) ListAutoPaging(ctx context.Context, params NetworkVirtualNetworkListParams, ...) *pagination.SinglePageAutoPager[VirtualNetwork]
- func (r *NetworkVirtualNetworkService) New(ctx context.Context, params NetworkVirtualNetworkNewParams, ...) (res *NetworkVirtualNetworkNewResponseUnion, err error)
- type NewVersion
- type NotificationSettings
- type NotificationSettingsParam
- type OSVersionInput
- type OSVersionInputOperatingSystem
- type OSVersionInputOperator
- type OSVersionInputParam
- type OktaGroupRule
- type OktaGroupRuleOkta
- type OktaGroupRuleOktaParam
- type OktaGroupRuleParam
- type Organization
- type OrganizationCustomPages
- type OrganizationListParams
- type OrganizationListResponseEnvelope
- type OrganizationListResponseEnvelopeSuccess
- type OrganizationNewParams
- type OrganizationNewResponseEnvelope
- type OrganizationNewResponseEnvelopeSuccess
- type OrganizationRevokeUsersParams
- type OrganizationRevokeUsersResponse
- type OrganizationRevokeUsersResponseEnvelope
- type OrganizationRevokeUsersResponseEnvelopeSuccess
- type OrganizationService
- func (r *OrganizationService) List(ctx context.Context, query OrganizationListParams, ...) (res *Organization, err error)
- func (r *OrganizationService) New(ctx context.Context, params OrganizationNewParams, ...) (res *Organization, err error)
- func (r *OrganizationService) RevokeUsers(ctx context.Context, params OrganizationRevokeUsersParams, ...) (res *OrganizationRevokeUsersResponse, err error)
- func (r *OrganizationService) Update(ctx context.Context, params OrganizationUpdateParams, ...) (res *Organization, err error)
- type OrganizationUpdateParams
- type OrganizationUpdateParamsCustomPages
- type OrganizationUpdateResponseEnvelope
- type OrganizationUpdateResponseEnvelopeSuccess
- type Pattern
- type PatternParam
- type PatternValidation
- type Percentiles
- type Permission
- type PermissionGrant
- type PermissionGrantParam
- type Policy
- type PolicyDecision
- type PolicyParam
- type PredefinedProfile
- type PredefinedProfileEntry
- type PredefinedProfileType
- type Profile
- type ProfileDLPIntegrationProfile
- type ProfileDLPIntegrationProfileEntry
- type ProfileDLPIntegrationProfileType
- type ProfileType
- type ProfileUnion
- type ProtocolDetection
- type ProtocolDetectionParam
- type ProxyEndpoint
- type ResponseInfo
- type Role
- type Route
- type RouteParam
- type RuleSetting
- type RuleSettingAuditSSH
- type RuleSettingAuditSSHParam
- type RuleSettingBisoAdminControls
- type RuleSettingBisoAdminControlsParam
- type RuleSettingCheckSession
- type RuleSettingCheckSessionParam
- type RuleSettingDNSResolvers
- type RuleSettingDNSResolversParam
- type RuleSettingEgress
- type RuleSettingEgressParam
- type RuleSettingL4override
- type RuleSettingL4overrideParam
- type RuleSettingNotificationSettings
- type RuleSettingNotificationSettingsParam
- type RuleSettingParam
- type RuleSettingPayloadLog
- type RuleSettingPayloadLogParam
- type RuleSettingUntrustedCERT
- type RuleSettingUntrustedCERTAction
- type RuleSettingUntrustedCERTParam
- type SAMLGroupRule
- type SAMLGroupRuleParam
- type SAMLGroupRuleSAML
- type SAMLGroupRuleSAMLParam
- type SAMLSaasApp
- type SAMLSaasAppAuthType
- type SAMLSaasAppCustomAttributes
- type SAMLSaasAppCustomAttributesParam
- type SAMLSaasAppParam
- type SaasAppNameFormat
- type SaasAppNameIDFormat
- type SaasAppSource
- type SaasAppSourceParam
- type Schedule
- type ScheduleParam
- type SchemaData
- type SchemaDataParam
- type SchemaHTTP
- type SchemaHTTPParam
- type SchemaHTTPTargetPolicy
- type SchemaHTTPTargetPolicyParam
- type ScimConfig
- type ScimConfigParam
- type Seat
- type SeatEditParams
- type SeatEditParamsBody
- type SeatEditResponseEnvelope
- type SeatEditResponseEnvelopeResultInfo
- type SeatEditResponseEnvelopeSuccess
- type SeatService
- type SelfHostedDomainsh
- type SelfHostedDomainshParam
- type SentineloneInput
- type SentineloneInputOperatingSystem
- type SentineloneInputParam
- type SentineloneS2sInput
- type SentineloneS2sInputNetworkStatus
- type SentineloneS2sInputOperator
- type SentineloneS2sInputParam
- type ServiceToken
- type ServiceTokenRule
- type ServiceTokenRuleParam
- type ServiceTokenRuleServiceToken
- type ServiceTokenRuleServiceTokenParam
- type SettingsPolicy
- type SettingsPolicyServiceModeV2
- type SettingsPolicyTargetTest
- type SkipConfiguration
- type SkipConfigurationParam
- type SplitTunnelExclude
- type SplitTunnelExcludeParam
- type SplitTunnelInclude
- type SplitTunnelIncludeParam
- type TLSSettings
- type TLSSettingsParam
- type Tag
- type TaniumInput
- type TaniumInputOperator
- type TaniumInputParam
- type TaniumInputRiskLevel
- type TaniumInputScoreOperator
- type Teamnet
- type TeamnetTunType
- type TestStatOverTime
- type TestStatOverTimeSlot
- type Tests
- type TestsOverviewMetrics
- type TestsTest
- type TestsTestsHTTPResults
- type TestsTestsHTTPResultsByColo
- type TestsTestsHTTPResultsByColoResourceFetchTime
- type TestsTestsHTTPResultsByColoResourceFetchTimeHistory
- type TestsTestsHTTPResultsByColoResourceFetchTimeOverTime
- type TestsTestsHTTPResultsByColoResourceFetchTimeOverTimeValue
- type TestsTestsHTTPResultsResourceFetchTime
- type TestsTestsHTTPResultsResourceFetchTimeHistory
- type TestsTestsHTTPResultsResourceFetchTimeOverTime
- type TestsTestsHTTPResultsResourceFetchTimeOverTimeValue
- type TestsTestsKind
- type TestsTestsTracerouteResults
- type TestsTestsTracerouteResultsByColo
- type TestsTestsTracerouteResultsByColoRoundTripTime
- type TestsTestsTracerouteResultsByColoRoundTripTimeHistory
- type TestsTestsTracerouteResultsByColoRoundTripTimeOverTime
- type TestsTestsTracerouteResultsByColoRoundTripTimeOverTimeValue
- type TestsTestsTracerouteResultsRoundTripTime
- type TestsTestsTracerouteResultsRoundTripTimeHistory
- type TestsTestsTracerouteResultsRoundTripTimeOverTime
- type TestsTestsTracerouteResultsRoundTripTimeOverTimeValue
- type Traceroute
- type TracerouteKind
- type TracerouteTracerouteStats
- type TracerouteTracerouteStatsAvailabilityPct
- type TracerouteTracerouteStatsAvailabilityPctSlot
- type TracerouteTracerouteStatsByColo
- type TracerouteTracerouteStatsByColoAvailabilityPct
- type TracerouteTracerouteStatsByColoAvailabilityPctSlot
- type TracerouteTracerouteStatsByColoPacketLossPct
- type TracerouteTracerouteStatsByColoPacketLossPctSlot
- type TracerouteTracerouteStatsPacketLossPct
- type TracerouteTracerouteStatsPacketLossPctSlot
- type TunnelConfigurationGetParams
- type TunnelConfigurationGetResponseArray
- type TunnelConfigurationGetResponseEnvelope
- type TunnelConfigurationGetResponseEnvelopeSuccess
- type TunnelConfigurationGetResponseUnion
- type TunnelConfigurationService
- func (r *TunnelConfigurationService) Get(ctx context.Context, tunnelID string, query TunnelConfigurationGetParams, ...) (res *TunnelConfigurationGetResponseUnion, err error)
- func (r *TunnelConfigurationService) Update(ctx context.Context, tunnelID string, params TunnelConfigurationUpdateParams, ...) (res *TunnelConfigurationUpdateResponseUnion, err error)
- type TunnelConfigurationUpdateParams
- type TunnelConfigurationUpdateParamsConfig
- type TunnelConfigurationUpdateParamsConfigIngress
- type TunnelConfigurationUpdateParamsConfigIngressOriginRequest
- type TunnelConfigurationUpdateParamsConfigIngressOriginRequestAccess
- type TunnelConfigurationUpdateParamsConfigOriginRequest
- type TunnelConfigurationUpdateParamsConfigOriginRequestAccess
- type TunnelConfigurationUpdateParamsConfigWARPRouting
- type TunnelConfigurationUpdateResponseArray
- type TunnelConfigurationUpdateResponseEnvelope
- type TunnelConfigurationUpdateResponseEnvelopeSuccess
- type TunnelConfigurationUpdateResponseUnion
- type TunnelConnectionDeleteParams
- type TunnelConnectionDeleteResponseArray
- type TunnelConnectionDeleteResponseEnvelope
- type TunnelConnectionDeleteResponseEnvelopeSuccess
- type TunnelConnectionDeleteResponseUnion
- type TunnelConnectionGetParams
- type TunnelConnectionGetResponseEnvelope
- type TunnelConnectionGetResponseEnvelopeResultInfo
- type TunnelConnectionGetResponseEnvelopeSuccess
- type TunnelConnectionService
- func (r *TunnelConnectionService) Delete(ctx context.Context, tunnelID string, params TunnelConnectionDeleteParams, ...) (res *TunnelConnectionDeleteResponseUnion, err error)
- func (r *TunnelConnectionService) Get(ctx context.Context, tunnelID string, query TunnelConnectionGetParams, ...) (res *[]Client, err error)
- type TunnelConnectorGetParams
- type TunnelConnectorGetResponseEnvelope
- type TunnelConnectorGetResponseEnvelopeSuccess
- type TunnelConnectorService
- type TunnelDeleteParams
- type TunnelDeleteResponse
- type TunnelDeleteResponseEnvelope
- type TunnelDeleteResponseEnvelopeSuccess
- type TunnelEditParams
- type TunnelEditResponse
- type TunnelEditResponseEnvelope
- type TunnelEditResponseEnvelopeSuccess
- type TunnelEditResponseTunType
- type TunnelEditResponseTunnelWARPConnectorTunnel
- type TunnelEditResponseTunnelWARPConnectorTunnelConnection
- type TunnelEditResponseTunnelWARPConnectorTunnelTunType
- type TunnelEditResponseUnion
- type TunnelGetParams
- type TunnelGetResponse
- type TunnelGetResponseEnvelope
- type TunnelGetResponseEnvelopeSuccess
- type TunnelListParams
- type TunnelListResponse
- type TunnelListResponseTunType
- type TunnelListResponseTunnelWARPConnectorTunnel
- type TunnelListResponseTunnelWARPConnectorTunnelConnection
- type TunnelListResponseTunnelWARPConnectorTunnelTunType
- type TunnelListResponseUnion
- type TunnelManagementNewParams
- type TunnelManagementNewParamsResource
- type TunnelManagementNewResponseArray
- type TunnelManagementNewResponseEnvelope
- type TunnelManagementNewResponseEnvelopeSuccess
- type TunnelManagementNewResponseUnion
- type TunnelManagementService
- type TunnelNewParams
- type TunnelNewResponse
- type TunnelNewResponseEnvelope
- type TunnelNewResponseEnvelopeSuccess
- type TunnelService
- func (r *TunnelService) Delete(ctx context.Context, tunnelID string, params TunnelDeleteParams, ...) (res *TunnelDeleteResponse, err error)
- func (r *TunnelService) Edit(ctx context.Context, tunnelID string, params TunnelEditParams, ...) (res *TunnelEditResponse, err error)
- func (r *TunnelService) Get(ctx context.Context, tunnelID string, query TunnelGetParams, ...) (res *TunnelGetResponse, err error)
- func (r *TunnelService) List(ctx context.Context, params TunnelListParams, opts ...option.RequestOption) (res *pagination.V4PagePaginationArray[TunnelListResponse], err error)
- func (r *TunnelService) ListAutoPaging(ctx context.Context, params TunnelListParams, opts ...option.RequestOption) *pagination.V4PagePaginationArrayAutoPager[TunnelListResponse]
- func (r *TunnelService) New(ctx context.Context, params TunnelNewParams, opts ...option.RequestOption) (res *TunnelNewResponse, err error)
- type TunnelTokenGetParams
- type TunnelTokenGetResponseArray
- type TunnelTokenGetResponseEnvelope
- type TunnelTokenGetResponseEnvelopeSuccess
- type TunnelTokenGetResponseUnion
- type TunnelTokenService
- type UniqueClientIDInput
- type UniqueClientIDInputOperatingSystem
- type UniqueClientIDInputParam
- type UniqueDevices
- type User
- type UserParam
- type UserPolicyCheckGeo
- type UserRole
- type UserRoleParam
- type UserRolesPermissions
- type UserRolesPermissionsParam
- type UserUser
- type UserUserParam
- type VirtualNetwork
- type WorkspaceOneInput
- type WorkspaceOneInputComplianceStatus
- type WorkspaceOneInputParam
- type ZeroTrustGroup
- type ZeroTrustService
Constants ¶
const AuditLogActorTypeAdmin = shared.AuditLogActorTypeAdmin
This is an alias to an internal value.
const AuditLogActorTypeCloudflare = shared.AuditLogActorTypeCloudflare
This is an alias to an internal value.
const AuditLogActorTypeUser = shared.AuditLogActorTypeUser
This is an alias to an internal value.
const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI
This is an alias to an internal value.
const CloudflareTunnelTunTypeCfdTunnel = shared.CloudflareTunnelTunTypeCfdTunnel
This is an alias to an internal value.
const CloudflareTunnelTunTypeGRE = shared.CloudflareTunnelTunTypeGRE
This is an alias to an internal value.
const CloudflareTunnelTunTypeIPSec = shared.CloudflareTunnelTunTypeIPSec
This is an alias to an internal value.
const CloudflareTunnelTunTypeWARPConnector = shared.CloudflareTunnelTunTypeWARPConnector
This is an alias to an internal value.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessApplicationCADeleteParams ¶
type AccessApplicationCADeleteParams struct { // The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. AccountID param.Field[string] `path:"account_id"` // The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. ZoneID param.Field[string] `path:"zone_id"` }
type AccessApplicationCADeleteResponse ¶
type AccessApplicationCADeleteResponse struct { // The ID of the CA. ID string `json:"id"` JSON accessApplicationCADeleteResponseJSON `json:"-"` }
func (*AccessApplicationCADeleteResponse) UnmarshalJSON ¶
func (r *AccessApplicationCADeleteResponse) UnmarshalJSON(data []byte) (err error)
type AccessApplicationCADeleteResponseEnvelope ¶
type AccessApplicationCADeleteResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result AccessApplicationCADeleteResponse `json:"result,required"` // Whether the API call was successful Success AccessApplicationCADeleteResponseEnvelopeSuccess `json:"success,required"` JSON accessApplicationCADeleteResponseEnvelopeJSON `json:"-"` }
func (*AccessApplicationCADeleteResponseEnvelope) UnmarshalJSON ¶
func (r *AccessApplicationCADeleteResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AccessApplicationCADeleteResponseEnvelopeSuccess ¶
type AccessApplicationCADeleteResponseEnvelopeSuccess bool
Whether the API call was successful
const (
AccessApplicationCADeleteResponseEnvelopeSuccessTrue AccessApplicationCADeleteResponseEnvelopeSuccess = true
)
func (AccessApplicationCADeleteResponseEnvelopeSuccess) IsKnown ¶
func (r AccessApplicationCADeleteResponseEnvelopeSuccess) IsKnown() bool
type AccessApplicationCAGetParams ¶
type AccessApplicationCAGetParams struct { // The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. AccountID param.Field[string] `path:"account_id"` // The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. ZoneID param.Field[string] `path:"zone_id"` }
type AccessApplicationCAGetResponseEnvelope ¶
type AccessApplicationCAGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result AccessApplicationCAGetResponseUnion `json:"result,required"` // Whether the API call was successful Success AccessApplicationCAGetResponseEnvelopeSuccess `json:"success,required"` JSON accessApplicationCAGetResponseEnvelopeJSON `json:"-"` }
func (*AccessApplicationCAGetResponseEnvelope) UnmarshalJSON ¶
func (r *AccessApplicationCAGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AccessApplicationCAGetResponseEnvelopeSuccess ¶
type AccessApplicationCAGetResponseEnvelopeSuccess bool
Whether the API call was successful
const (
AccessApplicationCAGetResponseEnvelopeSuccessTrue AccessApplicationCAGetResponseEnvelopeSuccess = true
)
func (AccessApplicationCAGetResponseEnvelopeSuccess) IsKnown ¶
func (r AccessApplicationCAGetResponseEnvelopeSuccess) IsKnown() bool
type AccessApplicationCAGetResponseUnion ¶
type AccessApplicationCAGetResponseUnion interface {
ImplementsZeroTrustAccessApplicationCAGetResponseUnion()
}
Union satisfied by zero_trust.AccessApplicationCAGetResponseUnknown or shared.UnionString.
type AccessApplicationCAListParams ¶
type AccessApplicationCAListParams struct { // The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. AccountID param.Field[string] `path:"account_id"` // The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. ZoneID param.Field[string] `path:"zone_id"` }
type AccessApplicationCANewParams ¶
type AccessApplicationCANewParams struct { // The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. AccountID param.Field[string] `path:"account_id"` // The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. ZoneID param.Field[string] `path:"zone_id"` }
type AccessApplicationCANewResponseEnvelope ¶
type AccessApplicationCANewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result AccessApplicationCANewResponseUnion `json:"result,required"` // Whether the API call was successful Success AccessApplicationCANewResponseEnvelopeSuccess `json:"success,required"` JSON accessApplicationCANewResponseEnvelopeJSON `json:"-"` }
func (*AccessApplicationCANewResponseEnvelope) UnmarshalJSON ¶
func (r *AccessApplicationCANewResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AccessApplicationCANewResponseEnvelopeSuccess ¶
type AccessApplicationCANewResponseEnvelopeSuccess bool
Whether the API call was successful
const (
AccessApplicationCANewResponseEnvelopeSuccessTrue AccessApplicationCANewResponseEnvelopeSuccess = true
)
func (AccessApplicationCANewResponseEnvelopeSuccess) IsKnown ¶
func (r AccessApplicationCANewResponseEnvelopeSuccess) IsKnown() bool
type AccessApplicationCANewResponseUnion ¶
type AccessApplicationCANewResponseUnion interface {
ImplementsZeroTrustAccessApplicationCANewResponseUnion()
}
Union satisfied by zero_trust.AccessApplicationCANewResponseUnknown or shared.UnionString.
type AccessApplicationCAService ¶
type AccessApplicationCAService struct {
Options []option.RequestOption
}
AccessApplicationCAService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewAccessApplicationCAService method instead.
func NewAccessApplicationCAService ¶
func NewAccessApplicationCAService(opts ...option.RequestOption) (r *AccessApplicationCAService)
NewAccessApplicationCAService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*AccessApplicationCAService) Delete ¶
func (r *AccessApplicationCAService) Delete(ctx context.Context, uuid string, body AccessApplicationCADeleteParams, opts ...option.RequestOption) (res *AccessApplicationCADeleteResponse, err error)
Deletes a short-lived certificate CA.
func (*AccessApplicationCAService) Get ¶
func (r *AccessApplicationCAService) Get(ctx context.Context, uuid string, query AccessApplicationCAGetParams, opts ...option.RequestOption) (res *AccessApplicationCAGetResponseUnion, err error)
Fetches a short-lived certificate CA and its public key.
func (*AccessApplicationCAService) List ¶
func (r *AccessApplicationCAService) List(ctx context.Context, query AccessApplicationCAListParams, opts ...option.RequestOption) (res *pagination.SinglePage[CA], err error)
Lists short-lived certificate CAs and their public keys.
func (*AccessApplicationCAService) ListAutoPaging ¶
func (r *AccessApplicationCAService) ListAutoPaging(ctx context.Context, query AccessApplicationCAListParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[CA]
Lists short-lived certificate CAs and their public keys.
func (*AccessApplicationCAService) New ¶
func (r *AccessApplicationCAService) New(ctx context.Context, uuid string, body AccessApplicationCANewParams, opts ...option.RequestOption) (res *AccessApplicationCANewResponseUnion, err error)
Generates a new short-lived certificate CA and public key.
type AccessApplicationDeleteParams ¶
type AccessApplicationDeleteParams struct { // The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. AccountID param.Field[string] `path:"account_id"` // The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. ZoneID param.Field[string] `path:"zone_id"` }
type AccessApplicationDeleteResponse ¶
type AccessApplicationDeleteResponse struct { // UUID ID string `json:"id"` JSON accessApplicationDeleteResponseJSON `json:"-"` }
func (*AccessApplicationDeleteResponse) UnmarshalJSON ¶
func (r *AccessApplicationDeleteResponse) UnmarshalJSON(data []byte) (err error)
type AccessApplicationDeleteResponseEnvelope ¶
type AccessApplicationDeleteResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result AccessApplicationDeleteResponse `json:"result,required"` // Whether the API call was successful Success AccessApplicationDeleteResponseEnvelopeSuccess `json:"success,required"` JSON accessApplicationDeleteResponseEnvelopeJSON `json:"-"` }
func (*AccessApplicationDeleteResponseEnvelope) UnmarshalJSON ¶
func (r *AccessApplicationDeleteResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AccessApplicationDeleteResponseEnvelopeSuccess ¶
type AccessApplicationDeleteResponseEnvelopeSuccess bool
Whether the API call was successful
const (
AccessApplicationDeleteResponseEnvelopeSuccessTrue AccessApplicationDeleteResponseEnvelopeSuccess = true
)
func (AccessApplicationDeleteResponseEnvelopeSuccess) IsKnown ¶
func (r AccessApplicationDeleteResponseEnvelopeSuccess) IsKnown() bool
type AccessApplicationGetResponseEnvelope ¶
type AccessApplicationGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result Application `json:"result,required"` // Whether the API call was successful Success AccessApplicationGetResponseEnvelopeSuccess `json:"success,required"` JSON accessApplicationGetResponseEnvelopeJSON `json:"-"` }
func (*AccessApplicationGetResponseEnvelope) UnmarshalJSON ¶
func (r *AccessApplicationGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AccessApplicationGetResponseEnvelopeSuccess ¶
type AccessApplicationGetResponseEnvelopeSuccess bool
Whether the API call was successful
const (
AccessApplicationGetResponseEnvelopeSuccessTrue AccessApplicationGetResponseEnvelopeSuccess = true
)
func (AccessApplicationGetResponseEnvelopeSuccess) IsKnown ¶
func (r AccessApplicationGetResponseEnvelopeSuccess) IsKnown() bool
type AccessApplicationNewParams ¶
type AccessApplicationNewParams struct { Application ApplicationUnionParam `json:"application,required"` // The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. AccountID param.Field[string] `path:"account_id"` // The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. ZoneID param.Field[string] `path:"zone_id"` }
func (AccessApplicationNewParams) MarshalJSON ¶
func (r AccessApplicationNewParams) MarshalJSON() (data []byte, err error)
type AccessApplicationNewResponseEnvelope ¶
type AccessApplicationNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result Application `json:"result,required"` // Whether the API call was successful Success AccessApplicationNewResponseEnvelopeSuccess `json:"success,required"` JSON accessApplicationNewResponseEnvelopeJSON `json:"-"` }
func (*AccessApplicationNewResponseEnvelope) UnmarshalJSON ¶
func (r *AccessApplicationNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AccessApplicationNewResponseEnvelopeSuccess ¶
type AccessApplicationNewResponseEnvelopeSuccess bool
Whether the API call was successful
const (
AccessApplicationNewResponseEnvelopeSuccessTrue AccessApplicationNewResponseEnvelopeSuccess = true
)
func (AccessApplicationNewResponseEnvelopeSuccess) IsKnown ¶
func (r AccessApplicationNewResponseEnvelopeSuccess) IsKnown() bool
type AccessApplicationPolicyDeleteParams ¶
type AccessApplicationPolicyDeleteParams struct { // The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. AccountID param.Field[string] `path:"account_id"` // The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. ZoneID param.Field[string] `path:"zone_id"` }
type AccessApplicationPolicyDeleteResponse ¶
type AccessApplicationPolicyDeleteResponse struct { // UUID ID string `json:"id"` JSON accessApplicationPolicyDeleteResponseJSON `json:"-"` }
func (*AccessApplicationPolicyDeleteResponse) UnmarshalJSON ¶
func (r *AccessApplicationPolicyDeleteResponse) UnmarshalJSON(data []byte) (err error)
type AccessApplicationPolicyDeleteResponseEnvelope ¶
type AccessApplicationPolicyDeleteResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result AccessApplicationPolicyDeleteResponse `json:"result,required"` // Whether the API call was successful Success AccessApplicationPolicyDeleteResponseEnvelopeSuccess `json:"success,required"` JSON accessApplicationPolicyDeleteResponseEnvelopeJSON `json:"-"` }
func (*AccessApplicationPolicyDeleteResponseEnvelope) UnmarshalJSON ¶
func (r *AccessApplicationPolicyDeleteResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AccessApplicationPolicyDeleteResponseEnvelopeSuccess ¶
type AccessApplicationPolicyDeleteResponseEnvelopeSuccess bool
Whether the API call was successful
const (
AccessApplicationPolicyDeleteResponseEnvelopeSuccessTrue AccessApplicationPolicyDeleteResponseEnvelopeSuccess = true
)
func (AccessApplicationPolicyDeleteResponseEnvelopeSuccess) IsKnown ¶
func (r AccessApplicationPolicyDeleteResponseEnvelopeSuccess) IsKnown() bool
type AccessApplicationPolicyGetParams ¶
type AccessApplicationPolicyGetParams struct { // The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. AccountID param.Field[string] `path:"account_id"` // The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. ZoneID param.Field[string] `path:"zone_id"` }
type AccessApplicationPolicyGetResponseEnvelope ¶
type AccessApplicationPolicyGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result Policy `json:"result,required"` // Whether the API call was successful Success AccessApplicationPolicyGetResponseEnvelopeSuccess `json:"success,required"` JSON accessApplicationPolicyGetResponseEnvelopeJSON `json:"-"` }
func (*AccessApplicationPolicyGetResponseEnvelope) UnmarshalJSON ¶
func (r *AccessApplicationPolicyGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AccessApplicationPolicyGetResponseEnvelopeSuccess ¶
type AccessApplicationPolicyGetResponseEnvelopeSuccess bool
Whether the API call was successful
const (
AccessApplicationPolicyGetResponseEnvelopeSuccessTrue AccessApplicationPolicyGetResponseEnvelopeSuccess = true
)
func (AccessApplicationPolicyGetResponseEnvelopeSuccess) IsKnown ¶
func (r AccessApplicationPolicyGetResponseEnvelopeSuccess) IsKnown() bool
type AccessApplicationPolicyListParams ¶
type AccessApplicationPolicyListParams struct { // The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. AccountID param.Field[string] `path:"account_id"` // The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. ZoneID param.Field[string] `path:"zone_id"` }
type AccessApplicationPolicyNewParams ¶
type AccessApplicationPolicyNewParams struct { // The action Access will take if a user matches this policy. Decision param.Field[AccessApplicationPolicyNewParamsDecision] `json:"decision,required"` // Rules evaluated with an OR logical operator. A user needs to meet only one of // the Include rules. Include param.Field[[]AccessRuleUnionParam] `json:"include,required"` // The name of the Access policy. Name param.Field[string] `json:"name,required"` // The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. AccountID param.Field[string] `path:"account_id"` // The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. ZoneID param.Field[string] `path:"zone_id"` // Administrators who can approve a temporary authentication request. ApprovalGroups param.Field[[]ApprovalGroupParam] `json:"approval_groups"` // Requires the user to request access from an administrator at the start of each // session. ApprovalRequired param.Field[bool] `json:"approval_required"` // Rules evaluated with a NOT logical operator. To match the policy, a user cannot // meet any of the Exclude rules. Exclude param.Field[[]AccessRuleUnionParam] `json:"exclude"` // Require this application to be served in an isolated browser for users matching // this policy. 'Client Web Isolation' must be on for the account in order to use // this feature. IsolationRequired param.Field[bool] `json:"isolation_required"` // The order of execution for this policy. Must be unique for each policy. Precedence param.Field[int64] `json:"precedence"` // A custom message that will appear on the purpose justification screen. PurposeJustificationPrompt param.Field[string] `json:"purpose_justification_prompt"` // Require users to enter a justification when they log in to the application. PurposeJustificationRequired param.Field[bool] `json:"purpose_justification_required"` // Rules evaluated with an AND logical operator. To match the policy, a user must // meet all of the Require rules. Require param.Field[[]AccessRuleUnionParam] `json:"require"` // The amount of time that tokens issued for the application will be valid. Must be // in the format `300ms` or `2h45m`. Valid time units are: ns, us (or µs), ms, s, // m, h. SessionDuration param.Field[string] `json:"session_duration"` }
func (AccessApplicationPolicyNewParams) MarshalJSON ¶
func (r AccessApplicationPolicyNewParams) MarshalJSON() (data []byte, err error)
type AccessApplicationPolicyNewParamsDecision ¶
type AccessApplicationPolicyNewParamsDecision string
The action Access will take if a user matches this policy.
const ( AccessApplicationPolicyNewParamsDecisionAllow AccessApplicationPolicyNewParamsDecision = "allow" AccessApplicationPolicyNewParamsDecisionDeny AccessApplicationPolicyNewParamsDecision = "deny" AccessApplicationPolicyNewParamsDecisionNonIdentity AccessApplicationPolicyNewParamsDecision = "non_identity" AccessApplicationPolicyNewParamsDecisionBypass AccessApplicationPolicyNewParamsDecision = "bypass" )
func (AccessApplicationPolicyNewParamsDecision) IsKnown ¶
func (r AccessApplicationPolicyNewParamsDecision) IsKnown() bool
type AccessApplicationPolicyNewResponseEnvelope ¶
type AccessApplicationPolicyNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result Policy `json:"result,required"` // Whether the API call was successful Success AccessApplicationPolicyNewResponseEnvelopeSuccess `json:"success,required"` JSON accessApplicationPolicyNewResponseEnvelopeJSON `json:"-"` }
func (*AccessApplicationPolicyNewResponseEnvelope) UnmarshalJSON ¶
func (r *AccessApplicationPolicyNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AccessApplicationPolicyNewResponseEnvelopeSuccess ¶
type AccessApplicationPolicyNewResponseEnvelopeSuccess bool
Whether the API call was successful
const (
AccessApplicationPolicyNewResponseEnvelopeSuccessTrue AccessApplicationPolicyNewResponseEnvelopeSuccess = true
)
func (AccessApplicationPolicyNewResponseEnvelopeSuccess) IsKnown ¶
func (r AccessApplicationPolicyNewResponseEnvelopeSuccess) IsKnown() bool
type AccessApplicationPolicyService ¶
type AccessApplicationPolicyService struct {
Options []option.RequestOption
}
AccessApplicationPolicyService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewAccessApplicationPolicyService method instead.
func NewAccessApplicationPolicyService ¶
func NewAccessApplicationPolicyService(opts ...option.RequestOption) (r *AccessApplicationPolicyService)
NewAccessApplicationPolicyService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*AccessApplicationPolicyService) Delete ¶
func (r *AccessApplicationPolicyService) Delete(ctx context.Context, uuid1 string, uuid string, body AccessApplicationPolicyDeleteParams, opts ...option.RequestOption) (res *AccessApplicationPolicyDeleteResponse, err error)
Delete an Access policy.
func (*AccessApplicationPolicyService) Get ¶
func (r *AccessApplicationPolicyService) Get(ctx context.Context, uuid1 string, uuid string, query AccessApplicationPolicyGetParams, opts ...option.RequestOption) (res *Policy, err error)
Fetches a single Access policy.
func (*AccessApplicationPolicyService) List ¶
func (r *AccessApplicationPolicyService) List(ctx context.Context, uuid string, query AccessApplicationPolicyListParams, opts ...option.RequestOption) (res *pagination.SinglePage[Policy], err error)
Lists Access policies configured for an application.
func (*AccessApplicationPolicyService) ListAutoPaging ¶
func (r *AccessApplicationPolicyService) ListAutoPaging(ctx context.Context, uuid string, query AccessApplicationPolicyListParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[Policy]
Lists Access policies configured for an application.
func (*AccessApplicationPolicyService) New ¶
func (r *AccessApplicationPolicyService) New(ctx context.Context, uuid string, params AccessApplicationPolicyNewParams, opts ...option.RequestOption) (res *Policy, err error)
Create a new Access policy for an application.
func (*AccessApplicationPolicyService) Update ¶
func (r *AccessApplicationPolicyService) Update(ctx context.Context, uuid1 string, uuid string, params AccessApplicationPolicyUpdateParams, opts ...option.RequestOption) (res *Policy, err error)
Update a configured Access policy.
type AccessApplicationPolicyUpdateParams ¶
type AccessApplicationPolicyUpdateParams struct { // The action Access will take if a user matches this policy. Decision param.Field[AccessApplicationPolicyUpdateParamsDecision] `json:"decision,required"` // Rules evaluated with an OR logical operator. A user needs to meet only one of // the Include rules. Include param.Field[[]AccessRuleUnionParam] `json:"include,required"` // The name of the Access policy. Name param.Field[string] `json:"name,required"` // The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. AccountID param.Field[string] `path:"account_id"` // The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. ZoneID param.Field[string] `path:"zone_id"` // Administrators who can approve a temporary authentication request. ApprovalGroups param.Field[[]ApprovalGroupParam] `json:"approval_groups"` // Requires the user to request access from an administrator at the start of each // session. ApprovalRequired param.Field[bool] `json:"approval_required"` // Rules evaluated with a NOT logical operator. To match the policy, a user cannot // meet any of the Exclude rules. Exclude param.Field[[]AccessRuleUnionParam] `json:"exclude"` // Require this application to be served in an isolated browser for users matching // this policy. 'Client Web Isolation' must be on for the account in order to use // this feature. IsolationRequired param.Field[bool] `json:"isolation_required"` // The order of execution for this policy. Must be unique for each policy. Precedence param.Field[int64] `json:"precedence"` // A custom message that will appear on the purpose justification screen. PurposeJustificationPrompt param.Field[string] `json:"purpose_justification_prompt"` // Require users to enter a justification when they log in to the application. PurposeJustificationRequired param.Field[bool] `json:"purpose_justification_required"` // Rules evaluated with an AND logical operator. To match the policy, a user must // meet all of the Require rules. Require param.Field[[]AccessRuleUnionParam] `json:"require"` // The amount of time that tokens issued for the application will be valid. Must be // in the format `300ms` or `2h45m`. Valid time units are: ns, us (or µs), ms, s, // m, h. SessionDuration param.Field[string] `json:"session_duration"` }
func (AccessApplicationPolicyUpdateParams) MarshalJSON ¶
func (r AccessApplicationPolicyUpdateParams) MarshalJSON() (data []byte, err error)
type AccessApplicationPolicyUpdateParamsDecision ¶
type AccessApplicationPolicyUpdateParamsDecision string
The action Access will take if a user matches this policy.
const ( AccessApplicationPolicyUpdateParamsDecisionAllow AccessApplicationPolicyUpdateParamsDecision = "allow" AccessApplicationPolicyUpdateParamsDecisionDeny AccessApplicationPolicyUpdateParamsDecision = "deny" AccessApplicationPolicyUpdateParamsDecisionNonIdentity AccessApplicationPolicyUpdateParamsDecision = "non_identity" AccessApplicationPolicyUpdateParamsDecisionBypass AccessApplicationPolicyUpdateParamsDecision = "bypass" )
func (AccessApplicationPolicyUpdateParamsDecision) IsKnown ¶
func (r AccessApplicationPolicyUpdateParamsDecision) IsKnown() bool
type AccessApplicationPolicyUpdateResponseEnvelope ¶
type AccessApplicationPolicyUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result Policy `json:"result,required"` // Whether the API call was successful Success AccessApplicationPolicyUpdateResponseEnvelopeSuccess `json:"success,required"` JSON accessApplicationPolicyUpdateResponseEnvelopeJSON `json:"-"` }
func (*AccessApplicationPolicyUpdateResponseEnvelope) UnmarshalJSON ¶
func (r *AccessApplicationPolicyUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AccessApplicationPolicyUpdateResponseEnvelopeSuccess ¶
type AccessApplicationPolicyUpdateResponseEnvelopeSuccess bool
Whether the API call was successful
const (
AccessApplicationPolicyUpdateResponseEnvelopeSuccessTrue AccessApplicationPolicyUpdateResponseEnvelopeSuccess = true
)
func (AccessApplicationPolicyUpdateResponseEnvelopeSuccess) IsKnown ¶
func (r AccessApplicationPolicyUpdateResponseEnvelopeSuccess) IsKnown() bool
type AccessApplicationRevokeTokensParams ¶
type AccessApplicationRevokeTokensParams struct { // The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. AccountID param.Field[string] `path:"account_id"` // The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. ZoneID param.Field[string] `path:"zone_id"` }
type AccessApplicationRevokeTokensResponse ¶
type AccessApplicationRevokeTokensResponse = interface{}
type AccessApplicationRevokeTokensResponseEnvelope ¶
type AccessApplicationRevokeTokensResponseEnvelope struct { Result AccessApplicationRevokeTokensResponse `json:"result,nullable"` Success AccessApplicationRevokeTokensResponseEnvelopeSuccess `json:"success"` JSON accessApplicationRevokeTokensResponseEnvelopeJSON `json:"-"` }
func (*AccessApplicationRevokeTokensResponseEnvelope) UnmarshalJSON ¶
func (r *AccessApplicationRevokeTokensResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AccessApplicationRevokeTokensResponseEnvelopeSuccess ¶
type AccessApplicationRevokeTokensResponseEnvelopeSuccess bool
const ( AccessApplicationRevokeTokensResponseEnvelopeSuccessTrue AccessApplicationRevokeTokensResponseEnvelopeSuccess = true AccessApplicationRevokeTokensResponseEnvelopeSuccessFalse AccessApplicationRevokeTokensResponseEnvelopeSuccess = false )
func (AccessApplicationRevokeTokensResponseEnvelopeSuccess) IsKnown ¶
func (r AccessApplicationRevokeTokensResponseEnvelopeSuccess) IsKnown() bool
type AccessApplicationService ¶
type AccessApplicationService struct { Options []option.RequestOption CAs *AccessApplicationCAService UserPolicyChecks *AccessApplicationUserPolicyCheckService Policies *AccessApplicationPolicyService }
AccessApplicationService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewAccessApplicationService method instead.
func NewAccessApplicationService ¶
func NewAccessApplicationService(opts ...option.RequestOption) (r *AccessApplicationService)
NewAccessApplicationService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*AccessApplicationService) Delete ¶
func (r *AccessApplicationService) Delete(ctx context.Context, appID AppIDUnionParam, body AccessApplicationDeleteParams, opts ...option.RequestOption) (res *AccessApplicationDeleteResponse, err error)
Deletes an application from Access.
func (*AccessApplicationService) Get ¶
func (r *AccessApplicationService) Get(ctx context.Context, appID AppIDUnionParam, query AccessApplicationGetParams, opts ...option.RequestOption) (res *Application, err error)
Fetches information about an Access application.
func (*AccessApplicationService) List ¶
func (r *AccessApplicationService) List(ctx context.Context, query AccessApplicationListParams, opts ...option.RequestOption) (res *pagination.SinglePage[Application], err error)
Lists all Access applications in an account or zone.
func (*AccessApplicationService) ListAutoPaging ¶
func (r *AccessApplicationService) ListAutoPaging(ctx context.Context, query AccessApplicationListParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[Application]
Lists all Access applications in an account or zone.
func (*AccessApplicationService) New ¶
func (r *AccessApplicationService) New(ctx context.Context, params AccessApplicationNewParams, opts ...option.RequestOption) (res *Application, err error)
Adds a new application to Access.
func (*AccessApplicationService) RevokeTokens ¶
func (r *AccessApplicationService) RevokeTokens(ctx context.Context, appID AppIDUnionParam, body AccessApplicationRevokeTokensParams, opts ...option.RequestOption) (res *AccessApplicationRevokeTokensResponse, err error)
Revokes all tokens issued for an application.
func (*AccessApplicationService) Update ¶
func (r *AccessApplicationService) Update(ctx context.Context, appID AppIDUnionParam, params AccessApplicationUpdateParams, opts ...option.RequestOption) (res *Application, err error)
Updates an Access application.
type AccessApplicationUpdateParams ¶
type AccessApplicationUpdateParams struct { Application ApplicationUnionParam `json:"application,required"` // The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. AccountID param.Field[string] `path:"account_id"` // The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. ZoneID param.Field[string] `path:"zone_id"` }
func (AccessApplicationUpdateParams) MarshalJSON ¶
func (r AccessApplicationUpdateParams) MarshalJSON() (data []byte, err error)
type AccessApplicationUpdateResponseEnvelope ¶
type AccessApplicationUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result Application `json:"result,required"` // Whether the API call was successful Success AccessApplicationUpdateResponseEnvelopeSuccess `json:"success,required"` JSON accessApplicationUpdateResponseEnvelopeJSON `json:"-"` }
func (*AccessApplicationUpdateResponseEnvelope) UnmarshalJSON ¶
func (r *AccessApplicationUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AccessApplicationUpdateResponseEnvelopeSuccess ¶
type AccessApplicationUpdateResponseEnvelopeSuccess bool
Whether the API call was successful
const (
AccessApplicationUpdateResponseEnvelopeSuccessTrue AccessApplicationUpdateResponseEnvelopeSuccess = true
)
func (AccessApplicationUpdateResponseEnvelopeSuccess) IsKnown ¶
func (r AccessApplicationUpdateResponseEnvelopeSuccess) IsKnown() bool
type AccessApplicationUserPolicyCheckListParams ¶
type AccessApplicationUserPolicyCheckListParams struct { // The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. AccountID param.Field[string] `path:"account_id"` // The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. ZoneID param.Field[string] `path:"zone_id"` }
type AccessApplicationUserPolicyCheckListResponse ¶
type AccessApplicationUserPolicyCheckListResponse struct { AppState AccessApplicationUserPolicyCheckListResponseAppState `json:"app_state"` UserIdentity AccessApplicationUserPolicyCheckListResponseUserIdentity `json:"user_identity"` JSON accessApplicationUserPolicyCheckListResponseJSON `json:"-"` }
func (*AccessApplicationUserPolicyCheckListResponse) UnmarshalJSON ¶
func (r *AccessApplicationUserPolicyCheckListResponse) UnmarshalJSON(data []byte) (err error)
type AccessApplicationUserPolicyCheckListResponseAppState ¶
type AccessApplicationUserPolicyCheckListResponseAppState struct { // UUID AppUID string `json:"app_uid"` Aud string `json:"aud"` Hostname string `json:"hostname"` Name string `json:"name"` Policies []interface{} `json:"policies"` Status string `json:"status"` JSON accessApplicationUserPolicyCheckListResponseAppStateJSON `json:"-"` }
func (*AccessApplicationUserPolicyCheckListResponseAppState) UnmarshalJSON ¶
func (r *AccessApplicationUserPolicyCheckListResponseAppState) UnmarshalJSON(data []byte) (err error)
type AccessApplicationUserPolicyCheckListResponseEnvelope ¶
type AccessApplicationUserPolicyCheckListResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result AccessApplicationUserPolicyCheckListResponse `json:"result,required"` // Whether the API call was successful Success AccessApplicationUserPolicyCheckListResponseEnvelopeSuccess `json:"success,required"` JSON accessApplicationUserPolicyCheckListResponseEnvelopeJSON `json:"-"` }
func (*AccessApplicationUserPolicyCheckListResponseEnvelope) UnmarshalJSON ¶
func (r *AccessApplicationUserPolicyCheckListResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AccessApplicationUserPolicyCheckListResponseEnvelopeSuccess ¶
type AccessApplicationUserPolicyCheckListResponseEnvelopeSuccess bool
Whether the API call was successful
const (
AccessApplicationUserPolicyCheckListResponseEnvelopeSuccessTrue AccessApplicationUserPolicyCheckListResponseEnvelopeSuccess = true
)
func (AccessApplicationUserPolicyCheckListResponseEnvelopeSuccess) IsKnown ¶
func (r AccessApplicationUserPolicyCheckListResponseEnvelopeSuccess) IsKnown() bool
type AccessApplicationUserPolicyCheckListResponseUserIdentity ¶
type AccessApplicationUserPolicyCheckListResponseUserIdentity struct { ID string `json:"id"` AccountID string `json:"account_id"` DeviceSessions interface{} `json:"device_sessions"` Email string `json:"email"` Geo UserPolicyCheckGeo `json:"geo"` Iat int64 `json:"iat"` IsGateway bool `json:"is_gateway"` IsWARP bool `json:"is_warp"` Name string `json:"name"` // UUID UserUUID string `json:"user_uuid"` Version int64 `json:"version"` JSON accessApplicationUserPolicyCheckListResponseUserIdentityJSON `json:"-"` }
func (*AccessApplicationUserPolicyCheckListResponseUserIdentity) UnmarshalJSON ¶
func (r *AccessApplicationUserPolicyCheckListResponseUserIdentity) UnmarshalJSON(data []byte) (err error)
type AccessApplicationUserPolicyCheckService ¶
type AccessApplicationUserPolicyCheckService struct {
Options []option.RequestOption
}
AccessApplicationUserPolicyCheckService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewAccessApplicationUserPolicyCheckService method instead.
func NewAccessApplicationUserPolicyCheckService ¶
func NewAccessApplicationUserPolicyCheckService(opts ...option.RequestOption) (r *AccessApplicationUserPolicyCheckService)
NewAccessApplicationUserPolicyCheckService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*AccessApplicationUserPolicyCheckService) List ¶
func (r *AccessApplicationUserPolicyCheckService) List(ctx context.Context, appID AppIDUnionParam, query AccessApplicationUserPolicyCheckListParams, opts ...option.RequestOption) (res *AccessApplicationUserPolicyCheckListResponse, err error)
Tests if a specific user has permission to access an application.
type AccessBookmarkDeleteParams ¶
type AccessBookmarkDeleteParams struct {
Body interface{} `json:"body,required"`
}
func (AccessBookmarkDeleteParams) MarshalJSON ¶
func (r AccessBookmarkDeleteParams) MarshalJSON() (data []byte, err error)
type AccessBookmarkDeleteResponse ¶
type AccessBookmarkDeleteResponse struct { // UUID ID string `json:"id"` JSON accessBookmarkDeleteResponseJSON `json:"-"` }
func (*AccessBookmarkDeleteResponse) UnmarshalJSON ¶
func (r *AccessBookmarkDeleteResponse) UnmarshalJSON(data []byte) (err error)
type AccessBookmarkDeleteResponseEnvelope ¶
type AccessBookmarkDeleteResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result AccessBookmarkDeleteResponse `json:"result,required"` // Whether the API call was successful Success AccessBookmarkDeleteResponseEnvelopeSuccess `json:"success,required"` JSON accessBookmarkDeleteResponseEnvelopeJSON `json:"-"` }
func (*AccessBookmarkDeleteResponseEnvelope) UnmarshalJSON ¶
func (r *AccessBookmarkDeleteResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AccessBookmarkDeleteResponseEnvelopeSuccess ¶
type AccessBookmarkDeleteResponseEnvelopeSuccess bool
Whether the API call was successful
const (
AccessBookmarkDeleteResponseEnvelopeSuccessTrue AccessBookmarkDeleteResponseEnvelopeSuccess = true
)
func (AccessBookmarkDeleteResponseEnvelopeSuccess) IsKnown ¶
func (r AccessBookmarkDeleteResponseEnvelopeSuccess) IsKnown() bool
type AccessBookmarkGetResponseEnvelope ¶
type AccessBookmarkGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result Bookmark `json:"result,required"` // Whether the API call was successful Success AccessBookmarkGetResponseEnvelopeSuccess `json:"success,required"` JSON accessBookmarkGetResponseEnvelopeJSON `json:"-"` }
func (*AccessBookmarkGetResponseEnvelope) UnmarshalJSON ¶
func (r *AccessBookmarkGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AccessBookmarkGetResponseEnvelopeSuccess ¶
type AccessBookmarkGetResponseEnvelopeSuccess bool
Whether the API call was successful
const (
AccessBookmarkGetResponseEnvelopeSuccessTrue AccessBookmarkGetResponseEnvelopeSuccess = true
)
func (AccessBookmarkGetResponseEnvelopeSuccess) IsKnown ¶
func (r AccessBookmarkGetResponseEnvelopeSuccess) IsKnown() bool
type AccessBookmarkNewParams ¶
type AccessBookmarkNewParams struct {
Body interface{} `json:"body,required"`
}
func (AccessBookmarkNewParams) MarshalJSON ¶
func (r AccessBookmarkNewParams) MarshalJSON() (data []byte, err error)
type AccessBookmarkNewResponseEnvelope ¶
type AccessBookmarkNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result Bookmark `json:"result,required"` // Whether the API call was successful Success AccessBookmarkNewResponseEnvelopeSuccess `json:"success,required"` JSON accessBookmarkNewResponseEnvelopeJSON `json:"-"` }
func (*AccessBookmarkNewResponseEnvelope) UnmarshalJSON ¶
func (r *AccessBookmarkNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AccessBookmarkNewResponseEnvelopeSuccess ¶
type AccessBookmarkNewResponseEnvelopeSuccess bool
Whether the API call was successful
const (
AccessBookmarkNewResponseEnvelopeSuccessTrue AccessBookmarkNewResponseEnvelopeSuccess = true
)
func (AccessBookmarkNewResponseEnvelopeSuccess) IsKnown ¶
func (r AccessBookmarkNewResponseEnvelopeSuccess) IsKnown() bool
type AccessBookmarkService ¶
type AccessBookmarkService struct {
Options []option.RequestOption
}
AccessBookmarkService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewAccessBookmarkService method instead.
func NewAccessBookmarkService ¶
func NewAccessBookmarkService(opts ...option.RequestOption) (r *AccessBookmarkService)
NewAccessBookmarkService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*AccessBookmarkService) Delete ¶
func (r *AccessBookmarkService) Delete(ctx context.Context, identifier string, uuid string, body AccessBookmarkDeleteParams, opts ...option.RequestOption) (res *AccessBookmarkDeleteResponse, err error)
Deletes a Bookmark application.
func (*AccessBookmarkService) Get ¶
func (r *AccessBookmarkService) Get(ctx context.Context, identifier string, uuid string, opts ...option.RequestOption) (res *Bookmark, err error)
Fetches a single Bookmark application.
func (*AccessBookmarkService) List ¶
func (r *AccessBookmarkService) List(ctx context.Context, identifier string, opts ...option.RequestOption) (res *pagination.SinglePage[Bookmark], err error)
Lists Bookmark applications.
func (*AccessBookmarkService) ListAutoPaging ¶
func (r *AccessBookmarkService) ListAutoPaging(ctx context.Context, identifier string, opts ...option.RequestOption) *pagination.SinglePageAutoPager[Bookmark]
Lists Bookmark applications.
func (*AccessBookmarkService) New ¶
func (r *AccessBookmarkService) New(ctx context.Context, identifier string, uuid string, body AccessBookmarkNewParams, opts ...option.RequestOption) (res *Bookmark, err error)
Create a new Bookmark application.
func (*AccessBookmarkService) Update ¶
func (r *AccessBookmarkService) Update(ctx context.Context, identifier string, uuid string, body AccessBookmarkUpdateParams, opts ...option.RequestOption) (res *Bookmark, err error)
Updates a configured Bookmark application.
type AccessBookmarkUpdateParams ¶
type AccessBookmarkUpdateParams struct {
Body interface{} `json:"body,required"`
}
func (AccessBookmarkUpdateParams) MarshalJSON ¶
func (r AccessBookmarkUpdateParams) MarshalJSON() (data []byte, err error)
type AccessBookmarkUpdateResponseEnvelope ¶
type AccessBookmarkUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result Bookmark `json:"result,required"` // Whether the API call was successful Success AccessBookmarkUpdateResponseEnvelopeSuccess `json:"success,required"` JSON accessBookmarkUpdateResponseEnvelopeJSON `json:"-"` }
func (*AccessBookmarkUpdateResponseEnvelope) UnmarshalJSON ¶
func (r *AccessBookmarkUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AccessBookmarkUpdateResponseEnvelopeSuccess ¶
type AccessBookmarkUpdateResponseEnvelopeSuccess bool
Whether the API call was successful
const (
AccessBookmarkUpdateResponseEnvelopeSuccessTrue AccessBookmarkUpdateResponseEnvelopeSuccess = true
)
func (AccessBookmarkUpdateResponseEnvelopeSuccess) IsKnown ¶
func (r AccessBookmarkUpdateResponseEnvelopeSuccess) IsKnown() bool
type AccessCertificateDeleteParams ¶
type AccessCertificateDeleteParams struct { // The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. AccountID param.Field[string] `path:"account_id"` // The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. ZoneID param.Field[string] `path:"zone_id"` }
type AccessCertificateDeleteResponse ¶
type AccessCertificateDeleteResponse struct { // UUID ID string `json:"id"` JSON accessCertificateDeleteResponseJSON `json:"-"` }
func (*AccessCertificateDeleteResponse) UnmarshalJSON ¶
func (r *AccessCertificateDeleteResponse) UnmarshalJSON(data []byte) (err error)
type AccessCertificateDeleteResponseEnvelope ¶
type AccessCertificateDeleteResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result AccessCertificateDeleteResponse `json:"result,required"` // Whether the API call was successful Success AccessCertificateDeleteResponseEnvelopeSuccess `json:"success,required"` JSON accessCertificateDeleteResponseEnvelopeJSON `json:"-"` }
func (*AccessCertificateDeleteResponseEnvelope) UnmarshalJSON ¶
func (r *AccessCertificateDeleteResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AccessCertificateDeleteResponseEnvelopeSuccess ¶
type AccessCertificateDeleteResponseEnvelopeSuccess bool
Whether the API call was successful
const (
AccessCertificateDeleteResponseEnvelopeSuccessTrue AccessCertificateDeleteResponseEnvelopeSuccess = true
)
func (AccessCertificateDeleteResponseEnvelopeSuccess) IsKnown ¶
func (r AccessCertificateDeleteResponseEnvelopeSuccess) IsKnown() bool
type AccessCertificateGetResponseEnvelope ¶
type AccessCertificateGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result Certificate `json:"result,required"` // Whether the API call was successful Success AccessCertificateGetResponseEnvelopeSuccess `json:"success,required"` JSON accessCertificateGetResponseEnvelopeJSON `json:"-"` }
func (*AccessCertificateGetResponseEnvelope) UnmarshalJSON ¶
func (r *AccessCertificateGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AccessCertificateGetResponseEnvelopeSuccess ¶
type AccessCertificateGetResponseEnvelopeSuccess bool
Whether the API call was successful
const (
AccessCertificateGetResponseEnvelopeSuccessTrue AccessCertificateGetResponseEnvelopeSuccess = true
)
func (AccessCertificateGetResponseEnvelopeSuccess) IsKnown ¶
func (r AccessCertificateGetResponseEnvelopeSuccess) IsKnown() bool
type AccessCertificateNewParams ¶
type AccessCertificateNewParams struct { // The certificate content. Certificate param.Field[string] `json:"certificate,required"` // The name of the certificate. Name param.Field[string] `json:"name,required"` // The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. AccountID param.Field[string] `path:"account_id"` // The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. ZoneID param.Field[string] `path:"zone_id"` // The hostnames of the applications that will use this certificate. AssociatedHostnames param.Field[[]AssociatedHostnamesParam] `json:"associated_hostnames"` }
func (AccessCertificateNewParams) MarshalJSON ¶
func (r AccessCertificateNewParams) MarshalJSON() (data []byte, err error)
type AccessCertificateNewResponseEnvelope ¶
type AccessCertificateNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result Certificate `json:"result,required"` // Whether the API call was successful Success AccessCertificateNewResponseEnvelopeSuccess `json:"success,required"` JSON accessCertificateNewResponseEnvelopeJSON `json:"-"` }
func (*AccessCertificateNewResponseEnvelope) UnmarshalJSON ¶
func (r *AccessCertificateNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AccessCertificateNewResponseEnvelopeSuccess ¶
type AccessCertificateNewResponseEnvelopeSuccess bool
Whether the API call was successful
const (
AccessCertificateNewResponseEnvelopeSuccessTrue AccessCertificateNewResponseEnvelopeSuccess = true
)
func (AccessCertificateNewResponseEnvelopeSuccess) IsKnown ¶
func (r AccessCertificateNewResponseEnvelopeSuccess) IsKnown() bool
type AccessCertificateService ¶
type AccessCertificateService struct { Options []option.RequestOption Settings *AccessCertificateSettingService }
AccessCertificateService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewAccessCertificateService method instead.
func NewAccessCertificateService ¶
func NewAccessCertificateService(opts ...option.RequestOption) (r *AccessCertificateService)
NewAccessCertificateService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*AccessCertificateService) Delete ¶
func (r *AccessCertificateService) Delete(ctx context.Context, uuid string, body AccessCertificateDeleteParams, opts ...option.RequestOption) (res *AccessCertificateDeleteResponse, err error)
Deletes an mTLS certificate.
func (*AccessCertificateService) Get ¶
func (r *AccessCertificateService) Get(ctx context.Context, uuid string, query AccessCertificateGetParams, opts ...option.RequestOption) (res *Certificate, err error)
Fetches a single mTLS certificate.
func (*AccessCertificateService) List ¶
func (r *AccessCertificateService) List(ctx context.Context, query AccessCertificateListParams, opts ...option.RequestOption) (res *pagination.SinglePage[Certificate], err error)
Lists all mTLS root certificates.
func (*AccessCertificateService) ListAutoPaging ¶
func (r *AccessCertificateService) ListAutoPaging(ctx context.Context, query AccessCertificateListParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[Certificate]
Lists all mTLS root certificates.
func (*AccessCertificateService) New ¶
func (r *AccessCertificateService) New(ctx context.Context, params AccessCertificateNewParams, opts ...option.RequestOption) (res *Certificate, err error)
Adds a new mTLS root certificate to Access.
func (*AccessCertificateService) Update ¶
func (r *AccessCertificateService) Update(ctx context.Context, uuid string, params AccessCertificateUpdateParams, opts ...option.RequestOption) (res *Certificate, err error)
Updates a configured mTLS certificate.
type AccessCertificateSettingGetParams ¶
type AccessCertificateSettingGetParams struct { // The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. AccountID param.Field[string] `path:"account_id"` // The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. ZoneID param.Field[string] `path:"zone_id"` }
type AccessCertificateSettingGetResponseEnvelope ¶
type AccessCertificateSettingGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result []CertificateSettings `json:"result,required,nullable"` // Whether the API call was successful Success AccessCertificateSettingGetResponseEnvelopeSuccess `json:"success,required"` ResultInfo AccessCertificateSettingGetResponseEnvelopeResultInfo `json:"result_info"` JSON accessCertificateSettingGetResponseEnvelopeJSON `json:"-"` }
func (*AccessCertificateSettingGetResponseEnvelope) UnmarshalJSON ¶
func (r *AccessCertificateSettingGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AccessCertificateSettingGetResponseEnvelopeResultInfo ¶
type AccessCertificateSettingGetResponseEnvelopeResultInfo struct { // Total number of results for the requested service Count float64 `json:"count"` // Current page within paginated list of results Page float64 `json:"page"` // Number of results per page of results PerPage float64 `json:"per_page"` // Total results available without any search parameters TotalCount float64 `json:"total_count"` JSON accessCertificateSettingGetResponseEnvelopeResultInfoJSON `json:"-"` }
func (*AccessCertificateSettingGetResponseEnvelopeResultInfo) UnmarshalJSON ¶
func (r *AccessCertificateSettingGetResponseEnvelopeResultInfo) UnmarshalJSON(data []byte) (err error)
type AccessCertificateSettingGetResponseEnvelopeSuccess ¶
type AccessCertificateSettingGetResponseEnvelopeSuccess bool
Whether the API call was successful
const (
AccessCertificateSettingGetResponseEnvelopeSuccessTrue AccessCertificateSettingGetResponseEnvelopeSuccess = true
)
func (AccessCertificateSettingGetResponseEnvelopeSuccess) IsKnown ¶
func (r AccessCertificateSettingGetResponseEnvelopeSuccess) IsKnown() bool
type AccessCertificateSettingService ¶
type AccessCertificateSettingService struct {
Options []option.RequestOption
}
AccessCertificateSettingService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewAccessCertificateSettingService method instead.
func NewAccessCertificateSettingService ¶
func NewAccessCertificateSettingService(opts ...option.RequestOption) (r *AccessCertificateSettingService)
NewAccessCertificateSettingService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*AccessCertificateSettingService) Get ¶
func (r *AccessCertificateSettingService) Get(ctx context.Context, query AccessCertificateSettingGetParams, opts ...option.RequestOption) (res *[]CertificateSettings, err error)
List all mTLS hostname settings for this account or zone.
func (*AccessCertificateSettingService) Update ¶
func (r *AccessCertificateSettingService) Update(ctx context.Context, params AccessCertificateSettingUpdateParams, opts ...option.RequestOption) (res *[]CertificateSettings, err error)
Updates an mTLS certificate's hostname settings.
type AccessCertificateSettingUpdateParams ¶
type AccessCertificateSettingUpdateParams struct { Settings param.Field[[]CertificateSettingsParam] `json:"settings,required"` // The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. AccountID param.Field[string] `path:"account_id"` // The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. ZoneID param.Field[string] `path:"zone_id"` }
func (AccessCertificateSettingUpdateParams) MarshalJSON ¶
func (r AccessCertificateSettingUpdateParams) MarshalJSON() (data []byte, err error)
type AccessCertificateSettingUpdateResponseEnvelope ¶
type AccessCertificateSettingUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result []CertificateSettings `json:"result,required,nullable"` // Whether the API call was successful Success AccessCertificateSettingUpdateResponseEnvelopeSuccess `json:"success,required"` ResultInfo AccessCertificateSettingUpdateResponseEnvelopeResultInfo `json:"result_info"` JSON accessCertificateSettingUpdateResponseEnvelopeJSON `json:"-"` }
func (*AccessCertificateSettingUpdateResponseEnvelope) UnmarshalJSON ¶
func (r *AccessCertificateSettingUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AccessCertificateSettingUpdateResponseEnvelopeResultInfo ¶
type AccessCertificateSettingUpdateResponseEnvelopeResultInfo struct { // Total number of results for the requested service Count float64 `json:"count"` // Current page within paginated list of results Page float64 `json:"page"` // Number of results per page of results PerPage float64 `json:"per_page"` // Total results available without any search parameters TotalCount float64 `json:"total_count"` JSON accessCertificateSettingUpdateResponseEnvelopeResultInfoJSON `json:"-"` }
func (*AccessCertificateSettingUpdateResponseEnvelopeResultInfo) UnmarshalJSON ¶
func (r *AccessCertificateSettingUpdateResponseEnvelopeResultInfo) UnmarshalJSON(data []byte) (err error)
type AccessCertificateSettingUpdateResponseEnvelopeSuccess ¶
type AccessCertificateSettingUpdateResponseEnvelopeSuccess bool
Whether the API call was successful
const (
AccessCertificateSettingUpdateResponseEnvelopeSuccessTrue AccessCertificateSettingUpdateResponseEnvelopeSuccess = true
)
func (AccessCertificateSettingUpdateResponseEnvelopeSuccess) IsKnown ¶
func (r AccessCertificateSettingUpdateResponseEnvelopeSuccess) IsKnown() bool
type AccessCertificateUpdateParams ¶
type AccessCertificateUpdateParams struct { // The hostnames of the applications that will use this certificate. AssociatedHostnames param.Field[[]AssociatedHostnamesParam] `json:"associated_hostnames,required"` // The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. AccountID param.Field[string] `path:"account_id"` // The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. ZoneID param.Field[string] `path:"zone_id"` // The name of the certificate. Name param.Field[string] `json:"name"` }
func (AccessCertificateUpdateParams) MarshalJSON ¶
func (r AccessCertificateUpdateParams) MarshalJSON() (data []byte, err error)
type AccessCertificateUpdateResponseEnvelope ¶
type AccessCertificateUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result Certificate `json:"result,required"` // Whether the API call was successful Success AccessCertificateUpdateResponseEnvelopeSuccess `json:"success,required"` JSON accessCertificateUpdateResponseEnvelopeJSON `json:"-"` }
func (*AccessCertificateUpdateResponseEnvelope) UnmarshalJSON ¶
func (r *AccessCertificateUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AccessCertificateUpdateResponseEnvelopeSuccess ¶
type AccessCertificateUpdateResponseEnvelopeSuccess bool
Whether the API call was successful
const (
AccessCertificateUpdateResponseEnvelopeSuccessTrue AccessCertificateUpdateResponseEnvelopeSuccess = true
)
func (AccessCertificateUpdateResponseEnvelopeSuccess) IsKnown ¶
func (r AccessCertificateUpdateResponseEnvelopeSuccess) IsKnown() bool
type AccessCustomPageDeleteResponse ¶
type AccessCustomPageDeleteResponse struct { // UUID ID string `json:"id"` JSON accessCustomPageDeleteResponseJSON `json:"-"` }
func (*AccessCustomPageDeleteResponse) UnmarshalJSON ¶
func (r *AccessCustomPageDeleteResponse) UnmarshalJSON(data []byte) (err error)
type AccessCustomPageDeleteResponseEnvelope ¶
type AccessCustomPageDeleteResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result AccessCustomPageDeleteResponse `json:"result,required"` // Whether the API call was successful Success AccessCustomPageDeleteResponseEnvelopeSuccess `json:"success,required"` JSON accessCustomPageDeleteResponseEnvelopeJSON `json:"-"` }
func (*AccessCustomPageDeleteResponseEnvelope) UnmarshalJSON ¶
func (r *AccessCustomPageDeleteResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AccessCustomPageDeleteResponseEnvelopeSuccess ¶
type AccessCustomPageDeleteResponseEnvelopeSuccess bool
Whether the API call was successful
const (
AccessCustomPageDeleteResponseEnvelopeSuccessTrue AccessCustomPageDeleteResponseEnvelopeSuccess = true
)
func (AccessCustomPageDeleteResponseEnvelopeSuccess) IsKnown ¶
func (r AccessCustomPageDeleteResponseEnvelopeSuccess) IsKnown() bool
type AccessCustomPageGetResponseEnvelope ¶
type AccessCustomPageGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result CustomPage `json:"result,required"` // Whether the API call was successful Success AccessCustomPageGetResponseEnvelopeSuccess `json:"success,required"` JSON accessCustomPageGetResponseEnvelopeJSON `json:"-"` }
func (*AccessCustomPageGetResponseEnvelope) UnmarshalJSON ¶
func (r *AccessCustomPageGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AccessCustomPageGetResponseEnvelopeSuccess ¶
type AccessCustomPageGetResponseEnvelopeSuccess bool
Whether the API call was successful
const (
AccessCustomPageGetResponseEnvelopeSuccessTrue AccessCustomPageGetResponseEnvelopeSuccess = true
)
func (AccessCustomPageGetResponseEnvelopeSuccess) IsKnown ¶
func (r AccessCustomPageGetResponseEnvelopeSuccess) IsKnown() bool
type AccessCustomPageNewParams ¶
type AccessCustomPageNewParams struct {
CustomPage CustomPageParam `json:"custom_page,required"`
}
func (AccessCustomPageNewParams) MarshalJSON ¶
func (r AccessCustomPageNewParams) MarshalJSON() (data []byte, err error)
type AccessCustomPageNewResponseEnvelope ¶
type AccessCustomPageNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result CustomPageWithoutHTML `json:"result,required"` // Whether the API call was successful Success AccessCustomPageNewResponseEnvelopeSuccess `json:"success,required"` JSON accessCustomPageNewResponseEnvelopeJSON `json:"-"` }
func (*AccessCustomPageNewResponseEnvelope) UnmarshalJSON ¶
func (r *AccessCustomPageNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AccessCustomPageNewResponseEnvelopeSuccess ¶
type AccessCustomPageNewResponseEnvelopeSuccess bool
Whether the API call was successful
const (
AccessCustomPageNewResponseEnvelopeSuccessTrue AccessCustomPageNewResponseEnvelopeSuccess = true
)
func (AccessCustomPageNewResponseEnvelopeSuccess) IsKnown ¶
func (r AccessCustomPageNewResponseEnvelopeSuccess) IsKnown() bool
type AccessCustomPageService ¶
type AccessCustomPageService struct {
Options []option.RequestOption
}
AccessCustomPageService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewAccessCustomPageService method instead.
func NewAccessCustomPageService ¶
func NewAccessCustomPageService(opts ...option.RequestOption) (r *AccessCustomPageService)
NewAccessCustomPageService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*AccessCustomPageService) Delete ¶
func (r *AccessCustomPageService) Delete(ctx context.Context, identifier string, uuid string, opts ...option.RequestOption) (res *AccessCustomPageDeleteResponse, err error)
Delete a custom page
func (*AccessCustomPageService) Get ¶
func (r *AccessCustomPageService) Get(ctx context.Context, identifier string, uuid string, opts ...option.RequestOption) (res *CustomPage, err error)
Fetches a custom page and also returns its HTML.
func (*AccessCustomPageService) List ¶
func (r *AccessCustomPageService) List(ctx context.Context, identifier string, opts ...option.RequestOption) (res *pagination.SinglePage[CustomPageWithoutHTML], err error)
List custom pages
func (*AccessCustomPageService) ListAutoPaging ¶
func (r *AccessCustomPageService) ListAutoPaging(ctx context.Context, identifier string, opts ...option.RequestOption) *pagination.SinglePageAutoPager[CustomPageWithoutHTML]
List custom pages
func (*AccessCustomPageService) New ¶
func (r *AccessCustomPageService) New(ctx context.Context, identifier string, body AccessCustomPageNewParams, opts ...option.RequestOption) (res *CustomPageWithoutHTML, err error)
Create a custom page
func (*AccessCustomPageService) Update ¶
func (r *AccessCustomPageService) Update(ctx context.Context, identifier string, uuid string, body AccessCustomPageUpdateParams, opts ...option.RequestOption) (res *CustomPageWithoutHTML, err error)
Update a custom page
type AccessCustomPageUpdateParams ¶
type AccessCustomPageUpdateParams struct {
CustomPage CustomPageParam `json:"custom_page,required"`
}
func (AccessCustomPageUpdateParams) MarshalJSON ¶
func (r AccessCustomPageUpdateParams) MarshalJSON() (data []byte, err error)
type AccessCustomPageUpdateResponseEnvelope ¶
type AccessCustomPageUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result CustomPageWithoutHTML `json:"result,required"` // Whether the API call was successful Success AccessCustomPageUpdateResponseEnvelopeSuccess `json:"success,required"` JSON accessCustomPageUpdateResponseEnvelopeJSON `json:"-"` }
func (*AccessCustomPageUpdateResponseEnvelope) UnmarshalJSON ¶
func (r *AccessCustomPageUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AccessCustomPageUpdateResponseEnvelopeSuccess ¶
type AccessCustomPageUpdateResponseEnvelopeSuccess bool
Whether the API call was successful
const (
AccessCustomPageUpdateResponseEnvelopeSuccessTrue AccessCustomPageUpdateResponseEnvelopeSuccess = true
)
func (AccessCustomPageUpdateResponseEnvelopeSuccess) IsKnown ¶
func (r AccessCustomPageUpdateResponseEnvelopeSuccess) IsKnown() bool
type AccessDevicePostureRule ¶
type AccessDevicePostureRule struct { DevicePosture AccessDevicePostureRuleDevicePosture `json:"device_posture,required"` JSON accessDevicePostureRuleJSON `json:"-"` }
Enforces a device posture rule has run successfully
func (*AccessDevicePostureRule) UnmarshalJSON ¶
func (r *AccessDevicePostureRule) UnmarshalJSON(data []byte) (err error)
type AccessDevicePostureRuleDevicePosture ¶
type AccessDevicePostureRuleDevicePosture struct { // The ID of a device posture integration. IntegrationUID string `json:"integration_uid,required"` JSON accessDevicePostureRuleDevicePostureJSON `json:"-"` }
func (*AccessDevicePostureRuleDevicePosture) UnmarshalJSON ¶
func (r *AccessDevicePostureRuleDevicePosture) UnmarshalJSON(data []byte) (err error)
type AccessDevicePostureRuleDevicePostureParam ¶
type AccessDevicePostureRuleDevicePostureParam struct { // The ID of a device posture integration. IntegrationUID param.Field[string] `json:"integration_uid,required"` }
func (AccessDevicePostureRuleDevicePostureParam) MarshalJSON ¶
func (r AccessDevicePostureRuleDevicePostureParam) MarshalJSON() (data []byte, err error)
type AccessDevicePostureRuleParam ¶
type AccessDevicePostureRuleParam struct {
DevicePosture param.Field[AccessDevicePostureRuleDevicePostureParam] `json:"device_posture,required"`
}
Enforces a device posture rule has run successfully
func (AccessDevicePostureRuleParam) MarshalJSON ¶
func (r AccessDevicePostureRuleParam) MarshalJSON() (data []byte, err error)
type AccessGroupDeleteParams ¶
type AccessGroupDeleteResponse ¶
type AccessGroupDeleteResponse struct { // UUID ID string `json:"id"` JSON accessGroupDeleteResponseJSON `json:"-"` }
func (*AccessGroupDeleteResponse) UnmarshalJSON ¶
func (r *AccessGroupDeleteResponse) UnmarshalJSON(data []byte) (err error)
type AccessGroupDeleteResponseEnvelope ¶
type AccessGroupDeleteResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result AccessGroupDeleteResponse `json:"result,required"` // Whether the API call was successful Success AccessGroupDeleteResponseEnvelopeSuccess `json:"success,required"` JSON accessGroupDeleteResponseEnvelopeJSON `json:"-"` }
func (*AccessGroupDeleteResponseEnvelope) UnmarshalJSON ¶
func (r *AccessGroupDeleteResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AccessGroupDeleteResponseEnvelopeSuccess ¶
type AccessGroupDeleteResponseEnvelopeSuccess bool
Whether the API call was successful
const (
AccessGroupDeleteResponseEnvelopeSuccessTrue AccessGroupDeleteResponseEnvelopeSuccess = true
)
func (AccessGroupDeleteResponseEnvelopeSuccess) IsKnown ¶
func (r AccessGroupDeleteResponseEnvelopeSuccess) IsKnown() bool
type AccessGroupGetParams ¶
type AccessGroupGetResponseEnvelope ¶
type AccessGroupGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result ZeroTrustGroup `json:"result,required"` // Whether the API call was successful Success AccessGroupGetResponseEnvelopeSuccess `json:"success,required"` JSON accessGroupGetResponseEnvelopeJSON `json:"-"` }
func (*AccessGroupGetResponseEnvelope) UnmarshalJSON ¶
func (r *AccessGroupGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AccessGroupGetResponseEnvelopeSuccess ¶
type AccessGroupGetResponseEnvelopeSuccess bool
Whether the API call was successful
const (
AccessGroupGetResponseEnvelopeSuccessTrue AccessGroupGetResponseEnvelopeSuccess = true
)
func (AccessGroupGetResponseEnvelopeSuccess) IsKnown ¶
func (r AccessGroupGetResponseEnvelopeSuccess) IsKnown() bool
type AccessGroupListParams ¶
type AccessGroupNewParams ¶
type AccessGroupNewParams struct { // Rules evaluated with an OR logical operator. A user needs to meet only one of // the Include rules. Include param.Field[[]AccessRuleUnionParam] `json:"include,required"` // The name of the Access group. Name param.Field[string] `json:"name,required"` // The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. AccountID param.Field[string] `path:"account_id"` // The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. ZoneID param.Field[string] `path:"zone_id"` // Rules evaluated with a NOT logical operator. To match a policy, a user cannot // meet any of the Exclude rules. Exclude param.Field[[]AccessRuleUnionParam] `json:"exclude"` // Whether this is the default group IsDefault param.Field[bool] `json:"is_default"` // Rules evaluated with an AND logical operator. To match a policy, a user must // meet all of the Require rules. Require param.Field[[]AccessRuleUnionParam] `json:"require"` }
func (AccessGroupNewParams) MarshalJSON ¶
func (r AccessGroupNewParams) MarshalJSON() (data []byte, err error)
type AccessGroupNewResponseEnvelope ¶
type AccessGroupNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result ZeroTrustGroup `json:"result,required"` // Whether the API call was successful Success AccessGroupNewResponseEnvelopeSuccess `json:"success,required"` JSON accessGroupNewResponseEnvelopeJSON `json:"-"` }
func (*AccessGroupNewResponseEnvelope) UnmarshalJSON ¶
func (r *AccessGroupNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AccessGroupNewResponseEnvelopeSuccess ¶
type AccessGroupNewResponseEnvelopeSuccess bool
Whether the API call was successful
const (
AccessGroupNewResponseEnvelopeSuccessTrue AccessGroupNewResponseEnvelopeSuccess = true
)
func (AccessGroupNewResponseEnvelopeSuccess) IsKnown ¶
func (r AccessGroupNewResponseEnvelopeSuccess) IsKnown() bool
type AccessGroupService ¶
type AccessGroupService struct {
Options []option.RequestOption
}
AccessGroupService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewAccessGroupService method instead.
func NewAccessGroupService ¶
func NewAccessGroupService(opts ...option.RequestOption) (r *AccessGroupService)
NewAccessGroupService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*AccessGroupService) Delete ¶
func (r *AccessGroupService) Delete(ctx context.Context, uuid string, body AccessGroupDeleteParams, opts ...option.RequestOption) (res *AccessGroupDeleteResponse, err error)
Deletes an Access group.
func (*AccessGroupService) Get ¶
func (r *AccessGroupService) Get(ctx context.Context, uuid string, query AccessGroupGetParams, opts ...option.RequestOption) (res *ZeroTrustGroup, err error)
Fetches a single Access group.
func (*AccessGroupService) List ¶
func (r *AccessGroupService) List(ctx context.Context, query AccessGroupListParams, opts ...option.RequestOption) (res *pagination.SinglePage[ZeroTrustGroup], err error)
Lists all Access groups.
func (*AccessGroupService) ListAutoPaging ¶
func (r *AccessGroupService) ListAutoPaging(ctx context.Context, query AccessGroupListParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[ZeroTrustGroup]
Lists all Access groups.
func (*AccessGroupService) New ¶
func (r *AccessGroupService) New(ctx context.Context, params AccessGroupNewParams, opts ...option.RequestOption) (res *ZeroTrustGroup, err error)
Creates a new Access group.
func (*AccessGroupService) Update ¶
func (r *AccessGroupService) Update(ctx context.Context, uuid string, params AccessGroupUpdateParams, opts ...option.RequestOption) (res *ZeroTrustGroup, err error)
Updates a configured Access group.
type AccessGroupUpdateParams ¶
type AccessGroupUpdateParams struct { // Rules evaluated with an OR logical operator. A user needs to meet only one of // the Include rules. Include param.Field[[]AccessRuleUnionParam] `json:"include,required"` // The name of the Access group. Name param.Field[string] `json:"name,required"` // The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. AccountID param.Field[string] `path:"account_id"` // The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. ZoneID param.Field[string] `path:"zone_id"` // Rules evaluated with a NOT logical operator. To match a policy, a user cannot // meet any of the Exclude rules. Exclude param.Field[[]AccessRuleUnionParam] `json:"exclude"` // Whether this is the default group IsDefault param.Field[bool] `json:"is_default"` // Rules evaluated with an AND logical operator. To match a policy, a user must // meet all of the Require rules. Require param.Field[[]AccessRuleUnionParam] `json:"require"` }
func (AccessGroupUpdateParams) MarshalJSON ¶
func (r AccessGroupUpdateParams) MarshalJSON() (data []byte, err error)
type AccessGroupUpdateResponseEnvelope ¶
type AccessGroupUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result ZeroTrustGroup `json:"result,required"` // Whether the API call was successful Success AccessGroupUpdateResponseEnvelopeSuccess `json:"success,required"` JSON accessGroupUpdateResponseEnvelopeJSON `json:"-"` }
func (*AccessGroupUpdateResponseEnvelope) UnmarshalJSON ¶
func (r *AccessGroupUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AccessGroupUpdateResponseEnvelopeSuccess ¶
type AccessGroupUpdateResponseEnvelopeSuccess bool
Whether the API call was successful
const (
AccessGroupUpdateResponseEnvelopeSuccessTrue AccessGroupUpdateResponseEnvelopeSuccess = true
)
func (AccessGroupUpdateResponseEnvelopeSuccess) IsKnown ¶
func (r AccessGroupUpdateResponseEnvelopeSuccess) IsKnown() bool
type AccessKeyGetResponseEnvelope ¶
type AccessKeyGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result AccessKeyGetResponseUnion `json:"result,required"` // Whether the API call was successful Success AccessKeyGetResponseEnvelopeSuccess `json:"success,required"` // The number of days until the next key rotation. DaysUntilNextRotation float64 `json:"days_until_next_rotation"` // The number of days between key rotations. KeyRotationIntervalDays float64 `json:"key_rotation_interval_days"` // The timestamp of the previous key rotation. LastKeyRotationAt time.Time `json:"last_key_rotation_at" format:"date-time"` JSON accessKeyGetResponseEnvelopeJSON `json:"-"` }
func (*AccessKeyGetResponseEnvelope) UnmarshalJSON ¶
func (r *AccessKeyGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AccessKeyGetResponseEnvelopeSuccess ¶
type AccessKeyGetResponseEnvelopeSuccess bool
Whether the API call was successful
const (
AccessKeyGetResponseEnvelopeSuccessTrue AccessKeyGetResponseEnvelopeSuccess = true
)
func (AccessKeyGetResponseEnvelopeSuccess) IsKnown ¶
func (r AccessKeyGetResponseEnvelopeSuccess) IsKnown() bool
type AccessKeyGetResponseUnion ¶
type AccessKeyGetResponseUnion interface {
ImplementsZeroTrustAccessKeyGetResponseUnion()
}
Union satisfied by zero_trust.AccessKeyGetResponseUnknown or shared.UnionString.
type AccessKeyRotateResponseEnvelope ¶
type AccessKeyRotateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result AccessKeyRotateResponseUnion `json:"result,required"` // Whether the API call was successful Success AccessKeyRotateResponseEnvelopeSuccess `json:"success,required"` // The number of days until the next key rotation. DaysUntilNextRotation float64 `json:"days_until_next_rotation"` // The number of days between key rotations. KeyRotationIntervalDays float64 `json:"key_rotation_interval_days"` // The timestamp of the previous key rotation. LastKeyRotationAt time.Time `json:"last_key_rotation_at" format:"date-time"` JSON accessKeyRotateResponseEnvelopeJSON `json:"-"` }
func (*AccessKeyRotateResponseEnvelope) UnmarshalJSON ¶
func (r *AccessKeyRotateResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AccessKeyRotateResponseEnvelopeSuccess ¶
type AccessKeyRotateResponseEnvelopeSuccess bool
Whether the API call was successful
const (
AccessKeyRotateResponseEnvelopeSuccessTrue AccessKeyRotateResponseEnvelopeSuccess = true
)
func (AccessKeyRotateResponseEnvelopeSuccess) IsKnown ¶
func (r AccessKeyRotateResponseEnvelopeSuccess) IsKnown() bool
type AccessKeyRotateResponseUnion ¶
type AccessKeyRotateResponseUnion interface {
ImplementsZeroTrustAccessKeyRotateResponseUnion()
}
Union satisfied by zero_trust.AccessKeyRotateResponseUnknown or shared.UnionString.
type AccessKeyService ¶
type AccessKeyService struct {
Options []option.RequestOption
}
AccessKeyService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewAccessKeyService method instead.
func NewAccessKeyService ¶
func NewAccessKeyService(opts ...option.RequestOption) (r *AccessKeyService)
NewAccessKeyService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*AccessKeyService) Get ¶
func (r *AccessKeyService) Get(ctx context.Context, identifier string, opts ...option.RequestOption) (res *AccessKeyGetResponseUnion, err error)
Gets the Access key rotation settings for an account.
func (*AccessKeyService) Rotate ¶
func (r *AccessKeyService) Rotate(ctx context.Context, identifier string, opts ...option.RequestOption) (res *AccessKeyRotateResponseUnion, err error)
Perfoms a key rotation for an account.
func (*AccessKeyService) Update ¶
func (r *AccessKeyService) Update(ctx context.Context, identifier string, body AccessKeyUpdateParams, opts ...option.RequestOption) (res *AccessKeyUpdateResponseUnion, err error)
Updates the Access key rotation settings for an account.
type AccessKeyUpdateParams ¶
type AccessKeyUpdateParams struct { // The number of days between key rotations. KeyRotationIntervalDays param.Field[float64] `json:"key_rotation_interval_days,required"` }
func (AccessKeyUpdateParams) MarshalJSON ¶
func (r AccessKeyUpdateParams) MarshalJSON() (data []byte, err error)
type AccessKeyUpdateResponseEnvelope ¶
type AccessKeyUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result AccessKeyUpdateResponseUnion `json:"result,required"` // Whether the API call was successful Success AccessKeyUpdateResponseEnvelopeSuccess `json:"success,required"` // The number of days until the next key rotation. DaysUntilNextRotation float64 `json:"days_until_next_rotation"` // The number of days between key rotations. KeyRotationIntervalDays float64 `json:"key_rotation_interval_days"` // The timestamp of the previous key rotation. LastKeyRotationAt time.Time `json:"last_key_rotation_at" format:"date-time"` JSON accessKeyUpdateResponseEnvelopeJSON `json:"-"` }
func (*AccessKeyUpdateResponseEnvelope) UnmarshalJSON ¶
func (r *AccessKeyUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AccessKeyUpdateResponseEnvelopeSuccess ¶
type AccessKeyUpdateResponseEnvelopeSuccess bool
Whether the API call was successful
const (
AccessKeyUpdateResponseEnvelopeSuccessTrue AccessKeyUpdateResponseEnvelopeSuccess = true
)
func (AccessKeyUpdateResponseEnvelopeSuccess) IsKnown ¶
func (r AccessKeyUpdateResponseEnvelopeSuccess) IsKnown() bool
type AccessKeyUpdateResponseUnion ¶
type AccessKeyUpdateResponseUnion interface {
ImplementsZeroTrustAccessKeyUpdateResponseUnion()
}
Union satisfied by zero_trust.AccessKeyUpdateResponseUnknown or shared.UnionString.
type AccessLogAccessRequestListResponseEnvelope ¶
type AccessLogAccessRequestListResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result []AccessRequests `json:"result,required,nullable"` // Whether the API call was successful Success AccessLogAccessRequestListResponseEnvelopeSuccess `json:"success,required"` ResultInfo AccessLogAccessRequestListResponseEnvelopeResultInfo `json:"result_info"` JSON accessLogAccessRequestListResponseEnvelopeJSON `json:"-"` }
func (*AccessLogAccessRequestListResponseEnvelope) UnmarshalJSON ¶
func (r *AccessLogAccessRequestListResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AccessLogAccessRequestListResponseEnvelopeResultInfo ¶
type AccessLogAccessRequestListResponseEnvelopeResultInfo struct { // Total number of results for the requested service Count float64 `json:"count"` // Current page within paginated list of results Page float64 `json:"page"` // Number of results per page of results PerPage float64 `json:"per_page"` // Total results available without any search parameters TotalCount float64 `json:"total_count"` JSON accessLogAccessRequestListResponseEnvelopeResultInfoJSON `json:"-"` }
func (*AccessLogAccessRequestListResponseEnvelopeResultInfo) UnmarshalJSON ¶
func (r *AccessLogAccessRequestListResponseEnvelopeResultInfo) UnmarshalJSON(data []byte) (err error)
type AccessLogAccessRequestListResponseEnvelopeSuccess ¶
type AccessLogAccessRequestListResponseEnvelopeSuccess bool
Whether the API call was successful
const (
AccessLogAccessRequestListResponseEnvelopeSuccessTrue AccessLogAccessRequestListResponseEnvelopeSuccess = true
)
func (AccessLogAccessRequestListResponseEnvelopeSuccess) IsKnown ¶
func (r AccessLogAccessRequestListResponseEnvelopeSuccess) IsKnown() bool
type AccessLogAccessRequestService ¶
type AccessLogAccessRequestService struct {
Options []option.RequestOption
}
AccessLogAccessRequestService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewAccessLogAccessRequestService method instead.
func NewAccessLogAccessRequestService ¶
func NewAccessLogAccessRequestService(opts ...option.RequestOption) (r *AccessLogAccessRequestService)
NewAccessLogAccessRequestService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*AccessLogAccessRequestService) List ¶
func (r *AccessLogAccessRequestService) List(ctx context.Context, identifier string, opts ...option.RequestOption) (res *[]AccessRequests, err error)
Gets a list of Access authentication audit logs for an account.
type AccessLogService ¶
type AccessLogService struct { Options []option.RequestOption AccessRequests *AccessLogAccessRequestService }
AccessLogService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewAccessLogService method instead.
func NewAccessLogService ¶
func NewAccessLogService(opts ...option.RequestOption) (r *AccessLogService)
NewAccessLogService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
type AccessRequests ¶
type AccessRequests struct { // The event that occurred, such as a login attempt. Action string `json:"action"` // The result of the authentication event. Allowed bool `json:"allowed"` // The URL of the Access application. AppDomain string `json:"app_domain"` // The unique identifier for the Access application. AppUID string `json:"app_uid"` // The IdP used to authenticate. Connection string `json:"connection"` CreatedAt time.Time `json:"created_at" format:"date-time"` // The IP address of the authenticating user. IPAddress string `json:"ip_address"` // The unique identifier for the request to Cloudflare. RayID string `json:"ray_id"` // The email address of the authenticating user. UserEmail string `json:"user_email" format:"email"` JSON accessRequestsJSON `json:"-"` }
func (*AccessRequests) UnmarshalJSON ¶
func (r *AccessRequests) UnmarshalJSON(data []byte) (err error)
type AccessRule ¶
type AccessRule struct { Email interface{} `json:"email,required"` EmailList interface{} `json:"email_list,required"` EmailDomain interface{} `json:"email_domain,required"` Everyone interface{} `json:"everyone,required"` IP interface{} `json:"ip,required"` IPList interface{} `json:"ip_list,required"` Certificate interface{} `json:"certificate,required"` Group interface{} `json:"group,required"` AzureAD interface{} `json:"azureAD,required"` GitHubOrganization interface{} `json:"github-organization,required"` GSuite interface{} `json:"gsuite,required"` Okta interface{} `json:"okta,required"` SAML interface{} `json:"saml,required"` ServiceToken interface{} `json:"service_token,required"` AnyValidServiceToken interface{} `json:"any_valid_service_token,required"` ExternalEvaluation interface{} `json:"external_evaluation,required"` Geo interface{} `json:"geo,required"` AuthMethod interface{} `json:"auth_method,required"` DevicePosture interface{} `json:"device_posture,required"` JSON accessRuleJSON `json:"-"` // contains filtered or unexported fields }
Matches a specific email.
func (AccessRule) AsUnion ¶
func (r AccessRule) AsUnion() AccessRuleUnion
func (*AccessRule) UnmarshalJSON ¶
func (r *AccessRule) UnmarshalJSON(data []byte) (err error)
type AccessRuleParam ¶
type AccessRuleParam struct { Email param.Field[interface{}] `json:"email,required"` EmailList param.Field[interface{}] `json:"email_list,required"` EmailDomain param.Field[interface{}] `json:"email_domain,required"` Everyone param.Field[interface{}] `json:"everyone,required"` IP param.Field[interface{}] `json:"ip,required"` IPList param.Field[interface{}] `json:"ip_list,required"` Certificate param.Field[interface{}] `json:"certificate,required"` Group param.Field[interface{}] `json:"group,required"` AzureAD param.Field[interface{}] `json:"azureAD,required"` GitHubOrganization param.Field[interface{}] `json:"github-organization,required"` GSuite param.Field[interface{}] `json:"gsuite,required"` Okta param.Field[interface{}] `json:"okta,required"` SAML param.Field[interface{}] `json:"saml,required"` ServiceToken param.Field[interface{}] `json:"service_token,required"` AnyValidServiceToken param.Field[interface{}] `json:"any_valid_service_token,required"` ExternalEvaluation param.Field[interface{}] `json:"external_evaluation,required"` Geo param.Field[interface{}] `json:"geo,required"` AuthMethod param.Field[interface{}] `json:"auth_method,required"` DevicePosture param.Field[interface{}] `json:"device_posture,required"` }
Matches a specific email.
func (AccessRuleParam) MarshalJSON ¶
func (r AccessRuleParam) MarshalJSON() (data []byte, err error)
type AccessRuleUnion ¶
type AccessRuleUnion interface {
// contains filtered or unexported methods
}
Matches a specific email.
Union satisfied by zero_trust.EmailRule, zero_trust.EmailListRule, zero_trust.DomainRule, zero_trust.EveryoneRule, zero_trust.IPRule, zero_trust.IPListRule, zero_trust.CertificateRule, zero_trust.GroupRule, zero_trust.AzureGroupRule, zero_trust.GitHubOrganizationRule, zero_trust.GSuiteGroupRule, zero_trust.OktaGroupRule, zero_trust.SAMLGroupRule, zero_trust.ServiceTokenRule, zero_trust.AnyValidServiceTokenRule, zero_trust.ExternalEvaluationRule, zero_trust.CountryRule, zero_trust.AuthenticationMethodRule or zero_trust.AccessDevicePostureRule.
type AccessRuleUnionParam ¶
type AccessRuleUnionParam interface {
// contains filtered or unexported methods
}
Matches a specific email.
Satisfied by zero_trust.EmailRuleParam, zero_trust.EmailListRuleParam, zero_trust.DomainRuleParam, zero_trust.EveryoneRuleParam, zero_trust.IPRuleParam, zero_trust.IPListRuleParam, zero_trust.CertificateRuleParam, zero_trust.GroupRuleParam, zero_trust.AzureGroupRuleParam, zero_trust.GitHubOrganizationRuleParam, zero_trust.GSuiteGroupRuleParam, zero_trust.OktaGroupRuleParam, zero_trust.SAMLGroupRuleParam, zero_trust.ServiceTokenRuleParam, zero_trust.AnyValidServiceTokenRuleParam, zero_trust.ExternalEvaluationRuleParam, zero_trust.CountryRuleParam, zero_trust.AuthenticationMethodRuleParam, zero_trust.AccessDevicePostureRuleParam, AccessRuleParam.
type AccessService ¶
type AccessService struct { Options []option.RequestOption Applications *AccessApplicationService Certificates *AccessCertificateService Groups *AccessGroupService ServiceTokens *AccessServiceTokenService Bookmarks *AccessBookmarkService Keys *AccessKeyService Logs *AccessLogService Users *AccessUserService CustomPages *AccessCustomPageService Tags *AccessTagService }
AccessService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewAccessService method instead.
func NewAccessService ¶
func NewAccessService(opts ...option.RequestOption) (r *AccessService)
NewAccessService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
type AccessServiceTokenDeleteParams ¶
type AccessServiceTokenDeleteParams struct { // The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. AccountID param.Field[string] `path:"account_id"` // The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. ZoneID param.Field[string] `path:"zone_id"` }
type AccessServiceTokenDeleteResponseEnvelope ¶
type AccessServiceTokenDeleteResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result ServiceToken `json:"result,required"` // Whether the API call was successful Success AccessServiceTokenDeleteResponseEnvelopeSuccess `json:"success,required"` JSON accessServiceTokenDeleteResponseEnvelopeJSON `json:"-"` }
func (*AccessServiceTokenDeleteResponseEnvelope) UnmarshalJSON ¶
func (r *AccessServiceTokenDeleteResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AccessServiceTokenDeleteResponseEnvelopeSuccess ¶
type AccessServiceTokenDeleteResponseEnvelopeSuccess bool
Whether the API call was successful
const (
AccessServiceTokenDeleteResponseEnvelopeSuccessTrue AccessServiceTokenDeleteResponseEnvelopeSuccess = true
)
func (AccessServiceTokenDeleteResponseEnvelopeSuccess) IsKnown ¶
func (r AccessServiceTokenDeleteResponseEnvelopeSuccess) IsKnown() bool
type AccessServiceTokenListParams ¶
type AccessServiceTokenListParams struct { // The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. AccountID param.Field[string] `path:"account_id"` // The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. ZoneID param.Field[string] `path:"zone_id"` }
type AccessServiceTokenNewParams ¶
type AccessServiceTokenNewParams struct { // The name of the service token. Name param.Field[string] `json:"name,required"` // The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. AccountID param.Field[string] `path:"account_id"` // The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. ZoneID param.Field[string] `path:"zone_id"` // The duration for how long the service token will be valid. Must be in the format // `300ms` or `2h45m`. Valid time units are: ns, us (or µs), ms, s, m, h. The // default is 1 year in hours (8760h). Duration param.Field[string] `json:"duration"` }
func (AccessServiceTokenNewParams) MarshalJSON ¶
func (r AccessServiceTokenNewParams) MarshalJSON() (data []byte, err error)
type AccessServiceTokenNewResponse ¶
type AccessServiceTokenNewResponse struct { // The ID of the service token. ID string `json:"id"` // The Client ID for the service token. Access will check for this value in the // `CF-Access-Client-ID` request header. ClientID string `json:"client_id"` // The Client Secret for the service token. Access will check for this value in the // `CF-Access-Client-Secret` request header. ClientSecret string `json:"client_secret"` CreatedAt time.Time `json:"created_at" format:"date-time"` // The duration for how long the service token will be valid. Must be in the format // `300ms` or `2h45m`. Valid time units are: ns, us (or µs), ms, s, m, h. The // default is 1 year in hours (8760h). Duration string `json:"duration"` // The name of the service token. Name string `json:"name"` UpdatedAt time.Time `json:"updated_at" format:"date-time"` JSON accessServiceTokenNewResponseJSON `json:"-"` }
func (*AccessServiceTokenNewResponse) UnmarshalJSON ¶
func (r *AccessServiceTokenNewResponse) UnmarshalJSON(data []byte) (err error)
type AccessServiceTokenNewResponseEnvelope ¶
type AccessServiceTokenNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result AccessServiceTokenNewResponse `json:"result,required"` // Whether the API call was successful Success AccessServiceTokenNewResponseEnvelopeSuccess `json:"success,required"` JSON accessServiceTokenNewResponseEnvelopeJSON `json:"-"` }
func (*AccessServiceTokenNewResponseEnvelope) UnmarshalJSON ¶
func (r *AccessServiceTokenNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AccessServiceTokenNewResponseEnvelopeSuccess ¶
type AccessServiceTokenNewResponseEnvelopeSuccess bool
Whether the API call was successful
const (
AccessServiceTokenNewResponseEnvelopeSuccessTrue AccessServiceTokenNewResponseEnvelopeSuccess = true
)
func (AccessServiceTokenNewResponseEnvelopeSuccess) IsKnown ¶
func (r AccessServiceTokenNewResponseEnvelopeSuccess) IsKnown() bool
type AccessServiceTokenRefreshResponseEnvelope ¶
type AccessServiceTokenRefreshResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result ServiceToken `json:"result,required"` // Whether the API call was successful Success AccessServiceTokenRefreshResponseEnvelopeSuccess `json:"success,required"` JSON accessServiceTokenRefreshResponseEnvelopeJSON `json:"-"` }
func (*AccessServiceTokenRefreshResponseEnvelope) UnmarshalJSON ¶
func (r *AccessServiceTokenRefreshResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AccessServiceTokenRefreshResponseEnvelopeSuccess ¶
type AccessServiceTokenRefreshResponseEnvelopeSuccess bool
Whether the API call was successful
const (
AccessServiceTokenRefreshResponseEnvelopeSuccessTrue AccessServiceTokenRefreshResponseEnvelopeSuccess = true
)
func (AccessServiceTokenRefreshResponseEnvelopeSuccess) IsKnown ¶
func (r AccessServiceTokenRefreshResponseEnvelopeSuccess) IsKnown() bool
type AccessServiceTokenRotateResponse ¶
type AccessServiceTokenRotateResponse struct { // The ID of the service token. ID string `json:"id"` // The Client ID for the service token. Access will check for this value in the // `CF-Access-Client-ID` request header. ClientID string `json:"client_id"` // The Client Secret for the service token. Access will check for this value in the // `CF-Access-Client-Secret` request header. ClientSecret string `json:"client_secret"` CreatedAt time.Time `json:"created_at" format:"date-time"` // The duration for how long the service token will be valid. Must be in the format // `300ms` or `2h45m`. Valid time units are: ns, us (or µs), ms, s, m, h. The // default is 1 year in hours (8760h). Duration string `json:"duration"` // The name of the service token. Name string `json:"name"` UpdatedAt time.Time `json:"updated_at" format:"date-time"` JSON accessServiceTokenRotateResponseJSON `json:"-"` }
func (*AccessServiceTokenRotateResponse) UnmarshalJSON ¶
func (r *AccessServiceTokenRotateResponse) UnmarshalJSON(data []byte) (err error)
type AccessServiceTokenRotateResponseEnvelope ¶
type AccessServiceTokenRotateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result AccessServiceTokenRotateResponse `json:"result,required"` // Whether the API call was successful Success AccessServiceTokenRotateResponseEnvelopeSuccess `json:"success,required"` JSON accessServiceTokenRotateResponseEnvelopeJSON `json:"-"` }
func (*AccessServiceTokenRotateResponseEnvelope) UnmarshalJSON ¶
func (r *AccessServiceTokenRotateResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AccessServiceTokenRotateResponseEnvelopeSuccess ¶
type AccessServiceTokenRotateResponseEnvelopeSuccess bool
Whether the API call was successful
const (
AccessServiceTokenRotateResponseEnvelopeSuccessTrue AccessServiceTokenRotateResponseEnvelopeSuccess = true
)
func (AccessServiceTokenRotateResponseEnvelopeSuccess) IsKnown ¶
func (r AccessServiceTokenRotateResponseEnvelopeSuccess) IsKnown() bool
type AccessServiceTokenService ¶
type AccessServiceTokenService struct {
Options []option.RequestOption
}
AccessServiceTokenService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewAccessServiceTokenService method instead.
func NewAccessServiceTokenService ¶
func NewAccessServiceTokenService(opts ...option.RequestOption) (r *AccessServiceTokenService)
NewAccessServiceTokenService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*AccessServiceTokenService) Delete ¶
func (r *AccessServiceTokenService) Delete(ctx context.Context, uuid string, body AccessServiceTokenDeleteParams, opts ...option.RequestOption) (res *ServiceToken, err error)
Deletes a service token.
func (*AccessServiceTokenService) List ¶
func (r *AccessServiceTokenService) List(ctx context.Context, query AccessServiceTokenListParams, opts ...option.RequestOption) (res *pagination.SinglePage[ServiceToken], err error)
Lists all service tokens.
func (*AccessServiceTokenService) ListAutoPaging ¶
func (r *AccessServiceTokenService) ListAutoPaging(ctx context.Context, query AccessServiceTokenListParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[ServiceToken]
Lists all service tokens.
func (*AccessServiceTokenService) New ¶
func (r *AccessServiceTokenService) New(ctx context.Context, params AccessServiceTokenNewParams, opts ...option.RequestOption) (res *AccessServiceTokenNewResponse, err error)
Generates a new service token. **Note:** This is the only time you can get the Client Secret. If you lose the Client Secret, you will have to rotate the Client Secret or create a new service token.
func (*AccessServiceTokenService) Refresh ¶
func (r *AccessServiceTokenService) Refresh(ctx context.Context, identifier string, uuid string, opts ...option.RequestOption) (res *ServiceToken, err error)
Refreshes the expiration of a service token.
func (*AccessServiceTokenService) Rotate ¶
func (r *AccessServiceTokenService) Rotate(ctx context.Context, identifier string, uuid string, opts ...option.RequestOption) (res *AccessServiceTokenRotateResponse, err error)
Generates a new Client Secret for a service token and revokes the old one.
func (*AccessServiceTokenService) Update ¶
func (r *AccessServiceTokenService) Update(ctx context.Context, uuid string, params AccessServiceTokenUpdateParams, opts ...option.RequestOption) (res *ServiceToken, err error)
Updates a configured service token.
type AccessServiceTokenUpdateParams ¶
type AccessServiceTokenUpdateParams struct { // The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. AccountID param.Field[string] `path:"account_id"` // The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. ZoneID param.Field[string] `path:"zone_id"` // The duration for how long the service token will be valid. Must be in the format // `300ms` or `2h45m`. Valid time units are: ns, us (or µs), ms, s, m, h. The // default is 1 year in hours (8760h). Duration param.Field[string] `json:"duration"` // The name of the service token. Name param.Field[string] `json:"name"` }
func (AccessServiceTokenUpdateParams) MarshalJSON ¶
func (r AccessServiceTokenUpdateParams) MarshalJSON() (data []byte, err error)
type AccessServiceTokenUpdateResponseEnvelope ¶
type AccessServiceTokenUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result ServiceToken `json:"result,required"` // Whether the API call was successful Success AccessServiceTokenUpdateResponseEnvelopeSuccess `json:"success,required"` JSON accessServiceTokenUpdateResponseEnvelopeJSON `json:"-"` }
func (*AccessServiceTokenUpdateResponseEnvelope) UnmarshalJSON ¶
func (r *AccessServiceTokenUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AccessServiceTokenUpdateResponseEnvelopeSuccess ¶
type AccessServiceTokenUpdateResponseEnvelopeSuccess bool
Whether the API call was successful
const (
AccessServiceTokenUpdateResponseEnvelopeSuccessTrue AccessServiceTokenUpdateResponseEnvelopeSuccess = true
)
func (AccessServiceTokenUpdateResponseEnvelopeSuccess) IsKnown ¶
func (r AccessServiceTokenUpdateResponseEnvelopeSuccess) IsKnown() bool
type AccessTagDeleteResponse ¶
type AccessTagDeleteResponse struct { // The name of the tag Name string `json:"name"` JSON accessTagDeleteResponseJSON `json:"-"` }
func (*AccessTagDeleteResponse) UnmarshalJSON ¶
func (r *AccessTagDeleteResponse) UnmarshalJSON(data []byte) (err error)
type AccessTagDeleteResponseEnvelope ¶
type AccessTagDeleteResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result AccessTagDeleteResponse `json:"result,required"` // Whether the API call was successful Success AccessTagDeleteResponseEnvelopeSuccess `json:"success,required"` JSON accessTagDeleteResponseEnvelopeJSON `json:"-"` }
func (*AccessTagDeleteResponseEnvelope) UnmarshalJSON ¶
func (r *AccessTagDeleteResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AccessTagDeleteResponseEnvelopeSuccess ¶
type AccessTagDeleteResponseEnvelopeSuccess bool
Whether the API call was successful
const (
AccessTagDeleteResponseEnvelopeSuccessTrue AccessTagDeleteResponseEnvelopeSuccess = true
)
func (AccessTagDeleteResponseEnvelopeSuccess) IsKnown ¶
func (r AccessTagDeleteResponseEnvelopeSuccess) IsKnown() bool
type AccessTagGetResponseEnvelope ¶
type AccessTagGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` // A tag Result Tag `json:"result,required"` // Whether the API call was successful Success AccessTagGetResponseEnvelopeSuccess `json:"success,required"` JSON accessTagGetResponseEnvelopeJSON `json:"-"` }
func (*AccessTagGetResponseEnvelope) UnmarshalJSON ¶
func (r *AccessTagGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AccessTagGetResponseEnvelopeSuccess ¶
type AccessTagGetResponseEnvelopeSuccess bool
Whether the API call was successful
const (
AccessTagGetResponseEnvelopeSuccessTrue AccessTagGetResponseEnvelopeSuccess = true
)
func (AccessTagGetResponseEnvelopeSuccess) IsKnown ¶
func (r AccessTagGetResponseEnvelopeSuccess) IsKnown() bool
type AccessTagNewParams ¶
type AccessTagNewParams struct { // The name of the tag Name param.Field[string] `json:"name,required"` }
func (AccessTagNewParams) MarshalJSON ¶
func (r AccessTagNewParams) MarshalJSON() (data []byte, err error)
type AccessTagNewResponseEnvelope ¶
type AccessTagNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` // A tag Result Tag `json:"result,required"` // Whether the API call was successful Success AccessTagNewResponseEnvelopeSuccess `json:"success,required"` JSON accessTagNewResponseEnvelopeJSON `json:"-"` }
func (*AccessTagNewResponseEnvelope) UnmarshalJSON ¶
func (r *AccessTagNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AccessTagNewResponseEnvelopeSuccess ¶
type AccessTagNewResponseEnvelopeSuccess bool
Whether the API call was successful
const (
AccessTagNewResponseEnvelopeSuccessTrue AccessTagNewResponseEnvelopeSuccess = true
)
func (AccessTagNewResponseEnvelopeSuccess) IsKnown ¶
func (r AccessTagNewResponseEnvelopeSuccess) IsKnown() bool
type AccessTagService ¶
type AccessTagService struct {
Options []option.RequestOption
}
AccessTagService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewAccessTagService method instead.
func NewAccessTagService ¶
func NewAccessTagService(opts ...option.RequestOption) (r *AccessTagService)
NewAccessTagService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*AccessTagService) Delete ¶
func (r *AccessTagService) Delete(ctx context.Context, identifier string, name string, opts ...option.RequestOption) (res *AccessTagDeleteResponse, err error)
Delete a tag
func (*AccessTagService) Get ¶
func (r *AccessTagService) Get(ctx context.Context, identifier string, name string, opts ...option.RequestOption) (res *Tag, err error)
Get a tag
func (*AccessTagService) List ¶
func (r *AccessTagService) List(ctx context.Context, identifier string, opts ...option.RequestOption) (res *pagination.SinglePage[Tag], err error)
List tags
func (*AccessTagService) ListAutoPaging ¶
func (r *AccessTagService) ListAutoPaging(ctx context.Context, identifier string, opts ...option.RequestOption) *pagination.SinglePageAutoPager[Tag]
List tags
func (*AccessTagService) New ¶
func (r *AccessTagService) New(ctx context.Context, identifier string, body AccessTagNewParams, opts ...option.RequestOption) (res *Tag, err error)
Create a tag
func (*AccessTagService) Update ¶
func (r *AccessTagService) Update(ctx context.Context, identifier string, tagName string, body AccessTagUpdateParams, opts ...option.RequestOption) (res *Tag, err error)
Update a tag
type AccessTagUpdateParams ¶
type AccessTagUpdateParams struct { // The name of the tag Name param.Field[string] `json:"name,required"` }
func (AccessTagUpdateParams) MarshalJSON ¶
func (r AccessTagUpdateParams) MarshalJSON() (data []byte, err error)
type AccessTagUpdateResponseEnvelope ¶
type AccessTagUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` // A tag Result Tag `json:"result,required"` // Whether the API call was successful Success AccessTagUpdateResponseEnvelopeSuccess `json:"success,required"` JSON accessTagUpdateResponseEnvelopeJSON `json:"-"` }
func (*AccessTagUpdateResponseEnvelope) UnmarshalJSON ¶
func (r *AccessTagUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AccessTagUpdateResponseEnvelopeSuccess ¶
type AccessTagUpdateResponseEnvelopeSuccess bool
Whether the API call was successful
const (
AccessTagUpdateResponseEnvelopeSuccessTrue AccessTagUpdateResponseEnvelopeSuccess = true
)
func (AccessTagUpdateResponseEnvelopeSuccess) IsKnown ¶
func (r AccessTagUpdateResponseEnvelopeSuccess) IsKnown() bool
type AccessUser ¶
type AccessUser struct { // UUID ID string `json:"id"` // True if the user has authenticated with Cloudflare Access. AccessSeat bool `json:"access_seat"` // The number of active devices registered to the user. ActiveDeviceCount float64 `json:"active_device_count"` CreatedAt time.Time `json:"created_at" format:"date-time"` // The email of the user. Email string `json:"email" format:"email"` // True if the user has logged into the WARP client. GatewaySeat bool `json:"gateway_seat"` // The time at which the user last successfully logged in. LastSuccessfulLogin time.Time `json:"last_successful_login" format:"date-time"` // The name of the user. Name string `json:"name"` // The unique API identifier for the Zero Trust seat. SeatUID string `json:"seat_uid"` // The unique API identifier for the user. UID string `json:"uid"` UpdatedAt time.Time `json:"updated_at" format:"date-time"` JSON accessUserJSON `json:"-"` }
func (*AccessUser) UnmarshalJSON ¶
func (r *AccessUser) UnmarshalJSON(data []byte) (err error)
type AccessUserActiveSessionGetResponse ¶
type AccessUserActiveSessionGetResponse struct { AccountID string `json:"account_id"` AuthStatus string `json:"auth_status"` CommonName string `json:"common_name"` DeviceID string `json:"device_id"` DeviceSessions map[string]AccessUserActiveSessionGetResponseDeviceSession `json:"device_sessions"` DevicePosture map[string]AccessUserActiveSessionGetResponseDevicePosture `json:"devicePosture"` Email string `json:"email"` Geo UserPolicyCheckGeo `json:"geo"` Iat float64 `json:"iat"` IDP AccessUserActiveSessionGetResponseIDP `json:"idp"` IP string `json:"ip"` IsGateway bool `json:"is_gateway"` IsWARP bool `json:"is_warp"` IsActive bool `json:"isActive"` MTLSAuth AccessUserActiveSessionGetResponseMTLSAuth `json:"mtls_auth"` ServiceTokenID string `json:"service_token_id"` ServiceTokenStatus bool `json:"service_token_status"` UserUUID string `json:"user_uuid"` Version float64 `json:"version"` JSON accessUserActiveSessionGetResponseJSON `json:"-"` }
func (*AccessUserActiveSessionGetResponse) UnmarshalJSON ¶
func (r *AccessUserActiveSessionGetResponse) UnmarshalJSON(data []byte) (err error)
type AccessUserActiveSessionGetResponseDevicePosture ¶
type AccessUserActiveSessionGetResponseDevicePosture struct { ID string `json:"id"` Check AccessUserActiveSessionGetResponseDevicePostureCheck `json:"check"` Data interface{} `json:"data"` Description string `json:"description"` Error string `json:"error"` RuleName string `json:"rule_name"` Success bool `json:"success"` Timestamp string `json:"timestamp"` Type string `json:"type"` JSON accessUserActiveSessionGetResponseDevicePostureJSON `json:"-"` }
func (*AccessUserActiveSessionGetResponseDevicePosture) UnmarshalJSON ¶
func (r *AccessUserActiveSessionGetResponseDevicePosture) UnmarshalJSON(data []byte) (err error)
type AccessUserActiveSessionGetResponseDevicePostureCheck ¶
type AccessUserActiveSessionGetResponseDevicePostureCheck struct { Exists bool `json:"exists"` Path string `json:"path"` JSON accessUserActiveSessionGetResponseDevicePostureCheckJSON `json:"-"` }
func (*AccessUserActiveSessionGetResponseDevicePostureCheck) UnmarshalJSON ¶
func (r *AccessUserActiveSessionGetResponseDevicePostureCheck) UnmarshalJSON(data []byte) (err error)
type AccessUserActiveSessionGetResponseDeviceSession ¶
type AccessUserActiveSessionGetResponseDeviceSession struct { LastAuthenticated float64 `json:"last_authenticated"` JSON accessUserActiveSessionGetResponseDeviceSessionJSON `json:"-"` }
func (*AccessUserActiveSessionGetResponseDeviceSession) UnmarshalJSON ¶
func (r *AccessUserActiveSessionGetResponseDeviceSession) UnmarshalJSON(data []byte) (err error)
type AccessUserActiveSessionGetResponseEnvelope ¶
type AccessUserActiveSessionGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result AccessUserActiveSessionGetResponse `json:"result,required"` // Whether the API call was successful Success AccessUserActiveSessionGetResponseEnvelopeSuccess `json:"success,required"` JSON accessUserActiveSessionGetResponseEnvelopeJSON `json:"-"` }
func (*AccessUserActiveSessionGetResponseEnvelope) UnmarshalJSON ¶
func (r *AccessUserActiveSessionGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AccessUserActiveSessionGetResponseEnvelopeSuccess ¶
type AccessUserActiveSessionGetResponseEnvelopeSuccess bool
Whether the API call was successful
const (
AccessUserActiveSessionGetResponseEnvelopeSuccessTrue AccessUserActiveSessionGetResponseEnvelopeSuccess = true
)
func (AccessUserActiveSessionGetResponseEnvelopeSuccess) IsKnown ¶
func (r AccessUserActiveSessionGetResponseEnvelopeSuccess) IsKnown() bool
type AccessUserActiveSessionGetResponseIDP ¶
type AccessUserActiveSessionGetResponseIDP struct { ID string `json:"id"` Type string `json:"type"` JSON accessUserActiveSessionGetResponseIDPJSON `json:"-"` }
func (*AccessUserActiveSessionGetResponseIDP) UnmarshalJSON ¶
func (r *AccessUserActiveSessionGetResponseIDP) UnmarshalJSON(data []byte) (err error)
type AccessUserActiveSessionGetResponseMTLSAuth ¶
type AccessUserActiveSessionGetResponseMTLSAuth struct { AuthStatus string `json:"auth_status"` CERTIssuerDn string `json:"cert_issuer_dn"` CERTIssuerSki string `json:"cert_issuer_ski"` CERTPresented bool `json:"cert_presented"` CERTSerial string `json:"cert_serial"` JSON accessUserActiveSessionGetResponseMTLSAuthJSON `json:"-"` }
func (*AccessUserActiveSessionGetResponseMTLSAuth) UnmarshalJSON ¶
func (r *AccessUserActiveSessionGetResponseMTLSAuth) UnmarshalJSON(data []byte) (err error)
type AccessUserActiveSessionListResponse ¶
type AccessUserActiveSessionListResponse struct { Expiration int64 `json:"expiration"` Metadata AccessUserActiveSessionListResponseMetadata `json:"metadata"` Name string `json:"name"` JSON accessUserActiveSessionListResponseJSON `json:"-"` }
func (*AccessUserActiveSessionListResponse) UnmarshalJSON ¶
func (r *AccessUserActiveSessionListResponse) UnmarshalJSON(data []byte) (err error)
type AccessUserActiveSessionListResponseMetadata ¶
type AccessUserActiveSessionListResponseMetadata struct { Apps map[string]AccessUserActiveSessionListResponseMetadataApp `json:"apps"` Expires int64 `json:"expires"` Iat int64 `json:"iat"` Nonce string `json:"nonce"` TTL int64 `json:"ttl"` JSON accessUserActiveSessionListResponseMetadataJSON `json:"-"` }
func (*AccessUserActiveSessionListResponseMetadata) UnmarshalJSON ¶
func (r *AccessUserActiveSessionListResponseMetadata) UnmarshalJSON(data []byte) (err error)
type AccessUserActiveSessionListResponseMetadataApp ¶
type AccessUserActiveSessionListResponseMetadataApp struct { Hostname string `json:"hostname"` Name string `json:"name"` Type string `json:"type"` UID string `json:"uid"` JSON accessUserActiveSessionListResponseMetadataAppJSON `json:"-"` }
func (*AccessUserActiveSessionListResponseMetadataApp) UnmarshalJSON ¶
func (r *AccessUserActiveSessionListResponseMetadataApp) UnmarshalJSON(data []byte) (err error)
type AccessUserActiveSessionService ¶
type AccessUserActiveSessionService struct {
Options []option.RequestOption
}
AccessUserActiveSessionService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewAccessUserActiveSessionService method instead.
func NewAccessUserActiveSessionService ¶
func NewAccessUserActiveSessionService(opts ...option.RequestOption) (r *AccessUserActiveSessionService)
NewAccessUserActiveSessionService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*AccessUserActiveSessionService) Get ¶
func (r *AccessUserActiveSessionService) Get(ctx context.Context, identifier string, id string, nonce string, opts ...option.RequestOption) (res *AccessUserActiveSessionGetResponse, err error)
Get an active session for a single user.
func (*AccessUserActiveSessionService) List ¶
func (r *AccessUserActiveSessionService) List(ctx context.Context, identifier string, id string, opts ...option.RequestOption) (res *pagination.SinglePage[AccessUserActiveSessionListResponse], err error)
Get active sessions for a single user.
func (*AccessUserActiveSessionService) ListAutoPaging ¶
func (r *AccessUserActiveSessionService) ListAutoPaging(ctx context.Context, identifier string, id string, opts ...option.RequestOption) *pagination.SinglePageAutoPager[AccessUserActiveSessionListResponse]
Get active sessions for a single user.
type AccessUserFailedLoginListResponse ¶
type AccessUserFailedLoginListResponse struct { Expiration int64 `json:"expiration"` Metadata interface{} `json:"metadata"` JSON accessUserFailedLoginListResponseJSON `json:"-"` }
func (*AccessUserFailedLoginListResponse) UnmarshalJSON ¶
func (r *AccessUserFailedLoginListResponse) UnmarshalJSON(data []byte) (err error)
type AccessUserFailedLoginService ¶
type AccessUserFailedLoginService struct {
Options []option.RequestOption
}
AccessUserFailedLoginService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewAccessUserFailedLoginService method instead.
func NewAccessUserFailedLoginService ¶
func NewAccessUserFailedLoginService(opts ...option.RequestOption) (r *AccessUserFailedLoginService)
NewAccessUserFailedLoginService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*AccessUserFailedLoginService) List ¶
func (r *AccessUserFailedLoginService) List(ctx context.Context, identifier string, id string, opts ...option.RequestOption) (res *pagination.SinglePage[AccessUserFailedLoginListResponse], err error)
Get all failed login attempts for a single user.
func (*AccessUserFailedLoginService) ListAutoPaging ¶
func (r *AccessUserFailedLoginService) ListAutoPaging(ctx context.Context, identifier string, id string, opts ...option.RequestOption) *pagination.SinglePageAutoPager[AccessUserFailedLoginListResponse]
Get all failed login attempts for a single user.
type AccessUserLastSeenIdentityGetResponseEnvelope ¶
type AccessUserLastSeenIdentityGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result Identity `json:"result,required"` // Whether the API call was successful Success AccessUserLastSeenIdentityGetResponseEnvelopeSuccess `json:"success,required"` JSON accessUserLastSeenIdentityGetResponseEnvelopeJSON `json:"-"` }
func (*AccessUserLastSeenIdentityGetResponseEnvelope) UnmarshalJSON ¶
func (r *AccessUserLastSeenIdentityGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AccessUserLastSeenIdentityGetResponseEnvelopeSuccess ¶
type AccessUserLastSeenIdentityGetResponseEnvelopeSuccess bool
Whether the API call was successful
const (
AccessUserLastSeenIdentityGetResponseEnvelopeSuccessTrue AccessUserLastSeenIdentityGetResponseEnvelopeSuccess = true
)
func (AccessUserLastSeenIdentityGetResponseEnvelopeSuccess) IsKnown ¶
func (r AccessUserLastSeenIdentityGetResponseEnvelopeSuccess) IsKnown() bool
type AccessUserLastSeenIdentityService ¶
type AccessUserLastSeenIdentityService struct {
Options []option.RequestOption
}
AccessUserLastSeenIdentityService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewAccessUserLastSeenIdentityService method instead.
func NewAccessUserLastSeenIdentityService ¶
func NewAccessUserLastSeenIdentityService(opts ...option.RequestOption) (r *AccessUserLastSeenIdentityService)
NewAccessUserLastSeenIdentityService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
type AccessUserService ¶
type AccessUserService struct { Options []option.RequestOption ActiveSessions *AccessUserActiveSessionService LastSeenIdentity *AccessUserLastSeenIdentityService FailedLogins *AccessUserFailedLoginService }
AccessUserService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewAccessUserService method instead.
func NewAccessUserService ¶
func NewAccessUserService(opts ...option.RequestOption) (r *AccessUserService)
NewAccessUserService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*AccessUserService) List ¶
func (r *AccessUserService) List(ctx context.Context, identifier string, opts ...option.RequestOption) (res *pagination.SinglePage[AccessUser], err error)
Gets a list of users for an account.
func (*AccessUserService) ListAutoPaging ¶
func (r *AccessUserService) ListAutoPaging(ctx context.Context, identifier string, opts ...option.RequestOption) *pagination.SinglePageAutoPager[AccessUser]
Gets a list of users for an account.
type ActivityLogSettings ¶
type ActivityLogSettings struct { // Enable activity logging. Enabled bool `json:"enabled"` JSON activityLogSettingsJSON `json:"-"` }
Activity log settings.
func (*ActivityLogSettings) UnmarshalJSON ¶
func (r *ActivityLogSettings) UnmarshalJSON(data []byte) (err error)
type ActivityLogSettingsParam ¶
type ActivityLogSettingsParam struct { // Enable activity logging. Enabled param.Field[bool] `json:"enabled"` }
Activity log settings.
func (ActivityLogSettingsParam) MarshalJSON ¶
func (r ActivityLogSettingsParam) MarshalJSON() (data []byte, err error)
type AggregateTimePeriod ¶
type AggregateTimePeriod struct { Units AggregateTimePeriodUnits `json:"units,required"` Value int64 `json:"value,required"` JSON aggregateTimePeriodJSON `json:"-"` }
func (*AggregateTimePeriod) UnmarshalJSON ¶
func (r *AggregateTimePeriod) UnmarshalJSON(data []byte) (err error)
type AggregateTimePeriodUnits ¶
type AggregateTimePeriodUnits string
const ( AggregateTimePeriodUnitsHours AggregateTimePeriodUnits = "hours" AggregateTimePeriodUnitsDays AggregateTimePeriodUnits = "days" AggregateTimePeriodUnitsTestRuns AggregateTimePeriodUnits = "testRuns" )
func (AggregateTimePeriodUnits) IsKnown ¶
func (r AggregateTimePeriodUnits) IsKnown() bool
type AllowedHeadersh ¶
type AllowedHeadersh = string
type AllowedHeadershParam ¶
type AllowedHeadershParam = string
type AllowedIdpsh ¶
type AllowedIdpsh = string
type AllowedIdpshParam ¶
type AllowedIdpshParam = string
type AllowedMethodsh ¶
type AllowedMethodsh string
const ( AllowedMethodshGet AllowedMethodsh = "GET" AllowedMethodshPost AllowedMethodsh = "POST" AllowedMethodshHead AllowedMethodsh = "HEAD" AllowedMethodshPut AllowedMethodsh = "PUT" AllowedMethodshDelete AllowedMethodsh = "DELETE" AllowedMethodshConnect AllowedMethodsh = "CONNECT" AllowedMethodshOptions AllowedMethodsh = "OPTIONS" AllowedMethodshTrace AllowedMethodsh = "TRACE" AllowedMethodshPatch AllowedMethodsh = "PATCH" )
func (AllowedMethodsh) IsKnown ¶
func (r AllowedMethodsh) IsKnown() bool
type AllowedOriginsh ¶
type AllowedOriginsh = string
type AllowedOriginshParam ¶
type AllowedOriginshParam = string
type AntiVirusSettings ¶
type AntiVirusSettings struct { // Enable anti-virus scanning on downloads. EnabledDownloadPhase bool `json:"enabled_download_phase"` // Enable anti-virus scanning on uploads. EnabledUploadPhase bool `json:"enabled_upload_phase"` // Block requests for files that cannot be scanned. FailClosed bool `json:"fail_closed"` // Configure a message to display on the user's device when an antivirus search is // performed. NotificationSettings NotificationSettings `json:"notification_settings"` JSON antiVirusSettingsJSON `json:"-"` }
Anti-virus settings.
func (*AntiVirusSettings) UnmarshalJSON ¶
func (r *AntiVirusSettings) UnmarshalJSON(data []byte) (err error)
type AntiVirusSettingsParam ¶
type AntiVirusSettingsParam struct { // Enable anti-virus scanning on downloads. EnabledDownloadPhase param.Field[bool] `json:"enabled_download_phase"` // Enable anti-virus scanning on uploads. EnabledUploadPhase param.Field[bool] `json:"enabled_upload_phase"` // Block requests for files that cannot be scanned. FailClosed param.Field[bool] `json:"fail_closed"` // Configure a message to display on the user's device when an antivirus search is // performed. NotificationSettings param.Field[NotificationSettingsParam] `json:"notification_settings"` }
Anti-virus settings.
func (AntiVirusSettingsParam) MarshalJSON ¶
func (r AntiVirusSettingsParam) MarshalJSON() (data []byte, err error)
type AnyValidServiceTokenRule ¶
type AnyValidServiceTokenRule struct { // An empty object which matches on all service tokens. AnyValidServiceToken interface{} `json:"any_valid_service_token,required"` JSON anyValidServiceTokenRuleJSON `json:"-"` }
Matches any valid Access Service Token
func (*AnyValidServiceTokenRule) UnmarshalJSON ¶
func (r *AnyValidServiceTokenRule) UnmarshalJSON(data []byte) (err error)
type AnyValidServiceTokenRuleParam ¶
type AnyValidServiceTokenRuleParam struct { // An empty object which matches on all service tokens. AnyValidServiceToken param.Field[interface{}] `json:"any_valid_service_token,required"` }
Matches any valid Access Service Token
func (AnyValidServiceTokenRuleParam) MarshalJSON ¶
func (r AnyValidServiceTokenRuleParam) MarshalJSON() (data []byte, err error)
type AppIDUnionParam ¶
type AppIDUnionParam interface {
ImplementsZeroTrustAppIDUnionParam()
}
Identifier
Satisfied by shared.UnionString, shared.UnionString.
type AppType ¶
type AppType struct { // The identifier for the type of this application. There can be many applications // with the same type. This refers to the `id` of a returned application type. ApplicationTypeID int64 `json:"application_type_id"` CreatedAt time.Time `json:"created_at" format:"date-time"` // The identifier for this application. There is only one application per ID. ID int64 `json:"id"` // The name of the application or application type. Name string `json:"name"` // A short summary of applications with this type. Description string `json:"description"` JSON appTypeJSON `json:"-"` // contains filtered or unexported fields }
func (AppType) AsUnion ¶
func (r AppType) AsUnion() AppTypeUnion
func (*AppType) UnmarshalJSON ¶
type AppTypeUnion ¶
type AppTypeUnion interface {
// contains filtered or unexported methods
}
Union satisfied by zero_trust.AppTypeZeroTrustGatewayApplication or zero_trust.AppTypeZeroTrustGatewayApplicationType.
type AppTypeZeroTrustGatewayApplication ¶
type AppTypeZeroTrustGatewayApplication struct { // The identifier for this application. There is only one application per ID. ID int64 `json:"id"` // The identifier for the type of this application. There can be many applications // with the same type. This refers to the `id` of a returned application type. ApplicationTypeID int64 `json:"application_type_id"` CreatedAt time.Time `json:"created_at" format:"date-time"` // The name of the application or application type. Name string `json:"name"` JSON appTypeZeroTrustGatewayApplicationJSON `json:"-"` }
func (*AppTypeZeroTrustGatewayApplication) UnmarshalJSON ¶
func (r *AppTypeZeroTrustGatewayApplication) UnmarshalJSON(data []byte) (err error)
type AppTypeZeroTrustGatewayApplicationType ¶
type AppTypeZeroTrustGatewayApplicationType struct { // The identifier for the type of this application. There can be many applications // with the same type. This refers to the `id` of a returned application type. ID int64 `json:"id"` CreatedAt time.Time `json:"created_at" format:"date-time"` // A short summary of applications with this type. Description string `json:"description"` // The name of the application or application type. Name string `json:"name"` JSON appTypeZeroTrustGatewayApplicationTypeJSON `json:"-"` }
func (*AppTypeZeroTrustGatewayApplicationType) UnmarshalJSON ¶
func (r *AppTypeZeroTrustGatewayApplicationType) UnmarshalJSON(data []byte) (err error)
type Application ¶
type Application struct { // Audience tag. Aud string `json:"aud"` CreatedAt time.Time `json:"created_at" format:"date-time"` // UUID ID string `json:"id"` UpdatedAt time.Time `json:"updated_at" format:"date-time"` // When set to true, users can authenticate to this application using their WARP // session. When set to false this application will always require direct IdP // authentication. This setting always overrides the organization setting for WARP // authentication. AllowAuthenticateViaWARP bool `json:"allow_authenticate_via_warp"` AllowedIDPs interface{} `json:"allowed_idps,required"` // Displays the application in the App Launcher. AppLauncherVisible bool `json:"app_launcher_visible"` // When set to `true`, users skip the identity provider selection step during // login. You must specify only one identity provider in allowed_idps. AutoRedirectToIdentity bool `json:"auto_redirect_to_identity"` CorsHeaders CorsHeaders `json:"cors_headers"` // The custom error message shown to a user when they are denied access to the // application. CustomDenyMessage string `json:"custom_deny_message"` // The custom URL a user is redirected to when they are denied access to the // application when failing identity-based rules. CustomDenyURL string `json:"custom_deny_url"` // The custom URL a user is redirected to when they are denied access to the // application when failing non-identity rules. CustomNonIdentityDenyURL string `json:"custom_non_identity_deny_url"` CustomPages interface{} `json:"custom_pages,required"` // The primary hostname and path that Access will secure. If the app is visible in // the App Launcher dashboard, this is the domain that will be displayed. Domain string `json:"domain"` // Enables the binding cookie, which increases security against compromised // authorization tokens and CSRF attacks. EnableBindingCookie bool `json:"enable_binding_cookie"` // Enables the HttpOnly cookie attribute, which increases security against XSS // attacks. HTTPOnlyCookieAttribute bool `json:"http_only_cookie_attribute"` // The image URL for the logo shown in the App Launcher dashboard. LogoURL string `json:"logo_url"` // The name of the application. Name string `json:"name"` // Enables cookie paths to scope an application's JWT to the application path. If // disabled, the JWT will scope to the hostname by default PathCookieAttribute bool `json:"path_cookie_attribute"` // Sets the SameSite cookie setting, which provides increased security against CSRF // attacks. SameSiteCookieAttribute string `json:"same_site_cookie_attribute"` SelfHostedDomains interface{} `json:"self_hosted_domains,required"` // Returns a 401 status code when the request is blocked by a Service Auth policy. ServiceAuth401Redirect bool `json:"service_auth_401_redirect"` // The amount of time that tokens issued for this application will be valid. Must // be in the format `300ms` or `2h45m`. Valid time units are: ns, us (or µs), ms, // s, m, h. SessionDuration string `json:"session_duration"` // Enables automatic authentication through cloudflared. SkipInterstitial bool `json:"skip_interstitial"` Tags interface{} `json:"tags,required"` // The application type. Type string `json:"type"` SaasApp interface{} `json:"saas_app,required"` JSON applicationJSON `json:"-"` // contains filtered or unexported fields }
func (Application) AsUnion ¶
func (r Application) AsUnion() ApplicationUnion
func (*Application) UnmarshalJSON ¶
func (r *Application) UnmarshalJSON(data []byte) (err error)
type ApplicationAppLauncherApplication ¶
type ApplicationAppLauncherApplication struct { // The application type. Type ApplicationAppLauncherApplicationType `json:"type,required"` // UUID ID string `json:"id"` // The identity providers your users can select when connecting to this // application. Defaults to all IdPs configured in your account. AllowedIDPs []AllowedIdpsh `json:"allowed_idps"` // Audience tag. Aud string `json:"aud"` // When set to `true`, users skip the identity provider selection step during // login. You must specify only one identity provider in allowed_idps. AutoRedirectToIdentity bool `json:"auto_redirect_to_identity"` CreatedAt time.Time `json:"created_at" format:"date-time"` // The primary hostname and path that Access will secure. If the app is visible in // the App Launcher dashboard, this is the domain that will be displayed. Domain string `json:"domain"` // The name of the application. Name string `json:"name"` // The amount of time that tokens issued for this application will be valid. Must // be in the format `300ms` or `2h45m`. Valid time units are: ns, us (or µs), ms, // s, m, h. SessionDuration string `json:"session_duration"` UpdatedAt time.Time `json:"updated_at" format:"date-time"` JSON applicationAppLauncherApplicationJSON `json:"-"` }
func (*ApplicationAppLauncherApplication) UnmarshalJSON ¶
func (r *ApplicationAppLauncherApplication) UnmarshalJSON(data []byte) (err error)
type ApplicationAppLauncherApplicationParam ¶
type ApplicationAppLauncherApplicationParam struct { // The application type. Type param.Field[ApplicationAppLauncherApplicationType] `json:"type,required"` // The identity providers your users can select when connecting to this // application. Defaults to all IdPs configured in your account. AllowedIDPs param.Field[[]AllowedIdpshParam] `json:"allowed_idps"` // When set to `true`, users skip the identity provider selection step during // login. You must specify only one identity provider in allowed_idps. AutoRedirectToIdentity param.Field[bool] `json:"auto_redirect_to_identity"` // The amount of time that tokens issued for this application will be valid. Must // be in the format `300ms` or `2h45m`. Valid time units are: ns, us (or µs), ms, // s, m, h. SessionDuration param.Field[string] `json:"session_duration"` }
func (ApplicationAppLauncherApplicationParam) MarshalJSON ¶
func (r ApplicationAppLauncherApplicationParam) MarshalJSON() (data []byte, err error)
type ApplicationAppLauncherApplicationType ¶
type ApplicationAppLauncherApplicationType string
The application type.
const ( ApplicationAppLauncherApplicationTypeSelfHosted ApplicationAppLauncherApplicationType = "self_hosted" ApplicationAppLauncherApplicationTypeSaas ApplicationAppLauncherApplicationType = "saas" ApplicationAppLauncherApplicationTypeSSH ApplicationAppLauncherApplicationType = "ssh" ApplicationAppLauncherApplicationTypeVnc ApplicationAppLauncherApplicationType = "vnc" ApplicationAppLauncherApplicationTypeAppLauncher ApplicationAppLauncherApplicationType = "app_launcher" ApplicationAppLauncherApplicationTypeWARP ApplicationAppLauncherApplicationType = "warp" ApplicationAppLauncherApplicationTypeBiso ApplicationAppLauncherApplicationType = "biso" ApplicationAppLauncherApplicationTypeBookmark ApplicationAppLauncherApplicationType = "bookmark" ApplicationAppLauncherApplicationTypeDashSSO ApplicationAppLauncherApplicationType = "dash_sso" )
func (ApplicationAppLauncherApplicationType) IsKnown ¶
func (r ApplicationAppLauncherApplicationType) IsKnown() bool
type ApplicationBookmarkApplication ¶
type ApplicationBookmarkApplication struct { // UUID ID string `json:"id"` // Displays the application in the App Launcher. AppLauncherVisible bool `json:"app_launcher_visible"` // Audience tag. Aud string `json:"aud"` CreatedAt time.Time `json:"created_at" format:"date-time"` // The URL or domain of the bookmark. Domain string `json:"domain"` // The image URL for the logo shown in the App Launcher dashboard. LogoURL string `json:"logo_url"` // The name of the application. Name string `json:"name"` // The tags you want assigned to an application. Tags are used to filter // applications in the App Launcher dashboard. Tags []string `json:"tags"` // The application type. Type string `json:"type"` UpdatedAt time.Time `json:"updated_at" format:"date-time"` JSON applicationBookmarkApplicationJSON `json:"-"` }
func (*ApplicationBookmarkApplication) UnmarshalJSON ¶
func (r *ApplicationBookmarkApplication) UnmarshalJSON(data []byte) (err error)
type ApplicationBookmarkApplicationParam ¶
type ApplicationBookmarkApplicationParam struct { // Displays the application in the App Launcher. AppLauncherVisible param.Field[bool] `json:"app_launcher_visible"` // The URL or domain of the bookmark. Domain param.Field[string] `json:"domain"` // The image URL for the logo shown in the App Launcher dashboard. LogoURL param.Field[string] `json:"logo_url"` // The name of the application. Name param.Field[string] `json:"name"` // The tags you want assigned to an application. Tags are used to filter // applications in the App Launcher dashboard. Tags param.Field[[]string] `json:"tags"` // The application type. Type param.Field[string] `json:"type"` }
func (ApplicationBookmarkApplicationParam) MarshalJSON ¶
func (r ApplicationBookmarkApplicationParam) MarshalJSON() (data []byte, err error)
type ApplicationBrowserIsolationPermissionsApplication ¶
type ApplicationBrowserIsolationPermissionsApplication struct { // The application type. Type ApplicationBrowserIsolationPermissionsApplicationType `json:"type,required"` // UUID ID string `json:"id"` // The identity providers your users can select when connecting to this // application. Defaults to all IdPs configured in your account. AllowedIDPs []AllowedIdpsh `json:"allowed_idps"` // Audience tag. Aud string `json:"aud"` // When set to `true`, users skip the identity provider selection step during // login. You must specify only one identity provider in allowed_idps. AutoRedirectToIdentity bool `json:"auto_redirect_to_identity"` CreatedAt time.Time `json:"created_at" format:"date-time"` // The primary hostname and path that Access will secure. If the app is visible in // the App Launcher dashboard, this is the domain that will be displayed. Domain string `json:"domain"` // The name of the application. Name string `json:"name"` // The amount of time that tokens issued for this application will be valid. Must // be in the format `300ms` or `2h45m`. Valid time units are: ns, us (or µs), ms, // s, m, h. SessionDuration string `json:"session_duration"` UpdatedAt time.Time `json:"updated_at" format:"date-time"` JSON applicationBrowserIsolationPermissionsApplicationJSON `json:"-"` }
func (*ApplicationBrowserIsolationPermissionsApplication) UnmarshalJSON ¶
func (r *ApplicationBrowserIsolationPermissionsApplication) UnmarshalJSON(data []byte) (err error)
type ApplicationBrowserIsolationPermissionsApplicationParam ¶
type ApplicationBrowserIsolationPermissionsApplicationParam struct { // The application type. Type param.Field[ApplicationBrowserIsolationPermissionsApplicationType] `json:"type,required"` // The identity providers your users can select when connecting to this // application. Defaults to all IdPs configured in your account. AllowedIDPs param.Field[[]AllowedIdpshParam] `json:"allowed_idps"` // When set to `true`, users skip the identity provider selection step during // login. You must specify only one identity provider in allowed_idps. AutoRedirectToIdentity param.Field[bool] `json:"auto_redirect_to_identity"` // The amount of time that tokens issued for this application will be valid. Must // be in the format `300ms` or `2h45m`. Valid time units are: ns, us (or µs), ms, // s, m, h. SessionDuration param.Field[string] `json:"session_duration"` }
func (ApplicationBrowserIsolationPermissionsApplicationParam) MarshalJSON ¶
func (r ApplicationBrowserIsolationPermissionsApplicationParam) MarshalJSON() (data []byte, err error)
type ApplicationBrowserIsolationPermissionsApplicationType ¶
type ApplicationBrowserIsolationPermissionsApplicationType string
The application type.
const ( ApplicationBrowserIsolationPermissionsApplicationTypeSelfHosted ApplicationBrowserIsolationPermissionsApplicationType = "self_hosted" ApplicationBrowserIsolationPermissionsApplicationTypeSaas ApplicationBrowserIsolationPermissionsApplicationType = "saas" ApplicationBrowserIsolationPermissionsApplicationTypeSSH ApplicationBrowserIsolationPermissionsApplicationType = "ssh" ApplicationBrowserIsolationPermissionsApplicationTypeVnc ApplicationBrowserIsolationPermissionsApplicationType = "vnc" ApplicationBrowserIsolationPermissionsApplicationTypeAppLauncher ApplicationBrowserIsolationPermissionsApplicationType = "app_launcher" ApplicationBrowserIsolationPermissionsApplicationTypeWARP ApplicationBrowserIsolationPermissionsApplicationType = "warp" ApplicationBrowserIsolationPermissionsApplicationTypeBiso ApplicationBrowserIsolationPermissionsApplicationType = "biso" ApplicationBrowserIsolationPermissionsApplicationTypeBookmark ApplicationBrowserIsolationPermissionsApplicationType = "bookmark" ApplicationBrowserIsolationPermissionsApplicationTypeDashSSO ApplicationBrowserIsolationPermissionsApplicationType = "dash_sso" )
func (ApplicationBrowserIsolationPermissionsApplicationType) IsKnown ¶
func (r ApplicationBrowserIsolationPermissionsApplicationType) IsKnown() bool
type ApplicationBrowserSSHApplication ¶
type ApplicationBrowserSSHApplication struct { // The primary hostname and path that Access will secure. If the app is visible in // the App Launcher dashboard, this is the domain that will be displayed. Domain string `json:"domain,required"` // The application type. Type string `json:"type,required"` // UUID ID string `json:"id"` // When set to true, users can authenticate to this application using their WARP // session. When set to false this application will always require direct IdP // authentication. This setting always overrides the organization setting for WARP // authentication. AllowAuthenticateViaWARP bool `json:"allow_authenticate_via_warp"` // The identity providers your users can select when connecting to this // application. Defaults to all IdPs configured in your account. AllowedIDPs []AllowedIdpsh `json:"allowed_idps"` // Displays the application in the App Launcher. AppLauncherVisible bool `json:"app_launcher_visible"` // Audience tag. Aud string `json:"aud"` // When set to `true`, users skip the identity provider selection step during // login. You must specify only one identity provider in allowed_idps. AutoRedirectToIdentity bool `json:"auto_redirect_to_identity"` CorsHeaders CorsHeaders `json:"cors_headers"` CreatedAt time.Time `json:"created_at" format:"date-time"` // The custom error message shown to a user when they are denied access to the // application. CustomDenyMessage string `json:"custom_deny_message"` // The custom URL a user is redirected to when they are denied access to the // application when failing identity-based rules. CustomDenyURL string `json:"custom_deny_url"` // The custom URL a user is redirected to when they are denied access to the // application when failing non-identity rules. CustomNonIdentityDenyURL string `json:"custom_non_identity_deny_url"` // The custom pages that will be displayed when applicable for this application CustomPages []CustomPagesh `json:"custom_pages"` // Enables the binding cookie, which increases security against compromised // authorization tokens and CSRF attacks. EnableBindingCookie bool `json:"enable_binding_cookie"` // Enables the HttpOnly cookie attribute, which increases security against XSS // attacks. HTTPOnlyCookieAttribute bool `json:"http_only_cookie_attribute"` // The image URL for the logo shown in the App Launcher dashboard. LogoURL string `json:"logo_url"` // The name of the application. Name string `json:"name"` // Enables cookie paths to scope an application's JWT to the application path. If // disabled, the JWT will scope to the hostname by default PathCookieAttribute bool `json:"path_cookie_attribute"` // Sets the SameSite cookie setting, which provides increased security against CSRF // attacks. SameSiteCookieAttribute string `json:"same_site_cookie_attribute"` // List of domains that Access will secure. SelfHostedDomains []SelfHostedDomainsh `json:"self_hosted_domains"` // Returns a 401 status code when the request is blocked by a Service Auth policy. ServiceAuth401Redirect bool `json:"service_auth_401_redirect"` // The amount of time that tokens issued for this application will be valid. Must // be in the format `300ms` or `2h45m`. Valid time units are: ns, us (or µs), ms, // s, m, h. SessionDuration string `json:"session_duration"` // Enables automatic authentication through cloudflared. SkipInterstitial bool `json:"skip_interstitial"` // The tags you want assigned to an application. Tags are used to filter // applications in the App Launcher dashboard. Tags []string `json:"tags"` UpdatedAt time.Time `json:"updated_at" format:"date-time"` JSON applicationBrowserSSHApplicationJSON `json:"-"` }
func (*ApplicationBrowserSSHApplication) UnmarshalJSON ¶
func (r *ApplicationBrowserSSHApplication) UnmarshalJSON(data []byte) (err error)
type ApplicationBrowserSSHApplicationParam ¶
type ApplicationBrowserSSHApplicationParam struct { // The primary hostname and path that Access will secure. If the app is visible in // the App Launcher dashboard, this is the domain that will be displayed. Domain param.Field[string] `json:"domain,required"` // The application type. Type param.Field[string] `json:"type,required"` // When set to true, users can authenticate to this application using their WARP // session. When set to false this application will always require direct IdP // authentication. This setting always overrides the organization setting for WARP // authentication. AllowAuthenticateViaWARP param.Field[bool] `json:"allow_authenticate_via_warp"` // The identity providers your users can select when connecting to this // application. Defaults to all IdPs configured in your account. AllowedIDPs param.Field[[]AllowedIdpshParam] `json:"allowed_idps"` // Displays the application in the App Launcher. AppLauncherVisible param.Field[bool] `json:"app_launcher_visible"` // When set to `true`, users skip the identity provider selection step during // login. You must specify only one identity provider in allowed_idps. AutoRedirectToIdentity param.Field[bool] `json:"auto_redirect_to_identity"` CorsHeaders param.Field[CorsHeadersParam] `json:"cors_headers"` // The custom error message shown to a user when they are denied access to the // application. CustomDenyMessage param.Field[string] `json:"custom_deny_message"` // The custom URL a user is redirected to when they are denied access to the // application when failing identity-based rules. CustomDenyURL param.Field[string] `json:"custom_deny_url"` // The custom URL a user is redirected to when they are denied access to the // application when failing non-identity rules. CustomNonIdentityDenyURL param.Field[string] `json:"custom_non_identity_deny_url"` // The custom pages that will be displayed when applicable for this application CustomPages param.Field[[]CustomPageshParam] `json:"custom_pages"` // Enables the binding cookie, which increases security against compromised // authorization tokens and CSRF attacks. EnableBindingCookie param.Field[bool] `json:"enable_binding_cookie"` // Enables the HttpOnly cookie attribute, which increases security against XSS // attacks. HTTPOnlyCookieAttribute param.Field[bool] `json:"http_only_cookie_attribute"` // The image URL for the logo shown in the App Launcher dashboard. LogoURL param.Field[string] `json:"logo_url"` // The name of the application. Name param.Field[string] `json:"name"` // Enables cookie paths to scope an application's JWT to the application path. If // disabled, the JWT will scope to the hostname by default PathCookieAttribute param.Field[bool] `json:"path_cookie_attribute"` // Sets the SameSite cookie setting, which provides increased security against CSRF // attacks. SameSiteCookieAttribute param.Field[string] `json:"same_site_cookie_attribute"` // List of domains that Access will secure. SelfHostedDomains param.Field[[]SelfHostedDomainshParam] `json:"self_hosted_domains"` // Returns a 401 status code when the request is blocked by a Service Auth policy. ServiceAuth401Redirect param.Field[bool] `json:"service_auth_401_redirect"` // The amount of time that tokens issued for this application will be valid. Must // be in the format `300ms` or `2h45m`. Valid time units are: ns, us (or µs), ms, // s, m, h. SessionDuration param.Field[string] `json:"session_duration"` // Enables automatic authentication through cloudflared. SkipInterstitial param.Field[bool] `json:"skip_interstitial"` // The tags you want assigned to an application. Tags are used to filter // applications in the App Launcher dashboard. Tags param.Field[[]string] `json:"tags"` }
func (ApplicationBrowserSSHApplicationParam) MarshalJSON ¶
func (r ApplicationBrowserSSHApplicationParam) MarshalJSON() (data []byte, err error)
type ApplicationBrowserVncApplication ¶
type ApplicationBrowserVncApplication struct { // The primary hostname and path that Access will secure. If the app is visible in // the App Launcher dashboard, this is the domain that will be displayed. Domain string `json:"domain,required"` // The application type. Type string `json:"type,required"` // UUID ID string `json:"id"` // When set to true, users can authenticate to this application using their WARP // session. When set to false this application will always require direct IdP // authentication. This setting always overrides the organization setting for WARP // authentication. AllowAuthenticateViaWARP bool `json:"allow_authenticate_via_warp"` // The identity providers your users can select when connecting to this // application. Defaults to all IdPs configured in your account. AllowedIDPs []AllowedIdpsh `json:"allowed_idps"` // Displays the application in the App Launcher. AppLauncherVisible bool `json:"app_launcher_visible"` // Audience tag. Aud string `json:"aud"` // When set to `true`, users skip the identity provider selection step during // login. You must specify only one identity provider in allowed_idps. AutoRedirectToIdentity bool `json:"auto_redirect_to_identity"` CorsHeaders CorsHeaders `json:"cors_headers"` CreatedAt time.Time `json:"created_at" format:"date-time"` // The custom error message shown to a user when they are denied access to the // application. CustomDenyMessage string `json:"custom_deny_message"` // The custom URL a user is redirected to when they are denied access to the // application when failing identity-based rules. CustomDenyURL string `json:"custom_deny_url"` // The custom URL a user is redirected to when they are denied access to the // application when failing non-identity rules. CustomNonIdentityDenyURL string `json:"custom_non_identity_deny_url"` // The custom pages that will be displayed when applicable for this application CustomPages []CustomPagesh `json:"custom_pages"` // Enables the binding cookie, which increases security against compromised // authorization tokens and CSRF attacks. EnableBindingCookie bool `json:"enable_binding_cookie"` // Enables the HttpOnly cookie attribute, which increases security against XSS // attacks. HTTPOnlyCookieAttribute bool `json:"http_only_cookie_attribute"` // The image URL for the logo shown in the App Launcher dashboard. LogoURL string `json:"logo_url"` // The name of the application. Name string `json:"name"` // Enables cookie paths to scope an application's JWT to the application path. If // disabled, the JWT will scope to the hostname by default PathCookieAttribute bool `json:"path_cookie_attribute"` // Sets the SameSite cookie setting, which provides increased security against CSRF // attacks. SameSiteCookieAttribute string `json:"same_site_cookie_attribute"` // List of domains that Access will secure. SelfHostedDomains []SelfHostedDomainsh `json:"self_hosted_domains"` // Returns a 401 status code when the request is blocked by a Service Auth policy. ServiceAuth401Redirect bool `json:"service_auth_401_redirect"` // The amount of time that tokens issued for this application will be valid. Must // be in the format `300ms` or `2h45m`. Valid time units are: ns, us (or µs), ms, // s, m, h. SessionDuration string `json:"session_duration"` // Enables automatic authentication through cloudflared. SkipInterstitial bool `json:"skip_interstitial"` // The tags you want assigned to an application. Tags are used to filter // applications in the App Launcher dashboard. Tags []string `json:"tags"` UpdatedAt time.Time `json:"updated_at" format:"date-time"` JSON applicationBrowserVncApplicationJSON `json:"-"` }
func (*ApplicationBrowserVncApplication) UnmarshalJSON ¶
func (r *ApplicationBrowserVncApplication) UnmarshalJSON(data []byte) (err error)
type ApplicationBrowserVncApplicationParam ¶
type ApplicationBrowserVncApplicationParam struct { // The primary hostname and path that Access will secure. If the app is visible in // the App Launcher dashboard, this is the domain that will be displayed. Domain param.Field[string] `json:"domain,required"` // The application type. Type param.Field[string] `json:"type,required"` // When set to true, users can authenticate to this application using their WARP // session. When set to false this application will always require direct IdP // authentication. This setting always overrides the organization setting for WARP // authentication. AllowAuthenticateViaWARP param.Field[bool] `json:"allow_authenticate_via_warp"` // The identity providers your users can select when connecting to this // application. Defaults to all IdPs configured in your account. AllowedIDPs param.Field[[]AllowedIdpshParam] `json:"allowed_idps"` // Displays the application in the App Launcher. AppLauncherVisible param.Field[bool] `json:"app_launcher_visible"` // When set to `true`, users skip the identity provider selection step during // login. You must specify only one identity provider in allowed_idps. AutoRedirectToIdentity param.Field[bool] `json:"auto_redirect_to_identity"` CorsHeaders param.Field[CorsHeadersParam] `json:"cors_headers"` // The custom error message shown to a user when they are denied access to the // application. CustomDenyMessage param.Field[string] `json:"custom_deny_message"` // The custom URL a user is redirected to when they are denied access to the // application when failing identity-based rules. CustomDenyURL param.Field[string] `json:"custom_deny_url"` // The custom URL a user is redirected to when they are denied access to the // application when failing non-identity rules. CustomNonIdentityDenyURL param.Field[string] `json:"custom_non_identity_deny_url"` // The custom pages that will be displayed when applicable for this application CustomPages param.Field[[]CustomPageshParam] `json:"custom_pages"` // Enables the binding cookie, which increases security against compromised // authorization tokens and CSRF attacks. EnableBindingCookie param.Field[bool] `json:"enable_binding_cookie"` // Enables the HttpOnly cookie attribute, which increases security against XSS // attacks. HTTPOnlyCookieAttribute param.Field[bool] `json:"http_only_cookie_attribute"` // The image URL for the logo shown in the App Launcher dashboard. LogoURL param.Field[string] `json:"logo_url"` // The name of the application. Name param.Field[string] `json:"name"` // Enables cookie paths to scope an application's JWT to the application path. If // disabled, the JWT will scope to the hostname by default PathCookieAttribute param.Field[bool] `json:"path_cookie_attribute"` // Sets the SameSite cookie setting, which provides increased security against CSRF // attacks. SameSiteCookieAttribute param.Field[string] `json:"same_site_cookie_attribute"` // List of domains that Access will secure. SelfHostedDomains param.Field[[]SelfHostedDomainshParam] `json:"self_hosted_domains"` // Returns a 401 status code when the request is blocked by a Service Auth policy. ServiceAuth401Redirect param.Field[bool] `json:"service_auth_401_redirect"` // The amount of time that tokens issued for this application will be valid. Must // be in the format `300ms` or `2h45m`. Valid time units are: ns, us (or µs), ms, // s, m, h. SessionDuration param.Field[string] `json:"session_duration"` // Enables automatic authentication through cloudflared. SkipInterstitial param.Field[bool] `json:"skip_interstitial"` // The tags you want assigned to an application. Tags are used to filter // applications in the App Launcher dashboard. Tags param.Field[[]string] `json:"tags"` }
func (ApplicationBrowserVncApplicationParam) MarshalJSON ¶
func (r ApplicationBrowserVncApplicationParam) MarshalJSON() (data []byte, err error)
type ApplicationDeviceEnrollmentPermissionsApplication ¶
type ApplicationDeviceEnrollmentPermissionsApplication struct { // The application type. Type ApplicationDeviceEnrollmentPermissionsApplicationType `json:"type,required"` // UUID ID string `json:"id"` // The identity providers your users can select when connecting to this // application. Defaults to all IdPs configured in your account. AllowedIDPs []AllowedIdpsh `json:"allowed_idps"` // Audience tag. Aud string `json:"aud"` // When set to `true`, users skip the identity provider selection step during // login. You must specify only one identity provider in allowed_idps. AutoRedirectToIdentity bool `json:"auto_redirect_to_identity"` CreatedAt time.Time `json:"created_at" format:"date-time"` // The primary hostname and path that Access will secure. If the app is visible in // the App Launcher dashboard, this is the domain that will be displayed. Domain string `json:"domain"` // The name of the application. Name string `json:"name"` // The amount of time that tokens issued for this application will be valid. Must // be in the format `300ms` or `2h45m`. Valid time units are: ns, us (or µs), ms, // s, m, h. SessionDuration string `json:"session_duration"` UpdatedAt time.Time `json:"updated_at" format:"date-time"` JSON applicationDeviceEnrollmentPermissionsApplicationJSON `json:"-"` }
func (*ApplicationDeviceEnrollmentPermissionsApplication) UnmarshalJSON ¶
func (r *ApplicationDeviceEnrollmentPermissionsApplication) UnmarshalJSON(data []byte) (err error)
type ApplicationDeviceEnrollmentPermissionsApplicationParam ¶
type ApplicationDeviceEnrollmentPermissionsApplicationParam struct { // The application type. Type param.Field[ApplicationDeviceEnrollmentPermissionsApplicationType] `json:"type,required"` // The identity providers your users can select when connecting to this // application. Defaults to all IdPs configured in your account. AllowedIDPs param.Field[[]AllowedIdpshParam] `json:"allowed_idps"` // When set to `true`, users skip the identity provider selection step during // login. You must specify only one identity provider in allowed_idps. AutoRedirectToIdentity param.Field[bool] `json:"auto_redirect_to_identity"` // The amount of time that tokens issued for this application will be valid. Must // be in the format `300ms` or `2h45m`. Valid time units are: ns, us (or µs), ms, // s, m, h. SessionDuration param.Field[string] `json:"session_duration"` }
func (ApplicationDeviceEnrollmentPermissionsApplicationParam) MarshalJSON ¶
func (r ApplicationDeviceEnrollmentPermissionsApplicationParam) MarshalJSON() (data []byte, err error)
type ApplicationDeviceEnrollmentPermissionsApplicationType ¶
type ApplicationDeviceEnrollmentPermissionsApplicationType string
The application type.
const ( ApplicationDeviceEnrollmentPermissionsApplicationTypeSelfHosted ApplicationDeviceEnrollmentPermissionsApplicationType = "self_hosted" ApplicationDeviceEnrollmentPermissionsApplicationTypeSaas ApplicationDeviceEnrollmentPermissionsApplicationType = "saas" ApplicationDeviceEnrollmentPermissionsApplicationTypeSSH ApplicationDeviceEnrollmentPermissionsApplicationType = "ssh" ApplicationDeviceEnrollmentPermissionsApplicationTypeVnc ApplicationDeviceEnrollmentPermissionsApplicationType = "vnc" ApplicationDeviceEnrollmentPermissionsApplicationTypeAppLauncher ApplicationDeviceEnrollmentPermissionsApplicationType = "app_launcher" ApplicationDeviceEnrollmentPermissionsApplicationTypeWARP ApplicationDeviceEnrollmentPermissionsApplicationType = "warp" ApplicationDeviceEnrollmentPermissionsApplicationTypeBiso ApplicationDeviceEnrollmentPermissionsApplicationType = "biso" ApplicationDeviceEnrollmentPermissionsApplicationTypeBookmark ApplicationDeviceEnrollmentPermissionsApplicationType = "bookmark" ApplicationDeviceEnrollmentPermissionsApplicationTypeDashSSO ApplicationDeviceEnrollmentPermissionsApplicationType = "dash_sso" )
func (ApplicationDeviceEnrollmentPermissionsApplicationType) IsKnown ¶
func (r ApplicationDeviceEnrollmentPermissionsApplicationType) IsKnown() bool
type ApplicationParam ¶
type ApplicationParam struct { // When set to true, users can authenticate to this application using their WARP // session. When set to false this application will always require direct IdP // authentication. This setting always overrides the organization setting for WARP // authentication. AllowAuthenticateViaWARP param.Field[bool] `json:"allow_authenticate_via_warp"` AllowedIDPs param.Field[interface{}] `json:"allowed_idps,required"` // Displays the application in the App Launcher. AppLauncherVisible param.Field[bool] `json:"app_launcher_visible"` // When set to `true`, users skip the identity provider selection step during // login. You must specify only one identity provider in allowed_idps. AutoRedirectToIdentity param.Field[bool] `json:"auto_redirect_to_identity"` CorsHeaders param.Field[CorsHeadersParam] `json:"cors_headers"` // The custom error message shown to a user when they are denied access to the // application. CustomDenyMessage param.Field[string] `json:"custom_deny_message"` // The custom URL a user is redirected to when they are denied access to the // application when failing identity-based rules. CustomDenyURL param.Field[string] `json:"custom_deny_url"` // The custom URL a user is redirected to when they are denied access to the // application when failing non-identity rules. CustomNonIdentityDenyURL param.Field[string] `json:"custom_non_identity_deny_url"` CustomPages param.Field[interface{}] `json:"custom_pages,required"` // The primary hostname and path that Access will secure. If the app is visible in // the App Launcher dashboard, this is the domain that will be displayed. Domain param.Field[string] `json:"domain"` // Enables the binding cookie, which increases security against compromised // authorization tokens and CSRF attacks. EnableBindingCookie param.Field[bool] `json:"enable_binding_cookie"` // Enables the HttpOnly cookie attribute, which increases security against XSS // attacks. HTTPOnlyCookieAttribute param.Field[bool] `json:"http_only_cookie_attribute"` // The image URL for the logo shown in the App Launcher dashboard. LogoURL param.Field[string] `json:"logo_url"` // The name of the application. Name param.Field[string] `json:"name"` // Enables cookie paths to scope an application's JWT to the application path. If // disabled, the JWT will scope to the hostname by default PathCookieAttribute param.Field[bool] `json:"path_cookie_attribute"` // Sets the SameSite cookie setting, which provides increased security against CSRF // attacks. SameSiteCookieAttribute param.Field[string] `json:"same_site_cookie_attribute"` SelfHostedDomains param.Field[interface{}] `json:"self_hosted_domains,required"` // Returns a 401 status code when the request is blocked by a Service Auth policy. ServiceAuth401Redirect param.Field[bool] `json:"service_auth_401_redirect"` // The amount of time that tokens issued for this application will be valid. Must // be in the format `300ms` or `2h45m`. Valid time units are: ns, us (or µs), ms, // s, m, h. SessionDuration param.Field[string] `json:"session_duration"` // Enables automatic authentication through cloudflared. SkipInterstitial param.Field[bool] `json:"skip_interstitial"` Tags param.Field[interface{}] `json:"tags,required"` // The application type. Type param.Field[string] `json:"type"` SaasApp param.Field[interface{}] `json:"saas_app,required"` }
func (ApplicationParam) MarshalJSON ¶
func (r ApplicationParam) MarshalJSON() (data []byte, err error)
type ApplicationSaaSApplication ¶
type ApplicationSaaSApplication struct { // UUID ID string `json:"id"` // The identity providers your users can select when connecting to this // application. Defaults to all IdPs configured in your account. AllowedIDPs []AllowedIdpsh `json:"allowed_idps"` // Displays the application in the App Launcher. AppLauncherVisible bool `json:"app_launcher_visible"` // Audience tag. Aud string `json:"aud"` // When set to `true`, users skip the identity provider selection step during // login. You must specify only one identity provider in allowed_idps. AutoRedirectToIdentity bool `json:"auto_redirect_to_identity"` CreatedAt time.Time `json:"created_at" format:"date-time"` // The custom pages that will be displayed when applicable for this application CustomPages []CustomPagesh `json:"custom_pages"` // The image URL for the logo shown in the App Launcher dashboard. LogoURL string `json:"logo_url"` // The name of the application. Name string `json:"name"` SaasApp ApplicationSaaSApplicationSaasApp `json:"saas_app"` // The tags you want assigned to an application. Tags are used to filter // applications in the App Launcher dashboard. Tags []string `json:"tags"` // The application type. Type string `json:"type"` UpdatedAt time.Time `json:"updated_at" format:"date-time"` JSON applicationSaaSApplicationJSON `json:"-"` }
func (*ApplicationSaaSApplication) UnmarshalJSON ¶
func (r *ApplicationSaaSApplication) UnmarshalJSON(data []byte) (err error)
type ApplicationSaaSApplicationParam ¶
type ApplicationSaaSApplicationParam struct { // The identity providers your users can select when connecting to this // application. Defaults to all IdPs configured in your account. AllowedIDPs param.Field[[]AllowedIdpshParam] `json:"allowed_idps"` // Displays the application in the App Launcher. AppLauncherVisible param.Field[bool] `json:"app_launcher_visible"` // When set to `true`, users skip the identity provider selection step during // login. You must specify only one identity provider in allowed_idps. AutoRedirectToIdentity param.Field[bool] `json:"auto_redirect_to_identity"` // The custom pages that will be displayed when applicable for this application CustomPages param.Field[[]CustomPageshParam] `json:"custom_pages"` // The image URL for the logo shown in the App Launcher dashboard. LogoURL param.Field[string] `json:"logo_url"` // The name of the application. Name param.Field[string] `json:"name"` SaasApp param.Field[ApplicationSaaSApplicationSaasAppUnionParam] `json:"saas_app"` // The tags you want assigned to an application. Tags are used to filter // applications in the App Launcher dashboard. Tags param.Field[[]string] `json:"tags"` // The application type. Type param.Field[string] `json:"type"` }
func (ApplicationSaaSApplicationParam) MarshalJSON ¶
func (r ApplicationSaaSApplicationParam) MarshalJSON() (data []byte, err error)
type ApplicationSaaSApplicationSaasApp ¶
type ApplicationSaaSApplicationSaasApp struct { // Optional identifier indicating the authentication protocol used for the saas // app. Required for OIDC. Default if unset is "saml" AuthType ApplicationSaaSApplicationSaasAppAuthType `json:"auth_type"` // The service provider's endpoint that is responsible for receiving and parsing a // SAML assertion. ConsumerServiceURL string `json:"consumer_service_url"` CreatedAt time.Time `json:"created_at" format:"date-time"` CustomAttributes interface{} `json:"custom_attributes,required"` // The URL that the user will be redirected to after a successful login for IDP // initiated logins. DefaultRelayState string `json:"default_relay_state"` // The unique identifier for your SaaS application. IDPEntityID string `json:"idp_entity_id"` // The format of the name identifier sent to the SaaS application. NameIDFormat SaasAppNameIDFormat `json:"name_id_format"` // A [JSONata](https://jsonata.org/) expression that transforms an application's // user identities into a NameID value for its SAML assertion. This expression // should evaluate to a singular string. The output of this expression can override // the `name_id_format` setting. NameIDTransformJsonata string `json:"name_id_transform_jsonata"` // The Access public certificate that will be used to verify your identity. PublicKey string `json:"public_key"` // A [JSONata] (https://jsonata.org/) expression that transforms an application's // user identities into attribute assertions in the SAML response. The expression // can transform id, email, name, and groups values. It can also transform fields // listed in the saml_attributes or oidc_fields of the identity provider used to // authenticate. The output of this expression must be a JSON object. SAMLAttributeTransformJsonata string `json:"saml_attribute_transform_jsonata"` // A globally unique name for an identity or service provider. SpEntityID string `json:"sp_entity_id"` // The endpoint where your SaaS application will send login requests. SSOEndpoint string `json:"sso_endpoint"` UpdatedAt time.Time `json:"updated_at" format:"date-time"` // The URL where this applications tile redirects users AppLauncherURL string `json:"app_launcher_url"` // The application client id ClientID string `json:"client_id"` // The application client secret, only returned on POST request. ClientSecret string `json:"client_secret"` GrantTypes interface{} `json:"grant_types,required"` // A regex to filter Cloudflare groups returned in ID token and userinfo endpoint GroupFilterRegex string `json:"group_filter_regex"` RedirectURIs interface{} `json:"redirect_uris,required"` Scopes interface{} `json:"scopes,required"` JSON applicationSaaSApplicationSaasAppJSON `json:"-"` // contains filtered or unexported fields }
func (ApplicationSaaSApplicationSaasApp) AsUnion ¶
func (r ApplicationSaaSApplicationSaasApp) AsUnion() ApplicationSaaSApplicationSaasAppUnion
func (*ApplicationSaaSApplicationSaasApp) UnmarshalJSON ¶
func (r *ApplicationSaaSApplicationSaasApp) UnmarshalJSON(data []byte) (err error)
type ApplicationSaaSApplicationSaasAppAccessOIDCSaasApp ¶
type ApplicationSaaSApplicationSaasAppAccessOIDCSaasApp struct { // The URL where this applications tile redirects users AppLauncherURL string `json:"app_launcher_url"` // Identifier of the authentication protocol used for the saas app. Required for // OIDC. AuthType ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppAuthType `json:"auth_type"` // The application client id ClientID string `json:"client_id"` // The application client secret, only returned on POST request. ClientSecret string `json:"client_secret"` CreatedAt time.Time `json:"created_at" format:"date-time"` // The OIDC flows supported by this application GrantTypes []ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppGrantType `json:"grant_types"` // A regex to filter Cloudflare groups returned in ID token and userinfo endpoint GroupFilterRegex string `json:"group_filter_regex"` // The Access public certificate that will be used to verify your identity. PublicKey string `json:"public_key"` // The permitted URL's for Cloudflare to return Authorization codes and Access/ID // tokens RedirectURIs []string `json:"redirect_uris"` // Define the user information shared with access Scopes []ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppScope `json:"scopes"` UpdatedAt time.Time `json:"updated_at" format:"date-time"` JSON applicationSaaSApplicationSaasAppAccessOIDCSaasAppJSON `json:"-"` }
func (*ApplicationSaaSApplicationSaasAppAccessOIDCSaasApp) UnmarshalJSON ¶
func (r *ApplicationSaaSApplicationSaasAppAccessOIDCSaasApp) UnmarshalJSON(data []byte) (err error)
type ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppAuthType ¶
type ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppAuthType string
Identifier of the authentication protocol used for the saas app. Required for OIDC.
const ( ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppAuthTypeSAML ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppAuthType = "saml" ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppAuthTypeOIDC ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppAuthType = "oidc" )
func (ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppAuthType) IsKnown ¶
func (r ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppAuthType) IsKnown() bool
type ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppGrantType ¶
type ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppGrantType string
const ( ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppGrantTypeAuthorizationCode ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppGrantType = "authorization_code" ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppGrantTypeAuthorizationCodeWithPkce ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppGrantType = "authorization_code_with_pkce" )
func (ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppGrantType) IsKnown ¶
func (r ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppGrantType) IsKnown() bool
type ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppParam ¶
type ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppParam struct { // The URL where this applications tile redirects users AppLauncherURL param.Field[string] `json:"app_launcher_url"` // Identifier of the authentication protocol used for the saas app. Required for // OIDC. AuthType param.Field[ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppAuthType] `json:"auth_type"` // The application client id ClientID param.Field[string] `json:"client_id"` // The application client secret, only returned on POST request. ClientSecret param.Field[string] `json:"client_secret"` // The OIDC flows supported by this application GrantTypes param.Field[[]ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppGrantType] `json:"grant_types"` // A regex to filter Cloudflare groups returned in ID token and userinfo endpoint GroupFilterRegex param.Field[string] `json:"group_filter_regex"` // The Access public certificate that will be used to verify your identity. PublicKey param.Field[string] `json:"public_key"` // The permitted URL's for Cloudflare to return Authorization codes and Access/ID // tokens RedirectURIs param.Field[[]string] `json:"redirect_uris"` // Define the user information shared with access Scopes param.Field[[]ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppScope] `json:"scopes"` }
func (ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppParam) MarshalJSON ¶
func (r ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppParam) MarshalJSON() (data []byte, err error)
type ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppScope ¶
type ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppScope string
const ( ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppScopeOpenid ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppScope = "openid" ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppScopeGroups ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppScope = "groups" ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppScopeEmail ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppScope = "email" ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppScopeProfile ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppScope = "profile" )
func (ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppScope) IsKnown ¶
func (r ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppScope) IsKnown() bool
type ApplicationSaaSApplicationSaasAppAuthType ¶
type ApplicationSaaSApplicationSaasAppAuthType string
Optional identifier indicating the authentication protocol used for the saas app. Required for OIDC. Default if unset is "saml"
const ( ApplicationSaaSApplicationSaasAppAuthTypeSAML ApplicationSaaSApplicationSaasAppAuthType = "saml" ApplicationSaaSApplicationSaasAppAuthTypeOIDC ApplicationSaaSApplicationSaasAppAuthType = "oidc" )
func (ApplicationSaaSApplicationSaasAppAuthType) IsKnown ¶
func (r ApplicationSaaSApplicationSaasAppAuthType) IsKnown() bool
type ApplicationSaaSApplicationSaasAppParam ¶
type ApplicationSaaSApplicationSaasAppParam struct { // Optional identifier indicating the authentication protocol used for the saas // app. Required for OIDC. Default if unset is "saml" AuthType param.Field[ApplicationSaaSApplicationSaasAppAuthType] `json:"auth_type"` // The service provider's endpoint that is responsible for receiving and parsing a // SAML assertion. ConsumerServiceURL param.Field[string] `json:"consumer_service_url"` CustomAttributes param.Field[interface{}] `json:"custom_attributes,required"` // The URL that the user will be redirected to after a successful login for IDP // initiated logins. DefaultRelayState param.Field[string] `json:"default_relay_state"` // The unique identifier for your SaaS application. IDPEntityID param.Field[string] `json:"idp_entity_id"` // The format of the name identifier sent to the SaaS application. NameIDFormat param.Field[SaasAppNameIDFormat] `json:"name_id_format"` // A [JSONata](https://jsonata.org/) expression that transforms an application's // user identities into a NameID value for its SAML assertion. This expression // should evaluate to a singular string. The output of this expression can override // the `name_id_format` setting. NameIDTransformJsonata param.Field[string] `json:"name_id_transform_jsonata"` // The Access public certificate that will be used to verify your identity. PublicKey param.Field[string] `json:"public_key"` // A [JSONata] (https://jsonata.org/) expression that transforms an application's // user identities into attribute assertions in the SAML response. The expression // can transform id, email, name, and groups values. It can also transform fields // listed in the saml_attributes or oidc_fields of the identity provider used to // authenticate. The output of this expression must be a JSON object. SAMLAttributeTransformJsonata param.Field[string] `json:"saml_attribute_transform_jsonata"` // A globally unique name for an identity or service provider. SpEntityID param.Field[string] `json:"sp_entity_id"` // The endpoint where your SaaS application will send login requests. SSOEndpoint param.Field[string] `json:"sso_endpoint"` // The URL where this applications tile redirects users AppLauncherURL param.Field[string] `json:"app_launcher_url"` // The application client id ClientID param.Field[string] `json:"client_id"` // The application client secret, only returned on POST request. ClientSecret param.Field[string] `json:"client_secret"` GrantTypes param.Field[interface{}] `json:"grant_types,required"` // A regex to filter Cloudflare groups returned in ID token and userinfo endpoint GroupFilterRegex param.Field[string] `json:"group_filter_regex"` RedirectURIs param.Field[interface{}] `json:"redirect_uris,required"` Scopes param.Field[interface{}] `json:"scopes,required"` }
func (ApplicationSaaSApplicationSaasAppParam) MarshalJSON ¶
func (r ApplicationSaaSApplicationSaasAppParam) MarshalJSON() (data []byte, err error)
type ApplicationSaaSApplicationSaasAppUnion ¶
type ApplicationSaaSApplicationSaasAppUnion interface {
// contains filtered or unexported methods
}
Union satisfied by zero_trust.SAMLSaasApp or zero_trust.ApplicationSaaSApplicationSaasAppAccessOIDCSaasApp.
type ApplicationSaaSApplicationSaasAppUnionParam ¶
type ApplicationSaaSApplicationSaasAppUnionParam interface {
// contains filtered or unexported methods
}
Satisfied by zero_trust.SAMLSaasAppParam, zero_trust.ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppParam, ApplicationSaaSApplicationSaasAppParam.
type ApplicationSelfHostedApplication ¶
type ApplicationSelfHostedApplication struct { // The primary hostname and path that Access will secure. If the app is visible in // the App Launcher dashboard, this is the domain that will be displayed. Domain string `json:"domain,required"` // The application type. Type string `json:"type,required"` // UUID ID string `json:"id"` // When set to true, users can authenticate to this application using their WARP // session. When set to false this application will always require direct IdP // authentication. This setting always overrides the organization setting for WARP // authentication. AllowAuthenticateViaWARP bool `json:"allow_authenticate_via_warp"` // The identity providers your users can select when connecting to this // application. Defaults to all IdPs configured in your account. AllowedIDPs []AllowedIdpsh `json:"allowed_idps"` // Displays the application in the App Launcher. AppLauncherVisible bool `json:"app_launcher_visible"` // Audience tag. Aud string `json:"aud"` // When set to `true`, users skip the identity provider selection step during // login. You must specify only one identity provider in allowed_idps. AutoRedirectToIdentity bool `json:"auto_redirect_to_identity"` CorsHeaders CorsHeaders `json:"cors_headers"` CreatedAt time.Time `json:"created_at" format:"date-time"` // The custom error message shown to a user when they are denied access to the // application. CustomDenyMessage string `json:"custom_deny_message"` // The custom URL a user is redirected to when they are denied access to the // application when failing identity-based rules. CustomDenyURL string `json:"custom_deny_url"` // The custom URL a user is redirected to when they are denied access to the // application when failing non-identity rules. CustomNonIdentityDenyURL string `json:"custom_non_identity_deny_url"` // The custom pages that will be displayed when applicable for this application CustomPages []CustomPagesh `json:"custom_pages"` // Enables the binding cookie, which increases security against compromised // authorization tokens and CSRF attacks. EnableBindingCookie bool `json:"enable_binding_cookie"` // Enables the HttpOnly cookie attribute, which increases security against XSS // attacks. HTTPOnlyCookieAttribute bool `json:"http_only_cookie_attribute"` // The image URL for the logo shown in the App Launcher dashboard. LogoURL string `json:"logo_url"` // The name of the application. Name string `json:"name"` // Enables cookie paths to scope an application's JWT to the application path. If // disabled, the JWT will scope to the hostname by default PathCookieAttribute bool `json:"path_cookie_attribute"` // Sets the SameSite cookie setting, which provides increased security against CSRF // attacks. SameSiteCookieAttribute string `json:"same_site_cookie_attribute"` // List of domains that Access will secure. SelfHostedDomains []SelfHostedDomainsh `json:"self_hosted_domains"` // Returns a 401 status code when the request is blocked by a Service Auth policy. ServiceAuth401Redirect bool `json:"service_auth_401_redirect"` // The amount of time that tokens issued for this application will be valid. Must // be in the format `300ms` or `2h45m`. Valid time units are: ns, us (or µs), ms, // s, m, h. SessionDuration string `json:"session_duration"` // Enables automatic authentication through cloudflared. SkipInterstitial bool `json:"skip_interstitial"` // The tags you want assigned to an application. Tags are used to filter // applications in the App Launcher dashboard. Tags []string `json:"tags"` UpdatedAt time.Time `json:"updated_at" format:"date-time"` JSON applicationSelfHostedApplicationJSON `json:"-"` }
func (*ApplicationSelfHostedApplication) UnmarshalJSON ¶
func (r *ApplicationSelfHostedApplication) UnmarshalJSON(data []byte) (err error)
type ApplicationSelfHostedApplicationParam ¶
type ApplicationSelfHostedApplicationParam struct { // The primary hostname and path that Access will secure. If the app is visible in // the App Launcher dashboard, this is the domain that will be displayed. Domain param.Field[string] `json:"domain,required"` // The application type. Type param.Field[string] `json:"type,required"` // When set to true, users can authenticate to this application using their WARP // session. When set to false this application will always require direct IdP // authentication. This setting always overrides the organization setting for WARP // authentication. AllowAuthenticateViaWARP param.Field[bool] `json:"allow_authenticate_via_warp"` // The identity providers your users can select when connecting to this // application. Defaults to all IdPs configured in your account. AllowedIDPs param.Field[[]AllowedIdpshParam] `json:"allowed_idps"` // Displays the application in the App Launcher. AppLauncherVisible param.Field[bool] `json:"app_launcher_visible"` // When set to `true`, users skip the identity provider selection step during // login. You must specify only one identity provider in allowed_idps. AutoRedirectToIdentity param.Field[bool] `json:"auto_redirect_to_identity"` CorsHeaders param.Field[CorsHeadersParam] `json:"cors_headers"` // The custom error message shown to a user when they are denied access to the // application. CustomDenyMessage param.Field[string] `json:"custom_deny_message"` // The custom URL a user is redirected to when they are denied access to the // application when failing identity-based rules. CustomDenyURL param.Field[string] `json:"custom_deny_url"` // The custom URL a user is redirected to when they are denied access to the // application when failing non-identity rules. CustomNonIdentityDenyURL param.Field[string] `json:"custom_non_identity_deny_url"` // The custom pages that will be displayed when applicable for this application CustomPages param.Field[[]CustomPageshParam] `json:"custom_pages"` // Enables the binding cookie, which increases security against compromised // authorization tokens and CSRF attacks. EnableBindingCookie param.Field[bool] `json:"enable_binding_cookie"` // Enables the HttpOnly cookie attribute, which increases security against XSS // attacks. HTTPOnlyCookieAttribute param.Field[bool] `json:"http_only_cookie_attribute"` // The image URL for the logo shown in the App Launcher dashboard. LogoURL param.Field[string] `json:"logo_url"` // The name of the application. Name param.Field[string] `json:"name"` // Enables cookie paths to scope an application's JWT to the application path. If // disabled, the JWT will scope to the hostname by default PathCookieAttribute param.Field[bool] `json:"path_cookie_attribute"` // Sets the SameSite cookie setting, which provides increased security against CSRF // attacks. SameSiteCookieAttribute param.Field[string] `json:"same_site_cookie_attribute"` // List of domains that Access will secure. SelfHostedDomains param.Field[[]SelfHostedDomainshParam] `json:"self_hosted_domains"` // Returns a 401 status code when the request is blocked by a Service Auth policy. ServiceAuth401Redirect param.Field[bool] `json:"service_auth_401_redirect"` // The amount of time that tokens issued for this application will be valid. Must // be in the format `300ms` or `2h45m`. Valid time units are: ns, us (or µs), ms, // s, m, h. SessionDuration param.Field[string] `json:"session_duration"` // Enables automatic authentication through cloudflared. SkipInterstitial param.Field[bool] `json:"skip_interstitial"` // The tags you want assigned to an application. Tags are used to filter // applications in the App Launcher dashboard. Tags param.Field[[]string] `json:"tags"` }
func (ApplicationSelfHostedApplicationParam) MarshalJSON ¶
func (r ApplicationSelfHostedApplicationParam) MarshalJSON() (data []byte, err error)
type ApplicationUnion ¶
type ApplicationUnion interface {
// contains filtered or unexported methods
}
Union satisfied by zero_trust.ApplicationSelfHostedApplication, zero_trust.ApplicationSaaSApplication, zero_trust.ApplicationBrowserSSHApplication, zero_trust.ApplicationBrowserVncApplication, zero_trust.ApplicationAppLauncherApplication, zero_trust.ApplicationDeviceEnrollmentPermissionsApplication, zero_trust.ApplicationBrowserIsolationPermissionsApplication or zero_trust.ApplicationBookmarkApplication.
type ApplicationUnionParam ¶
type ApplicationUnionParam interface {
// contains filtered or unexported methods
}
Satisfied by zero_trust.ApplicationSelfHostedApplicationParam, zero_trust.ApplicationSaaSApplicationParam, zero_trust.ApplicationBrowserSSHApplicationParam, zero_trust.ApplicationBrowserVncApplicationParam, zero_trust.ApplicationAppLauncherApplicationParam, zero_trust.ApplicationDeviceEnrollmentPermissionsApplicationParam, zero_trust.ApplicationBrowserIsolationPermissionsApplicationParam, zero_trust.ApplicationBookmarkApplicationParam, ApplicationParam.
type ApprovalGroup ¶
type ApprovalGroup struct { // The number of approvals needed to obtain access. ApprovalsNeeded float64 `json:"approvals_needed,required"` // A list of emails that can approve the access request. EmailAddresses []string `json:"email_addresses"` // The UUID of an re-usable email list. EmailListUUID string `json:"email_list_uuid"` JSON approvalGroupJSON `json:"-"` }
A group of email addresses that can approve a temporary authentication request.
func (*ApprovalGroup) UnmarshalJSON ¶
func (r *ApprovalGroup) UnmarshalJSON(data []byte) (err error)
type ApprovalGroupParam ¶
type ApprovalGroupParam struct { // The number of approvals needed to obtain access. ApprovalsNeeded param.Field[float64] `json:"approvals_needed,required"` // A list of emails that can approve the access request. EmailAddresses param.Field[[]string] `json:"email_addresses"` // The UUID of an re-usable email list. EmailListUUID param.Field[string] `json:"email_list_uuid"` }
A group of email addresses that can approve a temporary authentication request.
func (ApprovalGroupParam) MarshalJSON ¶
func (r ApprovalGroupParam) MarshalJSON() (data []byte, err error)
type AssociatedHostnames ¶
type AssociatedHostnames = string
type AssociatedHostnamesParam ¶
type AssociatedHostnamesParam = string
type AuditLogAction ¶
type AuditLogAction = shared.AuditLogAction
This is an alias to an internal type.
type AuditLogActor ¶
type AuditLogActor = shared.AuditLogActor
This is an alias to an internal type.
type AuditLogActorType ¶
type AuditLogActorType = shared.AuditLogActorType
The type of actor, whether a User, Cloudflare Admin, or an Automated System.
This is an alias to an internal type.
type AuditLogOwner ¶
type AuditLogOwner = shared.AuditLogOwner
This is an alias to an internal type.
type AuditLogResource ¶
type AuditLogResource = shared.AuditLogResource
This is an alias to an internal type.
type AuthenticationMethodRule ¶
type AuthenticationMethodRule struct { AuthMethod AuthenticationMethodRuleAuthMethod `json:"auth_method,required"` JSON authenticationMethodRuleJSON `json:"-"` }
Enforce different MFA options
func (*AuthenticationMethodRule) UnmarshalJSON ¶
func (r *AuthenticationMethodRule) UnmarshalJSON(data []byte) (err error)
type AuthenticationMethodRuleAuthMethod ¶
type AuthenticationMethodRuleAuthMethod struct { // The type of authentication method https://datatracker.ietf.org/doc/html/rfc8176. AuthMethod string `json:"auth_method,required"` JSON authenticationMethodRuleAuthMethodJSON `json:"-"` }
func (*AuthenticationMethodRuleAuthMethod) UnmarshalJSON ¶
func (r *AuthenticationMethodRuleAuthMethod) UnmarshalJSON(data []byte) (err error)
type AuthenticationMethodRuleAuthMethodParam ¶
type AuthenticationMethodRuleAuthMethodParam struct { // The type of authentication method https://datatracker.ietf.org/doc/html/rfc8176. AuthMethod param.Field[string] `json:"auth_method,required"` }
func (AuthenticationMethodRuleAuthMethodParam) MarshalJSON ¶
func (r AuthenticationMethodRuleAuthMethodParam) MarshalJSON() (data []byte, err error)
type AuthenticationMethodRuleParam ¶
type AuthenticationMethodRuleParam struct {
AuthMethod param.Field[AuthenticationMethodRuleAuthMethodParam] `json:"auth_method,required"`
}
Enforce different MFA options
func (AuthenticationMethodRuleParam) MarshalJSON ¶
func (r AuthenticationMethodRuleParam) MarshalJSON() (data []byte, err error)
type AzureAD ¶
type AzureAD struct { // The configuration parameters for the identity provider. To view the required // parameters for a specific provider, refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Config AzureADConfig `json:"config,required"` // The name of the identity provider, shown to users on the login page. Name string `json:"name,required"` // The type of identity provider. To determine the value for a specific provider, // refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Type IdentityProviderType `json:"type,required"` // UUID ID string `json:"id"` // The configuration settings for enabling a System for Cross-Domain Identity // Management (SCIM) with the identity provider. ScimConfig ScimConfig `json:"scim_config"` JSON azureADJSON `json:"-"` }
func (*AzureAD) UnmarshalJSON ¶
type AzureADConfig ¶
type AzureADConfig struct { // Custom claims Claims []string `json:"claims"` // Your OAuth Client ID ClientID string `json:"client_id"` // Your OAuth Client Secret ClientSecret string `json:"client_secret"` // Should Cloudflare try to load authentication contexts from your account ConditionalAccessEnabled bool `json:"conditional_access_enabled"` // Your Azure directory uuid DirectoryID string `json:"directory_id"` // The claim name for email in the id_token response. EmailClaimName string `json:"email_claim_name"` // Indicates the type of user interaction that is required. prompt=login forces the // user to enter their credentials on that request, negating single-sign on. // prompt=none is the opposite. It ensures that the user isn't presented with any // interactive prompt. If the request can't be completed silently by using // single-sign on, the Microsoft identity platform returns an interaction_required // error. prompt=select_account interrupts single sign-on providing account // selection experience listing all the accounts either in session or any // remembered account or an option to choose to use a different account altogether. Prompt AzureADConfigPrompt `json:"prompt"` // Should Cloudflare try to load groups from your account SupportGroups bool `json:"support_groups"` JSON azureADConfigJSON `json:"-"` }
The configuration parameters for the identity provider. To view the required parameters for a specific provider, refer to our [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/).
func (*AzureADConfig) UnmarshalJSON ¶
func (r *AzureADConfig) UnmarshalJSON(data []byte) (err error)
type AzureADConfigParam ¶
type AzureADConfigParam struct { // Custom claims Claims param.Field[[]string] `json:"claims"` // Your OAuth Client ID ClientID param.Field[string] `json:"client_id"` // Your OAuth Client Secret ClientSecret param.Field[string] `json:"client_secret"` // Should Cloudflare try to load authentication contexts from your account ConditionalAccessEnabled param.Field[bool] `json:"conditional_access_enabled"` // Your Azure directory uuid DirectoryID param.Field[string] `json:"directory_id"` // The claim name for email in the id_token response. EmailClaimName param.Field[string] `json:"email_claim_name"` // Indicates the type of user interaction that is required. prompt=login forces the // user to enter their credentials on that request, negating single-sign on. // prompt=none is the opposite. It ensures that the user isn't presented with any // interactive prompt. If the request can't be completed silently by using // single-sign on, the Microsoft identity platform returns an interaction_required // error. prompt=select_account interrupts single sign-on providing account // selection experience listing all the accounts either in session or any // remembered account or an option to choose to use a different account altogether. Prompt param.Field[AzureADConfigPrompt] `json:"prompt"` // Should Cloudflare try to load groups from your account SupportGroups param.Field[bool] `json:"support_groups"` }
The configuration parameters for the identity provider. To view the required parameters for a specific provider, refer to our [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/).
func (AzureADConfigParam) MarshalJSON ¶
func (r AzureADConfigParam) MarshalJSON() (data []byte, err error)
type AzureADConfigPrompt ¶
type AzureADConfigPrompt string
Indicates the type of user interaction that is required. prompt=login forces the user to enter their credentials on that request, negating single-sign on. prompt=none is the opposite. It ensures that the user isn't presented with any interactive prompt. If the request can't be completed silently by using single-sign on, the Microsoft identity platform returns an interaction_required error. prompt=select_account interrupts single sign-on providing account selection experience listing all the accounts either in session or any remembered account or an option to choose to use a different account altogether.
const ( AzureADConfigPromptLogin AzureADConfigPrompt = "login" AzureADConfigPromptSelectAccount AzureADConfigPrompt = "select_account" AzureADConfigPromptNone AzureADConfigPrompt = "none" )
func (AzureADConfigPrompt) IsKnown ¶
func (r AzureADConfigPrompt) IsKnown() bool
type AzureADParam ¶
type AzureADParam struct { // The configuration parameters for the identity provider. To view the required // parameters for a specific provider, refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Config param.Field[AzureADConfigParam] `json:"config,required"` // The name of the identity provider, shown to users on the login page. Name param.Field[string] `json:"name,required"` // The type of identity provider. To determine the value for a specific provider, // refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Type param.Field[IdentityProviderType] `json:"type,required"` // The configuration settings for enabling a System for Cross-Domain Identity // Management (SCIM) with the identity provider. ScimConfig param.Field[ScimConfigParam] `json:"scim_config"` }
func (AzureADParam) MarshalJSON ¶
func (r AzureADParam) MarshalJSON() (data []byte, err error)
type AzureGroupRule ¶
type AzureGroupRule struct { AzureAD AzureGroupRuleAzureAD `json:"azureAD,required"` JSON azureGroupRuleJSON `json:"-"` }
Matches an Azure group. Requires an Azure identity provider.
func (*AzureGroupRule) UnmarshalJSON ¶
func (r *AzureGroupRule) UnmarshalJSON(data []byte) (err error)
type AzureGroupRuleAzureAD ¶
type AzureGroupRuleAzureAD struct { // The ID of an Azure group. ID string `json:"id,required"` // The ID of your Azure identity provider. ConnectionID string `json:"connection_id,required"` JSON azureGroupRuleAzureADJSON `json:"-"` }
func (*AzureGroupRuleAzureAD) UnmarshalJSON ¶
func (r *AzureGroupRuleAzureAD) UnmarshalJSON(data []byte) (err error)
type AzureGroupRuleAzureADParam ¶
type AzureGroupRuleAzureADParam struct { // The ID of an Azure group. ID param.Field[string] `json:"id,required"` // The ID of your Azure identity provider. ConnectionID param.Field[string] `json:"connection_id,required"` }
func (AzureGroupRuleAzureADParam) MarshalJSON ¶
func (r AzureGroupRuleAzureADParam) MarshalJSON() (data []byte, err error)
type AzureGroupRuleParam ¶
type AzureGroupRuleParam struct {
AzureAD param.Field[AzureGroupRuleAzureADParam] `json:"azureAD,required"`
}
Matches an Azure group. Requires an Azure identity provider.
func (AzureGroupRuleParam) MarshalJSON ¶
func (r AzureGroupRuleParam) MarshalJSON() (data []byte, err error)
type BlockPageSettings ¶
type BlockPageSettings struct { // Block page background color in #rrggbb format. BackgroundColor string `json:"background_color"` // Enable only cipher suites and TLS versions compliant with FIPS 140-2. Enabled bool `json:"enabled"` FooterText string `json:"footer_text"` // Block page header text. HeaderText string `json:"header_text"` // Full URL to the logo file. LogoPath string `json:"logo_path"` // Admin email for users to contact. MailtoAddress string `json:"mailto_address"` // Subject line for emails created from block page. MailtoSubject string `json:"mailto_subject"` // Block page title. Name string `json:"name"` // Suppress detailed info at the bottom of the block page. JSON blockPageSettingsJSON `json:"-"` }
Block page layout settings.
func (*BlockPageSettings) UnmarshalJSON ¶
func (r *BlockPageSettings) UnmarshalJSON(data []byte) (err error)
type BlockPageSettingsParam ¶
type BlockPageSettingsParam struct { // Block page background color in #rrggbb format. BackgroundColor param.Field[string] `json:"background_color"` // Enable only cipher suites and TLS versions compliant with FIPS 140-2. Enabled param.Field[bool] `json:"enabled"` FooterText param.Field[string] `json:"footer_text"` // Block page header text. HeaderText param.Field[string] `json:"header_text"` // Full URL to the logo file. LogoPath param.Field[string] `json:"logo_path"` // Admin email for users to contact. MailtoAddress param.Field[string] `json:"mailto_address"` // Subject line for emails created from block page. MailtoSubject param.Field[string] `json:"mailto_subject"` // Block page title. Name param.Field[string] `json:"name"` SuppressFooter param.Field[bool] `json:"suppress_footer"` }
Block page layout settings.
func (BlockPageSettingsParam) MarshalJSON ¶
func (r BlockPageSettingsParam) MarshalJSON() (data []byte, err error)
type BodyScanningSettings ¶
type BodyScanningSettings struct { // Set the inspection mode to either `deep` or `shallow`. InspectionMode string `json:"inspection_mode"` JSON bodyScanningSettingsJSON `json:"-"` }
DLP body scanning settings.
func (*BodyScanningSettings) UnmarshalJSON ¶
func (r *BodyScanningSettings) UnmarshalJSON(data []byte) (err error)
type BodyScanningSettingsParam ¶
type BodyScanningSettingsParam struct { // Set the inspection mode to either `deep` or `shallow`. InspectionMode param.Field[string] `json:"inspection_mode"` }
DLP body scanning settings.
func (BodyScanningSettingsParam) MarshalJSON ¶
func (r BodyScanningSettingsParam) MarshalJSON() (data []byte, err error)
type Bookmark ¶
type Bookmark struct { // The unique identifier for the Bookmark application. ID string `json:"id"` // Displays the application in the App Launcher. AppLauncherVisible bool `json:"app_launcher_visible"` CreatedAt time.Time `json:"created_at" format:"date-time"` // The domain of the Bookmark application. Domain string `json:"domain"` // The image URL for the logo shown in the App Launcher dashboard. LogoURL string `json:"logo_url"` // The name of the Bookmark application. Name string `json:"name"` UpdatedAt time.Time `json:"updated_at" format:"date-time"` JSON bookmarkJSON `json:"-"` }
func (*Bookmark) UnmarshalJSON ¶
type BrowserIsolationSettings ¶
type BrowserIsolationSettings struct { // Enable non-identity onramp support for Browser Isolation. NonIdentityEnabled bool `json:"non_identity_enabled"` // Enable Clientless Browser Isolation. URLBrowserIsolationEnabled bool `json:"url_browser_isolation_enabled"` JSON browserIsolationSettingsJSON `json:"-"` }
Browser isolation settings.
func (*BrowserIsolationSettings) UnmarshalJSON ¶
func (r *BrowserIsolationSettings) UnmarshalJSON(data []byte) (err error)
type BrowserIsolationSettingsParam ¶
type BrowserIsolationSettingsParam struct { // Enable non-identity onramp support for Browser Isolation. NonIdentityEnabled param.Field[bool] `json:"non_identity_enabled"` // Enable Clientless Browser Isolation. URLBrowserIsolationEnabled param.Field[bool] `json:"url_browser_isolation_enabled"` }
Browser isolation settings.
func (BrowserIsolationSettingsParam) MarshalJSON ¶
func (r BrowserIsolationSettingsParam) MarshalJSON() (data []byte, err error)
type CA ¶
type CA struct { // The ID of the CA. ID string `json:"id"` // The Application Audience (AUD) tag. Identifies the application associated with // the CA. Aud string `json:"aud"` // The public key to add to your SSH server configuration. PublicKey string `json:"public_key"` JSON caJSON `json:"-"` }
func (*CA) UnmarshalJSON ¶
type CarbonblackInput ¶
type CarbonblackInput = string
type CarbonblackInputParam ¶
type CarbonblackInputParam = string
type Category ¶
type Category struct { // The identifier for this category. There is only one category per ID. ID int64 `json:"id"` // True if the category is in beta and subject to change. Beta bool `json:"beta"` // Which account types are allowed to create policies based on this category. // `blocked` categories are blocked unconditionally for all accounts. // `removalPending` categories can be removed from policies but not added. // `noBlock` categories cannot be blocked. Class CategoryClass `json:"class"` // A short summary of domains in the category. Description string `json:"description"` // The name of the category. Name string `json:"name"` // All subcategories for this category. Subcategories []CategorySubcategory `json:"subcategories"` JSON categoryJSON `json:"-"` }
func (*Category) UnmarshalJSON ¶
type CategoryClass ¶
type CategoryClass string
Which account types are allowed to create policies based on this category. `blocked` categories are blocked unconditionally for all accounts. `removalPending` categories can be removed from policies but not added. `noBlock` categories cannot be blocked.
const ( CategoryClassFree CategoryClass = "free" CategoryClassPremium CategoryClass = "premium" CategoryClassBlocked CategoryClass = "blocked" CategoryClassRemovalPending CategoryClass = "removalPending" CategoryClassNoBlock CategoryClass = "noBlock" )
func (CategoryClass) IsKnown ¶
func (r CategoryClass) IsKnown() bool
type CategorySubcategoriesClass ¶
type CategorySubcategoriesClass string
Which account types are allowed to create policies based on this category. `blocked` categories are blocked unconditionally for all accounts. `removalPending` categories can be removed from policies but not added. `noBlock` categories cannot be blocked.
const ( CategorySubcategoriesClassFree CategorySubcategoriesClass = "free" CategorySubcategoriesClassPremium CategorySubcategoriesClass = "premium" CategorySubcategoriesClassBlocked CategorySubcategoriesClass = "blocked" CategorySubcategoriesClassRemovalPending CategorySubcategoriesClass = "removalPending" CategorySubcategoriesClassNoBlock CategorySubcategoriesClass = "noBlock" )
func (CategorySubcategoriesClass) IsKnown ¶
func (r CategorySubcategoriesClass) IsKnown() bool
type CategorySubcategory ¶
type CategorySubcategory struct { // The identifier for this category. There is only one category per ID. ID int64 `json:"id"` // True if the category is in beta and subject to change. Beta bool `json:"beta"` // Which account types are allowed to create policies based on this category. // `blocked` categories are blocked unconditionally for all accounts. // `removalPending` categories can be removed from policies but not added. // `noBlock` categories cannot be blocked. Class CategorySubcategoriesClass `json:"class"` // A short summary of domains in the category. Description string `json:"description"` // The name of the category. Name string `json:"name"` JSON categorySubcategoryJSON `json:"-"` }
func (*CategorySubcategory) UnmarshalJSON ¶
func (r *CategorySubcategory) UnmarshalJSON(data []byte) (err error)
type Certificate ¶
type Certificate struct { // The ID of the application that will use this certificate. ID string `json:"id"` // The hostnames of the applications that will use this certificate. AssociatedHostnames []AssociatedHostnames `json:"associated_hostnames"` CreatedAt time.Time `json:"created_at" format:"date-time"` ExpiresOn time.Time `json:"expires_on" format:"date-time"` // The MD5 fingerprint of the certificate. Fingerprint string `json:"fingerprint"` // The name of the certificate. Name string `json:"name"` UpdatedAt time.Time `json:"updated_at" format:"date-time"` JSON certificateJSON `json:"-"` }
func (*Certificate) UnmarshalJSON ¶
func (r *Certificate) UnmarshalJSON(data []byte) (err error)
type CertificateRule ¶
type CertificateRule struct { Certificate interface{} `json:"certificate,required"` JSON certificateRuleJSON `json:"-"` }
Matches any valid client certificate.
func (*CertificateRule) UnmarshalJSON ¶
func (r *CertificateRule) UnmarshalJSON(data []byte) (err error)
type CertificateRuleParam ¶
type CertificateRuleParam struct {
Certificate param.Field[interface{}] `json:"certificate,required"`
}
Matches any valid client certificate.
func (CertificateRuleParam) MarshalJSON ¶
func (r CertificateRuleParam) MarshalJSON() (data []byte, err error)
type CertificateSettings ¶
type CertificateSettings struct { // Request client certificates for this hostname in China. Can only be set to true // if this zone is china network enabled. ChinaNetwork bool `json:"china_network,required"` // Client Certificate Forwarding is a feature that takes the client cert provided // by the eyeball to the edge, and forwards it to the origin as a HTTP header to // allow logging on the origin. ClientCertificateForwarding bool `json:"client_certificate_forwarding,required"` // The hostname that these settings apply to. Hostname string `json:"hostname,required"` JSON certificateSettingsJSON `json:"-"` }
func (*CertificateSettings) UnmarshalJSON ¶
func (r *CertificateSettings) UnmarshalJSON(data []byte) (err error)
type CertificateSettingsParam ¶
type CertificateSettingsParam struct { // Request client certificates for this hostname in China. Can only be set to true // if this zone is china network enabled. ChinaNetwork param.Field[bool] `json:"china_network,required"` // Client Certificate Forwarding is a feature that takes the client cert provided // by the eyeball to the edge, and forwards it to the origin as a HTTP header to // allow logging on the origin. ClientCertificateForwarding param.Field[bool] `json:"client_certificate_forwarding,required"` // The hostname that these settings apply to. Hostname param.Field[string] `json:"hostname,required"` }
func (CertificateSettingsParam) MarshalJSON ¶
func (r CertificateSettingsParam) MarshalJSON() (data []byte, err error)
type Client ¶
type Client struct { // UUID of the Cloudflare Tunnel connection. ID string `json:"id"` // The cloudflared OS architecture used to establish this connection. Arch string `json:"arch"` // The version of the remote tunnel configuration. Used internally to sync // cloudflared with the Zero Trust dashboard. ConfigVersion int64 `json:"config_version"` // The Cloudflare Tunnel connections between your origin and Cloudflare's edge. Conns []ClientConn `json:"conns"` // Features enabled for the Cloudflare Tunnel. Features []string `json:"features"` // Timestamp of when the tunnel connection was started. RunAt time.Time `json:"run_at" format:"date-time"` // The cloudflared version used to establish this connection. Version string `json:"version"` JSON clientJSON `json:"-"` }
A client (typically cloudflared) that maintains connections to a Cloudflare data center.
func (*Client) UnmarshalJSON ¶
type ClientCertificateInput ¶
type ClientCertificateInput struct { // UUID of Cloudflare managed certificate. CertificateID string `json:"certificate_id,required"` // Common Name that is protected by the certificate Cn string `json:"cn,required"` JSON clientCertificateInputJSON `json:"-"` }
func (*ClientCertificateInput) UnmarshalJSON ¶
func (r *ClientCertificateInput) UnmarshalJSON(data []byte) (err error)
type ClientCertificateInputParam ¶
type ClientCertificateInputParam struct { // UUID of Cloudflare managed certificate. CertificateID param.Field[string] `json:"certificate_id,required"` // Common Name that is protected by the certificate Cn param.Field[string] `json:"cn,required"` }
func (ClientCertificateInputParam) MarshalJSON ¶
func (r ClientCertificateInputParam) MarshalJSON() (data []byte, err error)
type ClientConn ¶
type ClientConn struct { // UUID of the Cloudflare Tunnel connection. ID string `json:"id"` // UUID of the cloudflared instance. ClientID interface{} `json:"client_id"` // The cloudflared version used to establish this connection. ClientVersion string `json:"client_version"` // The Cloudflare data center used for this connection. ColoName string `json:"colo_name"` // Cloudflare continues to track connections for several minutes after they // disconnect. This is an optimization to improve latency and reliability of // reconnecting. If `true`, the connection has disconnected but is still being // tracked. If `false`, the connection is actively serving traffic. IsPendingReconnect bool `json:"is_pending_reconnect"` // Timestamp of when the connection was established. OpenedAt time.Time `json:"opened_at" format:"date-time"` // The public IP address of the host running cloudflared. OriginIP string `json:"origin_ip"` // UUID of the Cloudflare Tunnel connection. UUID string `json:"uuid"` JSON clientConnJSON `json:"-"` }
func (*ClientConn) UnmarshalJSON ¶
func (r *ClientConn) UnmarshalJSON(data []byte) (err error)
type CloudflareTunnel ¶
type CloudflareTunnel = shared.CloudflareTunnel
A Cloudflare Tunnel that connects your origin to Cloudflare's edge.
This is an alias to an internal type.
type CloudflareTunnelConnection ¶
type CloudflareTunnelConnection = shared.CloudflareTunnelConnection
This is an alias to an internal type.
type CloudflareTunnelTunType ¶
type CloudflareTunnelTunType = shared.CloudflareTunnelTunType
The type of tunnel.
This is an alias to an internal type.
type Connection ¶
type Connection struct { // The Cloudflare data center used for this connection. ColoName string `json:"colo_name"` // Cloudflare continues to track connections for several minutes after they // disconnect. This is an optimization to improve latency and reliability of // reconnecting. If `true`, the connection has disconnected but is still being // tracked. If `false`, the connection is actively serving traffic. IsPendingReconnect bool `json:"is_pending_reconnect"` // UUID of the Cloudflare Tunnel connection. UUID string `json:"uuid"` JSON connectionJSON `json:"-"` }
func (*Connection) UnmarshalJSON ¶
func (r *Connection) UnmarshalJSON(data []byte) (err error)
type ConnectivitySettingEditParams ¶
type ConnectivitySettingEditParams struct { // Cloudflare account ID AccountID param.Field[string] `path:"account_id,required"` // A flag to enable the ICMP proxy for the account network. IcmpProxyEnabled param.Field[bool] `json:"icmp_proxy_enabled"` // A flag to enable WARP to WARP traffic. OfframpWARPEnabled param.Field[bool] `json:"offramp_warp_enabled"` }
func (ConnectivitySettingEditParams) MarshalJSON ¶
func (r ConnectivitySettingEditParams) MarshalJSON() (data []byte, err error)
type ConnectivitySettingEditResponse ¶
type ConnectivitySettingEditResponse struct { // A flag to enable the ICMP proxy for the account network. IcmpProxyEnabled bool `json:"icmp_proxy_enabled"` // A flag to enable WARP to WARP traffic. OfframpWARPEnabled bool `json:"offramp_warp_enabled"` JSON connectivitySettingEditResponseJSON `json:"-"` }
func (*ConnectivitySettingEditResponse) UnmarshalJSON ¶
func (r *ConnectivitySettingEditResponse) UnmarshalJSON(data []byte) (err error)
type ConnectivitySettingEditResponseEnvelope ¶
type ConnectivitySettingEditResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result ConnectivitySettingEditResponse `json:"result,required"` // Whether the API call was successful Success ConnectivitySettingEditResponseEnvelopeSuccess `json:"success,required"` JSON connectivitySettingEditResponseEnvelopeJSON `json:"-"` }
func (*ConnectivitySettingEditResponseEnvelope) UnmarshalJSON ¶
func (r *ConnectivitySettingEditResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type ConnectivitySettingEditResponseEnvelopeSuccess ¶
type ConnectivitySettingEditResponseEnvelopeSuccess bool
Whether the API call was successful
const (
ConnectivitySettingEditResponseEnvelopeSuccessTrue ConnectivitySettingEditResponseEnvelopeSuccess = true
)
func (ConnectivitySettingEditResponseEnvelopeSuccess) IsKnown ¶
func (r ConnectivitySettingEditResponseEnvelopeSuccess) IsKnown() bool
type ConnectivitySettingGetResponse ¶
type ConnectivitySettingGetResponse struct { // A flag to enable the ICMP proxy for the account network. IcmpProxyEnabled bool `json:"icmp_proxy_enabled"` // A flag to enable WARP to WARP traffic. OfframpWARPEnabled bool `json:"offramp_warp_enabled"` JSON connectivitySettingGetResponseJSON `json:"-"` }
func (*ConnectivitySettingGetResponse) UnmarshalJSON ¶
func (r *ConnectivitySettingGetResponse) UnmarshalJSON(data []byte) (err error)
type ConnectivitySettingGetResponseEnvelope ¶
type ConnectivitySettingGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result ConnectivitySettingGetResponse `json:"result,required"` // Whether the API call was successful Success ConnectivitySettingGetResponseEnvelopeSuccess `json:"success,required"` JSON connectivitySettingGetResponseEnvelopeJSON `json:"-"` }
func (*ConnectivitySettingGetResponseEnvelope) UnmarshalJSON ¶
func (r *ConnectivitySettingGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type ConnectivitySettingGetResponseEnvelopeSuccess ¶
type ConnectivitySettingGetResponseEnvelopeSuccess bool
Whether the API call was successful
const (
ConnectivitySettingGetResponseEnvelopeSuccessTrue ConnectivitySettingGetResponseEnvelopeSuccess = true
)
func (ConnectivitySettingGetResponseEnvelopeSuccess) IsKnown ¶
func (r ConnectivitySettingGetResponseEnvelopeSuccess) IsKnown() bool
type ConnectivitySettingService ¶
type ConnectivitySettingService struct {
Options []option.RequestOption
}
ConnectivitySettingService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewConnectivitySettingService method instead.
func NewConnectivitySettingService ¶
func NewConnectivitySettingService(opts ...option.RequestOption) (r *ConnectivitySettingService)
NewConnectivitySettingService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*ConnectivitySettingService) Edit ¶
func (r *ConnectivitySettingService) Edit(ctx context.Context, params ConnectivitySettingEditParams, opts ...option.RequestOption) (res *ConnectivitySettingEditResponse, err error)
Updates the Zero Trust Connectivity Settings for the given account.
func (*ConnectivitySettingService) Get ¶
func (r *ConnectivitySettingService) Get(ctx context.Context, query ConnectivitySettingGetParams, opts ...option.RequestOption) (res *ConnectivitySettingGetResponse, err error)
Gets the Zero Trust Connectivity Settings for the given account.
type ContextAwareness ¶
type ContextAwareness struct { // If true, scan the context of predefined entries to only return matches // surrounded by keywords. Enabled bool `json:"enabled,required"` // Content types to exclude from context analysis and return all matches. Skip SkipConfiguration `json:"skip,required"` JSON contextAwarenessJSON `json:"-"` }
Scan the context of predefined entries to only return matches surrounded by keywords.
func (*ContextAwareness) UnmarshalJSON ¶
func (r *ContextAwareness) UnmarshalJSON(data []byte) (err error)
type ContextAwarenessParam ¶
type ContextAwarenessParam struct { // If true, scan the context of predefined entries to only return matches // surrounded by keywords. Enabled param.Field[bool] `json:"enabled,required"` // Content types to exclude from context analysis and return all matches. Skip param.Field[SkipConfigurationParam] `json:"skip,required"` }
Scan the context of predefined entries to only return matches surrounded by keywords.
func (ContextAwarenessParam) MarshalJSON ¶
func (r ContextAwarenessParam) MarshalJSON() (data []byte, err error)
type CorsHeaders ¶
type CorsHeaders struct { // Allows all HTTP request headers. AllowAllHeaders bool `json:"allow_all_headers"` // Allows all HTTP request methods. AllowAllMethods bool `json:"allow_all_methods"` // Allows all origins. AllowAllOrigins bool `json:"allow_all_origins"` // When set to `true`, includes credentials (cookies, authorization headers, or TLS // client certificates) with requests. AllowCredentials bool `json:"allow_credentials"` // Allowed HTTP request headers. AllowedHeaders []AllowedHeadersh `json:"allowed_headers"` // Allowed HTTP request methods. AllowedMethods []AllowedMethodsh `json:"allowed_methods"` // Allowed origins. AllowedOrigins []AllowedOriginsh `json:"allowed_origins"` // The maximum number of seconds the results of a preflight request can be cached. MaxAge float64 `json:"max_age"` JSON corsHeadersJSON `json:"-"` }
func (*CorsHeaders) UnmarshalJSON ¶
func (r *CorsHeaders) UnmarshalJSON(data []byte) (err error)
type CorsHeadersParam ¶
type CorsHeadersParam struct { // Allows all HTTP request headers. AllowAllHeaders param.Field[bool] `json:"allow_all_headers"` // Allows all HTTP request methods. AllowAllMethods param.Field[bool] `json:"allow_all_methods"` // Allows all origins. AllowAllOrigins param.Field[bool] `json:"allow_all_origins"` // When set to `true`, includes credentials (cookies, authorization headers, or TLS // client certificates) with requests. AllowCredentials param.Field[bool] `json:"allow_credentials"` // Allowed HTTP request headers. AllowedHeaders param.Field[[]AllowedHeadershParam] `json:"allowed_headers"` // Allowed HTTP request methods. AllowedMethods param.Field[[]AllowedMethodsh] `json:"allowed_methods"` // Allowed origins. AllowedOrigins param.Field[[]AllowedOriginshParam] `json:"allowed_origins"` // The maximum number of seconds the results of a preflight request can be cached. MaxAge param.Field[float64] `json:"max_age"` }
func (CorsHeadersParam) MarshalJSON ¶
func (r CorsHeadersParam) MarshalJSON() (data []byte, err error)
type CountryRule ¶
type CountryRule struct { Geo CountryRuleGeo `json:"geo,required"` JSON countryRuleJSON `json:"-"` }
Matches a specific country
func (*CountryRule) UnmarshalJSON ¶
func (r *CountryRule) UnmarshalJSON(data []byte) (err error)
type CountryRuleGeo ¶
type CountryRuleGeo struct { // The country code that should be matched. CountryCode string `json:"country_code,required"` JSON countryRuleGeoJSON `json:"-"` }
func (*CountryRuleGeo) UnmarshalJSON ¶
func (r *CountryRuleGeo) UnmarshalJSON(data []byte) (err error)
type CountryRuleGeoParam ¶
type CountryRuleGeoParam struct { // The country code that should be matched. CountryCode param.Field[string] `json:"country_code,required"` }
func (CountryRuleGeoParam) MarshalJSON ¶
func (r CountryRuleGeoParam) MarshalJSON() (data []byte, err error)
type CountryRuleParam ¶
type CountryRuleParam struct {
Geo param.Field[CountryRuleGeoParam] `json:"geo,required"`
}
Matches a specific country
func (CountryRuleParam) MarshalJSON ¶
func (r CountryRuleParam) MarshalJSON() (data []byte, err error)
type CrowdstrikeInput ¶
type CrowdstrikeInput struct { // Posture Integration ID. ConnectionID string `json:"connection_id,required"` // For more details on last seen, please refer to the Crowdstrike documentation. LastSeen string `json:"last_seen"` // operator Operator CrowdstrikeInputOperator `json:"operator"` // Os Version OS string `json:"os"` // overall Overall string `json:"overall"` // SensorConfig SensorConfig string `json:"sensor_config"` // For more details on state, please refer to the Crowdstrike documentation. State CrowdstrikeInputState `json:"state"` // Version Version string `json:"version"` // Version Operator VersionOperator CrowdstrikeInputVersionOperator `json:"versionOperator"` JSON crowdstrikeInputJSON `json:"-"` }
func (*CrowdstrikeInput) UnmarshalJSON ¶
func (r *CrowdstrikeInput) UnmarshalJSON(data []byte) (err error)
type CrowdstrikeInputOperator ¶
type CrowdstrikeInputOperator string
operator
const ( CrowdstrikeInputOperatorLess CrowdstrikeInputOperator = "<" CrowdstrikeInputOperatorLessOrEquals CrowdstrikeInputOperator = "<=" CrowdstrikeInputOperatorGreater CrowdstrikeInputOperator = ">" CrowdstrikeInputOperatorGreaterOrEquals CrowdstrikeInputOperator = ">=" CrowdstrikeInputOperatorEquals CrowdstrikeInputOperator = "==" )
func (CrowdstrikeInputOperator) IsKnown ¶
func (r CrowdstrikeInputOperator) IsKnown() bool
type CrowdstrikeInputParam ¶
type CrowdstrikeInputParam struct { // Posture Integration ID. ConnectionID param.Field[string] `json:"connection_id,required"` // For more details on last seen, please refer to the Crowdstrike documentation. LastSeen param.Field[string] `json:"last_seen"` // operator Operator param.Field[CrowdstrikeInputOperator] `json:"operator"` // Os Version OS param.Field[string] `json:"os"` // overall Overall param.Field[string] `json:"overall"` // SensorConfig SensorConfig param.Field[string] `json:"sensor_config"` // For more details on state, please refer to the Crowdstrike documentation. State param.Field[CrowdstrikeInputState] `json:"state"` // Version Version param.Field[string] `json:"version"` // Version Operator VersionOperator param.Field[CrowdstrikeInputVersionOperator] `json:"versionOperator"` }
func (CrowdstrikeInputParam) MarshalJSON ¶
func (r CrowdstrikeInputParam) MarshalJSON() (data []byte, err error)
type CrowdstrikeInputState ¶
type CrowdstrikeInputState string
For more details on state, please refer to the Crowdstrike documentation.
const ( CrowdstrikeInputStateOnline CrowdstrikeInputState = "online" CrowdstrikeInputStateOffline CrowdstrikeInputState = "offline" CrowdstrikeInputStateUnknown CrowdstrikeInputState = "unknown" )
func (CrowdstrikeInputState) IsKnown ¶
func (r CrowdstrikeInputState) IsKnown() bool
type CrowdstrikeInputVersionOperator ¶
type CrowdstrikeInputVersionOperator string
Version Operator
const ( CrowdstrikeInputVersionOperatorLess CrowdstrikeInputVersionOperator = "<" CrowdstrikeInputVersionOperatorLessOrEquals CrowdstrikeInputVersionOperator = "<=" CrowdstrikeInputVersionOperatorGreater CrowdstrikeInputVersionOperator = ">" CrowdstrikeInputVersionOperatorGreaterOrEquals CrowdstrikeInputVersionOperator = ">=" CrowdstrikeInputVersionOperatorEquals CrowdstrikeInputVersionOperator = "==" )
func (CrowdstrikeInputVersionOperator) IsKnown ¶
func (r CrowdstrikeInputVersionOperator) IsKnown() bool
type CustomCertificateSettings ¶
type CustomCertificateSettings struct { // Enable use of custom certificate authority for signing Gateway traffic. Enabled bool `json:"enabled,required"` // UUID of certificate (ID from MTLS certificate store). ID string `json:"id"` // Certificate status (internal). BindingStatus string `json:"binding_status"` UpdatedAt time.Time `json:"updated_at" format:"date-time"` JSON customCertificateSettingsJSON `json:"-"` }
Custom certificate settings for BYO-PKI.
func (*CustomCertificateSettings) UnmarshalJSON ¶
func (r *CustomCertificateSettings) UnmarshalJSON(data []byte) (err error)
type CustomCertificateSettingsParam ¶
type CustomCertificateSettingsParam struct { // Enable use of custom certificate authority for signing Gateway traffic. Enabled param.Field[bool] `json:"enabled,required"` // UUID of certificate (ID from MTLS certificate store). ID param.Field[string] `json:"id"` }
Custom certificate settings for BYO-PKI.
func (CustomCertificateSettingsParam) MarshalJSON ¶
func (r CustomCertificateSettingsParam) MarshalJSON() (data []byte, err error)
type CustomPage ¶
type CustomPage struct { // Custom page HTML. CustomHTML string `json:"custom_html,required"` // Custom page name. Name string `json:"name,required"` // Custom page type. Type CustomPageType `json:"type,required"` // Number of apps the custom page is assigned to. AppCount int64 `json:"app_count"` CreatedAt time.Time `json:"created_at" format:"date-time"` // UUID UID string `json:"uid"` UpdatedAt time.Time `json:"updated_at" format:"date-time"` JSON customPageJSON `json:"-"` }
func (*CustomPage) UnmarshalJSON ¶
func (r *CustomPage) UnmarshalJSON(data []byte) (err error)
type CustomPageParam ¶
type CustomPageParam struct { // Custom page HTML. CustomHTML param.Field[string] `json:"custom_html,required"` // Custom page name. Name param.Field[string] `json:"name,required"` // Custom page type. Type param.Field[CustomPageType] `json:"type,required"` // Number of apps the custom page is assigned to. AppCount param.Field[int64] `json:"app_count"` }
func (CustomPageParam) MarshalJSON ¶
func (r CustomPageParam) MarshalJSON() (data []byte, err error)
type CustomPageType ¶
type CustomPageType string
Custom page type.
const ( CustomPageTypeIdentityDenied CustomPageType = "identity_denied" CustomPageTypeForbidden CustomPageType = "forbidden" )
func (CustomPageType) IsKnown ¶
func (r CustomPageType) IsKnown() bool
type CustomPageWithoutHTML ¶
type CustomPageWithoutHTML struct { // Custom page name. Name string `json:"name,required"` // Custom page type. Type CustomPageWithoutHTMLType `json:"type,required"` // Number of apps the custom page is assigned to. AppCount int64 `json:"app_count"` CreatedAt time.Time `json:"created_at" format:"date-time"` // UUID UID string `json:"uid"` UpdatedAt time.Time `json:"updated_at" format:"date-time"` JSON customPageWithoutHTMLJSON `json:"-"` }
func (*CustomPageWithoutHTML) UnmarshalJSON ¶
func (r *CustomPageWithoutHTML) UnmarshalJSON(data []byte) (err error)
type CustomPageWithoutHTMLType ¶
type CustomPageWithoutHTMLType string
Custom page type.
const ( CustomPageWithoutHTMLTypeIdentityDenied CustomPageWithoutHTMLType = "identity_denied" CustomPageWithoutHTMLTypeForbidden CustomPageWithoutHTMLType = "forbidden" )
func (CustomPageWithoutHTMLType) IsKnown ¶
func (r CustomPageWithoutHTMLType) IsKnown() bool
type CustomPagesh ¶
type CustomPagesh = string
type CustomPageshParam ¶
type CustomPageshParam = string
type CustomProfile ¶
type CustomProfile struct { // The ID for this profile ID string `json:"id"` // Related DLP policies will trigger when the match count exceeds the number set. AllowedMatchCount float64 `json:"allowed_match_count"` // Scan the context of predefined entries to only return matches surrounded by // keywords. ContextAwareness ContextAwareness `json:"context_awareness"` CreatedAt time.Time `json:"created_at" format:"date-time"` // The description of the profile. Description string `json:"description"` // The entries for this profile. Entries []CustomProfileEntry `json:"entries"` // The name of the profile. Name string `json:"name"` // If true, scan images via OCR to determine if any text present matches filters. OCREnabled bool `json:"ocr_enabled"` // The type of the profile. Type CustomProfileType `json:"type"` UpdatedAt time.Time `json:"updated_at" format:"date-time"` JSON customProfileJSON `json:"-"` }
func (*CustomProfile) UnmarshalJSON ¶
func (r *CustomProfile) UnmarshalJSON(data []byte) (err error)
type CustomProfileEntry ¶
type CustomProfileEntry struct { // The ID for this entry ID string `json:"id"` CreatedAt time.Time `json:"created_at" format:"date-time"` // Whether the entry is enabled or not. Enabled bool `json:"enabled"` // The name of the entry. Name string `json:"name"` // A pattern that matches an entry Pattern Pattern `json:"pattern"` // ID of the parent profile ProfileID interface{} `json:"profile_id"` UpdatedAt time.Time `json:"updated_at" format:"date-time"` JSON customProfileEntryJSON `json:"-"` }
A custom entry that matches a profile
func (*CustomProfileEntry) UnmarshalJSON ¶
func (r *CustomProfileEntry) UnmarshalJSON(data []byte) (err error)
type CustomProfileType ¶
type CustomProfileType string
The type of the profile.
const (
CustomProfileTypeCustom CustomProfileType = "custom"
)
func (CustomProfileType) IsKnown ¶
func (r CustomProfileType) IsKnown() bool
type DEXColoListParams ¶
type DEXColoListParams struct { AccountID param.Field[string] `path:"account_id,required"` // End time for connection period in RFC3339 (ISO 8601) format. TimeEnd param.Field[string] `query:"timeEnd,required"` // Start time for connection period in RFC3339 (ISO 8601) format. TimeStart param.Field[string] `query:"timeStart,required"` // Type of usage that colos should be sorted by. If unspecified, returns all // Cloudflare colos sorted alphabetically. SortBy param.Field[DEXColoListParamsSortBy] `query:"sortBy"` }
func (DEXColoListParams) URLQuery ¶
func (r DEXColoListParams) URLQuery() (v url.Values)
URLQuery serializes DEXColoListParams's query parameters as `url.Values`.
type DEXColoListParamsSortBy ¶
type DEXColoListParamsSortBy string
Type of usage that colos should be sorted by. If unspecified, returns all Cloudflare colos sorted alphabetically.
const ( DEXColoListParamsSortByFleetStatusUsage DEXColoListParamsSortBy = "fleet-status-usage" DEXColoListParamsSortByApplicationTestsUsage DEXColoListParamsSortBy = "application-tests-usage" )
func (DEXColoListParamsSortBy) IsKnown ¶
func (r DEXColoListParamsSortBy) IsKnown() bool
type DEXColoListResponse ¶
type DEXColoListResponse = interface{}
type DEXColoService ¶
type DEXColoService struct {
Options []option.RequestOption
}
DEXColoService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewDEXColoService method instead.
func NewDEXColoService ¶
func NewDEXColoService(opts ...option.RequestOption) (r *DEXColoService)
NewDEXColoService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*DEXColoService) List ¶
func (r *DEXColoService) List(ctx context.Context, params DEXColoListParams, opts ...option.RequestOption) (res *pagination.SinglePage[DEXColoListResponse], err error)
List Cloudflare colos that account's devices were connected to during a time period, sorted by usage starting from the most used colo. Colos without traffic are also returned and sorted alphabetically.
func (*DEXColoService) ListAutoPaging ¶
func (r *DEXColoService) ListAutoPaging(ctx context.Context, params DEXColoListParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[DEXColoListResponse]
List Cloudflare colos that account's devices were connected to during a time period, sorted by usage starting from the most used colo. Colos without traffic are also returned and sorted alphabetically.
type DEXFleetStatusDeviceListParams ¶
type DEXFleetStatusDeviceListParams struct { AccountID param.Field[string] `path:"account_id,required"` // Page number of paginated results Page param.Field[float64] `query:"page,required"` // Number of items per page PerPage param.Field[float64] `query:"per_page,required"` // Timestamp in ISO format TimeEnd param.Field[string] `query:"time_end,required"` // Timestamp in ISO format TimeStart param.Field[string] `query:"time_start,required"` // Cloudflare colo Colo param.Field[string] `query:"colo"` // Device-specific ID, given as UUID v4 DeviceID param.Field[string] `query:"device_id"` // The mode under which the WARP client is run Mode param.Field[string] `query:"mode"` // Operating system Platform param.Field[string] `query:"platform"` // Dimension to sort results by SortBy param.Field[DEXFleetStatusDeviceListParamsSortBy] `query:"sort_by"` // Network status Status param.Field[string] `query:"status"` // WARP client version Version param.Field[string] `query:"version"` }
func (DEXFleetStatusDeviceListParams) URLQuery ¶
func (r DEXFleetStatusDeviceListParams) URLQuery() (v url.Values)
URLQuery serializes DEXFleetStatusDeviceListParams's query parameters as `url.Values`.
type DEXFleetStatusDeviceListParamsSortBy ¶
type DEXFleetStatusDeviceListParamsSortBy string
Dimension to sort results by
const ( DEXFleetStatusDeviceListParamsSortByColo DEXFleetStatusDeviceListParamsSortBy = "colo" DEXFleetStatusDeviceListParamsSortByDeviceID DEXFleetStatusDeviceListParamsSortBy = "device_id" DEXFleetStatusDeviceListParamsSortByMode DEXFleetStatusDeviceListParamsSortBy = "mode" DEXFleetStatusDeviceListParamsSortByPlatform DEXFleetStatusDeviceListParamsSortBy = "platform" DEXFleetStatusDeviceListParamsSortByStatus DEXFleetStatusDeviceListParamsSortBy = "status" DEXFleetStatusDeviceListParamsSortByTimestamp DEXFleetStatusDeviceListParamsSortBy = "timestamp" DEXFleetStatusDeviceListParamsSortByVersion DEXFleetStatusDeviceListParamsSortBy = "version" )
func (DEXFleetStatusDeviceListParamsSortBy) IsKnown ¶
func (r DEXFleetStatusDeviceListParamsSortBy) IsKnown() bool
type DEXFleetStatusDeviceListResponse ¶
type DEXFleetStatusDeviceListResponse struct { // Cloudflare colo Colo string `json:"colo,required"` // Device identifier (UUID v4) DeviceID string `json:"deviceId,required"` Mode interface{} `json:"mode,required"` // Operating system Platform string `json:"platform,required"` // Network status Status string `json:"status,required"` Timestamp interface{} `json:"timestamp,required"` // WARP client version Version string `json:"version,required"` // Device identifier (human readable) DeviceName string `json:"deviceName"` // User contact email address PersonEmail string `json:"personEmail"` JSON dexFleetStatusDeviceListResponseJSON `json:"-"` }
func (*DEXFleetStatusDeviceListResponse) UnmarshalJSON ¶
func (r *DEXFleetStatusDeviceListResponse) UnmarshalJSON(data []byte) (err error)
type DEXFleetStatusDeviceService ¶
type DEXFleetStatusDeviceService struct {
Options []option.RequestOption
}
DEXFleetStatusDeviceService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewDEXFleetStatusDeviceService method instead.
func NewDEXFleetStatusDeviceService ¶
func NewDEXFleetStatusDeviceService(opts ...option.RequestOption) (r *DEXFleetStatusDeviceService)
NewDEXFleetStatusDeviceService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*DEXFleetStatusDeviceService) List ¶
func (r *DEXFleetStatusDeviceService) List(ctx context.Context, params DEXFleetStatusDeviceListParams, opts ...option.RequestOption) (res *pagination.V4PagePaginationArray[DEXFleetStatusDeviceListResponse], err error)
List details for devices using WARP
func (*DEXFleetStatusDeviceService) ListAutoPaging ¶
func (r *DEXFleetStatusDeviceService) ListAutoPaging(ctx context.Context, params DEXFleetStatusDeviceListParams, opts ...option.RequestOption) *pagination.V4PagePaginationArrayAutoPager[DEXFleetStatusDeviceListResponse]
List details for devices using WARP
type DEXFleetStatusLiveParams ¶
type DEXFleetStatusLiveParams struct { AccountID param.Field[string] `path:"account_id,required"` // Number of minutes before current time SinceMinutes param.Field[float64] `query:"since_minutes,required"` }
func (DEXFleetStatusLiveParams) URLQuery ¶
func (r DEXFleetStatusLiveParams) URLQuery() (v url.Values)
URLQuery serializes DEXFleetStatusLiveParams's query parameters as `url.Values`.
type DEXFleetStatusLiveResponse ¶
type DEXFleetStatusLiveResponse struct { DeviceStats DEXFleetStatusLiveResponseDeviceStats `json:"deviceStats"` JSON dexFleetStatusLiveResponseJSON `json:"-"` }
func (*DEXFleetStatusLiveResponse) UnmarshalJSON ¶
func (r *DEXFleetStatusLiveResponse) UnmarshalJSON(data []byte) (err error)
type DEXFleetStatusLiveResponseDeviceStats ¶
type DEXFleetStatusLiveResponseDeviceStats struct { ByColo []LiveStat `json:"byColo,nullable"` ByMode []LiveStat `json:"byMode,nullable"` ByPlatform []LiveStat `json:"byPlatform,nullable"` ByStatus []LiveStat `json:"byStatus,nullable"` ByVersion []LiveStat `json:"byVersion,nullable"` // Number of unique devices UniqueDevicesTotal float64 `json:"uniqueDevicesTotal"` JSON dexFleetStatusLiveResponseDeviceStatsJSON `json:"-"` }
func (*DEXFleetStatusLiveResponseDeviceStats) UnmarshalJSON ¶
func (r *DEXFleetStatusLiveResponseDeviceStats) UnmarshalJSON(data []byte) (err error)
type DEXFleetStatusLiveResponseEnvelope ¶
type DEXFleetStatusLiveResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result DEXFleetStatusLiveResponse `json:"result,required"` // Whether the API call was successful Success DEXFleetStatusLiveResponseEnvelopeSuccess `json:"success,required"` JSON dexFleetStatusLiveResponseEnvelopeJSON `json:"-"` }
func (*DEXFleetStatusLiveResponseEnvelope) UnmarshalJSON ¶
func (r *DEXFleetStatusLiveResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DEXFleetStatusLiveResponseEnvelopeSuccess ¶
type DEXFleetStatusLiveResponseEnvelopeSuccess bool
Whether the API call was successful
const (
DEXFleetStatusLiveResponseEnvelopeSuccessTrue DEXFleetStatusLiveResponseEnvelopeSuccess = true
)
func (DEXFleetStatusLiveResponseEnvelopeSuccess) IsKnown ¶
func (r DEXFleetStatusLiveResponseEnvelopeSuccess) IsKnown() bool
type DEXFleetStatusOverTimeParams ¶
type DEXFleetStatusOverTimeParams struct { AccountID param.Field[string] `path:"account_id,required"` // Timestamp in ISO format TimeEnd param.Field[string] `query:"time_end,required"` // Timestamp in ISO format TimeStart param.Field[string] `query:"time_start,required"` // Cloudflare colo Colo param.Field[string] `query:"colo"` // Device-specific ID, given as UUID v4 DeviceID param.Field[string] `query:"device_id"` }
func (DEXFleetStatusOverTimeParams) URLQuery ¶
func (r DEXFleetStatusOverTimeParams) URLQuery() (v url.Values)
URLQuery serializes DEXFleetStatusOverTimeParams's query parameters as `url.Values`.
type DEXFleetStatusService ¶
type DEXFleetStatusService struct { Options []option.RequestOption Devices *DEXFleetStatusDeviceService }
DEXFleetStatusService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewDEXFleetStatusService method instead.
func NewDEXFleetStatusService ¶
func NewDEXFleetStatusService(opts ...option.RequestOption) (r *DEXFleetStatusService)
NewDEXFleetStatusService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*DEXFleetStatusService) Live ¶
func (r *DEXFleetStatusService) Live(ctx context.Context, params DEXFleetStatusLiveParams, opts ...option.RequestOption) (res *DEXFleetStatusLiveResponse, err error)
List details for live (up to 60 minutes) devices using WARP
func (*DEXFleetStatusService) OverTime ¶
func (r *DEXFleetStatusService) OverTime(ctx context.Context, params DEXFleetStatusOverTimeParams, opts ...option.RequestOption) (err error)
List details for devices using WARP, up to 7 days
type DEXHTTPTestGetParams ¶
type DEXHTTPTestGetParams struct { AccountID param.Field[string] `path:"account_id,required"` // Time interval for aggregate time slots. Interval param.Field[DexhttpTestGetParamsInterval] `query:"interval,required"` // End time for aggregate metrics in ISO ms TimeEnd param.Field[string] `query:"timeEnd,required"` // Start time for aggregate metrics in ISO ms TimeStart param.Field[string] `query:"timeStart,required"` // Optionally filter result stats to a Cloudflare colo. Cannot be used in // combination with deviceId param. Colo param.Field[string] `query:"colo"` // Optionally filter result stats to a specific device(s). Cannot be used in // combination with colo param. DeviceID param.Field[[]string] `query:"deviceId"` }
func (DEXHTTPTestGetParams) URLQuery ¶
func (r DEXHTTPTestGetParams) URLQuery() (v url.Values)
URLQuery serializes DEXHTTPTestGetParams's query parameters as `url.Values`.
type DEXHTTPTestPercentileGetParams ¶
type DEXHTTPTestPercentileGetParams struct { AccountID param.Field[string] `path:"account_id,required"` // End time for aggregate metrics in ISO format TimeEnd param.Field[string] `query:"timeEnd,required"` // Start time for aggregate metrics in ISO format TimeStart param.Field[string] `query:"timeStart,required"` // Optionally filter result stats to a Cloudflare colo. Cannot be used in // combination with deviceId param. Colo param.Field[string] `query:"colo"` // Optionally filter result stats to a specific device(s). Cannot be used in // combination with colo param. DeviceID param.Field[[]string] `query:"deviceId"` }
func (DEXHTTPTestPercentileGetParams) URLQuery ¶
func (r DEXHTTPTestPercentileGetParams) URLQuery() (v url.Values)
URLQuery serializes DEXHTTPTestPercentileGetParams's query parameters as `url.Values`.
type DEXHTTPTestPercentileService ¶
type DEXHTTPTestPercentileService struct {
Options []option.RequestOption
}
DEXHTTPTestPercentileService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewDEXHTTPTestPercentileService method instead.
func NewDEXHTTPTestPercentileService ¶
func NewDEXHTTPTestPercentileService(opts ...option.RequestOption) (r *DEXHTTPTestPercentileService)
NewDEXHTTPTestPercentileService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*DEXHTTPTestPercentileService) Get ¶
func (r *DEXHTTPTestPercentileService) Get(ctx context.Context, testID string, params DEXHTTPTestPercentileGetParams, opts ...option.RequestOption) (res *HTTPDetailsPercentiles, err error)
Get percentiles for an http test for a given time period between 1 hour and 7 days.
type DEXHTTPTestService ¶
type DEXHTTPTestService struct { Options []option.RequestOption Percentiles *DEXHTTPTestPercentileService }
DEXHTTPTestService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewDEXHTTPTestService method instead.
func NewDEXHTTPTestService ¶
func NewDEXHTTPTestService(opts ...option.RequestOption) (r *DEXHTTPTestService)
NewDEXHTTPTestService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*DEXHTTPTestService) Get ¶
func (r *DEXHTTPTestService) Get(ctx context.Context, testID string, params DEXHTTPTestGetParams, opts ...option.RequestOption) (res *HTTPDetails, err error)
Get test details and aggregate performance metrics for an http test for a given time period between 1 hour and 7 days.
type DEXService ¶
type DEXService struct { Options []option.RequestOption Colos *DEXColoService FleetStatus *DEXFleetStatusService HTTPTests *DEXHTTPTestService Tests *DEXTestService TracerouteTestResults *DEXTracerouteTestResultService TracerouteTests *DEXTracerouteTestService }
DEXService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewDEXService method instead.
func NewDEXService ¶
func NewDEXService(opts ...option.RequestOption) (r *DEXService)
NewDEXService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
type DEXTestListParams ¶
type DEXTestListParams struct { AccountID param.Field[string] `path:"account_id,required"` // Optionally filter result stats to a Cloudflare colo. Cannot be used in // combination with deviceId param. Colo param.Field[string] `query:"colo"` // Optionally filter result stats to a specific device(s). Cannot be used in // combination with colo param. DeviceID param.Field[[]string] `query:"deviceId"` // Page number of paginated results Page param.Field[float64] `query:"page"` // Number of items per page PerPage param.Field[float64] `query:"per_page"` // Optionally filter results by test name TestName param.Field[string] `query:"testName"` }
func (DEXTestListParams) URLQuery ¶
func (r DEXTestListParams) URLQuery() (v url.Values)
URLQuery serializes DEXTestListParams's query parameters as `url.Values`.
type DEXTestListResponse ¶
type DEXTestListResponse struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result Tests `json:"result,required"` // Whether the API call was successful Success DEXTestListResponseSuccess `json:"success,required"` ResultInfo DEXTestListResponseResultInfo `json:"result_info"` JSON dexTestListResponseJSON `json:"-"` }
func (*DEXTestListResponse) UnmarshalJSON ¶
func (r *DEXTestListResponse) UnmarshalJSON(data []byte) (err error)
type DEXTestListResponseResultInfo ¶
type DEXTestListResponseResultInfo struct { // Total number of results for the requested service Count float64 `json:"count"` // Current page within paginated list of results Page float64 `json:"page"` // Number of results per page of results PerPage float64 `json:"per_page"` // Total results available without any search parameters TotalCount float64 `json:"total_count"` JSON dexTestListResponseResultInfoJSON `json:"-"` }
func (*DEXTestListResponseResultInfo) UnmarshalJSON ¶
func (r *DEXTestListResponseResultInfo) UnmarshalJSON(data []byte) (err error)
type DEXTestListResponseSuccess ¶
type DEXTestListResponseSuccess bool
Whether the API call was successful
const (
DEXTestListResponseSuccessTrue DEXTestListResponseSuccess = true
)
func (DEXTestListResponseSuccess) IsKnown ¶
func (r DEXTestListResponseSuccess) IsKnown() bool
type DEXTestService ¶
type DEXTestService struct { Options []option.RequestOption UniqueDevices *DEXTestUniqueDeviceService }
DEXTestService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewDEXTestService method instead.
func NewDEXTestService ¶
func NewDEXTestService(opts ...option.RequestOption) (r *DEXTestService)
NewDEXTestService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*DEXTestService) List ¶
func (r *DEXTestService) List(ctx context.Context, params DEXTestListParams, opts ...option.RequestOption) (res *pagination.V4PagePagination[DEXTestListResponse], err error)
List DEX tests
func (*DEXTestService) ListAutoPaging ¶
func (r *DEXTestService) ListAutoPaging(ctx context.Context, params DEXTestListParams, opts ...option.RequestOption) *pagination.V4PagePaginationAutoPager[DEXTestListResponse]
List DEX tests
type DEXTestUniqueDeviceListParams ¶
type DEXTestUniqueDeviceListParams struct { AccountID param.Field[string] `path:"account_id,required"` // Optionally filter result stats to a specific device(s). Cannot be used in // combination with colo param. DeviceID param.Field[[]string] `query:"deviceId"` // Optionally filter results by test name TestName param.Field[string] `query:"testName"` }
func (DEXTestUniqueDeviceListParams) URLQuery ¶
func (r DEXTestUniqueDeviceListParams) URLQuery() (v url.Values)
URLQuery serializes DEXTestUniqueDeviceListParams's query parameters as `url.Values`.
type DEXTestUniqueDeviceListResponseEnvelope ¶
type DEXTestUniqueDeviceListResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result UniqueDevices `json:"result,required"` // Whether the API call was successful Success DEXTestUniqueDeviceListResponseEnvelopeSuccess `json:"success,required"` JSON dexTestUniqueDeviceListResponseEnvelopeJSON `json:"-"` }
func (*DEXTestUniqueDeviceListResponseEnvelope) UnmarshalJSON ¶
func (r *DEXTestUniqueDeviceListResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DEXTestUniqueDeviceListResponseEnvelopeSuccess ¶
type DEXTestUniqueDeviceListResponseEnvelopeSuccess bool
Whether the API call was successful
const (
DEXTestUniqueDeviceListResponseEnvelopeSuccessTrue DEXTestUniqueDeviceListResponseEnvelopeSuccess = true
)
func (DEXTestUniqueDeviceListResponseEnvelopeSuccess) IsKnown ¶
func (r DEXTestUniqueDeviceListResponseEnvelopeSuccess) IsKnown() bool
type DEXTestUniqueDeviceService ¶
type DEXTestUniqueDeviceService struct {
Options []option.RequestOption
}
DEXTestUniqueDeviceService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewDEXTestUniqueDeviceService method instead.
func NewDEXTestUniqueDeviceService ¶
func NewDEXTestUniqueDeviceService(opts ...option.RequestOption) (r *DEXTestUniqueDeviceService)
NewDEXTestUniqueDeviceService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*DEXTestUniqueDeviceService) List ¶
func (r *DEXTestUniqueDeviceService) List(ctx context.Context, params DEXTestUniqueDeviceListParams, opts ...option.RequestOption) (res *UniqueDevices, err error)
Returns unique count of devices that have run synthetic application monitoring tests in the past 7 days.
type DEXTracerouteTestGetParams ¶
type DEXTracerouteTestGetParams struct { AccountID param.Field[string] `path:"account_id,required"` // Time interval for aggregate time slots. Interval param.Field[DEXTracerouteTestGetParamsInterval] `query:"interval,required"` // End time for aggregate metrics in ISO ms TimeEnd param.Field[string] `query:"timeEnd,required"` // Start time for aggregate metrics in ISO ms TimeStart param.Field[string] `query:"timeStart,required"` // Optionally filter result stats to a Cloudflare colo. Cannot be used in // combination with deviceId param. Colo param.Field[string] `query:"colo"` // Optionally filter result stats to a specific device(s). Cannot be used in // combination with colo param. DeviceID param.Field[[]string] `query:"deviceId"` }
func (DEXTracerouteTestGetParams) URLQuery ¶
func (r DEXTracerouteTestGetParams) URLQuery() (v url.Values)
URLQuery serializes DEXTracerouteTestGetParams's query parameters as `url.Values`.
type DEXTracerouteTestGetParamsInterval ¶
type DEXTracerouteTestGetParamsInterval string
Time interval for aggregate time slots.
const ( DEXTracerouteTestGetParamsIntervalMinute DEXTracerouteTestGetParamsInterval = "minute" DEXTracerouteTestGetParamsIntervalHour DEXTracerouteTestGetParamsInterval = "hour" )
func (DEXTracerouteTestGetParamsInterval) IsKnown ¶
func (r DEXTracerouteTestGetParamsInterval) IsKnown() bool
type DEXTracerouteTestGetResponseEnvelope ¶
type DEXTracerouteTestGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result Traceroute `json:"result,required"` // Whether the API call was successful Success DEXTracerouteTestGetResponseEnvelopeSuccess `json:"success,required"` JSON dexTracerouteTestGetResponseEnvelopeJSON `json:"-"` }
func (*DEXTracerouteTestGetResponseEnvelope) UnmarshalJSON ¶
func (r *DEXTracerouteTestGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DEXTracerouteTestGetResponseEnvelopeSuccess ¶
type DEXTracerouteTestGetResponseEnvelopeSuccess bool
Whether the API call was successful
const (
DEXTracerouteTestGetResponseEnvelopeSuccessTrue DEXTracerouteTestGetResponseEnvelopeSuccess = true
)
func (DEXTracerouteTestGetResponseEnvelopeSuccess) IsKnown ¶
func (r DEXTracerouteTestGetResponseEnvelopeSuccess) IsKnown() bool
type DEXTracerouteTestNetworkPathParams ¶
type DEXTracerouteTestNetworkPathParams struct { AccountID param.Field[string] `path:"account_id,required"` // Device to filter tracroute result runs to DeviceID param.Field[string] `query:"deviceId,required"` // Time interval for aggregate time slots. Interval param.Field[DEXTracerouteTestNetworkPathParamsInterval] `query:"interval,required"` // End time for aggregate metrics in ISO ms TimeEnd param.Field[string] `query:"timeEnd,required"` // Start time for aggregate metrics in ISO ms TimeStart param.Field[string] `query:"timeStart,required"` }
func (DEXTracerouteTestNetworkPathParams) URLQuery ¶
func (r DEXTracerouteTestNetworkPathParams) URLQuery() (v url.Values)
URLQuery serializes DEXTracerouteTestNetworkPathParams's query parameters as `url.Values`.
type DEXTracerouteTestNetworkPathParamsInterval ¶
type DEXTracerouteTestNetworkPathParamsInterval string
Time interval for aggregate time slots.
const ( DEXTracerouteTestNetworkPathParamsIntervalMinute DEXTracerouteTestNetworkPathParamsInterval = "minute" DEXTracerouteTestNetworkPathParamsIntervalHour DEXTracerouteTestNetworkPathParamsInterval = "hour" )
func (DEXTracerouteTestNetworkPathParamsInterval) IsKnown ¶
func (r DEXTracerouteTestNetworkPathParamsInterval) IsKnown() bool
type DEXTracerouteTestNetworkPathResponseEnvelope ¶
type DEXTracerouteTestNetworkPathResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result NetworkPath `json:"result,required"` // Whether the API call was successful Success DEXTracerouteTestNetworkPathResponseEnvelopeSuccess `json:"success,required"` JSON dexTracerouteTestNetworkPathResponseEnvelopeJSON `json:"-"` }
func (*DEXTracerouteTestNetworkPathResponseEnvelope) UnmarshalJSON ¶
func (r *DEXTracerouteTestNetworkPathResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DEXTracerouteTestNetworkPathResponseEnvelopeSuccess ¶
type DEXTracerouteTestNetworkPathResponseEnvelopeSuccess bool
Whether the API call was successful
const (
DEXTracerouteTestNetworkPathResponseEnvelopeSuccessTrue DEXTracerouteTestNetworkPathResponseEnvelopeSuccess = true
)
func (DEXTracerouteTestNetworkPathResponseEnvelopeSuccess) IsKnown ¶
func (r DEXTracerouteTestNetworkPathResponseEnvelopeSuccess) IsKnown() bool
type DEXTracerouteTestPercentilesParams ¶
type DEXTracerouteTestPercentilesParams struct { AccountID param.Field[string] `path:"account_id,required"` // End time for aggregate metrics in ISO format TimeEnd param.Field[string] `query:"timeEnd,required"` // Start time for aggregate metrics in ISO format TimeStart param.Field[string] `query:"timeStart,required"` // Optionally filter result stats to a Cloudflare colo. Cannot be used in // combination with deviceId param. Colo param.Field[string] `query:"colo"` // Optionally filter result stats to a specific device(s). Cannot be used in // combination with colo param. DeviceID param.Field[[]string] `query:"deviceId"` }
func (DEXTracerouteTestPercentilesParams) URLQuery ¶
func (r DEXTracerouteTestPercentilesParams) URLQuery() (v url.Values)
URLQuery serializes DEXTracerouteTestPercentilesParams's query parameters as `url.Values`.
type DEXTracerouteTestPercentilesResponse ¶
type DEXTracerouteTestPercentilesResponse struct { HopsCount Percentiles `json:"hopsCount"` PacketLossPct Percentiles `json:"packetLossPct"` RoundTripTimeMs Percentiles `json:"roundTripTimeMs"` JSON dexTracerouteTestPercentilesResponseJSON `json:"-"` }
func (*DEXTracerouteTestPercentilesResponse) UnmarshalJSON ¶
func (r *DEXTracerouteTestPercentilesResponse) UnmarshalJSON(data []byte) (err error)
type DEXTracerouteTestPercentilesResponseEnvelope ¶
type DEXTracerouteTestPercentilesResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result DEXTracerouteTestPercentilesResponse `json:"result,required"` // Whether the API call was successful Success DEXTracerouteTestPercentilesResponseEnvelopeSuccess `json:"success,required"` JSON dexTracerouteTestPercentilesResponseEnvelopeJSON `json:"-"` }
func (*DEXTracerouteTestPercentilesResponseEnvelope) UnmarshalJSON ¶
func (r *DEXTracerouteTestPercentilesResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DEXTracerouteTestPercentilesResponseEnvelopeSuccess ¶
type DEXTracerouteTestPercentilesResponseEnvelopeSuccess bool
Whether the API call was successful
const (
DEXTracerouteTestPercentilesResponseEnvelopeSuccessTrue DEXTracerouteTestPercentilesResponseEnvelopeSuccess = true
)
func (DEXTracerouteTestPercentilesResponseEnvelopeSuccess) IsKnown ¶
func (r DEXTracerouteTestPercentilesResponseEnvelopeSuccess) IsKnown() bool
type DEXTracerouteTestResultNetworkPathGetResponse ¶
type DEXTracerouteTestResultNetworkPathGetResponse struct { // an array of the hops taken by the device to reach the end destination Hops []DEXTracerouteTestResultNetworkPathGetResponseHop `json:"hops,required"` // API Resource UUID tag. ResultID string `json:"resultId,required"` // date time of this traceroute test TimeStart string `json:"time_start,required"` // name of the device associated with this network path response DeviceName string `json:"deviceName"` // API Resource UUID tag. TestID string `json:"testId"` // name of the tracroute test TestName string `json:"testName"` JSON dexTracerouteTestResultNetworkPathGetResponseJSON `json:"-"` }
func (*DEXTracerouteTestResultNetworkPathGetResponse) UnmarshalJSON ¶
func (r *DEXTracerouteTestResultNetworkPathGetResponse) UnmarshalJSON(data []byte) (err error)
type DEXTracerouteTestResultNetworkPathGetResponseEnvelope ¶
type DEXTracerouteTestResultNetworkPathGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result DEXTracerouteTestResultNetworkPathGetResponse `json:"result,required"` // Whether the API call was successful Success DEXTracerouteTestResultNetworkPathGetResponseEnvelopeSuccess `json:"success,required"` JSON dexTracerouteTestResultNetworkPathGetResponseEnvelopeJSON `json:"-"` }
func (*DEXTracerouteTestResultNetworkPathGetResponseEnvelope) UnmarshalJSON ¶
func (r *DEXTracerouteTestResultNetworkPathGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DEXTracerouteTestResultNetworkPathGetResponseEnvelopeSuccess ¶
type DEXTracerouteTestResultNetworkPathGetResponseEnvelopeSuccess bool
Whether the API call was successful
const (
DEXTracerouteTestResultNetworkPathGetResponseEnvelopeSuccessTrue DEXTracerouteTestResultNetworkPathGetResponseEnvelopeSuccess = true
)
func (DEXTracerouteTestResultNetworkPathGetResponseEnvelopeSuccess) IsKnown ¶
func (r DEXTracerouteTestResultNetworkPathGetResponseEnvelopeSuccess) IsKnown() bool
type DEXTracerouteTestResultNetworkPathGetResponseHop ¶
type DEXTracerouteTestResultNetworkPathGetResponseHop struct { TTL int64 `json:"ttl,required"` ASN int64 `json:"asn,nullable"` Aso string `json:"aso,nullable"` IPAddress string `json:"ipAddress,nullable"` Location DEXTracerouteTestResultNetworkPathGetResponseHopsLocation `json:"location,nullable"` Mile DEXTracerouteTestResultNetworkPathGetResponseHopsMile `json:"mile,nullable"` Name string `json:"name,nullable"` PacketLossPct float64 `json:"packetLossPct,nullable"` RTTMs int64 `json:"rttMs,nullable"` JSON dexTracerouteTestResultNetworkPathGetResponseHopJSON `json:"-"` }
func (*DEXTracerouteTestResultNetworkPathGetResponseHop) UnmarshalJSON ¶
func (r *DEXTracerouteTestResultNetworkPathGetResponseHop) UnmarshalJSON(data []byte) (err error)
type DEXTracerouteTestResultNetworkPathGetResponseHopsLocation ¶
type DEXTracerouteTestResultNetworkPathGetResponseHopsLocation struct { City string `json:"city,nullable"` State string `json:"state,nullable"` Zip string `json:"zip,nullable"` JSON dexTracerouteTestResultNetworkPathGetResponseHopsLocationJSON `json:"-"` }
func (*DEXTracerouteTestResultNetworkPathGetResponseHopsLocation) UnmarshalJSON ¶
func (r *DEXTracerouteTestResultNetworkPathGetResponseHopsLocation) UnmarshalJSON(data []byte) (err error)
type DEXTracerouteTestResultNetworkPathGetResponseHopsMile ¶
type DEXTracerouteTestResultNetworkPathGetResponseHopsMile string
const ( DEXTracerouteTestResultNetworkPathGetResponseHopsMileClientToApp DEXTracerouteTestResultNetworkPathGetResponseHopsMile = "client-to-app" DEXTracerouteTestResultNetworkPathGetResponseHopsMileClientToCfEgress DEXTracerouteTestResultNetworkPathGetResponseHopsMile = "client-to-cf-egress" DEXTracerouteTestResultNetworkPathGetResponseHopsMileClientToCfIngress DEXTracerouteTestResultNetworkPathGetResponseHopsMile = "client-to-cf-ingress" DEXTracerouteTestResultNetworkPathGetResponseHopsMileClientToIsp DEXTracerouteTestResultNetworkPathGetResponseHopsMile = "client-to-isp" )
func (DEXTracerouteTestResultNetworkPathGetResponseHopsMile) IsKnown ¶
func (r DEXTracerouteTestResultNetworkPathGetResponseHopsMile) IsKnown() bool
type DEXTracerouteTestResultNetworkPathService ¶
type DEXTracerouteTestResultNetworkPathService struct {
Options []option.RequestOption
}
DEXTracerouteTestResultNetworkPathService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewDEXTracerouteTestResultNetworkPathService method instead.
func NewDEXTracerouteTestResultNetworkPathService ¶
func NewDEXTracerouteTestResultNetworkPathService(opts ...option.RequestOption) (r *DEXTracerouteTestResultNetworkPathService)
NewDEXTracerouteTestResultNetworkPathService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*DEXTracerouteTestResultNetworkPathService) Get ¶
func (r *DEXTracerouteTestResultNetworkPathService) Get(ctx context.Context, testResultID string, query DEXTracerouteTestResultNetworkPathGetParams, opts ...option.RequestOption) (res *DEXTracerouteTestResultNetworkPathGetResponse, err error)
Get a breakdown of hops and performance metrics for a specific traceroute test run
type DEXTracerouteTestResultService ¶
type DEXTracerouteTestResultService struct { Options []option.RequestOption NetworkPath *DEXTracerouteTestResultNetworkPathService }
DEXTracerouteTestResultService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewDEXTracerouteTestResultService method instead.
func NewDEXTracerouteTestResultService ¶
func NewDEXTracerouteTestResultService(opts ...option.RequestOption) (r *DEXTracerouteTestResultService)
NewDEXTracerouteTestResultService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
type DEXTracerouteTestService ¶
type DEXTracerouteTestService struct {
Options []option.RequestOption
}
DEXTracerouteTestService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewDEXTracerouteTestService method instead.
func NewDEXTracerouteTestService ¶
func NewDEXTracerouteTestService(opts ...option.RequestOption) (r *DEXTracerouteTestService)
NewDEXTracerouteTestService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*DEXTracerouteTestService) Get ¶
func (r *DEXTracerouteTestService) Get(ctx context.Context, testID string, params DEXTracerouteTestGetParams, opts ...option.RequestOption) (res *Traceroute, err error)
Get test details and aggregate performance metrics for an traceroute test for a given time period between 1 hour and 7 days.
func (*DEXTracerouteTestService) NetworkPath ¶
func (r *DEXTracerouteTestService) NetworkPath(ctx context.Context, testID string, params DEXTracerouteTestNetworkPathParams, opts ...option.RequestOption) (res *NetworkPath, err error)
Get a breakdown of metrics by hop for individual traceroute test runs
func (*DEXTracerouteTestService) Percentiles ¶
func (r *DEXTracerouteTestService) Percentiles(ctx context.Context, testID string, params DEXTracerouteTestPercentilesParams, opts ...option.RequestOption) (res *DEXTracerouteTestPercentilesResponse, err error)
Get percentiles for a traceroute test for a given time period between 1 hour and 7 days.
type DLPDatasetDeleteParams ¶
type DLPDatasetGetParams ¶
type DLPDatasetGetResponseEnvelope ¶
type DLPDatasetGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Success bool `json:"success,required"` Result Dataset `json:"result"` ResultInfo DLPDatasetGetResponseEnvelopeResultInfo `json:"result_info"` JSON dlpDatasetGetResponseEnvelopeJSON `json:"-"` }
func (*DLPDatasetGetResponseEnvelope) UnmarshalJSON ¶
func (r *DLPDatasetGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DLPDatasetGetResponseEnvelopeResultInfo ¶
type DLPDatasetGetResponseEnvelopeResultInfo struct { // total number of pages Count int64 `json:"count,required"` // current page Page int64 `json:"page,required"` // number of items per page PerPage int64 `json:"per_page,required"` // total number of items TotalCount int64 `json:"total_count,required"` JSON dlpDatasetGetResponseEnvelopeResultInfoJSON `json:"-"` }
func (*DLPDatasetGetResponseEnvelopeResultInfo) UnmarshalJSON ¶
func (r *DLPDatasetGetResponseEnvelopeResultInfo) UnmarshalJSON(data []byte) (err error)
type DLPDatasetListParams ¶
type DLPDatasetNewParams ¶
type DLPDatasetNewParams struct { AccountID param.Field[string] `path:"account_id,required"` Name param.Field[string] `json:"name,required"` Description param.Field[string] `json:"description"` // Generate a secret dataset. // // If true, the response will include a secret to use with the EDM encoder. If // false, the response has no secret and the dataset is uploaded in plaintext. Secret param.Field[bool] `json:"secret"` }
func (DLPDatasetNewParams) MarshalJSON ¶
func (r DLPDatasetNewParams) MarshalJSON() (data []byte, err error)
type DLPDatasetNewResponseEnvelope ¶
type DLPDatasetNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Success bool `json:"success,required"` Result DatasetCreation `json:"result"` ResultInfo DLPDatasetNewResponseEnvelopeResultInfo `json:"result_info"` JSON dlpDatasetNewResponseEnvelopeJSON `json:"-"` }
func (*DLPDatasetNewResponseEnvelope) UnmarshalJSON ¶
func (r *DLPDatasetNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DLPDatasetNewResponseEnvelopeResultInfo ¶
type DLPDatasetNewResponseEnvelopeResultInfo struct { // total number of pages Count int64 `json:"count,required"` // current page Page int64 `json:"page,required"` // number of items per page PerPage int64 `json:"per_page,required"` // total number of items TotalCount int64 `json:"total_count,required"` JSON dlpDatasetNewResponseEnvelopeResultInfoJSON `json:"-"` }
func (*DLPDatasetNewResponseEnvelopeResultInfo) UnmarshalJSON ¶
func (r *DLPDatasetNewResponseEnvelopeResultInfo) UnmarshalJSON(data []byte) (err error)
type DLPDatasetService ¶
type DLPDatasetService struct { Options []option.RequestOption Upload *DLPDatasetUploadService }
DLPDatasetService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewDLPDatasetService method instead.
func NewDLPDatasetService ¶
func NewDLPDatasetService(opts ...option.RequestOption) (r *DLPDatasetService)
NewDLPDatasetService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*DLPDatasetService) Delete ¶
func (r *DLPDatasetService) Delete(ctx context.Context, datasetID string, body DLPDatasetDeleteParams, opts ...option.RequestOption) (err error)
Delete a dataset.
This deletes all versions of the dataset.
func (*DLPDatasetService) Get ¶
func (r *DLPDatasetService) Get(ctx context.Context, datasetID string, query DLPDatasetGetParams, opts ...option.RequestOption) (res *Dataset, err error)
Fetch a specific dataset with information about available versions.
func (*DLPDatasetService) List ¶
func (r *DLPDatasetService) List(ctx context.Context, query DLPDatasetListParams, opts ...option.RequestOption) (res *pagination.SinglePage[Dataset], err error)
Fetch all datasets with information about available versions.
func (*DLPDatasetService) ListAutoPaging ¶
func (r *DLPDatasetService) ListAutoPaging(ctx context.Context, query DLPDatasetListParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[Dataset]
Fetch all datasets with information about available versions.
func (*DLPDatasetService) New ¶
func (r *DLPDatasetService) New(ctx context.Context, params DLPDatasetNewParams, opts ...option.RequestOption) (res *DatasetCreation, err error)
Create a new dataset.
func (*DLPDatasetService) Update ¶
func (r *DLPDatasetService) Update(ctx context.Context, datasetID string, params DLPDatasetUpdateParams, opts ...option.RequestOption) (res *Dataset, err error)
Update details about a dataset.
type DLPDatasetUpdateParams ¶
type DLPDatasetUpdateParams struct { AccountID param.Field[string] `path:"account_id,required"` Description param.Field[string] `json:"description"` Name param.Field[string] `json:"name"` }
func (DLPDatasetUpdateParams) MarshalJSON ¶
func (r DLPDatasetUpdateParams) MarshalJSON() (data []byte, err error)
type DLPDatasetUpdateResponseEnvelope ¶
type DLPDatasetUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Success bool `json:"success,required"` Result Dataset `json:"result"` ResultInfo DLPDatasetUpdateResponseEnvelopeResultInfo `json:"result_info"` JSON dlpDatasetUpdateResponseEnvelopeJSON `json:"-"` }
func (*DLPDatasetUpdateResponseEnvelope) UnmarshalJSON ¶
func (r *DLPDatasetUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DLPDatasetUpdateResponseEnvelopeResultInfo ¶
type DLPDatasetUpdateResponseEnvelopeResultInfo struct { // total number of pages Count int64 `json:"count,required"` // current page Page int64 `json:"page,required"` // number of items per page PerPage int64 `json:"per_page,required"` // total number of items TotalCount int64 `json:"total_count,required"` JSON dlpDatasetUpdateResponseEnvelopeResultInfoJSON `json:"-"` }
func (*DLPDatasetUpdateResponseEnvelopeResultInfo) UnmarshalJSON ¶
func (r *DLPDatasetUpdateResponseEnvelopeResultInfo) UnmarshalJSON(data []byte) (err error)
type DLPDatasetUploadEditParams ¶
type DLPDatasetUploadEditParams struct { AccountID param.Field[string] `path:"account_id,required"` Body interface{} `json:"body,required"` }
func (DLPDatasetUploadEditParams) MarshalJSON ¶
func (r DLPDatasetUploadEditParams) MarshalJSON() (data []byte, err error)
type DLPDatasetUploadEditResponseEnvelope ¶
type DLPDatasetUploadEditResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Success bool `json:"success,required"` Result Dataset `json:"result"` ResultInfo DLPDatasetUploadEditResponseEnvelopeResultInfo `json:"result_info"` JSON dlpDatasetUploadEditResponseEnvelopeJSON `json:"-"` }
func (*DLPDatasetUploadEditResponseEnvelope) UnmarshalJSON ¶
func (r *DLPDatasetUploadEditResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DLPDatasetUploadEditResponseEnvelopeResultInfo ¶
type DLPDatasetUploadEditResponseEnvelopeResultInfo struct { // total number of pages Count int64 `json:"count,required"` // current page Page int64 `json:"page,required"` // number of items per page PerPage int64 `json:"per_page,required"` // total number of items TotalCount int64 `json:"total_count,required"` JSON dlpDatasetUploadEditResponseEnvelopeResultInfoJSON `json:"-"` }
func (*DLPDatasetUploadEditResponseEnvelopeResultInfo) UnmarshalJSON ¶
func (r *DLPDatasetUploadEditResponseEnvelopeResultInfo) UnmarshalJSON(data []byte) (err error)
type DLPDatasetUploadNewResponseEnvelope ¶
type DLPDatasetUploadNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Success bool `json:"success,required"` Result NewVersion `json:"result"` ResultInfo DLPDatasetUploadNewResponseEnvelopeResultInfo `json:"result_info"` JSON dlpDatasetUploadNewResponseEnvelopeJSON `json:"-"` }
func (*DLPDatasetUploadNewResponseEnvelope) UnmarshalJSON ¶
func (r *DLPDatasetUploadNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DLPDatasetUploadNewResponseEnvelopeResultInfo ¶
type DLPDatasetUploadNewResponseEnvelopeResultInfo struct { // total number of pages Count int64 `json:"count,required"` // current page Page int64 `json:"page,required"` // number of items per page PerPage int64 `json:"per_page,required"` // total number of items TotalCount int64 `json:"total_count,required"` JSON dlpDatasetUploadNewResponseEnvelopeResultInfoJSON `json:"-"` }
func (*DLPDatasetUploadNewResponseEnvelopeResultInfo) UnmarshalJSON ¶
func (r *DLPDatasetUploadNewResponseEnvelopeResultInfo) UnmarshalJSON(data []byte) (err error)
type DLPDatasetUploadService ¶
type DLPDatasetUploadService struct {
Options []option.RequestOption
}
DLPDatasetUploadService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewDLPDatasetUploadService method instead.
func NewDLPDatasetUploadService ¶
func NewDLPDatasetUploadService(opts ...option.RequestOption) (r *DLPDatasetUploadService)
NewDLPDatasetUploadService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*DLPDatasetUploadService) Edit ¶
func (r *DLPDatasetUploadService) Edit(ctx context.Context, datasetID string, version int64, params DLPDatasetUploadEditParams, opts ...option.RequestOption) (res *Dataset, err error)
Upload a new version of a dataset.
func (*DLPDatasetUploadService) New ¶
func (r *DLPDatasetUploadService) New(ctx context.Context, datasetID string, body DLPDatasetUploadNewParams, opts ...option.RequestOption) (res *NewVersion, err error)
Prepare to upload a new version of a dataset.
type DLPPatternService ¶
type DLPPatternService struct {
Options []option.RequestOption
}
DLPPatternService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewDLPPatternService method instead.
func NewDLPPatternService ¶
func NewDLPPatternService(opts ...option.RequestOption) (r *DLPPatternService)
NewDLPPatternService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*DLPPatternService) Validate ¶
func (r *DLPPatternService) Validate(ctx context.Context, params DLPPatternValidateParams, opts ...option.RequestOption) (res *logpush.OwnershipValidation, err error)
Validates whether this pattern is a valid regular expression. Rejects it if the regular expression is too complex or can match an unbounded-length string. Your regex will be rejected if it uses the Kleene Star -- be sure to bound the maximum number of characters that can be matched.
type DLPPatternValidateParams ¶
type DLPPatternValidateParams struct { // Identifier AccountID param.Field[string] `path:"account_id,required"` // The regex pattern. Regex param.Field[string] `json:"regex,required"` }
func (DLPPatternValidateParams) MarshalJSON ¶
func (r DLPPatternValidateParams) MarshalJSON() (data []byte, err error)
type DLPPatternValidateResponseEnvelope ¶
type DLPPatternValidateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result logpush.OwnershipValidation `json:"result,required,nullable"` // Whether the API call was successful Success DLPPatternValidateResponseEnvelopeSuccess `json:"success,required"` JSON dlpPatternValidateResponseEnvelopeJSON `json:"-"` }
func (*DLPPatternValidateResponseEnvelope) UnmarshalJSON ¶
func (r *DLPPatternValidateResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DLPPatternValidateResponseEnvelopeSuccess ¶
type DLPPatternValidateResponseEnvelopeSuccess bool
Whether the API call was successful
const (
DLPPatternValidateResponseEnvelopeSuccessTrue DLPPatternValidateResponseEnvelopeSuccess = true
)
func (DLPPatternValidateResponseEnvelopeSuccess) IsKnown ¶
func (r DLPPatternValidateResponseEnvelopeSuccess) IsKnown() bool
type DLPPayloadLogGetParams ¶
type DLPPayloadLogGetResponse ¶
type DLPPayloadLogGetResponse struct { PublicKey string `json:"public_key,required,nullable"` JSON dlpPayloadLogGetResponseJSON `json:"-"` }
func (*DLPPayloadLogGetResponse) UnmarshalJSON ¶
func (r *DLPPayloadLogGetResponse) UnmarshalJSON(data []byte) (err error)
type DLPPayloadLogGetResponseEnvelope ¶
type DLPPayloadLogGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result DLPPayloadLogGetResponse `json:"result,required"` // Whether the API call was successful Success DLPPayloadLogGetResponseEnvelopeSuccess `json:"success,required"` JSON dlpPayloadLogGetResponseEnvelopeJSON `json:"-"` }
func (*DLPPayloadLogGetResponseEnvelope) UnmarshalJSON ¶
func (r *DLPPayloadLogGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DLPPayloadLogGetResponseEnvelopeSuccess ¶
type DLPPayloadLogGetResponseEnvelopeSuccess bool
Whether the API call was successful
const (
DLPPayloadLogGetResponseEnvelopeSuccessTrue DLPPayloadLogGetResponseEnvelopeSuccess = true
)
func (DLPPayloadLogGetResponseEnvelopeSuccess) IsKnown ¶
func (r DLPPayloadLogGetResponseEnvelopeSuccess) IsKnown() bool
type DLPPayloadLogService ¶
type DLPPayloadLogService struct {
Options []option.RequestOption
}
DLPPayloadLogService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewDLPPayloadLogService method instead.
func NewDLPPayloadLogService ¶
func NewDLPPayloadLogService(opts ...option.RequestOption) (r *DLPPayloadLogService)
NewDLPPayloadLogService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*DLPPayloadLogService) Get ¶
func (r *DLPPayloadLogService) Get(ctx context.Context, query DLPPayloadLogGetParams, opts ...option.RequestOption) (res *DLPPayloadLogGetResponse, err error)
Gets the current DLP payload log settings for this account.
func (*DLPPayloadLogService) Update ¶
func (r *DLPPayloadLogService) Update(ctx context.Context, params DLPPayloadLogUpdateParams, opts ...option.RequestOption) (res *DLPPayloadLogUpdateResponse, err error)
Updates the DLP payload log settings for this account.
type DLPPayloadLogUpdateParams ¶
type DLPPayloadLogUpdateParams struct { // Identifier AccountID param.Field[string] `path:"account_id,required"` // The public key to use when encrypting extracted payloads, as a base64 string PublicKey param.Field[string] `json:"public_key,required"` }
func (DLPPayloadLogUpdateParams) MarshalJSON ¶
func (r DLPPayloadLogUpdateParams) MarshalJSON() (data []byte, err error)
type DLPPayloadLogUpdateResponse ¶
type DLPPayloadLogUpdateResponse struct { PublicKey string `json:"public_key,required,nullable"` JSON dlpPayloadLogUpdateResponseJSON `json:"-"` }
func (*DLPPayloadLogUpdateResponse) UnmarshalJSON ¶
func (r *DLPPayloadLogUpdateResponse) UnmarshalJSON(data []byte) (err error)
type DLPPayloadLogUpdateResponseEnvelope ¶
type DLPPayloadLogUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result DLPPayloadLogUpdateResponse `json:"result,required"` // Whether the API call was successful Success DLPPayloadLogUpdateResponseEnvelopeSuccess `json:"success,required"` JSON dlpPayloadLogUpdateResponseEnvelopeJSON `json:"-"` }
func (*DLPPayloadLogUpdateResponseEnvelope) UnmarshalJSON ¶
func (r *DLPPayloadLogUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DLPPayloadLogUpdateResponseEnvelopeSuccess ¶
type DLPPayloadLogUpdateResponseEnvelopeSuccess bool
Whether the API call was successful
const (
DLPPayloadLogUpdateResponseEnvelopeSuccessTrue DLPPayloadLogUpdateResponseEnvelopeSuccess = true
)
func (DLPPayloadLogUpdateResponseEnvelopeSuccess) IsKnown ¶
func (r DLPPayloadLogUpdateResponseEnvelopeSuccess) IsKnown() bool
type DLPProfileCustomDeleteParams ¶
type DLPProfileCustomDeleteParams struct { // Identifier AccountID param.Field[string] `path:"account_id,required"` Body interface{} `json:"body,required"` }
func (DLPProfileCustomDeleteParams) MarshalJSON ¶
func (r DLPProfileCustomDeleteParams) MarshalJSON() (data []byte, err error)
type DLPProfileCustomDeleteResponseEnvelope ¶
type DLPProfileCustomDeleteResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result DLPProfileCustomDeleteResponseUnion `json:"result,required"` // Whether the API call was successful Success DLPProfileCustomDeleteResponseEnvelopeSuccess `json:"success,required"` JSON dlpProfileCustomDeleteResponseEnvelopeJSON `json:"-"` }
func (*DLPProfileCustomDeleteResponseEnvelope) UnmarshalJSON ¶
func (r *DLPProfileCustomDeleteResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DLPProfileCustomDeleteResponseEnvelopeSuccess ¶
type DLPProfileCustomDeleteResponseEnvelopeSuccess bool
Whether the API call was successful
const (
DLPProfileCustomDeleteResponseEnvelopeSuccessTrue DLPProfileCustomDeleteResponseEnvelopeSuccess = true
)
func (DLPProfileCustomDeleteResponseEnvelopeSuccess) IsKnown ¶
func (r DLPProfileCustomDeleteResponseEnvelopeSuccess) IsKnown() bool
type DLPProfileCustomDeleteResponseUnion ¶
type DLPProfileCustomDeleteResponseUnion interface {
ImplementsZeroTrustDLPProfileCustomDeleteResponseUnion()
}
Union satisfied by zero_trust.DLPProfileCustomDeleteResponseUnknown or shared.UnionString.
type DLPProfileCustomGetResponseEnvelope ¶
type DLPProfileCustomGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result CustomProfile `json:"result,required"` // Whether the API call was successful Success DLPProfileCustomGetResponseEnvelopeSuccess `json:"success,required"` JSON dlpProfileCustomGetResponseEnvelopeJSON `json:"-"` }
func (*DLPProfileCustomGetResponseEnvelope) UnmarshalJSON ¶
func (r *DLPProfileCustomGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DLPProfileCustomGetResponseEnvelopeSuccess ¶
type DLPProfileCustomGetResponseEnvelopeSuccess bool
Whether the API call was successful
const (
DLPProfileCustomGetResponseEnvelopeSuccessTrue DLPProfileCustomGetResponseEnvelopeSuccess = true
)
func (DLPProfileCustomGetResponseEnvelopeSuccess) IsKnown ¶
func (r DLPProfileCustomGetResponseEnvelopeSuccess) IsKnown() bool
type DLPProfileCustomNewParams ¶
type DLPProfileCustomNewParams struct { // Identifier AccountID param.Field[string] `path:"account_id,required"` Profiles param.Field[[]DLPProfileCustomNewParamsProfile] `json:"profiles,required"` }
func (DLPProfileCustomNewParams) MarshalJSON ¶
func (r DLPProfileCustomNewParams) MarshalJSON() (data []byte, err error)
type DLPProfileCustomNewParamsProfile ¶
type DLPProfileCustomNewParamsProfile struct { // Related DLP policies will trigger when the match count exceeds the number set. AllowedMatchCount param.Field[float64] `json:"allowed_match_count"` // Scan the context of predefined entries to only return matches surrounded by // keywords. ContextAwareness param.Field[ContextAwarenessParam] `json:"context_awareness"` // The description of the profile. Description param.Field[string] `json:"description"` // The entries for this profile. Entries param.Field[[]DLPProfileCustomNewParamsProfilesEntry] `json:"entries"` // The name of the profile. Name param.Field[string] `json:"name"` // If true, scan images via OCR to determine if any text present matches filters. OCREnabled param.Field[bool] `json:"ocr_enabled"` }
func (DLPProfileCustomNewParamsProfile) MarshalJSON ¶
func (r DLPProfileCustomNewParamsProfile) MarshalJSON() (data []byte, err error)
type DLPProfileCustomNewParamsProfilesEntry ¶
type DLPProfileCustomNewParamsProfilesEntry struct { // Whether the entry is enabled or not. Enabled param.Field[bool] `json:"enabled,required"` // The name of the entry. Name param.Field[string] `json:"name,required"` // A pattern that matches an entry Pattern param.Field[PatternParam] `json:"pattern,required"` }
A custom entry create payload
func (DLPProfileCustomNewParamsProfilesEntry) MarshalJSON ¶
func (r DLPProfileCustomNewParamsProfilesEntry) MarshalJSON() (data []byte, err error)
type DLPProfileCustomNewResponseEnvelope ¶
type DLPProfileCustomNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result []CustomProfile `json:"result,required,nullable"` // Whether the API call was successful Success DLPProfileCustomNewResponseEnvelopeSuccess `json:"success,required"` ResultInfo DLPProfileCustomNewResponseEnvelopeResultInfo `json:"result_info"` JSON dlpProfileCustomNewResponseEnvelopeJSON `json:"-"` }
func (*DLPProfileCustomNewResponseEnvelope) UnmarshalJSON ¶
func (r *DLPProfileCustomNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DLPProfileCustomNewResponseEnvelopeResultInfo ¶
type DLPProfileCustomNewResponseEnvelopeResultInfo struct { // Total number of results for the requested service Count float64 `json:"count"` // Current page within paginated list of results Page float64 `json:"page"` // Number of results per page of results PerPage float64 `json:"per_page"` // Total results available without any search parameters TotalCount float64 `json:"total_count"` JSON dlpProfileCustomNewResponseEnvelopeResultInfoJSON `json:"-"` }
func (*DLPProfileCustomNewResponseEnvelopeResultInfo) UnmarshalJSON ¶
func (r *DLPProfileCustomNewResponseEnvelopeResultInfo) UnmarshalJSON(data []byte) (err error)
type DLPProfileCustomNewResponseEnvelopeSuccess ¶
type DLPProfileCustomNewResponseEnvelopeSuccess bool
Whether the API call was successful
const (
DLPProfileCustomNewResponseEnvelopeSuccessTrue DLPProfileCustomNewResponseEnvelopeSuccess = true
)
func (DLPProfileCustomNewResponseEnvelopeSuccess) IsKnown ¶
func (r DLPProfileCustomNewResponseEnvelopeSuccess) IsKnown() bool
type DLPProfileCustomService ¶
type DLPProfileCustomService struct {
Options []option.RequestOption
}
DLPProfileCustomService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewDLPProfileCustomService method instead.
func NewDLPProfileCustomService ¶
func NewDLPProfileCustomService(opts ...option.RequestOption) (r *DLPProfileCustomService)
NewDLPProfileCustomService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*DLPProfileCustomService) Delete ¶
func (r *DLPProfileCustomService) Delete(ctx context.Context, profileID string, params DLPProfileCustomDeleteParams, opts ...option.RequestOption) (res *DLPProfileCustomDeleteResponseUnion, err error)
Deletes a DLP custom profile.
func (*DLPProfileCustomService) Get ¶
func (r *DLPProfileCustomService) Get(ctx context.Context, profileID string, query DLPProfileCustomGetParams, opts ...option.RequestOption) (res *CustomProfile, err error)
Fetches a custom DLP profile.
func (*DLPProfileCustomService) New ¶
func (r *DLPProfileCustomService) New(ctx context.Context, params DLPProfileCustomNewParams, opts ...option.RequestOption) (res *[]CustomProfile, err error)
Creates a set of DLP custom profiles.
func (*DLPProfileCustomService) Update ¶
func (r *DLPProfileCustomService) Update(ctx context.Context, profileID string, params DLPProfileCustomUpdateParams, opts ...option.RequestOption) (res *CustomProfile, err error)
Updates a DLP custom profile.
type DLPProfileCustomUpdateParams ¶
type DLPProfileCustomUpdateParams struct { // Identifier AccountID param.Field[string] `path:"account_id,required"` // Related DLP policies will trigger when the match count exceeds the number set. AllowedMatchCount param.Field[float64] `json:"allowed_match_count"` // Scan the context of predefined entries to only return matches surrounded by // keywords. ContextAwareness param.Field[ContextAwarenessParam] `json:"context_awareness"` // The description of the profile. Description param.Field[string] `json:"description"` // The custom entries for this profile. Array elements with IDs are modifying the // existing entry with that ID. Elements without ID will create new entries. Any // entry not in the list will be deleted. Entries param.Field[[]DLPProfileCustomUpdateParamsEntry] `json:"entries"` // The name of the profile. Name param.Field[string] `json:"name"` // If true, scan images via OCR to determine if any text present matches filters. OCREnabled param.Field[bool] `json:"ocr_enabled"` // Microsoft Information Protection profiles). SharedEntries param.Field[[]DLPProfileCustomUpdateParamsSharedEntryUnion] `json:"shared_entries"` }
func (DLPProfileCustomUpdateParams) MarshalJSON ¶
func (r DLPProfileCustomUpdateParams) MarshalJSON() (data []byte, err error)
type DLPProfileCustomUpdateParamsEntry ¶
type DLPProfileCustomUpdateParamsEntry struct { // Whether the entry is enabled or not. Enabled param.Field[bool] `json:"enabled"` // The name of the entry. Name param.Field[string] `json:"name"` // A pattern that matches an entry Pattern param.Field[PatternParam] `json:"pattern"` // ID of the parent profile ProfileID param.Field[interface{}] `json:"profile_id"` }
A custom entry that matches a profile
func (DLPProfileCustomUpdateParamsEntry) MarshalJSON ¶
func (r DLPProfileCustomUpdateParamsEntry) MarshalJSON() (data []byte, err error)
type DLPProfileCustomUpdateParamsSharedEntriesDLPSharedEntryUpdateIntegration ¶
type DLPProfileCustomUpdateParamsSharedEntriesDLPSharedEntryUpdateIntegration struct { param.Field[bool] `json:"enabled"` }Enabled
Properties of an integration entry in a custom profile
func (DLPProfileCustomUpdateParamsSharedEntriesDLPSharedEntryUpdateIntegration) MarshalJSON ¶
func (r DLPProfileCustomUpdateParamsSharedEntriesDLPSharedEntryUpdateIntegration) MarshalJSON() (data []byte, err error)
type DLPProfileCustomUpdateParamsSharedEntriesDLPSharedEntryUpdatePredefined ¶
type DLPProfileCustomUpdateParamsSharedEntriesDLPSharedEntryUpdatePredefined struct { param.Field[bool] `json:"enabled"` }Enabled
Properties of a predefined entry in a custom profile
func (DLPProfileCustomUpdateParamsSharedEntriesDLPSharedEntryUpdatePredefined) MarshalJSON ¶
func (r DLPProfileCustomUpdateParamsSharedEntriesDLPSharedEntryUpdatePredefined) MarshalJSON() (data []byte, err error)
type DLPProfileCustomUpdateParamsSharedEntry ¶
Properties of a predefined entry in a custom profile
func (DLPProfileCustomUpdateParamsSharedEntry) MarshalJSON ¶
func (r DLPProfileCustomUpdateParamsSharedEntry) MarshalJSON() (data []byte, err error)
type DLPProfileCustomUpdateParamsSharedEntryUnion ¶
type DLPProfileCustomUpdateParamsSharedEntryUnion interface {
// contains filtered or unexported methods
}
Properties of a predefined entry in a custom profile
Satisfied by zero_trust.DLPProfileCustomUpdateParamsSharedEntriesDLPSharedEntryUpdatePredefined, zero_trust.DLPProfileCustomUpdateParamsSharedEntriesDLPSharedEntryUpdateIntegration, DLPProfileCustomUpdateParamsSharedEntry.
type DLPProfileGetParams ¶
type DLPProfileGetResponse ¶
type DLPProfileGetResponse struct { // Related DLP policies will trigger when the match count exceeds the number set. AllowedMatchCount float64 `json:"allowed_match_count"` // Scan the context of predefined entries to only return matches surrounded by // keywords. ContextAwareness ContextAwareness `json:"context_awareness"` Entries interface{} `json:"entries,required"` // The ID for this profile ID string `json:"id"` // The name of the profile. Name string `json:"name"` // If true, scan images via OCR to determine if any text present matches filters. OCREnabled bool `json:"ocr_enabled"` // The type of the profile. Type DLPProfileGetResponseType `json:"type"` CreatedAt time.Time `json:"created_at" format:"date-time"` // The description of the profile. Description string `json:"description"` UpdatedAt time.Time `json:"updated_at" format:"date-time"` JSON dlpProfileGetResponseJSON `json:"-"` // contains filtered or unexported fields }
func (DLPProfileGetResponse) AsUnion ¶
func (r DLPProfileGetResponse) AsUnion() DLPProfileGetResponseUnion
func (*DLPProfileGetResponse) UnmarshalJSON ¶
func (r *DLPProfileGetResponse) UnmarshalJSON(data []byte) (err error)
type DLPProfileGetResponseDLPIntegrationProfile ¶
type DLPProfileGetResponseDLPIntegrationProfile struct { // The ID for this profile ID string `json:"id"` CreatedAt time.Time `json:"created_at" format:"date-time"` // The description of the profile. Description string `json:"description"` // The entries for this profile. Entries []DLPProfileGetResponseDLPIntegrationProfileEntry `json:"entries"` // The name of the profile. Name string `json:"name"` // The type of the profile. Type DLPProfileGetResponseDLPIntegrationProfileType `json:"type"` UpdatedAt time.Time `json:"updated_at" format:"date-time"` JSON dlpProfileGetResponseDLPIntegrationProfileJSON `json:"-"` }
func (*DLPProfileGetResponseDLPIntegrationProfile) UnmarshalJSON ¶
func (r *DLPProfileGetResponseDLPIntegrationProfile) UnmarshalJSON(data []byte) (err error)
type DLPProfileGetResponseDLPIntegrationProfileEntry ¶
type DLPProfileGetResponseDLPIntegrationProfileEntry struct { // The ID for this entry ID string `json:"id"` CreatedAt time.Time `json:"created_at" format:"date-time"` // Whether the entry is enabled or not. Enabled bool `json:"enabled"` // The name of the entry. Name string `json:"name"` // ID of the parent profile ProfileID interface{} `json:"profile_id"` UpdatedAt time.Time `json:"updated_at" format:"date-time"` JSON dlpProfileGetResponseDLPIntegrationProfileEntryJSON `json:"-"` }
An entry derived from an integration
func (*DLPProfileGetResponseDLPIntegrationProfileEntry) UnmarshalJSON ¶
func (r *DLPProfileGetResponseDLPIntegrationProfileEntry) UnmarshalJSON(data []byte) (err error)
type DLPProfileGetResponseDLPIntegrationProfileType ¶
type DLPProfileGetResponseDLPIntegrationProfileType string
The type of the profile.
const (
DLPProfileGetResponseDLPIntegrationProfileTypeIntegration DLPProfileGetResponseDLPIntegrationProfileType = "integration"
)
func (DLPProfileGetResponseDLPIntegrationProfileType) IsKnown ¶
func (r DLPProfileGetResponseDLPIntegrationProfileType) IsKnown() bool
type DLPProfileGetResponseEnvelope ¶
type DLPProfileGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result DLPProfileGetResponse `json:"result,required"` // Whether the API call was successful Success DLPProfileGetResponseEnvelopeSuccess `json:"success,required"` JSON dlpProfileGetResponseEnvelopeJSON `json:"-"` }
func (*DLPProfileGetResponseEnvelope) UnmarshalJSON ¶
func (r *DLPProfileGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DLPProfileGetResponseEnvelopeSuccess ¶
type DLPProfileGetResponseEnvelopeSuccess bool
Whether the API call was successful
const (
DLPProfileGetResponseEnvelopeSuccessTrue DLPProfileGetResponseEnvelopeSuccess = true
)
func (DLPProfileGetResponseEnvelopeSuccess) IsKnown ¶
func (r DLPProfileGetResponseEnvelopeSuccess) IsKnown() bool
type DLPProfileGetResponseType ¶
type DLPProfileGetResponseType string
The type of the profile.
const ( DLPProfileGetResponseTypePredefined DLPProfileGetResponseType = "predefined" DLPProfileGetResponseTypeCustom DLPProfileGetResponseType = "custom" DLPProfileGetResponseTypeIntegration DLPProfileGetResponseType = "integration" )
func (DLPProfileGetResponseType) IsKnown ¶
func (r DLPProfileGetResponseType) IsKnown() bool
type DLPProfileGetResponseUnion ¶
type DLPProfileGetResponseUnion interface {
// contains filtered or unexported methods
}
Union satisfied by zero_trust.PredefinedProfile, zero_trust.CustomProfile or zero_trust.DLPProfileGetResponseDLPIntegrationProfile.
type DLPProfileListParams ¶
type DLPProfilePredefinedGetResponseEnvelope ¶
type DLPProfilePredefinedGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result PredefinedProfile `json:"result,required"` // Whether the API call was successful Success DLPProfilePredefinedGetResponseEnvelopeSuccess `json:"success,required"` JSON dlpProfilePredefinedGetResponseEnvelopeJSON `json:"-"` }
func (*DLPProfilePredefinedGetResponseEnvelope) UnmarshalJSON ¶
func (r *DLPProfilePredefinedGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DLPProfilePredefinedGetResponseEnvelopeSuccess ¶
type DLPProfilePredefinedGetResponseEnvelopeSuccess bool
Whether the API call was successful
const (
DLPProfilePredefinedGetResponseEnvelopeSuccessTrue DLPProfilePredefinedGetResponseEnvelopeSuccess = true
)
func (DLPProfilePredefinedGetResponseEnvelopeSuccess) IsKnown ¶
func (r DLPProfilePredefinedGetResponseEnvelopeSuccess) IsKnown() bool
type DLPProfilePredefinedService ¶
type DLPProfilePredefinedService struct {
Options []option.RequestOption
}
DLPProfilePredefinedService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewDLPProfilePredefinedService method instead.
func NewDLPProfilePredefinedService ¶
func NewDLPProfilePredefinedService(opts ...option.RequestOption) (r *DLPProfilePredefinedService)
NewDLPProfilePredefinedService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*DLPProfilePredefinedService) Get ¶
func (r *DLPProfilePredefinedService) Get(ctx context.Context, profileID string, query DLPProfilePredefinedGetParams, opts ...option.RequestOption) (res *PredefinedProfile, err error)
Fetches a predefined DLP profile.
func (*DLPProfilePredefinedService) Update ¶
func (r *DLPProfilePredefinedService) Update(ctx context.Context, profileID string, params DLPProfilePredefinedUpdateParams, opts ...option.RequestOption) (res *PredefinedProfile, err error)
Updates a DLP predefined profile. Only supports enabling/disabling entries.
type DLPProfilePredefinedUpdateParams ¶
type DLPProfilePredefinedUpdateParams struct { // Identifier AccountID param.Field[string] `path:"account_id,required"` // Related DLP policies will trigger when the match count exceeds the number set. AllowedMatchCount param.Field[float64] `json:"allowed_match_count"` // Scan the context of predefined entries to only return matches surrounded by // keywords. ContextAwareness param.Field[ContextAwarenessParam] `json:"context_awareness"` // The entries for this profile. Entries param.Field[[]DLPProfilePredefinedUpdateParamsEntry] `json:"entries"` // If true, scan images via OCR to determine if any text present matches filters. OCREnabled param.Field[bool] `json:"ocr_enabled"` }
func (DLPProfilePredefinedUpdateParams) MarshalJSON ¶
func (r DLPProfilePredefinedUpdateParams) MarshalJSON() (data []byte, err error)
type DLPProfilePredefinedUpdateParamsEntry ¶
type DLPProfilePredefinedUpdateParamsEntry struct { // Whether the entry is enabled or not. Enabled param.Field[bool] `json:"enabled"` }
func (DLPProfilePredefinedUpdateParamsEntry) MarshalJSON ¶
func (r DLPProfilePredefinedUpdateParamsEntry) MarshalJSON() (data []byte, err error)
type DLPProfileService ¶
type DLPProfileService struct { Options []option.RequestOption Custom *DLPProfileCustomService Predefined *DLPProfilePredefinedService }
DLPProfileService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewDLPProfileService method instead.
func NewDLPProfileService ¶
func NewDLPProfileService(opts ...option.RequestOption) (r *DLPProfileService)
NewDLPProfileService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*DLPProfileService) Get ¶
func (r *DLPProfileService) Get(ctx context.Context, profileID string, query DLPProfileGetParams, opts ...option.RequestOption) (res *DLPProfileGetResponse, err error)
Fetches a DLP profile by ID. Supports both predefined and custom profiles
func (*DLPProfileService) List ¶
func (r *DLPProfileService) List(ctx context.Context, query DLPProfileListParams, opts ...option.RequestOption) (res *pagination.SinglePage[Profile], err error)
Lists all DLP profiles in an account.
func (*DLPProfileService) ListAutoPaging ¶
func (r *DLPProfileService) ListAutoPaging(ctx context.Context, query DLPProfileListParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[Profile]
Lists all DLP profiles in an account.
type DLPService ¶
type DLPService struct { Options []option.RequestOption Datasets *DLPDatasetService Patterns *DLPPatternService PayloadLogs *DLPPayloadLogService Profiles *DLPProfileService }
DLPService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewDLPService method instead.
func NewDLPService ¶
func NewDLPService(opts ...option.RequestOption) (r *DLPService)
NewDLPService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
type DNSResolverSettingsV4 ¶
type DNSResolverSettingsV4 struct { // IPv4 address of upstream resolver. IP string `json:"ip,required"` // A port number to use for upstream resolver. Defaults to 53 if unspecified. Port int64 `json:"port"` // Whether to connect to this resolver over a private network. Must be set when // vnet_id is set. RouteThroughPrivateNetwork bool `json:"route_through_private_network"` // Optionally specify a virtual network for this resolver. Uses default virtual // network id if omitted. VnetID string `json:"vnet_id"` JSON dnsResolverSettingsV4JSON `json:"-"` }
func (*DNSResolverSettingsV4) UnmarshalJSON ¶
func (r *DNSResolverSettingsV4) UnmarshalJSON(data []byte) (err error)
type DNSResolverSettingsV4Param ¶
type DNSResolverSettingsV4Param struct { // IPv4 address of upstream resolver. IP param.Field[string] `json:"ip,required"` // A port number to use for upstream resolver. Defaults to 53 if unspecified. Port param.Field[int64] `json:"port"` // Whether to connect to this resolver over a private network. Must be set when // vnet_id is set. RouteThroughPrivateNetwork param.Field[bool] `json:"route_through_private_network"` // Optionally specify a virtual network for this resolver. Uses default virtual // network id if omitted. VnetID param.Field[string] `json:"vnet_id"` }
func (DNSResolverSettingsV4Param) MarshalJSON ¶
func (r DNSResolverSettingsV4Param) MarshalJSON() (data []byte, err error)
type DNSResolverSettingsV6 ¶
type DNSResolverSettingsV6 struct { // IPv6 address of upstream resolver. IP string `json:"ip,required"` // A port number to use for upstream resolver. Defaults to 53 if unspecified. Port int64 `json:"port"` // Whether to connect to this resolver over a private network. Must be set when // vnet_id is set. RouteThroughPrivateNetwork bool `json:"route_through_private_network"` // Optionally specify a virtual network for this resolver. Uses default virtual // network id if omitted. VnetID string `json:"vnet_id"` JSON dnsResolverSettingsV6JSON `json:"-"` }
func (*DNSResolverSettingsV6) UnmarshalJSON ¶
func (r *DNSResolverSettingsV6) UnmarshalJSON(data []byte) (err error)
type DNSResolverSettingsV6Param ¶
type DNSResolverSettingsV6Param struct { // IPv6 address of upstream resolver. IP param.Field[string] `json:"ip,required"` // A port number to use for upstream resolver. Defaults to 53 if unspecified. Port param.Field[int64] `json:"port"` // Whether to connect to this resolver over a private network. Must be set when // vnet_id is set. RouteThroughPrivateNetwork param.Field[bool] `json:"route_through_private_network"` // Optionally specify a virtual network for this resolver. Uses default virtual // network id if omitted. VnetID param.Field[string] `json:"vnet_id"` }
func (DNSResolverSettingsV6Param) MarshalJSON ¶
func (r DNSResolverSettingsV6Param) MarshalJSON() (data []byte, err error)
type Dataset ¶
type Dataset struct { ID string `json:"id,required" format:"uuid"` CreatedAt time.Time `json:"created_at,required" format:"date-time"` Name string `json:"name,required"` NumCells int64 `json:"num_cells,required"` Secret bool `json:"secret,required"` Status DatasetStatus `json:"status,required"` UpdatedAt time.Time `json:"updated_at,required" format:"date-time"` Uploads []DatasetUpload `json:"uploads,required"` Description string `json:"description,nullable"` JSON datasetJSON `json:"-"` }
func (*Dataset) UnmarshalJSON ¶
type DatasetArray ¶
type DatasetArray []Dataset
type DatasetCreation ¶
type DatasetCreation struct { Dataset Dataset `json:"dataset,required"` MaxCells int64 `json:"max_cells,required"` // The version to use when uploading the dataset. Version int64 `json:"version,required"` // The secret to use for Exact Data Match datasets. This is not present in Custom // Wordlists. Secret string `json:"secret" format:"password"` JSON datasetCreationJSON `json:"-"` }
func (*DatasetCreation) UnmarshalJSON ¶
func (r *DatasetCreation) UnmarshalJSON(data []byte) (err error)
type DatasetStatus ¶
type DatasetStatus string
const ( DatasetStatusEmpty DatasetStatus = "empty" DatasetStatusUploading DatasetStatus = "uploading" DatasetStatusFailed DatasetStatus = "failed" DatasetStatusComplete DatasetStatus = "complete" )
func (DatasetStatus) IsKnown ¶
func (r DatasetStatus) IsKnown() bool
type DatasetUpload ¶
type DatasetUpload struct { NumCells int64 `json:"num_cells,required"` Status DatasetUploadsStatus `json:"status,required"` Version int64 `json:"version,required"` JSON datasetUploadJSON `json:"-"` }
func (*DatasetUpload) UnmarshalJSON ¶
func (r *DatasetUpload) UnmarshalJSON(data []byte) (err error)
type DatasetUploadsStatus ¶
type DatasetUploadsStatus string
const ( DatasetUploadsStatusEmpty DatasetUploadsStatus = "empty" DatasetUploadsStatusUploading DatasetUploadsStatus = "uploading" DatasetUploadsStatusFailed DatasetUploadsStatus = "failed" DatasetUploadsStatusComplete DatasetUploadsStatus = "complete" )
func (DatasetUploadsStatus) IsKnown ¶
func (r DatasetUploadsStatus) IsKnown() bool
type Device ¶
type Device struct { // Device ID. ID string `json:"id"` // When the device was created. Created time.Time `json:"created" format:"date-time"` // True if the device was deleted. Deleted bool `json:"deleted"` DeviceType DeviceDeviceType `json:"device_type"` // IPv4 or IPv6 address. IP string `json:"ip"` // The device's public key. Key string `json:"key"` // When the device last connected to Cloudflare services. LastSeen time.Time `json:"last_seen" format:"date-time"` // The device mac address. MacAddress string `json:"mac_address"` // The device manufacturer name. Manufacturer string `json:"manufacturer"` // The device model name. Model string `json:"model"` // The device name. Name string `json:"name"` // The Linux distro name. OSDistroName string `json:"os_distro_name"` // The Linux distro revision. OSDistroRevision string `json:"os_distro_revision"` // The operating system version. OSVersion string `json:"os_version"` // The operating system version extra parameter. OSVersionExtra string `json:"os_version_extra"` // When the device was revoked. RevokedAt time.Time `json:"revoked_at" format:"date-time"` // The device serial number. SerialNumber string `json:"serial_number"` // When the device was updated. Updated time.Time `json:"updated" format:"date-time"` User DeviceUser `json:"user"` // The WARP client version. Version string `json:"version"` JSON deviceJSON `json:"-"` }
func (*Device) UnmarshalJSON ¶
type DeviceDEXTestDeleteResponseEnvelope ¶
type DeviceDEXTestDeleteResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result []SchemaHTTP `json:"result,required,nullable"` // Whether the API call was successful. Success DeviceDEXTestDeleteResponseEnvelopeSuccess `json:"success,required"` JSON deviceDEXTestDeleteResponseEnvelopeJSON `json:"-"` }
func (*DeviceDEXTestDeleteResponseEnvelope) UnmarshalJSON ¶
func (r *DeviceDEXTestDeleteResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DeviceDEXTestDeleteResponseEnvelopeSuccess ¶
type DeviceDEXTestDeleteResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
DeviceDEXTestDeleteResponseEnvelopeSuccessTrue DeviceDEXTestDeleteResponseEnvelopeSuccess = true
)
func (DeviceDEXTestDeleteResponseEnvelopeSuccess) IsKnown ¶
func (r DeviceDEXTestDeleteResponseEnvelopeSuccess) IsKnown() bool
type DeviceDEXTestGetParams ¶
type DeviceDEXTestGetResponseEnvelope ¶
type DeviceDEXTestGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result SchemaHTTP `json:"result,required,nullable"` // Whether the API call was successful. Success DeviceDEXTestGetResponseEnvelopeSuccess `json:"success,required"` JSON deviceDEXTestGetResponseEnvelopeJSON `json:"-"` }
func (*DeviceDEXTestGetResponseEnvelope) UnmarshalJSON ¶
func (r *DeviceDEXTestGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DeviceDEXTestGetResponseEnvelopeSuccess ¶
type DeviceDEXTestGetResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
DeviceDEXTestGetResponseEnvelopeSuccessTrue DeviceDEXTestGetResponseEnvelopeSuccess = true
)
func (DeviceDEXTestGetResponseEnvelopeSuccess) IsKnown ¶
func (r DeviceDEXTestGetResponseEnvelopeSuccess) IsKnown() bool
type DeviceDEXTestListParams ¶
type DeviceDEXTestNewParams ¶
type DeviceDEXTestNewParams struct { AccountID param.Field[string] `path:"account_id,required"` SchemaHTTP SchemaHTTPParam `json:"schema_http,required"` }
func (DeviceDEXTestNewParams) MarshalJSON ¶
func (r DeviceDEXTestNewParams) MarshalJSON() (data []byte, err error)
type DeviceDEXTestNewResponseEnvelope ¶
type DeviceDEXTestNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result SchemaHTTP `json:"result,required,nullable"` // Whether the API call was successful. Success DeviceDEXTestNewResponseEnvelopeSuccess `json:"success,required"` JSON deviceDEXTestNewResponseEnvelopeJSON `json:"-"` }
func (*DeviceDEXTestNewResponseEnvelope) UnmarshalJSON ¶
func (r *DeviceDEXTestNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DeviceDEXTestNewResponseEnvelopeSuccess ¶
type DeviceDEXTestNewResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
DeviceDEXTestNewResponseEnvelopeSuccessTrue DeviceDEXTestNewResponseEnvelopeSuccess = true
)
func (DeviceDEXTestNewResponseEnvelopeSuccess) IsKnown ¶
func (r DeviceDEXTestNewResponseEnvelopeSuccess) IsKnown() bool
type DeviceDEXTestService ¶
type DeviceDEXTestService struct {
Options []option.RequestOption
}
DeviceDEXTestService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewDeviceDEXTestService method instead.
func NewDeviceDEXTestService ¶
func NewDeviceDEXTestService(opts ...option.RequestOption) (r *DeviceDEXTestService)
NewDeviceDEXTestService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*DeviceDEXTestService) Delete ¶
func (r *DeviceDEXTestService) Delete(ctx context.Context, dexTestID string, body DeviceDEXTestDeleteParams, opts ...option.RequestOption) (res *[]SchemaHTTP, err error)
Delete a Device DEX test. Returns the remaining device dex tests for the account.
func (*DeviceDEXTestService) Get ¶
func (r *DeviceDEXTestService) Get(ctx context.Context, dexTestID string, query DeviceDEXTestGetParams, opts ...option.RequestOption) (res *SchemaHTTP, err error)
Fetch a single DEX test.
func (*DeviceDEXTestService) List ¶
func (r *DeviceDEXTestService) List(ctx context.Context, query DeviceDEXTestListParams, opts ...option.RequestOption) (res *pagination.SinglePage[SchemaHTTP], err error)
Fetch all DEX tests.
func (*DeviceDEXTestService) ListAutoPaging ¶
func (r *DeviceDEXTestService) ListAutoPaging(ctx context.Context, query DeviceDEXTestListParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[SchemaHTTP]
Fetch all DEX tests.
func (*DeviceDEXTestService) New ¶
func (r *DeviceDEXTestService) New(ctx context.Context, params DeviceDEXTestNewParams, opts ...option.RequestOption) (res *SchemaHTTP, err error)
Create a DEX test.
func (*DeviceDEXTestService) Update ¶
func (r *DeviceDEXTestService) Update(ctx context.Context, dexTestID string, params DeviceDEXTestUpdateParams, opts ...option.RequestOption) (res *SchemaHTTP, err error)
Update a DEX test.
type DeviceDEXTestUpdateParams ¶
type DeviceDEXTestUpdateParams struct { AccountID param.Field[string] `path:"account_id,required"` SchemaHTTP SchemaHTTPParam `json:"schema_http,required"` }
func (DeviceDEXTestUpdateParams) MarshalJSON ¶
func (r DeviceDEXTestUpdateParams) MarshalJSON() (data []byte, err error)
type DeviceDEXTestUpdateResponseEnvelope ¶
type DeviceDEXTestUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result SchemaHTTP `json:"result,required,nullable"` // Whether the API call was successful. Success DeviceDEXTestUpdateResponseEnvelopeSuccess `json:"success,required"` JSON deviceDEXTestUpdateResponseEnvelopeJSON `json:"-"` }
func (*DeviceDEXTestUpdateResponseEnvelope) UnmarshalJSON ¶
func (r *DeviceDEXTestUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DeviceDEXTestUpdateResponseEnvelopeSuccess ¶
type DeviceDEXTestUpdateResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
DeviceDEXTestUpdateResponseEnvelopeSuccessTrue DeviceDEXTestUpdateResponseEnvelopeSuccess = true
)
func (DeviceDEXTestUpdateResponseEnvelopeSuccess) IsKnown ¶
func (r DeviceDEXTestUpdateResponseEnvelopeSuccess) IsKnown() bool
type DeviceDeviceType ¶
type DeviceDeviceType string
const ( DeviceDeviceTypeWindows DeviceDeviceType = "windows" DeviceDeviceTypeMac DeviceDeviceType = "mac" DeviceDeviceTypeLinux DeviceDeviceType = "linux" DeviceDeviceTypeAndroid DeviceDeviceType = "android" DeviceDeviceTypeIos DeviceDeviceType = "ios" )
func (DeviceDeviceType) IsKnown ¶
func (r DeviceDeviceType) IsKnown() bool
type DeviceExperienceMonitor ¶
type DeviceExperienceMonitor struct { ID string `json:"id,required"` // Whether the policy is the default for the account Default bool `json:"default,required"` Name string `json:"name,required"` JSON deviceExperienceMonitorJSON `json:"-"` }
func (*DeviceExperienceMonitor) UnmarshalJSON ¶
func (r *DeviceExperienceMonitor) UnmarshalJSON(data []byte) (err error)
type DeviceGetParams ¶
type DeviceGetResponseEnvelope ¶
type DeviceGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result DeviceGetResponseUnion `json:"result,required"` // Whether the API call was successful. Success DeviceGetResponseEnvelopeSuccess `json:"success,required"` JSON deviceGetResponseEnvelopeJSON `json:"-"` }
func (*DeviceGetResponseEnvelope) UnmarshalJSON ¶
func (r *DeviceGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DeviceGetResponseEnvelopeSuccess ¶
type DeviceGetResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
DeviceGetResponseEnvelopeSuccessTrue DeviceGetResponseEnvelopeSuccess = true
)
func (DeviceGetResponseEnvelopeSuccess) IsKnown ¶
func (r DeviceGetResponseEnvelopeSuccess) IsKnown() bool
type DeviceGetResponseUnion ¶
type DeviceGetResponseUnion interface {
ImplementsZeroTrustDeviceGetResponseUnion()
}
Union satisfied by zero_trust.DeviceGetResponseUnknown or shared.UnionString.
type DeviceInput ¶
type DeviceInput struct { // Whether or not file exists Exists bool `json:"exists"` // Operating system OperatingSystem DeviceInputOperatingSystem `json:"operating_system"` // File path. Path string `json:"path"` // SHA-256. Sha256 string `json:"sha256"` // Signing certificate thumbprint. Thumbprint string `json:"thumbprint"` // List ID. ID string `json:"id"` // Domain Domain string `json:"domain"` // operator Operator DeviceInputOperator `json:"operator"` // Operating System Distribution Name (linux only) OSDistroName string `json:"os_distro_name"` // Version of OS Distribution (linux only) OSDistroRevision string `json:"os_distro_revision"` // Additional version data. For Mac or iOS, the Product Verison Extra. For Linux, // the kernel release version. (Mac, iOS, and Linux only) OSVersionExtra string `json:"os_version_extra"` // Version of OS Version string `json:"version"` // Enabled Enabled bool `json:"enabled"` CheckDisks interface{} `json:"checkDisks,required"` // Whether to check all disks for encryption. RequireAll bool `json:"requireAll"` // UUID of Cloudflare managed certificate. CertificateID string `json:"certificate_id"` // Common Name that is protected by the certificate Cn string `json:"cn"` // Compliance Status ComplianceStatus DeviceInputComplianceStatus `json:"compliance_status"` // Posture Integration ID. ConnectionID string `json:"connection_id"` // For more details on last seen, please refer to the Crowdstrike documentation. LastSeen string `json:"last_seen"` // Os Version OS string `json:"os"` // overall Overall string `json:"overall"` // SensorConfig SensorConfig string `json:"sensor_config"` // For more details on state, please refer to the Crowdstrike documentation. State DeviceInputState `json:"state"` // Version Operator VersionOperator DeviceInputVersionOperator `json:"versionOperator"` // Count Operator CountOperator DeviceInputCountOperator `json:"countOperator"` // The Number of Issues. IssueCount string `json:"issue_count"` // For more details on eid last seen, refer to the Tanium documentation. EidLastSeen string `json:"eid_last_seen"` // For more details on risk level, refer to the Tanium documentation. RiskLevel DeviceInputRiskLevel `json:"risk_level"` // Score Operator ScoreOperator DeviceInputScoreOperator `json:"scoreOperator"` // For more details on total score, refer to the Tanium documentation. TotalScore float64 `json:"total_score"` // The Number of active threats. ActiveThreats float64 `json:"active_threats"` // Whether device is infected. Infected bool `json:"infected"` // Whether device is active. IsActive bool `json:"is_active"` // Network status of device. NetworkStatus DeviceInputNetworkStatus `json:"network_status"` JSON deviceInputJSON `json:"-"` // contains filtered or unexported fields }
The value to be checked against.
func (DeviceInput) AsUnion ¶
func (r DeviceInput) AsUnion() DeviceInputUnion
func (*DeviceInput) UnmarshalJSON ¶
func (r *DeviceInput) UnmarshalJSON(data []byte) (err error)
type DeviceInputComplianceStatus ¶
type DeviceInputComplianceStatus string
Compliance Status
const ( DeviceInputComplianceStatusCompliant DeviceInputComplianceStatus = "compliant" DeviceInputComplianceStatusNoncompliant DeviceInputComplianceStatus = "noncompliant" DeviceInputComplianceStatusUnknown DeviceInputComplianceStatus = "unknown" DeviceInputComplianceStatusNotapplicable DeviceInputComplianceStatus = "notapplicable" DeviceInputComplianceStatusIngraceperiod DeviceInputComplianceStatus = "ingraceperiod" DeviceInputComplianceStatusError DeviceInputComplianceStatus = "error" )
func (DeviceInputComplianceStatus) IsKnown ¶
func (r DeviceInputComplianceStatus) IsKnown() bool
type DeviceInputCountOperator ¶
type DeviceInputCountOperator string
Count Operator
const ( DeviceInputCountOperatorLess DeviceInputCountOperator = "<" DeviceInputCountOperatorLessOrEquals DeviceInputCountOperator = "<=" DeviceInputCountOperatorGreater DeviceInputCountOperator = ">" DeviceInputCountOperatorGreaterOrEquals DeviceInputCountOperator = ">=" DeviceInputCountOperatorEquals DeviceInputCountOperator = "==" )
func (DeviceInputCountOperator) IsKnown ¶
func (r DeviceInputCountOperator) IsKnown() bool
type DeviceInputNetworkStatus ¶
type DeviceInputNetworkStatus string
Network status of device.
const ( DeviceInputNetworkStatusConnected DeviceInputNetworkStatus = "connected" DeviceInputNetworkStatusDisconnected DeviceInputNetworkStatus = "disconnected" DeviceInputNetworkStatusDisconnecting DeviceInputNetworkStatus = "disconnecting" DeviceInputNetworkStatusConnecting DeviceInputNetworkStatus = "connecting" )
func (DeviceInputNetworkStatus) IsKnown ¶
func (r DeviceInputNetworkStatus) IsKnown() bool
type DeviceInputOperatingSystem ¶
type DeviceInputOperatingSystem string
Operating system
const ( DeviceInputOperatingSystemWindows DeviceInputOperatingSystem = "windows" DeviceInputOperatingSystemLinux DeviceInputOperatingSystem = "linux" DeviceInputOperatingSystemMac DeviceInputOperatingSystem = "mac" DeviceInputOperatingSystemAndroid DeviceInputOperatingSystem = "android" DeviceInputOperatingSystemIos DeviceInputOperatingSystem = "ios" DeviceInputOperatingSystemChromeos DeviceInputOperatingSystem = "chromeos" )
func (DeviceInputOperatingSystem) IsKnown ¶
func (r DeviceInputOperatingSystem) IsKnown() bool
type DeviceInputOperator ¶
type DeviceInputOperator string
operator
const ( DeviceInputOperatorLess DeviceInputOperator = "<" DeviceInputOperatorLessOrEquals DeviceInputOperator = "<=" DeviceInputOperatorGreater DeviceInputOperator = ">" DeviceInputOperatorGreaterOrEquals DeviceInputOperator = ">=" DeviceInputOperatorEquals DeviceInputOperator = "==" )
func (DeviceInputOperator) IsKnown ¶
func (r DeviceInputOperator) IsKnown() bool
type DeviceInputParam ¶
type DeviceInputParam struct { // Whether or not file exists Exists param.Field[bool] `json:"exists"` // Operating system OperatingSystem param.Field[DeviceInputOperatingSystem] `json:"operating_system"` // File path. Path param.Field[string] `json:"path"` // SHA-256. Sha256 param.Field[string] `json:"sha256"` // Signing certificate thumbprint. Thumbprint param.Field[string] `json:"thumbprint"` // List ID. ID param.Field[string] `json:"id"` // Domain Domain param.Field[string] `json:"domain"` // operator Operator param.Field[DeviceInputOperator] `json:"operator"` // Operating System Distribution Name (linux only) OSDistroName param.Field[string] `json:"os_distro_name"` // Version of OS Distribution (linux only) OSDistroRevision param.Field[string] `json:"os_distro_revision"` // Additional version data. For Mac or iOS, the Product Verison Extra. For Linux, // the kernel release version. (Mac, iOS, and Linux only) OSVersionExtra param.Field[string] `json:"os_version_extra"` // Version of OS Version param.Field[string] `json:"version"` // Enabled Enabled param.Field[bool] `json:"enabled"` CheckDisks param.Field[interface{}] `json:"checkDisks,required"` // Whether to check all disks for encryption. RequireAll param.Field[bool] `json:"requireAll"` // UUID of Cloudflare managed certificate. CertificateID param.Field[string] `json:"certificate_id"` // Common Name that is protected by the certificate Cn param.Field[string] `json:"cn"` // Compliance Status ComplianceStatus param.Field[DeviceInputComplianceStatus] `json:"compliance_status"` // Posture Integration ID. ConnectionID param.Field[string] `json:"connection_id"` // For more details on last seen, please refer to the Crowdstrike documentation. LastSeen param.Field[string] `json:"last_seen"` // Os Version OS param.Field[string] `json:"os"` // overall Overall param.Field[string] `json:"overall"` // SensorConfig SensorConfig param.Field[string] `json:"sensor_config"` // For more details on state, please refer to the Crowdstrike documentation. State param.Field[DeviceInputState] `json:"state"` // Version Operator VersionOperator param.Field[DeviceInputVersionOperator] `json:"versionOperator"` // Count Operator CountOperator param.Field[DeviceInputCountOperator] `json:"countOperator"` // The Number of Issues. IssueCount param.Field[string] `json:"issue_count"` // For more details on eid last seen, refer to the Tanium documentation. EidLastSeen param.Field[string] `json:"eid_last_seen"` // For more details on risk level, refer to the Tanium documentation. RiskLevel param.Field[DeviceInputRiskLevel] `json:"risk_level"` // Score Operator ScoreOperator param.Field[DeviceInputScoreOperator] `json:"scoreOperator"` // For more details on total score, refer to the Tanium documentation. TotalScore param.Field[float64] `json:"total_score"` // The Number of active threats. ActiveThreats param.Field[float64] `json:"active_threats"` // Whether device is infected. Infected param.Field[bool] `json:"infected"` // Whether device is active. IsActive param.Field[bool] `json:"is_active"` // Network status of device. NetworkStatus param.Field[DeviceInputNetworkStatus] `json:"network_status"` }
The value to be checked against.
func (DeviceInputParam) MarshalJSON ¶
func (r DeviceInputParam) MarshalJSON() (data []byte, err error)
type DeviceInputRiskLevel ¶
type DeviceInputRiskLevel string
For more details on risk level, refer to the Tanium documentation.
const ( DeviceInputRiskLevelLow DeviceInputRiskLevel = "low" DeviceInputRiskLevelMedium DeviceInputRiskLevel = "medium" DeviceInputRiskLevelHigh DeviceInputRiskLevel = "high" DeviceInputRiskLevelCritical DeviceInputRiskLevel = "critical" )
func (DeviceInputRiskLevel) IsKnown ¶
func (r DeviceInputRiskLevel) IsKnown() bool
type DeviceInputScoreOperator ¶
type DeviceInputScoreOperator string
Score Operator
const ( DeviceInputScoreOperatorLess DeviceInputScoreOperator = "<" DeviceInputScoreOperatorLessOrEquals DeviceInputScoreOperator = "<=" DeviceInputScoreOperatorGreater DeviceInputScoreOperator = ">" DeviceInputScoreOperatorGreaterOrEquals DeviceInputScoreOperator = ">=" DeviceInputScoreOperatorEquals DeviceInputScoreOperator = "==" )
func (DeviceInputScoreOperator) IsKnown ¶
func (r DeviceInputScoreOperator) IsKnown() bool
type DeviceInputState ¶
type DeviceInputState string
For more details on state, please refer to the Crowdstrike documentation.
const ( DeviceInputStateOnline DeviceInputState = "online" DeviceInputStateOffline DeviceInputState = "offline" DeviceInputStateUnknown DeviceInputState = "unknown" )
func (DeviceInputState) IsKnown ¶
func (r DeviceInputState) IsKnown() bool
type DeviceInputTeamsDevicesApplicationInputRequest ¶
type DeviceInputTeamsDevicesApplicationInputRequest struct { // Operating system OperatingSystem DeviceInputTeamsDevicesApplicationInputRequestOperatingSystem `json:"operating_system,required"` // Path for the application. Path string `json:"path,required"` // SHA-256. Sha256 string `json:"sha256"` // Signing certificate thumbprint. Thumbprint string `json:"thumbprint"` JSON deviceInputTeamsDevicesApplicationInputRequestJSON `json:"-"` }
func (*DeviceInputTeamsDevicesApplicationInputRequest) UnmarshalJSON ¶
func (r *DeviceInputTeamsDevicesApplicationInputRequest) UnmarshalJSON(data []byte) (err error)
type DeviceInputTeamsDevicesApplicationInputRequestOperatingSystem ¶
type DeviceInputTeamsDevicesApplicationInputRequestOperatingSystem string
Operating system
const ( DeviceInputTeamsDevicesApplicationInputRequestOperatingSystemWindows DeviceInputTeamsDevicesApplicationInputRequestOperatingSystem = "windows" DeviceInputTeamsDevicesApplicationInputRequestOperatingSystemLinux DeviceInputTeamsDevicesApplicationInputRequestOperatingSystem = "linux" DeviceInputTeamsDevicesApplicationInputRequestOperatingSystemMac DeviceInputTeamsDevicesApplicationInputRequestOperatingSystem = "mac" )
func (DeviceInputTeamsDevicesApplicationInputRequestOperatingSystem) IsKnown ¶
func (r DeviceInputTeamsDevicesApplicationInputRequestOperatingSystem) IsKnown() bool
type DeviceInputTeamsDevicesApplicationInputRequestParam ¶
type DeviceInputTeamsDevicesApplicationInputRequestParam struct { // Operating system OperatingSystem param.Field[DeviceInputTeamsDevicesApplicationInputRequestOperatingSystem] `json:"operating_system,required"` // Path for the application. Path param.Field[string] `json:"path,required"` // SHA-256. Sha256 param.Field[string] `json:"sha256"` // Signing certificate thumbprint. Thumbprint param.Field[string] `json:"thumbprint"` }
func (DeviceInputTeamsDevicesApplicationInputRequestParam) MarshalJSON ¶
func (r DeviceInputTeamsDevicesApplicationInputRequestParam) MarshalJSON() (data []byte, err error)
type DeviceInputTeamsDevicesCarbonblackInputRequest ¶
type DeviceInputTeamsDevicesCarbonblackInputRequest struct { // Operating system OperatingSystem DeviceInputTeamsDevicesCarbonblackInputRequestOperatingSystem `json:"operating_system,required"` // File path. Path string `json:"path,required"` // SHA-256. Sha256 string `json:"sha256"` // Signing certificate thumbprint. Thumbprint string `json:"thumbprint"` JSON deviceInputTeamsDevicesCarbonblackInputRequestJSON `json:"-"` }
func (*DeviceInputTeamsDevicesCarbonblackInputRequest) UnmarshalJSON ¶
func (r *DeviceInputTeamsDevicesCarbonblackInputRequest) UnmarshalJSON(data []byte) (err error)
type DeviceInputTeamsDevicesCarbonblackInputRequestOperatingSystem ¶
type DeviceInputTeamsDevicesCarbonblackInputRequestOperatingSystem string
Operating system
const ( DeviceInputTeamsDevicesCarbonblackInputRequestOperatingSystemWindows DeviceInputTeamsDevicesCarbonblackInputRequestOperatingSystem = "windows" DeviceInputTeamsDevicesCarbonblackInputRequestOperatingSystemLinux DeviceInputTeamsDevicesCarbonblackInputRequestOperatingSystem = "linux" DeviceInputTeamsDevicesCarbonblackInputRequestOperatingSystemMac DeviceInputTeamsDevicesCarbonblackInputRequestOperatingSystem = "mac" )
func (DeviceInputTeamsDevicesCarbonblackInputRequestOperatingSystem) IsKnown ¶
func (r DeviceInputTeamsDevicesCarbonblackInputRequestOperatingSystem) IsKnown() bool
type DeviceInputTeamsDevicesCarbonblackInputRequestParam ¶
type DeviceInputTeamsDevicesCarbonblackInputRequestParam struct { // Operating system OperatingSystem param.Field[DeviceInputTeamsDevicesCarbonblackInputRequestOperatingSystem] `json:"operating_system,required"` // File path. Path param.Field[string] `json:"path,required"` // SHA-256. Sha256 param.Field[string] `json:"sha256"` // Signing certificate thumbprint. Thumbprint param.Field[string] `json:"thumbprint"` }
func (DeviceInputTeamsDevicesCarbonblackInputRequestParam) MarshalJSON ¶
func (r DeviceInputTeamsDevicesCarbonblackInputRequestParam) MarshalJSON() (data []byte, err error)
type DeviceInputUnion ¶
type DeviceInputUnion interface {
// contains filtered or unexported methods
}
The value to be checked against.
Union satisfied by zero_trust.FileInput, zero_trust.UniqueClientIDInput, zero_trust.DomainJoinedInput, zero_trust.OSVersionInput, zero_trust.FirewallInput, zero_trust.SentineloneInput, zero_trust.DeviceInputTeamsDevicesCarbonblackInputRequest, zero_trust.DiskEncryptionInput, zero_trust.DeviceInputTeamsDevicesApplicationInputRequest, zero_trust.ClientCertificateInput, zero_trust.WorkspaceOneInput, zero_trust.CrowdstrikeInput, zero_trust.IntuneInput, zero_trust.KolideInput, zero_trust.TaniumInput or zero_trust.SentineloneS2sInput.
type DeviceInputUnionParam ¶
type DeviceInputUnionParam interface {
// contains filtered or unexported methods
}
The value to be checked against.
Satisfied by zero_trust.FileInputParam, zero_trust.UniqueClientIDInputParam, zero_trust.DomainJoinedInputParam, zero_trust.OSVersionInputParam, zero_trust.FirewallInputParam, zero_trust.SentineloneInputParam, zero_trust.DeviceInputTeamsDevicesCarbonblackInputRequestParam, zero_trust.DiskEncryptionInputParam, zero_trust.DeviceInputTeamsDevicesApplicationInputRequestParam, zero_trust.ClientCertificateInputParam, zero_trust.WorkspaceOneInputParam, zero_trust.CrowdstrikeInputParam, zero_trust.IntuneInputParam, zero_trust.KolideInputParam, zero_trust.TaniumInputParam, zero_trust.SentineloneS2sInputParam, DeviceInputParam.
type DeviceInputVersionOperator ¶
type DeviceInputVersionOperator string
Version Operator
const ( DeviceInputVersionOperatorLess DeviceInputVersionOperator = "<" DeviceInputVersionOperatorLessOrEquals DeviceInputVersionOperator = "<=" DeviceInputVersionOperatorGreater DeviceInputVersionOperator = ">" DeviceInputVersionOperatorGreaterOrEquals DeviceInputVersionOperator = ">=" DeviceInputVersionOperatorEquals DeviceInputVersionOperator = "==" )
func (DeviceInputVersionOperator) IsKnown ¶
func (r DeviceInputVersionOperator) IsKnown() bool
type DeviceListParams ¶
type DeviceMatch ¶
type DeviceMatch struct { Platform DeviceMatchPlatform `json:"platform"` JSON deviceMatchJSON `json:"-"` }
func (*DeviceMatch) UnmarshalJSON ¶
func (r *DeviceMatch) UnmarshalJSON(data []byte) (err error)
type DeviceMatchParam ¶
type DeviceMatchParam struct {
Platform param.Field[DeviceMatchPlatform] `json:"platform"`
}
func (DeviceMatchParam) MarshalJSON ¶
func (r DeviceMatchParam) MarshalJSON() (data []byte, err error)
type DeviceMatchPlatform ¶
type DeviceMatchPlatform string
const ( DeviceMatchPlatformWindows DeviceMatchPlatform = "windows" DeviceMatchPlatformMac DeviceMatchPlatform = "mac" DeviceMatchPlatformLinux DeviceMatchPlatform = "linux" DeviceMatchPlatformAndroid DeviceMatchPlatform = "android" DeviceMatchPlatformIos DeviceMatchPlatform = "ios" )
func (DeviceMatchPlatform) IsKnown ¶
func (r DeviceMatchPlatform) IsKnown() bool
type DeviceNetwork ¶
type DeviceNetwork struct { // The configuration object containing information for the WARP client to detect // the managed network. Config DeviceNetworkConfig `json:"config"` // The name of the device managed network. This name must be unique. Name string `json:"name"` // API UUID. NetworkID string `json:"network_id"` // The type of device managed network. Type DeviceNetworkType `json:"type"` JSON deviceNetworkJSON `json:"-"` }
func (*DeviceNetwork) UnmarshalJSON ¶
func (r *DeviceNetwork) UnmarshalJSON(data []byte) (err error)
type DeviceNetworkConfig ¶
type DeviceNetworkConfig struct { // A network address of the form "host:port" that the WARP client will use to // detect the presence of a TLS host. TLSSockaddr string `json:"tls_sockaddr,required"` // The SHA-256 hash of the TLS certificate presented by the host found at // tls_sockaddr. If absent, regular certificate verification (trusted roots, valid // timestamp, etc) will be used to validate the certificate. Sha256 string `json:"sha256"` JSON deviceNetworkConfigJSON `json:"-"` }
The configuration object containing information for the WARP client to detect the managed network.
func (*DeviceNetworkConfig) UnmarshalJSON ¶
func (r *DeviceNetworkConfig) UnmarshalJSON(data []byte) (err error)
type DeviceNetworkDeleteParams ¶
type DeviceNetworkDeleteParams struct { AccountID param.Field[string] `path:"account_id,required"` Body interface{} `json:"body,required"` }
func (DeviceNetworkDeleteParams) MarshalJSON ¶
func (r DeviceNetworkDeleteParams) MarshalJSON() (data []byte, err error)
type DeviceNetworkDeleteResponseEnvelope ¶
type DeviceNetworkDeleteResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result []DeviceNetwork `json:"result,required,nullable"` // Whether the API call was successful. Success DeviceNetworkDeleteResponseEnvelopeSuccess `json:"success,required"` ResultInfo DeviceNetworkDeleteResponseEnvelopeResultInfo `json:"result_info"` JSON deviceNetworkDeleteResponseEnvelopeJSON `json:"-"` }
func (*DeviceNetworkDeleteResponseEnvelope) UnmarshalJSON ¶
func (r *DeviceNetworkDeleteResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DeviceNetworkDeleteResponseEnvelopeResultInfo ¶
type DeviceNetworkDeleteResponseEnvelopeResultInfo struct { // Total number of results for the requested service Count float64 `json:"count"` // Current page within paginated list of results Page float64 `json:"page"` // Number of results per page of results PerPage float64 `json:"per_page"` // Total results available without any search parameters TotalCount float64 `json:"total_count"` JSON deviceNetworkDeleteResponseEnvelopeResultInfoJSON `json:"-"` }
func (*DeviceNetworkDeleteResponseEnvelopeResultInfo) UnmarshalJSON ¶
func (r *DeviceNetworkDeleteResponseEnvelopeResultInfo) UnmarshalJSON(data []byte) (err error)
type DeviceNetworkDeleteResponseEnvelopeSuccess ¶
type DeviceNetworkDeleteResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
DeviceNetworkDeleteResponseEnvelopeSuccessTrue DeviceNetworkDeleteResponseEnvelopeSuccess = true
)
func (DeviceNetworkDeleteResponseEnvelopeSuccess) IsKnown ¶
func (r DeviceNetworkDeleteResponseEnvelopeSuccess) IsKnown() bool
type DeviceNetworkGetParams ¶
type DeviceNetworkGetResponseEnvelope ¶
type DeviceNetworkGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result DeviceNetwork `json:"result,required,nullable"` // Whether the API call was successful. Success DeviceNetworkGetResponseEnvelopeSuccess `json:"success,required"` JSON deviceNetworkGetResponseEnvelopeJSON `json:"-"` }
func (*DeviceNetworkGetResponseEnvelope) UnmarshalJSON ¶
func (r *DeviceNetworkGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DeviceNetworkGetResponseEnvelopeSuccess ¶
type DeviceNetworkGetResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
DeviceNetworkGetResponseEnvelopeSuccessTrue DeviceNetworkGetResponseEnvelopeSuccess = true
)
func (DeviceNetworkGetResponseEnvelopeSuccess) IsKnown ¶
func (r DeviceNetworkGetResponseEnvelopeSuccess) IsKnown() bool
type DeviceNetworkListParams ¶
type DeviceNetworkNewParams ¶
type DeviceNetworkNewParams struct { AccountID param.Field[string] `path:"account_id,required"` // The configuration object containing information for the WARP client to detect // the managed network. Config param.Field[DeviceNetworkNewParamsConfig] `json:"config,required"` // The name of the device managed network. This name must be unique. Name param.Field[string] `json:"name,required"` // The type of device managed network. Type param.Field[DeviceNetworkNewParamsType] `json:"type,required"` }
func (DeviceNetworkNewParams) MarshalJSON ¶
func (r DeviceNetworkNewParams) MarshalJSON() (data []byte, err error)
type DeviceNetworkNewParamsConfig ¶
type DeviceNetworkNewParamsConfig struct { // A network address of the form "host:port" that the WARP client will use to // detect the presence of a TLS host. TLSSockaddr param.Field[string] `json:"tls_sockaddr,required"` // The SHA-256 hash of the TLS certificate presented by the host found at // tls_sockaddr. If absent, regular certificate verification (trusted roots, valid // timestamp, etc) will be used to validate the certificate. Sha256 param.Field[string] `json:"sha256"` }
The configuration object containing information for the WARP client to detect the managed network.
func (DeviceNetworkNewParamsConfig) MarshalJSON ¶
func (r DeviceNetworkNewParamsConfig) MarshalJSON() (data []byte, err error)
type DeviceNetworkNewParamsType ¶
type DeviceNetworkNewParamsType string
The type of device managed network.
const (
DeviceNetworkNewParamsTypeTLS DeviceNetworkNewParamsType = "tls"
)
func (DeviceNetworkNewParamsType) IsKnown ¶
func (r DeviceNetworkNewParamsType) IsKnown() bool
type DeviceNetworkNewResponseEnvelope ¶
type DeviceNetworkNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result DeviceNetwork `json:"result,required,nullable"` // Whether the API call was successful. Success DeviceNetworkNewResponseEnvelopeSuccess `json:"success,required"` JSON deviceNetworkNewResponseEnvelopeJSON `json:"-"` }
func (*DeviceNetworkNewResponseEnvelope) UnmarshalJSON ¶
func (r *DeviceNetworkNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DeviceNetworkNewResponseEnvelopeSuccess ¶
type DeviceNetworkNewResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
DeviceNetworkNewResponseEnvelopeSuccessTrue DeviceNetworkNewResponseEnvelopeSuccess = true
)
func (DeviceNetworkNewResponseEnvelopeSuccess) IsKnown ¶
func (r DeviceNetworkNewResponseEnvelopeSuccess) IsKnown() bool
type DeviceNetworkService ¶
type DeviceNetworkService struct {
Options []option.RequestOption
}
DeviceNetworkService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewDeviceNetworkService method instead.
func NewDeviceNetworkService ¶
func NewDeviceNetworkService(opts ...option.RequestOption) (r *DeviceNetworkService)
NewDeviceNetworkService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*DeviceNetworkService) Delete ¶
func (r *DeviceNetworkService) Delete(ctx context.Context, networkID string, params DeviceNetworkDeleteParams, opts ...option.RequestOption) (res *[]DeviceNetwork, err error)
Deletes a device managed network and fetches a list of the remaining device managed networks for an account.
func (*DeviceNetworkService) Get ¶
func (r *DeviceNetworkService) Get(ctx context.Context, networkID string, query DeviceNetworkGetParams, opts ...option.RequestOption) (res *DeviceNetwork, err error)
Fetches details for a single managed network.
func (*DeviceNetworkService) List ¶
func (r *DeviceNetworkService) List(ctx context.Context, query DeviceNetworkListParams, opts ...option.RequestOption) (res *pagination.SinglePage[DeviceNetwork], err error)
Fetches a list of managed networks for an account.
func (*DeviceNetworkService) ListAutoPaging ¶
func (r *DeviceNetworkService) ListAutoPaging(ctx context.Context, query DeviceNetworkListParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[DeviceNetwork]
Fetches a list of managed networks for an account.
func (*DeviceNetworkService) New ¶
func (r *DeviceNetworkService) New(ctx context.Context, params DeviceNetworkNewParams, opts ...option.RequestOption) (res *DeviceNetwork, err error)
Creates a new device managed network.
func (*DeviceNetworkService) Update ¶
func (r *DeviceNetworkService) Update(ctx context.Context, networkID string, params DeviceNetworkUpdateParams, opts ...option.RequestOption) (res *DeviceNetwork, err error)
Updates a configured device managed network.
type DeviceNetworkType ¶
type DeviceNetworkType string
The type of device managed network.
const (
DeviceNetworkTypeTLS DeviceNetworkType = "tls"
)
func (DeviceNetworkType) IsKnown ¶
func (r DeviceNetworkType) IsKnown() bool
type DeviceNetworkUpdateParams ¶
type DeviceNetworkUpdateParams struct { AccountID param.Field[string] `path:"account_id,required"` // The configuration object containing information for the WARP client to detect // the managed network. Config param.Field[DeviceNetworkUpdateParamsConfig] `json:"config"` // The name of the device managed network. This name must be unique. Name param.Field[string] `json:"name"` // The type of device managed network. Type param.Field[DeviceNetworkUpdateParamsType] `json:"type"` }
func (DeviceNetworkUpdateParams) MarshalJSON ¶
func (r DeviceNetworkUpdateParams) MarshalJSON() (data []byte, err error)
type DeviceNetworkUpdateParamsConfig ¶
type DeviceNetworkUpdateParamsConfig struct { // A network address of the form "host:port" that the WARP client will use to // detect the presence of a TLS host. TLSSockaddr param.Field[string] `json:"tls_sockaddr,required"` // The SHA-256 hash of the TLS certificate presented by the host found at // tls_sockaddr. If absent, regular certificate verification (trusted roots, valid // timestamp, etc) will be used to validate the certificate. Sha256 param.Field[string] `json:"sha256"` }
The configuration object containing information for the WARP client to detect the managed network.
func (DeviceNetworkUpdateParamsConfig) MarshalJSON ¶
func (r DeviceNetworkUpdateParamsConfig) MarshalJSON() (data []byte, err error)
type DeviceNetworkUpdateParamsType ¶
type DeviceNetworkUpdateParamsType string
The type of device managed network.
const (
DeviceNetworkUpdateParamsTypeTLS DeviceNetworkUpdateParamsType = "tls"
)
func (DeviceNetworkUpdateParamsType) IsKnown ¶
func (r DeviceNetworkUpdateParamsType) IsKnown() bool
type DeviceNetworkUpdateResponseEnvelope ¶
type DeviceNetworkUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result DeviceNetwork `json:"result,required,nullable"` // Whether the API call was successful. Success DeviceNetworkUpdateResponseEnvelopeSuccess `json:"success,required"` JSON deviceNetworkUpdateResponseEnvelopeJSON `json:"-"` }
func (*DeviceNetworkUpdateResponseEnvelope) UnmarshalJSON ¶
func (r *DeviceNetworkUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DeviceNetworkUpdateResponseEnvelopeSuccess ¶
type DeviceNetworkUpdateResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
DeviceNetworkUpdateResponseEnvelopeSuccessTrue DeviceNetworkUpdateResponseEnvelopeSuccess = true
)
func (DeviceNetworkUpdateResponseEnvelopeSuccess) IsKnown ¶
func (r DeviceNetworkUpdateResponseEnvelopeSuccess) IsKnown() bool
type DeviceOverrideCodeListResponse ¶
type DeviceOverrideCodeListResponse struct { DisableForTime DeviceOverrideCodeListResponseDisableForTime `json:"disable_for_time"` JSON deviceOverrideCodeListResponseJSON `json:"-"` }
func (*DeviceOverrideCodeListResponse) UnmarshalJSON ¶
func (r *DeviceOverrideCodeListResponse) UnmarshalJSON(data []byte) (err error)
type DeviceOverrideCodeListResponseDisableForTime ¶
type DeviceOverrideCodeListResponseDisableForTime struct { // Override code that is valid for 1 hour. Number1 string `json:"1"` // Override code that is valid for 12 hour2. Number12 string `json:"12"` // Override code that is valid for 24 hour.2. Number24 string `json:"24"` // Override code that is valid for 3 hours. Number3 string `json:"3"` // Override code that is valid for 6 hours. Number6 string `json:"6"` JSON deviceOverrideCodeListResponseDisableForTimeJSON `json:"-"` }
func (*DeviceOverrideCodeListResponseDisableForTime) UnmarshalJSON ¶
func (r *DeviceOverrideCodeListResponseDisableForTime) UnmarshalJSON(data []byte) (err error)
type DeviceOverrideCodeListResponseEnvelope ¶
type DeviceOverrideCodeListResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result DeviceOverrideCodeListResponse `json:"result,required,nullable"` // Whether the API call was successful. Success DeviceOverrideCodeListResponseEnvelopeSuccess `json:"success,required"` ResultInfo DeviceOverrideCodeListResponseEnvelopeResultInfo `json:"result_info"` JSON deviceOverrideCodeListResponseEnvelopeJSON `json:"-"` }
func (*DeviceOverrideCodeListResponseEnvelope) UnmarshalJSON ¶
func (r *DeviceOverrideCodeListResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DeviceOverrideCodeListResponseEnvelopeResultInfo ¶
type DeviceOverrideCodeListResponseEnvelopeResultInfo struct { // Total number of results for the requested service Count float64 `json:"count"` // Current page within paginated list of results Page float64 `json:"page"` // Number of results per page of results PerPage float64 `json:"per_page"` // Total results available without any search parameters TotalCount float64 `json:"total_count"` JSON deviceOverrideCodeListResponseEnvelopeResultInfoJSON `json:"-"` }
func (*DeviceOverrideCodeListResponseEnvelopeResultInfo) UnmarshalJSON ¶
func (r *DeviceOverrideCodeListResponseEnvelopeResultInfo) UnmarshalJSON(data []byte) (err error)
type DeviceOverrideCodeListResponseEnvelopeSuccess ¶
type DeviceOverrideCodeListResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
DeviceOverrideCodeListResponseEnvelopeSuccessTrue DeviceOverrideCodeListResponseEnvelopeSuccess = true
)
func (DeviceOverrideCodeListResponseEnvelopeSuccess) IsKnown ¶
func (r DeviceOverrideCodeListResponseEnvelopeSuccess) IsKnown() bool
type DeviceOverrideCodeService ¶
type DeviceOverrideCodeService struct {
Options []option.RequestOption
}
DeviceOverrideCodeService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewDeviceOverrideCodeService method instead.
func NewDeviceOverrideCodeService ¶
func NewDeviceOverrideCodeService(opts ...option.RequestOption) (r *DeviceOverrideCodeService)
NewDeviceOverrideCodeService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*DeviceOverrideCodeService) List ¶
func (r *DeviceOverrideCodeService) List(ctx context.Context, deviceID string, query DeviceOverrideCodeListParams, opts ...option.RequestOption) (res *DeviceOverrideCodeListResponse, err error)
Fetches a one-time use admin override code for a device. This relies on the **Admin Override** setting being enabled in your device configuration.
type DevicePolicyDefaultPolicyGetResponse ¶
type DevicePolicyDefaultPolicyGetResponse = interface{}
type DevicePolicyDefaultPolicyGetResponseEnvelope ¶
type DevicePolicyDefaultPolicyGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result []DevicePolicyDefaultPolicyGetResponse `json:"result,required,nullable"` // Whether the API call was successful. Success DevicePolicyDefaultPolicyGetResponseEnvelopeSuccess `json:"success,required"` ResultInfo DevicePolicyDefaultPolicyGetResponseEnvelopeResultInfo `json:"result_info"` JSON devicePolicyDefaultPolicyGetResponseEnvelopeJSON `json:"-"` }
func (*DevicePolicyDefaultPolicyGetResponseEnvelope) UnmarshalJSON ¶
func (r *DevicePolicyDefaultPolicyGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DevicePolicyDefaultPolicyGetResponseEnvelopeResultInfo ¶
type DevicePolicyDefaultPolicyGetResponseEnvelopeResultInfo struct { // Total number of results for the requested service Count float64 `json:"count"` // Current page within paginated list of results Page float64 `json:"page"` // Number of results per page of results PerPage float64 `json:"per_page"` // Total results available without any search parameters TotalCount float64 `json:"total_count"` JSON devicePolicyDefaultPolicyGetResponseEnvelopeResultInfoJSON `json:"-"` }
func (*DevicePolicyDefaultPolicyGetResponseEnvelopeResultInfo) UnmarshalJSON ¶
func (r *DevicePolicyDefaultPolicyGetResponseEnvelopeResultInfo) UnmarshalJSON(data []byte) (err error)
type DevicePolicyDefaultPolicyGetResponseEnvelopeSuccess ¶
type DevicePolicyDefaultPolicyGetResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
DevicePolicyDefaultPolicyGetResponseEnvelopeSuccessTrue DevicePolicyDefaultPolicyGetResponseEnvelopeSuccess = true
)
func (DevicePolicyDefaultPolicyGetResponseEnvelopeSuccess) IsKnown ¶
func (r DevicePolicyDefaultPolicyGetResponseEnvelopeSuccess) IsKnown() bool
type DevicePolicyDefaultPolicyService ¶
type DevicePolicyDefaultPolicyService struct {
Options []option.RequestOption
}
DevicePolicyDefaultPolicyService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewDevicePolicyDefaultPolicyService method instead.
func NewDevicePolicyDefaultPolicyService ¶
func NewDevicePolicyDefaultPolicyService(opts ...option.RequestOption) (r *DevicePolicyDefaultPolicyService)
NewDevicePolicyDefaultPolicyService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*DevicePolicyDefaultPolicyService) Get ¶
func (r *DevicePolicyDefaultPolicyService) Get(ctx context.Context, query DevicePolicyDefaultPolicyGetParams, opts ...option.RequestOption) (res *[]DevicePolicyDefaultPolicyGetResponse, err error)
Fetches the default device settings profile for an account.
type DevicePolicyDeleteParams ¶
type DevicePolicyDeleteParams struct { AccountID param.Field[string] `path:"account_id,required"` Body interface{} `json:"body,required"` }
func (DevicePolicyDeleteParams) MarshalJSON ¶
func (r DevicePolicyDeleteParams) MarshalJSON() (data []byte, err error)
type DevicePolicyDeleteResponseEnvelope ¶
type DevicePolicyDeleteResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result []SettingsPolicy `json:"result,required,nullable"` // Whether the API call was successful. Success DevicePolicyDeleteResponseEnvelopeSuccess `json:"success,required"` ResultInfo DevicePolicyDeleteResponseEnvelopeResultInfo `json:"result_info"` JSON devicePolicyDeleteResponseEnvelopeJSON `json:"-"` }
func (*DevicePolicyDeleteResponseEnvelope) UnmarshalJSON ¶
func (r *DevicePolicyDeleteResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DevicePolicyDeleteResponseEnvelopeResultInfo ¶
type DevicePolicyDeleteResponseEnvelopeResultInfo struct { // Total number of results for the requested service Count float64 `json:"count"` // Current page within paginated list of results Page float64 `json:"page"` // Number of results per page of results PerPage float64 `json:"per_page"` // Total results available without any search parameters TotalCount float64 `json:"total_count"` JSON devicePolicyDeleteResponseEnvelopeResultInfoJSON `json:"-"` }
func (*DevicePolicyDeleteResponseEnvelopeResultInfo) UnmarshalJSON ¶
func (r *DevicePolicyDeleteResponseEnvelopeResultInfo) UnmarshalJSON(data []byte) (err error)
type DevicePolicyDeleteResponseEnvelopeSuccess ¶
type DevicePolicyDeleteResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
DevicePolicyDeleteResponseEnvelopeSuccessTrue DevicePolicyDeleteResponseEnvelopeSuccess = true
)
func (DevicePolicyDeleteResponseEnvelopeSuccess) IsKnown ¶
func (r DevicePolicyDeleteResponseEnvelopeSuccess) IsKnown() bool
type DevicePolicyEditParams ¶
type DevicePolicyEditParams struct { AccountID param.Field[string] `path:"account_id,required"` // Whether to allow the user to switch WARP between modes. AllowModeSwitch param.Field[bool] `json:"allow_mode_switch"` // Whether to receive update notifications when a new version of the client is // available. AllowUpdates param.Field[bool] `json:"allow_updates"` // Whether to allow devices to leave the organization. AllowedToLeave param.Field[bool] `json:"allowed_to_leave"` // The amount of time in minutes to reconnect after having been disabled. AutoConnect param.Field[float64] `json:"auto_connect"` // Turn on the captive portal after the specified amount of time. CaptivePortal param.Field[float64] `json:"captive_portal"` // A description of the policy. Description param.Field[string] `json:"description"` // If the `dns_server` field of a fallback domain is not present, the client will // fall back to a best guess of the default/system DNS resolvers unless this policy // option is set to `true`. DisableAutoFallback param.Field[bool] `json:"disable_auto_fallback"` // Whether the policy will be applied to matching devices. Enabled param.Field[bool] `json:"enabled"` // Whether to add Microsoft IPs to Split Tunnel exclusions. ExcludeOfficeIPs param.Field[bool] `json:"exclude_office_ips"` // The wirefilter expression to match devices. Match param.Field[string] `json:"match"` // The name of the device settings profile. Name param.Field[string] `json:"name"` // The precedence of the policy. Lower values indicate higher precedence. Policies // will be evaluated in ascending order of this field. Precedence param.Field[float64] `json:"precedence"` ServiceModeV2 param.Field[DevicePolicyEditParamsServiceModeV2] `json:"service_mode_v2"` // The URL to launch when the Send Feedback button is clicked. SupportURL param.Field[string] `json:"support_url"` // Whether to allow the user to turn off the WARP switch and disconnect the client. SwitchLocked param.Field[bool] `json:"switch_locked"` }
func (DevicePolicyEditParams) MarshalJSON ¶
func (r DevicePolicyEditParams) MarshalJSON() (data []byte, err error)
type DevicePolicyEditParamsServiceModeV2 ¶
type DevicePolicyEditParamsServiceModeV2 struct { // The mode to run the WARP client under. Mode param.Field[string] `json:"mode"` // The port number when used with proxy mode. Port param.Field[float64] `json:"port"` }
func (DevicePolicyEditParamsServiceModeV2) MarshalJSON ¶
func (r DevicePolicyEditParamsServiceModeV2) MarshalJSON() (data []byte, err error)
type DevicePolicyEditResponse ¶
type DevicePolicyEditResponse = interface{}
type DevicePolicyEditResponseEnvelope ¶
type DevicePolicyEditResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result SettingsPolicy `json:"result,required,nullable"` // Whether the API call was successful. Success DevicePolicyEditResponseEnvelopeSuccess `json:"success,required"` ResultInfo DevicePolicyEditResponseEnvelopeResultInfo `json:"result_info"` JSON devicePolicyEditResponseEnvelopeJSON `json:"-"` }
func (*DevicePolicyEditResponseEnvelope) UnmarshalJSON ¶
func (r *DevicePolicyEditResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DevicePolicyEditResponseEnvelopeResultInfo ¶
type DevicePolicyEditResponseEnvelopeResultInfo struct { // Total number of results for the requested service Count float64 `json:"count"` // Current page within paginated list of results Page float64 `json:"page"` // Number of results per page of results PerPage float64 `json:"per_page"` // Total results available without any search parameters TotalCount float64 `json:"total_count"` JSON devicePolicyEditResponseEnvelopeResultInfoJSON `json:"-"` }
func (*DevicePolicyEditResponseEnvelopeResultInfo) UnmarshalJSON ¶
func (r *DevicePolicyEditResponseEnvelopeResultInfo) UnmarshalJSON(data []byte) (err error)
type DevicePolicyEditResponseEnvelopeSuccess ¶
type DevicePolicyEditResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
DevicePolicyEditResponseEnvelopeSuccessTrue DevicePolicyEditResponseEnvelopeSuccess = true
)
func (DevicePolicyEditResponseEnvelopeSuccess) IsKnown ¶
func (r DevicePolicyEditResponseEnvelopeSuccess) IsKnown() bool
type DevicePolicyExcludeGetResponseEnvelope ¶
type DevicePolicyExcludeGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result []SplitTunnelExclude `json:"result,required,nullable"` // Whether the API call was successful. Success DevicePolicyExcludeGetResponseEnvelopeSuccess `json:"success,required"` ResultInfo DevicePolicyExcludeGetResponseEnvelopeResultInfo `json:"result_info"` JSON devicePolicyExcludeGetResponseEnvelopeJSON `json:"-"` }
func (*DevicePolicyExcludeGetResponseEnvelope) UnmarshalJSON ¶
func (r *DevicePolicyExcludeGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DevicePolicyExcludeGetResponseEnvelopeResultInfo ¶
type DevicePolicyExcludeGetResponseEnvelopeResultInfo struct { // Total number of results for the requested service Count float64 `json:"count"` // Current page within paginated list of results Page float64 `json:"page"` // Number of results per page of results PerPage float64 `json:"per_page"` // Total results available without any search parameters TotalCount float64 `json:"total_count"` JSON devicePolicyExcludeGetResponseEnvelopeResultInfoJSON `json:"-"` }
func (*DevicePolicyExcludeGetResponseEnvelopeResultInfo) UnmarshalJSON ¶
func (r *DevicePolicyExcludeGetResponseEnvelopeResultInfo) UnmarshalJSON(data []byte) (err error)
type DevicePolicyExcludeGetResponseEnvelopeSuccess ¶
type DevicePolicyExcludeGetResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
DevicePolicyExcludeGetResponseEnvelopeSuccessTrue DevicePolicyExcludeGetResponseEnvelopeSuccess = true
)
func (DevicePolicyExcludeGetResponseEnvelopeSuccess) IsKnown ¶
func (r DevicePolicyExcludeGetResponseEnvelopeSuccess) IsKnown() bool
type DevicePolicyExcludeService ¶
type DevicePolicyExcludeService struct {
Options []option.RequestOption
}
DevicePolicyExcludeService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewDevicePolicyExcludeService method instead.
func NewDevicePolicyExcludeService ¶
func NewDevicePolicyExcludeService(opts ...option.RequestOption) (r *DevicePolicyExcludeService)
NewDevicePolicyExcludeService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*DevicePolicyExcludeService) Get ¶
func (r *DevicePolicyExcludeService) Get(ctx context.Context, policyID string, query DevicePolicyExcludeGetParams, opts ...option.RequestOption) (res *[]SplitTunnelExclude, err error)
Fetches the list of routes excluded from the WARP client's tunnel for a specific device settings profile.
func (*DevicePolicyExcludeService) List ¶
func (r *DevicePolicyExcludeService) List(ctx context.Context, query DevicePolicyExcludeListParams, opts ...option.RequestOption) (res *pagination.SinglePage[SplitTunnelExclude], err error)
Fetches the list of routes excluded from the WARP client's tunnel.
func (*DevicePolicyExcludeService) ListAutoPaging ¶
func (r *DevicePolicyExcludeService) ListAutoPaging(ctx context.Context, query DevicePolicyExcludeListParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[SplitTunnelExclude]
Fetches the list of routes excluded from the WARP client's tunnel.
func (*DevicePolicyExcludeService) Update ¶
func (r *DevicePolicyExcludeService) Update(ctx context.Context, params DevicePolicyExcludeUpdateParams, opts ...option.RequestOption) (res *[]SplitTunnelExclude, err error)
Sets the list of routes excluded from the WARP client's tunnel.
type DevicePolicyExcludeUpdateParams ¶
type DevicePolicyExcludeUpdateParams struct { AccountID param.Field[string] `path:"account_id,required"` Body []SplitTunnelExcludeParam `json:"body,required"` }
func (DevicePolicyExcludeUpdateParams) MarshalJSON ¶
func (r DevicePolicyExcludeUpdateParams) MarshalJSON() (data []byte, err error)
type DevicePolicyExcludeUpdateResponseEnvelope ¶
type DevicePolicyExcludeUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result []SplitTunnelExclude `json:"result,required,nullable"` // Whether the API call was successful. Success DevicePolicyExcludeUpdateResponseEnvelopeSuccess `json:"success,required"` ResultInfo DevicePolicyExcludeUpdateResponseEnvelopeResultInfo `json:"result_info"` JSON devicePolicyExcludeUpdateResponseEnvelopeJSON `json:"-"` }
func (*DevicePolicyExcludeUpdateResponseEnvelope) UnmarshalJSON ¶
func (r *DevicePolicyExcludeUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DevicePolicyExcludeUpdateResponseEnvelopeResultInfo ¶
type DevicePolicyExcludeUpdateResponseEnvelopeResultInfo struct { // Total number of results for the requested service Count float64 `json:"count"` // Current page within paginated list of results Page float64 `json:"page"` // Number of results per page of results PerPage float64 `json:"per_page"` // Total results available without any search parameters TotalCount float64 `json:"total_count"` JSON devicePolicyExcludeUpdateResponseEnvelopeResultInfoJSON `json:"-"` }
func (*DevicePolicyExcludeUpdateResponseEnvelopeResultInfo) UnmarshalJSON ¶
func (r *DevicePolicyExcludeUpdateResponseEnvelopeResultInfo) UnmarshalJSON(data []byte) (err error)
type DevicePolicyExcludeUpdateResponseEnvelopeSuccess ¶
type DevicePolicyExcludeUpdateResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
DevicePolicyExcludeUpdateResponseEnvelopeSuccessTrue DevicePolicyExcludeUpdateResponseEnvelopeSuccess = true
)
func (DevicePolicyExcludeUpdateResponseEnvelopeSuccess) IsKnown ¶
func (r DevicePolicyExcludeUpdateResponseEnvelopeSuccess) IsKnown() bool
type DevicePolicyFallbackDomainGetResponseEnvelope ¶
type DevicePolicyFallbackDomainGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result []FallbackDomain `json:"result,required,nullable"` // Whether the API call was successful. Success DevicePolicyFallbackDomainGetResponseEnvelopeSuccess `json:"success,required"` ResultInfo DevicePolicyFallbackDomainGetResponseEnvelopeResultInfo `json:"result_info"` JSON devicePolicyFallbackDomainGetResponseEnvelopeJSON `json:"-"` }
func (*DevicePolicyFallbackDomainGetResponseEnvelope) UnmarshalJSON ¶
func (r *DevicePolicyFallbackDomainGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DevicePolicyFallbackDomainGetResponseEnvelopeResultInfo ¶
type DevicePolicyFallbackDomainGetResponseEnvelopeResultInfo struct { // Total number of results for the requested service Count float64 `json:"count"` // Current page within paginated list of results Page float64 `json:"page"` // Number of results per page of results PerPage float64 `json:"per_page"` // Total results available without any search parameters TotalCount float64 `json:"total_count"` JSON devicePolicyFallbackDomainGetResponseEnvelopeResultInfoJSON `json:"-"` }
func (*DevicePolicyFallbackDomainGetResponseEnvelopeResultInfo) UnmarshalJSON ¶
func (r *DevicePolicyFallbackDomainGetResponseEnvelopeResultInfo) UnmarshalJSON(data []byte) (err error)
type DevicePolicyFallbackDomainGetResponseEnvelopeSuccess ¶
type DevicePolicyFallbackDomainGetResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
DevicePolicyFallbackDomainGetResponseEnvelopeSuccessTrue DevicePolicyFallbackDomainGetResponseEnvelopeSuccess = true
)
func (DevicePolicyFallbackDomainGetResponseEnvelopeSuccess) IsKnown ¶
func (r DevicePolicyFallbackDomainGetResponseEnvelopeSuccess) IsKnown() bool
type DevicePolicyFallbackDomainService ¶
type DevicePolicyFallbackDomainService struct {
Options []option.RequestOption
}
DevicePolicyFallbackDomainService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewDevicePolicyFallbackDomainService method instead.
func NewDevicePolicyFallbackDomainService ¶
func NewDevicePolicyFallbackDomainService(opts ...option.RequestOption) (r *DevicePolicyFallbackDomainService)
NewDevicePolicyFallbackDomainService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*DevicePolicyFallbackDomainService) Get ¶
func (r *DevicePolicyFallbackDomainService) Get(ctx context.Context, policyID string, query DevicePolicyFallbackDomainGetParams, opts ...option.RequestOption) (res *[]FallbackDomain, err error)
Fetches the list of domains to bypass Gateway DNS resolution from a specified device settings profile. These domains will use the specified local DNS resolver instead.
func (*DevicePolicyFallbackDomainService) List ¶
func (r *DevicePolicyFallbackDomainService) List(ctx context.Context, query DevicePolicyFallbackDomainListParams, opts ...option.RequestOption) (res *pagination.SinglePage[FallbackDomain], err error)
Fetches a list of domains to bypass Gateway DNS resolution. These domains will use the specified local DNS resolver instead.
func (*DevicePolicyFallbackDomainService) ListAutoPaging ¶
func (r *DevicePolicyFallbackDomainService) ListAutoPaging(ctx context.Context, query DevicePolicyFallbackDomainListParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[FallbackDomain]
Fetches a list of domains to bypass Gateway DNS resolution. These domains will use the specified local DNS resolver instead.
func (*DevicePolicyFallbackDomainService) Update ¶
func (r *DevicePolicyFallbackDomainService) Update(ctx context.Context, policyID string, params DevicePolicyFallbackDomainUpdateParams, opts ...option.RequestOption) (res *[]FallbackDomain, err error)
Sets the list of domains to bypass Gateway DNS resolution. These domains will use the specified local DNS resolver instead. This will only apply to the specified device settings profile.
type DevicePolicyFallbackDomainUpdateParams ¶
type DevicePolicyFallbackDomainUpdateParams struct { AccountID param.Field[string] `path:"account_id,required"` Body []FallbackDomainParam `json:"body,required"` }
func (DevicePolicyFallbackDomainUpdateParams) MarshalJSON ¶
func (r DevicePolicyFallbackDomainUpdateParams) MarshalJSON() (data []byte, err error)
type DevicePolicyFallbackDomainUpdateResponseEnvelope ¶
type DevicePolicyFallbackDomainUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result []FallbackDomain `json:"result,required,nullable"` // Whether the API call was successful. Success DevicePolicyFallbackDomainUpdateResponseEnvelopeSuccess `json:"success,required"` ResultInfo DevicePolicyFallbackDomainUpdateResponseEnvelopeResultInfo `json:"result_info"` JSON devicePolicyFallbackDomainUpdateResponseEnvelopeJSON `json:"-"` }
func (*DevicePolicyFallbackDomainUpdateResponseEnvelope) UnmarshalJSON ¶
func (r *DevicePolicyFallbackDomainUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DevicePolicyFallbackDomainUpdateResponseEnvelopeResultInfo ¶
type DevicePolicyFallbackDomainUpdateResponseEnvelopeResultInfo struct { // Total number of results for the requested service Count float64 `json:"count"` // Current page within paginated list of results Page float64 `json:"page"` // Number of results per page of results PerPage float64 `json:"per_page"` // Total results available without any search parameters TotalCount float64 `json:"total_count"` JSON devicePolicyFallbackDomainUpdateResponseEnvelopeResultInfoJSON `json:"-"` }
func (*DevicePolicyFallbackDomainUpdateResponseEnvelopeResultInfo) UnmarshalJSON ¶
func (r *DevicePolicyFallbackDomainUpdateResponseEnvelopeResultInfo) UnmarshalJSON(data []byte) (err error)
type DevicePolicyFallbackDomainUpdateResponseEnvelopeSuccess ¶
type DevicePolicyFallbackDomainUpdateResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
DevicePolicyFallbackDomainUpdateResponseEnvelopeSuccessTrue DevicePolicyFallbackDomainUpdateResponseEnvelopeSuccess = true
)
func (DevicePolicyFallbackDomainUpdateResponseEnvelopeSuccess) IsKnown ¶
func (r DevicePolicyFallbackDomainUpdateResponseEnvelopeSuccess) IsKnown() bool
type DevicePolicyGetParams ¶
type DevicePolicyGetResponse ¶
type DevicePolicyGetResponse = interface{}
type DevicePolicyGetResponseEnvelope ¶
type DevicePolicyGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result SettingsPolicy `json:"result,required,nullable"` // Whether the API call was successful. Success DevicePolicyGetResponseEnvelopeSuccess `json:"success,required"` ResultInfo DevicePolicyGetResponseEnvelopeResultInfo `json:"result_info"` JSON devicePolicyGetResponseEnvelopeJSON `json:"-"` }
func (*DevicePolicyGetResponseEnvelope) UnmarshalJSON ¶
func (r *DevicePolicyGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DevicePolicyGetResponseEnvelopeResultInfo ¶
type DevicePolicyGetResponseEnvelopeResultInfo struct { // Total number of results for the requested service Count float64 `json:"count"` // Current page within paginated list of results Page float64 `json:"page"` // Number of results per page of results PerPage float64 `json:"per_page"` // Total results available without any search parameters TotalCount float64 `json:"total_count"` JSON devicePolicyGetResponseEnvelopeResultInfoJSON `json:"-"` }
func (*DevicePolicyGetResponseEnvelopeResultInfo) UnmarshalJSON ¶
func (r *DevicePolicyGetResponseEnvelopeResultInfo) UnmarshalJSON(data []byte) (err error)
type DevicePolicyGetResponseEnvelopeSuccess ¶
type DevicePolicyGetResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
DevicePolicyGetResponseEnvelopeSuccessTrue DevicePolicyGetResponseEnvelopeSuccess = true
)
func (DevicePolicyGetResponseEnvelopeSuccess) IsKnown ¶
func (r DevicePolicyGetResponseEnvelopeSuccess) IsKnown() bool
type DevicePolicyIncludeGetResponseEnvelope ¶
type DevicePolicyIncludeGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result []SplitTunnelInclude `json:"result,required,nullable"` // Whether the API call was successful. Success DevicePolicyIncludeGetResponseEnvelopeSuccess `json:"success,required"` ResultInfo DevicePolicyIncludeGetResponseEnvelopeResultInfo `json:"result_info"` JSON devicePolicyIncludeGetResponseEnvelopeJSON `json:"-"` }
func (*DevicePolicyIncludeGetResponseEnvelope) UnmarshalJSON ¶
func (r *DevicePolicyIncludeGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DevicePolicyIncludeGetResponseEnvelopeResultInfo ¶
type DevicePolicyIncludeGetResponseEnvelopeResultInfo struct { // Total number of results for the requested service Count float64 `json:"count"` // Current page within paginated list of results Page float64 `json:"page"` // Number of results per page of results PerPage float64 `json:"per_page"` // Total results available without any search parameters TotalCount float64 `json:"total_count"` JSON devicePolicyIncludeGetResponseEnvelopeResultInfoJSON `json:"-"` }
func (*DevicePolicyIncludeGetResponseEnvelopeResultInfo) UnmarshalJSON ¶
func (r *DevicePolicyIncludeGetResponseEnvelopeResultInfo) UnmarshalJSON(data []byte) (err error)
type DevicePolicyIncludeGetResponseEnvelopeSuccess ¶
type DevicePolicyIncludeGetResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
DevicePolicyIncludeGetResponseEnvelopeSuccessTrue DevicePolicyIncludeGetResponseEnvelopeSuccess = true
)
func (DevicePolicyIncludeGetResponseEnvelopeSuccess) IsKnown ¶
func (r DevicePolicyIncludeGetResponseEnvelopeSuccess) IsKnown() bool
type DevicePolicyIncludeService ¶
type DevicePolicyIncludeService struct {
Options []option.RequestOption
}
DevicePolicyIncludeService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewDevicePolicyIncludeService method instead.
func NewDevicePolicyIncludeService ¶
func NewDevicePolicyIncludeService(opts ...option.RequestOption) (r *DevicePolicyIncludeService)
NewDevicePolicyIncludeService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*DevicePolicyIncludeService) Get ¶
func (r *DevicePolicyIncludeService) Get(ctx context.Context, policyID string, query DevicePolicyIncludeGetParams, opts ...option.RequestOption) (res *[]SplitTunnelInclude, err error)
Fetches the list of routes included in the WARP client's tunnel for a specific device settings profile.
func (*DevicePolicyIncludeService) List ¶
func (r *DevicePolicyIncludeService) List(ctx context.Context, query DevicePolicyIncludeListParams, opts ...option.RequestOption) (res *pagination.SinglePage[SplitTunnelInclude], err error)
Fetches the list of routes included in the WARP client's tunnel.
func (*DevicePolicyIncludeService) ListAutoPaging ¶
func (r *DevicePolicyIncludeService) ListAutoPaging(ctx context.Context, query DevicePolicyIncludeListParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[SplitTunnelInclude]
Fetches the list of routes included in the WARP client's tunnel.
func (*DevicePolicyIncludeService) Update ¶
func (r *DevicePolicyIncludeService) Update(ctx context.Context, params DevicePolicyIncludeUpdateParams, opts ...option.RequestOption) (res *[]SplitTunnelInclude, err error)
Sets the list of routes included in the WARP client's tunnel.
type DevicePolicyIncludeUpdateParams ¶
type DevicePolicyIncludeUpdateParams struct { AccountID param.Field[string] `path:"account_id,required"` Body []SplitTunnelIncludeParam `json:"body,required"` }
func (DevicePolicyIncludeUpdateParams) MarshalJSON ¶
func (r DevicePolicyIncludeUpdateParams) MarshalJSON() (data []byte, err error)
type DevicePolicyIncludeUpdateResponseEnvelope ¶
type DevicePolicyIncludeUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result []SplitTunnelInclude `json:"result,required,nullable"` // Whether the API call was successful. Success DevicePolicyIncludeUpdateResponseEnvelopeSuccess `json:"success,required"` ResultInfo DevicePolicyIncludeUpdateResponseEnvelopeResultInfo `json:"result_info"` JSON devicePolicyIncludeUpdateResponseEnvelopeJSON `json:"-"` }
func (*DevicePolicyIncludeUpdateResponseEnvelope) UnmarshalJSON ¶
func (r *DevicePolicyIncludeUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DevicePolicyIncludeUpdateResponseEnvelopeResultInfo ¶
type DevicePolicyIncludeUpdateResponseEnvelopeResultInfo struct { // Total number of results for the requested service Count float64 `json:"count"` // Current page within paginated list of results Page float64 `json:"page"` // Number of results per page of results PerPage float64 `json:"per_page"` // Total results available without any search parameters TotalCount float64 `json:"total_count"` JSON devicePolicyIncludeUpdateResponseEnvelopeResultInfoJSON `json:"-"` }
func (*DevicePolicyIncludeUpdateResponseEnvelopeResultInfo) UnmarshalJSON ¶
func (r *DevicePolicyIncludeUpdateResponseEnvelopeResultInfo) UnmarshalJSON(data []byte) (err error)
type DevicePolicyIncludeUpdateResponseEnvelopeSuccess ¶
type DevicePolicyIncludeUpdateResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
DevicePolicyIncludeUpdateResponseEnvelopeSuccessTrue DevicePolicyIncludeUpdateResponseEnvelopeSuccess = true
)
func (DevicePolicyIncludeUpdateResponseEnvelopeSuccess) IsKnown ¶
func (r DevicePolicyIncludeUpdateResponseEnvelopeSuccess) IsKnown() bool
type DevicePolicyListParams ¶
type DevicePolicyNewParams ¶
type DevicePolicyNewParams struct { AccountID param.Field[string] `path:"account_id,required"` // The wirefilter expression to match devices. Match param.Field[string] `json:"match,required"` // The name of the device settings profile. Name param.Field[string] `json:"name,required"` // The precedence of the policy. Lower values indicate higher precedence. Policies // will be evaluated in ascending order of this field. Precedence param.Field[float64] `json:"precedence,required"` // Whether to allow the user to switch WARP between modes. AllowModeSwitch param.Field[bool] `json:"allow_mode_switch"` // Whether to receive update notifications when a new version of the client is // available. AllowUpdates param.Field[bool] `json:"allow_updates"` // Whether to allow devices to leave the organization. AllowedToLeave param.Field[bool] `json:"allowed_to_leave"` // The amount of time in minutes to reconnect after having been disabled. AutoConnect param.Field[float64] `json:"auto_connect"` // Turn on the captive portal after the specified amount of time. CaptivePortal param.Field[float64] `json:"captive_portal"` // A description of the policy. Description param.Field[string] `json:"description"` // If the `dns_server` field of a fallback domain is not present, the client will // fall back to a best guess of the default/system DNS resolvers unless this policy // option is set to `true`. DisableAutoFallback param.Field[bool] `json:"disable_auto_fallback"` // Whether the policy will be applied to matching devices. Enabled param.Field[bool] `json:"enabled"` // Whether to add Microsoft IPs to Split Tunnel exclusions. ExcludeOfficeIPs param.Field[bool] `json:"exclude_office_ips"` // The amount of time in minutes a user is allowed access to their LAN. A value of // 0 will allow LAN access until the next WARP reconnection, such as a reboot or a // laptop waking from sleep. Note that this field is omitted from the response if // null or unset. LANAllowMinutes param.Field[float64] `json:"lan_allow_minutes"` // The size of the subnet for the local access network. Note that this field is // omitted from the response if null or unset. LANAllowSubnetSize param.Field[float64] `json:"lan_allow_subnet_size"` ServiceModeV2 param.Field[DevicePolicyNewParamsServiceModeV2] `json:"service_mode_v2"` // The URL to launch when the Send Feedback button is clicked. SupportURL param.Field[string] `json:"support_url"` // Whether to allow the user to turn off the WARP switch and disconnect the client. SwitchLocked param.Field[bool] `json:"switch_locked"` }
func (DevicePolicyNewParams) MarshalJSON ¶
func (r DevicePolicyNewParams) MarshalJSON() (data []byte, err error)
type DevicePolicyNewParamsServiceModeV2 ¶
type DevicePolicyNewParamsServiceModeV2 struct { // The mode to run the WARP client under. Mode param.Field[string] `json:"mode"` // The port number when used with proxy mode. Port param.Field[float64] `json:"port"` }
func (DevicePolicyNewParamsServiceModeV2) MarshalJSON ¶
func (r DevicePolicyNewParamsServiceModeV2) MarshalJSON() (data []byte, err error)
type DevicePolicyNewResponse ¶
type DevicePolicyNewResponse = interface{}
type DevicePolicyNewResponseEnvelope ¶
type DevicePolicyNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result SettingsPolicy `json:"result,required,nullable"` // Whether the API call was successful. Success DevicePolicyNewResponseEnvelopeSuccess `json:"success,required"` ResultInfo DevicePolicyNewResponseEnvelopeResultInfo `json:"result_info"` JSON devicePolicyNewResponseEnvelopeJSON `json:"-"` }
func (*DevicePolicyNewResponseEnvelope) UnmarshalJSON ¶
func (r *DevicePolicyNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DevicePolicyNewResponseEnvelopeResultInfo ¶
type DevicePolicyNewResponseEnvelopeResultInfo struct { // Total number of results for the requested service Count float64 `json:"count"` // Current page within paginated list of results Page float64 `json:"page"` // Number of results per page of results PerPage float64 `json:"per_page"` // Total results available without any search parameters TotalCount float64 `json:"total_count"` JSON devicePolicyNewResponseEnvelopeResultInfoJSON `json:"-"` }
func (*DevicePolicyNewResponseEnvelopeResultInfo) UnmarshalJSON ¶
func (r *DevicePolicyNewResponseEnvelopeResultInfo) UnmarshalJSON(data []byte) (err error)
type DevicePolicyNewResponseEnvelopeSuccess ¶
type DevicePolicyNewResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
DevicePolicyNewResponseEnvelopeSuccessTrue DevicePolicyNewResponseEnvelopeSuccess = true
)
func (DevicePolicyNewResponseEnvelopeSuccess) IsKnown ¶
func (r DevicePolicyNewResponseEnvelopeSuccess) IsKnown() bool
type DevicePolicyService ¶
type DevicePolicyService struct { Options []option.RequestOption DefaultPolicy *DevicePolicyDefaultPolicyService Excludes *DevicePolicyExcludeService FallbackDomains *DevicePolicyFallbackDomainService Includes *DevicePolicyIncludeService }
DevicePolicyService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewDevicePolicyService method instead.
func NewDevicePolicyService ¶
func NewDevicePolicyService(opts ...option.RequestOption) (r *DevicePolicyService)
NewDevicePolicyService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*DevicePolicyService) Delete ¶
func (r *DevicePolicyService) Delete(ctx context.Context, policyID string, params DevicePolicyDeleteParams, opts ...option.RequestOption) (res *[]SettingsPolicy, err error)
Deletes a device settings profile and fetches a list of the remaining profiles for an account.
func (*DevicePolicyService) Edit ¶
func (r *DevicePolicyService) Edit(ctx context.Context, policyID string, params DevicePolicyEditParams, opts ...option.RequestOption) (res *SettingsPolicy, err error)
Updates a configured device settings profile.
func (*DevicePolicyService) Get ¶
func (r *DevicePolicyService) Get(ctx context.Context, policyID string, query DevicePolicyGetParams, opts ...option.RequestOption) (res *SettingsPolicy, err error)
Fetches a device settings profile by ID.
func (*DevicePolicyService) List ¶
func (r *DevicePolicyService) List(ctx context.Context, query DevicePolicyListParams, opts ...option.RequestOption) (res *pagination.SinglePage[SettingsPolicy], err error)
Fetches a list of the device settings profiles for an account.
func (*DevicePolicyService) ListAutoPaging ¶
func (r *DevicePolicyService) ListAutoPaging(ctx context.Context, query DevicePolicyListParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[SettingsPolicy]
Fetches a list of the device settings profiles for an account.
func (*DevicePolicyService) New ¶
func (r *DevicePolicyService) New(ctx context.Context, params DevicePolicyNewParams, opts ...option.RequestOption) (res *SettingsPolicy, err error)
Creates a device settings profile to be applied to certain devices matching the criteria.
type DevicePostureDeleteParams ¶
type DevicePostureDeleteParams struct { AccountID param.Field[string] `path:"account_id,required"` Body interface{} `json:"body,required"` }
func (DevicePostureDeleteParams) MarshalJSON ¶
func (r DevicePostureDeleteParams) MarshalJSON() (data []byte, err error)
type DevicePostureDeleteResponse ¶
type DevicePostureDeleteResponse struct { // API UUID. ID string `json:"id"` JSON devicePostureDeleteResponseJSON `json:"-"` }
func (*DevicePostureDeleteResponse) UnmarshalJSON ¶
func (r *DevicePostureDeleteResponse) UnmarshalJSON(data []byte) (err error)
type DevicePostureDeleteResponseEnvelope ¶
type DevicePostureDeleteResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result DevicePostureDeleteResponse `json:"result,required,nullable"` // Whether the API call was successful. Success DevicePostureDeleteResponseEnvelopeSuccess `json:"success,required"` JSON devicePostureDeleteResponseEnvelopeJSON `json:"-"` }
func (*DevicePostureDeleteResponseEnvelope) UnmarshalJSON ¶
func (r *DevicePostureDeleteResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DevicePostureDeleteResponseEnvelopeSuccess ¶
type DevicePostureDeleteResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
DevicePostureDeleteResponseEnvelopeSuccessTrue DevicePostureDeleteResponseEnvelopeSuccess = true
)
func (DevicePostureDeleteResponseEnvelopeSuccess) IsKnown ¶
func (r DevicePostureDeleteResponseEnvelopeSuccess) IsKnown() bool
type DevicePostureGetParams ¶
type DevicePostureGetResponseEnvelope ¶
type DevicePostureGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result DevicePostureRule `json:"result,required,nullable"` // Whether the API call was successful. Success DevicePostureGetResponseEnvelopeSuccess `json:"success,required"` JSON devicePostureGetResponseEnvelopeJSON `json:"-"` }
func (*DevicePostureGetResponseEnvelope) UnmarshalJSON ¶
func (r *DevicePostureGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DevicePostureGetResponseEnvelopeSuccess ¶
type DevicePostureGetResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
DevicePostureGetResponseEnvelopeSuccessTrue DevicePostureGetResponseEnvelopeSuccess = true
)
func (DevicePostureGetResponseEnvelopeSuccess) IsKnown ¶
func (r DevicePostureGetResponseEnvelopeSuccess) IsKnown() bool
type DevicePostureIntegrationDeleteParams ¶
type DevicePostureIntegrationDeleteParams struct { AccountID param.Field[string] `path:"account_id,required"` Body interface{} `json:"body,required"` }
func (DevicePostureIntegrationDeleteParams) MarshalJSON ¶
func (r DevicePostureIntegrationDeleteParams) MarshalJSON() (data []byte, err error)
type DevicePostureIntegrationDeleteResponseEnvelope ¶
type DevicePostureIntegrationDeleteResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result DevicePostureIntegrationDeleteResponseUnion `json:"result,required"` // Whether the API call was successful. Success DevicePostureIntegrationDeleteResponseEnvelopeSuccess `json:"success,required"` JSON devicePostureIntegrationDeleteResponseEnvelopeJSON `json:"-"` }
func (*DevicePostureIntegrationDeleteResponseEnvelope) UnmarshalJSON ¶
func (r *DevicePostureIntegrationDeleteResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DevicePostureIntegrationDeleteResponseEnvelopeSuccess ¶
type DevicePostureIntegrationDeleteResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
DevicePostureIntegrationDeleteResponseEnvelopeSuccessTrue DevicePostureIntegrationDeleteResponseEnvelopeSuccess = true
)
func (DevicePostureIntegrationDeleteResponseEnvelopeSuccess) IsKnown ¶
func (r DevicePostureIntegrationDeleteResponseEnvelopeSuccess) IsKnown() bool
type DevicePostureIntegrationDeleteResponseUnion ¶
type DevicePostureIntegrationDeleteResponseUnion interface {
ImplementsZeroTrustDevicePostureIntegrationDeleteResponseUnion()
}
Union satisfied by zero_trust.DevicePostureIntegrationDeleteResponseUnknown or shared.UnionString.
type DevicePostureIntegrationEditParams ¶
type DevicePostureIntegrationEditParams struct { AccountID param.Field[string] `path:"account_id,required"` // The configuration object containing third-party integration information. Config param.Field[DevicePostureIntegrationEditParamsConfigUnion] `json:"config"` // The interval between each posture check with the third-party API. Use `m` for // minutes (e.g. `5m`) and `h` for hours (e.g. `12h`). Interval param.Field[string] `json:"interval"` // The name of the device posture integration. Name param.Field[string] `json:"name"` // The type of device posture integration. Type param.Field[DevicePostureIntegrationEditParamsType] `json:"type"` }
func (DevicePostureIntegrationEditParams) MarshalJSON ¶
func (r DevicePostureIntegrationEditParams) MarshalJSON() (data []byte, err error)
type DevicePostureIntegrationEditParamsConfig ¶
type DevicePostureIntegrationEditParamsConfig struct { // The Workspace One API URL provided in the Workspace One Admin Dashboard. APIURL param.Field[string] `json:"api_url"` // The Workspace One Authorization URL depending on your region. AuthURL param.Field[string] `json:"auth_url"` // The Workspace One client ID provided in the Workspace One Admin Dashboard. ClientID param.Field[string] `json:"client_id"` // The Workspace One client secret provided in the Workspace One Admin Dashboard. ClientSecret param.Field[string] `json:"client_secret,required"` // The Crowdstrike customer ID. CustomerID param.Field[string] `json:"customer_id"` // The Uptycs client secret. ClientKey param.Field[string] `json:"client_key"` // If present, this id will be passed in the `CF-Access-Client-ID` header when // hitting the `api_url` AccessClientID param.Field[string] `json:"access_client_id"` // If present, this secret will be passed in the `CF-Access-Client-Secret` header // when hitting the `api_url` AccessClientSecret param.Field[string] `json:"access_client_secret"` }
The configuration object containing third-party integration information.
func (DevicePostureIntegrationEditParamsConfig) MarshalJSON ¶
func (r DevicePostureIntegrationEditParamsConfig) MarshalJSON() (data []byte, err error)
type DevicePostureIntegrationEditParamsConfigTeamsDevicesCrowdstrikeConfigRequest ¶
type DevicePostureIntegrationEditParamsConfigTeamsDevicesCrowdstrikeConfigRequest struct { // The Crowdstrike API URL. APIURL param.Field[string] `json:"api_url,required"` // The Crowdstrike client ID. ClientID param.Field[string] `json:"client_id,required"` // The Crowdstrike client secret. ClientSecret param.Field[string] `json:"client_secret,required"` // The Crowdstrike customer ID. CustomerID param.Field[string] `json:"customer_id,required"` }
func (DevicePostureIntegrationEditParamsConfigTeamsDevicesCrowdstrikeConfigRequest) MarshalJSON ¶
func (r DevicePostureIntegrationEditParamsConfigTeamsDevicesCrowdstrikeConfigRequest) MarshalJSON() (data []byte, err error)
type DevicePostureIntegrationEditParamsConfigTeamsDevicesIntuneConfigRequest ¶
type DevicePostureIntegrationEditParamsConfigTeamsDevicesIntuneConfigRequest struct { // The Intune client ID. ClientID param.Field[string] `json:"client_id,required"` // The Intune client secret. ClientSecret param.Field[string] `json:"client_secret,required"` // The Intune customer ID. CustomerID param.Field[string] `json:"customer_id,required"` }
func (DevicePostureIntegrationEditParamsConfigTeamsDevicesIntuneConfigRequest) MarshalJSON ¶
func (r DevicePostureIntegrationEditParamsConfigTeamsDevicesIntuneConfigRequest) MarshalJSON() (data []byte, err error)
type DevicePostureIntegrationEditParamsConfigTeamsDevicesKolideConfigRequest ¶
type DevicePostureIntegrationEditParamsConfigTeamsDevicesKolideConfigRequest struct { // The Kolide client ID. ClientID param.Field[string] `json:"client_id,required"` // The Kolide client secret. ClientSecret param.Field[string] `json:"client_secret,required"` }
func (DevicePostureIntegrationEditParamsConfigTeamsDevicesKolideConfigRequest) MarshalJSON ¶
func (r DevicePostureIntegrationEditParamsConfigTeamsDevicesKolideConfigRequest) MarshalJSON() (data []byte, err error)
type DevicePostureIntegrationEditParamsConfigTeamsDevicesSentineloneS2sConfigRequest ¶
type DevicePostureIntegrationEditParamsConfigTeamsDevicesSentineloneS2sConfigRequest struct { // The SentinelOne S2S API URL. APIURL param.Field[string] `json:"api_url,required"` // The SentinelOne S2S client secret. ClientSecret param.Field[string] `json:"client_secret,required"` }
func (DevicePostureIntegrationEditParamsConfigTeamsDevicesSentineloneS2sConfigRequest) MarshalJSON ¶
func (r DevicePostureIntegrationEditParamsConfigTeamsDevicesSentineloneS2sConfigRequest) MarshalJSON() (data []byte, err error)
type DevicePostureIntegrationEditParamsConfigTeamsDevicesTaniumConfigRequest ¶
type DevicePostureIntegrationEditParamsConfigTeamsDevicesTaniumConfigRequest struct { // The Tanium API URL. APIURL param.Field[string] `json:"api_url,required"` // The Tanium client secret. ClientSecret param.Field[string] `json:"client_secret,required"` // If present, this id will be passed in the `CF-Access-Client-ID` header when // hitting the `api_url` AccessClientID param.Field[string] `json:"access_client_id"` // If present, this secret will be passed in the `CF-Access-Client-Secret` header // when hitting the `api_url` AccessClientSecret param.Field[string] `json:"access_client_secret"` }
func (DevicePostureIntegrationEditParamsConfigTeamsDevicesTaniumConfigRequest) MarshalJSON ¶
func (r DevicePostureIntegrationEditParamsConfigTeamsDevicesTaniumConfigRequest) MarshalJSON() (data []byte, err error)
type DevicePostureIntegrationEditParamsConfigTeamsDevicesUptycsConfigRequest ¶
type DevicePostureIntegrationEditParamsConfigTeamsDevicesUptycsConfigRequest struct { // The Uptycs API URL. APIURL param.Field[string] `json:"api_url,required"` // The Uptycs client secret. ClientKey param.Field[string] `json:"client_key,required"` // The Uptycs client secret. ClientSecret param.Field[string] `json:"client_secret,required"` // The Uptycs customer ID. CustomerID param.Field[string] `json:"customer_id,required"` }
func (DevicePostureIntegrationEditParamsConfigTeamsDevicesUptycsConfigRequest) MarshalJSON ¶
func (r DevicePostureIntegrationEditParamsConfigTeamsDevicesUptycsConfigRequest) MarshalJSON() (data []byte, err error)
type DevicePostureIntegrationEditParamsConfigTeamsDevicesWorkspaceOneConfigRequest ¶
type DevicePostureIntegrationEditParamsConfigTeamsDevicesWorkspaceOneConfigRequest struct { // The Workspace One API URL provided in the Workspace One Admin Dashboard. APIURL param.Field[string] `json:"api_url,required"` // The Workspace One Authorization URL depending on your region. AuthURL param.Field[string] `json:"auth_url,required"` // The Workspace One client ID provided in the Workspace One Admin Dashboard. ClientID param.Field[string] `json:"client_id,required"` // The Workspace One client secret provided in the Workspace One Admin Dashboard. ClientSecret param.Field[string] `json:"client_secret,required"` }
func (DevicePostureIntegrationEditParamsConfigTeamsDevicesWorkspaceOneConfigRequest) MarshalJSON ¶
func (r DevicePostureIntegrationEditParamsConfigTeamsDevicesWorkspaceOneConfigRequest) MarshalJSON() (data []byte, err error)
type DevicePostureIntegrationEditParamsConfigUnion ¶
type DevicePostureIntegrationEditParamsConfigUnion interface {
// contains filtered or unexported methods
}
The configuration object containing third-party integration information.
Satisfied by zero_trust.DevicePostureIntegrationEditParamsConfigTeamsDevicesWorkspaceOneConfigRequest, zero_trust.DevicePostureIntegrationEditParamsConfigTeamsDevicesCrowdstrikeConfigRequest, zero_trust.DevicePostureIntegrationEditParamsConfigTeamsDevicesUptycsConfigRequest, zero_trust.DevicePostureIntegrationEditParamsConfigTeamsDevicesIntuneConfigRequest, zero_trust.DevicePostureIntegrationEditParamsConfigTeamsDevicesKolideConfigRequest, zero_trust.DevicePostureIntegrationEditParamsConfigTeamsDevicesTaniumConfigRequest, zero_trust.DevicePostureIntegrationEditParamsConfigTeamsDevicesSentineloneS2sConfigRequest, DevicePostureIntegrationEditParamsConfig.
type DevicePostureIntegrationEditParamsType ¶
type DevicePostureIntegrationEditParamsType string
The type of device posture integration.
const ( DevicePostureIntegrationEditParamsTypeWorkspaceOne DevicePostureIntegrationEditParamsType = "workspace_one" DevicePostureIntegrationEditParamsTypeCrowdstrikeS2s DevicePostureIntegrationEditParamsType = "crowdstrike_s2s" DevicePostureIntegrationEditParamsTypeUptycs DevicePostureIntegrationEditParamsType = "uptycs" DevicePostureIntegrationEditParamsTypeIntune DevicePostureIntegrationEditParamsType = "intune" DevicePostureIntegrationEditParamsTypeKolide DevicePostureIntegrationEditParamsType = "kolide" DevicePostureIntegrationEditParamsTypeTanium DevicePostureIntegrationEditParamsType = "tanium" DevicePostureIntegrationEditParamsTypeSentineloneS2s DevicePostureIntegrationEditParamsType = "sentinelone_s2s" )
func (DevicePostureIntegrationEditParamsType) IsKnown ¶
func (r DevicePostureIntegrationEditParamsType) IsKnown() bool
type DevicePostureIntegrationEditResponseEnvelope ¶
type DevicePostureIntegrationEditResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result Integration `json:"result,required,nullable"` // Whether the API call was successful. Success DevicePostureIntegrationEditResponseEnvelopeSuccess `json:"success,required"` JSON devicePostureIntegrationEditResponseEnvelopeJSON `json:"-"` }
func (*DevicePostureIntegrationEditResponseEnvelope) UnmarshalJSON ¶
func (r *DevicePostureIntegrationEditResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DevicePostureIntegrationEditResponseEnvelopeSuccess ¶
type DevicePostureIntegrationEditResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
DevicePostureIntegrationEditResponseEnvelopeSuccessTrue DevicePostureIntegrationEditResponseEnvelopeSuccess = true
)
func (DevicePostureIntegrationEditResponseEnvelopeSuccess) IsKnown ¶
func (r DevicePostureIntegrationEditResponseEnvelopeSuccess) IsKnown() bool
type DevicePostureIntegrationGetResponseEnvelope ¶
type DevicePostureIntegrationGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result Integration `json:"result,required,nullable"` // Whether the API call was successful. Success DevicePostureIntegrationGetResponseEnvelopeSuccess `json:"success,required"` JSON devicePostureIntegrationGetResponseEnvelopeJSON `json:"-"` }
func (*DevicePostureIntegrationGetResponseEnvelope) UnmarshalJSON ¶
func (r *DevicePostureIntegrationGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DevicePostureIntegrationGetResponseEnvelopeSuccess ¶
type DevicePostureIntegrationGetResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
DevicePostureIntegrationGetResponseEnvelopeSuccessTrue DevicePostureIntegrationGetResponseEnvelopeSuccess = true
)
func (DevicePostureIntegrationGetResponseEnvelopeSuccess) IsKnown ¶
func (r DevicePostureIntegrationGetResponseEnvelopeSuccess) IsKnown() bool
type DevicePostureIntegrationNewParams ¶
type DevicePostureIntegrationNewParams struct { AccountID param.Field[string] `path:"account_id,required"` // The configuration object containing third-party integration information. Config param.Field[DevicePostureIntegrationNewParamsConfigUnion] `json:"config,required"` // The interval between each posture check with the third-party API. Use `m` for // minutes (e.g. `5m`) and `h` for hours (e.g. `12h`). Interval param.Field[string] `json:"interval,required"` // The name of the device posture integration. Name param.Field[string] `json:"name,required"` // The type of device posture integration. Type param.Field[DevicePostureIntegrationNewParamsType] `json:"type,required"` }
func (DevicePostureIntegrationNewParams) MarshalJSON ¶
func (r DevicePostureIntegrationNewParams) MarshalJSON() (data []byte, err error)
type DevicePostureIntegrationNewParamsConfig ¶
type DevicePostureIntegrationNewParamsConfig struct { // The Workspace One API URL provided in the Workspace One Admin Dashboard. APIURL param.Field[string] `json:"api_url"` // The Workspace One Authorization URL depending on your region. AuthURL param.Field[string] `json:"auth_url"` // The Workspace One client ID provided in the Workspace One Admin Dashboard. ClientID param.Field[string] `json:"client_id"` // The Workspace One client secret provided in the Workspace One Admin Dashboard. ClientSecret param.Field[string] `json:"client_secret,required"` // The Crowdstrike customer ID. CustomerID param.Field[string] `json:"customer_id"` // The Uptycs client secret. ClientKey param.Field[string] `json:"client_key"` // If present, this id will be passed in the `CF-Access-Client-ID` header when // hitting the `api_url` AccessClientID param.Field[string] `json:"access_client_id"` // If present, this secret will be passed in the `CF-Access-Client-Secret` header // when hitting the `api_url` AccessClientSecret param.Field[string] `json:"access_client_secret"` }
The configuration object containing third-party integration information.
func (DevicePostureIntegrationNewParamsConfig) MarshalJSON ¶
func (r DevicePostureIntegrationNewParamsConfig) MarshalJSON() (data []byte, err error)
type DevicePostureIntegrationNewParamsConfigTeamsDevicesCrowdstrikeConfigRequest ¶
type DevicePostureIntegrationNewParamsConfigTeamsDevicesCrowdstrikeConfigRequest struct { // The Crowdstrike API URL. APIURL param.Field[string] `json:"api_url,required"` // The Crowdstrike client ID. ClientID param.Field[string] `json:"client_id,required"` // The Crowdstrike client secret. ClientSecret param.Field[string] `json:"client_secret,required"` // The Crowdstrike customer ID. CustomerID param.Field[string] `json:"customer_id,required"` }
func (DevicePostureIntegrationNewParamsConfigTeamsDevicesCrowdstrikeConfigRequest) MarshalJSON ¶
func (r DevicePostureIntegrationNewParamsConfigTeamsDevicesCrowdstrikeConfigRequest) MarshalJSON() (data []byte, err error)
type DevicePostureIntegrationNewParamsConfigTeamsDevicesIntuneConfigRequest ¶
type DevicePostureIntegrationNewParamsConfigTeamsDevicesIntuneConfigRequest struct { // The Intune client ID. ClientID param.Field[string] `json:"client_id,required"` // The Intune client secret. ClientSecret param.Field[string] `json:"client_secret,required"` // The Intune customer ID. CustomerID param.Field[string] `json:"customer_id,required"` }
func (DevicePostureIntegrationNewParamsConfigTeamsDevicesIntuneConfigRequest) MarshalJSON ¶
func (r DevicePostureIntegrationNewParamsConfigTeamsDevicesIntuneConfigRequest) MarshalJSON() (data []byte, err error)
type DevicePostureIntegrationNewParamsConfigTeamsDevicesKolideConfigRequest ¶
type DevicePostureIntegrationNewParamsConfigTeamsDevicesKolideConfigRequest struct { // The Kolide client ID. ClientID param.Field[string] `json:"client_id,required"` // The Kolide client secret. ClientSecret param.Field[string] `json:"client_secret,required"` }
func (DevicePostureIntegrationNewParamsConfigTeamsDevicesKolideConfigRequest) MarshalJSON ¶
func (r DevicePostureIntegrationNewParamsConfigTeamsDevicesKolideConfigRequest) MarshalJSON() (data []byte, err error)
type DevicePostureIntegrationNewParamsConfigTeamsDevicesSentineloneS2sConfigRequest ¶
type DevicePostureIntegrationNewParamsConfigTeamsDevicesSentineloneS2sConfigRequest struct { // The SentinelOne S2S API URL. APIURL param.Field[string] `json:"api_url,required"` // The SentinelOne S2S client secret. ClientSecret param.Field[string] `json:"client_secret,required"` }
func (DevicePostureIntegrationNewParamsConfigTeamsDevicesSentineloneS2sConfigRequest) MarshalJSON ¶
func (r DevicePostureIntegrationNewParamsConfigTeamsDevicesSentineloneS2sConfigRequest) MarshalJSON() (data []byte, err error)
type DevicePostureIntegrationNewParamsConfigTeamsDevicesTaniumConfigRequest ¶
type DevicePostureIntegrationNewParamsConfigTeamsDevicesTaniumConfigRequest struct { // The Tanium API URL. APIURL param.Field[string] `json:"api_url,required"` // The Tanium client secret. ClientSecret param.Field[string] `json:"client_secret,required"` // If present, this id will be passed in the `CF-Access-Client-ID` header when // hitting the `api_url` AccessClientID param.Field[string] `json:"access_client_id"` // If present, this secret will be passed in the `CF-Access-Client-Secret` header // when hitting the `api_url` AccessClientSecret param.Field[string] `json:"access_client_secret"` }
func (DevicePostureIntegrationNewParamsConfigTeamsDevicesTaniumConfigRequest) MarshalJSON ¶
func (r DevicePostureIntegrationNewParamsConfigTeamsDevicesTaniumConfigRequest) MarshalJSON() (data []byte, err error)
type DevicePostureIntegrationNewParamsConfigTeamsDevicesUptycsConfigRequest ¶
type DevicePostureIntegrationNewParamsConfigTeamsDevicesUptycsConfigRequest struct { // The Uptycs API URL. APIURL param.Field[string] `json:"api_url,required"` // The Uptycs client secret. ClientKey param.Field[string] `json:"client_key,required"` // The Uptycs client secret. ClientSecret param.Field[string] `json:"client_secret,required"` // The Uptycs customer ID. CustomerID param.Field[string] `json:"customer_id,required"` }
func (DevicePostureIntegrationNewParamsConfigTeamsDevicesUptycsConfigRequest) MarshalJSON ¶
func (r DevicePostureIntegrationNewParamsConfigTeamsDevicesUptycsConfigRequest) MarshalJSON() (data []byte, err error)
type DevicePostureIntegrationNewParamsConfigTeamsDevicesWorkspaceOneConfigRequest ¶
type DevicePostureIntegrationNewParamsConfigTeamsDevicesWorkspaceOneConfigRequest struct { // The Workspace One API URL provided in the Workspace One Admin Dashboard. APIURL param.Field[string] `json:"api_url,required"` // The Workspace One Authorization URL depending on your region. AuthURL param.Field[string] `json:"auth_url,required"` // The Workspace One client ID provided in the Workspace One Admin Dashboard. ClientID param.Field[string] `json:"client_id,required"` // The Workspace One client secret provided in the Workspace One Admin Dashboard. ClientSecret param.Field[string] `json:"client_secret,required"` }
func (DevicePostureIntegrationNewParamsConfigTeamsDevicesWorkspaceOneConfigRequest) MarshalJSON ¶
func (r DevicePostureIntegrationNewParamsConfigTeamsDevicesWorkspaceOneConfigRequest) MarshalJSON() (data []byte, err error)
type DevicePostureIntegrationNewParamsConfigUnion ¶
type DevicePostureIntegrationNewParamsConfigUnion interface {
// contains filtered or unexported methods
}
The configuration object containing third-party integration information.
Satisfied by zero_trust.DevicePostureIntegrationNewParamsConfigTeamsDevicesWorkspaceOneConfigRequest, zero_trust.DevicePostureIntegrationNewParamsConfigTeamsDevicesCrowdstrikeConfigRequest, zero_trust.DevicePostureIntegrationNewParamsConfigTeamsDevicesUptycsConfigRequest, zero_trust.DevicePostureIntegrationNewParamsConfigTeamsDevicesIntuneConfigRequest, zero_trust.DevicePostureIntegrationNewParamsConfigTeamsDevicesKolideConfigRequest, zero_trust.DevicePostureIntegrationNewParamsConfigTeamsDevicesTaniumConfigRequest, zero_trust.DevicePostureIntegrationNewParamsConfigTeamsDevicesSentineloneS2sConfigRequest, DevicePostureIntegrationNewParamsConfig.
type DevicePostureIntegrationNewParamsType ¶
type DevicePostureIntegrationNewParamsType string
The type of device posture integration.
const ( DevicePostureIntegrationNewParamsTypeWorkspaceOne DevicePostureIntegrationNewParamsType = "workspace_one" DevicePostureIntegrationNewParamsTypeCrowdstrikeS2s DevicePostureIntegrationNewParamsType = "crowdstrike_s2s" DevicePostureIntegrationNewParamsTypeUptycs DevicePostureIntegrationNewParamsType = "uptycs" DevicePostureIntegrationNewParamsTypeIntune DevicePostureIntegrationNewParamsType = "intune" DevicePostureIntegrationNewParamsTypeKolide DevicePostureIntegrationNewParamsType = "kolide" DevicePostureIntegrationNewParamsTypeTanium DevicePostureIntegrationNewParamsType = "tanium" DevicePostureIntegrationNewParamsTypeSentineloneS2s DevicePostureIntegrationNewParamsType = "sentinelone_s2s" )
func (DevicePostureIntegrationNewParamsType) IsKnown ¶
func (r DevicePostureIntegrationNewParamsType) IsKnown() bool
type DevicePostureIntegrationNewResponseEnvelope ¶
type DevicePostureIntegrationNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result Integration `json:"result,required,nullable"` // Whether the API call was successful. Success DevicePostureIntegrationNewResponseEnvelopeSuccess `json:"success,required"` JSON devicePostureIntegrationNewResponseEnvelopeJSON `json:"-"` }
func (*DevicePostureIntegrationNewResponseEnvelope) UnmarshalJSON ¶
func (r *DevicePostureIntegrationNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DevicePostureIntegrationNewResponseEnvelopeSuccess ¶
type DevicePostureIntegrationNewResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
DevicePostureIntegrationNewResponseEnvelopeSuccessTrue DevicePostureIntegrationNewResponseEnvelopeSuccess = true
)
func (DevicePostureIntegrationNewResponseEnvelopeSuccess) IsKnown ¶
func (r DevicePostureIntegrationNewResponseEnvelopeSuccess) IsKnown() bool
type DevicePostureIntegrationService ¶
type DevicePostureIntegrationService struct {
Options []option.RequestOption
}
DevicePostureIntegrationService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewDevicePostureIntegrationService method instead.
func NewDevicePostureIntegrationService ¶
func NewDevicePostureIntegrationService(opts ...option.RequestOption) (r *DevicePostureIntegrationService)
NewDevicePostureIntegrationService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*DevicePostureIntegrationService) Delete ¶
func (r *DevicePostureIntegrationService) Delete(ctx context.Context, integrationID string, params DevicePostureIntegrationDeleteParams, opts ...option.RequestOption) (res *DevicePostureIntegrationDeleteResponseUnion, err error)
Delete a configured device posture integration.
func (*DevicePostureIntegrationService) Edit ¶
func (r *DevicePostureIntegrationService) Edit(ctx context.Context, integrationID string, params DevicePostureIntegrationEditParams, opts ...option.RequestOption) (res *Integration, err error)
Updates a configured device posture integration.
func (*DevicePostureIntegrationService) Get ¶
func (r *DevicePostureIntegrationService) Get(ctx context.Context, integrationID string, query DevicePostureIntegrationGetParams, opts ...option.RequestOption) (res *Integration, err error)
Fetches details for a single device posture integration.
func (*DevicePostureIntegrationService) List ¶
func (r *DevicePostureIntegrationService) List(ctx context.Context, query DevicePostureIntegrationListParams, opts ...option.RequestOption) (res *pagination.SinglePage[Integration], err error)
Fetches the list of device posture integrations for an account.
func (*DevicePostureIntegrationService) ListAutoPaging ¶
func (r *DevicePostureIntegrationService) ListAutoPaging(ctx context.Context, query DevicePostureIntegrationListParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[Integration]
Fetches the list of device posture integrations for an account.
func (*DevicePostureIntegrationService) New ¶
func (r *DevicePostureIntegrationService) New(ctx context.Context, params DevicePostureIntegrationNewParams, opts ...option.RequestOption) (res *Integration, err error)
Create a new device posture integration.
type DevicePostureListParams ¶
type DevicePostureNewParams ¶
type DevicePostureNewParams struct { AccountID param.Field[string] `path:"account_id,required"` // The name of the device posture rule. Name param.Field[string] `json:"name,required"` // The type of device posture rule. Type param.Field[DevicePostureNewParamsType] `json:"type,required"` // The description of the device posture rule. Description param.Field[string] `json:"description"` // Sets the expiration time for a posture check result. If empty, the result // remains valid until it is overwritten by new data from the WARP client. Expiration param.Field[string] `json:"expiration"` // The value to be checked against. Input param.Field[DeviceInputUnionParam] `json:"input"` // The conditions that the client must match to run the rule. Match param.Field[[]DeviceMatchParam] `json:"match"` // Polling frequency for the WARP client posture check. Default: `5m` (poll every // five minutes). Minimum: `1m`. Schedule param.Field[string] `json:"schedule"` }
func (DevicePostureNewParams) MarshalJSON ¶
func (r DevicePostureNewParams) MarshalJSON() (data []byte, err error)
type DevicePostureNewParamsType ¶
type DevicePostureNewParamsType string
The type of device posture rule.
const ( DevicePostureNewParamsTypeFile DevicePostureNewParamsType = "file" DevicePostureNewParamsTypeApplication DevicePostureNewParamsType = "application" DevicePostureNewParamsTypeTanium DevicePostureNewParamsType = "tanium" DevicePostureNewParamsTypeGateway DevicePostureNewParamsType = "gateway" DevicePostureNewParamsTypeWARP DevicePostureNewParamsType = "warp" DevicePostureNewParamsTypeDiskEncryption DevicePostureNewParamsType = "disk_encryption" DevicePostureNewParamsTypeSentinelone DevicePostureNewParamsType = "sentinelone" DevicePostureNewParamsTypeCarbonblack DevicePostureNewParamsType = "carbonblack" DevicePostureNewParamsTypeFirewall DevicePostureNewParamsType = "firewall" DevicePostureNewParamsTypeOSVersion DevicePostureNewParamsType = "os_version" DevicePostureNewParamsTypeDomainJoined DevicePostureNewParamsType = "domain_joined" DevicePostureNewParamsTypeClientCertificate DevicePostureNewParamsType = "client_certificate" DevicePostureNewParamsTypeUniqueClientID DevicePostureNewParamsType = "unique_client_id" DevicePostureNewParamsTypeKolide DevicePostureNewParamsType = "kolide" DevicePostureNewParamsTypeTaniumS2s DevicePostureNewParamsType = "tanium_s2s" DevicePostureNewParamsTypeCrowdstrikeS2s DevicePostureNewParamsType = "crowdstrike_s2s" DevicePostureNewParamsTypeIntune DevicePostureNewParamsType = "intune" DevicePostureNewParamsTypeWorkspaceOne DevicePostureNewParamsType = "workspace_one" DevicePostureNewParamsTypeSentineloneS2s DevicePostureNewParamsType = "sentinelone_s2s" )
func (DevicePostureNewParamsType) IsKnown ¶
func (r DevicePostureNewParamsType) IsKnown() bool
type DevicePostureNewResponseEnvelope ¶
type DevicePostureNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result DevicePostureRule `json:"result,required,nullable"` // Whether the API call was successful. Success DevicePostureNewResponseEnvelopeSuccess `json:"success,required"` JSON devicePostureNewResponseEnvelopeJSON `json:"-"` }
func (*DevicePostureNewResponseEnvelope) UnmarshalJSON ¶
func (r *DevicePostureNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DevicePostureNewResponseEnvelopeSuccess ¶
type DevicePostureNewResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
DevicePostureNewResponseEnvelopeSuccessTrue DevicePostureNewResponseEnvelopeSuccess = true
)
func (DevicePostureNewResponseEnvelopeSuccess) IsKnown ¶
func (r DevicePostureNewResponseEnvelopeSuccess) IsKnown() bool
type DevicePostureRule ¶
type DevicePostureRule struct { // API UUID. ID string `json:"id"` // The description of the device posture rule. Description string `json:"description"` // Sets the expiration time for a posture check result. If empty, the result // remains valid until it is overwritten by new data from the WARP client. Expiration string `json:"expiration"` // The value to be checked against. Input DeviceInput `json:"input"` // The conditions that the client must match to run the rule. Match []DeviceMatch `json:"match"` // The name of the device posture rule. Name string `json:"name"` // Polling frequency for the WARP client posture check. Default: `5m` (poll every // five minutes). Minimum: `1m`. Schedule string `json:"schedule"` // The type of device posture rule. Type DevicePostureRuleType `json:"type"` JSON devicePostureRuleJSON `json:"-"` }
func (*DevicePostureRule) UnmarshalJSON ¶
func (r *DevicePostureRule) UnmarshalJSON(data []byte) (err error)
type DevicePostureRuleType ¶
type DevicePostureRuleType string
The type of device posture rule.
const ( DevicePostureRuleTypeFile DevicePostureRuleType = "file" DevicePostureRuleTypeApplication DevicePostureRuleType = "application" DevicePostureRuleTypeTanium DevicePostureRuleType = "tanium" DevicePostureRuleTypeGateway DevicePostureRuleType = "gateway" DevicePostureRuleTypeWARP DevicePostureRuleType = "warp" DevicePostureRuleTypeDiskEncryption DevicePostureRuleType = "disk_encryption" DevicePostureRuleTypeSentinelone DevicePostureRuleType = "sentinelone" DevicePostureRuleTypeCarbonblack DevicePostureRuleType = "carbonblack" DevicePostureRuleTypeFirewall DevicePostureRuleType = "firewall" DevicePostureRuleTypeOSVersion DevicePostureRuleType = "os_version" DevicePostureRuleTypeDomainJoined DevicePostureRuleType = "domain_joined" DevicePostureRuleTypeClientCertificate DevicePostureRuleType = "client_certificate" DevicePostureRuleTypeUniqueClientID DevicePostureRuleType = "unique_client_id" DevicePostureRuleTypeKolide DevicePostureRuleType = "kolide" DevicePostureRuleTypeTaniumS2s DevicePostureRuleType = "tanium_s2s" DevicePostureRuleTypeCrowdstrikeS2s DevicePostureRuleType = "crowdstrike_s2s" DevicePostureRuleTypeIntune DevicePostureRuleType = "intune" DevicePostureRuleTypeWorkspaceOne DevicePostureRuleType = "workspace_one" DevicePostureRuleTypeSentineloneS2s DevicePostureRuleType = "sentinelone_s2s" )
func (DevicePostureRuleType) IsKnown ¶
func (r DevicePostureRuleType) IsKnown() bool
type DevicePostureService ¶
type DevicePostureService struct { Options []option.RequestOption Integrations *DevicePostureIntegrationService }
DevicePostureService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewDevicePostureService method instead.
func NewDevicePostureService ¶
func NewDevicePostureService(opts ...option.RequestOption) (r *DevicePostureService)
NewDevicePostureService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*DevicePostureService) Delete ¶
func (r *DevicePostureService) Delete(ctx context.Context, ruleID string, params DevicePostureDeleteParams, opts ...option.RequestOption) (res *DevicePostureDeleteResponse, err error)
Deletes a device posture rule.
func (*DevicePostureService) Get ¶
func (r *DevicePostureService) Get(ctx context.Context, ruleID string, query DevicePostureGetParams, opts ...option.RequestOption) (res *DevicePostureRule, err error)
Fetches a single device posture rule.
func (*DevicePostureService) List ¶
func (r *DevicePostureService) List(ctx context.Context, query DevicePostureListParams, opts ...option.RequestOption) (res *pagination.SinglePage[DevicePostureRule], err error)
Fetches device posture rules for a Zero Trust account.
func (*DevicePostureService) ListAutoPaging ¶
func (r *DevicePostureService) ListAutoPaging(ctx context.Context, query DevicePostureListParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[DevicePostureRule]
Fetches device posture rules for a Zero Trust account.
func (*DevicePostureService) New ¶
func (r *DevicePostureService) New(ctx context.Context, params DevicePostureNewParams, opts ...option.RequestOption) (res *DevicePostureRule, err error)
Creates a new device posture rule.
func (*DevicePostureService) Update ¶
func (r *DevicePostureService) Update(ctx context.Context, ruleID string, params DevicePostureUpdateParams, opts ...option.RequestOption) (res *DevicePostureRule, err error)
Updates a device posture rule.
type DevicePostureUpdateParams ¶
type DevicePostureUpdateParams struct { AccountID param.Field[string] `path:"account_id,required"` // The name of the device posture rule. Name param.Field[string] `json:"name,required"` // The type of device posture rule. Type param.Field[DevicePostureUpdateParamsType] `json:"type,required"` // The description of the device posture rule. Description param.Field[string] `json:"description"` // Sets the expiration time for a posture check result. If empty, the result // remains valid until it is overwritten by new data from the WARP client. Expiration param.Field[string] `json:"expiration"` // The value to be checked against. Input param.Field[DeviceInputUnionParam] `json:"input"` // The conditions that the client must match to run the rule. Match param.Field[[]DeviceMatchParam] `json:"match"` // Polling frequency for the WARP client posture check. Default: `5m` (poll every // five minutes). Minimum: `1m`. Schedule param.Field[string] `json:"schedule"` }
func (DevicePostureUpdateParams) MarshalJSON ¶
func (r DevicePostureUpdateParams) MarshalJSON() (data []byte, err error)
type DevicePostureUpdateParamsType ¶
type DevicePostureUpdateParamsType string
The type of device posture rule.
const ( DevicePostureUpdateParamsTypeFile DevicePostureUpdateParamsType = "file" DevicePostureUpdateParamsTypeApplication DevicePostureUpdateParamsType = "application" DevicePostureUpdateParamsTypeTanium DevicePostureUpdateParamsType = "tanium" DevicePostureUpdateParamsTypeGateway DevicePostureUpdateParamsType = "gateway" DevicePostureUpdateParamsTypeWARP DevicePostureUpdateParamsType = "warp" DevicePostureUpdateParamsTypeDiskEncryption DevicePostureUpdateParamsType = "disk_encryption" DevicePostureUpdateParamsTypeSentinelone DevicePostureUpdateParamsType = "sentinelone" DevicePostureUpdateParamsTypeCarbonblack DevicePostureUpdateParamsType = "carbonblack" DevicePostureUpdateParamsTypeFirewall DevicePostureUpdateParamsType = "firewall" DevicePostureUpdateParamsTypeOSVersion DevicePostureUpdateParamsType = "os_version" DevicePostureUpdateParamsTypeDomainJoined DevicePostureUpdateParamsType = "domain_joined" DevicePostureUpdateParamsTypeClientCertificate DevicePostureUpdateParamsType = "client_certificate" DevicePostureUpdateParamsTypeUniqueClientID DevicePostureUpdateParamsType = "unique_client_id" DevicePostureUpdateParamsTypeKolide DevicePostureUpdateParamsType = "kolide" DevicePostureUpdateParamsTypeTaniumS2s DevicePostureUpdateParamsType = "tanium_s2s" DevicePostureUpdateParamsTypeCrowdstrikeS2s DevicePostureUpdateParamsType = "crowdstrike_s2s" DevicePostureUpdateParamsTypeIntune DevicePostureUpdateParamsType = "intune" DevicePostureUpdateParamsTypeWorkspaceOne DevicePostureUpdateParamsType = "workspace_one" DevicePostureUpdateParamsTypeSentineloneS2s DevicePostureUpdateParamsType = "sentinelone_s2s" )
func (DevicePostureUpdateParamsType) IsKnown ¶
func (r DevicePostureUpdateParamsType) IsKnown() bool
type DevicePostureUpdateResponseEnvelope ¶
type DevicePostureUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result DevicePostureRule `json:"result,required,nullable"` // Whether the API call was successful. Success DevicePostureUpdateResponseEnvelopeSuccess `json:"success,required"` JSON devicePostureUpdateResponseEnvelopeJSON `json:"-"` }
func (*DevicePostureUpdateResponseEnvelope) UnmarshalJSON ¶
func (r *DevicePostureUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DevicePostureUpdateResponseEnvelopeSuccess ¶
type DevicePostureUpdateResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
DevicePostureUpdateResponseEnvelopeSuccessTrue DevicePostureUpdateResponseEnvelopeSuccess = true
)
func (DevicePostureUpdateResponseEnvelopeSuccess) IsKnown ¶
func (r DevicePostureUpdateResponseEnvelopeSuccess) IsKnown() bool
type DeviceRevokeNewParams ¶
type DeviceRevokeNewParams struct { AccountID param.Field[string] `path:"account_id,required"` // A list of device ids to revoke. Body []string `json:"body,required"` }
func (DeviceRevokeNewParams) MarshalJSON ¶
func (r DeviceRevokeNewParams) MarshalJSON() (data []byte, err error)
type DeviceRevokeNewResponseEnvelope ¶
type DeviceRevokeNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result DeviceRevokeNewResponseUnion `json:"result,required"` // Whether the API call was successful. Success DeviceRevokeNewResponseEnvelopeSuccess `json:"success,required"` JSON deviceRevokeNewResponseEnvelopeJSON `json:"-"` }
func (*DeviceRevokeNewResponseEnvelope) UnmarshalJSON ¶
func (r *DeviceRevokeNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DeviceRevokeNewResponseEnvelopeSuccess ¶
type DeviceRevokeNewResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
DeviceRevokeNewResponseEnvelopeSuccessTrue DeviceRevokeNewResponseEnvelopeSuccess = true
)
func (DeviceRevokeNewResponseEnvelopeSuccess) IsKnown ¶
func (r DeviceRevokeNewResponseEnvelopeSuccess) IsKnown() bool
type DeviceRevokeNewResponseUnion ¶
type DeviceRevokeNewResponseUnion interface {
ImplementsZeroTrustDeviceRevokeNewResponseUnion()
}
Union satisfied by zero_trust.DeviceRevokeNewResponseUnknown or shared.UnionString.
type DeviceRevokeService ¶
type DeviceRevokeService struct {
Options []option.RequestOption
}
DeviceRevokeService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewDeviceRevokeService method instead.
func NewDeviceRevokeService ¶
func NewDeviceRevokeService(opts ...option.RequestOption) (r *DeviceRevokeService)
NewDeviceRevokeService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*DeviceRevokeService) New ¶
func (r *DeviceRevokeService) New(ctx context.Context, params DeviceRevokeNewParams, opts ...option.RequestOption) (res *DeviceRevokeNewResponseUnion, err error)
Revokes a list of devices.
type DeviceService ¶
type DeviceService struct { Options []option.RequestOption DEXTests *DeviceDEXTestService Networks *DeviceNetworkService Policies *DevicePolicyService Posture *DevicePostureService Revoke *DeviceRevokeService Settings *DeviceSettingService Unrevoke *DeviceUnrevokeService OverrideCodes *DeviceOverrideCodeService }
DeviceService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewDeviceService method instead.
func NewDeviceService ¶
func NewDeviceService(opts ...option.RequestOption) (r *DeviceService)
NewDeviceService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*DeviceService) Get ¶
func (r *DeviceService) Get(ctx context.Context, deviceID string, query DeviceGetParams, opts ...option.RequestOption) (res *DeviceGetResponseUnion, err error)
Fetches details for a single device.
func (*DeviceService) List ¶
func (r *DeviceService) List(ctx context.Context, query DeviceListParams, opts ...option.RequestOption) (res *pagination.SinglePage[Device], err error)
Fetches a list of enrolled devices.
func (*DeviceService) ListAutoPaging ¶
func (r *DeviceService) ListAutoPaging(ctx context.Context, query DeviceListParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[Device]
Fetches a list of enrolled devices.
type DeviceSettingListParams ¶
type DeviceSettingListResponseEnvelope ¶
type DeviceSettingListResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result DeviceSettings `json:"result,required,nullable"` // Whether the API call was successful. Success DeviceSettingListResponseEnvelopeSuccess `json:"success,required"` JSON deviceSettingListResponseEnvelopeJSON `json:"-"` }
func (*DeviceSettingListResponseEnvelope) UnmarshalJSON ¶
func (r *DeviceSettingListResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DeviceSettingListResponseEnvelopeSuccess ¶
type DeviceSettingListResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
DeviceSettingListResponseEnvelopeSuccessTrue DeviceSettingListResponseEnvelopeSuccess = true
)
func (DeviceSettingListResponseEnvelopeSuccess) IsKnown ¶
func (r DeviceSettingListResponseEnvelopeSuccess) IsKnown() bool
type DeviceSettingService ¶
type DeviceSettingService struct {
Options []option.RequestOption
}
DeviceSettingService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewDeviceSettingService method instead.
func NewDeviceSettingService ¶
func NewDeviceSettingService(opts ...option.RequestOption) (r *DeviceSettingService)
NewDeviceSettingService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*DeviceSettingService) List ¶
func (r *DeviceSettingService) List(ctx context.Context, query DeviceSettingListParams, opts ...option.RequestOption) (res *DeviceSettings, err error)
Describes the current device settings for a Zero Trust account.
func (*DeviceSettingService) Update ¶
func (r *DeviceSettingService) Update(ctx context.Context, params DeviceSettingUpdateParams, opts ...option.RequestOption) (res *DeviceSettings, err error)
Updates the current device settings for a Zero Trust account.
type DeviceSettingUpdateParams ¶
type DeviceSettingUpdateParams struct { AccountID param.Field[string] `path:"account_id,required"` DeviceSettings DeviceSettingsParam `json:"device_settings,required"` }
func (DeviceSettingUpdateParams) MarshalJSON ¶
func (r DeviceSettingUpdateParams) MarshalJSON() (data []byte, err error)
type DeviceSettingUpdateResponseEnvelope ¶
type DeviceSettingUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result DeviceSettings `json:"result,required,nullable"` // Whether the API call was successful. Success DeviceSettingUpdateResponseEnvelopeSuccess `json:"success,required"` JSON deviceSettingUpdateResponseEnvelopeJSON `json:"-"` }
func (*DeviceSettingUpdateResponseEnvelope) UnmarshalJSON ¶
func (r *DeviceSettingUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DeviceSettingUpdateResponseEnvelopeSuccess ¶
type DeviceSettingUpdateResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
DeviceSettingUpdateResponseEnvelopeSuccessTrue DeviceSettingUpdateResponseEnvelopeSuccess = true
)
func (DeviceSettingUpdateResponseEnvelopeSuccess) IsKnown ¶
func (r DeviceSettingUpdateResponseEnvelopeSuccess) IsKnown() bool
type DeviceSettings ¶
type DeviceSettings struct { // Enable gateway proxy filtering on TCP. GatewayProxyEnabled bool `json:"gateway_proxy_enabled"` // Enable gateway proxy filtering on UDP. GatewayUdpProxyEnabled bool `json:"gateway_udp_proxy_enabled"` // Enable installation of cloudflare managed root certificate. RootCertificateInstallationEnabled bool `json:"root_certificate_installation_enabled"` // Enable using CGNAT virtual IPv4. UseZtVirtualIP bool `json:"use_zt_virtual_ip"` JSON deviceSettingsJSON `json:"-"` }
func (*DeviceSettings) UnmarshalJSON ¶
func (r *DeviceSettings) UnmarshalJSON(data []byte) (err error)
type DeviceSettingsParam ¶
type DeviceSettingsParam struct { // Enable gateway proxy filtering on TCP. GatewayProxyEnabled param.Field[bool] `json:"gateway_proxy_enabled"` // Enable gateway proxy filtering on UDP. GatewayUdpProxyEnabled param.Field[bool] `json:"gateway_udp_proxy_enabled"` // Enable installation of cloudflare managed root certificate. RootCertificateInstallationEnabled param.Field[bool] `json:"root_certificate_installation_enabled"` // Enable using CGNAT virtual IPv4. UseZtVirtualIP param.Field[bool] `json:"use_zt_virtual_ip"` }
func (DeviceSettingsParam) MarshalJSON ¶
func (r DeviceSettingsParam) MarshalJSON() (data []byte, err error)
type DeviceUnrevokeNewParams ¶
type DeviceUnrevokeNewParams struct { AccountID param.Field[string] `path:"account_id,required"` // A list of device ids to unrevoke. Body []string `json:"body,required"` }
func (DeviceUnrevokeNewParams) MarshalJSON ¶
func (r DeviceUnrevokeNewParams) MarshalJSON() (data []byte, err error)
type DeviceUnrevokeNewResponseEnvelope ¶
type DeviceUnrevokeNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result DeviceUnrevokeNewResponseUnion `json:"result,required"` // Whether the API call was successful. Success DeviceUnrevokeNewResponseEnvelopeSuccess `json:"success,required"` JSON deviceUnrevokeNewResponseEnvelopeJSON `json:"-"` }
func (*DeviceUnrevokeNewResponseEnvelope) UnmarshalJSON ¶
func (r *DeviceUnrevokeNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DeviceUnrevokeNewResponseEnvelopeSuccess ¶
type DeviceUnrevokeNewResponseEnvelopeSuccess bool
Whether the API call was successful.
const (
DeviceUnrevokeNewResponseEnvelopeSuccessTrue DeviceUnrevokeNewResponseEnvelopeSuccess = true
)
func (DeviceUnrevokeNewResponseEnvelopeSuccess) IsKnown ¶
func (r DeviceUnrevokeNewResponseEnvelopeSuccess) IsKnown() bool
type DeviceUnrevokeNewResponseUnion ¶
type DeviceUnrevokeNewResponseUnion interface {
ImplementsZeroTrustDeviceUnrevokeNewResponseUnion()
}
Union satisfied by zero_trust.DeviceUnrevokeNewResponseUnknown or shared.UnionString.
type DeviceUnrevokeService ¶
type DeviceUnrevokeService struct {
Options []option.RequestOption
}
DeviceUnrevokeService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewDeviceUnrevokeService method instead.
func NewDeviceUnrevokeService ¶
func NewDeviceUnrevokeService(opts ...option.RequestOption) (r *DeviceUnrevokeService)
NewDeviceUnrevokeService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*DeviceUnrevokeService) New ¶
func (r *DeviceUnrevokeService) New(ctx context.Context, params DeviceUnrevokeNewParams, opts ...option.RequestOption) (res *DeviceUnrevokeNewResponseUnion, err error)
Unrevokes a list of devices.
type DeviceUser ¶
type DeviceUser struct { // UUID ID string `json:"id"` // The contact email address of the user. Email string `json:"email"` // The enrolled device user's name. Name string `json:"name"` JSON deviceUserJSON `json:"-"` }
func (*DeviceUser) UnmarshalJSON ¶
func (r *DeviceUser) UnmarshalJSON(data []byte) (err error)
type DexhttpTestGetParamsInterval ¶
type DexhttpTestGetParamsInterval string
Time interval for aggregate time slots.
const ( DexhttpTestGetParamsIntervalMinute DexhttpTestGetParamsInterval = "minute" DexhttpTestGetParamsIntervalHour DexhttpTestGetParamsInterval = "hour" )
func (DexhttpTestGetParamsInterval) IsKnown ¶
func (r DexhttpTestGetParamsInterval) IsKnown() bool
type DexhttpTestGetResponseEnvelope ¶
type DexhttpTestGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result HTTPDetails `json:"result,required"` // Whether the API call was successful Success DexhttpTestGetResponseEnvelopeSuccess `json:"success,required"` JSON dexhttpTestGetResponseEnvelopeJSON `json:"-"` }
func (*DexhttpTestGetResponseEnvelope) UnmarshalJSON ¶
func (r *DexhttpTestGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DexhttpTestGetResponseEnvelopeSuccess ¶
type DexhttpTestGetResponseEnvelopeSuccess bool
Whether the API call was successful
const (
DexhttpTestGetResponseEnvelopeSuccessTrue DexhttpTestGetResponseEnvelopeSuccess = true
)
func (DexhttpTestGetResponseEnvelopeSuccess) IsKnown ¶
func (r DexhttpTestGetResponseEnvelopeSuccess) IsKnown() bool
type DexhttpTestPercentileGetResponseEnvelope ¶
type DexhttpTestPercentileGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result HTTPDetailsPercentiles `json:"result,required"` // Whether the API call was successful Success DexhttpTestPercentileGetResponseEnvelopeSuccess `json:"success,required"` JSON dexhttpTestPercentileGetResponseEnvelopeJSON `json:"-"` }
func (*DexhttpTestPercentileGetResponseEnvelope) UnmarshalJSON ¶
func (r *DexhttpTestPercentileGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DexhttpTestPercentileGetResponseEnvelopeSuccess ¶
type DexhttpTestPercentileGetResponseEnvelopeSuccess bool
Whether the API call was successful
const (
DexhttpTestPercentileGetResponseEnvelopeSuccessTrue DexhttpTestPercentileGetResponseEnvelopeSuccess = true
)
func (DexhttpTestPercentileGetResponseEnvelopeSuccess) IsKnown ¶
func (r DexhttpTestPercentileGetResponseEnvelopeSuccess) IsKnown() bool
type DiskEncryptionInput ¶
type DiskEncryptionInput struct { // List of volume names to be checked for encryption. CheckDisks []CarbonblackInput `json:"checkDisks"` // Whether to check all disks for encryption. RequireAll bool `json:"requireAll"` JSON diskEncryptionInputJSON `json:"-"` }
func (*DiskEncryptionInput) UnmarshalJSON ¶
func (r *DiskEncryptionInput) UnmarshalJSON(data []byte) (err error)
type DiskEncryptionInputParam ¶
type DiskEncryptionInputParam struct { // List of volume names to be checked for encryption. CheckDisks param.Field[[]CarbonblackInputParam] `json:"checkDisks"` // Whether to check all disks for encryption. RequireAll param.Field[bool] `json:"requireAll"` }
func (DiskEncryptionInputParam) MarshalJSON ¶
func (r DiskEncryptionInputParam) MarshalJSON() (data []byte, err error)
type DomainJoinedInput ¶
type DomainJoinedInput struct { // Operating System OperatingSystem DomainJoinedInputOperatingSystem `json:"operating_system,required"` // Domain Domain string `json:"domain"` JSON domainJoinedInputJSON `json:"-"` }
func (*DomainJoinedInput) UnmarshalJSON ¶
func (r *DomainJoinedInput) UnmarshalJSON(data []byte) (err error)
type DomainJoinedInputOperatingSystem ¶
type DomainJoinedInputOperatingSystem string
Operating System
const (
DomainJoinedInputOperatingSystemWindows DomainJoinedInputOperatingSystem = "windows"
)
func (DomainJoinedInputOperatingSystem) IsKnown ¶
func (r DomainJoinedInputOperatingSystem) IsKnown() bool
type DomainJoinedInputParam ¶
type DomainJoinedInputParam struct { // Operating System OperatingSystem param.Field[DomainJoinedInputOperatingSystem] `json:"operating_system,required"` // Domain Domain param.Field[string] `json:"domain"` }
func (DomainJoinedInputParam) MarshalJSON ¶
func (r DomainJoinedInputParam) MarshalJSON() (data []byte, err error)
type DomainRule ¶
type DomainRule struct { EmailDomain DomainRuleEmailDomain `json:"email_domain,required"` JSON domainRuleJSON `json:"-"` }
Match an entire email domain.
func (*DomainRule) UnmarshalJSON ¶
func (r *DomainRule) UnmarshalJSON(data []byte) (err error)
type DomainRuleEmailDomain ¶
type DomainRuleEmailDomain struct { // The email domain to match. Domain string `json:"domain,required"` JSON domainRuleEmailDomainJSON `json:"-"` }
func (*DomainRuleEmailDomain) UnmarshalJSON ¶
func (r *DomainRuleEmailDomain) UnmarshalJSON(data []byte) (err error)
type DomainRuleEmailDomainParam ¶
type DomainRuleEmailDomainParam struct { // The email domain to match. Domain param.Field[string] `json:"domain,required"` }
func (DomainRuleEmailDomainParam) MarshalJSON ¶
func (r DomainRuleEmailDomainParam) MarshalJSON() (data []byte, err error)
type DomainRuleParam ¶
type DomainRuleParam struct {
EmailDomain param.Field[DomainRuleEmailDomainParam] `json:"email_domain,required"`
}
Match an entire email domain.
func (DomainRuleParam) MarshalJSON ¶
func (r DomainRuleParam) MarshalJSON() (data []byte, err error)
type EmailListRule ¶
type EmailListRule struct { EmailList EmailListRuleEmailList `json:"email_list,required"` JSON emailListRuleJSON `json:"-"` }
Matches an email address from a list.
func (*EmailListRule) UnmarshalJSON ¶
func (r *EmailListRule) UnmarshalJSON(data []byte) (err error)
type EmailListRuleEmailList ¶
type EmailListRuleEmailList struct { // The ID of a previously created email list. ID string `json:"id,required"` JSON emailListRuleEmailListJSON `json:"-"` }
func (*EmailListRuleEmailList) UnmarshalJSON ¶
func (r *EmailListRuleEmailList) UnmarshalJSON(data []byte) (err error)
type EmailListRuleEmailListParam ¶
type EmailListRuleEmailListParam struct { // The ID of a previously created email list. ID param.Field[string] `json:"id,required"` }
func (EmailListRuleEmailListParam) MarshalJSON ¶
func (r EmailListRuleEmailListParam) MarshalJSON() (data []byte, err error)
type EmailListRuleParam ¶
type EmailListRuleParam struct {
EmailList param.Field[EmailListRuleEmailListParam] `json:"email_list,required"`
}
Matches an email address from a list.
func (EmailListRuleParam) MarshalJSON ¶
func (r EmailListRuleParam) MarshalJSON() (data []byte, err error)
type EmailRule ¶
type EmailRule struct { Email EmailRuleEmail `json:"email,required"` JSON emailRuleJSON `json:"-"` }
Matches a specific email.
func (*EmailRule) UnmarshalJSON ¶
type EmailRuleEmail ¶
type EmailRuleEmail struct { // The email of the user. Email string `json:"email,required" format:"email"` JSON emailRuleEmailJSON `json:"-"` }
func (*EmailRuleEmail) UnmarshalJSON ¶
func (r *EmailRuleEmail) UnmarshalJSON(data []byte) (err error)
type EmailRuleEmailParam ¶
type EmailRuleEmailParam struct { // The email of the user. Email param.Field[string] `json:"email,required" format:"email"` }
func (EmailRuleEmailParam) MarshalJSON ¶
func (r EmailRuleEmailParam) MarshalJSON() (data []byte, err error)
type EmailRuleParam ¶
type EmailRuleParam struct {
Email param.Field[EmailRuleEmailParam] `json:"email,required"`
}
Matches a specific email.
func (EmailRuleParam) MarshalJSON ¶
func (r EmailRuleParam) MarshalJSON() (data []byte, err error)
type EveryoneRule ¶
type EveryoneRule struct { // An empty object which matches on all users. Everyone interface{} `json:"everyone,required"` JSON everyoneRuleJSON `json:"-"` }
Matches everyone.
func (*EveryoneRule) UnmarshalJSON ¶
func (r *EveryoneRule) UnmarshalJSON(data []byte) (err error)
type EveryoneRuleParam ¶
type EveryoneRuleParam struct { // An empty object which matches on all users. Everyone param.Field[interface{}] `json:"everyone,required"` }
Matches everyone.
func (EveryoneRuleParam) MarshalJSON ¶
func (r EveryoneRuleParam) MarshalJSON() (data []byte, err error)
type ExtendedEmailMatching ¶
type ExtendedEmailMatching struct { // Enable matching all variants of user emails (with + or . modifiers) used as // criteria in Firewall policies. Enabled bool `json:"enabled"` JSON extendedEmailMatchingJSON `json:"-"` }
Extended e-mail matching settings.
func (*ExtendedEmailMatching) UnmarshalJSON ¶
func (r *ExtendedEmailMatching) UnmarshalJSON(data []byte) (err error)
type ExtendedEmailMatchingParam ¶
type ExtendedEmailMatchingParam struct { // Enable matching all variants of user emails (with + or . modifiers) used as // criteria in Firewall policies. Enabled param.Field[bool] `json:"enabled"` }
Extended e-mail matching settings.
func (ExtendedEmailMatchingParam) MarshalJSON ¶
func (r ExtendedEmailMatchingParam) MarshalJSON() (data []byte, err error)
type ExternalEvaluationRule ¶
type ExternalEvaluationRule struct { ExternalEvaluation ExternalEvaluationRuleExternalEvaluation `json:"external_evaluation,required"` JSON externalEvaluationRuleJSON `json:"-"` }
Create Allow or Block policies which evaluate the user based on custom criteria.
func (*ExternalEvaluationRule) UnmarshalJSON ¶
func (r *ExternalEvaluationRule) UnmarshalJSON(data []byte) (err error)
type ExternalEvaluationRuleExternalEvaluation ¶
type ExternalEvaluationRuleExternalEvaluation struct { // The API endpoint containing your business logic. EvaluateURL string `json:"evaluate_url,required"` // The API endpoint containing the key that Access uses to verify that the response // came from your API. KeysURL string `json:"keys_url,required"` JSON externalEvaluationRuleExternalEvaluationJSON `json:"-"` }
func (*ExternalEvaluationRuleExternalEvaluation) UnmarshalJSON ¶
func (r *ExternalEvaluationRuleExternalEvaluation) UnmarshalJSON(data []byte) (err error)
type ExternalEvaluationRuleExternalEvaluationParam ¶
type ExternalEvaluationRuleExternalEvaluationParam struct { // The API endpoint containing your business logic. EvaluateURL param.Field[string] `json:"evaluate_url,required"` // The API endpoint containing the key that Access uses to verify that the response // came from your API. KeysURL param.Field[string] `json:"keys_url,required"` }
func (ExternalEvaluationRuleExternalEvaluationParam) MarshalJSON ¶
func (r ExternalEvaluationRuleExternalEvaluationParam) MarshalJSON() (data []byte, err error)
type ExternalEvaluationRuleParam ¶
type ExternalEvaluationRuleParam struct {
ExternalEvaluation param.Field[ExternalEvaluationRuleExternalEvaluationParam] `json:"external_evaluation,required"`
}
Create Allow or Block policies which evaluate the user based on custom criteria.
func (ExternalEvaluationRuleParam) MarshalJSON ¶
func (r ExternalEvaluationRuleParam) MarshalJSON() (data []byte, err error)
type FallbackDomain ¶
type FallbackDomain struct { // The domain suffix to match when resolving locally. Suffix string `json:"suffix,required"` // A description of the fallback domain, displayed in the client UI. Description string `json:"description"` // A list of IP addresses to handle domain resolution. DNSServer []interface{} `json:"dns_server"` JSON fallbackDomainJSON `json:"-"` }
func (*FallbackDomain) UnmarshalJSON ¶
func (r *FallbackDomain) UnmarshalJSON(data []byte) (err error)
type FallbackDomainParam ¶
type FallbackDomainParam struct { // The domain suffix to match when resolving locally. Suffix param.Field[string] `json:"suffix,required"` // A description of the fallback domain, displayed in the client UI. Description param.Field[string] `json:"description"` // A list of IP addresses to handle domain resolution. DNSServer param.Field[[]interface{}] `json:"dns_server"` }
func (FallbackDomainParam) MarshalJSON ¶
func (r FallbackDomainParam) MarshalJSON() (data []byte, err error)
type FileInput ¶
type FileInput struct { // Operating system OperatingSystem FileInputOperatingSystem `json:"operating_system,required"` // File path. Path string `json:"path,required"` // Whether or not file exists Exists bool `json:"exists"` // SHA-256. Sha256 string `json:"sha256"` // Signing certificate thumbprint. Thumbprint string `json:"thumbprint"` JSON fileInputJSON `json:"-"` }
func (*FileInput) UnmarshalJSON ¶
type FileInputOperatingSystem ¶
type FileInputOperatingSystem string
Operating system
const ( FileInputOperatingSystemWindows FileInputOperatingSystem = "windows" FileInputOperatingSystemLinux FileInputOperatingSystem = "linux" FileInputOperatingSystemMac FileInputOperatingSystem = "mac" )
func (FileInputOperatingSystem) IsKnown ¶
func (r FileInputOperatingSystem) IsKnown() bool
type FileInputParam ¶
type FileInputParam struct { // Operating system OperatingSystem param.Field[FileInputOperatingSystem] `json:"operating_system,required"` // File path. Path param.Field[string] `json:"path,required"` // Whether or not file exists Exists param.Field[bool] `json:"exists"` // SHA-256. Sha256 param.Field[string] `json:"sha256"` // Signing certificate thumbprint. Thumbprint param.Field[string] `json:"thumbprint"` }
func (FileInputParam) MarshalJSON ¶
func (r FileInputParam) MarshalJSON() (data []byte, err error)
type FipsSettings ¶
type FipsSettings struct { // Enable only cipher suites and TLS versions compliant with FIPS 140-2. TLS bool `json:"tls"` JSON fipsSettingsJSON `json:"-"` }
FIPS settings.
func (*FipsSettings) UnmarshalJSON ¶
func (r *FipsSettings) UnmarshalJSON(data []byte) (err error)
type FipsSettingsParam ¶
type FipsSettingsParam struct { // Enable only cipher suites and TLS versions compliant with FIPS 140-2. TLS param.Field[bool] `json:"tls"` }
FIPS settings.
func (FipsSettingsParam) MarshalJSON ¶
func (r FipsSettingsParam) MarshalJSON() (data []byte, err error)
type FirewallInput ¶
type FirewallInput struct { // Enabled Enabled bool `json:"enabled,required"` // Operating System OperatingSystem FirewallInputOperatingSystem `json:"operating_system,required"` JSON firewallInputJSON `json:"-"` }
func (*FirewallInput) UnmarshalJSON ¶
func (r *FirewallInput) UnmarshalJSON(data []byte) (err error)
type FirewallInputOperatingSystem ¶
type FirewallInputOperatingSystem string
Operating System
const ( FirewallInputOperatingSystemWindows FirewallInputOperatingSystem = "windows" FirewallInputOperatingSystemMac FirewallInputOperatingSystem = "mac" )
func (FirewallInputOperatingSystem) IsKnown ¶
func (r FirewallInputOperatingSystem) IsKnown() bool
type FirewallInputParam ¶
type FirewallInputParam struct { // Enabled Enabled param.Field[bool] `json:"enabled,required"` // Operating System OperatingSystem param.Field[FirewallInputOperatingSystem] `json:"operating_system,required"` }
func (FirewallInputParam) MarshalJSON ¶
func (r FirewallInputParam) MarshalJSON() (data []byte, err error)
type GSuiteGroupRule ¶
type GSuiteGroupRule struct { GSuite GSuiteGroupRuleGSuite `json:"gsuite,required"` JSON GSuiteGroupRuleJSON `json:"-"` }
Matches a group in Google Workspace. Requires a Google Workspace identity provider.
func (*GSuiteGroupRule) UnmarshalJSON ¶
func (r *GSuiteGroupRule) UnmarshalJSON(data []byte) (err error)
type GSuiteGroupRuleGSuite ¶
type GSuiteGroupRuleGSuite struct { // The ID of your Google Workspace identity provider. ConnectionID string `json:"connection_id,required"` // The email of the Google Workspace group. Email string `json:"email,required"` JSON GSuiteGroupRuleGSuiteJSON `json:"-"` }
func (*GSuiteGroupRuleGSuite) UnmarshalJSON ¶
func (r *GSuiteGroupRuleGSuite) UnmarshalJSON(data []byte) (err error)
type GSuiteGroupRuleGSuiteJSON ¶
type GSuiteGroupRuleGSuiteJSON struct { ConnectionID apijson.Field Email apijson.Field ExtraFields map[string]apijson.Field // contains filtered or unexported fields }
GSuiteGroupRuleGSuiteJSON contains the JSON metadata for the struct GSuiteGroupRuleGSuite
func (GSuiteGroupRuleGSuiteJSON) RawJSON ¶
func (r GSuiteGroupRuleGSuiteJSON) RawJSON() string
type GSuiteGroupRuleGSuiteParam ¶
type GSuiteGroupRuleGSuiteParam struct { // The ID of your Google Workspace identity provider. ConnectionID param.Field[string] `json:"connection_id,required"` // The email of the Google Workspace group. Email param.Field[string] `json:"email,required"` }
func (GSuiteGroupRuleGSuiteParam) MarshalJSON ¶
func (r GSuiteGroupRuleGSuiteParam) MarshalJSON() (data []byte, err error)
type GSuiteGroupRuleJSON ¶
type GSuiteGroupRuleJSON struct { GSuite apijson.Field ExtraFields map[string]apijson.Field // contains filtered or unexported fields }
GSuiteGroupRuleJSON contains the JSON metadata for the struct GSuiteGroupRule
func (GSuiteGroupRuleJSON) RawJSON ¶
func (r GSuiteGroupRuleJSON) RawJSON() string
type GSuiteGroupRuleParam ¶
type GSuiteGroupRuleParam struct {
GSuite param.Field[GSuiteGroupRuleGSuiteParam] `json:"gsuite,required"`
}
Matches a group in Google Workspace. Requires a Google Workspace identity provider.
func (GSuiteGroupRuleParam) MarshalJSON ¶
func (r GSuiteGroupRuleParam) MarshalJSON() (data []byte, err error)
type GatewayAppTypeService ¶
type GatewayAppTypeService struct {
Options []option.RequestOption
}
GatewayAppTypeService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewGatewayAppTypeService method instead.
func NewGatewayAppTypeService ¶
func NewGatewayAppTypeService(opts ...option.RequestOption) (r *GatewayAppTypeService)
NewGatewayAppTypeService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*GatewayAppTypeService) List ¶
func (r *GatewayAppTypeService) List(ctx context.Context, query GatewayAppTypeListParams, opts ...option.RequestOption) (res *pagination.SinglePage[AppType], err error)
Fetches all application and application type mappings.
func (*GatewayAppTypeService) ListAutoPaging ¶
func (r *GatewayAppTypeService) ListAutoPaging(ctx context.Context, query GatewayAppTypeListParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[AppType]
Fetches all application and application type mappings.
type GatewayAuditSSHSettingGetResponseEnvelope ¶
type GatewayAuditSSHSettingGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result GatewaySettings `json:"result,required"` // Whether the API call was successful Success GatewayAuditSSHSettingGetResponseEnvelopeSuccess `json:"success,required"` JSON gatewayAuditSSHSettingGetResponseEnvelopeJSON `json:"-"` }
func (*GatewayAuditSSHSettingGetResponseEnvelope) UnmarshalJSON ¶
func (r *GatewayAuditSSHSettingGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type GatewayAuditSSHSettingGetResponseEnvelopeSuccess ¶
type GatewayAuditSSHSettingGetResponseEnvelopeSuccess bool
Whether the API call was successful
const (
GatewayAuditSSHSettingGetResponseEnvelopeSuccessTrue GatewayAuditSSHSettingGetResponseEnvelopeSuccess = true
)
func (GatewayAuditSSHSettingGetResponseEnvelopeSuccess) IsKnown ¶
func (r GatewayAuditSSHSettingGetResponseEnvelopeSuccess) IsKnown() bool
type GatewayAuditSSHSettingService ¶
type GatewayAuditSSHSettingService struct {
Options []option.RequestOption
}
GatewayAuditSSHSettingService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewGatewayAuditSSHSettingService method instead.
func NewGatewayAuditSSHSettingService ¶
func NewGatewayAuditSSHSettingService(opts ...option.RequestOption) (r *GatewayAuditSSHSettingService)
NewGatewayAuditSSHSettingService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*GatewayAuditSSHSettingService) Get ¶
func (r *GatewayAuditSSHSettingService) Get(ctx context.Context, query GatewayAuditSSHSettingGetParams, opts ...option.RequestOption) (res *GatewaySettings, err error)
Get all Zero Trust Audit SSH settings for an account.
func (*GatewayAuditSSHSettingService) Update ¶
func (r *GatewayAuditSSHSettingService) Update(ctx context.Context, params GatewayAuditSSHSettingUpdateParams, opts ...option.RequestOption) (res *GatewaySettings, err error)
Updates Zero Trust Audit SSH settings.
type GatewayAuditSSHSettingUpdateParams ¶
type GatewayAuditSSHSettingUpdateParams struct { AccountID param.Field[string] `path:"account_id,required"` // SSH encryption public key PublicKey param.Field[string] `json:"public_key,required"` // Seed ID SeedID param.Field[string] `json:"seed_id"` }
func (GatewayAuditSSHSettingUpdateParams) MarshalJSON ¶
func (r GatewayAuditSSHSettingUpdateParams) MarshalJSON() (data []byte, err error)
type GatewayAuditSSHSettingUpdateResponseEnvelope ¶
type GatewayAuditSSHSettingUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result GatewaySettings `json:"result,required"` // Whether the API call was successful Success GatewayAuditSSHSettingUpdateResponseEnvelopeSuccess `json:"success,required"` JSON gatewayAuditSSHSettingUpdateResponseEnvelopeJSON `json:"-"` }
func (*GatewayAuditSSHSettingUpdateResponseEnvelope) UnmarshalJSON ¶
func (r *GatewayAuditSSHSettingUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type GatewayAuditSSHSettingUpdateResponseEnvelopeSuccess ¶
type GatewayAuditSSHSettingUpdateResponseEnvelopeSuccess bool
Whether the API call was successful
const (
GatewayAuditSSHSettingUpdateResponseEnvelopeSuccessTrue GatewayAuditSSHSettingUpdateResponseEnvelopeSuccess = true
)
func (GatewayAuditSSHSettingUpdateResponseEnvelopeSuccess) IsKnown ¶
func (r GatewayAuditSSHSettingUpdateResponseEnvelopeSuccess) IsKnown() bool
type GatewayCategoryService ¶
type GatewayCategoryService struct {
Options []option.RequestOption
}
GatewayCategoryService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewGatewayCategoryService method instead.
func NewGatewayCategoryService ¶
func NewGatewayCategoryService(opts ...option.RequestOption) (r *GatewayCategoryService)
NewGatewayCategoryService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*GatewayCategoryService) List ¶
func (r *GatewayCategoryService) List(ctx context.Context, query GatewayCategoryListParams, opts ...option.RequestOption) (res *pagination.SinglePage[Category], err error)
Fetches a list of all categories.
func (*GatewayCategoryService) ListAutoPaging ¶
func (r *GatewayCategoryService) ListAutoPaging(ctx context.Context, query GatewayCategoryListParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[Category]
Fetches a list of all categories.
type GatewayConfigurationEditParams ¶
type GatewayConfigurationEditParams struct { AccountID param.Field[string] `path:"account_id,required"` // account settings. Settings param.Field[GatewayConfigurationSettingsParam] `json:"settings"` }
func (GatewayConfigurationEditParams) MarshalJSON ¶
func (r GatewayConfigurationEditParams) MarshalJSON() (data []byte, err error)
type GatewayConfigurationEditResponse ¶
type GatewayConfigurationEditResponse struct { CreatedAt time.Time `json:"created_at" format:"date-time"` // account settings. Settings GatewayConfigurationSettings `json:"settings"` UpdatedAt time.Time `json:"updated_at" format:"date-time"` JSON gatewayConfigurationEditResponseJSON `json:"-"` }
account settings.
func (*GatewayConfigurationEditResponse) UnmarshalJSON ¶
func (r *GatewayConfigurationEditResponse) UnmarshalJSON(data []byte) (err error)
type GatewayConfigurationEditResponseEnvelope ¶
type GatewayConfigurationEditResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` // account settings. Result GatewayConfigurationEditResponse `json:"result,required"` // Whether the API call was successful Success GatewayConfigurationEditResponseEnvelopeSuccess `json:"success,required"` JSON gatewayConfigurationEditResponseEnvelopeJSON `json:"-"` }
func (*GatewayConfigurationEditResponseEnvelope) UnmarshalJSON ¶
func (r *GatewayConfigurationEditResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type GatewayConfigurationEditResponseEnvelopeSuccess ¶
type GatewayConfigurationEditResponseEnvelopeSuccess bool
Whether the API call was successful
const (
GatewayConfigurationEditResponseEnvelopeSuccessTrue GatewayConfigurationEditResponseEnvelopeSuccess = true
)
func (GatewayConfigurationEditResponseEnvelopeSuccess) IsKnown ¶
func (r GatewayConfigurationEditResponseEnvelopeSuccess) IsKnown() bool
type GatewayConfigurationGetResponse ¶
type GatewayConfigurationGetResponse struct { CreatedAt time.Time `json:"created_at" format:"date-time"` // account settings. Settings GatewayConfigurationSettings `json:"settings"` UpdatedAt time.Time `json:"updated_at" format:"date-time"` JSON gatewayConfigurationGetResponseJSON `json:"-"` }
account settings.
func (*GatewayConfigurationGetResponse) UnmarshalJSON ¶
func (r *GatewayConfigurationGetResponse) UnmarshalJSON(data []byte) (err error)
type GatewayConfigurationGetResponseEnvelope ¶
type GatewayConfigurationGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` // account settings. Result GatewayConfigurationGetResponse `json:"result,required"` // Whether the API call was successful Success GatewayConfigurationGetResponseEnvelopeSuccess `json:"success,required"` JSON gatewayConfigurationGetResponseEnvelopeJSON `json:"-"` }
func (*GatewayConfigurationGetResponseEnvelope) UnmarshalJSON ¶
func (r *GatewayConfigurationGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type GatewayConfigurationGetResponseEnvelopeSuccess ¶
type GatewayConfigurationGetResponseEnvelopeSuccess bool
Whether the API call was successful
const (
GatewayConfigurationGetResponseEnvelopeSuccessTrue GatewayConfigurationGetResponseEnvelopeSuccess = true
)
func (GatewayConfigurationGetResponseEnvelopeSuccess) IsKnown ¶
func (r GatewayConfigurationGetResponseEnvelopeSuccess) IsKnown() bool
type GatewayConfigurationService ¶
type GatewayConfigurationService struct {
Options []option.RequestOption
}
GatewayConfigurationService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewGatewayConfigurationService method instead.
func NewGatewayConfigurationService ¶
func NewGatewayConfigurationService(opts ...option.RequestOption) (r *GatewayConfigurationService)
NewGatewayConfigurationService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*GatewayConfigurationService) Edit ¶
func (r *GatewayConfigurationService) Edit(ctx context.Context, params GatewayConfigurationEditParams, opts ...option.RequestOption) (res *GatewayConfigurationEditResponse, err error)
Patches the current Zero Trust account configuration. This endpoint can update a single subcollection of settings such as `antivirus`, `tls_decrypt`, `activity_log`, `block_page`, `browser_isolation`, `fips`, `body_scanning`, or `custom_certificate`, without updating the entire configuration object. Returns an error if any collection of settings is not properly configured.
func (*GatewayConfigurationService) Get ¶
func (r *GatewayConfigurationService) Get(ctx context.Context, query GatewayConfigurationGetParams, opts ...option.RequestOption) (res *GatewayConfigurationGetResponse, err error)
Fetches the current Zero Trust account configuration.
func (*GatewayConfigurationService) Update ¶
func (r *GatewayConfigurationService) Update(ctx context.Context, params GatewayConfigurationUpdateParams, opts ...option.RequestOption) (res *GatewayConfigurationUpdateResponse, err error)
Updates the current Zero Trust account configuration.
type GatewayConfigurationSettings ¶
type GatewayConfigurationSettings struct { // Activity log settings. ActivityLog ActivityLogSettings `json:"activity_log"` // Anti-virus settings. Antivirus AntiVirusSettings `json:"antivirus"` // Block page layout settings. BlockPage BlockPageSettings `json:"block_page"` // DLP body scanning settings. BodyScanning BodyScanningSettings `json:"body_scanning"` // Browser isolation settings. BrowserIsolation BrowserIsolationSettings `json:"browser_isolation"` // Custom certificate settings for BYO-PKI. CustomCertificate CustomCertificateSettings `json:"custom_certificate"` // Extended e-mail matching settings. ExtendedEmailMatching ExtendedEmailMatching `json:"extended_email_matching"` // FIPS settings. Fips FipsSettings `json:"fips"` // Protocol Detection settings. ProtocolDetection ProtocolDetection `json:"protocol_detection"` // TLS interception settings. TLSDecrypt TLSSettings `json:"tls_decrypt"` JSON gatewayConfigurationSettingsJSON `json:"-"` }
account settings.
func (*GatewayConfigurationSettings) UnmarshalJSON ¶
func (r *GatewayConfigurationSettings) UnmarshalJSON(data []byte) (err error)
type GatewayConfigurationSettingsParam ¶
type GatewayConfigurationSettingsParam struct { // Activity log settings. ActivityLog param.Field[ActivityLogSettingsParam] `json:"activity_log"` // Anti-virus settings. Antivirus param.Field[AntiVirusSettingsParam] `json:"antivirus"` // Block page layout settings. BlockPage param.Field[BlockPageSettingsParam] `json:"block_page"` // DLP body scanning settings. BodyScanning param.Field[BodyScanningSettingsParam] `json:"body_scanning"` // Browser isolation settings. BrowserIsolation param.Field[BrowserIsolationSettingsParam] `json:"browser_isolation"` // Custom certificate settings for BYO-PKI. CustomCertificate param.Field[CustomCertificateSettingsParam] `json:"custom_certificate"` // Extended e-mail matching settings. ExtendedEmailMatching param.Field[ExtendedEmailMatchingParam] `json:"extended_email_matching"` // FIPS settings. Fips param.Field[FipsSettingsParam] `json:"fips"` // Protocol Detection settings. ProtocolDetection param.Field[ProtocolDetectionParam] `json:"protocol_detection"` // TLS interception settings. TLSDecrypt param.Field[TLSSettingsParam] `json:"tls_decrypt"` }
account settings.
func (GatewayConfigurationSettingsParam) MarshalJSON ¶
func (r GatewayConfigurationSettingsParam) MarshalJSON() (data []byte, err error)
type GatewayConfigurationUpdateParams ¶
type GatewayConfigurationUpdateParams struct { AccountID param.Field[string] `path:"account_id,required"` // account settings. Settings param.Field[GatewayConfigurationSettingsParam] `json:"settings"` }
func (GatewayConfigurationUpdateParams) MarshalJSON ¶
func (r GatewayConfigurationUpdateParams) MarshalJSON() (data []byte, err error)
type GatewayConfigurationUpdateResponse ¶
type GatewayConfigurationUpdateResponse struct { CreatedAt time.Time `json:"created_at" format:"date-time"` // account settings. Settings GatewayConfigurationSettings `json:"settings"` UpdatedAt time.Time `json:"updated_at" format:"date-time"` JSON gatewayConfigurationUpdateResponseJSON `json:"-"` }
account settings.
func (*GatewayConfigurationUpdateResponse) UnmarshalJSON ¶
func (r *GatewayConfigurationUpdateResponse) UnmarshalJSON(data []byte) (err error)
type GatewayConfigurationUpdateResponseEnvelope ¶
type GatewayConfigurationUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` // account settings. Result GatewayConfigurationUpdateResponse `json:"result,required"` // Whether the API call was successful Success GatewayConfigurationUpdateResponseEnvelopeSuccess `json:"success,required"` JSON gatewayConfigurationUpdateResponseEnvelopeJSON `json:"-"` }
func (*GatewayConfigurationUpdateResponseEnvelope) UnmarshalJSON ¶
func (r *GatewayConfigurationUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type GatewayConfigurationUpdateResponseEnvelopeSuccess ¶
type GatewayConfigurationUpdateResponseEnvelopeSuccess bool
Whether the API call was successful
const (
GatewayConfigurationUpdateResponseEnvelopeSuccessTrue GatewayConfigurationUpdateResponseEnvelopeSuccess = true
)
func (GatewayConfigurationUpdateResponseEnvelopeSuccess) IsKnown ¶
func (r GatewayConfigurationUpdateResponseEnvelopeSuccess) IsKnown() bool
type GatewayFilter ¶
type GatewayFilter string
The protocol or layer to use.
const ( GatewayFilterHTTP GatewayFilter = "http" GatewayFilterDNS GatewayFilter = "dns" GatewayFilterL4 GatewayFilter = "l4" GatewayFilterEgress GatewayFilter = "egress" )
func (GatewayFilter) IsKnown ¶
func (r GatewayFilter) IsKnown() bool
type GatewayIPs ¶
type GatewayIPs = string
type GatewayIPsParam ¶
type GatewayIPsParam = string
type GatewayItem ¶
type GatewayItem struct { CreatedAt time.Time `json:"created_at" format:"date-time"` // The value of the item in a list. Value string `json:"value"` JSON gatewayItemJSON `json:"-"` }
func (*GatewayItem) UnmarshalJSON ¶
func (r *GatewayItem) UnmarshalJSON(data []byte) (err error)
type GatewayItemParam ¶
type GatewayItemParam struct { // The value of the item in a list. Value param.Field[string] `json:"value"` }
func (GatewayItemParam) MarshalJSON ¶
func (r GatewayItemParam) MarshalJSON() (data []byte, err error)
type GatewayList ¶
type GatewayList struct { // API Resource UUID tag. ID string `json:"id"` // The number of items in the list. Count float64 `json:"count"` CreatedAt time.Time `json:"created_at" format:"date-time"` // The description of the list. Description string `json:"description"` // The name of the list. Name string `json:"name"` // The type of list. Type GatewayListType `json:"type"` UpdatedAt time.Time `json:"updated_at" format:"date-time"` JSON gatewayListJSON `json:"-"` }
func (*GatewayList) UnmarshalJSON ¶
func (r *GatewayList) UnmarshalJSON(data []byte) (err error)
type GatewayListDeleteParams ¶
type GatewayListDeleteParams struct { AccountID param.Field[string] `path:"account_id,required"` Body interface{} `json:"body,required"` }
func (GatewayListDeleteParams) MarshalJSON ¶
func (r GatewayListDeleteParams) MarshalJSON() (data []byte, err error)
type GatewayListDeleteResponseEnvelope ¶
type GatewayListDeleteResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result GatewayListDeleteResponseUnion `json:"result,required"` // Whether the API call was successful Success GatewayListDeleteResponseEnvelopeSuccess `json:"success,required"` JSON gatewayListDeleteResponseEnvelopeJSON `json:"-"` }
func (*GatewayListDeleteResponseEnvelope) UnmarshalJSON ¶
func (r *GatewayListDeleteResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type GatewayListDeleteResponseEnvelopeSuccess ¶
type GatewayListDeleteResponseEnvelopeSuccess bool
Whether the API call was successful
const (
GatewayListDeleteResponseEnvelopeSuccessTrue GatewayListDeleteResponseEnvelopeSuccess = true
)
func (GatewayListDeleteResponseEnvelopeSuccess) IsKnown ¶
func (r GatewayListDeleteResponseEnvelopeSuccess) IsKnown() bool
type GatewayListDeleteResponseUnion ¶
type GatewayListDeleteResponseUnion interface {
ImplementsZeroTrustGatewayListDeleteResponseUnion()
}
Union satisfied by zero_trust.GatewayListDeleteResponseUnknown or shared.UnionString.
type GatewayListEditParams ¶
type GatewayListEditParams struct { AccountID param.Field[string] `path:"account_id,required"` // The items in the list. Append param.Field[[]GatewayItemParam] `json:"append"` // A list of the item values you want to remove. Remove param.Field[[]string] `json:"remove"` }
func (GatewayListEditParams) MarshalJSON ¶
func (r GatewayListEditParams) MarshalJSON() (data []byte, err error)
type GatewayListEditResponseEnvelope ¶
type GatewayListEditResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result GatewayList `json:"result,required"` // Whether the API call was successful Success GatewayListEditResponseEnvelopeSuccess `json:"success,required"` JSON gatewayListEditResponseEnvelopeJSON `json:"-"` }
func (*GatewayListEditResponseEnvelope) UnmarshalJSON ¶
func (r *GatewayListEditResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type GatewayListEditResponseEnvelopeSuccess ¶
type GatewayListEditResponseEnvelopeSuccess bool
Whether the API call was successful
const (
GatewayListEditResponseEnvelopeSuccessTrue GatewayListEditResponseEnvelopeSuccess = true
)
func (GatewayListEditResponseEnvelopeSuccess) IsKnown ¶
func (r GatewayListEditResponseEnvelopeSuccess) IsKnown() bool
type GatewayListGetParams ¶
type GatewayListGetResponseEnvelope ¶
type GatewayListGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result GatewayList `json:"result,required"` // Whether the API call was successful Success GatewayListGetResponseEnvelopeSuccess `json:"success,required"` JSON gatewayListGetResponseEnvelopeJSON `json:"-"` }
func (*GatewayListGetResponseEnvelope) UnmarshalJSON ¶
func (r *GatewayListGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type GatewayListGetResponseEnvelopeSuccess ¶
type GatewayListGetResponseEnvelopeSuccess bool
Whether the API call was successful
const (
GatewayListGetResponseEnvelopeSuccessTrue GatewayListGetResponseEnvelopeSuccess = true
)
func (GatewayListGetResponseEnvelopeSuccess) IsKnown ¶
func (r GatewayListGetResponseEnvelopeSuccess) IsKnown() bool
type GatewayListItemService ¶
type GatewayListItemService struct {
Options []option.RequestOption
}
GatewayListItemService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewGatewayListItemService method instead.
func NewGatewayListItemService ¶
func NewGatewayListItemService(opts ...option.RequestOption) (r *GatewayListItemService)
NewGatewayListItemService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*GatewayListItemService) List ¶
func (r *GatewayListItemService) List(ctx context.Context, listID string, query GatewayListItemListParams, opts ...option.RequestOption) (res *pagination.SinglePage[[]GatewayItem], err error)
Fetches all items in a single Zero Trust list.
func (*GatewayListItemService) ListAutoPaging ¶
func (r *GatewayListItemService) ListAutoPaging(ctx context.Context, listID string, query GatewayListItemListParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[[]GatewayItem]
Fetches all items in a single Zero Trust list.
type GatewayListListParams ¶
type GatewayListNewParams ¶
type GatewayListNewParams struct { AccountID param.Field[string] `path:"account_id,required"` // The name of the list. Name param.Field[string] `json:"name,required"` // The type of list. Type param.Field[GatewayListNewParamsType] `json:"type,required"` // The description of the list. Description param.Field[string] `json:"description"` // The items in the list. Items param.Field[[]GatewayItemParam] `json:"items"` }
func (GatewayListNewParams) MarshalJSON ¶
func (r GatewayListNewParams) MarshalJSON() (data []byte, err error)
type GatewayListNewParamsType ¶
type GatewayListNewParamsType string
The type of list.
const ( GatewayListNewParamsTypeSerial GatewayListNewParamsType = "SERIAL" GatewayListNewParamsTypeURL GatewayListNewParamsType = "URL" GatewayListNewParamsTypeDomain GatewayListNewParamsType = "DOMAIN" GatewayListNewParamsTypeEmail GatewayListNewParamsType = "EMAIL" GatewayListNewParamsTypeIP GatewayListNewParamsType = "IP" )
func (GatewayListNewParamsType) IsKnown ¶
func (r GatewayListNewParamsType) IsKnown() bool
type GatewayListNewResponse ¶
type GatewayListNewResponse struct { // API Resource UUID tag. ID string `json:"id"` CreatedAt time.Time `json:"created_at" format:"date-time"` // The description of the list. Description string `json:"description"` // The items in the list. Items []GatewayItem `json:"items"` // The name of the list. Name string `json:"name"` // The type of list. Type GatewayListNewResponseType `json:"type"` UpdatedAt time.Time `json:"updated_at" format:"date-time"` JSON gatewayListNewResponseJSON `json:"-"` }
func (*GatewayListNewResponse) UnmarshalJSON ¶
func (r *GatewayListNewResponse) UnmarshalJSON(data []byte) (err error)
type GatewayListNewResponseEnvelope ¶
type GatewayListNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result GatewayListNewResponse `json:"result,required"` // Whether the API call was successful Success GatewayListNewResponseEnvelopeSuccess `json:"success,required"` JSON gatewayListNewResponseEnvelopeJSON `json:"-"` }
func (*GatewayListNewResponseEnvelope) UnmarshalJSON ¶
func (r *GatewayListNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type GatewayListNewResponseEnvelopeSuccess ¶
type GatewayListNewResponseEnvelopeSuccess bool
Whether the API call was successful
const (
GatewayListNewResponseEnvelopeSuccessTrue GatewayListNewResponseEnvelopeSuccess = true
)
func (GatewayListNewResponseEnvelopeSuccess) IsKnown ¶
func (r GatewayListNewResponseEnvelopeSuccess) IsKnown() bool
type GatewayListNewResponseType ¶
type GatewayListNewResponseType string
The type of list.
const ( GatewayListNewResponseTypeSerial GatewayListNewResponseType = "SERIAL" GatewayListNewResponseTypeURL GatewayListNewResponseType = "URL" GatewayListNewResponseTypeDomain GatewayListNewResponseType = "DOMAIN" GatewayListNewResponseTypeEmail GatewayListNewResponseType = "EMAIL" GatewayListNewResponseTypeIP GatewayListNewResponseType = "IP" )
func (GatewayListNewResponseType) IsKnown ¶
func (r GatewayListNewResponseType) IsKnown() bool
type GatewayListParams ¶
type GatewayListResponse ¶
type GatewayListResponse struct { // Cloudflare account ID. ID string `json:"id"` // Gateway internal ID. GatewayTag string `json:"gateway_tag"` // The name of the provider. Usually Cloudflare. ProviderName string `json:"provider_name"` JSON gatewayListResponseJSON `json:"-"` }
func (*GatewayListResponse) UnmarshalJSON ¶
func (r *GatewayListResponse) UnmarshalJSON(data []byte) (err error)
type GatewayListResponseEnvelope ¶
type GatewayListResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result GatewayListResponse `json:"result,required"` // Whether the API call was successful Success GatewayListResponseEnvelopeSuccess `json:"success,required"` JSON gatewayListResponseEnvelopeJSON `json:"-"` }
func (*GatewayListResponseEnvelope) UnmarshalJSON ¶
func (r *GatewayListResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type GatewayListResponseEnvelopeSuccess ¶
type GatewayListResponseEnvelopeSuccess bool
Whether the API call was successful
const (
GatewayListResponseEnvelopeSuccessTrue GatewayListResponseEnvelopeSuccess = true
)
func (GatewayListResponseEnvelopeSuccess) IsKnown ¶
func (r GatewayListResponseEnvelopeSuccess) IsKnown() bool
type GatewayListService ¶
type GatewayListService struct { Options []option.RequestOption Items *GatewayListItemService }
GatewayListService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewGatewayListService method instead.
func NewGatewayListService ¶
func NewGatewayListService(opts ...option.RequestOption) (r *GatewayListService)
NewGatewayListService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*GatewayListService) Delete ¶
func (r *GatewayListService) Delete(ctx context.Context, listID string, params GatewayListDeleteParams, opts ...option.RequestOption) (res *GatewayListDeleteResponseUnion, err error)
Deletes a Zero Trust list.
func (*GatewayListService) Edit ¶
func (r *GatewayListService) Edit(ctx context.Context, listID string, params GatewayListEditParams, opts ...option.RequestOption) (res *GatewayList, err error)
Appends or removes an item from a configured Zero Trust list.
func (*GatewayListService) Get ¶
func (r *GatewayListService) Get(ctx context.Context, listID string, query GatewayListGetParams, opts ...option.RequestOption) (res *GatewayList, err error)
Fetches a single Zero Trust list.
func (*GatewayListService) List ¶
func (r *GatewayListService) List(ctx context.Context, query GatewayListListParams, opts ...option.RequestOption) (res *pagination.SinglePage[GatewayList], err error)
Fetches all Zero Trust lists for an account.
func (*GatewayListService) ListAutoPaging ¶
func (r *GatewayListService) ListAutoPaging(ctx context.Context, query GatewayListListParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[GatewayList]
Fetches all Zero Trust lists for an account.
func (*GatewayListService) New ¶
func (r *GatewayListService) New(ctx context.Context, params GatewayListNewParams, opts ...option.RequestOption) (res *GatewayListNewResponse, err error)
Creates a new Zero Trust list.
func (*GatewayListService) Update ¶
func (r *GatewayListService) Update(ctx context.Context, listID string, params GatewayListUpdateParams, opts ...option.RequestOption) (res *GatewayList, err error)
Updates a configured Zero Trust list.
type GatewayListType ¶
type GatewayListType string
The type of list.
const ( GatewayListTypeSerial GatewayListType = "SERIAL" GatewayListTypeURL GatewayListType = "URL" GatewayListTypeDomain GatewayListType = "DOMAIN" GatewayListTypeEmail GatewayListType = "EMAIL" GatewayListTypeIP GatewayListType = "IP" )
func (GatewayListType) IsKnown ¶
func (r GatewayListType) IsKnown() bool
type GatewayListUpdateParams ¶
type GatewayListUpdateParams struct { AccountID param.Field[string] `path:"account_id,required"` // The name of the list. Name param.Field[string] `json:"name,required"` // The description of the list. Description param.Field[string] `json:"description"` }
func (GatewayListUpdateParams) MarshalJSON ¶
func (r GatewayListUpdateParams) MarshalJSON() (data []byte, err error)
type GatewayListUpdateResponseEnvelope ¶
type GatewayListUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result GatewayList `json:"result,required"` // Whether the API call was successful Success GatewayListUpdateResponseEnvelopeSuccess `json:"success,required"` JSON gatewayListUpdateResponseEnvelopeJSON `json:"-"` }
func (*GatewayListUpdateResponseEnvelope) UnmarshalJSON ¶
func (r *GatewayListUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type GatewayListUpdateResponseEnvelopeSuccess ¶
type GatewayListUpdateResponseEnvelopeSuccess bool
Whether the API call was successful
const (
GatewayListUpdateResponseEnvelopeSuccessTrue GatewayListUpdateResponseEnvelopeSuccess = true
)
func (GatewayListUpdateResponseEnvelopeSuccess) IsKnown ¶
func (r GatewayListUpdateResponseEnvelopeSuccess) IsKnown() bool
type GatewayLocationDeleteParams ¶
type GatewayLocationDeleteParams struct { AccountID param.Field[string] `path:"account_id,required"` Body interface{} `json:"body,required"` }
func (GatewayLocationDeleteParams) MarshalJSON ¶
func (r GatewayLocationDeleteParams) MarshalJSON() (data []byte, err error)
type GatewayLocationDeleteResponseEnvelope ¶
type GatewayLocationDeleteResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result GatewayLocationDeleteResponseUnion `json:"result,required"` // Whether the API call was successful Success GatewayLocationDeleteResponseEnvelopeSuccess `json:"success,required"` JSON gatewayLocationDeleteResponseEnvelopeJSON `json:"-"` }
func (*GatewayLocationDeleteResponseEnvelope) UnmarshalJSON ¶
func (r *GatewayLocationDeleteResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type GatewayLocationDeleteResponseEnvelopeSuccess ¶
type GatewayLocationDeleteResponseEnvelopeSuccess bool
Whether the API call was successful
const (
GatewayLocationDeleteResponseEnvelopeSuccessTrue GatewayLocationDeleteResponseEnvelopeSuccess = true
)
func (GatewayLocationDeleteResponseEnvelopeSuccess) IsKnown ¶
func (r GatewayLocationDeleteResponseEnvelopeSuccess) IsKnown() bool
type GatewayLocationDeleteResponseUnion ¶
type GatewayLocationDeleteResponseUnion interface {
ImplementsZeroTrustGatewayLocationDeleteResponseUnion()
}
Union satisfied by zero_trust.GatewayLocationDeleteResponseUnknown or shared.UnionString.
type GatewayLocationGetResponseEnvelope ¶
type GatewayLocationGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result Location `json:"result,required"` // Whether the API call was successful Success GatewayLocationGetResponseEnvelopeSuccess `json:"success,required"` JSON gatewayLocationGetResponseEnvelopeJSON `json:"-"` }
func (*GatewayLocationGetResponseEnvelope) UnmarshalJSON ¶
func (r *GatewayLocationGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type GatewayLocationGetResponseEnvelopeSuccess ¶
type GatewayLocationGetResponseEnvelopeSuccess bool
Whether the API call was successful
const (
GatewayLocationGetResponseEnvelopeSuccessTrue GatewayLocationGetResponseEnvelopeSuccess = true
)
func (GatewayLocationGetResponseEnvelopeSuccess) IsKnown ¶
func (r GatewayLocationGetResponseEnvelopeSuccess) IsKnown() bool
type GatewayLocationNewParams ¶
type GatewayLocationNewParams struct { AccountID param.Field[string] `path:"account_id,required"` // The name of the location. Name param.Field[string] `json:"name,required"` // True if the location is the default location. ClientDefault param.Field[bool] `json:"client_default"` // True if the location needs to resolve EDNS queries. EcsSupport param.Field[bool] `json:"ecs_support"` // A list of network ranges that requests from this location would originate from. Networks param.Field[[]LocationNetworkParam] `json:"networks"` }
func (GatewayLocationNewParams) MarshalJSON ¶
func (r GatewayLocationNewParams) MarshalJSON() (data []byte, err error)
type GatewayLocationNewResponseEnvelope ¶
type GatewayLocationNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result Location `json:"result,required"` // Whether the API call was successful Success GatewayLocationNewResponseEnvelopeSuccess `json:"success,required"` JSON gatewayLocationNewResponseEnvelopeJSON `json:"-"` }
func (*GatewayLocationNewResponseEnvelope) UnmarshalJSON ¶
func (r *GatewayLocationNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type GatewayLocationNewResponseEnvelopeSuccess ¶
type GatewayLocationNewResponseEnvelopeSuccess bool
Whether the API call was successful
const (
GatewayLocationNewResponseEnvelopeSuccessTrue GatewayLocationNewResponseEnvelopeSuccess = true
)
func (GatewayLocationNewResponseEnvelopeSuccess) IsKnown ¶
func (r GatewayLocationNewResponseEnvelopeSuccess) IsKnown() bool
type GatewayLocationService ¶
type GatewayLocationService struct {
Options []option.RequestOption
}
GatewayLocationService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewGatewayLocationService method instead.
func NewGatewayLocationService ¶
func NewGatewayLocationService(opts ...option.RequestOption) (r *GatewayLocationService)
NewGatewayLocationService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*GatewayLocationService) Delete ¶
func (r *GatewayLocationService) Delete(ctx context.Context, locationID string, params GatewayLocationDeleteParams, opts ...option.RequestOption) (res *GatewayLocationDeleteResponseUnion, err error)
Deletes a configured Zero Trust Gateway location.
func (*GatewayLocationService) Get ¶
func (r *GatewayLocationService) Get(ctx context.Context, locationID string, query GatewayLocationGetParams, opts ...option.RequestOption) (res *Location, err error)
Fetches a single Zero Trust Gateway location.
func (*GatewayLocationService) List ¶
func (r *GatewayLocationService) List(ctx context.Context, query GatewayLocationListParams, opts ...option.RequestOption) (res *pagination.SinglePage[Location], err error)
Fetches Zero Trust Gateway locations for an account.
func (*GatewayLocationService) ListAutoPaging ¶
func (r *GatewayLocationService) ListAutoPaging(ctx context.Context, query GatewayLocationListParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[Location]
Fetches Zero Trust Gateway locations for an account.
func (*GatewayLocationService) New ¶
func (r *GatewayLocationService) New(ctx context.Context, params GatewayLocationNewParams, opts ...option.RequestOption) (res *Location, err error)
Creates a new Zero Trust Gateway location.
func (*GatewayLocationService) Update ¶
func (r *GatewayLocationService) Update(ctx context.Context, locationID string, params GatewayLocationUpdateParams, opts ...option.RequestOption) (res *Location, err error)
Updates a configured Zero Trust Gateway location.
type GatewayLocationUpdateParams ¶
type GatewayLocationUpdateParams struct { AccountID param.Field[string] `path:"account_id,required"` // The name of the location. Name param.Field[string] `json:"name,required"` // True if the location is the default location. ClientDefault param.Field[bool] `json:"client_default"` // True if the location needs to resolve EDNS queries. EcsSupport param.Field[bool] `json:"ecs_support"` // A list of network ranges that requests from this location would originate from. Networks param.Field[[]LocationNetworkParam] `json:"networks"` }
func (GatewayLocationUpdateParams) MarshalJSON ¶
func (r GatewayLocationUpdateParams) MarshalJSON() (data []byte, err error)
type GatewayLocationUpdateResponseEnvelope ¶
type GatewayLocationUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result Location `json:"result,required"` // Whether the API call was successful Success GatewayLocationUpdateResponseEnvelopeSuccess `json:"success,required"` JSON gatewayLocationUpdateResponseEnvelopeJSON `json:"-"` }
func (*GatewayLocationUpdateResponseEnvelope) UnmarshalJSON ¶
func (r *GatewayLocationUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type GatewayLocationUpdateResponseEnvelopeSuccess ¶
type GatewayLocationUpdateResponseEnvelopeSuccess bool
Whether the API call was successful
const (
GatewayLocationUpdateResponseEnvelopeSuccessTrue GatewayLocationUpdateResponseEnvelopeSuccess = true
)
func (GatewayLocationUpdateResponseEnvelopeSuccess) IsKnown ¶
func (r GatewayLocationUpdateResponseEnvelopeSuccess) IsKnown() bool
type GatewayLoggingGetParams ¶
type GatewayLoggingGetResponseEnvelope ¶
type GatewayLoggingGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result LoggingSetting `json:"result,required"` // Whether the API call was successful Success GatewayLoggingGetResponseEnvelopeSuccess `json:"success,required"` JSON gatewayLoggingGetResponseEnvelopeJSON `json:"-"` }
func (*GatewayLoggingGetResponseEnvelope) UnmarshalJSON ¶
func (r *GatewayLoggingGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type GatewayLoggingGetResponseEnvelopeSuccess ¶
type GatewayLoggingGetResponseEnvelopeSuccess bool
Whether the API call was successful
const (
GatewayLoggingGetResponseEnvelopeSuccessTrue GatewayLoggingGetResponseEnvelopeSuccess = true
)
func (GatewayLoggingGetResponseEnvelopeSuccess) IsKnown ¶
func (r GatewayLoggingGetResponseEnvelopeSuccess) IsKnown() bool
type GatewayLoggingService ¶
type GatewayLoggingService struct {
Options []option.RequestOption
}
GatewayLoggingService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewGatewayLoggingService method instead.
func NewGatewayLoggingService ¶
func NewGatewayLoggingService(opts ...option.RequestOption) (r *GatewayLoggingService)
NewGatewayLoggingService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*GatewayLoggingService) Get ¶
func (r *GatewayLoggingService) Get(ctx context.Context, query GatewayLoggingGetParams, opts ...option.RequestOption) (res *LoggingSetting, err error)
Fetches the current logging settings for Zero Trust account.
func (*GatewayLoggingService) Update ¶
func (r *GatewayLoggingService) Update(ctx context.Context, params GatewayLoggingUpdateParams, opts ...option.RequestOption) (res *LoggingSetting, err error)
Updates logging settings for the current Zero Trust account.
type GatewayLoggingUpdateParams ¶
type GatewayLoggingUpdateParams struct { AccountID param.Field[string] `path:"account_id,required"` LoggingSetting LoggingSettingParam `json:"logging_setting,required"` }
func (GatewayLoggingUpdateParams) MarshalJSON ¶
func (r GatewayLoggingUpdateParams) MarshalJSON() (data []byte, err error)
type GatewayLoggingUpdateResponseEnvelope ¶
type GatewayLoggingUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result LoggingSetting `json:"result,required"` // Whether the API call was successful Success GatewayLoggingUpdateResponseEnvelopeSuccess `json:"success,required"` JSON gatewayLoggingUpdateResponseEnvelopeJSON `json:"-"` }
func (*GatewayLoggingUpdateResponseEnvelope) UnmarshalJSON ¶
func (r *GatewayLoggingUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type GatewayLoggingUpdateResponseEnvelopeSuccess ¶
type GatewayLoggingUpdateResponseEnvelopeSuccess bool
Whether the API call was successful
const (
GatewayLoggingUpdateResponseEnvelopeSuccessTrue GatewayLoggingUpdateResponseEnvelopeSuccess = true
)
func (GatewayLoggingUpdateResponseEnvelopeSuccess) IsKnown ¶
func (r GatewayLoggingUpdateResponseEnvelopeSuccess) IsKnown() bool
type GatewayNewParams ¶
type GatewayNewResponse ¶
type GatewayNewResponse struct { // Cloudflare account ID. ID string `json:"id"` // Gateway internal ID. GatewayTag string `json:"gateway_tag"` // The name of the provider. Usually Cloudflare. ProviderName string `json:"provider_name"` JSON gatewayNewResponseJSON `json:"-"` }
func (*GatewayNewResponse) UnmarshalJSON ¶
func (r *GatewayNewResponse) UnmarshalJSON(data []byte) (err error)
type GatewayNewResponseEnvelope ¶
type GatewayNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result GatewayNewResponse `json:"result,required"` // Whether the API call was successful Success GatewayNewResponseEnvelopeSuccess `json:"success,required"` JSON gatewayNewResponseEnvelopeJSON `json:"-"` }
func (*GatewayNewResponseEnvelope) UnmarshalJSON ¶
func (r *GatewayNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type GatewayNewResponseEnvelopeSuccess ¶
type GatewayNewResponseEnvelopeSuccess bool
Whether the API call was successful
const (
GatewayNewResponseEnvelopeSuccessTrue GatewayNewResponseEnvelopeSuccess = true
)
func (GatewayNewResponseEnvelopeSuccess) IsKnown ¶
func (r GatewayNewResponseEnvelopeSuccess) IsKnown() bool
type GatewayProxyEndpointDeleteParams ¶
type GatewayProxyEndpointDeleteParams struct { AccountID param.Field[string] `path:"account_id,required"` Body interface{} `json:"body,required"` }
func (GatewayProxyEndpointDeleteParams) MarshalJSON ¶
func (r GatewayProxyEndpointDeleteParams) MarshalJSON() (data []byte, err error)
type GatewayProxyEndpointDeleteResponseEnvelope ¶
type GatewayProxyEndpointDeleteResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result GatewayProxyEndpointDeleteResponseUnion `json:"result,required"` // Whether the API call was successful Success GatewayProxyEndpointDeleteResponseEnvelopeSuccess `json:"success,required"` JSON gatewayProxyEndpointDeleteResponseEnvelopeJSON `json:"-"` }
func (*GatewayProxyEndpointDeleteResponseEnvelope) UnmarshalJSON ¶
func (r *GatewayProxyEndpointDeleteResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type GatewayProxyEndpointDeleteResponseEnvelopeSuccess ¶
type GatewayProxyEndpointDeleteResponseEnvelopeSuccess bool
Whether the API call was successful
const (
GatewayProxyEndpointDeleteResponseEnvelopeSuccessTrue GatewayProxyEndpointDeleteResponseEnvelopeSuccess = true
)
func (GatewayProxyEndpointDeleteResponseEnvelopeSuccess) IsKnown ¶
func (r GatewayProxyEndpointDeleteResponseEnvelopeSuccess) IsKnown() bool
type GatewayProxyEndpointDeleteResponseUnion ¶
type GatewayProxyEndpointDeleteResponseUnion interface {
ImplementsZeroTrustGatewayProxyEndpointDeleteResponseUnion()
}
Union satisfied by zero_trust.GatewayProxyEndpointDeleteResponseUnknown or shared.UnionString.
type GatewayProxyEndpointEditParams ¶
type GatewayProxyEndpointEditParams struct { AccountID param.Field[string] `path:"account_id,required"` // A list of CIDRs to restrict ingress connections. IPs param.Field[[]GatewayIPsParam] `json:"ips"` // The name of the proxy endpoint. Name param.Field[string] `json:"name"` }
func (GatewayProxyEndpointEditParams) MarshalJSON ¶
func (r GatewayProxyEndpointEditParams) MarshalJSON() (data []byte, err error)
type GatewayProxyEndpointEditResponseEnvelope ¶
type GatewayProxyEndpointEditResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result ProxyEndpoint `json:"result,required"` // Whether the API call was successful Success GatewayProxyEndpointEditResponseEnvelopeSuccess `json:"success,required"` JSON gatewayProxyEndpointEditResponseEnvelopeJSON `json:"-"` }
func (*GatewayProxyEndpointEditResponseEnvelope) UnmarshalJSON ¶
func (r *GatewayProxyEndpointEditResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type GatewayProxyEndpointEditResponseEnvelopeSuccess ¶
type GatewayProxyEndpointEditResponseEnvelopeSuccess bool
Whether the API call was successful
const (
GatewayProxyEndpointEditResponseEnvelopeSuccessTrue GatewayProxyEndpointEditResponseEnvelopeSuccess = true
)
func (GatewayProxyEndpointEditResponseEnvelopeSuccess) IsKnown ¶
func (r GatewayProxyEndpointEditResponseEnvelopeSuccess) IsKnown() bool
type GatewayProxyEndpointGetResponseEnvelope ¶
type GatewayProxyEndpointGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result ProxyEndpoint `json:"result,required"` // Whether the API call was successful Success GatewayProxyEndpointGetResponseEnvelopeSuccess `json:"success,required"` JSON gatewayProxyEndpointGetResponseEnvelopeJSON `json:"-"` }
func (*GatewayProxyEndpointGetResponseEnvelope) UnmarshalJSON ¶
func (r *GatewayProxyEndpointGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type GatewayProxyEndpointGetResponseEnvelopeSuccess ¶
type GatewayProxyEndpointGetResponseEnvelopeSuccess bool
Whether the API call was successful
const (
GatewayProxyEndpointGetResponseEnvelopeSuccessTrue GatewayProxyEndpointGetResponseEnvelopeSuccess = true
)
func (GatewayProxyEndpointGetResponseEnvelopeSuccess) IsKnown ¶
func (r GatewayProxyEndpointGetResponseEnvelopeSuccess) IsKnown() bool
type GatewayProxyEndpointNewParams ¶
type GatewayProxyEndpointNewParams struct { AccountID param.Field[string] `path:"account_id,required"` // A list of CIDRs to restrict ingress connections. IPs param.Field[[]GatewayIPsParam] `json:"ips,required"` // The name of the proxy endpoint. Name param.Field[string] `json:"name,required"` }
func (GatewayProxyEndpointNewParams) MarshalJSON ¶
func (r GatewayProxyEndpointNewParams) MarshalJSON() (data []byte, err error)
type GatewayProxyEndpointNewResponseEnvelope ¶
type GatewayProxyEndpointNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result ProxyEndpoint `json:"result,required"` // Whether the API call was successful Success GatewayProxyEndpointNewResponseEnvelopeSuccess `json:"success,required"` JSON gatewayProxyEndpointNewResponseEnvelopeJSON `json:"-"` }
func (*GatewayProxyEndpointNewResponseEnvelope) UnmarshalJSON ¶
func (r *GatewayProxyEndpointNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type GatewayProxyEndpointNewResponseEnvelopeSuccess ¶
type GatewayProxyEndpointNewResponseEnvelopeSuccess bool
Whether the API call was successful
const (
GatewayProxyEndpointNewResponseEnvelopeSuccessTrue GatewayProxyEndpointNewResponseEnvelopeSuccess = true
)
func (GatewayProxyEndpointNewResponseEnvelopeSuccess) IsKnown ¶
func (r GatewayProxyEndpointNewResponseEnvelopeSuccess) IsKnown() bool
type GatewayProxyEndpointService ¶
type GatewayProxyEndpointService struct {
Options []option.RequestOption
}
GatewayProxyEndpointService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewGatewayProxyEndpointService method instead.
func NewGatewayProxyEndpointService ¶
func NewGatewayProxyEndpointService(opts ...option.RequestOption) (r *GatewayProxyEndpointService)
NewGatewayProxyEndpointService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*GatewayProxyEndpointService) Delete ¶
func (r *GatewayProxyEndpointService) Delete(ctx context.Context, proxyEndpointID string, params GatewayProxyEndpointDeleteParams, opts ...option.RequestOption) (res *GatewayProxyEndpointDeleteResponseUnion, err error)
Deletes a configured Zero Trust Gateway proxy endpoint.
func (*GatewayProxyEndpointService) Edit ¶
func (r *GatewayProxyEndpointService) Edit(ctx context.Context, proxyEndpointID string, params GatewayProxyEndpointEditParams, opts ...option.RequestOption) (res *ProxyEndpoint, err error)
Updates a configured Zero Trust Gateway proxy endpoint.
func (*GatewayProxyEndpointService) Get ¶
func (r *GatewayProxyEndpointService) Get(ctx context.Context, proxyEndpointID string, query GatewayProxyEndpointGetParams, opts ...option.RequestOption) (res *ProxyEndpoint, err error)
Fetches all Zero Trust Gateway proxy endpoints for an account.
func (*GatewayProxyEndpointService) List ¶
func (r *GatewayProxyEndpointService) List(ctx context.Context, query GatewayProxyEndpointListParams, opts ...option.RequestOption) (res *pagination.SinglePage[ProxyEndpoint], err error)
Fetches a single Zero Trust Gateway proxy endpoint.
func (*GatewayProxyEndpointService) ListAutoPaging ¶
func (r *GatewayProxyEndpointService) ListAutoPaging(ctx context.Context, query GatewayProxyEndpointListParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[ProxyEndpoint]
Fetches a single Zero Trust Gateway proxy endpoint.
func (*GatewayProxyEndpointService) New ¶
func (r *GatewayProxyEndpointService) New(ctx context.Context, params GatewayProxyEndpointNewParams, opts ...option.RequestOption) (res *ProxyEndpoint, err error)
Creates a new Zero Trust Gateway proxy endpoint.
type GatewayRule ¶
type GatewayRule struct { // The API resource UUID. ID string `json:"id"` // The action to preform when the associated traffic, identity, and device posture // expressions are either absent or evaluate to `true`. Action GatewayRuleAction `json:"action"` CreatedAt time.Time `json:"created_at" format:"date-time"` // Date of deletion, if any. DeletedAt time.Time `json:"deleted_at,nullable" format:"date-time"` // The description of the rule. Description string `json:"description"` // The wirefilter expression used for device posture check matching. DevicePosture string `json:"device_posture"` // True if the rule is enabled. Enabled bool `json:"enabled"` // The protocol or layer to evaluate the traffic, identity, and device posture // expressions. Filters []GatewayFilter `json:"filters"` // The wirefilter expression used for identity matching. Identity string `json:"identity"` // The name of the rule. Name string `json:"name"` // Precedence sets the order of your rules. Lower values indicate higher // precedence. At each processing phase, applicable rules are evaluated in // ascending order of this value. Precedence int64 `json:"precedence"` // Additional settings that modify the rule's action. RuleSettings RuleSetting `json:"rule_settings"` // The schedule for activating DNS policies. This does not apply to HTTP or network // policies. Schedule Schedule `json:"schedule"` // The wirefilter expression used for traffic matching. Traffic string `json:"traffic"` UpdatedAt time.Time `json:"updated_at" format:"date-time"` JSON gatewayRuleJSON `json:"-"` }
func (*GatewayRule) UnmarshalJSON ¶
func (r *GatewayRule) UnmarshalJSON(data []byte) (err error)
type GatewayRuleAction ¶
type GatewayRuleAction string
The action to preform when the associated traffic, identity, and device posture expressions are either absent or evaluate to `true`.
const ( GatewayRuleActionOn GatewayRuleAction = "on" GatewayRuleActionOff GatewayRuleAction = "off" GatewayRuleActionAllow GatewayRuleAction = "allow" GatewayRuleActionBlock GatewayRuleAction = "block" GatewayRuleActionScan GatewayRuleAction = "scan" GatewayRuleActionNoscan GatewayRuleAction = "noscan" GatewayRuleActionSafesearch GatewayRuleAction = "safesearch" GatewayRuleActionYtrestricted GatewayRuleAction = "ytrestricted" GatewayRuleActionIsolate GatewayRuleAction = "isolate" GatewayRuleActionNoisolate GatewayRuleAction = "noisolate" GatewayRuleActionOverride GatewayRuleAction = "override" GatewayRuleActionL4Override GatewayRuleAction = "l4_override" GatewayRuleActionEgress GatewayRuleAction = "egress" GatewayRuleActionAuditSSH GatewayRuleAction = "audit_ssh" GatewayRuleActionResolve GatewayRuleAction = "resolve" )
func (GatewayRuleAction) IsKnown ¶
func (r GatewayRuleAction) IsKnown() bool
type GatewayRuleDeleteParams ¶
type GatewayRuleDeleteParams struct { AccountID param.Field[string] `path:"account_id,required"` Body interface{} `json:"body,required"` }
func (GatewayRuleDeleteParams) MarshalJSON ¶
func (r GatewayRuleDeleteParams) MarshalJSON() (data []byte, err error)
type GatewayRuleDeleteResponseEnvelope ¶
type GatewayRuleDeleteResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result GatewayRuleDeleteResponseUnion `json:"result,required"` // Whether the API call was successful Success GatewayRuleDeleteResponseEnvelopeSuccess `json:"success,required"` JSON gatewayRuleDeleteResponseEnvelopeJSON `json:"-"` }
func (*GatewayRuleDeleteResponseEnvelope) UnmarshalJSON ¶
func (r *GatewayRuleDeleteResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type GatewayRuleDeleteResponseEnvelopeSuccess ¶
type GatewayRuleDeleteResponseEnvelopeSuccess bool
Whether the API call was successful
const (
GatewayRuleDeleteResponseEnvelopeSuccessTrue GatewayRuleDeleteResponseEnvelopeSuccess = true
)
func (GatewayRuleDeleteResponseEnvelopeSuccess) IsKnown ¶
func (r GatewayRuleDeleteResponseEnvelopeSuccess) IsKnown() bool
type GatewayRuleDeleteResponseUnion ¶
type GatewayRuleDeleteResponseUnion interface {
ImplementsZeroTrustGatewayRuleDeleteResponseUnion()
}
Union satisfied by zero_trust.GatewayRuleDeleteResponseUnknown or shared.UnionString.
type GatewayRuleGetParams ¶
type GatewayRuleGetResponseEnvelope ¶
type GatewayRuleGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result GatewayRule `json:"result,required"` // Whether the API call was successful Success GatewayRuleGetResponseEnvelopeSuccess `json:"success,required"` JSON gatewayRuleGetResponseEnvelopeJSON `json:"-"` }
func (*GatewayRuleGetResponseEnvelope) UnmarshalJSON ¶
func (r *GatewayRuleGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type GatewayRuleGetResponseEnvelopeSuccess ¶
type GatewayRuleGetResponseEnvelopeSuccess bool
Whether the API call was successful
const (
GatewayRuleGetResponseEnvelopeSuccessTrue GatewayRuleGetResponseEnvelopeSuccess = true
)
func (GatewayRuleGetResponseEnvelopeSuccess) IsKnown ¶
func (r GatewayRuleGetResponseEnvelopeSuccess) IsKnown() bool
type GatewayRuleListParams ¶
type GatewayRuleNewParams ¶
type GatewayRuleNewParams struct { AccountID param.Field[string] `path:"account_id,required"` // The action to preform when the associated traffic, identity, and device posture // expressions are either absent or evaluate to `true`. Action param.Field[GatewayRuleNewParamsAction] `json:"action,required"` // The name of the rule. Name param.Field[string] `json:"name,required"` // The description of the rule. Description param.Field[string] `json:"description"` // The wirefilter expression used for device posture check matching. DevicePosture param.Field[string] `json:"device_posture"` // True if the rule is enabled. Enabled param.Field[bool] `json:"enabled"` // The protocol or layer to evaluate the traffic, identity, and device posture // expressions. Filters param.Field[[]GatewayFilter] `json:"filters"` // The wirefilter expression used for identity matching. Identity param.Field[string] `json:"identity"` // Precedence sets the order of your rules. Lower values indicate higher // precedence. At each processing phase, applicable rules are evaluated in // ascending order of this value. Precedence param.Field[int64] `json:"precedence"` // Additional settings that modify the rule's action. RuleSettings param.Field[RuleSettingParam] `json:"rule_settings"` // The schedule for activating DNS policies. This does not apply to HTTP or network // policies. Schedule param.Field[ScheduleParam] `json:"schedule"` // The wirefilter expression used for traffic matching. Traffic param.Field[string] `json:"traffic"` }
func (GatewayRuleNewParams) MarshalJSON ¶
func (r GatewayRuleNewParams) MarshalJSON() (data []byte, err error)
type GatewayRuleNewParamsAction ¶
type GatewayRuleNewParamsAction string
The action to preform when the associated traffic, identity, and device posture expressions are either absent or evaluate to `true`.
const ( GatewayRuleNewParamsActionOn GatewayRuleNewParamsAction = "on" GatewayRuleNewParamsActionOff GatewayRuleNewParamsAction = "off" GatewayRuleNewParamsActionAllow GatewayRuleNewParamsAction = "allow" GatewayRuleNewParamsActionBlock GatewayRuleNewParamsAction = "block" GatewayRuleNewParamsActionScan GatewayRuleNewParamsAction = "scan" GatewayRuleNewParamsActionNoscan GatewayRuleNewParamsAction = "noscan" GatewayRuleNewParamsActionSafesearch GatewayRuleNewParamsAction = "safesearch" GatewayRuleNewParamsActionYtrestricted GatewayRuleNewParamsAction = "ytrestricted" GatewayRuleNewParamsActionIsolate GatewayRuleNewParamsAction = "isolate" GatewayRuleNewParamsActionNoisolate GatewayRuleNewParamsAction = "noisolate" GatewayRuleNewParamsActionOverride GatewayRuleNewParamsAction = "override" GatewayRuleNewParamsActionL4Override GatewayRuleNewParamsAction = "l4_override" GatewayRuleNewParamsActionEgress GatewayRuleNewParamsAction = "egress" GatewayRuleNewParamsActionAuditSSH GatewayRuleNewParamsAction = "audit_ssh" GatewayRuleNewParamsActionResolve GatewayRuleNewParamsAction = "resolve" )
func (GatewayRuleNewParamsAction) IsKnown ¶
func (r GatewayRuleNewParamsAction) IsKnown() bool
type GatewayRuleNewResponseEnvelope ¶
type GatewayRuleNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result GatewayRule `json:"result,required"` // Whether the API call was successful Success GatewayRuleNewResponseEnvelopeSuccess `json:"success,required"` JSON gatewayRuleNewResponseEnvelopeJSON `json:"-"` }
func (*GatewayRuleNewResponseEnvelope) UnmarshalJSON ¶
func (r *GatewayRuleNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type GatewayRuleNewResponseEnvelopeSuccess ¶
type GatewayRuleNewResponseEnvelopeSuccess bool
Whether the API call was successful
const (
GatewayRuleNewResponseEnvelopeSuccessTrue GatewayRuleNewResponseEnvelopeSuccess = true
)
func (GatewayRuleNewResponseEnvelopeSuccess) IsKnown ¶
func (r GatewayRuleNewResponseEnvelopeSuccess) IsKnown() bool
type GatewayRuleService ¶
type GatewayRuleService struct {
Options []option.RequestOption
}
GatewayRuleService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewGatewayRuleService method instead.
func NewGatewayRuleService ¶
func NewGatewayRuleService(opts ...option.RequestOption) (r *GatewayRuleService)
NewGatewayRuleService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*GatewayRuleService) Delete ¶
func (r *GatewayRuleService) Delete(ctx context.Context, ruleID string, params GatewayRuleDeleteParams, opts ...option.RequestOption) (res *GatewayRuleDeleteResponseUnion, err error)
Deletes a Zero Trust Gateway rule.
func (*GatewayRuleService) Get ¶
func (r *GatewayRuleService) Get(ctx context.Context, ruleID string, query GatewayRuleGetParams, opts ...option.RequestOption) (res *GatewayRule, err error)
Fetches a single Zero Trust Gateway rule.
func (*GatewayRuleService) List ¶
func (r *GatewayRuleService) List(ctx context.Context, query GatewayRuleListParams, opts ...option.RequestOption) (res *pagination.SinglePage[GatewayRule], err error)
Fetches the Zero Trust Gateway rules for an account.
func (*GatewayRuleService) ListAutoPaging ¶
func (r *GatewayRuleService) ListAutoPaging(ctx context.Context, query GatewayRuleListParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[GatewayRule]
Fetches the Zero Trust Gateway rules for an account.
func (*GatewayRuleService) New ¶
func (r *GatewayRuleService) New(ctx context.Context, params GatewayRuleNewParams, opts ...option.RequestOption) (res *GatewayRule, err error)
Creates a new Zero Trust Gateway rule.
func (*GatewayRuleService) Update ¶
func (r *GatewayRuleService) Update(ctx context.Context, ruleID string, params GatewayRuleUpdateParams, opts ...option.RequestOption) (res *GatewayRule, err error)
Updates a configured Zero Trust Gateway rule.
type GatewayRuleUpdateParams ¶
type GatewayRuleUpdateParams struct { AccountID param.Field[string] `path:"account_id,required"` // The action to preform when the associated traffic, identity, and device posture // expressions are either absent or evaluate to `true`. Action param.Field[GatewayRuleUpdateParamsAction] `json:"action,required"` // The name of the rule. Name param.Field[string] `json:"name,required"` // The description of the rule. Description param.Field[string] `json:"description"` // The wirefilter expression used for device posture check matching. DevicePosture param.Field[string] `json:"device_posture"` // True if the rule is enabled. Enabled param.Field[bool] `json:"enabled"` // The protocol or layer to evaluate the traffic, identity, and device posture // expressions. Filters param.Field[[]GatewayFilter] `json:"filters"` // The wirefilter expression used for identity matching. Identity param.Field[string] `json:"identity"` // Precedence sets the order of your rules. Lower values indicate higher // precedence. At each processing phase, applicable rules are evaluated in // ascending order of this value. Precedence param.Field[int64] `json:"precedence"` // Additional settings that modify the rule's action. RuleSettings param.Field[RuleSettingParam] `json:"rule_settings"` // The schedule for activating DNS policies. This does not apply to HTTP or network // policies. Schedule param.Field[ScheduleParam] `json:"schedule"` // The wirefilter expression used for traffic matching. Traffic param.Field[string] `json:"traffic"` }
func (GatewayRuleUpdateParams) MarshalJSON ¶
func (r GatewayRuleUpdateParams) MarshalJSON() (data []byte, err error)
type GatewayRuleUpdateParamsAction ¶
type GatewayRuleUpdateParamsAction string
The action to preform when the associated traffic, identity, and device posture expressions are either absent or evaluate to `true`.
const ( GatewayRuleUpdateParamsActionOn GatewayRuleUpdateParamsAction = "on" GatewayRuleUpdateParamsActionOff GatewayRuleUpdateParamsAction = "off" GatewayRuleUpdateParamsActionAllow GatewayRuleUpdateParamsAction = "allow" GatewayRuleUpdateParamsActionBlock GatewayRuleUpdateParamsAction = "block" GatewayRuleUpdateParamsActionScan GatewayRuleUpdateParamsAction = "scan" GatewayRuleUpdateParamsActionNoscan GatewayRuleUpdateParamsAction = "noscan" GatewayRuleUpdateParamsActionSafesearch GatewayRuleUpdateParamsAction = "safesearch" GatewayRuleUpdateParamsActionYtrestricted GatewayRuleUpdateParamsAction = "ytrestricted" GatewayRuleUpdateParamsActionIsolate GatewayRuleUpdateParamsAction = "isolate" GatewayRuleUpdateParamsActionNoisolate GatewayRuleUpdateParamsAction = "noisolate" GatewayRuleUpdateParamsActionOverride GatewayRuleUpdateParamsAction = "override" GatewayRuleUpdateParamsActionL4Override GatewayRuleUpdateParamsAction = "l4_override" GatewayRuleUpdateParamsActionEgress GatewayRuleUpdateParamsAction = "egress" GatewayRuleUpdateParamsActionAuditSSH GatewayRuleUpdateParamsAction = "audit_ssh" GatewayRuleUpdateParamsActionResolve GatewayRuleUpdateParamsAction = "resolve" )
func (GatewayRuleUpdateParamsAction) IsKnown ¶
func (r GatewayRuleUpdateParamsAction) IsKnown() bool
type GatewayRuleUpdateResponseEnvelope ¶
type GatewayRuleUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result GatewayRule `json:"result,required"` // Whether the API call was successful Success GatewayRuleUpdateResponseEnvelopeSuccess `json:"success,required"` JSON gatewayRuleUpdateResponseEnvelopeJSON `json:"-"` }
func (*GatewayRuleUpdateResponseEnvelope) UnmarshalJSON ¶
func (r *GatewayRuleUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type GatewayRuleUpdateResponseEnvelopeSuccess ¶
type GatewayRuleUpdateResponseEnvelopeSuccess bool
Whether the API call was successful
const (
GatewayRuleUpdateResponseEnvelopeSuccessTrue GatewayRuleUpdateResponseEnvelopeSuccess = true
)
func (GatewayRuleUpdateResponseEnvelopeSuccess) IsKnown ¶
func (r GatewayRuleUpdateResponseEnvelopeSuccess) IsKnown() bool
type GatewayService ¶
type GatewayService struct { Options []option.RequestOption AuditSSHSettings *GatewayAuditSSHSettingService Categories *GatewayCategoryService AppTypes *GatewayAppTypeService Configurations *GatewayConfigurationService Lists *GatewayListService Locations *GatewayLocationService Logging *GatewayLoggingService ProxyEndpoints *GatewayProxyEndpointService Rules *GatewayRuleService }
GatewayService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewGatewayService method instead.
func NewGatewayService ¶
func NewGatewayService(opts ...option.RequestOption) (r *GatewayService)
NewGatewayService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*GatewayService) List ¶
func (r *GatewayService) List(ctx context.Context, query GatewayListParams, opts ...option.RequestOption) (res *GatewayListResponse, err error)
Gets information about the current Zero Trust account.
func (*GatewayService) New ¶
func (r *GatewayService) New(ctx context.Context, body GatewayNewParams, opts ...option.RequestOption) (res *GatewayNewResponse, err error)
Creates a Zero Trust account with an existing Cloudflare account.
type GatewaySettings ¶
type GatewaySettings struct { CreatedAt time.Time `json:"created_at" format:"date-time"` // SSH encryption public key PublicKey string `json:"public_key"` // Seed ID SeedID string `json:"seed_id"` UpdatedAt time.Time `json:"updated_at" format:"date-time"` JSON gatewaySettingsJSON `json:"-"` }
func (*GatewaySettings) UnmarshalJSON ¶
func (r *GatewaySettings) UnmarshalJSON(data []byte) (err error)
type GenericOAuthConfig ¶
type GenericOAuthConfig struct { // Your OAuth Client ID ClientID string `json:"client_id"` // Your OAuth Client Secret ClientSecret string `json:"client_secret"` JSON genericOAuthConfigJSON `json:"-"` }
func (*GenericOAuthConfig) UnmarshalJSON ¶
func (r *GenericOAuthConfig) UnmarshalJSON(data []byte) (err error)
type GenericOAuthConfigParam ¶
type GenericOAuthConfigParam struct { // Your OAuth Client ID ClientID param.Field[string] `json:"client_id"` // Your OAuth Client Secret ClientSecret param.Field[string] `json:"client_secret"` }
func (GenericOAuthConfigParam) MarshalJSON ¶
func (r GenericOAuthConfigParam) MarshalJSON() (data []byte, err error)
type GitHubOrganizationRule ¶
type GitHubOrganizationRule struct { GitHubOrganization GitHubOrganizationRuleGitHubOrganization `json:"github-organization,required"` JSON githubOrganizationRuleJSON `json:"-"` }
Matches a Github organization. Requires a Github identity provider.
func (*GitHubOrganizationRule) UnmarshalJSON ¶
func (r *GitHubOrganizationRule) UnmarshalJSON(data []byte) (err error)
type GitHubOrganizationRuleGitHubOrganization ¶
type GitHubOrganizationRuleGitHubOrganization struct { // The ID of your Github identity provider. ConnectionID string `json:"connection_id,required"` // The name of the organization. Name string `json:"name,required"` JSON githubOrganizationRuleGitHubOrganizationJSON `json:"-"` }
func (*GitHubOrganizationRuleGitHubOrganization) UnmarshalJSON ¶
func (r *GitHubOrganizationRuleGitHubOrganization) UnmarshalJSON(data []byte) (err error)
type GitHubOrganizationRuleGitHubOrganizationParam ¶
type GitHubOrganizationRuleGitHubOrganizationParam struct { // The ID of your Github identity provider. ConnectionID param.Field[string] `json:"connection_id,required"` // The name of the organization. Name param.Field[string] `json:"name,required"` }
func (GitHubOrganizationRuleGitHubOrganizationParam) MarshalJSON ¶
func (r GitHubOrganizationRuleGitHubOrganizationParam) MarshalJSON() (data []byte, err error)
type GitHubOrganizationRuleParam ¶
type GitHubOrganizationRuleParam struct {
GitHubOrganization param.Field[GitHubOrganizationRuleGitHubOrganizationParam] `json:"github-organization,required"`
}
Matches a Github organization. Requires a Github identity provider.
func (GitHubOrganizationRuleParam) MarshalJSON ¶
func (r GitHubOrganizationRuleParam) MarshalJSON() (data []byte, err error)
type GroupRule ¶
type GroupRule struct { Group GroupRuleGroup `json:"group,required"` JSON groupRuleJSON `json:"-"` }
Matches an Access group.
func (*GroupRule) UnmarshalJSON ¶
type GroupRuleGroup ¶
type GroupRuleGroup struct { // The ID of a previously created Access group. ID string `json:"id,required"` JSON groupRuleGroupJSON `json:"-"` }
func (*GroupRuleGroup) UnmarshalJSON ¶
func (r *GroupRuleGroup) UnmarshalJSON(data []byte) (err error)
type GroupRuleGroupParam ¶
type GroupRuleGroupParam struct { // The ID of a previously created Access group. ID param.Field[string] `json:"id,required"` }
func (GroupRuleGroupParam) MarshalJSON ¶
func (r GroupRuleGroupParam) MarshalJSON() (data []byte, err error)
type GroupRuleParam ¶
type GroupRuleParam struct {
Group param.Field[GroupRuleGroupParam] `json:"group,required"`
}
Matches an Access group.
func (GroupRuleParam) MarshalJSON ¶
func (r GroupRuleParam) MarshalJSON() (data []byte, err error)
type HTTPDetails ¶
type HTTPDetails struct { // The url of the HTTP synthetic application test Host string `json:"host"` HTTPStats HTTPDetailsHTTPStats `json:"httpStats,nullable"` HTTPStatsByColo []HTTPDetailsHTTPStatsByColo `json:"httpStatsByColo"` // The interval at which the HTTP synthetic application test is set to run. Interval string `json:"interval"` Kind HTTPDetailsKind `json:"kind"` // The HTTP method to use when running the test Method string `json:"method"` // The name of the HTTP synthetic application test Name string `json:"name"` TargetPolicies []DeviceExperienceMonitor `json:"target_policies,nullable"` Targeted bool `json:"targeted"` JSON httpDetailsJSON `json:"-"` }
func (*HTTPDetails) UnmarshalJSON ¶
func (r *HTTPDetails) UnmarshalJSON(data []byte) (err error)
type HTTPDetailsHTTPStats ¶
type HTTPDetailsHTTPStats struct { AvailabilityPct HTTPDetailsHTTPStatsAvailabilityPct `json:"availabilityPct,required"` DNSResponseTimeMs TestStatOverTime `json:"dnsResponseTimeMs,required"` HTTPStatusCode []HTTPDetailsHTTPStatsHTTPStatusCode `json:"httpStatusCode,required"` ResourceFetchTimeMs TestStatOverTime `json:"resourceFetchTimeMs,required"` ServerResponseTimeMs TestStatOverTime `json:"serverResponseTimeMs,required"` // Count of unique devices that have run this test in the given time period UniqueDevicesTotal int64 `json:"uniqueDevicesTotal,required"` JSON httpDetailsHTTPStatsJSON `json:"-"` }
func (*HTTPDetailsHTTPStats) UnmarshalJSON ¶
func (r *HTTPDetailsHTTPStats) UnmarshalJSON(data []byte) (err error)
type HTTPDetailsHTTPStatsAvailabilityPct ¶
type HTTPDetailsHTTPStatsAvailabilityPct struct { Slots []HTTPDetailsHTTPStatsAvailabilityPctSlot `json:"slots,required"` // average observed in the time period Avg float64 `json:"avg,nullable"` // highest observed in the time period Max float64 `json:"max,nullable"` // lowest observed in the time period Min float64 `json:"min,nullable"` JSON httpDetailsHTTPStatsAvailabilityPctJSON `json:"-"` }
func (*HTTPDetailsHTTPStatsAvailabilityPct) UnmarshalJSON ¶
func (r *HTTPDetailsHTTPStatsAvailabilityPct) UnmarshalJSON(data []byte) (err error)
type HTTPDetailsHTTPStatsAvailabilityPctSlot ¶
type HTTPDetailsHTTPStatsAvailabilityPctSlot struct { Timestamp string `json:"timestamp,required"` Value float64 `json:"value,required"` JSON httpDetailsHTTPStatsAvailabilityPctSlotJSON `json:"-"` }
func (*HTTPDetailsHTTPStatsAvailabilityPctSlot) UnmarshalJSON ¶
func (r *HTTPDetailsHTTPStatsAvailabilityPctSlot) UnmarshalJSON(data []byte) (err error)
type HTTPDetailsHTTPStatsByColo ¶
type HTTPDetailsHTTPStatsByColo struct { AvailabilityPct HTTPDetailsHTTPStatsByColoAvailabilityPct `json:"availabilityPct,required"` Colo string `json:"colo,required"` DNSResponseTimeMs TestStatOverTime `json:"dnsResponseTimeMs,required"` HTTPStatusCode []HTTPDetailsHTTPStatsByColoHTTPStatusCode `json:"httpStatusCode,required"` ResourceFetchTimeMs TestStatOverTime `json:"resourceFetchTimeMs,required"` ServerResponseTimeMs TestStatOverTime `json:"serverResponseTimeMs,required"` // Count of unique devices that have run this test in the given time period UniqueDevicesTotal int64 `json:"uniqueDevicesTotal,required"` JSON httpDetailsHTTPStatsByColoJSON `json:"-"` }
func (*HTTPDetailsHTTPStatsByColo) UnmarshalJSON ¶
func (r *HTTPDetailsHTTPStatsByColo) UnmarshalJSON(data []byte) (err error)
type HTTPDetailsHTTPStatsByColoAvailabilityPct ¶
type HTTPDetailsHTTPStatsByColoAvailabilityPct struct { Slots []HTTPDetailsHTTPStatsByColoAvailabilityPctSlot `json:"slots,required"` // average observed in the time period Avg float64 `json:"avg,nullable"` // highest observed in the time period Max float64 `json:"max,nullable"` // lowest observed in the time period Min float64 `json:"min,nullable"` JSON httpDetailsHTTPStatsByColoAvailabilityPctJSON `json:"-"` }
func (*HTTPDetailsHTTPStatsByColoAvailabilityPct) UnmarshalJSON ¶
func (r *HTTPDetailsHTTPStatsByColoAvailabilityPct) UnmarshalJSON(data []byte) (err error)
type HTTPDetailsHTTPStatsByColoAvailabilityPctSlot ¶
type HTTPDetailsHTTPStatsByColoAvailabilityPctSlot struct { Timestamp string `json:"timestamp,required"` Value float64 `json:"value,required"` JSON httpDetailsHTTPStatsByColoAvailabilityPctSlotJSON `json:"-"` }
func (*HTTPDetailsHTTPStatsByColoAvailabilityPctSlot) UnmarshalJSON ¶
func (r *HTTPDetailsHTTPStatsByColoAvailabilityPctSlot) UnmarshalJSON(data []byte) (err error)
type HTTPDetailsHTTPStatsByColoHTTPStatusCode ¶
type HTTPDetailsHTTPStatsByColoHTTPStatusCode struct { Status200 int64 `json:"status200,required"` Status300 int64 `json:"status300,required"` Status400 int64 `json:"status400,required"` Status500 int64 `json:"status500,required"` Timestamp string `json:"timestamp,required"` JSON httpDetailsHTTPStatsByColoHTTPStatusCodeJSON `json:"-"` }
func (*HTTPDetailsHTTPStatsByColoHTTPStatusCode) UnmarshalJSON ¶
func (r *HTTPDetailsHTTPStatsByColoHTTPStatusCode) UnmarshalJSON(data []byte) (err error)
type HTTPDetailsHTTPStatsHTTPStatusCode ¶
type HTTPDetailsHTTPStatsHTTPStatusCode struct { Status200 int64 `json:"status200,required"` Status300 int64 `json:"status300,required"` Status400 int64 `json:"status400,required"` Status500 int64 `json:"status500,required"` Timestamp string `json:"timestamp,required"` JSON httpDetailsHTTPStatsHTTPStatusCodeJSON `json:"-"` }
func (*HTTPDetailsHTTPStatsHTTPStatusCode) UnmarshalJSON ¶
func (r *HTTPDetailsHTTPStatsHTTPStatusCode) UnmarshalJSON(data []byte) (err error)
type HTTPDetailsKind ¶
type HTTPDetailsKind string
const (
HTTPDetailsKindHTTP HTTPDetailsKind = "http"
)
func (HTTPDetailsKind) IsKnown ¶
func (r HTTPDetailsKind) IsKnown() bool
type HTTPDetailsPercentiles ¶
type HTTPDetailsPercentiles struct { DNSResponseTimeMs Percentiles `json:"dnsResponseTimeMs"` ResourceFetchTimeMs Percentiles `json:"resourceFetchTimeMs"` ServerResponseTimeMs Percentiles `json:"serverResponseTimeMs"` JSON httpDetailsPercentilesJSON `json:"-"` }
func (*HTTPDetailsPercentiles) UnmarshalJSON ¶
func (r *HTTPDetailsPercentiles) UnmarshalJSON(data []byte) (err error)
type IPListRule ¶
type IPListRule struct { IPList IPListRuleIPList `json:"ip_list,required"` JSON ipListRuleJSON `json:"-"` }
Matches an IP address from a list.
func (*IPListRule) UnmarshalJSON ¶
func (r *IPListRule) UnmarshalJSON(data []byte) (err error)
type IPListRuleIPList ¶
type IPListRuleIPList struct { // The ID of a previously created IP list. ID string `json:"id,required"` JSON ipListRuleIPListJSON `json:"-"` }
func (*IPListRuleIPList) UnmarshalJSON ¶
func (r *IPListRuleIPList) UnmarshalJSON(data []byte) (err error)
type IPListRuleIPListParam ¶
type IPListRuleIPListParam struct { // The ID of a previously created IP list. ID param.Field[string] `json:"id,required"` }
func (IPListRuleIPListParam) MarshalJSON ¶
func (r IPListRuleIPListParam) MarshalJSON() (data []byte, err error)
type IPListRuleParam ¶
type IPListRuleParam struct {
IPList param.Field[IPListRuleIPListParam] `json:"ip_list,required"`
}
Matches an IP address from a list.
func (IPListRuleParam) MarshalJSON ¶
func (r IPListRuleParam) MarshalJSON() (data []byte, err error)
type IPRule ¶
type IPRule struct { IP IPRuleIP `json:"ip,required"` JSON ipRuleJSON `json:"-"` }
Matches an IP address block.
func (*IPRule) UnmarshalJSON ¶
type IPRuleIP ¶
type IPRuleIP struct { // An IPv4 or IPv6 CIDR block. IP string `json:"ip,required"` JSON ipRuleIPJSON `json:"-"` }
func (*IPRuleIP) UnmarshalJSON ¶
type IPRuleIPParam ¶
type IPRuleIPParam struct { // An IPv4 or IPv6 CIDR block. IP param.Field[string] `json:"ip,required"` }
func (IPRuleIPParam) MarshalJSON ¶
func (r IPRuleIPParam) MarshalJSON() (data []byte, err error)
type IPRuleParam ¶
type IPRuleParam struct {
IP param.Field[IPRuleIPParam] `json:"ip,required"`
}
Matches an IP address block.
func (IPRuleParam) MarshalJSON ¶
func (r IPRuleParam) MarshalJSON() (data []byte, err error)
type Identity ¶
type Identity struct { AccountID string `json:"account_id"` AuthStatus string `json:"auth_status"` CommonName string `json:"common_name"` DeviceID string `json:"device_id"` DeviceSessions map[string]IdentityDeviceSession `json:"device_sessions"` DevicePosture map[string]IdentityDevicePosture `json:"devicePosture"` Email string `json:"email"` Geo UserPolicyCheckGeo `json:"geo"` Iat float64 `json:"iat"` IDP IdentityIDP `json:"idp"` IP string `json:"ip"` IsGateway bool `json:"is_gateway"` IsWARP bool `json:"is_warp"` MTLSAuth IdentityMTLSAuth `json:"mtls_auth"` ServiceTokenID string `json:"service_token_id"` ServiceTokenStatus bool `json:"service_token_status"` UserUUID string `json:"user_uuid"` Version float64 `json:"version"` JSON identityJSON `json:"-"` }
func (*Identity) UnmarshalJSON ¶
type IdentityDevicePosture ¶
type IdentityDevicePosture struct { ID string `json:"id"` Check IdentityDevicePostureCheck `json:"check"` Data interface{} `json:"data"` Description string `json:"description"` Error string `json:"error"` RuleName string `json:"rule_name"` Success bool `json:"success"` Timestamp string `json:"timestamp"` Type string `json:"type"` JSON identityDevicePostureJSON `json:"-"` }
func (*IdentityDevicePosture) UnmarshalJSON ¶
func (r *IdentityDevicePosture) UnmarshalJSON(data []byte) (err error)
type IdentityDevicePostureCheck ¶
type IdentityDevicePostureCheck struct { Exists bool `json:"exists"` Path string `json:"path"` JSON identityDevicePostureCheckJSON `json:"-"` }
func (*IdentityDevicePostureCheck) UnmarshalJSON ¶
func (r *IdentityDevicePostureCheck) UnmarshalJSON(data []byte) (err error)
type IdentityDeviceSession ¶
type IdentityDeviceSession struct { LastAuthenticated float64 `json:"last_authenticated"` JSON identityDeviceSessionJSON `json:"-"` }
func (*IdentityDeviceSession) UnmarshalJSON ¶
func (r *IdentityDeviceSession) UnmarshalJSON(data []byte) (err error)
type IdentityIDP ¶
type IdentityIDP struct { ID string `json:"id"` Type string `json:"type"` JSON identityIDPJSON `json:"-"` }
func (*IdentityIDP) UnmarshalJSON ¶
func (r *IdentityIDP) UnmarshalJSON(data []byte) (err error)
type IdentityMTLSAuth ¶
type IdentityMTLSAuth struct { AuthStatus string `json:"auth_status"` CERTIssuerDn string `json:"cert_issuer_dn"` CERTIssuerSki string `json:"cert_issuer_ski"` CERTPresented bool `json:"cert_presented"` CERTSerial string `json:"cert_serial"` JSON identityMTLSAuthJSON `json:"-"` }
func (*IdentityMTLSAuth) UnmarshalJSON ¶
func (r *IdentityMTLSAuth) UnmarshalJSON(data []byte) (err error)
type IdentityProvider ¶
type IdentityProvider struct { Config interface{} `json:"config"` // UUID ID string `json:"id"` // The name of the identity provider, shown to users on the login page. Name string `json:"name,required"` // The configuration settings for enabling a System for Cross-Domain Identity // Management (SCIM) with the identity provider. ScimConfig ScimConfig `json:"scim_config"` // The type of identity provider. To determine the value for a specific provider, // refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Type IdentityProviderType `json:"type,required"` JSON identityProviderJSON `json:"-"` // contains filtered or unexported fields }
func (IdentityProvider) AsUnion ¶
func (r IdentityProvider) AsUnion() IdentityProviderUnion
func (*IdentityProvider) UnmarshalJSON ¶
func (r *IdentityProvider) UnmarshalJSON(data []byte) (err error)
type IdentityProviderAccessCentrify ¶
type IdentityProviderAccessCentrify struct { // The configuration parameters for the identity provider. To view the required // parameters for a specific provider, refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Config IdentityProviderAccessCentrifyConfig `json:"config,required"` // The name of the identity provider, shown to users on the login page. Name string `json:"name,required"` // The type of identity provider. To determine the value for a specific provider, // refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Type IdentityProviderType `json:"type,required"` // UUID ID string `json:"id"` // The configuration settings for enabling a System for Cross-Domain Identity // Management (SCIM) with the identity provider. ScimConfig ScimConfig `json:"scim_config"` JSON identityProviderAccessCentrifyJSON `json:"-"` }
func (*IdentityProviderAccessCentrify) UnmarshalJSON ¶
func (r *IdentityProviderAccessCentrify) UnmarshalJSON(data []byte) (err error)
type IdentityProviderAccessCentrifyConfig ¶
type IdentityProviderAccessCentrifyConfig struct { // Your centrify account url CentrifyAccount string `json:"centrify_account"` // Your centrify app id CentrifyAppID string `json:"centrify_app_id"` // Custom claims Claims []string `json:"claims"` // Your OAuth Client ID ClientID string `json:"client_id"` // Your OAuth Client Secret ClientSecret string `json:"client_secret"` // The claim name for email in the id_token response. EmailClaimName string `json:"email_claim_name"` JSON identityProviderAccessCentrifyConfigJSON `json:"-"` }
The configuration parameters for the identity provider. To view the required parameters for a specific provider, refer to our [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/).
func (*IdentityProviderAccessCentrifyConfig) UnmarshalJSON ¶
func (r *IdentityProviderAccessCentrifyConfig) UnmarshalJSON(data []byte) (err error)
type IdentityProviderAccessCentrifyConfigParam ¶
type IdentityProviderAccessCentrifyConfigParam struct { // Your centrify account url CentrifyAccount param.Field[string] `json:"centrify_account"` // Your centrify app id CentrifyAppID param.Field[string] `json:"centrify_app_id"` // Custom claims Claims param.Field[[]string] `json:"claims"` // Your OAuth Client ID ClientID param.Field[string] `json:"client_id"` // Your OAuth Client Secret ClientSecret param.Field[string] `json:"client_secret"` // The claim name for email in the id_token response. EmailClaimName param.Field[string] `json:"email_claim_name"` }
The configuration parameters for the identity provider. To view the required parameters for a specific provider, refer to our [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/).
func (IdentityProviderAccessCentrifyConfigParam) MarshalJSON ¶
func (r IdentityProviderAccessCentrifyConfigParam) MarshalJSON() (data []byte, err error)
type IdentityProviderAccessCentrifyParam ¶
type IdentityProviderAccessCentrifyParam struct { // The configuration parameters for the identity provider. To view the required // parameters for a specific provider, refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Config param.Field[IdentityProviderAccessCentrifyConfigParam] `json:"config,required"` // The name of the identity provider, shown to users on the login page. Name param.Field[string] `json:"name,required"` // The type of identity provider. To determine the value for a specific provider, // refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Type param.Field[IdentityProviderType] `json:"type,required"` // The configuration settings for enabling a System for Cross-Domain Identity // Management (SCIM) with the identity provider. ScimConfig param.Field[ScimConfigParam] `json:"scim_config"` }
func (IdentityProviderAccessCentrifyParam) MarshalJSON ¶
func (r IdentityProviderAccessCentrifyParam) MarshalJSON() (data []byte, err error)
type IdentityProviderAccessFacebook ¶
type IdentityProviderAccessFacebook struct { // The configuration parameters for the identity provider. To view the required // parameters for a specific provider, refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Config GenericOAuthConfig `json:"config,required"` // The name of the identity provider, shown to users on the login page. Name string `json:"name,required"` // The type of identity provider. To determine the value for a specific provider, // refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Type IdentityProviderType `json:"type,required"` // UUID ID string `json:"id"` // The configuration settings for enabling a System for Cross-Domain Identity // Management (SCIM) with the identity provider. ScimConfig ScimConfig `json:"scim_config"` JSON identityProviderAccessFacebookJSON `json:"-"` }
func (*IdentityProviderAccessFacebook) UnmarshalJSON ¶
func (r *IdentityProviderAccessFacebook) UnmarshalJSON(data []byte) (err error)
type IdentityProviderAccessFacebookParam ¶
type IdentityProviderAccessFacebookParam struct { // The configuration parameters for the identity provider. To view the required // parameters for a specific provider, refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Config param.Field[GenericOAuthConfigParam] `json:"config,required"` // The name of the identity provider, shown to users on the login page. Name param.Field[string] `json:"name,required"` // The type of identity provider. To determine the value for a specific provider, // refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Type param.Field[IdentityProviderType] `json:"type,required"` // The configuration settings for enabling a System for Cross-Domain Identity // Management (SCIM) with the identity provider. ScimConfig param.Field[ScimConfigParam] `json:"scim_config"` }
func (IdentityProviderAccessFacebookParam) MarshalJSON ¶
func (r IdentityProviderAccessFacebookParam) MarshalJSON() (data []byte, err error)
type IdentityProviderAccessGitHub ¶
type IdentityProviderAccessGitHub struct { // The configuration parameters for the identity provider. To view the required // parameters for a specific provider, refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Config GenericOAuthConfig `json:"config,required"` // The name of the identity provider, shown to users on the login page. Name string `json:"name,required"` // The type of identity provider. To determine the value for a specific provider, // refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Type IdentityProviderType `json:"type,required"` // UUID ID string `json:"id"` // The configuration settings for enabling a System for Cross-Domain Identity // Management (SCIM) with the identity provider. ScimConfig ScimConfig `json:"scim_config"` JSON identityProviderAccessGitHubJSON `json:"-"` }
func (*IdentityProviderAccessGitHub) UnmarshalJSON ¶
func (r *IdentityProviderAccessGitHub) UnmarshalJSON(data []byte) (err error)
type IdentityProviderAccessGitHubParam ¶
type IdentityProviderAccessGitHubParam struct { // The configuration parameters for the identity provider. To view the required // parameters for a specific provider, refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Config param.Field[GenericOAuthConfigParam] `json:"config,required"` // The name of the identity provider, shown to users on the login page. Name param.Field[string] `json:"name,required"` // The type of identity provider. To determine the value for a specific provider, // refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Type param.Field[IdentityProviderType] `json:"type,required"` // The configuration settings for enabling a System for Cross-Domain Identity // Management (SCIM) with the identity provider. ScimConfig param.Field[ScimConfigParam] `json:"scim_config"` }
func (IdentityProviderAccessGitHubParam) MarshalJSON ¶
func (r IdentityProviderAccessGitHubParam) MarshalJSON() (data []byte, err error)
type IdentityProviderAccessGoogle ¶
type IdentityProviderAccessGoogle struct { // The configuration parameters for the identity provider. To view the required // parameters for a specific provider, refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Config IdentityProviderAccessGoogleConfig `json:"config,required"` // The name of the identity provider, shown to users on the login page. Name string `json:"name,required"` // The type of identity provider. To determine the value for a specific provider, // refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Type IdentityProviderType `json:"type,required"` // UUID ID string `json:"id"` // The configuration settings for enabling a System for Cross-Domain Identity // Management (SCIM) with the identity provider. ScimConfig ScimConfig `json:"scim_config"` JSON identityProviderAccessGoogleJSON `json:"-"` }
func (*IdentityProviderAccessGoogle) UnmarshalJSON ¶
func (r *IdentityProviderAccessGoogle) UnmarshalJSON(data []byte) (err error)
type IdentityProviderAccessGoogleApps ¶
type IdentityProviderAccessGoogleApps struct { // The configuration parameters for the identity provider. To view the required // parameters for a specific provider, refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Config IdentityProviderAccessGoogleAppsConfig `json:"config,required"` // The name of the identity provider, shown to users on the login page. Name string `json:"name,required"` // The type of identity provider. To determine the value for a specific provider, // refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Type IdentityProviderType `json:"type,required"` // UUID ID string `json:"id"` // The configuration settings for enabling a System for Cross-Domain Identity // Management (SCIM) with the identity provider. ScimConfig ScimConfig `json:"scim_config"` JSON identityProviderAccessGoogleAppsJSON `json:"-"` }
func (*IdentityProviderAccessGoogleApps) UnmarshalJSON ¶
func (r *IdentityProviderAccessGoogleApps) UnmarshalJSON(data []byte) (err error)
type IdentityProviderAccessGoogleAppsConfig ¶
type IdentityProviderAccessGoogleAppsConfig struct { // Your companies TLD AppsDomain string `json:"apps_domain"` // Custom claims Claims []string `json:"claims"` // Your OAuth Client ID ClientID string `json:"client_id"` // Your OAuth Client Secret ClientSecret string `json:"client_secret"` // The claim name for email in the id_token response. EmailClaimName string `json:"email_claim_name"` JSON identityProviderAccessGoogleAppsConfigJSON `json:"-"` }
The configuration parameters for the identity provider. To view the required parameters for a specific provider, refer to our [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/).
func (*IdentityProviderAccessGoogleAppsConfig) UnmarshalJSON ¶
func (r *IdentityProviderAccessGoogleAppsConfig) UnmarshalJSON(data []byte) (err error)
type IdentityProviderAccessGoogleAppsConfigParam ¶
type IdentityProviderAccessGoogleAppsConfigParam struct { // Your companies TLD AppsDomain param.Field[string] `json:"apps_domain"` // Custom claims Claims param.Field[[]string] `json:"claims"` // Your OAuth Client ID ClientID param.Field[string] `json:"client_id"` // Your OAuth Client Secret ClientSecret param.Field[string] `json:"client_secret"` // The claim name for email in the id_token response. EmailClaimName param.Field[string] `json:"email_claim_name"` }
The configuration parameters for the identity provider. To view the required parameters for a specific provider, refer to our [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/).
func (IdentityProviderAccessGoogleAppsConfigParam) MarshalJSON ¶
func (r IdentityProviderAccessGoogleAppsConfigParam) MarshalJSON() (data []byte, err error)
type IdentityProviderAccessGoogleAppsParam ¶
type IdentityProviderAccessGoogleAppsParam struct { // The configuration parameters for the identity provider. To view the required // parameters for a specific provider, refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Config param.Field[IdentityProviderAccessGoogleAppsConfigParam] `json:"config,required"` // The name of the identity provider, shown to users on the login page. Name param.Field[string] `json:"name,required"` // The type of identity provider. To determine the value for a specific provider, // refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Type param.Field[IdentityProviderType] `json:"type,required"` // The configuration settings for enabling a System for Cross-Domain Identity // Management (SCIM) with the identity provider. ScimConfig param.Field[ScimConfigParam] `json:"scim_config"` }
func (IdentityProviderAccessGoogleAppsParam) MarshalJSON ¶
func (r IdentityProviderAccessGoogleAppsParam) MarshalJSON() (data []byte, err error)
type IdentityProviderAccessGoogleConfig ¶
type IdentityProviderAccessGoogleConfig struct { // Custom claims Claims []string `json:"claims"` // Your OAuth Client ID ClientID string `json:"client_id"` // Your OAuth Client Secret ClientSecret string `json:"client_secret"` // The claim name for email in the id_token response. EmailClaimName string `json:"email_claim_name"` JSON identityProviderAccessGoogleConfigJSON `json:"-"` }
The configuration parameters for the identity provider. To view the required parameters for a specific provider, refer to our [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/).
func (*IdentityProviderAccessGoogleConfig) UnmarshalJSON ¶
func (r *IdentityProviderAccessGoogleConfig) UnmarshalJSON(data []byte) (err error)
type IdentityProviderAccessGoogleConfigParam ¶
type IdentityProviderAccessGoogleConfigParam struct { // Custom claims Claims param.Field[[]string] `json:"claims"` // Your OAuth Client ID ClientID param.Field[string] `json:"client_id"` // Your OAuth Client Secret ClientSecret param.Field[string] `json:"client_secret"` // The claim name for email in the id_token response. EmailClaimName param.Field[string] `json:"email_claim_name"` }
The configuration parameters for the identity provider. To view the required parameters for a specific provider, refer to our [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/).
func (IdentityProviderAccessGoogleConfigParam) MarshalJSON ¶
func (r IdentityProviderAccessGoogleConfigParam) MarshalJSON() (data []byte, err error)
type IdentityProviderAccessGoogleParam ¶
type IdentityProviderAccessGoogleParam struct { // The configuration parameters for the identity provider. To view the required // parameters for a specific provider, refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Config param.Field[IdentityProviderAccessGoogleConfigParam] `json:"config,required"` // The name of the identity provider, shown to users on the login page. Name param.Field[string] `json:"name,required"` // The type of identity provider. To determine the value for a specific provider, // refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Type param.Field[IdentityProviderType] `json:"type,required"` // The configuration settings for enabling a System for Cross-Domain Identity // Management (SCIM) with the identity provider. ScimConfig param.Field[ScimConfigParam] `json:"scim_config"` }
func (IdentityProviderAccessGoogleParam) MarshalJSON ¶
func (r IdentityProviderAccessGoogleParam) MarshalJSON() (data []byte, err error)
type IdentityProviderAccessLinkedin ¶
type IdentityProviderAccessLinkedin struct { // The configuration parameters for the identity provider. To view the required // parameters for a specific provider, refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Config GenericOAuthConfig `json:"config,required"` // The name of the identity provider, shown to users on the login page. Name string `json:"name,required"` // The type of identity provider. To determine the value for a specific provider, // refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Type IdentityProviderType `json:"type,required"` // UUID ID string `json:"id"` // The configuration settings for enabling a System for Cross-Domain Identity // Management (SCIM) with the identity provider. ScimConfig ScimConfig `json:"scim_config"` JSON identityProviderAccessLinkedinJSON `json:"-"` }
func (*IdentityProviderAccessLinkedin) UnmarshalJSON ¶
func (r *IdentityProviderAccessLinkedin) UnmarshalJSON(data []byte) (err error)
type IdentityProviderAccessLinkedinParam ¶
type IdentityProviderAccessLinkedinParam struct { // The configuration parameters for the identity provider. To view the required // parameters for a specific provider, refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Config param.Field[GenericOAuthConfigParam] `json:"config,required"` // The name of the identity provider, shown to users on the login page. Name param.Field[string] `json:"name,required"` // The type of identity provider. To determine the value for a specific provider, // refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Type param.Field[IdentityProviderType] `json:"type,required"` // The configuration settings for enabling a System for Cross-Domain Identity // Management (SCIM) with the identity provider. ScimConfig param.Field[ScimConfigParam] `json:"scim_config"` }
func (IdentityProviderAccessLinkedinParam) MarshalJSON ¶
func (r IdentityProviderAccessLinkedinParam) MarshalJSON() (data []byte, err error)
type IdentityProviderAccessOIDC ¶
type IdentityProviderAccessOIDC struct { // The configuration parameters for the identity provider. To view the required // parameters for a specific provider, refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Config IdentityProviderAccessOIDCConfig `json:"config,required"` // The name of the identity provider, shown to users on the login page. Name string `json:"name,required"` // The type of identity provider. To determine the value for a specific provider, // refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Type IdentityProviderType `json:"type,required"` // UUID ID string `json:"id"` // The configuration settings for enabling a System for Cross-Domain Identity // Management (SCIM) with the identity provider. ScimConfig ScimConfig `json:"scim_config"` JSON identityProviderAccessOIDCJSON `json:"-"` }
func (*IdentityProviderAccessOIDC) UnmarshalJSON ¶
func (r *IdentityProviderAccessOIDC) UnmarshalJSON(data []byte) (err error)
type IdentityProviderAccessOIDCConfig ¶
type IdentityProviderAccessOIDCConfig struct { // The authorization_endpoint URL of your IdP AuthURL string `json:"auth_url"` // The jwks_uri endpoint of your IdP to allow the IdP keys to sign the tokens CERTsURL string `json:"certs_url"` // Custom claims Claims []string `json:"claims"` // Your OAuth Client ID ClientID string `json:"client_id"` // Your OAuth Client Secret ClientSecret string `json:"client_secret"` // The claim name for email in the id_token response. EmailClaimName string `json:"email_claim_name"` // OAuth scopes Scopes []string `json:"scopes"` // The token_endpoint URL of your IdP TokenURL string `json:"token_url"` JSON identityProviderAccessOIDCConfigJSON `json:"-"` }
The configuration parameters for the identity provider. To view the required parameters for a specific provider, refer to our [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/).
func (*IdentityProviderAccessOIDCConfig) UnmarshalJSON ¶
func (r *IdentityProviderAccessOIDCConfig) UnmarshalJSON(data []byte) (err error)
type IdentityProviderAccessOIDCConfigParam ¶
type IdentityProviderAccessOIDCConfigParam struct { // The authorization_endpoint URL of your IdP AuthURL param.Field[string] `json:"auth_url"` // The jwks_uri endpoint of your IdP to allow the IdP keys to sign the tokens CERTsURL param.Field[string] `json:"certs_url"` // Custom claims Claims param.Field[[]string] `json:"claims"` // Your OAuth Client ID ClientID param.Field[string] `json:"client_id"` // Your OAuth Client Secret ClientSecret param.Field[string] `json:"client_secret"` // The claim name for email in the id_token response. EmailClaimName param.Field[string] `json:"email_claim_name"` // OAuth scopes Scopes param.Field[[]string] `json:"scopes"` // The token_endpoint URL of your IdP TokenURL param.Field[string] `json:"token_url"` }
The configuration parameters for the identity provider. To view the required parameters for a specific provider, refer to our [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/).
func (IdentityProviderAccessOIDCConfigParam) MarshalJSON ¶
func (r IdentityProviderAccessOIDCConfigParam) MarshalJSON() (data []byte, err error)
type IdentityProviderAccessOIDCParam ¶
type IdentityProviderAccessOIDCParam struct { // The configuration parameters for the identity provider. To view the required // parameters for a specific provider, refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Config param.Field[IdentityProviderAccessOIDCConfigParam] `json:"config,required"` // The name of the identity provider, shown to users on the login page. Name param.Field[string] `json:"name,required"` // The type of identity provider. To determine the value for a specific provider, // refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Type param.Field[IdentityProviderType] `json:"type,required"` // The configuration settings for enabling a System for Cross-Domain Identity // Management (SCIM) with the identity provider. ScimConfig param.Field[ScimConfigParam] `json:"scim_config"` }
func (IdentityProviderAccessOIDCParam) MarshalJSON ¶
func (r IdentityProviderAccessOIDCParam) MarshalJSON() (data []byte, err error)
type IdentityProviderAccessOkta ¶
type IdentityProviderAccessOkta struct { // The configuration parameters for the identity provider. To view the required // parameters for a specific provider, refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Config IdentityProviderAccessOktaConfig `json:"config,required"` // The name of the identity provider, shown to users on the login page. Name string `json:"name,required"` // The type of identity provider. To determine the value for a specific provider, // refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Type IdentityProviderType `json:"type,required"` // UUID ID string `json:"id"` // The configuration settings for enabling a System for Cross-Domain Identity // Management (SCIM) with the identity provider. ScimConfig ScimConfig `json:"scim_config"` JSON identityProviderAccessOktaJSON `json:"-"` }
func (*IdentityProviderAccessOkta) UnmarshalJSON ¶
func (r *IdentityProviderAccessOkta) UnmarshalJSON(data []byte) (err error)
type IdentityProviderAccessOktaConfig ¶
type IdentityProviderAccessOktaConfig struct { // Your okta authorization server id AuthorizationServerID string `json:"authorization_server_id"` // Custom claims Claims []string `json:"claims"` // Your OAuth Client ID ClientID string `json:"client_id"` // Your OAuth Client Secret ClientSecret string `json:"client_secret"` // The claim name for email in the id_token response. EmailClaimName string `json:"email_claim_name"` // Your okta account url OktaAccount string `json:"okta_account"` JSON identityProviderAccessOktaConfigJSON `json:"-"` }
The configuration parameters for the identity provider. To view the required parameters for a specific provider, refer to our [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/).
func (*IdentityProviderAccessOktaConfig) UnmarshalJSON ¶
func (r *IdentityProviderAccessOktaConfig) UnmarshalJSON(data []byte) (err error)
type IdentityProviderAccessOktaConfigParam ¶
type IdentityProviderAccessOktaConfigParam struct { // Your okta authorization server id AuthorizationServerID param.Field[string] `json:"authorization_server_id"` // Custom claims Claims param.Field[[]string] `json:"claims"` // Your OAuth Client ID ClientID param.Field[string] `json:"client_id"` // Your OAuth Client Secret ClientSecret param.Field[string] `json:"client_secret"` // The claim name for email in the id_token response. EmailClaimName param.Field[string] `json:"email_claim_name"` // Your okta account url OktaAccount param.Field[string] `json:"okta_account"` }
The configuration parameters for the identity provider. To view the required parameters for a specific provider, refer to our [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/).
func (IdentityProviderAccessOktaConfigParam) MarshalJSON ¶
func (r IdentityProviderAccessOktaConfigParam) MarshalJSON() (data []byte, err error)
type IdentityProviderAccessOktaParam ¶
type IdentityProviderAccessOktaParam struct { // The configuration parameters for the identity provider. To view the required // parameters for a specific provider, refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Config param.Field[IdentityProviderAccessOktaConfigParam] `json:"config,required"` // The name of the identity provider, shown to users on the login page. Name param.Field[string] `json:"name,required"` // The type of identity provider. To determine the value for a specific provider, // refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Type param.Field[IdentityProviderType] `json:"type,required"` // The configuration settings for enabling a System for Cross-Domain Identity // Management (SCIM) with the identity provider. ScimConfig param.Field[ScimConfigParam] `json:"scim_config"` }
func (IdentityProviderAccessOktaParam) MarshalJSON ¶
func (r IdentityProviderAccessOktaParam) MarshalJSON() (data []byte, err error)
type IdentityProviderAccessOnelogin ¶
type IdentityProviderAccessOnelogin struct { // The configuration parameters for the identity provider. To view the required // parameters for a specific provider, refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Config IdentityProviderAccessOneloginConfig `json:"config,required"` // The name of the identity provider, shown to users on the login page. Name string `json:"name,required"` // The type of identity provider. To determine the value for a specific provider, // refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Type IdentityProviderType `json:"type,required"` // UUID ID string `json:"id"` // The configuration settings for enabling a System for Cross-Domain Identity // Management (SCIM) with the identity provider. ScimConfig ScimConfig `json:"scim_config"` JSON identityProviderAccessOneloginJSON `json:"-"` }
func (*IdentityProviderAccessOnelogin) UnmarshalJSON ¶
func (r *IdentityProviderAccessOnelogin) UnmarshalJSON(data []byte) (err error)
type IdentityProviderAccessOneloginConfig ¶
type IdentityProviderAccessOneloginConfig struct { // Custom claims Claims []string `json:"claims"` // Your OAuth Client ID ClientID string `json:"client_id"` // Your OAuth Client Secret ClientSecret string `json:"client_secret"` // The claim name for email in the id_token response. EmailClaimName string `json:"email_claim_name"` // Your OneLogin account url OneloginAccount string `json:"onelogin_account"` JSON identityProviderAccessOneloginConfigJSON `json:"-"` }
The configuration parameters for the identity provider. To view the required parameters for a specific provider, refer to our [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/).
func (*IdentityProviderAccessOneloginConfig) UnmarshalJSON ¶
func (r *IdentityProviderAccessOneloginConfig) UnmarshalJSON(data []byte) (err error)
type IdentityProviderAccessOneloginConfigParam ¶
type IdentityProviderAccessOneloginConfigParam struct { // Custom claims Claims param.Field[[]string] `json:"claims"` // Your OAuth Client ID ClientID param.Field[string] `json:"client_id"` // Your OAuth Client Secret ClientSecret param.Field[string] `json:"client_secret"` // The claim name for email in the id_token response. EmailClaimName param.Field[string] `json:"email_claim_name"` // Your OneLogin account url OneloginAccount param.Field[string] `json:"onelogin_account"` }
The configuration parameters for the identity provider. To view the required parameters for a specific provider, refer to our [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/).
func (IdentityProviderAccessOneloginConfigParam) MarshalJSON ¶
func (r IdentityProviderAccessOneloginConfigParam) MarshalJSON() (data []byte, err error)
type IdentityProviderAccessOneloginParam ¶
type IdentityProviderAccessOneloginParam struct { // The configuration parameters for the identity provider. To view the required // parameters for a specific provider, refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Config param.Field[IdentityProviderAccessOneloginConfigParam] `json:"config,required"` // The name of the identity provider, shown to users on the login page. Name param.Field[string] `json:"name,required"` // The type of identity provider. To determine the value for a specific provider, // refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Type param.Field[IdentityProviderType] `json:"type,required"` // The configuration settings for enabling a System for Cross-Domain Identity // Management (SCIM) with the identity provider. ScimConfig param.Field[ScimConfigParam] `json:"scim_config"` }
func (IdentityProviderAccessOneloginParam) MarshalJSON ¶
func (r IdentityProviderAccessOneloginParam) MarshalJSON() (data []byte, err error)
type IdentityProviderAccessOnetimepin ¶
type IdentityProviderAccessOnetimepin struct { // The configuration parameters for the identity provider. To view the required // parameters for a specific provider, refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Config interface{} `json:"config,required"` // The name of the identity provider, shown to users on the login page. Name string `json:"name,required"` // The type of identity provider. To determine the value for a specific provider, // refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Type IdentityProviderType `json:"type,required"` // UUID ID string `json:"id"` // The configuration settings for enabling a System for Cross-Domain Identity // Management (SCIM) with the identity provider. ScimConfig ScimConfig `json:"scim_config"` JSON identityProviderAccessOnetimepinJSON `json:"-"` }
func (*IdentityProviderAccessOnetimepin) UnmarshalJSON ¶
func (r *IdentityProviderAccessOnetimepin) UnmarshalJSON(data []byte) (err error)
type IdentityProviderAccessOnetimepinParam ¶
type IdentityProviderAccessOnetimepinParam struct { // The configuration parameters for the identity provider. To view the required // parameters for a specific provider, refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Config param.Field[interface{}] `json:"config,required"` // The name of the identity provider, shown to users on the login page. Name param.Field[string] `json:"name,required"` // The type of identity provider. To determine the value for a specific provider, // refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Type param.Field[IdentityProviderType] `json:"type,required"` // The configuration settings for enabling a System for Cross-Domain Identity // Management (SCIM) with the identity provider. ScimConfig param.Field[ScimConfigParam] `json:"scim_config"` }
func (IdentityProviderAccessOnetimepinParam) MarshalJSON ¶
func (r IdentityProviderAccessOnetimepinParam) MarshalJSON() (data []byte, err error)
type IdentityProviderAccessPingone ¶
type IdentityProviderAccessPingone struct { // The configuration parameters for the identity provider. To view the required // parameters for a specific provider, refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Config IdentityProviderAccessPingoneConfig `json:"config,required"` // The name of the identity provider, shown to users on the login page. Name string `json:"name,required"` // The type of identity provider. To determine the value for a specific provider, // refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Type IdentityProviderType `json:"type,required"` // UUID ID string `json:"id"` // The configuration settings for enabling a System for Cross-Domain Identity // Management (SCIM) with the identity provider. ScimConfig ScimConfig `json:"scim_config"` JSON identityProviderAccessPingoneJSON `json:"-"` }
func (*IdentityProviderAccessPingone) UnmarshalJSON ¶
func (r *IdentityProviderAccessPingone) UnmarshalJSON(data []byte) (err error)
type IdentityProviderAccessPingoneConfig ¶
type IdentityProviderAccessPingoneConfig struct { // Custom claims Claims []string `json:"claims"` // Your OAuth Client ID ClientID string `json:"client_id"` // Your OAuth Client Secret ClientSecret string `json:"client_secret"` // The claim name for email in the id_token response. EmailClaimName string `json:"email_claim_name"` // Your PingOne environment identifier PingEnvID string `json:"ping_env_id"` JSON identityProviderAccessPingoneConfigJSON `json:"-"` }
The configuration parameters for the identity provider. To view the required parameters for a specific provider, refer to our [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/).
func (*IdentityProviderAccessPingoneConfig) UnmarshalJSON ¶
func (r *IdentityProviderAccessPingoneConfig) UnmarshalJSON(data []byte) (err error)
type IdentityProviderAccessPingoneConfigParam ¶
type IdentityProviderAccessPingoneConfigParam struct { // Custom claims Claims param.Field[[]string] `json:"claims"` // Your OAuth Client ID ClientID param.Field[string] `json:"client_id"` // Your OAuth Client Secret ClientSecret param.Field[string] `json:"client_secret"` // The claim name for email in the id_token response. EmailClaimName param.Field[string] `json:"email_claim_name"` // Your PingOne environment identifier PingEnvID param.Field[string] `json:"ping_env_id"` }
The configuration parameters for the identity provider. To view the required parameters for a specific provider, refer to our [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/).
func (IdentityProviderAccessPingoneConfigParam) MarshalJSON ¶
func (r IdentityProviderAccessPingoneConfigParam) MarshalJSON() (data []byte, err error)
type IdentityProviderAccessPingoneParam ¶
type IdentityProviderAccessPingoneParam struct { // The configuration parameters for the identity provider. To view the required // parameters for a specific provider, refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Config param.Field[IdentityProviderAccessPingoneConfigParam] `json:"config,required"` // The name of the identity provider, shown to users on the login page. Name param.Field[string] `json:"name,required"` // The type of identity provider. To determine the value for a specific provider, // refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Type param.Field[IdentityProviderType] `json:"type,required"` // The configuration settings for enabling a System for Cross-Domain Identity // Management (SCIM) with the identity provider. ScimConfig param.Field[ScimConfigParam] `json:"scim_config"` }
func (IdentityProviderAccessPingoneParam) MarshalJSON ¶
func (r IdentityProviderAccessPingoneParam) MarshalJSON() (data []byte, err error)
type IdentityProviderAccessSAML ¶
type IdentityProviderAccessSAML struct { // The configuration parameters for the identity provider. To view the required // parameters for a specific provider, refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Config IdentityProviderAccessSAMLConfig `json:"config,required"` // The name of the identity provider, shown to users on the login page. Name string `json:"name,required"` // The type of identity provider. To determine the value for a specific provider, // refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Type IdentityProviderType `json:"type,required"` // UUID ID string `json:"id"` // The configuration settings for enabling a System for Cross-Domain Identity // Management (SCIM) with the identity provider. ScimConfig ScimConfig `json:"scim_config"` JSON identityProviderAccessSAMLJSON `json:"-"` }
func (*IdentityProviderAccessSAML) UnmarshalJSON ¶
func (r *IdentityProviderAccessSAML) UnmarshalJSON(data []byte) (err error)
type IdentityProviderAccessSAMLConfig ¶
type IdentityProviderAccessSAMLConfig struct { // A list of SAML attribute names that will be added to your signed JWT token and // can be used in SAML policy rules. Attributes []string `json:"attributes"` // The attribute name for email in the SAML response. EmailAttributeName string `json:"email_attribute_name"` // Add a list of attribute names that will be returned in the response header from // the Access callback. HeaderAttributes []IdentityProviderAccessSAMLConfigHeaderAttribute `json:"header_attributes"` // X509 certificate to verify the signature in the SAML authentication response IDPPublicCERTs []string `json:"idp_public_certs"` // IdP Entity ID or Issuer URL IssuerURL string `json:"issuer_url"` // Sign the SAML authentication request with Access credentials. To verify the // signature, use the public key from the Access certs endpoints. SignRequest bool `json:"sign_request"` // URL to send the SAML authentication requests to SSOTargetURL string `json:"sso_target_url"` JSON identityProviderAccessSAMLConfigJSON `json:"-"` }
The configuration parameters for the identity provider. To view the required parameters for a specific provider, refer to our [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/).
func (*IdentityProviderAccessSAMLConfig) UnmarshalJSON ¶
func (r *IdentityProviderAccessSAMLConfig) UnmarshalJSON(data []byte) (err error)
type IdentityProviderAccessSAMLConfigHeaderAttribute ¶
type IdentityProviderAccessSAMLConfigHeaderAttribute struct { // attribute name from the IDP AttributeName string `json:"attribute_name"` // header that will be added on the request to the origin HeaderName string `json:"header_name"` JSON identityProviderAccessSAMLConfigHeaderAttributeJSON `json:"-"` }
func (*IdentityProviderAccessSAMLConfigHeaderAttribute) UnmarshalJSON ¶
func (r *IdentityProviderAccessSAMLConfigHeaderAttribute) UnmarshalJSON(data []byte) (err error)
type IdentityProviderAccessSAMLConfigHeaderAttributeParam ¶
type IdentityProviderAccessSAMLConfigHeaderAttributeParam struct { // attribute name from the IDP AttributeName param.Field[string] `json:"attribute_name"` // header that will be added on the request to the origin HeaderName param.Field[string] `json:"header_name"` }
func (IdentityProviderAccessSAMLConfigHeaderAttributeParam) MarshalJSON ¶
func (r IdentityProviderAccessSAMLConfigHeaderAttributeParam) MarshalJSON() (data []byte, err error)
type IdentityProviderAccessSAMLConfigParam ¶
type IdentityProviderAccessSAMLConfigParam struct { // A list of SAML attribute names that will be added to your signed JWT token and // can be used in SAML policy rules. Attributes param.Field[[]string] `json:"attributes"` // The attribute name for email in the SAML response. EmailAttributeName param.Field[string] `json:"email_attribute_name"` // Add a list of attribute names that will be returned in the response header from // the Access callback. HeaderAttributes param.Field[[]IdentityProviderAccessSAMLConfigHeaderAttributeParam] `json:"header_attributes"` // X509 certificate to verify the signature in the SAML authentication response IDPPublicCERTs param.Field[[]string] `json:"idp_public_certs"` // IdP Entity ID or Issuer URL IssuerURL param.Field[string] `json:"issuer_url"` // Sign the SAML authentication request with Access credentials. To verify the // signature, use the public key from the Access certs endpoints. SignRequest param.Field[bool] `json:"sign_request"` // URL to send the SAML authentication requests to SSOTargetURL param.Field[string] `json:"sso_target_url"` }
The configuration parameters for the identity provider. To view the required parameters for a specific provider, refer to our [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/).
func (IdentityProviderAccessSAMLConfigParam) MarshalJSON ¶
func (r IdentityProviderAccessSAMLConfigParam) MarshalJSON() (data []byte, err error)
type IdentityProviderAccessSAMLParam ¶
type IdentityProviderAccessSAMLParam struct { // The configuration parameters for the identity provider. To view the required // parameters for a specific provider, refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Config param.Field[IdentityProviderAccessSAMLConfigParam] `json:"config,required"` // The name of the identity provider, shown to users on the login page. Name param.Field[string] `json:"name,required"` // The type of identity provider. To determine the value for a specific provider, // refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Type param.Field[IdentityProviderType] `json:"type,required"` // The configuration settings for enabling a System for Cross-Domain Identity // Management (SCIM) with the identity provider. ScimConfig param.Field[ScimConfigParam] `json:"scim_config"` }
func (IdentityProviderAccessSAMLParam) MarshalJSON ¶
func (r IdentityProviderAccessSAMLParam) MarshalJSON() (data []byte, err error)
type IdentityProviderAccessYandex ¶
type IdentityProviderAccessYandex struct { // The configuration parameters for the identity provider. To view the required // parameters for a specific provider, refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Config GenericOAuthConfig `json:"config,required"` // The name of the identity provider, shown to users on the login page. Name string `json:"name,required"` // The type of identity provider. To determine the value for a specific provider, // refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Type IdentityProviderType `json:"type,required"` // UUID ID string `json:"id"` // The configuration settings for enabling a System for Cross-Domain Identity // Management (SCIM) with the identity provider. ScimConfig ScimConfig `json:"scim_config"` JSON identityProviderAccessYandexJSON `json:"-"` }
func (*IdentityProviderAccessYandex) UnmarshalJSON ¶
func (r *IdentityProviderAccessYandex) UnmarshalJSON(data []byte) (err error)
type IdentityProviderAccessYandexParam ¶
type IdentityProviderAccessYandexParam struct { // The configuration parameters for the identity provider. To view the required // parameters for a specific provider, refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Config param.Field[GenericOAuthConfigParam] `json:"config,required"` // The name of the identity provider, shown to users on the login page. Name param.Field[string] `json:"name,required"` // The type of identity provider. To determine the value for a specific provider, // refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Type param.Field[IdentityProviderType] `json:"type,required"` // The configuration settings for enabling a System for Cross-Domain Identity // Management (SCIM) with the identity provider. ScimConfig param.Field[ScimConfigParam] `json:"scim_config"` }
func (IdentityProviderAccessYandexParam) MarshalJSON ¶
func (r IdentityProviderAccessYandexParam) MarshalJSON() (data []byte, err error)
type IdentityProviderDeleteParams ¶
type IdentityProviderDeleteParams struct { // The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. AccountID param.Field[string] `path:"account_id"` // The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. ZoneID param.Field[string] `path:"zone_id"` }
type IdentityProviderDeleteResponse ¶
type IdentityProviderDeleteResponse struct { // UUID ID string `json:"id"` JSON identityProviderDeleteResponseJSON `json:"-"` }
func (*IdentityProviderDeleteResponse) UnmarshalJSON ¶
func (r *IdentityProviderDeleteResponse) UnmarshalJSON(data []byte) (err error)
type IdentityProviderDeleteResponseEnvelope ¶
type IdentityProviderDeleteResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result IdentityProviderDeleteResponse `json:"result,required"` // Whether the API call was successful Success IdentityProviderDeleteResponseEnvelopeSuccess `json:"success,required"` JSON identityProviderDeleteResponseEnvelopeJSON `json:"-"` }
func (*IdentityProviderDeleteResponseEnvelope) UnmarshalJSON ¶
func (r *IdentityProviderDeleteResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type IdentityProviderDeleteResponseEnvelopeSuccess ¶
type IdentityProviderDeleteResponseEnvelopeSuccess bool
Whether the API call was successful
const (
IdentityProviderDeleteResponseEnvelopeSuccessTrue IdentityProviderDeleteResponseEnvelopeSuccess = true
)
func (IdentityProviderDeleteResponseEnvelopeSuccess) IsKnown ¶
func (r IdentityProviderDeleteResponseEnvelopeSuccess) IsKnown() bool
type IdentityProviderGetResponseEnvelope ¶
type IdentityProviderGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result IdentityProvider `json:"result,required"` // Whether the API call was successful Success IdentityProviderGetResponseEnvelopeSuccess `json:"success,required"` JSON identityProviderGetResponseEnvelopeJSON `json:"-"` }
func (*IdentityProviderGetResponseEnvelope) UnmarshalJSON ¶
func (r *IdentityProviderGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type IdentityProviderGetResponseEnvelopeSuccess ¶
type IdentityProviderGetResponseEnvelopeSuccess bool
Whether the API call was successful
const (
IdentityProviderGetResponseEnvelopeSuccessTrue IdentityProviderGetResponseEnvelopeSuccess = true
)
func (IdentityProviderGetResponseEnvelopeSuccess) IsKnown ¶
func (r IdentityProviderGetResponseEnvelopeSuccess) IsKnown() bool
type IdentityProviderListResponse ¶
type IdentityProviderListResponse struct { Config interface{} `json:"config"` // UUID ID string `json:"id"` // The name of the identity provider, shown to users on the login page. Name string `json:"name,required"` // The configuration settings for enabling a System for Cross-Domain Identity // Management (SCIM) with the identity provider. ScimConfig ScimConfig `json:"scim_config"` // The type of identity provider. To determine the value for a specific provider, // refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Type IdentityProviderType `json:"type,required"` JSON identityProviderListResponseJSON `json:"-"` // contains filtered or unexported fields }
func (IdentityProviderListResponse) AsUnion ¶
func (r IdentityProviderListResponse) AsUnion() IdentityProviderListResponseUnion
func (*IdentityProviderListResponse) UnmarshalJSON ¶
func (r *IdentityProviderListResponse) UnmarshalJSON(data []byte) (err error)
type IdentityProviderListResponseAccessCentrify ¶
type IdentityProviderListResponseAccessCentrify struct { // The configuration parameters for the identity provider. To view the required // parameters for a specific provider, refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Config IdentityProviderListResponseAccessCentrifyConfig `json:"config,required"` // The name of the identity provider, shown to users on the login page. Name string `json:"name,required"` // The type of identity provider. To determine the value for a specific provider, // refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Type IdentityProviderType `json:"type,required"` // UUID ID string `json:"id"` // The configuration settings for enabling a System for Cross-Domain Identity // Management (SCIM) with the identity provider. ScimConfig ScimConfig `json:"scim_config"` JSON identityProviderListResponseAccessCentrifyJSON `json:"-"` }
func (*IdentityProviderListResponseAccessCentrify) UnmarshalJSON ¶
func (r *IdentityProviderListResponseAccessCentrify) UnmarshalJSON(data []byte) (err error)
type IdentityProviderListResponseAccessCentrifyConfig ¶
type IdentityProviderListResponseAccessCentrifyConfig struct { // Your centrify account url CentrifyAccount string `json:"centrify_account"` // Your centrify app id CentrifyAppID string `json:"centrify_app_id"` // Custom claims Claims []string `json:"claims"` // Your OAuth Client ID ClientID string `json:"client_id"` // Your OAuth Client Secret ClientSecret string `json:"client_secret"` // The claim name for email in the id_token response. EmailClaimName string `json:"email_claim_name"` JSON identityProviderListResponseAccessCentrifyConfigJSON `json:"-"` }
The configuration parameters for the identity provider. To view the required parameters for a specific provider, refer to our [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/).
func (*IdentityProviderListResponseAccessCentrifyConfig) UnmarshalJSON ¶
func (r *IdentityProviderListResponseAccessCentrifyConfig) UnmarshalJSON(data []byte) (err error)
type IdentityProviderListResponseAccessFacebook ¶
type IdentityProviderListResponseAccessFacebook struct { // The configuration parameters for the identity provider. To view the required // parameters for a specific provider, refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Config GenericOAuthConfig `json:"config,required"` // The name of the identity provider, shown to users on the login page. Name string `json:"name,required"` // The type of identity provider. To determine the value for a specific provider, // refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Type IdentityProviderType `json:"type,required"` // UUID ID string `json:"id"` // The configuration settings for enabling a System for Cross-Domain Identity // Management (SCIM) with the identity provider. ScimConfig ScimConfig `json:"scim_config"` JSON identityProviderListResponseAccessFacebookJSON `json:"-"` }
func (*IdentityProviderListResponseAccessFacebook) UnmarshalJSON ¶
func (r *IdentityProviderListResponseAccessFacebook) UnmarshalJSON(data []byte) (err error)
type IdentityProviderListResponseAccessGitHub ¶
type IdentityProviderListResponseAccessGitHub struct { // The configuration parameters for the identity provider. To view the required // parameters for a specific provider, refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Config GenericOAuthConfig `json:"config,required"` // The name of the identity provider, shown to users on the login page. Name string `json:"name,required"` // The type of identity provider. To determine the value for a specific provider, // refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Type IdentityProviderType `json:"type,required"` // UUID ID string `json:"id"` // The configuration settings for enabling a System for Cross-Domain Identity // Management (SCIM) with the identity provider. ScimConfig ScimConfig `json:"scim_config"` JSON identityProviderListResponseAccessGitHubJSON `json:"-"` }
func (*IdentityProviderListResponseAccessGitHub) UnmarshalJSON ¶
func (r *IdentityProviderListResponseAccessGitHub) UnmarshalJSON(data []byte) (err error)
type IdentityProviderListResponseAccessGoogle ¶
type IdentityProviderListResponseAccessGoogle struct { // The configuration parameters for the identity provider. To view the required // parameters for a specific provider, refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Config IdentityProviderListResponseAccessGoogleConfig `json:"config,required"` // The name of the identity provider, shown to users on the login page. Name string `json:"name,required"` // The type of identity provider. To determine the value for a specific provider, // refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Type IdentityProviderType `json:"type,required"` // UUID ID string `json:"id"` // The configuration settings for enabling a System for Cross-Domain Identity // Management (SCIM) with the identity provider. ScimConfig ScimConfig `json:"scim_config"` JSON identityProviderListResponseAccessGoogleJSON `json:"-"` }
func (*IdentityProviderListResponseAccessGoogle) UnmarshalJSON ¶
func (r *IdentityProviderListResponseAccessGoogle) UnmarshalJSON(data []byte) (err error)
type IdentityProviderListResponseAccessGoogleApps ¶
type IdentityProviderListResponseAccessGoogleApps struct { // The configuration parameters for the identity provider. To view the required // parameters for a specific provider, refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Config IdentityProviderListResponseAccessGoogleAppsConfig `json:"config,required"` // The name of the identity provider, shown to users on the login page. Name string `json:"name,required"` // The type of identity provider. To determine the value for a specific provider, // refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Type IdentityProviderType `json:"type,required"` // UUID ID string `json:"id"` // The configuration settings for enabling a System for Cross-Domain Identity // Management (SCIM) with the identity provider. ScimConfig ScimConfig `json:"scim_config"` JSON identityProviderListResponseAccessGoogleAppsJSON `json:"-"` }
func (*IdentityProviderListResponseAccessGoogleApps) UnmarshalJSON ¶
func (r *IdentityProviderListResponseAccessGoogleApps) UnmarshalJSON(data []byte) (err error)
type IdentityProviderListResponseAccessGoogleAppsConfig ¶
type IdentityProviderListResponseAccessGoogleAppsConfig struct { // Your companies TLD AppsDomain string `json:"apps_domain"` // Custom claims Claims []string `json:"claims"` // Your OAuth Client ID ClientID string `json:"client_id"` // Your OAuth Client Secret ClientSecret string `json:"client_secret"` // The claim name for email in the id_token response. EmailClaimName string `json:"email_claim_name"` JSON identityProviderListResponseAccessGoogleAppsConfigJSON `json:"-"` }
The configuration parameters for the identity provider. To view the required parameters for a specific provider, refer to our [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/).
func (*IdentityProviderListResponseAccessGoogleAppsConfig) UnmarshalJSON ¶
func (r *IdentityProviderListResponseAccessGoogleAppsConfig) UnmarshalJSON(data []byte) (err error)
type IdentityProviderListResponseAccessGoogleConfig ¶
type IdentityProviderListResponseAccessGoogleConfig struct { // Custom claims Claims []string `json:"claims"` // Your OAuth Client ID ClientID string `json:"client_id"` // Your OAuth Client Secret ClientSecret string `json:"client_secret"` // The claim name for email in the id_token response. EmailClaimName string `json:"email_claim_name"` JSON identityProviderListResponseAccessGoogleConfigJSON `json:"-"` }
The configuration parameters for the identity provider. To view the required parameters for a specific provider, refer to our [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/).
func (*IdentityProviderListResponseAccessGoogleConfig) UnmarshalJSON ¶
func (r *IdentityProviderListResponseAccessGoogleConfig) UnmarshalJSON(data []byte) (err error)
type IdentityProviderListResponseAccessLinkedin ¶
type IdentityProviderListResponseAccessLinkedin struct { // The configuration parameters for the identity provider. To view the required // parameters for a specific provider, refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Config GenericOAuthConfig `json:"config,required"` // The name of the identity provider, shown to users on the login page. Name string `json:"name,required"` // The type of identity provider. To determine the value for a specific provider, // refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Type IdentityProviderType `json:"type,required"` // UUID ID string `json:"id"` // The configuration settings for enabling a System for Cross-Domain Identity // Management (SCIM) with the identity provider. ScimConfig ScimConfig `json:"scim_config"` JSON identityProviderListResponseAccessLinkedinJSON `json:"-"` }
func (*IdentityProviderListResponseAccessLinkedin) UnmarshalJSON ¶
func (r *IdentityProviderListResponseAccessLinkedin) UnmarshalJSON(data []byte) (err error)
type IdentityProviderListResponseAccessOIDC ¶
type IdentityProviderListResponseAccessOIDC struct { // The configuration parameters for the identity provider. To view the required // parameters for a specific provider, refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Config IdentityProviderListResponseAccessOIDCConfig `json:"config,required"` // The name of the identity provider, shown to users on the login page. Name string `json:"name,required"` // The type of identity provider. To determine the value for a specific provider, // refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Type IdentityProviderType `json:"type,required"` // UUID ID string `json:"id"` // The configuration settings for enabling a System for Cross-Domain Identity // Management (SCIM) with the identity provider. ScimConfig ScimConfig `json:"scim_config"` JSON identityProviderListResponseAccessOIDCJSON `json:"-"` }
func (*IdentityProviderListResponseAccessOIDC) UnmarshalJSON ¶
func (r *IdentityProviderListResponseAccessOIDC) UnmarshalJSON(data []byte) (err error)
type IdentityProviderListResponseAccessOIDCConfig ¶
type IdentityProviderListResponseAccessOIDCConfig struct { // The authorization_endpoint URL of your IdP AuthURL string `json:"auth_url"` // The jwks_uri endpoint of your IdP to allow the IdP keys to sign the tokens CERTsURL string `json:"certs_url"` // Custom claims Claims []string `json:"claims"` // Your OAuth Client ID ClientID string `json:"client_id"` // Your OAuth Client Secret ClientSecret string `json:"client_secret"` // The claim name for email in the id_token response. EmailClaimName string `json:"email_claim_name"` // OAuth scopes Scopes []string `json:"scopes"` // The token_endpoint URL of your IdP TokenURL string `json:"token_url"` JSON identityProviderListResponseAccessOIDCConfigJSON `json:"-"` }
The configuration parameters for the identity provider. To view the required parameters for a specific provider, refer to our [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/).
func (*IdentityProviderListResponseAccessOIDCConfig) UnmarshalJSON ¶
func (r *IdentityProviderListResponseAccessOIDCConfig) UnmarshalJSON(data []byte) (err error)
type IdentityProviderListResponseAccessOkta ¶
type IdentityProviderListResponseAccessOkta struct { // The configuration parameters for the identity provider. To view the required // parameters for a specific provider, refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Config IdentityProviderListResponseAccessOktaConfig `json:"config,required"` // The name of the identity provider, shown to users on the login page. Name string `json:"name,required"` // The type of identity provider. To determine the value for a specific provider, // refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Type IdentityProviderType `json:"type,required"` // UUID ID string `json:"id"` // The configuration settings for enabling a System for Cross-Domain Identity // Management (SCIM) with the identity provider. ScimConfig ScimConfig `json:"scim_config"` JSON identityProviderListResponseAccessOktaJSON `json:"-"` }
func (*IdentityProviderListResponseAccessOkta) UnmarshalJSON ¶
func (r *IdentityProviderListResponseAccessOkta) UnmarshalJSON(data []byte) (err error)
type IdentityProviderListResponseAccessOktaConfig ¶
type IdentityProviderListResponseAccessOktaConfig struct { // Your okta authorization server id AuthorizationServerID string `json:"authorization_server_id"` // Custom claims Claims []string `json:"claims"` // Your OAuth Client ID ClientID string `json:"client_id"` // Your OAuth Client Secret ClientSecret string `json:"client_secret"` // The claim name for email in the id_token response. EmailClaimName string `json:"email_claim_name"` // Your okta account url OktaAccount string `json:"okta_account"` JSON identityProviderListResponseAccessOktaConfigJSON `json:"-"` }
The configuration parameters for the identity provider. To view the required parameters for a specific provider, refer to our [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/).
func (*IdentityProviderListResponseAccessOktaConfig) UnmarshalJSON ¶
func (r *IdentityProviderListResponseAccessOktaConfig) UnmarshalJSON(data []byte) (err error)
type IdentityProviderListResponseAccessOnelogin ¶
type IdentityProviderListResponseAccessOnelogin struct { // The configuration parameters for the identity provider. To view the required // parameters for a specific provider, refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Config IdentityProviderListResponseAccessOneloginConfig `json:"config,required"` // The name of the identity provider, shown to users on the login page. Name string `json:"name,required"` // The type of identity provider. To determine the value for a specific provider, // refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Type IdentityProviderType `json:"type,required"` // UUID ID string `json:"id"` // The configuration settings for enabling a System for Cross-Domain Identity // Management (SCIM) with the identity provider. ScimConfig ScimConfig `json:"scim_config"` JSON identityProviderListResponseAccessOneloginJSON `json:"-"` }
func (*IdentityProviderListResponseAccessOnelogin) UnmarshalJSON ¶
func (r *IdentityProviderListResponseAccessOnelogin) UnmarshalJSON(data []byte) (err error)
type IdentityProviderListResponseAccessOneloginConfig ¶
type IdentityProviderListResponseAccessOneloginConfig struct { // Custom claims Claims []string `json:"claims"` // Your OAuth Client ID ClientID string `json:"client_id"` // Your OAuth Client Secret ClientSecret string `json:"client_secret"` // The claim name for email in the id_token response. EmailClaimName string `json:"email_claim_name"` // Your OneLogin account url OneloginAccount string `json:"onelogin_account"` JSON identityProviderListResponseAccessOneloginConfigJSON `json:"-"` }
The configuration parameters for the identity provider. To view the required parameters for a specific provider, refer to our [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/).
func (*IdentityProviderListResponseAccessOneloginConfig) UnmarshalJSON ¶
func (r *IdentityProviderListResponseAccessOneloginConfig) UnmarshalJSON(data []byte) (err error)
type IdentityProviderListResponseAccessPingone ¶
type IdentityProviderListResponseAccessPingone struct { // The configuration parameters for the identity provider. To view the required // parameters for a specific provider, refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Config IdentityProviderListResponseAccessPingoneConfig `json:"config,required"` // The name of the identity provider, shown to users on the login page. Name string `json:"name,required"` // The type of identity provider. To determine the value for a specific provider, // refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Type IdentityProviderType `json:"type,required"` // UUID ID string `json:"id"` // The configuration settings for enabling a System for Cross-Domain Identity // Management (SCIM) with the identity provider. ScimConfig ScimConfig `json:"scim_config"` JSON identityProviderListResponseAccessPingoneJSON `json:"-"` }
func (*IdentityProviderListResponseAccessPingone) UnmarshalJSON ¶
func (r *IdentityProviderListResponseAccessPingone) UnmarshalJSON(data []byte) (err error)
type IdentityProviderListResponseAccessPingoneConfig ¶
type IdentityProviderListResponseAccessPingoneConfig struct { // Custom claims Claims []string `json:"claims"` // Your OAuth Client ID ClientID string `json:"client_id"` // Your OAuth Client Secret ClientSecret string `json:"client_secret"` // The claim name for email in the id_token response. EmailClaimName string `json:"email_claim_name"` // Your PingOne environment identifier PingEnvID string `json:"ping_env_id"` JSON identityProviderListResponseAccessPingoneConfigJSON `json:"-"` }
The configuration parameters for the identity provider. To view the required parameters for a specific provider, refer to our [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/).
func (*IdentityProviderListResponseAccessPingoneConfig) UnmarshalJSON ¶
func (r *IdentityProviderListResponseAccessPingoneConfig) UnmarshalJSON(data []byte) (err error)
type IdentityProviderListResponseAccessSAML ¶
type IdentityProviderListResponseAccessSAML struct { // The configuration parameters for the identity provider. To view the required // parameters for a specific provider, refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Config IdentityProviderListResponseAccessSAMLConfig `json:"config,required"` // The name of the identity provider, shown to users on the login page. Name string `json:"name,required"` // The type of identity provider. To determine the value for a specific provider, // refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Type IdentityProviderType `json:"type,required"` // UUID ID string `json:"id"` // The configuration settings for enabling a System for Cross-Domain Identity // Management (SCIM) with the identity provider. ScimConfig ScimConfig `json:"scim_config"` JSON identityProviderListResponseAccessSAMLJSON `json:"-"` }
func (*IdentityProviderListResponseAccessSAML) UnmarshalJSON ¶
func (r *IdentityProviderListResponseAccessSAML) UnmarshalJSON(data []byte) (err error)
type IdentityProviderListResponseAccessSAMLConfig ¶
type IdentityProviderListResponseAccessSAMLConfig struct { // A list of SAML attribute names that will be added to your signed JWT token and // can be used in SAML policy rules. Attributes []string `json:"attributes"` // The attribute name for email in the SAML response. EmailAttributeName string `json:"email_attribute_name"` // Add a list of attribute names that will be returned in the response header from // the Access callback. HeaderAttributes []IdentityProviderListResponseAccessSAMLConfigHeaderAttribute `json:"header_attributes"` // X509 certificate to verify the signature in the SAML authentication response IDPPublicCERTs []string `json:"idp_public_certs"` // IdP Entity ID or Issuer URL IssuerURL string `json:"issuer_url"` // Sign the SAML authentication request with Access credentials. To verify the // signature, use the public key from the Access certs endpoints. SignRequest bool `json:"sign_request"` // URL to send the SAML authentication requests to SSOTargetURL string `json:"sso_target_url"` JSON identityProviderListResponseAccessSAMLConfigJSON `json:"-"` }
The configuration parameters for the identity provider. To view the required parameters for a specific provider, refer to our [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/).
func (*IdentityProviderListResponseAccessSAMLConfig) UnmarshalJSON ¶
func (r *IdentityProviderListResponseAccessSAMLConfig) UnmarshalJSON(data []byte) (err error)
type IdentityProviderListResponseAccessSAMLConfigHeaderAttribute ¶
type IdentityProviderListResponseAccessSAMLConfigHeaderAttribute struct { // attribute name from the IDP AttributeName string `json:"attribute_name"` // header that will be added on the request to the origin HeaderName string `json:"header_name"` JSON identityProviderListResponseAccessSAMLConfigHeaderAttributeJSON `json:"-"` }
func (*IdentityProviderListResponseAccessSAMLConfigHeaderAttribute) UnmarshalJSON ¶
func (r *IdentityProviderListResponseAccessSAMLConfigHeaderAttribute) UnmarshalJSON(data []byte) (err error)
type IdentityProviderListResponseAccessYandex ¶
type IdentityProviderListResponseAccessYandex struct { // The configuration parameters for the identity provider. To view the required // parameters for a specific provider, refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Config GenericOAuthConfig `json:"config,required"` // The name of the identity provider, shown to users on the login page. Name string `json:"name,required"` // The type of identity provider. To determine the value for a specific provider, // refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Type IdentityProviderType `json:"type,required"` // UUID ID string `json:"id"` // The configuration settings for enabling a System for Cross-Domain Identity // Management (SCIM) with the identity provider. ScimConfig ScimConfig `json:"scim_config"` JSON identityProviderListResponseAccessYandexJSON `json:"-"` }
func (*IdentityProviderListResponseAccessYandex) UnmarshalJSON ¶
func (r *IdentityProviderListResponseAccessYandex) UnmarshalJSON(data []byte) (err error)
type IdentityProviderListResponseUnion ¶
type IdentityProviderListResponseUnion interface {
// contains filtered or unexported methods
}
Union satisfied by zero_trust.AzureAD, zero_trust.IdentityProviderListResponseAccessCentrify, zero_trust.IdentityProviderListResponseAccessFacebook, zero_trust.IdentityProviderListResponseAccessGitHub, zero_trust.IdentityProviderListResponseAccessGoogle, zero_trust.IdentityProviderListResponseAccessGoogleApps, zero_trust.IdentityProviderListResponseAccessLinkedin, zero_trust.IdentityProviderListResponseAccessOIDC, zero_trust.IdentityProviderListResponseAccessOkta, zero_trust.IdentityProviderListResponseAccessOnelogin, zero_trust.IdentityProviderListResponseAccessPingone, zero_trust.IdentityProviderListResponseAccessSAML or zero_trust.IdentityProviderListResponseAccessYandex.
type IdentityProviderNewParams ¶
type IdentityProviderNewParams struct { IdentityProvider IdentityProviderUnionParam `json:"identity_provider,required"` // The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. AccountID param.Field[string] `path:"account_id"` // The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. ZoneID param.Field[string] `path:"zone_id"` }
func (IdentityProviderNewParams) MarshalJSON ¶
func (r IdentityProviderNewParams) MarshalJSON() (data []byte, err error)
type IdentityProviderNewResponseEnvelope ¶
type IdentityProviderNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result IdentityProvider `json:"result,required"` // Whether the API call was successful Success IdentityProviderNewResponseEnvelopeSuccess `json:"success,required"` JSON identityProviderNewResponseEnvelopeJSON `json:"-"` }
func (*IdentityProviderNewResponseEnvelope) UnmarshalJSON ¶
func (r *IdentityProviderNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type IdentityProviderNewResponseEnvelopeSuccess ¶
type IdentityProviderNewResponseEnvelopeSuccess bool
Whether the API call was successful
const (
IdentityProviderNewResponseEnvelopeSuccessTrue IdentityProviderNewResponseEnvelopeSuccess = true
)
func (IdentityProviderNewResponseEnvelopeSuccess) IsKnown ¶
func (r IdentityProviderNewResponseEnvelopeSuccess) IsKnown() bool
type IdentityProviderParam ¶
type IdentityProviderParam struct { Config param.Field[interface{}] `json:"config"` // The name of the identity provider, shown to users on the login page. Name param.Field[string] `json:"name,required"` // The configuration settings for enabling a System for Cross-Domain Identity // Management (SCIM) with the identity provider. ScimConfig param.Field[ScimConfigParam] `json:"scim_config"` // The type of identity provider. To determine the value for a specific provider, // refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). Type param.Field[IdentityProviderType] `json:"type,required"` }
func (IdentityProviderParam) MarshalJSON ¶
func (r IdentityProviderParam) MarshalJSON() (data []byte, err error)
type IdentityProviderService ¶
type IdentityProviderService struct {
Options []option.RequestOption
}
IdentityProviderService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewIdentityProviderService method instead.
func NewIdentityProviderService ¶
func NewIdentityProviderService(opts ...option.RequestOption) (r *IdentityProviderService)
NewIdentityProviderService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*IdentityProviderService) Delete ¶
func (r *IdentityProviderService) Delete(ctx context.Context, uuid string, body IdentityProviderDeleteParams, opts ...option.RequestOption) (res *IdentityProviderDeleteResponse, err error)
Deletes an identity provider from Access.
func (*IdentityProviderService) Get ¶
func (r *IdentityProviderService) Get(ctx context.Context, uuid string, query IdentityProviderGetParams, opts ...option.RequestOption) (res *IdentityProvider, err error)
Fetches a configured identity provider.
func (*IdentityProviderService) List ¶
func (r *IdentityProviderService) List(ctx context.Context, query IdentityProviderListParams, opts ...option.RequestOption) (res *pagination.SinglePage[IdentityProviderListResponse], err error)
Lists all configured identity providers.
func (*IdentityProviderService) ListAutoPaging ¶
func (r *IdentityProviderService) ListAutoPaging(ctx context.Context, query IdentityProviderListParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[IdentityProviderListResponse]
Lists all configured identity providers.
func (*IdentityProviderService) New ¶
func (r *IdentityProviderService) New(ctx context.Context, params IdentityProviderNewParams, opts ...option.RequestOption) (res *IdentityProvider, err error)
Adds a new identity provider to Access.
func (*IdentityProviderService) Update ¶
func (r *IdentityProviderService) Update(ctx context.Context, uuid string, params IdentityProviderUpdateParams, opts ...option.RequestOption) (res *IdentityProvider, err error)
Updates a configured identity provider.
type IdentityProviderType ¶
type IdentityProviderType string
The type of identity provider. To determine the value for a specific provider, refer to our [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/).
const ( IdentityProviderTypeOnetimepin IdentityProviderType = "onetimepin" IdentityProviderTypeAzureAD IdentityProviderType = "azureAD" IdentityProviderTypeSAML IdentityProviderType = "saml" IdentityProviderTypeCentrify IdentityProviderType = "centrify" IdentityProviderTypeFacebook IdentityProviderType = "facebook" IdentityProviderTypeGitHub IdentityProviderType = "github" IdentityProviderTypeGoogleApps IdentityProviderType = "google-apps" IdentityProviderTypeGoogle IdentityProviderType = "google" IdentityProviderTypeLinkedin IdentityProviderType = "linkedin" IdentityProviderTypeOIDC IdentityProviderType = "oidc" IdentityProviderTypeOkta IdentityProviderType = "okta" IdentityProviderTypeOnelogin IdentityProviderType = "onelogin" IdentityProviderTypePingone IdentityProviderType = "pingone" IdentityProviderTypeYandex IdentityProviderType = "yandex" )
func (IdentityProviderType) IsKnown ¶
func (r IdentityProviderType) IsKnown() bool
type IdentityProviderUnion ¶
type IdentityProviderUnion interface {
// contains filtered or unexported methods
}
Union satisfied by zero_trust.AzureAD, zero_trust.IdentityProviderAccessCentrify, zero_trust.IdentityProviderAccessFacebook, zero_trust.IdentityProviderAccessGitHub, zero_trust.IdentityProviderAccessGoogle, zero_trust.IdentityProviderAccessGoogleApps, zero_trust.IdentityProviderAccessLinkedin, zero_trust.IdentityProviderAccessOIDC, zero_trust.IdentityProviderAccessOkta, zero_trust.IdentityProviderAccessOnelogin, zero_trust.IdentityProviderAccessPingone, zero_trust.IdentityProviderAccessSAML, zero_trust.IdentityProviderAccessYandex or zero_trust.IdentityProviderAccessOnetimepin.
type IdentityProviderUnionParam ¶
type IdentityProviderUnionParam interface {
// contains filtered or unexported methods
}
Satisfied by zero_trust.AzureADParam, zero_trust.IdentityProviderAccessCentrifyParam, zero_trust.IdentityProviderAccessFacebookParam, zero_trust.IdentityProviderAccessGitHubParam, zero_trust.IdentityProviderAccessGoogleParam, zero_trust.IdentityProviderAccessGoogleAppsParam, zero_trust.IdentityProviderAccessLinkedinParam, zero_trust.IdentityProviderAccessOIDCParam, zero_trust.IdentityProviderAccessOktaParam, zero_trust.IdentityProviderAccessOneloginParam, zero_trust.IdentityProviderAccessPingoneParam, zero_trust.IdentityProviderAccessSAMLParam, zero_trust.IdentityProviderAccessYandexParam, zero_trust.IdentityProviderAccessOnetimepinParam, IdentityProviderParam.
type IdentityProviderUpdateParams ¶
type IdentityProviderUpdateParams struct { IdentityProvider IdentityProviderUnionParam `json:"identity_provider,required"` // The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. AccountID param.Field[string] `path:"account_id"` // The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. ZoneID param.Field[string] `path:"zone_id"` }
func (IdentityProviderUpdateParams) MarshalJSON ¶
func (r IdentityProviderUpdateParams) MarshalJSON() (data []byte, err error)
type IdentityProviderUpdateResponseEnvelope ¶
type IdentityProviderUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result IdentityProvider `json:"result,required"` // Whether the API call was successful Success IdentityProviderUpdateResponseEnvelopeSuccess `json:"success,required"` JSON identityProviderUpdateResponseEnvelopeJSON `json:"-"` }
func (*IdentityProviderUpdateResponseEnvelope) UnmarshalJSON ¶
func (r *IdentityProviderUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type IdentityProviderUpdateResponseEnvelopeSuccess ¶
type IdentityProviderUpdateResponseEnvelopeSuccess bool
Whether the API call was successful
const (
IdentityProviderUpdateResponseEnvelopeSuccessTrue IdentityProviderUpdateResponseEnvelopeSuccess = true
)
func (IdentityProviderUpdateResponseEnvelopeSuccess) IsKnown ¶
func (r IdentityProviderUpdateResponseEnvelopeSuccess) IsKnown() bool
type Integration ¶
type Integration struct { // API UUID. ID string `json:"id"` // The configuration object containing third-party integration information. Config IntegrationConfig `json:"config"` // The interval between each posture check with the third-party API. Use `m` for // minutes (e.g. `5m`) and `h` for hours (e.g. `12h`). Interval string `json:"interval"` // The name of the device posture integration. Name string `json:"name"` // The type of device posture integration. Type IntegrationType `json:"type"` JSON integrationJSON `json:"-"` }
func (*Integration) UnmarshalJSON ¶
func (r *Integration) UnmarshalJSON(data []byte) (err error)
type IntegrationConfig ¶
type IntegrationConfig struct { // The Workspace One API URL provided in the Workspace One Admin Dashboard. APIURL string `json:"api_url,required"` // The Workspace One Authorization URL depending on your region. AuthURL string `json:"auth_url,required"` // The Workspace One client ID provided in the Workspace One Admin Dashboard. ClientID string `json:"client_id,required"` JSON integrationConfigJSON `json:"-"` }
The configuration object containing third-party integration information.
func (*IntegrationConfig) UnmarshalJSON ¶
func (r *IntegrationConfig) UnmarshalJSON(data []byte) (err error)
type IntegrationType ¶
type IntegrationType string
The type of device posture integration.
const ( IntegrationTypeWorkspaceOne IntegrationType = "workspace_one" IntegrationTypeCrowdstrikeS2s IntegrationType = "crowdstrike_s2s" IntegrationTypeUptycs IntegrationType = "uptycs" IntegrationTypeIntune IntegrationType = "intune" IntegrationTypeKolide IntegrationType = "kolide" IntegrationTypeTanium IntegrationType = "tanium" IntegrationTypeSentineloneS2s IntegrationType = "sentinelone_s2s" )
func (IntegrationType) IsKnown ¶
func (r IntegrationType) IsKnown() bool
type IntuneInput ¶
type IntuneInput struct { // Compliance Status ComplianceStatus IntuneInputComplianceStatus `json:"compliance_status,required"` // Posture Integration ID. ConnectionID string `json:"connection_id,required"` JSON intuneInputJSON `json:"-"` }
func (*IntuneInput) UnmarshalJSON ¶
func (r *IntuneInput) UnmarshalJSON(data []byte) (err error)
type IntuneInputComplianceStatus ¶
type IntuneInputComplianceStatus string
Compliance Status
const ( IntuneInputComplianceStatusCompliant IntuneInputComplianceStatus = "compliant" IntuneInputComplianceStatusNoncompliant IntuneInputComplianceStatus = "noncompliant" IntuneInputComplianceStatusUnknown IntuneInputComplianceStatus = "unknown" IntuneInputComplianceStatusNotapplicable IntuneInputComplianceStatus = "notapplicable" IntuneInputComplianceStatusIngraceperiod IntuneInputComplianceStatus = "ingraceperiod" IntuneInputComplianceStatusError IntuneInputComplianceStatus = "error" )
func (IntuneInputComplianceStatus) IsKnown ¶
func (r IntuneInputComplianceStatus) IsKnown() bool
type IntuneInputParam ¶
type IntuneInputParam struct { // Compliance Status ComplianceStatus param.Field[IntuneInputComplianceStatus] `json:"compliance_status,required"` // Posture Integration ID. ConnectionID param.Field[string] `json:"connection_id,required"` }
func (IntuneInputParam) MarshalJSON ¶
func (r IntuneInputParam) MarshalJSON() (data []byte, err error)
type KolideInput ¶
type KolideInput struct { // Posture Integration ID. ConnectionID string `json:"connection_id,required"` // Count Operator CountOperator KolideInputCountOperator `json:"countOperator,required"` // The Number of Issues. IssueCount string `json:"issue_count,required"` JSON kolideInputJSON `json:"-"` }
func (*KolideInput) UnmarshalJSON ¶
func (r *KolideInput) UnmarshalJSON(data []byte) (err error)
type KolideInputCountOperator ¶
type KolideInputCountOperator string
Count Operator
const ( KolideInputCountOperatorLess KolideInputCountOperator = "<" KolideInputCountOperatorLessOrEquals KolideInputCountOperator = "<=" KolideInputCountOperatorGreater KolideInputCountOperator = ">" KolideInputCountOperatorGreaterOrEquals KolideInputCountOperator = ">=" KolideInputCountOperatorEquals KolideInputCountOperator = "==" )
func (KolideInputCountOperator) IsKnown ¶
func (r KolideInputCountOperator) IsKnown() bool
type KolideInputParam ¶
type KolideInputParam struct { // Posture Integration ID. ConnectionID param.Field[string] `json:"connection_id,required"` // Count Operator CountOperator param.Field[KolideInputCountOperator] `json:"countOperator,required"` // The Number of Issues. IssueCount param.Field[string] `json:"issue_count,required"` }
func (KolideInputParam) MarshalJSON ¶
func (r KolideInputParam) MarshalJSON() (data []byte, err error)
type LiveStat ¶
type LiveStat struct { // Number of unique devices UniqueDevicesTotal float64 `json:"uniqueDevicesTotal"` Value string `json:"value"` JSON liveStatJSON `json:"-"` }
func (*LiveStat) UnmarshalJSON ¶
type Location ¶
type Location struct { ID string `json:"id"` // True if the location is the default location. ClientDefault bool `json:"client_default"` CreatedAt time.Time `json:"created_at" format:"date-time"` // The DNS over HTTPS domain to send DNS requests to. This field is auto-generated // by Gateway. DohSubdomain string `json:"doh_subdomain"` // True if the location needs to resolve EDNS queries. EcsSupport bool `json:"ecs_support"` // IPV6 destination ip assigned to this location. DNS requests sent to this IP will // counted as the request under this location. This field is auto-generated by // Gateway. IP string `json:"ip"` // The name of the location. Name string `json:"name"` // A list of network ranges that requests from this location would originate from. Networks []LocationNetwork `json:"networks"` UpdatedAt time.Time `json:"updated_at" format:"date-time"` JSON locationJSON `json:"-"` }
func (*Location) UnmarshalJSON ¶
type LocationNetwork ¶
type LocationNetwork struct { // The IPv4 address or IPv4 CIDR. IPv4 CIDRs are limited to a maximum of /24. Network string `json:"network,required"` JSON locationNetworkJSON `json:"-"` }
func (*LocationNetwork) UnmarshalJSON ¶
func (r *LocationNetwork) UnmarshalJSON(data []byte) (err error)
type LocationNetworkParam ¶
type LocationNetworkParam struct { // The IPv4 address or IPv4 CIDR. IPv4 CIDRs are limited to a maximum of /24. Network param.Field[string] `json:"network,required"` }
func (LocationNetworkParam) MarshalJSON ¶
func (r LocationNetworkParam) MarshalJSON() (data []byte, err error)
type LoggingSetting ¶
type LoggingSetting struct { // Redact personally identifiable information from activity logging (PII fields // are: source IP, user email, user ID, device ID, URL, referrer, user agent). RedactPii bool `json:"redact_pii"` // Logging settings by rule type. SettingsByRuleType LoggingSettingSettingsByRuleType `json:"settings_by_rule_type"` JSON loggingSettingJSON `json:"-"` }
func (*LoggingSetting) UnmarshalJSON ¶
func (r *LoggingSetting) UnmarshalJSON(data []byte) (err error)
type LoggingSettingParam ¶
type LoggingSettingParam struct { // Redact personally identifiable information from activity logging (PII fields // are: source IP, user email, user ID, device ID, URL, referrer, user agent). RedactPii param.Field[bool] `json:"redact_pii"` // Logging settings by rule type. SettingsByRuleType param.Field[LoggingSettingSettingsByRuleTypeParam] `json:"settings_by_rule_type"` }
func (LoggingSettingParam) MarshalJSON ¶
func (r LoggingSettingParam) MarshalJSON() (data []byte, err error)
type LoggingSettingSettingsByRuleType ¶
type LoggingSettingSettingsByRuleType struct { // Logging settings for DNS firewall. DNS interface{} `json:"dns"` // Logging settings for HTTP/HTTPS firewall. HTTP interface{} `json:"http"` // Logging settings for Network firewall. L4 interface{} `json:"l4"` JSON loggingSettingSettingsByRuleTypeJSON `json:"-"` }
Logging settings by rule type.
func (*LoggingSettingSettingsByRuleType) UnmarshalJSON ¶
func (r *LoggingSettingSettingsByRuleType) UnmarshalJSON(data []byte) (err error)
type LoggingSettingSettingsByRuleTypeParam ¶
type LoggingSettingSettingsByRuleTypeParam struct { // Logging settings for DNS firewall. DNS param.Field[interface{}] `json:"dns"` // Logging settings for HTTP/HTTPS firewall. HTTP param.Field[interface{}] `json:"http"` // Logging settings for Network firewall. L4 param.Field[interface{}] `json:"l4"` }
Logging settings by rule type.
func (LoggingSettingSettingsByRuleTypeParam) MarshalJSON ¶
func (r LoggingSettingSettingsByRuleTypeParam) MarshalJSON() (data []byte, err error)
type LoginDesign ¶
type LoginDesign struct { // The background color on your login page. BackgroundColor string `json:"background_color"` FooterText string `json:"footer_text"` // The text at the top of your login page. HeaderText string `json:"header_text"` // The URL of the logo on your login page. LogoPath string `json:"logo_path"` // The text color on your login page. TextColor string `json:"text_color"` JSON loginDesignJSON `json:"-"` }
func (*LoginDesign) UnmarshalJSON ¶
func (r *LoginDesign) UnmarshalJSON(data []byte) (err error)
type LoginDesignParam ¶
type LoginDesignParam struct { // The background color on your login page. BackgroundColor param.Field[string] `json:"background_color"` FooterText param.Field[string] `json:"footer_text"` // The text at the top of your login page. HeaderText param.Field[string] `json:"header_text"` // The URL of the logo on your login page. LogoPath param.Field[string] `json:"logo_path"` // The text color on your login page. TextColor param.Field[string] `json:"text_color"` }
func (LoginDesignParam) MarshalJSON ¶
func (r LoginDesignParam) MarshalJSON() (data []byte, err error)
type NetworkPath ¶
type NetworkPath struct { // API Resource UUID tag. ID string `json:"id,required"` DeviceName string `json:"deviceName"` // The interval at which the Traceroute synthetic application test is set to run. Interval string `json:"interval"` Kind NetworkPathKind `json:"kind"` Name string `json:"name"` NetworkPath NetworkPathNetworkPath `json:"networkPath,nullable"` // The host of the Traceroute synthetic application test URL string `json:"url"` JSON networkPathJSON `json:"-"` }
func (*NetworkPath) UnmarshalJSON ¶
func (r *NetworkPath) UnmarshalJSON(data []byte) (err error)
type NetworkPathKind ¶
type NetworkPathKind string
const (
NetworkPathKindTraceroute NetworkPathKind = "traceroute"
)
func (NetworkPathKind) IsKnown ¶
func (r NetworkPathKind) IsKnown() bool
type NetworkPathNetworkPath ¶
type NetworkPathNetworkPath struct { Slots []NetworkPathNetworkPathSlot `json:"slots,required"` // Specifies the sampling applied, if any, to the slots response. When sampled, // results shown represent the first test run to the start of each sampling // interval. Sampling NetworkPathNetworkPathSampling `json:"sampling,nullable"` JSON networkPathNetworkPathJSON `json:"-"` }
func (*NetworkPathNetworkPath) UnmarshalJSON ¶
func (r *NetworkPathNetworkPath) UnmarshalJSON(data []byte) (err error)
type NetworkPathNetworkPathSampling ¶
type NetworkPathNetworkPathSampling struct { Unit NetworkPathNetworkPathSamplingUnit `json:"unit,required"` Value int64 `json:"value,required"` JSON networkPathNetworkPathSamplingJSON `json:"-"` }
Specifies the sampling applied, if any, to the slots response. When sampled, results shown represent the first test run to the start of each sampling interval.
func (*NetworkPathNetworkPathSampling) UnmarshalJSON ¶
func (r *NetworkPathNetworkPathSampling) UnmarshalJSON(data []byte) (err error)
type NetworkPathNetworkPathSamplingUnit ¶
type NetworkPathNetworkPathSamplingUnit string
const (
NetworkPathNetworkPathSamplingUnitHours NetworkPathNetworkPathSamplingUnit = "hours"
)
func (NetworkPathNetworkPathSamplingUnit) IsKnown ¶
func (r NetworkPathNetworkPathSamplingUnit) IsKnown() bool
type NetworkPathNetworkPathSlot ¶
type NetworkPathNetworkPathSlot struct { // API Resource UUID tag. ID string `json:"id,required"` // Round trip time in ms of the client to app mile ClientToAppRTTMs int64 `json:"clientToAppRttMs,required,nullable"` // Round trip time in ms of the client to Cloudflare egress mile ClientToCfEgressRTTMs int64 `json:"clientToCfEgressRttMs,required,nullable"` // Round trip time in ms of the client to Cloudflare ingress mile ClientToCfIngressRTTMs int64 `json:"clientToCfIngressRttMs,required,nullable"` Timestamp string `json:"timestamp,required"` // Round trip time in ms of the client to ISP mile ClientToIspRTTMs int64 `json:"clientToIspRttMs,nullable"` JSON networkPathNetworkPathSlotJSON `json:"-"` }
func (*NetworkPathNetworkPathSlot) UnmarshalJSON ¶
func (r *NetworkPathNetworkPathSlot) UnmarshalJSON(data []byte) (err error)
type NetworkRouteDeleteResponseEnvelope ¶
type NetworkRouteDeleteResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result Route `json:"result,required"` // Whether the API call was successful Success NetworkRouteDeleteResponseEnvelopeSuccess `json:"success,required"` JSON networkRouteDeleteResponseEnvelopeJSON `json:"-"` }
func (*NetworkRouteDeleteResponseEnvelope) UnmarshalJSON ¶
func (r *NetworkRouteDeleteResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type NetworkRouteDeleteResponseEnvelopeSuccess ¶
type NetworkRouteDeleteResponseEnvelopeSuccess bool
Whether the API call was successful
const (
NetworkRouteDeleteResponseEnvelopeSuccessTrue NetworkRouteDeleteResponseEnvelopeSuccess = true
)
func (NetworkRouteDeleteResponseEnvelopeSuccess) IsKnown ¶
func (r NetworkRouteDeleteResponseEnvelopeSuccess) IsKnown() bool
type NetworkRouteEditParams ¶
type NetworkRouteEditParams struct { // Cloudflare account ID AccountID param.Field[string] `path:"account_id,required"` // Optional remark describing the route. Comment param.Field[string] `json:"comment"` // The private IPv4 or IPv6 range connected by the route, in CIDR notation. Network param.Field[string] `json:"network"` // The type of tunnel. TunType param.Field[NetworkRouteEditParamsTunType] `json:"tun_type"` // UUID of the Cloudflare Tunnel serving the route. TunnelID param.Field[interface{}] `json:"tunnel_id"` // UUID of the Tunnel Virtual Network this route belongs to. If no virtual networks // are configured, the route is assigned to the default virtual network of the // account. VirtualNetworkID param.Field[interface{}] `json:"virtual_network_id"` }
func (NetworkRouteEditParams) MarshalJSON ¶
func (r NetworkRouteEditParams) MarshalJSON() (data []byte, err error)
type NetworkRouteEditParamsTunType ¶
type NetworkRouteEditParamsTunType string
The type of tunnel.
const ( NetworkRouteEditParamsTunTypeCfdTunnel NetworkRouteEditParamsTunType = "cfd_tunnel" NetworkRouteEditParamsTunTypeWARPConnector NetworkRouteEditParamsTunType = "warp_connector" NetworkRouteEditParamsTunTypeIPSec NetworkRouteEditParamsTunType = "ip_sec" NetworkRouteEditParamsTunTypeGRE NetworkRouteEditParamsTunType = "gre" NetworkRouteEditParamsTunTypeCNI NetworkRouteEditParamsTunType = "cni" )
func (NetworkRouteEditParamsTunType) IsKnown ¶
func (r NetworkRouteEditParamsTunType) IsKnown() bool
type NetworkRouteEditResponseEnvelope ¶
type NetworkRouteEditResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result Route `json:"result,required"` // Whether the API call was successful Success NetworkRouteEditResponseEnvelopeSuccess `json:"success,required"` JSON networkRouteEditResponseEnvelopeJSON `json:"-"` }
func (*NetworkRouteEditResponseEnvelope) UnmarshalJSON ¶
func (r *NetworkRouteEditResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type NetworkRouteEditResponseEnvelopeSuccess ¶
type NetworkRouteEditResponseEnvelopeSuccess bool
Whether the API call was successful
const (
NetworkRouteEditResponseEnvelopeSuccessTrue NetworkRouteEditResponseEnvelopeSuccess = true
)
func (NetworkRouteEditResponseEnvelopeSuccess) IsKnown ¶
func (r NetworkRouteEditResponseEnvelopeSuccess) IsKnown() bool
type NetworkRouteIPGetParams ¶
type NetworkRouteIPGetParams struct { // Cloudflare account ID AccountID param.Field[string] `path:"account_id,required"` // UUID of the Tunnel Virtual Network this route belongs to. If no virtual networks // are configured, the route is assigned to the default virtual network of the // account. VirtualNetworkID param.Field[interface{}] `query:"virtual_network_id"` }
func (NetworkRouteIPGetParams) URLQuery ¶
func (r NetworkRouteIPGetParams) URLQuery() (v url.Values)
URLQuery serializes NetworkRouteIPGetParams's query parameters as `url.Values`.
type NetworkRouteIPGetResponseEnvelope ¶
type NetworkRouteIPGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result Teamnet `json:"result,required"` // Whether the API call was successful Success NetworkRouteIPGetResponseEnvelopeSuccess `json:"success,required"` JSON networkRouteIPGetResponseEnvelopeJSON `json:"-"` }
func (*NetworkRouteIPGetResponseEnvelope) UnmarshalJSON ¶
func (r *NetworkRouteIPGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type NetworkRouteIPGetResponseEnvelopeSuccess ¶
type NetworkRouteIPGetResponseEnvelopeSuccess bool
Whether the API call was successful
const (
NetworkRouteIPGetResponseEnvelopeSuccessTrue NetworkRouteIPGetResponseEnvelopeSuccess = true
)
func (NetworkRouteIPGetResponseEnvelopeSuccess) IsKnown ¶
func (r NetworkRouteIPGetResponseEnvelopeSuccess) IsKnown() bool
type NetworkRouteIPService ¶
type NetworkRouteIPService struct {
Options []option.RequestOption
}
NetworkRouteIPService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewNetworkRouteIPService method instead.
func NewNetworkRouteIPService ¶
func NewNetworkRouteIPService(opts ...option.RequestOption) (r *NetworkRouteIPService)
NewNetworkRouteIPService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*NetworkRouteIPService) Get ¶
func (r *NetworkRouteIPService) Get(ctx context.Context, ip string, params NetworkRouteIPGetParams, opts ...option.RequestOption) (res *Teamnet, err error)
Fetches routes that contain the given IP address.
type NetworkRouteListParams ¶
type NetworkRouteListParams struct { // Cloudflare account ID AccountID param.Field[string] `path:"account_id,required"` // Optional remark describing the route. Comment param.Field[string] `query:"comment"` // If provided, include only routes that were created (and not deleted) before this // time. ExistedAt param.Field[interface{}] `query:"existed_at"` // If `true`, only include deleted routes. If `false`, exclude deleted routes. If // empty, all routes will be included. IsDeleted param.Field[interface{}] `query:"is_deleted"` // If set, only list routes that are contained within this IP range. NetworkSubset param.Field[interface{}] `query:"network_subset"` // If set, only list routes that contain this IP range. NetworkSuperset param.Field[interface{}] `query:"network_superset"` // Page number of paginated results. Page param.Field[float64] `query:"page"` // Number of results to display. PerPage param.Field[float64] `query:"per_page"` // UUID of the route. RouteID param.Field[string] `query:"route_id"` // The types of tunnels to filter separated by a comma. TunTypes param.Field[string] `query:"tun_types"` // UUID of the Cloudflare Tunnel serving the route. TunnelID param.Field[interface{}] `query:"tunnel_id"` // UUID of the Tunnel Virtual Network this route belongs to. If no virtual networks // are configured, the route is assigned to the default virtual network of the // account. VirtualNetworkID param.Field[interface{}] `query:"virtual_network_id"` }
func (NetworkRouteListParams) URLQuery ¶
func (r NetworkRouteListParams) URLQuery() (v url.Values)
URLQuery serializes NetworkRouteListParams's query parameters as `url.Values`.
type NetworkRouteNetworkDeleteParams ¶
type NetworkRouteNetworkDeleteParams struct { // Cloudflare account ID AccountID param.Field[string] `path:"account_id,required"` // The type of tunnel. TunType param.Field[NetworkRouteNetworkDeleteParamsTunType] `query:"tun_type"` // UUID of the tunnel. TunnelID param.Field[string] `query:"tunnel_id"` // UUID of the virtual network. VirtualNetworkID param.Field[string] `query:"virtual_network_id"` }
func (NetworkRouteNetworkDeleteParams) URLQuery ¶
func (r NetworkRouteNetworkDeleteParams) URLQuery() (v url.Values)
URLQuery serializes NetworkRouteNetworkDeleteParams's query parameters as `url.Values`.
type NetworkRouteNetworkDeleteParamsTunType ¶
type NetworkRouteNetworkDeleteParamsTunType string
The type of tunnel.
const ( NetworkRouteNetworkDeleteParamsTunTypeCfdTunnel NetworkRouteNetworkDeleteParamsTunType = "cfd_tunnel" NetworkRouteNetworkDeleteParamsTunTypeWARPConnector NetworkRouteNetworkDeleteParamsTunType = "warp_connector" NetworkRouteNetworkDeleteParamsTunTypeIPSec NetworkRouteNetworkDeleteParamsTunType = "ip_sec" NetworkRouteNetworkDeleteParamsTunTypeGRE NetworkRouteNetworkDeleteParamsTunType = "gre" NetworkRouteNetworkDeleteParamsTunTypeCNI NetworkRouteNetworkDeleteParamsTunType = "cni" )
func (NetworkRouteNetworkDeleteParamsTunType) IsKnown ¶
func (r NetworkRouteNetworkDeleteParamsTunType) IsKnown() bool
type NetworkRouteNetworkDeleteResponseEnvelope ¶
type NetworkRouteNetworkDeleteResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result Route `json:"result,required"` // Whether the API call was successful Success NetworkRouteNetworkDeleteResponseEnvelopeSuccess `json:"success,required"` JSON networkRouteNetworkDeleteResponseEnvelopeJSON `json:"-"` }
func (*NetworkRouteNetworkDeleteResponseEnvelope) UnmarshalJSON ¶
func (r *NetworkRouteNetworkDeleteResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type NetworkRouteNetworkDeleteResponseEnvelopeSuccess ¶
type NetworkRouteNetworkDeleteResponseEnvelopeSuccess bool
Whether the API call was successful
const (
NetworkRouteNetworkDeleteResponseEnvelopeSuccessTrue NetworkRouteNetworkDeleteResponseEnvelopeSuccess = true
)
func (NetworkRouteNetworkDeleteResponseEnvelopeSuccess) IsKnown ¶
func (r NetworkRouteNetworkDeleteResponseEnvelopeSuccess) IsKnown() bool
type NetworkRouteNetworkEditResponseEnvelope ¶
type NetworkRouteNetworkEditResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result Route `json:"result,required"` // Whether the API call was successful Success NetworkRouteNetworkEditResponseEnvelopeSuccess `json:"success,required"` JSON networkRouteNetworkEditResponseEnvelopeJSON `json:"-"` }
func (*NetworkRouteNetworkEditResponseEnvelope) UnmarshalJSON ¶
func (r *NetworkRouteNetworkEditResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type NetworkRouteNetworkEditResponseEnvelopeSuccess ¶
type NetworkRouteNetworkEditResponseEnvelopeSuccess bool
Whether the API call was successful
const (
NetworkRouteNetworkEditResponseEnvelopeSuccessTrue NetworkRouteNetworkEditResponseEnvelopeSuccess = true
)
func (NetworkRouteNetworkEditResponseEnvelopeSuccess) IsKnown ¶
func (r NetworkRouteNetworkEditResponseEnvelopeSuccess) IsKnown() bool
type NetworkRouteNetworkNewParams ¶
type NetworkRouteNetworkNewParams struct { // Cloudflare account ID AccountID param.Field[string] `path:"account_id,required"` // Optional remark describing the route. Comment param.Field[string] `json:"comment"` // UUID of the Tunnel Virtual Network this route belongs to. If no virtual networks // are configured, the route is assigned to the default virtual network of the // account. VirtualNetworkID param.Field[interface{}] `json:"virtual_network_id"` }
func (NetworkRouteNetworkNewParams) MarshalJSON ¶
func (r NetworkRouteNetworkNewParams) MarshalJSON() (data []byte, err error)
type NetworkRouteNetworkNewResponseEnvelope ¶
type NetworkRouteNetworkNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result Route `json:"result,required"` // Whether the API call was successful Success NetworkRouteNetworkNewResponseEnvelopeSuccess `json:"success,required"` JSON networkRouteNetworkNewResponseEnvelopeJSON `json:"-"` }
func (*NetworkRouteNetworkNewResponseEnvelope) UnmarshalJSON ¶
func (r *NetworkRouteNetworkNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type NetworkRouteNetworkNewResponseEnvelopeSuccess ¶
type NetworkRouteNetworkNewResponseEnvelopeSuccess bool
Whether the API call was successful
const (
NetworkRouteNetworkNewResponseEnvelopeSuccessTrue NetworkRouteNetworkNewResponseEnvelopeSuccess = true
)
func (NetworkRouteNetworkNewResponseEnvelopeSuccess) IsKnown ¶
func (r NetworkRouteNetworkNewResponseEnvelopeSuccess) IsKnown() bool
type NetworkRouteNetworkService ¶
type NetworkRouteNetworkService struct {
Options []option.RequestOption
}
NetworkRouteNetworkService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewNetworkRouteNetworkService method instead.
func NewNetworkRouteNetworkService ¶
func NewNetworkRouteNetworkService(opts ...option.RequestOption) (r *NetworkRouteNetworkService)
NewNetworkRouteNetworkService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*NetworkRouteNetworkService) Delete ¶
func (r *NetworkRouteNetworkService) Delete(ctx context.Context, ipNetworkEncoded string, params NetworkRouteNetworkDeleteParams, opts ...option.RequestOption) (res *Route, err error)
Deletes a private network route from an account. The CIDR in `ip_network_encoded` must be written in URL-encoded format. If no virtual_network_id is provided it will delete the route from the default vnet. If no tun_type is provided it will fetch the type from the tunnel_id or if that is missing it will assume Cloudflare Tunnel as default. If tunnel_id is provided it will delete the route from that tunnel, otherwise it will delete the route based on the vnet and tun_type.
func (*NetworkRouteNetworkService) Edit ¶
func (r *NetworkRouteNetworkService) Edit(ctx context.Context, ipNetworkEncoded string, body NetworkRouteNetworkEditParams, opts ...option.RequestOption) (res *Route, err error)
Updates an existing private network route in an account. The CIDR in `ip_network_encoded` must be written in URL-encoded format.
func (*NetworkRouteNetworkService) New ¶
func (r *NetworkRouteNetworkService) New(ctx context.Context, ipNetworkEncoded string, params NetworkRouteNetworkNewParams, opts ...option.RequestOption) (res *Route, err error)
Routes a private network through a Cloudflare Tunnel. The CIDR in `ip_network_encoded` must be written in URL-encoded format.
type NetworkRouteNewParams ¶
type NetworkRouteNewParams struct { // Cloudflare account ID AccountID param.Field[string] `path:"account_id,required"` // The private IPv4 or IPv6 range connected by the route, in CIDR notation. IPNetwork param.Field[string] `json:"ip_network,required"` // Optional remark describing the route. Comment param.Field[string] `json:"comment"` // UUID of the Tunnel Virtual Network this route belongs to. If no virtual networks // are configured, the route is assigned to the default virtual network of the // account. VirtualNetworkID param.Field[interface{}] `json:"virtual_network_id"` }
func (NetworkRouteNewParams) MarshalJSON ¶
func (r NetworkRouteNewParams) MarshalJSON() (data []byte, err error)
type NetworkRouteNewResponseEnvelope ¶
type NetworkRouteNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result Route `json:"result,required"` // Whether the API call was successful Success NetworkRouteNewResponseEnvelopeSuccess `json:"success,required"` JSON networkRouteNewResponseEnvelopeJSON `json:"-"` }
func (*NetworkRouteNewResponseEnvelope) UnmarshalJSON ¶
func (r *NetworkRouteNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type NetworkRouteNewResponseEnvelopeSuccess ¶
type NetworkRouteNewResponseEnvelopeSuccess bool
Whether the API call was successful
const (
NetworkRouteNewResponseEnvelopeSuccessTrue NetworkRouteNewResponseEnvelopeSuccess = true
)
func (NetworkRouteNewResponseEnvelopeSuccess) IsKnown ¶
func (r NetworkRouteNewResponseEnvelopeSuccess) IsKnown() bool
type NetworkRouteService ¶
type NetworkRouteService struct { Options []option.RequestOption IPs *NetworkRouteIPService Networks *NetworkRouteNetworkService }
NetworkRouteService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewNetworkRouteService method instead.
func NewNetworkRouteService ¶
func NewNetworkRouteService(opts ...option.RequestOption) (r *NetworkRouteService)
NewNetworkRouteService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*NetworkRouteService) Delete ¶
func (r *NetworkRouteService) Delete(ctx context.Context, routeID string, body NetworkRouteDeleteParams, opts ...option.RequestOption) (res *Route, err error)
Deletes a private network route from an account.
func (*NetworkRouteService) Edit ¶
func (r *NetworkRouteService) Edit(ctx context.Context, routeID string, params NetworkRouteEditParams, opts ...option.RequestOption) (res *Route, err error)
Updates an existing private network route in an account. The fields that are meant to be updated should be provided in the body of the request.
func (*NetworkRouteService) List ¶
func (r *NetworkRouteService) List(ctx context.Context, params NetworkRouteListParams, opts ...option.RequestOption) (res *pagination.V4PagePaginationArray[Teamnet], err error)
Lists and filters private network routes in an account.
func (*NetworkRouteService) ListAutoPaging ¶
func (r *NetworkRouteService) ListAutoPaging(ctx context.Context, params NetworkRouteListParams, opts ...option.RequestOption) *pagination.V4PagePaginationArrayAutoPager[Teamnet]
Lists and filters private network routes in an account.
func (*NetworkRouteService) New ¶
func (r *NetworkRouteService) New(ctx context.Context, params NetworkRouteNewParams, opts ...option.RequestOption) (res *Route, err error)
Routes a private network through a Cloudflare Tunnel.
type NetworkService ¶
type NetworkService struct { Options []option.RequestOption Routes *NetworkRouteService VirtualNetworks *NetworkVirtualNetworkService }
NetworkService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewNetworkService method instead.
func NewNetworkService ¶
func NewNetworkService(opts ...option.RequestOption) (r *NetworkService)
NewNetworkService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
type NetworkVirtualNetworkDeleteParams ¶
type NetworkVirtualNetworkDeleteParams struct { // Cloudflare account ID AccountID param.Field[string] `path:"account_id,required"` Body interface{} `json:"body,required"` }
func (NetworkVirtualNetworkDeleteParams) MarshalJSON ¶
func (r NetworkVirtualNetworkDeleteParams) MarshalJSON() (data []byte, err error)
type NetworkVirtualNetworkDeleteResponseArray ¶
type NetworkVirtualNetworkDeleteResponseArray []interface{}
func (NetworkVirtualNetworkDeleteResponseArray) ImplementsZeroTrustNetworkVirtualNetworkDeleteResponseUnion ¶
func (r NetworkVirtualNetworkDeleteResponseArray) ImplementsZeroTrustNetworkVirtualNetworkDeleteResponseUnion()
type NetworkVirtualNetworkDeleteResponseEnvelope ¶
type NetworkVirtualNetworkDeleteResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result NetworkVirtualNetworkDeleteResponseUnion `json:"result,required"` // Whether the API call was successful Success NetworkVirtualNetworkDeleteResponseEnvelopeSuccess `json:"success,required"` JSON networkVirtualNetworkDeleteResponseEnvelopeJSON `json:"-"` }
func (*NetworkVirtualNetworkDeleteResponseEnvelope) UnmarshalJSON ¶
func (r *NetworkVirtualNetworkDeleteResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type NetworkVirtualNetworkDeleteResponseEnvelopeSuccess ¶
type NetworkVirtualNetworkDeleteResponseEnvelopeSuccess bool
Whether the API call was successful
const (
NetworkVirtualNetworkDeleteResponseEnvelopeSuccessTrue NetworkVirtualNetworkDeleteResponseEnvelopeSuccess = true
)
func (NetworkVirtualNetworkDeleteResponseEnvelopeSuccess) IsKnown ¶
func (r NetworkVirtualNetworkDeleteResponseEnvelopeSuccess) IsKnown() bool
type NetworkVirtualNetworkDeleteResponseUnion ¶
type NetworkVirtualNetworkDeleteResponseUnion interface {
ImplementsZeroTrustNetworkVirtualNetworkDeleteResponseUnion()
}
Union satisfied by zero_trust.NetworkVirtualNetworkDeleteResponseUnknown, zero_trust.NetworkVirtualNetworkDeleteResponseArray or shared.UnionString.
type NetworkVirtualNetworkEditParams ¶
type NetworkVirtualNetworkEditParams struct { // Cloudflare account ID AccountID param.Field[string] `path:"account_id,required"` // Optional remark describing the virtual network. Comment param.Field[string] `json:"comment"` // If `true`, this virtual network is the default for the account. IsDefaultNetwork param.Field[bool] `json:"is_default_network"` // A user-friendly name for the virtual network. Name param.Field[string] `json:"name"` }
func (NetworkVirtualNetworkEditParams) MarshalJSON ¶
func (r NetworkVirtualNetworkEditParams) MarshalJSON() (data []byte, err error)
type NetworkVirtualNetworkEditResponseArray ¶
type NetworkVirtualNetworkEditResponseArray []interface{}
func (NetworkVirtualNetworkEditResponseArray) ImplementsZeroTrustNetworkVirtualNetworkEditResponseUnion ¶
func (r NetworkVirtualNetworkEditResponseArray) ImplementsZeroTrustNetworkVirtualNetworkEditResponseUnion()
type NetworkVirtualNetworkEditResponseEnvelope ¶
type NetworkVirtualNetworkEditResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result NetworkVirtualNetworkEditResponseUnion `json:"result,required"` // Whether the API call was successful Success NetworkVirtualNetworkEditResponseEnvelopeSuccess `json:"success,required"` JSON networkVirtualNetworkEditResponseEnvelopeJSON `json:"-"` }
func (*NetworkVirtualNetworkEditResponseEnvelope) UnmarshalJSON ¶
func (r *NetworkVirtualNetworkEditResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type NetworkVirtualNetworkEditResponseEnvelopeSuccess ¶
type NetworkVirtualNetworkEditResponseEnvelopeSuccess bool
Whether the API call was successful
const (
NetworkVirtualNetworkEditResponseEnvelopeSuccessTrue NetworkVirtualNetworkEditResponseEnvelopeSuccess = true
)
func (NetworkVirtualNetworkEditResponseEnvelopeSuccess) IsKnown ¶
func (r NetworkVirtualNetworkEditResponseEnvelopeSuccess) IsKnown() bool
type NetworkVirtualNetworkEditResponseUnion ¶
type NetworkVirtualNetworkEditResponseUnion interface {
ImplementsZeroTrustNetworkVirtualNetworkEditResponseUnion()
}
Union satisfied by zero_trust.NetworkVirtualNetworkEditResponseUnknown, zero_trust.NetworkVirtualNetworkEditResponseArray or shared.UnionString.
type NetworkVirtualNetworkListParams ¶
type NetworkVirtualNetworkListParams struct { // Cloudflare account ID AccountID param.Field[string] `path:"account_id,required"` // If `true`, only include the default virtual network. If `false`, exclude the // default virtual network. If empty, all virtual networks will be included. IsDefault param.Field[interface{}] `query:"is_default"` // If `true`, only include deleted virtual networks. If `false`, exclude deleted // virtual networks. If empty, all virtual networks will be included. IsDeleted param.Field[interface{}] `query:"is_deleted"` // A user-friendly name for the virtual network. Name param.Field[string] `query:"name"` // UUID of the virtual network. VnetID param.Field[string] `query:"vnet_id"` // A user-friendly name for the virtual network. VnetName param.Field[string] `query:"vnet_name"` }
func (NetworkVirtualNetworkListParams) URLQuery ¶
func (r NetworkVirtualNetworkListParams) URLQuery() (v url.Values)
URLQuery serializes NetworkVirtualNetworkListParams's query parameters as `url.Values`.
type NetworkVirtualNetworkNewParams ¶
type NetworkVirtualNetworkNewParams struct { // Cloudflare account ID AccountID param.Field[string] `path:"account_id,required"` // A user-friendly name for the virtual network. Name param.Field[string] `json:"name,required"` // Optional remark describing the virtual network. Comment param.Field[string] `json:"comment"` // If `true`, this virtual network is the default for the account. IsDefault param.Field[bool] `json:"is_default"` }
func (NetworkVirtualNetworkNewParams) MarshalJSON ¶
func (r NetworkVirtualNetworkNewParams) MarshalJSON() (data []byte, err error)
type NetworkVirtualNetworkNewResponseArray ¶
type NetworkVirtualNetworkNewResponseArray []interface{}
func (NetworkVirtualNetworkNewResponseArray) ImplementsZeroTrustNetworkVirtualNetworkNewResponseUnion ¶
func (r NetworkVirtualNetworkNewResponseArray) ImplementsZeroTrustNetworkVirtualNetworkNewResponseUnion()
type NetworkVirtualNetworkNewResponseEnvelope ¶
type NetworkVirtualNetworkNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result NetworkVirtualNetworkNewResponseUnion `json:"result,required"` // Whether the API call was successful Success NetworkVirtualNetworkNewResponseEnvelopeSuccess `json:"success,required"` JSON networkVirtualNetworkNewResponseEnvelopeJSON `json:"-"` }
func (*NetworkVirtualNetworkNewResponseEnvelope) UnmarshalJSON ¶
func (r *NetworkVirtualNetworkNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type NetworkVirtualNetworkNewResponseEnvelopeSuccess ¶
type NetworkVirtualNetworkNewResponseEnvelopeSuccess bool
Whether the API call was successful
const (
NetworkVirtualNetworkNewResponseEnvelopeSuccessTrue NetworkVirtualNetworkNewResponseEnvelopeSuccess = true
)
func (NetworkVirtualNetworkNewResponseEnvelopeSuccess) IsKnown ¶
func (r NetworkVirtualNetworkNewResponseEnvelopeSuccess) IsKnown() bool
type NetworkVirtualNetworkNewResponseUnion ¶
type NetworkVirtualNetworkNewResponseUnion interface {
ImplementsZeroTrustNetworkVirtualNetworkNewResponseUnion()
}
Union satisfied by zero_trust.NetworkVirtualNetworkNewResponseUnknown, zero_trust.NetworkVirtualNetworkNewResponseArray or shared.UnionString.
type NetworkVirtualNetworkService ¶
type NetworkVirtualNetworkService struct {
Options []option.RequestOption
}
NetworkVirtualNetworkService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewNetworkVirtualNetworkService method instead.
func NewNetworkVirtualNetworkService ¶
func NewNetworkVirtualNetworkService(opts ...option.RequestOption) (r *NetworkVirtualNetworkService)
NewNetworkVirtualNetworkService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*NetworkVirtualNetworkService) Delete ¶
func (r *NetworkVirtualNetworkService) Delete(ctx context.Context, virtualNetworkID string, params NetworkVirtualNetworkDeleteParams, opts ...option.RequestOption) (res *NetworkVirtualNetworkDeleteResponseUnion, err error)
Deletes an existing virtual network.
func (*NetworkVirtualNetworkService) Edit ¶
func (r *NetworkVirtualNetworkService) Edit(ctx context.Context, virtualNetworkID string, params NetworkVirtualNetworkEditParams, opts ...option.RequestOption) (res *NetworkVirtualNetworkEditResponseUnion, err error)
Updates an existing virtual network.
func (*NetworkVirtualNetworkService) List ¶
func (r *NetworkVirtualNetworkService) List(ctx context.Context, params NetworkVirtualNetworkListParams, opts ...option.RequestOption) (res *pagination.SinglePage[VirtualNetwork], err error)
Lists and filters virtual networks in an account.
func (*NetworkVirtualNetworkService) ListAutoPaging ¶
func (r *NetworkVirtualNetworkService) ListAutoPaging(ctx context.Context, params NetworkVirtualNetworkListParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[VirtualNetwork]
Lists and filters virtual networks in an account.
func (*NetworkVirtualNetworkService) New ¶
func (r *NetworkVirtualNetworkService) New(ctx context.Context, params NetworkVirtualNetworkNewParams, opts ...option.RequestOption) (res *NetworkVirtualNetworkNewResponseUnion, err error)
Adds a new virtual network to an account.
type NewVersion ¶
type NewVersion struct { MaxCells int64 `json:"max_cells,required"` Version int64 `json:"version,required"` Secret string `json:"secret" format:"password"` JSON newVersionJSON `json:"-"` }
func (*NewVersion) UnmarshalJSON ¶
func (r *NewVersion) UnmarshalJSON(data []byte) (err error)
type NotificationSettings ¶
type NotificationSettings struct { // Set notification on Enabled bool `json:"enabled"` // Customize the message shown in the notification. Msg string `json:"msg"` // Optional URL to direct users to additional information. If not set, the // notification will open a block page. SupportURL string `json:"support_url"` JSON notificationSettingsJSON `json:"-"` }
Configure a message to display on the user's device when an antivirus search is performed.
func (*NotificationSettings) UnmarshalJSON ¶
func (r *NotificationSettings) UnmarshalJSON(data []byte) (err error)
type NotificationSettingsParam ¶
type NotificationSettingsParam struct { // Set notification on Enabled param.Field[bool] `json:"enabled"` // Customize the message shown in the notification. Msg param.Field[string] `json:"msg"` // Optional URL to direct users to additional information. If not set, the // notification will open a block page. SupportURL param.Field[string] `json:"support_url"` }
Configure a message to display on the user's device when an antivirus search is performed.
func (NotificationSettingsParam) MarshalJSON ¶
func (r NotificationSettingsParam) MarshalJSON() (data []byte, err error)
type OSVersionInput ¶
type OSVersionInput struct { // Operating System OperatingSystem OSVersionInputOperatingSystem `json:"operating_system,required"` // operator Operator OSVersionInputOperator `json:"operator,required"` // Version of OS Version string `json:"version,required"` // Operating System Distribution Name (linux only) OSDistroName string `json:"os_distro_name"` // Version of OS Distribution (linux only) OSDistroRevision string `json:"os_distro_revision"` // Additional version data. For Mac or iOS, the Product Verison Extra. For Linux, // the kernel release version. (Mac, iOS, and Linux only) OSVersionExtra string `json:"os_version_extra"` JSON osVersionInputJSON `json:"-"` }
func (*OSVersionInput) UnmarshalJSON ¶
func (r *OSVersionInput) UnmarshalJSON(data []byte) (err error)
type OSVersionInputOperatingSystem ¶
type OSVersionInputOperatingSystem string
Operating System
const (
OSVersionInputOperatingSystemWindows OSVersionInputOperatingSystem = "windows"
)
func (OSVersionInputOperatingSystem) IsKnown ¶
func (r OSVersionInputOperatingSystem) IsKnown() bool
type OSVersionInputOperator ¶
type OSVersionInputOperator string
operator
const ( OSVersionInputOperatorLess OSVersionInputOperator = "<" OSVersionInputOperatorLessOrEquals OSVersionInputOperator = "<=" OSVersionInputOperatorGreater OSVersionInputOperator = ">" OSVersionInputOperatorGreaterOrEquals OSVersionInputOperator = ">=" OSVersionInputOperatorEquals OSVersionInputOperator = "==" )
func (OSVersionInputOperator) IsKnown ¶
func (r OSVersionInputOperator) IsKnown() bool
type OSVersionInputParam ¶
type OSVersionInputParam struct { // Operating System OperatingSystem param.Field[OSVersionInputOperatingSystem] `json:"operating_system,required"` // operator Operator param.Field[OSVersionInputOperator] `json:"operator,required"` // Version of OS Version param.Field[string] `json:"version,required"` // Operating System Distribution Name (linux only) OSDistroName param.Field[string] `json:"os_distro_name"` // Version of OS Distribution (linux only) OSDistroRevision param.Field[string] `json:"os_distro_revision"` // Additional version data. For Mac or iOS, the Product Verison Extra. For Linux, // the kernel release version. (Mac, iOS, and Linux only) OSVersionExtra param.Field[string] `json:"os_version_extra"` }
func (OSVersionInputParam) MarshalJSON ¶
func (r OSVersionInputParam) MarshalJSON() (data []byte, err error)
type OktaGroupRule ¶
type OktaGroupRule struct { Okta OktaGroupRuleOkta `json:"okta,required"` JSON oktaGroupRuleJSON `json:"-"` }
Matches an Okta group. Requires an Okta identity provider.
func (*OktaGroupRule) UnmarshalJSON ¶
func (r *OktaGroupRule) UnmarshalJSON(data []byte) (err error)
type OktaGroupRuleOkta ¶
type OktaGroupRuleOkta struct { // The ID of your Okta identity provider. ConnectionID string `json:"connection_id,required"` // The email of the Okta group. Email string `json:"email,required"` JSON oktaGroupRuleOktaJSON `json:"-"` }
func (*OktaGroupRuleOkta) UnmarshalJSON ¶
func (r *OktaGroupRuleOkta) UnmarshalJSON(data []byte) (err error)
type OktaGroupRuleOktaParam ¶
type OktaGroupRuleOktaParam struct { // The ID of your Okta identity provider. ConnectionID param.Field[string] `json:"connection_id,required"` // The email of the Okta group. Email param.Field[string] `json:"email,required"` }
func (OktaGroupRuleOktaParam) MarshalJSON ¶
func (r OktaGroupRuleOktaParam) MarshalJSON() (data []byte, err error)
type OktaGroupRuleParam ¶
type OktaGroupRuleParam struct {
Okta param.Field[OktaGroupRuleOktaParam] `json:"okta,required"`
}
Matches an Okta group. Requires an Okta identity provider.
func (OktaGroupRuleParam) MarshalJSON ¶
func (r OktaGroupRuleParam) MarshalJSON() (data []byte, err error)
type Organization ¶
type Organization struct { // When set to true, users can authenticate via WARP for any application in your // organization. Application settings will take precedence over this value. AllowAuthenticateViaWARP bool `json:"allow_authenticate_via_warp"` // The unique subdomain assigned to your Zero Trust organization. AuthDomain string `json:"auth_domain"` // When set to `true`, users skip the identity provider selection step during // login. AutoRedirectToIdentity bool `json:"auto_redirect_to_identity"` CreatedAt time.Time `json:"created_at" format:"date-time"` CustomPages OrganizationCustomPages `json:"custom_pages"` // Lock all settings as Read-Only in the Dashboard, regardless of user permission. // Updates may only be made via the API or Terraform for this account when enabled. IsUiReadOnly bool `json:"is_ui_read_only"` LoginDesign LoginDesign `json:"login_design"` // The name of your Zero Trust organization. Name string `json:"name"` // The amount of time that tokens issued for applications will be valid. Must be in // the format `300ms` or `2h45m`. Valid time units are: ns, us (or µs), ms, s, m, // h. SessionDuration string `json:"session_duration"` // A description of the reason why the UI read only field is being toggled. UiReadOnlyToggleReason string `json:"ui_read_only_toggle_reason"` UpdatedAt time.Time `json:"updated_at" format:"date-time"` // The amount of time a user seat is inactive before it expires. When the user seat // exceeds the set time of inactivity, the user is removed as an active seat and no // longer counts against your Teams seat count. Must be in the format `300ms` or // `2h45m`. Valid time units are: `ns`, `us` (or `µs`), `ms`, `s`, `m`, `h`. UserSeatExpirationInactiveTime string `json:"user_seat_expiration_inactive_time"` // The amount of time that tokens issued for applications will be valid. Must be in // the format `30m` or `2h45m`. Valid time units are: m, h. WARPAuthSessionDuration string `json:"warp_auth_session_duration"` JSON organizationJSON `json:"-"` }
func (*Organization) UnmarshalJSON ¶
func (r *Organization) UnmarshalJSON(data []byte) (err error)
type OrganizationCustomPages ¶
type OrganizationCustomPages struct { // The uid of the custom page to use when a user is denied access after failing a // non-identity rule. Forbidden string `json:"forbidden"` // The uid of the custom page to use when a user is denied access. IdentityDenied string `json:"identity_denied"` JSON organizationCustomPagesJSON `json:"-"` }
func (*OrganizationCustomPages) UnmarshalJSON ¶
func (r *OrganizationCustomPages) UnmarshalJSON(data []byte) (err error)
type OrganizationListParams ¶
type OrganizationListResponseEnvelope ¶
type OrganizationListResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result Organization `json:"result,required"` // Whether the API call was successful Success OrganizationListResponseEnvelopeSuccess `json:"success,required"` JSON organizationListResponseEnvelopeJSON `json:"-"` }
func (*OrganizationListResponseEnvelope) UnmarshalJSON ¶
func (r *OrganizationListResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type OrganizationListResponseEnvelopeSuccess ¶
type OrganizationListResponseEnvelopeSuccess bool
Whether the API call was successful
const (
OrganizationListResponseEnvelopeSuccessTrue OrganizationListResponseEnvelopeSuccess = true
)
func (OrganizationListResponseEnvelopeSuccess) IsKnown ¶
func (r OrganizationListResponseEnvelopeSuccess) IsKnown() bool
type OrganizationNewParams ¶
type OrganizationNewParams struct { // The unique subdomain assigned to your Zero Trust organization. AuthDomain param.Field[string] `json:"auth_domain,required"` // The name of your Zero Trust organization. Name param.Field[string] `json:"name,required"` // The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. AccountID param.Field[string] `path:"account_id"` // The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. ZoneID param.Field[string] `path:"zone_id"` // When set to true, users can authenticate via WARP for any application in your // organization. Application settings will take precedence over this value. AllowAuthenticateViaWARP param.Field[bool] `json:"allow_authenticate_via_warp"` // When set to `true`, users skip the identity provider selection step during // login. AutoRedirectToIdentity param.Field[bool] `json:"auto_redirect_to_identity"` // Lock all settings as Read-Only in the Dashboard, regardless of user permission. // Updates may only be made via the API or Terraform for this account when enabled. IsUiReadOnly param.Field[bool] `json:"is_ui_read_only"` LoginDesign param.Field[LoginDesignParam] `json:"login_design"` // The amount of time that tokens issued for applications will be valid. Must be in // the format `300ms` or `2h45m`. Valid time units are: ns, us (or µs), ms, s, m, // h. SessionDuration param.Field[string] `json:"session_duration"` // A description of the reason why the UI read only field is being toggled. UiReadOnlyToggleReason param.Field[string] `json:"ui_read_only_toggle_reason"` // The amount of time a user seat is inactive before it expires. When the user seat // exceeds the set time of inactivity, the user is removed as an active seat and no // longer counts against your Teams seat count. Must be in the format `300ms` or // `2h45m`. Valid time units are: `ns`, `us` (or `µs`), `ms`, `s`, `m`, `h`. UserSeatExpirationInactiveTime param.Field[string] `json:"user_seat_expiration_inactive_time"` // The amount of time that tokens issued for applications will be valid. Must be in // the format `30m` or `2h45m`. Valid time units are: m, h. WARPAuthSessionDuration param.Field[string] `json:"warp_auth_session_duration"` }
func (OrganizationNewParams) MarshalJSON ¶
func (r OrganizationNewParams) MarshalJSON() (data []byte, err error)
type OrganizationNewResponseEnvelope ¶
type OrganizationNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result Organization `json:"result,required"` // Whether the API call was successful Success OrganizationNewResponseEnvelopeSuccess `json:"success,required"` JSON organizationNewResponseEnvelopeJSON `json:"-"` }
func (*OrganizationNewResponseEnvelope) UnmarshalJSON ¶
func (r *OrganizationNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type OrganizationNewResponseEnvelopeSuccess ¶
type OrganizationNewResponseEnvelopeSuccess bool
Whether the API call was successful
const (
OrganizationNewResponseEnvelopeSuccessTrue OrganizationNewResponseEnvelopeSuccess = true
)
func (OrganizationNewResponseEnvelopeSuccess) IsKnown ¶
func (r OrganizationNewResponseEnvelopeSuccess) IsKnown() bool
type OrganizationRevokeUsersParams ¶
type OrganizationRevokeUsersParams struct { // The email of the user to revoke. Email param.Field[string] `json:"email,required"` // The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. AccountID param.Field[string] `path:"account_id"` // The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. ZoneID param.Field[string] `path:"zone_id"` }
func (OrganizationRevokeUsersParams) MarshalJSON ¶
func (r OrganizationRevokeUsersParams) MarshalJSON() (data []byte, err error)
type OrganizationRevokeUsersResponse ¶
type OrganizationRevokeUsersResponse bool
const ( OrganizationRevokeUsersResponseTrue OrganizationRevokeUsersResponse = true OrganizationRevokeUsersResponseFalse OrganizationRevokeUsersResponse = false )
func (OrganizationRevokeUsersResponse) IsKnown ¶
func (r OrganizationRevokeUsersResponse) IsKnown() bool
type OrganizationRevokeUsersResponseEnvelope ¶
type OrganizationRevokeUsersResponseEnvelope struct { Result OrganizationRevokeUsersResponse `json:"result"` Success OrganizationRevokeUsersResponseEnvelopeSuccess `json:"success"` JSON organizationRevokeUsersResponseEnvelopeJSON `json:"-"` }
func (*OrganizationRevokeUsersResponseEnvelope) UnmarshalJSON ¶
func (r *OrganizationRevokeUsersResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type OrganizationRevokeUsersResponseEnvelopeSuccess ¶
type OrganizationRevokeUsersResponseEnvelopeSuccess bool
const ( OrganizationRevokeUsersResponseEnvelopeSuccessTrue OrganizationRevokeUsersResponseEnvelopeSuccess = true OrganizationRevokeUsersResponseEnvelopeSuccessFalse OrganizationRevokeUsersResponseEnvelopeSuccess = false )
func (OrganizationRevokeUsersResponseEnvelopeSuccess) IsKnown ¶
func (r OrganizationRevokeUsersResponseEnvelopeSuccess) IsKnown() bool
type OrganizationService ¶
type OrganizationService struct {
Options []option.RequestOption
}
OrganizationService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewOrganizationService method instead.
func NewOrganizationService ¶
func NewOrganizationService(opts ...option.RequestOption) (r *OrganizationService)
NewOrganizationService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*OrganizationService) List ¶
func (r *OrganizationService) List(ctx context.Context, query OrganizationListParams, opts ...option.RequestOption) (res *Organization, err error)
Returns the configuration for your Zero Trust organization.
func (*OrganizationService) New ¶
func (r *OrganizationService) New(ctx context.Context, params OrganizationNewParams, opts ...option.RequestOption) (res *Organization, err error)
Sets up a Zero Trust organization for your account or zone.
func (*OrganizationService) RevokeUsers ¶
func (r *OrganizationService) RevokeUsers(ctx context.Context, params OrganizationRevokeUsersParams, opts ...option.RequestOption) (res *OrganizationRevokeUsersResponse, err error)
Revokes a user's access across all applications.
func (*OrganizationService) Update ¶
func (r *OrganizationService) Update(ctx context.Context, params OrganizationUpdateParams, opts ...option.RequestOption) (res *Organization, err error)
Updates the configuration for your Zero Trust organization.
type OrganizationUpdateParams ¶
type OrganizationUpdateParams struct { // The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. AccountID param.Field[string] `path:"account_id"` // The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. ZoneID param.Field[string] `path:"zone_id"` // When set to true, users can authenticate via WARP for any application in your // organization. Application settings will take precedence over this value. AllowAuthenticateViaWARP param.Field[bool] `json:"allow_authenticate_via_warp"` // The unique subdomain assigned to your Zero Trust organization. AuthDomain param.Field[string] `json:"auth_domain"` // When set to `true`, users skip the identity provider selection step during // login. AutoRedirectToIdentity param.Field[bool] `json:"auto_redirect_to_identity"` CustomPages param.Field[OrganizationUpdateParamsCustomPages] `json:"custom_pages"` // Lock all settings as Read-Only in the Dashboard, regardless of user permission. // Updates may only be made via the API or Terraform for this account when enabled. IsUiReadOnly param.Field[bool] `json:"is_ui_read_only"` LoginDesign param.Field[LoginDesignParam] `json:"login_design"` // The name of your Zero Trust organization. Name param.Field[string] `json:"name"` // The amount of time that tokens issued for applications will be valid. Must be in // the format `300ms` or `2h45m`. Valid time units are: ns, us (or µs), ms, s, m, // h. SessionDuration param.Field[string] `json:"session_duration"` // A description of the reason why the UI read only field is being toggled. UiReadOnlyToggleReason param.Field[string] `json:"ui_read_only_toggle_reason"` // The amount of time a user seat is inactive before it expires. When the user seat // exceeds the set time of inactivity, the user is removed as an active seat and no // longer counts against your Teams seat count. Must be in the format `300ms` or // `2h45m`. Valid time units are: `ns`, `us` (or `µs`), `ms`, `s`, `m`, `h`. UserSeatExpirationInactiveTime param.Field[string] `json:"user_seat_expiration_inactive_time"` // The amount of time that tokens issued for applications will be valid. Must be in // the format `30m` or `2h45m`. Valid time units are: m, h. WARPAuthSessionDuration param.Field[string] `json:"warp_auth_session_duration"` }
func (OrganizationUpdateParams) MarshalJSON ¶
func (r OrganizationUpdateParams) MarshalJSON() (data []byte, err error)
type OrganizationUpdateParamsCustomPages ¶
type OrganizationUpdateParamsCustomPages struct { // The uid of the custom page to use when a user is denied access after failing a // non-identity rule. Forbidden param.Field[string] `json:"forbidden"` // The uid of the custom page to use when a user is denied access. IdentityDenied param.Field[string] `json:"identity_denied"` }
func (OrganizationUpdateParamsCustomPages) MarshalJSON ¶
func (r OrganizationUpdateParamsCustomPages) MarshalJSON() (data []byte, err error)
type OrganizationUpdateResponseEnvelope ¶
type OrganizationUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result Organization `json:"result,required"` // Whether the API call was successful Success OrganizationUpdateResponseEnvelopeSuccess `json:"success,required"` JSON organizationUpdateResponseEnvelopeJSON `json:"-"` }
func (*OrganizationUpdateResponseEnvelope) UnmarshalJSON ¶
func (r *OrganizationUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type OrganizationUpdateResponseEnvelopeSuccess ¶
type OrganizationUpdateResponseEnvelopeSuccess bool
Whether the API call was successful
const (
OrganizationUpdateResponseEnvelopeSuccessTrue OrganizationUpdateResponseEnvelopeSuccess = true
)
func (OrganizationUpdateResponseEnvelopeSuccess) IsKnown ¶
func (r OrganizationUpdateResponseEnvelopeSuccess) IsKnown() bool
type Pattern ¶
type Pattern struct { // The regex pattern. Regex string `json:"regex,required"` // Validation algorithm for the pattern. This algorithm will get run on potential // matches, and if it returns false, the entry will not be matched. Validation PatternValidation `json:"validation"` JSON patternJSON `json:"-"` }
A pattern that matches an entry
func (*Pattern) UnmarshalJSON ¶
type PatternParam ¶
type PatternParam struct { // The regex pattern. Regex param.Field[string] `json:"regex,required"` // Validation algorithm for the pattern. This algorithm will get run on potential // matches, and if it returns false, the entry will not be matched. Validation param.Field[PatternValidation] `json:"validation"` }
A pattern that matches an entry
func (PatternParam) MarshalJSON ¶
func (r PatternParam) MarshalJSON() (data []byte, err error)
type PatternValidation ¶
type PatternValidation string
Validation algorithm for the pattern. This algorithm will get run on potential matches, and if it returns false, the entry will not be matched.
const (
PatternValidationLuhn PatternValidation = "luhn"
)
func (PatternValidation) IsKnown ¶
func (r PatternValidation) IsKnown() bool
type Percentiles ¶
type Percentiles struct { // p50 observed in the time period P50 float64 `json:"p50,nullable"` // p90 observed in the time period P90 float64 `json:"p90,nullable"` // p95 observed in the time period P95 float64 `json:"p95,nullable"` // p99 observed in the time period P99 float64 `json:"p99,nullable"` JSON percentilesJSON `json:"-"` }
func (*Percentiles) UnmarshalJSON ¶
func (r *Percentiles) UnmarshalJSON(data []byte) (err error)
type PermissionGrant ¶
type PermissionGrant = shared.PermissionGrant
This is an alias to an internal type.
type PermissionGrantParam ¶
type PermissionGrantParam = shared.PermissionGrantParam
This is an alias to an internal type.
type Policy ¶
type Policy struct { // UUID ID string `json:"id"` // Administrators who can approve a temporary authentication request. ApprovalGroups []ApprovalGroup `json:"approval_groups"` // Requires the user to request access from an administrator at the start of each // session. ApprovalRequired bool `json:"approval_required"` CreatedAt time.Time `json:"created_at" format:"date-time"` // The action Access will take if a user matches this policy. Decision PolicyDecision `json:"decision"` // Rules evaluated with a NOT logical operator. To match the policy, a user cannot // meet any of the Exclude rules. Exclude []AccessRule `json:"exclude"` // Rules evaluated with an OR logical operator. A user needs to meet only one of // the Include rules. Include []AccessRule `json:"include"` // Require this application to be served in an isolated browser for users matching // this policy. 'Client Web Isolation' must be on for the account in order to use // this feature. IsolationRequired bool `json:"isolation_required"` // The name of the Access policy. Name string `json:"name"` // The order of execution for this policy. Must be unique for each policy. Precedence int64 `json:"precedence"` // A custom message that will appear on the purpose justification screen. PurposeJustificationPrompt string `json:"purpose_justification_prompt"` // Require users to enter a justification when they log in to the application. PurposeJustificationRequired bool `json:"purpose_justification_required"` // Rules evaluated with an AND logical operator. To match the policy, a user must // meet all of the Require rules. Require []AccessRule `json:"require"` // The amount of time that tokens issued for the application will be valid. Must be // in the format `300ms` or `2h45m`. Valid time units are: ns, us (or µs), ms, s, // m, h. SessionDuration string `json:"session_duration"` UpdatedAt time.Time `json:"updated_at" format:"date-time"` JSON policyJSON `json:"-"` }
func (*Policy) UnmarshalJSON ¶
type PolicyDecision ¶
type PolicyDecision string
The action Access will take if a user matches this policy.
const ( PolicyDecisionAllow PolicyDecision = "allow" PolicyDecisionDeny PolicyDecision = "deny" PolicyDecisionNonIdentity PolicyDecision = "non_identity" PolicyDecisionBypass PolicyDecision = "bypass" )
func (PolicyDecision) IsKnown ¶
func (r PolicyDecision) IsKnown() bool
type PolicyParam ¶
type PolicyParam struct { // Administrators who can approve a temporary authentication request. ApprovalGroups param.Field[[]ApprovalGroupParam] `json:"approval_groups"` // Requires the user to request access from an administrator at the start of each // session. ApprovalRequired param.Field[bool] `json:"approval_required"` // The action Access will take if a user matches this policy. Decision param.Field[PolicyDecision] `json:"decision"` // Rules evaluated with a NOT logical operator. To match the policy, a user cannot // meet any of the Exclude rules. Exclude param.Field[[]AccessRuleUnionParam] `json:"exclude"` // Rules evaluated with an OR logical operator. A user needs to meet only one of // the Include rules. Include param.Field[[]AccessRuleUnionParam] `json:"include"` // Require this application to be served in an isolated browser for users matching // this policy. 'Client Web Isolation' must be on for the account in order to use // this feature. IsolationRequired param.Field[bool] `json:"isolation_required"` // The name of the Access policy. Name param.Field[string] `json:"name"` // The order of execution for this policy. Must be unique for each policy. Precedence param.Field[int64] `json:"precedence"` // A custom message that will appear on the purpose justification screen. PurposeJustificationPrompt param.Field[string] `json:"purpose_justification_prompt"` // Require users to enter a justification when they log in to the application. PurposeJustificationRequired param.Field[bool] `json:"purpose_justification_required"` // Rules evaluated with an AND logical operator. To match the policy, a user must // meet all of the Require rules. Require param.Field[[]AccessRuleUnionParam] `json:"require"` // The amount of time that tokens issued for the application will be valid. Must be // in the format `300ms` or `2h45m`. Valid time units are: ns, us (or µs), ms, s, // m, h. SessionDuration param.Field[string] `json:"session_duration"` }
func (PolicyParam) MarshalJSON ¶
func (r PolicyParam) MarshalJSON() (data []byte, err error)
type PredefinedProfile ¶
type PredefinedProfile struct { // The ID for this profile ID string `json:"id"` // Related DLP policies will trigger when the match count exceeds the number set. AllowedMatchCount float64 `json:"allowed_match_count"` // Scan the context of predefined entries to only return matches surrounded by // keywords. ContextAwareness ContextAwareness `json:"context_awareness"` // The entries for this profile. Entries []PredefinedProfileEntry `json:"entries"` // The name of the profile. Name string `json:"name"` // If true, scan images via OCR to determine if any text present matches filters. OCREnabled bool `json:"ocr_enabled"` // The type of the profile. Type PredefinedProfileType `json:"type"` JSON predefinedProfileJSON `json:"-"` }
func (*PredefinedProfile) UnmarshalJSON ¶
func (r *PredefinedProfile) UnmarshalJSON(data []byte) (err error)
type PredefinedProfileEntry ¶
type PredefinedProfileEntry struct { // The ID for this entry ID string `json:"id"` // Whether the entry is enabled or not. Enabled bool `json:"enabled"` // The name of the entry. Name string `json:"name"` // ID of the parent profile ProfileID interface{} `json:"profile_id"` JSON predefinedProfileEntryJSON `json:"-"` }
A predefined entry that matches a profile
func (*PredefinedProfileEntry) UnmarshalJSON ¶
func (r *PredefinedProfileEntry) UnmarshalJSON(data []byte) (err error)
type PredefinedProfileType ¶
type PredefinedProfileType string
The type of the profile.
const (
PredefinedProfileTypePredefined PredefinedProfileType = "predefined"
)
func (PredefinedProfileType) IsKnown ¶
func (r PredefinedProfileType) IsKnown() bool
type Profile ¶
type Profile struct { // Related DLP policies will trigger when the match count exceeds the number set. AllowedMatchCount float64 `json:"allowed_match_count"` // Scan the context of predefined entries to only return matches surrounded by // keywords. ContextAwareness ContextAwareness `json:"context_awareness"` Entries interface{} `json:"entries,required"` // The ID for this profile ID string `json:"id"` // The name of the profile. Name string `json:"name"` // If true, scan images via OCR to determine if any text present matches filters. OCREnabled bool `json:"ocr_enabled"` // The type of the profile. Type ProfileType `json:"type"` CreatedAt time.Time `json:"created_at" format:"date-time"` // The description of the profile. Description string `json:"description"` UpdatedAt time.Time `json:"updated_at" format:"date-time"` JSON profileJSON `json:"-"` // contains filtered or unexported fields }
func (Profile) AsUnion ¶
func (r Profile) AsUnion() ProfileUnion
func (*Profile) UnmarshalJSON ¶
type ProfileDLPIntegrationProfile ¶
type ProfileDLPIntegrationProfile struct { // The ID for this profile ID string `json:"id"` CreatedAt time.Time `json:"created_at" format:"date-time"` // The description of the profile. Description string `json:"description"` // The entries for this profile. Entries []ProfileDLPIntegrationProfileEntry `json:"entries"` // The name of the profile. Name string `json:"name"` // The type of the profile. Type ProfileDLPIntegrationProfileType `json:"type"` UpdatedAt time.Time `json:"updated_at" format:"date-time"` JSON profileDLPIntegrationProfileJSON `json:"-"` }
func (*ProfileDLPIntegrationProfile) UnmarshalJSON ¶
func (r *ProfileDLPIntegrationProfile) UnmarshalJSON(data []byte) (err error)
type ProfileDLPIntegrationProfileEntry ¶
type ProfileDLPIntegrationProfileEntry struct { // The ID for this entry ID string `json:"id"` CreatedAt time.Time `json:"created_at" format:"date-time"` // Whether the entry is enabled or not. Enabled bool `json:"enabled"` // The name of the entry. Name string `json:"name"` // ID of the parent profile ProfileID interface{} `json:"profile_id"` UpdatedAt time.Time `json:"updated_at" format:"date-time"` JSON profileDLPIntegrationProfileEntryJSON `json:"-"` }
An entry derived from an integration
func (*ProfileDLPIntegrationProfileEntry) UnmarshalJSON ¶
func (r *ProfileDLPIntegrationProfileEntry) UnmarshalJSON(data []byte) (err error)
type ProfileDLPIntegrationProfileType ¶
type ProfileDLPIntegrationProfileType string
The type of the profile.
const (
ProfileDLPIntegrationProfileTypeIntegration ProfileDLPIntegrationProfileType = "integration"
)
func (ProfileDLPIntegrationProfileType) IsKnown ¶
func (r ProfileDLPIntegrationProfileType) IsKnown() bool
type ProfileType ¶
type ProfileType string
The type of the profile.
const ( ProfileTypePredefined ProfileType = "predefined" ProfileTypeCustom ProfileType = "custom" ProfileTypeIntegration ProfileType = "integration" )
func (ProfileType) IsKnown ¶
func (r ProfileType) IsKnown() bool
type ProfileUnion ¶
type ProfileUnion interface {
// contains filtered or unexported methods
}
Union satisfied by zero_trust.PredefinedProfile, zero_trust.CustomProfile or zero_trust.ProfileDLPIntegrationProfile.
type ProtocolDetection ¶
type ProtocolDetection struct { // Enable detecting protocol on initial bytes of client traffic. Enabled bool `json:"enabled"` JSON protocolDetectionJSON `json:"-"` }
Protocol Detection settings.
func (*ProtocolDetection) UnmarshalJSON ¶
func (r *ProtocolDetection) UnmarshalJSON(data []byte) (err error)
type ProtocolDetectionParam ¶
type ProtocolDetectionParam struct { // Enable detecting protocol on initial bytes of client traffic. Enabled param.Field[bool] `json:"enabled"` }
Protocol Detection settings.
func (ProtocolDetectionParam) MarshalJSON ¶
func (r ProtocolDetectionParam) MarshalJSON() (data []byte, err error)
type ProxyEndpoint ¶
type ProxyEndpoint struct { ID string `json:"id"` CreatedAt time.Time `json:"created_at" format:"date-time"` // A list of CIDRs to restrict ingress connections. IPs []GatewayIPs `json:"ips"` // The name of the proxy endpoint. Name string `json:"name"` // The subdomain to be used as the destination in the proxy client. Subdomain string `json:"subdomain"` UpdatedAt time.Time `json:"updated_at" format:"date-time"` JSON proxyEndpointJSON `json:"-"` }
func (*ProxyEndpoint) UnmarshalJSON ¶
func (r *ProxyEndpoint) UnmarshalJSON(data []byte) (err error)
type Route ¶
type Route struct { // UUID of the route. ID string `json:"id"` // Optional remark describing the route. Comment string `json:"comment"` // Timestamp of when the route was created. CreatedAt interface{} `json:"created_at"` // Timestamp of when the route was deleted. If `null`, the route has not been // deleted. DeletedAt time.Time `json:"deleted_at,nullable" format:"date-time"` // The private IPv4 or IPv6 range connected by the route, in CIDR notation. Network string `json:"network"` // UUID of the Cloudflare Tunnel serving the route. TunnelID interface{} `json:"tunnel_id"` // UUID of the Tunnel Virtual Network this route belongs to. If no virtual networks // are configured, the route is assigned to the default virtual network of the // account. VirtualNetworkID interface{} `json:"virtual_network_id"` JSON routeJSON `json:"-"` }
func (*Route) UnmarshalJSON ¶
type RouteParam ¶
type RouteParam struct { // Optional remark describing the route. Comment param.Field[string] `json:"comment"` // Timestamp of when the route was created. CreatedAt param.Field[interface{}] `json:"created_at"` // The private IPv4 or IPv6 range connected by the route, in CIDR notation. Network param.Field[string] `json:"network"` // UUID of the Cloudflare Tunnel serving the route. TunnelID param.Field[interface{}] `json:"tunnel_id"` // UUID of the Tunnel Virtual Network this route belongs to. If no virtual networks // are configured, the route is assigned to the default virtual network of the // account. VirtualNetworkID param.Field[interface{}] `json:"virtual_network_id"` }
func (RouteParam) MarshalJSON ¶
func (r RouteParam) MarshalJSON() (data []byte, err error)
type RuleSetting ¶
type RuleSetting struct { // Add custom headers to allowed requests, in the form of key-value pairs. Keys are // header names, pointing to an array with its header value(s). AddHeaders interface{} `json:"add_headers"` // Set by parent MSP accounts to enable their children to bypass this rule. AllowChildBypass bool `json:"allow_child_bypass"` // Settings for the Audit SSH action. AuditSSH RuleSettingAuditSSH `json:"audit_ssh"` // Configure how browser isolation behaves. BisoAdminControls RuleSettingBisoAdminControls `json:"biso_admin_controls"` // Enable the custom block page. BlockPageEnabled bool `json:"block_page_enabled"` // The text describing why this block occurred, displayed on the custom block page // (if enabled). BlockReason string `json:"block_reason"` // Set by children MSP accounts to bypass their parent's rules. BypassParentRule bool `json:"bypass_parent_rule"` // Configure how session check behaves. CheckSession RuleSettingCheckSession `json:"check_session"` // Add your own custom resolvers to route queries that match the resolver policy. // Cannot be used when resolve_dns_through_cloudflare is set. DNS queries will // route to the address closest to their origin. Only valid when a rule's action is // set to 'resolve'. DNSResolvers RuleSettingDNSResolvers `json:"dns_resolvers"` // Configure how Gateway Proxy traffic egresses. You can enable this setting for // rules with Egress actions and filters, or omit it to indicate local egress via // WARP IPs. Egress RuleSettingEgress `json:"egress"` // INSECURE - disable DNSSEC validation (for Allow actions). InsecureDisableDNSSECValidation bool `json:"insecure_disable_dnssec_validation"` // Set to true to enable IPs in DNS resolver category blocks. By default categories // only block based on domain names. IPCategories bool `json:"ip_categories"` // Set to true to include IPs in DNS resolver indicator feed blocks. By default // indicator feeds only block based on domain names. IPIndicatorFeeds bool `json:"ip_indicator_feeds"` // Send matching traffic to the supplied destination IP address and port. L4override RuleSettingL4override `json:"l4override"` // Configure a notification to display on the user's device when this rule is // matched. NotificationSettings RuleSettingNotificationSettings `json:"notification_settings"` // Override matching DNS queries with a hostname. OverrideHost string `json:"override_host"` // Override matching DNS queries with an IP or set of IPs. OverrideIPs []string `json:"override_ips"` // Configure DLP payload logging. PayloadLog RuleSettingPayloadLog `json:"payload_log"` // Enable to send queries that match the policy to Cloudflare's default 1.1.1.1 DNS // resolver. Cannot be set when dns_resolvers are specified. Only valid when a // rule's action is set to 'resolve'. ResolveDNSThroughCloudflare bool `json:"resolve_dns_through_cloudflare"` // Configure behavior when an upstream cert is invalid or an SSL error occurs. UntrustedCERT RuleSettingUntrustedCERT `json:"untrusted_cert"` JSON ruleSettingJSON `json:"-"` }
Additional settings that modify the rule's action.
func (*RuleSetting) UnmarshalJSON ¶
func (r *RuleSetting) UnmarshalJSON(data []byte) (err error)
type RuleSettingAuditSSH ¶
type RuleSettingAuditSSH struct { // Enable to turn on SSH command logging. CommandLogging bool `json:"command_logging"` JSON ruleSettingAuditSSHJSON `json:"-"` }
Settings for the Audit SSH action.
func (*RuleSettingAuditSSH) UnmarshalJSON ¶
func (r *RuleSettingAuditSSH) UnmarshalJSON(data []byte) (err error)
type RuleSettingAuditSSHParam ¶
type RuleSettingAuditSSHParam struct { // Enable to turn on SSH command logging. CommandLogging param.Field[bool] `json:"command_logging"` }
Settings for the Audit SSH action.
func (RuleSettingAuditSSHParam) MarshalJSON ¶
func (r RuleSettingAuditSSHParam) MarshalJSON() (data []byte, err error)
type RuleSettingBisoAdminControls ¶
type RuleSettingBisoAdminControls struct { // Set to true to enable copy-pasting. Dcp bool `json:"dcp"` // Set to true to enable downloading. Dd bool `json:"dd"` // Set to true to enable keyboard usage. Dk bool `json:"dk"` // Set to true to enable printing. Dp bool `json:"dp"` // Set to true to enable uploading. Du bool `json:"du"` JSON ruleSettingBisoAdminControlsJSON `json:"-"` }
Configure how browser isolation behaves.
func (*RuleSettingBisoAdminControls) UnmarshalJSON ¶
func (r *RuleSettingBisoAdminControls) UnmarshalJSON(data []byte) (err error)
type RuleSettingBisoAdminControlsParam ¶
type RuleSettingBisoAdminControlsParam struct { // Set to true to enable copy-pasting. Dcp param.Field[bool] `json:"dcp"` // Set to true to enable downloading. Dd param.Field[bool] `json:"dd"` // Set to true to enable keyboard usage. Dk param.Field[bool] `json:"dk"` // Set to true to enable printing. Dp param.Field[bool] `json:"dp"` // Set to true to enable uploading. Du param.Field[bool] `json:"du"` }
Configure how browser isolation behaves.
func (RuleSettingBisoAdminControlsParam) MarshalJSON ¶
func (r RuleSettingBisoAdminControlsParam) MarshalJSON() (data []byte, err error)
type RuleSettingCheckSession ¶
type RuleSettingCheckSession struct { // Configure how fresh the session needs to be to be considered valid. Duration string `json:"duration"` // Set to true to enable session enforcement. Enforce bool `json:"enforce"` JSON ruleSettingCheckSessionJSON `json:"-"` }
Configure how session check behaves.
func (*RuleSettingCheckSession) UnmarshalJSON ¶
func (r *RuleSettingCheckSession) UnmarshalJSON(data []byte) (err error)
type RuleSettingCheckSessionParam ¶
type RuleSettingCheckSessionParam struct { // Configure how fresh the session needs to be to be considered valid. Duration param.Field[string] `json:"duration"` // Set to true to enable session enforcement. Enforce param.Field[bool] `json:"enforce"` }
Configure how session check behaves.
func (RuleSettingCheckSessionParam) MarshalJSON ¶
func (r RuleSettingCheckSessionParam) MarshalJSON() (data []byte, err error)
type RuleSettingDNSResolvers ¶
type RuleSettingDNSResolvers struct { IPV4 []DNSResolverSettingsV4 `json:"ipv4"` IPV6 []DNSResolverSettingsV6 `json:"ipv6"` JSON ruleSettingDNSResolversJSON `json:"-"` }
Add your own custom resolvers to route queries that match the resolver policy. Cannot be used when resolve_dns_through_cloudflare is set. DNS queries will route to the address closest to their origin. Only valid when a rule's action is set to 'resolve'.
func (*RuleSettingDNSResolvers) UnmarshalJSON ¶
func (r *RuleSettingDNSResolvers) UnmarshalJSON(data []byte) (err error)
type RuleSettingDNSResolversParam ¶
type RuleSettingDNSResolversParam struct { IPV4 param.Field[[]DNSResolverSettingsV4Param] `json:"ipv4"` IPV6 param.Field[[]DNSResolverSettingsV6Param] `json:"ipv6"` }
Add your own custom resolvers to route queries that match the resolver policy. Cannot be used when resolve_dns_through_cloudflare is set. DNS queries will route to the address closest to their origin. Only valid when a rule's action is set to 'resolve'.
func (RuleSettingDNSResolversParam) MarshalJSON ¶
func (r RuleSettingDNSResolversParam) MarshalJSON() (data []byte, err error)
type RuleSettingEgress ¶
type RuleSettingEgress struct { // The IPv4 address to be used for egress. IPV4 string `json:"ipv4"` // The fallback IPv4 address to be used for egress in the event of an error // egressing with the primary IPv4. Can be '0.0.0.0' to indicate local egress via // WARP IPs. IPV4Fallback string `json:"ipv4_fallback"` // The IPv6 range to be used for egress. IPV6 string `json:"ipv6"` JSON ruleSettingEgressJSON `json:"-"` }
Configure how Gateway Proxy traffic egresses. You can enable this setting for rules with Egress actions and filters, or omit it to indicate local egress via WARP IPs.
func (*RuleSettingEgress) UnmarshalJSON ¶
func (r *RuleSettingEgress) UnmarshalJSON(data []byte) (err error)
type RuleSettingEgressParam ¶
type RuleSettingEgressParam struct { // The IPv4 address to be used for egress. IPV4 param.Field[string] `json:"ipv4"` // The fallback IPv4 address to be used for egress in the event of an error // egressing with the primary IPv4. Can be '0.0.0.0' to indicate local egress via // WARP IPs. IPV4Fallback param.Field[string] `json:"ipv4_fallback"` // The IPv6 range to be used for egress. IPV6 param.Field[string] `json:"ipv6"` }
Configure how Gateway Proxy traffic egresses. You can enable this setting for rules with Egress actions and filters, or omit it to indicate local egress via WARP IPs.
func (RuleSettingEgressParam) MarshalJSON ¶
func (r RuleSettingEgressParam) MarshalJSON() (data []byte, err error)
type RuleSettingL4override ¶
type RuleSettingL4override struct { // IPv4 or IPv6 address. IP string `json:"ip"` // A port number to use for TCP/UDP overrides. Port int64 `json:"port"` JSON ruleSettingL4overrideJSON `json:"-"` }
Send matching traffic to the supplied destination IP address and port.
func (*RuleSettingL4override) UnmarshalJSON ¶
func (r *RuleSettingL4override) UnmarshalJSON(data []byte) (err error)
type RuleSettingL4overrideParam ¶
type RuleSettingL4overrideParam struct { // IPv4 or IPv6 address. IP param.Field[string] `json:"ip"` // A port number to use for TCP/UDP overrides. Port param.Field[int64] `json:"port"` }
Send matching traffic to the supplied destination IP address and port.
func (RuleSettingL4overrideParam) MarshalJSON ¶
func (r RuleSettingL4overrideParam) MarshalJSON() (data []byte, err error)
type RuleSettingNotificationSettings ¶
type RuleSettingNotificationSettings struct { // Set notification on Enabled bool `json:"enabled"` // Customize the message shown in the notification. Msg string `json:"msg"` // Optional URL to direct users to additional information. If not set, the // notification will open a block page. SupportURL string `json:"support_url"` JSON ruleSettingNotificationSettingsJSON `json:"-"` }
Configure a notification to display on the user's device when this rule is matched.
func (*RuleSettingNotificationSettings) UnmarshalJSON ¶
func (r *RuleSettingNotificationSettings) UnmarshalJSON(data []byte) (err error)
type RuleSettingNotificationSettingsParam ¶
type RuleSettingNotificationSettingsParam struct { // Set notification on Enabled param.Field[bool] `json:"enabled"` // Customize the message shown in the notification. Msg param.Field[string] `json:"msg"` // Optional URL to direct users to additional information. If not set, the // notification will open a block page. SupportURL param.Field[string] `json:"support_url"` }
Configure a notification to display on the user's device when this rule is matched.
func (RuleSettingNotificationSettingsParam) MarshalJSON ¶
func (r RuleSettingNotificationSettingsParam) MarshalJSON() (data []byte, err error)
type RuleSettingParam ¶
type RuleSettingParam struct { // Add custom headers to allowed requests, in the form of key-value pairs. Keys are // header names, pointing to an array with its header value(s). AddHeaders param.Field[interface{}] `json:"add_headers"` // Set by parent MSP accounts to enable their children to bypass this rule. AllowChildBypass param.Field[bool] `json:"allow_child_bypass"` // Settings for the Audit SSH action. AuditSSH param.Field[RuleSettingAuditSSHParam] `json:"audit_ssh"` // Configure how browser isolation behaves. BisoAdminControls param.Field[RuleSettingBisoAdminControlsParam] `json:"biso_admin_controls"` // Enable the custom block page. BlockPageEnabled param.Field[bool] `json:"block_page_enabled"` // The text describing why this block occurred, displayed on the custom block page // (if enabled). BlockReason param.Field[string] `json:"block_reason"` // Set by children MSP accounts to bypass their parent's rules. BypassParentRule param.Field[bool] `json:"bypass_parent_rule"` // Configure how session check behaves. CheckSession param.Field[RuleSettingCheckSessionParam] `json:"check_session"` // Add your own custom resolvers to route queries that match the resolver policy. // Cannot be used when resolve_dns_through_cloudflare is set. DNS queries will // route to the address closest to their origin. Only valid when a rule's action is // set to 'resolve'. DNSResolvers param.Field[RuleSettingDNSResolversParam] `json:"dns_resolvers"` // Configure how Gateway Proxy traffic egresses. You can enable this setting for // rules with Egress actions and filters, or omit it to indicate local egress via // WARP IPs. Egress param.Field[RuleSettingEgressParam] `json:"egress"` // INSECURE - disable DNSSEC validation (for Allow actions). InsecureDisableDNSSECValidation param.Field[bool] `json:"insecure_disable_dnssec_validation"` // Set to true to enable IPs in DNS resolver category blocks. By default categories // only block based on domain names. IPCategories param.Field[bool] `json:"ip_categories"` // Set to true to include IPs in DNS resolver indicator feed blocks. By default // indicator feeds only block based on domain names. IPIndicatorFeeds param.Field[bool] `json:"ip_indicator_feeds"` // Send matching traffic to the supplied destination IP address and port. L4override param.Field[RuleSettingL4overrideParam] `json:"l4override"` // Configure a notification to display on the user's device when this rule is // matched. NotificationSettings param.Field[RuleSettingNotificationSettingsParam] `json:"notification_settings"` // Override matching DNS queries with a hostname. OverrideHost param.Field[string] `json:"override_host"` // Override matching DNS queries with an IP or set of IPs. OverrideIPs param.Field[[]string] `json:"override_ips"` // Configure DLP payload logging. PayloadLog param.Field[RuleSettingPayloadLogParam] `json:"payload_log"` // Enable to send queries that match the policy to Cloudflare's default 1.1.1.1 DNS // resolver. Cannot be set when dns_resolvers are specified. Only valid when a // rule's action is set to 'resolve'. ResolveDNSThroughCloudflare param.Field[bool] `json:"resolve_dns_through_cloudflare"` // Configure behavior when an upstream cert is invalid or an SSL error occurs. UntrustedCERT param.Field[RuleSettingUntrustedCERTParam] `json:"untrusted_cert"` }
Additional settings that modify the rule's action.
func (RuleSettingParam) MarshalJSON ¶
func (r RuleSettingParam) MarshalJSON() (data []byte, err error)
type RuleSettingPayloadLog ¶
type RuleSettingPayloadLog struct { // Set to true to enable DLP payload logging for this rule. Enabled bool `json:"enabled"` JSON ruleSettingPayloadLogJSON `json:"-"` }
Configure DLP payload logging.
func (*RuleSettingPayloadLog) UnmarshalJSON ¶
func (r *RuleSettingPayloadLog) UnmarshalJSON(data []byte) (err error)
type RuleSettingPayloadLogParam ¶
type RuleSettingPayloadLogParam struct { // Set to true to enable DLP payload logging for this rule. Enabled param.Field[bool] `json:"enabled"` }
Configure DLP payload logging.
func (RuleSettingPayloadLogParam) MarshalJSON ¶
func (r RuleSettingPayloadLogParam) MarshalJSON() (data []byte, err error)
type RuleSettingUntrustedCERT ¶
type RuleSettingUntrustedCERT struct { // The action performed when an untrusted certificate is seen. The default action // is an error with HTTP code 526. Action RuleSettingUntrustedCERTAction `json:"action"` JSON ruleSettingUntrustedCERTJSON `json:"-"` }
Configure behavior when an upstream cert is invalid or an SSL error occurs.
func (*RuleSettingUntrustedCERT) UnmarshalJSON ¶
func (r *RuleSettingUntrustedCERT) UnmarshalJSON(data []byte) (err error)
type RuleSettingUntrustedCERTAction ¶
type RuleSettingUntrustedCERTAction string
The action performed when an untrusted certificate is seen. The default action is an error with HTTP code 526.
const ( RuleSettingUntrustedCERTActionPassThrough RuleSettingUntrustedCERTAction = "pass_through" RuleSettingUntrustedCERTActionBlock RuleSettingUntrustedCERTAction = "block" RuleSettingUntrustedCERTActionError RuleSettingUntrustedCERTAction = "error" )
func (RuleSettingUntrustedCERTAction) IsKnown ¶
func (r RuleSettingUntrustedCERTAction) IsKnown() bool
type RuleSettingUntrustedCERTParam ¶
type RuleSettingUntrustedCERTParam struct { // The action performed when an untrusted certificate is seen. The default action // is an error with HTTP code 526. Action param.Field[RuleSettingUntrustedCERTAction] `json:"action"` }
Configure behavior when an upstream cert is invalid or an SSL error occurs.
func (RuleSettingUntrustedCERTParam) MarshalJSON ¶
func (r RuleSettingUntrustedCERTParam) MarshalJSON() (data []byte, err error)
type SAMLGroupRule ¶
type SAMLGroupRule struct { SAML SAMLGroupRuleSAML `json:"saml,required"` JSON samlGroupRuleJSON `json:"-"` }
Matches a SAML group. Requires a SAML identity provider.
func (*SAMLGroupRule) UnmarshalJSON ¶
func (r *SAMLGroupRule) UnmarshalJSON(data []byte) (err error)
type SAMLGroupRuleParam ¶
type SAMLGroupRuleParam struct {
SAML param.Field[SAMLGroupRuleSAMLParam] `json:"saml,required"`
}
Matches a SAML group. Requires a SAML identity provider.
func (SAMLGroupRuleParam) MarshalJSON ¶
func (r SAMLGroupRuleParam) MarshalJSON() (data []byte, err error)
type SAMLGroupRuleSAML ¶
type SAMLGroupRuleSAML struct { // The name of the SAML attribute. AttributeName string `json:"attribute_name,required"` // The SAML attribute value to look for. AttributeValue string `json:"attribute_value,required"` JSON samlGroupRuleSAMLJSON `json:"-"` }
func (*SAMLGroupRuleSAML) UnmarshalJSON ¶
func (r *SAMLGroupRuleSAML) UnmarshalJSON(data []byte) (err error)
type SAMLGroupRuleSAMLParam ¶
type SAMLGroupRuleSAMLParam struct { // The name of the SAML attribute. AttributeName param.Field[string] `json:"attribute_name,required"` // The SAML attribute value to look for. AttributeValue param.Field[string] `json:"attribute_value,required"` }
func (SAMLGroupRuleSAMLParam) MarshalJSON ¶
func (r SAMLGroupRuleSAMLParam) MarshalJSON() (data []byte, err error)
type SAMLSaasApp ¶
type SAMLSaasApp struct { // Optional identifier indicating the authentication protocol used for the saas // app. Required for OIDC. Default if unset is "saml" AuthType SAMLSaasAppAuthType `json:"auth_type"` // The service provider's endpoint that is responsible for receiving and parsing a // SAML assertion. ConsumerServiceURL string `json:"consumer_service_url"` CreatedAt time.Time `json:"created_at" format:"date-time"` CustomAttributes SAMLSaasAppCustomAttributes `json:"custom_attributes"` // The URL that the user will be redirected to after a successful login for IDP // initiated logins. DefaultRelayState string `json:"default_relay_state"` // The unique identifier for your SaaS application. IDPEntityID string `json:"idp_entity_id"` // The format of the name identifier sent to the SaaS application. NameIDFormat SaasAppNameIDFormat `json:"name_id_format"` // A [JSONata](https://jsonata.org/) expression that transforms an application's // user identities into a NameID value for its SAML assertion. This expression // should evaluate to a singular string. The output of this expression can override // the `name_id_format` setting. NameIDTransformJsonata string `json:"name_id_transform_jsonata"` // The Access public certificate that will be used to verify your identity. PublicKey string `json:"public_key"` // A [JSONata] (https://jsonata.org/) expression that transforms an application's // user identities into attribute assertions in the SAML response. The expression // can transform id, email, name, and groups values. It can also transform fields // listed in the saml_attributes or oidc_fields of the identity provider used to // authenticate. The output of this expression must be a JSON object. SAMLAttributeTransformJsonata string `json:"saml_attribute_transform_jsonata"` // A globally unique name for an identity or service provider. SpEntityID string `json:"sp_entity_id"` // The endpoint where your SaaS application will send login requests. SSOEndpoint string `json:"sso_endpoint"` UpdatedAt time.Time `json:"updated_at" format:"date-time"` JSON samlSaasAppJSON `json:"-"` }
func (*SAMLSaasApp) UnmarshalJSON ¶
func (r *SAMLSaasApp) UnmarshalJSON(data []byte) (err error)
type SAMLSaasAppAuthType ¶
type SAMLSaasAppAuthType string
Optional identifier indicating the authentication protocol used for the saas app. Required for OIDC. Default if unset is "saml"
const ( SAMLSaasAppAuthTypeSAML SAMLSaasAppAuthType = "saml" SAMLSaasAppAuthTypeOIDC SAMLSaasAppAuthType = "oidc" )
func (SAMLSaasAppAuthType) IsKnown ¶
func (r SAMLSaasAppAuthType) IsKnown() bool
type SAMLSaasAppCustomAttributes ¶
type SAMLSaasAppCustomAttributes struct { // The name of the attribute. Name string `json:"name"` // A globally unique name for an identity or service provider. NameFormat SaasAppNameFormat `json:"name_format"` Source SaasAppSource `json:"source"` JSON samlSaasAppCustomAttributesJSON `json:"-"` }
func (*SAMLSaasAppCustomAttributes) UnmarshalJSON ¶
func (r *SAMLSaasAppCustomAttributes) UnmarshalJSON(data []byte) (err error)
type SAMLSaasAppCustomAttributesParam ¶
type SAMLSaasAppCustomAttributesParam struct { // The name of the attribute. Name param.Field[string] `json:"name"` // A globally unique name for an identity or service provider. NameFormat param.Field[SaasAppNameFormat] `json:"name_format"` Source param.Field[SaasAppSourceParam] `json:"source"` }
func (SAMLSaasAppCustomAttributesParam) MarshalJSON ¶
func (r SAMLSaasAppCustomAttributesParam) MarshalJSON() (data []byte, err error)
type SAMLSaasAppParam ¶
type SAMLSaasAppParam struct { // Optional identifier indicating the authentication protocol used for the saas // app. Required for OIDC. Default if unset is "saml" AuthType param.Field[SAMLSaasAppAuthType] `json:"auth_type"` // The service provider's endpoint that is responsible for receiving and parsing a // SAML assertion. ConsumerServiceURL param.Field[string] `json:"consumer_service_url"` CustomAttributes param.Field[SAMLSaasAppCustomAttributesParam] `json:"custom_attributes"` // The URL that the user will be redirected to after a successful login for IDP // initiated logins. DefaultRelayState param.Field[string] `json:"default_relay_state"` // The unique identifier for your SaaS application. IDPEntityID param.Field[string] `json:"idp_entity_id"` // The format of the name identifier sent to the SaaS application. NameIDFormat param.Field[SaasAppNameIDFormat] `json:"name_id_format"` // A [JSONata](https://jsonata.org/) expression that transforms an application's // user identities into a NameID value for its SAML assertion. This expression // should evaluate to a singular string. The output of this expression can override // the `name_id_format` setting. NameIDTransformJsonata param.Field[string] `json:"name_id_transform_jsonata"` // The Access public certificate that will be used to verify your identity. PublicKey param.Field[string] `json:"public_key"` // A [JSONata] (https://jsonata.org/) expression that transforms an application's // user identities into attribute assertions in the SAML response. The expression // can transform id, email, name, and groups values. It can also transform fields // listed in the saml_attributes or oidc_fields of the identity provider used to // authenticate. The output of this expression must be a JSON object. SAMLAttributeTransformJsonata param.Field[string] `json:"saml_attribute_transform_jsonata"` // A globally unique name for an identity or service provider. SpEntityID param.Field[string] `json:"sp_entity_id"` // The endpoint where your SaaS application will send login requests. SSOEndpoint param.Field[string] `json:"sso_endpoint"` }
func (SAMLSaasAppParam) MarshalJSON ¶
func (r SAMLSaasAppParam) MarshalJSON() (data []byte, err error)
type SaasAppNameFormat ¶
type SaasAppNameFormat string
A globally unique name for an identity or service provider.
const ( SaasAppNameFormatUrnOasisNamesTcSAML2_0AttrnameFormatUnspecified SaasAppNameFormat = "urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified" SaasAppNameFormatUrnOasisNamesTcSAML2_0AttrnameFormatBasic SaasAppNameFormat = "urn:oasis:names:tc:SAML:2.0:attrname-format:basic" SaasAppNameFormatUrnOasisNamesTcSAML2_0AttrnameFormatURI SaasAppNameFormat = "urn:oasis:names:tc:SAML:2.0:attrname-format:uri" )
func (SaasAppNameFormat) IsKnown ¶
func (r SaasAppNameFormat) IsKnown() bool
type SaasAppNameIDFormat ¶
type SaasAppNameIDFormat string
The format of the name identifier sent to the SaaS application.
const ( SaasAppNameIDFormatID SaasAppNameIDFormat = "id" SaasAppNameIDFormatEmail SaasAppNameIDFormat = "email" )
func (SaasAppNameIDFormat) IsKnown ¶
func (r SaasAppNameIDFormat) IsKnown() bool
type SaasAppSource ¶
type SaasAppSource struct { // The name of the IdP attribute. Name string `json:"name"` JSON saasAppSourceJSON `json:"-"` }
func (*SaasAppSource) UnmarshalJSON ¶
func (r *SaasAppSource) UnmarshalJSON(data []byte) (err error)
type SaasAppSourceParam ¶
type SaasAppSourceParam struct { // The name of the IdP attribute. Name param.Field[string] `json:"name"` }
func (SaasAppSourceParam) MarshalJSON ¶
func (r SaasAppSourceParam) MarshalJSON() (data []byte, err error)
type Schedule ¶
type Schedule struct { // The time intervals when the rule will be active on Fridays, in increasing order // from 00:00-24:00. If this parameter is omitted, the rule will be deactivated on // Fridays. Fri string `json:"fri"` // The time intervals when the rule will be active on Mondays, in increasing order // from 00:00-24:00. If this parameter is omitted, the rule will be deactivated on // Mondays. Mon string `json:"mon"` // The time intervals when the rule will be active on Saturdays, in increasing // order from 00:00-24:00. If this parameter is omitted, the rule will be // deactivated on Saturdays. Sat string `json:"sat"` // The time intervals when the rule will be active on Sundays, in increasing order // from 00:00-24:00. If this parameter is omitted, the rule will be deactivated on // Sundays. Sun string `json:"sun"` // The time intervals when the rule will be active on Thursdays, in increasing // order from 00:00-24:00. If this parameter is omitted, the rule will be // deactivated on Thursdays. Thu string `json:"thu"` // The time zone the rule will be evaluated against. If a // [valid time zone city name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List) // is provided, Gateway will always use the current time at that time zone. If this // parameter is omitted, then Gateway will use the time zone inferred from the // user's source IP to evaluate the rule. If Gateway cannot determine the time zone // from the IP, we will fall back to the time zone of the user's connected data // center. TimeZone string `json:"time_zone"` // The time intervals when the rule will be active on Tuesdays, in increasing order // from 00:00-24:00. If this parameter is omitted, the rule will be deactivated on // Tuesdays. Tue string `json:"tue"` // The time intervals when the rule will be active on Wednesdays, in increasing // order from 00:00-24:00. If this parameter is omitted, the rule will be // deactivated on Wednesdays. Wed string `json:"wed"` JSON scheduleJSON `json:"-"` }
The schedule for activating DNS policies. This does not apply to HTTP or network policies.
func (*Schedule) UnmarshalJSON ¶
type ScheduleParam ¶
type ScheduleParam struct { // The time intervals when the rule will be active on Fridays, in increasing order // from 00:00-24:00. If this parameter is omitted, the rule will be deactivated on // Fridays. Fri param.Field[string] `json:"fri"` // The time intervals when the rule will be active on Mondays, in increasing order // from 00:00-24:00. If this parameter is omitted, the rule will be deactivated on // Mondays. Mon param.Field[string] `json:"mon"` // The time intervals when the rule will be active on Saturdays, in increasing // order from 00:00-24:00. If this parameter is omitted, the rule will be // deactivated on Saturdays. Sat param.Field[string] `json:"sat"` // The time intervals when the rule will be active on Sundays, in increasing order // from 00:00-24:00. If this parameter is omitted, the rule will be deactivated on // Sundays. Sun param.Field[string] `json:"sun"` // The time intervals when the rule will be active on Thursdays, in increasing // order from 00:00-24:00. If this parameter is omitted, the rule will be // deactivated on Thursdays. Thu param.Field[string] `json:"thu"` // The time zone the rule will be evaluated against. If a // [valid time zone city name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List) // is provided, Gateway will always use the current time at that time zone. If this // parameter is omitted, then Gateway will use the time zone inferred from the // user's source IP to evaluate the rule. If Gateway cannot determine the time zone // from the IP, we will fall back to the time zone of the user's connected data // center. TimeZone param.Field[string] `json:"time_zone"` // The time intervals when the rule will be active on Tuesdays, in increasing order // from 00:00-24:00. If this parameter is omitted, the rule will be deactivated on // Tuesdays. Tue param.Field[string] `json:"tue"` // The time intervals when the rule will be active on Wednesdays, in increasing // order from 00:00-24:00. If this parameter is omitted, the rule will be // deactivated on Wednesdays. Wed param.Field[string] `json:"wed"` }
The schedule for activating DNS policies. This does not apply to HTTP or network policies.
func (ScheduleParam) MarshalJSON ¶
func (r ScheduleParam) MarshalJSON() (data []byte, err error)
type SchemaData ¶
type SchemaData struct { // The desired endpoint to test. Host string `json:"host"` // The type of test. Kind string `json:"kind"` // The HTTP request method type. Method string `json:"method"` JSON schemaDataJSON `json:"-"` }
The configuration object which contains the details for the WARP client to conduct the test.
func (*SchemaData) UnmarshalJSON ¶
func (r *SchemaData) UnmarshalJSON(data []byte) (err error)
type SchemaDataParam ¶
type SchemaDataParam struct { // The desired endpoint to test. Host param.Field[string] `json:"host"` // The type of test. Kind param.Field[string] `json:"kind"` // The HTTP request method type. Method param.Field[string] `json:"method"` }
The configuration object which contains the details for the WARP client to conduct the test.
func (SchemaDataParam) MarshalJSON ¶
func (r SchemaDataParam) MarshalJSON() (data []byte, err error)
type SchemaHTTP ¶
type SchemaHTTP struct { // The configuration object which contains the details for the WARP client to // conduct the test. Data SchemaData `json:"data,required"` // Determines whether or not the test is active. Enabled bool `json:"enabled,required"` // How often the test will run. Interval string `json:"interval,required"` // The name of the DEX test. Must be unique. Name string `json:"name,required"` // Additional details about the test. Description string `json:"description"` // Device settings profiles targeted by this test TargetPolicies []SchemaHTTPTargetPolicy `json:"target_policies"` Targeted bool `json:"targeted"` JSON schemaHTTPJSON `json:"-"` }
func (*SchemaHTTP) UnmarshalJSON ¶
func (r *SchemaHTTP) UnmarshalJSON(data []byte) (err error)
type SchemaHTTPParam ¶
type SchemaHTTPParam struct { // The configuration object which contains the details for the WARP client to // conduct the test. Data param.Field[SchemaDataParam] `json:"data,required"` // Determines whether or not the test is active. Enabled param.Field[bool] `json:"enabled,required"` // How often the test will run. Interval param.Field[string] `json:"interval,required"` // The name of the DEX test. Must be unique. Name param.Field[string] `json:"name,required"` // Additional details about the test. Description param.Field[string] `json:"description"` // Device settings profiles targeted by this test TargetPolicies param.Field[[]SchemaHTTPTargetPolicyParam] `json:"target_policies"` Targeted param.Field[bool] `json:"targeted"` }
func (SchemaHTTPParam) MarshalJSON ¶
func (r SchemaHTTPParam) MarshalJSON() (data []byte, err error)
type SchemaHTTPTargetPolicy ¶
type SchemaHTTPTargetPolicy struct { // The id of the device settings profile ID string `json:"id"` // Whether the profile is the account default Default bool `json:"default"` // The name of the device settings profile Name string `json:"name"` JSON schemaHTTPTargetPolicyJSON `json:"-"` }
func (*SchemaHTTPTargetPolicy) UnmarshalJSON ¶
func (r *SchemaHTTPTargetPolicy) UnmarshalJSON(data []byte) (err error)
type SchemaHTTPTargetPolicyParam ¶
type SchemaHTTPTargetPolicyParam struct { // The id of the device settings profile ID param.Field[string] `json:"id"` // Whether the profile is the account default Default param.Field[bool] `json:"default"` // The name of the device settings profile Name param.Field[string] `json:"name"` }
func (SchemaHTTPTargetPolicyParam) MarshalJSON ¶
func (r SchemaHTTPTargetPolicyParam) MarshalJSON() (data []byte, err error)
type ScimConfig ¶
type ScimConfig struct { // A flag to enable or disable SCIM for the identity provider. Enabled bool `json:"enabled"` // A flag to revoke a user's session in Access and force a reauthentication on the // user's Gateway session when they have been added or removed from a group in the // Identity Provider. GroupMemberDeprovision bool `json:"group_member_deprovision"` // A flag to remove a user's seat in Zero Trust when they have been deprovisioned // in the Identity Provider. This cannot be enabled unless user_deprovision is also // enabled. SeatDeprovision bool `json:"seat_deprovision"` // A read-only token generated when the SCIM integration is enabled for the first // time. It is redacted on subsequent requests. If you lose this you will need to // refresh it token at /access/identity_providers/:idpID/refresh_scim_secret. Secret string `json:"secret"` // A flag to enable revoking a user's session in Access and Gateway when they have // been deprovisioned in the Identity Provider. UserDeprovision bool `json:"user_deprovision"` JSON scimConfigJSON `json:"-"` }
The configuration settings for enabling a System for Cross-Domain Identity Management (SCIM) with the identity provider.
func (*ScimConfig) UnmarshalJSON ¶
func (r *ScimConfig) UnmarshalJSON(data []byte) (err error)
type ScimConfigParam ¶
type ScimConfigParam struct { // A flag to enable or disable SCIM for the identity provider. Enabled param.Field[bool] `json:"enabled"` // A flag to revoke a user's session in Access and force a reauthentication on the // user's Gateway session when they have been added or removed from a group in the // Identity Provider. GroupMemberDeprovision param.Field[bool] `json:"group_member_deprovision"` // A flag to remove a user's seat in Zero Trust when they have been deprovisioned // in the Identity Provider. This cannot be enabled unless user_deprovision is also // enabled. SeatDeprovision param.Field[bool] `json:"seat_deprovision"` // A read-only token generated when the SCIM integration is enabled for the first // time. It is redacted on subsequent requests. If you lose this you will need to // refresh it token at /access/identity_providers/:idpID/refresh_scim_secret. Secret param.Field[string] `json:"secret"` // A flag to enable revoking a user's session in Access and Gateway when they have // been deprovisioned in the Identity Provider. UserDeprovision param.Field[bool] `json:"user_deprovision"` }
The configuration settings for enabling a System for Cross-Domain Identity Management (SCIM) with the identity provider.
func (ScimConfigParam) MarshalJSON ¶
func (r ScimConfigParam) MarshalJSON() (data []byte, err error)
type Seat ¶
type Seat struct { // True if the seat is part of Access. AccessSeat bool `json:"access_seat"` CreatedAt time.Time `json:"created_at" format:"date-time"` // True if the seat is part of Gateway. GatewaySeat bool `json:"gateway_seat"` // Identifier SeatUID string `json:"seat_uid"` UpdatedAt time.Time `json:"updated_at" format:"date-time"` JSON seatJSON `json:"-"` }
func (*Seat) UnmarshalJSON ¶
type SeatEditParams ¶
type SeatEditParams struct {
Body []SeatEditParamsBody `json:"body,required"`
}
func (SeatEditParams) MarshalJSON ¶
func (r SeatEditParams) MarshalJSON() (data []byte, err error)
type SeatEditParamsBody ¶
type SeatEditParamsBody struct { // True if the seat is part of Access. AccessSeat param.Field[bool] `json:"access_seat,required"` // True if the seat is part of Gateway. GatewaySeat param.Field[bool] `json:"gateway_seat,required"` }
func (SeatEditParamsBody) MarshalJSON ¶
func (r SeatEditParamsBody) MarshalJSON() (data []byte, err error)
type SeatEditResponseEnvelope ¶
type SeatEditResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result []Seat `json:"result,required,nullable"` // Whether the API call was successful Success SeatEditResponseEnvelopeSuccess `json:"success,required"` ResultInfo SeatEditResponseEnvelopeResultInfo `json:"result_info"` JSON seatEditResponseEnvelopeJSON `json:"-"` }
func (*SeatEditResponseEnvelope) UnmarshalJSON ¶
func (r *SeatEditResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type SeatEditResponseEnvelopeResultInfo ¶
type SeatEditResponseEnvelopeResultInfo struct { // Total number of results for the requested service Count float64 `json:"count"` // Current page within paginated list of results Page float64 `json:"page"` // Number of results per page of results PerPage float64 `json:"per_page"` // Total results available without any search parameters TotalCount float64 `json:"total_count"` JSON seatEditResponseEnvelopeResultInfoJSON `json:"-"` }
func (*SeatEditResponseEnvelopeResultInfo) UnmarshalJSON ¶
func (r *SeatEditResponseEnvelopeResultInfo) UnmarshalJSON(data []byte) (err error)
type SeatEditResponseEnvelopeSuccess ¶
type SeatEditResponseEnvelopeSuccess bool
Whether the API call was successful
const (
SeatEditResponseEnvelopeSuccessTrue SeatEditResponseEnvelopeSuccess = true
)
func (SeatEditResponseEnvelopeSuccess) IsKnown ¶
func (r SeatEditResponseEnvelopeSuccess) IsKnown() bool
type SeatService ¶
type SeatService struct {
Options []option.RequestOption
}
SeatService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewSeatService method instead.
func NewSeatService ¶
func NewSeatService(opts ...option.RequestOption) (r *SeatService)
NewSeatService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*SeatService) Edit ¶
func (r *SeatService) Edit(ctx context.Context, identifier string, body SeatEditParams, opts ...option.RequestOption) (res *[]Seat, err error)
Removes a user from a Zero Trust seat when both `access_seat` and `gateway_seat` are set to false.
type SelfHostedDomainsh ¶
type SelfHostedDomainsh = string
type SelfHostedDomainshParam ¶
type SelfHostedDomainshParam = string
type SentineloneInput ¶
type SentineloneInput struct { // Operating system OperatingSystem SentineloneInputOperatingSystem `json:"operating_system,required"` // File path. Path string `json:"path,required"` // SHA-256. Sha256 string `json:"sha256"` // Signing certificate thumbprint. Thumbprint string `json:"thumbprint"` JSON sentineloneInputJSON `json:"-"` }
func (*SentineloneInput) UnmarshalJSON ¶
func (r *SentineloneInput) UnmarshalJSON(data []byte) (err error)
type SentineloneInputOperatingSystem ¶
type SentineloneInputOperatingSystem string
Operating system
const ( SentineloneInputOperatingSystemWindows SentineloneInputOperatingSystem = "windows" SentineloneInputOperatingSystemLinux SentineloneInputOperatingSystem = "linux" SentineloneInputOperatingSystemMac SentineloneInputOperatingSystem = "mac" )
func (SentineloneInputOperatingSystem) IsKnown ¶
func (r SentineloneInputOperatingSystem) IsKnown() bool
type SentineloneInputParam ¶
type SentineloneInputParam struct { // Operating system OperatingSystem param.Field[SentineloneInputOperatingSystem] `json:"operating_system,required"` // File path. Path param.Field[string] `json:"path,required"` // SHA-256. Sha256 param.Field[string] `json:"sha256"` // Signing certificate thumbprint. Thumbprint param.Field[string] `json:"thumbprint"` }
func (SentineloneInputParam) MarshalJSON ¶
func (r SentineloneInputParam) MarshalJSON() (data []byte, err error)
type SentineloneS2sInput ¶
type SentineloneS2sInput struct { // Posture Integration ID. ConnectionID string `json:"connection_id,required"` // The Number of active threats. ActiveThreats float64 `json:"active_threats"` // Whether device is infected. Infected bool `json:"infected"` // Whether device is active. IsActive bool `json:"is_active"` // Network status of device. NetworkStatus SentineloneS2sInputNetworkStatus `json:"network_status"` // operator Operator SentineloneS2sInputOperator `json:"operator"` JSON sentineloneS2sInputJSON `json:"-"` }
func (*SentineloneS2sInput) UnmarshalJSON ¶
func (r *SentineloneS2sInput) UnmarshalJSON(data []byte) (err error)
type SentineloneS2sInputNetworkStatus ¶
type SentineloneS2sInputNetworkStatus string
Network status of device.
const ( SentineloneS2sInputNetworkStatusConnected SentineloneS2sInputNetworkStatus = "connected" SentineloneS2sInputNetworkStatusDisconnected SentineloneS2sInputNetworkStatus = "disconnected" SentineloneS2sInputNetworkStatusDisconnecting SentineloneS2sInputNetworkStatus = "disconnecting" SentineloneS2sInputNetworkStatusConnecting SentineloneS2sInputNetworkStatus = "connecting" )
func (SentineloneS2sInputNetworkStatus) IsKnown ¶
func (r SentineloneS2sInputNetworkStatus) IsKnown() bool
type SentineloneS2sInputOperator ¶
type SentineloneS2sInputOperator string
operator
const ( SentineloneS2sInputOperatorLess SentineloneS2sInputOperator = "<" SentineloneS2sInputOperatorLessOrEquals SentineloneS2sInputOperator = "<=" SentineloneS2sInputOperatorGreater SentineloneS2sInputOperator = ">" SentineloneS2sInputOperatorGreaterOrEquals SentineloneS2sInputOperator = ">=" SentineloneS2sInputOperatorEquals SentineloneS2sInputOperator = "==" )
func (SentineloneS2sInputOperator) IsKnown ¶
func (r SentineloneS2sInputOperator) IsKnown() bool
type SentineloneS2sInputParam ¶
type SentineloneS2sInputParam struct { // Posture Integration ID. ConnectionID param.Field[string] `json:"connection_id,required"` // The Number of active threats. ActiveThreats param.Field[float64] `json:"active_threats"` // Whether device is infected. Infected param.Field[bool] `json:"infected"` // Whether device is active. IsActive param.Field[bool] `json:"is_active"` // Network status of device. NetworkStatus param.Field[SentineloneS2sInputNetworkStatus] `json:"network_status"` // operator Operator param.Field[SentineloneS2sInputOperator] `json:"operator"` }
func (SentineloneS2sInputParam) MarshalJSON ¶
func (r SentineloneS2sInputParam) MarshalJSON() (data []byte, err error)
type ServiceToken ¶
type ServiceToken struct { // The ID of the service token. ID interface{} `json:"id"` // The Client ID for the service token. Access will check for this value in the // `CF-Access-Client-ID` request header. ClientID string `json:"client_id"` CreatedAt time.Time `json:"created_at" format:"date-time"` // The duration for how long the service token will be valid. Must be in the format // `300ms` or `2h45m`. Valid time units are: ns, us (or µs), ms, s, m, h. The // default is 1 year in hours (8760h). Duration string `json:"duration"` // The name of the service token. Name string `json:"name"` UpdatedAt time.Time `json:"updated_at" format:"date-time"` JSON serviceTokenJSON `json:"-"` }
func (*ServiceToken) UnmarshalJSON ¶
func (r *ServiceToken) UnmarshalJSON(data []byte) (err error)
type ServiceTokenRule ¶
type ServiceTokenRule struct { ServiceToken ServiceTokenRuleServiceToken `json:"service_token,required"` JSON serviceTokenRuleJSON `json:"-"` }
Matches a specific Access Service Token
func (*ServiceTokenRule) UnmarshalJSON ¶
func (r *ServiceTokenRule) UnmarshalJSON(data []byte) (err error)
type ServiceTokenRuleParam ¶
type ServiceTokenRuleParam struct {
ServiceToken param.Field[ServiceTokenRuleServiceTokenParam] `json:"service_token,required"`
}
Matches a specific Access Service Token
func (ServiceTokenRuleParam) MarshalJSON ¶
func (r ServiceTokenRuleParam) MarshalJSON() (data []byte, err error)
type ServiceTokenRuleServiceToken ¶
type ServiceTokenRuleServiceToken struct { // The ID of a Service Token. TokenID string `json:"token_id,required"` JSON serviceTokenRuleServiceTokenJSON `json:"-"` }
func (*ServiceTokenRuleServiceToken) UnmarshalJSON ¶
func (r *ServiceTokenRuleServiceToken) UnmarshalJSON(data []byte) (err error)
type ServiceTokenRuleServiceTokenParam ¶
type ServiceTokenRuleServiceTokenParam struct { // The ID of a Service Token. TokenID param.Field[string] `json:"token_id,required"` }
func (ServiceTokenRuleServiceTokenParam) MarshalJSON ¶
func (r ServiceTokenRuleServiceTokenParam) MarshalJSON() (data []byte, err error)
type SettingsPolicy ¶
type SettingsPolicy struct { // Whether to allow the user to switch WARP between modes. AllowModeSwitch bool `json:"allow_mode_switch"` // Whether to receive update notifications when a new version of the client is // available. AllowUpdates bool `json:"allow_updates"` // Whether to allow devices to leave the organization. AllowedToLeave bool `json:"allowed_to_leave"` // The amount of time in minutes to reconnect after having been disabled. AutoConnect float64 `json:"auto_connect"` // Turn on the captive portal after the specified amount of time. CaptivePortal float64 `json:"captive_portal"` // Whether the policy is the default policy for an account. Default bool `json:"default"` // A description of the policy. Description string `json:"description"` // If the `dns_server` field of a fallback domain is not present, the client will // fall back to a best guess of the default/system DNS resolvers unless this policy // option is set to `true`. DisableAutoFallback bool `json:"disable_auto_fallback"` // Whether the policy will be applied to matching devices. Enabled bool `json:"enabled"` Exclude []SplitTunnelExclude `json:"exclude"` // Whether to add Microsoft IPs to Split Tunnel exclusions. ExcludeOfficeIPs bool `json:"exclude_office_ips"` FallbackDomains []FallbackDomain `json:"fallback_domains"` GatewayUniqueID string `json:"gateway_unique_id"` Include []SplitTunnelInclude `json:"include"` // The amount of time in minutes a user is allowed access to their LAN. A value of // 0 will allow LAN access until the next WARP reconnection, such as a reboot or a // laptop waking from sleep. Note that this field is omitted from the response if // null or unset. LANAllowMinutes float64 `json:"lan_allow_minutes"` // The size of the subnet for the local access network. Note that this field is // omitted from the response if null or unset. LANAllowSubnetSize float64 `json:"lan_allow_subnet_size"` // The wirefilter expression to match devices. Match string `json:"match"` // The name of the device settings profile. Name string `json:"name"` // Device ID. PolicyID string `json:"policy_id"` // The precedence of the policy. Lower values indicate higher precedence. Policies // will be evaluated in ascending order of this field. Precedence float64 `json:"precedence"` ServiceModeV2 SettingsPolicyServiceModeV2 `json:"service_mode_v2"` // The URL to launch when the Send Feedback button is clicked. SupportURL string `json:"support_url"` // Whether to allow the user to turn off the WARP switch and disconnect the client. SwitchLocked bool `json:"switch_locked"` TargetTests []SettingsPolicyTargetTest `json:"target_tests"` JSON settingsPolicyJSON `json:"-"` }
func (*SettingsPolicy) UnmarshalJSON ¶
func (r *SettingsPolicy) UnmarshalJSON(data []byte) (err error)
type SettingsPolicyServiceModeV2 ¶
type SettingsPolicyServiceModeV2 struct { // The mode to run the WARP client under. Mode string `json:"mode"` // The port number when used with proxy mode. Port float64 `json:"port"` JSON settingsPolicyServiceModeV2JSON `json:"-"` }
func (*SettingsPolicyServiceModeV2) UnmarshalJSON ¶
func (r *SettingsPolicyServiceModeV2) UnmarshalJSON(data []byte) (err error)
type SettingsPolicyTargetTest ¶
type SettingsPolicyTargetTest struct { // The id of the DEX test targeting this policy ID string `json:"id"` // The name of the DEX test targeting this policy Name string `json:"name"` JSON settingsPolicyTargetTestJSON `json:"-"` }
func (*SettingsPolicyTargetTest) UnmarshalJSON ¶
func (r *SettingsPolicyTargetTest) UnmarshalJSON(data []byte) (err error)
type SkipConfiguration ¶
type SkipConfiguration struct { // If the content type is a file, skip context analysis and return all matches. Files bool `json:"files,required"` JSON skipConfigurationJSON `json:"-"` }
Content types to exclude from context analysis and return all matches.
func (*SkipConfiguration) UnmarshalJSON ¶
func (r *SkipConfiguration) UnmarshalJSON(data []byte) (err error)
type SkipConfigurationParam ¶
type SkipConfigurationParam struct { // If the content type is a file, skip context analysis and return all matches. Files param.Field[bool] `json:"files,required"` }
Content types to exclude from context analysis and return all matches.
func (SkipConfigurationParam) MarshalJSON ¶
func (r SkipConfigurationParam) MarshalJSON() (data []byte, err error)
type SplitTunnelExclude ¶
type SplitTunnelExclude struct { // The address in CIDR format to exclude from the tunnel. If `address` is present, // `host` must not be present. Address string `json:"address,required"` // A description of the Split Tunnel item, displayed in the client UI. Description string `json:"description,required"` // The domain name to exclude from the tunnel. If `host` is present, `address` must // not be present. Host string `json:"host"` JSON splitTunnelExcludeJSON `json:"-"` }
func (*SplitTunnelExclude) UnmarshalJSON ¶
func (r *SplitTunnelExclude) UnmarshalJSON(data []byte) (err error)
type SplitTunnelExcludeParam ¶
type SplitTunnelExcludeParam struct { // The address in CIDR format to exclude from the tunnel. If `address` is present, // `host` must not be present. Address param.Field[string] `json:"address,required"` // A description of the Split Tunnel item, displayed in the client UI. Description param.Field[string] `json:"description,required"` // The domain name to exclude from the tunnel. If `host` is present, `address` must // not be present. Host param.Field[string] `json:"host"` }
func (SplitTunnelExcludeParam) MarshalJSON ¶
func (r SplitTunnelExcludeParam) MarshalJSON() (data []byte, err error)
type SplitTunnelInclude ¶
type SplitTunnelInclude struct { // The address in CIDR format to include in the tunnel. If address is present, host // must not be present. Address string `json:"address,required"` // A description of the split tunnel item, displayed in the client UI. Description string `json:"description,required"` // The domain name to include in the tunnel. If host is present, address must not // be present. Host string `json:"host"` JSON splitTunnelIncludeJSON `json:"-"` }
func (*SplitTunnelInclude) UnmarshalJSON ¶
func (r *SplitTunnelInclude) UnmarshalJSON(data []byte) (err error)
type SplitTunnelIncludeParam ¶
type SplitTunnelIncludeParam struct { // The address in CIDR format to include in the tunnel. If address is present, host // must not be present. Address param.Field[string] `json:"address,required"` // A description of the split tunnel item, displayed in the client UI. Description param.Field[string] `json:"description,required"` // The domain name to include in the tunnel. If host is present, address must not // be present. Host param.Field[string] `json:"host"` }
func (SplitTunnelIncludeParam) MarshalJSON ¶
func (r SplitTunnelIncludeParam) MarshalJSON() (data []byte, err error)
type TLSSettings ¶
type TLSSettings struct { // Enable inspecting encrypted HTTP traffic. Enabled bool `json:"enabled"` JSON tlsSettingsJSON `json:"-"` }
TLS interception settings.
func (*TLSSettings) UnmarshalJSON ¶
func (r *TLSSettings) UnmarshalJSON(data []byte) (err error)
type TLSSettingsParam ¶
type TLSSettingsParam struct { // Enable inspecting encrypted HTTP traffic. Enabled param.Field[bool] `json:"enabled"` }
TLS interception settings.
func (TLSSettingsParam) MarshalJSON ¶
func (r TLSSettingsParam) MarshalJSON() (data []byte, err error)
type Tag ¶
type Tag struct { // The name of the tag Name string `json:"name,required"` // The number of applications that have this tag AppCount int64 `json:"app_count"` CreatedAt time.Time `json:"created_at" format:"date-time"` UpdatedAt time.Time `json:"updated_at" format:"date-time"` JSON tagJSON `json:"-"` }
A tag
func (*Tag) UnmarshalJSON ¶
type TaniumInput ¶
type TaniumInput struct { // Posture Integration ID. ConnectionID string `json:"connection_id,required"` // For more details on eid last seen, refer to the Tanium documentation. EidLastSeen string `json:"eid_last_seen"` // Operator to evaluate risk_level or eid_last_seen. Operator TaniumInputOperator `json:"operator"` // For more details on risk level, refer to the Tanium documentation. RiskLevel TaniumInputRiskLevel `json:"risk_level"` // Score Operator ScoreOperator TaniumInputScoreOperator `json:"scoreOperator"` // For more details on total score, refer to the Tanium documentation. TotalScore float64 `json:"total_score"` JSON taniumInputJSON `json:"-"` }
func (*TaniumInput) UnmarshalJSON ¶
func (r *TaniumInput) UnmarshalJSON(data []byte) (err error)
type TaniumInputOperator ¶
type TaniumInputOperator string
Operator to evaluate risk_level or eid_last_seen.
const ( TaniumInputOperatorLess TaniumInputOperator = "<" TaniumInputOperatorLessOrEquals TaniumInputOperator = "<=" TaniumInputOperatorGreater TaniumInputOperator = ">" TaniumInputOperatorGreaterOrEquals TaniumInputOperator = ">=" TaniumInputOperatorEquals TaniumInputOperator = "==" )
func (TaniumInputOperator) IsKnown ¶
func (r TaniumInputOperator) IsKnown() bool
type TaniumInputParam ¶
type TaniumInputParam struct { // Posture Integration ID. ConnectionID param.Field[string] `json:"connection_id,required"` // For more details on eid last seen, refer to the Tanium documentation. EidLastSeen param.Field[string] `json:"eid_last_seen"` // Operator to evaluate risk_level or eid_last_seen. Operator param.Field[TaniumInputOperator] `json:"operator"` // For more details on risk level, refer to the Tanium documentation. RiskLevel param.Field[TaniumInputRiskLevel] `json:"risk_level"` // Score Operator ScoreOperator param.Field[TaniumInputScoreOperator] `json:"scoreOperator"` // For more details on total score, refer to the Tanium documentation. TotalScore param.Field[float64] `json:"total_score"` }
func (TaniumInputParam) MarshalJSON ¶
func (r TaniumInputParam) MarshalJSON() (data []byte, err error)
type TaniumInputRiskLevel ¶
type TaniumInputRiskLevel string
For more details on risk level, refer to the Tanium documentation.
const ( TaniumInputRiskLevelLow TaniumInputRiskLevel = "low" TaniumInputRiskLevelMedium TaniumInputRiskLevel = "medium" TaniumInputRiskLevelHigh TaniumInputRiskLevel = "high" TaniumInputRiskLevelCritical TaniumInputRiskLevel = "critical" )
func (TaniumInputRiskLevel) IsKnown ¶
func (r TaniumInputRiskLevel) IsKnown() bool
type TaniumInputScoreOperator ¶
type TaniumInputScoreOperator string
Score Operator
const ( TaniumInputScoreOperatorLess TaniumInputScoreOperator = "<" TaniumInputScoreOperatorLessOrEquals TaniumInputScoreOperator = "<=" TaniumInputScoreOperatorGreater TaniumInputScoreOperator = ">" TaniumInputScoreOperatorGreaterOrEquals TaniumInputScoreOperator = ">=" TaniumInputScoreOperatorEquals TaniumInputScoreOperator = "==" )
func (TaniumInputScoreOperator) IsKnown ¶
func (r TaniumInputScoreOperator) IsKnown() bool
type Teamnet ¶
type Teamnet struct { // UUID of the route. ID string `json:"id"` // Optional remark describing the route. Comment string `json:"comment"` // Timestamp of when the route was created. CreatedAt interface{} `json:"created_at"` // Timestamp of when the route was deleted. If `null`, the route has not been // deleted. DeletedAt time.Time `json:"deleted_at,nullable" format:"date-time"` // The private IPv4 or IPv6 range connected by the route, in CIDR notation. Network string `json:"network"` // The type of tunnel. TunType TeamnetTunType `json:"tun_type"` // UUID of the Cloudflare Tunnel serving the route. TunnelID interface{} `json:"tunnel_id"` // The user-friendly name of the Cloudflare Tunnel serving the route. TunnelName interface{} `json:"tunnel_name"` // UUID of the Tunnel Virtual Network this route belongs to. If no virtual networks // are configured, the route is assigned to the default virtual network of the // account. VirtualNetworkID interface{} `json:"virtual_network_id"` // A user-friendly name for the virtual network. VirtualNetworkName string `json:"virtual_network_name"` JSON teamnetJSON `json:"-"` }
func (*Teamnet) UnmarshalJSON ¶
type TeamnetTunType ¶
type TeamnetTunType string
The type of tunnel.
const ( TeamnetTunTypeCfdTunnel TeamnetTunType = "cfd_tunnel" TeamnetTunTypeWARPConnector TeamnetTunType = "warp_connector" TeamnetTunTypeIPSec TeamnetTunType = "ip_sec" TeamnetTunTypeGRE TeamnetTunType = "gre" TeamnetTunTypeCNI TeamnetTunType = "cni" )
func (TeamnetTunType) IsKnown ¶
func (r TeamnetTunType) IsKnown() bool
type TestStatOverTime ¶
type TestStatOverTime struct { Slots []TestStatOverTimeSlot `json:"slots,required"` // average observed in the time period Avg int64 `json:"avg,nullable"` // highest observed in the time period Max int64 `json:"max,nullable"` // lowest observed in the time period Min int64 `json:"min,nullable"` JSON testStatOverTimeJSON `json:"-"` }
func (*TestStatOverTime) UnmarshalJSON ¶
func (r *TestStatOverTime) UnmarshalJSON(data []byte) (err error)
type TestStatOverTimeSlot ¶
type TestStatOverTimeSlot struct { Timestamp string `json:"timestamp,required"` Value int64 `json:"value,required"` JSON testStatOverTimeSlotJSON `json:"-"` }
func (*TestStatOverTimeSlot) UnmarshalJSON ¶
func (r *TestStatOverTimeSlot) UnmarshalJSON(data []byte) (err error)
type Tests ¶
type Tests struct { OverviewMetrics TestsOverviewMetrics `json:"overviewMetrics,required"` // array of test results objects. Tests []TestsTest `json:"tests,required"` JSON testsJSON `json:"-"` }
func (*Tests) UnmarshalJSON ¶
type TestsOverviewMetrics ¶
type TestsOverviewMetrics struct { // number of tests. TestsTotal int64 `json:"testsTotal,required"` // percentage availability for all HTTP test results in response AvgHTTPAvailabilityPct float64 `json:"avgHttpAvailabilityPct,nullable"` // percentage availability for all traceroutes results in response AvgTracerouteAvailabilityPct float64 `json:"avgTracerouteAvailabilityPct,nullable"` JSON testsOverviewMetricsJSON `json:"-"` }
func (*TestsOverviewMetrics) UnmarshalJSON ¶
func (r *TestsOverviewMetrics) UnmarshalJSON(data []byte) (err error)
type TestsTest ¶
type TestsTest struct { // API Resource UUID tag. ID string `json:"id,required"` // date the test was created. Created string `json:"created,required"` // the test description defined during configuration Description string `json:"description,required"` // if true, then the test will run on targeted devices. Else, the test will not // run. Enabled bool `json:"enabled,required"` Host string `json:"host,required"` // The interval at which the synthetic application test is set to run. Interval string `json:"interval,required"` // test type, http or traceroute Kind TestsTestsKind `json:"kind,required"` // name given to this test Name string `json:"name,required"` Updated string `json:"updated,required"` HTTPResults TestsTestsHTTPResults `json:"httpResults,nullable"` HTTPResultsByColo []TestsTestsHTTPResultsByColo `json:"httpResultsByColo"` // for HTTP, the method to use when running the test Method string `json:"method"` TargetPolicies []DeviceExperienceMonitor `json:"target_policies,nullable"` Targeted bool `json:"targeted"` TracerouteResults TestsTestsTracerouteResults `json:"tracerouteResults,nullable"` TracerouteResultsByColo []TestsTestsTracerouteResultsByColo `json:"tracerouteResultsByColo"` JSON testsTestJSON `json:"-"` }
func (*TestsTest) UnmarshalJSON ¶
type TestsTestsHTTPResults ¶
type TestsTestsHTTPResults struct { ResourceFetchTime TestsTestsHTTPResultsResourceFetchTime `json:"resourceFetchTime,required"` JSON testsTestsHTTPResultsJSON `json:"-"` }
func (*TestsTestsHTTPResults) UnmarshalJSON ¶
func (r *TestsTestsHTTPResults) UnmarshalJSON(data []byte) (err error)
type TestsTestsHTTPResultsByColo ¶
type TestsTestsHTTPResultsByColo struct { // Cloudflare colo Colo string `json:"colo,required"` ResourceFetchTime TestsTestsHTTPResultsByColoResourceFetchTime `json:"resourceFetchTime,required"` JSON testsTestsHTTPResultsByColoJSON `json:"-"` }
func (*TestsTestsHTTPResultsByColo) UnmarshalJSON ¶
func (r *TestsTestsHTTPResultsByColo) UnmarshalJSON(data []byte) (err error)
type TestsTestsHTTPResultsByColoResourceFetchTime ¶
type TestsTestsHTTPResultsByColoResourceFetchTime struct { History []TestsTestsHTTPResultsByColoResourceFetchTimeHistory `json:"history,required"` AvgMs int64 `json:"avgMs,nullable"` OverTime TestsTestsHTTPResultsByColoResourceFetchTimeOverTime `json:"overTime,nullable"` JSON testsTestsHTTPResultsByColoResourceFetchTimeJSON `json:"-"` }
func (*TestsTestsHTTPResultsByColoResourceFetchTime) UnmarshalJSON ¶
func (r *TestsTestsHTTPResultsByColoResourceFetchTime) UnmarshalJSON(data []byte) (err error)
type TestsTestsHTTPResultsByColoResourceFetchTimeHistory ¶
type TestsTestsHTTPResultsByColoResourceFetchTimeHistory struct { TimePeriod AggregateTimePeriod `json:"timePeriod,required"` AvgMs int64 `json:"avgMs,nullable"` DeltaPct float64 `json:"deltaPct,nullable"` JSON testsTestsHTTPResultsByColoResourceFetchTimeHistoryJSON `json:"-"` }
func (*TestsTestsHTTPResultsByColoResourceFetchTimeHistory) UnmarshalJSON ¶
func (r *TestsTestsHTTPResultsByColoResourceFetchTimeHistory) UnmarshalJSON(data []byte) (err error)
type TestsTestsHTTPResultsByColoResourceFetchTimeOverTime ¶
type TestsTestsHTTPResultsByColoResourceFetchTimeOverTime struct { TimePeriod AggregateTimePeriod `json:"timePeriod,required"` Values []TestsTestsHTTPResultsByColoResourceFetchTimeOverTimeValue `json:"values,required"` JSON testsTestsHTTPResultsByColoResourceFetchTimeOverTimeJSON `json:"-"` }
func (*TestsTestsHTTPResultsByColoResourceFetchTimeOverTime) UnmarshalJSON ¶
func (r *TestsTestsHTTPResultsByColoResourceFetchTimeOverTime) UnmarshalJSON(data []byte) (err error)
type TestsTestsHTTPResultsByColoResourceFetchTimeOverTimeValue ¶
type TestsTestsHTTPResultsByColoResourceFetchTimeOverTimeValue struct { AvgMs int64 `json:"avgMs,required"` Timestamp string `json:"timestamp,required"` JSON testsTestsHTTPResultsByColoResourceFetchTimeOverTimeValueJSON `json:"-"` }
func (*TestsTestsHTTPResultsByColoResourceFetchTimeOverTimeValue) UnmarshalJSON ¶
func (r *TestsTestsHTTPResultsByColoResourceFetchTimeOverTimeValue) UnmarshalJSON(data []byte) (err error)
type TestsTestsHTTPResultsResourceFetchTime ¶
type TestsTestsHTTPResultsResourceFetchTime struct { History []TestsTestsHTTPResultsResourceFetchTimeHistory `json:"history,required"` AvgMs int64 `json:"avgMs,nullable"` OverTime TestsTestsHTTPResultsResourceFetchTimeOverTime `json:"overTime,nullable"` JSON testsTestsHTTPResultsResourceFetchTimeJSON `json:"-"` }
func (*TestsTestsHTTPResultsResourceFetchTime) UnmarshalJSON ¶
func (r *TestsTestsHTTPResultsResourceFetchTime) UnmarshalJSON(data []byte) (err error)
type TestsTestsHTTPResultsResourceFetchTimeHistory ¶
type TestsTestsHTTPResultsResourceFetchTimeHistory struct { TimePeriod AggregateTimePeriod `json:"timePeriod,required"` AvgMs int64 `json:"avgMs,nullable"` DeltaPct float64 `json:"deltaPct,nullable"` JSON testsTestsHTTPResultsResourceFetchTimeHistoryJSON `json:"-"` }
func (*TestsTestsHTTPResultsResourceFetchTimeHistory) UnmarshalJSON ¶
func (r *TestsTestsHTTPResultsResourceFetchTimeHistory) UnmarshalJSON(data []byte) (err error)
type TestsTestsHTTPResultsResourceFetchTimeOverTime ¶
type TestsTestsHTTPResultsResourceFetchTimeOverTime struct { TimePeriod AggregateTimePeriod `json:"timePeriod,required"` Values []TestsTestsHTTPResultsResourceFetchTimeOverTimeValue `json:"values,required"` JSON testsTestsHTTPResultsResourceFetchTimeOverTimeJSON `json:"-"` }
func (*TestsTestsHTTPResultsResourceFetchTimeOverTime) UnmarshalJSON ¶
func (r *TestsTestsHTTPResultsResourceFetchTimeOverTime) UnmarshalJSON(data []byte) (err error)
type TestsTestsHTTPResultsResourceFetchTimeOverTimeValue ¶
type TestsTestsHTTPResultsResourceFetchTimeOverTimeValue struct { AvgMs int64 `json:"avgMs,required"` Timestamp string `json:"timestamp,required"` JSON testsTestsHTTPResultsResourceFetchTimeOverTimeValueJSON `json:"-"` }
func (*TestsTestsHTTPResultsResourceFetchTimeOverTimeValue) UnmarshalJSON ¶
func (r *TestsTestsHTTPResultsResourceFetchTimeOverTimeValue) UnmarshalJSON(data []byte) (err error)
type TestsTestsKind ¶
type TestsTestsKind string
test type, http or traceroute
const ( TestsTestsKindHTTP TestsTestsKind = "http" TestsTestsKindTraceroute TestsTestsKind = "traceroute" )
func (TestsTestsKind) IsKnown ¶
func (r TestsTestsKind) IsKnown() bool
type TestsTestsTracerouteResults ¶
type TestsTestsTracerouteResults struct { RoundTripTime TestsTestsTracerouteResultsRoundTripTime `json:"roundTripTime,required"` JSON testsTestsTracerouteResultsJSON `json:"-"` }
func (*TestsTestsTracerouteResults) UnmarshalJSON ¶
func (r *TestsTestsTracerouteResults) UnmarshalJSON(data []byte) (err error)
type TestsTestsTracerouteResultsByColo ¶
type TestsTestsTracerouteResultsByColo struct { // Cloudflare colo Colo string `json:"colo,required"` RoundTripTime TestsTestsTracerouteResultsByColoRoundTripTime `json:"roundTripTime,required"` JSON testsTestsTracerouteResultsByColoJSON `json:"-"` }
func (*TestsTestsTracerouteResultsByColo) UnmarshalJSON ¶
func (r *TestsTestsTracerouteResultsByColo) UnmarshalJSON(data []byte) (err error)
type TestsTestsTracerouteResultsByColoRoundTripTime ¶
type TestsTestsTracerouteResultsByColoRoundTripTime struct { History []TestsTestsTracerouteResultsByColoRoundTripTimeHistory `json:"history,required"` AvgMs int64 `json:"avgMs,nullable"` OverTime TestsTestsTracerouteResultsByColoRoundTripTimeOverTime `json:"overTime,nullable"` JSON testsTestsTracerouteResultsByColoRoundTripTimeJSON `json:"-"` }
func (*TestsTestsTracerouteResultsByColoRoundTripTime) UnmarshalJSON ¶
func (r *TestsTestsTracerouteResultsByColoRoundTripTime) UnmarshalJSON(data []byte) (err error)
type TestsTestsTracerouteResultsByColoRoundTripTimeHistory ¶
type TestsTestsTracerouteResultsByColoRoundTripTimeHistory struct { TimePeriod AggregateTimePeriod `json:"timePeriod,required"` AvgMs int64 `json:"avgMs,nullable"` DeltaPct float64 `json:"deltaPct,nullable"` JSON testsTestsTracerouteResultsByColoRoundTripTimeHistoryJSON `json:"-"` }
func (*TestsTestsTracerouteResultsByColoRoundTripTimeHistory) UnmarshalJSON ¶
func (r *TestsTestsTracerouteResultsByColoRoundTripTimeHistory) UnmarshalJSON(data []byte) (err error)
type TestsTestsTracerouteResultsByColoRoundTripTimeOverTime ¶
type TestsTestsTracerouteResultsByColoRoundTripTimeOverTime struct { TimePeriod AggregateTimePeriod `json:"timePeriod,required"` Values []TestsTestsTracerouteResultsByColoRoundTripTimeOverTimeValue `json:"values,required"` JSON testsTestsTracerouteResultsByColoRoundTripTimeOverTimeJSON `json:"-"` }
func (*TestsTestsTracerouteResultsByColoRoundTripTimeOverTime) UnmarshalJSON ¶
func (r *TestsTestsTracerouteResultsByColoRoundTripTimeOverTime) UnmarshalJSON(data []byte) (err error)
type TestsTestsTracerouteResultsByColoRoundTripTimeOverTimeValue ¶
type TestsTestsTracerouteResultsByColoRoundTripTimeOverTimeValue struct { AvgMs int64 `json:"avgMs,required"` Timestamp string `json:"timestamp,required"` JSON testsTestsTracerouteResultsByColoRoundTripTimeOverTimeValueJSON `json:"-"` }
func (*TestsTestsTracerouteResultsByColoRoundTripTimeOverTimeValue) UnmarshalJSON ¶
func (r *TestsTestsTracerouteResultsByColoRoundTripTimeOverTimeValue) UnmarshalJSON(data []byte) (err error)
type TestsTestsTracerouteResultsRoundTripTime ¶
type TestsTestsTracerouteResultsRoundTripTime struct { History []TestsTestsTracerouteResultsRoundTripTimeHistory `json:"history,required"` AvgMs int64 `json:"avgMs,nullable"` OverTime TestsTestsTracerouteResultsRoundTripTimeOverTime `json:"overTime,nullable"` JSON testsTestsTracerouteResultsRoundTripTimeJSON `json:"-"` }
func (*TestsTestsTracerouteResultsRoundTripTime) UnmarshalJSON ¶
func (r *TestsTestsTracerouteResultsRoundTripTime) UnmarshalJSON(data []byte) (err error)
type TestsTestsTracerouteResultsRoundTripTimeHistory ¶
type TestsTestsTracerouteResultsRoundTripTimeHistory struct { TimePeriod AggregateTimePeriod `json:"timePeriod,required"` AvgMs int64 `json:"avgMs,nullable"` DeltaPct float64 `json:"deltaPct,nullable"` JSON testsTestsTracerouteResultsRoundTripTimeHistoryJSON `json:"-"` }
func (*TestsTestsTracerouteResultsRoundTripTimeHistory) UnmarshalJSON ¶
func (r *TestsTestsTracerouteResultsRoundTripTimeHistory) UnmarshalJSON(data []byte) (err error)
type TestsTestsTracerouteResultsRoundTripTimeOverTime ¶
type TestsTestsTracerouteResultsRoundTripTimeOverTime struct { TimePeriod AggregateTimePeriod `json:"timePeriod,required"` Values []TestsTestsTracerouteResultsRoundTripTimeOverTimeValue `json:"values,required"` JSON testsTestsTracerouteResultsRoundTripTimeOverTimeJSON `json:"-"` }
func (*TestsTestsTracerouteResultsRoundTripTimeOverTime) UnmarshalJSON ¶
func (r *TestsTestsTracerouteResultsRoundTripTimeOverTime) UnmarshalJSON(data []byte) (err error)
type TestsTestsTracerouteResultsRoundTripTimeOverTimeValue ¶
type TestsTestsTracerouteResultsRoundTripTimeOverTimeValue struct { AvgMs int64 `json:"avgMs,required"` Timestamp string `json:"timestamp,required"` JSON testsTestsTracerouteResultsRoundTripTimeOverTimeValueJSON `json:"-"` }
func (*TestsTestsTracerouteResultsRoundTripTimeOverTimeValue) UnmarshalJSON ¶
func (r *TestsTestsTracerouteResultsRoundTripTimeOverTimeValue) UnmarshalJSON(data []byte) (err error)
type Traceroute ¶
type Traceroute struct { // The host of the Traceroute synthetic application test Host string `json:"host,required"` // The interval at which the Traceroute synthetic application test is set to run. Interval string `json:"interval,required"` Kind TracerouteKind `json:"kind,required"` // The name of the Traceroute synthetic application test Name string `json:"name,required"` TargetPolicies []DeviceExperienceMonitor `json:"target_policies,nullable"` Targeted bool `json:"targeted"` TracerouteStats TracerouteTracerouteStats `json:"tracerouteStats,nullable"` TracerouteStatsByColo []TracerouteTracerouteStatsByColo `json:"tracerouteStatsByColo"` JSON tracerouteJSON `json:"-"` }
func (*Traceroute) UnmarshalJSON ¶
func (r *Traceroute) UnmarshalJSON(data []byte) (err error)
type TracerouteKind ¶
type TracerouteKind string
const (
TracerouteKindTraceroute TracerouteKind = "traceroute"
)
func (TracerouteKind) IsKnown ¶
func (r TracerouteKind) IsKnown() bool
type TracerouteTracerouteStats ¶
type TracerouteTracerouteStats struct { AvailabilityPct TracerouteTracerouteStatsAvailabilityPct `json:"availabilityPct,required"` HopsCount TestStatOverTime `json:"hopsCount,required"` PacketLossPct TracerouteTracerouteStatsPacketLossPct `json:"packetLossPct,required"` RoundTripTimeMs TestStatOverTime `json:"roundTripTimeMs,required"` // Count of unique devices that have run this test in the given time period UniqueDevicesTotal int64 `json:"uniqueDevicesTotal,required"` JSON tracerouteTracerouteStatsJSON `json:"-"` }
func (*TracerouteTracerouteStats) UnmarshalJSON ¶
func (r *TracerouteTracerouteStats) UnmarshalJSON(data []byte) (err error)
type TracerouteTracerouteStatsAvailabilityPct ¶
type TracerouteTracerouteStatsAvailabilityPct struct { Slots []TracerouteTracerouteStatsAvailabilityPctSlot `json:"slots,required"` // average observed in the time period Avg float64 `json:"avg,nullable"` // highest observed in the time period Max float64 `json:"max,nullable"` // lowest observed in the time period Min float64 `json:"min,nullable"` JSON tracerouteTracerouteStatsAvailabilityPctJSON `json:"-"` }
func (*TracerouteTracerouteStatsAvailabilityPct) UnmarshalJSON ¶
func (r *TracerouteTracerouteStatsAvailabilityPct) UnmarshalJSON(data []byte) (err error)
type TracerouteTracerouteStatsAvailabilityPctSlot ¶
type TracerouteTracerouteStatsAvailabilityPctSlot struct { Timestamp string `json:"timestamp,required"` Value float64 `json:"value,required"` JSON tracerouteTracerouteStatsAvailabilityPctSlotJSON `json:"-"` }
func (*TracerouteTracerouteStatsAvailabilityPctSlot) UnmarshalJSON ¶
func (r *TracerouteTracerouteStatsAvailabilityPctSlot) UnmarshalJSON(data []byte) (err error)
type TracerouteTracerouteStatsByColo ¶
type TracerouteTracerouteStatsByColo struct { AvailabilityPct TracerouteTracerouteStatsByColoAvailabilityPct `json:"availabilityPct,required"` Colo string `json:"colo,required"` HopsCount TestStatOverTime `json:"hopsCount,required"` PacketLossPct TracerouteTracerouteStatsByColoPacketLossPct `json:"packetLossPct,required"` RoundTripTimeMs TestStatOverTime `json:"roundTripTimeMs,required"` // Count of unique devices that have run this test in the given time period UniqueDevicesTotal int64 `json:"uniqueDevicesTotal,required"` JSON tracerouteTracerouteStatsByColoJSON `json:"-"` }
func (*TracerouteTracerouteStatsByColo) UnmarshalJSON ¶
func (r *TracerouteTracerouteStatsByColo) UnmarshalJSON(data []byte) (err error)
type TracerouteTracerouteStatsByColoAvailabilityPct ¶
type TracerouteTracerouteStatsByColoAvailabilityPct struct { Slots []TracerouteTracerouteStatsByColoAvailabilityPctSlot `json:"slots,required"` // average observed in the time period Avg float64 `json:"avg,nullable"` // highest observed in the time period Max float64 `json:"max,nullable"` // lowest observed in the time period Min float64 `json:"min,nullable"` JSON tracerouteTracerouteStatsByColoAvailabilityPctJSON `json:"-"` }
func (*TracerouteTracerouteStatsByColoAvailabilityPct) UnmarshalJSON ¶
func (r *TracerouteTracerouteStatsByColoAvailabilityPct) UnmarshalJSON(data []byte) (err error)
type TracerouteTracerouteStatsByColoAvailabilityPctSlot ¶
type TracerouteTracerouteStatsByColoAvailabilityPctSlot struct { Timestamp string `json:"timestamp,required"` Value float64 `json:"value,required"` JSON tracerouteTracerouteStatsByColoAvailabilityPctSlotJSON `json:"-"` }
func (*TracerouteTracerouteStatsByColoAvailabilityPctSlot) UnmarshalJSON ¶
func (r *TracerouteTracerouteStatsByColoAvailabilityPctSlot) UnmarshalJSON(data []byte) (err error)
type TracerouteTracerouteStatsByColoPacketLossPct ¶
type TracerouteTracerouteStatsByColoPacketLossPct struct { Slots []TracerouteTracerouteStatsByColoPacketLossPctSlot `json:"slots,required"` // average observed in the time period Avg float64 `json:"avg,nullable"` // highest observed in the time period Max float64 `json:"max,nullable"` // lowest observed in the time period Min float64 `json:"min,nullable"` JSON tracerouteTracerouteStatsByColoPacketLossPctJSON `json:"-"` }
func (*TracerouteTracerouteStatsByColoPacketLossPct) UnmarshalJSON ¶
func (r *TracerouteTracerouteStatsByColoPacketLossPct) UnmarshalJSON(data []byte) (err error)
type TracerouteTracerouteStatsByColoPacketLossPctSlot ¶
type TracerouteTracerouteStatsByColoPacketLossPctSlot struct { Timestamp string `json:"timestamp,required"` Value float64 `json:"value,required"` JSON tracerouteTracerouteStatsByColoPacketLossPctSlotJSON `json:"-"` }
func (*TracerouteTracerouteStatsByColoPacketLossPctSlot) UnmarshalJSON ¶
func (r *TracerouteTracerouteStatsByColoPacketLossPctSlot) UnmarshalJSON(data []byte) (err error)
type TracerouteTracerouteStatsPacketLossPct ¶
type TracerouteTracerouteStatsPacketLossPct struct { Slots []TracerouteTracerouteStatsPacketLossPctSlot `json:"slots,required"` // average observed in the time period Avg float64 `json:"avg,nullable"` // highest observed in the time period Max float64 `json:"max,nullable"` // lowest observed in the time period Min float64 `json:"min,nullable"` JSON tracerouteTracerouteStatsPacketLossPctJSON `json:"-"` }
func (*TracerouteTracerouteStatsPacketLossPct) UnmarshalJSON ¶
func (r *TracerouteTracerouteStatsPacketLossPct) UnmarshalJSON(data []byte) (err error)
type TracerouteTracerouteStatsPacketLossPctSlot ¶
type TracerouteTracerouteStatsPacketLossPctSlot struct { Timestamp string `json:"timestamp,required"` Value float64 `json:"value,required"` JSON tracerouteTracerouteStatsPacketLossPctSlotJSON `json:"-"` }
func (*TracerouteTracerouteStatsPacketLossPctSlot) UnmarshalJSON ¶
func (r *TracerouteTracerouteStatsPacketLossPctSlot) UnmarshalJSON(data []byte) (err error)
type TunnelConfigurationGetResponseArray ¶
type TunnelConfigurationGetResponseArray []interface{}
func (TunnelConfigurationGetResponseArray) ImplementsZeroTrustTunnelConfigurationGetResponseUnion ¶
func (r TunnelConfigurationGetResponseArray) ImplementsZeroTrustTunnelConfigurationGetResponseUnion()
type TunnelConfigurationGetResponseEnvelope ¶
type TunnelConfigurationGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result TunnelConfigurationGetResponseUnion `json:"result,required"` // Whether the API call was successful Success TunnelConfigurationGetResponseEnvelopeSuccess `json:"success,required"` JSON tunnelConfigurationGetResponseEnvelopeJSON `json:"-"` }
func (*TunnelConfigurationGetResponseEnvelope) UnmarshalJSON ¶
func (r *TunnelConfigurationGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type TunnelConfigurationGetResponseEnvelopeSuccess ¶
type TunnelConfigurationGetResponseEnvelopeSuccess bool
Whether the API call was successful
const (
TunnelConfigurationGetResponseEnvelopeSuccessTrue TunnelConfigurationGetResponseEnvelopeSuccess = true
)
func (TunnelConfigurationGetResponseEnvelopeSuccess) IsKnown ¶
func (r TunnelConfigurationGetResponseEnvelopeSuccess) IsKnown() bool
type TunnelConfigurationGetResponseUnion ¶
type TunnelConfigurationGetResponseUnion interface {
ImplementsZeroTrustTunnelConfigurationGetResponseUnion()
}
Union satisfied by zero_trust.TunnelConfigurationGetResponseUnknown, zero_trust.TunnelConfigurationGetResponseArray or shared.UnionString.
type TunnelConfigurationService ¶
type TunnelConfigurationService struct {
Options []option.RequestOption
}
TunnelConfigurationService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewTunnelConfigurationService method instead.
func NewTunnelConfigurationService ¶
func NewTunnelConfigurationService(opts ...option.RequestOption) (r *TunnelConfigurationService)
NewTunnelConfigurationService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*TunnelConfigurationService) Get ¶
func (r *TunnelConfigurationService) Get(ctx context.Context, tunnelID string, query TunnelConfigurationGetParams, opts ...option.RequestOption) (res *TunnelConfigurationGetResponseUnion, err error)
Gets the configuration for a remotely-managed tunnel
func (*TunnelConfigurationService) Update ¶
func (r *TunnelConfigurationService) Update(ctx context.Context, tunnelID string, params TunnelConfigurationUpdateParams, opts ...option.RequestOption) (res *TunnelConfigurationUpdateResponseUnion, err error)
Adds or updates the configuration for a remotely-managed tunnel.
type TunnelConfigurationUpdateParams ¶
type TunnelConfigurationUpdateParams struct { // Identifier AccountID param.Field[string] `path:"account_id,required"` // The tunnel configuration and ingress rules. Config param.Field[TunnelConfigurationUpdateParamsConfig] `json:"config"` }
func (TunnelConfigurationUpdateParams) MarshalJSON ¶
func (r TunnelConfigurationUpdateParams) MarshalJSON() (data []byte, err error)
type TunnelConfigurationUpdateParamsConfig ¶
type TunnelConfigurationUpdateParamsConfig struct { // List of public hostname definitions Ingress param.Field[[]TunnelConfigurationUpdateParamsConfigIngress] `json:"ingress"` // Configuration parameters of connection between cloudflared and origin server. OriginRequest param.Field[TunnelConfigurationUpdateParamsConfigOriginRequest] `json:"originRequest"` // Enable private network access from WARP users to private network routes WARPRouting param.Field[TunnelConfigurationUpdateParamsConfigWARPRouting] `json:"warp-routing"` }
The tunnel configuration and ingress rules.
func (TunnelConfigurationUpdateParamsConfig) MarshalJSON ¶
func (r TunnelConfigurationUpdateParamsConfig) MarshalJSON() (data []byte, err error)
type TunnelConfigurationUpdateParamsConfigIngress ¶
type TunnelConfigurationUpdateParamsConfigIngress struct { // Public hostname for this service. Hostname param.Field[string] `json:"hostname,required"` // Protocol and address of destination server. Supported protocols: http://, // https://, unix://, tcp://, ssh://, rdp://, unix+tls://, smb://. Alternatively // can return a HTTP status code http_status:[code] e.g. 'http_status:404'. Service param.Field[string] `json:"service,required"` // Configuration parameters of connection between cloudflared and origin server. OriginRequest param.Field[TunnelConfigurationUpdateParamsConfigIngressOriginRequest] `json:"originRequest"` // Requests with this path route to this public hostname. Path param.Field[string] `json:"path"` }
Public hostname
func (TunnelConfigurationUpdateParamsConfigIngress) MarshalJSON ¶
func (r TunnelConfigurationUpdateParamsConfigIngress) MarshalJSON() (data []byte, err error)
type TunnelConfigurationUpdateParamsConfigIngressOriginRequest ¶
type TunnelConfigurationUpdateParamsConfigIngressOriginRequest struct { // For all L7 requests to this hostname, cloudflared will validate each request's // Cf-Access-Jwt-Assertion request header. Access param.Field[TunnelConfigurationUpdateParamsConfigIngressOriginRequestAccess] `json:"access"` // Path to the certificate authority (CA) for the certificate of your origin. This // option should be used only if your certificate is not signed by Cloudflare. CAPool param.Field[string] `json:"caPool"` // Timeout for establishing a new TCP connection to your origin server. This // excludes the time taken to establish TLS, which is controlled by tlsTimeout. ConnectTimeout param.Field[int64] `json:"connectTimeout"` // Disables chunked transfer encoding. Useful if you are running a WSGI server. DisableChunkedEncoding param.Field[bool] `json:"disableChunkedEncoding"` // Attempt to connect to origin using HTTP2. Origin must be configured as https. HTTP2Origin param.Field[bool] `json:"http2Origin"` // Sets the HTTP Host header on requests sent to the local service. HTTPHostHeader param.Field[string] `json:"httpHostHeader"` // Maximum number of idle keepalive connections between Tunnel and your origin. // This does not restrict the total number of concurrent connections. KeepAliveConnections param.Field[int64] `json:"keepAliveConnections"` // Timeout after which an idle keepalive connection can be discarded. KeepAliveTimeout param.Field[int64] `json:"keepAliveTimeout"` // Disable the “happy eyeballs” algorithm for IPv4/IPv6 fallback if your local // network has misconfigured one of the protocols. NoHappyEyeballs param.Field[bool] `json:"noHappyEyeballs"` // Disables TLS verification of the certificate presented by your origin. Will // allow any certificate from the origin to be accepted. NoTLSVerify param.Field[bool] `json:"noTLSVerify"` // Hostname that cloudflared should expect from your origin server certificate. OriginServerName param.Field[string] `json:"originServerName"` // cloudflared starts a proxy server to translate HTTP traffic into TCP when // proxying, for example, SSH or RDP. This configures what type of proxy will be // started. Valid options are: "" for the regular proxy and "socks" for a SOCKS5 // proxy. ProxyType param.Field[string] `json:"proxyType"` // The timeout after which a TCP keepalive packet is sent on a connection between // Tunnel and the origin server. TCPKeepAlive param.Field[int64] `json:"tcpKeepAlive"` // Timeout for completing a TLS handshake to your origin server, if you have chosen // to connect Tunnel to an HTTPS server. TLSTimeout param.Field[int64] `json:"tlsTimeout"` }
Configuration parameters of connection between cloudflared and origin server.
func (TunnelConfigurationUpdateParamsConfigIngressOriginRequest) MarshalJSON ¶
func (r TunnelConfigurationUpdateParamsConfigIngressOriginRequest) MarshalJSON() (data []byte, err error)
type TunnelConfigurationUpdateParamsConfigIngressOriginRequestAccess ¶
type TunnelConfigurationUpdateParamsConfigIngressOriginRequestAccess struct { // Access applications that are allowed to reach this hostname for this Tunnel. // Audience tags can be identified in the dashboard or via the List Access policies // API. AudTag param.Field[[]string] `json:"audTag,required"` TeamName param.Field[string] `json:"teamName,required"` // Deny traffic that has not fulfilled Access authorization. Required param.Field[bool] `json:"required"` }
For all L7 requests to this hostname, cloudflared will validate each request's Cf-Access-Jwt-Assertion request header.
func (TunnelConfigurationUpdateParamsConfigIngressOriginRequestAccess) MarshalJSON ¶
func (r TunnelConfigurationUpdateParamsConfigIngressOriginRequestAccess) MarshalJSON() (data []byte, err error)
type TunnelConfigurationUpdateParamsConfigOriginRequest ¶
type TunnelConfigurationUpdateParamsConfigOriginRequest struct { // For all L7 requests to this hostname, cloudflared will validate each request's // Cf-Access-Jwt-Assertion request header. Access param.Field[TunnelConfigurationUpdateParamsConfigOriginRequestAccess] `json:"access"` // Path to the certificate authority (CA) for the certificate of your origin. This // option should be used only if your certificate is not signed by Cloudflare. CAPool param.Field[string] `json:"caPool"` // Timeout for establishing a new TCP connection to your origin server. This // excludes the time taken to establish TLS, which is controlled by tlsTimeout. ConnectTimeout param.Field[int64] `json:"connectTimeout"` // Disables chunked transfer encoding. Useful if you are running a WSGI server. DisableChunkedEncoding param.Field[bool] `json:"disableChunkedEncoding"` // Attempt to connect to origin using HTTP2. Origin must be configured as https. HTTP2Origin param.Field[bool] `json:"http2Origin"` // Sets the HTTP Host header on requests sent to the local service. HTTPHostHeader param.Field[string] `json:"httpHostHeader"` // Maximum number of idle keepalive connections between Tunnel and your origin. // This does not restrict the total number of concurrent connections. KeepAliveConnections param.Field[int64] `json:"keepAliveConnections"` // Timeout after which an idle keepalive connection can be discarded. KeepAliveTimeout param.Field[int64] `json:"keepAliveTimeout"` // Disable the “happy eyeballs” algorithm for IPv4/IPv6 fallback if your local // network has misconfigured one of the protocols. NoHappyEyeballs param.Field[bool] `json:"noHappyEyeballs"` // Disables TLS verification of the certificate presented by your origin. Will // allow any certificate from the origin to be accepted. NoTLSVerify param.Field[bool] `json:"noTLSVerify"` // Hostname that cloudflared should expect from your origin server certificate. OriginServerName param.Field[string] `json:"originServerName"` // cloudflared starts a proxy server to translate HTTP traffic into TCP when // proxying, for example, SSH or RDP. This configures what type of proxy will be // started. Valid options are: "" for the regular proxy and "socks" for a SOCKS5 // proxy. ProxyType param.Field[string] `json:"proxyType"` // The timeout after which a TCP keepalive packet is sent on a connection between // Tunnel and the origin server. TCPKeepAlive param.Field[int64] `json:"tcpKeepAlive"` // Timeout for completing a TLS handshake to your origin server, if you have chosen // to connect Tunnel to an HTTPS server. TLSTimeout param.Field[int64] `json:"tlsTimeout"` }
Configuration parameters of connection between cloudflared and origin server.
func (TunnelConfigurationUpdateParamsConfigOriginRequest) MarshalJSON ¶
func (r TunnelConfigurationUpdateParamsConfigOriginRequest) MarshalJSON() (data []byte, err error)
type TunnelConfigurationUpdateParamsConfigOriginRequestAccess ¶
type TunnelConfigurationUpdateParamsConfigOriginRequestAccess struct { // Access applications that are allowed to reach this hostname for this Tunnel. // Audience tags can be identified in the dashboard or via the List Access policies // API. AudTag param.Field[[]string] `json:"audTag,required"` TeamName param.Field[string] `json:"teamName,required"` // Deny traffic that has not fulfilled Access authorization. Required param.Field[bool] `json:"required"` }
For all L7 requests to this hostname, cloudflared will validate each request's Cf-Access-Jwt-Assertion request header.
func (TunnelConfigurationUpdateParamsConfigOriginRequestAccess) MarshalJSON ¶
func (r TunnelConfigurationUpdateParamsConfigOriginRequestAccess) MarshalJSON() (data []byte, err error)
type TunnelConfigurationUpdateParamsConfigWARPRouting ¶
type TunnelConfigurationUpdateParamsConfigWARPRouting struct {
Enabled param.Field[bool] `json:"enabled"`
}
Enable private network access from WARP users to private network routes
func (TunnelConfigurationUpdateParamsConfigWARPRouting) MarshalJSON ¶
func (r TunnelConfigurationUpdateParamsConfigWARPRouting) MarshalJSON() (data []byte, err error)
type TunnelConfigurationUpdateResponseArray ¶
type TunnelConfigurationUpdateResponseArray []interface{}
func (TunnelConfigurationUpdateResponseArray) ImplementsZeroTrustTunnelConfigurationUpdateResponseUnion ¶
func (r TunnelConfigurationUpdateResponseArray) ImplementsZeroTrustTunnelConfigurationUpdateResponseUnion()
type TunnelConfigurationUpdateResponseEnvelope ¶
type TunnelConfigurationUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result TunnelConfigurationUpdateResponseUnion `json:"result,required"` // Whether the API call was successful Success TunnelConfigurationUpdateResponseEnvelopeSuccess `json:"success,required"` JSON tunnelConfigurationUpdateResponseEnvelopeJSON `json:"-"` }
func (*TunnelConfigurationUpdateResponseEnvelope) UnmarshalJSON ¶
func (r *TunnelConfigurationUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type TunnelConfigurationUpdateResponseEnvelopeSuccess ¶
type TunnelConfigurationUpdateResponseEnvelopeSuccess bool
Whether the API call was successful
const (
TunnelConfigurationUpdateResponseEnvelopeSuccessTrue TunnelConfigurationUpdateResponseEnvelopeSuccess = true
)
func (TunnelConfigurationUpdateResponseEnvelopeSuccess) IsKnown ¶
func (r TunnelConfigurationUpdateResponseEnvelopeSuccess) IsKnown() bool
type TunnelConfigurationUpdateResponseUnion ¶
type TunnelConfigurationUpdateResponseUnion interface {
ImplementsZeroTrustTunnelConfigurationUpdateResponseUnion()
}
Union satisfied by zero_trust.TunnelConfigurationUpdateResponseUnknown, zero_trust.TunnelConfigurationUpdateResponseArray or shared.UnionString.
type TunnelConnectionDeleteParams ¶
type TunnelConnectionDeleteParams struct { // Cloudflare account ID AccountID param.Field[string] `path:"account_id,required"` Body interface{} `json:"body,required"` }
func (TunnelConnectionDeleteParams) MarshalJSON ¶
func (r TunnelConnectionDeleteParams) MarshalJSON() (data []byte, err error)
type TunnelConnectionDeleteResponseArray ¶
type TunnelConnectionDeleteResponseArray []interface{}
func (TunnelConnectionDeleteResponseArray) ImplementsZeroTrustTunnelConnectionDeleteResponseUnion ¶
func (r TunnelConnectionDeleteResponseArray) ImplementsZeroTrustTunnelConnectionDeleteResponseUnion()
type TunnelConnectionDeleteResponseEnvelope ¶
type TunnelConnectionDeleteResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result TunnelConnectionDeleteResponseUnion `json:"result,required"` // Whether the API call was successful Success TunnelConnectionDeleteResponseEnvelopeSuccess `json:"success,required"` JSON tunnelConnectionDeleteResponseEnvelopeJSON `json:"-"` }
func (*TunnelConnectionDeleteResponseEnvelope) UnmarshalJSON ¶
func (r *TunnelConnectionDeleteResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type TunnelConnectionDeleteResponseEnvelopeSuccess ¶
type TunnelConnectionDeleteResponseEnvelopeSuccess bool
Whether the API call was successful
const (
TunnelConnectionDeleteResponseEnvelopeSuccessTrue TunnelConnectionDeleteResponseEnvelopeSuccess = true
)
func (TunnelConnectionDeleteResponseEnvelopeSuccess) IsKnown ¶
func (r TunnelConnectionDeleteResponseEnvelopeSuccess) IsKnown() bool
type TunnelConnectionDeleteResponseUnion ¶
type TunnelConnectionDeleteResponseUnion interface {
ImplementsZeroTrustTunnelConnectionDeleteResponseUnion()
}
Union satisfied by zero_trust.TunnelConnectionDeleteResponseUnknown, zero_trust.TunnelConnectionDeleteResponseArray or shared.UnionString.
type TunnelConnectionGetResponseEnvelope ¶
type TunnelConnectionGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result []Client `json:"result,required,nullable"` // Whether the API call was successful Success TunnelConnectionGetResponseEnvelopeSuccess `json:"success,required"` ResultInfo TunnelConnectionGetResponseEnvelopeResultInfo `json:"result_info"` JSON tunnelConnectionGetResponseEnvelopeJSON `json:"-"` }
func (*TunnelConnectionGetResponseEnvelope) UnmarshalJSON ¶
func (r *TunnelConnectionGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type TunnelConnectionGetResponseEnvelopeResultInfo ¶
type TunnelConnectionGetResponseEnvelopeResultInfo struct { // Total number of results for the requested service Count float64 `json:"count"` // Current page within paginated list of results Page float64 `json:"page"` // Number of results per page of results PerPage float64 `json:"per_page"` // Total results available without any search parameters TotalCount float64 `json:"total_count"` JSON tunnelConnectionGetResponseEnvelopeResultInfoJSON `json:"-"` }
func (*TunnelConnectionGetResponseEnvelopeResultInfo) UnmarshalJSON ¶
func (r *TunnelConnectionGetResponseEnvelopeResultInfo) UnmarshalJSON(data []byte) (err error)
type TunnelConnectionGetResponseEnvelopeSuccess ¶
type TunnelConnectionGetResponseEnvelopeSuccess bool
Whether the API call was successful
const (
TunnelConnectionGetResponseEnvelopeSuccessTrue TunnelConnectionGetResponseEnvelopeSuccess = true
)
func (TunnelConnectionGetResponseEnvelopeSuccess) IsKnown ¶
func (r TunnelConnectionGetResponseEnvelopeSuccess) IsKnown() bool
type TunnelConnectionService ¶
type TunnelConnectionService struct {
Options []option.RequestOption
}
TunnelConnectionService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewTunnelConnectionService method instead.
func NewTunnelConnectionService ¶
func NewTunnelConnectionService(opts ...option.RequestOption) (r *TunnelConnectionService)
NewTunnelConnectionService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*TunnelConnectionService) Delete ¶
func (r *TunnelConnectionService) Delete(ctx context.Context, tunnelID string, params TunnelConnectionDeleteParams, opts ...option.RequestOption) (res *TunnelConnectionDeleteResponseUnion, err error)
Removes connections that are in a disconnected or pending reconnect state. We recommend running this command after shutting down a tunnel.
func (*TunnelConnectionService) Get ¶
func (r *TunnelConnectionService) Get(ctx context.Context, tunnelID string, query TunnelConnectionGetParams, opts ...option.RequestOption) (res *[]Client, err error)
Fetches connection details for a Cloudflare Tunnel.
type TunnelConnectorGetResponseEnvelope ¶
type TunnelConnectorGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` // A client (typically cloudflared) that maintains connections to a Cloudflare data // center. Result Client `json:"result,required"` // Whether the API call was successful Success TunnelConnectorGetResponseEnvelopeSuccess `json:"success,required"` JSON tunnelConnectorGetResponseEnvelopeJSON `json:"-"` }
func (*TunnelConnectorGetResponseEnvelope) UnmarshalJSON ¶
func (r *TunnelConnectorGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type TunnelConnectorGetResponseEnvelopeSuccess ¶
type TunnelConnectorGetResponseEnvelopeSuccess bool
Whether the API call was successful
const (
TunnelConnectorGetResponseEnvelopeSuccessTrue TunnelConnectorGetResponseEnvelopeSuccess = true
)
func (TunnelConnectorGetResponseEnvelopeSuccess) IsKnown ¶
func (r TunnelConnectorGetResponseEnvelopeSuccess) IsKnown() bool
type TunnelConnectorService ¶
type TunnelConnectorService struct {
Options []option.RequestOption
}
TunnelConnectorService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewTunnelConnectorService method instead.
func NewTunnelConnectorService ¶
func NewTunnelConnectorService(opts ...option.RequestOption) (r *TunnelConnectorService)
NewTunnelConnectorService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*TunnelConnectorService) Get ¶
func (r *TunnelConnectorService) Get(ctx context.Context, tunnelID string, connectorID string, query TunnelConnectorGetParams, opts ...option.RequestOption) (res *Client, err error)
Fetches connector and connection details for a Cloudflare Tunnel.
type TunnelDeleteParams ¶
type TunnelDeleteParams struct { // Cloudflare account ID AccountID param.Field[string] `path:"account_id,required"` Body interface{} `json:"body,required"` }
func (TunnelDeleteParams) MarshalJSON ¶
func (r TunnelDeleteParams) MarshalJSON() (data []byte, err error)
type TunnelDeleteResponse ¶
type TunnelDeleteResponse struct { // UUID of the tunnel. ID string `json:"id,required"` // The tunnel connections between your origin and Cloudflare's edge. Connections []Connection `json:"connections,required"` // Timestamp of when the tunnel was created. CreatedAt time.Time `json:"created_at,required" format:"date-time"` // A user-friendly name for the tunnel. Name string `json:"name,required"` // Timestamp of when the tunnel was deleted. If `null`, the tunnel has not been // deleted. DeletedAt time.Time `json:"deleted_at,nullable" format:"date-time"` JSON tunnelDeleteResponseJSON `json:"-"` }
func (*TunnelDeleteResponse) UnmarshalJSON ¶
func (r *TunnelDeleteResponse) UnmarshalJSON(data []byte) (err error)
type TunnelDeleteResponseEnvelope ¶
type TunnelDeleteResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result TunnelDeleteResponse `json:"result,required"` // Whether the API call was successful Success TunnelDeleteResponseEnvelopeSuccess `json:"success,required"` JSON tunnelDeleteResponseEnvelopeJSON `json:"-"` }
func (*TunnelDeleteResponseEnvelope) UnmarshalJSON ¶
func (r *TunnelDeleteResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type TunnelDeleteResponseEnvelopeSuccess ¶
type TunnelDeleteResponseEnvelopeSuccess bool
Whether the API call was successful
const (
TunnelDeleteResponseEnvelopeSuccessTrue TunnelDeleteResponseEnvelopeSuccess = true
)
func (TunnelDeleteResponseEnvelopeSuccess) IsKnown ¶
func (r TunnelDeleteResponseEnvelopeSuccess) IsKnown() bool
type TunnelEditParams ¶
type TunnelEditParams struct { // Cloudflare account ID AccountID param.Field[string] `path:"account_id,required"` // A user-friendly name for the tunnel. Name param.Field[string] `json:"name"` // Sets the password required to run a locally-managed tunnel. Must be at least 32 // bytes and encoded as a base64 string. TunnelSecret param.Field[string] `json:"tunnel_secret"` }
func (TunnelEditParams) MarshalJSON ¶
func (r TunnelEditParams) MarshalJSON() (data []byte, err error)
type TunnelEditResponse ¶
type TunnelEditResponse struct { // Cloudflare account ID AccountTag string `json:"account_tag"` Connections interface{} `json:"connections,required"` // Timestamp of when the tunnel established at least one connection to Cloudflare's // edge. If `null`, the tunnel is inactive. ConnsActiveAt time.Time `json:"conns_active_at,nullable" format:"date-time"` // Timestamp of when the tunnel became inactive (no connections to Cloudflare's // edge). If `null`, the tunnel is active. ConnsInactiveAt time.Time `json:"conns_inactive_at,nullable" format:"date-time"` // Timestamp of when the tunnel was created. CreatedAt time.Time `json:"created_at" format:"date-time"` // Timestamp of when the tunnel was deleted. If `null`, the tunnel has not been // deleted. DeletedAt time.Time `json:"deleted_at,nullable" format:"date-time"` // UUID of the tunnel. ID string `json:"id"` Metadata interface{} `json:"metadata,required"` // A user-friendly name for the tunnel. Name string `json:"name"` // If `true`, the tunnel can be configured remotely from the Zero Trust dashboard. // If `false`, the tunnel must be configured locally on the origin machine. RemoteConfig bool `json:"remote_config"` // The status of the tunnel. Valid values are `inactive` (tunnel has never been // run), `degraded` (tunnel is active and able to serve traffic but in an unhealthy // state), `healthy` (tunnel is active and able to serve traffic), or `down` // (tunnel can not serve traffic as it has no connections to the Cloudflare Edge). Status string `json:"status"` // The type of tunnel. TunType TunnelEditResponseTunType `json:"tun_type"` JSON tunnelEditResponseJSON `json:"-"` // contains filtered or unexported fields }
A Cloudflare Tunnel that connects your origin to Cloudflare's edge.
func (TunnelEditResponse) AsUnion ¶
func (r TunnelEditResponse) AsUnion() TunnelEditResponseUnion
func (*TunnelEditResponse) UnmarshalJSON ¶
func (r *TunnelEditResponse) UnmarshalJSON(data []byte) (err error)
type TunnelEditResponseEnvelope ¶
type TunnelEditResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` // A Cloudflare Tunnel that connects your origin to Cloudflare's edge. Result TunnelEditResponse `json:"result,required"` // Whether the API call was successful Success TunnelEditResponseEnvelopeSuccess `json:"success,required"` JSON tunnelEditResponseEnvelopeJSON `json:"-"` }
func (*TunnelEditResponseEnvelope) UnmarshalJSON ¶
func (r *TunnelEditResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type TunnelEditResponseEnvelopeSuccess ¶
type TunnelEditResponseEnvelopeSuccess bool
Whether the API call was successful
const (
TunnelEditResponseEnvelopeSuccessTrue TunnelEditResponseEnvelopeSuccess = true
)
func (TunnelEditResponseEnvelopeSuccess) IsKnown ¶
func (r TunnelEditResponseEnvelopeSuccess) IsKnown() bool
type TunnelEditResponseTunType ¶
type TunnelEditResponseTunType string
The type of tunnel.
const ( TunnelEditResponseTunTypeCfdTunnel TunnelEditResponseTunType = "cfd_tunnel" TunnelEditResponseTunTypeWARPConnector TunnelEditResponseTunType = "warp_connector" TunnelEditResponseTunTypeIPSec TunnelEditResponseTunType = "ip_sec" TunnelEditResponseTunTypeGRE TunnelEditResponseTunType = "gre" TunnelEditResponseTunTypeCNI TunnelEditResponseTunType = "cni" )
func (TunnelEditResponseTunType) IsKnown ¶
func (r TunnelEditResponseTunType) IsKnown() bool
type TunnelEditResponseTunnelWARPConnectorTunnel ¶
type TunnelEditResponseTunnelWARPConnectorTunnel struct { // UUID of the tunnel. ID string `json:"id"` // Cloudflare account ID AccountTag string `json:"account_tag"` // The Cloudflare Tunnel connections between your origin and Cloudflare's edge. Connections []TunnelEditResponseTunnelWARPConnectorTunnelConnection `json:"connections"` // Timestamp of when the tunnel established at least one connection to Cloudflare's // edge. If `null`, the tunnel is inactive. ConnsActiveAt time.Time `json:"conns_active_at,nullable" format:"date-time"` // Timestamp of when the tunnel became inactive (no connections to Cloudflare's // edge). If `null`, the tunnel is active. ConnsInactiveAt time.Time `json:"conns_inactive_at,nullable" format:"date-time"` // Timestamp of when the tunnel was created. CreatedAt time.Time `json:"created_at" format:"date-time"` // Timestamp of when the tunnel was deleted. If `null`, the tunnel has not been // deleted. DeletedAt time.Time `json:"deleted_at,nullable" format:"date-time"` // Metadata associated with the tunnel. Metadata interface{} `json:"metadata"` // A user-friendly name for the tunnel. Name string `json:"name"` // The status of the tunnel. Valid values are `inactive` (tunnel has never been // run), `degraded` (tunnel is active and able to serve traffic but in an unhealthy // state), `healthy` (tunnel is active and able to serve traffic), or `down` // (tunnel can not serve traffic as it has no connections to the Cloudflare Edge). Status string `json:"status"` // The type of tunnel. TunType TunnelEditResponseTunnelWARPConnectorTunnelTunType `json:"tun_type"` JSON tunnelEditResponseTunnelWARPConnectorTunnelJSON `json:"-"` }
A Warp Connector Tunnel that connects your origin to Cloudflare's edge.
func (TunnelEditResponseTunnelWARPConnectorTunnel) ImplementsZeroTrustTunnelEditResponse ¶
func (r TunnelEditResponseTunnelWARPConnectorTunnel) ImplementsZeroTrustTunnelEditResponse()
func (*TunnelEditResponseTunnelWARPConnectorTunnel) UnmarshalJSON ¶
func (r *TunnelEditResponseTunnelWARPConnectorTunnel) UnmarshalJSON(data []byte) (err error)
type TunnelEditResponseTunnelWARPConnectorTunnelConnection ¶
type TunnelEditResponseTunnelWARPConnectorTunnelConnection struct { // UUID of the Cloudflare Tunnel connection. ID string `json:"id"` // UUID of the cloudflared instance. ClientID interface{} `json:"client_id"` // The cloudflared version used to establish this connection. ClientVersion string `json:"client_version"` // The Cloudflare data center used for this connection. ColoName string `json:"colo_name"` // Cloudflare continues to track connections for several minutes after they // disconnect. This is an optimization to improve latency and reliability of // reconnecting. If `true`, the connection has disconnected but is still being // tracked. If `false`, the connection is actively serving traffic. IsPendingReconnect bool `json:"is_pending_reconnect"` // Timestamp of when the connection was established. OpenedAt time.Time `json:"opened_at" format:"date-time"` // The public IP address of the host running cloudflared. OriginIP string `json:"origin_ip"` // UUID of the Cloudflare Tunnel connection. UUID string `json:"uuid"` JSON tunnelEditResponseTunnelWARPConnectorTunnelConnectionJSON `json:"-"` }
func (*TunnelEditResponseTunnelWARPConnectorTunnelConnection) UnmarshalJSON ¶
func (r *TunnelEditResponseTunnelWARPConnectorTunnelConnection) UnmarshalJSON(data []byte) (err error)
type TunnelEditResponseTunnelWARPConnectorTunnelTunType ¶
type TunnelEditResponseTunnelWARPConnectorTunnelTunType string
The type of tunnel.
const ( TunnelEditResponseTunnelWARPConnectorTunnelTunTypeCfdTunnel TunnelEditResponseTunnelWARPConnectorTunnelTunType = "cfd_tunnel" TunnelEditResponseTunnelWARPConnectorTunnelTunTypeWARPConnector TunnelEditResponseTunnelWARPConnectorTunnelTunType = "warp_connector" TunnelEditResponseTunnelWARPConnectorTunnelTunTypeIPSec TunnelEditResponseTunnelWARPConnectorTunnelTunType = "ip_sec" TunnelEditResponseTunnelWARPConnectorTunnelTunTypeGRE TunnelEditResponseTunnelWARPConnectorTunnelTunType = "gre" TunnelEditResponseTunnelWARPConnectorTunnelTunTypeCNI TunnelEditResponseTunnelWARPConnectorTunnelTunType = "cni" )
func (TunnelEditResponseTunnelWARPConnectorTunnelTunType) IsKnown ¶
func (r TunnelEditResponseTunnelWARPConnectorTunnelTunType) IsKnown() bool
type TunnelEditResponseUnion ¶
type TunnelEditResponseUnion interface {
ImplementsZeroTrustTunnelEditResponse()
}
A Cloudflare Tunnel that connects your origin to Cloudflare's edge.
Union satisfied by shared.CloudflareTunnel or zero_trust.TunnelEditResponseTunnelWARPConnectorTunnel.
type TunnelGetParams ¶
type TunnelGetResponse ¶
type TunnelGetResponse struct { // UUID of the tunnel. ID string `json:"id,required"` // The tunnel connections between your origin and Cloudflare's edge. Connections []Connection `json:"connections,required"` // Timestamp of when the tunnel was created. CreatedAt time.Time `json:"created_at,required" format:"date-time"` // A user-friendly name for the tunnel. Name string `json:"name,required"` // Timestamp of when the tunnel was deleted. If `null`, the tunnel has not been // deleted. DeletedAt time.Time `json:"deleted_at,nullable" format:"date-time"` JSON tunnelGetResponseJSON `json:"-"` }
func (*TunnelGetResponse) UnmarshalJSON ¶
func (r *TunnelGetResponse) UnmarshalJSON(data []byte) (err error)
type TunnelGetResponseEnvelope ¶
type TunnelGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result TunnelGetResponse `json:"result,required"` // Whether the API call was successful Success TunnelGetResponseEnvelopeSuccess `json:"success,required"` JSON tunnelGetResponseEnvelopeJSON `json:"-"` }
func (*TunnelGetResponseEnvelope) UnmarshalJSON ¶
func (r *TunnelGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type TunnelGetResponseEnvelopeSuccess ¶
type TunnelGetResponseEnvelopeSuccess bool
Whether the API call was successful
const (
TunnelGetResponseEnvelopeSuccessTrue TunnelGetResponseEnvelopeSuccess = true
)
func (TunnelGetResponseEnvelopeSuccess) IsKnown ¶
func (r TunnelGetResponseEnvelopeSuccess) IsKnown() bool
type TunnelListParams ¶
type TunnelListParams struct { // Cloudflare account ID AccountID param.Field[string] `path:"account_id,required"` ExcludePrefix param.Field[string] `query:"exclude_prefix"` // If provided, include only tunnels that were created (and not deleted) before // this time. ExistedAt param.Field[time.Time] `query:"existed_at" format:"date-time"` IncludePrefix param.Field[string] `query:"include_prefix"` // If `true`, only include deleted tunnels. If `false`, exclude deleted tunnels. If // empty, all tunnels will be included. IsDeleted param.Field[bool] `query:"is_deleted"` // A user-friendly name for the tunnel. Name param.Field[string] `query:"name"` // Page number of paginated results. Page param.Field[float64] `query:"page"` // Number of results to display. PerPage param.Field[float64] `query:"per_page"` // The types of tunnels to filter separated by a comma. TunTypes param.Field[string] `query:"tun_types"` // UUID of the tunnel. UUID param.Field[string] `query:"uuid"` WasActiveAt param.Field[time.Time] `query:"was_active_at" format:"date-time"` WasInactiveAt param.Field[time.Time] `query:"was_inactive_at" format:"date-time"` }
func (TunnelListParams) URLQuery ¶
func (r TunnelListParams) URLQuery() (v url.Values)
URLQuery serializes TunnelListParams's query parameters as `url.Values`.
type TunnelListResponse ¶
type TunnelListResponse struct { // Cloudflare account ID AccountTag string `json:"account_tag"` Connections interface{} `json:"connections,required"` // Timestamp of when the tunnel established at least one connection to Cloudflare's // edge. If `null`, the tunnel is inactive. ConnsActiveAt time.Time `json:"conns_active_at,nullable" format:"date-time"` // Timestamp of when the tunnel became inactive (no connections to Cloudflare's // edge). If `null`, the tunnel is active. ConnsInactiveAt time.Time `json:"conns_inactive_at,nullable" format:"date-time"` // Timestamp of when the tunnel was created. CreatedAt time.Time `json:"created_at" format:"date-time"` // Timestamp of when the tunnel was deleted. If `null`, the tunnel has not been // deleted. DeletedAt time.Time `json:"deleted_at,nullable" format:"date-time"` // UUID of the tunnel. ID string `json:"id"` Metadata interface{} `json:"metadata,required"` // A user-friendly name for the tunnel. Name string `json:"name"` // If `true`, the tunnel can be configured remotely from the Zero Trust dashboard. // If `false`, the tunnel must be configured locally on the origin machine. RemoteConfig bool `json:"remote_config"` // The status of the tunnel. Valid values are `inactive` (tunnel has never been // run), `degraded` (tunnel is active and able to serve traffic but in an unhealthy // state), `healthy` (tunnel is active and able to serve traffic), or `down` // (tunnel can not serve traffic as it has no connections to the Cloudflare Edge). Status string `json:"status"` // The type of tunnel. TunType TunnelListResponseTunType `json:"tun_type"` JSON tunnelListResponseJSON `json:"-"` // contains filtered or unexported fields }
A Cloudflare Tunnel that connects your origin to Cloudflare's edge.
func (TunnelListResponse) AsUnion ¶
func (r TunnelListResponse) AsUnion() TunnelListResponseUnion
func (*TunnelListResponse) UnmarshalJSON ¶
func (r *TunnelListResponse) UnmarshalJSON(data []byte) (err error)
type TunnelListResponseTunType ¶
type TunnelListResponseTunType string
The type of tunnel.
const ( TunnelListResponseTunTypeCfdTunnel TunnelListResponseTunType = "cfd_tunnel" TunnelListResponseTunTypeWARPConnector TunnelListResponseTunType = "warp_connector" TunnelListResponseTunTypeIPSec TunnelListResponseTunType = "ip_sec" TunnelListResponseTunTypeGRE TunnelListResponseTunType = "gre" TunnelListResponseTunTypeCNI TunnelListResponseTunType = "cni" )
func (TunnelListResponseTunType) IsKnown ¶
func (r TunnelListResponseTunType) IsKnown() bool
type TunnelListResponseTunnelWARPConnectorTunnel ¶
type TunnelListResponseTunnelWARPConnectorTunnel struct { // UUID of the tunnel. ID string `json:"id"` // Cloudflare account ID AccountTag string `json:"account_tag"` // The Cloudflare Tunnel connections between your origin and Cloudflare's edge. Connections []TunnelListResponseTunnelWARPConnectorTunnelConnection `json:"connections"` // Timestamp of when the tunnel established at least one connection to Cloudflare's // edge. If `null`, the tunnel is inactive. ConnsActiveAt time.Time `json:"conns_active_at,nullable" format:"date-time"` // Timestamp of when the tunnel became inactive (no connections to Cloudflare's // edge). If `null`, the tunnel is active. ConnsInactiveAt time.Time `json:"conns_inactive_at,nullable" format:"date-time"` // Timestamp of when the tunnel was created. CreatedAt time.Time `json:"created_at" format:"date-time"` // Timestamp of when the tunnel was deleted. If `null`, the tunnel has not been // deleted. DeletedAt time.Time `json:"deleted_at,nullable" format:"date-time"` // Metadata associated with the tunnel. Metadata interface{} `json:"metadata"` // A user-friendly name for the tunnel. Name string `json:"name"` // The status of the tunnel. Valid values are `inactive` (tunnel has never been // run), `degraded` (tunnel is active and able to serve traffic but in an unhealthy // state), `healthy` (tunnel is active and able to serve traffic), or `down` // (tunnel can not serve traffic as it has no connections to the Cloudflare Edge). Status string `json:"status"` // The type of tunnel. TunType TunnelListResponseTunnelWARPConnectorTunnelTunType `json:"tun_type"` JSON tunnelListResponseTunnelWARPConnectorTunnelJSON `json:"-"` }
A Warp Connector Tunnel that connects your origin to Cloudflare's edge.
func (TunnelListResponseTunnelWARPConnectorTunnel) ImplementsZeroTrustTunnelListResponse ¶
func (r TunnelListResponseTunnelWARPConnectorTunnel) ImplementsZeroTrustTunnelListResponse()
func (*TunnelListResponseTunnelWARPConnectorTunnel) UnmarshalJSON ¶
func (r *TunnelListResponseTunnelWARPConnectorTunnel) UnmarshalJSON(data []byte) (err error)
type TunnelListResponseTunnelWARPConnectorTunnelConnection ¶
type TunnelListResponseTunnelWARPConnectorTunnelConnection struct { // UUID of the Cloudflare Tunnel connection. ID string `json:"id"` // UUID of the cloudflared instance. ClientID interface{} `json:"client_id"` // The cloudflared version used to establish this connection. ClientVersion string `json:"client_version"` // The Cloudflare data center used for this connection. ColoName string `json:"colo_name"` // Cloudflare continues to track connections for several minutes after they // disconnect. This is an optimization to improve latency and reliability of // reconnecting. If `true`, the connection has disconnected but is still being // tracked. If `false`, the connection is actively serving traffic. IsPendingReconnect bool `json:"is_pending_reconnect"` // Timestamp of when the connection was established. OpenedAt time.Time `json:"opened_at" format:"date-time"` // The public IP address of the host running cloudflared. OriginIP string `json:"origin_ip"` // UUID of the Cloudflare Tunnel connection. UUID string `json:"uuid"` JSON tunnelListResponseTunnelWARPConnectorTunnelConnectionJSON `json:"-"` }
func (*TunnelListResponseTunnelWARPConnectorTunnelConnection) UnmarshalJSON ¶
func (r *TunnelListResponseTunnelWARPConnectorTunnelConnection) UnmarshalJSON(data []byte) (err error)
type TunnelListResponseTunnelWARPConnectorTunnelTunType ¶
type TunnelListResponseTunnelWARPConnectorTunnelTunType string
The type of tunnel.
const ( TunnelListResponseTunnelWARPConnectorTunnelTunTypeCfdTunnel TunnelListResponseTunnelWARPConnectorTunnelTunType = "cfd_tunnel" TunnelListResponseTunnelWARPConnectorTunnelTunTypeWARPConnector TunnelListResponseTunnelWARPConnectorTunnelTunType = "warp_connector" TunnelListResponseTunnelWARPConnectorTunnelTunTypeIPSec TunnelListResponseTunnelWARPConnectorTunnelTunType = "ip_sec" TunnelListResponseTunnelWARPConnectorTunnelTunTypeGRE TunnelListResponseTunnelWARPConnectorTunnelTunType = "gre" TunnelListResponseTunnelWARPConnectorTunnelTunTypeCNI TunnelListResponseTunnelWARPConnectorTunnelTunType = "cni" )
func (TunnelListResponseTunnelWARPConnectorTunnelTunType) IsKnown ¶
func (r TunnelListResponseTunnelWARPConnectorTunnelTunType) IsKnown() bool
type TunnelListResponseUnion ¶
type TunnelListResponseUnion interface {
ImplementsZeroTrustTunnelListResponse()
}
A Cloudflare Tunnel that connects your origin to Cloudflare's edge.
Union satisfied by shared.CloudflareTunnel or zero_trust.TunnelListResponseTunnelWARPConnectorTunnel.
type TunnelManagementNewParams ¶
type TunnelManagementNewParams struct { // Cloudflare account ID AccountID param.Field[string] `path:"account_id,required"` Resources param.Field[[]TunnelManagementNewParamsResource] `json:"resources,required"` }
func (TunnelManagementNewParams) MarshalJSON ¶
func (r TunnelManagementNewParams) MarshalJSON() (data []byte, err error)
type TunnelManagementNewParamsResource ¶
type TunnelManagementNewParamsResource string
Management resources the token will have access to.
const (
TunnelManagementNewParamsResourceLogs TunnelManagementNewParamsResource = "logs"
)
func (TunnelManagementNewParamsResource) IsKnown ¶
func (r TunnelManagementNewParamsResource) IsKnown() bool
type TunnelManagementNewResponseArray ¶
type TunnelManagementNewResponseArray []interface{}
func (TunnelManagementNewResponseArray) ImplementsZeroTrustTunnelManagementNewResponseUnion ¶
func (r TunnelManagementNewResponseArray) ImplementsZeroTrustTunnelManagementNewResponseUnion()
type TunnelManagementNewResponseEnvelope ¶
type TunnelManagementNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result TunnelManagementNewResponseUnion `json:"result,required"` // Whether the API call was successful Success TunnelManagementNewResponseEnvelopeSuccess `json:"success,required"` JSON tunnelManagementNewResponseEnvelopeJSON `json:"-"` }
func (*TunnelManagementNewResponseEnvelope) UnmarshalJSON ¶
func (r *TunnelManagementNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type TunnelManagementNewResponseEnvelopeSuccess ¶
type TunnelManagementNewResponseEnvelopeSuccess bool
Whether the API call was successful
const (
TunnelManagementNewResponseEnvelopeSuccessTrue TunnelManagementNewResponseEnvelopeSuccess = true
)
func (TunnelManagementNewResponseEnvelopeSuccess) IsKnown ¶
func (r TunnelManagementNewResponseEnvelopeSuccess) IsKnown() bool
type TunnelManagementNewResponseUnion ¶
type TunnelManagementNewResponseUnion interface {
ImplementsZeroTrustTunnelManagementNewResponseUnion()
}
Union satisfied by zero_trust.TunnelManagementNewResponseUnknown, zero_trust.TunnelManagementNewResponseArray or shared.UnionString.
type TunnelManagementService ¶
type TunnelManagementService struct {
Options []option.RequestOption
}
TunnelManagementService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewTunnelManagementService method instead.
func NewTunnelManagementService ¶
func NewTunnelManagementService(opts ...option.RequestOption) (r *TunnelManagementService)
NewTunnelManagementService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*TunnelManagementService) New ¶
func (r *TunnelManagementService) New(ctx context.Context, tunnelID string, params TunnelManagementNewParams, opts ...option.RequestOption) (res *TunnelManagementNewResponseUnion, err error)
Gets a management token used to access the management resources (i.e. Streaming Logs) of a tunnel.
type TunnelNewParams ¶
type TunnelNewParams struct { // Cloudflare account ID AccountID param.Field[string] `path:"account_id,required"` // A user-friendly name for the tunnel. Name param.Field[string] `json:"name,required"` // Sets the password required to run the tunnel. Must be at least 32 bytes and // encoded as a base64 string. TunnelSecret param.Field[interface{}] `json:"tunnel_secret,required"` }
func (TunnelNewParams) MarshalJSON ¶
func (r TunnelNewParams) MarshalJSON() (data []byte, err error)
type TunnelNewResponse ¶
type TunnelNewResponse struct { // UUID of the tunnel. ID string `json:"id,required"` // The tunnel connections between your origin and Cloudflare's edge. Connections []Connection `json:"connections,required"` // Timestamp of when the tunnel was created. CreatedAt time.Time `json:"created_at,required" format:"date-time"` // A user-friendly name for the tunnel. Name string `json:"name,required"` // Timestamp of when the tunnel was deleted. If `null`, the tunnel has not been // deleted. DeletedAt time.Time `json:"deleted_at,nullable" format:"date-time"` JSON tunnelNewResponseJSON `json:"-"` }
func (*TunnelNewResponse) UnmarshalJSON ¶
func (r *TunnelNewResponse) UnmarshalJSON(data []byte) (err error)
type TunnelNewResponseEnvelope ¶
type TunnelNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result TunnelNewResponse `json:"result,required"` // Whether the API call was successful Success TunnelNewResponseEnvelopeSuccess `json:"success,required"` JSON tunnelNewResponseEnvelopeJSON `json:"-"` }
func (*TunnelNewResponseEnvelope) UnmarshalJSON ¶
func (r *TunnelNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type TunnelNewResponseEnvelopeSuccess ¶
type TunnelNewResponseEnvelopeSuccess bool
Whether the API call was successful
const (
TunnelNewResponseEnvelopeSuccessTrue TunnelNewResponseEnvelopeSuccess = true
)
func (TunnelNewResponseEnvelopeSuccess) IsKnown ¶
func (r TunnelNewResponseEnvelopeSuccess) IsKnown() bool
type TunnelService ¶
type TunnelService struct { Options []option.RequestOption Configurations *TunnelConfigurationService Connections *TunnelConnectionService Token *TunnelTokenService Connectors *TunnelConnectorService Management *TunnelManagementService }
TunnelService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewTunnelService method instead.
func NewTunnelService ¶
func NewTunnelService(opts ...option.RequestOption) (r *TunnelService)
NewTunnelService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*TunnelService) Delete ¶
func (r *TunnelService) Delete(ctx context.Context, tunnelID string, params TunnelDeleteParams, opts ...option.RequestOption) (res *TunnelDeleteResponse, err error)
Deletes an Argo Tunnel from an account.
func (*TunnelService) Edit ¶
func (r *TunnelService) Edit(ctx context.Context, tunnelID string, params TunnelEditParams, opts ...option.RequestOption) (res *TunnelEditResponse, err error)
Updates an existing Cloudflare Tunnel.
func (*TunnelService) Get ¶
func (r *TunnelService) Get(ctx context.Context, tunnelID string, query TunnelGetParams, opts ...option.RequestOption) (res *TunnelGetResponse, err error)
Fetches a single Argo Tunnel.
func (*TunnelService) List ¶
func (r *TunnelService) List(ctx context.Context, params TunnelListParams, opts ...option.RequestOption) (res *pagination.V4PagePaginationArray[TunnelListResponse], err error)
Lists and filters all types of Tunnels in an account.
func (*TunnelService) ListAutoPaging ¶
func (r *TunnelService) ListAutoPaging(ctx context.Context, params TunnelListParams, opts ...option.RequestOption) *pagination.V4PagePaginationArrayAutoPager[TunnelListResponse]
Lists and filters all types of Tunnels in an account.
func (*TunnelService) New ¶
func (r *TunnelService) New(ctx context.Context, params TunnelNewParams, opts ...option.RequestOption) (res *TunnelNewResponse, err error)
Creates a new Argo Tunnel in an account.
type TunnelTokenGetParams ¶
type TunnelTokenGetResponseArray ¶
type TunnelTokenGetResponseArray []interface{}
func (TunnelTokenGetResponseArray) ImplementsZeroTrustTunnelTokenGetResponseUnion ¶
func (r TunnelTokenGetResponseArray) ImplementsZeroTrustTunnelTokenGetResponseUnion()
type TunnelTokenGetResponseEnvelope ¶
type TunnelTokenGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result TunnelTokenGetResponseUnion `json:"result,required"` // Whether the API call was successful Success TunnelTokenGetResponseEnvelopeSuccess `json:"success,required"` JSON tunnelTokenGetResponseEnvelopeJSON `json:"-"` }
func (*TunnelTokenGetResponseEnvelope) UnmarshalJSON ¶
func (r *TunnelTokenGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type TunnelTokenGetResponseEnvelopeSuccess ¶
type TunnelTokenGetResponseEnvelopeSuccess bool
Whether the API call was successful
const (
TunnelTokenGetResponseEnvelopeSuccessTrue TunnelTokenGetResponseEnvelopeSuccess = true
)
func (TunnelTokenGetResponseEnvelopeSuccess) IsKnown ¶
func (r TunnelTokenGetResponseEnvelopeSuccess) IsKnown() bool
type TunnelTokenGetResponseUnion ¶
type TunnelTokenGetResponseUnion interface {
ImplementsZeroTrustTunnelTokenGetResponseUnion()
}
Union satisfied by zero_trust.TunnelTokenGetResponseUnknown, zero_trust.TunnelTokenGetResponseArray or shared.UnionString.
type TunnelTokenService ¶
type TunnelTokenService struct {
Options []option.RequestOption
}
TunnelTokenService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewTunnelTokenService method instead.
func NewTunnelTokenService ¶
func NewTunnelTokenService(opts ...option.RequestOption) (r *TunnelTokenService)
NewTunnelTokenService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*TunnelTokenService) Get ¶
func (r *TunnelTokenService) Get(ctx context.Context, tunnelID string, query TunnelTokenGetParams, opts ...option.RequestOption) (res *TunnelTokenGetResponseUnion, err error)
Gets the token used to associate cloudflared with a specific tunnel.
type UniqueClientIDInput ¶
type UniqueClientIDInput struct { // List ID. ID string `json:"id,required"` // Operating System OperatingSystem UniqueClientIDInputOperatingSystem `json:"operating_system,required"` JSON uniqueClientIDInputJSON `json:"-"` }
func (*UniqueClientIDInput) UnmarshalJSON ¶
func (r *UniqueClientIDInput) UnmarshalJSON(data []byte) (err error)
type UniqueClientIDInputOperatingSystem ¶
type UniqueClientIDInputOperatingSystem string
Operating System
const ( UniqueClientIDInputOperatingSystemAndroid UniqueClientIDInputOperatingSystem = "android" UniqueClientIDInputOperatingSystemIos UniqueClientIDInputOperatingSystem = "ios" UniqueClientIDInputOperatingSystemChromeos UniqueClientIDInputOperatingSystem = "chromeos" )
func (UniqueClientIDInputOperatingSystem) IsKnown ¶
func (r UniqueClientIDInputOperatingSystem) IsKnown() bool
type UniqueClientIDInputParam ¶
type UniqueClientIDInputParam struct { // List ID. ID param.Field[string] `json:"id,required"` // Operating System OperatingSystem param.Field[UniqueClientIDInputOperatingSystem] `json:"operating_system,required"` }
func (UniqueClientIDInputParam) MarshalJSON ¶
func (r UniqueClientIDInputParam) MarshalJSON() (data []byte, err error)
type UniqueDevices ¶
type UniqueDevices struct { // total number of unique devices UniqueDevicesTotal int64 `json:"uniqueDevicesTotal,required"` JSON uniqueDevicesJSON `json:"-"` }
func (*UniqueDevices) UnmarshalJSON ¶
func (r *UniqueDevices) UnmarshalJSON(data []byte) (err error)
type UserPolicyCheckGeo ¶
type UserPolicyCheckGeo struct { Country string `json:"country"` JSON userPolicyCheckGeoJSON `json:"-"` }
func (*UserPolicyCheckGeo) UnmarshalJSON ¶
func (r *UserPolicyCheckGeo) UnmarshalJSON(data []byte) (err error)
type UserRoleParam ¶
type UserRoleParam = shared.UserRoleParam
This is an alias to an internal type.
type UserRolesPermissions ¶
type UserRolesPermissions = shared.UserRolesPermissions
This is an alias to an internal type.
type UserRolesPermissionsParam ¶
type UserRolesPermissionsParam = shared.UserRolesPermissionsParam
This is an alias to an internal type.
type UserUserParam ¶
type UserUserParam = shared.UserUserParam
This is an alias to an internal type.
type VirtualNetwork ¶
type VirtualNetwork struct { // UUID of the virtual network. ID string `json:"id,required"` // Optional remark describing the virtual network. Comment string `json:"comment,required"` // Timestamp of when the virtual network was created. CreatedAt interface{} `json:"created_at,required"` // If `true`, this virtual network is the default for the account. IsDefaultNetwork bool `json:"is_default_network,required"` // A user-friendly name for the virtual network. Name string `json:"name,required"` // Timestamp of when the virtual network was deleted. If `null`, the virtual // network has not been deleted. DeletedAt interface{} `json:"deleted_at"` JSON virtualNetworkJSON `json:"-"` }
func (*VirtualNetwork) UnmarshalJSON ¶
func (r *VirtualNetwork) UnmarshalJSON(data []byte) (err error)
type WorkspaceOneInput ¶
type WorkspaceOneInput struct { // Compliance Status ComplianceStatus WorkspaceOneInputComplianceStatus `json:"compliance_status,required"` // Posture Integration ID. ConnectionID string `json:"connection_id,required"` JSON workspaceOneInputJSON `json:"-"` }
func (*WorkspaceOneInput) UnmarshalJSON ¶
func (r *WorkspaceOneInput) UnmarshalJSON(data []byte) (err error)
type WorkspaceOneInputComplianceStatus ¶
type WorkspaceOneInputComplianceStatus string
Compliance Status
const ( WorkspaceOneInputComplianceStatusCompliant WorkspaceOneInputComplianceStatus = "compliant" WorkspaceOneInputComplianceStatusNoncompliant WorkspaceOneInputComplianceStatus = "noncompliant" WorkspaceOneInputComplianceStatusUnknown WorkspaceOneInputComplianceStatus = "unknown" )
func (WorkspaceOneInputComplianceStatus) IsKnown ¶
func (r WorkspaceOneInputComplianceStatus) IsKnown() bool
type WorkspaceOneInputParam ¶
type WorkspaceOneInputParam struct { // Compliance Status ComplianceStatus param.Field[WorkspaceOneInputComplianceStatus] `json:"compliance_status,required"` // Posture Integration ID. ConnectionID param.Field[string] `json:"connection_id,required"` }
func (WorkspaceOneInputParam) MarshalJSON ¶
func (r WorkspaceOneInputParam) MarshalJSON() (data []byte, err error)
type ZeroTrustGroup ¶
type ZeroTrustGroup struct { // UUID ID string `json:"id"` CreatedAt time.Time `json:"created_at" format:"date-time"` // Rules evaluated with a NOT logical operator. To match a policy, a user cannot // meet any of the Exclude rules. Exclude []AccessRule `json:"exclude"` // Rules evaluated with an OR logical operator. A user needs to meet only one of // the Include rules. Include []AccessRule `json:"include"` // Rules evaluated with an AND logical operator. To match a policy, a user must // meet all of the Require rules. IsDefault []AccessRule `json:"is_default"` // The name of the Access group. Name string `json:"name"` // Rules evaluated with an AND logical operator. To match a policy, a user must // meet all of the Require rules. Require []AccessRule `json:"require"` UpdatedAt time.Time `json:"updated_at" format:"date-time"` JSON zeroTrustGroupJSON `json:"-"` }
func (*ZeroTrustGroup) UnmarshalJSON ¶
func (r *ZeroTrustGroup) UnmarshalJSON(data []byte) (err error)
type ZeroTrustService ¶
type ZeroTrustService struct { Options []option.RequestOption Devices *DeviceService IdentityProviders *IdentityProviderService Organizations *OrganizationService Seats *SeatService Access *AccessService DEX *DEXService Tunnels *TunnelService ConnectivitySettings *ConnectivitySettingService DLP *DLPService Gateway *GatewayService Networks *NetworkService }
ZeroTrustService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewZeroTrustService method instead.
func NewZeroTrustService ¶
func NewZeroTrustService(opts ...option.RequestOption) (r *ZeroTrustService)
NewZeroTrustService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
Source Files ¶
- access.go
- accessapplication.go
- accessapplicationca.go
- accessapplicationpolicy.go
- accessapplicationuserpolicycheck.go
- accessbookmark.go
- accesscertificate.go
- accesscertificatesetting.go
- accesscustompage.go
- accessgroup.go
- accesskey.go
- accesslog.go
- accesslogaccessrequest.go
- accessservicetoken.go
- accesstag.go
- accessuser.go
- accessuseractivesession.go
- accessuserfailedlogin.go
- accessuserlastseenidentity.go
- aliases.go
- connectivitysetting.go
- device.go
- devicedextest.go
- devicenetwork.go
- deviceoverridecode.go
- devicepolicy.go
- devicepolicydefaultpolicy.go
- devicepolicyexclude.go
- devicepolicyfallbackdomain.go
- devicepolicyinclude.go
- deviceposture.go
- devicepostureintegration.go
- devicerevoke.go
- devicesetting.go
- deviceunrevoke.go
- dex.go
- dexcolo.go
- dexfleetstatus.go
- dexfleetstatusdevice.go
- dexhttptest.go
- dexhttptestpercentile.go
- dextest.go
- dextestuniquedevice.go
- dextraceroutetest.go
- dextraceroutetestresult.go
- dextraceroutetestresultnetworkpath.go
- dlp.go
- dlpdataset.go
- dlpdatasetupload.go
- dlppattern.go
- dlppayloadlog.go
- dlpprofile.go
- dlpprofilecustom.go
- dlpprofilepredefined.go
- gateway.go
- gatewayapptype.go
- gatewayauditsshsetting.go
- gatewaycategory.go
- gatewayconfiguration.go
- gatewaylist.go
- gatewaylistitem.go
- gatewaylocation.go
- gatewaylogging.go
- gatewayproxyendpoint.go
- gatewayrule.go
- identityprovider.go
- network.go
- networkroute.go
- networkrouteip.go
- networkroutenetwork.go
- networkvirtualnetwork.go
- organization.go
- seat.go
- tunnel.go
- tunnelconfiguration.go
- tunnelconnection.go
- tunnelconnector.go
- tunnelmanagement.go
- tunneltoken.go
- zerotrust.go