-
Use the Prefix Details endpoint to check if any issues were found during validation.
At least one of the following token permissions is required:Required API token permissions
Magic Transit ReadMagic Transit WriteIP Prefixes: WriteIP Prefixes: ReadIP Prefixes: BGP On Demand WriteIP Prefixes: BGP On Demand Read
Prefix Detailsbash curl "https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/addressing/prefixes/$PREFIX_ID" \ --request GET \ --header "Authorization: Bearer $CLOUDFLARE_API_TOKEN"This customer-ASN response excerpt shows a failed ASN ownership check:
Customer ASN response excerptjson { "result": { "ownership_validation_token": "<OWNERSHIP_VALIDATION_TOKEN>", "irr_validation_state": "valid", "rpki_validation_state": "valid", "ownership_validation_state": "valid", "asn_ownership_validation_state": "invalid" } } -
Consider the states returned in the API response (for example,
missing,invalid,mismatch_asn) and review the corresponding records: your IRRrouteorroute6object, ROA, prefix ownership validation records, ASNaut-numobject, and any published ASPA.-
Information in the IRR and ROA records should meet the onboarding prerequisites.
-
Token-based prefix ownership validation requires a valid ROA. Publish the validation token either in the matching
routeorroute6object, or in each required reverse DNS zone. -
ASN ownership validation requires the same token in the
aut-numobject whenasn_ownership_validation_stateapplies. -
Autonomous System Provider Authorization (ASPA) validation checks whether ASPA data for your ASN authorizes AS13335 as a provider.
Use the following guidance for
irr_validation_state:State Meaning Resolution pendingIRR validation has not completed. Monitor the results using Prefix Details. You do not need to queue validation again while checks are pending. validAn IRR routeorroute6object exactly matches the prefix and selected ASN.No action is required. missingCloudflare could not find a matching IRR route object. Publish a routeorroute6object for the prefix with the selected ASN as itsorigin.mismatch_asnThe IRR route object has a different origin ASN. Update the originto match the ASN selected when you added the prefix.mismatch_more_specificThe IRR route object covers a smaller address range than the prefix you added. Publish a route object that exactly matches the prefix you want to onboard. mismatch_less_specificThe IRR route object covers a larger address range and has the selected origin ASN. This passes IRR validation. Confirm that the other validation checks also pass. invalidThe IRR records do not satisfy validation requirements. Check the route object, prefix, and origin ASN against the onboarding prerequisites, then queue validation again. Use the following guidance for
rpki_validation_state:State Meaning Resolution pendingRPKI validation has not completed. Monitor the results using Prefix Details. You do not need to queue validation again while checks are pending. validA ROA authorizes the selected ASN to originate the prefix at its prefix length. No action is required. missingNo ROA covers the prefix. Publish a ROA authorizing the selected ASN and prefix length. Token-based prefix ownership validation also requires a valid ROA. invalidThe ROAs do not authorize the selected ASN or prefix length. Correct the authorized ASN or maximum prefix length in your ROA. Verify the result with the RPKI Portal ↗︎, then queue validation again. Use the following guidance for
ownership_validation_state:State Meaning Resolution pendingPrefix ownership validation has not completed. Monitor the results using Prefix Details. You do not need to queue validation again while checks are pending. validPrefix ownership is verified. No action is required. Remove the token only after any required ASN ownership check also returns valid.missingRPKI validation is missing, or neither the IRR nor reverse DNS method provides the required ownership records.Check rpki_validation_state, publish a valid ROA, and confirm that your IRR record or each required reverse DNS zone contains the token.invalidPrefix ownership proof did not pass validation. Confirm that RPKI validation is validand that the token matchesownership_validation_tokenin the IRR record or each required reverse DNS zone.If you use a manually uploaded Letter of Agency (LOA), ownership validation remains
invaliduntil Cloudflare verifies the document. Contact your account team to confirm its verification status.Use the following guidance for
asn_ownership_validation_state:State Meaning Resolution pendingASN ownership validation has not completed. Monitor the results using Prefix Details. You do not need to queue validation again while checks are pending. validThe account has verified ownership of the ASN. No action is required. Future prefixes in the same account reuse this verification. missingCloudflare could not find an aut-numobject for the ASN at a supported RIR.Verify the object exists at AFRINIC, APNIC, ARIN, or RIPE. For a LACNIC-registered ASN, contact your account team. invalidThe aut-numobject does not contain the expected token.Add cf-validation: <OWNERSHIP_VALIDATION_TOKEN>to an editable field in theaut-numobject.This field is omitted when ASN ownership validation does not apply, such as when you use AS13335. Omission does not confirm ownership of a customer ASN.
Use the following guidance for
aspa_validation_state:State Meaning Resolution pendingASPA validation has not completed. Monitor the results using Prefix Details. You do not need to queue validation again while checks are pending. validASPA data for your ASN authorizes AS13335 as a provider. No action is required. invalidASPA data for your ASN does not authorize AS13335 as a provider. Use your RIR's RPKI tooling to add AS13335 to the ASPA provider list. You can keep other authorized providers. If
aspa_validation_stateis omitted, no ASPA validation result is available. Omission does not indicate successful validation or confirm that no ASPA exists.Publishing an ASPA is optional. An
invalidresult blocks approval until your ASPA authorizes AS13335. -
-
After applying the necessary changes, use the Validate Prefix endpoint to queue validation. Checks run asynchronously. Use the Prefix Details endpoint to monitor the results. You do not need to submit repeated validation requests while checks are pending.
At least one of the following token permissions is required:Required API token permissions
Magic Transit WriteIP Prefixes: Write
Validate Prefixbash curl "https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/addressing/prefixes/$PREFIX_ID/validate" \ --request POST \ --header "Authorization: Bearer $CLOUDFLARE_API_TOKEN"
Troubleshoot prefix validation
Was this helpful?