Module:Sensitive IP addresses/API/doc: Difference between revisions

Content deleted Content added
m remove stray #table
add another example
Line 215:
"entity-ids": [
"ussenate"
]
}
}
</source>
 
=== Entity IDs ===
 
<source lang="lua">
querySensitiveIPs{
format = 'json',
entities = {'usdhs', 'usdoj'}
}
</source>
 
Result:
<source lang="json">
{
"sensitiveips": {
"entities": {
"usdoj": {
"description": "[[United States Department of Justice]]",
"id": "usdoj",
"ipv4Ranges": [
"149.101.0.0/16"
],
"name": "United States Department of Justice",
"reason": "political"
},
"usdhs": {
"description": "[[United States Department of Homeland Security]]",
"id": "usdhs",
"ipv4Ranges": [
"65.165.132.0/24",
"204.248.24.0/24",
"216.81.80.0/20"
],
"name": "United States Department of Homeland Security",
"reason": "political"
}
},
"entity-ids": [
"usdoj",
"usdhs"
]
}