Docs
api
Access Control(IAM)
ListEntitiesForPolicy

List entities that reference the permission policy - ListEntitiesForPolicy

Overview

List entities that reference the permission policy

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is ListEntitiesForPolicy.Yes
PublicKeystringThe user’s public key can be obtained from ConsoleYes
SignaturestringUser signature generated based on public key and API command, see Signature AlgorithmYes

Request Parameters

Parameter NameTypeDescription InformationRequired
PolicyURNstringStrategy URNYes
LimitstringThe number of user groups to be queriedNo
OffsetstringStart querying from which data entryNo

Response Field

Field NameTypeDescription InformationRequired
RetCodeintReturn status code. If it is 0, it means successful return. If it is not 0, it means failure.Yes
ActionstringOperation command name.Yes
MessagestringReturns an error message, providing detailed description when RetCode is non-zero.No
Entitiesarray[Entity]Reference Entity InformationYes
TotalCountintNumber of Data SetsYes

Data Model

Entity

Field NameTypeDescription InformationRequired
EntityNamestringEntity Name.Yes
EntityKindstringEntity Type (User: User, Group)Yes
AttachedAtintQuotation TimeYes
DisplayNamestringSub-account Display NameYes
ScopestringEffective SpaceNo

Example

Request Example

https://api.dezai.com/?Action=ListEntitiesForPolicy
&PolicyURN=pesJEtsc
&Limit=rUqYHefJ
&Offset=FlrpwkMW

Response Example

{
  "Action": "ListEntitiesForPolicyResponse",
  "Entities": [
    {
      "AttachedAt": 2,
      "EntityKind": "ye's",
      "EntityName": "DzyHLbZM"
    }
  ],
  "Message": "woIAThQp",
  "RetCode": 0,
  "TotalCount": "wlIhaDZN"
}