Path:/openapi/v1/app/{app_id}/tag/{tag_name}
Method: GET
Path-parameters : Just refer to the public parameters
Response:
{ "code": 200, "message": "success", "data": { "id": 456, "app_id": 164314, "category_id": 0, "name": "tag_test_tag", "show_name": "test tag", "value_type": "string", "description": "", "status": "fail", "toggle": "enable", "create_type": "upload", "tag_rule": { "rules": null, "sql": null, "file": { "detail": { "name": "user_tag.csv" }, "file_key": "tag_upload_uuid/164314/20220523/c93ab7cbd0d24c2584a662f85e12cb02.json" } }, "refresh_rule": "manual", "creator": "10000340", "user_info": null, "process_status": null, "created_at": 1653301122000, "updated_at": 1653301290000 }, "total_execute_time": null }
Field meaning description
Data returns a JSON object, specifying key fields
Field | Type | Description |
|---|---|---|
app_id | int | App ID |
name | string | label name |
show_name | string | Tag 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 | int | 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/tag_test_tag' resp = bc.request(method=method, service_url=service_url) print(resp.content.decode('utf-8'))
Return result:
{ "code": 200, "message": "success", "data": { "id": 456, "app_id": 164314, "category_id": 0, "name": "tag_test_tag", "show_name": "test tag", "value_type": "string", "description": "", "status": "fail", "toggle": "enable", "create_type": "upload", "tag_rule": { "rules": null, "sql": null, "file": { "detail": { "name": "user_tag.csv" }, "file_key": "tag_upload_uuid/164314/20220523/c93ab7cbd0d24c2584a662f85e12cb02.json" } }, "refresh_rule": "manual", "creator": "10000340", "user_info": null, "process_status": null, "created_at": 1653301122000, "updated_at": 1653301290000 }, "total_execute_time": null }