GET/trusted-policies-registry/v2/policies/:policyName
Returns a trusted policy identified by its name.
Request
Path Parameters
Responses
- 200
- 404
- 500
Success
- application/json
- Schema
- Success
Schema
- Array [
- MOD1
- MOD2
- ]
Unique policy ID
policy description
Name of the policy
Possible values: [AND
, OR
]
Type of the operation the policy performs ("AND", "OR")
Status of the policy (false = inactive, true = active)
policyConditions object[]
List of policy conditions
Name of the condition
Name of the attribute to validate
Possible values: [UINT256
, BYTES
, ADDRESS
, BYTES32
, STRING
, BOOLEAN
]
Expected attribute type. Valid types include: "UINT256", "BYTES", "ADDRESS", "BYTES32", "STRING", "BOOLEAN".
Possible values: [EQUAL
]
Operation to apply ("EQUAL" only)
value object
Value to compare the attribute to
{
"policyId": "0",
"description": "description-test-036ccfd98b88a9c3ad1a23e730bc414f",
"policyName": "policy-test-fd0010fa07c2ff3eba04a46547687d17",
"operationType": "AND",
"status": true,
"policyConditions": [
{
"name": "condition-string",
"attributeName": "any",
"typeOfValue": "STRING",
"value": "vxc4gdbfgb",
"attributeOperation": "EQUAL"
},
{
"name": "condition-bytes",
"attributeName": "any",
"typeOfValue": "BYTES",
"value": "0x61736461736464",
"attributeOperation": "EQUAL"
},
{
"name": "condition-boolean",
"attributeName": "any",
"typeOfValue": "BOOLEAN",
"value": false,
"attributeOperation": "EQUAL"
},
{
"name": "condition-address",
"attributeName": "any",
"typeOfValue": "ADDRESS",
"value": "0x00000000219ab540356cbb839cbe05303d7705fa",
"attributeOperation": "EQUAL"
},
{
"name": "condition-uint256",
"attributeName": "any",
"typeOfValue": "UINT256",
"value": "42",
"attributeOperation": "EQUAL"
}
]
}
Not found
- application/problem+json
- Schema
- Policy Not Found
Schema
Default value: about:blank
An absolute URI that identifies the problem type. When dereferenced, it SHOULD provide human-readable documentation for the problem type.
A short summary of the problem type.
Possible values: >= 400
and <= 600
The HTTP status code generated by the origin server for this occurrence of the problem.
A human readable explanation specific to this occurrence of the problem.
An absolute URI that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.
{
"title": "Not found",
"status": 404,
"detail": "Not found"
}
Internal Error
- application/problem+json
- Schema
- Internal Server Error
Schema
Default value: about:blank
An absolute URI that identifies the problem type. When dereferenced, it SHOULD provide human-readable documentation for the problem type.
A short summary of the problem type.
Possible values: >= 400
and <= 600
The HTTP status code generated by the origin server for this occurrence of the problem.
A human readable explanation specific to this occurrence of the problem.
An absolute URI that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.
{
"title": "Internal Server Error",
"status": 500,
"detail": "The server encountered an internal error and was unable to process your request."
}