Skip to main content
Version: 1.17

JSON-format request samples

This page contains the JSON-format request message body samples that are referred in the Examples of requests and responses section of the APIs chapter.

Permit

Copy this content to a new file named request_permit.json to use it in the authorization decision example.

{
"Request": {
"AccessSubject": {
"Attribute": [
{
"AttributeId": "role",
"Value": "employee"
}
]
},
"Resource": {
"Attribute": [
{
"AttributeId": "document_id",
"Value": "companypolicy"
}
]
},
"Action": {
"Attribute": [
{
"AttributeId": "idaction",
"Value": "view"
}
]
},
"Environment": {
"Attribute": [
{
"AttributeId": "isAllowed",
"Value": true
}
]
}
}
}

Deny

Copy this content to a new file named request_deny.json to use it in the authorization decision example.

{
"Request": {
"Environment": {
"Attribute": [
{
"AttributeId": "isAllowed",
"Value": false
}
]
},
"AccessSubject": {
"Attribute": [
{
"AttributeId": "role",
"Value": "consultant"
}
]
},
"Resource": {
"Attribute": [
{
"AttributeId": "document_id",
"Value": "companypolicy"
}
]
},
"Action": {
"Attribute": [
{
"AttributeId": "idaction",
"Value": "view"
}
]
}
}
}

NotApplicable

Copy this content to a new file named request_notapplicable.json to use it in the authorization decision example.

{
"Request": {
"Environment": {
"Attribute": [
{
"AttributeId": "isAllowed",
"Value": false
}
]
}
}
}

Indeterminate

Copy this content to a new file named request_indeterminate.json to use it in the authorization decision example.

{
"Request": {
"Environment": {
"Attribute": [
{
"AttributeId": "isAllowed",
"Value": [
false,
[]
]
}
]
},
"AccessSubject": {
"Attribute": [
{
"AttributeId": "role",
"Value": "consultant"
}
]
},
"Resource": {
"Attribute": [
{
"AttributeId": "document_id",
"Value": "companypolicy"
}
]
},
"Action": {
"Attribute": [
{
"AttributeId": "idaction",
"Value": "view"
}
]
}
}
}