Get Application
Retrieve a specific application by ID.
Endpoint
Retrieves a single application with its complete configuration including URL filters and associated rules.
Authentication
Requires any valid API Key. All keys have read access.
Path Parameters
| Parameter | Type | Description |
|---|---|---|
id |
UUID | Application ID |
Response
Returns the complete application object:
Response Format
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Payment APIs",
"description": "All payment processing endpoints",
"urlFilters": [
{
"filterType": 1,
"isWhitelist": false,
"contentType": ["application/json"],
"methods": ["POST", "PUT"],
"filter": "payment.api.company.com",
"comment": "Payment API hostname",
"runContentTypeDetection": true
}
],
"rules": [
{
"id": "rule-uuid",
"name": "Detect PII in Payments"
}
],
"createdAt": 1704067200,
"updatedAt": 1704153600,
"readOnly": false
}
Response Fields
| Field | Type | Description |
|---|---|---|
id |
UUID | Unique application identifier |
name |
string | Application name |
description |
string | Application description |
urlFilters |
array | Array of URL filter configurations |
rules |
array | Rules that reference this application |
createdAt |
integer | Unix timestamp when created |
updatedAt |
integer | Unix timestamp of last update |
readOnly |
boolean | Whether this is a system application (cannot be modified) |
Examples
Get Application by ID
Retrieve a specific application to view its configuration.
import requests
BASE_URL = "https://your-shield-host:8080"
HEADERS = {"Authorization": "Bearer YOUR_API_KEY"}
app_id = "550e8400-e29b-41d4-a716-446655440000"
response = requests.get(f"{BASE_URL}/api/apps/{app_id}", headers=HEADERS)
app = response.json()
print(f"Application: {app['name']}")
print(f"Filters: {len(app['urlFilters'])}")
print(f"Rules: {len(app['rules'])}")
const axios = require('axios');
const BASE_URL = 'https://your-shield-host:8080';
const HEADERS = { 'Authorization': 'Bearer YOUR_API_KEY' };
const appId = '550e8400-e29b-41d4-a716-446655440000';
const response = await axios.get(`${BASE_URL}/api/apps/${appId}`, { headers: HEADERS });
const app = response.data;
console.log(`Application: ${app.name}`);
console.log(`Filters: ${app.urlFilters.length}`);
console.log(`Rules: ${app.rules.length}`);
Error Responses
| Status Code | Description |
|---|---|
401 |
Invalid or expired API key |
404 |
Application not found |
Related Topics
- List Applications - Query all applications
- Update Application - Modify this application
- Delete Application - Remove this application
- Create Rules - Create rules that use this application