---
title: "Search Azure resources"
method: POST
path: "/pazwlConfig/v1/azure/search"
tags: ["Azure"]
---

# Search Azure resources

`POST /pazwlConfig/v1/azure/search`

Searches Azure resources based on specified filters.

## Query parameters

- `pageSize` integer
- `pageToken` string

## Headers

- `authEntities` string, required

## Request body

- SearchFilters
  - `regions` string[], required — Specify the regions to be searched. Enter "All" to search in all regions.
  - `resourceGroups` string[] — Specify the resourcegroups to be searched.
  - `resourceNames` string[] — Specify the resourcenames to be searched.
  - `resourceType` string, required — Specify the resource type to filter resources.Valid value for resourceType is "VirtualMachine".
  - `searchBy` string, required — Specify the parameter to be used for searching resources. Valid values for searchBy are "ResourceGroups" ,"ResourceNames" ,"Tags".
  - `subscriptions` integer[], required — Specify the subscription IDs to be searched. Enter "0" to search in all subscriptions.
  - `tags` Tags[] — Specify the tags to be searched.
    - `key` string
    - `value` string

## Response `200`

Success

- SearchResponse
  - `nextPageToken` string — The page token value for the next set of API results. The value of this parameter is NULL for the last set of results.
  - `resources` Resource[] — Details of the resource fetched, such as organization, subscription, backupset, and storage data.
    - `backupEnabled` boolean
    - `daintreeCsetID` integer
    - `daintreeRegion` string
    - `daintreeStorageID` integer
    - `orgID` integer
    - `orgName` string
    - `resourceID` integer
    - `resourceName` string
    - `resourceType` string
    - `subscriptionID` integer
    - `subscriptionName` string
  - `totalCount` integer — Total count of results fetched.

## Other responses

- `400` — Bad Request
- `401` — The request did not include an authentication token or the authentication token was expired.
- `403` — Forbidden
- `404` — The requested resource was not found.
- `503` — The request was not processed due to an internal error in service.

---

[API](https://skmtc.net/druva/apis/authentication.md) · [All operations](https://skmtc.net/druva/apis/authentication/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/druva/authentication/revisions/2af2bf148b25/schema)
