This topic describes the ListAllLabels API provided by OceanBase Migration Service (OMS) Community Edition.
Purpose
You can call this operation to query a list of created labels.
Call description
Limitations
This operation is applicable to OMS Community Edition V4.1.1 and later versions.
Request path
POST /api/v2?Action=ListAllLabels
Request parameters
This API has no request parameters.
Return result
| Parameter | Type | Description |
|---|---|---|
| success | boolean | Indicates whether the call is successful. |
| errorDetail | object | The error details. |
| code | string | The error code. |
| message | string | The error description. |
| advice | string | The suggestions about how to resolve the error. |
| requestId | string | The request ID. |
| pageNumber | integer | The number of the page to return. |
| pageSize | integer | The number of entries to return on each page. |
| totalCount | integer | The total number of entries returned. |
| cost | string | The time spent in processing the request, in seconds. |
| data | array | The information about labels. |
| ├─ id | string | The label ID. |
| ├─ name | string | The name of the label. |
Examples
Sample request
{
}
Sample response
{
"success":true,
"errorDetail":null,
"code":null,
"message":null,
"advice":null,
"requestId":"f270-e685-45e1-bc9d-424****8",
"pageNumber":null,
"pageSize":null,
"totalCount":null,
"cost":"2 ms",
"data":[
{
"id":"l_4w****",
"name":"test"
}
]
}