RPKI Validation Status
This endpoint returns the RPKI validity state for a combination of prefix and Autonomous System. This combination will be used to perform the lookup against the RPKI validator Routinator, and then return its RPKI validity state.
GET /data/rpki-validation/data.json?resource=3333&prefix=193.0.0.0/21
Parameters
Key | Value | Info | Required |
---|---|---|---|
resource | ASN | The ASN used to perform the RPKI validity state lookup. | YES |
prefix | prefix | The prefix to perform the RPKI validity state lookup. Note the prefix's length is also taken from this field. | YES |
Data Output
Key | Info |
---|---|
status | The RPKI validity state, according to RIPE NCC's RPKI validator. Possible states are: * valid - the announcement matches a roa and is valid * invalid_asn - there is a roa with the same (or covering) prefix, but a different ASN * invalid_length - the announcement's prefix length is greater than the ROA's maximum length * unknown - no ROA found for the announcement |
description | The description that ended in the returned status. |
prefix | The prefix this query is based on. |
resource | The resource (ASN) this query is based on. |
Code Examples
bash
curl --location --request GET "https://stat.ripe.net/data/rpki-validation/data.json?resource=3333&prefix=193.0.0.0/21"
js
const requestOptions = {
method: 'GET',
};
fetch("https://stat.ripe.net/data/rpki-validation/data.json?resource=3333&prefix=193.0.0.0/21", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));