intel

package
v2.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const AuditLogActorTypeAdmin = shared.AuditLogActorTypeAdmin

This is an alias to an internal value.

View Source
const AuditLogActorTypeCloudflare = shared.AuditLogActorTypeCloudflare

This is an alias to an internal value.

View Source
const AuditLogActorTypeUser = shared.AuditLogActorTypeUser

This is an alias to an internal value.

View Source
const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI

This is an alias to an internal value.

View Source
const CloudflareTunnelTunTypeCfdTunnel = shared.CloudflareTunnelTunTypeCfdTunnel

This is an alias to an internal value.

View Source
const CloudflareTunnelTunTypeGRE = shared.CloudflareTunnelTunTypeGRE

This is an alias to an internal value.

View Source
const CloudflareTunnelTunTypeIPSec = shared.CloudflareTunnelTunTypeIPSec

This is an alias to an internal value.

View Source
const CloudflareTunnelTunTypeWARPConnector = shared.CloudflareTunnelTunTypeWARPConnector

This is an alias to an internal value.

Variables

This section is empty.

Functions

This section is empty.

Types

type ASN

type ASN = shared.ASN

This is an alias to an internal type.

type ASNGetParams

type ASNGetParams struct {
	// Identifier
	AccountID param.Field[string] `path:"account_id,required"`
}

type ASNGetResponseEnvelope

type ASNGetResponseEnvelope struct {
	Errors   []shared.ResponseInfo `json:"errors,required"`
	Messages []shared.ResponseInfo `json:"messages,required"`
	Result   shared.ASN            `json:"result,required"`
	// Whether the API call was successful
	Success ASNGetResponseEnvelopeSuccess `json:"success,required"`
	JSON    asnGetResponseEnvelopeJSON    `json:"-"`
}

func (*ASNGetResponseEnvelope) UnmarshalJSON

func (r *ASNGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)

type ASNGetResponseEnvelopeSuccess

type ASNGetResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	ASNGetResponseEnvelopeSuccessTrue ASNGetResponseEnvelopeSuccess = true
)

func (ASNGetResponseEnvelopeSuccess) IsKnown

func (r ASNGetResponseEnvelopeSuccess) IsKnown() bool

type ASNParam

type ASNParam = shared.ASNParam

This is an alias to an internal type.

type ASNService

type ASNService struct {
	Options []option.RequestOption
	Subnets *ASNSubnetService
}

ASNService 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 NewASNService method instead.

func NewASNService

func NewASNService(opts ...option.RequestOption) (r *ASNService)

NewASNService 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 (*ASNService) Get

func (r *ASNService) Get(ctx context.Context, asn shared.ASNParam, query ASNGetParams, opts ...option.RequestOption) (res *shared.ASN, err error)

Get ASN Overview

type ASNSubnetGetParams

type ASNSubnetGetParams struct {
	// Identifier
	AccountID param.Field[string] `path:"account_id,required"`
}

type ASNSubnetGetResponse

type ASNSubnetGetResponse struct {
	ASN shared.ASN `json:"asn"`
	// Total results returned based on your search parameters.
	Count        float64 `json:"count"`
	IPCountTotal int64   `json:"ip_count_total"`
	// Current page within paginated list of results.
	Page float64 `json:"page"`
	// Number of results per page of results.
	PerPage float64                  `json:"per_page"`
	Subnets []string                 `json:"subnets"`
	JSON    asnSubnetGetResponseJSON `json:"-"`
}

func (*ASNSubnetGetResponse) UnmarshalJSON

func (r *ASNSubnetGetResponse) UnmarshalJSON(data []byte) (err error)

type ASNSubnetService

type ASNSubnetService struct {
	Options []option.RequestOption
}

ASNSubnetService 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 NewASNSubnetService method instead.

func NewASNSubnetService

func NewASNSubnetService(opts ...option.RequestOption) (r *ASNSubnetService)

NewASNSubnetService 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 (*ASNSubnetService) Get

Get ASN Subnets

type AttackSurfaceReportIssueClassParams

type AttackSurfaceReportIssueClassParams struct {
	// Identifier
	AccountID     param.Field[string]               `path:"account_id,required"`
	Dismissed     param.Field[bool]                 `query:"dismissed"`
	IssueClass    param.Field[IssueClassParam]      `query:"issue_class"`
	IssueClassNeq param.Field[IssueClassParam]      `query:"issue_class~neq"`
	IssueType     param.Field[[]IssueType]          `query:"issue_type"`
	IssueTypeNeq  param.Field[[]IssueType]          `query:"issue_type~neq"`
	Product       param.Field[ProductParam]         `query:"product"`
	ProductNeq    param.Field[ProductParam]         `query:"product~neq"`
	Severity      param.Field[[]SeverityQueryParam] `query:"severity"`
	SeverityNeq   param.Field[[]SeverityQueryParam] `query:"severity~neq"`
	Subject       param.Field[SubjectParam]         `query:"subject"`
	SubjectNeq    param.Field[SubjectParam]         `query:"subject~neq"`
}

func (AttackSurfaceReportIssueClassParams) URLQuery

URLQuery serializes AttackSurfaceReportIssueClassParams's query parameters as `url.Values`.

type AttackSurfaceReportIssueClassResponse

type AttackSurfaceReportIssueClassResponse struct {
	Count int64                                     `json:"count"`
	Value string                                    `json:"value"`
	JSON  attackSurfaceReportIssueClassResponseJSON `json:"-"`
}

func (*AttackSurfaceReportIssueClassResponse) UnmarshalJSON

func (r *AttackSurfaceReportIssueClassResponse) UnmarshalJSON(data []byte) (err error)

type AttackSurfaceReportIssueClassResponseEnvelope

type AttackSurfaceReportIssueClassResponseEnvelope struct {
	Errors   []shared.ResponseInfo                   `json:"errors,required"`
	Messages []shared.ResponseInfo                   `json:"messages,required"`
	Result   []AttackSurfaceReportIssueClassResponse `json:"result,required"`
	// Whether the API call was successful
	Success AttackSurfaceReportIssueClassResponseEnvelopeSuccess `json:"success,required"`
	JSON    attackSurfaceReportIssueClassResponseEnvelopeJSON    `json:"-"`
}

func (*AttackSurfaceReportIssueClassResponseEnvelope) UnmarshalJSON

func (r *AttackSurfaceReportIssueClassResponseEnvelope) UnmarshalJSON(data []byte) (err error)

type AttackSurfaceReportIssueClassResponseEnvelopeSuccess

type AttackSurfaceReportIssueClassResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	AttackSurfaceReportIssueClassResponseEnvelopeSuccessTrue AttackSurfaceReportIssueClassResponseEnvelopeSuccess = true
)

func (AttackSurfaceReportIssueClassResponseEnvelopeSuccess) IsKnown

type AttackSurfaceReportIssueDismissParams

type AttackSurfaceReportIssueDismissParams struct {
	// Identifier
	AccountID param.Field[string] `path:"account_id,required"`
	Dismiss   param.Field[bool]   `json:"dismiss"`
}

func (AttackSurfaceReportIssueDismissParams) MarshalJSON

func (r AttackSurfaceReportIssueDismissParams) MarshalJSON() (data []byte, err error)

type AttackSurfaceReportIssueDismissResponseEnvelope

type AttackSurfaceReportIssueDismissResponseEnvelope struct {
	Errors   []shared.ResponseInfo                        `json:"errors,required"`
	Messages []shared.ResponseInfo                        `json:"messages,required"`
	Result   AttackSurfaceReportIssueDismissResponseUnion `json:"result,required"`
	// Whether the API call was successful
	Success AttackSurfaceReportIssueDismissResponseEnvelopeSuccess `json:"success,required"`
	JSON    attackSurfaceReportIssueDismissResponseEnvelopeJSON    `json:"-"`
}

func (*AttackSurfaceReportIssueDismissResponseEnvelope) UnmarshalJSON

func (r *AttackSurfaceReportIssueDismissResponseEnvelope) UnmarshalJSON(data []byte) (err error)

type AttackSurfaceReportIssueDismissResponseEnvelopeSuccess

type AttackSurfaceReportIssueDismissResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	AttackSurfaceReportIssueDismissResponseEnvelopeSuccessTrue AttackSurfaceReportIssueDismissResponseEnvelopeSuccess = true
)

func (AttackSurfaceReportIssueDismissResponseEnvelopeSuccess) IsKnown

type AttackSurfaceReportIssueDismissResponseUnion

type AttackSurfaceReportIssueDismissResponseUnion interface {
	ImplementsIntelAttackSurfaceReportIssueDismissResponseUnion()
}

Union satisfied by intel.AttackSurfaceReportIssueDismissResponseUnknown or shared.UnionString.

type AttackSurfaceReportIssueListParams

type AttackSurfaceReportIssueListParams struct {
	// Identifier
	AccountID     param.Field[string]          `path:"account_id,required"`
	Dismissed     param.Field[bool]            `query:"dismissed"`
	IssueClass    param.Field[IssueClassParam] `query:"issue_class"`
	IssueClassNeq param.Field[IssueClassParam] `query:"issue_class~neq"`
	IssueType     param.Field[[]IssueType]     `query:"issue_type"`
	IssueTypeNeq  param.Field[[]IssueType]     `query:"issue_type~neq"`
	// Current page within paginated list of results
	Page param.Field[int64] `query:"page"`
	// Number of results per page of results
	PerPage     param.Field[int64]                `query:"per_page"`
	Product     param.Field[ProductParam]         `query:"product"`
	ProductNeq  param.Field[ProductParam]         `query:"product~neq"`
	Severity    param.Field[[]SeverityQueryParam] `query:"severity"`
	SeverityNeq param.Field[[]SeverityQueryParam] `query:"severity~neq"`
	Subject     param.Field[SubjectParam]         `query:"subject"`
	SubjectNeq  param.Field[SubjectParam]         `query:"subject~neq"`
}

func (AttackSurfaceReportIssueListParams) URLQuery

URLQuery serializes AttackSurfaceReportIssueListParams's query parameters as `url.Values`.

type AttackSurfaceReportIssueListResponse

type AttackSurfaceReportIssueListResponse struct {
	Errors   []shared.ResponseInfo                      `json:"errors,required"`
	Messages []shared.ResponseInfo                      `json:"messages,required"`
	Result   AttackSurfaceReportIssueListResponseResult `json:"result,required"`
	// Whether the API call was successful
	Success AttackSurfaceReportIssueListResponseSuccess `json:"success,required"`
	JSON    attackSurfaceReportIssueListResponseJSON    `json:"-"`
}

func (*AttackSurfaceReportIssueListResponse) UnmarshalJSON

func (r *AttackSurfaceReportIssueListResponse) UnmarshalJSON(data []byte) (err error)

type AttackSurfaceReportIssueListResponseResult

type AttackSurfaceReportIssueListResponseResult struct {
	// Total number of results
	Count  int64                                             `json:"count"`
	Issues []AttackSurfaceReportIssueListResponseResultIssue `json:"issues"`
	// Current page within paginated list of results
	Page int64 `json:"page"`
	// Number of results per page of results
	PerPage int64                                          `json:"per_page"`
	JSON    attackSurfaceReportIssueListResponseResultJSON `json:"-"`
}

func (*AttackSurfaceReportIssueListResponseResult) UnmarshalJSON

func (r *AttackSurfaceReportIssueListResponseResult) UnmarshalJSON(data []byte) (err error)

type AttackSurfaceReportIssueListResponseResultIssue

type AttackSurfaceReportIssueListResponseResultIssue struct {
	ID          string                                                    `json:"id"`
	Dismissed   bool                                                      `json:"dismissed"`
	IssueClass  string                                                    `json:"issue_class"`
	IssueType   AttackSurfaceReportIssueListResponseResultIssuesIssueType `json:"issue_type"`
	Payload     interface{}                                               `json:"payload"`
	ResolveLink string                                                    `json:"resolve_link"`
	ResolveText string                                                    `json:"resolve_text"`
	Severity    AttackSurfaceReportIssueListResponseResultIssuesSeverity  `json:"severity"`
	Since       time.Time                                                 `json:"since" format:"date-time"`
	Subject     string                                                    `json:"subject"`
	Timestamp   time.Time                                                 `json:"timestamp" format:"date-time"`
	JSON        attackSurfaceReportIssueListResponseResultIssueJSON       `json:"-"`
}

func (*AttackSurfaceReportIssueListResponseResultIssue) UnmarshalJSON

func (r *AttackSurfaceReportIssueListResponseResultIssue) UnmarshalJSON(data []byte) (err error)

type AttackSurfaceReportIssueListResponseResultIssuesIssueType

type AttackSurfaceReportIssueListResponseResultIssuesIssueType string
const (
	AttackSurfaceReportIssueListResponseResultIssuesIssueTypeComplianceViolation   AttackSurfaceReportIssueListResponseResultIssuesIssueType = "compliance_violation"
	AttackSurfaceReportIssueListResponseResultIssuesIssueTypeEmailSecurity         AttackSurfaceReportIssueListResponseResultIssuesIssueType = "email_security"
	AttackSurfaceReportIssueListResponseResultIssuesIssueTypeExposedInfrastructure AttackSurfaceReportIssueListResponseResultIssuesIssueType = "exposed_infrastructure"
	AttackSurfaceReportIssueListResponseResultIssuesIssueTypeInsecureConfiguration AttackSurfaceReportIssueListResponseResultIssuesIssueType = "insecure_configuration"
	AttackSurfaceReportIssueListResponseResultIssuesIssueTypeWeakAuthentication    AttackSurfaceReportIssueListResponseResultIssuesIssueType = "weak_authentication"
)

func (AttackSurfaceReportIssueListResponseResultIssuesIssueType) IsKnown

type AttackSurfaceReportIssueListResponseResultIssuesSeverity

type AttackSurfaceReportIssueListResponseResultIssuesSeverity string
const (
	AttackSurfaceReportIssueListResponseResultIssuesSeverityLow      AttackSurfaceReportIssueListResponseResultIssuesSeverity = "Low"
	AttackSurfaceReportIssueListResponseResultIssuesSeverityModerate AttackSurfaceReportIssueListResponseResultIssuesSeverity = "Moderate"
	AttackSurfaceReportIssueListResponseResultIssuesSeverityCritical AttackSurfaceReportIssueListResponseResultIssuesSeverity = "Critical"
)

func (AttackSurfaceReportIssueListResponseResultIssuesSeverity) IsKnown

type AttackSurfaceReportIssueListResponseSuccess

type AttackSurfaceReportIssueListResponseSuccess bool

Whether the API call was successful

const (
	AttackSurfaceReportIssueListResponseSuccessTrue AttackSurfaceReportIssueListResponseSuccess = true
)

func (AttackSurfaceReportIssueListResponseSuccess) IsKnown

type AttackSurfaceReportIssueService

type AttackSurfaceReportIssueService struct {
	Options []option.RequestOption
}

AttackSurfaceReportIssueService 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 NewAttackSurfaceReportIssueService method instead.

func NewAttackSurfaceReportIssueService

func NewAttackSurfaceReportIssueService(opts ...option.RequestOption) (r *AttackSurfaceReportIssueService)

NewAttackSurfaceReportIssueService 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 (*AttackSurfaceReportIssueService) Class

Get Security Center Issue Counts by Class

func (*AttackSurfaceReportIssueService) Dismiss

Archive Security Center Insight

func (*AttackSurfaceReportIssueService) List

Get Security Center Issues

func (*AttackSurfaceReportIssueService) ListAutoPaging

Get Security Center Issues

func (*AttackSurfaceReportIssueService) Severity

Get Security Center Issue Counts by Severity

func (*AttackSurfaceReportIssueService) Type

Get Security Center Issue Counts by Type

type AttackSurfaceReportIssueSeverityParams

type AttackSurfaceReportIssueSeverityParams struct {
	// Identifier
	AccountID     param.Field[string]               `path:"account_id,required"`
	Dismissed     param.Field[bool]                 `query:"dismissed"`
	IssueClass    param.Field[IssueClassParam]      `query:"issue_class"`
	IssueClassNeq param.Field[IssueClassParam]      `query:"issue_class~neq"`
	IssueType     param.Field[[]IssueType]          `query:"issue_type"`
	IssueTypeNeq  param.Field[[]IssueType]          `query:"issue_type~neq"`
	Product       param.Field[ProductParam]         `query:"product"`
	ProductNeq    param.Field[ProductParam]         `query:"product~neq"`
	Severity      param.Field[[]SeverityQueryParam] `query:"severity"`
	SeverityNeq   param.Field[[]SeverityQueryParam] `query:"severity~neq"`
	Subject       param.Field[SubjectParam]         `query:"subject"`
	SubjectNeq    param.Field[SubjectParam]         `query:"subject~neq"`
}

func (AttackSurfaceReportIssueSeverityParams) URLQuery

URLQuery serializes AttackSurfaceReportIssueSeverityParams's query parameters as `url.Values`.

type AttackSurfaceReportIssueSeverityResponse

type AttackSurfaceReportIssueSeverityResponse struct {
	Count int64                                        `json:"count"`
	Value string                                       `json:"value"`
	JSON  attackSurfaceReportIssueSeverityResponseJSON `json:"-"`
}

func (*AttackSurfaceReportIssueSeverityResponse) UnmarshalJSON

func (r *AttackSurfaceReportIssueSeverityResponse) UnmarshalJSON(data []byte) (err error)

type AttackSurfaceReportIssueSeverityResponseEnvelope

type AttackSurfaceReportIssueSeverityResponseEnvelope struct {
	Errors   []shared.ResponseInfo                      `json:"errors,required"`
	Messages []shared.ResponseInfo                      `json:"messages,required"`
	Result   []AttackSurfaceReportIssueSeverityResponse `json:"result,required"`
	// Whether the API call was successful
	Success AttackSurfaceReportIssueSeverityResponseEnvelopeSuccess `json:"success,required"`
	JSON    attackSurfaceReportIssueSeverityResponseEnvelopeJSON    `json:"-"`
}

func (*AttackSurfaceReportIssueSeverityResponseEnvelope) UnmarshalJSON

func (r *AttackSurfaceReportIssueSeverityResponseEnvelope) UnmarshalJSON(data []byte) (err error)

type AttackSurfaceReportIssueSeverityResponseEnvelopeSuccess

type AttackSurfaceReportIssueSeverityResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	AttackSurfaceReportIssueSeverityResponseEnvelopeSuccessTrue AttackSurfaceReportIssueSeverityResponseEnvelopeSuccess = true
)

func (AttackSurfaceReportIssueSeverityResponseEnvelopeSuccess) IsKnown

type AttackSurfaceReportIssueTypeGetParams

type AttackSurfaceReportIssueTypeGetParams struct {
	// Identifier
	AccountID param.Field[string] `path:"account_id,required"`
}

type AttackSurfaceReportIssueTypeGetResponseEnvelope

type AttackSurfaceReportIssueTypeGetResponseEnvelope struct {
	Errors   []shared.ResponseInfo `json:"errors,required"`
	Messages []shared.ResponseInfo `json:"messages,required"`
	Result   []string              `json:"result,required"`
	// Whether the API call was successful
	Success AttackSurfaceReportIssueTypeGetResponseEnvelopeSuccess `json:"success,required"`
	JSON    attackSurfaceReportIssueTypeGetResponseEnvelopeJSON    `json:"-"`
}

func (*AttackSurfaceReportIssueTypeGetResponseEnvelope) UnmarshalJSON

func (r *AttackSurfaceReportIssueTypeGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)

type AttackSurfaceReportIssueTypeGetResponseEnvelopeSuccess

type AttackSurfaceReportIssueTypeGetResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	AttackSurfaceReportIssueTypeGetResponseEnvelopeSuccessTrue AttackSurfaceReportIssueTypeGetResponseEnvelopeSuccess = true
)

func (AttackSurfaceReportIssueTypeGetResponseEnvelopeSuccess) IsKnown

type AttackSurfaceReportIssueTypeParams

type AttackSurfaceReportIssueTypeParams struct {
	// Identifier
	AccountID     param.Field[string]               `path:"account_id,required"`
	Dismissed     param.Field[bool]                 `query:"dismissed"`
	IssueClass    param.Field[IssueClassParam]      `query:"issue_class"`
	IssueClassNeq param.Field[IssueClassParam]      `query:"issue_class~neq"`
	IssueType     param.Field[[]IssueType]          `query:"issue_type"`
	IssueTypeNeq  param.Field[[]IssueType]          `query:"issue_type~neq"`
	Product       param.Field[ProductParam]         `query:"product"`
	ProductNeq    param.Field[ProductParam]         `query:"product~neq"`
	Severity      param.Field[[]SeverityQueryParam] `query:"severity"`
	SeverityNeq   param.Field[[]SeverityQueryParam] `query:"severity~neq"`
	Subject       param.Field[SubjectParam]         `query:"subject"`
	SubjectNeq    param.Field[SubjectParam]         `query:"subject~neq"`
}

func (AttackSurfaceReportIssueTypeParams) URLQuery

URLQuery serializes AttackSurfaceReportIssueTypeParams's query parameters as `url.Values`.

type AttackSurfaceReportIssueTypeResponse

type AttackSurfaceReportIssueTypeResponse struct {
	Count int64                                    `json:"count"`
	Value string                                   `json:"value"`
	JSON  attackSurfaceReportIssueTypeResponseJSON `json:"-"`
}

func (*AttackSurfaceReportIssueTypeResponse) UnmarshalJSON

func (r *AttackSurfaceReportIssueTypeResponse) UnmarshalJSON(data []byte) (err error)

type AttackSurfaceReportIssueTypeResponseEnvelope

type AttackSurfaceReportIssueTypeResponseEnvelope struct {
	Errors   []shared.ResponseInfo                  `json:"errors,required"`
	Messages []shared.ResponseInfo                  `json:"messages,required"`
	Result   []AttackSurfaceReportIssueTypeResponse `json:"result,required"`
	// Whether the API call was successful
	Success AttackSurfaceReportIssueTypeResponseEnvelopeSuccess `json:"success,required"`
	JSON    attackSurfaceReportIssueTypeResponseEnvelopeJSON    `json:"-"`
}

func (*AttackSurfaceReportIssueTypeResponseEnvelope) UnmarshalJSON

func (r *AttackSurfaceReportIssueTypeResponseEnvelope) UnmarshalJSON(data []byte) (err error)

type AttackSurfaceReportIssueTypeResponseEnvelopeSuccess

type AttackSurfaceReportIssueTypeResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	AttackSurfaceReportIssueTypeResponseEnvelopeSuccessTrue AttackSurfaceReportIssueTypeResponseEnvelopeSuccess = true
)

func (AttackSurfaceReportIssueTypeResponseEnvelopeSuccess) IsKnown

type AttackSurfaceReportIssueTypeService

type AttackSurfaceReportIssueTypeService struct {
	Options []option.RequestOption
}

AttackSurfaceReportIssueTypeService 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 NewAttackSurfaceReportIssueTypeService method instead.

func NewAttackSurfaceReportIssueTypeService

func NewAttackSurfaceReportIssueTypeService(opts ...option.RequestOption) (r *AttackSurfaceReportIssueTypeService)

NewAttackSurfaceReportIssueTypeService 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 (*AttackSurfaceReportIssueTypeService) Get

Get Security Center Issues Types

type AttackSurfaceReportService

type AttackSurfaceReportService struct {
	Options    []option.RequestOption
	IssueTypes *AttackSurfaceReportIssueTypeService
	Issues     *AttackSurfaceReportIssueService
}

AttackSurfaceReportService 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 NewAttackSurfaceReportService method instead.

func NewAttackSurfaceReportService

func NewAttackSurfaceReportService(opts ...option.RequestOption) (r *AttackSurfaceReportService)

NewAttackSurfaceReportService 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 AuditLog

type AuditLog = shared.AuditLog

This is an alias to an internal type.

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 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 DNS

type DNS struct {
	// Total results returned based on your search parameters.
	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"`
	// Reverse DNS look-ups observed during the time period.
	ReverseRecords []DNSReverseRecord `json:"reverse_records"`
	JSON           dnsJSON            `json:"-"`
}

func (*DNS) UnmarshalJSON

func (r *DNS) UnmarshalJSON(data []byte) (err error)

type DNSListParams

type DNSListParams struct {
	// Identifier
	AccountID param.Field[string] `path:"account_id,required"`
	IPV4      param.Field[string] `query:"ipv4"`
	// Requested page within paginated list of results.
	Page param.Field[float64] `query:"page"`
	// Maximum number of results requested.
	PerPage        param.Field[float64]                     `query:"per_page"`
	StartEndParams param.Field[DNSListParamsStartEndParams] `query:"start_end_params"`
}

func (DNSListParams) URLQuery

func (r DNSListParams) URLQuery() (v url.Values)

URLQuery serializes DNSListParams's query parameters as `url.Values`.

type DNSListParamsStartEndParams

type DNSListParamsStartEndParams struct {
	// Defaults to the current date.
	End param.Field[time.Time] `query:"end" format:"date"`
	// Defaults to 30 days before the end parameter value.
	Start param.Field[time.Time] `query:"start" format:"date"`
}

func (DNSListParamsStartEndParams) URLQuery

func (r DNSListParamsStartEndParams) URLQuery() (v url.Values)

URLQuery serializes DNSListParamsStartEndParams's query parameters as `url.Values`.

type DNSListResponse

type DNSListResponse struct {
	Errors   []shared.ResponseInfo `json:"errors,required"`
	Messages []shared.ResponseInfo `json:"messages,required"`
	Result   DNS                   `json:"result,required"`
	// Whether the API call was successful
	Success DNSListResponseSuccess `json:"success,required"`
	JSON    dnsListResponseJSON    `json:"-"`
}

func (*DNSListResponse) UnmarshalJSON

func (r *DNSListResponse) UnmarshalJSON(data []byte) (err error)

type DNSListResponseSuccess

type DNSListResponseSuccess bool

Whether the API call was successful

const (
	DNSListResponseSuccessTrue DNSListResponseSuccess = true
)

func (DNSListResponseSuccess) IsKnown

func (r DNSListResponseSuccess) IsKnown() bool

type DNSParam

type DNSParam struct {
	// Total results returned based on your search parameters.
	Count param.Field[float64] `json:"count"`
	// Current page within paginated list of results.
	Page param.Field[float64] `json:"page"`
	// Number of results per page of results.
	PerPage param.Field[float64] `json:"per_page"`
	// Reverse DNS look-ups observed during the time period.
	ReverseRecords param.Field[[]DNSReverseRecordParam] `json:"reverse_records"`
}

func (DNSParam) MarshalJSON

func (r DNSParam) MarshalJSON() (data []byte, err error)

type DNSReverseRecord

type DNSReverseRecord struct {
	// First seen date of the DNS record during the time period.
	FirstSeen time.Time `json:"first_seen" format:"date"`
	// Hostname that the IP was observed resolving to.
	Hostname interface{} `json:"hostname"`
	// Last seen date of the DNS record during the time period.
	LastSeen time.Time            `json:"last_seen" format:"date"`
	JSON     dnsReverseRecordJSON `json:"-"`
}

func (*DNSReverseRecord) UnmarshalJSON

func (r *DNSReverseRecord) UnmarshalJSON(data []byte) (err error)

type DNSReverseRecordParam

type DNSReverseRecordParam struct {
	// First seen date of the DNS record during the time period.
	FirstSeen param.Field[time.Time] `json:"first_seen" format:"date"`
	// Hostname that the IP was observed resolving to.
	Hostname param.Field[interface{}] `json:"hostname"`
	// Last seen date of the DNS record during the time period.
	LastSeen param.Field[time.Time] `json:"last_seen" format:"date"`
}

func (DNSReverseRecordParam) MarshalJSON

func (r DNSReverseRecordParam) MarshalJSON() (data []byte, err error)

type DNSService

type DNSService struct {
	Options []option.RequestOption
}

DNSService 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 NewDNSService method instead.

func NewDNSService

func NewDNSService(opts ...option.RequestOption) (r *DNSService)

NewDNSService 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 (*DNSService) List

Get Passive DNS by IP

func (*DNSService) ListAutoPaging

Get Passive DNS by IP

type Domain

type Domain struct {
	// Additional information related to the host name.
	AdditionalInformation DomainAdditionalInformation `json:"additional_information"`
	// Application that the hostname belongs to.
	Application DomainApplication `json:"application"`
	// Current content categories.
	ContentCategories          []interface{}                    `json:"content_categories"`
	Domain                     string                           `json:"domain"`
	InheritedContentCategories []DomainInheritedContentCategory `json:"inherited_content_categories"`
	// Domain from which `inherited_content_categories` and `inherited_risk_types` are
	// inherited, if applicable.
	InheritedFrom      string                    `json:"inherited_from"`
	InheritedRiskTypes []DomainInheritedRiskType `json:"inherited_risk_types"`
	// Global Cloudflare 100k ranking for the last 30 days, if available for the
	// hostname. The top ranked domain is 1, the lowest ranked domain is 100,000.
	PopularityRank int64 `json:"popularity_rank"`
	// Specifies a list of references to one or more IP addresses or domain names that
	// the domain name currently resolves to.
	ResolvesToRefs []DomainResolvesToRef `json:"resolves_to_refs"`
	// Hostname risk score, which is a value between 0 (lowest risk) to 1 (highest
	// risk).
	RiskScore float64       `json:"risk_score"`
	RiskTypes []interface{} `json:"risk_types"`
	JSON      domainJSON    `json:"-"`
}

func (*Domain) UnmarshalJSON

func (r *Domain) UnmarshalJSON(data []byte) (err error)

type DomainAdditionalInformation

type DomainAdditionalInformation struct {
	// Suspected DGA malware family.
	SuspectedMalwareFamily string                          `json:"suspected_malware_family"`
	JSON                   domainAdditionalInformationJSON `json:"-"`
}

Additional information related to the host name.

func (*DomainAdditionalInformation) UnmarshalJSON

func (r *DomainAdditionalInformation) UnmarshalJSON(data []byte) (err error)

type DomainApplication

type DomainApplication struct {
	ID   int64                 `json:"id"`
	Name string                `json:"name"`
	JSON domainApplicationJSON `json:"-"`
}

Application that the hostname belongs to.

func (*DomainApplication) UnmarshalJSON

func (r *DomainApplication) UnmarshalJSON(data []byte) (err error)

type DomainBulkGetParams

type DomainBulkGetParams struct {
	// Identifier
	AccountID param.Field[string] `path:"account_id,required"`
	// Accepts multiple values, i.e. `?domain=cloudflare.com&domain=example.com`.
	Domain param.Field[interface{}] `query:"domain"`
}

func (DomainBulkGetParams) URLQuery

func (r DomainBulkGetParams) URLQuery() (v url.Values)

URLQuery serializes DomainBulkGetParams's query parameters as `url.Values`.

type DomainBulkGetResponse

type DomainBulkGetResponse struct {
	// Additional information related to the host name.
	AdditionalInformation DomainBulkGetResponseAdditionalInformation `json:"additional_information"`
	// Application that the hostname belongs to.
	Application DomainBulkGetResponseApplication `json:"application"`
	// Current content categories.
	ContentCategories          []interface{}                                   `json:"content_categories"`
	Domain                     string                                          `json:"domain"`
	InheritedContentCategories []DomainBulkGetResponseInheritedContentCategory `json:"inherited_content_categories"`
	// Domain from which `inherited_content_categories` and `inherited_risk_types` are
	// inherited, if applicable.
	InheritedFrom      string                                   `json:"inherited_from"`
	InheritedRiskTypes []DomainBulkGetResponseInheritedRiskType `json:"inherited_risk_types"`
	// Global Cloudflare 100k ranking for the last 30 days, if available for the
	// hostname. The top ranked domain is 1, the lowest ranked domain is 100,000.
	PopularityRank int64 `json:"popularity_rank"`
	// Hostname risk score, which is a value between 0 (lowest risk) to 1 (highest
	// risk).
	RiskScore float64                   `json:"risk_score"`
	RiskTypes []interface{}             `json:"risk_types"`
	JSON      domainBulkGetResponseJSON `json:"-"`
}

func (*DomainBulkGetResponse) UnmarshalJSON

func (r *DomainBulkGetResponse) UnmarshalJSON(data []byte) (err error)

type DomainBulkGetResponseAdditionalInformation

type DomainBulkGetResponseAdditionalInformation struct {
	// Suspected DGA malware family.
	SuspectedMalwareFamily string                                         `json:"suspected_malware_family"`
	JSON                   domainBulkGetResponseAdditionalInformationJSON `json:"-"`
}

Additional information related to the host name.

func (*DomainBulkGetResponseAdditionalInformation) UnmarshalJSON

func (r *DomainBulkGetResponseAdditionalInformation) UnmarshalJSON(data []byte) (err error)

type DomainBulkGetResponseApplication

type DomainBulkGetResponseApplication struct {
	ID   int64                                `json:"id"`
	Name string                               `json:"name"`
	JSON domainBulkGetResponseApplicationJSON `json:"-"`
}

Application that the hostname belongs to.

func (*DomainBulkGetResponseApplication) UnmarshalJSON

func (r *DomainBulkGetResponseApplication) UnmarshalJSON(data []byte) (err error)

type DomainBulkGetResponseEnvelope

type DomainBulkGetResponseEnvelope struct {
	Errors   []shared.ResponseInfo   `json:"errors,required"`
	Messages []shared.ResponseInfo   `json:"messages,required"`
	Result   []DomainBulkGetResponse `json:"result,required,nullable"`
	// Whether the API call was successful
	Success    DomainBulkGetResponseEnvelopeSuccess    `json:"success,required"`
	ResultInfo DomainBulkGetResponseEnvelopeResultInfo `json:"result_info"`
	JSON       domainBulkGetResponseEnvelopeJSON       `json:"-"`
}

func (*DomainBulkGetResponseEnvelope) UnmarshalJSON

func (r *DomainBulkGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)

type DomainBulkGetResponseEnvelopeResultInfo

type DomainBulkGetResponseEnvelopeResultInfo 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       domainBulkGetResponseEnvelopeResultInfoJSON `json:"-"`
}

func (*DomainBulkGetResponseEnvelopeResultInfo) UnmarshalJSON

func (r *DomainBulkGetResponseEnvelopeResultInfo) UnmarshalJSON(data []byte) (err error)

type DomainBulkGetResponseEnvelopeSuccess

type DomainBulkGetResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	DomainBulkGetResponseEnvelopeSuccessTrue DomainBulkGetResponseEnvelopeSuccess = true
)

func (DomainBulkGetResponseEnvelopeSuccess) IsKnown

type DomainBulkGetResponseInheritedContentCategory

type DomainBulkGetResponseInheritedContentCategory struct {
	ID              int64                                             `json:"id"`
	Name            string                                            `json:"name"`
	SuperCategoryID int64                                             `json:"super_category_id"`
	JSON            domainBulkGetResponseInheritedContentCategoryJSON `json:"-"`
}

func (*DomainBulkGetResponseInheritedContentCategory) UnmarshalJSON

func (r *DomainBulkGetResponseInheritedContentCategory) UnmarshalJSON(data []byte) (err error)

type DomainBulkGetResponseInheritedRiskType

type DomainBulkGetResponseInheritedRiskType struct {
	ID              int64                                      `json:"id"`
	Name            string                                     `json:"name"`
	SuperCategoryID int64                                      `json:"super_category_id"`
	JSON            domainBulkGetResponseInheritedRiskTypeJSON `json:"-"`
}

func (*DomainBulkGetResponseInheritedRiskType) UnmarshalJSON

func (r *DomainBulkGetResponseInheritedRiskType) UnmarshalJSON(data []byte) (err error)

type DomainBulkService

type DomainBulkService struct {
	Options []option.RequestOption
}

DomainBulkService 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 NewDomainBulkService method instead.

func NewDomainBulkService

func NewDomainBulkService(opts ...option.RequestOption) (r *DomainBulkService)

NewDomainBulkService 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 (*DomainBulkService) Get

Get Multiple Domain Details

type DomainGetParams

type DomainGetParams struct {
	// Identifier
	AccountID param.Field[string] `path:"account_id,required"`
	Domain    param.Field[string] `query:"domain"`
}

func (DomainGetParams) URLQuery

func (r DomainGetParams) URLQuery() (v url.Values)

URLQuery serializes DomainGetParams's query parameters as `url.Values`.

type DomainGetResponseEnvelope

type DomainGetResponseEnvelope struct {
	Errors   []shared.ResponseInfo `json:"errors,required"`
	Messages []shared.ResponseInfo `json:"messages,required"`
	Result   Domain                `json:"result,required"`
	// Whether the API call was successful
	Success DomainGetResponseEnvelopeSuccess `json:"success,required"`
	JSON    domainGetResponseEnvelopeJSON    `json:"-"`
}

func (*DomainGetResponseEnvelope) UnmarshalJSON

func (r *DomainGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)

type DomainGetResponseEnvelopeSuccess

type DomainGetResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	DomainGetResponseEnvelopeSuccessTrue DomainGetResponseEnvelopeSuccess = true
)

func (DomainGetResponseEnvelopeSuccess) IsKnown

type DomainHistory

type DomainHistory struct {
	Categorizations []DomainHistoryCategorization `json:"categorizations"`
	Domain          string                        `json:"domain"`
	JSON            domainHistoryJSON             `json:"-"`
}

func (*DomainHistory) UnmarshalJSON

func (r *DomainHistory) UnmarshalJSON(data []byte) (err error)

type DomainHistoryCategorization

type DomainHistoryCategorization struct {
	Categories []interface{}                   `json:"categories"`
	End        time.Time                       `json:"end" format:"date"`
	Start      time.Time                       `json:"start" format:"date"`
	JSON       domainHistoryCategorizationJSON `json:"-"`
}

func (*DomainHistoryCategorization) UnmarshalJSON

func (r *DomainHistoryCategorization) UnmarshalJSON(data []byte) (err error)

type DomainHistoryGetParams

type DomainHistoryGetParams struct {
	// Identifier
	AccountID param.Field[string] `path:"account_id,required"`
	Domain    param.Field[string] `query:"domain"`
}

func (DomainHistoryGetParams) URLQuery

func (r DomainHistoryGetParams) URLQuery() (v url.Values)

URLQuery serializes DomainHistoryGetParams's query parameters as `url.Values`.

type DomainHistoryGetResponseEnvelope

type DomainHistoryGetResponseEnvelope struct {
	Errors   []shared.ResponseInfo `json:"errors,required"`
	Messages []shared.ResponseInfo `json:"messages,required"`
	Result   []DomainHistory       `json:"result,required,nullable"`
	// Whether the API call was successful
	Success    DomainHistoryGetResponseEnvelopeSuccess    `json:"success,required"`
	ResultInfo DomainHistoryGetResponseEnvelopeResultInfo `json:"result_info"`
	JSON       domainHistoryGetResponseEnvelopeJSON       `json:"-"`
}

func (*DomainHistoryGetResponseEnvelope) UnmarshalJSON

func (r *DomainHistoryGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)

type DomainHistoryGetResponseEnvelopeResultInfo

type DomainHistoryGetResponseEnvelopeResultInfo 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       domainHistoryGetResponseEnvelopeResultInfoJSON `json:"-"`
}

func (*DomainHistoryGetResponseEnvelopeResultInfo) UnmarshalJSON

func (r *DomainHistoryGetResponseEnvelopeResultInfo) UnmarshalJSON(data []byte) (err error)

type DomainHistoryGetResponseEnvelopeSuccess

type DomainHistoryGetResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	DomainHistoryGetResponseEnvelopeSuccessTrue DomainHistoryGetResponseEnvelopeSuccess = true
)

func (DomainHistoryGetResponseEnvelopeSuccess) IsKnown

type DomainHistoryService

type DomainHistoryService struct {
	Options []option.RequestOption
}

DomainHistoryService 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 NewDomainHistoryService method instead.

func NewDomainHistoryService

func NewDomainHistoryService(opts ...option.RequestOption) (r *DomainHistoryService)

NewDomainHistoryService 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 (*DomainHistoryService) Get

Get Domain History

type DomainInheritedContentCategory

type DomainInheritedContentCategory struct {
	ID              int64                              `json:"id"`
	Name            string                             `json:"name"`
	SuperCategoryID int64                              `json:"super_category_id"`
	JSON            domainInheritedContentCategoryJSON `json:"-"`
}

func (*DomainInheritedContentCategory) UnmarshalJSON

func (r *DomainInheritedContentCategory) UnmarshalJSON(data []byte) (err error)

type DomainInheritedRiskType

type DomainInheritedRiskType struct {
	ID              int64                       `json:"id"`
	Name            string                      `json:"name"`
	SuperCategoryID int64                       `json:"super_category_id"`
	JSON            domainInheritedRiskTypeJSON `json:"-"`
}

func (*DomainInheritedRiskType) UnmarshalJSON

func (r *DomainInheritedRiskType) UnmarshalJSON(data []byte) (err error)

type DomainResolvesToRef

type DomainResolvesToRef struct {
	// STIX 2.1 identifier:
	// https://docs.oasis-open.org/cti/stix/v2.1/cs02/stix-v2.1-cs02.html#_64yvzeku5a5c
	ID string `json:"id"`
	// IP address or domain name.
	Value string                  `json:"value"`
	JSON  domainResolvesToRefJSON `json:"-"`
}

func (*DomainResolvesToRef) UnmarshalJSON

func (r *DomainResolvesToRef) UnmarshalJSON(data []byte) (err error)

type DomainService

type DomainService struct {
	Options []option.RequestOption
	Bulks   *DomainBulkService
}

DomainService 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 NewDomainService method instead.

func NewDomainService

func NewDomainService(opts ...option.RequestOption) (r *DomainService)

NewDomainService 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 (*DomainService) Get

func (r *DomainService) Get(ctx context.Context, params DomainGetParams, opts ...option.RequestOption) (res *Domain, err error)

Get Domain Details

type Error

type Error = apierror.Error

type ErrorData

type ErrorData = shared.ErrorData

This is an alias to an internal type.

type IP

type IP struct {
	// Specifies a reference to the autonomous systems (AS) that the IP address belongs
	// to.
	BelongsToRef IPBelongsToRef `json:"belongs_to_ref"`
	IP           IPIPUnion      `json:"ip" format:"ipv4"`
	RiskTypes    []interface{}  `json:"risk_types"`
	JSON         ipJSON         `json:"-"`
}

func (*IP) UnmarshalJSON

func (r *IP) UnmarshalJSON(data []byte) (err error)

type IPBelongsToRef

type IPBelongsToRef struct {
	ID          string `json:"id"`
	Country     string `json:"country"`
	Description string `json:"description"`
	// Infrastructure type of this ASN.
	Type  IPBelongsToRefType `json:"type"`
	Value string             `json:"value"`
	JSON  ipBelongsToRefJSON `json:"-"`
}

Specifies a reference to the autonomous systems (AS) that the IP address belongs to.

func (*IPBelongsToRef) UnmarshalJSON

func (r *IPBelongsToRef) UnmarshalJSON(data []byte) (err error)

type IPBelongsToRefType

type IPBelongsToRefType string

Infrastructure type of this ASN.

const (
	IPBelongsToRefTypeHostingProvider IPBelongsToRefType = "hosting_provider"
	IPBelongsToRefTypeISP             IPBelongsToRefType = "isp"
	IPBelongsToRefTypeOrganization    IPBelongsToRefType = "organization"
)

func (IPBelongsToRefType) IsKnown

func (r IPBelongsToRefType) IsKnown() bool

type IPGetParams

type IPGetParams struct {
	// Identifier
	AccountID param.Field[string] `path:"account_id,required"`
	IPV4      param.Field[string] `query:"ipv4"`
	IPV6      param.Field[string] `query:"ipv6"`
}

func (IPGetParams) URLQuery

func (r IPGetParams) URLQuery() (v url.Values)

URLQuery serializes IPGetParams's query parameters as `url.Values`.

type IPGetResponseEnvelope

type IPGetResponseEnvelope struct {
	Errors   []shared.ResponseInfo `json:"errors,required"`
	Messages []shared.ResponseInfo `json:"messages,required"`
	Result   []IP                  `json:"result,required,nullable"`
	// Whether the API call was successful
	Success    IPGetResponseEnvelopeSuccess    `json:"success,required"`
	ResultInfo IPGetResponseEnvelopeResultInfo `json:"result_info"`
	JSON       ipGetResponseEnvelopeJSON       `json:"-"`
}

func (*IPGetResponseEnvelope) UnmarshalJSON

func (r *IPGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)

type IPGetResponseEnvelopeResultInfo

type IPGetResponseEnvelopeResultInfo 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       ipGetResponseEnvelopeResultInfoJSON `json:"-"`
}

func (*IPGetResponseEnvelopeResultInfo) UnmarshalJSON

func (r *IPGetResponseEnvelopeResultInfo) UnmarshalJSON(data []byte) (err error)

type IPGetResponseEnvelopeSuccess

type IPGetResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	IPGetResponseEnvelopeSuccessTrue IPGetResponseEnvelopeSuccess = true
)

func (IPGetResponseEnvelopeSuccess) IsKnown

func (r IPGetResponseEnvelopeSuccess) IsKnown() bool

type IPIPUnion

type IPIPUnion interface {
	ImplementsIntelIpipUnion()
}

Union satisfied by shared.UnionString or shared.UnionString.

type IPList

type IPList struct {
	ID          int64      `json:"id"`
	Description string     `json:"description"`
	Name        string     `json:"name"`
	JSON        ipListJSON `json:"-"`
}

func (*IPList) UnmarshalJSON

func (r *IPList) UnmarshalJSON(data []byte) (err error)

type IPListGetParams

type IPListGetParams struct {
	// Identifier
	AccountID param.Field[string] `path:"account_id,required"`
}

type IPListGetResponseEnvelope

type IPListGetResponseEnvelope struct {
	Errors   []shared.ResponseInfo `json:"errors,required"`
	Messages []shared.ResponseInfo `json:"messages,required"`
	Result   []IPList              `json:"result,required,nullable"`
	// Whether the API call was successful
	Success    IPListGetResponseEnvelopeSuccess    `json:"success,required"`
	ResultInfo IPListGetResponseEnvelopeResultInfo `json:"result_info"`
	JSON       ipListGetResponseEnvelopeJSON       `json:"-"`
}

func (*IPListGetResponseEnvelope) UnmarshalJSON

func (r *IPListGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)

type IPListGetResponseEnvelopeResultInfo

type IPListGetResponseEnvelopeResultInfo 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       ipListGetResponseEnvelopeResultInfoJSON `json:"-"`
}

func (*IPListGetResponseEnvelopeResultInfo) UnmarshalJSON

func (r *IPListGetResponseEnvelopeResultInfo) UnmarshalJSON(data []byte) (err error)

type IPListGetResponseEnvelopeSuccess

type IPListGetResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	IPListGetResponseEnvelopeSuccessTrue IPListGetResponseEnvelopeSuccess = true
)

func (IPListGetResponseEnvelopeSuccess) IsKnown

type IPListService

type IPListService struct {
	Options []option.RequestOption
}

IPListService 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 NewIPListService method instead.

func NewIPListService

func NewIPListService(opts ...option.RequestOption) (r *IPListService)

NewIPListService 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 (*IPListService) Get

func (r *IPListService) Get(ctx context.Context, query IPListGetParams, opts ...option.RequestOption) (res *[]IPList, err error)

Get IP Lists

type IPService

type IPService struct {
	Options []option.RequestOption
}

IPService 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 NewIPService method instead.

func NewIPService

func NewIPService(opts ...option.RequestOption) (r *IPService)

NewIPService 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 (*IPService) Get

func (r *IPService) Get(ctx context.Context, params IPGetParams, opts ...option.RequestOption) (res *[]IP, err error)

Get IP Overview

type IndicatorFeedDataParams

type IndicatorFeedDataParams struct {
	// Identifier
	AccountID param.Field[string] `path:"account_id,required"`
}

type IndicatorFeedGetParams

type IndicatorFeedGetParams struct {
	// Identifier
	AccountID param.Field[string] `path:"account_id,required"`
}

type IndicatorFeedGetResponse

type IndicatorFeedGetResponse struct {
	// The unique identifier for the indicator feed
	ID int64 `json:"id"`
	// The date and time when the data entry was created
	CreatedOn time.Time `json:"created_on" format:"date-time"`
	// The description of the example test
	Description string `json:"description"`
	// Status of the latest snapshot uploaded
	LatestUploadStatus IndicatorFeedGetResponseLatestUploadStatus `json:"latest_upload_status"`
	// The date and time when the data entry was last modified
	ModifiedOn time.Time `json:"modified_on" format:"date-time"`
	// The name of the indicator feed
	Name string                       `json:"name"`
	JSON indicatorFeedGetResponseJSON `json:"-"`
}

func (*IndicatorFeedGetResponse) UnmarshalJSON

func (r *IndicatorFeedGetResponse) UnmarshalJSON(data []byte) (err error)

type IndicatorFeedGetResponseEnvelope

type IndicatorFeedGetResponseEnvelope struct {
	Errors   []shared.ResponseInfo    `json:"errors,required"`
	Messages []shared.ResponseInfo    `json:"messages,required"`
	Result   IndicatorFeedGetResponse `json:"result,required"`
	// Whether the API call was successful
	Success IndicatorFeedGetResponseEnvelopeSuccess `json:"success,required"`
	JSON    indicatorFeedGetResponseEnvelopeJSON    `json:"-"`
}

func (*IndicatorFeedGetResponseEnvelope) UnmarshalJSON

func (r *IndicatorFeedGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)

type IndicatorFeedGetResponseEnvelopeSuccess

type IndicatorFeedGetResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	IndicatorFeedGetResponseEnvelopeSuccessTrue IndicatorFeedGetResponseEnvelopeSuccess = true
)

func (IndicatorFeedGetResponseEnvelopeSuccess) IsKnown

type IndicatorFeedGetResponseLatestUploadStatus

type IndicatorFeedGetResponseLatestUploadStatus string

Status of the latest snapshot uploaded

const (
	IndicatorFeedGetResponseLatestUploadStatusMirroring    IndicatorFeedGetResponseLatestUploadStatus = "Mirroring"
	IndicatorFeedGetResponseLatestUploadStatusUnifying     IndicatorFeedGetResponseLatestUploadStatus = "Unifying"
	IndicatorFeedGetResponseLatestUploadStatusLoading      IndicatorFeedGetResponseLatestUploadStatus = "Loading"
	IndicatorFeedGetResponseLatestUploadStatusProvisioning IndicatorFeedGetResponseLatestUploadStatus = "Provisioning"
	IndicatorFeedGetResponseLatestUploadStatusComplete     IndicatorFeedGetResponseLatestUploadStatus = "Complete"
	IndicatorFeedGetResponseLatestUploadStatusError        IndicatorFeedGetResponseLatestUploadStatus = "Error"
)

func (IndicatorFeedGetResponseLatestUploadStatus) IsKnown

type IndicatorFeedListParams

type IndicatorFeedListParams struct {
	// Identifier
	AccountID param.Field[string] `path:"account_id,required"`
}

type IndicatorFeedListResponse

type IndicatorFeedListResponse struct {
	// The unique identifier for the indicator feed
	ID int64 `json:"id"`
	// The date and time when the data entry was created
	CreatedOn time.Time `json:"created_on" format:"date-time"`
	// The description of the example test
	Description string `json:"description"`
	// The date and time when the data entry was last modified
	ModifiedOn time.Time `json:"modified_on" format:"date-time"`
	// The name of the indicator feed
	Name string                        `json:"name"`
	JSON indicatorFeedListResponseJSON `json:"-"`
}

func (*IndicatorFeedListResponse) UnmarshalJSON

func (r *IndicatorFeedListResponse) UnmarshalJSON(data []byte) (err error)

type IndicatorFeedNewParams

type IndicatorFeedNewParams struct {
	// Identifier
	AccountID param.Field[string] `path:"account_id,required"`
	// The description of the example test
	Description param.Field[string] `json:"description"`
	// The name of the indicator feed
	Name param.Field[string] `json:"name"`
}

func (IndicatorFeedNewParams) MarshalJSON

func (r IndicatorFeedNewParams) MarshalJSON() (data []byte, err error)

type IndicatorFeedNewResponse

type IndicatorFeedNewResponse struct {
	// The unique identifier for the indicator feed
	ID int64 `json:"id"`
	// The date and time when the data entry was created
	CreatedOn time.Time `json:"created_on" format:"date-time"`
	// The description of the example test
	Description string `json:"description"`
	// The date and time when the data entry was last modified
	ModifiedOn time.Time `json:"modified_on" format:"date-time"`
	// The name of the indicator feed
	Name string                       `json:"name"`
	JSON indicatorFeedNewResponseJSON `json:"-"`
}

func (*IndicatorFeedNewResponse) UnmarshalJSON

func (r *IndicatorFeedNewResponse) UnmarshalJSON(data []byte) (err error)

type IndicatorFeedNewResponseEnvelope

type IndicatorFeedNewResponseEnvelope struct {
	Errors   []shared.ResponseInfo    `json:"errors,required"`
	Messages []shared.ResponseInfo    `json:"messages,required"`
	Result   IndicatorFeedNewResponse `json:"result,required"`
	// Whether the API call was successful
	Success IndicatorFeedNewResponseEnvelopeSuccess `json:"success,required"`
	JSON    indicatorFeedNewResponseEnvelopeJSON    `json:"-"`
}

func (*IndicatorFeedNewResponseEnvelope) UnmarshalJSON

func (r *IndicatorFeedNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)

type IndicatorFeedNewResponseEnvelopeSuccess

type IndicatorFeedNewResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	IndicatorFeedNewResponseEnvelopeSuccessTrue IndicatorFeedNewResponseEnvelopeSuccess = true
)

func (IndicatorFeedNewResponseEnvelopeSuccess) IsKnown

type IndicatorFeedPermissionDeleteParams

type IndicatorFeedPermissionDeleteParams struct {
	// Identifier
	AccountID param.Field[string] `path:"account_id,required"`
	// The Cloudflare account tag of the account to change permissions on
	AccountTag param.Field[string] `json:"account_tag"`
	// The ID of the feed to add/remove permissions on
	FeedID param.Field[int64] `json:"feed_id"`
}

func (IndicatorFeedPermissionDeleteParams) MarshalJSON

func (r IndicatorFeedPermissionDeleteParams) MarshalJSON() (data []byte, err error)

type IndicatorFeedPermissionDeleteResponse

type IndicatorFeedPermissionDeleteResponse struct {
	// Whether the update succeeded or not
	Success bool                                      `json:"success"`
	JSON    indicatorFeedPermissionDeleteResponseJSON `json:"-"`
}

func (*IndicatorFeedPermissionDeleteResponse) UnmarshalJSON

func (r *IndicatorFeedPermissionDeleteResponse) UnmarshalJSON(data []byte) (err error)

type IndicatorFeedPermissionDeleteResponseEnvelope

type IndicatorFeedPermissionDeleteResponseEnvelope struct {
	Errors   []shared.ResponseInfo                 `json:"errors,required"`
	Messages []shared.ResponseInfo                 `json:"messages,required"`
	Result   IndicatorFeedPermissionDeleteResponse `json:"result,required"`
	// Whether the API call was successful
	Success IndicatorFeedPermissionDeleteResponseEnvelopeSuccess `json:"success,required"`
	JSON    indicatorFeedPermissionDeleteResponseEnvelopeJSON    `json:"-"`
}

func (*IndicatorFeedPermissionDeleteResponseEnvelope) UnmarshalJSON

func (r *IndicatorFeedPermissionDeleteResponseEnvelope) UnmarshalJSON(data []byte) (err error)

type IndicatorFeedPermissionDeleteResponseEnvelopeSuccess

type IndicatorFeedPermissionDeleteResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	IndicatorFeedPermissionDeleteResponseEnvelopeSuccessTrue IndicatorFeedPermissionDeleteResponseEnvelopeSuccess = true
)

func (IndicatorFeedPermissionDeleteResponseEnvelopeSuccess) IsKnown

type IndicatorFeedPermissionListParams

type IndicatorFeedPermissionListParams struct {
	// Identifier
	AccountID param.Field[string] `path:"account_id,required"`
}

type IndicatorFeedPermissionListResponse

type IndicatorFeedPermissionListResponse struct {
	// The unique identifier for the indicator feed
	ID int64 `json:"id"`
	// The description of the example test
	Description string `json:"description"`
	// The name of the indicator feed
	Name string                                  `json:"name"`
	JSON indicatorFeedPermissionListResponseJSON `json:"-"`
}

func (*IndicatorFeedPermissionListResponse) UnmarshalJSON

func (r *IndicatorFeedPermissionListResponse) UnmarshalJSON(data []byte) (err error)

type IndicatorFeedPermissionListResponseEnvelope

type IndicatorFeedPermissionListResponseEnvelope struct {
	Errors   []shared.ResponseInfo                 `json:"errors,required"`
	Messages []shared.ResponseInfo                 `json:"messages,required"`
	Result   []IndicatorFeedPermissionListResponse `json:"result,required"`
	// Whether the API call was successful
	Success IndicatorFeedPermissionListResponseEnvelopeSuccess `json:"success,required"`
	JSON    indicatorFeedPermissionListResponseEnvelopeJSON    `json:"-"`
}

func (*IndicatorFeedPermissionListResponseEnvelope) UnmarshalJSON

func (r *IndicatorFeedPermissionListResponseEnvelope) UnmarshalJSON(data []byte) (err error)

type IndicatorFeedPermissionListResponseEnvelopeSuccess

type IndicatorFeedPermissionListResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	IndicatorFeedPermissionListResponseEnvelopeSuccessTrue IndicatorFeedPermissionListResponseEnvelopeSuccess = true
)

func (IndicatorFeedPermissionListResponseEnvelopeSuccess) IsKnown

type IndicatorFeedPermissionNewParams

type IndicatorFeedPermissionNewParams struct {
	// Identifier
	AccountID param.Field[string] `path:"account_id,required"`
	// The Cloudflare account tag of the account to change permissions on
	AccountTag param.Field[string] `json:"account_tag"`
	// The ID of the feed to add/remove permissions on
	FeedID param.Field[int64] `json:"feed_id"`
}

func (IndicatorFeedPermissionNewParams) MarshalJSON

func (r IndicatorFeedPermissionNewParams) MarshalJSON() (data []byte, err error)

type IndicatorFeedPermissionNewResponse

type IndicatorFeedPermissionNewResponse struct {
	// Whether the update succeeded or not
	Success bool                                   `json:"success"`
	JSON    indicatorFeedPermissionNewResponseJSON `json:"-"`
}

func (*IndicatorFeedPermissionNewResponse) UnmarshalJSON

func (r *IndicatorFeedPermissionNewResponse) UnmarshalJSON(data []byte) (err error)

type IndicatorFeedPermissionNewResponseEnvelope

type IndicatorFeedPermissionNewResponseEnvelope struct {
	Errors   []shared.ResponseInfo              `json:"errors,required"`
	Messages []shared.ResponseInfo              `json:"messages,required"`
	Result   IndicatorFeedPermissionNewResponse `json:"result,required"`
	// Whether the API call was successful
	Success IndicatorFeedPermissionNewResponseEnvelopeSuccess `json:"success,required"`
	JSON    indicatorFeedPermissionNewResponseEnvelopeJSON    `json:"-"`
}

func (*IndicatorFeedPermissionNewResponseEnvelope) UnmarshalJSON

func (r *IndicatorFeedPermissionNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)

type IndicatorFeedPermissionNewResponseEnvelopeSuccess

type IndicatorFeedPermissionNewResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	IndicatorFeedPermissionNewResponseEnvelopeSuccessTrue IndicatorFeedPermissionNewResponseEnvelopeSuccess = true
)

func (IndicatorFeedPermissionNewResponseEnvelopeSuccess) IsKnown

type IndicatorFeedPermissionService

type IndicatorFeedPermissionService struct {
	Options []option.RequestOption
}

IndicatorFeedPermissionService 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 NewIndicatorFeedPermissionService method instead.

func NewIndicatorFeedPermissionService

func NewIndicatorFeedPermissionService(opts ...option.RequestOption) (r *IndicatorFeedPermissionService)

NewIndicatorFeedPermissionService 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 (*IndicatorFeedPermissionService) Delete

Revoke permission to indicator feed

func (*IndicatorFeedPermissionService) List

List indicator feed permissions

func (*IndicatorFeedPermissionService) New

Grant permission to indicator feed

type IndicatorFeedService

type IndicatorFeedService struct {
	Options     []option.RequestOption
	Permissions *IndicatorFeedPermissionService
}

IndicatorFeedService 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 NewIndicatorFeedService method instead.

func NewIndicatorFeedService

func NewIndicatorFeedService(opts ...option.RequestOption) (r *IndicatorFeedService)

NewIndicatorFeedService 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 (*IndicatorFeedService) Data

func (r *IndicatorFeedService) Data(ctx context.Context, feedID int64, query IndicatorFeedDataParams, opts ...option.RequestOption) (res *string, err error)

Get indicator feed data

func (*IndicatorFeedService) Get

Get indicator feed metadata

func (*IndicatorFeedService) List

Get indicator feeds owned by this account

func (*IndicatorFeedService) ListAutoPaging

Get indicator feeds owned by this account

func (*IndicatorFeedService) New

Create new indicator feed

func (*IndicatorFeedService) Update

Update indicator feed data

type IndicatorFeedUpdateParams

type IndicatorFeedUpdateParams struct {
	// Identifier
	AccountID param.Field[string] `path:"account_id,required"`
	// The file to upload
	Source param.Field[string] `json:"source"`
}

func (IndicatorFeedUpdateParams) MarshalJSON

func (r IndicatorFeedUpdateParams) MarshalJSON() (data []byte, err error)

type IndicatorFeedUpdateResponse

type IndicatorFeedUpdateResponse struct {
	// Feed id
	FileID int64 `json:"file_id"`
	// Name of the file unified in our system
	Filename string `json:"filename"`
	// Current status of upload, should be unified
	Status string                          `json:"status"`
	JSON   indicatorFeedUpdateResponseJSON `json:"-"`
}

func (*IndicatorFeedUpdateResponse) UnmarshalJSON

func (r *IndicatorFeedUpdateResponse) UnmarshalJSON(data []byte) (err error)

type IndicatorFeedUpdateResponseEnvelope

type IndicatorFeedUpdateResponseEnvelope struct {
	Errors   []shared.ResponseInfo       `json:"errors,required"`
	Messages []shared.ResponseInfo       `json:"messages,required"`
	Result   IndicatorFeedUpdateResponse `json:"result,required"`
	// Whether the API call was successful
	Success IndicatorFeedUpdateResponseEnvelopeSuccess `json:"success,required"`
	JSON    indicatorFeedUpdateResponseEnvelopeJSON    `json:"-"`
}

func (*IndicatorFeedUpdateResponseEnvelope) UnmarshalJSON

func (r *IndicatorFeedUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error)

type IndicatorFeedUpdateResponseEnvelopeSuccess

type IndicatorFeedUpdateResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	IndicatorFeedUpdateResponseEnvelopeSuccessTrue IndicatorFeedUpdateResponseEnvelopeSuccess = true
)

func (IndicatorFeedUpdateResponseEnvelopeSuccess) IsKnown

type IntelService

type IntelService struct {
	Options             []option.RequestOption
	ASN                 *ASNService
	DNS                 *DNSService
	Domains             *DomainService
	DomainHistory       *DomainHistoryService
	IPs                 *IPService
	IPLists             *IPListService
	Miscategorizations  *MiscategorizationService
	Whois               *WhoisService
	IndicatorFeeds      *IndicatorFeedService
	Sinkholes           *SinkholeService
	AttackSurfaceReport *AttackSurfaceReportService
}

IntelService 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 NewIntelService method instead.

func NewIntelService

func NewIntelService(opts ...option.RequestOption) (r *IntelService)

NewIntelService 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 IssueClassParam

type IssueClassParam []string

type IssueType

type IssueType string
const (
	IssueTypeComplianceViolation   IssueType = "compliance_violation"
	IssueTypeEmailSecurity         IssueType = "email_security"
	IssueTypeExposedInfrastructure IssueType = "exposed_infrastructure"
	IssueTypeInsecureConfiguration IssueType = "insecure_configuration"
	IssueTypeWeakAuthentication    IssueType = "weak_authentication"
)

func (IssueType) IsKnown

func (r IssueType) IsKnown() bool

type Member added in v2.1.0

type Member = shared.Member

This is an alias to an internal type.

type MemberParam added in v2.1.0

type MemberParam = shared.MemberParam

This is an alias to an internal type.

type MemberRole added in v2.1.0

type MemberRole = shared.MemberRole

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 MemberRolesPermissions added in v2.1.0

type MemberRolesPermissions = shared.MemberRolesPermissions

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 MemberUser added in v2.1.0

type MemberUser = shared.MemberUser

This is an alias to an internal type.

type MemberUserParam added in v2.1.0

type MemberUserParam = shared.MemberUserParam

This is an alias to an internal type.

type MiscategorizationNewParams

type MiscategorizationNewParams struct {
	// Identifier
	AccountID param.Field[string] `path:"account_id,required"`
	// Content category IDs to add.
	ContentAdds param.Field[[]float64] `json:"content_adds"`
	// Content category IDs to remove.
	ContentRemoves param.Field[[]float64]                               `json:"content_removes"`
	IndicatorType  param.Field[MiscategorizationNewParamsIndicatorType] `json:"indicator_type"`
	// Provide only if indicator_type is `ipv4` or `ipv6`.
	IP param.Field[interface{}] `json:"ip"`
	// Security category IDs to add.
	SecurityAdds param.Field[[]float64] `json:"security_adds"`
	// Security category IDs to remove.
	SecurityRemoves param.Field[[]float64] `json:"security_removes"`
	// Provide only if indicator_type is `domain` or `url`. Example if indicator_type
	// is `domain`: `example.com`. Example if indicator_type is `url`:
	// `https://example.com/news/`.
	URL param.Field[string] `json:"url"`
}

func (MiscategorizationNewParams) MarshalJSON

func (r MiscategorizationNewParams) MarshalJSON() (data []byte, err error)

type MiscategorizationNewParamsIndicatorType

type MiscategorizationNewParamsIndicatorType string
const (
	MiscategorizationNewParamsIndicatorTypeDomain MiscategorizationNewParamsIndicatorType = "domain"
	MiscategorizationNewParamsIndicatorTypeIPV4   MiscategorizationNewParamsIndicatorType = "ipv4"
	MiscategorizationNewParamsIndicatorTypeIPV6   MiscategorizationNewParamsIndicatorType = "ipv6"
	MiscategorizationNewParamsIndicatorTypeURL    MiscategorizationNewParamsIndicatorType = "url"
)

func (MiscategorizationNewParamsIndicatorType) IsKnown

type MiscategorizationNewResponseEnvelope

type MiscategorizationNewResponseEnvelope struct {
	Errors   []shared.ResponseInfo             `json:"errors,required"`
	Messages []shared.ResponseInfo             `json:"messages,required"`
	Result   MiscategorizationNewResponseUnion `json:"result,required"`
	// Whether the API call was successful
	Success MiscategorizationNewResponseEnvelopeSuccess `json:"success,required"`
	JSON    miscategorizationNewResponseEnvelopeJSON    `json:"-"`
}

func (*MiscategorizationNewResponseEnvelope) UnmarshalJSON

func (r *MiscategorizationNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)

type MiscategorizationNewResponseEnvelopeSuccess

type MiscategorizationNewResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	MiscategorizationNewResponseEnvelopeSuccessTrue MiscategorizationNewResponseEnvelopeSuccess = true
)

func (MiscategorizationNewResponseEnvelopeSuccess) IsKnown

type MiscategorizationNewResponseUnion

type MiscategorizationNewResponseUnion interface {
	ImplementsIntelMiscategorizationNewResponseUnion()
}

Union satisfied by intel.MiscategorizationNewResponseUnknown or shared.UnionString.

type MiscategorizationService

type MiscategorizationService struct {
	Options []option.RequestOption
}

MiscategorizationService 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 NewMiscategorizationService method instead.

func NewMiscategorizationService

func NewMiscategorizationService(opts ...option.RequestOption) (r *MiscategorizationService)

NewMiscategorizationService 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 (*MiscategorizationService) New

Create Miscategorization

type Permission

type Permission = shared.Permission

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 ProductParam

type ProductParam []string

type ResponseInfo

type ResponseInfo = shared.ResponseInfo

This is an alias to an internal type.

type Role

type Role = shared.Role

This is an alias to an internal type.

type SeverityQueryParam

type SeverityQueryParam string
const (
	SeverityQueryParamLow      SeverityQueryParam = "low"
	SeverityQueryParamModerate SeverityQueryParam = "moderate"
	SeverityQueryParamCritical SeverityQueryParam = "critical"
)

func (SeverityQueryParam) IsKnown

func (r SeverityQueryParam) IsKnown() bool

type Sinkhole

type Sinkhole struct {
	// The unique identifier for the sinkhole
	ID int64 `json:"id"`
	// The account tag that owns this sinkhole
	AccountTag string `json:"account_tag"`
	// The date and time when the sinkhole was created
	CreatedOn time.Time `json:"created_on" format:"date-time"`
	// The date and time when the sinkhole was last modified
	ModifiedOn time.Time `json:"modified_on" format:"date-time"`
	// The name of the sinkhole
	Name string `json:"name"`
	// The name of the R2 bucket to store results
	R2Bucket string `json:"r2_bucket"`
	// The id of the R2 instance
	R2ID string       `json:"r2_id"`
	JSON sinkholeJSON `json:"-"`
}

func (*Sinkhole) UnmarshalJSON

func (r *Sinkhole) UnmarshalJSON(data []byte) (err error)

type SinkholeListParams

type SinkholeListParams struct {
	// Identifier
	AccountID param.Field[string] `path:"account_id,required"`
}

type SinkholeService

type SinkholeService struct {
	Options []option.RequestOption
}

SinkholeService 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 NewSinkholeService method instead.

func NewSinkholeService

func NewSinkholeService(opts ...option.RequestOption) (r *SinkholeService)

NewSinkholeService 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 (*SinkholeService) List

List sinkholes owned by this account

func (*SinkholeService) ListAutoPaging

List sinkholes owned by this account

type SubjectParam

type SubjectParam []string

type Whois

type Whois struct {
	CreatedDate       time.Time `json:"created_date" format:"date"`
	Domain            string    `json:"domain"`
	Nameservers       []string  `json:"nameservers"`
	Registrant        string    `json:"registrant"`
	RegistrantCountry string    `json:"registrant_country"`
	RegistrantEmail   string    `json:"registrant_email"`
	RegistrantOrg     string    `json:"registrant_org"`
	Registrar         string    `json:"registrar"`
	UpdatedDate       time.Time `json:"updated_date" format:"date"`
	JSON              whoisJSON `json:"-"`
}

func (*Whois) UnmarshalJSON

func (r *Whois) UnmarshalJSON(data []byte) (err error)

type WhoisGetParams

type WhoisGetParams struct {
	// Identifier
	AccountID param.Field[string] `path:"account_id,required"`
	Domain    param.Field[string] `query:"domain"`
}

func (WhoisGetParams) URLQuery

func (r WhoisGetParams) URLQuery() (v url.Values)

URLQuery serializes WhoisGetParams's query parameters as `url.Values`.

type WhoisGetResponseEnvelope

type WhoisGetResponseEnvelope struct {
	Errors   []shared.ResponseInfo `json:"errors,required"`
	Messages []shared.ResponseInfo `json:"messages,required"`
	Result   Whois                 `json:"result,required"`
	// Whether the API call was successful
	Success WhoisGetResponseEnvelopeSuccess `json:"success,required"`
	JSON    whoisGetResponseEnvelopeJSON    `json:"-"`
}

func (*WhoisGetResponseEnvelope) UnmarshalJSON

func (r *WhoisGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)

type WhoisGetResponseEnvelopeSuccess

type WhoisGetResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	WhoisGetResponseEnvelopeSuccessTrue WhoisGetResponseEnvelopeSuccess = true
)

func (WhoisGetResponseEnvelopeSuccess) IsKnown

type WhoisService

type WhoisService struct {
	Options []option.RequestOption
}

WhoisService 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 NewWhoisService method instead.

func NewWhoisService

func NewWhoisService(opts ...option.RequestOption) (r *WhoisService)

NewWhoisService 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 (*WhoisService) Get

func (r *WhoisService) Get(ctx context.Context, params WhoisGetParams, opts ...option.RequestOption) (res *Whois, err error)

Get WHOIS Record

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL