This API method returns a list of policy statements by resource ID
API Endpoint
Mainnet
https://open-platform.nodereal.io/{apikey}/greenfieldscan-mainnet/
Testnet
https://open-platform.nodereal.io/{apikey}/greenfieldscan-testnet/
method_path:/greenfield/permission/policy/list/by_resource/{id}
method_type:GET
Request:
Parameters | Descriptions | Query Type | Required | Data Type | schema |
---|---|---|---|---|---|
page | page | query | true | integer | |
per_page | per_page | query | true | integer | |
id | address | path | true | string |
Response:
Parameters | Data Type | schema |
---|---|---|
actions | string | |
createHeight | integer | |
createTime | string | |
createTxHash | integer | |
effect | String | |
expirationTime | string | |
groupName | string | |
limitSize | integer | |
policyID | integer | |
principalType | string | |
principalValue | integer | |
removed | boolean | |
resourceID | integer | |
resourceType | string | |
resources | string | |
updateHeight | integer | |
updateTime | string | |
updateTxHash | integer |
Example:
[
{
"actions": [
"string"
],
"createHeight": 0,
"createTime": "string",
"createTxHash": [
0
],
"effect": "string",
"expirationTime": "string",
"groupName": "string",
"limitSize": 0,
"policyID": [
0
],
"principalType": "string",
"principalValue": [
0
],
"removed": true,
"resourceID": [
0
],
"resourceType": "string",
"resources": [
"string"
],
"updateHeight": 0,
"updateTime": "string",
"updateTxHash": [
0
]
}
]