Updates a tag (SoT)
Updates a Source-of-Truth tag by UUID.
Security
API Token
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYYAccepted Permissions (at least one required)
Cloudforce One WriteParametersExpand Collapse
params ThreatEventTagEditParams
Body param: Actor variety. Allowed values: Activist, Competitor, Customer, Crime Syndicate, Former Employee, Nation State, Organized Crime, Nation State Affiliated, Terrorist, Unaffiliated.
Body param: Confidence (1-10) in the actor variety (actorCategory). CFONE-only: stripped from responses to non-CFONE accounts.
Aliases param.Field[[]ThreatEventTagEditParamsAlias]OptionalBody param: Structured aliases ({ value, confidence 1-10, tlp }). CFONE-only: stripped from responses to non-CFONE accounts.
Body param: Structured aliases ({ value, confidence 1-10, tlp }). CFONE-only: stripped from responses to non-CFONE accounts.
Body param: Date the actor was discovered (ISO YYYY-MM-DD).
ExternalReferences param.Field[[]ThreatEventTagEditParamsExternalReference]OptionalBody param: Structured external references ({ url, description }). Public: returned to all accounts.
Body param: Structured external references ({ url, description }). Public: returned to all accounts.
InternalAliases param.Field[[]ThreatEventTagEditParamsInternalAlias]OptionalBody param: Internal structured aliases ({ value, confidence 1-10, tlp }). CFONE-only: never returned to non-CFONE accounts.
Body param: Internal structured aliases ({ value, confidence 1-10, tlp }). CFONE-only: never returned to non-CFONE accounts.
TLP ThreatEventTagEditParamsInternalAliasesTLPOptional
Body param: Actor motive. Allowed values: Convenience, Fear, Fun, Financial, Grudge, Ideology, Espionage.
Body param: Confidence (1-10) in the actor motive. CFONE-only: stripped from responses to non-CFONE accounts.
Body param: Confidence (1-10) in the origin-country attribution. CFONE-only: stripped from responses to non-CFONE accounts.
Body param: TLP marking for the origin-country attribution. CFONE-only: stripped from responses to non-CFONE accounts.
Body param: TLP marking for the origin-country attribution. CFONE-only: stripped from responses to non-CFONE accounts.
ReturnsExpand Collapse
type ThreatEventTagEditResponse struct{…}
Confidence (1-10) in the actor variety (actorCategory). CFONE-only: stripped from responses to non-CFONE accounts.
Aliases []ThreatEventTagEditResponseAliasOptionalStructured aliases ({ value, confidence 1-10, tlp }). CFONE-only: stripped from responses to non-CFONE accounts.
Structured aliases ({ value, confidence 1-10, tlp }). CFONE-only: stripped from responses to non-CFONE accounts.
ExternalReferences []ThreatEventTagEditResponseExternalReferenceOptionalStructured external references ({ url, description }). Public: returned to all accounts.
Structured external references ({ url, description }). Public: returned to all accounts.
InternalAliases []ThreatEventTagEditResponseInternalAliasOptionalInternal structured aliases ({ value, confidence 1-10, tlp }). CFONE-only: never returned to non-CFONE accounts.
Internal structured aliases ({ value, confidence 1-10, tlp }). CFONE-only: never returned to non-CFONE accounts.
TLP ThreatEventTagEditResponseInternalAliasesTLPOptional
Confidence (1-10) in the actor motive. CFONE-only: stripped from responses to non-CFONE accounts.
Confidence (1-10) in the origin-country attribution. CFONE-only: stripped from responses to non-CFONE accounts.
OriginCountryTLP ThreatEventTagEditResponseOriginCountryTLPOptionalTLP marking for the origin-country attribution. CFONE-only: stripped from responses to non-CFONE accounts.
TLP marking for the origin-country attribution. CFONE-only: stripped from responses to non-CFONE accounts.
Updates a tag (SoT)
package main
import (
"context"
"fmt"
"github.com/cloudflare/cloudflare-go"
"github.com/cloudflare/cloudflare-go/cloudforce_one"
"github.com/cloudflare/cloudflare-go/option"
)
func main() {
client := cloudflare.NewClient(
option.WithAPIToken("Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY"),
)
response, err := client.CloudforceOne.ThreatEvents.Tags.Edit(
context.TODO(),
"tag_uuid",
cloudforce_one.ThreatEventTagEditParams{
AccountID: cloudflare.F("account_id"),
},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", response.UUID)
}
{
"uuid": "12345678-1234-1234-1234-1234567890ab",
"value": "APT28",
"activeDuration": "activeDuration",
"actorCategory": "actorCategory",
"actorCategoryConfidence": 7,
"aliases": [
{
"value": "Fancy Bear",
"confidence": 8,
"tlp": "amber"
}
],
"aliasGroupNames": [
"string"
],
"aliasGroupNamesInternal": [
"string"
],
"analyticPriority": 0,
"attributionConfidence": "attributionConfidence",
"attributionConfidenceScore": 7,
"attributionOrganization": "attributionOrganization",
"categoryName": "Nation State",
"categoryUuid": "12345678-1234-1234-1234-1234567890ab",
"dateOfDiscovery": "2024-01-15",
"externalReferenceLinks": [
"string"
],
"externalReferences": [
{
"url": "https://example.com/report",
"description": "Vendor threat report"
}
],
"internalAliases": [
{
"value": "Fancy Bear",
"confidence": 8,
"tlp": "amber"
}
],
"internalDescription": "internalDescription",
"motive": "motive",
"motiveConfidence": 7,
"opsecLevel": "opsecLevel",
"originCountryConfidence": 7,
"originCountryISO": "originCountryISO",
"originCountryISOAlpha3": "IRN",
"originCountryTlp": "amber",
"priority": 0,
"sophisticationLevel": "sophisticationLevel"
}Returns Examples
{
"uuid": "12345678-1234-1234-1234-1234567890ab",
"value": "APT28",
"activeDuration": "activeDuration",
"actorCategory": "actorCategory",
"actorCategoryConfidence": 7,
"aliases": [
{
"value": "Fancy Bear",
"confidence": 8,
"tlp": "amber"
}
],
"aliasGroupNames": [
"string"
],
"aliasGroupNamesInternal": [
"string"
],
"analyticPriority": 0,
"attributionConfidence": "attributionConfidence",
"attributionConfidenceScore": 7,
"attributionOrganization": "attributionOrganization",
"categoryName": "Nation State",
"categoryUuid": "12345678-1234-1234-1234-1234567890ab",
"dateOfDiscovery": "2024-01-15",
"externalReferenceLinks": [
"string"
],
"externalReferences": [
{
"url": "https://example.com/report",
"description": "Vendor threat report"
}
],
"internalAliases": [
{
"value": "Fancy Bear",
"confidence": 8,
"tlp": "amber"
}
],
"internalDescription": "internalDescription",
"motive": "motive",
"motiveConfidence": 7,
"opsecLevel": "opsecLevel",
"originCountryConfidence": 7,
"originCountryISO": "originCountryISO",
"originCountryISOAlpha3": "IRN",
"originCountryTlp": "amber",
"priority": 0,
"sophisticationLevel": "sophisticationLevel"
}