Features - List Application Version Pattern Features
[DEPRECATED NOTICE: This operation will soon be removed] Gets all the pattern features.
GET {Endpoint}/luis/api/v2.0/apps/{appId}/versions/{versionId}/patterns
GET {Endpoint}/luis/api/v2.0/apps/{appId}/versions/{versionId}/patterns?skip={skip}&take={take}
URI Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
|
app
|
path | True |
string (uuid) |
The application ID. |
|
Endpoint
|
path | True |
string |
Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus.api.cognitive.microsoft.com). |
|
version
|
path | True |
string |
The version ID. |
|
skip
|
query |
integer minimum: 0 |
The number of entries to skip. Default value is 0. |
|
|
take
|
query |
integer minimum: 0maximum: 500 |
The number of entries to return. Maximum page size is 500. Default is 100. |
Request Header
| Name | Required | Type | Description |
|---|---|---|---|
| Ocp-Apim-Subscription-Key | True |
string |
Responses
| Name | Type | Description |
|---|---|---|
| 200 OK |
A list of pattern features. |
|
| Other Status Codes |
Error Response. |
Security
Ocp-Apim-Subscription-Key
Type:
apiKey
In:
header
Examples
Successful Get Application Version Pattern Features request
Sample request
GET {Endpoint}/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/patterns
Sample response
[
{
"id": 601765,
"name": "PatternIP",
"pattern": "\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\b",
"isActive": true
}
]
Definitions
| Name | Description |
|---|---|
|
Error |
Error response when invoking an operation on the API. |
|
Pattern |
Pattern feature. |
ErrorResponse
Error response when invoking an operation on the API.
| Name | Type | Description |
|---|---|---|
| errorType |
string |
PatternFeatureInfo
Pattern feature.
| Name | Type | Description |
|---|---|---|
| id |
integer |
A six-digit ID used for Features. |
| isActive |
boolean |
Indicates if the feature is enabled. |
| name |
string |
The name of the Feature. |
| pattern |
string |
The Regular Expression to match. |