SearchAppTag - Search for application tags
Applicable editions | Central Edition, Regional Edition |
Endpoint and authorization information
- Obtain an endpoint. Use the endpoint to replace {domain} in the API request syntax.
- Obtain a personal access token.
- Obtain the organizationId from the Basic Information page in the Tenant Management console. This parameter is required only for the Central Edition.
Product | Resource | Required permission |
Application Delivery | Application tag | read-only |
Request syntax
Central Edition
POST https://{domain}/oapi/v1/appstack/organizations/{organizationId}/appTags:search
Regional Edition
POST https://{domain}/oapi/v1/appstack/appTags:search
Request headers
Parameter | Type | Required | Description | Example |
x-yunxiao-token | string | Yes | Personal access token. | pt-0fh3****0fbG_35af****0484 |
Request parameters
Parameter | Type | Location | Required | Description | Example |
organizationId | string | path |
| The organization ID. | ec766e63aee3437d9a51f334d6exe671 |
current | integer | query | No | The page number. The value starts from 1. The default value is 1. | 1 |
pageSize | integer | query | No | The number of entries to return on the current page. The default value is 10. | 10 |
| - | object | body | No | ||
| orderBy | string | body | No | The sorting method. Valid values are `name` and `id`. The default value is `id`. | name |
| search | string | body | No | A fuzzy search for the application tag name. | mytag |
| sort | string | body | No | The sorting order. Valid values are `asc` and `desc`. The default value is `desc`. | desc |
Request examples
Central Edition
curl -X 'POST' \
'https://{domain}/oapi/v1/appstack/organizations/ec766e63aee3437d9a51f334d6exe671/appTags:search?current=1&pageSize=10' \
-H 'Content-Type: application/json' \
-H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484' \
--data '
{
"orderBy": "name",
"search": "mytag",
"sort": "desc"
}'
Regional Edition
curl -X 'POST' \
'https://{domain}/oapi/v1/appstack/appTags:search?current=1&pageSize=10' \
-H 'Content-Type: application/json' \
-H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484' \
--data '
{
"orderBy": "name",
"search": "mytag",
"sort": "desc"
}'
Response parameters
Parameter | Type | Description | Example value |
| - | object | ||
| data | array | The list of returned application tags. | |
| - | object | ||
| frontendStyle | string | The style. Currently, this parameter only contains the color. | {"color":"#66acab"} |
| name | string | The name of the application tag. | mytag |
| total | integer | The total number of entries that match the search criteria. | 11 |
Response example
{
"data": [
{
"frontendStyle": "{\"color\":\"#66acab\"}",
"name": "mytag"
}
],
"total": 11
}
Error codes
For more information about API-related error codes, see the Error Code Center.