Get policy list by resource ID

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:

ParametersDescriptionsQuery TypeRequiredData Typeschema
pagepagequerytrueinteger
per_pageper_pagequerytrueinteger
idaddresspathtruestring

Response:

ParametersData Typeschema
actionsstring
createHeightinteger
createTimestring
createTxHashinteger
effectString
expirationTimestring
groupNamestring
limitSizeinteger
policyIDinteger
principalTypestring
principalValueinteger
removedboolean
resourceIDinteger
resourceTypestring
resourcesstring
updateHeightinteger
updateTimestring
updateTxHashinteger

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
    ]
  }
]