Microsoft Azure Protection Intent API

The ProtectionIntent API from Microsoft Azure, for protectionintent.

GitHub OpenAPI
Business capability
Disaster Recovery & Resilience BC-4220.60

Operations 4

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /Subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/locations/{azureRegion}/backupPreValidateProtection Pre-validate enabling backup protection · Microsoft Azure It Will Validate Followings 1 Vault Capacity 2 Vm Is Already… #
Ask an LLM
“Before I enable backup on a VM, can I check vault capacity and whether it's already protected?”
“How do I validate a backup configuration for a VM in a region ahead of time?”
Tell an agent
Validate enabling backup for resource {resource_id} into vault {vault_id} in region {region}.
Check whether VM {resource_id} is already protected in region {region}, subscription {subscription}.
GET /Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/backupProtectionIntent/{intentObjectName} Get a backup protection intent · Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I see the backup protection intent set on an item in my Recovery Services vault?”
“What auto-protection intent exists for a given backup item?”
Tell an agent
Get protection intent {intent} in fabric {fabric} of vault {vault}, resource group {resource_group}, subscription {subscription}.
Show backup intent {intent} on vault {vault}.
PUT /Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/backupProtectionIntent/{intentObjectName} Create a backup protection intent · Microsoft Azure Put Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I set up an intent to enable backup of an item in a Recovery Services vault?”
“Can I configure auto-protection for an item through a protection intent?”
Tell an agent
Create protection intent {intent} in fabric {fabric} of vault {vault}, resource group {resource_group}, subscription {subscription}.
Enable backup intent {intent} on vault {vault} with properties {properties}.
DELETE /Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/backupProtectionIntent/{intentObjectName} Remove a backup protection intent · Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I remove the backup protection intent from an item?”
“Can I stop auto-protection by deleting its intent?”
Tell an agent destructive · confirm first
Delete protection intent {intent} in fabric {fabric} of vault {vault}, resource group {resource_group}, subscription {subscription}.
Remove backup intent {intent} from vault {vault}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/microsoft-azure:microsoft-azure-protectionintent-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

microsoft-azure-protectionintent-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: 2022-09-30-preview
  title: Microsoft Azure RecoveryServicesBackupClient Protection…
  x-ms-code-generation-settings:
    internalConstructors: false
servers:
- url: https://management.azure.com
security:
- azure_auth:
  - user_impersonation
tags:
- name: ProtectionIntent
paths:
  /Subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/locations/{azureRegion}/backupPreValidateProtection:
    post:
      tags:
      - ProtectionIntent
      summary: Microsoft Azure It Will Validate Followings 1 Vault Capacity 2 Vm Is Already…
      operationId: microsoftAzureProtectionintentValidate
      parameters:
      - $ref: '#/components/parameters/ApiVersion'
      - $ref: '#/components/parameters/AzureRegion'
      - $ref: '#/components/parameters/SubscriptionId'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PreValidateEnableBackupResponse'
      x-ms-examples:
        Validate Enable Protection on Azure Vm:
          $ref: ./examples/AzureIaasVm/ProtectionIntent_Validate.json
      description: Needs a more full description created.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PreValidateEnableBackupRequest'
        description: Enable backup validation request on Virtual Machine
        required: true
  ? /Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/backupProtectionIntent/{intentObjectName}
  : get:
      tags:
      - ProtectionIntent
      description: 'Provides the details of the protection intent up item. This is an asynchronous operation. To know the status of the operation,

        call the GetItemOperationResult API.'
      operationId: microsoftAzureProtectionintentGet
      parameters:
      - $ref: '#/components/parameters/ApiVersion'
      - $ref: '#/components/parameters/VaultName'
      - $ref: '#/components/parameters/ResourceGroupName'
      - $ref: '#/components/parameters/SubscriptionId'
      - name: fabricName
        in: path
        description: Fabric name associated with the backed up item.
        required: true
        schema:
          type: string
      - name: intentObjectName
        in: path
        description: Backed up item name whose details are to be fetched.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProtectionIntentResource'
      x-ms-examples:
        Get ProtectionIntent for an item:
          $ref: ./examples/AzureWorkload/BackupProtectionIntent_Get.json
      summary: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups…
    put:
      tags:
      - ProtectionIntent
      description: Create Intent for Enabling backup of an item. This is a synchronous operation.
      operationId: microsoftAzureProtectionintentCreateorupdate
      parameters:
      - $ref: '#/components/parameters/ApiVersion'
      - $ref: '#/components/parameters/VaultName'
      - $ref: '#/components/parameters/ResourceGroupName'
      - $ref: '#/components/parameters/SubscriptionId'
      - name: fabricName
        in: path
        description: Fabric name associated with the backup item.
        required: true
        schema:
          type: string
      - name: intentObjectName
        in: path
        description: Intent object name.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProtectionIntentResource'
      x-ms-examples:
        Create or Update Azure Vm Protection Intent:
          $ref: ./examples/AzureIaasVm/ProtectionIntent_CreateOrUpdate.json
      summary: Microsoft Azure Put Subscriptions Subscriptionid Resourcegroups…
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ProtectionIntentResource'
        description: resource backed up item
        required: true
    delete:
      tags:
      - ProtectionIntent
      description: Used to remove intent from an item
      operationId: microsoftAzureProtectionintentDelete
      parameters:
      - $ref: '#/components/parameters/ApiVersion'
      - $ref: '#/components/parameters/VaultName'
      - $ref: '#/components/parameters/ResourceGroupName'
      - $ref: '#/components/parameters/SubscriptionId'
      - name: fabricName
        in: path
        description: Fabric name associated with the intent.
        required: true
        schema:
          type: string
      - name: intentObjectName
        in: path
        description: Intent to be deleted.
        required: true
        schema:
          type: string
      responses:
        '204':
          description: NoContent
      x-ms-examples:
        Delete Protection intent from item:
          $ref: ./examples/AzureWorkload/BackupProtectionIntent_Delete.json
      summary: Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups…
components:
  schemas:
    PreValidateEnableBackupRequest:
      description: 'Contract to validate if backup can be enabled on the given resource in a given vault and given configuration.

        It will validate followings

        1. Vault capacity

        2. VM is already protected

        3. Any VM related configuration passed in properties.'
      type: object
      properties:
        resourceType:
          description: ProtectedItem Type- VM, SqlDataBase, AzureFileShare etc
          enum:
          - Invalid
          - VM
          - FileFolder
          - AzureSqlDb
          - SQLDB
          - Exchange
          - Sharepoint
          - VMwareVM
          - SystemState
          - Client
          - GenericDataSource
          - SQLDataBase
          - AzureFileShare
          - SAPHanaDatabase
          - SAPAseDatabase
          - SAPHanaDBInstance
          type: string
          x-ms-enum:
            name: DataSourceType
            modelAsString: true
        resourceId:
          description: ARM Virtual Machine Id
          type: string
        vaultId:
          description: ARM id of the Recovery Services Vault
          type: string
        properties:
          description: Configuration of VM if any needs to be validated like OS type etc
          type: string
    PreValidateEnableBackupResponse:
      description: Response contract for enable backup validation request
      type: object
      properties:
        status:
          description: Validation Status
          enum:
          - Invalid
          - Succeeded
          - Failed
          type: string
          x-ms-enum:
            name: ValidationStatus
            modelAsString: true
        errorCode:
          description: Response error code
          type: string
        errorMessage:
          description: Response error message
          type: string
        recommendation:
          description: Recommended action for user
          type: string
        containerName:
          description: 'Specifies the product specific container name. E.g. iaasvmcontainer;iaasvmcontainer;rgname;vmname. This is required

            for portal'
          type: string
        protectedItemName:
          description: Specifies the product specific ds name. E.g. vm;iaasvmcontainer;rgname;vmname. This is required for portal
          type: string
    ProtectionIntent:
      description: Base class for backup ProtectionIntent.
      required:
      - protectionIntentItemType
      type: object
      properties:
        protectionIntentItemType:
          description: backup protectionIntent type.
          enum:
          - Invalid
          - AzureResourceItem
          - RecoveryServiceVaultItem
          - AzureWorkloadContainerAutoProtectionIntent
          - AzureWorkloadAutoProtectionIntent
          - AzureWorkloadSQLAutoProtectionIntent
          type: string
          x-ms-enum:
            name: ProtectionIntentItemType
            modelAsString: true
        backupManagementType:
          description: Type of backup management for the backed up item.
          enum:
          - Invalid
          - AzureIaasVM
          - MAB
          - DPM
          - AzureBackupServer
          - AzureSql
          - AzureStorage
          - AzureWorkload
          - DefaultBackup
          type: string
          x-ms-enum:
            name: BackupManagementType
            modelAsString: true
        sourceResourceId:
          description: ARM ID of the resource to be backed up.
          type: string
        itemId:
          description: ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId
          type: string
        policyId:
          description: ID of the backup policy with which this item is backed up.
          type: string
        protectionState:
          description: Backup state of this backup item.
          enum:
          - Invalid
          - NotProtected
          - Protecting
          - Protected
          - ProtectionFailed
          type: string
          x-ms-enum:
            name: ProtectionStatus
            modelAsString: true
      discriminator:
        propertyName: protectionIntentItemType
    ProtectionIntentResource:
      description: Base class for backup ProtectionIntent.
      allOf:
      - $ref: '#/components/schemas/Resource'
      properties:
        properties:
          $ref: '#/components/schemas/ProtectionIntent'
          description: ProtectionIntentResource properties
    Resource:
      description: ARM Resource.
      type: object
      properties:
        id:
          description: Resource Id represents the complete path to the resource.
          type: string
          readOnly: true
        name:
          description: Resource name associated with the resource.
          type: string
          readOnly: true
        type:
          description: Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/...
          type: string
          readOnly: true
        location:
          description: Resource location.
          type: string
        tags:
          description: Resource tags.
          type: object
          additionalProperties:
            type: string
        eTag:
          description: Optional ETag.
          type: string
      x-ms-azure-resource: true
  parameters:
    ApiVersion:
      name: api-version
      in: query
      description: Client Api Version.
      required: true
      schema:
        type: string
    AzureRegion:
      name: azureRegion
      in: path
      description: Azure region to hit Api
      required: true
      x-ms-parameter-location: method
      schema:
        type: string
    SubscriptionId:
      name: subscriptionId
      in: path
      description: The subscription Id.
      required: true
      schema:
        type: string
    ResourceGroupName:
      name: resourceGroupName
      in: path
      description: The name of the resource group where the recovery services vault is present.
      required: true
      x-ms-parameter-location: method
      schema:
        type: string
    VaultName:
      name: vaultName
      in: path
      description: The name of the recovery services vault.
      required: true
      x-ms-parameter-location: method
      schema:
        type: string
  securitySchemes:
    azure_auth:
      type: oauth2
      flows:
        implicit:
          scopes:
            user_impersonation: impersonate your user account.
          authorizationUrl: https://login.microsoftonline.com/common/oauth2/authorize
      description: Azure Active Directory OAuth2 Flow