Skip to content

Commit 4a4ec87

Browse files
Fill in prefix-validation.mdx using bash code block for now
1 parent ae9bbc9 commit 4a4ec87

File tree

1 file changed

+38
-5
lines changed

1 file changed

+38
-5
lines changed

src/content/docs/byoip/troubleshooting/prefix-validation.mdx

Lines changed: 38 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,47 @@ sidebar:
66
label: Prefix validation checks
77
---
88

9-
import { APIRequest } from "~/components";
9+
import { APIRequest, GlossaryTooltip } from "~/components";
1010

11-
Use the [Prefix Details endpoint](/api/resources/addressing/subresources/prefixes/methods/get/) to check if any issues were found during validation.
11+
1. Use the [Prefix Details endpoint](/api/resources/addressing/subresources/prefixes/methods/get/) to check if any issues were found during validation.
1212

1313
<APIRequest path= "/accounts/{account_id}/addressing/prefixes/{prefix_id}" method="GET" />
1414

15-
(WIP - Add response example (collapsable))
15+
```json title="Response" {17-19}
1616

17-
(WIP - Add code block example for "/accounts/account_id/addressing/prefixes/prefix_id/validate")
17+
"result": {
18+
"id": "72823e95d6c64d48a8111fec81179816",
19+
"created_at": "2025-02-25T00:34:11.423722Z",
20+
"modified_at": "2025-02-25T00:34:11.423722Z",
21+
"cidr": "203.0.113.0/24",
22+
"account_id": "654c5f71c324478cc9f68d60065d4620",
23+
"description": "",
24+
"approved": "P",
25+
"on_demand_enabled": false,
26+
"on_demand_locked": false,
27+
"advertised": null,
28+
"advertised_modified_at": null,
29+
"loa_document_id": null,
30+
"asn": 13335,
31+
"ownership_validation_token": "<OWNERSHIP_VALIDATION_TOKEN>",
32+
"delegate_loa_creation" : true,
33+
"irr_validation_state": "valid",
34+
"rpki_validation_state": "valid",
35+
"ownership_validation_state": "missing",
36+
}
1837

19-
(WIP - Clarify criteria for IRR check + further info like schedule and limits?)
38+
```
39+
40+
2. Consider the states returned in the API response (for example, `missing`, `invalid`, `mismatch_asn`) and review your IRR record, <GlossaryTooltip term="Route Origin Authorization (ROA)">ROA</GlossaryTooltip>, and ownership validation method accordingly.
41+
42+
- Information in the IRR and ROA records should meet the [onboarding prerequisites](/byoip/get-started/#before-you-begin).
43+
44+
- [Ownership validation](/byoip/get-started/#validate-prefix-ownership) requires a matching ROA and the correct validation token found in all DNS TXT records or in the IRR record.
45+
46+
3. After applying the necessary changes, use the Validate Prefix endpoint to re-trigger the validation checks.
47+
48+
```bash
49+
curl https://api.cloudflare.com/accounts/{account_id}/addressing/prefixes/prefix_id/validate \
50+
--header "X-Auth-Email: <EMAIL>" \
51+
--header "X-Auth-Key: <API_KEY>"
52+
```

0 commit comments

Comments
 (0)