intel

package
v2.0.0-beta.16 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ASNGetParams

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

type ASNGetResponseEnvelope

type ASNGetResponseEnvelope struct {
	Errors   []ASNGetResponseEnvelopeErrors   `json:"errors,required"`
	Messages []ASNGetResponseEnvelopeMessages `json:"messages,required"`
	Result   IntelASN                         `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 ASNGetResponseEnvelopeErrors

type ASNGetResponseEnvelopeErrors struct {
	Code    int64                            `json:"code,required"`
	Message string                           `json:"message,required"`
	JSON    asnGetResponseEnvelopeErrorsJSON `json:"-"`
}

func (*ASNGetResponseEnvelopeErrors) UnmarshalJSON

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

type ASNGetResponseEnvelopeMessages

type ASNGetResponseEnvelopeMessages struct {
	Code    int64                              `json:"code,required"`
	Message string                             `json:"message,required"`
	JSON    asnGetResponseEnvelopeMessagesJSON `json:"-"`
}

func (*ASNGetResponseEnvelopeMessages) UnmarshalJSON

func (r *ASNGetResponseEnvelopeMessages) 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 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 IntelASNParam, query ASNGetParams, opts ...option.RequestOption) (res *IntelASN, 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 IntelASN `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[[]string]                                          `query:"issue_class"`
	IssueClassNeq param.Field[[]string]                                          `query:"issue_class~neq"`
	IssueType     param.Field[[]AttackSurfaceReportIssueClassParamsIssueType]    `query:"issue_type"`
	IssueTypeNeq  param.Field[[]AttackSurfaceReportIssueClassParamsIssueTypeNeq] `query:"issue_type~neq"`
	Product       param.Field[[]string]                                          `query:"product"`
	ProductNeq    param.Field[[]string]                                          `query:"product~neq"`
	Severity      param.Field[[]AttackSurfaceReportIssueClassParamsSeverity]     `query:"severity"`
	SeverityNeq   param.Field[[]AttackSurfaceReportIssueClassParamsSeverityNeq]  `query:"severity~neq"`
	Subject       param.Field[[]string]                                          `query:"subject"`
	SubjectNeq    param.Field[[]string]                                          `query:"subject~neq"`
}

func (AttackSurfaceReportIssueClassParams) URLQuery

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

type AttackSurfaceReportIssueClassParamsIssueType

type AttackSurfaceReportIssueClassParamsIssueType string
const (
	AttackSurfaceReportIssueClassParamsIssueTypeComplianceViolation   AttackSurfaceReportIssueClassParamsIssueType = "compliance_violation"
	AttackSurfaceReportIssueClassParamsIssueTypeEmailSecurity         AttackSurfaceReportIssueClassParamsIssueType = "email_security"
	AttackSurfaceReportIssueClassParamsIssueTypeExposedInfrastructure AttackSurfaceReportIssueClassParamsIssueType = "exposed_infrastructure"
	AttackSurfaceReportIssueClassParamsIssueTypeInsecureConfiguration AttackSurfaceReportIssueClassParamsIssueType = "insecure_configuration"
	AttackSurfaceReportIssueClassParamsIssueTypeWeakAuthentication    AttackSurfaceReportIssueClassParamsIssueType = "weak_authentication"
)

func (AttackSurfaceReportIssueClassParamsIssueType) IsKnown

type AttackSurfaceReportIssueClassParamsIssueTypeNeq

type AttackSurfaceReportIssueClassParamsIssueTypeNeq string
const (
	AttackSurfaceReportIssueClassParamsIssueTypeNeqComplianceViolation   AttackSurfaceReportIssueClassParamsIssueTypeNeq = "compliance_violation"
	AttackSurfaceReportIssueClassParamsIssueTypeNeqEmailSecurity         AttackSurfaceReportIssueClassParamsIssueTypeNeq = "email_security"
	AttackSurfaceReportIssueClassParamsIssueTypeNeqExposedInfrastructure AttackSurfaceReportIssueClassParamsIssueTypeNeq = "exposed_infrastructure"
	AttackSurfaceReportIssueClassParamsIssueTypeNeqInsecureConfiguration AttackSurfaceReportIssueClassParamsIssueTypeNeq = "insecure_configuration"
	AttackSurfaceReportIssueClassParamsIssueTypeNeqWeakAuthentication    AttackSurfaceReportIssueClassParamsIssueTypeNeq = "weak_authentication"
)

func (AttackSurfaceReportIssueClassParamsIssueTypeNeq) IsKnown

type AttackSurfaceReportIssueClassParamsSeverity

type AttackSurfaceReportIssueClassParamsSeverity string
const (
	AttackSurfaceReportIssueClassParamsSeverityLow      AttackSurfaceReportIssueClassParamsSeverity = "low"
	AttackSurfaceReportIssueClassParamsSeverityModerate AttackSurfaceReportIssueClassParamsSeverity = "moderate"
	AttackSurfaceReportIssueClassParamsSeverityCritical AttackSurfaceReportIssueClassParamsSeverity = "critical"
)

func (AttackSurfaceReportIssueClassParamsSeverity) IsKnown

type AttackSurfaceReportIssueClassParamsSeverityNeq

type AttackSurfaceReportIssueClassParamsSeverityNeq string
const (
	AttackSurfaceReportIssueClassParamsSeverityNeqLow      AttackSurfaceReportIssueClassParamsSeverityNeq = "low"
	AttackSurfaceReportIssueClassParamsSeverityNeqModerate AttackSurfaceReportIssueClassParamsSeverityNeq = "moderate"
	AttackSurfaceReportIssueClassParamsSeverityNeqCritical AttackSurfaceReportIssueClassParamsSeverityNeq = "critical"
)

func (AttackSurfaceReportIssueClassParamsSeverityNeq) IsKnown

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   []AttackSurfaceReportIssueClassResponseEnvelopeErrors   `json:"errors,required"`
	Messages []AttackSurfaceReportIssueClassResponseEnvelopeMessages `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 AttackSurfaceReportIssueClassResponseEnvelopeErrors

type AttackSurfaceReportIssueClassResponseEnvelopeErrors struct {
	Code    int64                                                   `json:"code,required"`
	Message string                                                  `json:"message,required"`
	JSON    attackSurfaceReportIssueClassResponseEnvelopeErrorsJSON `json:"-"`
}

func (*AttackSurfaceReportIssueClassResponseEnvelopeErrors) UnmarshalJSON

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

type AttackSurfaceReportIssueClassResponseEnvelopeMessages

type AttackSurfaceReportIssueClassResponseEnvelopeMessages struct {
	Code    int64                                                     `json:"code,required"`
	Message string                                                    `json:"message,required"`
	JSON    attackSurfaceReportIssueClassResponseEnvelopeMessagesJSON `json:"-"`
}

func (*AttackSurfaceReportIssueClassResponseEnvelopeMessages) UnmarshalJSON

func (r *AttackSurfaceReportIssueClassResponseEnvelopeMessages) 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 AttackSurfaceReportIssueDismissResponse

type AttackSurfaceReportIssueDismissResponse interface {
	ImplementsIntelAttackSurfaceReportIssueDismissResponse()
}

Union satisfied by intel.AttackSurfaceReportIssueDismissResponseUnknown or shared.UnionString.

type AttackSurfaceReportIssueDismissResponseEnvelope

type AttackSurfaceReportIssueDismissResponseEnvelope struct {
	Errors   []AttackSurfaceReportIssueDismissResponseEnvelopeErrors   `json:"errors,required"`
	Messages []AttackSurfaceReportIssueDismissResponseEnvelopeMessages `json:"messages,required"`
	Result   AttackSurfaceReportIssueDismissResponse                   `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 AttackSurfaceReportIssueDismissResponseEnvelopeErrors

type AttackSurfaceReportIssueDismissResponseEnvelopeErrors struct {
	Code    int64                                                     `json:"code,required"`
	Message string                                                    `json:"message,required"`
	JSON    attackSurfaceReportIssueDismissResponseEnvelopeErrorsJSON `json:"-"`
}

func (*AttackSurfaceReportIssueDismissResponseEnvelopeErrors) UnmarshalJSON

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

type AttackSurfaceReportIssueDismissResponseEnvelopeMessages

type AttackSurfaceReportIssueDismissResponseEnvelopeMessages struct {
	Code    int64                                                       `json:"code,required"`
	Message string                                                      `json:"message,required"`
	JSON    attackSurfaceReportIssueDismissResponseEnvelopeMessagesJSON `json:"-"`
}

func (*AttackSurfaceReportIssueDismissResponseEnvelopeMessages) UnmarshalJSON

type AttackSurfaceReportIssueDismissResponseEnvelopeSuccess

type AttackSurfaceReportIssueDismissResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	AttackSurfaceReportIssueDismissResponseEnvelopeSuccessTrue AttackSurfaceReportIssueDismissResponseEnvelopeSuccess = true
)

func (AttackSurfaceReportIssueDismissResponseEnvelopeSuccess) IsKnown

type AttackSurfaceReportIssueListParams

type AttackSurfaceReportIssueListParams struct {
	// Identifier
	AccountID     param.Field[string]                                           `path:"account_id,required"`
	Dismissed     param.Field[bool]                                             `query:"dismissed"`
	IssueClass    param.Field[[]string]                                         `query:"issue_class"`
	IssueClassNeq param.Field[[]string]                                         `query:"issue_class~neq"`
	IssueType     param.Field[[]AttackSurfaceReportIssueListParamsIssueType]    `query:"issue_type"`
	IssueTypeNeq  param.Field[[]AttackSurfaceReportIssueListParamsIssueTypeNeq] `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[[]string]                                        `query:"product"`
	ProductNeq  param.Field[[]string]                                        `query:"product~neq"`
	Severity    param.Field[[]AttackSurfaceReportIssueListParamsSeverity]    `query:"severity"`
	SeverityNeq param.Field[[]AttackSurfaceReportIssueListParamsSeverityNeq] `query:"severity~neq"`
	Subject     param.Field[[]string]                                        `query:"subject"`
	SubjectNeq  param.Field[[]string]                                        `query:"subject~neq"`
}

func (AttackSurfaceReportIssueListParams) URLQuery

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

type AttackSurfaceReportIssueListParamsIssueType

type AttackSurfaceReportIssueListParamsIssueType string
const (
	AttackSurfaceReportIssueListParamsIssueTypeComplianceViolation   AttackSurfaceReportIssueListParamsIssueType = "compliance_violation"
	AttackSurfaceReportIssueListParamsIssueTypeEmailSecurity         AttackSurfaceReportIssueListParamsIssueType = "email_security"
	AttackSurfaceReportIssueListParamsIssueTypeExposedInfrastructure AttackSurfaceReportIssueListParamsIssueType = "exposed_infrastructure"
	AttackSurfaceReportIssueListParamsIssueTypeInsecureConfiguration AttackSurfaceReportIssueListParamsIssueType = "insecure_configuration"
	AttackSurfaceReportIssueListParamsIssueTypeWeakAuthentication    AttackSurfaceReportIssueListParamsIssueType = "weak_authentication"
)

func (AttackSurfaceReportIssueListParamsIssueType) IsKnown

type AttackSurfaceReportIssueListParamsIssueTypeNeq

type AttackSurfaceReportIssueListParamsIssueTypeNeq string
const (
	AttackSurfaceReportIssueListParamsIssueTypeNeqComplianceViolation   AttackSurfaceReportIssueListParamsIssueTypeNeq = "compliance_violation"
	AttackSurfaceReportIssueListParamsIssueTypeNeqEmailSecurity         AttackSurfaceReportIssueListParamsIssueTypeNeq = "email_security"
	AttackSurfaceReportIssueListParamsIssueTypeNeqExposedInfrastructure AttackSurfaceReportIssueListParamsIssueTypeNeq = "exposed_infrastructure"
	AttackSurfaceReportIssueListParamsIssueTypeNeqInsecureConfiguration AttackSurfaceReportIssueListParamsIssueTypeNeq = "insecure_configuration"
	AttackSurfaceReportIssueListParamsIssueTypeNeqWeakAuthentication    AttackSurfaceReportIssueListParamsIssueTypeNeq = "weak_authentication"
)

func (AttackSurfaceReportIssueListParamsIssueTypeNeq) IsKnown

type AttackSurfaceReportIssueListParamsSeverity

type AttackSurfaceReportIssueListParamsSeverity string
const (
	AttackSurfaceReportIssueListParamsSeverityLow      AttackSurfaceReportIssueListParamsSeverity = "low"
	AttackSurfaceReportIssueListParamsSeverityModerate AttackSurfaceReportIssueListParamsSeverity = "moderate"
	AttackSurfaceReportIssueListParamsSeverityCritical AttackSurfaceReportIssueListParamsSeverity = "critical"
)

func (AttackSurfaceReportIssueListParamsSeverity) IsKnown

type AttackSurfaceReportIssueListParamsSeverityNeq

type AttackSurfaceReportIssueListParamsSeverityNeq string
const (
	AttackSurfaceReportIssueListParamsSeverityNeqLow      AttackSurfaceReportIssueListParamsSeverityNeq = "low"
	AttackSurfaceReportIssueListParamsSeverityNeqModerate AttackSurfaceReportIssueListParamsSeverityNeq = "moderate"
	AttackSurfaceReportIssueListParamsSeverityNeqCritical AttackSurfaceReportIssueListParamsSeverityNeq = "critical"
)

func (AttackSurfaceReportIssueListParamsSeverityNeq) IsKnown

type AttackSurfaceReportIssueListResponse

type AttackSurfaceReportIssueListResponse struct {
	Errors   []AttackSurfaceReportIssueListResponseError   `json:"errors,required"`
	Messages []AttackSurfaceReportIssueListResponseMessage `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 AttackSurfaceReportIssueListResponseError

type AttackSurfaceReportIssueListResponseError struct {
	Code    int64                                         `json:"code,required"`
	Message string                                        `json:"message,required"`
	JSON    attackSurfaceReportIssueListResponseErrorJSON `json:"-"`
}

func (*AttackSurfaceReportIssueListResponseError) UnmarshalJSON

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

type AttackSurfaceReportIssueListResponseMessage

type AttackSurfaceReportIssueListResponseMessage struct {
	Code    int64                                           `json:"code,required"`
	Message string                                          `json:"message,required"`
	JSON    attackSurfaceReportIssueListResponseMessageJSON `json:"-"`
}

func (*AttackSurfaceReportIssueListResponseMessage) UnmarshalJSON

func (r *AttackSurfaceReportIssueListResponseMessage) 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[[]string]                                             `query:"issue_class"`
	IssueClassNeq param.Field[[]string]                                             `query:"issue_class~neq"`
	IssueType     param.Field[[]AttackSurfaceReportIssueSeverityParamsIssueType]    `query:"issue_type"`
	IssueTypeNeq  param.Field[[]AttackSurfaceReportIssueSeverityParamsIssueTypeNeq] `query:"issue_type~neq"`
	Product       param.Field[[]string]                                             `query:"product"`
	ProductNeq    param.Field[[]string]                                             `query:"product~neq"`
	Severity      param.Field[[]AttackSurfaceReportIssueSeverityParamsSeverity]     `query:"severity"`
	SeverityNeq   param.Field[[]AttackSurfaceReportIssueSeverityParamsSeverityNeq]  `query:"severity~neq"`
	Subject       param.Field[[]string]                                             `query:"subject"`
	SubjectNeq    param.Field[[]string]                                             `query:"subject~neq"`
}

func (AttackSurfaceReportIssueSeverityParams) URLQuery

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

type AttackSurfaceReportIssueSeverityParamsIssueType

type AttackSurfaceReportIssueSeverityParamsIssueType string
const (
	AttackSurfaceReportIssueSeverityParamsIssueTypeComplianceViolation   AttackSurfaceReportIssueSeverityParamsIssueType = "compliance_violation"
	AttackSurfaceReportIssueSeverityParamsIssueTypeEmailSecurity         AttackSurfaceReportIssueSeverityParamsIssueType = "email_security"
	AttackSurfaceReportIssueSeverityParamsIssueTypeExposedInfrastructure AttackSurfaceReportIssueSeverityParamsIssueType = "exposed_infrastructure"
	AttackSurfaceReportIssueSeverityParamsIssueTypeInsecureConfiguration AttackSurfaceReportIssueSeverityParamsIssueType = "insecure_configuration"
	AttackSurfaceReportIssueSeverityParamsIssueTypeWeakAuthentication    AttackSurfaceReportIssueSeverityParamsIssueType = "weak_authentication"
)

func (AttackSurfaceReportIssueSeverityParamsIssueType) IsKnown

type AttackSurfaceReportIssueSeverityParamsIssueTypeNeq

type AttackSurfaceReportIssueSeverityParamsIssueTypeNeq string
const (
	AttackSurfaceReportIssueSeverityParamsIssueTypeNeqComplianceViolation   AttackSurfaceReportIssueSeverityParamsIssueTypeNeq = "compliance_violation"
	AttackSurfaceReportIssueSeverityParamsIssueTypeNeqEmailSecurity         AttackSurfaceReportIssueSeverityParamsIssueTypeNeq = "email_security"
	AttackSurfaceReportIssueSeverityParamsIssueTypeNeqExposedInfrastructure AttackSurfaceReportIssueSeverityParamsIssueTypeNeq = "exposed_infrastructure"
	AttackSurfaceReportIssueSeverityParamsIssueTypeNeqInsecureConfiguration AttackSurfaceReportIssueSeverityParamsIssueTypeNeq = "insecure_configuration"
	AttackSurfaceReportIssueSeverityParamsIssueTypeNeqWeakAuthentication    AttackSurfaceReportIssueSeverityParamsIssueTypeNeq = "weak_authentication"
)

func (AttackSurfaceReportIssueSeverityParamsIssueTypeNeq) IsKnown

type AttackSurfaceReportIssueSeverityParamsSeverity

type AttackSurfaceReportIssueSeverityParamsSeverity string
const (
	AttackSurfaceReportIssueSeverityParamsSeverityLow      AttackSurfaceReportIssueSeverityParamsSeverity = "low"
	AttackSurfaceReportIssueSeverityParamsSeverityModerate AttackSurfaceReportIssueSeverityParamsSeverity = "moderate"
	AttackSurfaceReportIssueSeverityParamsSeverityCritical AttackSurfaceReportIssueSeverityParamsSeverity = "critical"
)

func (AttackSurfaceReportIssueSeverityParamsSeverity) IsKnown

type AttackSurfaceReportIssueSeverityParamsSeverityNeq

type AttackSurfaceReportIssueSeverityParamsSeverityNeq string
const (
	AttackSurfaceReportIssueSeverityParamsSeverityNeqLow      AttackSurfaceReportIssueSeverityParamsSeverityNeq = "low"
	AttackSurfaceReportIssueSeverityParamsSeverityNeqModerate AttackSurfaceReportIssueSeverityParamsSeverityNeq = "moderate"
	AttackSurfaceReportIssueSeverityParamsSeverityNeqCritical AttackSurfaceReportIssueSeverityParamsSeverityNeq = "critical"
)

func (AttackSurfaceReportIssueSeverityParamsSeverityNeq) IsKnown

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   []AttackSurfaceReportIssueSeverityResponseEnvelopeErrors   `json:"errors,required"`
	Messages []AttackSurfaceReportIssueSeverityResponseEnvelopeMessages `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 AttackSurfaceReportIssueSeverityResponseEnvelopeErrors

type AttackSurfaceReportIssueSeverityResponseEnvelopeErrors struct {
	Code    int64                                                      `json:"code,required"`
	Message string                                                     `json:"message,required"`
	JSON    attackSurfaceReportIssueSeverityResponseEnvelopeErrorsJSON `json:"-"`
}

func (*AttackSurfaceReportIssueSeverityResponseEnvelopeErrors) UnmarshalJSON

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

type AttackSurfaceReportIssueSeverityResponseEnvelopeMessages

type AttackSurfaceReportIssueSeverityResponseEnvelopeMessages struct {
	Code    int64                                                        `json:"code,required"`
	Message string                                                       `json:"message,required"`
	JSON    attackSurfaceReportIssueSeverityResponseEnvelopeMessagesJSON `json:"-"`
}

func (*AttackSurfaceReportIssueSeverityResponseEnvelopeMessages) UnmarshalJSON

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   []AttackSurfaceReportIssueTypeGetResponseEnvelopeErrors   `json:"errors,required"`
	Messages []AttackSurfaceReportIssueTypeGetResponseEnvelopeMessages `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 AttackSurfaceReportIssueTypeGetResponseEnvelopeErrors

type AttackSurfaceReportIssueTypeGetResponseEnvelopeErrors struct {
	Code    int64                                                     `json:"code,required"`
	Message string                                                    `json:"message,required"`
	JSON    attackSurfaceReportIssueTypeGetResponseEnvelopeErrorsJSON `json:"-"`
}

func (*AttackSurfaceReportIssueTypeGetResponseEnvelopeErrors) UnmarshalJSON

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

type AttackSurfaceReportIssueTypeGetResponseEnvelopeMessages

type AttackSurfaceReportIssueTypeGetResponseEnvelopeMessages struct {
	Code    int64                                                       `json:"code,required"`
	Message string                                                      `json:"message,required"`
	JSON    attackSurfaceReportIssueTypeGetResponseEnvelopeMessagesJSON `json:"-"`
}

func (*AttackSurfaceReportIssueTypeGetResponseEnvelopeMessages) UnmarshalJSON

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[[]string]                                         `query:"issue_class"`
	IssueClassNeq param.Field[[]string]                                         `query:"issue_class~neq"`
	IssueType     param.Field[[]AttackSurfaceReportIssueTypeParamsIssueType]    `query:"issue_type"`
	IssueTypeNeq  param.Field[[]AttackSurfaceReportIssueTypeParamsIssueTypeNeq] `query:"issue_type~neq"`
	Product       param.Field[[]string]                                         `query:"product"`
	ProductNeq    param.Field[[]string]                                         `query:"product~neq"`
	Severity      param.Field[[]AttackSurfaceReportIssueTypeParamsSeverity]     `query:"severity"`
	SeverityNeq   param.Field[[]AttackSurfaceReportIssueTypeParamsSeverityNeq]  `query:"severity~neq"`
	Subject       param.Field[[]string]                                         `query:"subject"`
	SubjectNeq    param.Field[[]string]                                         `query:"subject~neq"`
}

func (AttackSurfaceReportIssueTypeParams) URLQuery

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

type AttackSurfaceReportIssueTypeParamsIssueType

type AttackSurfaceReportIssueTypeParamsIssueType string
const (
	AttackSurfaceReportIssueTypeParamsIssueTypeComplianceViolation   AttackSurfaceReportIssueTypeParamsIssueType = "compliance_violation"
	AttackSurfaceReportIssueTypeParamsIssueTypeEmailSecurity         AttackSurfaceReportIssueTypeParamsIssueType = "email_security"
	AttackSurfaceReportIssueTypeParamsIssueTypeExposedInfrastructure AttackSurfaceReportIssueTypeParamsIssueType = "exposed_infrastructure"
	AttackSurfaceReportIssueTypeParamsIssueTypeInsecureConfiguration AttackSurfaceReportIssueTypeParamsIssueType = "insecure_configuration"
	AttackSurfaceReportIssueTypeParamsIssueTypeWeakAuthentication    AttackSurfaceReportIssueTypeParamsIssueType = "weak_authentication"
)

func (AttackSurfaceReportIssueTypeParamsIssueType) IsKnown

type AttackSurfaceReportIssueTypeParamsIssueTypeNeq

type AttackSurfaceReportIssueTypeParamsIssueTypeNeq string
const (
	AttackSurfaceReportIssueTypeParamsIssueTypeNeqComplianceViolation   AttackSurfaceReportIssueTypeParamsIssueTypeNeq = "compliance_violation"
	AttackSurfaceReportIssueTypeParamsIssueTypeNeqEmailSecurity         AttackSurfaceReportIssueTypeParamsIssueTypeNeq = "email_security"
	AttackSurfaceReportIssueTypeParamsIssueTypeNeqExposedInfrastructure AttackSurfaceReportIssueTypeParamsIssueTypeNeq = "exposed_infrastructure"
	AttackSurfaceReportIssueTypeParamsIssueTypeNeqInsecureConfiguration AttackSurfaceReportIssueTypeParamsIssueTypeNeq = "insecure_configuration"
	AttackSurfaceReportIssueTypeParamsIssueTypeNeqWeakAuthentication    AttackSurfaceReportIssueTypeParamsIssueTypeNeq = "weak_authentication"
)

func (AttackSurfaceReportIssueTypeParamsIssueTypeNeq) IsKnown

type AttackSurfaceReportIssueTypeParamsSeverity

type AttackSurfaceReportIssueTypeParamsSeverity string
const (
	AttackSurfaceReportIssueTypeParamsSeverityLow      AttackSurfaceReportIssueTypeParamsSeverity = "low"
	AttackSurfaceReportIssueTypeParamsSeverityModerate AttackSurfaceReportIssueTypeParamsSeverity = "moderate"
	AttackSurfaceReportIssueTypeParamsSeverityCritical AttackSurfaceReportIssueTypeParamsSeverity = "critical"
)

func (AttackSurfaceReportIssueTypeParamsSeverity) IsKnown

type AttackSurfaceReportIssueTypeParamsSeverityNeq

type AttackSurfaceReportIssueTypeParamsSeverityNeq string
const (
	AttackSurfaceReportIssueTypeParamsSeverityNeqLow      AttackSurfaceReportIssueTypeParamsSeverityNeq = "low"
	AttackSurfaceReportIssueTypeParamsSeverityNeqModerate AttackSurfaceReportIssueTypeParamsSeverityNeq = "moderate"
	AttackSurfaceReportIssueTypeParamsSeverityNeqCritical AttackSurfaceReportIssueTypeParamsSeverityNeq = "critical"
)

func (AttackSurfaceReportIssueTypeParamsSeverityNeq) IsKnown

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   []AttackSurfaceReportIssueTypeResponseEnvelopeErrors   `json:"errors,required"`
	Messages []AttackSurfaceReportIssueTypeResponseEnvelopeMessages `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 AttackSurfaceReportIssueTypeResponseEnvelopeErrors

type AttackSurfaceReportIssueTypeResponseEnvelopeErrors struct {
	Code    int64                                                  `json:"code,required"`
	Message string                                                 `json:"message,required"`
	JSON    attackSurfaceReportIssueTypeResponseEnvelopeErrorsJSON `json:"-"`
}

func (*AttackSurfaceReportIssueTypeResponseEnvelopeErrors) UnmarshalJSON

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

type AttackSurfaceReportIssueTypeResponseEnvelopeMessages

type AttackSurfaceReportIssueTypeResponseEnvelopeMessages struct {
	Code    int64                                                    `json:"code,required"`
	Message string                                                   `json:"message,required"`
	JSON    attackSurfaceReportIssueTypeResponseEnvelopeMessagesJSON `json:"-"`
}

func (*AttackSurfaceReportIssueTypeResponseEnvelopeMessages) UnmarshalJSON

func (r *AttackSurfaceReportIssueTypeResponseEnvelopeMessages) 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 DNSGetParams

type DNSGetParams 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[DNSGetParamsStartEndParams] `query:"start_end_params"`
}

func (DNSGetParams) URLQuery

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

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

type DNSGetParamsStartEndParams

type DNSGetParamsStartEndParams 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 (DNSGetParamsStartEndParams) URLQuery

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

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

type DNSGetResponseEnvelope

type DNSGetResponseEnvelope struct {
	Errors   []DNSGetResponseEnvelopeErrors   `json:"errors,required"`
	Messages []DNSGetResponseEnvelopeMessages `json:"messages,required"`
	Result   IntelPassiveDNSByIP              `json:"result,required"`
	// Whether the API call was successful
	Success DNSGetResponseEnvelopeSuccess `json:"success,required"`
	JSON    dnsGetResponseEnvelopeJSON    `json:"-"`
}

func (*DNSGetResponseEnvelope) UnmarshalJSON

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

type DNSGetResponseEnvelopeErrors

type DNSGetResponseEnvelopeErrors struct {
	Code    int64                            `json:"code,required"`
	Message string                           `json:"message,required"`
	JSON    dnsGetResponseEnvelopeErrorsJSON `json:"-"`
}

func (*DNSGetResponseEnvelopeErrors) UnmarshalJSON

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

type DNSGetResponseEnvelopeMessages

type DNSGetResponseEnvelopeMessages struct {
	Code    int64                              `json:"code,required"`
	Message string                             `json:"message,required"`
	JSON    dnsGetResponseEnvelopeMessagesJSON `json:"-"`
}

func (*DNSGetResponseEnvelopeMessages) UnmarshalJSON

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

type DNSGetResponseEnvelopeSuccess

type DNSGetResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	DNSGetResponseEnvelopeSuccessTrue DNSGetResponseEnvelopeSuccess = true
)

func (DNSGetResponseEnvelopeSuccess) IsKnown

func (r DNSGetResponseEnvelopeSuccess) IsKnown() bool

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) Get

func (r *DNSService) Get(ctx context.Context, params DNSGetParams, opts ...option.RequestOption) (res *IntelPassiveDNSByIP, err error)

Get Passive DNS by IP

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   []DomainBulkGetResponseEnvelopeErrors   `json:"errors,required"`
	Messages []DomainBulkGetResponseEnvelopeMessages `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 DomainBulkGetResponseEnvelopeErrors

type DomainBulkGetResponseEnvelopeErrors struct {
	Code    int64                                   `json:"code,required"`
	Message string                                  `json:"message,required"`
	JSON    domainBulkGetResponseEnvelopeErrorsJSON `json:"-"`
}

func (*DomainBulkGetResponseEnvelopeErrors) UnmarshalJSON

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

type DomainBulkGetResponseEnvelopeMessages

type DomainBulkGetResponseEnvelopeMessages struct {
	Code    int64                                     `json:"code,required"`
	Message string                                    `json:"message,required"`
	JSON    domainBulkGetResponseEnvelopeMessagesJSON `json:"-"`
}

func (*DomainBulkGetResponseEnvelopeMessages) UnmarshalJSON

func (r *DomainBulkGetResponseEnvelopeMessages) 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   []DomainGetResponseEnvelopeErrors   `json:"errors,required"`
	Messages []DomainGetResponseEnvelopeMessages `json:"messages,required"`
	Result   IntelDomain                         `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 DomainGetResponseEnvelopeErrors

type DomainGetResponseEnvelopeErrors struct {
	Code    int64                               `json:"code,required"`
	Message string                              `json:"message,required"`
	JSON    domainGetResponseEnvelopeErrorsJSON `json:"-"`
}

func (*DomainGetResponseEnvelopeErrors) UnmarshalJSON

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

type DomainGetResponseEnvelopeMessages

type DomainGetResponseEnvelopeMessages struct {
	Code    int64                                 `json:"code,required"`
	Message string                                `json:"message,required"`
	JSON    domainGetResponseEnvelopeMessagesJSON `json:"-"`
}

func (*DomainGetResponseEnvelopeMessages) UnmarshalJSON

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

type DomainGetResponseEnvelopeSuccess

type DomainGetResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	DomainGetResponseEnvelopeSuccessTrue DomainGetResponseEnvelopeSuccess = true
)

func (DomainGetResponseEnvelopeSuccess) IsKnown

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   []DomainHistoryGetResponseEnvelopeErrors   `json:"errors,required"`
	Messages []DomainHistoryGetResponseEnvelopeMessages `json:"messages,required"`
	Result   []IntelDomainHistory                       `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 DomainHistoryGetResponseEnvelopeErrors

type DomainHistoryGetResponseEnvelopeErrors struct {
	Code    int64                                      `json:"code,required"`
	Message string                                     `json:"message,required"`
	JSON    domainHistoryGetResponseEnvelopeErrorsJSON `json:"-"`
}

func (*DomainHistoryGetResponseEnvelopeErrors) UnmarshalJSON

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

type DomainHistoryGetResponseEnvelopeMessages

type DomainHistoryGetResponseEnvelopeMessages struct {
	Code    int64                                        `json:"code,required"`
	Message string                                       `json:"message,required"`
	JSON    domainHistoryGetResponseEnvelopeMessagesJSON `json:"-"`
}

func (*DomainHistoryGetResponseEnvelopeMessages) UnmarshalJSON

func (r *DomainHistoryGetResponseEnvelopeMessages) 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 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 *IntelDomain, 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 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   []IPGetResponseEnvelopeErrors   `json:"errors,required"`
	Messages []IPGetResponseEnvelopeMessages `json:"messages,required"`
	Result   []IntelSchemasIP                `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 IPGetResponseEnvelopeErrors

type IPGetResponseEnvelopeErrors struct {
	Code    int64                           `json:"code,required"`
	Message string                          `json:"message,required"`
	JSON    ipGetResponseEnvelopeErrorsJSON `json:"-"`
}

func (*IPGetResponseEnvelopeErrors) UnmarshalJSON

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

type IPGetResponseEnvelopeMessages

type IPGetResponseEnvelopeMessages struct {
	Code    int64                             `json:"code,required"`
	Message string                            `json:"message,required"`
	JSON    ipGetResponseEnvelopeMessagesJSON `json:"-"`
}

func (*IPGetResponseEnvelopeMessages) UnmarshalJSON

func (r *IPGetResponseEnvelopeMessages) 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 IPListGetParams

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

type IPListGetResponseEnvelope

type IPListGetResponseEnvelope struct {
	Errors   []IPListGetResponseEnvelopeErrors   `json:"errors,required"`
	Messages []IPListGetResponseEnvelopeMessages `json:"messages,required"`
	Result   []IntelIPList                       `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 IPListGetResponseEnvelopeErrors

type IPListGetResponseEnvelopeErrors struct {
	Code    int64                               `json:"code,required"`
	Message string                              `json:"message,required"`
	JSON    ipListGetResponseEnvelopeErrorsJSON `json:"-"`
}

func (*IPListGetResponseEnvelopeErrors) UnmarshalJSON

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

type IPListGetResponseEnvelopeMessages

type IPListGetResponseEnvelopeMessages struct {
	Code    int64                                 `json:"code,required"`
	Message string                                `json:"message,required"`
	JSON    ipListGetResponseEnvelopeMessagesJSON `json:"-"`
}

func (*IPListGetResponseEnvelopeMessages) UnmarshalJSON

func (r *IPListGetResponseEnvelopeMessages) 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 *[]IntelIPList, 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 *[]IntelSchemasIP, 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   []IndicatorFeedGetResponseEnvelopeErrors   `json:"errors,required"`
	Messages []IndicatorFeedGetResponseEnvelopeMessages `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 IndicatorFeedGetResponseEnvelopeErrors

type IndicatorFeedGetResponseEnvelopeErrors struct {
	Code    int64                                      `json:"code,required"`
	Message string                                     `json:"message,required"`
	JSON    indicatorFeedGetResponseEnvelopeErrorsJSON `json:"-"`
}

func (*IndicatorFeedGetResponseEnvelopeErrors) UnmarshalJSON

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

type IndicatorFeedGetResponseEnvelopeMessages

type IndicatorFeedGetResponseEnvelopeMessages struct {
	Code    int64                                        `json:"code,required"`
	Message string                                       `json:"message,required"`
	JSON    indicatorFeedGetResponseEnvelopeMessagesJSON `json:"-"`
}

func (*IndicatorFeedGetResponseEnvelopeMessages) UnmarshalJSON

func (r *IndicatorFeedGetResponseEnvelopeMessages) 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 IndicatorFeedListResponseEnvelope

type IndicatorFeedListResponseEnvelope struct {
	Errors   []IndicatorFeedListResponseEnvelopeErrors   `json:"errors,required"`
	Messages []IndicatorFeedListResponseEnvelopeMessages `json:"messages,required"`
	Result   []IndicatorFeedListResponse                 `json:"result,required"`
	// Whether the API call was successful
	Success IndicatorFeedListResponseEnvelopeSuccess `json:"success,required"`
	JSON    indicatorFeedListResponseEnvelopeJSON    `json:"-"`
}

func (*IndicatorFeedListResponseEnvelope) UnmarshalJSON

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

type IndicatorFeedListResponseEnvelopeErrors

type IndicatorFeedListResponseEnvelopeErrors struct {
	Code    int64                                       `json:"code,required"`
	Message string                                      `json:"message,required"`
	JSON    indicatorFeedListResponseEnvelopeErrorsJSON `json:"-"`
}

func (*IndicatorFeedListResponseEnvelopeErrors) UnmarshalJSON

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

type IndicatorFeedListResponseEnvelopeMessages

type IndicatorFeedListResponseEnvelopeMessages struct {
	Code    int64                                         `json:"code,required"`
	Message string                                        `json:"message,required"`
	JSON    indicatorFeedListResponseEnvelopeMessagesJSON `json:"-"`
}

func (*IndicatorFeedListResponseEnvelopeMessages) UnmarshalJSON

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

type IndicatorFeedListResponseEnvelopeSuccess

type IndicatorFeedListResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	IndicatorFeedListResponseEnvelopeSuccessTrue IndicatorFeedListResponseEnvelopeSuccess = true
)

func (IndicatorFeedListResponseEnvelopeSuccess) IsKnown

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   []IndicatorFeedNewResponseEnvelopeErrors   `json:"errors,required"`
	Messages []IndicatorFeedNewResponseEnvelopeMessages `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 IndicatorFeedNewResponseEnvelopeErrors

type IndicatorFeedNewResponseEnvelopeErrors struct {
	Code    int64                                      `json:"code,required"`
	Message string                                     `json:"message,required"`
	JSON    indicatorFeedNewResponseEnvelopeErrorsJSON `json:"-"`
}

func (*IndicatorFeedNewResponseEnvelopeErrors) UnmarshalJSON

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

type IndicatorFeedNewResponseEnvelopeMessages

type IndicatorFeedNewResponseEnvelopeMessages struct {
	Code    int64                                        `json:"code,required"`
	Message string                                       `json:"message,required"`
	JSON    indicatorFeedNewResponseEnvelopeMessagesJSON `json:"-"`
}

func (*IndicatorFeedNewResponseEnvelopeMessages) UnmarshalJSON

func (r *IndicatorFeedNewResponseEnvelopeMessages) 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   []IndicatorFeedPermissionDeleteResponseEnvelopeErrors   `json:"errors,required"`
	Messages []IndicatorFeedPermissionDeleteResponseEnvelopeMessages `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 IndicatorFeedPermissionDeleteResponseEnvelopeErrors

type IndicatorFeedPermissionDeleteResponseEnvelopeErrors struct {
	Code    int64                                                   `json:"code,required"`
	Message string                                                  `json:"message,required"`
	JSON    indicatorFeedPermissionDeleteResponseEnvelopeErrorsJSON `json:"-"`
}

func (*IndicatorFeedPermissionDeleteResponseEnvelopeErrors) UnmarshalJSON

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

type IndicatorFeedPermissionDeleteResponseEnvelopeMessages

type IndicatorFeedPermissionDeleteResponseEnvelopeMessages struct {
	Code    int64                                                     `json:"code,required"`
	Message string                                                    `json:"message,required"`
	JSON    indicatorFeedPermissionDeleteResponseEnvelopeMessagesJSON `json:"-"`
}

func (*IndicatorFeedPermissionDeleteResponseEnvelopeMessages) UnmarshalJSON

func (r *IndicatorFeedPermissionDeleteResponseEnvelopeMessages) 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   []IndicatorFeedPermissionListResponseEnvelopeErrors   `json:"errors,required"`
	Messages []IndicatorFeedPermissionListResponseEnvelopeMessages `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 IndicatorFeedPermissionListResponseEnvelopeErrors

type IndicatorFeedPermissionListResponseEnvelopeErrors struct {
	Code    int64                                                 `json:"code,required"`
	Message string                                                `json:"message,required"`
	JSON    indicatorFeedPermissionListResponseEnvelopeErrorsJSON `json:"-"`
}

func (*IndicatorFeedPermissionListResponseEnvelopeErrors) UnmarshalJSON

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

type IndicatorFeedPermissionListResponseEnvelopeMessages

type IndicatorFeedPermissionListResponseEnvelopeMessages struct {
	Code    int64                                                   `json:"code,required"`
	Message string                                                  `json:"message,required"`
	JSON    indicatorFeedPermissionListResponseEnvelopeMessagesJSON `json:"-"`
}

func (*IndicatorFeedPermissionListResponseEnvelopeMessages) UnmarshalJSON

func (r *IndicatorFeedPermissionListResponseEnvelopeMessages) 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   []IndicatorFeedPermissionNewResponseEnvelopeErrors   `json:"errors,required"`
	Messages []IndicatorFeedPermissionNewResponseEnvelopeMessages `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 IndicatorFeedPermissionNewResponseEnvelopeErrors

type IndicatorFeedPermissionNewResponseEnvelopeErrors struct {
	Code    int64                                                `json:"code,required"`
	Message string                                               `json:"message,required"`
	JSON    indicatorFeedPermissionNewResponseEnvelopeErrorsJSON `json:"-"`
}

func (*IndicatorFeedPermissionNewResponseEnvelopeErrors) UnmarshalJSON

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

type IndicatorFeedPermissionNewResponseEnvelopeMessages

type IndicatorFeedPermissionNewResponseEnvelopeMessages struct {
	Code    int64                                                  `json:"code,required"`
	Message string                                                 `json:"message,required"`
	JSON    indicatorFeedPermissionNewResponseEnvelopeMessagesJSON `json:"-"`
}

func (*IndicatorFeedPermissionNewResponseEnvelopeMessages) UnmarshalJSON

func (r *IndicatorFeedPermissionNewResponseEnvelopeMessages) 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) 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   []IndicatorFeedUpdateResponseEnvelopeErrors   `json:"errors,required"`
	Messages []IndicatorFeedUpdateResponseEnvelopeMessages `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 IndicatorFeedUpdateResponseEnvelopeErrors

type IndicatorFeedUpdateResponseEnvelopeErrors struct {
	Code    int64                                         `json:"code,required"`
	Message string                                        `json:"message,required"`
	JSON    indicatorFeedUpdateResponseEnvelopeErrorsJSON `json:"-"`
}

func (*IndicatorFeedUpdateResponseEnvelopeErrors) UnmarshalJSON

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

type IndicatorFeedUpdateResponseEnvelopeMessages

type IndicatorFeedUpdateResponseEnvelopeMessages struct {
	Code    int64                                           `json:"code,required"`
	Message string                                          `json:"message,required"`
	JSON    indicatorFeedUpdateResponseEnvelopeMessagesJSON `json:"-"`
}

func (*IndicatorFeedUpdateResponseEnvelopeMessages) UnmarshalJSON

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

type IndicatorFeedUpdateResponseEnvelopeSuccess

type IndicatorFeedUpdateResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	IndicatorFeedUpdateResponseEnvelopeSuccessTrue IndicatorFeedUpdateResponseEnvelopeSuccess = true
)

func (IndicatorFeedUpdateResponseEnvelopeSuccess) IsKnown

type IntelASN

type IntelASN = int64

type IntelASNParam

type IntelASNParam = int64

type IntelDomain

type IntelDomain struct {
	// Additional information related to the host name.
	AdditionalInformation IntelDomainAdditionalInformation `json:"additional_information"`
	// Application that the hostname belongs to.
	Application IntelDomainApplication `json:"application"`
	// Current content categories.
	ContentCategories          []interface{}                         `json:"content_categories"`
	Domain                     string                                `json:"domain"`
	InheritedContentCategories []IntelDomainInheritedContentCategory `json:"inherited_content_categories"`
	// Domain from which `inherited_content_categories` and `inherited_risk_types` are
	// inherited, if applicable.
	InheritedFrom      string                         `json:"inherited_from"`
	InheritedRiskTypes []IntelDomainInheritedRiskType `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 []IntelDomainResolvesToRef `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      intelDomainJSON `json:"-"`
}

func (*IntelDomain) UnmarshalJSON

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

type IntelDomainAdditionalInformation

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

Additional information related to the host name.

func (*IntelDomainAdditionalInformation) UnmarshalJSON

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

type IntelDomainApplication

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

Application that the hostname belongs to.

func (*IntelDomainApplication) UnmarshalJSON

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

type IntelDomainHistory

type IntelDomainHistory struct {
	Categorizations []IntelDomainHistoryCategorization `json:"categorizations"`
	Domain          string                             `json:"domain"`
	JSON            intelDomainHistoryJSON             `json:"-"`
}

func (*IntelDomainHistory) UnmarshalJSON

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

type IntelDomainHistoryCategorization

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

func (*IntelDomainHistoryCategorization) UnmarshalJSON

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

type IntelDomainInheritedContentCategory

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

func (*IntelDomainInheritedContentCategory) UnmarshalJSON

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

type IntelDomainInheritedRiskType

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

func (*IntelDomainInheritedRiskType) UnmarshalJSON

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

type IntelDomainResolvesToRef

type IntelDomainResolvesToRef 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  intelDomainResolvesToRefJSON `json:"-"`
}

func (*IntelDomainResolvesToRef) UnmarshalJSON

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

type IntelIPList

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

func (*IntelIPList) UnmarshalJSON

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

type IntelPassiveDNSByIP

type IntelPassiveDNSByIP 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 []IntelPassiveDNSByIPReverseRecord `json:"reverse_records"`
	JSON           intelPassiveDNSByIPJSON            `json:"-"`
}

func (*IntelPassiveDNSByIP) UnmarshalJSON

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

type IntelPassiveDNSByIPReverseRecord

type IntelPassiveDNSByIPReverseRecord 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     intelPassiveDNSByIPReverseRecordJSON `json:"-"`
}

func (*IntelPassiveDNSByIPReverseRecord) UnmarshalJSON

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

type IntelSchemasIP

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

func (*IntelSchemasIP) UnmarshalJSON

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

type IntelSchemasIPBelongsToRef

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

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

func (*IntelSchemasIPBelongsToRef) UnmarshalJSON

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

type IntelSchemasIPBelongsToRefType

type IntelSchemasIPBelongsToRefType string

Infrastructure type of this ASN.

const (
	IntelSchemasIPBelongsToRefTypeHostingProvider IntelSchemasIPBelongsToRefType = "hosting_provider"
	IntelSchemasIPBelongsToRefTypeIsp             IntelSchemasIPBelongsToRefType = "isp"
	IntelSchemasIPBelongsToRefTypeOrganization    IntelSchemasIPBelongsToRefType = "organization"
)

func (IntelSchemasIPBelongsToRefType) IsKnown

type IntelSchemasIPIP

type IntelSchemasIPIP interface {
	ImplementsIntelIntelSchemasIpip()
}

Union satisfied by shared.UnionString or shared.UnionString.

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 IntelSinkholesSinkholeItem

type IntelSinkholesSinkholeItem 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 intelSinkholesSinkholeItemJSON `json:"-"`
}

func (*IntelSinkholesSinkholeItem) UnmarshalJSON

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

type IntelWhois

type IntelWhois 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              intelWhoisJSON `json:"-"`
}

func (*IntelWhois) UnmarshalJSON

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

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 MiscategorizationNewResponse

type MiscategorizationNewResponse interface {
	ImplementsIntelMiscategorizationNewResponse()
}

Union satisfied by intel.MiscategorizationNewResponseUnknown or shared.UnionString.

type MiscategorizationNewResponseEnvelope

type MiscategorizationNewResponseEnvelope struct {
	Errors   []MiscategorizationNewResponseEnvelopeErrors   `json:"errors,required"`
	Messages []MiscategorizationNewResponseEnvelopeMessages `json:"messages,required"`
	Result   MiscategorizationNewResponse                   `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 MiscategorizationNewResponseEnvelopeErrors

type MiscategorizationNewResponseEnvelopeErrors struct {
	Code    int64                                          `json:"code,required"`
	Message string                                         `json:"message,required"`
	JSON    miscategorizationNewResponseEnvelopeErrorsJSON `json:"-"`
}

func (*MiscategorizationNewResponseEnvelopeErrors) UnmarshalJSON

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

type MiscategorizationNewResponseEnvelopeMessages

type MiscategorizationNewResponseEnvelopeMessages struct {
	Code    int64                                            `json:"code,required"`
	Message string                                           `json:"message,required"`
	JSON    miscategorizationNewResponseEnvelopeMessagesJSON `json:"-"`
}

func (*MiscategorizationNewResponseEnvelopeMessages) UnmarshalJSON

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

type MiscategorizationNewResponseEnvelopeSuccess

type MiscategorizationNewResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	MiscategorizationNewResponseEnvelopeSuccessTrue MiscategorizationNewResponseEnvelopeSuccess = true
)

func (MiscategorizationNewResponseEnvelopeSuccess) IsKnown

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 SinkholeListParams

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

type SinkholeListResponseEnvelope

type SinkholeListResponseEnvelope struct {
	Errors   []SinkholeListResponseEnvelopeErrors   `json:"errors,required"`
	Messages []SinkholeListResponseEnvelopeMessages `json:"messages,required"`
	Result   []IntelSinkholesSinkholeItem           `json:"result,required"`
	// Whether the API call was successful
	Success SinkholeListResponseEnvelopeSuccess `json:"success,required"`
	JSON    sinkholeListResponseEnvelopeJSON    `json:"-"`
}

func (*SinkholeListResponseEnvelope) UnmarshalJSON

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

type SinkholeListResponseEnvelopeErrors

type SinkholeListResponseEnvelopeErrors struct {
	Code    int64                                  `json:"code,required"`
	Message string                                 `json:"message,required"`
	JSON    sinkholeListResponseEnvelopeErrorsJSON `json:"-"`
}

func (*SinkholeListResponseEnvelopeErrors) UnmarshalJSON

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

type SinkholeListResponseEnvelopeMessages

type SinkholeListResponseEnvelopeMessages struct {
	Code    int64                                    `json:"code,required"`
	Message string                                   `json:"message,required"`
	JSON    sinkholeListResponseEnvelopeMessagesJSON `json:"-"`
}

func (*SinkholeListResponseEnvelopeMessages) UnmarshalJSON

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

type SinkholeListResponseEnvelopeSuccess

type SinkholeListResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	SinkholeListResponseEnvelopeSuccessTrue SinkholeListResponseEnvelopeSuccess = true
)

func (SinkholeListResponseEnvelopeSuccess) IsKnown

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

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   []WhoisGetResponseEnvelopeErrors   `json:"errors,required"`
	Messages []WhoisGetResponseEnvelopeMessages `json:"messages,required"`
	Result   IntelWhois                         `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 WhoisGetResponseEnvelopeErrors

type WhoisGetResponseEnvelopeErrors struct {
	Code    int64                              `json:"code,required"`
	Message string                             `json:"message,required"`
	JSON    whoisGetResponseEnvelopeErrorsJSON `json:"-"`
}

func (*WhoisGetResponseEnvelopeErrors) UnmarshalJSON

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

type WhoisGetResponseEnvelopeMessages

type WhoisGetResponseEnvelopeMessages struct {
	Code    int64                                `json:"code,required"`
	Message string                               `json:"message,required"`
	JSON    whoisGetResponseEnvelopeMessagesJSON `json:"-"`
}

func (*WhoisGetResponseEnvelopeMessages) UnmarshalJSON

func (r *WhoisGetResponseEnvelopeMessages) 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 *IntelWhois, err error)

Get WHOIS Record

Jump to

Keyboard shortcuts

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