Default protection status
const url = 'https://api.nsin.ir/domains/example.com/rules/waf/shield/status';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.nsin.ir/domains/example.com/rules/waf/shield/status \ --header 'Authorization: Bearer <token>'State of the default NSIN Shield rule — the critical-only WAF rule the
platform creates for every domain on a plan that includes it. Requires
domain.view.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”The domain name (for example example.com) — not a numeric id.
Example
example.comResponses
Section titled “ Responses ”Shield status.
State of the domain’s default NSIN Shield rule.
object
The domain’s current plan includes default protection.
A managed shield rule exists for this domain (it may be disabled).
The rule was deleted by the owner and will not be re-created unless restored.
Present, enabled, and shipped to the edge.
The mode a restored rule is created with.
Example
{ "action_mode": "enforce", "default_action_mode": "enforce"}Missing, malformed, revoked or expired API key — or the owning account is inactive.
The single error shape used by every endpoint.
object
Human-readable description of what went wrong.
Examples
{ "error": "invalid API key"}No such domain, or your role on it does not permit this operation. The
rules endpoints deliberately answer 404 rather than 403 for an
insufficient role, so they never confirm that a domain exists to someone
who cannot use it.
The single error shape used by every endpoint.
object
Human-readable description of what went wrong.
Examples
{ "error": "not found"}The key exceeded its request budget (300 requests per minute by default).
The single error shape used by every endpoint.
object
Human-readable description of what went wrong.
Examples
{ "error": "rate limit exceeded"}