func GetDataVisibilityTlpNameEnumStringValues() []string
GetDataVisibilityTlpNameEnumStringValues Enumerates the set of values in String for DataVisibilityTlpNameEnum
func GetEntityReferenceTypeEnumStringValues() []string
GetEntityReferenceTypeEnumStringValues Enumerates the set of values in String for EntityReferenceTypeEnum
func GetIndicatorTypeEnumStringValues() []string
GetIndicatorTypeEnumStringValues Enumerates the set of values in String for IndicatorTypeEnum
func GetLifecycleStateEnumStringValues() []string
GetLifecycleStateEnumStringValues Enumerates the set of values in String for LifecycleStateEnum
func GetListIndicatorCountsSortOrderEnumStringValues() []string
GetListIndicatorCountsSortOrderEnumStringValues Enumerates the set of values in String for ListIndicatorCountsSortOrderEnum
func GetListIndicatorsSortByEnumStringValues() []string
GetListIndicatorsSortByEnumStringValues Enumerates the set of values in String for ListIndicatorsSortByEnum
func GetListIndicatorsSortOrderEnumStringValues() []string
GetListIndicatorsSortOrderEnumStringValues Enumerates the set of values in String for ListIndicatorsSortOrderEnum
func GetListIndicatorsTypeEnumStringValues() []string
GetListIndicatorsTypeEnumStringValues Enumerates the set of values in String for ListIndicatorsTypeEnum
func GetListThreatTypesSortOrderEnumStringValues() []string
GetListThreatTypesSortOrderEnumStringValues Enumerates the set of values in String for ListThreatTypesSortOrderEnum
func GetSortOrderEnumStringValues() []string
GetSortOrderEnumStringValues Enumerates the set of values in String for SortOrderEnum
DataAttribution The confidence, source information, and visibility for a particular sighting or observation of some data associated with an indicator such as threat type, attribute or relationship.
type DataAttribution struct { // Confidence is an integer from 0 to 100 that provides a measure of our certainty in the maliciousness of data attributed to an indicator. For example, if the source of the data being attributed is the Tor Project, our confidence that the associated indicator is a tor exit node would be 100. Confidence *int `mandatory:"true" json:"confidence"` Source *IndicatorSourceSummary `mandatory:"true" json:"source"` Visibility *DataVisibility `mandatory:"true" json:"visibility"` // The last time this data was seen for this entity. An RFC3339 formatted datetime string TimeLastSeen *common.SDKTime `mandatory:"true" json:"timeLastSeen"` // The time the data was first seen for this entity. Defaults to time last seen if no time first seen is provided from the data source. An RFC3339 formatted datetime string TimeFirstSeen *common.SDKTime `mandatory:"false" json:"timeFirstSeen"` }
func (m DataAttribution) String() string
func (m DataAttribution) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
DataVisibility The visibility level associated with data and an associated TLP (https://www.cisa.gov/tlp) level.
type DataVisibility struct { // The name of the visibility level. Name *string `mandatory:"true" json:"name"` // The Traffic Light Protocol (TLP) name of the visibility level. TlpName DataVisibilityTlpNameEnum `mandatory:"true" json:"tlpName"` }
func (m DataVisibility) String() string
func (m DataVisibility) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
DataVisibilityTlpNameEnum Enum with underlying type: string
type DataVisibilityTlpNameEnum string
Set of constants representing the allowable values for DataVisibilityTlpNameEnum
const ( DataVisibilityTlpNameInternalAudit DataVisibilityTlpNameEnum = "TLP_INTERNAL_AUDIT" DataVisibilityTlpNameWhite DataVisibilityTlpNameEnum = "TLP_WHITE" DataVisibilityTlpNameGreen DataVisibilityTlpNameEnum = "TLP_GREEN" DataVisibilityTlpNameAmber DataVisibilityTlpNameEnum = "TLP_AMBER" DataVisibilityTlpNameRed DataVisibilityTlpNameEnum = "TLP_RED" )
func GetDataVisibilityTlpNameEnumValues() []DataVisibilityTlpNameEnum
GetDataVisibilityTlpNameEnumValues Enumerates the set of values for DataVisibilityTlpNameEnum
func GetMappingDataVisibilityTlpNameEnum(val string) (DataVisibilityTlpNameEnum, bool)
GetMappingDataVisibilityTlpNameEnum performs case Insensitive comparison on enum value and return the desired enum
EntityReference a reference to a resource or other entity
type EntityReference interface { }
EntityReferenceTypeEnum Enum with underlying type: string
type EntityReferenceTypeEnum string
Set of constants representing the allowable values for EntityReferenceTypeEnum
const ( EntityReferenceTypeIndicator EntityReferenceTypeEnum = "INDICATOR" )
func GetEntityReferenceTypeEnumValues() []EntityReferenceTypeEnum
GetEntityReferenceTypeEnumValues Enumerates the set of values for EntityReferenceTypeEnum
func GetMappingEntityReferenceTypeEnum(val string) (EntityReferenceTypeEnum, bool)
GetMappingEntityReferenceTypeEnum performs case Insensitive comparison on enum value and return the desired enum
GetIndicatorRequest wrapper for the GetIndicator operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.16.0/threatintelligence/GetIndicator.go.html to see an example of how to use GetIndicatorRequest.
type GetIndicatorRequest struct { // unique indicator identifier IndicatorId *string `mandatory:"true" contributesTo:"path" name:"indicatorId"` // The ID of the tenancy to use to filter results. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` // The client request ID for tracing. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request GetIndicatorRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request GetIndicatorRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request GetIndicatorRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request GetIndicatorRequest) String() string
func (request GetIndicatorRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
GetIndicatorResponse wrapper for the GetIndicator operation
type GetIndicatorResponse struct { // The underlying http response RawResponse *http.Response // The Indicator instance Indicator `presentIn:"body"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response GetIndicatorResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response GetIndicatorResponse) String() string
Indicator A data signature observed on a network or host that indicates a potential security threat. Indicators can be plain text or computed (hashed) values.
type Indicator struct { // The OCID of the indicator. Id *string `mandatory:"true" json:"id"` // Type of indicator Type IndicatorTypeEnum `mandatory:"true" json:"type"` // The value for this indicator. // Format is dependent upon `type`, e.g. DOMAIN_NAME "evil.example.com", MD5_HASH "44d88612fea8a8f36de82e1278abb02f", IP_ADDRESS "2001:db8::1". Value *string `mandatory:"true" json:"value"` // Characteristics of the threat indicator based on previous observations or behavior. May include related tactics, techniques, and procedures. ThreatTypes []ThreatType `mandatory:"true" json:"threatTypes"` // A map of attribute name (string) to IndicatorAttribute (values and supporting data). // This provides generic storage for additional data about an indicator. Attributes []IndicatorAttribute `mandatory:"true" json:"attributes"` // A map of relationship name (string) to IndicatorRelationship (related entities and supporting data). // This provides generic storage for relationships between indicators or other entities. Relationships []IndicatorRelationship `mandatory:"true" json:"relationships"` // The time the data was first seen for this indicator. An RFC3339 formatted datetime string TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` // The last time this indicator was updated. It starts with the same value as timeCreated and is never empty. An RFC3339 formatted datetime string TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"` // Confidence is an integer from 0 to 100 that provides a measure of our certainty in the maliciousness of the indicator. This confidence value is aggregated from the confidence in the threat types, attributes, and relationships to create an overall value for the indicator. Confidence *int `mandatory:"false" json:"confidence"` // Compartment Identifier CompartmentId *string `mandatory:"false" json:"compartmentId"` // The state of the indicator. It will always be ACTIVE. This field is added for consistency. LifecycleState LifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` }
func (m Indicator) String() string
func (m Indicator) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
IndicatorAttribute An attribute name and list of values.
type IndicatorAttribute struct { // The name of the attribute Name *string `mandatory:"true" json:"name"` // The value of the attribute. Value *string `mandatory:"true" json:"value"` // The array of attribution data that support this attribute. Attribution []DataAttribution `mandatory:"true" json:"attribution"` }
func (m IndicatorAttribute) String() string
func (m IndicatorAttribute) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
IndicatorCountCollection A list of indicator counts by indicator type.
type IndicatorCountCollection struct { // The list of aggregated indicator counts. Items []IndicatorCountSummary `mandatory:"true" json:"items"` }
func (m IndicatorCountCollection) String() string
func (m IndicatorCountCollection) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
IndicatorCountDimensions Dimensions characterizing the group
type IndicatorCountDimensions struct { // Compartment Identifier CompartmentId *string `mandatory:"false" json:"compartmentId"` // The indicator type that corresponds to the count. Type IndicatorTypeEnum `mandatory:"false" json:"type,omitempty"` }
func (m IndicatorCountDimensions) String() string
func (m IndicatorCountDimensions) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
IndicatorCountSummary A group of indicators with the same dimensions
type IndicatorCountSummary struct { Dimensions *IndicatorCountDimensions `mandatory:"true" json:"dimensions"` // The count of indicators in the group Count *int `mandatory:"true" json:"count"` }
func (m IndicatorCountSummary) String() string
func (m IndicatorCountSummary) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
IndicatorReference a reference to an Indicator resource
type IndicatorReference struct { // the OCID of the referenced Indicator IndicatorId *string `mandatory:"true" json:"indicatorId"` }
func (m IndicatorReference) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m IndicatorReference) String() string
func (m IndicatorReference) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
IndicatorRelationship An relationship name and list of releated entities.
type IndicatorRelationship struct { // The name of the attribute Name *string `mandatory:"true" json:"name"` RelatedEntity EntityReference `mandatory:"true" json:"relatedEntity"` // The array of attribution data that support this SourcedRelationship Attribution []DataAttribution `mandatory:"true" json:"attribution"` }
func (m IndicatorRelationship) String() string
func (m *IndicatorRelationship) UnmarshalJSON(data []byte) (e error)
UnmarshalJSON unmarshals from json
func (m IndicatorRelationship) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
IndicatorSourceSummary Information about the source of indicator data.
type IndicatorSourceSummary struct { // The name of the source Name *string `mandatory:"true" json:"name"` }
func (m IndicatorSourceSummary) String() string
func (m IndicatorSourceSummary) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
IndicatorSummary Summary of a data signature observed on a network or host that indicates a potential security threat.
type IndicatorSummary struct { // The OCID of the indicator. Id *string `mandatory:"true" json:"id"` // Type of indicator Type IndicatorTypeEnum `mandatory:"true" json:"type"` // The value of indicator. Value *string `mandatory:"true" json:"value"` // Characteristics of the threat indicator based on previous observations or behavior. May include related tactics, techniques, and procedures. ThreatTypes []ThreatType `mandatory:"true" json:"threatTypes"` // The time the data was first seen for this indicator. An RFC3339 formatted datetime string TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` // The last time this indicator was updated. It starts with the same value as timeCreated and is never empty. An RFC3339 formatted datetime string TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"` // Confidence is an integer from 0 to 100 that provides a measure of our certainty in the maliciousness of the indicator. This confidence value is aggregated from the confidence in the threat types, attributes, and relationships to create an overall value for the indicator. Confidence *int `mandatory:"false" json:"confidence"` // Compartment Identifier CompartmentId *string `mandatory:"false" json:"compartmentId"` // The state of the indicator. It will always be ACTIVE. This field is added for consistency. LifecycleState LifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` }
func (m IndicatorSummary) String() string
func (m IndicatorSummary) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
IndicatorSummaryCollection List of indicator summary objects.
type IndicatorSummaryCollection struct { // The list of indicators Items []IndicatorSummary `mandatory:"true" json:"items"` }
func (m IndicatorSummaryCollection) String() string
func (m IndicatorSummaryCollection) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
IndicatorTypeEnum Enum with underlying type: string
type IndicatorTypeEnum string
Set of constants representing the allowable values for IndicatorTypeEnum
const ( IndicatorTypeDomainName IndicatorTypeEnum = "DOMAIN_NAME" IndicatorTypeFileName IndicatorTypeEnum = "FILE_NAME" IndicatorTypeMd5Hash IndicatorTypeEnum = "MD5_HASH" IndicatorTypeSha1Hash IndicatorTypeEnum = "SHA1_HASH" IndicatorTypeSha256Hash IndicatorTypeEnum = "SHA256_HASH" IndicatorTypeIpAddress IndicatorTypeEnum = "IP_ADDRESS" IndicatorTypeUrl IndicatorTypeEnum = "URL" )
func GetIndicatorTypeEnumValues() []IndicatorTypeEnum
GetIndicatorTypeEnumValues Enumerates the set of values for IndicatorTypeEnum
func GetMappingIndicatorTypeEnum(val string) (IndicatorTypeEnum, bool)
GetMappingIndicatorTypeEnum performs case Insensitive comparison on enum value and return the desired enum
LifecycleStateEnum Enum with underlying type: string
type LifecycleStateEnum string
Set of constants representing the allowable values for LifecycleStateEnum
const ( LifecycleStateActive LifecycleStateEnum = "ACTIVE" LifecycleStateDeleted LifecycleStateEnum = "DELETED" )
func GetLifecycleStateEnumValues() []LifecycleStateEnum
GetLifecycleStateEnumValues Enumerates the set of values for LifecycleStateEnum
func GetMappingLifecycleStateEnum(val string) (LifecycleStateEnum, bool)
GetMappingLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum
ListIndicatorCountsRequest wrapper for the ListIndicatorCounts operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.16.0/threatintelligence/ListIndicatorCounts.go.html to see an example of how to use ListIndicatorCountsRequest.
type ListIndicatorCountsRequest struct { // The ID of the tenancy to use to filter results. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` // The client request ID for tracing. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // The sort order to use, either 'ASC' or 'DESC'. SortOrder ListIndicatorCountsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request ListIndicatorCountsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ListIndicatorCountsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListIndicatorCountsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListIndicatorCountsRequest) String() string
func (request ListIndicatorCountsRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ListIndicatorCountsResponse wrapper for the ListIndicatorCounts operation
type ListIndicatorCountsResponse struct { // The underlying http response RawResponse *http.Response // The IndicatorCountCollection instance IndicatorCountCollection `presentIn:"body"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response ListIndicatorCountsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListIndicatorCountsResponse) String() string
ListIndicatorCountsSortOrderEnum Enum with underlying type: string
type ListIndicatorCountsSortOrderEnum string
Set of constants representing the allowable values for ListIndicatorCountsSortOrderEnum
const ( ListIndicatorCountsSortOrderAsc ListIndicatorCountsSortOrderEnum = "ASC" ListIndicatorCountsSortOrderDesc ListIndicatorCountsSortOrderEnum = "DESC" )
func GetListIndicatorCountsSortOrderEnumValues() []ListIndicatorCountsSortOrderEnum
GetListIndicatorCountsSortOrderEnumValues Enumerates the set of values for ListIndicatorCountsSortOrderEnum
func GetMappingListIndicatorCountsSortOrderEnum(val string) (ListIndicatorCountsSortOrderEnum, bool)
GetMappingListIndicatorCountsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum
ListIndicatorsRequest wrapper for the ListIndicators operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.16.0/threatintelligence/ListIndicators.go.html to see an example of how to use ListIndicatorsRequest.
type ListIndicatorsRequest struct { // The ID of the tenancy to use to filter results. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` // The result set will include indicators that have any of the provided threat types. To filter for multiple threat types repeat the query parameter. ThreatTypeName []string `contributesTo:"query" name:"threatTypeName" collectionFormat:"multi"` // The indicator type of entities to be returned. Type ListIndicatorsTypeEnum `mandatory:"false" contributesTo:"query" name:"type" omitEmpty:"true"` // The indicator value of entities to be returned. Value *string `mandatory:"false" contributesTo:"query" name:"value"` // The minimum confidence score of entities to be returned. ConfidenceGreaterThanOrEqualTo *int `mandatory:"false" contributesTo:"query" name:"confidenceGreaterThanOrEqualTo"` // The oldest update time of entities to be returned. TimeUpdatedGreaterThanOrEqualTo *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeUpdatedGreaterThanOrEqualTo"` // The maximum number of items to return. Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` // A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response. Page *string `mandatory:"false" contributesTo:"query" name:"page"` // The sort order to use, either 'ASC' or 'DESC'. SortOrder ListIndicatorsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` // The field to sort by. Only one field to sort by may be provided. SortBy ListIndicatorsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` // The client request ID for tracing. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request ListIndicatorsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ListIndicatorsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListIndicatorsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListIndicatorsRequest) String() string
func (request ListIndicatorsRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ListIndicatorsResponse wrapper for the ListIndicators operation
type ListIndicatorsResponse struct { // The underlying http response RawResponse *http.Response // A list of IndicatorSummaryCollection instances IndicatorSummaryCollection `presentIn:"body"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // For pagination of a list of items. When paging through a list, if this header appears in the response, // then a partial list might have been returned. Include this value as the `page` parameter for the // subsequent GET request to get the next batch of items. OpcNextPage *string `presentIn:"header" name:"opc-next-page"` }
func (response ListIndicatorsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListIndicatorsResponse) String() string
ListIndicatorsSortByEnum Enum with underlying type: string
type ListIndicatorsSortByEnum string
Set of constants representing the allowable values for ListIndicatorsSortByEnum
const ( ListIndicatorsSortByConfidence ListIndicatorsSortByEnum = "confidence" ListIndicatorsSortByTimeupdated ListIndicatorsSortByEnum = "timeUpdated" )
func GetListIndicatorsSortByEnumValues() []ListIndicatorsSortByEnum
GetListIndicatorsSortByEnumValues Enumerates the set of values for ListIndicatorsSortByEnum
func GetMappingListIndicatorsSortByEnum(val string) (ListIndicatorsSortByEnum, bool)
GetMappingListIndicatorsSortByEnum performs case Insensitive comparison on enum value and return the desired enum
ListIndicatorsSortOrderEnum Enum with underlying type: string
type ListIndicatorsSortOrderEnum string
Set of constants representing the allowable values for ListIndicatorsSortOrderEnum
const ( ListIndicatorsSortOrderAsc ListIndicatorsSortOrderEnum = "ASC" ListIndicatorsSortOrderDesc ListIndicatorsSortOrderEnum = "DESC" )
func GetListIndicatorsSortOrderEnumValues() []ListIndicatorsSortOrderEnum
GetListIndicatorsSortOrderEnumValues Enumerates the set of values for ListIndicatorsSortOrderEnum
func GetMappingListIndicatorsSortOrderEnum(val string) (ListIndicatorsSortOrderEnum, bool)
GetMappingListIndicatorsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum
ListIndicatorsTypeEnum Enum with underlying type: string
type ListIndicatorsTypeEnum string
Set of constants representing the allowable values for ListIndicatorsTypeEnum
const ( ListIndicatorsTypeDomainName ListIndicatorsTypeEnum = "DOMAIN_NAME" ListIndicatorsTypeFileName ListIndicatorsTypeEnum = "FILE_NAME" ListIndicatorsTypeMd5Hash ListIndicatorsTypeEnum = "MD5_HASH" ListIndicatorsTypeSha1Hash ListIndicatorsTypeEnum = "SHA1_HASH" ListIndicatorsTypeSha256Hash ListIndicatorsTypeEnum = "SHA256_HASH" ListIndicatorsTypeIpAddress ListIndicatorsTypeEnum = "IP_ADDRESS" ListIndicatorsTypeUrl ListIndicatorsTypeEnum = "URL" )
func GetListIndicatorsTypeEnumValues() []ListIndicatorsTypeEnum
GetListIndicatorsTypeEnumValues Enumerates the set of values for ListIndicatorsTypeEnum
func GetMappingListIndicatorsTypeEnum(val string) (ListIndicatorsTypeEnum, bool)
GetMappingListIndicatorsTypeEnum performs case Insensitive comparison on enum value and return the desired enum
ListThreatTypesRequest wrapper for the ListThreatTypes operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.16.0/threatintelligence/ListThreatTypes.go.html to see an example of how to use ListThreatTypesRequest.
type ListThreatTypesRequest struct { // The ID of the tenancy to use to filter results. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` // The maximum number of items to return. Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` // A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response. Page *string `mandatory:"false" contributesTo:"query" name:"page"` // The sort order to use, either 'ASC' or 'DESC'. SortOrder ListThreatTypesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` // The client request ID for tracing. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request ListThreatTypesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ListThreatTypesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListThreatTypesRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListThreatTypesRequest) String() string
func (request ListThreatTypesRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ListThreatTypesResponse wrapper for the ListThreatTypes operation
type ListThreatTypesResponse struct { // The underlying http response RawResponse *http.Response // A list of ThreatTypesCollection instances ThreatTypesCollection `presentIn:"body"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // For pagination of a list of items. When paging through a list, if this header appears in the response, // then a partial list might have been returned. Include this value as the `page` parameter for the // subsequent GET request to get the next batch of items. OpcNextPage *string `presentIn:"header" name:"opc-next-page"` }
func (response ListThreatTypesResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListThreatTypesResponse) String() string
ListThreatTypesSortOrderEnum Enum with underlying type: string
type ListThreatTypesSortOrderEnum string
Set of constants representing the allowable values for ListThreatTypesSortOrderEnum
const ( ListThreatTypesSortOrderAsc ListThreatTypesSortOrderEnum = "ASC" ListThreatTypesSortOrderDesc ListThreatTypesSortOrderEnum = "DESC" )
func GetListThreatTypesSortOrderEnumValues() []ListThreatTypesSortOrderEnum
GetListThreatTypesSortOrderEnumValues Enumerates the set of values for ListThreatTypesSortOrderEnum
func GetMappingListThreatTypesSortOrderEnum(val string) (ListThreatTypesSortOrderEnum, bool)
GetMappingListThreatTypesSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum
SortOrderEnum Enum with underlying type: string
type SortOrderEnum string
Set of constants representing the allowable values for SortOrderEnum
const ( SortOrderAsc SortOrderEnum = "ASC" SortOrderDesc SortOrderEnum = "DESC" )
func GetMappingSortOrderEnum(val string) (SortOrderEnum, bool)
GetMappingSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum
func GetSortOrderEnumValues() []SortOrderEnum
GetSortOrderEnumValues Enumerates the set of values for SortOrderEnum
ThreatType Threat type along with attribution data for its association to an indicator
type ThreatType struct { // The OCID of the threat type Id *string `mandatory:"true" json:"id"` // The name of the threat type Name *string `mandatory:"true" json:"name"` // The list of supporting attribution information. Attribution []DataAttribution `mandatory:"true" json:"attribution"` }
func (m ThreatType) String() string
func (m ThreatType) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ThreatTypeSummary Threat type id and text
type ThreatTypeSummary struct { // The OCID of the threat type Id *string `mandatory:"true" json:"id"` // The name of the threat type Name *string `mandatory:"true" json:"name"` }
func (m ThreatTypeSummary) String() string
func (m ThreatTypeSummary) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ThreatTypesCollection List of threat types applicable to indicators.
type ThreatTypesCollection struct { // The list of threat types that are available to query on Items []ThreatTypeSummary `mandatory:"true" json:"items"` }
func (m ThreatTypesCollection) String() string
func (m ThreatTypesCollection) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ThreatintelClient a client for Threatintel
type ThreatintelClient struct { common.BaseClient // contains filtered or unexported fields }
func NewThreatintelClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client ThreatintelClient, err error)
NewThreatintelClientWithConfigurationProvider Creates a new default Threatintel client with the given configuration provider. the configuration provider will be used for the default signer as well as reading the region
func NewThreatintelClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client ThreatintelClient, err error)
NewThreatintelClientWithOboToken Creates a new default Threatintel client with the given configuration provider. The obotoken will be added to default headers and signed; the configuration provider will be used for the signer
as well as reading the region
func (client *ThreatintelClient) ConfigurationProvider() *common.ConfigurationProvider
ConfigurationProvider the ConfigurationProvider used in this client, or null if none set
func (client ThreatintelClient) GetIndicator(ctx context.Context, request GetIndicatorRequest) (response GetIndicatorResponse, err error)
GetIndicator Gets a detailed indicator by identifier
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.16.0/threatintelligence/GetIndicator.go.html to see an example of how to use GetIndicator API.
func (client ThreatintelClient) ListIndicatorCounts(ctx context.Context, request ListIndicatorCountsRequest) (response ListIndicatorCountsResponse, err error)
ListIndicatorCounts Get the current count of each indicator type. Results can be sorted ASC or DESC by count.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.16.0/threatintelligence/ListIndicatorCounts.go.html to see an example of how to use ListIndicatorCounts API.
func (client ThreatintelClient) ListIndicators(ctx context.Context, request ListIndicatorsRequest) (response ListIndicatorsResponse, err error)
ListIndicators Returns a list of IndicatorSummary objects.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.16.0/threatintelligence/ListIndicators.go.html to see an example of how to use ListIndicators API.
func (client ThreatintelClient) ListThreatTypes(ctx context.Context, request ListThreatTypesRequest) (response ListThreatTypesResponse, err error)
ListThreatTypes Gets a list of threat types that are available to use as parameters when querying indicators. This is sorted by threat type name according to the sort order query param.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.16.0/threatintelligence/ListThreatTypes.go.html to see an example of how to use ListThreatTypes API.
func (client *ThreatintelClient) SetRegion(region string)
SetRegion overrides the region of this client.