# List Applications

```http
GET /appDiscovery/applications
```

API: Cisco Secure Access App Discovery API (version 2.0.2)

Operation ID: getApplicationsAppDiscovery

Tags: Applications, Secure Access

## Description

List all discovered applications.

## Servers

```json
[
  {
    "url": "https://api.sse.cisco.com/{basePath}",
    "variables": {
      "basePath": {
        "default": "reports/v2"
      }
    }
  }
]
```

## Authentication

Satisfy any one of the following alternatives. Within each alternative, all listed schemes are required. An empty object allows anonymous access.

```json
[
  {
    "oauthFlow": [
      "reports.appDiscovery:read"
    ]
  }
]
```

### Security schemes

```json
{
  "oauthFlow": {
    "type": "oauth2",
    "description": "client credential flow",
    "flows": {
      "clientCredentials": {
        "tokenUrl": "https://api.sse.cisco.com/auth/v2/token",
        "scopes": {
          "reports.appDiscovery:write": "Write reports app discovery",
          "reports.appDiscovery:read": "Read reports app discovery"
        }
      }
    }
  }
}
```

## Parameters

| Name | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| sources | query | no | array\<string\> | Specify the types of log source to filter the collection. Valid values are: \`dns\`, \`swg\`, \`cdfw\`. |
| identity | query | no | integer | Specify the entity ID to filter the collection. |
| labels | query | no | array\<string\> | Specify the types of application classification to filter the collection. Valid values are: \`unreviewed\`, \`approved\`, \`notApproved\`, \`underAudit\`. |
| controllable | query | no | string | Specify the type of controllable applications to filter the collection. Valid values are: \`all\`, \`advanced\`. |
| weightedRisk | query | no | array\<string\> | Specify the list of application weighted risk to filter the collection. Valid values are: \`veryLow\`, \`low\`, \`medium\`, \`high\`, \`veryHigh\`. |
| categories | query | no | array\<string\> | Specify the list of application category to filter the collection. |
| subcategory | query | no | array\<string\> | Specify the list of application subcategory to filter the collection. |
| subcategory\_content\_types | query | no | array\<string\> | Specify the list of content types for the application subcategory to filter the collection. |
| appTypes | query | no | array\<string\> | Specify the types of application to filter the collection. Valid values are: \`saas\`, \`paas\`, and \`iaas\`. |
| date | query | no | string (date) | Specify a date to search for data within a twenty-four hour time period. If you do not provide a date, the last 90 days period is used to query the collection. |
| limit | query | no | integer | The maximum number of items to return in the collection. |
| offset | query | no | integer | The number of items to skip before starting to collect the result set. |
| sort | query | no | string | Specify the name of a field to sort the applications. |
| order | query | no | string | Specify the order to sort the collection. Valid values are: \`asc\` (ascending) or \`desc\` (descending). |
| label\_timestamp | query | no | string (date-time) | Filter the result set on the date and time (ISO 8601 timestamp) when the system updated the label. |

### Parameter definitions

```json
[
  {
    "in": "query",
    "name": "sources",
    "schema": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "dns",
          "swg",
          "cdfw"
        ]
      }
    },
    "style": "form",
    "explode": false,
    "description": "Specify the types of log source to filter the collection.\nValid values are: `dns`, `swg`, `cdfw`.",
    "example": [
      "cdfw"
    ],
    "$$ref": "#/components/parameters/sources"
  },
  {
    "in": "query",
    "name": "identity",
    "schema": {
      "type": "integer"
    },
    "description": "Specify the entity ID to filter the collection.",
    "example": 12355,
    "$$ref": "#/components/parameters/identity"
  },
  {
    "in": "query",
    "name": "labels",
    "schema": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "The application label. Valid values are: `unreviewed`, `approved`, `notApproved`, `underAudit`.",
        "enum": [
          "unreviewed",
          "approved",
          "notApproved",
          "underAudit"
        ],
        "example": "approved",
        "$$ref": "#/components/schemas/Label"
      }
    },
    "style": "form",
    "explode": false,
    "description": "Specify the types of application classification to filter the collection.\nValid values are: `unreviewed`, `approved`, `notApproved`, `underAudit`.",
    "example": [
      "approved"
    ],
    "$$ref": "#/components/parameters/labels"
  },
  {
    "in": "query",
    "name": "controllable",
    "schema": {
      "type": "string",
      "enum": [
        "all",
        "advanced"
      ]
    },
    "description": "Specify the type of controllable applications to filter the collection.\nValid values are: `all`, `advanced`.",
    "example": "advanced",
    "$$ref": "#/components/parameters/controllable"
  },
  {
    "in": "query",
    "name": "weightedRisk",
    "schema": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "The risk the app poses to the environment.",
        "enum": [
          "veryLow",
          "low",
          "medium",
          "high",
          "veryHigh"
        ],
        "example": "low",
        "$$ref": "#/components/schemas/WeightedRisk"
      }
    },
    "style": "form",
    "explode": false,
    "description": "Specify the list of application weighted risk to filter the collection.\nValid values are: `veryLow`, `low`, `medium`, `high`, `veryHigh`.",
    "example": [
      "low"
    ],
    "$$ref": "#/components/parameters/weightedRisk"
  },
  {
    "in": "query",
    "name": "categories",
    "schema": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "style": "form",
    "explode": false,
    "description": "Specify the list of application category to filter the collection.",
    "example": [
      "Security"
    ],
    "$$ref": "#/components/parameters/categories"
  },
  {
    "in": "query",
    "name": "subcategory",
    "schema": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "style": "form",
    "explode": false,
    "description": "Specify the list of application subcategory to filter the collection.",
    "example": [
      "Security"
    ],
    "$$ref": "#/components/parameters/subcategory"
  },
  {
    "in": "query",
    "name": "subcategory_content_types",
    "schema": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "style": "form",
    "explode": false,
    "description": "Specify the list of content types for the application subcategory to filter the collection.",
    "example": [
      "Conversational Chat"
    ],
    "$$ref": "#/components/parameters/subcategory_content_types"
  },
  {
    "in": "query",
    "name": "appTypes",
    "schema": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "The type of the app.",
        "enum": [
          "saas",
          "paas",
          "iaas"
        ],
        "example": "saas",
        "$$ref": "#/components/schemas/AppType"
      },
      "example": [
        "saas",
        "paas",
        "iaas"
      ]
    },
    "style": "form",
    "explode": false,
    "description": "Specify the types of application to filter the collection.\nValid values are: `saas`, `paas`, and `iaas`.",
    "example": [
      "paas"
    ],
    "$$ref": "#/components/parameters/appTypes"
  },
  {
    "in": "query",
    "name": "date",
    "schema": {
      "type": "string",
      "format": "date"
    },
    "description": "Specify a date to search for data within a twenty-four hour time period.\nIf you do not provide a date, the last 90 days period is used to query the collection.",
    "example": "2022-01-01",
    "$$ref": "#/components/parameters/date"
  },
  {
    "in": "query",
    "name": "limit",
    "schema": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    },
    "description": "The maximum number of items to return in the collection.",
    "$$ref": "#/components/parameters/limit"
  },
  {
    "in": "query",
    "name": "offset",
    "schema": {
      "type": "integer"
    },
    "description": "The number of items to skip before starting to collect the result set.",
    "$$ref": "#/components/parameters/offset"
  },
  {
    "in": "query",
    "name": "sort",
    "schema": {
      "type": "string",
      "enum": [
        "firstDetected",
        "lastDetected",
        "weightedRisk",
        "name"
      ]
    },
    "description": "Specify the name of a field to sort the applications.",
    "example": "firstDetected",
    "$$ref": "#/components/parameters/applicationsSort"
  },
  {
    "in": "query",
    "name": "order",
    "schema": {
      "type": "string",
      "enum": [
        "asc",
        "desc"
      ]
    },
    "description": "Specify the order to sort the collection. Valid values are: `asc` (ascending)\nor `desc` (descending).",
    "example": "asc",
    "$$ref": "#/components/parameters/order"
  },
  {
    "in": "query",
    "name": "label_timestamp",
    "schema": {
      "type": "string",
      "format": "date-time"
    },
    "example": "2022-01-01T00:00:00.000Z",
    "description": "Filter the result set on the date and time (ISO 8601 timestamp) when the system updated the label.",
    "$$ref": "#/components/parameters/label_timestamp"
  }
]
```

## Responses

### 200

OK

```json
{
  "description": "OK",
  "headers": {
    "Link": {
      "schema": {
        "type": "string"
      },
      "description": "Links to related resources, in the format defined by\n[RFC 5988](https://tools.ietf.org/html/rfc5988#section-5).\nIf there is a next page, this header includes a link with relation type\n`next` to the next page.",
      "$$ref": "#/components/headers/Link"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "description": "The object that contains the list of application properties.",
        "properties": {
          "items": {
            "type": "array",
            "description": "The list of application properties.",
            "items": {
              "type": "object",
              "required": [
                "id",
                "name",
                "label",
                "weightedRisk",
                "category",
                "appType",
                "sources",
                "firstDetected",
                "lastDetected",
                "subcategory",
                "subcategory_content_types"
              ],
              "description": "The list of properties about the discovered apps.",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "The ID of the app.",
                  "example": "eaqYExba"
                },
                "name": {
                  "type": "string",
                  "description": "The name of the app.",
                  "example": "Secure Access"
                },
                "label": {
                  "type": "string",
                  "description": "The application label. Valid values are: `unreviewed`, `approved`, `notApproved`, `underAudit`.",
                  "enum": [
                    "unreviewed",
                    "approved",
                    "notApproved",
                    "underAudit"
                  ],
                  "example": "approved",
                  "$$ref": "#/components/schemas/Label"
                },
                "weightedRisk": {
                  "type": "string",
                  "description": "The risk the app poses to the environment.",
                  "enum": [
                    "veryLow",
                    "low",
                    "medium",
                    "high",
                    "veryHigh"
                  ],
                  "example": "low",
                  "$$ref": "#/components/schemas/WeightedRisk"
                },
                "category": {
                  "type": "string",
                  "description": "The category of the app.",
                  "example": "Security",
                  "$$ref": "#/components/schemas/category"
                },
                "appType": {
                  "type": "string",
                  "description": "The type of the app.",
                  "enum": [
                    "saas",
                    "paas",
                    "iaas"
                  ],
                  "example": "saas",
                  "$$ref": "#/components/schemas/AppType"
                },
                "sources": {
                  "type": "array",
                  "description": "The list of app sources where the sources are DNS, Web (Secure Web Gateway), and cloud-delivered firewall (CDFW) traffic events.\nThe list can contain one or more of the source types.",
                  "items": {
                    "anyOf": [
                      {
                        "type": "object",
                        "description": "The properties of the app's DNS requests.",
                        "properties": {
                          "name": {
                            "type": "string",
                            "description": "The type of traffic associated with the source.",
                            "enum": [
                              "dns"
                            ],
                            "example": "dns"
                          },
                          "requests": {
                            "type": "integer",
                            "description": "The number of DNS requests for this app.",
                            "example": 100
                          },
                          "blockedRequests": {
                            "type": "integer",
                            "description": "The number of DNS requests blocked, based on the policy configurations.",
                            "example": 50
                          }
                        },
                        "example": {
                          "name": "dns",
                          "requests": 100,
                          "blockedRequests": 35
                        },
                        "$$ref": "#/components/schemas/DnsSource"
                      },
                      {
                        "type": "object",
                        "description": "The properties of the app's web requests.",
                        "properties": {
                          "name": {
                            "type": "string",
                            "description": "The type of traffic associated with the source.",
                            "enum": [
                              "swg"
                            ],
                            "example": "swg"
                          },
                          "totalTraffic": {
                            "type": "integer",
                            "description": "The total number of bytes inbound and outbound for this app in your environment.",
                            "example": 150
                          },
                          "bytesIn": {
                            "type": "integer",
                            "description": "The number of bytes received (inbound).",
                            "example": 50
                          },
                          "bytesOut": {
                            "type": "integer",
                            "description": "The number of bytes sent (outbound).",
                            "example": 100
                          },
                          "blockedBytesOut": {
                            "type": "integer",
                            "description": "The number of bytes of outbound traffic that are blocked.",
                            "example": 90
                          }
                        },
                        "example": {
                          "name": "swg",
                          "totalTraffic": 200,
                          "bytesIn": 100,
                          "bytesOut": 100,
                          "blockedBytesOut": 49
                        },
                        "$$ref": "#/components/schemas/SwgSource"
                      },
                      {
                        "type": "object",
                        "description": "The properties of the app's requests that are managed by the cloud-delivered firewall (CDFW).",
                        "properties": {
                          "name": {
                            "type": "string",
                            "description": "The type of traffic associated with the source.",
                            "enum": [
                              "cdfw"
                            ],
                            "example": "cdfw"
                          },
                          "events": {
                            "type": "integer",
                            "description": "The number of CDFW L7 events for this app.",
                            "example": 100
                          },
                          "blockedEvents": {
                            "type": "integer",
                            "description": "The number of CDFW L7 events that are blocked.",
                            "example": 50
                          }
                        },
                        "example": {
                          "name": "cdfw",
                          "events": 50,
                          "blockedEvents": 25
                        },
                        "$$ref": "#/components/schemas/CdfwSource"
                      }
                    ]
                  },
                  "example": [
                    {
                      "name": "cdfw",
                      "events": 50,
                      "blockedEvents": 25
                    }
                  ],
                  "$$ref": "#/components/schemas/Sources"
                },
                "firstDetected": {
                  "type": "string",
                  "description": "The date and time (ISO 8601 timestamp) when the system first detected the app.",
                  "format": "date-time",
                  "example": "2022-01-01T00:00:00.000Z"
                },
                "lastDetected": {
                  "type": "string",
                  "description": "The date and time (ISO 8601 timestamp) when the system last detected the app.",
                  "format": "date-time",
                  "example": "2022-01-01T00:00:00.000Z"
                },
                "subcategory": {
                  "type": "string",
                  "description": "The subcategory applied to the app.",
                  "example": "Security",
                  "$$ref": "#/components/schemas/subcategory"
                },
                "subcategory_content_types": {
                  "type": "array",
                  "description": "The list of content types for the subcategory applied to the app.",
                  "items": {
                    "type": "string",
                    "description": "The content type of the subcategory applied to the app."
                  },
                  "example": [
                    "Conversational Chat",
                    "Other"
                  ],
                  "$$ref": "#/components/schemas/subcategory_content_types"
                }
              },
              "example": {
                "id": "ea890ya",
                "name": "Secure Access",
                "label": "approved",
                "weightedRisk": "low",
                "category": "Security",
                "subcategory": "Security",
                "subcategory_content_types": [
                  "Conversational Chat",
                  "Other"
                ],
                "appType": "saas",
                "sources": [
                  {
                    "name": "dns",
                    "requests": 100,
                    "blockedRequests": 100
                  }
                ],
                "firstDetected": "2022-01-01T00:00:00.000Z",
                "lastDetected": "2022-01-01T00:00:00.000Z"
              },
              "$$ref": "#/components/schemas/ApplicationInList"
            }
          },
          "currentPage": {
            "type": "integer",
            "description": "The index of the current page in the collection.",
            "example": 1
          },
          "totalPages": {
            "type": "integer",
            "description": "The total number of pages in the collection.",
            "example": 100
          },
          "itemsCount": {
            "type": "integer",
            "description": "The number of items in the collection.",
            "example": 10
          }
        },
        "example": {
          "items": [
            {
              "id": "ea890yb",
              "name": "Secure Access",
              "label": "unreviewed",
              "weightedRisk": "low",
              "category": "Security",
              "subcategory": "Security",
              "subcategory_content_types": [
                "Conversational Chat",
                "Other"
              ],
              "appType": "saas",
              "sources": [
                {
                  "name": "dns",
                  "requests": 100,
                  "blockedRequests": 100
                }
              ],
              "firstDetected": "2022-01-01T00:00:00.000Z",
              "lastDetected": "2022-01-01T00:00:00.000Z"
            }
          ],
          "currentPage": 1,
          "totalPages": 126,
          "itemsCount": 251
        },
        "$$ref": "#/components/schemas/ApplicationList"
      },
      "example": {
        "items": [
          {
            "id": "1234ay7",
            "name": "Secure Access",
            "label": "approved",
            "weightedRisk": "low",
            "category": "Security",
            "subcategory": "Content Management",
            "subcategory_content_types": [
              "Conversational Chat",
              "Other"
            ],
            "appType": "saas",
            "sources": [
              {
                "name": "cdfw",
                "events": 50,
                "blockedEvents": 25
              },
              {
                "name": "dns",
                "events": 35,
                "blockedRequests": 14
              },
              {
                "name": "swg",
                "totalTraffic": 150,
                "bytesIn": 50,
                "bytesOut": 100,
                "blockedBytesOut": 15
              }
            ],
            "firstDetected": "2022-01-01T00:00:00.000Z",
            "lastDetected": "2022-01-01T00:00:00.000Z"
          }
        ],
        "currentPage": 1,
        "totalPages": 126,
        "itemsCount": 251
      }
    }
  }
}
```

### 400

Invalid request

```json
{
  "description": "Invalid request",
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "description": "The error message returned in the response.",
        "properties": {
          "message": {
            "type": "string"
          }
        },
        "$$ref": "#/components/schemas/Error"
      }
    }
  },
  "$$ref": "#/components/responses/InvalidRequest"
}
```

### 401

Unauthorized request

```json
{
  "description": "Unauthorized request",
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "description": "The error message returned in the response.",
        "properties": {
          "message": {
            "type": "string"
          }
        },
        "$$ref": "#/components/schemas/Error"
      }
    }
  },
  "$$ref": "#/components/responses/Unauthorized"
}
```

### 403

Forbidden

```json
{
  "description": "Forbidden",
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "description": "The error message returned in the response.",
        "properties": {
          "message": {
            "type": "string"
          }
        },
        "$$ref": "#/components/schemas/Error"
      }
    }
  },
  "$$ref": "#/components/responses/Forbidden"
}
```

### 500

Server error

```json
{
  "description": "Server error",
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "description": "The error message returned in the response.",
        "properties": {
          "message": {
            "type": "string"
          }
        },
        "$$ref": "#/components/schemas/Error"
      }
    }
  },
  "$$ref": "#/components/responses/ServerError"
}
```

## Additional OpenAPI fields

```json
{
  "__originalOperationId": "getApplicationsAppDiscovery"
}
```
