QuerySNSFeiShuAtPerson

API Request

URLs
GET zstack/v1/sns/application-endpoints/feishu/at-persons
GET zstack/v1/sns/application-endpoints/feishu/at-persons/{uuid}
Headers
Authorization: OAuth the-session-uuid
Curl Sample
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X GET http://localhost:8080/zstack/v1/sns/application-endpoints/feishu/at-persons?q=uuid=0fce8f7cc0fb3c54b4f2ce7c53a1547a&q=endpointUuid=2ba8eb33d960377087c0f461de85642c
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X GET http://localhost:8080/zstack/v1/sns/application-endpoints/feishu/at-persons/66e1178e2a6d3941b472c2532abe0450

Queryable Fields

You can check all queryable fields and resource names that can be queried across tables by using zstack-cli, entering QuerySNSFeiShuAtPerson, and pressing the Tab key.

API Response

Sample Response
{
  "inventories": [
    {
      "uuid": "zhang.san",
      "endpointUuid": "bcb849d464dd3a0aba49fba91209b4e2"
    }
  ]
}
Name Type Description Starting Version
success boolean 5.0.0
error ErrorCode The error code. If not null, the operation fails, or vice versa. For more information, see error. 5.0.0
inventories List See inventories. 5.0.0
#error
Name Type Description Starting Version
code String The error code, which is a numbered or alphanumeric code that specifies an error. For example, SYS.1000, HOST.1001. 5.0.0
description String The brief description of the error. 5.0.0
details String The details about the error. 5.0.0
elaboration String The reserved field. Default value: null. 5.0.0
opaque LinkedHashMap The reserved field. Default value: null. 5.0.0
cause ErrorCode The root error, which is the associated root cause of the current error. If no root error exists, this parameter is null. 5.0.0
#inventories
Name Type Description Starting Version
uuid String The resource UUID. 5.0.0
userId String The FeiShu user id. 5.0.0
endpointUuid String The DingTalk endpoint uuid 5.0.0

SDK Sample

Java SDK
QuerySNSFeiShuAtPersonAction action = new QuerySNSFeiShuAtPersonAction();
action.conditions = asList("uuid=3c1da61415ec3311a18e7ff94f488fc9","endpointUuid=5ceba2786e113cf5ae1af0f95ff3623c");
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
QuerySNSFeiShuAtPersonAction.Result res = action.call();
Python SDK
QuerySNSFeiShuAtPersonAction action = QuerySNSFeiShuAtPersonAction()
action.conditions = ["uuid=c309bdc1cb213847aa4be3d57b4b2d55","endpointUuid=8b95394f0d55320085f44175ee0d116f"]
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
QuerySNSFeiShuAtPersonAction.Result res = action.call()
API Reference | 5.4.12 | ZStack Cloud · ZCF | ZStack Resource Center