Documentation ¶
Index ¶
- Constants
- type ASN
- type ASNParam
- type AuditLog
- type AuditLogAction
- type AuditLogActor
- type AuditLogActorType
- type AuditLogOwner
- type AuditLogResource
- type CertificateCA
- type CertificateRequestType
- type CloudflareTunnel
- type CloudflareTunnelConnection
- type CloudflareTunnelStatus
- type CloudflareTunnelTunType
- type CustomCertificate
- type CustomCertificateDeleteParams
- type CustomCertificateDeleteResponse
- type CustomCertificateDeleteResponseEnvelope
- type CustomCertificateDeleteResponseEnvelopeSuccess
- type CustomCertificateEditParams
- type CustomCertificateEditResponseEnvelope
- type CustomCertificateEditResponseEnvelopeSuccess
- type CustomCertificateEditResponseUnion
- type CustomCertificateGetParams
- type CustomCertificateGetResponseEnvelope
- type CustomCertificateGetResponseEnvelopeSuccess
- type CustomCertificateGetResponseUnion
- type CustomCertificateListParams
- type CustomCertificateListParamsMatch
- type CustomCertificateListParamsStatus
- type CustomCertificateNewParams
- type CustomCertificateNewParamsType
- type CustomCertificateNewResponseEnvelope
- type CustomCertificateNewResponseEnvelopeSuccess
- type CustomCertificateNewResponseUnion
- type CustomCertificateService
- func (r *CustomCertificateService) Delete(ctx context.Context, customCertificateID string, ...) (res *CustomCertificateDeleteResponse, err error)
- func (r *CustomCertificateService) Edit(ctx context.Context, customCertificateID string, ...) (res *CustomCertificateEditResponseUnion, err error)
- func (r *CustomCertificateService) Get(ctx context.Context, customCertificateID string, ...) (res *CustomCertificateGetResponseUnion, err error)
- func (r *CustomCertificateService) List(ctx context.Context, params CustomCertificateListParams, ...) (res *pagination.V4PagePaginationArray[CustomCertificate], err error)
- func (r *CustomCertificateService) ListAutoPaging(ctx context.Context, params CustomCertificateListParams, ...) *pagination.V4PagePaginationArrayAutoPager[CustomCertificate]
- func (r *CustomCertificateService) New(ctx context.Context, params CustomCertificateNewParams, ...) (res *CustomCertificateNewResponseUnion, err error)
- type CustomCertificateStatus
- type Error
- type ErrorData
- type GeoRestrictions
- type GeoRestrictionsLabel
- type GeoRestrictionsParam
- type MemberParam
- type MemberRoleParam
- type MemberRolesPermissionsParam
- type MemberStatus
- type MemberUserParam
- type Permission
- type PermissionGrant
- type PermissionGrantParam
- type PrioritizeService
- type PrioritizeUpdateParams
- type PrioritizeUpdateParamsCertificate
- type PrioritizeUpdateResponseEnvelope
- type PrioritizeUpdateResponseEnvelopeResultInfo
- type PrioritizeUpdateResponseEnvelopeSuccess
- type ResponseInfo
- type Role
- type SortDirection
- type Status
Constants ¶
const AuditLogActorTypeAdmin = shared.AuditLogActorTypeAdmin
This is an alias to an internal value.
const AuditLogActorTypeCloudflare = shared.AuditLogActorTypeCloudflare
This is an alias to an internal value.
const AuditLogActorTypeUser = shared.AuditLogActorTypeUser
This is an alias to an internal value.
const CertificateCADigicert = shared.CertificateCADigicert
This is an alias to an internal value.
const CertificateCAGoogle = shared.CertificateCAGoogle
This is an alias to an internal value.
const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt
This is an alias to an internal value.
const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate
This is an alias to an internal value.
const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC
This is an alias to an internal value.
const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA
This is an alias to an internal value.
const CloudflareTunnelStatusDegraded = shared.CloudflareTunnelStatusDegraded
This is an alias to an internal value.
const CloudflareTunnelStatusDown = shared.CloudflareTunnelStatusDown
This is an alias to an internal value.
const CloudflareTunnelStatusHealthy = shared.CloudflareTunnelStatusHealthy
This is an alias to an internal value.
const CloudflareTunnelStatusInactive = shared.CloudflareTunnelStatusInactive
This is an alias to an internal value.
const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI
This is an alias to an internal value.
const CloudflareTunnelTunTypeCfdTunnel = shared.CloudflareTunnelTunTypeCfdTunnel
This is an alias to an internal value.
const CloudflareTunnelTunTypeGRE = shared.CloudflareTunnelTunTypeGRE
This is an alias to an internal value.
const CloudflareTunnelTunTypeIPSec = shared.CloudflareTunnelTunTypeIPSec
This is an alias to an internal value.
const CloudflareTunnelTunTypeWARPConnector = shared.CloudflareTunnelTunTypeWARPConnector
This is an alias to an internal value.
const MemberStatusAccepted = shared.MemberStatusAccepted
This is an alias to an internal value.
const MemberStatusPending = shared.MemberStatusPending
This is an alias to an internal value.
const SortDirectionAsc = shared.SortDirectionAsc
This is an alias to an internal value.
const SortDirectionDesc = shared.SortDirectionDesc
This is an alias to an internal value.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuditLogAction ¶
type AuditLogAction = shared.AuditLogAction
This is an alias to an internal type.
type AuditLogActor ¶
type AuditLogActor = shared.AuditLogActor
This is an alias to an internal type.
type AuditLogActorType ¶
type AuditLogActorType = shared.AuditLogActorType
The type of actor, whether a User, Cloudflare Admin, or an Automated System.
This is an alias to an internal type.
type AuditLogOwner ¶
type AuditLogOwner = shared.AuditLogOwner
This is an alias to an internal type.
type AuditLogResource ¶
type AuditLogResource = shared.AuditLogResource
This is an alias to an internal type.
type CertificateCA ¶ added in v2.2.0
type CertificateCA = shared.CertificateCA
The Certificate Authority that will issue the certificate
This is an alias to an internal type.
type CertificateRequestType ¶ added in v2.2.0
type CertificateRequestType = shared.CertificateRequestType
Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), or "keyless-certificate" (for Keyless SSL servers).
This is an alias to an internal type.
type CloudflareTunnel ¶
type CloudflareTunnel = shared.CloudflareTunnel
A Cloudflare Tunnel that connects your origin to Cloudflare's edge.
This is an alias to an internal type.
type CloudflareTunnelConnection ¶
type CloudflareTunnelConnection = shared.CloudflareTunnelConnection
This is an alias to an internal type.
type CloudflareTunnelStatus ¶ added in v2.3.0
type CloudflareTunnelStatus = shared.CloudflareTunnelStatus
The status of the tunnel. Valid values are `inactive` (tunnel has never been run), `degraded` (tunnel is active and able to serve traffic but in an unhealthy state), `healthy` (tunnel is active and able to serve traffic), or `down` (tunnel can not serve traffic as it has no connections to the Cloudflare Edge).
This is an alias to an internal type.
type CloudflareTunnelTunType ¶
type CloudflareTunnelTunType = shared.CloudflareTunnelTunType
The type of tunnel.
This is an alias to an internal type.
type CustomCertificate ¶
type CustomCertificate struct { // Identifier ID string `json:"id,required"` // A ubiquitous bundle has the highest probability of being verified everywhere, // even by clients using outdated or unusual trust stores. An optimal bundle uses // the shortest chain and newest intermediates. And the force bundle verifies the // chain, but does not otherwise modify it. BundleMethod custom_hostnames.BundleMethod `json:"bundle_method,required"` // When the certificate from the authority expires. ExpiresOn time.Time `json:"expires_on,required" format:"date-time"` Hosts []string `json:"hosts,required"` // The certificate authority that issued the certificate. Issuer string `json:"issuer,required"` // When the certificate was last modified. ModifiedOn time.Time `json:"modified_on,required" format:"date-time"` // The order/priority in which the certificate will be used in a request. The // higher priority will break ties across overlapping 'legacy_custom' certificates, // but 'legacy_custom' certificates will always supercede 'sni_custom' // certificates. Priority float64 `json:"priority,required"` // The type of hash used for the certificate. Signature string `json:"signature,required"` // Status of the zone's custom SSL. Status CustomCertificateStatus `json:"status,required"` // When the certificate was uploaded to Cloudflare. UploadedOn time.Time `json:"uploaded_on,required" format:"date-time"` // Identifier ZoneID string `json:"zone_id,required"` // Specify the region where your private key can be held locally for optimal TLS // performance. HTTPS connections to any excluded data center will still be fully // encrypted, but will incur some latency while Keyless SSL is used to complete the // handshake with the nearest allowed data center. Options allow distribution to // only to U.S. data centers, only to E.U. data centers, or only to highest // security data centers. Default distribution is to all Cloudflare datacenters, // for optimal performance. GeoRestrictions GeoRestrictions `json:"geo_restrictions"` KeylessServer keyless_certificates.KeylessCertificate `json:"keyless_server"` // Specify the policy that determines the region where your private key will be // held locally. HTTPS connections to any excluded data center will still be fully // encrypted, but will incur some latency while Keyless SSL is used to complete the // handshake with the nearest allowed data center. Any combination of countries, // specified by their two letter country code // (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) // can be chosen, such as 'country: IN', as well as 'region: EU' which refers to // the EU region. If there are too few data centers satisfying the policy, it will // be rejected. Policy string `json:"policy"` JSON customCertificateJSON `json:"-"` }
func (*CustomCertificate) UnmarshalJSON ¶
func (r *CustomCertificate) UnmarshalJSON(data []byte) (err error)
type CustomCertificateDeleteResponse ¶
type CustomCertificateDeleteResponse struct { // Identifier ID string `json:"id"` JSON customCertificateDeleteResponseJSON `json:"-"` }
func (*CustomCertificateDeleteResponse) UnmarshalJSON ¶
func (r *CustomCertificateDeleteResponse) UnmarshalJSON(data []byte) (err error)
type CustomCertificateDeleteResponseEnvelope ¶
type CustomCertificateDeleteResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success CustomCertificateDeleteResponseEnvelopeSuccess `json:"success,required"` Result CustomCertificateDeleteResponse `json:"result"` JSON customCertificateDeleteResponseEnvelopeJSON `json:"-"` }
func (*CustomCertificateDeleteResponseEnvelope) UnmarshalJSON ¶
func (r *CustomCertificateDeleteResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type CustomCertificateDeleteResponseEnvelopeSuccess ¶
type CustomCertificateDeleteResponseEnvelopeSuccess bool
Whether the API call was successful
const (
CustomCertificateDeleteResponseEnvelopeSuccessTrue CustomCertificateDeleteResponseEnvelopeSuccess = true
)
func (CustomCertificateDeleteResponseEnvelopeSuccess) IsKnown ¶
func (r CustomCertificateDeleteResponseEnvelopeSuccess) IsKnown() bool
type CustomCertificateEditParams ¶
type CustomCertificateEditParams struct { // Identifier ZoneID param.Field[string] `path:"zone_id,required"` // A ubiquitous bundle has the highest probability of being verified everywhere, // even by clients using outdated or unusual trust stores. An optimal bundle uses // the shortest chain and newest intermediates. And the force bundle verifies the // chain, but does not otherwise modify it. BundleMethod param.Field[custom_hostnames.BundleMethod] `json:"bundle_method"` // The zone's SSL certificate or certificate and the intermediate(s). Certificate param.Field[string] `json:"certificate"` // Specify the region where your private key can be held locally for optimal TLS // performance. HTTPS connections to any excluded data center will still be fully // encrypted, but will incur some latency while Keyless SSL is used to complete the // handshake with the nearest allowed data center. Options allow distribution to // only to U.S. data centers, only to E.U. data centers, or only to highest // security data centers. Default distribution is to all Cloudflare datacenters, // for optimal performance. GeoRestrictions param.Field[GeoRestrictionsParam] `json:"geo_restrictions"` // Specify the policy that determines the region where your private key will be // held locally. HTTPS connections to any excluded data center will still be fully // encrypted, but will incur some latency while Keyless SSL is used to complete the // handshake with the nearest allowed data center. Any combination of countries, // specified by their two letter country code // (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) // can be chosen, such as 'country: IN', as well as 'region: EU' which refers to // the EU region. If there are too few data centers satisfying the policy, it will // be rejected. Policy param.Field[string] `json:"policy"` // The zone's private key. PrivateKey param.Field[string] `json:"private_key"` }
func (CustomCertificateEditParams) MarshalJSON ¶
func (r CustomCertificateEditParams) MarshalJSON() (data []byte, err error)
type CustomCertificateEditResponseEnvelope ¶
type CustomCertificateEditResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success CustomCertificateEditResponseEnvelopeSuccess `json:"success,required"` Result CustomCertificateEditResponseUnion `json:"result"` JSON customCertificateEditResponseEnvelopeJSON `json:"-"` }
func (*CustomCertificateEditResponseEnvelope) UnmarshalJSON ¶
func (r *CustomCertificateEditResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type CustomCertificateEditResponseEnvelopeSuccess ¶
type CustomCertificateEditResponseEnvelopeSuccess bool
Whether the API call was successful
const (
CustomCertificateEditResponseEnvelopeSuccessTrue CustomCertificateEditResponseEnvelopeSuccess = true
)
func (CustomCertificateEditResponseEnvelopeSuccess) IsKnown ¶
func (r CustomCertificateEditResponseEnvelopeSuccess) IsKnown() bool
type CustomCertificateEditResponseUnion ¶
type CustomCertificateEditResponseUnion interface {
ImplementsCustomCertificatesCustomCertificateEditResponseUnion()
}
Union satisfied by custom_certificates.CustomCertificateEditResponseUnknown or shared.UnionString.
type CustomCertificateGetResponseEnvelope ¶
type CustomCertificateGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success CustomCertificateGetResponseEnvelopeSuccess `json:"success,required"` Result CustomCertificateGetResponseUnion `json:"result"` JSON customCertificateGetResponseEnvelopeJSON `json:"-"` }
func (*CustomCertificateGetResponseEnvelope) UnmarshalJSON ¶
func (r *CustomCertificateGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type CustomCertificateGetResponseEnvelopeSuccess ¶
type CustomCertificateGetResponseEnvelopeSuccess bool
Whether the API call was successful
const (
CustomCertificateGetResponseEnvelopeSuccessTrue CustomCertificateGetResponseEnvelopeSuccess = true
)
func (CustomCertificateGetResponseEnvelopeSuccess) IsKnown ¶
func (r CustomCertificateGetResponseEnvelopeSuccess) IsKnown() bool
type CustomCertificateGetResponseUnion ¶
type CustomCertificateGetResponseUnion interface {
ImplementsCustomCertificatesCustomCertificateGetResponseUnion()
}
Union satisfied by custom_certificates.CustomCertificateGetResponseUnknown or shared.UnionString.
type CustomCertificateListParams ¶
type CustomCertificateListParams struct { // Identifier ZoneID param.Field[string] `path:"zone_id,required"` // Whether to match all search requirements or at least one (any). Match param.Field[CustomCertificateListParamsMatch] `query:"match"` // Page number of paginated results. Page param.Field[float64] `query:"page"` // Number of zones per page. PerPage param.Field[float64] `query:"per_page"` // Status of the zone's custom SSL. Status param.Field[CustomCertificateListParamsStatus] `query:"status"` }
func (CustomCertificateListParams) URLQuery ¶
func (r CustomCertificateListParams) URLQuery() (v url.Values)
URLQuery serializes CustomCertificateListParams's query parameters as `url.Values`.
type CustomCertificateListParamsMatch ¶
type CustomCertificateListParamsMatch string
Whether to match all search requirements or at least one (any).
const ( CustomCertificateListParamsMatchAny CustomCertificateListParamsMatch = "any" CustomCertificateListParamsMatchAll CustomCertificateListParamsMatch = "all" )
func (CustomCertificateListParamsMatch) IsKnown ¶
func (r CustomCertificateListParamsMatch) IsKnown() bool
type CustomCertificateListParamsStatus ¶
type CustomCertificateListParamsStatus string
Status of the zone's custom SSL.
const ( CustomCertificateListParamsStatusActive CustomCertificateListParamsStatus = "active" CustomCertificateListParamsStatusExpired CustomCertificateListParamsStatus = "expired" CustomCertificateListParamsStatusDeleted CustomCertificateListParamsStatus = "deleted" CustomCertificateListParamsStatusPending CustomCertificateListParamsStatus = "pending" CustomCertificateListParamsStatusInitializing CustomCertificateListParamsStatus = "initializing" )
func (CustomCertificateListParamsStatus) IsKnown ¶
func (r CustomCertificateListParamsStatus) IsKnown() bool
type CustomCertificateNewParams ¶
type CustomCertificateNewParams struct { // Identifier ZoneID param.Field[string] `path:"zone_id,required"` // The zone's SSL certificate or certificate and the intermediate(s). Certificate param.Field[string] `json:"certificate,required"` // The zone's private key. PrivateKey param.Field[string] `json:"private_key,required"` // A ubiquitous bundle has the highest probability of being verified everywhere, // even by clients using outdated or unusual trust stores. An optimal bundle uses // the shortest chain and newest intermediates. And the force bundle verifies the // chain, but does not otherwise modify it. BundleMethod param.Field[custom_hostnames.BundleMethod] `json:"bundle_method"` // Specify the region where your private key can be held locally for optimal TLS // performance. HTTPS connections to any excluded data center will still be fully // encrypted, but will incur some latency while Keyless SSL is used to complete the // handshake with the nearest allowed data center. Options allow distribution to // only to U.S. data centers, only to E.U. data centers, or only to highest // security data centers. Default distribution is to all Cloudflare datacenters, // for optimal performance. GeoRestrictions param.Field[GeoRestrictionsParam] `json:"geo_restrictions"` // Specify the policy that determines the region where your private key will be // held locally. HTTPS connections to any excluded data center will still be fully // encrypted, but will incur some latency while Keyless SSL is used to complete the // handshake with the nearest allowed data center. Any combination of countries, // specified by their two letter country code // (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) // can be chosen, such as 'country: IN', as well as 'region: EU' which refers to // the EU region. If there are too few data centers satisfying the policy, it will // be rejected. Policy param.Field[string] `json:"policy"` // The type 'legacy_custom' enables support for legacy clients which do not include // SNI in the TLS handshake. Type param.Field[CustomCertificateNewParamsType] `json:"type"` }
func (CustomCertificateNewParams) MarshalJSON ¶
func (r CustomCertificateNewParams) MarshalJSON() (data []byte, err error)
type CustomCertificateNewParamsType ¶
type CustomCertificateNewParamsType string
The type 'legacy_custom' enables support for legacy clients which do not include SNI in the TLS handshake.
const ( CustomCertificateNewParamsTypeLegacyCustom CustomCertificateNewParamsType = "legacy_custom" CustomCertificateNewParamsTypeSNICustom CustomCertificateNewParamsType = "sni_custom" )
func (CustomCertificateNewParamsType) IsKnown ¶
func (r CustomCertificateNewParamsType) IsKnown() bool
type CustomCertificateNewResponseEnvelope ¶
type CustomCertificateNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success CustomCertificateNewResponseEnvelopeSuccess `json:"success,required"` Result CustomCertificateNewResponseUnion `json:"result"` JSON customCertificateNewResponseEnvelopeJSON `json:"-"` }
func (*CustomCertificateNewResponseEnvelope) UnmarshalJSON ¶
func (r *CustomCertificateNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type CustomCertificateNewResponseEnvelopeSuccess ¶
type CustomCertificateNewResponseEnvelopeSuccess bool
Whether the API call was successful
const (
CustomCertificateNewResponseEnvelopeSuccessTrue CustomCertificateNewResponseEnvelopeSuccess = true
)
func (CustomCertificateNewResponseEnvelopeSuccess) IsKnown ¶
func (r CustomCertificateNewResponseEnvelopeSuccess) IsKnown() bool
type CustomCertificateNewResponseUnion ¶
type CustomCertificateNewResponseUnion interface {
ImplementsCustomCertificatesCustomCertificateNewResponseUnion()
}
Union satisfied by custom_certificates.CustomCertificateNewResponseUnknown or shared.UnionString.
type CustomCertificateService ¶
type CustomCertificateService struct { Options []option.RequestOption Prioritize *PrioritizeService }
CustomCertificateService 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 NewCustomCertificateService method instead.
func NewCustomCertificateService ¶
func NewCustomCertificateService(opts ...option.RequestOption) (r *CustomCertificateService)
NewCustomCertificateService 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 (*CustomCertificateService) Delete ¶
func (r *CustomCertificateService) Delete(ctx context.Context, customCertificateID string, body CustomCertificateDeleteParams, opts ...option.RequestOption) (res *CustomCertificateDeleteResponse, err error)
Remove a SSL certificate from a zone.
func (*CustomCertificateService) Edit ¶
func (r *CustomCertificateService) Edit(ctx context.Context, customCertificateID string, params CustomCertificateEditParams, opts ...option.RequestOption) (res *CustomCertificateEditResponseUnion, err error)
Upload a new private key and/or PEM/CRT for the SSL certificate. Note: PATCHing a configuration for sni_custom certificates will result in a new resource id being returned, and the previous one being deleted.
func (*CustomCertificateService) Get ¶
func (r *CustomCertificateService) Get(ctx context.Context, customCertificateID string, query CustomCertificateGetParams, opts ...option.RequestOption) (res *CustomCertificateGetResponseUnion, err error)
SSL Configuration Details
func (*CustomCertificateService) List ¶
func (r *CustomCertificateService) List(ctx context.Context, params CustomCertificateListParams, opts ...option.RequestOption) (res *pagination.V4PagePaginationArray[CustomCertificate], err error)
List, search, and filter all of your custom SSL certificates. The higher priority will break ties across overlapping 'legacy_custom' certificates, but 'legacy_custom' certificates will always supercede 'sni_custom' certificates.
func (*CustomCertificateService) ListAutoPaging ¶
func (r *CustomCertificateService) ListAutoPaging(ctx context.Context, params CustomCertificateListParams, opts ...option.RequestOption) *pagination.V4PagePaginationArrayAutoPager[CustomCertificate]
List, search, and filter all of your custom SSL certificates. The higher priority will break ties across overlapping 'legacy_custom' certificates, but 'legacy_custom' certificates will always supercede 'sni_custom' certificates.
func (*CustomCertificateService) New ¶
func (r *CustomCertificateService) New(ctx context.Context, params CustomCertificateNewParams, opts ...option.RequestOption) (res *CustomCertificateNewResponseUnion, err error)
Upload a new SSL certificate for a zone.
type CustomCertificateStatus ¶
type CustomCertificateStatus string
Status of the zone's custom SSL.
const ( CustomCertificateStatusActive CustomCertificateStatus = "active" CustomCertificateStatusExpired CustomCertificateStatus = "expired" CustomCertificateStatusDeleted CustomCertificateStatus = "deleted" CustomCertificateStatusPending CustomCertificateStatus = "pending" CustomCertificateStatusInitializing CustomCertificateStatus = "initializing" )
func (CustomCertificateStatus) IsKnown ¶
func (r CustomCertificateStatus) IsKnown() bool
type GeoRestrictions ¶
type GeoRestrictions struct { Label GeoRestrictionsLabel `json:"label"` JSON geoRestrictionsJSON `json:"-"` }
Specify the region where your private key can be held locally for optimal TLS performance. HTTPS connections to any excluded data center will still be fully encrypted, but will incur some latency while Keyless SSL is used to complete the handshake with the nearest allowed data center. Options allow distribution to only to U.S. data centers, only to E.U. data centers, or only to highest security data centers. Default distribution is to all Cloudflare datacenters, for optimal performance.
func (*GeoRestrictions) UnmarshalJSON ¶
func (r *GeoRestrictions) UnmarshalJSON(data []byte) (err error)
type GeoRestrictionsLabel ¶
type GeoRestrictionsLabel string
const ( GeoRestrictionsLabelUs GeoRestrictionsLabel = "us" GeoRestrictionsLabelEu GeoRestrictionsLabel = "eu" GeoRestrictionsLabelHighestSecurity GeoRestrictionsLabel = "highest_security" )
func (GeoRestrictionsLabel) IsKnown ¶
func (r GeoRestrictionsLabel) IsKnown() bool
type GeoRestrictionsParam ¶
type GeoRestrictionsParam struct {
Label param.Field[GeoRestrictionsLabel] `json:"label"`
}
Specify the region where your private key can be held locally for optimal TLS performance. HTTPS connections to any excluded data center will still be fully encrypted, but will incur some latency while Keyless SSL is used to complete the handshake with the nearest allowed data center. Options allow distribution to only to U.S. data centers, only to E.U. data centers, or only to highest security data centers. Default distribution is to all Cloudflare datacenters, for optimal performance.
func (GeoRestrictionsParam) MarshalJSON ¶
func (r GeoRestrictionsParam) MarshalJSON() (data []byte, err error)
type MemberParam ¶ added in v2.1.0
type MemberParam = shared.MemberParam
This is an alias to an internal type.
type MemberRoleParam ¶ added in v2.1.0
type MemberRoleParam = shared.MemberRoleParam
This is an alias to an internal type.
type MemberRolesPermissionsParam ¶ added in v2.1.0
type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam
This is an alias to an internal type.
type MemberStatus ¶ added in v2.3.0
type MemberStatus = shared.MemberStatus
A member's status in the account.
This is an alias to an internal type.
type MemberUserParam ¶ added in v2.1.0
type MemberUserParam = shared.MemberUserParam
Details of the user associated to the membership.
This is an alias to an internal type.
type PermissionGrant ¶
type PermissionGrant = shared.PermissionGrant
This is an alias to an internal type.
type PermissionGrantParam ¶
type PermissionGrantParam = shared.PermissionGrantParam
This is an alias to an internal type.
type PrioritizeService ¶
type PrioritizeService struct {
Options []option.RequestOption
}
PrioritizeService 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 NewPrioritizeService method instead.
func NewPrioritizeService ¶
func NewPrioritizeService(opts ...option.RequestOption) (r *PrioritizeService)
NewPrioritizeService 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 (*PrioritizeService) Update ¶
func (r *PrioritizeService) Update(ctx context.Context, params PrioritizeUpdateParams, opts ...option.RequestOption) (res *[]CustomCertificate, err error)
If a zone has multiple SSL certificates, you can set the order in which they should be used during a request. The higher priority will break ties across overlapping 'legacy_custom' certificates.
type PrioritizeUpdateParams ¶
type PrioritizeUpdateParams struct { // Identifier ZoneID param.Field[string] `path:"zone_id,required"` // Array of ordered certificates. Certificates param.Field[[]PrioritizeUpdateParamsCertificate] `json:"certificates,required"` }
func (PrioritizeUpdateParams) MarshalJSON ¶
func (r PrioritizeUpdateParams) MarshalJSON() (data []byte, err error)
type PrioritizeUpdateParamsCertificate ¶
type PrioritizeUpdateParamsCertificate struct { // Identifier ID param.Field[string] `json:"id"` // The order/priority in which the certificate will be used in a request. The // higher priority will break ties across overlapping 'legacy_custom' certificates, // but 'legacy_custom' certificates will always supercede 'sni_custom' // certificates. Priority param.Field[float64] `json:"priority"` }
func (PrioritizeUpdateParamsCertificate) MarshalJSON ¶
func (r PrioritizeUpdateParamsCertificate) MarshalJSON() (data []byte, err error)
type PrioritizeUpdateResponseEnvelope ¶
type PrioritizeUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success PrioritizeUpdateResponseEnvelopeSuccess `json:"success,required"` Result []CustomCertificate `json:"result,nullable"` ResultInfo PrioritizeUpdateResponseEnvelopeResultInfo `json:"result_info"` JSON prioritizeUpdateResponseEnvelopeJSON `json:"-"` }
func (*PrioritizeUpdateResponseEnvelope) UnmarshalJSON ¶
func (r *PrioritizeUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type PrioritizeUpdateResponseEnvelopeResultInfo ¶
type PrioritizeUpdateResponseEnvelopeResultInfo 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 prioritizeUpdateResponseEnvelopeResultInfoJSON `json:"-"` }
func (*PrioritizeUpdateResponseEnvelopeResultInfo) UnmarshalJSON ¶
func (r *PrioritizeUpdateResponseEnvelopeResultInfo) UnmarshalJSON(data []byte) (err error)
type PrioritizeUpdateResponseEnvelopeSuccess ¶
type PrioritizeUpdateResponseEnvelopeSuccess bool
Whether the API call was successful
const (
PrioritizeUpdateResponseEnvelopeSuccessTrue PrioritizeUpdateResponseEnvelopeSuccess = true
)
func (PrioritizeUpdateResponseEnvelopeSuccess) IsKnown ¶
func (r PrioritizeUpdateResponseEnvelopeSuccess) IsKnown() bool
type SortDirection ¶ added in v2.2.0
type SortDirection = shared.SortDirection
Direction to order DNS records in.
This is an alias to an internal type.