ListApplications - Paginated search for application details

Updated at:

Applicable versions

Central Edition, Region Edition

Endpoints and authorization information

  • Obtain an endpoint. Replace {domain} in the API request syntax.
  • Obtain a personal access token.
  • Obtain the organization ID (Required only for the Central Edition). Go to the Basic Information page in the Organization Management console to obtain the organization ID.

Product

Resource

Required permission

Application Delivery

Application

read-only

Request syntax

Central Edition

GET https://{domain}/oapi/v1/appstack/organizations/{organizationId}/apps:search

Region Edition

GET https://{domain}/oapi/v1/appstack/apps: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

pagination

string

query

Yes

The paging mode parameter. Only the keyset paging mode is supported.

keyset

perPage

number

query

No

The page size parameter. It determines the maximum number of objects returned per page.

20

orderBy

string

query

Yes

The property for sorting pages. It determines the property used to sort records. When you implement a strict traversal, use the id property.

id

sort

string

query

No

The sort order for pages. asc specifies ascending order, and desc specifies descending order. When you implement a strict traversal, use ascending order.

asc

nextToken

string

query

No

The token for keyset paging. You do not need to pass this parameter when you retrieve the first page of data. For subsequent pages, you must pass the nextToken value from the previous page's query result.

token

organizationId

string

path

  • Yes: Central Edition

  • No: Region Edition

The organization ID.

ec766e63aee3437d9a51f334d6exe671

tags

string

query

No

The application tags. Separate multiple tags with commas. Each tag name must be URL-encoded.

tag1,tag2,%E4%B8%AD%E6%96%87%E5%A3%B9%E5%8F%B7

Request examples

Central Edition

curl -X 'GET' \
  'https://{domain}/oapi/v1/appstack/organizations/ec766e63aee3437d9a51f334d6exe671/apps:search?pagination=keyset&perPage=20&orderBy=id&sort=asc&nextToken=token&tags=tag1,tag2,%E4%B8%AD%E6%96%87%E5%A3%B9%E5%8F%B7' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

Region Edition

curl -X 'GET' \
  'https://{domain}/oapi/v1/appstack/apps:search?pagination=keyset&perPage=20&orderBy=id&sort=asc&nextToken=token&tags=tag1,tag2,%E4%B8%AD%E6%96%87%E5%A3%B9%E5%8F%B7' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

Response parameters

Parameter

Type

Description

Example

-

object

The list returned by the paging API.

current

number

This field exists for page number-based paging. It indicates the current page number.

1

data

array

The paginated result data.

-

object

The AppStack application model.

appTemplateDisplayName

string

The display name of the application template.

app-template-display-name

appTemplateName

string

The name of the application template.

app-template-name

creatorId

string

The ID of the application creator.

bd9e3c6d-624f-4580-af7d-c5e26f1ed0f0

description

string

The description.

description

gmtCreate

string

The time when the application was created.

2024-09-01 00:00:00

name

string

The application name.

app-name

nextToken

string

This field exists for keyset-based paging. Pass its value to the paging API to iteratively retrieve the next page of data.

token

pages

number

This field exists for page number-based paging. It indicates the total number of pages.

10

perPage

number

This field exists for page number-based paging. It indicates the page size.

10

total

number

This field exists for page number-based paging. It indicates the total number of results.

100

Response example

{
    "current": 1,
    "data": [
        {
            "appTemplateDisplayName": "app-template-display-name",
            "appTemplateName": "app-template-name",
            "creatorId": "bd9e3c6d-624f-4580-af7d-c5e26f1ed0f0",
            "description": "description",
            "gmtCreate": "2024-09-01 00:00:00",
            "name": "app-name"
        }
    ],
    "nextToken": "token",
    "pages": 10,
    "perPage": 10,
    "total": 100
}

Error codes

For more information, see the Error Code Center.