Microsoft Azure Site Recovery Management Service API

The Microsoft Azure Site Recovery Management Service API is a tool that allows users to manage and monitor their disaster recovery processes on the Azure cloud platform. This API enables users to automate the configuration, monitoring, and failover processes for their virtual machines and physical servers.

OpenAPI Specification

azure-site-recovery-management-service-api-openapi-original.yml Raw ↑
swagger: '2.0'
info:
  title: Microsoft Azure Azure Site Recovery Management Service API
  description: A first party Azure service enabling the data replication.
  version: 2021-02-16-preview
host: management.azure.com
schemes:
  - https
paths:
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationFabrics/{fabricName}/fabricAgents/{fabricAgentName}
  : get:
      tags:
        - Dra
      summary: 'Microsoft Azure Gets The Fabric Agent Dra'
      description: Gets the details of the fabric agent.
      operationId: microsoftAzureDraGet
      produces:
        - application/json
      parameters:
        - $ref: >-
            ../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter
        - $ref: >-
            ../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter
        - $ref: '#/parameters/FabricNameParameter'
        - $ref: '#/parameters/FabricAgentNameParameter'
        - $ref: >-
            ../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter
      responses:
        '200':
          description: Returns Dra Model on success.
          schema:
            $ref: '#/definitions/DraModel'
        default:
          description: Error
          schema:
            $ref: >-
              ../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse
      x-ms-examples:
        Dra_Get:
          $ref: ./examples/Dra_Get.json
    put:
      tags:
        - Dra
      summary: 'Microsoft Azure Puts The Fabric Agent Dra'
      description: Creates the fabric agent.
      operationId: microsoftAzureDraCreate
      consumes:
        - application/json
      produces:
        - application/json
      parameters:
        - $ref: >-
            ../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter
        - $ref: >-
            ../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter
        - $ref: '#/parameters/FabricNameParameter'
        - $ref: '#/parameters/FabricAgentNameParameter'
        - $ref: >-
            ../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter
        - in: body
          name: body
          description: Dra model.
          schema:
            $ref: '#/definitions/DraModel'
      responses:
        '200':
          description: Updated
          schema:
            $ref: '#/definitions/DraModel'
        '201':
          description: Created
          schema:
            $ref: '#/definitions/DraModel'
        default:
          description: Error
          schema:
            $ref: >-
              ../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse
      x-ms-long-running-operation: true
      x-ms-long-running-operation-options:
        final-state-via: location
      x-ms-examples:
        Dra_Create:
          $ref: ./examples/Dra_Create.json
    delete:
      tags:
        - Dra
      summary: 'Microsoft Azure Deletes The Fabric Agent Dra'
      description: Deletes the fabric agent.
      operationId: microsoftAzureDraDelete
      produces:
        - application/json
      parameters:
        - $ref: >-
            ../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter
        - $ref: >-
            ../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter
        - $ref: '#/parameters/FabricNameParameter'
        - $ref: '#/parameters/FabricAgentNameParameter'
        - $ref: >-
            ../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter
      responses:
        '202':
          description: Returns success on deletion.
          headers:
            Azure-AsyncOperation:
              description: Tracking URL for long running operation.
              type: string
            Location:
              type: string
        '204':
          description: No Content
        default:
          description: Error
          schema:
            $ref: >-
              ../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse
      x-ms-long-running-operation: true
      x-ms-long-running-operation-options:
        final-state-via: location
      x-ms-examples:
        Dra_Delete:
          $ref: ./examples/Dra_Delete.json
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationFabrics/{fabricName}/fabricAgents
  : get:
      tags:
        - Dra
      summary: 'Microsoft Azure Lists The Fabric Agents Dras'
      description: Gets the list of fabric agents in the given fabric.
      operationId: microsoftAzureDraList
      produces:
        - application/json
      parameters:
        - $ref: >-
            ../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter
        - $ref: >-
            ../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter
        - $ref: '#/parameters/FabricNameParameter'
        - $ref: >-
            ../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter
      responses:
        '200':
          description: Returns Dra Model Collection on success.
          schema:
            $ref: '#/definitions/DraModelCollection'
        default:
          description: Error
          schema:
            $ref: >-
              ../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse
      x-ms-pageable:
        nextLinkName: nextLink
      x-ms-examples:
        Dra_List:
          $ref: ./examples/Dra_List.json
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationFabrics/{fabricName}/fabricAgents/{fabricAgentName}/operations/{operationId}
  : get:
      tags:
        - Dra
      summary: 'Microsoft Azure Gets The Fabric Agent Dra Operation Status'
      description: Tracks the results of an asynchronous operation on the fabric agent.
      operationId: microsoftAzureDraoperationstatusGet
      produces:
        - application/json
      parameters:
        - $ref: >-
            ../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter
        - $ref: >-
            ../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter
        - $ref: '#/parameters/FabricNameParameter'
        - $ref: '#/parameters/FabricAgentNameParameter'
        - $ref: >-
            ../../../../../common-types/resource-management/v5/types.json#/parameters/OperationIdParameter
        - $ref: >-
            ../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter
      responses:
        '200':
          description: Success
          schema:
            $ref: '#/definitions/OperationStatus'
        default:
          description: Error
          schema:
            $ref: >-
              ../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse
      x-ms-examples:
        DraOperationStatus_Get:
          $ref: ./examples/DraOperationStatus_Get.json
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/alertSettings/{emailConfigurationName}
  : get:
      tags:
        - EmailConfiguration
      summary: 'Microsoft Azure Gets The Email Configuration Setting'
      description: Gets the details of the alert configuration setting.
      operationId: microsoftAzureEmailconfigurationGet
      produces:
        - application/json
      parameters:
        - $ref: >-
            ../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter
        - $ref: >-
            ../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter
        - $ref: '#/parameters/VaultNameParameter'
        - $ref: '#/parameters/EmailConfigurationNameParameter'
        - $ref: >-
            ../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter
      responses:
        '200':
          description: Returns EmailConfiguration Model on success.
          schema:
            $ref: '#/definitions/EmailConfigurationModel'
        default:
          description: Error
          schema:
            $ref: >-
              ../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse
      x-ms-examples:
        EmailConfiguration_Get:
          $ref: ./examples/EmailConfiguration_Get.json
    put:
      tags:
        - EmailConfiguration
      summary: 'Microsoft Azure Creates Email Configuration Settings'
      description: Creates an alert configuration setting for the given vault.
      operationId: microsoftAzureEmailconfigurationCreate
      consumes:
        - application/json
      produces:
        - application/json
      parameters:
        - $ref: >-
            ../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter
        - $ref: >-
            ../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter
        - $ref: '#/parameters/VaultNameParameter'
        - $ref: '#/parameters/EmailConfigurationNameParameter'
        - $ref: >-
            ../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter
        - in: body
          name: body
          description: EmailConfiguration model.
          schema:
            $ref: '#/definitions/EmailConfigurationModel'
      responses:
        '200':
          description: Updated
          schema:
            $ref: '#/definitions/EmailConfigurationModel'
        '201':
          description: Created
          schema:
            $ref: '#/definitions/EmailConfigurationModel'
        default:
          description: Error
          schema:
            $ref: >-
              ../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse
      x-ms-examples:
        EmailConfiguration_Create:
          $ref: ./examples/EmailConfiguration_Create.json
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/alertSettings
  : get:
      tags:
        - EmailConfiguration
      summary: 'Microsoft Azure Lists The Email Configuration Settings'
      description: Gets the list of alert configuration settings for the given vault.
      operationId: microsoftAzureEmailconfigurationList
      produces:
        - application/json
      parameters:
        - $ref: >-
            ../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter
        - $ref: >-
            ../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter
        - $ref: '#/parameters/VaultNameParameter'
        - $ref: >-
            ../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter
      responses:
        '200':
          description: Returns EmailConfiguration Model Collection on success.
          schema:
            $ref: '#/definitions/EmailConfigurationModelCollection'
        default:
          description: Error
          schema:
            $ref: >-
              ../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse
      x-ms-pageable:
        nextLinkName: nextLink
      x-ms-examples:
        EmailConfiguration_List:
          $ref: ./examples/EmailConfiguration_List.json
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/events/{eventName}
  : get:
      tags:
        - Event
      summary: 'Microsoft Azure Gets The Event'
      description: Gets the details of the event.
      operationId: microsoftAzureEventGet
      produces:
        - application/json
      parameters:
        - $ref: >-
            ../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter
        - $ref: >-
            ../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter
        - $ref: '#/parameters/VaultNameParameter'
        - $ref: '#/parameters/EventNameParameter'
        - $ref: >-
            ../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter
      responses:
        '200':
          description: Returns Event Model on success.
          schema:
            $ref: '#/definitions/EventModel'
        default:
          description: Error
          schema:
            $ref: >-
              ../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse
      x-ms-examples:
        Event_Get:
          $ref: ./examples/Event_Get.json
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/events
  : get:
      tags:
        - Event
      summary: 'Microsoft Azure Lists The Events'
      description: Gets the list of events in the given vault.
      operationId: microsoftAzureEventList
      produces:
        - application/json
      parameters:
        - $ref: >-
            ../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter
        - $ref: >-
            ../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter
        - $ref: '#/parameters/VaultNameParameter'
        - in: query
          name: $filter
          description: Filter string.
          type: string
        - in: query
          name: continuationToken
          description: Continuation token.
          type: string
        - $ref: >-
            ../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter
      responses:
        '200':
          description: Returns Event Model Collection on success.
          schema:
            $ref: '#/definitions/EventModelCollection'
        default:
          description: Error
          schema:
            $ref: >-
              ../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse
      x-ms-pageable:
        nextLinkName: nextLink
      x-ms-examples:
        Event_List:
          $ref: ./examples/Event_List.json
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationFabrics/{fabricName}
  : get:
      tags:
        - Fabric
      summary: 'Microsoft Azure Gets The Fabric'
      description: Gets the details of the fabric.
      operationId: microsoftAzureFabricGet
      produces:
        - application/json
      parameters:
        - $ref: >-
            ../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter
        - $ref: >-
            ../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter
        - $ref: '#/parameters/FabricNameParameter'
        - $ref: >-
            ../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter
      responses:
        '200':
          description: Returns Fabric Model on success.
          schema:
            $ref: '#/definitions/FabricModel'
        default:
          description: Error
          schema:
            $ref: >-
              ../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse
      x-ms-examples:
        Fabric_Get:
          $ref: ./examples/Fabric_Get.json
    put:
      tags:
        - Fabric
      summary: 'Microsoft Azure Puts The Fabric'
      description: Creates the fabric.
      operationId: microsoftAzureFabricCreate
      consumes:
        - application/json
      produces:
        - application/json
      parameters:
        - $ref: >-
            ../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter
        - $ref: >-
            ../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter
        - $ref: '#/parameters/FabricNameParameter'
        - $ref: >-
            ../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter
        - in: body
          name: body
          description: Fabric properties.
          schema:
            $ref: '#/definitions/FabricModel'
      responses:
        '200':
          description: Updated
          schema:
            $ref: '#/definitions/FabricModel'
        '201':
          description: Created
          schema:
            $ref: '#/definitions/FabricModel'
        default:
          description: Error
          schema:
            $ref: >-
              ../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse
      x-ms-long-running-operation: true
      x-ms-long-running-operation-options:
        final-state-via: location
      x-ms-examples:
        Fabric_Create:
          $ref: ./examples/Fabric_Create.json
    patch:
      tags:
        - Fabric
      summary: 'Microsoft Azure Updates The Fabric'
      description: Performs update on the fabric.
      operationId: microsoftAzureFabricUpdate
      consumes:
        - application/json
      produces:
        - application/json
      parameters:
        - $ref: >-
            ../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter
        - $ref: >-
            ../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter
        - $ref: '#/parameters/FabricNameParameter'
        - $ref: >-
            ../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter
        - in: body
          name: body
          description: Fabric properties.
          schema:
            $ref: '#/definitions/FabricModelUpdate'
      responses:
        '200':
          description: Success
          schema:
            $ref: '#/definitions/FabricModel'
        '202':
          description: Returns success on update.
          headers:
            Azure-AsyncOperation:
              description: Tracking URL for long running operation.
              type: string
            Location:
              type: string
        default:
          description: Error
          schema:
            $ref: >-
              ../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse
      x-ms-long-running-operation: true
      x-ms-long-running-operation-options:
        final-state-via: location
      x-ms-examples:
        Fabric_Update:
          $ref: ./examples/Fabric_Update.json
    delete:
      tags:
        - Fabric
      summary: 'Microsoft Azure Deletes The Fabric'
      description: Removes the fabric.
      operationId: microsoftAzureFabricDelete
      produces:
        - application/json
      parameters:
        - $ref: >-
            ../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter
        - $ref: >-
            ../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter
        - $ref: '#/parameters/FabricNameParameter'
        - $ref: >-
            ../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter
      responses:
        '202':
          description: Returns success on deletion.
          headers:
            Azure-AsyncOperation:
              description: Tracking URL for long running operation.
              type: string
            Location:
              type: string
        '204':
          description: No Content
        default:
          description: Error
          schema:
            $ref: >-
              ../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse
      x-ms-long-running-operation: true
      x-ms-long-running-operation-options:
        final-state-via: location
      x-ms-examples:
        Fabric_Delete:
          $ref: ./examples/Fabric_Delete.json
  /subscriptions/{subscriptionId}/providers/Microsoft.DataReplication/replicationFabrics:
    get:
      tags:
        - Fabric
      summary: 'Microsoft Azure Lists The Fabrics'
      description: Gets the list of fabrics in the given subscription.
      operationId: microsoftAzureFabricListbysubscription
      produces:
        - application/json
      parameters:
        - $ref: >-
            ../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter
        - in: query
          name: continuationToken
          description: Continuation token from the previous call.
          type: string
        - $ref: >-
            ../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter
      responses:
        '200':
          description: Returns Fabric Model Collection on success.
          schema:
            $ref: '#/definitions/FabricModelCollection'
        default:
          description: Error
          schema:
            $ref: >-
              ../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse
      x-ms-pageable:
        nextLinkName: nextLink
      x-ms-examples:
        Fabric_ListBySubscription:
          $ref: ./examples/Fabric_ListBySubscription.json
  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationFabrics:
    get:
      tags:
        - Fabric
      summary: 'Microsoft Azure Lists The Fabrics'
      description: Gets the list of fabrics in the given subscription and resource group.
      operationId: microsoftAzureFabricList
      produces:
        - application/json
      parameters:
        - $ref: >-
            ../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter
        - $ref: >-
            ../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter
        - in: query
          name: continuationToken
          description: Continuation token from the previous call.
          type: string
        - $ref: >-
            ../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter
      responses:
        '200':
          description: Returns Fabric Model Collection on success.
          schema:
            $ref: '#/definitions/FabricModelCollection'
        default:
          description: Error
          schema:
            $ref: >-
              ../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse
      x-ms-pageable:
        nextLinkName: nextLink
      x-ms-examples:
        Fabric_List:
          $ref: ./examples/Fabric_List.json
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationFabrics/{fabricName}/operations/{operationId}
  : get:
      tags:
        - Fabric
      summary: 'Microsoft Azure Gets The Fabric Operation Status'
      description: Tracks the results of an asynchronous operation on the fabric.
      operationId: microsoftAzureFabricoperationsstatusGet
      produces:
        - application/json
      parameters:
        - $ref: >-
            ../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter
        - $ref: >-
            ../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter
        - $ref: '#/parameters/FabricNameParameter'
        - $ref: >-
            ../../../../../common-types/resource-management/v5/types.json#/parameters/OperationIdParameter
        - $ref: >-
            ../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter
      responses:
        '200':
          description: Success
          schema:
            $ref: '#/definitions/OperationStatus'
        default:
          description: Error
          schema:
            $ref: >-
              ../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse
      x-ms-examples:
        FabricOperationsStatus_Get:
          $ref: ./examples/FabricOperationsStatus_Get.json
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/replicationPolicies/{policyName}
  : get:
      tags:
        - Policy
      summary: 'Microsoft Azure Gets The Policy'
      description: Gets the details of the policy.
      operationId: microsoftAzurePolicyGet
      produces:
        - application/json
      parameters:
        - $ref: >-
            ../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter
        - $ref: >-
            ../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter
        - $ref: '#/parameters/VaultNameParameter'
        - $ref: '#/parameters/PolicyNameParameter'
        - $ref: >-
            ../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter
      responses:
        '200':
          description: Returns Policy Model on success.
          schema:
            $ref: '#/definitions/PolicyModel'
        default:
          description: Error
          schema:
            $ref: >-
              ../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse
      x-ms-examples:
        Policy_Get:
          $ref: ./examples/Policy_Get.json
    put:
      tags:
        - Policy
      summary: 'Microsoft Azure Puts The Policy'
      description: Creates the policy.
      operationId: microsoftAzurePolicyCreate
      consumes:
        - application/json
      produces:
        - application/json
      parameters:
        - $ref: >-
            ../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter
        - $ref: >-
            ../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter
        - $ref: '#/parameters/VaultNameParameter'
        - $ref: '#/parameters/PolicyNameParameter'
        - $ref: >-
            ../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter
        - in: body
          name: body
          description: Policy model.
          schema:
            $ref: '#/definitions/PolicyModel'
      responses:
        '200':
          description: Updated
          schema:
            $ref: '#/definitions/PolicyModel'
        '201':
          description: Created
          schema:
            $ref: '#/definitions/PolicyModel'
        default:
          description: Error
          schema:
            $ref: >-
              ../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse
      x-ms-long-running-operation: true
      x-ms-long-running-operation-options:
        final-state-via: location
      x-ms-examples:
        Policy_Create:
          $ref: ./examples/Policy_Create.json
    delete:
      tags:
        - Policy
      summary: 'Microsoft Azure Deletes The Policy'
      description: Removes the policy.
      operationId: microsoftAzurePolicyDelete
      produces:
        - application/json
      parameters:
        - $ref: >-
            ../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter
        - $ref: >-
            ../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter
        - $ref: '#/parameters/VaultNameParameter'
        - $ref: '#/parameters/PolicyNameParameter'
        - $ref: >-
            ../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter
      responses:
        '202':
          description: Returns success on deletion.
          headers:
            Azure-AsyncOperation:
              description: Tracking URL for long running operation.
              type: string
            Location:
              type: string
        '204':
          description: No Content
        default:
          description: Error
          schema:
            $ref: >-
              ../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse
      x-ms-long-running-operation: true
      x-ms-long-running-operation-options:
        final-state-via: location
      x-ms-examples:
        Policy_Delete:
          $ref: ./examples/Policy_Delete.json
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/replicationPolicies
  : get:
      tags:
        - Policy
      summary: 'Microsoft Azure Lists The Policies'
      description: Gets the list of policies in the given vault.
      operationId: microsoftAzurePolicyList
      produces:
        - application/json
      parameters:
        - $ref: >-
            ../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter
        - $ref: >-
            ../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter
        - $ref: '#/parameters/VaultNameParameter'
        - $ref: >-
            ../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter
      responses:
        '200':
          description: Returns Policy Model Collection on success.
          schema:
            $ref: '#/definitions/PolicyModelCollection'
        default:
          description: Error
          schema:
            $ref: >-
              ../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse
      x-ms-pageable:
        nextLinkName: nextLink
      x-ms-examples:
        Policy_List:
          $ref: ./examples/Policy_List.json
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/replicationPolicies/{policyName}/operations/{operationId}
  : get:
      tags:
        - Policy
      summary: 'Microsoft Azure Gets The Policy Operation Status'
      description: Tracks the results of an asynchronous operation on the policy.
      operationId: microsoftAzurePolicyoperationstatusGet
      produces:
        - application/json
      parameters:
        - $ref: >-
            ../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter
        - $ref: >-
            ../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter
        - $ref: '#/parameters/VaultNameParameter'
        - $ref: '#/parameters/PolicyNameParameter'
        - $ref: >-
            ../../../../../common-types/resource-management/v5/types.json#/parameters/OperationIdParameter
        - $ref: >-
            ../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter
      responses:
        '200':
          description: Success
          schema:
            $ref: '#/definitions/OperationStatus'
        default:
          description: Error
          schema:
            $ref: >-
              ../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse
      x-ms-examples:
        PolicyOperationStatus_Get:
          $ref: ./examples/PolicyOperationStatus_Get.json
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/protectedItems/{protectedItemName}
  : get:
      tags:
        - ProtectedItem
      summary: 'Microsoft Azure Gets The Protected Item'
      description: Gets the details of the protected item.
      operationId: microsoftAzureProtecteditemGet
      produces:
        - application/json
      parameters:
        - $ref: >-
            ../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter
        - $ref: >-
            ../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter
        - $ref: '#/parameters/Va

# --- truncated at 32 KB (159 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/microsoft-azure/refs/heads/main/openapi/azure-site-recovery-management-service-api-openapi-original.yml