跳到主要内容

Get API Application Detail

Retrieves detailed information of a specific API Application by ID.

Request

Request-Line

GET /waap/v1.0/apiProtection/apiApps/{appId} HTTP/1.1

Request Parameters

Path Parameters

ParameterTypeRequiredDescription
appIdIntegerMandatoryUnique identifier assigned to the API Application.

Response

Response Body

ParameterTypeRequiredDescription
appIdIntegerMandatoryUnique identifier for the API application.
nameStringMandatoryName of the API application. The name must have 1-26 characters. Valid characters: 0-9, A-Z, a-z, space, . (dot), _ (underline), - (hyphen), () (parentheses), * (asterisk) and + (plus sign).
websitesInteger[]MandatoryList of associated website IDs.
domainStringMandatoryAssociated domains of the application, separated by commas.
pathPrefixStringMandatoryURL path prefix for the application (e.g., /test, /cm)
serviceIdsInteger[]MandatoryList of CDN service IDs related to the application protection.

Status Codes, Error Codes and Error Messages

Status CodeError CodeError Message
400AppId.InvalidAppId is empty or invalid.
404Application.NotFoundApplication is not found.

Examples

Get API Application Detail

Request

GET /waap/v1.0/apiProtection/apiApps/56 HTTP/1.1

Successful Response Body

{
"appId": 56,
"name": "test1",
"websites": [
371,
392
],
"domain": "test1.com,test2.com",
"pathPrefix": "/test",
"serviceIds": [
227481,
227979
]
}