Documentation ¶
Index ¶
- Constants
- type ASN
- type ASNParam
- type AuditLog
- type AuditLogAction
- type AuditLogActor
- type AuditLogActorType
- type AuditLogOwner
- type AuditLogResource
- type AuthenticatedOriginPull
- type AuthenticatedOriginPullCERTStatus
- type AuthenticatedOriginPullStatus
- type CertificateCA
- type CertificateRequestType
- type CloudflareTunnel
- type CloudflareTunnelConnection
- type CloudflareTunnelStatus
- type CloudflareTunnelTunType
- type Error
- type ErrorData
- type HostnameCertificateDeleteParams
- type HostnameCertificateDeleteResponse
- type HostnameCertificateDeleteResponseEnvelope
- type HostnameCertificateDeleteResponseEnvelopeSuccess
- type HostnameCertificateDeleteResponseStatus
- type HostnameCertificateGetParams
- type HostnameCertificateGetResponse
- type HostnameCertificateGetResponseEnvelope
- type HostnameCertificateGetResponseEnvelopeSuccess
- type HostnameCertificateGetResponseStatus
- type HostnameCertificateListParams
- type HostnameCertificateNewParams
- type HostnameCertificateNewResponse
- type HostnameCertificateNewResponseEnvelope
- type HostnameCertificateNewResponseEnvelopeSuccess
- type HostnameCertificateNewResponseStatus
- type HostnameCertificateService
- func (r *HostnameCertificateService) Delete(ctx context.Context, certificateID string, ...) (res *HostnameCertificateDeleteResponse, err error)
- func (r *HostnameCertificateService) Get(ctx context.Context, certificateID string, query HostnameCertificateGetParams, ...) (res *HostnameCertificateGetResponse, err error)
- func (r *HostnameCertificateService) List(ctx context.Context, query HostnameCertificateListParams, ...) (res *pagination.SinglePage[AuthenticatedOriginPull], err error)
- func (r *HostnameCertificateService) ListAutoPaging(ctx context.Context, query HostnameCertificateListParams, ...) *pagination.SinglePageAutoPager[AuthenticatedOriginPull]
- func (r *HostnameCertificateService) New(ctx context.Context, params HostnameCertificateNewParams, ...) (res *HostnameCertificateNewResponse, err error)
- type HostnameGetParams
- type HostnameGetResponseEnvelope
- type HostnameGetResponseEnvelopeSuccess
- type HostnameService
- type HostnameUpdateParams
- type HostnameUpdateParamsConfig
- type HostnameUpdateResponseEnvelope
- type HostnameUpdateResponseEnvelopeResultInfo
- type HostnameUpdateResponseEnvelopeSuccess
- type MemberParam
- type MemberRoleParam
- type MemberRolesPermissionsParam
- type MemberStatus
- type MemberUserParam
- type OriginTLSClientAuthDeleteParams
- type OriginTLSClientAuthDeleteResponseEnvelope
- type OriginTLSClientAuthDeleteResponseEnvelopeSuccess
- type OriginTLSClientAuthDeleteResponseUnion
- type OriginTLSClientAuthGetParams
- type OriginTLSClientAuthGetResponseEnvelope
- type OriginTLSClientAuthGetResponseEnvelopeSuccess
- type OriginTLSClientAuthGetResponseUnion
- type OriginTLSClientAuthListParams
- type OriginTLSClientAuthNewParams
- type OriginTLSClientAuthNewResponseEnvelope
- type OriginTLSClientAuthNewResponseEnvelopeSuccess
- type OriginTLSClientAuthNewResponseUnion
- type OriginTLSClientAuthService
- func (r *OriginTLSClientAuthService) Delete(ctx context.Context, certificateID string, ...) (res *OriginTLSClientAuthDeleteResponseUnion, err error)
- func (r *OriginTLSClientAuthService) Get(ctx context.Context, certificateID string, query OriginTLSClientAuthGetParams, ...) (res *OriginTLSClientAuthGetResponseUnion, err error)
- func (r *OriginTLSClientAuthService) List(ctx context.Context, query OriginTLSClientAuthListParams, ...) (res *pagination.SinglePage[ZoneAuthenticatedOriginPull], err error)
- func (r *OriginTLSClientAuthService) ListAutoPaging(ctx context.Context, query OriginTLSClientAuthListParams, ...) *pagination.SinglePageAutoPager[ZoneAuthenticatedOriginPull]
- func (r *OriginTLSClientAuthService) New(ctx context.Context, params OriginTLSClientAuthNewParams, ...) (res *OriginTLSClientAuthNewResponseUnion, err error)
- type Permission
- type PermissionGrant
- type PermissionGrantParam
- type ResponseInfo
- type Role
- type SettingGetParams
- type SettingGetResponse
- type SettingGetResponseEnvelope
- type SettingGetResponseEnvelopeSuccess
- type SettingService
- type SettingUpdateParams
- type SettingUpdateResponse
- type SettingUpdateResponseEnvelope
- type SettingUpdateResponseEnvelopeSuccess
- type SortDirection
- type ZoneAuthenticatedOriginPull
- type ZoneAuthenticatedOriginPullStatus
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 AuthenticatedOriginPull ¶
type AuthenticatedOriginPull struct { // Identifier CERTID string `json:"cert_id"` // Status of the certificate or the association. CERTStatus AuthenticatedOriginPullCERTStatus `json:"cert_status"` // The time when the certificate was updated. CERTUpdatedAt time.Time `json:"cert_updated_at" format:"date-time"` // The time when the certificate was uploaded. CERTUploadedOn time.Time `json:"cert_uploaded_on" format:"date-time"` // The hostname certificate. Certificate string `json:"certificate"` // The time when the certificate was created. CreatedAt time.Time `json:"created_at" format:"date-time"` // Indicates whether hostname-level authenticated origin pulls is enabled. A null // value voids the association. Enabled bool `json:"enabled,nullable"` // The date when the certificate expires. ExpiresOn time.Time `json:"expires_on" format:"date-time"` // The hostname on the origin for which the client certificate uploaded will be // used. Hostname string `json:"hostname"` // The certificate authority that issued the certificate. Issuer string `json:"issuer"` // The serial number on the uploaded certificate. SerialNumber string `json:"serial_number"` // The type of hash used for the certificate. Signature string `json:"signature"` // Status of the certificate or the association. Status AuthenticatedOriginPullStatus `json:"status"` // The time when the certificate was updated. UpdatedAt time.Time `json:"updated_at" format:"date-time"` JSON authenticatedOriginPullJSON `json:"-"` }
func (*AuthenticatedOriginPull) UnmarshalJSON ¶
func (r *AuthenticatedOriginPull) UnmarshalJSON(data []byte) (err error)
type AuthenticatedOriginPullCERTStatus ¶
type AuthenticatedOriginPullCERTStatus string
Status of the certificate or the association.
const ( AuthenticatedOriginPullCERTStatusInitializing AuthenticatedOriginPullCERTStatus = "initializing" AuthenticatedOriginPullCERTStatusPendingDeployment AuthenticatedOriginPullCERTStatus = "pending_deployment" AuthenticatedOriginPullCERTStatusPendingDeletion AuthenticatedOriginPullCERTStatus = "pending_deletion" AuthenticatedOriginPullCERTStatusActive AuthenticatedOriginPullCERTStatus = "active" AuthenticatedOriginPullCERTStatusDeleted AuthenticatedOriginPullCERTStatus = "deleted" AuthenticatedOriginPullCERTStatusDeploymentTimedOut AuthenticatedOriginPullCERTStatus = "deployment_timed_out" AuthenticatedOriginPullCERTStatusDeletionTimedOut AuthenticatedOriginPullCERTStatus = "deletion_timed_out" )
func (AuthenticatedOriginPullCERTStatus) IsKnown ¶
func (r AuthenticatedOriginPullCERTStatus) IsKnown() bool
type AuthenticatedOriginPullStatus ¶
type AuthenticatedOriginPullStatus string
Status of the certificate or the association.
const ( AuthenticatedOriginPullStatusInitializing AuthenticatedOriginPullStatus = "initializing" AuthenticatedOriginPullStatusPendingDeployment AuthenticatedOriginPullStatus = "pending_deployment" AuthenticatedOriginPullStatusPendingDeletion AuthenticatedOriginPullStatus = "pending_deletion" AuthenticatedOriginPullStatusActive AuthenticatedOriginPullStatus = "active" AuthenticatedOriginPullStatusDeleted AuthenticatedOriginPullStatus = "deleted" AuthenticatedOriginPullStatusDeploymentTimedOut AuthenticatedOriginPullStatus = "deployment_timed_out" AuthenticatedOriginPullStatusDeletionTimedOut AuthenticatedOriginPullStatus = "deletion_timed_out" )
func (AuthenticatedOriginPullStatus) IsKnown ¶
func (r AuthenticatedOriginPullStatus) IsKnown() bool
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 HostnameCertificateDeleteResponse ¶
type HostnameCertificateDeleteResponse struct { // Identifier ID string `json:"id"` // The hostname certificate. Certificate string `json:"certificate"` // The date when the certificate expires. ExpiresOn time.Time `json:"expires_on" format:"date-time"` // The certificate authority that issued the certificate. Issuer string `json:"issuer"` // The serial number on the uploaded certificate. SerialNumber string `json:"serial_number"` // The type of hash used for the certificate. Signature string `json:"signature"` // Status of the certificate or the association. Status HostnameCertificateDeleteResponseStatus `json:"status"` // The time when the certificate was uploaded. UploadedOn time.Time `json:"uploaded_on" format:"date-time"` JSON hostnameCertificateDeleteResponseJSON `json:"-"` }
func (*HostnameCertificateDeleteResponse) UnmarshalJSON ¶
func (r *HostnameCertificateDeleteResponse) UnmarshalJSON(data []byte) (err error)
type HostnameCertificateDeleteResponseEnvelope ¶
type HostnameCertificateDeleteResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success HostnameCertificateDeleteResponseEnvelopeSuccess `json:"success,required"` Result HostnameCertificateDeleteResponse `json:"result"` JSON hostnameCertificateDeleteResponseEnvelopeJSON `json:"-"` }
func (*HostnameCertificateDeleteResponseEnvelope) UnmarshalJSON ¶
func (r *HostnameCertificateDeleteResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type HostnameCertificateDeleteResponseEnvelopeSuccess ¶
type HostnameCertificateDeleteResponseEnvelopeSuccess bool
Whether the API call was successful
const (
HostnameCertificateDeleteResponseEnvelopeSuccessTrue HostnameCertificateDeleteResponseEnvelopeSuccess = true
)
func (HostnameCertificateDeleteResponseEnvelopeSuccess) IsKnown ¶
func (r HostnameCertificateDeleteResponseEnvelopeSuccess) IsKnown() bool
type HostnameCertificateDeleteResponseStatus ¶
type HostnameCertificateDeleteResponseStatus string
Status of the certificate or the association.
const ( HostnameCertificateDeleteResponseStatusInitializing HostnameCertificateDeleteResponseStatus = "initializing" HostnameCertificateDeleteResponseStatusPendingDeployment HostnameCertificateDeleteResponseStatus = "pending_deployment" HostnameCertificateDeleteResponseStatusPendingDeletion HostnameCertificateDeleteResponseStatus = "pending_deletion" HostnameCertificateDeleteResponseStatusActive HostnameCertificateDeleteResponseStatus = "active" HostnameCertificateDeleteResponseStatusDeleted HostnameCertificateDeleteResponseStatus = "deleted" HostnameCertificateDeleteResponseStatusDeploymentTimedOut HostnameCertificateDeleteResponseStatus = "deployment_timed_out" HostnameCertificateDeleteResponseStatusDeletionTimedOut HostnameCertificateDeleteResponseStatus = "deletion_timed_out" )
func (HostnameCertificateDeleteResponseStatus) IsKnown ¶
func (r HostnameCertificateDeleteResponseStatus) IsKnown() bool
type HostnameCertificateGetResponse ¶
type HostnameCertificateGetResponse struct { // Identifier ID string `json:"id"` // The hostname certificate. Certificate string `json:"certificate"` // The date when the certificate expires. ExpiresOn time.Time `json:"expires_on" format:"date-time"` // The certificate authority that issued the certificate. Issuer string `json:"issuer"` // The serial number on the uploaded certificate. SerialNumber string `json:"serial_number"` // The type of hash used for the certificate. Signature string `json:"signature"` // Status of the certificate or the association. Status HostnameCertificateGetResponseStatus `json:"status"` // The time when the certificate was uploaded. UploadedOn time.Time `json:"uploaded_on" format:"date-time"` JSON hostnameCertificateGetResponseJSON `json:"-"` }
func (*HostnameCertificateGetResponse) UnmarshalJSON ¶
func (r *HostnameCertificateGetResponse) UnmarshalJSON(data []byte) (err error)
type HostnameCertificateGetResponseEnvelope ¶
type HostnameCertificateGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success HostnameCertificateGetResponseEnvelopeSuccess `json:"success,required"` Result HostnameCertificateGetResponse `json:"result"` JSON hostnameCertificateGetResponseEnvelopeJSON `json:"-"` }
func (*HostnameCertificateGetResponseEnvelope) UnmarshalJSON ¶
func (r *HostnameCertificateGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type HostnameCertificateGetResponseEnvelopeSuccess ¶
type HostnameCertificateGetResponseEnvelopeSuccess bool
Whether the API call was successful
const (
HostnameCertificateGetResponseEnvelopeSuccessTrue HostnameCertificateGetResponseEnvelopeSuccess = true
)
func (HostnameCertificateGetResponseEnvelopeSuccess) IsKnown ¶
func (r HostnameCertificateGetResponseEnvelopeSuccess) IsKnown() bool
type HostnameCertificateGetResponseStatus ¶
type HostnameCertificateGetResponseStatus string
Status of the certificate or the association.
const ( HostnameCertificateGetResponseStatusInitializing HostnameCertificateGetResponseStatus = "initializing" HostnameCertificateGetResponseStatusPendingDeployment HostnameCertificateGetResponseStatus = "pending_deployment" HostnameCertificateGetResponseStatusPendingDeletion HostnameCertificateGetResponseStatus = "pending_deletion" HostnameCertificateGetResponseStatusActive HostnameCertificateGetResponseStatus = "active" HostnameCertificateGetResponseStatusDeleted HostnameCertificateGetResponseStatus = "deleted" HostnameCertificateGetResponseStatusDeploymentTimedOut HostnameCertificateGetResponseStatus = "deployment_timed_out" HostnameCertificateGetResponseStatusDeletionTimedOut HostnameCertificateGetResponseStatus = "deletion_timed_out" )
func (HostnameCertificateGetResponseStatus) IsKnown ¶
func (r HostnameCertificateGetResponseStatus) IsKnown() bool
type HostnameCertificateNewParams ¶
type HostnameCertificateNewParams struct { // Identifier ZoneID param.Field[string] `path:"zone_id,required"` // The hostname certificate. Certificate param.Field[string] `json:"certificate,required"` // The hostname certificate's private key. PrivateKey param.Field[string] `json:"private_key,required"` }
func (HostnameCertificateNewParams) MarshalJSON ¶
func (r HostnameCertificateNewParams) MarshalJSON() (data []byte, err error)
type HostnameCertificateNewResponse ¶
type HostnameCertificateNewResponse struct { // Identifier ID string `json:"id"` // The hostname certificate. Certificate string `json:"certificate"` // The date when the certificate expires. ExpiresOn time.Time `json:"expires_on" format:"date-time"` // The certificate authority that issued the certificate. Issuer string `json:"issuer"` // The serial number on the uploaded certificate. SerialNumber string `json:"serial_number"` // The type of hash used for the certificate. Signature string `json:"signature"` // Status of the certificate or the association. Status HostnameCertificateNewResponseStatus `json:"status"` // The time when the certificate was uploaded. UploadedOn time.Time `json:"uploaded_on" format:"date-time"` JSON hostnameCertificateNewResponseJSON `json:"-"` }
func (*HostnameCertificateNewResponse) UnmarshalJSON ¶
func (r *HostnameCertificateNewResponse) UnmarshalJSON(data []byte) (err error)
type HostnameCertificateNewResponseEnvelope ¶
type HostnameCertificateNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success HostnameCertificateNewResponseEnvelopeSuccess `json:"success,required"` Result HostnameCertificateNewResponse `json:"result"` JSON hostnameCertificateNewResponseEnvelopeJSON `json:"-"` }
func (*HostnameCertificateNewResponseEnvelope) UnmarshalJSON ¶
func (r *HostnameCertificateNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type HostnameCertificateNewResponseEnvelopeSuccess ¶
type HostnameCertificateNewResponseEnvelopeSuccess bool
Whether the API call was successful
const (
HostnameCertificateNewResponseEnvelopeSuccessTrue HostnameCertificateNewResponseEnvelopeSuccess = true
)
func (HostnameCertificateNewResponseEnvelopeSuccess) IsKnown ¶
func (r HostnameCertificateNewResponseEnvelopeSuccess) IsKnown() bool
type HostnameCertificateNewResponseStatus ¶
type HostnameCertificateNewResponseStatus string
Status of the certificate or the association.
const ( HostnameCertificateNewResponseStatusInitializing HostnameCertificateNewResponseStatus = "initializing" HostnameCertificateNewResponseStatusPendingDeployment HostnameCertificateNewResponseStatus = "pending_deployment" HostnameCertificateNewResponseStatusPendingDeletion HostnameCertificateNewResponseStatus = "pending_deletion" HostnameCertificateNewResponseStatusActive HostnameCertificateNewResponseStatus = "active" HostnameCertificateNewResponseStatusDeleted HostnameCertificateNewResponseStatus = "deleted" HostnameCertificateNewResponseStatusDeploymentTimedOut HostnameCertificateNewResponseStatus = "deployment_timed_out" HostnameCertificateNewResponseStatusDeletionTimedOut HostnameCertificateNewResponseStatus = "deletion_timed_out" )
func (HostnameCertificateNewResponseStatus) IsKnown ¶
func (r HostnameCertificateNewResponseStatus) IsKnown() bool
type HostnameCertificateService ¶
type HostnameCertificateService struct {
Options []option.RequestOption
}
HostnameCertificateService 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 NewHostnameCertificateService method instead.
func NewHostnameCertificateService ¶
func NewHostnameCertificateService(opts ...option.RequestOption) (r *HostnameCertificateService)
NewHostnameCertificateService 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 (*HostnameCertificateService) Delete ¶
func (r *HostnameCertificateService) Delete(ctx context.Context, certificateID string, body HostnameCertificateDeleteParams, opts ...option.RequestOption) (res *HostnameCertificateDeleteResponse, err error)
Delete Hostname Client Certificate
func (*HostnameCertificateService) Get ¶
func (r *HostnameCertificateService) Get(ctx context.Context, certificateID string, query HostnameCertificateGetParams, opts ...option.RequestOption) (res *HostnameCertificateGetResponse, err error)
Get the certificate by ID to be used for client authentication on a hostname.
func (*HostnameCertificateService) List ¶
func (r *HostnameCertificateService) List(ctx context.Context, query HostnameCertificateListParams, opts ...option.RequestOption) (res *pagination.SinglePage[AuthenticatedOriginPull], err error)
List Certificates
func (*HostnameCertificateService) ListAutoPaging ¶
func (r *HostnameCertificateService) ListAutoPaging(ctx context.Context, query HostnameCertificateListParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[AuthenticatedOriginPull]
List Certificates
func (*HostnameCertificateService) New ¶
func (r *HostnameCertificateService) New(ctx context.Context, params HostnameCertificateNewParams, opts ...option.RequestOption) (res *HostnameCertificateNewResponse, err error)
Upload a certificate to be used for client authentication on a hostname. 10 hostname certificates per zone are allowed.
type HostnameGetParams ¶
type HostnameGetResponseEnvelope ¶
type HostnameGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success HostnameGetResponseEnvelopeSuccess `json:"success,required"` Result AuthenticatedOriginPull `json:"result"` JSON hostnameGetResponseEnvelopeJSON `json:"-"` }
func (*HostnameGetResponseEnvelope) UnmarshalJSON ¶
func (r *HostnameGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type HostnameGetResponseEnvelopeSuccess ¶
type HostnameGetResponseEnvelopeSuccess bool
Whether the API call was successful
const (
HostnameGetResponseEnvelopeSuccessTrue HostnameGetResponseEnvelopeSuccess = true
)
func (HostnameGetResponseEnvelopeSuccess) IsKnown ¶
func (r HostnameGetResponseEnvelopeSuccess) IsKnown() bool
type HostnameService ¶
type HostnameService struct { Options []option.RequestOption Certificates *HostnameCertificateService }
HostnameService 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 NewHostnameService method instead.
func NewHostnameService ¶
func NewHostnameService(opts ...option.RequestOption) (r *HostnameService)
NewHostnameService 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 (*HostnameService) Get ¶
func (r *HostnameService) Get(ctx context.Context, hostname string, query HostnameGetParams, opts ...option.RequestOption) (res *AuthenticatedOriginPull, err error)
Get the Hostname Status for Client Authentication
func (*HostnameService) Update ¶
func (r *HostnameService) Update(ctx context.Context, params HostnameUpdateParams, opts ...option.RequestOption) (res *[]AuthenticatedOriginPull, err error)
Associate a hostname to a certificate and enable, disable or invalidate the association. If disabled, client certificate will not be sent to the hostname even if activated at the zone level. 100 maximum associations on a single certificate are allowed. Note: Use a null value for parameter _enabled_ to invalidate the association.
type HostnameUpdateParams ¶
type HostnameUpdateParams struct { // Identifier ZoneID param.Field[string] `path:"zone_id,required"` Config param.Field[[]HostnameUpdateParamsConfig] `json:"config,required"` }
func (HostnameUpdateParams) MarshalJSON ¶
func (r HostnameUpdateParams) MarshalJSON() (data []byte, err error)
type HostnameUpdateParamsConfig ¶
type HostnameUpdateParamsConfig struct { // Certificate identifier tag. CERTID param.Field[string] `json:"cert_id"` // Indicates whether hostname-level authenticated origin pulls is enabled. A null // value voids the association. Enabled param.Field[bool] `json:"enabled"` // The hostname on the origin for which the client certificate uploaded will be // used. Hostname param.Field[string] `json:"hostname"` }
func (HostnameUpdateParamsConfig) MarshalJSON ¶
func (r HostnameUpdateParamsConfig) MarshalJSON() (data []byte, err error)
type HostnameUpdateResponseEnvelope ¶
type HostnameUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success HostnameUpdateResponseEnvelopeSuccess `json:"success,required"` Result []AuthenticatedOriginPull `json:"result,nullable"` ResultInfo HostnameUpdateResponseEnvelopeResultInfo `json:"result_info"` JSON hostnameUpdateResponseEnvelopeJSON `json:"-"` }
func (*HostnameUpdateResponseEnvelope) UnmarshalJSON ¶
func (r *HostnameUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type HostnameUpdateResponseEnvelopeResultInfo ¶
type HostnameUpdateResponseEnvelopeResultInfo 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 hostnameUpdateResponseEnvelopeResultInfoJSON `json:"-"` }
func (*HostnameUpdateResponseEnvelopeResultInfo) UnmarshalJSON ¶
func (r *HostnameUpdateResponseEnvelopeResultInfo) UnmarshalJSON(data []byte) (err error)
type HostnameUpdateResponseEnvelopeSuccess ¶
type HostnameUpdateResponseEnvelopeSuccess bool
Whether the API call was successful
const (
HostnameUpdateResponseEnvelopeSuccessTrue HostnameUpdateResponseEnvelopeSuccess = true
)
func (HostnameUpdateResponseEnvelopeSuccess) IsKnown ¶
func (r HostnameUpdateResponseEnvelopeSuccess) IsKnown() bool
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 OriginTLSClientAuthDeleteResponseEnvelope ¶
type OriginTLSClientAuthDeleteResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success OriginTLSClientAuthDeleteResponseEnvelopeSuccess `json:"success,required"` Result OriginTLSClientAuthDeleteResponseUnion `json:"result"` JSON originTLSClientAuthDeleteResponseEnvelopeJSON `json:"-"` }
func (*OriginTLSClientAuthDeleteResponseEnvelope) UnmarshalJSON ¶
func (r *OriginTLSClientAuthDeleteResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type OriginTLSClientAuthDeleteResponseEnvelopeSuccess ¶
type OriginTLSClientAuthDeleteResponseEnvelopeSuccess bool
Whether the API call was successful
const (
OriginTLSClientAuthDeleteResponseEnvelopeSuccessTrue OriginTLSClientAuthDeleteResponseEnvelopeSuccess = true
)
func (OriginTLSClientAuthDeleteResponseEnvelopeSuccess) IsKnown ¶
func (r OriginTLSClientAuthDeleteResponseEnvelopeSuccess) IsKnown() bool
type OriginTLSClientAuthDeleteResponseUnion ¶
type OriginTLSClientAuthDeleteResponseUnion interface {
ImplementsOriginTLSClientAuthOriginTLSClientAuthDeleteResponseUnion()
}
Union satisfied by origin_tls_client_auth.OriginTLSClientAuthDeleteResponseUnknown or shared.UnionString.
type OriginTLSClientAuthGetResponseEnvelope ¶
type OriginTLSClientAuthGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success OriginTLSClientAuthGetResponseEnvelopeSuccess `json:"success,required"` Result OriginTLSClientAuthGetResponseUnion `json:"result"` JSON originTLSClientAuthGetResponseEnvelopeJSON `json:"-"` }
func (*OriginTLSClientAuthGetResponseEnvelope) UnmarshalJSON ¶
func (r *OriginTLSClientAuthGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type OriginTLSClientAuthGetResponseEnvelopeSuccess ¶
type OriginTLSClientAuthGetResponseEnvelopeSuccess bool
Whether the API call was successful
const (
OriginTLSClientAuthGetResponseEnvelopeSuccessTrue OriginTLSClientAuthGetResponseEnvelopeSuccess = true
)
func (OriginTLSClientAuthGetResponseEnvelopeSuccess) IsKnown ¶
func (r OriginTLSClientAuthGetResponseEnvelopeSuccess) IsKnown() bool
type OriginTLSClientAuthGetResponseUnion ¶
type OriginTLSClientAuthGetResponseUnion interface {
ImplementsOriginTLSClientAuthOriginTLSClientAuthGetResponseUnion()
}
Union satisfied by origin_tls_client_auth.OriginTLSClientAuthGetResponseUnknown or shared.UnionString.
type OriginTLSClientAuthNewParams ¶
type OriginTLSClientAuthNewParams struct { // Identifier ZoneID param.Field[string] `path:"zone_id,required"` // The zone's leaf certificate. Certificate param.Field[string] `json:"certificate,required"` // The zone's private key. PrivateKey param.Field[string] `json:"private_key,required"` }
func (OriginTLSClientAuthNewParams) MarshalJSON ¶
func (r OriginTLSClientAuthNewParams) MarshalJSON() (data []byte, err error)
type OriginTLSClientAuthNewResponseEnvelope ¶
type OriginTLSClientAuthNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success OriginTLSClientAuthNewResponseEnvelopeSuccess `json:"success,required"` Result OriginTLSClientAuthNewResponseUnion `json:"result"` JSON originTLSClientAuthNewResponseEnvelopeJSON `json:"-"` }
func (*OriginTLSClientAuthNewResponseEnvelope) UnmarshalJSON ¶
func (r *OriginTLSClientAuthNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type OriginTLSClientAuthNewResponseEnvelopeSuccess ¶
type OriginTLSClientAuthNewResponseEnvelopeSuccess bool
Whether the API call was successful
const (
OriginTLSClientAuthNewResponseEnvelopeSuccessTrue OriginTLSClientAuthNewResponseEnvelopeSuccess = true
)
func (OriginTLSClientAuthNewResponseEnvelopeSuccess) IsKnown ¶
func (r OriginTLSClientAuthNewResponseEnvelopeSuccess) IsKnown() bool
type OriginTLSClientAuthNewResponseUnion ¶
type OriginTLSClientAuthNewResponseUnion interface {
ImplementsOriginTLSClientAuthOriginTLSClientAuthNewResponseUnion()
}
Union satisfied by origin_tls_client_auth.OriginTLSClientAuthNewResponseUnknown or shared.UnionString.
type OriginTLSClientAuthService ¶
type OriginTLSClientAuthService struct { Options []option.RequestOption Hostnames *HostnameService Settings *SettingService }
OriginTLSClientAuthService 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 NewOriginTLSClientAuthService method instead.
func NewOriginTLSClientAuthService ¶
func NewOriginTLSClientAuthService(opts ...option.RequestOption) (r *OriginTLSClientAuthService)
NewOriginTLSClientAuthService 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 (*OriginTLSClientAuthService) Delete ¶
func (r *OriginTLSClientAuthService) Delete(ctx context.Context, certificateID string, body OriginTLSClientAuthDeleteParams, opts ...option.RequestOption) (res *OriginTLSClientAuthDeleteResponseUnion, err error)
Delete Certificate
func (*OriginTLSClientAuthService) Get ¶
func (r *OriginTLSClientAuthService) Get(ctx context.Context, certificateID string, query OriginTLSClientAuthGetParams, opts ...option.RequestOption) (res *OriginTLSClientAuthGetResponseUnion, err error)
Get Certificate Details
func (*OriginTLSClientAuthService) List ¶
func (r *OriginTLSClientAuthService) List(ctx context.Context, query OriginTLSClientAuthListParams, opts ...option.RequestOption) (res *pagination.SinglePage[ZoneAuthenticatedOriginPull], err error)
List Certificates
func (*OriginTLSClientAuthService) ListAutoPaging ¶
func (r *OriginTLSClientAuthService) ListAutoPaging(ctx context.Context, query OriginTLSClientAuthListParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[ZoneAuthenticatedOriginPull]
List Certificates
func (*OriginTLSClientAuthService) New ¶
func (r *OriginTLSClientAuthService) New(ctx context.Context, params OriginTLSClientAuthNewParams, opts ...option.RequestOption) (res *OriginTLSClientAuthNewResponseUnion, err error)
Upload your own certificate you want Cloudflare to use for edge-to-origin communication to override the shared certificate. Please note that it is important to keep only one certificate active. Also, make sure to enable zone-level authenticated origin pulls by making a PUT call to settings endpoint to see the uploaded certificate in use.
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 SettingGetParams ¶
type SettingGetResponse ¶
type SettingGetResponse struct { // Indicates whether zone-level authenticated origin pulls is enabled. Enabled bool `json:"enabled"` JSON settingGetResponseJSON `json:"-"` }
func (*SettingGetResponse) UnmarshalJSON ¶
func (r *SettingGetResponse) UnmarshalJSON(data []byte) (err error)
type SettingGetResponseEnvelope ¶
type SettingGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success SettingGetResponseEnvelopeSuccess `json:"success,required"` Result SettingGetResponse `json:"result"` JSON settingGetResponseEnvelopeJSON `json:"-"` }
func (*SettingGetResponseEnvelope) UnmarshalJSON ¶
func (r *SettingGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type SettingGetResponseEnvelopeSuccess ¶
type SettingGetResponseEnvelopeSuccess bool
Whether the API call was successful
const (
SettingGetResponseEnvelopeSuccessTrue SettingGetResponseEnvelopeSuccess = true
)
func (SettingGetResponseEnvelopeSuccess) IsKnown ¶
func (r SettingGetResponseEnvelopeSuccess) IsKnown() bool
type SettingService ¶
type SettingService struct {
Options []option.RequestOption
}
SettingService 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 NewSettingService method instead.
func NewSettingService ¶
func NewSettingService(opts ...option.RequestOption) (r *SettingService)
NewSettingService 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 (*SettingService) Get ¶
func (r *SettingService) Get(ctx context.Context, query SettingGetParams, opts ...option.RequestOption) (res *SettingGetResponse, err error)
Get whether zone-level authenticated origin pulls is enabled or not. It is false by default.
func (*SettingService) Update ¶
func (r *SettingService) Update(ctx context.Context, params SettingUpdateParams, opts ...option.RequestOption) (res *SettingUpdateResponse, err error)
Enable or disable zone-level authenticated origin pulls. 'enabled' should be set true either before/after the certificate is uploaded to see the certificate in use.
type SettingUpdateParams ¶
type SettingUpdateParams struct { // Identifier ZoneID param.Field[string] `path:"zone_id,required"` // Indicates whether zone-level authenticated origin pulls is enabled. Enabled param.Field[bool] `json:"enabled,required"` }
func (SettingUpdateParams) MarshalJSON ¶
func (r SettingUpdateParams) MarshalJSON() (data []byte, err error)
type SettingUpdateResponse ¶
type SettingUpdateResponse struct { // Indicates whether zone-level authenticated origin pulls is enabled. Enabled bool `json:"enabled"` JSON settingUpdateResponseJSON `json:"-"` }
func (*SettingUpdateResponse) UnmarshalJSON ¶
func (r *SettingUpdateResponse) UnmarshalJSON(data []byte) (err error)
type SettingUpdateResponseEnvelope ¶
type SettingUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success SettingUpdateResponseEnvelopeSuccess `json:"success,required"` Result SettingUpdateResponse `json:"result"` JSON settingUpdateResponseEnvelopeJSON `json:"-"` }
func (*SettingUpdateResponseEnvelope) UnmarshalJSON ¶
func (r *SettingUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type SettingUpdateResponseEnvelopeSuccess ¶
type SettingUpdateResponseEnvelopeSuccess bool
Whether the API call was successful
const (
SettingUpdateResponseEnvelopeSuccessTrue SettingUpdateResponseEnvelopeSuccess = true
)
func (SettingUpdateResponseEnvelopeSuccess) IsKnown ¶
func (r SettingUpdateResponseEnvelopeSuccess) 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.
type ZoneAuthenticatedOriginPull ¶
type ZoneAuthenticatedOriginPull struct { // Identifier ID string `json:"id"` // The zone's leaf certificate. Certificate string `json:"certificate"` // When the certificate from the authority expires. ExpiresOn time.Time `json:"expires_on" format:"date-time"` // The certificate authority that issued the certificate. Issuer string `json:"issuer"` // The type of hash used for the certificate. Signature string `json:"signature"` // Status of the certificate activation. Status ZoneAuthenticatedOriginPullStatus `json:"status"` // This is the time the certificate was uploaded. UploadedOn time.Time `json:"uploaded_on" format:"date-time"` JSON zoneAuthenticatedOriginPullJSON `json:"-"` }
func (*ZoneAuthenticatedOriginPull) UnmarshalJSON ¶
func (r *ZoneAuthenticatedOriginPull) UnmarshalJSON(data []byte) (err error)
type ZoneAuthenticatedOriginPullStatus ¶
type ZoneAuthenticatedOriginPullStatus string
Status of the certificate activation.
const ( ZoneAuthenticatedOriginPullStatusInitializing ZoneAuthenticatedOriginPullStatus = "initializing" ZoneAuthenticatedOriginPullStatusPendingDeployment ZoneAuthenticatedOriginPullStatus = "pending_deployment" ZoneAuthenticatedOriginPullStatusPendingDeletion ZoneAuthenticatedOriginPullStatus = "pending_deletion" ZoneAuthenticatedOriginPullStatusActive ZoneAuthenticatedOriginPullStatus = "active" ZoneAuthenticatedOriginPullStatusDeleted ZoneAuthenticatedOriginPullStatus = "deleted" ZoneAuthenticatedOriginPullStatusDeploymentTimedOut ZoneAuthenticatedOriginPullStatus = "deployment_timed_out" ZoneAuthenticatedOriginPullStatusDeletionTimedOut ZoneAuthenticatedOriginPullStatus = "deletion_timed_out" )
func (ZoneAuthenticatedOriginPullStatus) IsKnown ¶
func (r ZoneAuthenticatedOriginPullStatus) IsKnown() bool