GET - Get Label
Introduces the invocation method of the Get Label interface.
Request method
GET
URL
Request Parameters
| Parameter Name | Parameter Location | Required | Description |
|---|---|---|---|
| authorization | header | Yes | Authentication information in the request. See the section for details Authentication. |
| x-skg-timestamp | header | Yes | Current Timestamp. See the section for details Authentication. |
Request URL
https://<ucwi_endpoint>:5443/skg/v1/dlp/label/custom/<request_mode>Return Results
Upon successful invocation of this interface, the system will return the following parameters.
| Parameter | Type | Description |
|---|---|---|
| result | int | Whether the request was successful, 0 for success, 1 for failure |
| data | Dict | Label data of the file |
| responseCode | int | Status code returned by the request |
| message | String | Status message returned by the request |
Return Example
{
"result": 0,
"data": {
"test_key": "tt_value",
"id": "8888"
},
"responseCode": 200,
"message": "OK"
}
Error code
If calling the API has an error, the following error codes are returned:
| Error Code | Description |
|---|---|
| 400 | Invalid parameter |
| 404 | Unknown Error |
| 500 | Invalid parameter |