List entities that reference the permission policy - ListEntitiesForPolicy
Overview
List entities that reference the permission policy
Definition
Public Parameters
Parameter Name | Type | Description Information | Required |
---|---|---|---|
Action | string | Corresponding API command name, the current API is ListEntitiesForPolicy . | Yes |
PublicKey | string | The user's public key can be obtained from Console (opens in a new tab) | Yes |
Signature | string | User signature generated based on public key and API command, see Signature Algorithm | Yes |
Request Parameters
Parameter Name | Type | Description Information | Required |
---|---|---|---|
PolicyURN | string | Strategy URN | Yes |
Limit | string | The number of user groups to be queried | No |
Offset | string | Start querying from which data entry | No |
Response Field
Field Name | Type | Description Information | Required |
---|---|---|---|
RetCode | int | Return status code. If it is 0, it means successful return. If it is not 0, it means failure. | Yes |
Action | string | Operation command name. | Yes |
Message | string | Returns an error message, providing detailed description when RetCode is non-zero. | No |
Entities | array[Entity] | Reference Entity Information | Yes |
TotalCount | int | Number of Data Sets | Yes |
Data Model
Entity
Field Name | Type | Description Information | Required |
---|---|---|---|
EntityName | string | Entity Name. | Yes |
EntityKind | string | Entity Type (User: User, Group) | Yes |
AttachedAt | int | Quotation Time | Yes |
DisplayName | string | Sub-account Display Name | Yes |
Scope | string | Effective Space | No |
Example
Request Example
https://api.ucloud-global.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"
}