Path:/openapi/v1/app/{app_id}/tag
Method: GET
Path-parameters : Just refer to the public parameters
Response:
{ "code": 200, "message": "success", "data": [ { "id": 240, "app_id": 164314, "category_id": 0, "name": "tag_testxxxx_wyx", "show_name": "testxxxx_wyx", "value_type": "string", "description": "", "status": "success", "toggle": "enable", "create_type": "custom", "tag_rule": null, "refresh_rule": "manual", "creator": "213659", "user_info": null, "process_status": null, "created_at": 1644563482000, "updated_at": 1651728105000 }, { "id": 216, "app_id": 164314, "category_id": 0, "name": "tag_222", "show_name": "2222", "value_type": "string", "description": "", "status": "success", "toggle": "enable", "create_type": "custom", "tag_rule": null, "refresh_rule": "manual", "creator": "224443", "user_info": null, "process_status": null, "created_at": 1641957584000, "updated_at": 1642434178000 } ], "total_execute_time": null }
Field meaning description
Data returns a JSON array, specifying key fields
Field | Type | Description |
|---|---|---|
id | int | Tag ID |
app_id | int | Tag belongs to the application id |
name | string | label name |
show_name | string | Label display name |
value_type | string | Value types (enumeration types): int, string, float, datetime |
description | string | describe |
status | string | computing state |
create_type | string | Create type |
tag_rule | object | Create rules |
refresh_rule | string | Refresh Type: manual, daily |
creator | string | creator id |
created_at | int | Create timestamp |
updated_at | int | Updatetimestamp |
Bc is the RangersClient created. For its initialization, please refer to the "OpenAPI SDK Instructions". SDKs in various languages provide similar interfaces.
Call (Python):
method = 'GET' service_url = '/datatag/openapi/v1/app/164314/tag' resp = bc.request(method=method, service_url=service_url) print(resp.content.decode('utf-8'))
Return result:
{ "code": 200, "message": "success", "data": [ { "id": 240, "app_id": 164314, "category_id": 0, "name": "tag_testxxxx_wyx", "show_name": "testxxxx_wyx", "value_type": "string", "description": "", "status": "success", "toggle": "enable", "create_type": "custom", "tag_rule": null, "refresh_rule": "manual", "creator": "213659", "user_info": null, "process_status": null, "created_at": 1644563482000, "updated_at": 1651728105000 }, { "id": 216, "app_id": 164314, "category_id": 0, "name": "tag_222", "show_name": "2222", "value_type": "string", "description": "", "status": "success", "toggle": "enable", "create_type": "custom", "tag_rule": null, "refresh_rule": "manual", "creator": "224443", "user_info": null, "process_status": null, "created_at": 1641957584000, "updated_at": 1642434178000 } ], "total_execute_time": null }